public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: John Hesterberg <jh@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] CONFIG_USB_UHCI=y not possible?
Date: Wed, 20 Feb 2002 16:48:31 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590701905144@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590701905141@msgid-missing>

On Wed, Feb 20, 2002 at 08:09:55AM -0800, Stephane Eranian wrote:
> John,
> 
> On Wed, Feb 20, 2002 at 09:50:38AM -0600, John Hesterberg wrote:
> > When I try to change CONFIG_USB_UHCI from a module to static (=m to =y),
> > I get:
> > 
> >     drivers/usb/usbdrv.o: In function `alloc_uhci':
> >     drivers/usb/usbdrv.o(.text.init+0x7e2): relocation truncated to fit: PCREL21B uhci_pci_remove
> > 
> > I don't see anything obvious (to me) with the disassembly:
> > 
> >      7e0:   11 60 01 40 00 21       [MIB]       mov r44=r32
> >      7e6:   00 00 00 02 00 00                   nop.i 0x0
> >      7ec:   08 00 00 50                         br.call.sptk.many b0~0 <alloc_uhci
> > 
> > It's see the same problem in a different kernel, with the same code
> > at a different offset (0x672).
> > 
> > Anyone have any idea what's going on with this?
> > 
> Your kernel is too big (exceed range for relocation). You have to compile some subsystems as modules.
> 
> -- 
> 
> -Stephane

I don't think that's it.  I've hit this problem with very different
configurations, with other stuff turned on and off.  It fails at
this exact spot.

As Bill Nottingham noted, I think it's because the USB UHCI code is
calling a init function from an exit function, or maybe vice versa.
I'm guessing that some of the err handling code in alloc_uhci is
somehow ending up calling uhci_pci_remove, which is defined as
__devexit, which gets discarded by arch/ia64/vmlinux.lds.S.  So I
think I've almost connected the dots. :-)

John


  parent reply	other threads:[~2002-02-20 16:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-20 15:50 [Linux-ia64] CONFIG_USB_UHCI=y not possible? John Hesterberg
2002-02-20 16:09 ` Stephane Eranian
2002-02-20 16:48 ` John Hesterberg [this message]
2002-02-20 17:02 ` Andreas Schwab
2002-02-20 17:14 ` John Hesterberg
2002-02-20 17:26 ` Greg KH
2002-02-20 17:28 ` John Hesterberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-ia64-105590701905144@msgid-missing \
    --to=jh@sgi.com \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox