]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix start calculation in amdgpu_vram_mgr_new
authorChristian König <christian.koenig@amd.com>
Tue, 10 May 2022 10:52:05 +0000 (12:52 +0200)
committerChristian König <christian.koenig@amd.com>
Wed, 11 May 2022 08:01:55 +0000 (10:01 +0200)
commit8c6ff1766906ac825cfa7bc789eceba51769c5c3
tree589f3d9892b1309dadb33cb312c343194759ae3f
parentb04476592108d7a3ae8460d079dc479625ca77a4
drm/amdgpu: fix start calculation in amdgpu_vram_mgr_new

We still need to calculate a virtual start address for the resource to
aid checking of it is visible or not. Only matters on small BAR systems,
but better save than sorry.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220510113649.879821-1-christian.koenig@amd.com
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c