PCI driver

2 messages, 1 author, 2006-08-28 · open the first message on its own page

PCI driver

From: Lee Revell <hidden>
Date: 2006-08-27 16:24:14

Hello,

We have implemented a driver for a PCI sound card and are attempting to
use it on a PPC400 Yosemite board.  However, as soon as any port I/O is
attempted, we get a machine check error:

dream/mem/mpu 9 0 1 "w" 10
MIDI message chip 9 mpu_port 0 offset 1 direction 1 16bit 0 data 0x10
outb 0x331
Data machine check in kernel mode.
PLB0: BEAR=0x0000000000000000 ACR=  0x00000000 BESR= 0xffffffff
POB0: BEAR=0xc27e3194ffffffff BESR0=0x00000000 BESR1=0x00000000
OPB0: BEAR=0x0000000000000151 BSTAT=0x00000000
Oops: machine check, sig: 7 [#1]
PREEMPT
NIP: 00000000 LR: C02022B0 SP: CFA7FDC0 REGS: c0343f50 TRAP: 0202    Not
tainted
MSR: 00000000 EE: 0 PR: 0 FP: 0 ME: 0 IR/DR: 00
TASK = cffe80d0[43] 'akadiag' THREAD: cfa7e000
Last syscall: 54
GP

Are we doing something wrong?  We use pci_resource_start(pci,0) to get
the BAR which returns 0xFFF0.  This also matches what is
in /proc/ioports, but outb/outw/outl all cause the machine check crash.

Lee

Re: PCI driver

From: Lee Revell <hidden>
Date: 2006-08-28 04:10:36

On Sun, 2006-08-27 at 12:24 -0400, Lee Revell wrote:
Hello,

We have implemented a driver for a PCI sound card and are attempting to
use it on a PPC400 Yosemite board.  However, as soon as any port I/O is
attempted, we get a machine check error:
Found the problem:

http://ozlabs.org/pipermail/linuxppc-embedded/2006-January/021708.html

Thanks!

Lee
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help