From patchwork Thu Dec 26 22:17:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 11310751 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 897FE14B7 for ; Thu, 26 Dec 2019 22:17:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6157520838 for ; Thu, 26 Dec 2019 22:17:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Vy0udCBf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726943AbfLZWRp (ORCPT ); Thu, 26 Dec 2019 17:17:45 -0500 Received: from mail-pj1-f65.google.com ([209.85.216.65]:55317 "EHLO mail-pj1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726105AbfLZWRp (ORCPT ); Thu, 26 Dec 2019 17:17:45 -0500 Received: by mail-pj1-f65.google.com with SMTP id d5so3879434pjz.5 for ; Thu, 26 Dec 2019 14:17:45 -0800 (PST) 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=P7ESk9eQMRZr+kEQuMK0Z8FaJecR+BKoIpQxePhdF6o=; b=Vy0udCBfVuzARF9m0mc/Z7ONkkt6IwY8DJpXMCucBLV7TsxIK5bJ8eO+LLIwhAcreh CkGkrzG9pykpqkkC/iNQkJrXOTJJzLxzLV2Af/tFrnzxwp0qxTioh5LFMW+8Qa/ptf8o GvOs519X10lPwvXPESozI0QrNaX466/0LxX4ZzyLb2JEiPJbe/6z0MBezOrlDr7xPNgR 2jQYAUfXVZDB8eexJKD56ciO+LezslNbzyWDQHcJi4/bSTbbK05iRhwJT63FtAgIJDnn nza9W86KONxRz8DtZsKb3Yj3k2PFTrn5o2z/X3XQmu3ZvTxV3fi4qyFLvI72CP4p/Uzr wXHA== 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=P7ESk9eQMRZr+kEQuMK0Z8FaJecR+BKoIpQxePhdF6o=; b=h5qd1OM8b4FsxUcpcjrFdx0C3vLwo/2APRe2+V/dlzjXMeK1L+0k008t24VhtKFGJT +p4qFavNVcvTlSF9hGv6DsOFjj8XhMSzd7nBhWNOoRbaU0qhds62nXGYwkMLx20N5Rt5 tDgxetPMDep92R7To2gqHNhANM25ufLwCV/ReT+ZtHo8wBe/vRm3weXCpP6qOUnVxu/X x/hSCvuh4NeuSa1n9VHMoNrEyheFN9ZDfBypE/hS8hj2cPMIaFnni8J2BermdrIABAkF 0jJ9lmNMDONw0tWoufat5jHtRl/dkzMcWDqOeMSca6Qjie2gI5zB0cdgobJC3f6AEcTD zwlQ== X-Gm-Message-State: APjAAAWYFsNnjJa/AoANv/Bw6BUbWGEYZLdeuhGeKAW6Knlxxm9n5x2n Tx9lpxYQUU/s+9+5TTIcLu2QOA== X-Google-Smtp-Source: APXvYqzeKxoKEB96j5hPs7KlRto6hP0WKGq35P+5NZsItv40vaoBcyhUle3i4Zaj9vYVjTLZejXkWA== X-Received: by 2002:a17:90a:1a0d:: with SMTP id 13mr22096750pjk.129.1577398664714; Thu, 26 Dec 2019 14:17:44 -0800 (PST) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id 2sm11779409pjh.19.2019.12.26.14.17.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Dec 2019 14:17:44 -0800 (PST) From: Bjorn Andersson To: Will Deacon , Robin Murphy , Joerg Roedel Cc: linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Patrick Daly , Pratik Patel , Rob Clark Subject: [PATCH 0/3] iommu/arm-smmu: Qualcomm bootsplash/efifb Date: Thu, 26 Dec 2019 14:17:06 -0800 Message-Id: <20191226221709.3844244-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org These patches implements the stream mapping inheritance that's necessary in order to not hit a security violation as the display hardware looses its stream mapping during initialization of arm-smmu in various Qualcomm platforms. This was previously posted as an RFC [1], changes since then involves the rebase and migration of the read-back code to the Qualcomm specific implementation, the mapping is maintained indefinitely - to handle probe deferring clients - and rewritten commit messages. [1] https://lore.kernel.org/linux-arm-msm/20190605210856.20677-1-bjorn.andersson@linaro.org/ Bjorn Andersson (3): iommu/arm-smmu: Don't blindly use first SMR to calculate mask iommu/arm-smmu: Expose s2cr and smr structs to impl iommu/arm-smmu: Allow inherting stream mapping from bootloader drivers/iommu/arm-smmu-qcom.c | 35 ++++++++++++++++++ drivers/iommu/arm-smmu.c | 70 +++++++++++++++++++++++------------ drivers/iommu/arm-smmu.h | 15 ++++++++ 3 files changed, 96 insertions(+), 24 deletions(-)