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=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 C6B43C433E0 for ; Fri, 10 Jul 2020 05:27:35 +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 9384920720 for ; Fri, 10 Jul 2020 05:27:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="qOC3GhUR"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="HKd+Cf8s" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9384920720 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.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-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=xTLXU6A6HJY1+izCnmTf/Kvy5BYgwUzunF2q3jCsk+k=; b=qOC3GhURecbR5OGlvrQvoOYII 5HTZ83IvSmW1eZb69w3zY6vNRRIOiO2EJpANtga3EbtKWpzLpCBPljBBD6P52/Lo+a6frryLjj6NX NOhC5ELNr6QWXHe14VNc3KUHyzgje3Xwjzqzl6bBhmUcptCs2JJ9coSS3i8E4uA8d6icEQrvYAFWV 5jJYIJI8z2S4x1KPwExcvcKDR4AQu5LQsmuvo8ZvChV1HxloS0zu/kcdiHJ842IGqMzAA3fxni2rd wbAWG55SN93SnqLWy78UwdGSRo7tsO3wujfbsCm5EdRbgOezVyVX87IT9SVKY6oEoJZA9EY25mQLv 00IkSlJmw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtlXW-0007NV-Vm; Fri, 10 Jul 2020 05:25:39 +0000 Received: from mail-il1-x141.google.com ([2607:f8b0:4864:20::141]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtlXU-0007Mm-Bw for linux-arm-kernel@lists.infradead.org; Fri, 10 Jul 2020 05:25:37 +0000 Received: by mail-il1-x141.google.com with SMTP id t4so4071627iln.1 for ; Thu, 09 Jul 2020 22:25:34 -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=1cVDfB4v6J4ClnDi/ClpZbQ7jFtPWUjhu9zER11wqP8=; b=HKd+Cf8scR4pDATBdPv9J6bE79bp4QubfdMiZ3HWIifUJzxv80tzeOxDgAmi8ijh9e ba2qJSxjWfstzcK45BHkPk7sfCs9LLn2RCk5MfrIgvx/Kc6gAXyZAwomlnnti59FkegO dS0fyvUAXp5Bmw2w7tfN7uvWfKAsDNTqw4BFji62qVv+80eGdGB7KeY53GgSwsbvcIu5 sYQDkjXaGNcgqkHw2Lsf993+nAZZVFJodIWkZVHQZ3TBFoOXAD6ZMGrGxDqSyYofdS3o OB3t6+/eV71jgo8m3oH7oAJ4gM5mYbIGPUbzmOoWqWuWRzZPM/1AUdIOF4XaCheguvh6 LYPA== 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=1cVDfB4v6J4ClnDi/ClpZbQ7jFtPWUjhu9zER11wqP8=; b=j02Ho5yciAyFZ4vYuk297RvoFBirsjtSX8QFKFSjjlbDMZeJSWrPVz6I/sf0idhU5L J2kwVPAKd0oPYtywwqL7BYuN1y2pkfdy8VPxFxuGHqGD2RDISNboSQgzrNDTx556llQ/ KqODhtSYe4WM6AwSRdkJbnplzsTjkD/BD7G464Si7oNFrOj20ahmwj6S31tryT/H4q7I K/6g2a08GCWl5lFRxAl4ZQylQYsqarx7QS8ggcKxbHpItSkT5SZC4tVZIAWdubvlfrqT Q2B1a8JkAgEuwOpmu5K1wbvxZ1VaZSm1OKIZWXag9MtM2ZsD0KNKYZNmuVLL1wSlAmrp KNGQ== X-Gm-Message-State: AOAM5320UDVrznn+ozUzoTVNIh+x6cKaURlysNM7KreWjFKo4VzgXmZS F6a1/nV17E4KrxMuzKrTkbKENU1Iv9uarY0ubek= X-Google-Smtp-Source: ABdhPJw2WPKWI/PMXVjCNufYc0XZl4hZWcBY1ymfaGsvwrEOqU+aXVi0iLdPhxgpzq4Gj739y5aJg/JXvjAEf1A89Rk= X-Received: by 2002:a92:c78d:: with SMTP id c13mr50475751ilk.85.1594358733111; Thu, 09 Jul 2020 22:25:33 -0700 (PDT) MIME-Version: 1.0 References: <20200709050145.3520931-1-bjorn.andersson@linaro.org> In-Reply-To: <20200709050145.3520931-1-bjorn.andersson@linaro.org> From: John Stultz Date: Thu, 9 Jul 2020 22:25:19 -0700 Message-ID: Subject: Re: [PATCH 0/5] iommu/arm-smmu: Support maintaining bootloader mappings To: Bjorn Andersson X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200710_012536_674934_54C39A9E X-CRM114-Status: GOOD ( 15.95 ) 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: Jonathan Marek , Will Deacon , Joerg Roedel , Linux Kernel Mailing List , iommu@lists.linux-foundation.org, Thierry Reding , linux-arm-msm@vger.kernel.org, Robin Murphy , linux-arm-kernel , Laurentiu Tudor Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Jul 8, 2020 at 10:02 PM 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. > > The first patch is an implementation of Robin's suggestion that we should just > mark the relevant stream mappings as BYPASS. Relying on something else to set > up the stream mappings wanted - e.g. by reading it back in platform specific > implementation code. > > The series then tackles the problem seen in most versions of Qualcomm firmware, > that the hypervisor intercepts BYPASS writes and turn them into FAULTs. It does > this by allocating context banks for identity domains as well, with translation > disabled. > > Lastly it amends the stream mapping initialization code to allocate a specific > identity domain that is used for any mappings inherited from the bootloader, if > above Qualcomm quirk is required. > > > The series has been tested and shown to allow booting SDM845, SDM850, SM8150, > SM8250 with boot splash screen setup by the bootloader. Specifically it also > allows the Lenovo Yoga C630 to boot with SMMU and efifb enabled. This series allows the db845c to boot successfully! (Without it we crash!) It would be really great to have this upstream! For the series: Tested-by: John Stultz Thanks so much! -john _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel