* mysterious prblem with IO memory
@ 2003-09-24 13:18 Christoph Baumann
2003-09-25 8:22 ` mysterious problem " Christoph Baumann
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Baumann @ 2003-09-24 13:18 UTC (permalink / raw)
To: linux-kernel
Hi,
developing a driver (currently with a vanilla 2.4.20 kernel) for a PCI
card i encountered a mysterious behaviour. I get the IO addresses from
the card configuration space and use ioremap_nocache to get virtual
addresses for usage with write[bwl]. This works to some extend (the card
behaves as expected). But then at some random moment i get error
messages about dereferencing a NULL pointer and severe crashes
afterwards. When i put a printk("%p\n",address) before each write[bwl]
everything is fine (appart from lots of log entries). I also tried wmb()
after the write commands which didn't help. Any idea?
Mit freundlichen Gruessen / Best regards
Dipl.-Phys. Christoph Baumann
---
SORCUS Computer GmbH
Im Breitspiel 11 c
D-69126 Heidelberg
Tel.: +49(0)6221/3206-0
Fax: +49(0)6221/3206-66
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: mysterious problem with IO memory
2003-09-24 13:18 mysterious prblem with IO memory Christoph Baumann
@ 2003-09-25 8:22 ` Christoph Baumann
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Baumann @ 2003-09-25 8:22 UTC (permalink / raw)
To: linux-kernel
Update:
I wrapped the calls to ioremap to align the requested address and range
to PAGE_SIZE. This helps. But when i do 'insmod' and 'rmmod' several
times i get severe Oops from kjournald.
Mit freundlichen Gruessen / Best regards
Dipl.-Phys. Christoph Baumann
---
SORCUS Computer GmbH
Im Breitspiel 11 c
D-69126 Heidelberg
Tel.: +49(0)6221/3206-0
Fax: +49(0)6221/3206-66
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-25 8:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-24 13:18 mysterious prblem with IO memory Christoph Baumann
2003-09-25 8:22 ` mysterious problem " Christoph Baumann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®