]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/discovery: reserve discovery data at the top of VRAM
authorXiaojie Yuan <xiaojie.yuan@amd.com>
Thu, 10 Oct 2019 12:44:20 +0000 (20:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Oct 2019 19:48:46 +0000 (15:48 -0400)
commitfa81f4e560676276d19d2ebca400e55ce0e57b15
treea7eac25206dd2cf85c97df95db1a837e7636260f
parentecc4b2bc549656a35797a2a5d84ac5cf28aef170
drm/amdgpu/discovery: reserve discovery data at the top of VRAM

IP Discovery data is TMR fenced by the latest PSP BL,
so we need to reserve this region.

Tested on navi10/12/14 with VBIOS integrated with latest PSP BL.

v2: use DISCOVERY_TMR_SIZE macro as bo size
    use amdgpu_bo_create_kernel_at() to allocate bo

Signed-off-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/amd/include/discovery.h