diff options
author | Dave Airlie <airlied@redhat.com> | 2017-09-29 03:08:01 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-29 19:24:38 +0300 |
commit | 35b31f7c6464480b10f3a54c9a35699e02f17ae8 (patch) | |
tree | 0d59273b84ccea004d59c6d28ca10932917e24dc /drivers/gpu/drm/amd/amdgpu/nbio_v7_0.h | |
parent | 6cdb91e28128595c1e2b7d0fa1ead30dc34ff15c (diff) | |
download | linux-35b31f7c6464480b10f3a54c9a35699e02f17ae8.tar.xz |
amdgpu/soc15: make the pcie index/data registers constant.
These don't seem to change at runtime, and the initialisers
are constant data. This could be improved by not selecting
the apu/non-apu path on each pcie read/write access.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/nbio_v7_0.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/nbio_v7_0.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/nbio_v7_0.h b/drivers/gpu/drm/amd/amdgpu/nbio_v7_0.h index 054ff49427e6..21bad0098bf6 100644 --- a/drivers/gpu/drm/amd/amdgpu/nbio_v7_0.h +++ b/drivers/gpu/drm/amd/amdgpu/nbio_v7_0.h @@ -27,7 +27,7 @@ #include "soc15_common.h" extern struct nbio_hdp_flush_reg nbio_v7_0_hdp_flush_reg; -extern struct nbio_pcie_index_data nbio_v7_0_pcie_index_data; +extern const struct nbio_pcie_index_data nbio_v7_0_pcie_index_data; int nbio_v7_0_init(struct amdgpu_device *adev); u32 nbio_v7_0_get_atombios_scratch_regs(struct amdgpu_device *adev, uint32_t idx); |