Modify

Opened 11 years ago

Closed 10 years ago

#2135 closed defect (fixed)

VLYNQ fails to initialize and panics

Reported by: rootkit85@… Owned by: nico
Priority: normal Milestone: Kamikaze 8.09 RC1
Component: kernel Version:
Keywords: Cc:

Description

I get this error just after updating to r8141. Reverting back fixes it.
I also added a printk to figure out what is the issue, it seems to be a bogus value in ar7_dsp_freq()

vlynq0: regs 0x08611800, irq 29, mem 0x04000000
vlynq1: regs 0x08611c00, irq 33, mem 0x0c000000
ar7_dsp_freq() = 0
div = 0
Trap instruction in kernel code[#1]:
Cpu 0
$ 0   : 00000000 10008400 00000000 94396840
$ 4   : 94396840 00000001 00000001 943c9da0
$ 8   : ffffffff 943c990b 94396848 0000000a
$12   : 00000002 00000000 943c9d04 00000000
$16   : 00000000 94432000 943c0000 00000000
$20   : 943bf7b4 94419e40 00000000 00000000
$24   : 00000000 9433f514
$28   : 94418000 94419e00 943c0000 94102860
Hi    : 00000000
Lo    : ffffffff
epc   : 94102868 vlynq_device_enable+0x94/0x30c     Not tainted
ra    : 94102860 vlynq_device_enable+0x8c/0x30c
Status: 10008403    KERNEL EXL IE
Cause : 10800034
PrId  : 00018448
Modules linked in:
Process swapper (pid: 1, threadinfo=94418000, task=94412400)
Stack : 9443d280 00000000 00000001 943c9da0 94396254 941fb6cc 00000000 94432038
        94432000 9439624c 94102eb8 941bde24 fffffffe 94134864 9441a0c0 00000030
        00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
        94432110 94432038 9439624c 9439624c 943bf7b4 94360000 9422e588 9422e540
        9440ce00 941bcf5c 00000000 94447100 94432110 94432038 9439624c 9422e9e8
        ...
Call Trace:
[<94102868>] vlynq_device_enable+0x94/0x30c
[<94102eb8>] vlynq_pci_probe+0x68/0x244
[<9422e588>] driver_probe_device+0x160/0x26c
[<9422e9e8>] __driver_attach+0x164/0x2b4
[<9422d3b8>] bus_for_each_dev+0x5c/0xa4
[<9422d7c8>] bus_add_driver+0x88/0x1dc
[<941030b0>] vlynq_pci_init+0x1c/0x4c
[<943a8258>] vlynq_init+0x40/0x68
[<943a66cc>] kernel_init+0xe8/0x2dc
[<9410578c>] kernel_thread_helper+0x10/0x18


Code: 2484415c  8e421c80  0050001b <020001f4> 3c0203b9  3445aca0  00003012  10c50004  00000000
Kernel panic - not syncing: Attempted to kill init!
Rebooting in 3 seconds..

Attachments (0)

Change History (4)

comment:1 Changed 11 years ago by ago@…

The problem seems to be that ar7_dsp_freq is 0, which causes a division by 0. This weekend, I'll see if i can figure out why this is 0. Meanwhile, just disable the clock setting, as its not needed on all platforms.
Use something like this in vlynq.c vlynq_device_enable:

    if(div > 0)
    {
	    printk("VLYNQ: Setting clock to %d (clock divider %u)\n", ar7_dsp_freq() / div, div);
		    dev->local->control = VLYNQ_CTRL_CLOCK_DIV((div - 1)) |
		    VLYNQ_CTRL_CLOCK_INT;
    }

comment:2 Changed 11 years ago by ago@…

BTW, what platform are you using, 7200 or 7300 ?

comment:3 Changed 11 years ago by nico

  • Milestone set to Afterburner 7.09
  • Owner changed from developers to nico
  • Status changed from new to assigned

comment:4 Changed 10 years ago by nico

  • Resolution set to fixed
  • Status changed from assigned to closed

Should be fixed in [8423], thanks!

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.