From: Robin Murphy Subject: Re: [PATCH, for-4.19] dma-mapping: add the missing ARCH_HAS_SYNC_DMA_FOR_CPU_ALL declaration Date: Fri, 14 Sep 2018 16:44:15 +0100 Message-ID: <00257a79-72cf-15aa-fed9-d75923eed51e@arm.com> References: <20180911090049.10747-1-hch@lst.de> <20180914100842.GA23696@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20180914100842.GA23696-jcswGhMUV9g@public.gmane.org> Content-Language: en-GB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Christoph Hellwig , iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Cc: linux-mips-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org, paul.burton-8NJIiSa5LzA@public.gmane.org List-Id: iommu@lists.linux-foundation.org On 14/09/18 11:08, Christoph Hellwig wrote: > Aby chance to get a review for this? So without this, the select does nothing, CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU_ALL is never defined, and BMIPS gets the static inline stub and never flushes the RAC when it should? I don't know enough MIPS to consider even compile-testing to check it, but that sounds like a legitimate fix to me. Robin. > On Tue, Sep 11, 2018 at 11:00:49AM +0200, Christoph Hellwig wrote: >> The patch adding the infrastructure failed to actually add the symbol >> declaration, oops.. >> >> Fixes: faef87723a ("dma-noncoherent: add a arch_sync_dma_for_cpu_all hook") >> Signed-off-by: Christoph Hellwig >> --- >> kernel/dma/Kconfig | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/kernel/dma/Kconfig b/kernel/dma/Kconfig >> index 9bd54304446f..1b1d63b3634b 100644 >> --- a/kernel/dma/Kconfig >> +++ b/kernel/dma/Kconfig >> @@ -23,6 +23,9 @@ config ARCH_HAS_SYNC_DMA_FOR_CPU >> bool >> select NEED_DMA_MAP_STATE >> >> +config ARCH_HAS_SYNC_DMA_FOR_CPU_ALL >> + bool >> + >> config DMA_DIRECT_OPS >> bool >> depends on HAS_DMA >> -- >> 2.18.0 >> >> _______________________________________________ >> iommu mailing list >> iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org >> https://lists.linuxfoundation.org/mailman/listinfo/iommu > ---end quoted text--- >