2004-09-29 10:31:23

by Borislav Petkov

[permalink] [raw]
Subject: 2.6.9-rc2-mm4 drm and XFree oopses

Hi there people,
here are some fine, unresolved mutual exclusion issues. Sysinfo
attached.

Regards,
Boris.


Sep 29 12:03:07 zmei kernel: [drm:radeon_cp_init] *ERROR* radeon_cp_init called without lock held
Sep 29 12:03:07 zmei kernel: [drm:radeon_unlock] *ERROR* Process 2807 using kernel context 0
Sep 29 12:03:07 zmei kernel: using smp_processor_id() in preemptible code: XFree86/2807
Sep 29 12:03:07 zmei kernel: [dump_stack+23/27] dump_stack+0x17/0x1b
Sep 29 12:03:07 zmei kernel: [smp_processor_id+146/152] smp_processor_id+0x92/0x98
Sep 29 12:03:07 zmei kernel: [add_timer_randomness+274/313] add_timer_randomness+0x112/0x139
Sep 29 12:03:07 zmei kernel: [input_event+72/940] input_event+0x48/0x3ac
Sep 29 12:03:07 zmei kernel: [kbd_rate+76/156] kbd_rate+0x4c/0x9c
Sep 29 12:03:07 zmei kernel: [vt_ioctl+3430/6535] vt_ioctl+0xd66/0x1987
Sep 29 12:03:07 zmei kernel: [tty_ioctl+874/1075] tty_ioctl+0x36a/0x433
Sep 29 12:03:07 zmei kernel: [sys_ioctl+196/511] sys_ioctl+0xc4/0x1ff
Sep 29 12:03:07 zmei kernel: [syscall_call+7/11] syscall_call+0x7/0xb
Sep 29 12:03:07 zmei kernel: using smp_processor_id() in preemptible code: XFree86/2807
Sep 29 12:03:07 zmei kernel: [dump_stack+23/27] dump_stack+0x17/0x1b
Sep 29 12:03:07 zmei kernel: [smp_processor_id+146/152] smp_processor_id+0x92/0x98
Sep 29 12:03:07 zmei kernel: [add_timer_randomness+274/313] add_timer_randomness+0x112/0x139
Sep 29 12:03:07 zmei kernel: [input_event+72/940] input_event+0x48/0x3ac
Sep 29 12:03:07 zmei kernel: [kbd_rate+103/156] kbd_rate+0x67/0x9c
Sep 29 12:03:07 zmei kernel: [vt_ioctl+3430/6535] vt_ioctl+0xd66/0x1987
Sep 29 12:03:07 zmei kernel: [tty_ioctl+874/1075] tty_ioctl+0x36a/0x433
Sep 29 12:03:07 zmei kernel: [sys_ioctl+196/511] sys_ioctl+0xc4/0x1ff
Sep 29 12:03:07 zmei kernel: [syscall_call+7/11] syscall_call+0x7/0xb


Attachments:
(No filename) (1.80 kB)
sysinfo.log (57.60 kB)
Download all attachments

2004-09-29 12:28:41

by Dave Airlie

[permalink] [raw]
Subject: Re: 2.6.9-rc2-mm4 drm and XFree oopses

It might help if you enabled AGP for your chipset, you have no agp
compiled in for your Intel motherboard, you need intel agp chipset
support..

Dave.


On Wed, 29 Sep 2004 12:28:40 +0200, Borislav Petkov
<[email protected]> wrote:
> Hi there people,
> here are some fine, unresolved mutual exclusion issues. Sysinfo
> attached.
>
> Regards,
> Boris.
>
> Sep 29 12:03:07 zmei kernel: [drm:radeon_cp_init] *ERROR* radeon_cp_init called without lock held
> Sep 29 12:03:07 zmei kernel: [drm:radeon_unlock] *ERROR* Process 2807 using kernel context 0
> Sep 29 12:03:07 zmei kernel: using smp_processor_id() in preemptible code: XFree86/2807
> Sep 29 12:03:07 zmei kernel: [dump_stack+23/27] dump_stack+0x17/0x1b
> Sep 29 12:03:07 zmei kernel: [smp_processor_id+146/152] smp_processor_id+0x92/0x98
> Sep 29 12:03:07 zmei kernel: [add_timer_randomness+274/313] add_timer_randomness+0x112/0x139
> Sep 29 12:03:07 zmei kernel: [input_event+72/940] input_event+0x48/0x3ac
> Sep 29 12:03:07 zmei kernel: [kbd_rate+76/156] kbd_rate+0x4c/0x9c
> Sep 29 12:03:07 zmei kernel: [vt_ioctl+3430/6535] vt_ioctl+0xd66/0x1987
> Sep 29 12:03:07 zmei kernel: [tty_ioctl+874/1075] tty_ioctl+0x36a/0x433
> Sep 29 12:03:07 zmei kernel: [sys_ioctl+196/511] sys_ioctl+0xc4/0x1ff
> Sep 29 12:03:07 zmei kernel: [syscall_call+7/11] syscall_call+0x7/0xb
> Sep 29 12:03:07 zmei kernel: using smp_processor_id() in preemptible code: XFree86/2807
> Sep 29 12:03:07 zmei kernel: [dump_stack+23/27] dump_stack+0x17/0x1b
> Sep 29 12:03:07 zmei kernel: [smp_processor_id+146/152] smp_processor_id+0x92/0x98
> Sep 29 12:03:07 zmei kernel: [add_timer_randomness+274/313] add_timer_randomness+0x112/0x139
> Sep 29 12:03:07 zmei kernel: [input_event+72/940] input_event+0x48/0x3ac
> Sep 29 12:03:07 zmei kernel: [kbd_rate+103/156] kbd_rate+0x67/0x9c
> Sep 29 12:03:07 zmei kernel: [vt_ioctl+3430/6535] vt_ioctl+0xd66/0x1987
> Sep 29 12:03:07 zmei kernel: [tty_ioctl+874/1075] tty_ioctl+0x36a/0x433
> Sep 29 12:03:07 zmei kernel: [sys_ioctl+196/511] sys_ioctl+0xc4/0x1ff
> Sep 29 12:03:07 zmei kernel: [syscall_call+7/11] syscall_call+0x7/0xb
>
>
>
>

2004-09-29 13:53:01

by Borislav Petkov

[permalink] [raw]
Subject: Re: 2.6.9-rc2-mm4 drm and XFree oopses

On Wednesday 29 September 2004 14:28, Dave Airlie wrote:
> It might help if you enabled AGP for your chipset, you have no agp
> compiled in for your Intel motherboard, you need intel agp chipset
> support..
>
> Dave.
<snip>
Hi Dave,
do you mean the CONFIG_AGP_INTEL option? Because my chipset is ICH4 and the
help text for that option doesn't mention support for ICH4 chipsets.

Regards,
Boris.

2004-09-29 13:53:54

by Dave Airlie

[permalink] [raw]
Subject: Re: 2.6.9-rc2-mm4 drm and XFree oopses

> do you mean the CONFIG_AGP_INTEL option? Because my chipset is ICH4 and the
> help text for that option doesn't mention support for ICH4 chipsets.

you have an i845 GMCH, so you need intel AGP support, the ICH4 is the
other chip if I remember my Intel chipsets correctly...

Dave.

2004-09-29 14:44:42

by Borislav Petkov

[permalink] [raw]
Subject: Re: 2.6.9-rc2-mm4 drm and XFree oopses

On Wednesday 29 September 2004 15:49, Dave Airlie wrote:
> > do you mean the CONFIG_AGP_INTEL option? Because my chipset is ICH4 and
> > the help text for that option doesn't mention support for ICH4 chipsets.
>
> you have an i845 GMCH, so you need intel AGP support, the ICH4 is the
> other chip if I remember my Intel chipsets correctly...
>
> Dave.
Right, my bad, my I/O controller is ICH4, sorry :) I'm going to recompile now
with CONFIG_AGP_INTEL=y..

Thanks,
Boris.

2004-09-29 15:01:09

by Borislav Petkov

[permalink] [raw]
Subject: Re: 2.6.9-rc2-mm4 drm and XFree oopses

On Wednesday 29 September 2004 15:49, Dave Airlie wrote:
> > do you mean the CONFIG_AGP_INTEL option? Because my chipset is ICH4 and
> > the help text for that option doesn't mention support for ICH4 chipsets.
>
> you have an i845 GMCH, so you need intel AGP support, the ICH4 is the
> other chip if I remember my Intel chipsets correctly...
>
> Dave.
Hmm,
compiled as you said, here's what i get now (pretty much the same oops):

Sep 29 16:51:08 zmei kernel: agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
Sep 29 16:51:08 zmei kernel: agpgart: Putting AGP V2 device at 0000:00:00.0 into 1x mode
Sep 29 16:51:08 zmei kernel: agpgart: Putting AGP V2 device at 0000:01:00.0 into 1x mode
Sep 29 16:51:08 zmei kernel: [drm] Loading R200 Microcode
Sep 29 16:51:09 zmei kernel: using smp_processor_id() in preemptible code: XFree86/2809
Sep 29 16:51:09 zmei kernel: [dump_stack+23/27] dump_stack+0x17/0x1b
Sep 29 16:51:09 zmei kernel: [smp_processor_id+146/152] smp_processor_id+0x92/0x98
Sep 29 16:51:09 zmei kernel: [add_timer_randomness+274/313] add_timer_randomness+0x112/0x139
Sep 29 16:51:09 zmei kernel: [input_event+72/940] input_event+0x48/0x3ac
Sep 29 16:51:09 zmei kernel: [kbd_rate+76/156] kbd_rate+0x4c/0x9c
Sep 29 16:51:09 zmei kernel: [vt_ioctl+3430/6535] vt_ioctl+0xd66/0x1987
Sep 29 16:51:09 zmei kernel: [tty_ioctl+874/1075] tty_ioctl+0x36a/0x433
Sep 29 16:51:09 zmei kernel: [sys_ioctl+196/511] sys_ioctl+0xc4/0x1ff
Sep 29 16:51:09 zmei kernel: [syscall_call+7/11] syscall_call+0x7/0xb
Sep 29 16:51:09 zmei kernel: using smp_processor_id() in preemptible code: XFree86/2809
Sep 29 16:51:09 zmei kernel: [dump_stack+23/27] dump_stack+0x17/0x1b
Sep 29 16:51:09 zmei kernel: [smp_processor_id+146/152] smp_processor_id+0x92/0x98
Sep 29 16:51:09 zmei kernel: [add_timer_randomness+274/313] add_timer_randomness+0x112/0x139
Sep 29 16:51:09 zmei kernel: [input_event+72/940] input_event+0x48/0x3ac
Sep 29 16:51:09 zmei kernel: [kbd_rate+103/156] kbd_rate+0x67/0x9c
Sep 29 16:51:09 zmei kernel: [vt_ioctl+3430/6535] vt_ioctl+0xd66/0x1987
Sep 29 16:51:09 zmei kernel: [tty_ioctl+874/1075] tty_ioctl+0x36a/0x433
Sep 29 16:51:09 zmei kernel: [sys_ioctl+196/511] sys_ioctl+0xc4/0x1ff
Sep 29 16:51:09 zmei kernel: [syscall_call+7/11] syscall_call+0x7/0xb

2004-09-29 18:43:35

by Denis Vlasenko

[permalink] [raw]
Subject: Re: 2.6.9-rc2-mm4 drm and XFree oopses

On Wednesday 29 September 2004 15:28, Dave Airlie wrote:
> It might help if you enabled AGP for your chipset, you have no agp
> compiled in for your Intel motherboard, you need intel agp chipset
> support..

However kernel shouldn't use using smp_processor_id() in preemptible
regions, with or without Intel AGP support compuled in.

> > Sep 29 12:03:07 zmei kernel: [drm:radeon_cp_init] *ERROR* radeon_cp_init called without lock held
> > Sep 29 12:03:07 zmei kernel: [drm:radeon_unlock] *ERROR* Process 2807 using kernel context 0
> > Sep 29 12:03:07 zmei kernel: using smp_processor_id() in preemptible code: XFree86/2807
> > Sep 29 12:03:07 zmei kernel: [dump_stack+23/27] dump_stack+0x17/0x1b
> > Sep 29 12:03:07 zmei kernel: [smp_processor_id+146/152] smp_processor_id+0x92/0x98
> > Sep 29 12:03:07 zmei kernel: [add_timer_randomness+274/313] add_timer_randomness+0x112/0x139
> > Sep 29 12:03:07 zmei kernel: [input_event+72/940] input_event+0x48/0x3ac
> > Sep 29 12:03:07 zmei kernel: [kbd_rate+76/156] kbd_rate+0x4c/0x9c
> > Sep 29 12:03:07 zmei kernel: [vt_ioctl+3430/6535] vt_ioctl+0xd66/0x1987
> > Sep 29 12:03:07 zmei kernel: [tty_ioctl+874/1075] tty_ioctl+0x36a/0x433
> > Sep 29 12:03:07 zmei kernel: [sys_ioctl+196/511] sys_ioctl+0xc4/0x1ff
> > Sep 29 12:03:07 zmei kernel: [syscall_call+7/11] syscall_call+0x7/0xb
> > Sep 29 12:03:07 zmei kernel: using smp_processor_id() in preemptible code: XFree86/2807
> > Sep 29 12:03:07 zmei kernel: [dump_stack+23/27] dump_stack+0x17/0x1b
> > Sep 29 12:03:07 zmei kernel: [smp_processor_id+146/152] smp_processor_id+0x92/0x98
> > Sep 29 12:03:07 zmei kernel: [add_timer_randomness+274/313] add_timer_randomness+0x112/0x139
> > Sep 29 12:03:07 zmei kernel: [input_event+72/940] input_event+0x48/0x3ac
> > Sep 29 12:03:07 zmei kernel: [kbd_rate+103/156] kbd_rate+0x67/0x9c
> > Sep 29 12:03:07 zmei kernel: [vt_ioctl+3430/6535] vt_ioctl+0xd66/0x1987
> > Sep 29 12:03:07 zmei kernel: [tty_ioctl+874/1075] tty_ioctl+0x36a/0x433
> > Sep 29 12:03:07 zmei kernel: [sys_ioctl+196/511] sys_ioctl+0xc4/0x1ff
> > Sep 29 12:03:07 zmei kernel: [syscall_call+7/11] syscall_call+0x7/0xb
--
vda

2004-09-29 18:59:20

by Lee Revell

[permalink] [raw]
Subject: Re: 2.6.9-rc2-mm4 drm and XFree oopses

On Wed, 2004-09-29 at 14:43, Denis Vlasenko wrote:
> On Wednesday 29 September 2004 15:28, Dave Airlie wrote:
> > It might help if you enabled AGP for your chipset, you have no agp
> > compiled in for your Intel motherboard, you need intel agp chipset
> > support..
>
> However kernel shouldn't use using smp_processor_id() in preemptible
> regions, with or without Intel AGP support compuled in.
>
> > > Sep 29 12:03:07 zmei kernel: [drm:radeon_cp_init] *ERROR* radeon_cp_init called without lock held
> > > Sep 29 12:03:07 zmei kernel: [drm:radeon_unlock] *ERROR* Process 2807 using kernel context 0
> > > Sep 29 12:03:07 zmei kernel: using smp_processor_id() in preemptible code: XFree86/2807

It looks like that code that uses smp_processor_id assumes that it has
the DRM lock, but for whatever reason you don't have it.

Lee

2004-09-29 21:19:51

by Borislav Petkov

[permalink] [raw]
Subject: Re: 2.6.9-rc2-mm4 drm and XFree oopses

On Wednesday 29 September 2004 20:56, Lee Revell wrote:
> On Wed, 2004-09-29 at 14:43, Denis Vlasenko wrote:
> > On Wednesday 29 September 2004 15:28, Dave Airlie wrote:
> > > It might help if you enabled AGP for your chipset, you have no agp
> > > compiled in for your Intel motherboard, you need intel agp chipset
> > > support..
> >
> > However kernel shouldn't use using smp_processor_id() in preemptible
> > regions, with or without Intel AGP support compuled in.
> >
I wonder _who_ is the user of smp_processor_id() in this case?
> > > > Sep 29 12:03:07 zmei kernel: [drm:radeon_cp_init] *ERROR*
> > > > radeon_cp_init called without lock held Sep 29 12:03:07 zmei kernel:
> > > > [drm:radeon_unlock] *ERROR* Process 2807 using kernel context 0 Sep
> > > > 29 12:03:07 zmei kernel: using smp_processor_id() in preemptible
> > > > code: XFree86/2807
>
> It looks like that code that uses smp_processor_id assumes that it has
> the DRM lock, but for whatever reason you don't have it.
>
> Lee

However, the above error concerning drm disappears after compiling in AGP.
What remains is the oops...

Regards,
Boris.