Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1190344ybt; Thu, 9 Jul 2020 00:34:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwC6mNy3zf2foBx7yh7Cw8oqrs9oS8niX6ZbT6Vt6tPUm32MTTFVTn6+56pNBdOv+BzFHlU X-Received: by 2002:a17:906:5283:: with SMTP id c3mr52294060ejm.22.1594280055946; Thu, 09 Jul 2020 00:34:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594280055; cv=none; d=google.com; s=arc-20160816; b=rGDPorSJPRE/ZhtSzjHLGxA3KPC6QojW23zs/wNsNu8muCp+5CLXnXfZmq1DMGOkwn fc0ilgrufAqRudr8f7VWIoWu6kKvTKBrjTSqaUoNRumyv39PtqP+VkxgnkacAzsauIyM TeLUg9WTrdbgaUrbN/cAQEGP6pz8hTSu+Zv0B8aGex4u31I+ztb/FIkaO5IqR1JbbWHL 9I8Vrn1nxehy9te5qQOLRDHIWzcXhuM3Vob23qLpiqFXBca7s8GRIfcv5RWYg9hyF8R/ bM0sVdstwgu2cYg1xhSm4pJB7PVb0+NzM3GjuBJrrpIVgncxXnf+P/SobbT0s00J10// +2OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=PxS39hhysqSUcs65AiD/4UxlCFAll4h2c7J6R3sMaw4=; b=Xkn6MjV5q5jDP7KmU1BvDCPFjva7hNRIqcSBlbS4gKgZ423wGbqJfFqH8vIcoZ9cvK KVcEevEw7STALG2ZgBchjWZieBQKdjiqIrVLV3JGOF/+FjIf64IN4rHBNBOefWz6MEbo kVm/hFcKCc9QdKyk69qsKWY4GdsJUTYYtADUmczVcy00tW1IV+gNjh9xrdxKSHH0lcwk CPiTBQ9j8nIt3PM8oMIIpXGo4HsKsaP+X+PuJMFVZNzvz47sxHtMIcqV+7zflL6wH+P+ 8hk2iGsjO456uTUx78dNbYTWEaDtfWCpLT7eE0mQjYPPkGGs36vJRzJkjiTxOk1qbdBr A2/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nnUpnt8Q; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g21si1518681edm.199.2020.07.09.00.33.53; Thu, 09 Jul 2020 00:34:15 -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=@kernel.org header.s=default header.b=nnUpnt8Q; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726387AbgGIHdk (ORCPT + 99 others); Thu, 9 Jul 2020 03:33:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:44080 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726006AbgGIHdj (ORCPT ); Thu, 9 Jul 2020 03:33:39 -0400 Received: from localhost (unknown [122.182.251.219]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 43E6520767; Thu, 9 Jul 2020 07:33:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594280019; bh=egKqkdwX9z5kdRrXLcad3F+Q12AeoGgHsWBcKCW0Cbo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nnUpnt8QvxDxM750v0L6hAcTKPWBSNG9X2ixsGlzQPDmWQr+LI9uw4Up43fNMGfXe ktx1qN1AeFuemE2NqUtwNQ9sw1VFX/zyq4kjOGEYtoQ789blkG6kDhW9Bqzn1O6cHk O6NoSnxjJT1tVbhzxZaukzFy1CRHSAd2LqQaXJ+U= Date: Thu, 9 Jul 2020 13:03:30 +0530 From: Vinod Koul To: Bjorn Andersson Cc: Will Deacon , Robin Murphy , Joerg Roedel , Thierry Reding , Laurentiu Tudor , linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Jonathan Marek , linux-arm-msm@vger.kernel.org Subject: Re: [PATCH 0/5] iommu/arm-smmu: Support maintaining bootloader mappings Message-ID: <20200709073330.GI34333@vkoul-mobl> References: <20200709050145.3520931-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200709050145.3520931-1-bjorn.andersson@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08-07-20, 22:01, 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 resolves issue on RB3 for me so: Tested-by: Vinod Koul -- ~Vinod