mysterious problem with IO memory

From: Christoph Baumann (cb_at_sorcus.com)
Date: 09/25/03


Date: Thu, 25 Sep 2003 12:07:54 +0200

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


Relevant Pages

  • Re: P5/Celeron comments?
    ... type of video capture card require. ... That restriction is caused by the mix of PCI Express and PCI ... which means a PCI bus card may get the "short straw". ... and you only get time slices from each camera. ...
    (alt.comp.periphs.mainboard.asus)
  • CRASH: SATA + 8139 + Via Rhine = STOP
    ... On the other side I have an 8139 based card. ... a Silicon Image Serial-ATA card on the PCI bus. ... raid5 personality registered as nr 4 ... md: Autodetecting RAID arrays. ...
    (Linux-Kernel)
  • [RFC / git patch] Move pci_find_* under CONFIG_PCI_LEGACY
    ... converting ancient drivers to PCI hotplug API, ... config HISAX_TELESPCI ... bool "NETspider U card" ... +#ifdef CONFIG_PCI_LEGACY ...
    (Linux-Kernel)
  • Re: Help: searching a video server that meets my requirements
    ... For basic composite capture, ... be BT878 chips. ... is a PCI to PCI bridge chip, so there aren't four loads and ... The above card will saturate a PCI bus, ...
    (rec.video.desktop)
  • Re: pci-e x 1 and pci-e x 16
    ... we had the PCI bus. ... to make the new interface ... video card slot, you'll see pairs of tiny chip capacitors ...
    (alt.comp.hardware.pc-homebuilt)