Re: Adding support for WC (write-combining) memory to bus_dma

2012-07-13 Thread John Baldwin
On Thursday, July 12, 2012 1:51:20 pm John Baldwin wrote: > On Thursday, July 12, 2012 12:37:13 pm Scott Long wrote: > > Yup, this is a problem, and I like your fix; this kind of state is exactly > > what > > belongs in the map. > > Why don't I break out the fix first as a separate patch. Here i

Re: Adding support for WC (write-combining) memory to bus_dma

2012-07-12 Thread Peter Jeremy
On 2012-Jul-12 10:40:27 -0400, John Baldwin wrote: >contigmalloc(). In fact, even better is to call kmem_alloc_contig() directly >rather than using contigmalloc(). ... >Peter, this is somewhat orthognal (but related) to your bus_dma patch which is >what prompted me to post this. Overall, the cha

Re: Adding support for WC (write-combining) memory to bus_dma

2012-07-12 Thread John Baldwin
On Thursday, July 12, 2012 12:37:13 pm Scott Long wrote: > > - Original Message - > > From: John Baldwin > > To: curr...@freebsd.org > > Cc: sco...@freebsd.org; Peter Jeremy > > Sent: Thursday, July 12, 2012 7:40 AM > > Subject: Adding support for WC

Re: Adding support for WC (write-combining) memory to bus_dma

2012-07-12 Thread Scott Long
- Original Message - > From: John Baldwin > To: curr...@freebsd.org > Cc: sco...@freebsd.org; Peter Jeremy > Sent: Thursday, July 12, 2012 7:40 AM > Subject: Adding support for WC (write-combining) memory to bus_dma > > I have a need to allocate

Re: Adding support for WC (write-combining) memory to bus_dma

2012-07-12 Thread Robert Watson
On Thu, 12 Jul 2012, Ian Lepore wrote: To be clear, I'm not objecting to your proposed changes, I'm more just musing that similar problems exist in non-x86 architectures and maybe an MI solution is possible (or at least the groundwork could be laid)? I was likewise going to comment that ther

Re: Adding support for WC (write-combining) memory to bus_dma

2012-07-12 Thread John Baldwin
On Thursday, July 12, 2012 11:02:07 am Ian Lepore wrote: > On Thu, 2012-07-12 at 10:40 -0400, John Baldwin wrote: > > I have a need to allocate static DMA memory via bus_dmamem_alloc() that is > > also WC (for a PCI-e device so it can use "nosnoop" transactions). This is > > similar to what the

Re: Adding support for WC (write-combining) memory to bus_dma

2012-07-12 Thread Ian Lepore
On Thu, 2012-07-12 at 10:40 -0400, John Baldwin wrote: > I have a need to allocate static DMA memory via bus_dmamem_alloc() that is > also WC (for a PCI-e device so it can use "nosnoop" transactions). This is > similar to what the nvidia driver needs, but in my case it is much cleaner to > allo

Adding support for WC (write-combining) memory to bus_dma

2012-07-12 Thread John Baldwin
I have a need to allocate static DMA memory via bus_dmamem_alloc() that is also WC (for a PCI-e device so it can use "nosnoop" transactions). This is similar to what the nvidia driver needs, but in my case it is much cleaner to allocate the memory via bus dma since the existing code I am extend