From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752524AbcLFEwZ (ORCPT ); Mon, 5 Dec 2016 23:52:25 -0500 Received: from mga04.intel.com ([192.55.52.120]:52001 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751488AbcLFEwV (ORCPT ); Mon, 5 Dec 2016 23:52:21 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,751,1477983600"; d="scan'208";a="1095116827" Date: Tue, 6 Dec 2016 10:31:15 +0530 From: Vinod Koul To: Sricharan R Cc: jcrouse@codeaurora.org, pdaly@codeaurora.org, jgebben@codeaurora.org, joro@8bytes.org, linux-kernel@vger.kernel.org, pratikp@codeaurora.org, iommu@lists.linux-foundation.org, robin.murphy@arm.com, tzeng@codeaurora.org, linux-arm-kernel@lists.infradead.org, will.deacon@arm.com, mitchelh@codeaurora.org Subject: Re: [RESEND PATCH V6 5/6] dmaengine: pl330: Make sure microcode is privileged Message-ID: <20161206050115.GP6408@localhost> References: <1480690509-13490-1-git-send-email-sricharan@codeaurora.org> <1480690509-13490-6-git-send-email-sricharan@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1480690509-13490-6-git-send-email-sricharan@codeaurora.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 02, 2016 at 08:25:08PM +0530, Sricharan R wrote: > From: Mitchel Humpherys > > The PL330 performs privileged instruction fetches. This can result in > SMMU permission faults on SMMUs that implement the ARMv8 VMSA, which > specifies that mappings that are writeable at one execution level shall > not be executable at any higher-privileged level. Fix this by using the > DMA_ATTR_PRIVILEGED attribute, which will ensure that the microcode > IOMMU mapping is only accessible to the privileged level. Acked-by: Vinod Koul -- ~Vinod