* Re: [Issue]platform/x86: iommu: System can't shutdown because iommu driver keeps checking the status of DMA_GSTS_TES [not found] <CAJB-X+Ww=bZN2qZ=e=4EkN_RUTiZxHxkdnHh50y9iVqZmT_XQg@mail.gmail.com> @ 2020-06-15 7:20 ` Lu Baolu 2020-06-30 7:31 ` Koba Ko 0 siblings, 1 reply; 8+ messages in thread From: Lu Baolu @ 2020-06-15 7:20 UTC (permalink / raw) To: Koba Ko, David Woodhouse, Joerg Roedel Cc: baolu.lu, iommu, Linux Kernel Mailing List, Kai Heng Feng, Raj, Ashok, Sun, Jian Hi Koba Ko, On 2020/6/15 11:19, Koba Ko wrote: > hi All, > I have a machine and there's only intel gpu. > the secureboot and vt-d is enabled in BIOS. > On the Ubuntu desktop, I do s2idle first and restart the machine. > The machine can't restart successfully, so I need to press the > power button to shutdown. > I tried each of the following and the issue can't be triggered. > 1. disable secure boot in BIOS. > 2. intel_iommu=off. > 3. intel_iomm=igfx_off. > 4. nomodeset > 5. i915.modeset=0. > > After I investigate further, find inte_iommu keeps checking the status > of DMA_GSTS_TES. > During the procedure of restart, the driver would disable iommu > translation and > check status of DMA_GSTS_TES until status of DMA_GSTS_TES is 0. > > If you need more information, I can provide it. Do you mind telling what platform is it? Best regards, baolu ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Issue]platform/x86: iommu: System can't shutdown because iommu driver keeps checking the status of DMA_GSTS_TES 2020-06-15 7:20 ` [Issue]platform/x86: iommu: System can't shutdown because iommu driver keeps checking the status of DMA_GSTS_TES Lu Baolu @ 2020-06-30 7:31 ` Koba Ko 2020-06-30 7:52 ` Lu Baolu 0 siblings, 1 reply; 8+ messages in thread From: Koba Ko @ 2020-06-30 7:31 UTC (permalink / raw) To: Lu Baolu Cc: David Woodhouse, Joerg Roedel, iommu, Linux Kernel Mailing List, Kai Heng Feng, Raj, Ashok, Sun, Jian On Mon, Jun 15, 2020 at 3:20 PM Lu Baolu <baolu.lu@linux.intel.com> wrote: > > Hi Koba Ko, > > On 2020/6/15 11:19, Koba Ko wrote: > > hi All, > > I have a machine and there's only intel gpu. > > the secureboot and vt-d is enabled in BIOS. > > On the Ubuntu desktop, I do s2idle first and restart the machine. > > The machine can't restart successfully, so I need to press the > > power button to shutdown. > > I tried each of the following and the issue can't be triggered. > > 1. disable secure boot in BIOS. > > 2. intel_iommu=off. > > 3. intel_iomm=igfx_off. > > 4. nomodeset > > 5. i915.modeset=0. > > > > After I investigate further, find inte_iommu keeps checking the status > > of DMA_GSTS_TES. > > During the procedure of restart, the driver would disable iommu > > translation and > > check status of DMA_GSTS_TES until status of DMA_GSTS_TES is 0. > > > > If you need more information, I can provide it. > > Do you mind telling what platform is it? > > Best regards, > baolu Hi Baolu, Sorry, i missed your email. I'm running on TGL. My colleague has reported this on bugzilla. Have tested your patch and it works fine. https://bugzilla.kernel.org/show_bug.cgi?id=208363 Could you explain more about these patches!? Why do we need a flag for active iommu!? Koba Ko ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Issue]platform/x86: iommu: System can't shutdown because iommu driver keeps checking the status of DMA_GSTS_TES 2020-06-30 7:31 ` Koba Ko @ 2020-06-30 7:52 ` Lu Baolu 2020-07-07 3:27 ` Koba Ko 0 siblings, 1 reply; 8+ messages in thread From: Lu Baolu @ 2020-06-30 7:52 UTC (permalink / raw) To: Koba Ko Cc: baolu.lu, David Woodhouse, Joerg Roedel, iommu, Linux Kernel Mailing List, Kai Heng Feng, Raj, Ashok, Sun, Jian Hi Koba, On 2020/6/30 15:31, Koba Ko wrote: > On Mon, Jun 15, 2020 at 3:20 PM Lu Baolu <baolu.lu@linux.intel.com> wrote: >> >> Hi Koba Ko, >> >> On 2020/6/15 11:19, Koba Ko wrote: >>> hi All, >>> I have a machine and there's only intel gpu. >>> the secureboot and vt-d is enabled in BIOS. >>> On the Ubuntu desktop, I do s2idle first and restart the machine. >>> The machine can't restart successfully, so I need to press the >>> power button to shutdown. >>> I tried each of the following and the issue can't be triggered. >>> 1. disable secure boot in BIOS. >>> 2. intel_iommu=off. >>> 3. intel_iomm=igfx_off. >>> 4. nomodeset >>> 5. i915.modeset=0. >>> >>> After I investigate further, find inte_iommu keeps checking the status >>> of DMA_GSTS_TES. >>> During the procedure of restart, the driver would disable iommu >>> translation and >>> check status of DMA_GSTS_TES until status of DMA_GSTS_TES is 0. >>> >>> If you need more information, I can provide it. >> >> Do you mind telling what platform is it? >> >> Best regards, >> baolu > Hi Baolu, > Sorry, i missed your email. > I'm running on TGL. > My colleague has reported this on bugzilla. > Have tested your patch and it works fine. > https://bugzilla.kernel.org/show_bug.cgi?id=208363 > > Could you explain more about these patches!? Why do we need a flag > for active iommu!? > We're still investigating this issue. If we find out more, I'll let you know. Thanks a lot for the reporting. Best regards, baolu ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Issue]platform/x86: iommu: System can't shutdown because iommu driver keeps checking the status of DMA_GSTS_TES 2020-06-30 7:52 ` Lu Baolu @ 2020-07-07 3:27 ` Koba Ko 2020-07-07 7:23 ` Lu Baolu 0 siblings, 1 reply; 8+ messages in thread From: Koba Ko @ 2020-07-07 3:27 UTC (permalink / raw) To: Lu Baolu Cc: David Woodhouse, Joerg Roedel, iommu, Linux Kernel Mailing List, Kai Heng Feng, Raj, Ashok, Sun, Jian Dear Baolu, On Tue, Jun 30, 2020 at 3:52 PM Lu Baolu <baolu.lu@linux.intel.com> wrote: > > Hi Koba, > > On 2020/6/30 15:31, Koba Ko wrote: > > On Mon, Jun 15, 2020 at 3:20 PM Lu Baolu <baolu.lu@linux.intel.com> wrote: > >> > >> Hi Koba Ko, > >> > >> On 2020/6/15 11:19, Koba Ko wrote: > >>> hi All, > >>> I have a machine and there's only intel gpu. > >>> the secureboot and vt-d is enabled in BIOS. > >>> On the Ubuntu desktop, I do s2idle first and restart the machine. > >>> The machine can't restart successfully, so I need to press the > >>> power button to shutdown. > >>> I tried each of the following and the issue can't be triggered. > >>> 1. disable secure boot in BIOS. > >>> 2. intel_iommu=off. > >>> 3. intel_iomm=igfx_off. > >>> 4. nomodeset > >>> 5. i915.modeset=0. > >>> > >>> After I investigate further, find inte_iommu keeps checking the status > >>> of DMA_GSTS_TES. > >>> During the procedure of restart, the driver would disable iommu > >>> translation and > >>> check status of DMA_GSTS_TES until status of DMA_GSTS_TES is 0. > >>> > >>> If you need more information, I can provide it. > >> > >> Do you mind telling what platform is it? > >> > >> Best regards, > >> baolu > > Hi Baolu, > > Sorry, i missed your email. > > I'm running on TGL. > > My colleague has reported this on bugzilla. > > Have tested your patch and it works fine. > > https://bugzilla.kernel.org/show_bug.cgi?id=208363 > > > > Could you explain more about these patches!? Why do we need a flag > > for active iommu!? > > > > We're still investigating this issue. If we find out more, I'll let you > know. Thanks a lot for the reporting. > > Best regards, > baolu > Sorry for disturbing, Do you have any updates for this issue?! https://bugzilla.kernel.org/show_bug.cgi?id=208363 Koba KO ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Issue]platform/x86: iommu: System can't shutdown because iommu driver keeps checking the status of DMA_GSTS_TES 2020-07-07 3:27 ` Koba Ko @ 2020-07-07 7:23 ` Lu Baolu 0 siblings, 0 replies; 8+ messages in thread From: Lu Baolu @ 2020-07-07 7:23 UTC (permalink / raw) To: Koba Ko Cc: baolu.lu, David Woodhouse, Joerg Roedel, iommu, Linux Kernel Mailing List, Kai Heng Feng, Raj, Ashok, Sun, Jian Hi Koba KO, On 2020/7/7 11:27, Koba Ko wrote: > Dear Baolu, > On Tue, Jun 30, 2020 at 3:52 PM Lu Baolu <baolu.lu@linux.intel.com> wrote: >> >> Hi Koba, >> >> On 2020/6/30 15:31, Koba Ko wrote: >>> On Mon, Jun 15, 2020 at 3:20 PM Lu Baolu <baolu.lu@linux.intel.com> wrote: >>>> >>>> Hi Koba Ko, >>>> >>>> On 2020/6/15 11:19, Koba Ko wrote: >>>>> hi All, >>>>> I have a machine and there's only intel gpu. >>>>> the secureboot and vt-d is enabled in BIOS. >>>>> On the Ubuntu desktop, I do s2idle first and restart the machine. >>>>> The machine can't restart successfully, so I need to press the >>>>> power button to shutdown. >>>>> I tried each of the following and the issue can't be triggered. >>>>> 1. disable secure boot in BIOS. >>>>> 2. intel_iommu=off. >>>>> 3. intel_iomm=igfx_off. >>>>> 4. nomodeset >>>>> 5. i915.modeset=0. >>>>> >>>>> After I investigate further, find inte_iommu keeps checking the status >>>>> of DMA_GSTS_TES. >>>>> During the procedure of restart, the driver would disable iommu >>>>> translation and >>>>> check status of DMA_GSTS_TES until status of DMA_GSTS_TES is 0. >>>>> >>>>> If you need more information, I can provide it. >>>> >>>> Do you mind telling what platform is it? >>>> >>>> Best regards, >>>> baolu >>> Hi Baolu, >>> Sorry, i missed your email. >>> I'm running on TGL. >>> My colleague has reported this on bugzilla. >>> Have tested your patch and it works fine. >>> https://bugzilla.kernel.org/show_bug.cgi?id=208363 >>> >>> Could you explain more about these patches!? Why do we need a flag >>> for active iommu!? >>> >> >> We're still investigating this issue. If we find out more, I'll let you >> know. Thanks a lot for the reporting. >> >> Best regards, >> baolu >> > Sorry for disturbing, > Do you have any updates for this issue?! > https://bugzilla.kernel.org/show_bug.cgi?id=208363 We are in process of collecting what kind of platforms are affected. I will push the workaround patch to the community as soon as we are done. Best regards, baolu ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Issue]platform/x86: iommu: System can't shutdown because iommu driver keeps checking the status of DMA_GSTS_TES @ 2020-06-15 3:46 Koba Ko 2020-07-09 20:58 ` Limonciello, Mario 0 siblings, 1 reply; 8+ messages in thread From: Koba Ko @ 2020-06-15 3:46 UTC (permalink / raw) To: David Woodhouse, Lu Baolu, Joerg Roedel Cc: iommu, Kai Heng Feng, Linux Kernel Mailing List hi All, I have a machine and there's only intel gpu. the secureboot and vt-d is enabled in BIOS. On the Ubuntu desktop, I do s2idle first and restart the machine. The machine can't restart successfully, so I need to press the power button to shutdown. I tried each of the following and the issue can't be triggered. 1. disable secure boot in BIOS. 2. intel_iommu=off. 3. intel_iomm=igfx_off. 4. nomodeset 5. i915.modeset=0. After I investigate further, find inte_iommu keeps checking the status of DMA_GSTS_TES. During the procedure of restart, the driver would disable iommu translation and check the status of DMA_GSTS_TES until status of DMA_GSTS_TES is 0. If you need more information, I can provide it. Thanks Koba Ko ^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [Issue]platform/x86: iommu: System can't shutdown because iommu driver keeps checking the status of DMA_GSTS_TES 2020-06-15 3:46 Koba Ko @ 2020-07-09 20:58 ` Limonciello, Mario 2020-07-10 2:03 ` Koba Ko 0 siblings, 1 reply; 8+ messages in thread From: Limonciello, Mario @ 2020-07-09 20:58 UTC (permalink / raw) To: Koba Ko, David Woodhouse, Lu Baolu, Joerg Roedel Cc: iommu, Kai Heng Feng, Linux Kernel Mailing List, Christian Kellner > -----Original Message----- > From: iommu <iommu-bounces@lists.linux-foundation.org> On Behalf Of Koba Ko > Sent: Sunday, June 14, 2020 10:47 PM > To: David Woodhouse; Lu Baolu; Joerg Roedel > Cc: iommu@lists.linux-foundation.org; Kai Heng Feng; Linux Kernel Mailing > List > Subject: [Issue]platform/x86: iommu: System can't shutdown because iommu > driver keeps checking the status of DMA_GSTS_TES > > hi All, > I have a machine and there's only intel gpu. > the secureboot and vt-d is enabled in BIOS. > On the Ubuntu desktop, I do s2idle first and restart the machine. > The machine can't restart successfully, so I need to press the power > button to shutdown. > I tried each of the following and the issue can't be triggered. > 1. disable secure boot in BIOS. Just to explain why this happens, on many of Dell's systems VT-d is only enabled when secure boot is enabled. > 2. intel_iommu=off. > 3. intel_iomm=igfx_off. > 4. nomodeset > 5. i915.modeset=0. > > After I investigate further, find inte_iommu keeps checking the status > of DMA_GSTS_TES. > During the procedure of restart, the driver would disable iommu translation > and > check the status of DMA_GSTS_TES until status of DMA_GSTS_TES is 0. > > If you need more information, I can provide it. > > Thanks > Koba Ko > _______________________________________________ > iommu mailing list > iommu@lists.linux-foundation.org > https://lists.linuxfoundation.org/mailman/listinfo/iommu This is reported on TGL pre-production system, but actually same symptom is also happening in ICL production systems such as XPS 7390 2-in-1 and XPS 9300. Details for the ICL issue are available here: https://bugzilla.kernel.org/show_bug.cgi?id=206571 A user did bisect it back to commit 6c3a44ed3c553c324845744f30bcd1d3b07d61fd in 5.5. Glancing through the code and comparing the suspend case, I would ask is it just a case of missing a flush at shutdown (IE iommu_flush_all)? ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Issue]platform/x86: iommu: System can't shutdown because iommu driver keeps checking the status of DMA_GSTS_TES 2020-07-09 20:58 ` Limonciello, Mario @ 2020-07-10 2:03 ` Koba Ko 0 siblings, 0 replies; 8+ messages in thread From: Koba Ko @ 2020-07-10 2:03 UTC (permalink / raw) To: Limonciello, Mario Cc: David Woodhouse, Lu Baolu, Joerg Roedel, iommu, Kai Heng Feng, Linux Kernel Mailing List, Christian Kellner, Anthony Wong Hi Mario On Fri, Jul 10, 2020 at 4:58 AM Limonciello, Mario <Mario.Limonciello@dell.com> wrote: > > > -----Original Message----- > > From: iommu <iommu-bounces@lists.linux-foundation.org> On Behalf Of Koba Ko > > Sent: Sunday, June 14, 2020 10:47 PM > > To: David Woodhouse; Lu Baolu; Joerg Roedel > > Cc: iommu@lists.linux-foundation.org; Kai Heng Feng; Linux Kernel Mailing > > List > > Subject: [Issue]platform/x86: iommu: System can't shutdown because iommu > > driver keeps checking the status of DMA_GSTS_TES > > > > hi All, > > I have a machine and there's only intel gpu. > > the secureboot and vt-d is enabled in BIOS. > > On the Ubuntu desktop, I do s2idle first and restart the machine. > > The machine can't restart successfully, so I need to press the power > > button to shutdown. > > I tried each of the following and the issue can't be triggered. > > 1. disable secure boot in BIOS. > > Just to explain why this happens, on many of Dell's systems VT-d is only enabled > when secure boot is enabled. > > > 2. intel_iommu=off. > > 3. intel_iomm=igfx_off. > > 4. nomodeset > > 5. i915.modeset=0. > > > > After I investigate further, find inte_iommu keeps checking the status > > of DMA_GSTS_TES. > > During the procedure of restart, the driver would disable iommu translation > > and > > check the status of DMA_GSTS_TES until status of DMA_GSTS_TES is 0. > > > > If you need more information, I can provide it. > > > > Thanks > > Koba Ko > > _______________________________________________ > > iommu mailing list > > iommu@lists.linux-foundation.org > > https://lists.linuxfoundation.org/mailman/listinfo/iommu > > This is reported on TGL pre-production system, but actually same symptom is also > happening in ICL production systems such as XPS 7390 2-in-1 and XPS 9300. > > Details for the ICL issue are available here: > https://bugzilla.kernel.org/show_bug.cgi?id=206571 > > A user did bisect it back to commit 6c3a44ed3c553c324845744f30bcd1d3b07d61fd in > 5.5. Glancing through the code and comparing the suspend case, I would ask is it > just a case of missing a flush at shutdown (IE iommu_flush_all)? > If dma translation doesn't be disabled during shutdown, the machine would be powered off successfully. I have tried to flush before disabled and this can't affect the result of the issue. koba ko ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2020-07-10 2:03 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CAJB-X+Ww=bZN2qZ=e=4EkN_RUTiZxHxkdnHh50y9iVqZmT_XQg@mail.gmail.com>
2020-06-15 7:20 ` [Issue]platform/x86: iommu: System can't shutdown because iommu driver keeps checking the status of DMA_GSTS_TES Lu Baolu
2020-06-30 7:31 ` Koba Ko
2020-06-30 7:52 ` Lu Baolu
2020-07-07 3:27 ` Koba Ko
2020-07-07 7:23 ` Lu Baolu
2020-06-15 3:46 Koba Ko
2020-07-09 20:58 ` Limonciello, Mario
2020-07-10 2:03 ` Koba Ko
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®