linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: USB host pci-quirks
@ 2006-01-26 23:16 Aleksey Gorelov
  0 siblings, 0 replies; 6+ messages in thread
From: Aleksey Gorelov @ 2006-01-26 23:16 UTC (permalink / raw)
  To: Oskar Senft, linux-kernel

>-----Original Message-----
>From: Oskar Senft [mailto:osk-lkml@sirrix.de] 
>Sent: Thursday, January 26, 2006 2:38 PM
>To: Aleksey Gorelov; linux-kernel@vger.kernel.org
>Subject: Re: USB host pci-quirks
>
>Dear Aleksey,
>
>thank you for your e-mail!
>
>>>Is there a special need, that the "drivers/usb/host/pci-quirks.c" is
>>>compiled into the kernel even if USB support is disabled?
>> 
>>   Yes, there is. USB handoff is necessary even if USB support is
>> disabled completely in kernel. In fact, initially early usb 
>handoff code
>> was under pci, but since USB drivers do handoff anyway, it 
>was decided
>> to move everything into usb with a goal of merging them together. 
>>   Just search for USB handoff in kernel archives.
>
>I see ... but as David Brownell already stated on Thu Sep 02 2004 -
>20:07:57 EST:
>For backwards compatibility, the early reset should not be the
>default. There aren't many systems where it's a problem.
>
>What happened to that argument?

There's been a lot of reports since then for hardware which does require
handoff. Hence it's been made default. I did not see any compatibility
issues, but that does not mean they do not exist.

Aleks.

>
>Regards,
>Oskar.
>

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

* Re: USB host pci-quirks
  2006-01-27  0:47   ` Greg KH
@ 2006-01-27  8:12     ` Oskar Senft
  0 siblings, 0 replies; 6+ messages in thread
From: Oskar Senft @ 2006-01-27  8:12 UTC (permalink / raw)
  To: Greg KH; +Cc: Aleksey Gorelov, linux-kernel

Dear Greg, dear Aleksey,

thank you for your response!

> A major distro has shipped for a while with this always enabled with no
> problems, which has helped with this.
I see, ok!

I think we'll find some workaround in our virtualization environment,
but now I know how it came to the current situation.

Thank you,
Oskar.

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

* Re: USB host pci-quirks
  2006-01-26 22:38 ` Oskar Senft
@ 2006-01-27  0:47   ` Greg KH
  2006-01-27  8:12     ` Oskar Senft
  0 siblings, 1 reply; 6+ messages in thread
From: Greg KH @ 2006-01-27  0:47 UTC (permalink / raw)
  To: Oskar Senft; +Cc: Aleksey Gorelov, linux-kernel

On Thu, Jan 26, 2006 at 11:38:26PM +0100, Oskar Senft wrote:
> Dear Aleksey,
> 
> thank you for your e-mail!
> 
> >>Is there a special need, that the "drivers/usb/host/pci-quirks.c" is
> >>compiled into the kernel even if USB support is disabled?
> > 
> >   Yes, there is. USB handoff is necessary even if USB support is
> > disabled completely in kernel. In fact, initially early usb handoff code
> > was under pci, but since USB drivers do handoff anyway, it was decided
> > to move everything into usb with a goal of merging them together. 
> >   Just search for USB handoff in kernel archives.
> 
> I see ... but as David Brownell already stated on Thu Sep 02 2004 -
> 20:07:57 EST:
> For backwards compatibility, the early reset should not be the
> default. There aren't many systems where it's a problem.
> 
> What happened to that argument?

In the year and a half since then, we have changed our mind :)

A major distro has shipped for a while with this always enabled with no
problems, which has helped with this.

thanks,

greg k-h

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

* Re: USB host pci-quirks
  2006-01-26 22:17 Aleksey Gorelov
@ 2006-01-26 22:38 ` Oskar Senft
  2006-01-27  0:47   ` Greg KH
  0 siblings, 1 reply; 6+ messages in thread
From: Oskar Senft @ 2006-01-26 22:38 UTC (permalink / raw)
  To: Aleksey Gorelov, linux-kernel

Dear Aleksey,

thank you for your e-mail!

>>Is there a special need, that the "drivers/usb/host/pci-quirks.c" is
>>compiled into the kernel even if USB support is disabled?
> 
>   Yes, there is. USB handoff is necessary even if USB support is
> disabled completely in kernel. In fact, initially early usb handoff code
> was under pci, but since USB drivers do handoff anyway, it was decided
> to move everything into usb with a goal of merging them together. 
>   Just search for USB handoff in kernel archives.

I see ... but as David Brownell already stated on Thu Sep 02 2004 -
20:07:57 EST:
For backwards compatibility, the early reset should not be the
default. There aren't many systems where it's a problem.

What happened to that argument?

Regards,
Oskar.

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

* RE: USB host pci-quirks
@ 2006-01-26 22:17 Aleksey Gorelov
  2006-01-26 22:38 ` Oskar Senft
  0 siblings, 1 reply; 6+ messages in thread
From: Aleksey Gorelov @ 2006-01-26 22:17 UTC (permalink / raw)
  To: Oskar Senft, linux-kernel

 

>-----Original Message-----
>From: linux-kernel-owner@vger.kernel.org 
>[mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Oskar Senft
>Sent: Thursday, January 26, 2006 3:03 AM
>To: linux-kernel@vger.kernel.org
>Subject: USB host pci-quirks
>
>Hi all!
>
>I'm currently working with Linux in a hardware virtualization
>environment (L4 microkernel). During tests, we discovered, 
>that there is
>some incosistency in the kernel configuration dependencies:
>
>the file "drivers/usb/host/pci-quirks.c" is added to the kernel as soon
>as PCI support is activated, even if USB support is completely 
>disabled.
>
>We discovered this issue while trying to run multiple Linux instances
>simultaneously.
>
>Is there a special need, that the "drivers/usb/host/pci-quirks.c" is
>compiled into the kernel even if USB support is disabled?

  Yes, there is. USB handoff is necessary even if USB support is
disabled completely in kernel. In fact, initially early usb handoff code
was under pci, but since USB drivers do handoff anyway, it was decided
to move everything into usb with a goal of merging them together. 
  Just search for USB handoff in kernel archives.

Thanks,
Aleks.

>
>I suggest the attached patch to resolve that problem. The file then is
>only included if PCI and USB support is enabled.
>
>Best regards,
>Oskar.


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

* USB host pci-quirks
@ 2006-01-26 11:03 Oskar Senft
  0 siblings, 0 replies; 6+ messages in thread
From: Oskar Senft @ 2006-01-26 11:03 UTC (permalink / raw)
  To: linux-kernel

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

Hi all!

I'm currently working with Linux in a hardware virtualization
environment (L4 microkernel). During tests, we discovered, that there is
some incosistency in the kernel configuration dependencies:

the file "drivers/usb/host/pci-quirks.c" is added to the kernel as soon
as PCI support is activated, even if USB support is completely disabled.

We discovered this issue while trying to run multiple Linux instances
simultaneously.

Is there a special need, that the "drivers/usb/host/pci-quirks.c" is
compiled into the kernel even if USB support is disabled?

I suggest the attached patch to resolve that problem. The file then is
only included if PCI and USB support is enabled.

Best regards,
Oskar.

[-- Attachment #2: pci_but_no_usb-2006-01-24.patch --]
[-- Type: text/plain, Size: 605 bytes --]

--- drivers/usb/host/Makefile.orig	2006-01-24 12:28:11.000000000 +0100
+++ drivers/usb/host/Makefile	2006-01-24 12:27:38.000000000 +0100
@@ -2,7 +2,15 @@
 # Makefile for USB Host Controller Drivers
 #
 
-obj-$(CONFIG_PCI)		+= pci-quirks.o
+# only compile pci-quirks if PCI is enabled
+# and USB is either compiled as a module
+ifeq ($(CONFIG_USB),m)
+	obj-$(CONFIG_PCI)		+= pci-quirks.o
+endif
+# or directly into the kernel
+ifeq ($(CONFIG_USB),y)
+        obj-$(CONFIG_PCI)               += pci-quirks.o
+endif
 
 obj-$(CONFIG_USB_EHCI_HCD)	+= ehci-hcd.o
 obj-$(CONFIG_USB_ISP116X_HCD)	+= isp116x-hcd.o

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

end of thread, other threads:[~2006-01-27  8:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-26 23:16 USB host pci-quirks Aleksey Gorelov
  -- strict thread matches above, loose matches on Subject: below --
2006-01-26 22:17 Aleksey Gorelov
2006-01-26 22:38 ` Oskar Senft
2006-01-27  0:47   ` Greg KH
2006-01-27  8:12     ` Oskar Senft
2006-01-26 11:03 Oskar Senft

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