diff options
| author | Dave Airlie <airlied@redhat.com> | 2021-06-10 11:03:50 +1000 | 
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2021-06-10 11:28:09 +1000 | 
| commit | 09b020bb05a514f560979438fa40406bc63d5353 (patch) | |
| tree | 2568980e133e47bce3509cab92f7adac99b51cc4 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | 5745d647d5563d3e9d32013ad4e5c629acff04d7 (diff) | |
| parent | 5b7a2c92b6102447a973f2f1ef19d660ec329881 (diff) | |
Merge tag 'drm-misc-next-2021-06-09' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
drm-misc-next for 5.14:
UAPI Changes:
 * drm/panfrost: Export AFBC_FEATURES register to userspace
Cross-subsystem Changes:
 * dma-buf: Fix debug printing; Rename dma_resv_*() functions + changes
   in callers; Cleanups
Core Changes:
 * Add prefetching memcpy for WC
 * Avoid circular dependency on CONFIG_FB
 * Cleanups
 * Documentation fixes throughout DRM
 * ttm: Make struct ttm_resource the base of all managers + changes
   in all users of TTM; Add a generic memcpy for page-based iomem; Remove
   use of VM_MIXEDMAP; Cleanups
Driver Changes:
 * drm/bridge: Add TI SN65DSI83 and SN65DSI84 + DT bindings
 * drm/hyperv: Add DRM driver for HyperV graphics output
 * drm/msm: Fix module dependencies
 * drm/panel: KD53T133: Support rotation
 * drm/pl111: Fix module dependencies
 * drm/qxl: Fixes
 * drm/stm: Cleanups
 * drm/sun4i: Be explicit about format modifiers
 * drm/vc4: Use struct gpio_desc; Cleanups
 * drm/vgem: Cleanups
 * drm/vmwgfx: Use ttm_bo_move_null() if there's nothing to copy
 * fbdev/mach64: Cleanups
 * fbdev/mb862xx: Use DEVICE_ATTR_RO
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/YMBw3DF2b9udByfT@linux-uq9g
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 0585442b000e..736b8c121979 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -4127,9 +4127,9 @@ static int amdgpu_device_recover_vram(struct amdgpu_device *adev)  	list_for_each_entry(shadow, &adev->shadow_list, shadow_list) {  		/* No need to recover an evicted BO */ -		if (shadow->tbo.mem.mem_type != TTM_PL_TT || -		    shadow->tbo.mem.start == AMDGPU_BO_INVALID_OFFSET || -		    shadow->parent->tbo.mem.mem_type != TTM_PL_VRAM) +		if (shadow->tbo.resource->mem_type != TTM_PL_TT || +		    shadow->tbo.resource->start == AMDGPU_BO_INVALID_OFFSET || +		    shadow->parent->tbo.resource->mem_type != TTM_PL_VRAM)  			continue;  		r = amdgpu_bo_restore_shadow(shadow, &next); | 
