From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932675AbcG0Xj1 (ORCPT ); Wed, 27 Jul 2016 19:39:27 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:58218 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932578AbcG0XjR (ORCPT ); Wed, 27 Jul 2016 19:39:17 -0400 From: Mitchel Humpherys To: Robin Murphy Cc: Joerg Roedel , iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Will Deacon , Marek Szyprowski , Jordan Crouse , Jeremy Gebben , Patrick Daly , Pratik Patel , Thomas Zeng Subject: Re: [PATCH v4 4/6] arm64/dma-mapping: Implement DMA_ATTR_PRIVILEGED References: <20160725191649.13414-1-mitchelh@codeaurora.org> <20160725191649.13414-5-mitchelh@codeaurora.org> Date: Wed, 27 Jul 2016 16:39:39 -0700 In-Reply-To: (Robin Murphy's message of "Tue, 26 Jul 2016 16:05:17 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 26 2016 at 04:05:17 PM, Robin Murphy wrote: > + if (attrs & DMA_ATTR_PRIVILEGED) > + prot |= IOMMU_PRIV; > + > > then drop the rest of the changes to the switch statement below. It's > taken me an embarrassingly long time to work out why things were blowing > up in __iommu_sync_single_for_device() all with a VA of phys_to_virt(0) ;) Ah yes, that is much nicer! Nice catch... > With that change, for the whole series: > > Reviewed-by: Robin Murphy > Tested-by: Robin Murphy > > I guess at this point it may be worth waiting to repost based on -rc1. > Be sure to CC patch 5 to Vinod as the current dmaengine maintainer, as > it's his ack we'll need on that. Thanks for the review and test. I'll go ahead and send a v5 series since I'm actually leaving QuIC this Friday and so I won't be around to send it next week... -Mitch -- Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project