drm/amdgpu/nbio6.1: add hw bug workaround for vega10/12
Subsystems (2)
PATCH 1/2 drm/amdgpu/nbio6.1: add hw bug workaround for vega10/12
Configure PCIE_CI_CNTL to work around a hw bug that affects some multi-GPU compute workloads.
--- drivers/gpu/drm/amd/amdgpu/nbio_v6_1.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/nbio_v6_1.c +7 -0
@@ -32,6 +32,7 @@#define smnCPM_CONTROL 0x11180460#define smnPCIE_CNTL2 0x11180070#define smnPCIE_CONFIG_CNTL 0x11180044 +#define smnPCIE_CI_CNTL 0x11180080static u32 nbio_v6_1_get_rev_id (struct amdgpu_device *adev) {
@@ -270,6 +271,12 @@ static void nbio_v6_1_init_registers(struct amdgpu_device *adev)if (def != data)WREG32_PCIE (smnPCIE_CONFIG_CNTL, data); + + def = data =RREG32_PCIE (smnPCIE_CI_CNTL); + data =REG_SET_FIELD (data,PCIE_CI_CNTL ,CI_SLV_ORDERING_DIS ,1 ); + +if (def != data) +WREG32_PCIE (smnPCIE_CI_CNTL, data); }const struct amdgpu_nbio_funcs nbio_v6_1_funcs = {
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20181219230921.20795-1-alexander.deucher-5C7GfCeVMHo@public.gmane.org
PATCH 2/2 drm/amdgpu/nbio7.4: add hw bug workaround for vega20
Configure PCIE_CI_CNTL to work around a hw bug that affects some multi-GPU compute workloads.
--- drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c +7 -0
@@ -31,6 +31,7 @@#define smnCPM_CONTROL 0x11180460#define smnPCIE_CNTL2 0x11180070 +#define smnPCIE_CI_CNTL 0x11180080static u32 nbio_v7_4_get_rev_id (struct amdgpu_device *adev) {
@@ -222,7 +223,13 @@ static void nbio_v7_4_detect_hw_virt(struct amdgpu_device *adev)static void nbio_v7_4_init_registers (struct amdgpu_device *adev) { +uint32_t def, data; + + def = data =RREG32_PCIE (smnPCIE_CI_CNTL); + data =REG_SET_FIELD (data,PCIE_CI_CNTL ,CI_SLV_ORDERING_DIS ,1 ); +if (def != data) +WREG32_PCIE (smnPCIE_CI_CNTL, data); }const struct amdgpu_nbio_funcs nbio_v7_4_funcs = {
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20181219230921.20795-2-alexander.deucher-5C7GfCeVMHo@public.gmane.org
RE: [PATCH 2/2] drm/amdgpu/nbio7.4: add hw bug workaround for vega20
Series Acked-by: Feifei Xu <[email protected]>
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Thursday, December 20, 2018 7:09 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>
Subject: [PATCH 2/2] drm/amdgpu/nbio7.4: add hw bug workaround for vega20
Configure PCIE_CI_CNTL to work around a hw bug that affects some multi-GPU compute workloads.
--- drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c +1 -0
@@ -31,6 +31,7 @@#define smnCPM_CONTROL 0x11180460#define smnPCIE_CNTL2 0x11180070 +#define smnPCIE_CI_CNTL 0x11180080 static u32 nbio_v7_4_get_rev_id(struct amdgpu_device *adev) { @@ -222,7 +223,13 @@ static void nbio_v7_4_detect_hw_virt(struct amdgpu_device *adev)
static void nbio_v7_4_init_registers(struct amdgpu_device *adev) {
+ uint32_t def, data;
+
+ def = data = RREG32_PCIE(smnPCIE_CI_CNTL);
+ data = REG_SET_FIELD(data, PCIE_CI_CNTL, CI_SLV_ORDERING_DIS, 1);
+ if (def != data)
+ WREG32_PCIE(smnPCIE_CI_CNTL, data);
}
const struct amdgpu_nbio_funcs nbio_v7_4_funcs = {
--
2.13.6
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Re: [PATCH 2/2] drm/amdgpu/nbio7.4: add hw bug workaround for vega20
In reply to a message not in the archiveThis patch set Reviewed-by: Harish Kasiviswanathan <[email protected]>
Quoted 24 lines · Alex Deucher
Configure
PCIE_CI_CNTLto work around a hw bug that affects some multi-GPU compute workloads.Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c | 7 +++++++ 1 file changed, 7 insertions(+)drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c +1
-0@@ -31,6 +31,7 @@#define smnCPM_CONTROL 0x11180460#define smnPCIE_CNTL2 0x11180070 +#define smnPCIE_CI_CNTL 0x11180080static u32 nbio_v7_4_get_rev_id (struct amdgpu_device *adev) {@@ -222,7 +223,13 @@ static void nbio_v7_4_detect_hw_virt(struct amdgpu_device *adev)static void nbio_v7_4_init_registers (struct amdgpu_device *adev) {
drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c static void nbio_v7_4_detect_hw_virt(struct amdgpu_device *adev) · line 235
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c +6
-0+uint32_t def, data; + + def = data =RREG32_PCIE (smnPCIE_CI_CNTL); + data =REG_SET_FIELD (data,PCIE_CI_CNTL ,CI_SLV_ORDERING_DIS ,1 ); +if (def != data) +WREG32_PCIE (smnPCIE_CI_CNTL, data); }const struct amdgpu_nbio_funcs nbio_v7_4_funcs = {
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 8883f8a2-47ca-3663-f0a2-9f1585efac74-5C7GfCeVMHo@public.gmane.org
Re: [PATCH 2/2] drm/amdgpu/nbio7.4: add hw bug workaround for vega20
This series are verified on 4 Vega20 by: Philip Yang <[email protected]>
Quoted 37 lines · Harish
This patch set Reviewed-by: Harish Kasiviswanathan <[email protected]>
Quoted 33 lines · Alex Deucher
Configure
PCIE_CI_CNTLto work around a hw bug that affects some multi-GPU compute workloads.Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c | 7 +++++++ 1 file changed, 7 insertions(+)drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c +7
-0@@ -31,6 +31,7 @@#define smnCPM_CONTROL 0x11180460#define smnPCIE_CNTL2 0x11180070 +#define smnPCIE_CI_CNTL 0x11180080static u32 nbio_v7_4_get_rev_id (struct amdgpu_device *adev) {@@ -222,7 +223,13 @@ static void nbio_v7_4_detect_hw_virt(struct amdgpu_device *adev)static void nbio_v7_4_init_registers (struct amdgpu_device *adev) { +uint32_t def, data; + + def = data =RREG32_PCIE (smnPCIE_CI_CNTL); + data =REG_SET_FIELD (data,PCIE_CI_CNTL ,CI_SLV_ORDERING_DIS ,1 ); +if (def != data) +WREG32_PCIE (smnPCIE_CI_CNTL, data); }
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c static void nbio_v7_4_detect_hw_virt(struct amdgpu_device *adev) · line 235
Quoted 1 line
drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c +0
-0const struct amdgpu_nbio_funcs nbio_v7_4_funcs = {_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx