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: 414302 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1103083jai; Thu, 1 Apr 2021 20:56:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyABJLXs+e2DQOsKoMW8ZqST7d7DULW9RUvOVNHx7omVG/1Hl0riZBOgGzbIXgg1mP3olq X-Received: by 2002:a50:9ea4:: with SMTP id a33mr13700643edf.295.1617335771980; Thu, 01 Apr 2021 20:56:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617335771; cv=none; d=google.com; s=arc-20160816; b=XQ/3zDnxKBgyfL5/yFduz8HVTh+k5c3vgPpEdwnZBTj/t6BR07M4VMEuorQn60gLot gik/UDWRfPRilkUoF1fwP2/QCbHkhdHwg/fYdMDfUosKuD8YQ+EsFSY1Pm5gUCXr3mtW PmmIes7IvKJJS55AXwG5/jHiCiUAewLWhVkPFrTyyK8/EU7xUubF/zKCETyNDlksPzGn QKqFn82HD5IhLRtSKYsn0C+IlNlQdjcLyXRZPFO0zL+WycnRb5NxWax7CpfHU/15oEpR 0E3s/Gp4pBEHS9PD5i97n5EnV/ILviVRQh51wGLgpuYttz6v9odLYFbKr1PIWl6FEAzf asQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=3vSAibITlctZ+axCGeiS+YHWaedHLZOtjiiZrdl7kVA=; b=mmUULErA51xlQDuYDwOcAKtWrJ7b9NRtdm7ErfoeZi0FgnUknwE0j2pYvAl8+mGvWH FYMlqD0cef1rcCiGGx3qc5MF/A11eOQtinCCkhlZGkJ7qw+xrKgVU4fmKJBkBd7w6CW4 h59Y2MdgYaksMthuxeD8/vL9k/oC9Vjmw+M7ypNUJS4chqstyBhT9kB0IBUpgrZNvEHa z0BWtByi82K3/2bLljRAFE7AwsTCT+EI+6+Pz9mKz1m1xHsqP1iPeuquWhb2ebwhaFPE TuFg5D0dG6PsdIsLg46cqFqqF6IJstaZPbCjxcMbp3hbBpSvVa/QtxCVrBo/06TWq0Pf l+CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DdtjBmLa; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 rn17si6254058ejb.183.2021.04.01.20.56.11; Thu, 01 Apr 2021 20:56:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-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=DdtjBmLa; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S233817AbhDBD4L (ORCPT + 17 others); Thu, 1 Apr 2021 23:56:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233786AbhDBD4K (ORCPT ); Thu, 1 Apr 2021 23:56:10 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89B8BC0613E6 for ; Thu, 1 Apr 2021 20:56:10 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id a22-20020a17090aa516b02900c1215e9b33so4057020pjq.5 for ; Thu, 01 Apr 2021 20:56:10 -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=T0kljlLQ/vqrf9Kv+kKYRq2DsgouCMaeshgs7Q0nuNpcJkSelK8fy/SRSrxkM6V4Qm PBYVJcJfdAz17lGkREd2F8SBAxRY8HmD/bQcLb8FTX5iGhKlwi+qCwpDxdx+lxEnAbh2 tvYjwXMCM9pkWSwHYELRKzv5/nLMUIfbg2aU+ON0zl8F29schvPd1VOnhPFVgmUscJVV QJoso++/vUu1MMTHIa3gn9hfXVuzzSanyjIgPrY0N6s+0BLDO5dKpd+hrUJltpVRyRIG QUWFvc+TgMTZf3TZYNHrU6t/YSFjDfzKU1FFOnAXDHYz9EnbtHXPc/50hbhFu1FkOmu/ qgRg== X-Gm-Message-State: AOAM533PYSIlLnX7AwnHoYH3aWtFA22wjwwxEvexrwWJXnEqKKNkVCJ+ v4aRJ/7RWs5YRKSE02BLN/1OZA== 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 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.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(-) -- 2.17.1