From patchwork Fri Jan 8 14:52:17 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: 358986 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp397260ejs; Fri, 8 Jan 2021 07:05:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxsG0u/5Xs1IuWd6eYisR7RytjpUljR3YqC5j9BTAXjL7Mx1dY80vP25+b5l6hhRZhrBYwY X-Received: by 2002:a05:6402:202e:: with SMTP id ay14mr5762372edb.102.1610118240554; Fri, 08 Jan 2021 07:04:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610118240; cv=none; d=google.com; s=arc-20160816; b=CJzr+/u2gL6w3WHFQRLFwOl/4ZkvR3flaijgudH07uGbZHe85N+mQco3Q8M2H8kstz oNd5emwNQ1xeJEkbSEM5nEzekB1zBO4ev03hHH2Jed4z/lco5PuPJrB98Hcysr/o+Rvh YL8UnVbyC5mD71gllfwi2BowKaqlWVpdP6prCPtlZ77NSK/AZRz1q6oknkGsVWoEDk/n cKXUq+ppe6zr3Ya7otw7BiePPlQiq4yvvSStfeTwGsCIr8R6vFHk6BNWyThH6/rnUUMO RKZPpDXIeTJZR92ZTd9awnzoUc7rjCuCcOw45ahRQ9wePRxhFxf1x1FYMvW5NOs75qGz N4iw== 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=M6xu+NZsefpfo8WqjQL32PlY8NL0QuBVkGqSt5snD+A=; b=RbbLHOEMImbv0t/1AcUJT8tslyJO2SKtImmE0C/iDNOtJLD8WZszD+Fp47ex+doi08 V8VmblDm7I/UGvv9gYB0bfRCkB7CGs1sc7rnErUHIjtMBXOP3nf2LZWYrD/UfTX4719d R3M3HTIYgkOHJ9ftcDmRM1dJ7gRm/qES9Gcx/hZcp+0jAdL/4vMMFmrKqYMlqomh7Mq6 MoxdtUryYCHsrzIVP96yvqOXjJR91xGIpfFG03UhsVoADnIWhyuhOdMXjG5HF7jz/sOE Fq4A08rm4cW0dqPWDq33GlnPslpLwCogHNag7XIWSp8bisgQt/RbZksbeohA3jWCHrw6 ZVxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kxuUCMV1; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 cy28si3658900edb.535.2021.01.08.07.04.00; Fri, 08 Jan 2021 07:04:00 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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=kxuUCMV1; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1726735AbhAHPDw (ORCPT + 6 others); Fri, 8 Jan 2021 10:03:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726935AbhAHPDv (ORCPT ); Fri, 8 Jan 2021 10:03:51 -0500 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E367BC0612A9 for ; Fri, 8 Jan 2021 07:02:41 -0800 (PST) Received: by mail-wr1-x42e.google.com with SMTP id q18so9348857wrn.1 for ; Fri, 08 Jan 2021 07:02:41 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=M6xu+NZsefpfo8WqjQL32PlY8NL0QuBVkGqSt5snD+A=; b=kxuUCMV1WAqpwwvoibNUsWYrlPgddFb1B3XDtYKriSKJqhZ7YxBdz7idYeFiPEusdj oSxwzMXDVtdAhRbiUIPtiWxDXm3EOdY0B1oZ4RFYK1eN63WYymsf6s1QMgxe1Fp+XJLm 7MYSyOGWzgv+FVOhkD8wVISPR0VlGxk9zmYIDuW8ATAmQ8SghsBmSoZJE31MhRs/IXU7 jcMsXHSkhBXTuv9sJLCqbDDqfbxZnhaRfmDInXFrql1M/HVbnCpK9DeM9XJWQDFfFBiX CVAh4zvNMBGGzxZ42Xa9GLW4zEO7yuaspaFGL8sBAQLWZMjutowtPglRsb0G7rH8euGW 4JKQ== 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=M6xu+NZsefpfo8WqjQL32PlY8NL0QuBVkGqSt5snD+A=; b=lER3TcNY6nbqW91napMgiPEJAShCxyrBIXFLyvXg6LBbM3XzIpDudRT5JSqU3z5fqE F7l0mZ4JjjIy7xPmFLhL42BI3JOK+vZVcxHcjwqTNkufzdbbakYFXLoQupSaXpy3egXl i6eOHEpPN7QaaZajmHkjaandjckZjBEuKMxlHWO6AfWdfQ2GokgYJ3QKDhhBdGpBpTf7 9NVtBCP4pRkDKkZ+GzgBAvB6R2LNK9EpBO0G1RFjfCsal2cLyxIet2LQABd0SHKmInu7 Un7xu0yZ8DGz7R53zgZLF26u8YZw2/i2FMmIAtKjnGVWlQpiJngOty0KMLyPaeMG/awN Eveg== X-Gm-Message-State: AOAM531076Vu53KwLn8YwgU8+rED5GhCA9ITbDbRS4reNqHak5E7Sjdz JhhKjv42UnvR0hqoCidIVbjBgA== X-Received: by 2002:a05:6000:c9:: with SMTP id q9mr3946567wrx.259.1610118160590; Fri, 08 Jan 2021 07:02:40 -0800 (PST) Received: from localhost.localdomain ([2001:1715:4e26:a7e0:116c:c27a:3e7f:5eaf]) by smtp.gmail.com with ESMTPSA id s13sm14258464wra.53.2021.01.08.07.02.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 07:02:39 -0800 (PST) From: Jean-Philippe Brucker To: joro@8bytes.org, will@kernel.org Cc: lorenzo.pieralisi@arm.com, robh+dt@kernel.org, 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, iommu@lists.linux-foundation.org, devicetree@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-accelerators@lists.ozlabs.org, baolu.lu@linux.intel.com, vdumpa@nvidia.com, zhangfei.gao@linaro.org, shameerali.kolothum.thodi@huawei.com, vivek.gautam@arm.com, Jean-Philippe Brucker Subject: [PATCH v9 09/10] ACPI/IORT: Enable stall support for platform devices Date: Fri, 8 Jan 2021 15:52:17 +0100 Message-Id: <20210108145217.2254447-10-jean-philippe@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210108145217.2254447-1-jean-philippe@linaro.org> References: <20210108145217.2254447-1-jean-philippe@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Copy the "Stall supported" bit, that tells whether a named component supports stall, into the dma-can-stall device property. Signed-off-by: Jean-Philippe Brucker --- v9: dropped fwspec member in favor of device properties --- drivers/acpi/arm64/iort.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.29.2 diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c index c9a8bbb74b09..42820d7eb869 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");