Skip to contentSkip to conversation

PCI DMA memory problem

DISCUSSION Oliver Amft 1 participant 1 message Jun 26, 2003

lore
Share & tools
lore
#0 lore raw

The problem was a wrong PCI configuration of the 405 with two colliding PCI target mappings (PTM1 and PTM2).

Oliver

Quoted 7 lines
Quoted 6 lines

To map the data buffers from skb the driver uses pci_map_single(). When starting the kernel with SDRAM size configurations other than 32MByte the device is unable to transfer data (currupted data) - descriptor dword read/write-back works (set up with pci_alloc_consistent()). For the kernel start option mem=32MB everything is fine (descriptor + correct data).

Quoted 7 lines

My first thought is -- is/are the SDRAM bank(s) configured correctly?

I don't know that it'd necessarily be related, but for the 405GP, PPCBoot 1.2.0 doesn't have the PCI bridge setup quite right for all PCI devices (eg. 82559 won't work). I have code to fix the bridge setup if you need it -- although I'm not even certain they exist in the GPR.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/