Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1734992

Re: [PATCH V6 2/3] dma-mapping: Rework dma_get_cache_alignment() function

From Christoph Hellwig <hch@lst.de>
Newsgroups linux.kernel
Subject Re: [PATCH V6 2/3] dma-mapping: Rework dma_get_cache_alignment() function
Date 2017-09-19 17:10 +0200
Message-ID <ursjT-74b-23@gated-at.bofh.it> (permalink)
References <urmxP-1Xm-3@gated-at.bofh.it> <urmxQ-1Xm-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


>  	mdev->limits.reserved_mtts = ALIGN(mdev->limits.reserved_mtts * mdev->limits.mtt_seg_size,
> -					   dma_get_cache_alignment()) / mdev->limits.mtt_seg_size;
> +					   dma_get_cache_alignment(NULL)) / mdev->limits.mtt_seg_size;
>  
>  	mdev->mr_table.mtt_table = mthca_alloc_icm_table(mdev, init_hca->mtt_base,

Please pass the actually relevant struct device for each call.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH V6 1/3] dma-mapping: Introduce device_is_coherent() as a helper Huacai Chen <chenhc@lemote.com> - 2017-09-19 11:00 +0200
  [PATCH V6 2/3] dma-mapping: Rework dma_get_cache_alignment() function Huacai Chen <chenhc@lemote.com> - 2017-09-19 11:00 +0200
    Re: [PATCH V6 2/3] dma-mapping: Rework dma_get_cache_alignment()         function Christoph Hellwig <hch@lst.de> - 2017-09-19 17:10 +0200
      Re: [PATCH V6 2/3] dma-mapping: Rework dma_get_cache_alignment()function "陈华才" <chenhc@lemote.com> - 2017-09-21 06:30 +0200
        Re: [PATCH V6 2/3] dma-mapping: Rework         dma_get_cache_alignment()function Christoph Hellwig <hch@lst.de> - 2017-09-21 16:40 +0200
  Re: [PATCH V6 1/3] dma-mapping: Introduce device_is_coherent() as a  helper Robin Murphy <robin.murphy@arm.com> - 2017-09-21 12:50 +0200
    Re: [PATCH V6 1/3] dma-mapping: Introduce device_is_coherent() as ahelper "陈华才" <chenhc@lemote.com> - 2017-09-22 04:20 +0200
      Re: [PATCH V6 1/3] dma-mapping: Introduce device_is_coherent() as  ahelper Robin Murphy <robin.murphy@arm.com> - 2017-09-22 15:50 +0200
        Re: [PATCH V6 1/3] dma-mapping: Introduce device_is_coherent() as         ahelper Christoph Hellwig <hch@lst.de> - 2017-09-22 15:50 +0200

csiph-web