From patchwork Wed May 26 16:19:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Philippe Brucker X-Patchwork-Id: 448206 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp5378001jac; Wed, 26 May 2021 09:21:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxx0H39Q3/JqZCeU7ojhO9eM4l8Ca0mPU12tSKTwMiDNhJbg3V2GcSzlckUjYq1vq8E3UsO X-Received: by 2002:a05:6602:221a:: with SMTP id n26mr24440979ion.205.1622046100561; Wed, 26 May 2021 09:21:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622046100; cv=none; d=google.com; s=arc-20160816; b=yMIwajTPRfN1sj7867r6SxwP9JN981bqP1JTBE+MF0AKQceCvzPprOzNpJkM5ZSl6Y g+weh6VWAk8tgFA0v3AydpUBKUBCF+DGOdFYTH7iKbKC1SLNLr6KeDOPRyKL7/k0p8TD Fnp4v2W9DJI1DFSgGHJtADV/pvRK+9RXH2Prf9nQziWs4Nmw7hYQyFbR6k7FzpBPY1Ur EjgYLvYrik715MhZYbktqzd2JYiWMrPB1ZnncuWLUsD1SyJlPAiNuFdiSBDfxFxKW825 GReqjLokd3+di8AmXF0z4WwiOg9Ol0AXZfc58Y+vNV08JQLT6h5o3EnmXTjqE9o1uhS3 Hk7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AKRl4agdQb3jtkg+VysQNU7Kzn0dH+xQTWOrQHzW2HY=; b=ljE8kMS2Ad/TlsT8A29SsNLHCOXreqpOYjYOcdTZrWNYVM1Gq+ajTcPC5zuGFQ8cAR tebn/lC9A+vLblelbH4HmS7oAlkVMDK51+d5LJtu6/L9BONPRaoUuV9hJMqyJe5RmrVO 5/VElMqinvWWXr/u+2idXbwUs0d6Wd5visnuQr2Nv9QtZMPfGtjP9yp2+rrUcRYQZSON qYUI+bggVaZ/atNi2Vu05W4cY1m1KI5LRxEHyn8xdJe38EJwrrhRam683t04jsobSwCg qSSFzOIUI680Zf1h+qQFKfm7herdHgZgzqkcOXSbswr04O1GC1XbmivqcTSOj5QEdx/p VBcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x7BoDKcP; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-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 q7si8644761iow.93.2021.05.26.09.21.40; Wed, 26 May 2021 09:21:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-acpi-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=x7BoDKcP; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-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 S233879AbhEZQXK (ORCPT + 4 others); Wed, 26 May 2021 12:23:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233822AbhEZQXJ (ORCPT ); Wed, 26 May 2021 12:23:09 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 693E6C061574 for ; Wed, 26 May 2021 09:21:37 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id k14so3402587eji.2 for ; Wed, 26 May 2021 09:21:37 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=AKRl4agdQb3jtkg+VysQNU7Kzn0dH+xQTWOrQHzW2HY=; b=x7BoDKcPMf9PizrgqgcjzRKKfGmllOzwKzdaaX3UPgB3QI5dv56ITViep78v3Eh7H+ eP6MDtp7cQwimaV/W8QYj6NVqqzPFKR0Ar+nzPDUa0vakwUOXLtlT6fHPj3h7BqLSZ0q 3z6kNH0z4LR/3PfGuSmssDmJDyXq3BbbWyNPWdfGCL8E1ILFMDi8MXv3z+NFgxzgEW0P oX48LUzPUxvtkJ2t2nK6iTPjD1V/3h8l82JBh0I4OwefGwWmoneh5SX7nHbLiuiZGiUN izK+uNkWcnOXi1pX/KhuGev304wxSaRl9mSyIJrQZr6Ms2fkTKX0Nd96LMrGHrid18X5 E9XQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=AKRl4agdQb3jtkg+VysQNU7Kzn0dH+xQTWOrQHzW2HY=; b=px8rYdPidEalMFv4MTYq2Xme4R0RGwpRCkpC47KDPps/9RKY5CM9MeCwNeQERAm2Z0 LcYo0YOO6s/R7pewqesXqMV3vrSybHOSCpOBEf73Teq5yxondcNsje4BIEt07FMG9Ln3 sMaZ2ktUp986PVmw7Kf/ufQNwddMozLrePmtPmhtSoWXKhasL+UlKD1vptUssUb4H8zE CQMkAGyNWcTR9tWBDY9B/izQaDPmk5/9+Jc7tFZU6Rc0K7wr1Pto7RHCMBU8PnNhztQm ZTcwWuOVDfc2IHiqj51b9Y++reobaRLO3ecw6afIvUJXXvIeKVBrsK9nk2iTrYYpNjCj OArg== X-Gm-Message-State: AOAM5332KUC05EemrIXC2L+i3AhiQHKCltl1S5Wdjm9IGVOv1mx39Bdl fbfqx7PhPqpzntNWq+jngUG46A== X-Received: by 2002:a17:907:7654:: with SMTP id kj20mr34813609ejc.439.1622046095954; Wed, 26 May 2021 09:21:35 -0700 (PDT) Received: from localhost.localdomain (adsl-84-226-106-126.adslplus.ch. [84.226.106.126]) by smtp.gmail.com with ESMTPSA id e6sm10497145ejd.31.2021.05.26.09.21.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 09:21:35 -0700 (PDT) From: Jean-Philippe Brucker To: joro@8bytes.org, will@kernel.org Cc: robh+dt@kernel.org, lorenzo.pieralisi@arm.com, guohanjun@huawei.com, sudeep.holla@arm.com, rjw@rjwysocki.net, lenb@kernel.org, robin.murphy@arm.com, Jonathan.Cameron@huawei.com, eric.auger@redhat.com, zhangfei.gao@linaro.org, wangzhou1@hisilicon.com, iommu@lists.linux-foundation.org, devicetree@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jean-Philippe Brucker Subject: [PATCH v15 2/3] ACPI/IORT: Enable stall support for platform devices Date: Wed, 26 May 2021 18:19:27 +0200 Message-Id: <20210526161927.24268-3-jean-philippe@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210526161927.24268-1-jean-philippe@linaro.org> References: <20210526161927.24268-1-jean-philippe@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Copy the "Stall supported" bit, that tells whether a named component supports stall, into the dma-can-stall device property. Acked-by: Hanjun Guo Acked-by: Jonathan Cameron Acked-by: Lorenzo Pieralisi Signed-off-by: Jean-Philippe Brucker --- drivers/acpi/arm64/iort.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.31.1 diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c index 3912a1f6058e..0828f70cb782 100644 --- a/drivers/acpi/arm64/iort.c +++ b/drivers/acpi/arm64/iort.c @@ -968,13 +968,15 @@ static int iort_pci_iommu_init(struct pci_dev *pdev, u16 alias, void *data) static void iort_named_component_init(struct device *dev, struct acpi_iort_node *node) { - struct property_entry props[2] = {}; + struct property_entry props[3] = {}; struct acpi_iort_named_component *nc; nc = (struct acpi_iort_named_component *)node->node_data; props[0] = PROPERTY_ENTRY_U32("pasid-num-bits", FIELD_GET(ACPI_IORT_NC_PASID_BITS, nc->node_flags)); + if (nc->node_flags & ACPI_IORT_NC_STALL_SUPPORTED) + props[1] = PROPERTY_ENTRY_BOOL("dma-can-stall"); if (device_add_properties(dev, props)) dev_warn(dev, "Could not add device properties\n");