2007-12-20 12:23:28

by Tony Camuso

[permalink] [raw]
Subject: [Fwd: Re: [PATCH 1/5]PCI: x86 MMCONFIG: introduce PCI_USING_MMCONF]

To all,

The next few forwarded messages comprise my responses to Greg's
questions about the patch I submitted to deal with pci devices
that do not respond correctly to x86 mmconf accesses.

Please accept my apologies for not having including the community
in my original responses.


-------- Original Message --------
Subject: Re: [PATCH 1/5]PCI: x86 MMCONFIG: introduce PCI_USING_MMCONF
Date: Wed, 19 Dec 2007 18:58:45 -0500
From: Tony Camuso <[email protected]>
Reply-To: [email protected]
To: Greg KH <[email protected]>
References:
<20071219221746.20362.39243.sendpatchset@dhcp83-188.boston.redhat.com>
<20071219221751.20362.23451.sendpatchset@dhcp83-188.boston.redhat.com>
<[email protected]>

Greg KH wrote:
> On Wed, Dec 19, 2007 at 05:17:51PM -0500, [email protected] wrote:
>>
>> +extern struct pci_ops pci_legacy_ops; /* direct.c */
>
> This isn't needed in this patch at all, and might make the compiler
> confused if you were to build with only this patch present :(
>
> thanks,
>
> greg k-h

Yes, of course. I missed that. Thank you.

Should I resubmit that one patch? Or would you prefer I resubmit
the whole patch set?


2007-12-20 14:35:24

by Tony Camuso

[permalink] [raw]
Subject: Re: [Fwd: Re: [PATCH 1/5]PCI: x86 MMCONFIG: introduce PCI_USING_MMCONF]

Tony Camuso wrote:

>
> Greg KH wrote:
>> On Wed, Dec 19, 2007 at 05:17:51PM -0500, [email protected] wrote:
>>>
>>> +extern struct pci_ops pci_legacy_ops; /* direct.c */
>>
>> This isn't needed in this patch at all, and might make the compiler
>> confused if you were to build with only this patch present :(
>>
>> thanks,
>>
>> greg k-h
>
> Yes, of course. I missed that. Thank you.
>
I take that back.

This struct must be declared extern because it is referenced in
arch/x86/pci/common.c by pcibios_fix_bus_scan_quirk()

2007-12-20 16:57:44

by Greg KH

[permalink] [raw]
Subject: Re: [Fwd: Re: [PATCH 1/5]PCI: x86 MMCONFIG: introduce PCI_USING_MMCONF]

On Thu, Dec 20, 2007 at 09:19:00AM -0500, Tony Camuso wrote:
> Tony Camuso wrote:
>
>> Greg KH wrote:
>>> On Wed, Dec 19, 2007 at 05:17:51PM -0500, [email protected] wrote:
>>>> +extern struct pci_ops pci_legacy_ops; /* direct.c */
>>>
>>> This isn't needed in this patch at all, and might make the compiler
>>> confused if you were to build with only this patch present :(
>>>
>>> thanks,
>>>
>>> greg k-h
>> Yes, of course. I missed that. Thank you.
> I take that back.
>
> This struct must be declared extern because it is referenced in
> arch/x86/pci/common.c by pcibios_fix_bus_scan_quirk()

Sure, but you do not reference it in this patch, right? So it's not
needed until you actually use it, so just include it in the patch that
you are needing it in.

thanks,

greg k-h

2007-12-20 17:00:52

by Tony Camuso

[permalink] [raw]
Subject: Re: [Fwd: Re: [PATCH 1/5]PCI: x86 MMCONFIG: introduce PCI_USING_MMCONF]

Greg KH wrote:

> Sure, but you do not reference it in this patch, right? So it's not
> needed until you actually use it, so just include it in the patch that
> you are needing it in.
>
> thanks,
>
> greg k-h

Will do.