1. 31 10月, 2015 2 次提交
  2. 29 10月, 2015 2 次提交
  3. 23 10月, 2015 3 次提交
  4. 22 10月, 2015 3 次提交
  5. 20 10月, 2015 3 次提交
  6. 16 10月, 2015 1 次提交
    • A
      drm/virtio: use %llu format string form atomic64_t · d549f545
      Arnd Bergmann 提交于
      The virtgpu driver prints the last_seq variable using the %ld or
      %lu format string, which does not work correctly on all architectures
      and causes this compiler warning on ARM:
      
      drivers/gpu/drm/virtio/virtgpu_fence.c: In function 'virtio_timeline_value_str':
      drivers/gpu/drm/virtio/virtgpu_fence.c:64:22: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'long long int' [-Wformat=]
        snprintf(str, size, "%lu", atomic64_read(&fence->drv->last_seq));
                            ^
      drivers/gpu/drm/virtio/virtgpu_debugfs.c: In function 'virtio_gpu_debugfs_irq_info':
      drivers/gpu/drm/virtio/virtgpu_debugfs.c:37:16: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'long long int' [-Wformat=]
        seq_printf(m, "fence %ld %lld\n",
                      ^
      
      In order to avoid the warnings, this changes the format strings to %llu
      and adds a cast to u64, which makes it work the same way everywhere.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      d549f545
  7. 15 10月, 2015 4 次提交
  8. 14 10月, 2015 4 次提交
  9. 13 10月, 2015 6 次提交
  10. 12 10月, 2015 5 次提交
  11. 09 10月, 2015 2 次提交
    • D
      drm: Fix locking for sysfs dpms file · 621bd0f6
      Daniel Vetter 提交于
      With atomic drivers we need to make sure that (at least in general)
      property reads hold the right locks. But the legacy dpms property is
      special and can be read locklessly. Since userspace loves to just
      randomly look at that all the time (like with "status") do that.
      
      To make it clear that we play tricks use the READ_ONCE compiler
      barrier (and also for paranoia).
      
      Note that there's not really anything bad going on since even with the
      new atomic paths we eventually end up not chasing any pointers (and
      hence possibly freed memory and other fun stuff). The locking WARNING
      has been added in
      
      commit 88a48e29
      Author: Rob Clark <robdclark@gmail.com>
      Date:   Thu Dec 18 16:01:50 2014 -0500
      
          drm: add atomic properties
      
      but since drivers are converting not everyone will have seen this from
      the start.
      
      Jens reported this and submitted a patch to just grab the
      mode_config.connection_mutex, but we can do a bit better.
      
      v2: Remove unused variables I failed to git add for real.
      
      Reference: http://mid.gmane.org/20150928194822.GA3930@kernel.dkReported-by: NJens Axboe <axboe@fb.com>
      Tested-by: NJens Axboe <axboe@fb.com>
      Cc: Rob Clark <robdclark@gmail.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      621bd0f6
    • S
      drm/amdgpu: fix memory leak in amdgpu_vm_update_page_directory · 7a574557
      Sudip Mukherjee 提交于
      If amdgpu_ib_get() fails we returned the error code but we missed
      freeing ib.
      
      Cc: "Christian König" <christian.koenig@amd.com>
      Cc: Jammy Zhou <Jammy.Zhou@amd.com>
      Cc: Chunming Zhou <david1.zhou@amd.com>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Cc: "monk.liu" <monk.liu@amd.com>
      Signed-off-by: NSudip Mukherjee <sudip@vectorindia.org>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      Cc: stable@vger.kernel.org
      7a574557
  12. 07 10月, 2015 4 次提交
  13. 06 10月, 2015 1 次提交