1. 29 4月, 2017 1 次提交
    • H
      drm/amdgpu: fix to add buffer funcs check · cbcbea98
      Huang Rui 提交于
      This patch fixes the case when buffer funcs is empty and bo evict is
      executing. It must double check buffer funcs, otherwise, a NULL
      pointer dereference kernel panic will be encountered.
      
       BUG: unable to handle kernel NULL pointer dereference at 00000000000001a4
       IP: [<ffffffffa067b6cd>] amdgpu_evict_flags+0x3d/0xf0 [amdgpu]
       PGD 0
      
       Oops: 0000 [#1] SMP
       Modules linked in: amdgpu(OE) ttm drm_kms_helper drm i2c_algo_bit fb_sys_fops syscopyarea sysfillrect sysimgblt fmem(OE) physmem_drv(OE) rpcsec_gss_krb5 nfsv4 nfs fscache intel_rapl x86_pkg_temp_thermal intel_powerclamp snd_hda_codec_realtek snd_hda_codec_hdmi snd_hda_codec_generic kvm_intel snd_hda_intel snd_hda_codec kvm snd_hda_core joydev eeepc_wmi asus_wmi sparse_keymap snd_hwdep snd_pcm irqbypass crct10dif_pclmul snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq crc32_pclmul snd_seq_device ghash_clmulni_intel aesni_intel aes_x86_64 snd_timer lrw gf128mul mei_me snd glue_helper ablk_helper cryptd tpm_infineon mei lpc_ich serio_raw soundcore shpchp mac_hid nfsd auth_rpcgss nfs_acl lockd grace coretemp sunrpc parport_pc ppdev lp parport autofs4 hid_generic mxm_wmi r8169 usbhid ahci
        psmouse libahci nvme mii hid nvme_core wmi video
       CPU: 3 PID: 1627 Comm: kworker/u8:17 Tainted: G           OE   4.9.0-custom #1
       Hardware name: ASUS All Series/Z87-A, BIOS 1802 01/28/2014
       Workqueue: events_unbound async_run_entry_fn
       task: ffff88021e7057c0 task.stack: ffffc9000262c000
       RIP: 0010:[<ffffffffa067b6cd>]  [<ffffffffa067b6cd>] amdgpu_evict_flags+0x3d/0xf0 [amdgpu]
       RSP: 0018:ffffc9000262fb30  EFLAGS: 00010246
       RAX: 0000000000000000 RBX: ffff88021e8a5858 RCX: 0000000000000000
       RDX: 0000000000000001 RSI: ffffc9000262fb58 RDI: ffff88021e8a5800
       RBP: ffffc9000262fb48 R08: 0000000000000000 R09: ffff88021e8a5814
       R10: 000000001def8f01 R11: ffff88021def8c80 R12: ffffc9000262fb58
       R13: ffff88021d2b1990 R14: 0000000000000000 R15: ffff88021e8a5858
       FS:  0000000000000000(0000) GS:ffff88022ed80000(0000) knlGS:0000000000000000
       CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
       CR2: 00000000000001a4 CR3: 0000000001c07000 CR4: 00000000001406e0
       DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
       DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
      Signed-off-by: NHuang Rui <ray.huang@amd.com>
      Reviewed-by: NKen Wang <Qingqing.Wang@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      cbcbea98
  2. 08 4月, 2017 1 次提交
  3. 07 4月, 2017 1 次提交
  4. 05 4月, 2017 2 次提交
  5. 30 3月, 2017 3 次提交
  6. 22 2月, 2017 1 次提交
  7. 28 1月, 2017 6 次提交
  8. 30 12月, 2016 1 次提交
  9. 07 12月, 2016 1 次提交
  10. 05 12月, 2016 1 次提交
  11. 24 11月, 2016 1 次提交
  12. 26 10月, 2016 6 次提交
  13. 25 10月, 2016 1 次提交
    • C
      dma-buf: Rename struct fence to dma_fence · f54d1867
      Chris Wilson 提交于
      I plan to usurp the short name of struct fence for a core kernel struct,
      and so I need to rename the specialised fence/timeline for DMA
      operations to make room.
      
      A consensus was reached in
      https://lists.freedesktop.org/archives/dri-devel/2016-July/113083.html
      that making clear this fence applies to DMA operations was a good thing.
      Since then the patch has grown a bit as usage increases, so hopefully it
      remains a good thing!
      
      (v2...: rebase, rerun spatch)
      v3: Compile on msm, spotted a manual fixup that I broke.
      v4: Try again for msm, sorry Daniel
      
      coccinelle script:
      @@
      
      @@
      - struct fence
      + struct dma_fence
      @@
      
      @@
      - struct fence_ops
      + struct dma_fence_ops
      @@
      
      @@
      - struct fence_cb
      + struct dma_fence_cb
      @@
      
      @@
      - struct fence_array
      + struct dma_fence_array
      @@
      
      @@
      - enum fence_flag_bits
      + enum dma_fence_flag_bits
      @@
      
      @@
      (
      - fence_init
      + dma_fence_init
      |
      - fence_release
      + dma_fence_release
      |
      - fence_free
      + dma_fence_free
      |
      - fence_get
      + dma_fence_get
      |
      - fence_get_rcu
      + dma_fence_get_rcu
      |
      - fence_put
      + dma_fence_put
      |
      - fence_signal
      + dma_fence_signal
      |
      - fence_signal_locked
      + dma_fence_signal_locked
      |
      - fence_default_wait
      + dma_fence_default_wait
      |
      - fence_add_callback
      + dma_fence_add_callback
      |
      - fence_remove_callback
      + dma_fence_remove_callback
      |
      - fence_enable_sw_signaling
      + dma_fence_enable_sw_signaling
      |
      - fence_is_signaled_locked
      + dma_fence_is_signaled_locked
      |
      - fence_is_signaled
      + dma_fence_is_signaled
      |
      - fence_is_later
      + dma_fence_is_later
      |
      - fence_later
      + dma_fence_later
      |
      - fence_wait_timeout
      + dma_fence_wait_timeout
      |
      - fence_wait_any_timeout
      + dma_fence_wait_any_timeout
      |
      - fence_wait
      + dma_fence_wait
      |
      - fence_context_alloc
      + dma_fence_context_alloc
      |
      - fence_array_create
      + dma_fence_array_create
      |
      - to_fence_array
      + to_dma_fence_array
      |
      - fence_is_array
      + dma_fence_is_array
      |
      - trace_fence_emit
      + trace_dma_fence_emit
      |
      - FENCE_TRACE
      + DMA_FENCE_TRACE
      |
      - FENCE_WARN
      + DMA_FENCE_WARN
      |
      - FENCE_ERR
      + DMA_FENCE_ERR
      )
       (
       ...
       )
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Reviewed-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
      Acked-by: NSumit Semwal <sumit.semwal@linaro.org>
      Acked-by: NChristian König <christian.koenig@amd.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: http://patchwork.freedesktop.org/patch/msgid/20161025120045.28839-1-chris@chris-wilson.co.uk
      f54d1867
  14. 19 10月, 2016 1 次提交
  15. 29 9月, 2016 5 次提交
  16. 19 9月, 2016 1 次提交
  17. 15 9月, 2016 6 次提交
  18. 01 9月, 2016 1 次提交