ioremap of pci region on pSeries LPAR vs SMP

Paul Mackerras paulus at
Mon Jan 10 20:10:59 EST 2005

Anil Kumar Prasad writes:

> On JS20, i get va in IO_REGION (0xE000....) while on
> p630  ioremap returns address in
> EEH_REGION(0xA000...). As soon as i try to dereference
> this returned va on p630, kernel crashes(dump is at
> the end of mail).

You shouldn't ever directly dereference the result of ioremap.  You
have to use readb/readw/readl and writeb/writew/writel.


More information about the Linuxppc64-dev mailing list