]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: use static mmio offset for NV mailbox
authorMonk Liu <Monk.Liu@amd.com>
Wed, 4 Mar 2020 15:46:45 +0000 (23:46 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Apr 2020 18:44:43 +0000 (14:44 -0400)
commitd653290ec56e26b1a9df9d69c0df785e650a403c
treed9a5caad953871b3e09bec929bba434f09c475cf
parent4fa721f971f67a06b3f5c20f46ed3a5aa2a931ae
drm/amdgpu: use static mmio offset for NV mailbox

what:
with the new "req_init_data" handshake we need to use mailbox
before do IP discovery, so in mxgpu_nv.c file the original
SOC15_REG method won'twork because that depends on IP discovery
complete first.

how:
so the solution is to always use static MMIO offset for NV+ mailbox
registers.
HW team confirm us all MAILBOX registers will be at the same
offset for all ASICs, no IP discovery needed for those registers

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Emily Deng <Emily.Deng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c
drivers/gpu/drm/amd/amdgpu/mxgpu_nv.h