pci_mapreg_map() with disabled device

2011-12-01 Thread Frank Wille
Hi! Is there a reason why pci_mapreg_map() calls bus_space_map() for a memory or i/o space, even when all spaces have been disabled on the device? Yesterday I had a case where an ohci(4) device had no PCI_COMMAND_IO_ENABLE and no PCI_COMMAND_MEM_ENABLE bit set in the PCI_COMMAND_STATUS_REG.

Re: pci_mapreg_map() with disabled device

2011-12-01 Thread Jonathan A. Kollasch
On Thu, Dec 01, 2011 at 10:12:44AM +0100, Frank Wille wrote: Is there a reason why pci_mapreg_map() calls bus_space_map() for a memory or i/o space, even when all spaces have been disabled on the device? Not necessarily, on x86 it's not uncommon for the I/O or Memory enable bit to be set wrong

Re: pci_mapreg_map() with disabled device

2011-12-01 Thread Frank Wille
On Thu, 1 Dec 2011 13:06:33 + Jonathan A. Kollasch jakll...@kollasch.net wrote: On Thu, Dec 01, 2011 at 10:12:44AM +0100, Frank Wille wrote: Is there a reason why pci_mapreg_map() calls bus_space_map() for a memory or i/o space, even when all spaces have been disabled on the device?

USB contigmalloc()

2011-12-01 Thread Thomas Klausner
Matthew Dillon implemented a solution for USB/graphics cards problem stemming from the fact that some time after the boot, they can't acquire enough contiguous memory. http://thread.gmane.org/gmane.os.dragonfly-bsd.kernel/14431 Anyone interested in porting it or implementing something similar?

Re: USB contigmalloc()

2011-12-01 Thread Adam Hoka
On 12/1/2011 5:33 PM, Thomas Klausner wrote: Matthew Dillon implemented a solution for USB/graphics cards problem stemming from the fact that some time after the boot, they can't acquire enough contiguous memory. http://thread.gmane.org/gmane.os.dragonfly-bsd.kernel/14431 Anyone

Re: USB contigmalloc()

2011-12-01 Thread Izumi Tsutsui
wiz@ wrote: Matthew Dillon implemented a solution for USB/graphics cards problem stemming from the fact that some time after the boot, they can't acquire enough contiguous memory. http://thread.gmane.org/gmane.os.dragonfly-bsd.kernel/14431 Anyone interested in porting it or implementing

Re: USB contigmalloc()

2011-12-01 Thread Jonathan A. Kollasch
On Thu, Dec 01, 2011 at 05:33:27PM +0100, Thomas Klausner wrote: Matthew Dillon implemented a solution for USB/graphics cards problem stemming from the fact that some time after the boot, they can't acquire enough contiguous memory. http://thread.gmane.org/gmane.os.dragonfly-bsd.kernel/14431

Re: USB contigmalloc()

2011-12-01 Thread Francois Tigeot
On Thu, Dec 01, 2011 at 05:11:36PM +, Jonathan A. Kollasch wrote: On Thu, Dec 01, 2011 at 05:33:27PM +0100, Thomas Klausner wrote: Matthew Dillon implemented a solution for USB/graphics cards problem stemming from the fact that some time after the boot, they can't acquire enough

Re: USB contigmalloc()

2011-12-01 Thread Thomas Klausner
On Fri, Dec 02, 2011 at 01:51:42AM +0900, Izumi Tsutsui wrote: Anyway, currently our udl(4) doesn't require such allocation, It's also a problem for radeondrm (no USB involved). Thomas

Re: SHMMAX runtime setting for Postgres Installation

2011-12-01 Thread Emmanuel Kasper
Le 24/11/2011 19:21, Eric Haszlakiewicz a écrit : On Thu, Nov 24, 2011 at 04:57:39PM +0100, Emmanuel Kasper wrote: Is that Postgres Documentation outdated ? Yes. If you have a few minutes, it would be great if you could submit a request with the Postgres guys to have them update it. eric

Re: pool_cache interface and memory constraints

2011-12-01 Thread Sverre Froyen
On On 2011-11-28 at 15:14 David Young wrote On Sat, Nov 26, 2011 at 11:04:56AM -0700, Sverre Froyen wrote: Ideally, we would need separate pool caches for PCI, ISA, etc., each with its own set of constraints. These constraints are part of the DMA tag structures. It would therefore be nice