Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2268939pxk; Sat, 5 Sep 2020 15:27:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtJzCUJJ2TWM42qziQNvjm+3yKkHGbNmdfjcjEt+mMFAVzoRy1H6Z8Oi21gRj8UVzXTGOP X-Received: by 2002:a17:906:380d:: with SMTP id v13mr13679960ejc.152.1599344838309; Sat, 05 Sep 2020 15:27:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599344838; cv=none; d=google.com; s=arc-20160816; b=eEnk7xZtk6ANk4vz4WHLyUH9K/KlXu0rXeh2JfSGrf4y+mnN9E6E0OcxMGdgl3WPbq 9p+Yo9sFNt59el6s2z6913M7dgIGCwYXjZ4btJA/7uUg5Xyr3/+R66FFSUhTkvJ/VnnB sHjVdqe28Igx+yFdp/GuuNZeXuC1ptS5fv9LV51Iz/E4t5NByGjzX+/vsBJG1zkYXdZc NMd7afF+d20qVIC9OzFNO05Lp3s9RA1HSl/eTnS8DfHqaBE2mJQEv6W79szOg8lSMykX 0im+8mWgEHLsyLMeEATstmDqzHKH5vBBG+KhQfl1gxRk+aUo31wkS/L1Ko9nUPRw5HWI KOWw== 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=kO4SU6/nW/siFVjam2OIPJSAFbObCvonF2HPGFhSHaM=; b=SJizqXPC40WYHTnuaJ51oMQYSfM+k5va6qRNEhqfdq4pGq/PY7PJvb3+8jGI1yWG9N dTt2z3sAZYBxYGDqctrLu32pTbaUXAT4FYQVhqP3TosBW3qL99Fhbr6G3hvFKjIIt5dH IBDbRMbe8SYmOgH7yzyS2CNFwJPqgmyu6/2LVzt1MWdoT6ppHa/NJ53aAvZn9GVZw4mP JfZKC9lgZiTf3nPx6amPaSV4lZlqHx/q7y2utaEur6P9NYSSfZzB4y8ziGAnxt3fFOWn 6grLBTan5py2QsrSDzmIrN4zXvKPg5sKTym6NORNCaVi3AS3TOnoMRb0rrUnnsfw/hYu yTQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Tc7Ywq7B; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pj10si7143379ejb.398.2020.09.05.15.26.55; Sat, 05 Sep 2020 15:27:18 -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=@gmail.com header.s=20161025 header.b=Tc7Ywq7B; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728739AbgIEW0W (ORCPT + 99 others); Sat, 5 Sep 2020 18:26:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728505AbgIEW0V (ORCPT ); Sat, 5 Sep 2020 18:26:21 -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 1EED2C061244; Sat, 5 Sep 2020 15:26:20 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id o21so9896337wmc.0; Sat, 05 Sep 2020 15:26:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kO4SU6/nW/siFVjam2OIPJSAFbObCvonF2HPGFhSHaM=; b=Tc7Ywq7Bfefla4wdZkAi4wzRtTHA3HZUo4yG10hl3Ve8gqdwLwePdy2g+5uZZOyLQ+ H9nqqKVopB43C5zDytiFXIINTJwIbwOicfW9vNOZO0vgzeRzgzGqpaSrRECaj+ZMX4oy q4bPV5MgL5qFWx8UMO8/ayIus6y68lpXUhGi7JYEOKOHaoI1i5pU7uNirFdQ7v/3hcHJ HYnQKYASgQdDUpkx6yPxYFlhKC4W5vk6PfRqBe5DtZOi5Z6BzyC7LPxwevz4l3sYKHTP NWFnldyRzysAPx8WshWYSkfs2QPTMldmCVx+ylf/JskXeQCiqGbQryyQz2KrpaPLj+BY Xg/A== 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=kO4SU6/nW/siFVjam2OIPJSAFbObCvonF2HPGFhSHaM=; b=B5F6KfW4fNqIQkDaNrgrpeq/3BJfwWtTq8/iLRq9Yxc8YlwiTUBfk0qHSgiCdS5fB5 pFcdxQidihB0lY7vmudb+Rp7d5BfsoGGTmuJ4jN9BjNgRLkoSy1kx0hAwMXB+DDLmVxt QI0HHh1LOF1jHnYm1vWhlKUR9M6HxMm9WrXQBq63w1M+17d5husrCvV9pAlfBaOeimYz JI3pL88yUPGi3R/vT/aiIk9dXNpL+z3mrbdilLwDu6GeekDNmjE5NpE5ykolWiakAqFg /uSIFWVShSKNDe3JSMrG39aojqkpRAbb/UTpVauPc1CAnF9wUbSgwubKK+5m0ogJSRVo soOw== X-Gm-Message-State: AOAM533QfVpPHvSw9/a5eQ2Pb1UvWTGRXAMI/XI5FjmVQd6DS2xDXMb0 GUnA70/wHf/k/JeUsNz0YTogBXvmBBer2sSMnQcRPpy1EL4= X-Received: by 2002:a1c:105:: with SMTP id 5mr13507006wmb.175.1599344778745; Sat, 05 Sep 2020 15:26:18 -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: Rob Clark Date: Sat, 5 Sep 2020 15:27:14 -0700 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 , linux-arm-msm , "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , Sibi Sankar , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Linux Kernel Mailing List 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, Sep 4, 2020 at 8:55 AM 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/ > > 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 I have squashed 1/8 into v17 of the adreno-smmu series as suggested by Bjorn, the remainder are: Reviewed-by: Rob Clark and on the lenovo c630, Tested-by: Rob Clark > 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 > > _______________________________________________ > iommu mailing list > iommu@lists.linux-foundation.org > https://lists.linuxfoundation.org/mailman/listinfo/iommu