add soc24 support
Subsystems (2)
Alex Deucher
maintainercover add soc24 support
Add SoC handler for SoC24 platforms.
First two patches add new headers which are omitted due to size.
Hawking Zhang (3):
drm/amdgpu: Add gc v12_0_0 ip headers (v4) drm/amdgpu: Add soc24 chip enum definitions (v4) drm/amdgpu: Add soc24 common ip block (v2)
Likun Gao (1):
drm/amdgpu/discovery: Add common soc24 ip block
drivers/gpu/drm/amd/amdgpu/Makefile | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 5 + drivers/gpu/drm/amd/amdgpu/soc24.c | 532 + drivers/gpu/drm/amd/amdgpu/soc24.h | 30 + .../include/asic_reg/gc/gc_12_0_0_offset.h | 11053 +++++ .../include/asic_reg/gc/gc_12_0_0_sh_mask.h | 40452 ++++++++++++++++ drivers/gpu/drm/amd/include/soc24_enum.h | 21073 ++++++++ 7 files changed, 73146 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/amd/amdgpu/soc24.c create mode 100644 drivers/gpu/drm/amd/amdgpu/soc24.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/gc/gc_12_0_0_offset.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/gc/gc_12_0_0_sh_mask.h create mode 100644 drivers/gpu/drm/amd/include/soc24_enum.h
Signature · 1 line
2.44.0
Alex Deucher
maintainerPATCH 3/4 drm/amdgpu: Add soc24 common ip block (v2)
From: Hawking Zhang <[email protected]>
Add initial soc24 support.
v1: Add soc24 common ip block.
v2: Switch to new select_se_sh/enter_safe_mode
interface.
v3: squash in correct ext rev id, etc. (Alex)
--- drivers/gpu/drm/amd/amdgpu/Makefile | 2 +- drivers/gpu/drm/amd/amdgpu/soc24.c | 532 ++++++++++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/soc24.h | 30 ++ 3 files changed, 563 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/amd/amdgpu/soc24.c create mode 100644 drivers/gpu/drm/amd/amdgpu/soc24.h
drivers/gpu/drm/amd/amdgpu/Makefile +1 -1
@@ -97,7 +97,7 @@ amdgpu-$(CONFIG_DRM_AMDGPU_SI)+= si.o gmc_v6_0.o gfx_v6_0.o si_ih.o si_dma.o dce amdgpu-y += \ vi.o mxgpu_vi.o nbio_v6_1.o soc15.o emu_soc.o mxgpu_ai.o nbio_v7_0.o vega10_reg_init.o \ vega20_reg_init.o nbio_v7_4.o nbio_v2_3.o nv.o arct_reg_init.o mxgpu_nv.o \ - nbio_v7_2.o hdp_v4_0.o hdp_v5_0.o aldebaran_reg_init.o aldebaran.o soc21.o \ + nbio_v7_2.o hdp_v4_0.o hdp_v5_0.o aldebaran_reg_init.o aldebaran.o soc21.o soc24.o \ sienna_cichlid.o smu_v13_0_10.o nbio_v4_3.o hdp_v6_0.o nbio_v7_7.o hdp_v5_2.o lsdma_v6_0.o \ nbio_v7_9.o aqua_vanjaram.o nbio_v7_11.o lsdma_v7_0.o hdp_v7_0.o nbif_v6_3_1.o
drivers/gpu/drm/amd/amdgpu/soc24.c new file +532 -0
532 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/soc24.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 __SOC24_H__ +#define __SOC24_H__ + +extern const struct amdgpu_ip_block_version soc24_common_ip_block; + +void soc24_grbm_select (struct amdgpu_device *adev, +u32 me,u32 pipe,u32 queue,u32 vmid); +#endif
Signature · 1 line
2.44.0
Alex Deucher
maintainerPATCH 4/4 drm/amdgpu/discovery: Add common soc24 ip block
In reply to Alex DeucherFrom: Likun Gao <[email protected]>
Add common soc24 ip block.
v2: squash in updates (Alex)
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +5 -0
@@ -68,6 +68,7 @@#include "hdp_v7_0.h" #include "nv.h" #include "soc21.h" +#include "soc24.h" #include "navi10_ih.h" #include "ih_v6_0.h" #include "ih_v6_1.h"
@@ -1700,6 +1701,10 @@ static int amdgpu_discovery_set_common_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (11 ,5 ,1 ):amdgpu_device_ip_block_add (adev, &soc21_common_ip_block);break ; +case IP_VERSION (12 ,0 ,0 ): +case IP_VERSION (12 ,0 ,1 ): +amdgpu_device_ip_block_add (adev, &soc24_common_ip_block); +break ;default : dev_err(adev->dev, "Failed to add common ip block(GC_HWIP:0x%x)\n",
Signature · 1 line
2.44.0