drm/amdgpu: soc15 pcie gen4 support
Subsystems (2)
PATCH 1/1 drm/amdgpu: soc15 pcie gen4 support
--- drivers/gpu/drm/amd/amdgpu/soc15.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/soc15.c +5 -4
@@ -569,7 +569,7 @@ static int soc15_set_vce_clocks(struct amdgpu_device *adev, u32 evclk, u32 ecclkreturn 0 ; } -static void soc15_pcie_gen3_enable (struct amdgpu_device *adev) +static void soc15_pcie_gen4_enable (struct amdgpu_device *adev) {if (pci_is_root_bus (adev->pdev->bus))return ;
@@ -581,7 +581,8 @@ static void soc15_pcie_gen3_enable(struct amdgpu_device *adev)return ;if (!(adev->pm.pcie_gen_mask & (CAIL_PCIE_LINK_SPEED_SUPPORT_GEN2 | -CAIL_PCIE_LINK_SPEED_SUPPORT_GEN3 ))) +CAIL_PCIE_LINK_SPEED_SUPPORT_GEN3 | +CAIL_PCIE_LINK_SPEED_SUPPORT_GEN4 )))return ;/* todo */
@@ -1374,8 +1375,8 @@ static int soc15_common_hw_init(void *handle) {struct amdgpu_device *adev = (struct amdgpu_device *)handle; -/* enable pcie gen2/3 link */ -soc15_pcie_gen3_enable (adev); +/* enable pcie gen2/3/4 link */ +soc15_pcie_gen4_enable (adev);/* enable aspm */ soc15_program_aspm (adev);/* setup nbio registers */
Signature · 6 lines
2.25.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 2 lines · Feifei Xu
Signed-off-by Feifei Xu <[email protected]>
Quoted 41 lines
--- drivers/gpu/drm/amd/amdgpu/soc15.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/amdgpu/soc15.c +5
-5@@ -569,7 +569,7 @@ static int soc15_set_vce_clocks(struct amdgpu_device *adev, u32 evclk, u32 ecclkreturn 0 ; } -static void soc15_pcie_gen3_enable (struct amdgpu_device *adev) +static void soc15_pcie_gen4_enable (struct amdgpu_device *adev) {if (pci_is_root_bus (adev->pdev->bus))return ;@@ -581,7 +581,8 @@ static void soc15_pcie_gen3_enable(struct amdgpu_device *adev)return ;if (!(adev->pm.pcie_gen_mask & (CAIL_PCIE_LINK_SPEED_SUPPORT_GEN2 | -CAIL_PCIE_LINK_SPEED_SUPPORT_GEN3 ))) +CAIL_PCIE_LINK_SPEED_SUPPORT_GEN3 | +CAIL_PCIE_LINK_SPEED_SUPPORT_GEN4 )))return ;/* todo */ @@ -1374,8 +1375,8 @@ static int soc15_common_hw_init(void *handle) {struct amdgpu_device *adev = (struct amdgpu_device *)handle; -/* enable pcie gen2/3 link */ -soc15_pcie_gen3_enable (adev); +/* enable pcie gen2/3/4 link */ +soc15_pcie_gen4_enable (adev);/* enable aspm */ soc15_program_aspm (adev);/* setup nbio registers */ --2.25.1
Quoted 4 lines
_______________________________________________
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
Chen, Guchun
Acked-by Alex Deucher[AMD Public Use]
How about module parameter check amdgpu_pcie_gen2 in soc15_pcie_gen4_enable? Is it necessary to modify it as well?
Regards,
Guchun
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Thursday, March 4, 2021 11:58 AM
To: Xu, Feifei <[email protected]>
Cc: amd-gfx list <[email protected]>; Zhang, Hawking <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: soc15 pcie gen4 support
Quoted 2 lines · Feifei Xu
Signed-off-by Feifei Xu <[email protected]>
Quoted 42 lines
--- drivers/gpu/drm/amd/amdgpu/soc15.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/amdgpu/soc15.c +6
-5@@ -569,7 +569,7 @@ static int soc15_set_vce_clocks(struct amdgpu_device *adev, u32 evclk, u32 ecclkreturn 0 ; } -static void soc15_pcie_gen3_enable (struct amdgpu_device *adev) +static void soc15_pcie_gen4_enable (struct amdgpu_device *adev) {if (pci_is_root_bus (adev->pdev->bus))return ;@@ -581,7 +581,8 @@ static void soc15_pcie_gen3_enable(struct amdgpu_device *adev)return ;if (!(adev->pm.pcie_gen_mask & (CAIL_PCIE_LINK_SPEED_SUPPORT_GEN2 | -CAIL_PCIE_LINK_SPEED_SUPPORT_GEN3 ))) +CAIL_PCIE_LINK_SPEED_SUPPORT_GEN3 | + +CAIL_PCIE_LINK_SPEED_SUPPORT_GEN4 )))return ;/* todo */ @@ -1374,8 +1375,8 @@ static int soc15_common_hw_init(void *handle) {struct amdgpu_device *adev = (struct amdgpu_device *)handle; -/* enable pcie gen2/3 link */ -soc15_pcie_gen3_enable (adev); +/* enable pcie gen2/3/4 link */ +soc15_pcie_gen4_enable (adev);/* enable aspm */ soc15_program_aspm (adev);/* setup nbio registers */ --2.25.1
Quoted 10 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist
s.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=04%7C01%7Cgu chun.chen%40amd.com%7Ca2af451ebb4b43bcc27b08d8dec1b4b5%7C3dd8961fe4884 e608e11a82d994e183d%7C0%7C0%7C637504270832366776%7CUnknown%7CTWFpbGZsb 3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D% 7C1000&sdata=jaNGe06yp8RXKQxMm%2F%2FdR%2F6DMC4h8viG3KUW3Sz2s7Y%3D& amp;reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=04%7C01%7Cguchun.chen%40amd.com%7Ca2af451ebb4b43bcc27b08d8dec1b4b5%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637504270832366776%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=jaNGe06yp8RXKQxMm%2F%2FdR%2F6DMC4h8viG3KUW3Sz2s7Y%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Lazar, Lijo
Acked-by Alex Deucher[AMD Public Use]
This function is doing nothing, is it necessary to maintain it? Not sure, if pcie gen support needs to be enabled specifically in driver.
Thanks,
Lijo
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Chen, Guchun
Sent: Thursday, March 4, 2021 1:06 PM
To: Alex Deucher <[email protected]>; Xu, Feifei <[email protected]>
Cc: amd-gfx list <[email protected]>; Zhang, Hawking <[email protected]>
Subject: RE: [PATCH] drm/amdgpu: soc15 pcie gen4 support
[AMD Public Use]
How about module parameter check amdgpu_pcie_gen2 in soc15_pcie_gen4_enable? Is it necessary to modify it as well?
Regards,
Guchun
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Thursday, March 4, 2021 11:58 AM
To: Xu, Feifei <[email protected]>
Cc: amd-gfx list <[email protected]>; Zhang, Hawking <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: soc15 pcie gen4 support
Quoted 2 lines · Feifei Xu
Signed-off-by Feifei Xu <[email protected]>
Quoted 42 lines
--- drivers/gpu/drm/amd/amdgpu/soc15.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/amdgpu/soc15.c +6
-5@@ -569,7 +569,7 @@ static int soc15_set_vce_clocks(struct amdgpu_device *adev, u32 evclk, u32 ecclkreturn 0 ; } -static void soc15_pcie_gen3_enable (struct amdgpu_device *adev) +static void soc15_pcie_gen4_enable (struct amdgpu_device *adev) {if (pci_is_root_bus (adev->pdev->bus))return ;@@ -581,7 +581,8 @@ static void soc15_pcie_gen3_enable(struct amdgpu_device *adev)return ;if (!(adev->pm.pcie_gen_mask & (CAIL_PCIE_LINK_SPEED_SUPPORT_GEN2 | -CAIL_PCIE_LINK_SPEED_SUPPORT_GEN3 ))) +CAIL_PCIE_LINK_SPEED_SUPPORT_GEN3 | + +CAIL_PCIE_LINK_SPEED_SUPPORT_GEN4 )))return ;/* todo */ @@ -1374,8 +1375,8 @@ static int soc15_common_hw_init(void *handle) {struct amdgpu_device *adev = (struct amdgpu_device *)handle; -/* enable pcie gen2/3 link */ -soc15_pcie_gen3_enable (adev); +/* enable pcie gen2/3/4 link */ +soc15_pcie_gen4_enable (adev);/* enable aspm */ soc15_program_aspm (adev);/* setup nbio registers */ --2.25.1
Quoted 10 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist
s.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=04%7C01%7Cgu chun.chen%40amd.com%7Ca2af451ebb4b43bcc27b08d8dec1b4b5%7C3dd8961fe4884 e608e11a82d994e183d%7C0%7C0%7C637504270832366776%7CUnknown%7CTWFpbGZsb 3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D% 7C1000&sdata=jaNGe06yp8RXKQxMm%2F%2FdR%2F6DMC4h8viG3KUW3Sz2s7Y%3D& amp;reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=04%7C01%7Clijo.lazar%40amd.com%7C8f330aec736c4dfe8b3d08d8dee01c35%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637504401425290833%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=9r5B6ckebE7FSvUHnZPKplh5c7fDMiK57U2RPnYSeM0%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=04%7C01%7Clijo.lazar%40amd.com%7C8f330aec736c4dfe8b3d08d8dee01c35%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637504401425290833%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=9r5B6ckebE7FSvUHnZPKplh5c7fDMiK57U2RPnYSeM0%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Xu, Feifei
Acked-by Alex DeucherYes, seems un-necessary in current implementation.
Thanks,
Feifei
-----Original Message-----
From: Lazar, Lijo <[email protected]>
Sent: Thursday, March 4, 2021 3:38 PM
To: Chen, Guchun <[email protected]>; Alex Deucher <[email protected]>; Xu, Feifei <[email protected]>
Cc: amd-gfx list <[email protected]>; Zhang, Hawking <[email protected]>
Subject: RE: [PATCH] drm/amdgpu: soc15 pcie gen4 support
[AMD Public Use]
This function is doing nothing, is it necessary to maintain it? Not sure, if pcie gen support needs to be enabled specifically in driver.
Thanks,
Lijo
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Chen, Guchun
Sent: Thursday, March 4, 2021 1:06 PM
To: Alex Deucher <[email protected]>; Xu, Feifei <[email protected]>
Cc: amd-gfx list <[email protected]>; Zhang, Hawking <[email protected]>
Subject: RE: [PATCH] drm/amdgpu: soc15 pcie gen4 support
[AMD Public Use]
How about module parameter check amdgpu_pcie_gen2 in soc15_pcie_gen4_enable? Is it necessary to modify it as well?
Regards,
Guchun
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Thursday, March 4, 2021 11:58 AM
To: Xu, Feifei <[email protected]>
Cc: amd-gfx list <[email protected]>; Zhang, Hawking <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: soc15 pcie gen4 support
Quoted 2 lines · Feifei Xu
Signed-off-by Feifei Xu <[email protected]>
Quoted 42 lines
--- drivers/gpu/drm/amd/amdgpu/soc15.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/amdgpu/soc15.c +6
-5@@ -569,7 +569,7 @@ static int soc15_set_vce_clocks(struct amdgpu_device *adev, u32 evclk, u32 ecclkreturn 0 ; } -static void soc15_pcie_gen3_enable (struct amdgpu_device *adev) +static void soc15_pcie_gen4_enable (struct amdgpu_device *adev) {if (pci_is_root_bus (adev->pdev->bus))return ;@@ -581,7 +581,8 @@ static void soc15_pcie_gen3_enable(struct amdgpu_device *adev)return ;if (!(adev->pm.pcie_gen_mask & (CAIL_PCIE_LINK_SPEED_SUPPORT_GEN2 | -CAIL_PCIE_LINK_SPEED_SUPPORT_GEN3 ))) +CAIL_PCIE_LINK_SPEED_SUPPORT_GEN3 | + +CAIL_PCIE_LINK_SPEED_SUPPORT_GEN4 )))return ;/* todo */ @@ -1374,8 +1375,8 @@ static int soc15_common_hw_init(void *handle) {struct amdgpu_device *adev = (struct amdgpu_device *)handle; -/* enable pcie gen2/3 link */ -soc15_pcie_gen3_enable (adev); +/* enable pcie gen2/3/4 link */ +soc15_pcie_gen4_enable (adev);/* enable aspm */ soc15_program_aspm (adev);/* setup nbio registers */ --2.25.1
Quoted 10 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist
s.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=04%7C01%7Cgu chun.chen%40amd.com%7Ca2af451ebb4b43bcc27b08d8dec1b4b5%7C3dd8961fe4884 e608e11a82d994e183d%7C0%7C0%7C637504270832366776%7CUnknown%7CTWFpbGZsb 3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D% 7C1000&sdata=jaNGe06yp8RXKQxMm%2F%2FdR%2F6DMC4h8viG3KUW3Sz2s7Y%3D& amp;reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=04%7C01%7Clijo.lazar%40amd.com%7C8f330aec736c4dfe8b3d08d8dee01c35%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637504401425290833%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=9r5B6ckebE7FSvUHnZPKplh5c7fDMiK57U2RPnYSeM0%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=04%7C01%7Clijo.lazar%40amd.com%7C8f330aec736c4dfe8b3d08d8dee01c35%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637504401425290833%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=9r5B6ckebE7FSvUHnZPKplh5c7fDMiK57U2RPnYSeM0%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[AMD Public Use]
Regards,
Hawking
-----Original Message-----
From: Feifei Xu <[email protected]>
Sent: Thursday, March 4, 2021 11:47
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Xu, Feifei <[email protected]>
Subject: [PATCH] drm/amdgpu: soc15 pcie gen4 support
--- drivers/gpu/drm/amd/amdgpu/soc15.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/soc15.c +5 -5
@@ -569,7 +569,7 @@ static int soc15_set_vce_clocks(struct amdgpu_device *adev, u32 evclk, u32 ecclkreturn 0 ; } -static void soc15_pcie_gen3_enable (struct amdgpu_device *adev) +static void soc15_pcie_gen4_enable (struct amdgpu_device *adev) {if (pci_is_root_bus (adev->pdev->bus))return ;
@@ -581,7 +581,8 @@ static void soc15_pcie_gen3_enable(struct amdgpu_device *adev)return ;if (!(adev->pm.pcie_gen_mask & (CAIL_PCIE_LINK_SPEED_SUPPORT_GEN2 | -CAIL_PCIE_LINK_SPEED_SUPPORT_GEN3 ))) +CAIL_PCIE_LINK_SPEED_SUPPORT_GEN3 | +CAIL_PCIE_LINK_SPEED_SUPPORT_GEN4 )))return ;/* todo */
@@ -1374,8 +1375,8 @@ static int soc15_common_hw_init(void *handle) {struct amdgpu_device *adev = (struct amdgpu_device *)handle; -/* enable pcie gen2/3 link */ -soc15_pcie_gen3_enable (adev); +/* enable pcie gen2/3/4 link */ +soc15_pcie_gen4_enable (adev);/* enable aspm */ soc15_program_aspm (adev);/* setup nbio registers */ --
2.25.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx