]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
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)
commit421a2a30c121660c4628e4494dcca1fceab8a4be
tree9a1e82f112d113cbd344fcf4baaf403db5bbd8bc
parent1e09b05386f32efbebb798cf0341eca4b424c960
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