Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp270615ybt; Thu, 9 Jul 2020 22:29:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQRsJCimvHquVSSc0v+3MIQVJpWJSG135AQY7jS4C/dm4dZzHsOyVL0kSgNPq0fqb/lTvG X-Received: by 2002:a17:907:4003:: with SMTP id nj3mr57274264ejb.278.1594358982812; Thu, 09 Jul 2020 22:29:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594358982; cv=none; d=google.com; s=arc-20160816; b=t69NunXa0dx4c3dlfHgY+kui0c2fbioh2UPqkz2VF6qOVWR125UeV/2l5YtWdF1akp Y8FOksXumbpn2RxYwbomKGo76zGqsWhiJy9KE7gxlpEFX8zzv+mDlMv2s8GxpjXKhXoq FWIxirHhvljGY416qtOu9l3j+TXAcXfg/5lQv3fzOVNu8I0agLS4Y+C/kF/pffonA72/ pipIM6BM0WLXTCz7z12qJmDJokFsBQBN7klaQT2UURSB6UkRIr5ZyooedgZ53RgjJd8B MLLJszRzDYF1tXpH1vH1xEiZ9leY/GpkfHOezQKXrmZZ0IyU0C1h2j3yxAqR27WNcXsU 0gJQ== 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=1cVDfB4v6J4ClnDi/ClpZbQ7jFtPWUjhu9zER11wqP8=; b=tJPH5CcSJEgiIaFSRKvXzdF7KdvXCa13TcrJaeG6a2XKJkrMYUYvp/heme1IbN41n4 6lku5dkGhywOMMGkNivfwgWNlOvErsDYxRRwPE/f0wta7voEY+PRUGUWc7pzrJwFihL5 lJDYaOYOBGtoITrgYzvst5iCURQXjt0hjoj3uRBjh1xfWMoNermQMWrIGP1WfedJpWJF X+ERCoBzToHn14MlM04XDkS3hK0i52UwwY8MovH4c38yWQbka9SNtAoKaqOdpVqLn/2q XH273NuewvijoiRc8bb91XUiWHUJtVG5QlX58Jgs3/lBkG15IonD91qYMidv8OFqXv8N s5Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HKd+Cf8s; 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 g9si3287005ejj.380.2020.07.09.22.29.20; Thu, 09 Jul 2020 22:29:42 -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=HKd+Cf8s; 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 S1727086AbgGJF2y (ORCPT + 99 others); Fri, 10 Jul 2020 01:28:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727033AbgGJFZe (ORCPT ); Fri, 10 Jul 2020 01:25:34 -0400 Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D39BDC08C5DD; Thu, 9 Jul 2020 22:25:33 -0700 (PDT) Received: by mail-il1-x141.google.com with SMTP id a11so4075514ilk.0; Thu, 09 Jul 2020 22:25:33 -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=EjeoVctYr/EJkMojp2xNl25Jelpq+ElU2pZ7HGSra4/vBwnlP3axfizC59PxAfZn90 xcIjDNOoUkIwJfxfQkMwnq/kVZh/ONCjkKXAK38gYdXGG6aMo8VR89mWObMPEFyAPL6f KDWNFdBWV9fTBfq34HLwM/BKsPj57+f28EO+2sGy5eFL2Roq3N0L5YideeR2tYJyA7Q6 P3u1cMEoWDrlTDzUo7xsGwK822GGjqMiqGDLRsqxz0o7QrGBVbET105aP5a0DAk5V5Xq dH0JO2lxeiPdXiDwv2JkZsXxY8wiCx3jhr5zaSUwsSMkvpnr4ksrciqniRZsJPGzw8hl b8tg== X-Gm-Message-State: AOAM533OYzGkrvARRFdyW9oTyd52W5KzICgld4FeWSmRbmmR+JCyqvyP lHEC+yWI7LJ8zDRRvSRw6HdOLltCH5SlBwO10t0= 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 Cc: Will Deacon , Robin Murphy , Joerg Roedel , Thierry Reding , Laurentiu Tudor , linux-arm-kernel , iommu@lists.linux-foundation.org, Linux Kernel Mailing List , Jonathan Marek , linux-arm-msm@vger.kernel.org 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 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