]> asedeno.scripts.mit.edu Git - linux.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)
commit5f6a556f98de425fcb7928456839a06f02156633
treea7eac25206dd2cf85c97df95db1a837e7636260f
parent4e71e0859292f96d4124805c4e02ef34366451b9
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