diff options
| author | Dave Airlie <airlied@redhat.com> | 2024-02-12 13:00:53 +1000 | 
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2024-02-12 13:02:17 +1000 | 
| commit | 0de62399883d5077fd13d0926f5128a7e038b40c (patch) | |
| tree | 0b7873ba8cc6d1fdb664eb8fb3535c9453545b58 /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | |
| parent | f8e4806e0dfa8796b3d7076a7fe054455a59c38b (diff) | |
| parent | 3ce7384048fa1793db0eae013fa377d89256b76f (diff) | |
Merge tag 'drm-misc-next-2024-02-08' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
drm-misc-next for v6.9:
UAPI Changes:
Cross-subsystem Changes:
dma-buf:
- clean up docs
media:
- tc358743: fix v4l device registration
video:
- move all kernel parameters for video behind CONFIG_VIDEO
sound:
- remove <drm/drm_edid.h> include from header
Core Changes:
ci:
- add tests for msm
managed:
- add drmm_release_action() with tests
ttm:
- fix errno codes
- simply busy-placement handling
- fix page decryption
docs:
- add new external references
- clean up
Driver Changes:
amdgpu:
- clean up
bridge:
- imx: add i.MX8MP HDMI PVI plus DT bindings, add i.MX8MP HDMI TX plus DT
  bindings
- samsung-dsim: add bsh-smm-s2/pro boards
- sii902x: fix probing and unregistration
- tc358767: limit pixel PLL input range
- switch to new drm_bridge_read_edid() interface
- clean up
imx:
- use devm_ functions during init
- clean up
lima:
- fix memory leak
loongson:
- fail if no VRAM present
meson:
- switch to new drm_bridge_read_edid() interface
nouveau:
- clean up
panel:
- add BOE TH101MB31IG002-28A plus DT bindings
- add EDT ETML1010G3DRA plus DT bindings
- add Novatek NT36672E LCD DSI plus DT bindings
- nt36523: support 120Hz timings, fix includes
- simple: fix display timings on RK32FN48H
- visionox-vtdr6130: fix initialization
panel-orientation-quirks:
- GPD Win Mini
vmwgfx:
- list command SVGA_3D_CMD_DEFINE_GB_SURFACE_V4 as invalid
- fix null-pointer deref in execbuf
- refactor display-mode probing
- fix fencing for creating cursor MOBs
- fix cursor-memory lifetime
- clean up
xlnx:
- fix live video input for ZynqMP DPSUB
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20240208164242.GA14321@linux.fritz.box
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 11 | 
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 75c9fd2c6c2a..8722beba494e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c @@ -102,23 +102,19 @@ static void amdgpu_evict_flags(struct ttm_buffer_object *bo,  	/* Don't handle scatter gather BOs */  	if (bo->type == ttm_bo_type_sg) {  		placement->num_placement = 0; -		placement->num_busy_placement = 0;  		return;  	}  	/* Object isn't an AMDGPU object so ignore */  	if (!amdgpu_bo_is_amdgpu_bo(bo)) {  		placement->placement = &placements; -		placement->busy_placement = &placements;  		placement->num_placement = 1; -		placement->num_busy_placement = 1;  		return;  	}  	abo = ttm_to_amdgpu_bo(bo);  	if (abo->flags & AMDGPU_GEM_CREATE_DISCARDABLE) {  		placement->num_placement = 0; -		placement->num_busy_placement = 0;  		return;  	} @@ -128,13 +124,13 @@ static void amdgpu_evict_flags(struct ttm_buffer_object *bo,  	case AMDGPU_PL_OA:  	case AMDGPU_PL_DOORBELL:  		placement->num_placement = 0; -		placement->num_busy_placement = 0;  		return;  	case TTM_PL_VRAM:  		if (!adev->mman.buffer_funcs_enabled) {  			/* Move to system memory */  			amdgpu_bo_placement_from_domain(abo, AMDGPU_GEM_DOMAIN_CPU); +  		} else if (!amdgpu_gmc_vram_full_visible(&adev->gmc) &&  			   !(abo->flags & AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED) &&  			   amdgpu_bo_in_cpu_visible_vram(abo)) { @@ -149,8 +145,7 @@ static void amdgpu_evict_flags(struct ttm_buffer_object *bo,  							AMDGPU_GEM_DOMAIN_CPU);  			abo->placements[0].fpfn = adev->gmc.visible_vram_size >> PAGE_SHIFT;  			abo->placements[0].lpfn = 0; -			abo->placement.busy_placement = &abo->placements[1]; -			abo->placement.num_busy_placement = 1; +			abo->placements[0].flags |= TTM_PL_FLAG_DESIRED;  		} else {  			/* Move to GTT memory */  			amdgpu_bo_placement_from_domain(abo, AMDGPU_GEM_DOMAIN_GTT | @@ -966,8 +961,6 @@ int amdgpu_ttm_alloc_gart(struct ttm_buffer_object *bo)  	/* allocate GART space */  	placement.num_placement = 1;  	placement.placement = &placements; -	placement.num_busy_placement = 1; -	placement.busy_placement = &placements;  	placements.fpfn = 0;  	placements.lpfn = adev->gmc.gart_size >> PAGE_SHIFT;  	placements.mem_type = TTM_PL_TT;  | 
