Add ATHUB 4.1 support
Subsystems (2)
Alex Deucher
maintainercover Add ATHUB 4.1 support
This adds support for ATHUB 4.1.x. The driver's interaction with this hardware is largely limited to enabling clockgating features.
The first just adds the register headers and is large, so I've omitted it.
Hawking Zhang (2):
drm/amdgpu: Add athub v4_1_0 ip headers (v5) drm/amdgpu: Add athub v4_1_0 ip block support
drivers/gpu/drm/amd/amdgpu/Makefile | 3 +- drivers/gpu/drm/amd/amdgpu/athub_v4_1_0.c | 121 ++ drivers/gpu/drm/amd/amdgpu/athub_v4_1_0.h | 30 + .../asic_reg/athub/athub_4_1_0_offset.h | 287 ++++ .../asic_reg/athub/athub_4_1_0_sh_mask.h | 1348 +++++++++++++++++ 5 files changed, 1788 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/amd/amdgpu/athub_v4_1_0.c create mode 100644 drivers/gpu/drm/amd/amdgpu/athub_v4_1_0.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/athub/athub_4_1_0_offset.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/athub/athub_4_1_0_sh_mask.h
Signature · 1 line
2.42.0
Alex Deucher
maintainerPATCH 2/2 drm/amdgpu: Add athub v4_1_0 ip block support
From: Hawking Zhang <[email protected]>
Add athub v4_1_0 ip block support.
Signed-off-by Hawking Zhang <[email protected]>
Reviewed-by Likun Gao <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/Makefile | 3 +- drivers/gpu/drm/amd/amdgpu/athub_v4_1_0.c | 121 ++++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/athub_v4_1_0.h | 30 ++++++ 3 files changed, 153 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/amd/amdgpu/athub_v4_1_0.c create mode 100644 drivers/gpu/drm/amd/amdgpu/athub_v4_1_0.h
drivers/gpu/drm/amd/amdgpu/Makefile +2 -1
@@ -233,7 +233,8 @@ amdgpu-y += \ athub_v1_0.o \ athub_v2_0.o \ athub_v2_1.o \ - athub_v3_0.o + athub_v3_0.o \ + athub_v4_1_0.o # add SMUIO block amdgpu-y += \
drivers/gpu/drm/amd/amdgpu/athub_v4_1_0.c new file +121 -0
121 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/athub_v4_1_0.h new file +30 -0
@@ -0,0 +1,30 @@ +/* +* Copyright 2023 Advanced Micro Devices, Inc. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR +* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +* +*/ +#ifndef __ATHUB_V4_1_0_H__ +#define __ATHUB_V4_1_0_H__ + +int athub_v4_1_0_set_clockgating (struct amdgpu_device *adev, +enum amd_clockgating_state state); +void athub_v4_1_0_get_clockgating (struct amdgpu_device *adev,u64 *flags); + +#endif
Signature · 1 line
2.42.0