iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* iommu/amd: flush IOTLB for specific domains only (v2)
@ 2018-05-14 19:46 Joseph Salisbury
       [not found] ` <44f4f22d-c0f4-a6c8-5521-1f532a60c3fe-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Joseph Salisbury @ 2018-05-14 19:46 UTC (permalink / raw)
  To: arindam.nath-5C7GfCeVMHo
  Cc: John.Bridgman-5C7GfCeVMHo,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	drake-6IF/jdPJHihWk0Htik3J/w, michel-otUistvHUpPR7s880joybQ,
	iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	stein12c-Re5JQEeQqe8AvxtiuMwx3w, alexander.deucher-5C7GfCeVMHo,
	1747463-T8XWwAfLipRB/Vz2p19nDaxOck334EZe,
	linux-6IF/jdPJHihWk0Htik3J/w, Felix.Kuehling-5C7GfCeVMHo

Hello Arindam,

There is a bug report[0] that you created a patch[1] for a while back. 
However, the patch never landed in mainline.  There is a bug reporter in
Ubuntu[2] that is affected by this bug and is willing to test the
patch.  I attempted to build a test kernel with the patch, but it does
not apply to currently mainline cleanly.  Do you still think this patch
may resolve this bug?  If so, is there a version of your patch available
that will apply to current mainline?

Thanks,

Joe

[0] https://bugs.freedesktop.org/show_bug.cgi?id=101029
[1] https://patchwork.freedesktop.org/patch/157327/
[2] http://pad.lv/1747463

_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: iommu/amd: flush IOTLB for specific domains only (v2)
       [not found] ` <44f4f22d-c0f4-a6c8-5521-1f532a60c3fe-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
@ 2018-05-15  8:03   ` Nath, Arindam
       [not found]     ` <MWHPR12MB1518E68ADE46948FBA415E7D9C930-Gy0DoCVfaSXKu+HfpMNLNQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Nath, Arindam @ 2018-05-15  8:03 UTC (permalink / raw)
  To: Joseph Salisbury
  Cc: Lendacky, Thomas, Bridgman, John, joro-zLv9SwRftAIdnm+yROfE0A,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	drake-6IF/jdPJHihWk0Htik3J/w, michel-otUistvHUpPR7s880joybQ,
	iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	stein12c-Re5JQEeQqe8AvxtiuMwx3w, Suthikulpanit, Suravee, Deucher,
	Alexander, 1747463-T8XWwAfLipRB/Vz2p19nDaxOck334EZe,
	linux-6IF/jdPJHihWk0Htik3J/w, Kuehling, Felix

Adding Tom.

Hi Joe,

My original patch was never accepted. Tom and Joerg worked on another patch series which was supposed to fix the issue in question in addition to do some code cleanups. I believe their patches are already in the mainline. If I remember correctly, one of the patches disabled PCI ATS for the graphics card which was causing the issue.

Do you still see the issue with latest mainline kernel?

BR,
Arindam

-----Original Message-----
From: Joseph Salisbury [mailto:joseph.salisbury@canonical.com] 
Sent: Tuesday, May 15, 2018 1:17 AM
To: Nath, Arindam <Arindam.Nath@amd.com>
Cc: iommu@lists.linux-foundation.org; Bridgman, John <John.Bridgman@amd.com>; joro@8bytes.org; amd-gfx@lists.freedesktop.org; drake@endlessm.com; stein12c@gmail.com; Suthikulpanit, Suravee <Suravee.Suthikulpanit@amd.com>; Deucher, Alexander <Alexander.Deucher@amd.com>; Kuehling, Felix <Felix.Kuehling@amd.com>; linux@endlessm.com; michel@daenzer.net; 1747463@bugs.launchpad.net
Subject: iommu/amd: flush IOTLB for specific domains only (v2)

Hello Arindam,

There is a bug report[0] that you created a patch[1] for a while back. However, the patch never landed in mainline.  There is a bug reporter in Ubuntu[2] that is affected by this bug and is willing to test the patch.  I attempted to build a test kernel with the patch, but it does not apply to currently mainline cleanly.  Do you still think this patch may resolve this bug?  If so, is there a version of your patch available that will apply to current mainline?

Thanks,

Joe

[0] https://bugs.freedesktop.org/show_bug.cgi?id=101029
[1] https://patchwork.freedesktop.org/patch/157327/
[2] http://pad.lv/1747463

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: iommu/amd: flush IOTLB for specific domains only (v2)
       [not found]     ` <MWHPR12MB1518E68ADE46948FBA415E7D9C930-Gy0DoCVfaSXKu+HfpMNLNQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
@ 2018-05-15 12:10       ` Joseph Salisbury
       [not found]         ` <1998976d-57ce-0fe5-54ab-a9a13263f362-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Joseph Salisbury @ 2018-05-15 12:10 UTC (permalink / raw)
  To: Nath, Arindam
  Cc: Lendacky, Thomas, Bridgman, John,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	drake-6IF/jdPJHihWk0Htik3J/w, michel-otUistvHUpPR7s880joybQ,
	iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	stein12c-Re5JQEeQqe8AvxtiuMwx3w, Deucher, Alexander,
	1747463-T8XWwAfLipRB/Vz2p19nDaxOck334EZe,
	linux-6IF/jdPJHihWk0Htik3J/w, Kuehling, Felix

On 05/15/2018 04:03 AM, Nath, Arindam wrote:
> Adding Tom.
>
> Hi Joe,
>
> My original patch was never accepted. Tom and Joerg worked on another patch series which was supposed to fix the issue in question in addition to do some code cleanups. I believe their patches are already in the mainline. If I remember correctly, one of the patches disabled PCI ATS for the graphics card which was causing the issue.
>
> Do you still see the issue with latest mainline kernel?
>
> BR,
> Arindam
>
> -----Original Message-----
> From: Joseph Salisbury [mailto:joseph.salisbury@canonical.com] 
> Sent: Tuesday, May 15, 2018 1:17 AM
> To: Nath, Arindam <Arindam.Nath@amd.com>
> Cc: iommu@lists.linux-foundation.org; Bridgman, John <John.Bridgman@amd.com>; joro@8bytes.org; amd-gfx@lists.freedesktop.org; drake@endlessm.com; stein12c@gmail.com; Suthikulpanit, Suravee <Suravee.Suthikulpanit@amd.com>; Deucher, Alexander <Alexander.Deucher@amd.com>; Kuehling, Felix <Felix.Kuehling@amd.com>; linux@endlessm.com; michel@daenzer.net; 1747463@bugs.launchpad.net
> Subject: iommu/amd: flush IOTLB for specific domains only (v2)
>
> Hello Arindam,
>
> There is a bug report[0] that you created a patch[1] for a while back. However, the patch never landed in mainline.  There is a bug reporter in Ubuntu[2] that is affected by this bug and is willing to test the patch.  I attempted to build a test kernel with the patch, but it does not apply to currently mainline cleanly.  Do you still think this patch may resolve this bug?  If so, is there a version of your patch available that will apply to current mainline?
>
> Thanks,
>
> Joe
>
> [0] https://bugs.freedesktop.org/show_bug.cgi?id=101029
> [1] https://patchwork.freedesktop.org/patch/157327/
> [2] http://pad.lv/1747463
>
Hi Arindam,

Thanks for the feedback.  Yes, the latest mainline kernel was tested,
and it is reported the bug still happens in the Ubuntu kernel bug[0]. 
Is there any specific diagnostic info we can collect that might help?

Thanks,

Joe

[0] http://pad.lv/1747463
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: iommu/amd: flush IOTLB for specific domains only (v2)
       [not found]         ` <1998976d-57ce-0fe5-54ab-a9a13263f362-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
@ 2018-05-15 12:34           ` Nath, Arindam
       [not found]             ` <MWHPR12MB1518DD41E3BDA4820F27D7429C930-Gy0DoCVfaSXKu+HfpMNLNQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Nath, Arindam @ 2018-05-15 12:34 UTC (permalink / raw)
  To: Joseph Salisbury
  Cc: Lendacky, Thomas, Bridgman, John, joro-zLv9SwRftAIdnm+yROfE0A,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	drake-6IF/jdPJHihWk0Htik3J/w, michel-otUistvHUpPR7s880joybQ,
	iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	stein12c-Re5JQEeQqe8AvxtiuMwx3w, Suthikulpanit, Suravee, Deucher,
	Alexander, 1747463-T8XWwAfLipRB/Vz2p19nDaxOck334EZe,
	linux-6IF/jdPJHihWk0Htik3J/w, Kuehling, Felix



> -----Original Message-----
> From: Joseph Salisbury [mailto:joseph.salisbury@canonical.com]
> Sent: Tuesday, May 15, 2018 5:40 PM
> To: Nath, Arindam <Arindam.Nath@amd.com>
> Cc: iommu@lists.linux-foundation.org; Bridgman, John
> <John.Bridgman@amd.com>; joro@8bytes.org; amd-
> gfx@lists.freedesktop.org; drake@endlessm.com; stein12c@gmail.com;
> Suthikulpanit, Suravee <Suravee.Suthikulpanit@amd.com>; Deucher,
> Alexander <Alexander.Deucher@amd.com>; Kuehling, Felix
> <Felix.Kuehling@amd.com>; linux@endlessm.com; michel@daenzer.net;
> 1747463@bugs.launchpad.net; Lendacky, Thomas
> <Thomas.Lendacky@amd.com>
> Subject: Re: iommu/amd: flush IOTLB for specific domains only (v2)
> 
> On 05/15/2018 04:03 AM, Nath, Arindam wrote:
> > Adding Tom.
> >
> > Hi Joe,
> >
> > My original patch was never accepted. Tom and Joerg worked on another
> patch series which was supposed to fix the issue in question in addition to do
> some code cleanups. I believe their patches are already in the mainline. If I
> remember correctly, one of the patches disabled PCI ATS for the graphics
> card which was causing the issue.
> >
> > Do you still see the issue with latest mainline kernel?
> >
> > BR,
> > Arindam
> >
> > -----Original Message-----
> > From: Joseph Salisbury [mailto:joseph.salisbury@canonical.com]
> > Sent: Tuesday, May 15, 2018 1:17 AM
> > To: Nath, Arindam <Arindam.Nath@amd.com>
> > Cc: iommu@lists.linux-foundation.org; Bridgman, John
> > <John.Bridgman@amd.com>; joro@8bytes.org;
> > amd-gfx@lists.freedesktop.org; drake@endlessm.com;
> stein12c@gmail.com;
> > Suthikulpanit, Suravee <Suravee.Suthikulpanit@amd.com>; Deucher,
> > Alexander <Alexander.Deucher@amd.com>; Kuehling, Felix
> > <Felix.Kuehling@amd.com>; linux@endlessm.com; michel@daenzer.net;
> > 1747463@bugs.launchpad.net
> > Subject: iommu/amd: flush IOTLB for specific domains only (v2)
> >
> > Hello Arindam,
> >
> > There is a bug report[0] that you created a patch[1] for a while back.
> However, the patch never landed in mainline.  There is a bug reporter in
> Ubuntu[2] that is affected by this bug and is willing to test the patch.  I
> attempted to build a test kernel with the patch, but it does not apply to
> currently mainline cleanly.  Do you still think this patch may resolve this
> bug?  If so, is there a version of your patch available that will apply to current
> mainline?
> >
> > Thanks,
> >
> > Joe
> >
> > [0] https://bugs.freedesktop.org/show_bug.cgi?id=101029
> > [1] https://patchwork.freedesktop.org/patch/157327/
> > [2] http://pad.lv/1747463
> >
> Hi Arindam,
> 
> Thanks for the feedback.  Yes, the latest mainline kernel was tested, and it is
> reported the bug still happens in the Ubuntu kernel bug[0]. Is there any
> specific diagnostic info we can collect that might help?

Joe, I believe all the information needed is already provided in [2]. Let us wait for inputs from Tom and Joerg.

I could take a look at the issue locally, but it will take me some really long time since I am occupied with other assignments right now.

BR,
Arindam

> 
> Thanks,
> 
> Joe
> 
> [0] http://pad.lv/1747463
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: iommu/amd: flush IOTLB for specific domains only (v2)
       [not found]             ` <MWHPR12MB1518DD41E3BDA4820F27D7429C930-Gy0DoCVfaSXKu+HfpMNLNQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
@ 2018-05-15 13:08               ` Tom Lendacky
       [not found]                 ` <8f5ed491-c9d4-95f9-2cb1-955be42caea0-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Tom Lendacky @ 2018-05-15 13:08 UTC (permalink / raw)
  To: Nath, Arindam, Joseph Salisbury
  Cc: Bridgman, John, joro-zLv9SwRftAIdnm+yROfE0A,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	drake-6IF/jdPJHihWk0Htik3J/w, michel-otUistvHUpPR7s880joybQ,
	iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	stein12c-Re5JQEeQqe8AvxtiuMwx3w, Suthikulpanit, Suravee, Deucher,
	Alexander, 1747463-T8XWwAfLipRB/Vz2p19nDaxOck334EZe,
	linux-6IF/jdPJHihWk0Htik3J/w, Kuehling, Felix

On 5/15/2018 7:34 AM, Nath, Arindam wrote:
> 
> 
>> -----Original Message-----
>> From: Joseph Salisbury [mailto:joseph.salisbury@canonical.com]
>> Sent: Tuesday, May 15, 2018 5:40 PM
>> To: Nath, Arindam <Arindam.Nath@amd.com>
>> Cc: iommu@lists.linux-foundation.org; Bridgman, John
>> <John.Bridgman@amd.com>; joro@8bytes.org; amd-
>> gfx@lists.freedesktop.org; drake@endlessm.com; stein12c@gmail.com;
>> Suthikulpanit, Suravee <Suravee.Suthikulpanit@amd.com>; Deucher,
>> Alexander <Alexander.Deucher@amd.com>; Kuehling, Felix
>> <Felix.Kuehling@amd.com>; linux@endlessm.com; michel@daenzer.net;
>> 1747463@bugs.launchpad.net; Lendacky, Thomas
>> <Thomas.Lendacky@amd.com>
>> Subject: Re: iommu/amd: flush IOTLB for specific domains only (v2)
>>
>> On 05/15/2018 04:03 AM, Nath, Arindam wrote:
>>> Adding Tom.
>>>
>>> Hi Joe,
>>>
>>> My original patch was never accepted. Tom and Joerg worked on another
>> patch series which was supposed to fix the issue in question in addition to do
>> some code cleanups. I believe their patches are already in the mainline. If I
>> remember correctly, one of the patches disabled PCI ATS for the graphics
>> card which was causing the issue.
>>>
>>> Do you still see the issue with latest mainline kernel?
>>>
>>> BR,
>>> Arindam
>>>
>>> -----Original Message-----
>>> From: Joseph Salisbury [mailto:joseph.salisbury@canonical.com]
>>> Sent: Tuesday, May 15, 2018 1:17 AM
>>> To: Nath, Arindam <Arindam.Nath@amd.com>
>>> Cc: iommu@lists.linux-foundation.org; Bridgman, John
>>> <John.Bridgman@amd.com>; joro@8bytes.org;
>>> amd-gfx@lists.freedesktop.org; drake@endlessm.com;
>> stein12c@gmail.com;
>>> Suthikulpanit, Suravee <Suravee.Suthikulpanit@amd.com>; Deucher,
>>> Alexander <Alexander.Deucher@amd.com>; Kuehling, Felix
>>> <Felix.Kuehling@amd.com>; linux@endlessm.com; michel@daenzer.net;
>>> 1747463@bugs.launchpad.net
>>> Subject: iommu/amd: flush IOTLB for specific domains only (v2)
>>>
>>> Hello Arindam,
>>>
>>> There is a bug report[0] that you created a patch[1] for a while back.
>> However, the patch never landed in mainline.  There is a bug reporter in
>> Ubuntu[2] that is affected by this bug and is willing to test the patch.  I
>> attempted to build a test kernel with the patch, but it does not apply to
>> currently mainline cleanly.  Do you still think this patch may resolve this
>> bug?  If so, is there a version of your patch available that will apply to current
>> mainline?
>>>
>>> Thanks,
>>>
>>> Joe
>>>
>>> [0] https://bugs.freedesktop.org/show_bug.cgi?id=101029
>>> [1] https://patchwork.freedesktop.org/patch/157327/
>>> [2] http://pad.lv/1747463
>>>
>> Hi Arindam,
>>
>> Thanks for the feedback.  Yes, the latest mainline kernel was tested, and it is
>> reported the bug still happens in the Ubuntu kernel bug[0]. Is there any
>> specific diagnostic info we can collect that might help?
> 
> Joe, I believe all the information needed is already provided in [2]. Let us wait for inputs from Tom and Joerg.
> 
> I could take a look at the issue locally, but it will take me some really long time since I am occupied with other assignments right now.

I don't see anything in the bug that indicates the latest mainline kernel
was tested.  The patches/fixes in question are part of the 4.13 kernel, I
only see references to 4.10 kernels so I wouldn't expect the issue to be
resolved unless the patches from 4.13 were backported to the Ubuntu 4.10
kernel.

Thanks,
Tom

> 
> BR,
> Arindam
> 
>>
>> Thanks,
>>
>> Joe
>>
>> [0] http://pad.lv/1747463
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: iommu/amd: flush IOTLB for specific domains only (v2)
       [not found]                 ` <8f5ed491-c9d4-95f9-2cb1-955be42caea0-5C7GfCeVMHo@public.gmane.org>
@ 2018-05-15 14:47                   ` Joseph Salisbury
       [not found]                     ` <507eb167-5b3c-074a-3766-9f7dd4444f7f-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Joseph Salisbury @ 2018-05-15 14:47 UTC (permalink / raw)
  To: Tom Lendacky, Nath, Arindam
  Cc: Bridgman, John, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	drake-6IF/jdPJHihWk0Htik3J/w, michel-otUistvHUpPR7s880joybQ,
	iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	stein12c-Re5JQEeQqe8AvxtiuMwx3w, Deucher, Alexander,
	1747463-T8XWwAfLipRB/Vz2p19nDaxOck334EZe,
	linux-6IF/jdPJHihWk0Htik3J/w, Kuehling, Felix

On 05/15/2018 09:08 AM, Tom Lendacky wrote:
> On 5/15/2018 7:34 AM, Nath, Arindam wrote:
>>
>>> -----Original Message-----
>>> From: Joseph Salisbury [mailto:joseph.salisbury@canonical.com]
>>> Sent: Tuesday, May 15, 2018 5:40 PM
>>> To: Nath, Arindam <Arindam.Nath@amd.com>
>>> Cc: iommu@lists.linux-foundation.org; Bridgman, John
>>> <John.Bridgman@amd.com>; joro@8bytes.org; amd-
>>> gfx@lists.freedesktop.org; drake@endlessm.com; stein12c@gmail.com;
>>> Suthikulpanit, Suravee <Suravee.Suthikulpanit@amd.com>; Deucher,
>>> Alexander <Alexander.Deucher@amd.com>; Kuehling, Felix
>>> <Felix.Kuehling@amd.com>; linux@endlessm.com; michel@daenzer.net;
>>> 1747463@bugs.launchpad.net; Lendacky, Thomas
>>> <Thomas.Lendacky@amd.com>
>>> Subject: Re: iommu/amd: flush IOTLB for specific domains only (v2)
>>>
>>> On 05/15/2018 04:03 AM, Nath, Arindam wrote:
>>>> Adding Tom.
>>>>
>>>> Hi Joe,
>>>>
>>>> My original patch was never accepted. Tom and Joerg worked on another
>>> patch series which was supposed to fix the issue in question in addition to do
>>> some code cleanups. I believe their patches are already in the mainline. If I
>>> remember correctly, one of the patches disabled PCI ATS for the graphics
>>> card which was causing the issue.
>>>> Do you still see the issue with latest mainline kernel?
>>>>
>>>> BR,
>>>> Arindam
>>>>
>>>> -----Original Message-----
>>>> From: Joseph Salisbury [mailto:joseph.salisbury@canonical.com]
>>>> Sent: Tuesday, May 15, 2018 1:17 AM
>>>> To: Nath, Arindam <Arindam.Nath@amd.com>
>>>> Cc: iommu@lists.linux-foundation.org; Bridgman, John
>>>> <John.Bridgman@amd.com>; joro@8bytes.org;
>>>> amd-gfx@lists.freedesktop.org; drake@endlessm.com;
>>> stein12c@gmail.com;
>>>> Suthikulpanit, Suravee <Suravee.Suthikulpanit@amd.com>; Deucher,
>>>> Alexander <Alexander.Deucher@amd.com>; Kuehling, Felix
>>>> <Felix.Kuehling@amd.com>; linux@endlessm.com; michel@daenzer.net;
>>>> 1747463@bugs.launchpad.net
>>>> Subject: iommu/amd: flush IOTLB for specific domains only (v2)
>>>>
>>>> Hello Arindam,
>>>>
>>>> There is a bug report[0] that you created a patch[1] for a while back.
>>> However, the patch never landed in mainline.  There is a bug reporter in
>>> Ubuntu[2] that is affected by this bug and is willing to test the patch.  I
>>> attempted to build a test kernel with the patch, but it does not apply to
>>> currently mainline cleanly.  Do you still think this patch may resolve this
>>> bug?  If so, is there a version of your patch available that will apply to current
>>> mainline?
>>>> Thanks,
>>>>
>>>> Joe
>>>>
>>>> [0] https://bugs.freedesktop.org/show_bug.cgi?id=101029
>>>> [1] https://patchwork.freedesktop.org/patch/157327/
>>>> [2] http://pad.lv/1747463
>>>>
>>> Hi Arindam,
>>>
>>> Thanks for the feedback.  Yes, the latest mainline kernel was tested, and it is
>>> reported the bug still happens in the Ubuntu kernel bug[0]. Is there any
>>> specific diagnostic info we can collect that might help?
>> Joe, I believe all the information needed is already provided in [2]. Let us wait for inputs from Tom and Joerg.
>>
>> I could take a look at the issue locally, but it will take me some really long time since I am occupied with other assignments right now.
> I don't see anything in the bug that indicates the latest mainline kernel
> was tested.  The patches/fixes in question are part of the 4.13 kernel, I
> only see references to 4.10 kernels so I wouldn't expect the issue to be
> resolved unless the patches from 4.13 were backported to the Ubuntu 4.10
> kernel.
>
> Thanks,
> Tom
>
>> BR,
>> Arindam
>>
>>> Thanks,
>>>
>>> Joe
>>>
>>> [0] http://pad.lv/1747463
Hi Tom,

The request to test mainline was in comment #30[0].  However, the bug
reporter stated the bug still existed on IRC and not in the bug report. 
I'll request he adds the test results to the bug.

Thanks,

Joe




[0] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/comments/30
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: iommu/amd: flush IOTLB for specific domains only (v2)
       [not found]                     ` <507eb167-5b3c-074a-3766-9f7dd4444f7f-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
@ 2018-05-15 15:18                       ` Tom Lendacky
  0 siblings, 0 replies; 7+ messages in thread
From: Tom Lendacky @ 2018-05-15 15:18 UTC (permalink / raw)
  To: Joseph Salisbury, Nath, Arindam
  Cc: Bridgman, John, joro-zLv9SwRftAIdnm+yROfE0A,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	drake-6IF/jdPJHihWk0Htik3J/w, michel-otUistvHUpPR7s880joybQ,
	iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	stein12c-Re5JQEeQqe8AvxtiuMwx3w, Suthikulpanit, Suravee, Deucher,
	Alexander, 1747463-T8XWwAfLipRB/Vz2p19nDaxOck334EZe,
	linux-6IF/jdPJHihWk0Htik3J/w, Kuehling, Felix

On 5/15/2018 9:47 AM, Joseph Salisbury wrote:
> On 05/15/2018 09:08 AM, Tom Lendacky wrote:
>> On 5/15/2018 7:34 AM, Nath, Arindam wrote:
>>>
>>>> -----Original Message-----
>>>> From: Joseph Salisbury [mailto:joseph.salisbury@canonical.com]
>>>> Sent: Tuesday, May 15, 2018 5:40 PM
>>>> To: Nath, Arindam <Arindam.Nath@amd.com>
>>>> Cc: iommu@lists.linux-foundation.org; Bridgman, John
>>>> <John.Bridgman@amd.com>; joro@8bytes.org; amd-
>>>> gfx@lists.freedesktop.org; drake@endlessm.com; stein12c@gmail.com;
>>>> Suthikulpanit, Suravee <Suravee.Suthikulpanit@amd.com>; Deucher,
>>>> Alexander <Alexander.Deucher@amd.com>; Kuehling, Felix
>>>> <Felix.Kuehling@amd.com>; linux@endlessm.com; michel@daenzer.net;
>>>> 1747463@bugs.launchpad.net; Lendacky, Thomas
>>>> <Thomas.Lendacky@amd.com>
>>>> Subject: Re: iommu/amd: flush IOTLB for specific domains only (v2)
>>>>
>>>> On 05/15/2018 04:03 AM, Nath, Arindam wrote:
>>>>> Adding Tom.
>>>>>
>>>>> Hi Joe,
>>>>>
>>>>> My original patch was never accepted. Tom and Joerg worked on another
>>>> patch series which was supposed to fix the issue in question in addition to do
>>>> some code cleanups. I believe their patches are already in the mainline. If I
>>>> remember correctly, one of the patches disabled PCI ATS for the graphics
>>>> card which was causing the issue.
>>>>> Do you still see the issue with latest mainline kernel?
>>>>>
>>>>> BR,
>>>>> Arindam
>>>>>
>>>>> -----Original Message-----
>>>>> From: Joseph Salisbury [mailto:joseph.salisbury@canonical.com]
>>>>> Sent: Tuesday, May 15, 2018 1:17 AM
>>>>> To: Nath, Arindam <Arindam.Nath@amd.com>
>>>>> Cc: iommu@lists.linux-foundation.org; Bridgman, John
>>>>> <John.Bridgman@amd.com>; joro@8bytes.org;
>>>>> amd-gfx@lists.freedesktop.org; drake@endlessm.com;
>>>> stein12c@gmail.com;
>>>>> Suthikulpanit, Suravee <Suravee.Suthikulpanit@amd.com>; Deucher,
>>>>> Alexander <Alexander.Deucher@amd.com>; Kuehling, Felix
>>>>> <Felix.Kuehling@amd.com>; linux@endlessm.com; michel@daenzer.net;
>>>>> 1747463@bugs.launchpad.net
>>>>> Subject: iommu/amd: flush IOTLB for specific domains only (v2)
>>>>>
>>>>> Hello Arindam,
>>>>>
>>>>> There is a bug report[0] that you created a patch[1] for a while back.
>>>> However, the patch never landed in mainline.  There is a bug reporter in
>>>> Ubuntu[2] that is affected by this bug and is willing to test the patch.  I
>>>> attempted to build a test kernel with the patch, but it does not apply to
>>>> currently mainline cleanly.  Do you still think this patch may resolve this
>>>> bug?  If so, is there a version of your patch available that will apply to current
>>>> mainline?
>>>>> Thanks,
>>>>>
>>>>> Joe
>>>>>
>>>>> [0] https://bugs.freedesktop.org/show_bug.cgi?id=101029
>>>>> [1] https://patchwork.freedesktop.org/patch/157327/
>>>>> [2] http://pad.lv/1747463
>>>>>
>>>> Hi Arindam,
>>>>
>>>> Thanks for the feedback.  Yes, the latest mainline kernel was tested, and it is
>>>> reported the bug still happens in the Ubuntu kernel bug[0]. Is there any
>>>> specific diagnostic info we can collect that might help?
>>> Joe, I believe all the information needed is already provided in [2]. Let us wait for inputs from Tom and Joerg.
>>>
>>> I could take a look at the issue locally, but it will take me some really long time since I am occupied with other assignments right now.
>> I don't see anything in the bug that indicates the latest mainline kernel
>> was tested.  The patches/fixes in question are part of the 4.13 kernel, I
>> only see references to 4.10 kernels so I wouldn't expect the issue to be
>> resolved unless the patches from 4.13 were backported to the Ubuntu 4.10
>> kernel.
>>
>> Thanks,
>> Tom
>>
>>> BR,
>>> Arindam
>>>
>>>> Thanks,
>>>>
>>>> Joe
>>>>
>>>> [0] http://pad.lv/1747463
> Hi Tom,
> 
> The request to test mainline was in comment #30[0].  However, the bug
> reporter stated the bug still existed on IRC and not in the bug report. 
> I'll request he adds the test results to the bug.
> 

Ok, I was looking at the wrong bug.  For the original 4.13 kernel, I don't
see any attachments that have the AMD-Vi messages in question.  Were they
completion timeouts (like in the later mainline kernel test, which I'll
get to in a bit) or I/O page fault messages?  Without that information it
is hard to determine what the issue really is.

(Just as an FYI, if the IOMMU is disabled in BIOS, then iommu=soft is not
 necessary on the kernel command line).

For the upstream kernel test, since this is a Ryzen system, it's possible
that the BIOS does not have a requisite fix for SME and IOMMU (see [1]).
On the upstream kernel, if memory encryption is active by default without
this BIOS fix, then the result is AMD-Vi completion-wait timeout messages.
Try booting with mem_encrypt=off on the kernel command line or build a
kernel with CONFIG_AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT=n and see if that
allows the kernel to boot.

Thanks,
Tom

[1] https://bugzilla.kernel.org/show_bug.cgi?id=199513


> Thanks,
> 
> Joe
> 
> 
> 
> 
> [0] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/comments/30
> 
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-05-15 15:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-14 19:46 iommu/amd: flush IOTLB for specific domains only (v2) Joseph Salisbury
     [not found] ` <44f4f22d-c0f4-a6c8-5521-1f532a60c3fe-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2018-05-15  8:03   ` Nath, Arindam
     [not found]     ` <MWHPR12MB1518E68ADE46948FBA415E7D9C930-Gy0DoCVfaSXKu+HfpMNLNQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-05-15 12:10       ` Joseph Salisbury
     [not found]         ` <1998976d-57ce-0fe5-54ab-a9a13263f362-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2018-05-15 12:34           ` Nath, Arindam
     [not found]             ` <MWHPR12MB1518DD41E3BDA4820F27D7429C930-Gy0DoCVfaSXKu+HfpMNLNQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-05-15 13:08               ` Tom Lendacky
     [not found]                 ` <8f5ed491-c9d4-95f9-2cb1-955be42caea0-5C7GfCeVMHo@public.gmane.org>
2018-05-15 14:47                   ` Joseph Salisbury
     [not found]                     ` <507eb167-5b3c-074a-3766-9f7dd4444f7f-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2018-05-15 15:18                       ` Tom Lendacky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).