Update GMC 11 support
Subsystems (2)
Alex Deucher
maintainercover Update GMC 11 support
Add support for gfxhub 11.5 and mmhub 3.3
support to the GMC (Graphics Memory Controller)
11 code.
The register headers in patch 1 are too
big for the mailing list.
Lang Yu (2):
drm/amdgpu: add mmhub 3.3.0 headers
drm/amdgpu: add mmhub 3.3.0 support
Prike Liang (1):
drm/amdgpu: enable gmc11 for GC 11.5.0
benl (1):
drm/amdgpu: add gfxhub 11.5.0 support
drivers/gpu/drm/amd/amdgpu/Makefile | 3 +- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + drivers/gpu/drm/amd/amdgpu/gfxhub_v11_5_0.c | 517 ++ drivers/gpu/drm/amd/amdgpu/gfxhub_v11_5_0.h | 29 + drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 8 + drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c | 590 ++ drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.h | 29 + .../asic_reg/mmhub/mmhub_3_3_0_offset.h | 1395 ++++ .../asic_reg/mmhub/mmhub_3_3_0_sh_mask.h | 6722 +++++++++++++++++ 9 files changed, 9293 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/amd/amdgpu/gfxhub_v11_5_0.c create mode 100644 drivers/gpu/drm/amd/amdgpu/gfxhub_v11_5_0.h create mode 100644 drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c create mode 100644 drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/mmhub/mmhub_3_3_0_offset.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/mmhub/mmhub_3_3_0_sh_mask.h
Signature · 1 line
2.41.0
Alex Deucher
maintainerPATCH 2/4 drm/amdgpu: add mmhub 3.3.0 support
From: Lang Yu <[email protected]>
Add initial implementation for mmhub 3.3.0.
v2: squash in client id fix (Alex)
--- drivers/gpu/drm/amd/amdgpu/Makefile | 2 +- drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 4 + drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c | 590 ++++++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.h | 29 ++ 4 files changed, 624 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c create mode 100644 drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.h
drivers/gpu/drm/amd/amdgpu/Makefile +1 -1
@@ -113,7 +113,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 gfxhub_v3_0_3.o gfxhub_v1_2.o mmhub_v1_8.o + mmhub_v3_0_1.o gfxhub_v3_0_3.o gfxhub_v1_2.o mmhub_v1_8.o mmhub_v3_3.o # add UMC block amdgpu-y += \
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c +4 -0
@@ -45,6 +45,7 @@#include "mmhub_v3_0.h" #include "mmhub_v3_0_1.h" #include "mmhub_v3_0_2.h" +#include "mmhub_v3_3.h" #include "athub_v3_0.h"
@@ -617,6 +618,9 @@ static void gmc_v11_0_set_mmhub_funcs(struct amdgpu_device *adev)case IP_VERSION (3 ,0 ,2 ): adev->mmhub.funcs = &mmhub_v3_0_2_funcs;break ; +case IP_VERSION (3 ,3 ,0 ): + adev->mmhub.funcs = &mmhub_v3_3_funcs; +break ;default : adev->mmhub.funcs = &mmhub_v3_0_funcs;break ;
drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c new file +590 -0
590 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.h new file +29 -0
@@ -0,0 +1,29 @@ +/* +* 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 __MMHUB_V3_3_H__ +#define __MMHUB_V3_3_H__ + +extern const struct amdgpu_mmhub_funcs mmhub_v3_3_funcs; + +#endif
Signature · 1 line
2.41.0
Alex Deucher
maintainerPATCH 3/4 drm/amdgpu: enable gmc11 for GC 11.5.0
In reply to Alex DeucherFrom: Prike Liang <[email protected]>
Add to IP discovery table.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -0
@@ -1665,6 +1665,7 @@ static int amdgpu_discovery_set_gmc_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (11 ,0 ,2 ):case IP_VERSION (11 ,0 ,3 ):case IP_VERSION (11 ,0 ,4 ): +case IP_VERSION (11 ,5 ,0 ):amdgpu_device_ip_block_add (adev, &gmc_v11_0_ip_block);break ;default :
Signature · 1 line
2.41.0
Alex Deucher
maintainerPATCH 4/4 drm/amdgpu: add gfxhub 11.5.0 support
In reply to Alex DeucherFrom: benl <[email protected]>
Add initial gfxhub 11.5 support.
--- drivers/gpu/drm/amd/amdgpu/Makefile | 3 +- drivers/gpu/drm/amd/amdgpu/gfxhub_v11_5_0.c | 517 ++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/gfxhub_v11_5_0.h | 29 ++ drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 4 + 4 files changed, 552 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/amd/amdgpu/gfxhub_v11_5_0.c create mode 100644 drivers/gpu/drm/amd/amdgpu/gfxhub_v11_5_0.h
drivers/gpu/drm/amd/amdgpu/Makefile +2 -1
@@ -113,7 +113,8 @@ 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 gfxhub_v3_0_3.o gfxhub_v1_2.o mmhub_v1_8.o mmhub_v3_3.o + mmhub_v3_0_1.o gfxhub_v3_0_3.o gfxhub_v1_2.o mmhub_v1_8.o mmhub_v3_3.o \ + gfxhub_v11_5_0.o # add UMC block amdgpu-y += \
drivers/gpu/drm/amd/amdgpu/gfxhub_v11_5_0.c new file +517 -0
517 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/gfxhub_v11_5_0.h new file +29 -0
@@ -0,0 +1,29 @@ +/* +* 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 __GFXHUB_V11_5_0_H__ +#define __GFXHUB_V11_5_0_H__ + +extern const struct amdgpu_gfxhub_funcs gfxhub_v11_5_0_funcs; + +#endif
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c +4 -0
@@ -42,6 +42,7 @@#include "nbio_v4_3.h" #include "gfxhub_v3_0.h" #include "gfxhub_v3_0_3.h" +#include "gfxhub_v11_5_0.h" #include "mmhub_v3_0.h" #include "mmhub_v3_0_1.h" #include "mmhub_v3_0_2.h"
@@ -633,6 +634,9 @@ static void gmc_v11_0_set_gfxhub_funcs(struct amdgpu_device *adev)case IP_VERSION (11 ,0 ,3 ): adev->gfxhub.funcs = &gfxhub_v3_0_3_funcs;break ; +case IP_VERSION (11 ,5 ,0 ): + adev->gfxhub.funcs = &gfxhub_v11_5_0_funcs; +break ;default : adev->gfxhub.funcs = &gfxhub_v3_0_funcs;break ;
Signature · 1 line
2.41.0