drm/amdgpu: disable page queue on Vega10 SR-IOV VF
Subsystems (2)
PATCH 1/1 drm/amdgpu: disable page queue on Vega10 SR-IOV VF
Currently, SDMA page queue is not used under SR-IOV VF, and this queue will cause ring test failure in amdgpu module reload case. So just disable it.
--- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +3 -1
@@ -1451,7 +1451,9 @@ static int sdma_v4_0_early_init(void *handle) adev->sdma.has_page_queue = false; }else { adev->sdma.num_instances =2 ; -if (adev->asic_type !=CHIP_VEGA20 && +if ((adev->asic_type ==CHIP_VEGA10 ) &&amdgpu_sriov_vf ((adev))) + adev->sdma.has_page_queue = false; +else if (adev->asic_type !=CHIP_VEGA20 && adev->asic_type !=CHIP_VEGA12 ) adev->sdma.has_page_queue = true; }
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): 1541567720-4421-1-git-send-email-Trigger.Huang-5C7GfCeVMHo@public.gmane.org
Quoted 4 lines · Trigger Huang
Currently, SDMA page queue is not used under SR-IOV VF, and this queue will cause ring test failure in amdgpu module reload case. So just disable it.
Signed-off-by Trigger Huang <[email protected]>
Looks we ran into several issues about it on vega.
kfd also disabled vega10 for development.(but not sure the detail issue for them)
Thus, we may disable it for vega10 as well?
any comment? Alex, Christian, Flex.
Regards,
Jerry
Quoted 9 lines
--- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +0
-0
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c static int sdma_v4_0_early_init(void *handle) · line 1459
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +3
-1@@ -1451,7 +1451,9 @@ static int sdma_v4_0_early_init(void *handle) adev->sdma.has_page_queue = false; }else { adev->sdma.num_instances =2 ; -if (adev->asic_type !=CHIP_VEGA20 && +if ((adev->asic_type ==CHIP_VEGA10 ) &&amdgpu_sriov_vf ((adev))) + adev->sdma.has_page_queue = false; +else if (adev->asic_type !=CHIP_VEGA20 && adev->asic_type !=CHIP_VEGA12 ) adev->sdma.has_page_queue = true; }
_______________________________________________
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): 58f2bfe6-f085-cf35-35b6-768bc232cb99-5C7GfCeVMHo@public.gmane.org
Hi team
Why we need this page_queue in amdgpu ? can anyone share something of its introduction to the kmd ?
According to my understanding , gpu-scheduler already have couple levels of priority for contexts/entities , thus the job page_queue supposed to do (should be mapping/unmapping/moving) is already good took care of by "KERNEL" priority entities, and all other context/entity SDMA jobs will be handled after "KERNEL" jobs ...
So there is no real benefit to introduce page_queue (also for rlc_queue) to amdgpu with the existence of priority aware gpu-scheduler ... unless we are going to remove the "KERNEL" priority and always do the mapping/unmapping in page_queue ...
/Monk
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Zhang, Jerry(Junwei)
Sent: Wednesday, November 7, 2018 1:26 PM
To: Huang, Trigger <[email protected]>; [email protected]; Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Kuehling, Felix <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: disable page queue on Vega10 SR-IOV VF
Quoted 4 lines · Trigger Huang
Currently, SDMA page queue is not used under SR-IOV VF, and this queue will cause ring test failure in amdgpu module reload case. So just disable it.
Signed-off-by Trigger Huang <[email protected]>
Looks we ran into several issues about it on vega.
kfd also disabled vega10 for development.(but not sure the detail issue for them)
Thus, we may disable it for vega10 as well?
any comment? Alex, Christian, Flex.
Regards,
Jerry
Quoted 10 lines
--- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +0
-0
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c static int sdma_v4_0_early_init(void *handle) · line 1459
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +3
-1@@ -1451,7 +1451,9 @@ static int sdma_v4_0_early_init(void *handle) adev->sdma.has_page_queue = false; }else { adev->sdma.num_instances =2 ; -if (adev->asic_type !=CHIP_VEGA20 && +if ((adev->asic_type ==CHIP_VEGA10 ) &&amdgpu_sriov_vf ((adev))) + adev->sdma.has_page_queue = false; +else if (adev->asic_type !=CHIP_VEGA20 && adev->asic_type !=CHIP_VEGA12 ) adev->sdma.has_page_queue = true; }
_______________________________________________
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
A message that is not in the archive (sent off-list or not yet received): CY4PR1201MB0245DC9FB86F83A1485C647484C40-1iTaO6aE1DBfNQakwlCMTGrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/[email protected]
Hi guys,
this is necessary for recoverable page fault handling.
When the normal SDMA queue is blocked because of a page fault the SDMA firmware will switch to the paging queue so that we are able to handle the fault.
In general it should work on all Vega (but not Raven) components and we are going to need it when we enable recoverable page faults.
The only case I can see where we don't immediately need it is SRIOV, because the current planning is to not support recoverable page faults there.
Christian.
Am 07.11.18 um 08:21 schrieb Liu, Monk:
Quoted 44 lines
Hi team
Why we need this
page_queuein amdgpu ? can anyone share something of its introduction to the kmd ?
According to my understanding , gpu-scheduler already have couple levels of priority for contexts/entities , thus the jobpage_queuesupposed to do (should be mapping/unmapping/moving) is already good took care of by "KERNEL" priority entities, and all other context/entity SDMA jobs will be handled after "KERNEL" jobs ...So there is no real benefit to introduce
page_queue(also forrlc_queue) to amdgpu with the existence of priority aware gpu-scheduler ... unless we are going to remove the "KERNEL" priority and always do the mapping/unmapping inpage_queue.../Monk
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Zhang, Jerry(Junwei)
Sent: Wednesday, November 7, 2018 1:26 PM
To: Huang, Trigger <[email protected]>; [email protected]; Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Kuehling, Felix <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: disable page queue on Vega10 SR-IOV VFQuoted 4 lines · Trigger Huang
Currently, SDMA page queue is not used under SR-IOV VF, and this queue will cause ring test failure in amdgpu module reload case. So just disable it.
Signed-off-by Trigger Huang <[email protected]>Looks we ran into several issues about it on vega.
kfd also disabled vega10 for development.(but not sure the detail issue for them)Thus, we may disable it for vega10 as well?
any comment? Alex, Christian, Flex.Regards,
JerryQuoted 16 lines
--- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +2
-1@@ -1451,7 +1451,9 @@ static int sdma_v4_0_early_init(void *handle) adev->sdma.has_page_queue = false; }else { adev->sdma.num_instances =2 ; - if (adev->asic_type != CHIP_VEGA20 && +if ((adev->asic_type ==CHIP_VEGA10 ) &&amdgpu_sriov_vf ((adev))) + adev->sdma.has_page_queue = false;
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c static int sdma_v4_0_early_init(void *handle) · line 1459
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +1
-0+else if (adev->asic_type !=CHIP_VEGA20 && adev->asic_type !=CHIP_VEGA12 ) adev->sdma.has_page_queue = true; }_______________________________________________
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
A message that is not in the archive (sent off-list or not yet received): a55bcc6a-bba5-69c7-25fe-b46ca70dd9ac-5C7GfCeVMHo@public.gmane.org
Quoted 7 lines · Christian
Hi guys,
this is necessary for recoverable page fault handling.
When the normal SDMA queue is blocked because of a page fault the SDMA firmware will switch to the paging queue so that we are able to handle the fault.
Thanks for your info.
IIRC, page queue has higher priority than gfx queue(previously we were using), so the PT update job on page queue will always be scheduled first in HW.
And (not 100% sure) page queue is designed for page migration?
Anyway, we can disable it for SRIOV for their existing issues.
Regards,
Jerry
Quoted 4 lines
In general it should work on all Vega (but not Raven) components and we are going to need it when we enable recoverable page faults.
Quoted 59 lines
The only case I can see where we don't immediately need it is SRIOV, because the current planning is to not support recoverable page faults there.
Christian.
Am 07.11.18 um 08:21 schrieb Liu, Monk:
Quoted 52 lines
Hi team
Why we need this
page_queuein amdgpu ? can anyone share something of its introduction to the kmd ?
According to my understanding , gpu-scheduler already have couple levels of priority for contexts/entities , thus the jobpage_queuesupposed to do (should be mapping/unmapping/moving) is already good took care of by "KERNEL" priority entities, and all other context/entity SDMA jobs will be handled after "KERNEL" jobs ...So there is no real benefit to introduce
page_queue(also forrlc_queue) to amdgpu with the existence of priority aware gpu-scheduler ... unless we are going to remove the "KERNEL" priority and always do the mapping/unmapping inpage_queue.../Monk
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Zhang, Jerry(Junwei)
Sent: Wednesday, November 7, 2018 1:26 PM
To: Huang, Trigger <[email protected]>; [email protected]; Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Kuehling, Felix <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: disable page queue on Vega10 SR-IOV VFQuoted 4 lines · Trigger Huang
Currently, SDMA page queue is not used under SR-IOV VF, and this queue will cause ring test failure in amdgpu module reload case. So just disable it.
Signed-off-by Trigger Huang <[email protected]>Looks we ran into several issues about it on vega.
kfd also disabled vega10 for development.(but not sure the detail issue for them)Thus, we may disable it for vega10 as well?
any comment? Alex, Christian, Flex.Regards,
JerryQuoted 10 lines
--- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +0
-0drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c static int sdma_v4_0_early_init(void *handle) · line 1459
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +3
-1@@ -1451,7 +1451,9 @@ static int sdma_v4_0_early_init(void *handle) adev->sdma.has_page_queue = false; }else { adev->sdma.num_instances =2 ; -if (adev->asic_type !=CHIP_VEGA20 && +if ((adev->asic_type ==CHIP_VEGA10 ) &&amdgpu_sriov_vf ((adev))) + adev->sdma.has_page_queue = false; +else if (adev->asic_type !=CHIP_VEGA20 && adev->asic_type !=CHIP_VEGA12 ) adev->sdma.has_page_queue = true; }_______________________________________________
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
A message that is not in the archive (sent off-list or not yet received): 3d9e4cef-cfdb-0789-47ef-918669b47978-5C7GfCeVMHo@public.gmane.org
Am 07.11.18 um 08:41 schrieb Zhang, Jerry(Junwei):
Quoted 5 lines · Christian
Quoted 4 lines
Hi guys,
this is necessary for recoverable page fault handling.
Quoted 8 lines
Quoted 3 lines
When the normal SDMA queue is blocked because of a page fault the SDMA firmware will switch to the paging queue so that we are able to handle the fault.
Thanks for your info.
IIRC, page queue has higher priority than gfx queue(previously we were using),
so the PT update job on page queue will always be scheduled first in HW.
I think so, but that is not it's primary purpose. The key feature is that it still works even when the GFX or RLC queues are blocked because of fault handling.
Quoted 1 line
And (not 100% sure) page queue is designed for page migration?
Yes, well it is designed for page tables updates. Either while doing migration, fault handling or whatever reason you got.
Quoted 1 line
Anyway, we can disable it for SRIOV for their existing issues.
It would be nice to have for normal PD/PT updates under SRIOV as well, but as a short term workaround we can probably disable it.
Regards,
Christian.
Quoted 83 lines
Regards,
JerryQuoted 78 lines
In general it should work on all Vega (but not Raven) components and we are going to need it when we enable recoverable page faults.
The only case I can see where we don't immediately need it is SRIOV, because the current planning is to not support recoverable page faults there.
Christian.
Am 07.11.18 um 08:21 schrieb Liu, Monk:
Quoted 67 lines
Hi team
Why we need this
page_queuein amdgpu ? can anyone share something of its introduction to the kmd ?
According to my understanding , gpu-scheduler already have couple levels of priority for contexts/entities , thus the jobpage_queuesupposed to do (should be mapping/unmapping/moving) is already good took care of by "KERNEL" priority entities, and all other context/entity SDMA jobs will be handled after "KERNEL" jobs ...So there is no real benefit to introduce
page_queue(also forrlc_queue) to amdgpu with the existence of priority aware gpu-scheduler ... unless we are going to remove the "KERNEL" priority and always do the mapping/unmapping inpage_queue.../Monk
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Zhang, Jerry(Junwei)
Sent: Wednesday, November 7, 2018 1:26 PM
To: Huang, Trigger <[email protected]>; [email protected]; Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Kuehling, Felix <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: disable page queue on Vega10 SR-IOV VFQuoted 5 lines · Trigger Huang
Currently, SDMA page queue is not used under SR-IOV VF, and this queue will cause ring test failure in amdgpu module reload case. So just disable it.
Signed-off-by Trigger Huang <[email protected]>Looks we ran into several issues about it on vega.
kfd also disabled vega10 for development.(but not sure the detail issue for them)Thus, we may disable it for vega10 as well?
any comment? Alex, Christian, Flex.Regards,
JerryQuoted 20 lines
---
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c| 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +3
-1@@ -1451,7 +1451,9 @@ static int sdma_v4_0_early_init(void *handle) adev->sdma.has_page_queue = false; } else { adev->sdma.num_instances = 2; - if (adev->asic_type != CHIP_VEGA20 && + if ((adev->asic_type == CHIP_VEGA10) &&amdgpu_sriov_vf ((adev))) + adev->sdma.has_page_queue = false; + else if (adev->asic_type != CHIP_VEGA20 && adev->asic_type != CHIP_VEGA12) adev->sdma.has_page_queue = true;Quoted 1 line
}
_______________________________________________
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
A message that is not in the archive (sent off-list or not yet received): 1cc90233-70df-7441-d303-b9f18815df89-5C7GfCeVMHo@public.gmane.org
Quoted 9 lines · Christian
Am 07.11.18 um 08:41 schrieb Zhang, Jerry(Junwei):
Quoted 8 lines · Christian
Quoted 7 lines
Hi guys,
this is necessary for recoverable page fault handling.
When the normal SDMA queue is blocked because of a page fault the SDMA firmware will switch to the paging queue so that we are able to handle the fault.
Quoted 8 lines
Quoted 5 lines
Thanks for your info.
IIRC, page queue has higher priority than gfx queue(previously we were using),
so the PT update job on page queue will always be scheduled first in HW.I think so, but that is not it's primary purpose. The key feature is that it still works even when the GFX or RLC queues are blocked because of fault handling.
That sounds good functionality.
Quoted 8 lines
Quoted 2 lines
And (not 100% sure) page queue is designed for page migration?
Yes, well it is designed for page tables updates. Either while doing migration, fault handling or whatever reason you got.
Quoted 1 line
Anyway, we can disable it for SRIOV for their existing issues.
It would be nice to have for normal PD/PT updates under SRIOV as well, but as a short term workaround we can probably disable it.
Agree.
Regards,
Jerry
Quoted 84 lines
Regards,
Christian.Quoted 80 lines
Regards,
JerryQuoted 77 lines
In general it should work on all Vega (but not Raven) components and we are going to need it when we enable recoverable page faults.
The only case I can see where we don't immediately need it is SRIOV, because the current planning is to not support recoverable page faults there.
Christian.
Am 07.11.18 um 08:21 schrieb Liu, Monk:
Quoted 67 lines
Hi team
Why we need this
page_queuein amdgpu ? can anyone share something of its introduction to the kmd ?
According to my understanding , gpu-scheduler already have couple levels of priority for contexts/entities , thus the jobpage_queuesupposed to do (should be mapping/unmapping/moving) is already good took care of by "KERNEL" priority entities, and all other context/entity SDMA jobs will be handled after "KERNEL" jobs ...So there is no real benefit to introduce
page_queue(also forrlc_queue) to amdgpu with the existence of priority aware gpu-scheduler ... unless we are going to remove the "KERNEL" priority and always do the mapping/unmapping inpage_queue.../Monk
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Zhang, Jerry(Junwei)
Sent: Wednesday, November 7, 2018 1:26 PM
To: Huang, Trigger <[email protected]>; [email protected]; Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Kuehling, Felix <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: disable page queue on Vega10 SR-IOV VFQuoted 5 lines · Trigger Huang
Currently, SDMA page queue is not used under SR-IOV VF, and this queue will cause ring test failure in amdgpu module reload case. So just disable it.
Signed-off-by Trigger Huang <[email protected]>Looks we ran into several issues about it on vega.
kfd also disabled vega10 for development.(but not sure the detail issue for them)Thus, we may disable it for vega10 as well?
any comment? Alex, Christian, Flex.Regards,
JerryQuoted 20 lines
--- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +3
-1@@ -1451,7 +1451,9 @@ static int sdma_v4_0_early_init(void *handle) adev->sdma.has_page_queue = false; } else { adev->sdma.num_instances = 2; - if (adev->asic_type != CHIP_VEGA20 && + if ((adev->asic_type == CHIP_VEGA10) &&amdgpu_sriov_vf ((adev))) + adev->sdma.has_page_queue = false; + else if (adev->asic_type != CHIP_VEGA20 && adev->asic_type != CHIP_VEGA12) adev->sdma.has_page_queue = true;Quoted 1 line
}
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
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
Hi Christian
Thanks for sharing,
Do you further know why we need recoverable page faults ? is it prepared for PRT (or something like kernel page fault handling on CPU/MMU side)?
For SRIOV, in theoretically any feature*not* related with hardware scheduling (MES) or OS preemption (buggy with world switch preemption) is welcome to SR-IOV, no reason Not to support it as far as I know, unless not mature enough to enable it
/Monk
-----Original Message-----
From: Koenig, Christian
Sent: Wednesday, November 7, 2018 3:30 PM
To: Liu, Monk <[email protected]>; Zhang, Jerry <[email protected]>; Huang, Trigger <[email protected]>; [email protected]; Deucher, Alexander <[email protected]>; Kuehling, Felix <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: disable page queue on Vega10 SR-IOV VF
Hi guys,
this is necessary for recoverable page fault handling.
When the normal SDMA queue is blocked because of a page fault the SDMA firmware will switch to the paging queue so that we are able to handle the fault.
In general it should work on all Vega (but not Raven) components and we are going to need it when we enable recoverable page faults.
The only case I can see where we don't immediately need it is SRIOV, because the current planning is to not support recoverable page faults there.
Christian.
Am 07.11.18 um 08:21 schrieb Liu, Monk:
Quoted 50 lines
Hi team
Why we need this
page_queuein amdgpu ? can anyone share something of its introduction to the kmd ?
According to my understanding , gpu-scheduler already have couple levels of priority for contexts/entities , thus the jobpage_queuesupposed to do (should be mapping/unmapping/moving) is already good took care of by "KERNEL" priority entities, and all other context/entity SDMA jobs will be handled after "KERNEL" jobs ...So there is no real benefit to introduce
page_queue(also forrlc_queue) to amdgpu with the existence of priority aware gpu-scheduler ... unless we are going to remove the "KERNEL" priority and always do the mapping/unmapping inpage_queue.../Monk
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Zhang, Jerry(Junwei)
Sent: Wednesday, November 7, 2018 1:26 PM
To: Huang, Trigger <[email protected]>; [email protected]; Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Kuehling, Felix <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: disable page queue on Vega10 SR-IOV VFQuoted 4 lines · Trigger Huang
Currently, SDMA page queue is not used under SR-IOV VF, and this
queue will cause ring test failure in amdgpu module reload case. So just disable it.Signed-off-by Trigger Huang <[email protected]>Looks we ran into several issues about it on vega.
kfd also disabled vega10 for development.(but not sure the detail issue for them)Thus, we may disable it for vega10 as well?
any comment? Alex, Christian, Flex.Regards,
JerryQuoted 16 lines
--- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +2
-1@@ -1451,7 +1451,9 @@ static int sdma_v4_0_early_init(void *handle) adev->sdma.has_page_queue = false; }else { adev->sdma.num_instances =2 ; - if (adev->asic_type != CHIP_VEGA20 && +if ((adev->asic_type ==CHIP_VEGA10 ) &&amdgpu_sriov_vf ((adev))) + adev->sdma.has_page_queue = false;
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c static int sdma_v4_0_early_init(void *handle) · line 1459
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +1
-0+else if (adev->asic_type !=CHIP_VEGA20 && adev->asic_type !=CHIP_VEGA12 ) adev->sdma.has_page_queue = true; }_______________________________________________
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
A message that is not in the archive (sent off-list or not yet received): CY4PR1201MB024504705B85B1A71CFDBFCF84C40-1iTaO6aE1DBfNQakwlCMTGrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/[email protected]
Quoted 2 lines
is it prepared for PRT (or something like kernel page fault handling on CPU/MMU side)?
That is for providing shared virtual address space (e.g. when the CPU and GPU have the same VA view) as well as changing our memory management in general.
Quoted 2 lines
For SRIOV, in theoretically any feature*not* related with hardware scheduling (MES) or OS preemption (buggy with world switch preemption) is welcome to SR-IOV, no reason Not to support it as far as I know, unless not mature enough to enable it
The problem is that recoverable page faults in Vega10 are incompatible with SRIOV because a page fault can block the GPU for an undefined amount of time and Vega10 can't schedule those away from the hardware.
So the shader thread is blocked and can't be switched away. Under SRIOV that would mean that we just get killed by the hypervisor rather soon.
Christian.
Am 07.11.18 um 09:40 schrieb Liu, Monk:
Quoted 22 lines
Hi Christian
Thanks for sharing,
Do you further know why we need recoverable page faults ? is it prepared for PRT (or something like kernel page fault handling on CPU/MMU side)?For SRIOV, in theoretically any feature*not* related with hardware scheduling (MES) or OS preemption (buggy with world switch preemption) is welcome to SR-IOV, no reason Not to support it as far as I know, unless not mature enough to enable it
/Monk
-----Original Message-----
From: Koenig, Christian
Sent: Wednesday, November 7, 2018 3:30 PM
To: Liu, Monk <[email protected]>; Zhang, Jerry <[email protected]>; Huang, Trigger <[email protected]>; [email protected]; Deucher, Alexander <[email protected]>; Kuehling, Felix <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: disable page queue on Vega10 SR-IOV VFHi guys,
this is necessary for recoverable page fault handling.
When the normal SDMA queue is blocked because of a page fault the SDMA firmware will switch to the paging queue so that we are able to handle the fault.
Quoted 65 lines
In general it should work on all Vega (but not Raven) components and we are going to need it when we enable recoverable page faults.
The only case I can see where we don't immediately need it is SRIOV, because the current planning is to not support recoverable page faults there.
Christian.
Am 07.11.18 um 08:21 schrieb Liu, Monk:
Quoted 58 lines
Hi team
Why we need this
page_queuein amdgpu ? can anyone share something of its introduction to the kmd ?
According to my understanding , gpu-scheduler already have couple levels of priority for contexts/entities , thus the jobpage_queuesupposed to do (should be mapping/unmapping/moving) is already good took care of by "KERNEL" priority entities, and all other context/entity SDMA jobs will be handled after "KERNEL" jobs ...So there is no real benefit to introduce
page_queue(also forrlc_queue) to amdgpu with the existence of priority aware gpu-scheduler ... unless we are going to remove the "KERNEL" priority and always do the mapping/unmapping inpage_queue.../Monk
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Zhang, Jerry(Junwei)
Sent: Wednesday, November 7, 2018 1:26 PM
To: Huang, Trigger <[email protected]>; [email protected]; Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Kuehling, Felix <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: disable page queue on Vega10 SR-IOV VFQuoted 4 lines · Trigger Huang
Currently, SDMA page queue is not used under SR-IOV VF, and this
queue will cause ring test failure in amdgpu module reload case. So just disable it.Signed-off-by Trigger Huang <[email protected]>Looks we ran into several issues about it on vega.
kfd also disabled vega10 for development.(but not sure the detail issue for them)Thus, we may disable it for vega10 as well?
any comment? Alex, Christian, Flex.Regards,
JerryQuoted 10 lines
--- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +0
-0drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c static int sdma_v4_0_early_init(void *handle) · line 1459
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +3
-1@@ -1451,7 +1451,9 @@ static int sdma_v4_0_early_init(void *handle) adev->sdma.has_page_queue = false; }else { adev->sdma.num_instances =2 ; -if (adev->asic_type !=CHIP_VEGA20 && +if ((adev->asic_type ==CHIP_VEGA10 ) &&amdgpu_sriov_vf ((adev))) + adev->sdma.has_page_queue = false; +else if (adev->asic_type !=CHIP_VEGA20 && adev->asic_type !=CHIP_VEGA12 ) adev->sdma.has_page_queue = true; }_______________________________________________
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
A message that is not in the archive (sent off-list or not yet received): 2898ea94-320c-ec03-87af-f6a05a7c3780-5C7GfCeVMHo@public.gmane.org
Yeah, we allow max up to 500ms to let RLCV finish the IDLE command for CP/GFX and SDMA together, and this already introduce very poor user experience ...
Looks like this feature doesn't applicable for world switch case
/Monk
-----Original Message-----
From: Koenig, Christian
Sent: Wednesday, November 7, 2018 4:48 PM
To: Liu, Monk <[email protected]>; Zhang, Jerry <[email protected]>; Huang, Trigger <[email protected]>; [email protected]; Deucher, Alexander <[email protected]>; Kuehling, Felix <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: disable page queue on Vega10 SR-IOV VF
Quoted 2 lines
is it prepared for PRT (or something like kernel page fault handling on CPU/MMU side)?
That is for providing shared virtual address space (e.g. when the CPU and GPU have the same VA view) as well as changing our memory management in general.
Quoted 4 lines
For SRIOV, in theoretically any feature*not* related with hardware scheduling (MES) or OS preemption (buggy with world switch preemption) is welcome to SR-IOV, no reason Not to support it as far as I know, unless not mature enough to enable it
The problem is that recoverable page faults in Vega10 are incompatible with SRIOV because a page fault can block the GPU for an undefined amount of time and Vega10 can't schedule those away from the hardware.
So the shader thread is blocked and can't be switched away. Under SRIOV that would mean that we just get killed by the hypervisor rather soon.
Christian.
Am 07.11.18 um 09:40 schrieb Liu, Monk:
Quoted 28 lines
Hi Christian
Thanks for sharing,
Do you further know why we need recoverable page faults ? is it prepared for PRT (or something like kernel page fault handling on CPU/MMU side)?For SRIOV, in theoretically any feature*not* related with hardware scheduling (MES) or OS preemption (buggy with world switch preemption) is welcome to SR-IOV, no reason Not to support it as far as I know, unless not mature enough to enable it
/Monk
-----Original Message-----
From: Koenig, Christian
Sent: Wednesday, November 7, 2018 3:30 PM
To: Liu, Monk <[email protected]>; Zhang, Jerry <[email protected]>; Huang, Trigger <[email protected]>; [email protected]; Deucher, Alexander <[email protected]>; Kuehling, Felix <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: disable page queue on Vega10 SR-IOV VFHi guys,
this is necessary for recoverable page fault handling.
When the normal SDMA queue is blocked because of a page fault the SDMA firmware will switch to the paging queue so that we are able to handle the fault.
Quoted 65 lines
In general it should work on all Vega (but not Raven) components and we are going to need it when we enable recoverable page faults.
The only case I can see where we don't immediately need it is SRIOV, because the current planning is to not support recoverable page faults there.
Christian.
Am 07.11.18 um 08:21 schrieb Liu, Monk:
Quoted 58 lines
Hi team
Why we need this
page_queuein amdgpu ? can anyone share something of its introduction to the kmd ?
According to my understanding , gpu-scheduler already have couple levels of priority for contexts/entities , thus the jobpage_queuesupposed to do (should be mapping/unmapping/moving) is already good took care of by "KERNEL" priority entities, and all other context/entity SDMA jobs will be handled after "KERNEL" jobs ...So there is no real benefit to introduce
page_queue(also forrlc_queue) to amdgpu with the existence of priority aware gpu-scheduler ... unless we are going to remove the "KERNEL" priority and always do the mapping/unmapping inpage_queue.../Monk
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Zhang, Jerry(Junwei)
Sent: Wednesday, November 7, 2018 1:26 PM
To: Huang, Trigger <[email protected]>; [email protected]; Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Kuehling, Felix <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: disable page queue on Vega10 SR-IOV VFQuoted 4 lines · Trigger Huang
Currently, SDMA page queue is not used under SR-IOV VF, and this
queue will cause ring test failure in amdgpu module reload case. So just disable it.Signed-off-by Trigger Huang <[email protected]>Looks we ran into several issues about it on vega.
kfd also disabled vega10 for development.(but not sure the detail issue for them)Thus, we may disable it for vega10 as well?
any comment? Alex, Christian, Flex.Regards,
JerryQuoted 10 lines
--- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +0
-0drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c static int sdma_v4_0_early_init(void *handle) · line 1459
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +3
-1@@ -1451,7 +1451,9 @@ static int sdma_v4_0_early_init(void *handle) adev->sdma.has_page_queue = false; }else { adev->sdma.num_instances =2 ; -if (adev->asic_type !=CHIP_VEGA20 && +if ((adev->asic_type ==CHIP_VEGA10 ) &&amdgpu_sriov_vf ((adev))) + adev->sdma.has_page_queue = false; +else if (adev->asic_type !=CHIP_VEGA20 && adev->asic_type !=CHIP_VEGA12 ) adev->sdma.has_page_queue = true; }_______________________________________________
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
[+Philip]
Quoted 6 lines · Jerry(Junwei)
Quoted 5 lines · Trigger Huang
Currently, SDMA page queue is not used under SR-IOV VF, and this queue will
cause ring test failure in amdgpu module reload case. So just disable it.
Quoted 8 lines
Quoted 1 line
Signed-off-by Trigger Huang <[email protected]>Looks we ran into several issues about it on vega.
kfd also disabled vega10 for development.(but not sure the detail issue for them)Thus, we may disable it for vega10 as well?
any comment? Alex, Christian, Flex.
We ran into a regression with the page queue in a specific KFDTest that runs user mode SDMA in two processes. The SDMA engine would stall for about 6 seconds after one of the processes terminates (and destroys its queues). We don't have a root cause. Suspect an SDMA firmware issue.
Regards,
Felix
Quoted 21 lines
Regards,
JerryQuoted 18 lines
---
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c| 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +3
-1@@ -1451,7 +1451,9 @@ static int sdma_v4_0_early_init(void *handle) adev->sdma.has_page_queue = false; } else { adev->sdma.num_instances = 2; - if (adev->asic_type != CHIP_VEGA20 && + if ((adev->asic_type == CHIP_VEGA10) &&amdgpu_sriov_vf ((adev))) + adev->sdma.has_page_queue = false; + else if (adev->asic_type != CHIP_VEGA20 &&
Quoted 8 lines
Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +0
-0adev->asic_type != CHIP_VEGA12) adev->sdma.has_page_queue = true;}
_______________________________________________
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
A message that is not in the archive (sent off-list or not yet received): 92878134-d159-bbda-5d10-3f8792bf5235-5C7GfCeVMHo@public.gmane.org
Quoted 16 lines · Felix
[+Philip]
Quoted 6 lines · Jerry(Junwei)
Quoted 5 lines · Trigger Huang
Currently, SDMA page queue is not used under SR-IOV VF, and this queue will
cause ring test failure in amdgpu module reload case. So just disable it.Quoted 7 lines
Quoted 1 line
Signed-off-by Trigger Huang <[email protected]>Looks we ran into several issues about it on vega.
kfd also disabled vega10 for development.(but not sure the detail issue for them)Thus, we may disable it for vega10 as well?
any comment? Alex, Christian, Flex.
Quoted 7 lines
We ran into a regression with the page queue in a specific KFDTest that runs user mode SDMA in two processes. The SDMA engine would stall for about 6 seconds after one of the processes terminates (and destroys its queues). We don't have a root cause. Suspect an SDMA firmware issue.
Regards,
Felix
The SDMA firmware has root cause the bug, I have tested one SDMA firmware, that fixed
the KFDIPCTest.BasicTest issue. I am waiting for SDMA firmware check in then enable paging
queue for Vega 10. I has asked SDAM firmware if Vega12/Vega20 paging queue issue has
the same root cause.
Philip
Quoted 20 lines
Quoted 20 lines
Regards,
JerryQuoted 17 lines
--- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +2
-1@@ -1451,7 +1451,9 @@ static int sdma_v4_0_early_init(void *handle) adev->sdma.has_page_queue = false; } else { adev->sdma.num_instances = 2; - if (adev->asic_type != CHIP_VEGA20 && + if ((adev->asic_type == CHIP_VEGA10) &&amdgpu_sriov_vf ((adev))) + adev->sdma.has_page_queue = false;
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +1
-0+ else if (adev->asic_type != CHIP_VEGA20 && adev->asic_type != CHIP_VEGA12) adev->sdma.has_page_queue = true;}
_______________________________________________
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
Am 07.11.18 um 06:15 schrieb Trigger Huang:
Quoted 13 lines
Currently, SDMA page queue is not used under SR-IOV VF, and this queue will cause ring test failure in amdgpu module reload case. So just disable it.
Signed-off-by Trigger Huang <[email protected]>--- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +0
-0
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c static int sdma_v4_0_early_init(void *handle) · line 1456
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +3
-1@@ -1451,7 +1451,9 @@ static int sdma_v4_0_early_init(void *handle) adev->sdma.has_page_queue = false; }else { adev->sdma.num_instances =2 ; - if (adev->asic_type != CHIP_VEGA20 && +if ((adev->asic_type ==CHIP_VEGA10 ) &&amdgpu_sriov_vf ((adev))) + adev->sdma.has_page_queue = false; + else if (adev->asic_type != CHIP_VEGA20 &&
Please add a /* TODO: Page queue breaks driver reload under SRIOV */ comment.
With that done the patch is Reviewed-by: Christian König <[email protected]>.
Regards,
Christian.
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c static int sdma_v4_0_early_init(void *handle) · line 1459
Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +0
-0adev->asic_type != CHIP_VEGA12) adev->sdma.has_page_queue = true; }
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx