NBIO 7.11 support
Subsystems (2)
Alex Deucher
maintainercover NBIO 7.11 support
Add support for NBIO 7.11. NBIO (New Bus IO) is the block that handles the interface with the PCIe bus and other related things.
The patch to add the new register headers was too large for the mailing list.
Prike Liang (1):
drm/amdgpu/discovery: add nbio 7.11.0 support
benl (2):
drm/amdgpu: add nbio 7.11 registers drm/amdgpu: add nbio 7.11 support
drivers/gpu/drm/amd/amdgpu/Makefile | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 5 + drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c | 243 + drivers/gpu/drm/amd/amdgpu/nbio_v7_11.h | 33 + .../asic_reg/nbio/nbio_7_11_0_offset.h | 9391 +++ .../asic_reg/nbio/nbio_7_11_0_sh_mask.h | 57846 ++++++++++++++++ 6 files changed, 67519 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c create mode 100644 drivers/gpu/drm/amd/amdgpu/nbio_v7_11.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/nbio/nbio_7_11_0_offset.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/nbio/nbio_7_11_0_sh_mask.h
Signature · 1 line
2.41.0
Alex Deucher
maintainerPATCH 2/3 drm/amdgpu: add nbio 7.11 support
From: benl <[email protected]>
Add initial nbio 7.11 implementation.
Signed-off-by benl <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/Makefile | 2 +- drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c | 243 ++++++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/nbio_v7_11.h | 33 ++++ 3 files changed, 277 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c create mode 100644 drivers/gpu/drm/amd/amdgpu/nbio_v7_11.h
drivers/gpu/drm/amd/amdgpu/Makefile +1 -1
@@ -98,7 +98,7 @@ amdgpu-y += \ 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 \ 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_9.o aqua_vanjaram.o nbio_v7_11.o # add DF block amdgpu-y += \
drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c new file +243 -0
243 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/nbio_v7_11.h new file +33 -0
@@ -0,0 +1,33 @@ +/* +* Copyright 2021 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 __NBIO_V7_11_H__ +#define __NBIO_V7_11_H__ + +#include "soc15_common.h" + +extern const struct nbio_hdp_flush_reg nbio_v7_11_hdp_flush_reg; +extern const struct amdgpu_nbio_funcs nbio_v7_11_funcs; +extern const struct amdgpu_nbio_ras_funcs nbio_v7_11_ras_funcs; + +#endif
Signature · 1 line
2.41.0
Alex Deucher
maintainerPATCH 3/3 drm/amdgpu/discovery: add nbio 7.11.0 support
In reply to Alex DeucherFrom: Prike Liang <[email protected]>
Add to IP discovery table.
Signed-off-by Prike Liang <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +5 -0
@@ -39,6 +39,7 @@#include "nbio_v7_0.h" #include "nbio_v7_4.h" #include "nbio_v7_9.h" +#include "nbio_v7_11.h" #include "hdp_v4_0.h" #include "vega10_ih.h" #include "vega20_ih.h"
@@ -2395,6 +2396,10 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev) adev->nbio.funcs = &nbio_v7_9_funcs; adev->nbio.hdp_flush_reg = &nbio_v7_9_hdp_flush_reg;break ; +case IP_VERSION (7 ,11 ,0 ): + adev->nbio.funcs = &nbio_v7_11_funcs; + adev->nbio.hdp_flush_reg = &nbio_v7_11_hdp_flush_reg; +break ;case IP_VERSION (7 ,2 ,0 ):case IP_VERSION (7 ,2 ,1 ):case IP_VERSION (7 ,3 ,0 ):
Signature · 1 line
2.41.0