Read but not write on a PCI bus!

Tachwali ytachwali at signalogic.com
Wed Jul 30 02:33:34 EST 2008


Hello,

I am facing a problem in writing to PMC module on cPCI board through local
PCI bus. The cPCI board is equipped with an mpc7447/7448 powerpc processor
as well as a Marvell system controller (mv64462). The board is working on
Gentoo Linux (kernel version 2.6.9 built using arch/ppc). 

I can read registers on a PMC module via local PCI interface, but we can't
write to any registers. I am wondering about the possible causes of such
behaviour. I need to mention that:

1- the same PMC module and driver works Ok on many x86 based systems.  

2- The PCI config space seems to be OK since the PMC module can be detected
by scanpci Linux command. The PMC module registers are in Bar0 mem space
(BASE0     0x23ffff88  addr 0x23ffff80  MEM PREFETCHABLE)

3- I checked MV64462 PCI config registers carefully, and the "write protect"
and "access protect" bits in these registers are not set.

4- I have tried another debugging utility which does a basic read/write to
memory and this utility experience the same problem as our driver (it can
only read the address space of the PCI bus but cannot write to it).

I am wondering if "posted writes" option in MV64462 can cause this problem.
Did anybody encounter any problem with this option or have any hints on the
possible causes of blocking writes to the PCI bus?
 
Thank you in advance for your help!

-- 
View this message in context: http://www.nabble.com/Read-but-not-write-on-a-PCI-bus%21-tp18716235p18716235.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.



More information about the Linuxppc-embedded mailing list