An error occurred fetching the project authors.
  1. 16 Jan, 2020 1 commit
  2. 16 Sep, 2019 2 commits
  3. 23 Aug, 2019 1 commit
  4. 15 Aug, 2019 2 commits
  5. 10 Jun, 2019 1 commit
  6. 19 Mar, 2019 2 commits
  7. 20 Feb, 2019 1 commit
    • Michael D Labriola's avatar
      drm: change func to better detect wether swiotlb is needed · 913b2cb7
      Michael D Labriola authored
      This commit fixes DRM failures on Xen PV systems that were introduced in
      v4.17 by the following commits:
      
      82626363 drm: add func to get max iomem address v2
      fd5fd480 drm/amdgpu: only enable swiotlb alloc when need v2
      1bc3d3cc drm/radeon: only enable swiotlb path when need v2
      
      The introduction of ->need_swiotlb to the ttm_dma_populate() conditionals
      in the radeon and amdgpu device drivers causes Gnome to immediately crash
      on Xen PV systems, returning the user to the login screen.  The following
      kernel errors get logged:
      
      [   28.554259] radeon_dp_aux_transfer_native: 200 callbacks suppressed
      [   31.219821] radeon 0000:01:00.0: swiotlb buffer is full (sz: 2097152 bytes)
      [   31.220030] [drm:radeon_gem_object_create [radeon]] *ERROR* Failed to allocate GEM object (16384000, 2, 4096, -14)
      [   31.226109] radeon 0000:01:00.0: swiotlb buffer is full (sz: 2097152 bytes)
      [   31.226300] [drm:radeon_gem_object_create [radeon]] *ERROR* Failed to allocate GEM object (16384000, 2, 4096, -14)
      [   31.300734] gnome-shell[1935]: segfault at 88 ip 00007f39151cd904 sp 00007ffc97611ad8 error 4 in libmutter-cogl.so[7f3915178000+aa000]
      [   31.300745] Code: 5f c3 0f 1f 40 00 48 8b 47 78 48 8b 40 40 ff e0 66 0f 1f 44 00 00 48 8b 47 78 48 8b 40 48 ff e0 66 0f 1f 44 00 00 48 8b 47 78 <48> 8b 80 88 00 00 00 ff e0 0f 1f 00 48 8b 47 78 48 8b 40 68 ff e0
      [   38.193302] radeon_dp_aux_transfer_native: 116 callbacks suppressed
      [   40.009317] radeon 0000:01:00.0: swiotlb buffer is full (sz: 2097152 bytes)
      [   40.009488] [drm:radeon_gem_object_create [radeon]] *ERROR* Failed to allocate GEM object (16384000, 2, 4096, -14)
      [   40.015114] radeon 0000:01:00.0: swiotlb buffer is full (sz: 2097152 bytes)
      [   40.015297] [drm:radeon_gem_object_create [radeon]] *ERROR* Failed to allocate GEM object (16384000, 2, 4096, -14)
      [   40.028302] gnome-shell[2431]: segfault at 2dadf40 ip 0000000002dadf40 sp 00007ffcd24ea5f8 error 15
      [   40.028306] Code: 20 6e 31 00 00 00 00 00 00 00 00 37 e3 3d 2d 7f 00 00 80 f4 e6 3d 2d 7f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <00> 00 00 00 00 00 00 00 c1 00 00 00 00 00 00 00 80 e1 d2 03 00 00
      
      This commit renames drm_get_max_iomem() to drm_need_swiotlb(), adds a
      xen_pv_domain() check to it, and moves the bit shifting comparison that
      always follows its usage into the function (simplifying the drm driver
      code).
      Signed-off-by: default avatarMichael D Labriola <michael.d.labriola@gmail.com>
      Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
      Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
      Link: https://patchwork.freedesktop.org/patch/286987/
      913b2cb7
  8. 05 Nov, 2018 1 commit
  9. 27 Sep, 2018 2 commits
  10. 29 Aug, 2018 1 commit
  11. 28 Aug, 2018 1 commit
  12. 27 Aug, 2018 4 commits
  13. 22 Aug, 2018 1 commit
    • Andrey Grodzovsky's avatar
      drm/amdgpu: Fix page fault and kasan warning on pci device remove. · eb7e5cfc
      Andrey Grodzovsky authored
      Problem:
      When executing echo 1 > /sys/class/drm/card0/device/remove kasan warning
      as bellow and page fault happen because adev->gart.pages already freed by the
      time amdgpu_gart_unbind is called.
      
      BUG: KASAN: user-memory-access in amdgpu_gart_unbind+0x98/0x180 [amdgpu]
      Write of size 8 at addr 0000000000003648 by task bash/1828
      CPU: 2 PID: 1828 Comm: bash Tainted: G        W  O      4.18.0-rc1-dev+ #29
      Hardware name: Gigabyte Technology Co., Ltd. AX370-Gaming/AX370-Gaming-CF, BIOS F3 06/19/2017
      Call Trace:
      dump_stack+0x71/0xab
      kasan_report+0x109/0x390
      amdgpu_gart_unbind+0x98/0x180 [amdgpu]
      ttm_tt_unbind+0x43/0x60 [ttm]
      ttm_bo_move_ttm+0x83/0x1c0 [ttm]
      ttm_bo_handle_move_mem+0xb97/0xd00 [ttm]
      ttm_bo_evict+0x273/0x530 [ttm]
      ttm_mem_evict_first+0x29c/0x360 [ttm]
      ttm_bo_force_list_clean+0xfc/0x210 [ttm]
      ttm_bo_clean_mm+0xe7/0x160 [ttm]
      amdgpu_ttm_fini+0xda/0x1d0 [amdgpu]
      amdgpu_bo_fini+0xf/0x60 [amdgpu]
      gmc_v8_0_sw_fini+0x36/0x70 [amdgpu]
      amdgpu_device_fini+0x2d0/0x7d0 [amdgpu]
      amdgpu_driver_unload_kms+0x6a/0xd0 [amdgpu]
      drm_dev_unregister+0x79/0x180 [drm]
      amdgpu_pci_remove+0x2a/0x60 [amdgpu]
      pci_device_remove+0x5b/0x100
      device_release_driver_internal+0x236/0x360
      pci_stop_bus_device+0xbf/0xf0
      pci_stop_and_remove_bus_device_locked+0x16/0x30
      remove_store+0xda/0xf0
      kernfs_fop_write+0x186/0x220
      __vfs_write+0xcc/0x330
      vfs_write+0xe6/0x250
      ksys_write+0xb1/0x140
      do_syscall_64+0x77/0x1e0
      entry_SYSCALL_64_after_hwframe+0x44/0xa9
      RIP: 0033:0x7f66ebbb32c0
      
      Fix:
      Split gmc_v{6,7,8,9}_0_gart_fini to postpone amdgpu_gart_fini to after
      memory managers are shut down since gart unbind happens
      as part of this procedure
      Signed-off-by: default avatarAndrey Grodzovsky <andrey.grodzovsky@amd.com>
      Reviewed-by: default avatarJunwei Zhang <Jerry.Zhang@amd.com>
      Acked-by: default avatarHuang Rui <ray.huang@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      eb7e5cfc
  14. 13 Jul, 2018 1 commit
  15. 12 Jul, 2018 1 commit
  16. 05 Jul, 2018 1 commit
  17. 15 May, 2018 2 commits
  18. 27 Feb, 2018 1 commit
  19. 19 Feb, 2018 8 commits
  20. 13 Feb, 2018 1 commit
  21. 27 Dec, 2017 1 commit
  22. 18 Dec, 2017 2 commits
  23. 12 Dec, 2017 1 commit
  24. 06 Dec, 2017 1 commit