drm/amdgpu: no need fbcon under sriov
Subsystems (2)
PATCH 1/1 drm/amdgpu: no need fbcon under sriov
Under Sriov, there is no need of the support for fbcon.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +2 -1
@@ -1012,7 +1012,8 @@ amdgpu_pci_remove(struct pci_dev *pdev) {struct drm_device *dev =pci_get_drvdata (pdev); -DRM_ERROR ("Device removal is currently not supported outside of fbcon\n" ); +if (!amdgpu_sriov_vf (adev)) +DRM_ERROR ("Device removal is currently not supported outside of fbcon\n" );drm_dev_unplug (dev);drm_dev_put (dev);pci_disable_device (pdev);
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): 1559655785-30379-1-git-send-email-yttao-5C7GfCeVMHo@public.gmane.org
Christian König
NAKAm 04.06.19 um 15:43 schrieb Yintian Tao:
Quoted 1 line
Under Sriov, there is no need of the support for fbcon.
NAK, that error message is not related to fbcon but means that PCIe device removal is not supported.
Christian.
Quoted 11 lines
Signed-off-by Yintian Tao <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c amdgpu_pci_remove(struct pci_dev *pdev) · line 1019
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +2
-1@@ -1012,7 +1012,8 @@ amdgpu_pci_remove(struct pci_dev *pdev) {struct drm_device *dev =pci_get_drvdata (pdev); -DRM_ERROR ("Device removal is currently not supported outside of fbcon\n" ); +if (!amdgpu_sriov_vf (adev)) +DRM_ERROR ("Device removal is currently not supported outside of fbcon\n" );drm_dev_unplug (dev);drm_dev_put (dev);pci_disable_device (pdev);
_______________________________________________
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): 1686be7b-ca1c-e43c-3906-e6131e8d25e1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Tao, Yintian
NAKHi Christian
But when amdgpu driver is unloading, it will call this function.
And driver unloading is an legal case under SR-IOV.
Do you mean PCIe device removal indicates the unplug the real device?
Best Regards
Yitnian Tao
________________________________
发件人: Christian K?nig <[email protected]> 发送时间: 2019年6月4日 21:57:37
收件人: Tao, Yintian; [email protected] 主题: Re: [PATCH] drm/amdgpu: no need fbcon under sriov
Am 04.06.19 um 15:43 schrieb Yintian Tao:
Quoted 1 line
Under Sriov, there is no need of the support for fbcon.
NAK, that error message is not related to fbcon but means that PCIe device removal is not supported.
Christian.
Quoted 11 lines
Signed-off-by Yintian Tao <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c amdgpu_pci_remove(struct pci_dev *pdev) · line 1019
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +2
-1@@ -1012,7 +1012,8 @@ amdgpu_pci_remove(struct pci_dev *pdev) {struct drm_device *dev =pci_get_drvdata (pdev); -DRM_ERROR ("Device removal is currently not supported outside of fbcon\n" ); +if (!amdgpu_sriov_vf (adev)) +DRM_ERROR ("Device removal is currently not supported outside of fbcon\n" );drm_dev_unplug (dev);drm_dev_put (dev);pci_disable_device (pdev);
_______________________________________________
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): MN2PR12MB3039F0DD22910F40A6674546E5150-rweVpJHSKTr/[email protected]
Am 04.06.19 um 17:16 schrieb Tao, Yintian:
Hi Christian
But when amdgpu driver is unloading, it will call this function.
And driver unloading is an legal case under SR-IOV.
Do you mean PCIe device removal indicates the unplug the real device?
Yes, exactly and that is not supported.
Sounds like the error message is then on the wrong place.
Christian.
Best Regards
Yitnian Tao
________________________________
发件人: Christian König <[email protected]><mailto:[email protected]> 发送时间: 2019年6月4日 21:57:37
收件人: Tao, Yintian; [email protected]<mailto:[email protected]> 主题: Re: [PATCH] drm/amdgpu: no need fbcon under sriov
Am 04.06.19 um 15:43 schrieb Yintian Tao:
Quoted 1 line
Under Sriov, there is no need of the support for fbcon.
NAK, that error message is not related to fbcon but means that PCIe device removal is not supported.
Christian.
Quoted 11 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c amdgpu_pci_remove(struct pci_dev *pdev) · line 1019
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +2
-1@@ -1012,7 +1012,8 @@ amdgpu_pci_remove(struct pci_dev *pdev) {struct drm_device *dev =pci_get_drvdata (pdev); -DRM_ERROR ("Device removal is currently not supported outside of fbcon\n" ); +if (!amdgpu_sriov_vf (adev)) +DRM_ERROR ("Device removal is currently not supported outside of fbcon\n" );drm_dev_unplug (dev);drm_dev_put (dev);pci_disable_device (pdev);
_______________________________________________
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): a0c24c05-6bca-ee5c-75bf-672f27abdb33-5C7GfCeVMHo@public.gmane.org
Tao, Yintian
NAKYes, you are right the error message is at wrong place.
May I just remove this message?
Best Regards
Yintian Tao
________________________________
发件人: Koenig, Christian
发送时间: 2019年6月4日 23:22:00
收件人: Tao, Yintian; [email protected] 主题: Re: 答复: [PATCH] drm/amdgpu: no need fbcon under sriov
Am 04.06.19 um 17:16 schrieb Tao, Yintian:
Hi Christian
But when amdgpu driver is unloading, it will call this function.
And driver unloading is an legal case under SR-IOV.
Do you mean PCIe device removal indicates the unplug the real device?
Yes, exactly and that is not supported.
Sounds like the error message is then on the wrong place.
Christian.
Best Regards
Yitnian Tao
________________________________
发件人: Christian König <[email protected]><mailto:[email protected]> 发送时间: 2019年6月4日 21:57:37
收件人: Tao, Yintian; [email protected]<mailto:[email protected]> 主题: Re: [PATCH] drm/amdgpu: no need fbcon under sriov
Am 04.06.19 um 15:43 schrieb Yintian Tao:
Quoted 1 line
Under Sriov, there is no need of the support for fbcon.
NAK, that error message is not related to fbcon but means that PCIe device removal is not supported.
Christian.
Quoted 11 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c amdgpu_pci_remove(struct pci_dev *pdev) · line 1019
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +2
-1@@ -1012,7 +1012,8 @@ amdgpu_pci_remove(struct pci_dev *pdev) {struct drm_device *dev =pci_get_drvdata (pdev); -DRM_ERROR ("Device removal is currently not supported outside of fbcon\n" ); +if (!amdgpu_sriov_vf (adev)) +DRM_ERROR ("Device removal is currently not supported outside of fbcon\n" );drm_dev_unplug (dev);drm_dev_put (dev);pci_disable_device (pdev);
_______________________________________________
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): MN2PR12MB3039F3AF3CA365AA420DBC79E5150-rweVpJHSKTr/[email protected]
Am 04.06.19 um 17:29 schrieb Tao, Yintian:
Yes, you are right the error message is at wrong place.
May I just remove this message?
Fine with me, but you might want to double check who added the message and why.
Something like "git blame ...." should do the trick.
Christian.
Best Regards
Yintian Tao
________________________________
发件人: Koenig, Christian
发送时间: 2019年6月4日 23:22:00
收件人: Tao, Yintian; [email protected]<mailto:[email protected]> 主题: Re: 答复: [PATCH] drm/amdgpu: no need fbcon under sriov
Am 04.06.19 um 17:16 schrieb Tao, Yintian:
Hi Christian
But when amdgpu driver is unloading, it will call this function.
And driver unloading is an legal case under SR-IOV.
Do you mean PCIe device removal indicates the unplug the real device?
Yes, exactly and that is not supported.
Sounds like the error message is then on the wrong place.
Christian.
Best Regards
Yitnian Tao
________________________________
发件人: Christian König <[email protected]><mailto:[email protected]> 发送时间: 2019年6月4日 21:57:37
收件人: Tao, Yintian; [email protected]<mailto:[email protected]> 主题: Re: [PATCH] drm/amdgpu: no need fbcon under sriov
Am 04.06.19 um 15:43 schrieb Yintian Tao:
Quoted 1 line
Under Sriov, there is no need of the support for fbcon.
NAK, that error message is not related to fbcon but means that PCIe device removal is not supported.
Christian.
Quoted 11 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c amdgpu_pci_remove(struct pci_dev *pdev) · line 1019
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +2
-1@@ -1012,7 +1012,8 @@ amdgpu_pci_remove(struct pci_dev *pdev) {struct drm_device *dev =pci_get_drvdata (pdev); -DRM_ERROR ("Device removal is currently not supported outside of fbcon\n" ); +if (!amdgpu_sriov_vf (adev)) +DRM_ERROR ("Device removal is currently not supported outside of fbcon\n" );drm_dev_unplug (dev);drm_dev_put (dev);pci_disable_device (pdev);
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx