* Re: [patch 0/4] Intel IOMMU Supspend/Resume Support
@ 2009-03-31 4:22 fenghua.yu
0 siblings, 0 replies; 4+ messages in thread
From: fenghua.yu @ 2009-03-31 4:22 UTC (permalink / raw)
To: Ingo Molnar, David Woodhouse, Suresh Siddha, Andrew Lutomirski,
Jesse Barnes, Kyle McMartin, Yinghai Lu
Cc: LKML, IOMMU
>>
>> The attached patch set implements the suspend and resume feature for
>Intel
>> IOMMU. It hooks to kernel suspend and resume interface. When suspend
>happens, itsaves necessary hardware registers. When resume happens, it
>restores the
>> registers and restarts IOMMU.
>>
>> This patch set can be applied on the tip tree.
>
>Looks good to me, apart from the fact that your #4 patch actually needs
>to come before #1. Shall I apply it to my iommu-2.6.git tree or let Ingo
>take it? If the latter,
>
>Acked-by: David Woodhouse <David.Woodhouse@intel.com>
>Acked-by: David Woodhouse <David.Woodhouse@intel.com>
>Acked-by: David Woodhouse <David.Woodhouse@intel.com>
>Acked-by: David Woodhouse <David.Woodhouse@intel.com>
>
>(if you look carefully, you'll see those are in order 4, 1, 2, 3)
>
>Have we tested this on IA64?
Since ia64 platforms don't support suspend/resume, the code won't take action onia64. But it still installs unused sys device interface.
I'll clean up the code for ia64 and re-send the patch set.
Thanks.
-Fenghua
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch 0/4] Intel IOMMU Supspend/Resume Support
@ 2009-04-02 20:34 fenghua.yu
0 siblings, 0 replies; 4+ messages in thread
From: fenghua.yu @ 2009-04-02 20:34 UTC (permalink / raw)
To: Ingo Molnar, David Woodhouse, Suresh Siddha, Andrew Lutomirski,
Jesse Barnes, Kyle McMartin, Yinghai Lu
Cc: LKML, IOMMU
>> Current Intel IOMMU does not support suspend and resume. In S3 event, kernel
> crashes when DMAR or interrupt remapping is running.
>>
>> The attached patch set implements the suspend and resume feature for Intel
>> IOMMU. It hooks to kernel suspend and resume interface. When suspend happens, itsaves necessary hardware registers. When resume happens, it restores the
>> registers and restarts IOMMU.
>>
>> This patch set can be applied on the tip tree.
>
> Looks good to me, apart from the fact that your #4 patch actually needs
>to come before #1. Shall I apply it to my iommu-2.6.git tree or let Ingo
>take it? If the latter,
>
>Acked-by: David Woodhouse <David.Woodhouse@intel.com>
>Acked-by: David Woodhouse <David.Woodhouse@intel.com>
>Acked-by: David Woodhouse <David.Woodhouse@intel.com>
>Acked-by: David Woodhouse <David.Woodhouse@intel.com>
>
>(if you look carefully, you'll see those are in order 4, 1, 2, 3)
>
>Have we tested this on IA64?
IA64 platforms don't support suspend/resume. The original 4 patches can be
compiled and run on IA64. Only problem is the sysdev interface iommu is
installed but not used.
On the top of the 4 patches, you can apply the following small patch for IA64.
With this small patch, IA64 kernel won't build IOMMU suspend/resume code at all.
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
---
intel-iommu.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c
index 5066668..2d9be1d 100644
--- a/drivers/pci/intel-iommu.c
+++ b/drivers/pci/intel-iommu.c
@@ -2564,7 +2564,7 @@ static void __init init_no_remapping_devices(void)
}
}
-#ifdef CONFIG_PM
+#ifdef CONFIG_SUSPEND
static int init_iommu_hw(void)
{
struct dmar_drhd_unit *drhd;
@@ -2702,7 +2702,7 @@ static int __init init_iommu_sysfs(void)
}
#else
-static init __init init_iommu_sysfs(void)
+static int __init init_iommu_sysfs(void)
{
return 0;
}
--
^ permalink raw reply related [flat|nested] 4+ messages in thread[parent not found: <20090327212241.234500000@intel.com>]
* Re: [patch 0/4] Intel IOMMU Supspend/Resume Support
[not found] <20090327212241.234500000@intel.com>
@ 2009-03-28 14:24 ` Andrew Lutomirski
2009-03-30 23:01 ` David Woodhouse
1 sibling, 0 replies; 4+ messages in thread
From: Andrew Lutomirski @ 2009-03-28 14:24 UTC (permalink / raw)
To: Fenghua Yu
Cc: Ingo Molnar, David Woodhouse, Suresh Siddha, Jesse Barnes,
Kyle McMartin, Yinghai Lu, LKML, IOMMU
Works for me (applied to current -tip). I suspended and resumed just
fine, with no errors logged and all hardware apparently still working.
Tested-by: Andy Lutomirski <amluto@gmail.com>
Thanks for the patch!
Andy
On Fri, Mar 27, 2009 at 5:22 PM, Fenghua Yu <fenghua.yu@intel.com> wrote:
> Current Intel IOMMU does not support suspend and resume. In S3 event, kernel
> crashes when DMAR or interrupt remapping is running.
>
> The attached patch set implements the suspend and resume feature for Intel
> IOMMU. It hooks to kernel suspend and resume interface. When suspend happens, itsaves necessary hardware registers. When resume happens, it restores the
> registers and restarts IOMMU.
>
> This patch set can be applied on the tip tree.
>
> --
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [patch 0/4] Intel IOMMU Supspend/Resume Support
[not found] <20090327212241.234500000@intel.com>
2009-03-28 14:24 ` Andrew Lutomirski
@ 2009-03-30 23:01 ` David Woodhouse
1 sibling, 0 replies; 4+ messages in thread
From: David Woodhouse @ 2009-03-30 23:01 UTC (permalink / raw)
To: Fenghua Yu
Cc: Ingo Molnar, Suresh Siddha, Andrew Lutomirski, Jesse Barnes,
Kyle McMartin, Yinghai Lu, LKML, IOMMU
On Fri, 2009-03-27 at 14:22 -0700, Fenghua Yu wrote:
> Current Intel IOMMU does not support suspend and resume. In S3 event, kernel
> crashes when DMAR or interrupt remapping is running.
>
> The attached patch set implements the suspend and resume feature for Intel
> IOMMU. It hooks to kernel suspend and resume interface. When suspend happens, itsaves necessary hardware registers. When resume happens, it restores the
> registers and restarts IOMMU.
>
> This patch set can be applied on the tip tree.
Looks good to me, apart from the fact that your #4 patch actually needs
to come before #1. Shall I apply it to my iommu-2.6.git tree or let Ingo
take it? If the latter,
Acked-by: David Woodhouse <David.Woodhouse@intel.com>
Acked-by: David Woodhouse <David.Woodhouse@intel.com>
Acked-by: David Woodhouse <David.Woodhouse@intel.com>
Acked-by: David Woodhouse <David.Woodhouse@intel.com>
(if you look carefully, you'll see those are in order 4, 1, 2, 3)
Have we tested this on IA64?
--
David Woodhouse Open Source Technology Centre
David.Woodhouse@intel.com Intel Corporation
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-04-02 20:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-31 4:22 [patch 0/4] Intel IOMMU Supspend/Resume Support fenghua.yu
-- strict thread matches above, loose matches on Subject: below --
2009-04-02 20:34 fenghua.yu
[not found] <20090327212241.234500000@intel.com>
2009-03-28 14:24 ` Andrew Lutomirski
2009-03-30 23:01 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox