linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: manual merge of the pci tree
@ 2008-07-03  2:10 Stephen Rothwell
  2008-07-03  2:15 ` Stephen Rothwell
  2008-07-03  3:28 ` Greg KH
  0 siblings, 2 replies; 25+ messages in thread
From: Stephen Rothwell @ 2008-07-03  2:10 UTC (permalink / raw)
  To: Jesse Barnes; +Cc: linux-next, David Howells, Greg KH

Hi Jesse,

Today's linux-next merge of the pci tree got a conflict in  between
commit 4433d5ff973e2c1ea2f923eea8935588e7b96c06 ("PCI: handle pci_name()
being const") from the driver-core tree and commit
8b285ce84bbc719e363a796f466404576b840d36 ("PCI: fix pci_setup_device()'s
sprinting into a const buffer") from the pci tree.

Jesse, since dev_set_name is now in mainline, you really should drop this
commit and replace it with the one from the driver-core tree (which Greg
has hopefully sent you by now).  Or add the equivalent on top of what you
have.

I have appended it below in case.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

commit 4433d5ff973e2c1ea2f923eea8935588e7b96c06
Author: Greg Kroah-Hartman <gregkh@suse.de>
Date:   Wed Jul 2 12:46:22 2008 -0700

    PCI: handle pci_name() being const
    
    This changes pci_setup_device to handle pci_name() now returning a
    constant string.
    
    Cc: Jesse Barns <jbarnes@virtuousgeek.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 3706ce7..0e0e030 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -711,8 +711,9 @@ static int pci_setup_device(struct pci_dev * dev)
 {
 	u32 class;
 
-	sprintf(pci_name(dev), "%04x:%02x:%02x.%d", pci_domain_nr(dev->bus),
-		dev->bus->number, PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn));
+	dev_set_name(&dev->dev, "%04x:%02x:%02x.%d", pci_domain_nr(dev->bus),
+		     dev->bus->number, PCI_SLOT(dev->devfn),
+		     PCI_FUNC(dev->devfn));
 
 	pci_read_config_dword(dev, PCI_CLASS_REVISION, &class);
 	dev->revision = class & 0xff;

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

* Re: linux-next: manual merge of the pci tree
  2008-07-03  2:10 linux-next: manual merge of the pci tree Stephen Rothwell
@ 2008-07-03  2:15 ` Stephen Rothwell
  2008-07-03  3:28 ` Greg KH
  1 sibling, 0 replies; 25+ messages in thread
From: Stephen Rothwell @ 2008-07-03  2:15 UTC (permalink / raw)
  To: Jesse Barnes; +Cc: linux-next, David Howells, Greg KH

[-- Attachment #1: Type: text/plain, Size: 363 bytes --]

Hi Jesse,

On Thu, 3 Jul 2008 12:10:55 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Today's linux-next merge of the pci tree got a conflict in  between
                                                             ^
drivers/pci/probe.c

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: linux-next: manual merge of the pci tree
  2008-07-03  2:10 linux-next: manual merge of the pci tree Stephen Rothwell
  2008-07-03  2:15 ` Stephen Rothwell
@ 2008-07-03  3:28 ` Greg KH
  2008-07-03 19:23   ` Jesse Barnes
  1 sibling, 1 reply; 25+ messages in thread
From: Greg KH @ 2008-07-03  3:28 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: Jesse Barnes, linux-next, David Howells

On Thu, Jul 03, 2008 at 12:10:55PM +1000, Stephen Rothwell wrote:
> Hi Jesse,
> 
> Today's linux-next merge of the pci tree got a conflict in  between
> commit 4433d5ff973e2c1ea2f923eea8935588e7b96c06 ("PCI: handle pci_name()
> being const") from the driver-core tree and commit
> 8b285ce84bbc719e363a796f466404576b840d36 ("PCI: fix pci_setup_device()'s
> sprinting into a const buffer") from the pci tree.
> 
> Jesse, since dev_set_name is now in mainline, you really should drop this
> commit and replace it with the one from the driver-core tree (which Greg
> has hopefully sent you by now).  Or add the equivalent on top of what you
> have.
> 
> I have appended it below in case.

Yes, Greg send him these patches earlier today :)

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

* Re: linux-next: manual merge of the pci tree
  2008-07-03  3:28 ` Greg KH
@ 2008-07-03 19:23   ` Jesse Barnes
  2008-07-04  0:09     ` Stephen Rothwell
  0 siblings, 1 reply; 25+ messages in thread
From: Jesse Barnes @ 2008-07-03 19:23 UTC (permalink / raw)
  To: Greg KH; +Cc: Stephen Rothwell, linux-next, David Howells

On Wednesday, July 02, 2008 8:28 pm Greg KH wrote:
> On Thu, Jul 03, 2008 at 12:10:55PM +1000, Stephen Rothwell wrote:
> > Hi Jesse,
> >
> > Today's linux-next merge of the pci tree got a conflict in  between
> > commit 4433d5ff973e2c1ea2f923eea8935588e7b96c06 ("PCI: handle pci_name()
> > being const") from the driver-core tree and commit
> > 8b285ce84bbc719e363a796f466404576b840d36 ("PCI: fix pci_setup_device()'s
> > sprinting into a const buffer") from the pci tree.
> >
> > Jesse, since dev_set_name is now in mainline, you really should drop this
> > commit and replace it with the one from the driver-core tree (which Greg
> > has hopefully sent you by now).  Or add the equivalent on top of what you
> > have.
> >
> > I have appended it below in case.
>
> Yes, Greg send him these patches earlier today :)

Ok I guess I have to merge upstream into my linux-next tree then.  I've really 
been trying to avoid that so far, but I guess it's time...

Thanks,
Jesse

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

* Re: linux-next: manual merge of the pci tree
  2008-07-03 19:23   ` Jesse Barnes
@ 2008-07-04  0:09     ` Stephen Rothwell
  2008-07-04  0:13       ` Jesse Barnes
  2008-07-04  0:14       ` Stephen Rothwell
  0 siblings, 2 replies; 25+ messages in thread
From: Stephen Rothwell @ 2008-07-04  0:09 UTC (permalink / raw)
  To: Jesse Barnes; +Cc: Greg KH, linux-next, David Howells

[-- Attachment #1: Type: text/plain, Size: 1012 bytes --]

Hi Jesse,

On Thu, 3 Jul 2008 12:23:10 -0700 Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
>
> > Yes, Greg send him these patches earlier today :)
> 
> Ok I guess I have to merge upstream into my linux-next tree then.  I've really 
> been trying to avoid that so far, but I guess it's time...

Not really.  You just need to make the changes that are in Greg's patches
and he will drop his version.  Basically, the just change every all
references to ->bus_id to use dev_name() and any setting of bus_id (or
pci_name) to use dev_set_name.

Even if Greg doesn't drop his, I can handle the trivial conflicts until
he does.

Unless, of course, there are other changes in upstream that affect all
this (like you don't yet have the part of Linus' tree that defines
dev_name and dev_set_name).

(I should stop writing emails as a train of thought - it ends up as a
wreck too often :-))

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: linux-next: manual merge of the pci tree
  2008-07-04  0:09     ` Stephen Rothwell
@ 2008-07-04  0:13       ` Jesse Barnes
  2008-07-04  0:14       ` Stephen Rothwell
  1 sibling, 0 replies; 25+ messages in thread
From: Jesse Barnes @ 2008-07-04  0:13 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: Greg KH, linux-next, David Howells

On Thursday, July 03, 2008 5:09 pm Stephen Rothwell wrote:
> Hi Jesse,
>
> On Thu, 3 Jul 2008 12:23:10 -0700 Jesse Barnes <jbarnes@virtuousgeek.org> 
wrote:
> > > Yes, Greg send him these patches earlier today :)
> >
> > Ok I guess I have to merge upstream into my linux-next tree then.  I've
> > really been trying to avoid that so far, but I guess it's time...
>
> Not really.  You just need to make the changes that are in Greg's patches
> and he will drop his version.  Basically, the just change every all
> references to ->bus_id to use dev_name() and any setting of bus_id (or
> pci_name) to use dev_set_name.

Yeah, I saw that I already had the dev_set_name commit in my linux-next 
branch, so I went ahead and made the change.  When master.kernel.org comes 
back I'll actually push it. :)

Jesse

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

* Re: linux-next: manual merge of the pci tree
  2008-07-04  0:09     ` Stephen Rothwell
  2008-07-04  0:13       ` Jesse Barnes
@ 2008-07-04  0:14       ` Stephen Rothwell
  1 sibling, 0 replies; 25+ messages in thread
From: Stephen Rothwell @ 2008-07-04  0:14 UTC (permalink / raw)
  To: Jesse Barnes; +Cc: Greg KH, linux-next, David Howells

[-- Attachment #1: Type: text/plain, Size: 450 bytes --]

Hi Jesse,

On Fri, 4 Jul 2008 10:09:33 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Unless, of course, there are other changes in upstream that affect all
> this (like you don't yet have the part of Linus' tree that defines
> dev_name and dev_set_name).

I just checked and you seem to have those commits as of yesterday.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* linux-next: manual merge of the pci tree.
@ 2017-02-19 22:40 Stephen Rothwell
  0 siblings, 0 replies; 25+ messages in thread
From: Stephen Rothwell @ 2017-02-19 22:40 UTC (permalink / raw)
  To: Bjorn Helgaas; +Cc: linux-next, linux-kernel

Hi Bjorn,

Today's linux-next merge of the pci tree got conflicts in:

  drivers/pci/dwc/pcie-designware-host.c

I have no idea why? I see this file has been split out from another that
was itself moved from another directory, but that all happened in the
pci tree.

I fixed it up (I just used the pci tree version) and can carry the fix
as necessary. This is now fixed as far as linux-next is concerned, but
any non trivial conflicts should be mentioned to your upstream maintainer
when your tree is submitted for merging.  You may also want to consider
cooperating with the maintainer of the conflicting tree to minimise any
particularly complex conflicts.

OK, I checked again ... it may be conflicting with commit

  a782b5f986c3 ("PCI: designware: Check for iATU unroll only on platforms that use ATU")

from Linus' tree (merged into v4.10-rc5), so my resolution above may be
incorrect.
-- 
Cheers,
Stephen Rothwell

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

* linux-next: manual merge of the pci tree
@ 2009-01-06  0:54 Stephen Rothwell
  0 siblings, 0 replies; 25+ messages in thread
From: Stephen Rothwell @ 2009-01-06  0:54 UTC (permalink / raw)
  To: Jesse Barnes; +Cc: linux-next, Kenji Kaneshige, Justin Chen

Hi Jesse,

Today's linux-next merge of the pci tree got a conflict in
drivers/pci/hotplug/acpiphp_glue.c between commit
b6adc1955d31515be6631e63b1fe4bcdcd41db77 ("PCI hotplug: acpiphp wants a
64-bit _SUN") from Linus' tree and commit
5a21939b5703db326c314cf30b9f2d37df6a8e1f ("PCI hotplug: introduce
functions for ACPI slot detection") from the pci tree.

Just changed context. I fixed it up (see below), but it should be
fixed by merging with Linus' tree (one way or the other).
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

diff --cc drivers/pci/hotplug/acpiphp_glue.c
index 3affc64,ffa47be..0000000
--- a/drivers/pci/hotplug/acpiphp_glue.c
+++ b/drivers/pci/hotplug/acpiphp_glue.c
@@@ -255,9 -194,8 +194,8 @@@ register_slot(acpi_handle handle, u32 l
  
  		bridge->nr_slots++;
  
 -		dbg("found ACPI PCI Hotplug slot %d at PCI %04x:%02x:%02x\n",
 +		dbg("found ACPI PCI Hotplug slot %llu at PCI %04x:%02x:%02x\n",
- 				slot->sun, pci_domain_nr(bridge->pci_bus),
- 				bridge->pci_bus->number, slot->device);
+ 		    slot->sun, pci_domain_nr(pbus), pbus->number, device);
  		retval = acpiphp_register_hotplug_slot(slot);
  		if (retval) {
  			if (retval == -EBUSY)

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

* linux-next: manual merge of the pci tree
@ 2008-12-11  0:53 Stephen Rothwell
  0 siblings, 0 replies; 25+ messages in thread
From: Stephen Rothwell @ 2008-12-11  0:53 UTC (permalink / raw)
  To: Jesse Barnes; +Cc: linux-next, Rafael J. Wysocki, Greg KH, Roel Kluin

Hi Jesse,

Today's linux-next merge of the pci tree got a conflict in
drivers/pci/pci-driver.c between commit
fc9f864789c8a9e3ce747765f31ee8320bb66b60 ("PM: Simplify the new
suspend/hibernation framework for devices") from the driver-core tree and
commit be74163f1a84d5e5cfecda34232afceef8eb0b93 ("PCI: Make some
functions & structures static") from the pci tree.

I fixed it up (see below) and can carry the fix as necessary.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

diff --cc drivers/pci/pci-driver.c
index 99d867b,20c89a1..0000000
--- a/drivers/pci/pci-driver.c
+++ b/drivers/pci/pci-driver.c
@@@ -681,15 -668,17 +695,15 @@@ static int pci_pm_restore_noirq(struct 
  
  #endif /* !CONFIG_HIBERNATION */
  
- struct dev_pm_ops pci_dev_pm_ops = {
 -static struct pm_ext_ops pci_pm_ops = {
 -	.base = {
 -		.prepare = pci_pm_prepare,
 -		.complete = pci_pm_complete,
 -		.suspend = pci_pm_suspend,
 -		.resume = pci_pm_resume,
 -		.freeze = pci_pm_freeze,
 -		.thaw = pci_pm_thaw,
 -		.poweroff = pci_pm_poweroff,
 -		.restore = pci_pm_restore,
 -	},
++static struct dev_pm_ops pci_dev_pm_ops = {
 +	.prepare = pci_pm_prepare,
 +	.complete = pci_pm_complete,
 +	.suspend = pci_pm_suspend,
 +	.resume = pci_pm_resume,
 +	.freeze = pci_pm_freeze,
 +	.thaw = pci_pm_thaw,
 +	.poweroff = pci_pm_poweroff,
 +	.restore = pci_pm_restore,
  	.suspend_noirq = pci_pm_suspend_noirq,
  	.resume_noirq = pci_pm_resume_noirq,
  	.freeze_noirq = pci_pm_freeze_noirq,

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

* Re: linux-next: manual merge of the pci tree
  2008-10-20  4:00 Stephen Rothwell
@ 2008-10-20 18:36 ` Jesse Barnes
  0 siblings, 0 replies; 25+ messages in thread
From: Jesse Barnes @ 2008-10-20 18:36 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, Thomas Petazzoni

On Sunday, October 19, 2008 9:00 pm Stephen Rothwell wrote:
> Hi Jesse,
>
> Today's linux-next merge of the pci tree got a conflict in
> drivers/pci/quirks.c between commit
> 2e532d68a2b3e2aa6b19731501222069735c741c ("{pci,pnp} quirks.c: don't use
> deprecated print_fn_descriptor_symbol()") from Linus' tree and commit
> 9a1e6932e1129d0c6b5f06ea39282b21f892a114 ("PCI: allow quirks to be
> compiled out") from the pci tree.
>
> The former commit (which matches commit
> 248cb30af8bd95f1af95d54c0a9558dc2ac62a55 ("PCI: use %pF instead of
> print_fn_descriptor_symbol() in quirks.c") in the pci tree) updates code
> that was moved by the latter.  Since the pci tree also does that update,
> I just used the pci tree version.

Sounds good.  I just rebased onto master so that should be fixed up now.

-- 
Jesse Barnes, Intel Open Source Technology Center

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

* linux-next: manual merge of the pci tree
@ 2008-10-20  4:00 Stephen Rothwell
  2008-10-20 18:36 ` Jesse Barnes
  0 siblings, 1 reply; 25+ messages in thread
From: Stephen Rothwell @ 2008-10-20  4:00 UTC (permalink / raw)
  To: Jesse Barnes; +Cc: linux-next, Thomas Petazzoni

[-- Attachment #1: Type: text/plain, Size: 761 bytes --]

Hi Jesse,

Today's linux-next merge of the pci tree got a conflict in
drivers/pci/quirks.c between commit
2e532d68a2b3e2aa6b19731501222069735c741c ("{pci,pnp} quirks.c: don't use
deprecated print_fn_descriptor_symbol()") from Linus' tree and commit
9a1e6932e1129d0c6b5f06ea39282b21f892a114 ("PCI: allow quirks to be
compiled out") from the pci tree.

The former commit (which matches commit
248cb30af8bd95f1af95d54c0a9558dc2ac62a55 ("PCI: use %pF instead of
print_fn_descriptor_symbol() in quirks.c") in the pci tree) updates code
that was moved by the latter.  Since the pci tree also does that update,
I just used the pci tree version.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: linux-next: manual merge of the pci tree
  2008-10-16  3:24 Stephen Rothwell
@ 2008-10-16 12:32 ` Jesse Barnes
  0 siblings, 0 replies; 25+ messages in thread
From: Jesse Barnes @ 2008-10-16 12:32 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, Vincent Legoll, Sitsofe Wheeler

On Wednesday, October 15, 2008 8:24 pm Stephen Rothwell wrote:
> Hi Jesse,
>
> Today's linux-next merge of the pci tree got a conflict in
> drivers/pci/pcie/aspm.c between commit
> e1f4f59d1ab9ebac44830d6ae450fb358ac559d3 ("PCI: Fix pcie_aspm=force")
> from Linus' tree and commit 4f56ffe4ff214284f9c92037f9ad5f389a74bb84
> ("PCI: probing debug message uniformization") from the pci tree.
>
> Just context.  I fixed it up (see below).

Yeah I sent that fix to Linus but it's not in my linux-next tree.  Looks like 
I'll have to do some re-basing to fix up Ben's PPC legacy stuff so I can take 
care of it then.

Jesse

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

* linux-next: manual merge of the pci tree
@ 2008-10-16  3:24 Stephen Rothwell
  2008-10-16 12:32 ` Jesse Barnes
  0 siblings, 1 reply; 25+ messages in thread
From: Stephen Rothwell @ 2008-10-16  3:24 UTC (permalink / raw)
  To: Jesse Barnes; +Cc: linux-next, Vincent Legoll, Sitsofe Wheeler

Hi Jesse,

Today's linux-next merge of the pci tree got a conflict in
drivers/pci/pcie/aspm.c between commit
e1f4f59d1ab9ebac44830d6ae450fb358ac559d3 ("PCI: Fix pcie_aspm=force")
from Linus' tree and commit 4f56ffe4ff214284f9c92037f9ad5f389a74bb84
("PCI: probing debug message uniformization") from the pci tree.

Just context.  I fixed it up (see below).
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

diff --cc drivers/pci/pcie/aspm.c
index 851f5b8,4b18b30..0000000
--- a/drivers/pci/pcie/aspm.c
+++ b/drivers/pci/pcie/aspm.c
@@@ -527,10 -527,10 +527,10 @@@ static int pcie_aspm_sanity_check(struc
  		 */
  		pci_read_config_dword(child_dev, child_pos + PCI_EXP_DEVCAP,
  			&reg32);
 -		if (!(reg32 & PCI_EXP_DEVCAP_RBER && !aspm_force)) {
 +		if (!(reg32 & PCI_EXP_DEVCAP_RBER) && !aspm_force) {
- 			printk("Pre-1.1 PCIe device detected, "
- 				"disable ASPM for %s. It can be enabled forcedly"
- 				" with 'pcie_aspm=force'\n", pci_name(pdev));
+ 			dev_printk(KERN_INFO, &child_dev->dev, "disabling ASPM"
+ 				" on pre-1.1 PCIe device.  You can enable it"
+ 				" with 'pcie_aspm=force'\n");
  			return -EINVAL;
  		}
  	}

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

* linux-next: manual merge of the pci tree
@ 2008-07-08  1:13 Stephen Rothwell
  0 siblings, 0 replies; 25+ messages in thread
From: Stephen Rothwell @ 2008-07-08  1:13 UTC (permalink / raw)
  To: Jesse Barnes; +Cc: linux-next, Greg KH

[-- Attachment #1: Type: text/plain, Size: 652 bytes --]

Hi Jesse,

Today's linux-next merge of the pci tree got a conflict in
arch/sparc64/kernel/pci.c between commit
db212bde6b37e5cc60ae0f16d1872bbbcd1ae9e7 ("sparc64: fix up bus_id changes
in sparc core code") from the driver-core tree and commit
c6c4f070a61b2b6e5cd317a5fbf25255878688a2 ("PCI: make pci_name use
dev_name") from the pci tree (which also exists in the driver-core tree).

Looks like only half the update has been done (i.e. the change to use
dev_set_name is missing from the pci tree).  I took the driver-core
version.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: linux-next: manual merge of the pci tree
  2008-07-02  2:09       ` Yinghai Lu
@ 2008-07-02  3:19         ` Stephen Rothwell
  0 siblings, 0 replies; 25+ messages in thread
From: Stephen Rothwell @ 2008-07-02  3:19 UTC (permalink / raw)
  To: Yinghai Lu
  Cc: Jesse Barnes, Ingo Molnar, linux-next, Thomas Gleixner, H. Peter Anvin

[-- Attachment #1: Type: text/plain, Size: 800 bytes --]

Hi all,

On Tue, 1 Jul 2008 19:09:21 -0700 "Yinghai Lu" <yhlu.kernel@gmail.com> wrote:
>
> >> +++ b/arch/x86/kernel/setup.c
> >> @@ -596,6 +596,13 @@ void __init setup_arch(char **cmdline_p)
> >>
> >>       parse_early_param();
> >>
> >> +#ifdef CONFIG_X86_64
> >> +#ifdef CONFIG_PCI
> >> +     if (pci_early_dump_regs)
> >> +             early_dump_pci_devices();
> >> +#endif
> >> +#endif
> >
> > Yeah, I think this would be safe to enable generally though (certainly useful
> > to enable everwhere)... Yinghai?
> >
> yes. please remove #ifdef CONFIG_X86_64, so 32 bit could use that too.

OK, tomorrow I will do that (today is too late as I have already merged
it). 
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: linux-next: manual merge of the pci tree
  2008-07-02  1:56     ` Jesse Barnes
@ 2008-07-02  2:09       ` Yinghai Lu
  2008-07-02  3:19         ` Stephen Rothwell
  0 siblings, 1 reply; 25+ messages in thread
From: Yinghai Lu @ 2008-07-02  2:09 UTC (permalink / raw)
  To: Jesse Barnes
  Cc: Stephen Rothwell, Ingo Molnar, linux-next, Thomas Gleixner,
	H. Peter Anvin

On Tue, Jul 1, 2008 at 6:56 PM, Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
> On Monday, June 30, 2008 11:29 pm Stephen Rothwell wrote:
>> Hi Ingo,
>>
>> On Tue, 1 Jul 2008 07:58:44 +0200 Ingo Molnar <mingo@elte.hu> wrote:
>> > hm, the commit looks a bit weird: why the ifdefs? There's nothing 64-bit
>> > about being able to dump early resources, and the CONFIG_PCI could be
>> > hidden as well.
>>
>> I added the 64 bit config test as the original patch was to setup_64.c
>> only (I think).
>>
>> +++ b/arch/x86/kernel/setup.c
>> @@ -596,6 +596,13 @@ void __init setup_arch(char **cmdline_p)
>>
>>       parse_early_param();
>>
>> +#ifdef CONFIG_X86_64
>> +#ifdef CONFIG_PCI
>> +     if (pci_early_dump_regs)
>> +             early_dump_pci_devices();
>> +#endif
>> +#endif
>
> Yeah, I think this would be safe to enable generally though (certainly useful
> to enable everwhere)... Yinghai?
>
yes. please remove #ifdef CONFIG_X86_64, so 32 bit could use that too.

YH

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

* Re: linux-next: manual merge of the pci tree
  2008-07-01  6:29   ` Stephen Rothwell
@ 2008-07-02  1:56     ` Jesse Barnes
  2008-07-02  2:09       ` Yinghai Lu
  0 siblings, 1 reply; 25+ messages in thread
From: Jesse Barnes @ 2008-07-02  1:56 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Ingo Molnar, linux-next, Thomas Gleixner, H. Peter Anvin, Yinghai Lu

On Monday, June 30, 2008 11:29 pm Stephen Rothwell wrote:
> Hi Ingo,
>
> On Tue, 1 Jul 2008 07:58:44 +0200 Ingo Molnar <mingo@elte.hu> wrote:
> > hm, the commit looks a bit weird: why the ifdefs? There's nothing 64-bit
> > about being able to dump early resources, and the CONFIG_PCI could be
> > hidden as well.
>
> I added the 64 bit config test as the original patch was to setup_64.c
> only (I think).
>
> +++ b/arch/x86/kernel/setup.c
> @@ -596,6 +596,13 @@ void __init setup_arch(char **cmdline_p)
>  
>       parse_early_param();
>  
> +#ifdef CONFIG_X86_64
> +#ifdef CONFIG_PCI
> +     if (pci_early_dump_regs)
> +             early_dump_pci_devices();
> +#endif
> +#endif

Yeah, I think this would be safe to enable generally though (certainly useful 
to enable everwhere)... Yinghai?

Thanks,
Jesse

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

* Re: linux-next: manual merge of the pci tree
  2008-07-01  5:58 ` Ingo Molnar
@ 2008-07-01  6:29   ` Stephen Rothwell
  2008-07-02  1:56     ` Jesse Barnes
  0 siblings, 1 reply; 25+ messages in thread
From: Stephen Rothwell @ 2008-07-01  6:29 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Jesse Barnes, linux-next, Thomas Gleixner, H. Peter Anvin

[-- Attachment #1: Type: text/plain, Size: 459 bytes --]

Hi Ingo,

On Tue, 1 Jul 2008 07:58:44 +0200 Ingo Molnar <mingo@elte.hu> wrote:
>
> 
> hm, the commit looks a bit weird: why the ifdefs? There's nothing 64-bit 
> about being able to dump early resources, and the CONFIG_PCI could be 
> hidden as well.

I added the 64 bit config test as the original patch was to setup_64.c
only (I think).

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: linux-next: manual merge of the pci tree
  2008-07-01  3:53 Stephen Rothwell
@ 2008-07-01  5:58 ` Ingo Molnar
  2008-07-01  6:29   ` Stephen Rothwell
  0 siblings, 1 reply; 25+ messages in thread
From: Ingo Molnar @ 2008-07-01  5:58 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Jesse Barnes, linux-next, Thomas Gleixner, H. Peter Anvin


* Stephen Rothwell <sfr@canb.auug.org.au> wrote:

> Hi Jesse,
> 
> Today's linux-next merge of the pci tree got a conflict in between 
> commit d752aed810d8c038a9a65819f0ba7c7da7425178 ("x86: rename 
> setup_32.c to setup.c") from the x86 tree and commit 
> e3f2baebf4209b5927e23fa65d5977d31db936b3 ("PCI/x86: early dump pci 
> conf space v2") from the pci tree.
> 
> The former merges setup_64.c into setup.c while the latter adds some 
> code to setup_arch in setup_64.c.  I applied the patch below to 
> setup.c. Probably worth checking that I did it right.

Jesse,

> +++ b/arch/x86/kernel/setup.c
> @@ -596,6 +596,13 @@ void __init setup_arch(char **cmdline_p)
>  
>  	parse_early_param();
>  
> +#ifdef CONFIG_X86_64
> +#ifdef CONFIG_PCI
> +	if (pci_early_dump_regs)
> +		early_dump_pci_devices();
> +#endif
> +#endif

hm, the commit looks a bit weird: why the ifdefs? There's nothing 64-bit 
about being able to dump early resources, and the CONFIG_PCI could be 
hidden as well.

	Ingo

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

* linux-next: manual merge of the pci tree
@ 2008-07-01  3:53 Stephen Rothwell
  2008-07-01  5:58 ` Ingo Molnar
  0 siblings, 1 reply; 25+ messages in thread
From: Stephen Rothwell @ 2008-07-01  3:53 UTC (permalink / raw)
  To: Jesse Barnes; +Cc: linux-next, Thomas Gleixner, Ingo Molnar, H. Peter Anvin

Hi Jesse,

Today's linux-next merge of the pci tree got a conflict in  between
commit d752aed810d8c038a9a65819f0ba7c7da7425178 ("x86: rename setup_32.c
to setup.c") from the x86 tree and commit
e3f2baebf4209b5927e23fa65d5977d31db936b3 ("PCI/x86: early dump pci conf
space v2") from the pci tree.

The former merges setup_64.c into setup.c while the latter adds some code
to setup_arch in setup_64.c.  I applied the patch below to setup.c.
Probably worth checking that I did it right.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index fb318ed..0d86814 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -596,6 +596,13 @@ void __init setup_arch(char **cmdline_p)
 
 	parse_early_param();
 
+#ifdef CONFIG_X86_64
+#ifdef CONFIG_PCI
+	if (pci_early_dump_regs)
+		early_dump_pci_devices();
+#endif
+#endif
+
 	if (acpi_mps_check()) {
 #ifdef CONFIG_X86_LOCAL_APIC
 		disable_apic = 1;

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

* Re: linux-next: manual merge of the pci tree
  2008-06-25  3:01 Stephen Rothwell
@ 2008-06-25 19:28 ` Jesse Barnes
  0 siblings, 0 replies; 25+ messages in thread
From: Jesse Barnes @ 2008-06-25 19:28 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, Robert Richter, Gary Hade, Ingo Molnar

On Tuesday, June 24, 2008 8:01 pm Stephen Rothwell wrote:
> Hi Jesse,
>
> Today's linux-next merge of the pci tree got a conflict in
> arch/x86/pci/pci.h between commit
> 547084aab406ea46c1b9bebb115dc86787720c11 ("x86: Move PCI IO ECS code to
> x86/pci") from the x86 tree and commit
> bb71ad880204b79d60331d3384103976e086cb9f ("PCI: boot parameter to avoid
> expansion ROM memory allocation") from the pci tree.
>
> Both commits wanted to use 0x40000 for a define (PCI_HAS_IO_ECS and
> PCI_NOASSIGN_ROMS).  I set PCI_NOASSIGN_ROMS to 0x80000.

Works for me, I can make that change in my linux-next tree if it helps.

Thanks,
Jesse

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

* Re: linux-next: manual merge of the pci tree
  2008-06-25  2:57 Stephen Rothwell
@ 2008-06-25 19:27 ` Jesse Barnes
  0 siblings, 0 replies; 25+ messages in thread
From: Jesse Barnes @ 2008-06-25 19:27 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, Yinghai Lu, Ingo Molnar

On Tuesday, June 24, 2008 7:57 pm Stephen Rothwell wrote:
> Hi Jesse,
>
> Today's linux-next merge of the pci tree got a trivial conflict in
> arch/x86/kernel/setup_64.c between commit
> 8d76d30130dacf140f82d0441f2df74c27e8f10b ("x86: check command line when
> CONFIG_X86_MPPARSE is not set, v2") from the x86 tree and commit
> e3f2baebf4209b5927e23fa65d5977d31db936b3 ("PCI/x86: early dump pci conf
> space v2") from the pci tree.
>
> Just two overlapping additions.  I took both. I put the pci change
> second, if that matters.

That's fine.  Thanks.

Jesse

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

* linux-next: manual merge of the pci tree
@ 2008-06-25  3:01 Stephen Rothwell
  2008-06-25 19:28 ` Jesse Barnes
  0 siblings, 1 reply; 25+ messages in thread
From: Stephen Rothwell @ 2008-06-25  3:01 UTC (permalink / raw)
  To: Jesse Barnes; +Cc: linux-next, Robert Richter, Gary Hade, Ingo Molnar

[-- Attachment #1: Type: text/plain, Size: 586 bytes --]

Hi Jesse,

Today's linux-next merge of the pci tree got a conflict in
arch/x86/pci/pci.h between commit
547084aab406ea46c1b9bebb115dc86787720c11 ("x86: Move PCI IO ECS code to
x86/pci") from the x86 tree and commit
bb71ad880204b79d60331d3384103976e086cb9f ("PCI: boot parameter to avoid
expansion ROM memory allocation") from the pci tree.

Both commits wanted to use 0x40000 for a define (PCI_HAS_IO_ECS and
PCI_NOASSIGN_ROMS).  I set PCI_NOASSIGN_ROMS to 0x80000.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* linux-next: manual merge of the pci tree
@ 2008-06-25  2:57 Stephen Rothwell
  2008-06-25 19:27 ` Jesse Barnes
  0 siblings, 1 reply; 25+ messages in thread
From: Stephen Rothwell @ 2008-06-25  2:57 UTC (permalink / raw)
  To: Jesse Barnes; +Cc: linux-next, Yinghai Lu, Ingo Molnar

[-- Attachment #1: Type: text/plain, Size: 572 bytes --]

Hi Jesse,

Today's linux-next merge of the pci tree got a trivial conflict in
arch/x86/kernel/setup_64.c between commit
8d76d30130dacf140f82d0441f2df74c27e8f10b ("x86: check command line when
CONFIG_X86_MPPARSE is not set, v2") from the x86 tree and commit
e3f2baebf4209b5927e23fa65d5977d31db936b3 ("PCI/x86: early dump pci conf
space v2") from the pci tree.

Just two overlapping additions.  I took both. I put the pci change
second, if that matters.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

end of thread, other threads:[~2017-02-19 22:41 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-03  2:10 linux-next: manual merge of the pci tree Stephen Rothwell
2008-07-03  2:15 ` Stephen Rothwell
2008-07-03  3:28 ` Greg KH
2008-07-03 19:23   ` Jesse Barnes
2008-07-04  0:09     ` Stephen Rothwell
2008-07-04  0:13       ` Jesse Barnes
2008-07-04  0:14       ` Stephen Rothwell
  -- strict thread matches above, loose matches on Subject: below --
2017-02-19 22:40 Stephen Rothwell
2009-01-06  0:54 Stephen Rothwell
2008-12-11  0:53 Stephen Rothwell
2008-10-20  4:00 Stephen Rothwell
2008-10-20 18:36 ` Jesse Barnes
2008-10-16  3:24 Stephen Rothwell
2008-10-16 12:32 ` Jesse Barnes
2008-07-08  1:13 Stephen Rothwell
2008-07-01  3:53 Stephen Rothwell
2008-07-01  5:58 ` Ingo Molnar
2008-07-01  6:29   ` Stephen Rothwell
2008-07-02  1:56     ` Jesse Barnes
2008-07-02  2:09       ` Yinghai Lu
2008-07-02  3:19         ` Stephen Rothwell
2008-06-25  3:01 Stephen Rothwell
2008-06-25 19:28 ` Jesse Barnes
2008-06-25  2:57 Stephen Rothwell
2008-06-25 19:27 ` Jesse Barnes

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).