Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp374046pxk; Fri, 11 Sep 2020 09:12:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvRe6xRCNB0hPDv2or9exoGPQ1n5dFX9NIruYsjZ7pO1re9EbVb+1BbNFIOCV0ykCsmPUE X-Received: by 2002:aa7:dc18:: with SMTP id b24mr1816547edu.285.1599840746444; Fri, 11 Sep 2020 09:12:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599840746; cv=none; d=google.com; s=arc-20160816; b=mvrhEHDN5PvqxWZHNbu0qXby1wTpVwhx4QzUQhZlqgd6ZvTfBqTghFTB9+3GwjlEFT a0NZeXp/mHfr5caeezYr1WDwqa+ey/WZzMhPhem3uV/fF04DQASI8miNf+ypb/RTxTxn 29OwDKRnM7SS6+QSr/feWKKdtangSgcON5qSaavUCPCpdjeN7fIB2lXwhAolvPdJCMVS 6liKcXSI3BE3YP301mWykeFxUszf8WbfRzZddCP2nBROdcmB07jbnZZa++IyUSii15PQ 1h32qVhSFwbTYqawTcBhIwBrJ5dF32hF9xCNcWcXecxU3ixrEPHhosBxsuiaCloO0CS5 eqmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=DbxEUQps6vESScXmyaIzM2lV4nvnmCDf4+bKC4mI+8E=; b=J92EuSI5qjt/5LYCtiKZNE+lBNqgAQGGvt3TTLw7x9o0ElBfKpH8189xw6RSWS8xKM o4W8KMvoXwU3KSBB3NKCaVM/7/vA8P9/paRAlEohtMqb44dK82CVF5wGvk9DnUaVgpPx XJcI3RCs3ai9WK/rQqeRrRfOiyAaLfZ/TqHZLOVFotr/sCVFQtLUoSX48Gn5Z8WBEJXt eeqdRdi2TX0sJQUvqkgEkPU81JLPsGE43Jc5Ruun/Txe53fLBHL4zrGU2sWevc/P+RXW hET3KLFMnPlgNTsq4EHb9/D/NnaQOLRE/uTDfLnHpu8mc6ryk8agX0HnM42YHwJzxo1Z CilA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QhEUrtgW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr13si1645744ejc.638.2020.09.11.09.12.01; Fri, 11 Sep 2020 09:12:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QhEUrtgW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726593AbgIKQLM (ORCPT + 99 others); Fri, 11 Sep 2020 12:11:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726657AbgIKQKy (ORCPT ); Fri, 11 Sep 2020 12:10:54 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E2DAC061756 for ; Fri, 11 Sep 2020 09:10:53 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id b79so5298255wmb.4 for ; Fri, 11 Sep 2020 09:10:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DbxEUQps6vESScXmyaIzM2lV4nvnmCDf4+bKC4mI+8E=; b=QhEUrtgWKj+fZDMyKLwE/BKdNRzvaTQpARmk62ty0kGcVZPcAPywlm22mc9BY1YG2B naOPmTBAF/1xl/fT0oV4GdOE67fzk7jmY3lvaE51nNC69qu9CLGLN8DA8nnA+9ifurXo geXkXHDs/iwILRS0Lzr1OIGz/k1sFbuM45shEKHEjPHiKkhzKj0a53sglfQ+fKH1kjpv 4AHTDdt/P4cydao/Lj/hy09u8HvDO982rfjxJfMS54mW6LG4WyGuwx618Hx/kR61E+z1 ba7Mbo+1qhX1OOYxxWYCefHJwf71oQXGwvjanwXQajdTADvqIc4Q8XCkOpxDlJcgDxUZ JvyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DbxEUQps6vESScXmyaIzM2lV4nvnmCDf4+bKC4mI+8E=; b=cvBWuFJzFkHB85tDJWb51Rl03gpXQ3DMKIOvbQw7dBUi+NbROhuslHJICFkj8zV5wL MKvx1brWi+hJ7NnovL7pT4dYyUodEBB7SdZyKpPm1lZOnIDDl1NxKrKr+zHA2RaMUiiC Sw0n8n3yGXFJViYA+VLruu2wuqhI97BgCBbFHIhrmH712vND+6MZ9qj7mkFbUZhw/r7X biLFv+JHyz8AcZIFHSJ7u5vT+Jy/REO9pVlG3TXw+TvJA10zf2mDplSqI0a3es25GU0R tN/bT3rj+rD/XkTEk4FYNZZTvtzE1Elk4V6UZoHGMJgE7C0WRkIjRLcXKC5rfUbvlx5m 5LJQ== X-Gm-Message-State: AOAM533Qjwh06lzHmdIgKdqn8SjQQGjG6Cg2alh2g6QHlrEdt0jy/ze4 h24ykkcJZf1obBvOxu1R4yzDMFk0q6M6DY4tHGTR2w== X-Received: by 2002:a7b:c0c5:: with SMTP id s5mr2898135wmh.152.1599840652329; Fri, 11 Sep 2020 09:10:52 -0700 (PDT) MIME-Version: 1.0 References: <20200904155513.282067-1-bjorn.andersson@linaro.org> In-Reply-To: <20200904155513.282067-1-bjorn.andersson@linaro.org> From: Amit Pundir Date: Fri, 11 Sep 2020 21:40:16 +0530 Message-ID: Subject: Re: [PATCH v3 0/8] iommu/arm-smmu: Support maintaining bootloader mappings To: Bjorn Andersson Cc: Will Deacon , Robin Murphy , Joerg Roedel , Sai Prakash Ranjan , Jordan Crouse , Rob Clark , Sibi Sankar , linux-arm-kernel@lists.infradead.org, iommu , lkml , linux-arm-msm Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 4 Sep 2020 at 21:25, Bjorn Andersson wrote: > > Based on previous attempts and discussions this is the latest attempt at > inheriting stream mappings set up by the bootloader, for e.g. boot splash or > efifb. > > Per Will's request this builds on the work by Jordan and Rob for the Adreno > SMMU support. It applies cleanly ontop of v16 of their series, which can be > found at > https://lore.kernel.org/linux-arm-msm/20200901164707.2645413-1-robdclark@gmail.com/ > Boot tested the series on Xiaomi Poco F1 phone (sdm845) Tested-by: Amit Pundir > Bjorn Andersson (8): > iommu/arm-smmu: Refactor context bank allocation > iommu/arm-smmu: Delay modifying domain during init > iommu/arm-smmu: Consult context bank allocator for identify domains > iommu/arm-smmu-qcom: Emulate bypass by using context banks > iommu/arm-smmu-qcom: Consistently initialize stream mappings > iommu/arm-smmu: Add impl hook for inherit boot mappings > iommu/arm-smmu: Provide helper for allocating identity domain > iommu/arm-smmu-qcom: Setup identity domain for boot mappings > > drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 111 ++++++++++++++++++- > drivers/iommu/arm/arm-smmu/arm-smmu.c | 122 ++++++++++++++------- > drivers/iommu/arm/arm-smmu/arm-smmu.h | 14 ++- > 3 files changed, 205 insertions(+), 42 deletions(-) > > -- > 2.28.0 >