* [PATCH] pci: fix merging left out for BAR print out v2
@ 2008-09-09 19:27 Yinghai Lu
2008-09-10 8:44 ` Ingo Molnar
0 siblings, 1 reply; 8+ messages in thread
From: Yinghai Lu @ 2008-09-09 19:27 UTC (permalink / raw)
To: Jesse Barnes, Ingo Molnar, Thomas Gleixner, H. Peter Anvin,
Andrew Morton
Cc: linux-kernel, linux-pci, Yinghai Lu
print out for Device BAR address before kernel try to update them.
also change it to KERN_DEBUG instead...
v2: update to linux-pci next
also add (unsigned long long) cast
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index d8d3f90..e3bddc5 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -304,6 +304,9 @@ static int __pci_read_base(struct pci_dev *dev, enum pci_bar_type type,
} else {
res->start = l64;
res->end = l64 + sz64;
+ printk(KERN_DEBUG "PCI: %s reg %x 64bit mmio: [%llx, %llx]\n",
+ pci_name(dev), pos, (unsigned long long)res->start,
+ (unsigned long long)res->end);
}
} else {
sz = pci_size(l, sz, mask);
@@ -313,6 +316,9 @@ static int __pci_read_base(struct pci_dev *dev, enum pci_bar_type type,
res->start = l;
res->end = l + sz;
+ printk(KERN_DEBUG "PCI: %s reg %x %s: [%llx, %llx]\n", pci_name(dev),
+ pos, (res->flags & IORESOURCE_IO) ? "io port":"32bit mmio",
+ (unsigned long long)res->start, (unsigned long long)res->end);
}
out:
@@ -383,7 +389,7 @@ void __devinit pci_read_bridge_bases(struct pci_bus *child)
res->start = base;
if (!res->end)
res->end = limit + 0xfff;
- printk(KERN_INFO "PCI: bridge %s io port: [%llx, %llx]\n",
+ printk(KERN_DEBUG "PCI: bridge %s io port: [%llx, %llx]\n",
pci_name(dev), (unsigned long long) res->start,
(unsigned long long) res->end);
}
@@ -397,8 +403,9 @@ void __devinit pci_read_bridge_bases(struct pci_bus *child)
res->flags = (mem_base_lo & PCI_MEMORY_RANGE_TYPE_MASK) | IORESOURCE_MEM;
res->start = base;
res->end = limit + 0xfffff;
- printk(KERN_INFO "PCI: bridge %s 32bit mmio: [%llx, %llx]\n", pci_name(dev),
- (unsigned long long) res->start, (unsigned long long) res->end);
+ printk(KERN_DEBUG "PCI: bridge %s 32bit mmio: [%llx, %llx]\n",
+ pci_name(dev), (unsigned long long) res->start,
+ (unsigned long long) res->end);
}
res = child->resource[2];
@@ -434,7 +441,7 @@ void __devinit pci_read_bridge_bases(struct pci_bus *child)
res->flags = (mem_base_lo & PCI_MEMORY_RANGE_TYPE_MASK) | IORESOURCE_MEM | IORESOURCE_PREFETCH;
res->start = base;
res->end = limit + 0xfffff;
- printk(KERN_INFO "PCI: bridge %s %sbit mmio pref: [%llx, %llx]\n",
+ printk(KERN_DEBUG "PCI: bridge %s %sbit mmio pref: [%llx, %llx]\n",
pci_name(dev), (res->flags & PCI_PREF_RANGE_TYPE_64) ? "64" : "32",
(unsigned long long) res->start, (unsigned long long) res->end);
}
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH] pci: fix merging left out for BAR print out v2
2008-09-09 19:27 [PATCH] pci: fix merging left out for BAR print out v2 Yinghai Lu
@ 2008-09-10 8:44 ` Ingo Molnar
2008-09-10 17:48 ` Jesse Barnes
0 siblings, 1 reply; 8+ messages in thread
From: Ingo Molnar @ 2008-09-10 8:44 UTC (permalink / raw)
To: Yinghai Lu
Cc: Jesse Barnes, Thomas Gleixner, H. Peter Anvin, Andrew Morton,
linux-kernel, linux-pci
* Yinghai Lu <yhlu.kernel@gmail.com> wrote:
> print out for Device BAR address before kernel try to update them.
>
> also change it to KERN_DEBUG instead...
>
> v2: update to linux-pci next
> also add (unsigned long long) cast
>
> Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Jesse, if you want to pick it up, could we please do this via git
methods (git-pull and stuff)? The commit below is the one in -tip -
should i separate it out?
Ingo
----------->
commit ca81beb4a340ee690803fcb1498f863d0e68843f
Author: Yinghai Lu <yhlu.kernel@gmail.com>
Date: Thu Sep 4 20:57:15 2008 +0200
pci: fix BAR print out
print out device BAR address before kernel tries to update them.
also change it to KERN_DEBUG instead...
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH] pci: fix merging left out for BAR print out v2
2008-09-10 8:44 ` Ingo Molnar
@ 2008-09-10 17:48 ` Jesse Barnes
2008-09-10 18:01 ` Yinghai Lu
2008-09-10 18:08 ` Ingo Molnar
0 siblings, 2 replies; 8+ messages in thread
From: Jesse Barnes @ 2008-09-10 17:48 UTC (permalink / raw)
To: Ingo Molnar
Cc: Yinghai Lu, Thomas Gleixner, H. Peter Anvin, Andrew Morton,
linux-kernel, linux-pci
On Wednesday, September 10, 2008 1:44 am Ingo Molnar wrote:
> * Yinghai Lu <yhlu.kernel@gmail.com> wrote:
> > print out for Device BAR address before kernel try to update them.
> >
> > also change it to KERN_DEBUG instead...
> >
> > v2: update to linux-pci next
> > also add (unsigned long long) cast
> >
> > Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
>
> Jesse, if you want to pick it up, could we please do this via git
> methods (git-pull and stuff)? The commit below is the one in -tip -
> should i separate it out?
Sure, though I'm not sure why I shouldn't just be applying this stuff to my
tree first... Seems weird to pull from you only to then ask Linus to pull.
--
Jesse Barnes, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] pci: fix merging left out for BAR print out v2
2008-09-10 17:48 ` Jesse Barnes
@ 2008-09-10 18:01 ` Yinghai Lu
2008-09-10 18:08 ` Ingo Molnar
1 sibling, 0 replies; 8+ messages in thread
From: Yinghai Lu @ 2008-09-10 18:01 UTC (permalink / raw)
To: Jesse Barnes
Cc: Ingo Molnar, Thomas Gleixner, H. Peter Anvin, Andrew Morton,
linux-kernel, linux-pci
On Wed, Sep 10, 2008 at 10:48 AM, Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
> On Wednesday, September 10, 2008 1:44 am Ingo Molnar wrote:
>> * Yinghai Lu <yhlu.kernel@gmail.com> wrote:
>> > print out for Device BAR address before kernel try to update them.
>> >
>> > also change it to KERN_DEBUG instead...
>> >
>> > v2: update to linux-pci next
>> > also add (unsigned long long) cast
>> >
>> > Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
>>
>> Jesse, if you want to pick it up, could we please do this via git
>> methods (git-pull and stuff)? The commit below is the one in -tip -
>> should i separate it out?
>
> Sure, though I'm not sure why I shouldn't just be applying this stuff to my
> tree first... Seems weird to pull from you only to then ask Linus to pull.
there is another patch applied to linux-pci next for cast some
resource_t to unsigned-long-long...
anyway, v2 could be applied to linux-pci cleanly.
YH
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] pci: fix merging left out for BAR print out v2
2008-09-10 17:48 ` Jesse Barnes
2008-09-10 18:01 ` Yinghai Lu
@ 2008-09-10 18:08 ` Ingo Molnar
2008-09-10 18:23 ` Jesse Barnes
1 sibling, 1 reply; 8+ messages in thread
From: Ingo Molnar @ 2008-09-10 18:08 UTC (permalink / raw)
To: Jesse Barnes
Cc: Yinghai Lu, Thomas Gleixner, H. Peter Anvin, Andrew Morton,
linux-kernel, linux-pci
* Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
> On Wednesday, September 10, 2008 1:44 am Ingo Molnar wrote:
> > * Yinghai Lu <yhlu.kernel@gmail.com> wrote:
> > > print out for Device BAR address before kernel try to update them.
> > >
> > > also change it to KERN_DEBUG instead...
> > >
> > > v2: update to linux-pci next
> > > also add (unsigned long long) cast
> > >
> > > Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
> >
> > Jesse, if you want to pick it up, could we please do this via git
> > methods (git-pull and stuff)? The commit below is the one in -tip -
> > should i separate it out?
>
> Sure, though I'm not sure why I shouldn't just be applying this stuff
> to my tree first... Seems weird to pull from you only to then ask
> Linus to pull.
sure - it's just that it all happened weeks ago so it's intermixed. As
long as you dont mind the duplicate commit (git will sort it out fine)
we can apply it to both trees.
Ingo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] pci: fix merging left out for BAR print out v2
2008-09-10 18:08 ` Ingo Molnar
@ 2008-09-10 18:23 ` Jesse Barnes
2008-09-11 7:56 ` Ingo Molnar
0 siblings, 1 reply; 8+ messages in thread
From: Jesse Barnes @ 2008-09-10 18:23 UTC (permalink / raw)
To: Ingo Molnar
Cc: Yinghai Lu, Thomas Gleixner, H. Peter Anvin, Andrew Morton,
linux-kernel, linux-pci
On Wednesday, September 10, 2008 11:08 am Ingo Molnar wrote:
> * Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
> > On Wednesday, September 10, 2008 1:44 am Ingo Molnar wrote:
> > > * Yinghai Lu <yhlu.kernel@gmail.com> wrote:
> > > > print out for Device BAR address before kernel try to update them.
> > > >
> > > > also change it to KERN_DEBUG instead...
> > > >
> > > > v2: update to linux-pci next
> > > > also add (unsigned long long) cast
> > > >
> > > > Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
> > >
> > > Jesse, if you want to pick it up, could we please do this via git
> > > methods (git-pull and stuff)? The commit below is the one in -tip -
> > > should i separate it out?
> >
> > Sure, though I'm not sure why I shouldn't just be applying this stuff
> > to my tree first... Seems weird to pull from you only to then ask
> > Linus to pull.
>
> sure - it's just that it all happened weeks ago so it's intermixed. As
> long as you dont mind the duplicate commit (git will sort it out fine)
> we can apply it to both trees.
Ah I see, sure I can pull your bits. /me gets out his breadcrumbs in
preparation for entering the x86 forest. Does your -tip just contain stuff
you're sending to Linus for 2.6.27?
Thanks,
--
Jesse Barnes, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] pci: fix merging left out for BAR print out v2
2008-09-10 18:23 ` Jesse Barnes
@ 2008-09-11 7:56 ` Ingo Molnar
2008-09-11 16:43 ` Jesse Barnes
0 siblings, 1 reply; 8+ messages in thread
From: Ingo Molnar @ 2008-09-11 7:56 UTC (permalink / raw)
To: Jesse Barnes
Cc: Yinghai Lu, Thomas Gleixner, H. Peter Anvin, Andrew Morton,
linux-kernel, linux-pci
* Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
> On Wednesday, September 10, 2008 11:08 am Ingo Molnar wrote:
> > * Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
> > > On Wednesday, September 10, 2008 1:44 am Ingo Molnar wrote:
> > > > * Yinghai Lu <yhlu.kernel@gmail.com> wrote:
> > > > > print out for Device BAR address before kernel try to update them.
> > > > >
> > > > > also change it to KERN_DEBUG instead...
> > > > >
> > > > > v2: update to linux-pci next
> > > > > also add (unsigned long long) cast
> > > > >
> > > > > Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
> > > >
> > > > Jesse, if you want to pick it up, could we please do this via git
> > > > methods (git-pull and stuff)? The commit below is the one in -tip -
> > > > should i separate it out?
> > >
> > > Sure, though I'm not sure why I shouldn't just be applying this stuff
> > > to my tree first... Seems weird to pull from you only to then ask
> > > Linus to pull.
> >
> > sure - it's just that it all happened weeks ago so it's intermixed. As
> > long as you dont mind the duplicate commit (git will sort it out fine)
> > we can apply it to both trees.
>
> Ah I see, sure I can pull your bits. /me gets out his breadcrumbs in
> preparation for entering the x86 forest. Does your -tip just contain
> stuff you're sending to Linus for 2.6.27?
no, the .27 buckets of -tip are almost completely emptied - we are in
the final stages of .27 stabilization. -tip includes all the v2.6.28
bits. (which this patch would be too IMHO)
anyway, there's no big issue here i think, upstream -git is fine i
think, please apply the patch to your tree (it only changes printouts),
it should not cause any big conflicts.
Ingo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] pci: fix merging left out for BAR print out v2
2008-09-11 7:56 ` Ingo Molnar
@ 2008-09-11 16:43 ` Jesse Barnes
0 siblings, 0 replies; 8+ messages in thread
From: Jesse Barnes @ 2008-09-11 16:43 UTC (permalink / raw)
To: Ingo Molnar
Cc: Yinghai Lu, Thomas Gleixner, H. Peter Anvin, Andrew Morton,
linux-kernel, linux-pci
On Thursday, September 11, 2008 12:56 am Ingo Molnar wrote:
> > Ah I see, sure I can pull your bits. /me gets out his breadcrumbs in
> > preparation for entering the x86 forest. Does your -tip just contain
> > stuff you're sending to Linus for 2.6.27?
>
> no, the .27 buckets of -tip are almost completely emptied - we are in
> the final stages of .27 stabilization. -tip includes all the v2.6.28
> bits. (which this patch would be too IMHO)
>
> anyway, there's no big issue here i think, upstream -git is fine i
> think, please apply the patch to your tree (it only changes printouts),
> it should not cause any big conflicts.
I was thinking it would be good to have this in 2.6.27 since it's a regression
vs. earlier kernels. Anyway I'll apply the patch and let git sort out the
duplication.
Thanks,
--
Jesse Barnes, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-09-11 16:43 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-09 19:27 [PATCH] pci: fix merging left out for BAR print out v2 Yinghai Lu
2008-09-10 8:44 ` Ingo Molnar
2008-09-10 17:48 ` Jesse Barnes
2008-09-10 18:01 ` Yinghai Lu
2008-09-10 18:08 ` Ingo Molnar
2008-09-10 18:23 ` Jesse Barnes
2008-09-11 7:56 ` Ingo Molnar
2008-09-11 16:43 ` Jesse Barnes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox