[lkml]   [2017]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH V6 2/3] dma-mapping: Rework dma_get_cache_alignment()function
Hi, Christoph,

I have changed dma_get_cache_alignment's return value, and I don't know whether those drivers want to return ARCH_DMA_MINALIGN unconditionally. So I pass a NULL for those drivers, in order to keep their old behavior.


------------------ Original ------------------
From: "Christoph Hellwig"<>;
Date: Tue, Sep 19, 2017 11:02 PM
To: "Huacai Chen"<>;
Cc: "Christoph Hellwig"<>; "Marek Szyprowski"<>; "Robin Murphy"<>; "Andrew Morton"<>; "Fuxin Zhang"<>; "linux-kernel"<>; "James E . J . Bottomley"<>; "Martin K . Petersen"<>; "linux-scsi"<>; "stable"<>;
Subject: Re: [PATCH V6 2/3] dma-mapping: Rework dma_get_cache_alignment()function

> 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.
 \ /
  Last update: 2017-09-21 19:27    [W:0.061 / U:5.572 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site