Re: sparc64 2.6.6-rc2-mm2 build busted: usb/core/hub.c hubstatus

From: raven
Date: Tue Apr 27 2004 - 09:48:47 EST


On Tue, 27 Apr 2004, Ian Kent wrote:

I have to built 2.6.6-rc2-mm2 on my Ultra 1.
I don`t have USB so it's not in my config and the kernel builds OK.
Also I don't have a Creator card.

Unfortuneately I get an oops (see below) when I attempt to start X which
appears to be the same as with 2.6.6-rc2-mm1. If more info, configs etc.
would be useful let me know.

> On Mon, 26 Apr 2004, Paul Jackson wrote:
>
> > Trying to build sparc64 as of 2.6.6-rc2-mm2, using the cross_compile
> > tools from http://developer.osdl.org/dev/plm/cross_compile/ (nice
> > tools - thanks!) fails for two reasons:
> >
> > 1) Broken drivers/char/drm/ffb_drv.c:
> >
> > CC [M] drivers/char/drm/ffb_drv.o
> > In file included from drivers/char/drm/ffb_drv.c:336:
> > drivers/char/drm/drm_drv.h:547: error: `ffb_PCI_IDS' undeclared here (not in a function)
> > drivers/char/drm/drm_drv.h:547: error: initializer element is not constant
> > drivers/char/drm/drm_drv.h:547: error: (near initialization for `ffb_pciidlist[0]')
> > drivers/char/drm/ffb_drv.c:225: warning: `ffb_count_card_instances' defined but not used
> > make[3]: *** [drivers/char/drm/ffb_drv.o] Error 1
> >
> > Andrew already reported this last week - something about missing PCI ID's.
> >
>

Dave Airlie suggested I add (to ffb.h):

#define DRIVER_PCI_IDS { 0,0,0 }

for 2.6.6-rc2-mm1.

It appears that for 2.6.6-rc2-mm2 this should be:

#define ffb_PCI_IDS { 0,0,0 }

which allows the kernel to build.

Dave was however, concerned that this may have side effects.

So to the point,

Apr 24 02:05:04 donald Unable to handle kernel paging request at virtual address 0000000040894000
Apr 24 02:05:04 donald tsk->{mm,active_mm}->context = 000000000000059e
Apr 24 02:05:04 donald tsk->{mm,active_mm}->pgd = fffff80032382000
Apr 24 02:05:04 donald \|/ ____ \|/
Apr 24 02:05:04 donald "@'/ .. \`@"
Apr 24 02:05:04 donald /_| \__/ |_\
Apr 24 02:05:04 donald \__U_/
Apr 24 02:05:04 donald X(3403): Oops [#1]
Apr 24 02:05:04 donald TSTATE: 0000004480009607 TPC: 000000000058156c TNPC: 0000000000581570 Y: 00000000 Not tainted
Apr 24 02:05:04 donald TPC: <fb_set_cmap+0x10c/0x140>
Apr 24 02:05:04 donald g0: 0000000000000003 g1: 0000000000000000 g2: 0000000000000000 g3: 0000000000000000
Apr 24 02:05:04 donald g4: fffff80033590b60 g5: 0000000000677640 g6: fffff80033428000 g7: 0000000000000003
Apr 24 02:05:04 donald o0: 0000000000511aa8 o1: 0000000000000000 o2: 0000000000000000 o3: 0000000000000000
Apr 24 02:05:04 donald o4: 000000000000ffff o5: 000000000000004b sp: fffff8003342ad61 ret_pc: 0000000000391ccc
Apr 24 02:05:04 donald RPC: <0x391ccc>
Apr 24 02:05:04 donald l0: 0000000040895ad0 l1: fffff8003342b6da l2: fffff8003342b6dc l3: fffff8003342b6de
Apr 24 02:05:04 donald l4: 0000000000000000 l5: fffff8003342b6e0 l6: 0000000000000000 l7: 000000000000fc00
Apr 24 02:05:04 donald i0: fffff8003342b6e0 i1: 0000000000000000 i2: fffff800007c5400 i3: 0000000000000000
Apr 24 02:05:04 donald i4: 0000000000000010 i5: 0000000000000010 i6: fffff8003342ae21 i7: 0000000000582fe0
Apr 24 02:05:04 donald I7: <sbusfb_ioctl_helper+0x300/0x340>
Apr 24 02:05:04 donald Caller[0000000000582fe0]: sbusfb_ioctl_helper+0x300/0x340
Apr 24 02:05:04 donald Caller[000000000057e434]: fb_ioctl+0x94/0x380
Apr 24 02:05:04 donald Caller[0000000000499258]: sys_ioctl+0x118/0x2e0
Apr 24 02:05:04 donald Caller[0000000000434918]: fbiogetputcmap+0xf8/0x1e0
Apr 24 02:05:04 donald Caller[00000000004b02d8]: compat_sys_ioctl+0xf8/0x280
Apr 24 02:05:04 donald Caller[0000000000410cb4]: linux_sparc_syscall32+0x34/0x40
Apr 24 02:05:04 donald Caller[000000000005abec]: 0x5abec
Apr 24 02:05:04 donald Instruction DUMP: 9815e3ff 02f43fda 97306010 <c2942000> 84100000 83286010 106fffd5 99306010 81cfe008
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/