* [PATCH] x86/pci: fix dmar_tbl early_ioremap leak v2
@ 2008-09-25 7:28 Yinghai Lu
2008-09-25 8:11 ` Ingo Molnar
2008-09-25 18:56 ` Suresh Siddha
0 siblings, 2 replies; 8+ messages in thread
From: Yinghai Lu @ 2008-09-25 7:28 UTC (permalink / raw)
To: Suresh Siddha, Jesse Barnes, Ingo Molnar, Thomas Gleixner,
H. Peter Anvin, Andrew Morton
Cc: linux-kernel, linux-pci, Yinghai Lu
use early_acpi_os_unmap_memory
v2: move unmap_memory early...
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
---
drivers/pci/dmar.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
Index: linux-2.6/drivers/pci/dmar.c
===================================================================
--- linux-2.6.orig/drivers/pci/dmar.c
+++ linux-2.6/drivers/pci/dmar.c
@@ -42,6 +42,7 @@
LIST_HEAD(dmar_drhd_units);
static struct acpi_table_header * __initdata dmar_tbl;
+static acpi_size __initdata dmar_tbl_size;
static void __init dmar_register_drhd_unit(struct dmar_drhd_unit *drhd)
{
@@ -297,8 +298,9 @@ static int __init dmar_table_detect(void
acpi_status status = AE_OK;
/* if we could find DMAR table, then there are DMAR devices */
- status = acpi_get_table(ACPI_SIG_DMAR, 0,
- (struct acpi_table_header **)&dmar_tbl);
+ status = acpi_get_table_with_size(ACPI_SIG_DMAR, 0,
+ (struct acpi_table_header **)&dmar_tbl,
+ &dmar_tbl_size);
if (ACPI_SUCCESS(status) && !dmar_tbl) {
printk (KERN_WARNING PREFIX "Unable to map DMAR\n");
@@ -493,6 +495,9 @@ void __init detect_intel_iommu(void)
}
end:
#endif
+ if (dmar_tbl)
+ early_acpi_os_unmap_memory(dmar_tbl, dmar_tbl_size);
+
dmar_tbl = NULL;
}
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH] x86/pci: fix dmar_tbl early_ioremap leak v2
2008-09-25 7:28 [PATCH] x86/pci: fix dmar_tbl early_ioremap leak v2 Yinghai Lu
@ 2008-09-25 8:11 ` Ingo Molnar
2008-09-25 14:43 ` Jesse Barnes
2008-09-25 18:56 ` Suresh Siddha
1 sibling, 1 reply; 8+ messages in thread
From: Ingo Molnar @ 2008-09-25 8:11 UTC (permalink / raw)
To: Yinghai Lu, Jesse Barnes
Cc: Suresh Siddha, Thomas Gleixner, H. Peter Anvin, Andrew Morton,
linux-kernel, linux-pci
* Yinghai Lu <yhlu.kernel@gmail.com> wrote:
> use early_acpi_os_unmap_memory
>
> v2: move unmap_memory early...
>
> Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
>
> ---
> drivers/pci/dmar.c | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
since this depends on other x2apic/sparseirq changes in -tip i've
applied it to tip/irq/sparseirq.
Jesse, any objections?
Ingo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] x86/pci: fix dmar_tbl early_ioremap leak v2
2008-09-25 8:11 ` Ingo Molnar
@ 2008-09-25 14:43 ` Jesse Barnes
2008-09-25 14:59 ` David Woodhouse
2008-09-25 16:24 ` mark gross
0 siblings, 2 replies; 8+ messages in thread
From: Jesse Barnes @ 2008-09-25 14:43 UTC (permalink / raw)
To: Ingo Molnar
Cc: Yinghai Lu, Suresh Siddha, Thomas Gleixner, H. Peter Anvin,
Andrew Morton, linux-kernel, linux-pci, David Woodhouse,
mark gross
On Thursday, September 25, 2008 1:11 am Ingo Molnar wrote:
> * Yinghai Lu <yhlu.kernel@gmail.com> wrote:
> > use early_acpi_os_unmap_memory
> >
> > v2: move unmap_memory early...
> >
> > Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
> >
> > ---
> > drivers/pci/dmar.c | 9 +++++++--
> > 1 file changed, 7 insertions(+), 2 deletions(-)
>
> since this depends on other x2apic/sparseirq changes in -tip i've
> applied it to tip/irq/sparseirq.
>
> Jesse, any objections?
Nope, but it would be good to get Dave or Mark's ack (Dave owns this code
now).
Jesse
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] x86/pci: fix dmar_tbl early_ioremap leak v2
2008-09-25 14:43 ` Jesse Barnes
@ 2008-09-25 14:59 ` David Woodhouse
2008-09-25 16:24 ` mark gross
1 sibling, 0 replies; 8+ messages in thread
From: David Woodhouse @ 2008-09-25 14:59 UTC (permalink / raw)
To: Jesse Barnes
Cc: Ingo Molnar, Yinghai Lu, Suresh Siddha, Thomas Gleixner,
H. Peter Anvin, Andrew Morton, linux-kernel, linux-pci,
mark gross
On Thu, 2008-09-25 at 07:43 -0700, Jesse Barnes wrote:
> On Thursday, September 25, 2008 1:11 am Ingo Molnar wrote:
> > * Yinghai Lu <yhlu.kernel@gmail.com> wrote:
> > > use early_acpi_os_unmap_memory
> > >
> > > v2: move unmap_memory early...
> > >
> > > Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
> > >
> > > ---
> > > drivers/pci/dmar.c | 9 +++++++--
> > > 1 file changed, 7 insertions(+), 2 deletions(-)
> >
> > since this depends on other x2apic/sparseirq changes in -tip i've
> > applied it to tip/irq/sparseirq.
> >
> > Jesse, any objections?
>
> Nope, but it would be good to get Dave or Mark's ack (Dave owns this code
> now).
I own the code in theory, but am not yet sufficiently competent.
My VT-d hardware arrived just before I left the country for KS+LPC, so
is gathering dust in my absence. I get home this weekend.
_Next_ week, if you see me thinking about _anything_ other than the
IOMMU, please slap me.
--
David Woodhouse Open Source Technology Centre
David.Woodhouse@intel.com Intel Corporation
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] x86/pci: fix dmar_tbl early_ioremap leak v2
2008-09-25 14:43 ` Jesse Barnes
2008-09-25 14:59 ` David Woodhouse
@ 2008-09-25 16:24 ` mark gross
2008-09-25 17:01 ` Yinghai Lu
1 sibling, 1 reply; 8+ messages in thread
From: mark gross @ 2008-09-25 16:24 UTC (permalink / raw)
To: Jesse Barnes
Cc: Ingo Molnar, Yinghai Lu, Suresh Siddha, Thomas Gleixner,
H. Peter Anvin, Andrew Morton, linux-kernel, linux-pci,
David Woodhouse
On Thu, Sep 25, 2008 at 07:43:34AM -0700, Jesse Barnes wrote:
> On Thursday, September 25, 2008 1:11 am Ingo Molnar wrote:
> > * Yinghai Lu <yhlu.kernel@gmail.com> wrote:
> > > use early_acpi_os_unmap_memory
> > >
> > > v2: move unmap_memory early...
> > >
> > > Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
> > >
> > > ---
> > > drivers/pci/dmar.c | 9 +++++++--
> > > 1 file changed, 7 insertions(+), 2 deletions(-)
> >
> > since this depends on other x2apic/sparseirq changes in -tip i've
> > applied it to tip/irq/sparseirq.
> >
> > Jesse, any objections?
>
> Nope, but it would be good to get Dave or Mark's ack (Dave owns this code
> now).
>
Sorry for the dumb question but where is acpi_get_table_with_size
defined? Its not in linus's git. /me goes and gets linux-next...
--mgross
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] x86/pci: fix dmar_tbl early_ioremap leak v2
2008-09-25 16:24 ` mark gross
@ 2008-09-25 17:01 ` Yinghai Lu
2008-09-27 18:48 ` Ingo Molnar
0 siblings, 1 reply; 8+ messages in thread
From: Yinghai Lu @ 2008-09-25 17:01 UTC (permalink / raw)
To: mgross
Cc: Jesse Barnes, Ingo Molnar, Suresh Siddha, Thomas Gleixner,
H. Peter Anvin, Andrew Morton, linux-kernel, linux-pci,
David Woodhouse
On Thu, Sep 25, 2008 at 9:24 AM, mark gross <mgross@linux.intel.com> wrote:
> On Thu, Sep 25, 2008 at 07:43:34AM -0700, Jesse Barnes wrote:
>> On Thursday, September 25, 2008 1:11 am Ingo Molnar wrote:
>> > * Yinghai Lu <yhlu.kernel@gmail.com> wrote:
>> > > use early_acpi_os_unmap_memory
>> > >
>> > > v2: move unmap_memory early...
>> > >
>> > > Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
>> > >
>> > > ---
>> > > drivers/pci/dmar.c | 9 +++++++--
>> > > 1 file changed, 7 insertions(+), 2 deletions(-)
>> >
>> > since this depends on other x2apic/sparseirq changes in -tip i've
>> > applied it to tip/irq/sparseirq.
>> >
>> > Jesse, any objections?
>>
>> Nope, but it would be good to get Dave or Mark's ack (Dave owns this code
>> now).
>>
> Sorry for the dumb question but where is acpi_get_table_with_size
> defined? Its not in linus's git. /me goes and gets linux-next...
>
in tip/master
YH
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] x86/pci: fix dmar_tbl early_ioremap leak v2
2008-09-25 17:01 ` Yinghai Lu
@ 2008-09-27 18:48 ` Ingo Molnar
0 siblings, 0 replies; 8+ messages in thread
From: Ingo Molnar @ 2008-09-27 18:48 UTC (permalink / raw)
To: Yinghai Lu
Cc: mgross, Jesse Barnes, Suresh Siddha, Thomas Gleixner,
H. Peter Anvin, Andrew Morton, linux-kernel, linux-pci,
David Woodhouse
* Yinghai Lu <yinghai@kernel.org> wrote:
> On Thu, Sep 25, 2008 at 9:24 AM, mark gross <mgross@linux.intel.com> wrote:
> > On Thu, Sep 25, 2008 at 07:43:34AM -0700, Jesse Barnes wrote:
> >> On Thursday, September 25, 2008 1:11 am Ingo Molnar wrote:
> >> > * Yinghai Lu <yhlu.kernel@gmail.com> wrote:
> >> > > use early_acpi_os_unmap_memory
> >> > >
> >> > > v2: move unmap_memory early...
> >> > >
> >> > > Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
> >> > >
> >> > > ---
> >> > > drivers/pci/dmar.c | 9 +++++++--
> >> > > 1 file changed, 7 insertions(+), 2 deletions(-)
> >> >
> >> > since this depends on other x2apic/sparseirq changes in -tip i've
> >> > applied it to tip/irq/sparseirq.
> >> >
> >> > Jesse, any objections?
> >>
> >> Nope, but it would be good to get Dave or Mark's ack (Dave owns this code
> >> now).
> >>
> > Sorry for the dumb question but where is acpi_get_table_with_size
> > defined? Its not in linus's git. /me goes and gets linux-next...
> >
>
> in tip/master
access coordinates:
http://people.redhat.com/mingo/tip.git/README
Ingo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] x86/pci: fix dmar_tbl early_ioremap leak v2
2008-09-25 7:28 [PATCH] x86/pci: fix dmar_tbl early_ioremap leak v2 Yinghai Lu
2008-09-25 8:11 ` Ingo Molnar
@ 2008-09-25 18:56 ` Suresh Siddha
1 sibling, 0 replies; 8+ messages in thread
From: Suresh Siddha @ 2008-09-25 18:56 UTC (permalink / raw)
To: Yinghai Lu
Cc: Siddha, Suresh B, Jesse Barnes, Ingo Molnar, Thomas Gleixner,
H. Peter Anvin, Andrew Morton, linux-kernel@vger.kernel.org,
linux-pci@vger.kernel.org, dwmw2
On Thu, Sep 25, 2008 at 12:28:25AM -0700, Yinghai Lu wrote:
> use early_acpi_os_unmap_memory
>
> v2: move unmap_memory early...
>
> Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-09-27 18:49 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-25 7:28 [PATCH] x86/pci: fix dmar_tbl early_ioremap leak v2 Yinghai Lu
2008-09-25 8:11 ` Ingo Molnar
2008-09-25 14:43 ` Jesse Barnes
2008-09-25 14:59 ` David Woodhouse
2008-09-25 16:24 ` mark gross
2008-09-25 17:01 ` Yinghai Lu
2008-09-27 18:48 ` Ingo Molnar
2008-09-25 18:56 ` Suresh Siddha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox