drm/vram: fix incorrect flag variable usage.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Wen Pu
Tested-byQuoted 9 lines · Dave Airlie
From: Dave Airlie <[email protected]>
In
7053e0eab473119503f6565b4e398f9a73122481
drm/vram-helper: stop using TTM placement flagsit appears the flags got mixed up.
This should fix a regression on ast
[ 64.782340] WARNING: CPU: 51 PID: 1964 at drivers/gpu/drm/drm_gem_vram_helper.c:284 drm_gem_vram_offset+0x35/0x40 [drm_vram_helper]
......
Quoted 1 line
It may need this line:
Fixes 7053e0eab473 ("drm/vram-helper: stop using TTM placement flags")
If possible, kindly add following tags as appropriate:
Reported-by Pu Wen <[email protected]>
Tested-by Pu Wen <[email protected]>
Quoted 12 lines
Cc David Laight <[email protected]>Cc Christian König <[email protected]>--- drivers/gpu/drm/drm_gem_vram_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/drm_gem_vram_helper.c +0
-0
drivers/gpu/drm/drm_gem_vram_helper.c static void drm_gem_vram_placement(struct drm_gem_vram_object *gbo, · line 143
Quoted 5 lines
drivers/gpu/drm/drm_gem_vram_helper.c +1
-1@@ -140,7 +140,7 @@ static void drm_gem_vram_placement(struct drm_gem_vram_object *gbo,unsigned int c =0 ;if (pl_flag &DRM_GEM_VRAM_PL_FLAG_TOPDOWN ) - pl_flag =TTM_PL_FLAG_TOPDOWN ; + invariant_flag =TTM_PL_FLAG_TOPDOWN ;
invariant_flag should be invariant_flags :)
This change fix the regression on ast driver.
Thx.
Quoted 4 lines
drivers/gpu/drm/drm_gem_vram_helper.c +0
-0gbo->placement.placement = gbo->placements; gbo->placement.busy_placement = gbo->placements;
Signature · 6 lines
Regards, Pu Wen _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel