]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: implement mmio byte access helper for MB
authorMonk Liu <Monk.Liu@amd.com>
Thu, 4 Jan 2018 10:13:20 +0000 (18:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Mar 2018 19:38:26 +0000 (14:38 -0500)
commitffb59f0df0de61043ad55128986162068514bd12
tree9a1e82f112d113cbd344fcf4baaf403db5bbd8bc
parenteae3116206fa8bfd2694cf42967f67945a0a541d
drm/amdgpu: implement mmio byte access helper for MB

mailbox registers can be accessed with a byte boundry according
to BIF team, so this patch prepares register byte access
and will be used by following patches.

Actually, for mailbox registers once the byte field is touched even not changed,
the mailbox behaves, so we need the byte width accessing to those sort of regs.

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Pixel Ding <Pixel.Ding@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