From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B8FBC43461 for ; Fri, 11 Sep 2020 08:25:41 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A07B2206F4 for ; Fri, 11 Sep 2020 08:25:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="dgbz7ACj"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="QIHNyOMG"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amazonses.com header.i=@amazonses.com header.b="RtGYLGRR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A07B2206F4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:To:From: Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=FjMngMNq0I2IfB+Ad5tG84DFeiHBxGqCPy4RHaDbeys=; b=dgbz7ACj3ZVSqUApqxasQhoda Q4fsP4R6ePk4G+HrOYNzRVuepaaLU3D9xLym5STGg9Q4g/4xuOgdGU75te2PiGU2sGNKXNIWVq6n0 5eOh7W21BpiNmQAp+9WX0Wka+scCA5JrEpTS12yxF6Tq6qIqgIycJZpgzPSBLLWQaWtfYVis+3Fw6 quTXel7MOhUJktZyArSjQQD5RQoQCIQRmQ1Q6oo6k2SZ4ay9FkYTuph4ZiO3XnTnOnF7WtQLrBw6V hdUXEXDqs8QnXRSyQR29Sk6vfzVAqZiu22GV3H3rsGIkS38OaJ/ctkpv2PmhuhWNOtJYyx634cDHC +6Otk2f5A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGeM6-0006uH-UJ; Fri, 11 Sep 2020 08:24:26 +0000 Received: from a27-11.smtp-out.us-west-2.amazonses.com ([54.240.27.11]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGeM5-0006tW-27 for linux-arm-kernel@lists.infradead.org; Fri, 11 Sep 2020 08:24:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=zsmsymrwgfyinv5wlfyidntwsjeeldzt; d=codeaurora.org; t=1599812661; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To:Cc:Subject:In-Reply-To:References:Message-ID; bh=YcrG/LuDfQatkkUvVrsoN1HVKrTFRH1ANNeQ0qNYkz8=; b=QIHNyOMGrP3mD6t2LgHhQi/EPGLoCJA2vCTehs5WWUFp6eeR9VlYUiSyqe/Y3U4o R6JYUuyDejjoWAKG38c51QSycqn24Ga9gMZY4ddEA8W+YQsecaCLb9eesxNkIBinOgC QPhUuVZXk1l3q82G57i3QJczEaW0rqBatyIGJiw8= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=hsbnp7p3ensaochzwyq5wwmceodymuwv; d=amazonses.com; t=1599812661; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To:Cc:Subject:In-Reply-To:References:Message-ID:Feedback-ID; bh=YcrG/LuDfQatkkUvVrsoN1HVKrTFRH1ANNeQ0qNYkz8=; b=RtGYLGRRjN2hshGBw+AqK66B3uB6pjUyfc0k7+f3YihJhcBe2VzyNRderSBuOBtW g8m3iEjp23fvE9K5/5BTN0bQUIqynVYSEgr/K2aEEaWsOXpQ6F+4AGdJhpoeMWoy7YM BesGPwmqJgZRcIewmUKgzXvI633BWZPDc/LAj7/U= MIME-Version: 1.0 Date: Fri, 11 Sep 2020 08:24:21 +0000 From: Sai Prakash Ranjan To: Bjorn Andersson Subject: Re: [PATCH v3 3/8] iommu/arm-smmu: Consult context bank allocator for identify domains In-Reply-To: <20200904155513.282067-4-bjorn.andersson@linaro.org> References: <20200904155513.282067-1-bjorn.andersson@linaro.org> <20200904155513.282067-4-bjorn.andersson@linaro.org> Message-ID: <010101747c43f178-a42925f4-64f7-458c-8247-d293c1ff25a8-000000@us-west-2.amazonses.com> X-Sender: saiprakash.ranjan@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 X-SES-Outgoing: 2020.09.11-54.240.27.11 Feedback-ID: 1.us-west-2.CZuq2qbDmUIuT3qdvXlRHZZCpfZqZ4GtG9v3VKgRyF0=:AmazonSES X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200911_042425_167619_28B2A9A5 X-CRM114-Status: GOOD ( 15.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Clark , Will Deacon , Joerg Roedel , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Jordan Crouse , Sibi Sankar , linux-arm-msm@vger.kernel.org, Robin Murphy , linux-arm-kernel@lists.infradead.org Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2020-09-04 21:25, Bjorn Andersson wrote: > For implementations of the ARM SMMU where stream mappings of bypass > type > are prohibited identity domains can be implemented by using context > banks with translation disabled. > > Postpone the decision to skip allocating a context bank until the > implementation specific context bank allocator has been consulted and > if > it decides to use a context bank for the identity map, don't enable > translation (i.e. omit ARM_SMMU_SCTLR_M). > > Signed-off-by: Bjorn Andersson > --- > ... > diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu.h > b/drivers/iommu/arm/arm-smmu/arm-smmu.h > index ddf2ca4c923d..235d9a3a6ab6 100644 > --- a/drivers/iommu/arm/arm-smmu/arm-smmu.h > +++ b/drivers/iommu/arm/arm-smmu/arm-smmu.h > @@ -243,6 +243,8 @@ enum arm_smmu_cbar_type { > #define TLB_LOOP_TIMEOUT 1000000 /* 1s! */ > #define TLB_SPIN_COUNT 10 > > +#define ARM_SMMU_CBNDX_BYPASS 0xffff > + > /* Shared driver definitions */ > enum arm_smmu_arch_version { > ARM_SMMU_V1, > @@ -346,6 +348,7 @@ struct arm_smmu_cfg { > u32 sctlr_clr; /* bits to mask in SCTLR */ > enum arm_smmu_cbar_type cbar; > enum arm_smmu_context_fmt fmt; > + bool m; Can we use mmu_enable instead of m here to be more descriptive? Thanks, Sai -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel