amd/amdgpu: add Arcturus vf DID support
Subsystems (3)
PATCH 1/3 amd/amdgpu: add Arcturus vf DID support
--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +1 -0
@@ -999,6 +999,7 @@ static const struct pci_device_id pciidlist[] = { {0x1002, 0x738C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARCTURUS}, {0x1002, 0x7388, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARCTURUS}, {0x1002, 0x738E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARCTURUS}, + {0x1002, 0x7390, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARCTURUS},/* Navi10 */ {0x1002, 0x7310, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_NAVI10}, {0x1002, 0x7312, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_NAVI10},
Signature · 6 lines
2.7.4 _______________________________________________ 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): 1565945960-21236-1-git-send-email-Frank.Min-5C7GfCeVMHo@public.gmane.org
PATCH 2/3 amd/amdkfd: add Arcturus vf DID support
--- drivers/gpu/drm/amd/amdkfd/kfd_device.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdkfd/kfd_device.c +1 -0
@@ -472,6 +472,7 @@ static const struct kfd_deviceid supported_devices[] = { { 0x738C, &arcturus_device_info }, /* Arcturus */ { 0x7388, &arcturus_device_info }, /* Arcturus */ { 0x738E, &arcturus_device_info }, /* Arcturus */ + { 0x7390, &arcturus_device_info }, /* Arcturus vf */ { 0x7310, &navi10_device_info }, /* Navi10 */ { 0x7312, &navi10_device_info }, /* Navi10 */ { 0x7318, &navi10_device_info }, /* Navi10 */
Signature · 6 lines
2.7.4 _______________________________________________ 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): 1565945960-21236-2-git-send-email-Frank.Min-5C7GfCeVMHo@public.gmane.org
答复: [PATCH 2/3] amd/amdkfd: add Arcturus vf DID support
Hi Alex,
Would you please help to review the kfd did add patch?
Best Regards,
Frank
-----邮件原件-----
发件人: Frank.Min <[email protected]>
发送时间: 2019年8月16日 16:59
收件人: [email protected]
抄送: Min, Frank <[email protected]>
主题: [PATCH 2/3] amd/amdkfd: add Arcturus vf DID support
--- drivers/gpu/drm/amd/amdkfd/kfd_device.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdkfd/kfd_device.c +1 -0
@@ -472,6 +472,7 @@ static const struct kfd_deviceid supported_devices[] = { { 0x738C, &arcturus_device_info }, /* Arcturus */ { 0x7388, &arcturus_device_info }, /* Arcturus */ { 0x738E, &arcturus_device_info }, /* Arcturus */ + { 0x7390, &arcturus_device_info }, /* Arcturus vf */ { 0x7310, &navi10_device_info }, /* Navi10 */ { 0x7312, &navi10_device_info }, /* Navi10 */ { 0x7318, &navi10_device_info }, /* Navi10 */
Signature · 6 lines
2.7.4 _______________________________________________ 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): CH2PR12MB371826317E0F21E4640E6E85E9A50-rV3HgkLYx2XF7pTSKeCIywdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Deucher, Alexander
Reviewed-by Alex DeucherRe: [PATCH 2/3] amd/amdkfd: add Arcturus vf DID support
________________________________
From: Min, Frank <[email protected]>
Sent: Thursday, August 22, 2019 4:24 AM
To: Zeng, Oak <[email protected]>; [email protected] <[email protected]>; Deucher, Alexander <[email protected]>
Subject: 答复: [PATCH 2/3] amd/amdkfd: add Arcturus vf DID support
Hi Alex,
Would you please help to review the kfd did add patch?
Best Regards,
Frank
-----邮件原件-----
发件人: Frank.Min <[email protected]>
发送时间: 2019年8月16日 16:59
收件人: [email protected]
抄送: Min, Frank <[email protected]>
主题: [PATCH 2/3] amd/amdkfd: add Arcturus vf DID support
--- drivers/gpu/drm/amd/amdkfd/kfd_device.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdkfd/kfd_device.c +1 -0
@@ -472,6 +472,7 @@ static const struct kfd_deviceid supported_devices[] = { { 0x738C, &arcturus_device_info }, /* Arcturus */ { 0x7388, &arcturus_device_info }, /* Arcturus */ { 0x738E, &arcturus_device_info }, /* Arcturus */ + { 0x7390, &arcturus_device_info }, /* Arcturus vf */ { 0x7310, &navi10_device_info }, /* Navi10 */ { 0x7312, &navi10_device_info }, /* Navi10 */ { 0x7318, &navi10_device_info }, /* Navi10 */
--
2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 3/3 amd/amdgpu: seperate sriov fb aperture setting
In reply to a message not in the archivesriov would not use agp, so seperate the fb aperture setting.
--- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 39 ++++++++++++++++++++------------ drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 12 +++++----- drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c | 27 +++++++++++++++------- 3 files changed, 49 insertions(+), 29 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c +24 -15
@@ -75,23 +75,32 @@ static void gfxhub_v1_0_init_system_aperture_regs(struct amdgpu_device *adev)WREG32_SOC15_RLC (GC ,0 , mmMC_VM_AGP_BOT, adev->gmc.agp_start >>24 );WREG32_SOC15_RLC (GC ,0 , mmMC_VM_AGP_TOP, adev->gmc.agp_end >>24 ); -/* Program the system aperture low logical page number. */ -WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_LOW_ADDR, -min (adev->gmc.fb_start, adev->gmc.agp_start) >>18 ); +if (amdgpu_sriov_vf (adev)) { +/* Program the system aperture low logical page number. */ +WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_LOW_ADDR, + adev->gmc.fb_start >>18 ); -if (adev->asic_type ==CHIP_RAVEN && adev->rev_id >=0x8 ) -/* -* Raven2 has a HW issue that it is unable to use the vram which -* is out of MC_VM_SYSTEM_APERTURE_HIGH_ADDR. So here is the -* workaround that increase system aperture high address (add 1) -* to get rid of the VM fault and hardware hang. -*/ WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_HIGH_ADDR, -max ((adev->gmc.fb_end >>18 ) +0x1 , - adev->gmc.agp_end >>18 )); -else -WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_HIGH_ADDR, -max (adev->gmc.fb_end, adev->gmc.agp_end) >>18 ); + adev->gmc.fb_end >>18 ); + }else { +/* Program the system aperture low logical page number. */ +WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_LOW_ADDR, +min (adev->gmc.fb_start, adev->gmc.agp_start) >>18 ); + +if (adev->asic_type ==CHIP_RAVEN && adev->rev_id >=0x8 ) +/* +* Raven2 has a HW issue that it is unable to use the vram which +* is out of MC_VM_SYSTEM_APERTURE_HIGH_ADDR. So here is the +* workaround that increase system aperture high address (add 1) +* to get rid of the VM fault and hardware hang. +*/ +WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_HIGH_ADDR, +max ((adev->gmc.fb_end >>18 ) +0x1 , + adev->gmc.agp_end >>18 )); +else +WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_HIGH_ADDR, +max (adev->gmc.fb_end, adev->gmc.agp_end) >>18 ); + }/* Set default page address. */ value = adev->vram_scratch.gpu_addr - adev->gmc.vram_start
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +6 -6
@@ -920,12 +920,12 @@ static void gmc_v9_0_vram_gtt_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc) {u64 base =0 ; -if (!amdgpu_sriov_vf (adev)) { -if (adev->asic_type ==CHIP_ARCTURUS ) - base =mmhub_v9_4_get_fb_location (adev); -else - base =mmhub_v1_0_get_fb_location (adev); - } + +if (adev->asic_type ==CHIP_ARCTURUS ) + base =mmhub_v9_4_get_fb_location (adev); +else + base =mmhub_v1_0_get_fb_location (adev); +/* add the xgmi offset of the physical node */ base += adev->gmc.xgmi.physical_node_id * adev->gmc.xgmi.node_segment_size;amdgpu_gmc_vram_location (adev, mc, base);
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c +19 -8
@@ -118,14 +118,25 @@ static void mmhub_v9_4_init_system_aperture_regs(struct amdgpu_device *adev, adev->gmc.agp_start >> 24);/* Program the system aperture low logical page number. */ -WREG32_SOC15_OFFSET (MMHUB ,0 , - mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_LOW_ADDR, - hubid *MMHUB_INSTANCE_REGISTER_OFFSET , -min (adev->gmc.fb_start, adev->gmc.agp_start) >>18 ); -WREG32_SOC15_OFFSET (MMHUB ,0 , - mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_HIGH_ADDR, - hubid *MMHUB_INSTANCE_REGISTER_OFFSET , -max (adev->gmc.fb_end, adev->gmc.agp_end) >>18 ); +if (amdgpu_sriov_vf (adev)) { +WREG32_SOC15_OFFSET (MMHUB ,0 , + mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_LOW_ADDR, + hubid *MMHUB_INSTANCE_REGISTER_OFFSET , + adev->gmc.fb_start >>18 ); +WREG32_SOC15_OFFSET (MMHUB ,0 , + mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_HIGH_ADDR, + hubid *MMHUB_INSTANCE_REGISTER_OFFSET , + adev->gmc.fb_end >>18 ); + }else { +WREG32_SOC15_OFFSET (MMHUB ,0 , + mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_LOW_ADDR, + hubid *MMHUB_INSTANCE_REGISTER_OFFSET , +min (adev->gmc.fb_start, adev->gmc.agp_start) >>18 ); +WREG32_SOC15_OFFSET (MMHUB ,0 , + mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_HIGH_ADDR, + hubid *MMHUB_INSTANCE_REGISTER_OFFSET , +max (adev->gmc.fb_end, adev->gmc.agp_end) >>18 ); + }/* Set default page address. */ value = adev->vram_scratch.gpu_addr - adev->gmc.vram_start +
Signature · 6 lines
2.7.4 _______________________________________________ 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): [email protected]
A message that is not in the archive (sent off-list or not yet received): 4c7208b2-f693-b283-16fb-cd44e88833cd-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
答复: [PATCH 3/3] amd/amdgpu: seperate sriov fb aperture setting
Hi Christian,
Thanks for your review.
For SRIOV, amdgpu_gmc_agp_location() would not be called, since it do not use AGP. Also there is no need to use the min and max to judge which range is correct for using.
Best Regards,
Frank
-----邮件原件-----
发件人: Christian König <[email protected]> 发送时间: 2019年8月19日 15:07
收件人: Min, Frank <[email protected]>; [email protected] 主题: Re: [PATCH 3/3] amd/amdgpu: seperate sriov fb aperture setting
Am 16.08.19 um 10:59 schrieb Frank.Min:
Quoted 1 line
sriov would not use agp, so seperate the fb aperture setting.
That won't work correctly. This way we don't program the AGP space into the hardware any more, but would still try to use it.
We rather need to adjust the amdgpu_gmc_agp_location() function or it's caller to not assign an AGP space in the first place.
Christian.
Quoted 115 lines
Change-Id I1372cd355326731a31361bff13d79e12121b8651Signed-off-by Frank.Min <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 39 ++++++++++++++++++++------------ drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 12 +++++----- drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c | 27 +++++++++++++++------- 3 files changed, 49 insertions(+), 29 deletions(-)drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c +24
-16@@ -75,23 +75,32 @@ static void gfxhub_v1_0_init_system_aperture_regs(struct amdgpu_device *adev)WREG32_SOC15_RLC (GC ,0 , mmMC_VM_AGP_BOT, adev->gmc.agp_start >>24 );WREG32_SOC15_RLC (GC ,0 , mmMC_VM_AGP_TOP, adev->gmc.agp_end >>24 ); -/* Program the system aperture low logical page number. */ -WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_LOW_ADDR, -min (adev->gmc.fb_start, adev->gmc.agp_start) >>18 ); +if (amdgpu_sriov_vf (adev)) { +/* Program the system aperture low logical page number. */ +WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_LOW_ADDR, + adev->gmc.fb_start >>18 ); -if (adev->asic_type ==CHIP_RAVEN && adev->rev_id >=0x8 ) -/* -* Raven2 has a HW issue that it is unable to use the vram which -* is out of MC_VM_SYSTEM_APERTURE_HIGH_ADDR. So here is the -* workaround that increase system aperture high address (add 1) -* to get rid of the VM fault and hardware hang. -*/ WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_HIGH_ADDR, -max ((adev->gmc.fb_end >>18 ) +0x1 , - adev->gmc.agp_end >>18 )); -else -WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_HIGH_ADDR, -max (adev->gmc.fb_end, adev->gmc.agp_end) >>18 ); + adev->gmc.fb_end >>18 ); + }else { +/* Program the system aperture low logical page number. */ +WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_LOW_ADDR, +min (adev->gmc.fb_start, adev->gmc.agp_start) >>18 ); + +if (adev->asic_type ==CHIP_RAVEN && adev->rev_id >=0x8 ) +/* +* Raven2 has a HW issue that it is unable to use the vram which +* is out of MC_VM_SYSTEM_APERTURE_HIGH_ADDR. So here is the +* workaround that increase system aperture high address (add 1) +* to get rid of the VM fault and hardware hang. +*/ +WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_HIGH_ADDR, +max ((adev->gmc.fb_end >>18 ) +0x1 , + adev->gmc.agp_end >>18 )); +else +WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_HIGH_ADDR, +max (adev->gmc.fb_end, adev->gmc.agp_end) >>18 ); + }/* Set default page address. */ value = adev->vram_scratch.gpu_addr - adev->gmc.vram_start diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index 6de1726..1f8bdfa 100644drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +6
-6@@ -920,12 +920,12 @@ static void gmc_v9_0_vram_gtt_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc) {u64 base =0 ; -if (!amdgpu_sriov_vf (adev)) { -if (adev->asic_type ==CHIP_ARCTURUS ) - base =mmhub_v9_4_get_fb_location (adev); -else - base =mmhub_v1_0_get_fb_location (adev); - } + +if (adev->asic_type ==CHIP_ARCTURUS ) + base =mmhub_v9_4_get_fb_location (adev); +else + base =mmhub_v1_0_get_fb_location (adev); +/* add the xgmi offset of the physical node */ base += adev->gmc.xgmi.physical_node_id * adev->gmc.xgmi.node_segment_size; amdgpu_gmc_vram_location(adev, mc, base); diff --git
a/drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.cb/drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c
index 0cf7ef4..ea3359f 100644drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c +12
-8@@ -118,14 +118,25 @@ static void mmhub_v9_4_init_system_aperture_regs(struct amdgpu_device *adev, adev->gmc.agp_start >> 24);/* Program the system aperture low logical page number. */ -WREG32_SOC15_OFFSET (MMHUB ,0 , - mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_LOW_ADDR, - hubid *MMHUB_INSTANCE_REGISTER_OFFSET , -min (adev->gmc.fb_start, adev->gmc.agp_start) >>18 ); -WREG32_SOC15_OFFSET (MMHUB ,0 , - mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_HIGH_ADDR, - hubid *MMHUB_INSTANCE_REGISTER_OFFSET , -max (adev->gmc.fb_end, adev->gmc.agp_end) >>18 ); +if (amdgpu_sriov_vf (adev)) { +WREG32_SOC15_OFFSET (MMHUB ,0 , + mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_LOW_ADDR, + hubid *MMHUB_INSTANCE_REGISTER_OFFSET , + adev->gmc.fb_start >>18 ); +WREG32_SOC15_OFFSET (MMHUB ,0 , + mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_HIGH_ADDR, + hubid *MMHUB_INSTANCE_REGISTER_OFFSET , + adev->gmc.fb_end >>18 ); + }else { + WREG32_SOC15_OFFSET(MMHUB, 0, + mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_LOW_ADDR,
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c static void mmhub_v9_4_init_system_aperture_regs(struct amdgpu_device *adev, · line 142
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c +7
-0+ hubid *MMHUB_INSTANCE_REGISTER_OFFSET , + min(adev->gmc.fb_start, adev->gmc.agp_start) >> 18); +WREG32_SOC15_OFFSET (MMHUB ,0 , + mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_HIGH_ADDR, + hubid *MMHUB_INSTANCE_REGISTER_OFFSET , +max (adev->gmc.fb_end, adev->gmc.agp_end) >>18 ); + }/* Set default page address. */ value = adev->vram_scratch.gpu_addr - adev->gmc.vram_start +
_______________________________________________
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): CH2PR12MB371826055B2DB3CB600787E2E9A80-rV3HgkLYx2XF7pTSKeCIywdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Re: 答复: [PATCH 3/3] amd/amdgpu: seperate sriov fb aperture setting
Yeah, I thought so.
In this case we don't need this patch or is there anything I'm still missing?
The use of min/max here is exactly to avoid having a SRIOV dependency here.
Regards,
Christian.
Am 19.08.19 um 09:17 schrieb Min, Frank:
Quoted 143 lines
Hi Christian,
Thanks for your review.
For SRIOV,amdgpu_gmc_agp_location()would not be called, since it do not use AGP. Also there is no need to use the min and max to judge which range is correct for using.Best Regards,
Frank-----邮件原件-----
发件人: Christian König <[email protected]> 发送时间: 2019年8月19日 15:07
收件人: Min, Frank <[email protected]>; [email protected] 主题: Re: [PATCH 3/3] amd/amdgpu: seperate sriov fb aperture settingAm 16.08.19 um 10:59 schrieb Frank.Min:
Quoted 1 line
sriov would not use agp, so seperate the fb aperture setting.
That won't work correctly. This way we don't program the AGP space into the hardware any more, but would still try to use it.
We rather need to adjust the
amdgpu_gmc_agp_location()function or it's caller to not assign an AGP space in the first place.Christian.
Quoted 122 lines
Change-Id I1372cd355326731a31361bff13d79e12121b8651Signed-off-by Frank.Min <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 39 ++++++++++++++++++++------------ drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 12 +++++----- drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c | 27 +++++++++++++++------- 3 files changed, 49 insertions(+), 29 deletions(-)drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c +24
-16@@ -75,23 +75,32 @@ static void gfxhub_v1_0_init_system_aperture_regs(struct amdgpu_device *adev)WREG32_SOC15_RLC (GC ,0 , mmMC_VM_AGP_BOT, adev->gmc.agp_start >>24 );WREG32_SOC15_RLC (GC ,0 , mmMC_VM_AGP_TOP, adev->gmc.agp_end >>24 ); -/* Program the system aperture low logical page number. */ -WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_LOW_ADDR, -min (adev->gmc.fb_start, adev->gmc.agp_start) >>18 ); +if (amdgpu_sriov_vf (adev)) { +/* Program the system aperture low logical page number. */ +WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_LOW_ADDR, + adev->gmc.fb_start >>18 ); -if (adev->asic_type ==CHIP_RAVEN && adev->rev_id >=0x8 ) -/* -* Raven2 has a HW issue that it is unable to use the vram which -* is out of MC_VM_SYSTEM_APERTURE_HIGH_ADDR. So here is the -* workaround that increase system aperture high address (add 1) -* to get rid of the VM fault and hardware hang. -*/ WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_HIGH_ADDR, -max ((adev->gmc.fb_end >>18 ) +0x1 , - adev->gmc.agp_end >>18 )); -else -WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_HIGH_ADDR, -max (adev->gmc.fb_end, adev->gmc.agp_end) >>18 ); + adev->gmc.fb_end >>18 ); + }else { +/* Program the system aperture low logical page number. */ +WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_LOW_ADDR, +min (adev->gmc.fb_start, adev->gmc.agp_start) >>18 ); + +if (adev->asic_type ==CHIP_RAVEN && adev->rev_id >=0x8 ) +/* +* Raven2 has a HW issue that it is unable to use the vram which +* is out of MC_VM_SYSTEM_APERTURE_HIGH_ADDR. So here is the +* workaround that increase system aperture high address (add 1) +* to get rid of the VM fault and hardware hang. +*/ +WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_HIGH_ADDR, +max ((adev->gmc.fb_end >>18 ) +0x1 , + adev->gmc.agp_end >>18 )); +else +WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_HIGH_ADDR, +max (adev->gmc.fb_end, adev->gmc.agp_end) >>18 ); + }/* Set default page address. */ value = adev->vram_scratch.gpu_addr - adev->gmc.vram_start diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index 6de1726..1f8bdfa 100644drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +6
-6@@ -920,12 +920,12 @@ static void gmc_v9_0_vram_gtt_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc) {u64 base =0 ; -if (!amdgpu_sriov_vf (adev)) { -if (adev->asic_type ==CHIP_ARCTURUS ) - base =mmhub_v9_4_get_fb_location (adev); -else - base =mmhub_v1_0_get_fb_location (adev); - } + +if (adev->asic_type ==CHIP_ARCTURUS ) + base =mmhub_v9_4_get_fb_location (adev); +else + base =mmhub_v1_0_get_fb_location (adev); +/* add the xgmi offset of the physical node */ base += adev->gmc.xgmi.physical_node_id * adev->gmc.xgmi.node_segment_size; amdgpu_gmc_vram_location(adev, mc, base); diff --git
a/drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.cb/drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c
index 0cf7ef4..ea3359f 100644drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c +19
-8@@ -118,14 +118,25 @@ static void mmhub_v9_4_init_system_aperture_regs(struct amdgpu_device *adev, adev->gmc.agp_start >> 24);/* Program the system aperture low logical page number. */ -WREG32_SOC15_OFFSET (MMHUB ,0 , - mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_LOW_ADDR, - hubid *MMHUB_INSTANCE_REGISTER_OFFSET , -min (adev->gmc.fb_start, adev->gmc.agp_start) >>18 ); -WREG32_SOC15_OFFSET (MMHUB ,0 , - mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_HIGH_ADDR, - hubid *MMHUB_INSTANCE_REGISTER_OFFSET , -max (adev->gmc.fb_end, adev->gmc.agp_end) >>18 ); +if (amdgpu_sriov_vf (adev)) { +WREG32_SOC15_OFFSET (MMHUB ,0 , + mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_LOW_ADDR, + hubid *MMHUB_INSTANCE_REGISTER_OFFSET , + adev->gmc.fb_start >>18 ); +WREG32_SOC15_OFFSET (MMHUB ,0 , + mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_HIGH_ADDR, + hubid *MMHUB_INSTANCE_REGISTER_OFFSET , + adev->gmc.fb_end >>18 ); + }else { +WREG32_SOC15_OFFSET (MMHUB ,0 , + mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_LOW_ADDR, + hubid *MMHUB_INSTANCE_REGISTER_OFFSET , +min (adev->gmc.fb_start, adev->gmc.agp_start) >>18 ); +WREG32_SOC15_OFFSET (MMHUB ,0 , + mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_HIGH_ADDR, + hubid *MMHUB_INSTANCE_REGISTER_OFFSET , +max (adev->gmc.fb_end, adev->gmc.agp_end) >>18 ); + }
Quoted 2 lines
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c static void mmhub_v9_4_init_system_aperture_regs(struct amdgpu_device *adev, · line 142
Quoted 2 lines
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c +0
-0/* Set default page address. */ value = adev->vram_scratch.gpu_addr - adev->gmc.vram_start +
_______________________________________________
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): ff9df09f-f193-5c77-126e-9e0fa8cd158f-5C7GfCeVMHo@public.gmane.org
答复: 答复: [PATCH 3/3] amd/amdgpu: seperate sriov fb aperture setting
Hi Christian,
As I point out. For SRIOV, amdgpu_gmc_agp_location() would not be called, so the value calculation would not be valid. Would you please give more info why we need the AGP except for the zfb?
For another, whether you review the other patches?
Best Regards,
Frank
-----邮件原件-----
发件人: Koenig, Christian <[email protected]>
发送时间: 2019年8月19日 15:21
收件人: Min, Frank <[email protected]>; [email protected] 主题: Re: 答复: [PATCH 3/3] amd/amdgpu: seperate sriov fb aperture setting
Yeah, I thought so.
In this case we don't need this patch or is there anything I'm still missing?
The use of min/max here is exactly to avoid having a SRIOV dependency here.
Regards,
Christian.
Am 19.08.19 um 09:17 schrieb Min, Frank:
Quoted 144 lines
Hi Christian,
Thanks for your review.
For SRIOV,amdgpu_gmc_agp_location()would not be called, since it do not use AGP. Also there is no need to use the min and max to judge which range is correct for using.Best Regards,
Frank-----邮件原件-----
发件人: Christian König <[email protected]> 发送时间: 2019年8月19日 15:07
收件人: Min, Frank <[email protected]>; [email protected] 主题: Re: [PATCH 3/3] amd/amdgpu: seperate sriov fb aperture settingAm 16.08.19 um 10:59 schrieb Frank.Min:
Quoted 1 line
sriov would not use agp, so seperate the fb aperture setting.
That won't work correctly. This way we don't program the AGP space into the hardware any more, but would still try to use it.
We rather need to adjust the
amdgpu_gmc_agp_location()function or it's caller to not assign an AGP space in the first place.Christian.
Quoted 123 lines
Change-Id I1372cd355326731a31361bff13d79e12121b8651Signed-off-by Frank.Min <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 39 ++++++++++++++++++++------------ drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 12 +++++----- drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c | 27 +++++++++++++++------- 3 files changed, 49 insertions(+), 29 deletions(-)drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c +24
-15@@ -75,23 +75,32 @@ static void gfxhub_v1_0_init_system_aperture_regs(struct amdgpu_device *adev)WREG32_SOC15_RLC (GC ,0 , mmMC_VM_AGP_BOT, adev->gmc.agp_start >>24 );WREG32_SOC15_RLC (GC ,0 , mmMC_VM_AGP_TOP, adev->gmc.agp_end >>24 ); -/* Program the system aperture low logical page number. */ -WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_LOW_ADDR, -min (adev->gmc.fb_start, adev->gmc.agp_start) >>18 ); +if (amdgpu_sriov_vf (adev)) { +/* Program the system aperture low logical page number. */ +WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_LOW_ADDR, + adev->gmc.fb_start >>18 ); -if (adev->asic_type ==CHIP_RAVEN && adev->rev_id >=0x8 ) -/* -* Raven2 has a HW issue that it is unable to use the vram which -* is out of MC_VM_SYSTEM_APERTURE_HIGH_ADDR. So here is the -* workaround that increase system aperture high address (add 1) -* to get rid of the VM fault and hardware hang. -*/ WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_HIGH_ADDR, -max ((adev->gmc.fb_end >>18 ) +0x1 , - adev->gmc.agp_end >>18 )); -else -WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_HIGH_ADDR, -max (adev->gmc.fb_end, adev->gmc.agp_end) >>18 ); + adev->gmc.fb_end >>18 ); + }else { +/* Program the system aperture low logical page number. */ +WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_LOW_ADDR, +min (adev->gmc.fb_start, adev->gmc.agp_start) >>18 ); + +if (adev->asic_type ==CHIP_RAVEN && adev->rev_id >=0x8 ) +/* +* Raven2 has a HW issue that it is unable to use the vram which +* is out of MC_VM_SYSTEM_APERTURE_HIGH_ADDR. So here is the +* workaround that increase system aperture high address (add 1) +* to get rid of the VM fault and hardware hang. +*/ +WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_HIGH_ADDR, +max ((adev->gmc.fb_end >>18 ) +0x1 , + adev->gmc.agp_end >>18 )); +else +WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_HIGH_ADDR, +max (adev->gmc.fb_end, adev->gmc.agp_end) >>18 ); + }/* Set default page address. */ value = adev->vram_scratch.gpu_addr - adev->gmc.vram_start diff--git
a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.cb/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index 6de1726..1f8bdfa 100644drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +6
-6@@ -920,12 +920,12 @@ static void gmc_v9_0_vram_gtt_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc) {u64 base =0 ; -if (!amdgpu_sriov_vf (adev)) { -if (adev->asic_type ==CHIP_ARCTURUS ) - base =mmhub_v9_4_get_fb_location (adev); -else - base =mmhub_v1_0_get_fb_location (adev); - } + +if (adev->asic_type ==CHIP_ARCTURUS ) + base =mmhub_v9_4_get_fb_location (adev); +else + base =mmhub_v1_0_get_fb_location (adev); +/* add the xgmi offset of the physical node */ base += adev->gmc.xgmi.physical_node_id * adev->gmc.xgmi.node_segment_size; amdgpu_gmc_vram_location(adev, mc, base); diff --git
a/drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.cb/drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c
index 0cf7ef4..ea3359f 100644drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c +19
-8@@ -118,14 +118,25 @@ static void mmhub_v9_4_init_system_aperture_regs(struct amdgpu_device *adev, adev->gmc.agp_start >> 24);/* Program the system aperture low logical page number. */ -WREG32_SOC15_OFFSET (MMHUB ,0 , - mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_LOW_ADDR, - hubid *MMHUB_INSTANCE_REGISTER_OFFSET , -min (adev->gmc.fb_start, adev->gmc.agp_start) >>18 ); -WREG32_SOC15_OFFSET (MMHUB ,0 , - mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_HIGH_ADDR, - hubid *MMHUB_INSTANCE_REGISTER_OFFSET , -max (adev->gmc.fb_end, adev->gmc.agp_end) >>18 ); +if (amdgpu_sriov_vf (adev)) { +WREG32_SOC15_OFFSET (MMHUB ,0 , + mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_LOW_ADDR, + hubid *MMHUB_INSTANCE_REGISTER_OFFSET , + adev->gmc.fb_start >>18 ); +WREG32_SOC15_OFFSET (MMHUB ,0 , + mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_HIGH_ADDR, + hubid *MMHUB_INSTANCE_REGISTER_OFFSET , + adev->gmc.fb_end >>18 ); + }else { +WREG32_SOC15_OFFSET (MMHUB ,0 , + mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_LOW_ADDR, + hubid *MMHUB_INSTANCE_REGISTER_OFFSET , +min (adev->gmc.fb_start, adev->gmc.agp_start) >>18 ); +WREG32_SOC15_OFFSET (MMHUB ,0 , + mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_HIGH_ADDR, + hubid *MMHUB_INSTANCE_REGISTER_OFFSET , +max (adev->gmc.fb_end, adev->gmc.agp_end) >>18 ); + }
Quoted 2 lines
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c static void mmhub_v9_4_init_system_aperture_regs(struct amdgpu_device *adev, · line 142
Quoted 2 lines
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c +0
-0/* Set default page address. */ value = adev->vram_scratch.gpu_addr - adev->gmc.vram_start +
_______________________________________________
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): CH2PR12MB371854F14AE263D8BB8047C0E9A80-rV3HgkLYx2XF7pTSKeCIywdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Re: 答复: 答复: [PATCH 3/3] amd/amdgpu: seperate sriov fb aperture setting
Quoted 1 line
As I point out. For SRIOV,
amdgpu_gmc_agp_location()would not be called, so the value calculation would not be valid.
Yeah, that is a good point. The values are zero initialized, but that is probably not correct in this moment.
agp_start should be set to 0xffffffff and agp_end to 0x0, that are also the values the hardware uses to disable the AGP bar.
Quoted 1 line
Would you please give more info why we need the AGP except for the zfb?
Actually quite a bunch of things. In general we use it to access uncached system memory from VMID0 to avoid reprogramming the GART all the time.
This in turn is used mostly by the SDMA for keeping page table copies in system memory, but can also be used by things like scanout from system memory on APUs.
I don't think we have any use case for SRIOV, so disabling the feature should be fine.
Regards,
Christian.
Am 19.08.19 um 12:24 schrieb Min, Frank:
Quoted 168 lines
Hi Christian,
As I point out. For SRIOV,amdgpu_gmc_agp_location()would not be called, so the value calculation would not be valid. Would you please give more info why we need the AGP except for the zfb?For another, whether you review the other patches?
Best Regards,
Frank-----邮件原件-----
发件人: Koenig, Christian <[email protected]>
发送时间: 2019年8月19日 15:21
收件人: Min, Frank <[email protected]>; [email protected] 主题: Re: 答复: [PATCH 3/3] amd/amdgpu: seperate sriov fb aperture settingYeah, I thought so.
In this case we don't need this patch or is there anything I'm still missing?
The use of min/max here is exactly to avoid having a SRIOV dependency here.
Regards,
Christian.Am 19.08.19 um 09:17 schrieb Min, Frank:
Quoted 144 lines
Hi Christian,
Thanks for your review.
For SRIOV,amdgpu_gmc_agp_location()would not be called, since it do not use AGP. Also there is no need to use the min and max to judge which range is correct for using.Best Regards,
Frank-----邮件原件-----
发件人: Christian König <[email protected]> 发送时间: 2019年8月19日 15:07
收件人: Min, Frank <[email protected]>; [email protected] 主题: Re: [PATCH 3/3] amd/amdgpu: seperate sriov fb aperture settingAm 16.08.19 um 10:59 schrieb Frank.Min:
Quoted 1 line
sriov would not use agp, so seperate the fb aperture setting.
That won't work correctly. This way we don't program the AGP space into the hardware any more, but would still try to use it.
We rather need to adjust the
amdgpu_gmc_agp_location()function or it's caller to not assign an AGP space in the first place.Christian.
Quoted 123 lines
Change-Id I1372cd355326731a31361bff13d79e12121b8651Signed-off-by Frank.Min <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 39 ++++++++++++++++++++------------ drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 12 +++++----- drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c | 27 +++++++++++++++------- 3 files changed, 49 insertions(+), 29 deletions(-)drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c +24
-15@@ -75,23 +75,32 @@ static void gfxhub_v1_0_init_system_aperture_regs(struct amdgpu_device *adev)WREG32_SOC15_RLC (GC ,0 , mmMC_VM_AGP_BOT, adev->gmc.agp_start >>24 );WREG32_SOC15_RLC (GC ,0 , mmMC_VM_AGP_TOP, adev->gmc.agp_end >>24 ); -/* Program the system aperture low logical page number. */ -WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_LOW_ADDR, -min (adev->gmc.fb_start, adev->gmc.agp_start) >>18 ); +if (amdgpu_sriov_vf (adev)) { +/* Program the system aperture low logical page number. */ +WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_LOW_ADDR, + adev->gmc.fb_start >>18 ); -if (adev->asic_type ==CHIP_RAVEN && adev->rev_id >=0x8 ) -/* -* Raven2 has a HW issue that it is unable to use the vram which -* is out of MC_VM_SYSTEM_APERTURE_HIGH_ADDR. So here is the -* workaround that increase system aperture high address (add 1) -* to get rid of the VM fault and hardware hang. -*/ WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_HIGH_ADDR, -max ((adev->gmc.fb_end >>18 ) +0x1 , - adev->gmc.agp_end >>18 )); -else -WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_HIGH_ADDR, -max (adev->gmc.fb_end, adev->gmc.agp_end) >>18 ); + adev->gmc.fb_end >>18 ); + }else { +/* Program the system aperture low logical page number. */ +WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_LOW_ADDR, +min (adev->gmc.fb_start, adev->gmc.agp_start) >>18 ); + +if (adev->asic_type ==CHIP_RAVEN && adev->rev_id >=0x8 ) +/* +* Raven2 has a HW issue that it is unable to use the vram which +* is out of MC_VM_SYSTEM_APERTURE_HIGH_ADDR. So here is the +* workaround that increase system aperture high address (add 1) +* to get rid of the VM fault and hardware hang. +*/ +WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_HIGH_ADDR, +max ((adev->gmc.fb_end >>18 ) +0x1 , + adev->gmc.agp_end >>18 )); +else +WREG32_SOC15_RLC (GC ,0 , mmMC_VM_SYSTEM_APERTURE_HIGH_ADDR, +max (adev->gmc.fb_end, adev->gmc.agp_end) >>18 ); + }/* Set default page address. */ value = adev->vram_scratch.gpu_addr - adev->gmc.vram_start diff--git
a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.cb/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index 6de1726..1f8bdfa 100644drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +6
-6@@ -920,12 +920,12 @@ static void gmc_v9_0_vram_gtt_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc) {u64 base =0 ; -if (!amdgpu_sriov_vf (adev)) { -if (adev->asic_type ==CHIP_ARCTURUS ) - base =mmhub_v9_4_get_fb_location (adev); -else - base =mmhub_v1_0_get_fb_location (adev); - } + +if (adev->asic_type ==CHIP_ARCTURUS ) + base =mmhub_v9_4_get_fb_location (adev); +else + base =mmhub_v1_0_get_fb_location (adev); +/* add the xgmi offset of the physical node */ base += adev->gmc.xgmi.physical_node_id * adev->gmc.xgmi.node_segment_size; amdgpu_gmc_vram_location(adev, mc, base); diff --git
a/drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.cb/drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c
index 0cf7ef4..ea3359f 100644drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c +19
-8@@ -118,14 +118,25 @@ static void mmhub_v9_4_init_system_aperture_regs(struct amdgpu_device *adev, adev->gmc.agp_start >> 24);/* Program the system aperture low logical page number. */ -WREG32_SOC15_OFFSET (MMHUB ,0 , - mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_LOW_ADDR, - hubid *MMHUB_INSTANCE_REGISTER_OFFSET , -min (adev->gmc.fb_start, adev->gmc.agp_start) >>18 ); -WREG32_SOC15_OFFSET (MMHUB ,0 , - mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_HIGH_ADDR, - hubid *MMHUB_INSTANCE_REGISTER_OFFSET , -max (adev->gmc.fb_end, adev->gmc.agp_end) >>18 ); +if (amdgpu_sriov_vf (adev)) { +WREG32_SOC15_OFFSET (MMHUB ,0 , + mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_LOW_ADDR, + hubid *MMHUB_INSTANCE_REGISTER_OFFSET , + adev->gmc.fb_start >>18 ); +WREG32_SOC15_OFFSET (MMHUB ,0 , + mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_HIGH_ADDR, + hubid *MMHUB_INSTANCE_REGISTER_OFFSET , + adev->gmc.fb_end >>18 ); + }else { +WREG32_SOC15_OFFSET (MMHUB ,0 , + mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_LOW_ADDR, + hubid *MMHUB_INSTANCE_REGISTER_OFFSET , +min (adev->gmc.fb_start, adev->gmc.agp_start) >>18 ); +WREG32_SOC15_OFFSET (MMHUB ,0 , + mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_HIGH_ADDR, + hubid *MMHUB_INSTANCE_REGISTER_OFFSET , +max (adev->gmc.fb_end, adev->gmc.agp_end) >>18 ); + }
Quoted 2 lines
Quoted 2 lines
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c static void mmhub_v9_4_init_system_aperture_regs(struct amdgpu_device *adev, · line 142
Quoted 2 lines
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c +0
-0/* Set default page address. */ value = adev->vram_scratch.gpu_addr - adev->gmc.vram_start +
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Am 16.08.19 um 10:59 schrieb Frank.Min:
Quoted 2 lines
Change-Id I7153153785fdd54a10ebc47e778e06982edc79d7Signed-off-by Frank.Min <[email protected]>
Can't judge if the values are correct, but feel free to add an Acked-by: Christian König <[email protected]> to the first two patches.
Quoted 9 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c static const struct pci_device_id pciidlist[] = { · line 1005
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +1
-0@@ -999,6 +999,7 @@ static const struct pci_device_id pciidlist[] = { {0x1002, 0x738C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARCTURUS}, {0x1002, 0x7388, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARCTURUS}, {0x1002, 0x738E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARCTURUS}, + {0x1002, 0x7390, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARCTURUS},/* Navi10 */ {0x1002, 0x7310, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_NAVI10}, {0x1002, 0x7312, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_NAVI10},
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Xu, Feifei
Reviewed-by Feifei Xu-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Frank.Min
Sent: 2019年8月16日 16:59
To: [email protected]
Cc: Min, Frank <[email protected]>
Subject: [PATCH 1/3] amd/amdgpu: add Arcturus vf DID support
--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +1 -0
@@ -999,6 +999,7 @@ static const struct pci_device_id pciidlist[] = { {0x1002, 0x738C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARCTURUS}, {0x1002, 0x7388, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARCTURUS}, {0x1002, 0x738E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARCTURUS}, + {0x1002, 0x7390, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARCTURUS},/* Navi10 */ {0x1002, 0x7310, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_NAVI10}, {0x1002, 0x7312, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_NAVI10},
Signature · 10 lines
2.7.4 _______________________________________________ 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