mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-27 03:49:57 -04:00
drm/amd/pm: Allocate dummy table only if needed
Only Navi1x requires dummy read workaround. Allocate the table in VRAM only for Navi1x. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -904,9 +904,8 @@ static int smu_alloc_dummy_read_table(struct smu_context *smu)
|
||||
struct amdgpu_device *adev = smu->adev;
|
||||
int ret = 0;
|
||||
|
||||
dummy_read_1_table->size = 0x40000;
|
||||
dummy_read_1_table->align = PAGE_SIZE;
|
||||
dummy_read_1_table->domain = AMDGPU_GEM_DOMAIN_VRAM;
|
||||
if (!dummy_read_1_table->size)
|
||||
return 0;
|
||||
|
||||
ret = amdgpu_bo_create_kernel(adev,
|
||||
dummy_read_1_table->size,
|
||||
|
||||
Reference in New Issue
Block a user