OSDN Git Service

drm/amdgpu:impl RREG32 no kiq version
authorMonk Liu <Monk.Liu@amd.com>
Wed, 25 Jan 2017 07:07:40 +0000 (15:07 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:53:09 +0000 (23:53 -0400)
commit15d72fd7456b6273b89bd9c43e167e5867af389d
treeef9d39c2c7799d9dabeac240e55622cc910b89aa
parentb85c9d2a3bc105dc3f1236aadeb2855a39264a56
drm/amdgpu:impl RREG32 no kiq version

some registers are PF & VF copy, and we can safely use
mmio method to access them.

and sometime we are forbid to use kiq to access registers
for example in INTR context.

we need a MACRO that always disable KIQ for regs accessing

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