LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [GIT PULL] dma mapping fixes for 4.17-rc3
@ 2018-04-25  5:22 Christoph Hellwig
  2018-04-25  6:54 ` David Rientjes
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2018-04-25  5:22 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: iommu, linux-kernel

The following changes since commit 6d08b06e67cd117f6992c46611dfb4ce267cd71e:

  Linux 4.17-rc2 (2018-04-22 19:20:09 -0700)

are available in the Git repository at:

  git://git.infradead.org/users/hch/dma-mapping.git tags/dma-mapping-4.17-3

for you to fetch changes up to 60695be2bb6b0623f8e53bd9949d582a83c6d44a:

  dma-mapping: postpone cpu addr translation on mmap (2018-04-23 14:44:24 +0200)

----------------------------------------------------------------
A few small dma-mapping fixes for Linux 4.17-rc3:

 - don't loop to try GFP_DMA allocations if ZONE_DMA is not actually
   enabled (regression in 4.16)
 - don't try to do virt_to_page before we know we actuall have a
   valid page in dma_common_mmap
 - a comment fixup related to the above fix

----------------------------------------------------------------
Jacopo Mondi (1):
      dma-mapping: postpone cpu addr translation on mmap

Robin Murphy (1):
      dma-coherent: clarify dma_mmap_from_dev_coherent documentation

Takashi Iwai (1):
      dma-direct: don't retry allocation for no-op GFP_DMA

 drivers/base/dma-coherent.c | 5 +++--
 drivers/base/dma-mapping.c  | 6 ++----
 lib/dma-direct.c            | 3 ++-
 3 files changed, 7 insertions(+), 7 deletions(-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [GIT PULL] dma mapping fixes for 4.17-rc3
  2018-04-25  5:22 [GIT PULL] dma mapping fixes for 4.17-rc3 Christoph Hellwig
@ 2018-04-25  6:54 ` David Rientjes
  2018-04-25  6:59   ` Christoph Hellwig
  0 siblings, 1 reply; 4+ messages in thread
From: David Rientjes @ 2018-04-25  6:54 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: Linus Torvalds, iommu, linux-kernel

On Wed, 25 Apr 2018, Christoph Hellwig wrote:

> The following changes since commit 6d08b06e67cd117f6992c46611dfb4ce267cd71e:
> 
>   Linux 4.17-rc2 (2018-04-22 19:20:09 -0700)
> 
> are available in the Git repository at:
> 
>   git://git.infradead.org/users/hch/dma-mapping.git tags/dma-mapping-4.17-3
> 
> for you to fetch changes up to 60695be2bb6b0623f8e53bd9949d582a83c6d44a:
> 
>   dma-mapping: postpone cpu addr translation on mmap (2018-04-23 14:44:24 +0200)
> 
> ----------------------------------------------------------------
> A few small dma-mapping fixes for Linux 4.17-rc3:
> 
>  - don't loop to try GFP_DMA allocations if ZONE_DMA is not actually
>    enabled (regression in 4.16)

Shouldn't that test for dev->coherent_dma_mask < DMA_BIT_MASK(32) be more 
accurately <=? 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [GIT PULL] dma mapping fixes for 4.17-rc3
  2018-04-25  6:54 ` David Rientjes
@ 2018-04-25  6:59   ` Christoph Hellwig
  2018-04-25  7:09     ` David Rientjes
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2018-04-25  6:59 UTC (permalink / raw)
  To: David Rientjes; +Cc: Christoph Hellwig, Linus Torvalds, iommu, linux-kernel

On Tue, Apr 24, 2018 at 11:54:26PM -0700, David Rientjes wrote:
> Shouldn't that test for dev->coherent_dma_mask < DMA_BIT_MASK(32) be more 
> accurately <=? 

No, it should really be <.  The exactly 32-bit case is already covered
with GFP_DMA32.  Eventualy it should be < 24-bit with a separate
GFP_DMA32 case for > 32-bit && < 64-bit.  Takashi has been working on
that, but it is 4.18 material.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [GIT PULL] dma mapping fixes for 4.17-rc3
  2018-04-25  6:59   ` Christoph Hellwig
@ 2018-04-25  7:09     ` David Rientjes
  0 siblings, 0 replies; 4+ messages in thread
From: David Rientjes @ 2018-04-25  7:09 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: Linus Torvalds, iommu, linux-kernel

On Tue, 24 Apr 2018, Christoph Hellwig wrote:

> On Tue, Apr 24, 2018 at 11:54:26PM -0700, David Rientjes wrote:
> > Shouldn't that test for dev->coherent_dma_mask < DMA_BIT_MASK(32) be more 
> > accurately <=? 
> 
> No, it should really be <.  The exactly 32-bit case is already covered
> with GFP_DMA32.  Eventualy it should be < 24-bit with a separate
> GFP_DMA32 case for > 32-bit && < 64-bit.  Takashi has been working on
> that, but it is 4.18 material.
> 

Ack, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-04-25  7:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-25  5:22 [GIT PULL] dma mapping fixes for 4.17-rc3 Christoph Hellwig
2018-04-25  6:54 ` David Rientjes
2018-04-25  6:59   ` Christoph Hellwig
2018-04-25  7:09     ` David Rientjes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).