Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1420283pxk; Fri, 4 Sep 2020 08:58:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0LIVV/WXacLFVfaPwn5EvF3Ccu0gjOQvqBI6EOABA0q//CYvyNoN7CT4QOrKPnRiGKXcm X-Received: by 2002:a17:906:3a02:: with SMTP id z2mr7940010eje.287.1599235131308; Fri, 04 Sep 2020 08:58:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599235131; cv=none; d=google.com; s=arc-20160816; b=XduQCZ0kp7fCYv/MgKUyrWF/21jmm1VQBEiFTA43LEl9BSOi61cQVOi1G050ufdiF6 CQk64GpXLLTrliiy5OMjCYGKhGy6Ff75jzJDXRqO0gksT1NFakPMV0GfIpZyyVk7FtMt EtVodYGPt0YUMsrPCsIib+IofXFkLmUaekUDj8Iw3gRF74w+chca0qBwfeHD7peLocwm UioM2NFiWMi3XrWwVtEEJlbT6KtMX9zln8I8upaoVn7sN9eDlSRFGODpSqJo4sYji9iq cn0UCpVfnEJrPNgFSheP8xPKwtM5EIxqExmCstUMvQI2VRpfu8xi+6uh2WVd4LYxXJZe qajg== 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:date:subject:cc:to:from:dkim-signature; bh=4q/8n4d9Oz9Vv/K5aJK8Mp8Y2lRkWj0qSrttp/CroxE=; b=m9HOGUDqwa7QPibIqUtwIypcSdu3CRWZBrjNNI6MYdHKkPDn385sNDMvZNhR89rjfE 25WHJNrV4jTMGwzYY4Oe6W0ZB/8frjtFt3YJcinKKH9vVhE82/6ec96VIvW8io/REWKI FUsYIYVoH4nslUMGBg1MCAahvje5QHhXxvvyL8LsFTHY4IRF3YYVJo9aoqG1M8iBgeto WJptdgfnoC9DXA0Ov5LYFbyjquAHVCgpxiCoEBZ4ykqkdDvzFNFsIGjlRfG1sNj+P2hC fal0Nj0ujn6CG0Nrw1iGIptISuZlau9D+o3rfR9uf1Wy2BFRYA9/L4YARvwMI1CHo7Xv Gqng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oZadVWzK; 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 b8si4467095edq.395.2020.09.04.08.58.27; Fri, 04 Sep 2020 08:58: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=@linaro.org header.s=google header.b=oZadVWzK; 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 S1727007AbgIDPz2 (ORCPT + 99 others); Fri, 4 Sep 2020 11:55:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726047AbgIDPzQ (ORCPT ); Fri, 4 Sep 2020 11:55:16 -0400 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B1B1C061244 for ; Fri, 4 Sep 2020 08:55:16 -0700 (PDT) Received: by mail-qk1-x741.google.com with SMTP id b14so6738432qkn.4 for ; Fri, 04 Sep 2020 08:55:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4q/8n4d9Oz9Vv/K5aJK8Mp8Y2lRkWj0qSrttp/CroxE=; b=oZadVWzKzjT6kVlQDdSaTMxHoRTYYXuhfeHAqu6JmmOp3XCU0blzfKn1tJhWzX2HeS sK1QUgw4eOALlLrqiIa5mJ5RjG5DDMC/GfAoKvUlju9deCt1Z1cQt3mFi6Jp8dh8eAcL b47lB644qnhBgKdHPTa65f3vcbqa8pR/OGmGhW1uCRNIq0IP9XUGZp7dua1GTQzH7pbj 3kOSW84l/lOtcT1dCSPEMna3Qn0g0ssFDfacD5B1snlLor1iC7Zmm6UoHviENlQKr4s3 lC89jtyARRDB8fr0n/NnuYQLdQ/YywQuWqkj40BnJg+qClOjhyEKiVWTZ/r3SCq8UT/u +arA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4q/8n4d9Oz9Vv/K5aJK8Mp8Y2lRkWj0qSrttp/CroxE=; b=EBu0TgnU2lV0VzvbRqGcPrjyHzvBygEDaqxn3F1nQctO6VoAUiku7JeKW1ado+qvP4 HKY2eeV/J0dIiAjYAwGaUo/wJcA80Ab4JNKO+0l9IaxEijink3SM/1rrLtc2R7+Wm2Db 9UO9p9YTk9gIe8gdfnoyOH2loe8/QHOD50GnozjhwS7ZZ+p9QenU6aeb2TBGOprgVv0h moE6Wt5YkP6uW3DeIR9hKsN0FF3GGYCAN1EQNCglfJVCH5cuLxNT+PoLEzymYPk6ssn2 CK0VDiYIccBwa6VOy+NUTe/NL4/okHReIJngwfktHpPnjR+SFaCRpAStgcxPBaTR85k+ R8sA== X-Gm-Message-State: AOAM5331OjIXiAzBGRejBezSrU51r61lX/FG9ZHhBmh4XoF/vyV6MAX2 8kCUN3DMHoviJO3IF9okA4yu6Q== X-Received: by 2002:a37:314:: with SMTP id 20mr8208333qkd.274.1599234915063; Fri, 04 Sep 2020 08:55:15 -0700 (PDT) Received: from localhost.localdomain (ec2-34-197-84-77.compute-1.amazonaws.com. [34.197.84.77]) by smtp.gmail.com with ESMTPSA id v18sm4724473qtq.15.2020.09.04.08.55.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Sep 2020 08:55:14 -0700 (PDT) From: Bjorn Andersson To: Will Deacon , Robin Murphy , Joerg Roedel , Bjorn Andersson , Sai Prakash Ranjan , Jordan Crouse , Rob Clark 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 Subject: [PATCH v3 0/8] iommu/arm-smmu: Support maintaining bootloader mappings Date: Fri, 4 Sep 2020 15:55:05 +0000 Message-Id: <20200904155513.282067-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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