Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3405089pxk; Mon, 7 Sep 2020 11:56:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvKt8BPxNO7KmbUU3Jk/PZ2v8W5NQ6sV1TABaKOfwJ0DEwLIJ3Bt+EY0sM64lBI/9lumLm X-Received: by 2002:a50:ee15:: with SMTP id g21mr23431737eds.47.1599505011868; Mon, 07 Sep 2020 11:56:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599505011; cv=none; d=google.com; s=arc-20160816; b=RZcbDvbgZlpVVZ49f4+a0a/v6JmPV7NXnc1JZ1Ij/P8I2aOPCGl8PQFoxqWAfQ8Si/ DpAzCbsE4ACPbl+jW1xtWHLr1p2fTKomihoDzzfePRzr1pjxUinAGbQHX74u2lbcM2I6 CiHW5YmvItH6v3KFNHNNxgImasf4bjqVLkl6ouTYT2s/U32mZZYsPlVK4fj9dz2xaWiN pUAqAulMPTKlm7B+snBTNa/g64/9ilDZxaJEYf/g23vEzf00BkkIwBdKqtOlbnaYJYvy Tg1bwg4UJ7HCWbJF0s9EIqNfBU8XnQCrSxgrPUvMGQlqPI7fBKOXQgunyw3myCQFUzF1 bpEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:subject:reply-to:cc:from:to:dkim-signature:date; bh=ZMHD4pb6eLStL6z+QcCKhBat0AGNJTHtmNZKUYPW0hY=; b=M27HvkOh7GIAG3nNxi64AiJRyLhUAJ6EINVg3DhCnmgJbLgUFW7XbyOArmgzcHRml0 uEAp1IXAjJZi+8szqMtZKI8HtL3ZPv0htZWwexH0AsW8YhY012nXWIQ/gzWWk0Zfh4y5 5Rj/Z2C1iiwU7dsPb494UtVJ6Pyf7sV/Ixbj+3qg0D1eKAltkG8GrWW067XWCwiM5MrI WjvQrGDdz+TLECxJkbnt9uQLjAJq5QBOmFw2PygHVR5fSclEfsN9PQz3ttkrjTNOGLSQ wP/N4Xu50Ug9Gy//Zav7KcbBHh2VPA74yFutcggVOSMCsRVjFKj0p1ybzQ2FQEjypA3J lswA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@connolly.tech header.s=protonmail header.b="LsH3Ubg/"; 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=connolly.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c8si10146942ejx.605.2020.09.07.11.56.28; Mon, 07 Sep 2020 11:56:51 -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=@connolly.tech header.s=protonmail header.b="LsH3Ubg/"; 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=connolly.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729258AbgIGStg (ORCPT + 99 others); Mon, 7 Sep 2020 14:49:36 -0400 Received: from mail2.protonmail.ch ([185.70.40.22]:45420 "EHLO mail2.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729226AbgIGSte (ORCPT ); Mon, 7 Sep 2020 14:49:34 -0400 Date: Mon, 07 Sep 2020 18:49:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=connolly.tech; s=protonmail; t=1599504570; bh=ZMHD4pb6eLStL6z+QcCKhBat0AGNJTHtmNZKUYPW0hY=; h=Date:To:From:Cc:Reply-To:Subject:From; b=LsH3Ubg/tM9MN5ir7XnQ3WLf4Kqa4Ok1LVbdc5dOfguhK0D8iWntPUNb2AniTkGTr t6yGWMWn/awny7KYCVDQBarjP4Vi8tM8RXu67wPoDYP+mLUrqSnec1IuJEjL6LF5B4 4xqRBsAXkGGnM0YxTvto9ec9z8+VlwPh1j+w36W4= To: Bjorn Andersson , Will Deacon , Robin Murphy , Joerg Roedel , Sai Prakash Ranjan , Jordan Crouse , Rob Clark From: Caleb Connolly Cc: Sibi Sankar , linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Reply-To: Caleb Connolly Subject: Re: [PATCH v3 0/8] iommu/arm-smmu: Support maintaining bootloader mappings Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-09-04 16:55, 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 Adre= no > 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/ > > 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(-) > Tested on the OnePlus 6 (SDM845), allows booting with display enabled.