Add support for GMC 11.0.3
Subsystems (2)
Alex Deucher
maintainercover Add support for GMC 11.0.3
This set adds support for Graphics Memory Controller v11.0.3. Patch 1 contains new register headers and is too big for the mailing list.
Frank Min (1):
drm/amdgpu: add gc v11_0_3 ip headers
Hawking Zhang (2):
drm/amdgpu: initialize gmc sw config for v11_0_3 drm/amdgpu: add new ip block for GMC 11.0
Yang Wang (1):
drm/amdgpu: add gfxhub_v3_0_3 support
drivers/gpu/drm/amd/amdgpu/Makefile | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0_3.c | 511 + drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0_3.h | 29 + drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 11 +- .../include/asic_reg/gc/gc_11_0_3_offset.h | 12086 +++++ .../include/asic_reg/gc/gc_11_0_3_sh_mask.h | 44640 ++++++++++++++++ 7 files changed, 57278 insertions(+), 2 deletions(-) create mode 100644 drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0_3.c create mode 100644 drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0_3.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/gc/gc_11_0_3_offset.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/gc/gc_11_0_3_sh_mask.h
Signature · 1 line
2.37.1
Alex Deucher
maintainerPATCH 2/4 drm/amdgpu: add gfxhub_v3_0_3 support
From: Yang Wang <[email protected]>
add gfxhub_v3_0_3 support
--- drivers/gpu/drm/amd/amdgpu/Makefile | 2 +- drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0_3.c | 511 +++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0_3.h | 29 ++ drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 10 +- 4 files changed, 550 insertions(+), 2 deletions(-) create mode 100644 drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0_3.c create mode 100644 drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0_3.h
drivers/gpu/drm/amd/amdgpu/Makefile +1 -1
@@ -89,7 +89,7 @@ amdgpu-y += \ gfxhub_v1_0.o mmhub_v1_0.o gmc_v9_0.o gfxhub_v1_1.o mmhub_v9_4.o \ gfxhub_v2_0.o mmhub_v2_0.o gmc_v10_0.o gfxhub_v2_1.o mmhub_v2_3.o \ mmhub_v1_7.o gfxhub_v3_0.o mmhub_v3_0.o mmhub_v3_0_2.o gmc_v11_0.o \ - mmhub_v3_0_1.o + mmhub_v3_0_1.o gfxhub_v3_0_3.o # add UMC block amdgpu-y += \
drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0_3.c new file +511 -0
511 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0_3.h new file +29 -0
@@ -0,0 +1,29 @@ +/* +* Copyright 2022 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 __GFXHUB_V3_0_3_H__ +#define __GFXHUB_V3_0_3_H__ + +extern const struct amdgpu_gfxhub_funcs gfxhub_v3_0_3_funcs; + +#endif
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c +9 -1
@@ -39,6 +39,7 @@#include "soc15_common.h" #include "nbio_v4_3.h" #include "gfxhub_v3_0.h" +#include "gfxhub_v3_0_3.h" #include "mmhub_v3_0.h" #include "mmhub_v3_0_1.h" #include "mmhub_v3_0_2.h"
@@ -590,7 +591,14 @@ static void gmc_v11_0_set_mmhub_funcs(struct amdgpu_device *adev)static void gmc_v11_0_set_gfxhub_funcs (struct amdgpu_device *adev) { - adev->gfxhub.funcs = &gfxhub_v3_0_funcs; +switch (adev->ip_versions[GC_HWIP ][0 ]) { +case IP_VERSION (11 ,0 ,3 ): + adev->gfxhub.funcs = &gfxhub_v3_0_3_funcs; +break ; +default : + adev->gfxhub.funcs = &gfxhub_v3_0_funcs; +break ; + } }static int gmc_v11_0_early_init (void *handle)
Signature · 1 line
2.37.1
Alex Deucher
maintainerPATCH 3/4 drm/amdgpu: initialize gmc sw config for v11_0_3
In reply to Alex DeucherFrom: Hawking Zhang <[email protected]>
initialize gmc sw config for v11_0_3
--- drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c +1 -0
@@ -740,6 +740,7 @@ static int gmc_v11_0_sw_init(void *handle)case IP_VERSION (11 ,0 ,0 ):case IP_VERSION (11 ,0 ,1 ):case IP_VERSION (11 ,0 ,2 ): +case IP_VERSION (11 ,0 ,3 ): adev->num_vmhubs =2 ;/* * To fulfill 4-level page support,
Signature · 1 line
2.37.1
Alex Deucher
maintainerPATCH 4/4 drm/amdgpu: add new ip block for GMC 11.0
In reply to Alex DeucherFrom: Hawking Zhang <[email protected]>
Add ip block support for gmc v11_0_3.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -0
@@ -1550,6 +1550,7 @@ static int amdgpu_discovery_set_gmc_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (11 ,0 ,0 ):case IP_VERSION (11 ,0 ,1 ):case IP_VERSION (11 ,0 ,2 ): +case IP_VERSION (11 ,0 ,3 ):amdgpu_device_ip_block_add (adev, &gmc_v11_0_ip_block);break ;default :
Signature · 1 line
2.37.1