From patchwork Fri Apr 2 03:55:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 12180283 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CADBFC433B4 for ; Fri, 2 Apr 2021 03:58:10 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 351B86023C for ; Fri, 2 Apr 2021 03:58:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 351B86023C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Cwr8GPva3LohFAHNFH6OtqPIYvnVUh4g+MDYKfinCuo=; b=hMcjy4xBVow+6VV079LXjomZYF rnOdXy8aTP9f6aFXE3ssBj7XKASuOYSVDON2kgZeiV2t7jwupXIyw1SJ6vMokWjowTQDgYcnob59g ct/UIqf66w3MPfi6uqmhphEwJPhDDQwyxtiqms5dh9oE2DFjhObk7Cj/SeuFdf6V3BhivZrlBajKs x2XGRpyXc/H/Ja7ceZRTS5BRJQ79UfqnesaySpJ11bR0xeD9bhRCZZzytTkKH04X5GOydqvrydcdf ZVr/HtyEgNYLcTN/0Y1/u27RtHrUnVSByVtnuWZJK+IOcVrR2w1RKaYBhR2eZlGYvQTNunbcL8Udh MROJq/Rg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lSAuz-00BsiV-Lf; Fri, 02 Apr 2021 03:56:22 +0000 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lSAus-00BshM-0n for linux-arm-kernel@lists.infradead.org; Fri, 02 Apr 2021 03:56:17 +0000 Received: by mail-pj1-x1031.google.com with SMTP id w8so2146111pjf.4 for ; Thu, 01 Apr 2021 20:56:11 -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; bh=3vSAibITlctZ+axCGeiS+YHWaedHLZOtjiiZrdl7kVA=; b=DdtjBmLapl6ihIdyi3DbORJDOpZiQmd2/DIoazZED6QAcPOiibgOUoSw/hh/2efXQY XqSV5EsQF1YtTniwtU89fDSBmXjJ463iBEBlRSBY4KBdJF6V3gloxNrsEIjRGEddQilY TUsNzdHjHvJYsN+ZT8nmO+FMXgZmWZgiqml+T+hFDR96bzRd4YQE5beBNc0sH7HI8Flg SnJ4xpuYLY5UN+9pv+crdT3AVh6BoBVqY8jRa2nP8z/RH9mwoJXAEme3j7TGbAHP7Jao NcQ0G+eLxKAZfbi0PVEZFeTUEuzc8W3vcVOGXoDm7N6+Jsdtg1Y0bDTE2HUUjzVGHRsC P/3w== 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; bh=3vSAibITlctZ+axCGeiS+YHWaedHLZOtjiiZrdl7kVA=; b=kXfNn3frFcjSoIn2cxe2uwXbd1SFCOVb9XvPqUW6SMRk6eDvrgvEV3VSRxc9ZNLJr4 fTUhPyGdWUYZpezACs4geMMMoqPYpQLxq54j+CPSgo3yVyzngjrpPCGj/6jB/KPUdhLY N8ZR7B8ncQuBWr8ivNjvla81gH1AvLNsMBB8uWLsNbpZ+bKGg8emVf9pVvSHEnwdosH7 ZFdw5Gw2EEJUIKDNzx6Qvaq39EL8MZPJ27pbUl79H/EtTCg8oh6hq79QGwdsWI8wgNut KIew0+kwMfPXXOGkIUFq2NxeEHDvxNQv8L1+sYmWarf4WnbitladnZQ/vLaEbHRq1QSb gwTg== X-Gm-Message-State: AOAM533Xzm8B5yY9RNRNhA5WhXwhTBBG+cPi+IQeTjcRad/6IVXeQC5e q5e8zamLOqbMlKLmiyWSD0tYHg== X-Google-Smtp-Source: ABdhPJyzqyV12ZOHEwY9sNHMMIBiWniMm0Ha2uR3l8clGankE7q85oofBXXEahu/WSzSbEbYAhNEmw== X-Received: by 2002:a17:90a:14c3:: with SMTP id k61mr11945464pja.206.1617335769945; Thu, 01 Apr 2021 20:56:09 -0700 (PDT) Received: from localhost.localdomain (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id 81sm6875972pfu.164.2021.04.01.20.56.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Apr 2021 20:56:09 -0700 (PDT) From: Shawn Guo To: Will Deacon Cc: Robin Murphy , Bjorn Andersson , Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , Mark Rutland , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, Shawn Guo Subject: [PATCH v2 0/3] arm-smmu-qcom: Create qcom_smmu_impl for ACPI boot Date: Fri, 2 Apr 2021 11:55:59 +0800 Message-Id: <20210402035602.9484-1-shawn.guo@linaro.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210402_045614_701975_EEE4EC18 X-CRM114-Status: UNSURE ( 9.11 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The arm-smmu-qcom driver needs to hook up qcom_smmu_impl for booting up Snapdragon platforms. Such hook-up is being done for DT boot by matching compatibles. The series tries to handle the hook-up for ACPI boot by looking at model identifier, which is figured out by IORT driver using acpi_match_platform_list() helper. It helps to get Debian installer booting with ACPI work for Qualcomm SC8180X based laptops like Lenovo Flex 5G. Changes for v2: - Rather than using asl_compiler_id in IORT table, follow suggestion from Robin Murphy to use acpi_match_platform_list() to match platform. Shawn Guo (3): ACPI/IORT: Consolidate use of SMMU device platdata ACPI/IORT: Add Qualcomm Snapdragon platforms to iort_plat_info[] iommu/arm-smmu-qcom: hook up qcom_smmu_impl for ACPI boot drivers/acpi/arm64/iort.c | 36 +++++++++------------ drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 6 +++- drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 9 ++++++ drivers/iommu/arm/arm-smmu/arm-smmu.c | 9 ++++-- drivers/perf/arm_smmuv3_pmu.c | 8 +++-- include/linux/acpi_iort.h | 12 +++++-- 6 files changed, 51 insertions(+), 29 deletions(-)