Re: [patch] fix add_bounce_page() for BUS_DMA_KEEP_PG_OFFSET

2015-05-05 Thread Ian Lepore
On Tue, 2015-05-05 at 21:54 +0200, Hans Petter Selasky wrote: Hi, https://svnweb.freebsd.org/changeset/base/282506 https://svnweb.freebsd.org/changeset/base/282507 Does this need to be MFC'ed to 8-stable? I guess not? --HPS We don't really maintain the arm code on branches earlier than

Re: [patch] fix add_bounce_page() for BUS_DMA_KEEP_PG_OFFSET

2015-05-05 Thread Hans Petter Selasky
Hi, https://svnweb.freebsd.org/changeset/base/282506 https://svnweb.freebsd.org/changeset/base/282507 Does this need to be MFC'ed to 8-stable? I guess not? --HPS ___ freebsd-current@freebsd.org mailing list

Re: [patch] fix add_bounce_page() for BUS_DMA_KEEP_PG_OFFSET

2015-04-28 Thread Hans Petter Selasky
On 04/27/15 15:32, John Baldwin wrote: On Saturday, April 25, 2015 07:59:50 AM Hans Petter Selasky wrote: On 04/24/15 15:29, Ian Lepore wrote: On Fri, 2015-04-24 at 13:34 +0200, Svatopluk Kraus wrote: ... I think the patch looks good. Feel free to commit it (someone) if I don't get to it

Re: [patch] fix add_bounce_page() for BUS_DMA_KEEP_PG_OFFSET

2015-04-27 Thread John Baldwin
On Saturday, April 25, 2015 07:59:50 AM Hans Petter Selasky wrote: On 04/24/15 15:29, Ian Lepore wrote: On Fri, 2015-04-24 at 13:34 +0200, Svatopluk Kraus wrote: The add_bounce_page() can be called from _bus_dmamap_load_phys(). Client virtual address is zero (not valid) in that case. So,

Re: [patch] fix add_bounce_page() for BUS_DMA_KEEP_PG_OFFSET

2015-04-25 Thread Hans Petter Selasky
On 04/25/15 07:59, Hans Petter Selasky wrote: On 04/24/15 15:29, Ian Lepore wrote: On Fri, 2015-04-24 at 13:34 +0200, Svatopluk Kraus wrote: The add_bounce_page() can be called from _bus_dmamap_load_phys(). Client virtual address is zero (not valid) in that case. So, client physical address

Re: [patch] fix add_bounce_page() for BUS_DMA_KEEP_PG_OFFSET

2015-04-24 Thread Ian Lepore
On Fri, 2015-04-24 at 13:34 +0200, Svatopluk Kraus wrote: The add_bounce_page() can be called from _bus_dmamap_load_phys(). Client virtual address is zero (not valid) in that case. So, client physical address must be used to get an offset when BUS_DMA_KEEP_PG_OFFSET flag is set. Note that

Re: [patch] fix add_bounce_page() for BUS_DMA_KEEP_PG_OFFSET

2015-04-24 Thread Hans Petter Selasky
On 04/24/15 15:29, Ian Lepore wrote: On Fri, 2015-04-24 at 13:34 +0200, Svatopluk Kraus wrote: The add_bounce_page() can be called from _bus_dmamap_load_phys(). Client virtual address is zero (not valid) in that case. So, client physical address must be used to get an offset when