IH 7.0 support
Subsystems (2)
Alex Deucher
maintainercover IH 7.0 support
This series adds support for IH 7.0.x. IH is the interrupt handler on the GPU. Interrupts are written to a ring buffer and the driver walks the ring buffer handling the interrupt packets.
Patch 1 adds the new register headers and is very large, so I've omitted it.
Hawking Zhang (1):
drm/amdgpu: Add osssys v7_0_0 ip headers (v4)
Likun Gao (2):
drm/amdgpu: Add ih v7_0 ip block support
drm/amdgpu/discovery: Add ih v7_0 ip block
drivers/gpu/drm/amd/amdgpu/Makefile | 3 +- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 4 + drivers/gpu/drm/amd/amdgpu/ih_v7_0.c | 766 ++++++++++++ drivers/gpu/drm/amd/amdgpu/ih_v7_0.h | 28 + .../asic_reg/oss/osssys_7_0_0_offset.h | 279 +++++ .../asic_reg/oss/osssys_7_0_0_sh_mask.h | 1029 +++++++++++++++++ 6 files changed, 2108 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/amd/amdgpu/ih_v7_0.c create mode 100644 drivers/gpu/drm/amd/amdgpu/ih_v7_0.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/oss/osssys_7_0_0_offset.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/oss/osssys_7_0_0_sh_mask.h
Signature · 1 line
2.42.0
Alex Deucher
maintainerPATCH 2/3 drm/amdgpu: Add ih v7_0 ip block support
From: Likun Gao <[email protected]>
Add ih v7_0 ip block support.
Signed-off-by Likun Gao <[email protected]>
Signed-off-by Hawking Zhang <[email protected]>
Reviewed-by Hawking Zhang <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/Makefile | 3 +- drivers/gpu/drm/amd/amdgpu/ih_v7_0.c | 766 +++++++++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/ih_v7_0.h | 28 + 3 files changed, 796 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/amd/amdgpu/ih_v7_0.c create mode 100644 drivers/gpu/drm/amd/amdgpu/ih_v7_0.h
drivers/gpu/drm/amd/amdgpu/Makefile +2 -1
@@ -132,7 +132,8 @@ amdgpu-y += \ vega20_ih.o \ navi10_ih.o \ ih_v6_0.o \ - ih_v6_1.o + ih_v6_1.o \ + ih_v7_0.o # add PSP block amdgpu-y += \
drivers/gpu/drm/amd/amdgpu/ih_v7_0.c new file +766 -0
766 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/ih_v7_0.h new file +28 -0
@@ -0,0 +1,28 @@ +/* +* 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 __IH_V7_0_IH_H__ +#define __IH_V7_0_IH_H__ + +extern const struct amdgpu_ip_block_version ih_v7_0_ip_block; + +#endif
Signature · 1 line
2.42.0
Alex Deucher
maintainerPATCH 3/3 drm/amdgpu/discovery: Add ih v7_0 ip block
In reply to Alex DeucherFrom: Likun Gao <[email protected]>
Add ih v7_0 ip block.
Signed-off-by Likun Gao <[email protected]>
Reviewed-by Hawking Zhang <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +4 -0
@@ -69,6 +69,7 @@#include "navi10_ih.h" #include "ih_v6_0.h" #include "ih_v6_1.h" +#include "ih_v7_0.h" #include "gfx_v10_0.h" #include "gfx_v11_0.h" #include "sdma_v5_0.h"
@@ -1768,6 +1769,9 @@ static int amdgpu_discovery_set_ih_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (6 ,1 ,0 ):amdgpu_device_ip_block_add (adev, &ih_v6_1_ip_block);break ; +case IP_VERSION (7 ,0 ,0 ): +amdgpu_device_ip_block_add (adev, &ih_v7_0_ip_block); +break ;default : dev_err(adev->dev, "Failed to add ih ip block(OSSSYS_HWIP:0x%x)\n",
Signature · 1 line
2.42.0