linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Trouble with swiotlb
@ 2004-12-03 14:26 Roland Fehrenbacher
  2004-12-03 21:36 ` Randy.Dunlap
  0 siblings, 1 reply; 5+ messages in thread
From: Roland Fehrenbacher @ 2004-12-03 14:26 UTC (permalink / raw)
  To: linux-kernel

Hi,

when building 2.4.28 or 2.4.27 on x86_64 with IOMMU and SWIOTLB support
enabled I get unresolved symbol for 3 modules:

depmod: *** Unresolved symbols in /lib/modules/2.4.28/kernel/drivers/net/e1000/e1000.o
depmod: *** Unresolved symbols in /lib/modules/2.4.28/kernel/drivers/usb/host/uhci.o
depmod: *** Unresolved symbols in /lib/modules/2.4.28/kernel/drivers/usb/host/usb-uhci.o

When modprobing any of the modules I get:
unresolved symbol swiotlb

The kernel boots fine on Opterons and EM64T Xeons otherwise.

Any ideas.

Cheers,

Roland


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

* Re: Trouble with swiotlb
  2004-12-03 14:26 Trouble with swiotlb Roland Fehrenbacher
@ 2004-12-03 21:36 ` Randy.Dunlap
  2004-12-04  0:20   ` Roland Fehrenbacher
  0 siblings, 1 reply; 5+ messages in thread
From: Randy.Dunlap @ 2004-12-03 21:36 UTC (permalink / raw)
  To: rf; +Cc: linux-kernel, marcelo.tosatti

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

Roland Fehrenbacher wrote:
> Hi,
> 
> when building 2.4.28 or 2.4.27 on x86_64 with IOMMU and SWIOTLB support
> enabled I get unresolved symbol for 3 modules:
> 
> depmod: *** Unresolved symbols in /lib/modules/2.4.28/kernel/drivers/net/e1000/e1000.o
> depmod: *** Unresolved symbols in /lib/modules/2.4.28/kernel/drivers/usb/host/uhci.o
> depmod: *** Unresolved symbols in /lib/modules/2.4.28/kernel/drivers/usb/host/usb-uhci.o
> 
> When modprobing any of the modules I get:
> unresolved symbol swiotlb
> 
> The kernel boots fine on Opterons and EM64T Xeons otherwise.
> 
> Any ideas.

Looks like it just needs 'swiotlb' exported (as in 2.6.x).
Can you test the attached patch?
I don't have 2.4.x booting on x8-64 yet.

-- 
~Randy


[-- Attachment #2: swiotlb_2428.patch --]
[-- Type: text/x-patch, Size: 530 bytes --]

linux-2428-work
<description>

Signed-off-by: Your Name <email@domain.tld>

diffstat:=
 arch/x86_64/kernel/setup.c |    1 +
 1 files changed, 1 insertion(+)

diff -Naurp ./arch/x86_64/kernel/setup.c~swiotlb ./arch/x86_64/kernel/setup.c
--- ./arch/x86_64/kernel/setup.c~swiotlb	2004-08-07 16:26:04.000000000 -0700
+++ ./arch/x86_64/kernel/setup.c	2004-12-03 11:54:07.000000000 -0800
@@ -52,6 +52,7 @@ int acpi_disabled;
 EXPORT_SYMBOL(acpi_disabled);
 
 int swiotlb;
+EXPORT_SYMBOL(swiotlb);
 
 extern	int phys_proc_id[NR_CPUS];
 

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

* Re: Trouble with swiotlb
  2004-12-04  0:07     ` Randy.Dunlap
@ 2004-12-03 23:23       ` Marcelo Tosatti
  0 siblings, 0 replies; 5+ messages in thread
From: Marcelo Tosatti @ 2004-12-03 23:23 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: rf, linux-kernel

On Fri, Dec 03, 2004 at 04:07:49PM -0800, Randy.Dunlap wrote:
> Roland Fehrenbacher wrote:
> >>>>>>"Randy" == Randy Dunlap <Randy.Dunlap> writes:
> >
> >
> >    Randy> Roland Fehrenbacher wrote:
> >    >> Hi,
> >    >> 
> >    >> when building 2.4.28 or 2.4.27 on x86_64 with IOMMU and SWIOTLB
> >    >> support enabled I get unresolved symbol for 3 modules:
> >    >> 
> >    >> depmod: *** Unresolved symbols in
> >    >> /lib/modules/2.4.28/kernel/drivers/net/e1000/e1000.o depmod:
> >    >> *** Unresolved symbols in
> >    >> /lib/modules/2.4.28/kernel/drivers/usb/host/uhci.o depmod: ***
> >    >> Unresolved symbols in
> >    >> /lib/modules/2.4.28/kernel/drivers/usb/host/usb-uhci.o
> >    >> 
> >    >> When modprobing any of the modules I get: unresolved symbol
> >    >> swiotlb
> >    >> 
> >    >> The kernel boots fine on Opterons and EM64T Xeons otherwise.
> >    >> 
> >    >> Any ideas.
> >
> >    Randy> Looks like it just needs 'swiotlb' exported (as in 2.6.x).
> >    Randy> Can you test the attached patch?  I don't have 2.4.x
> >    Randy> booting on x8-64 yet.
> >
> >Hi Randy,
> >
> >thanks for the fast reply. Your patch solved the problem. I can boot
> >Opterons and EM64T Xeons now without any problems.
> 
> Thanks for the results.  Marcelo, can you rip out my garbaged patch
> header/description before applying it?   :)

Done - thanks Randy.

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

* Re: Trouble with swiotlb
  2004-12-04  0:20   ` Roland Fehrenbacher
@ 2004-12-04  0:07     ` Randy.Dunlap
  2004-12-03 23:23       ` Marcelo Tosatti
  0 siblings, 1 reply; 5+ messages in thread
From: Randy.Dunlap @ 2004-12-04  0:07 UTC (permalink / raw)
  To: rf; +Cc: linux-kernel, marcelo.tosatti

Roland Fehrenbacher wrote:
>>>>>>"Randy" == Randy Dunlap <Randy.Dunlap> writes:
> 
> 
>     Randy> Roland Fehrenbacher wrote:
>     >> Hi,
>     >> 
>     >> when building 2.4.28 or 2.4.27 on x86_64 with IOMMU and SWIOTLB
>     >> support enabled I get unresolved symbol for 3 modules:
>     >> 
>     >> depmod: *** Unresolved symbols in
>     >> /lib/modules/2.4.28/kernel/drivers/net/e1000/e1000.o depmod:
>     >> *** Unresolved symbols in
>     >> /lib/modules/2.4.28/kernel/drivers/usb/host/uhci.o depmod: ***
>     >> Unresolved symbols in
>     >> /lib/modules/2.4.28/kernel/drivers/usb/host/usb-uhci.o
>     >> 
>     >> When modprobing any of the modules I get: unresolved symbol
>     >> swiotlb
>     >> 
>     >> The kernel boots fine on Opterons and EM64T Xeons otherwise.
>     >> 
>     >> Any ideas.
> 
>     Randy> Looks like it just needs 'swiotlb' exported (as in 2.6.x).
>     Randy> Can you test the attached patch?  I don't have 2.4.x
>     Randy> booting on x8-64 yet.
> 
> Hi Randy,
> 
> thanks for the fast reply. Your patch solved the problem. I can boot
> Opterons and EM64T Xeons now without any problems.

Thanks for the results.  Marcelo, can you rip out my garbaged patch
header/description before applying it?   :)


> Roland
>  
> linux-2428-work
> <description>
> 
> Signed-off-by: Your Name <email@domain.tld>
> 
> diffstat:=
>  arch/x86_64/kernel/setup.c |    1 +
>  1 files changed, 1 insertion(+)
> 
> diff -Naurp ./arch/x86_64/kernel/setup.c~swiotlb ./arch/x86_64/kernel/setup.c
> --- ./arch/x86_64/kernel/setup.c~swiotlb	2004-08-07 16:26:04.000000000 -0700
> +++ ./arch/x86_64/kernel/setup.c	2004-12-03 11:54:07.000000000 -0800
> @@ -52,6 +52,7 @@ int acpi_disabled;
>  EXPORT_SYMBOL(acpi_disabled);
>  
>  int swiotlb;
> +EXPORT_SYMBOL(swiotlb);
>  
>  extern	int phys_proc_id[NR_CPUS];


-- 
~Randy

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

* Re: Trouble with swiotlb
  2004-12-03 21:36 ` Randy.Dunlap
@ 2004-12-04  0:20   ` Roland Fehrenbacher
  2004-12-04  0:07     ` Randy.Dunlap
  0 siblings, 1 reply; 5+ messages in thread
From: Roland Fehrenbacher @ 2004-12-04  0:20 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: linux-kernel, marcelo.tosatti

>>>>> "Randy" == Randy Dunlap <Randy.Dunlap> writes:

    Randy> Roland Fehrenbacher wrote:
    >> Hi,
    >> 
    >> when building 2.4.28 or 2.4.27 on x86_64 with IOMMU and SWIOTLB
    >> support enabled I get unresolved symbol for 3 modules:
    >> 
    >> depmod: *** Unresolved symbols in
    >> /lib/modules/2.4.28/kernel/drivers/net/e1000/e1000.o depmod:
    >> *** Unresolved symbols in
    >> /lib/modules/2.4.28/kernel/drivers/usb/host/uhci.o depmod: ***
    >> Unresolved symbols in
    >> /lib/modules/2.4.28/kernel/drivers/usb/host/usb-uhci.o
    >> 
    >> When modprobing any of the modules I get: unresolved symbol
    >> swiotlb
    >> 
    >> The kernel boots fine on Opterons and EM64T Xeons otherwise.
    >> 
    >> Any ideas.

    Randy> Looks like it just needs 'swiotlb' exported (as in 2.6.x).
    Randy> Can you test the attached patch?  I don't have 2.4.x
    Randy> booting on x8-64 yet.

Hi Randy,

thanks for the fast reply. Your patch solved the problem. I can boot
Opterons and EM64T Xeons now without any problems.

Roland
 
linux-2428-work
<description>

Signed-off-by: Your Name <email@domain.tld>

diffstat:=
 arch/x86_64/kernel/setup.c |    1 +
 1 files changed, 1 insertion(+)

diff -Naurp ./arch/x86_64/kernel/setup.c~swiotlb ./arch/x86_64/kernel/setup.c
--- ./arch/x86_64/kernel/setup.c~swiotlb	2004-08-07 16:26:04.000000000 -0700
+++ ./arch/x86_64/kernel/setup.c	2004-12-03 11:54:07.000000000 -0800
@@ -52,6 +52,7 @@ int acpi_disabled;
 EXPORT_SYMBOL(acpi_disabled);
 
 int swiotlb;
+EXPORT_SYMBOL(swiotlb);
 
 extern	int phys_proc_id[NR_CPUS];
 


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

end of thread, other threads:[~2004-12-04  5:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-03 14:26 Trouble with swiotlb Roland Fehrenbacher
2004-12-03 21:36 ` Randy.Dunlap
2004-12-04  0:20   ` Roland Fehrenbacher
2004-12-04  0:07     ` Randy.Dunlap
2004-12-03 23:23       ` Marcelo Tosatti

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