Re: [RFC PATCH] fix problems with NETIF_F_HIGHDMA in networking drivers

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Robert Hancock
Date: Friday, February 26, 2010 - 8:08 pm

On Fri, Feb 26, 2010 at 9:25 AM, Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com> wrote:

That seems like a reasonable approach to me. Only question is how to
implement the check for DMA_64BIT. Can we just check page_to_phys on
each of the pages in the skb to see if it's > 0xffffffff ? Are there
any architectures where it's more complicated than that?

Also, presumably these flags still wouldn't have any effect on
non-highmem architectures, same as NETIF_F_HIGHDMA now, since the best
we can do is copy the data to lowmem, which could still be >4GB in
this case. Therefore, the IOMMU (either HW or SWIOTLB, one of which
had better exist) just has to deal with it. (I suppose you could copy
to a buffer allocated with GFP_DMA32, but that likely wouldn't be a
win if you had a hardware IOMMU.)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC PATCH] fix problems with NETIF_F_HIGHDMA in netwo ..., Bartlomiej Zolnierki ..., (Fri Feb 26, 8:25 am)
Re: [RFC PATCH] fix problems with NETIF_F_HIGHDMA in netwo ..., Robert Hancock, (Fri Feb 26, 8:08 pm)
Re: [RFC PATCH] fix problems with NETIF_F_HIGHDMA in netwo ..., Bartlomiej Zolnierki ..., (Sat Feb 27, 4:59 am)
Was: Re: [RFC PATCH] fix problems with NETIF_F_HIGHDMA in ..., Konrad Rzeszutek Wilk, (Mon Mar 1, 9:34 am)