From patchwork Thu Apr 1 15:47:18 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: 413628 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp766561jai; Thu, 1 Apr 2021 10:43:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYGnVGOP8uDK0tA6Wm+aR3r5VqgXtpo+WXmjOVqafHwmAN/fYQFTEr7fX7umCutCwyofot X-Received: by 2002:a05:6402:170f:: with SMTP id y15mr11198223edu.127.1617299019285; Thu, 01 Apr 2021 10:43:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617299019; cv=none; d=google.com; s=arc-20160816; b=hbAj070fym/fHAb8zIKhUyMAXRn4T07rJjR5pfwsVMy30+4Pl8+ev1b/uA81ZyGRXP y5SzzXIn1zhBZv8oLquWjMZotWW50PR2UIPUSoTBdtMgESV9A2mMrS/xLK8HoZt66U0s lybWC/5JeWHQPUUZ9K5RJHrpHuCa3DyxfWiI0eWGlsyJD5toO07Qo2FCWu6xwvNaFwYD NejNHYnQKN2Z2yI8tTRl/pgXo5CibQKLYR/S7COKTndVfxKkY6ubaYb9N6DOJHMyZuP6 t31Pbix95fI6pzj5bNRoxBYpSf2nWZ/2wz+KhTSx0ZFEEDgaOqPUGObB7TWvrlJReZgP Q7Eg== 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=Pua2Ae+rON0ZlDGkY5ERFS3L6AfCPNmqgc0wotIPcEI=; b=j+ic5Wia/zTjuuI3TJ+vgj+Zq/iktPK9HVCIJbV7H6zttL/NxtzNcQXz9WFoBFv/Qf 8gBapuxp9rcOd9/gduOWaAdjJ/XMfayai02+F2duuzN3tejzl9/+VDWtokoToo4Kc9bR g5W/7bLqHBLFGwITjMfuzwXaesFsBesDy7M02jkJAYTl2b/H72lSDujcbk/e5K55v1/O svYNz1pVZLBXbfb+CaTaBa1mPB8662kHv0bSJT28TkBWvZuS0+2B5lZHGd0CcMD+rIDV DzrUTZicVoi/tJPQw1zI4YAy/mdzl5QIyr0Cz5RRz6cH+z3v1xhqJQ8dNUkB8BDn3rh8 DrUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AQvPYJQL; 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 v24si4734993eja.84.2021.04.01.10.43.39; Thu, 01 Apr 2021 10:43:39 -0700 (PDT) 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=AQvPYJQL; 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 S234683AbhDARml (ORCPT + 6 others); Thu, 1 Apr 2021 13:42:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234398AbhDARhF (ORCPT ); Thu, 1 Apr 2021 13:37:05 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF826C02D562 for ; Thu, 1 Apr 2021 08:48:23 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id e18so2289113wrt.6 for ; Thu, 01 Apr 2021 08:48:23 -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=Pua2Ae+rON0ZlDGkY5ERFS3L6AfCPNmqgc0wotIPcEI=; b=AQvPYJQL0dmJB8IZi8mOx5ajxcUoc5TP5FrCan7PcbU1GTN0XGGjNban28AqG/S1eT OudspSuh2Y3yKLRQat1UH9wPkhK7kK1V4/Nse8fGfuXTANeCQz/6GNyEkkuQ892jAlBN uLktlNmlJ+cpmtV+v1kZNPG9+f9Je/j0w4TkbAnbKuaTJsEudCj75aijL+6mht/qNUdC N3MdPwLKorkokFBX8FVIOAgztR5GGcUSmgB+MNc9zvwZOzl3Fl/HJ+GVNCrbohS5mLLd zQV/qSheXVl+YDvYbKfJ9D0XLZOoNDYB9n3zFvZmrgJ75fH8m/Xm/ZvqRNEWYW1jeHdB Vz1Q== 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=Pua2Ae+rON0ZlDGkY5ERFS3L6AfCPNmqgc0wotIPcEI=; b=dJKGYhklYQmcgbm1sS2CalPDy9HCwk3CUOsp2ilgb/DQE8LoT5pWF0M6qdJvdvX1qy ijlpAp+XHJq97v3m4Wn7HW8H21Ve3v/LHDfuxuHfDJO712i58LMOxxEuI3M16rHxX/Ol N/Zb6MS512h7Z0sDg5n8cR/6mY1yc6PAVVgpANy3KEcbnz1bsTS3CWUAWqyiRoaW24+Z ikEYDZPBzV/NnYCZaG6OlA8jFc4GvTKy2eVVtut9zj2He9O17uqGhJkpg9SXS4syzycF RFq59ytY5FrWq2vPgMzK2PQvESoQyOShsS3k0zZ9niznN4zSFuEcmr6ohfetkWVyWULR AEsg== X-Gm-Message-State: AOAM531rHhJs2R1qNUmJ750K/j59gk4dS5fPjnO28e2IJ3nxJkNClLwu zFTrS/rNvurfDlFgzcWmDPBozA== X-Received: by 2002:adf:d1c5:: with SMTP id b5mr10474358wrd.126.1617292102724; Thu, 01 Apr 2021 08:48:22 -0700 (PDT) Received: from localhost.localdomain ([2001:1715:4e26:a7e0:116c:c27a:3e7f:5eaf]) by smtp.gmail.com with ESMTPSA id y8sm8722505wmi.46.2021.04.01.08.48.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Apr 2021 08:48:22 -0700 (PDT) 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, jacob.jun.pan@linux.intel.com, kevin.tian@intel.com, vdumpa@nvidia.com, zhangfei.gao@linaro.org, shameerali.kolothum.thodi@huawei.com, vivek.gautam@arm.com, zhukeqian1@huawei.com, wangzhou1@hisilicon.com, Jean-Philippe Brucker Subject: [PATCH v14 09/10] ACPI/IORT: Enable stall support for platform devices Date: Thu, 1 Apr 2021 17:47:18 +0200 Message-Id: <20210401154718.307519-10-jean-philippe@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210401154718.307519-1-jean-philippe@linaro.org> References: <20210401154718.307519-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. Acked-by: Jonathan Cameron Signed-off-by: Jean-Philippe Brucker --- drivers/acpi/arm64/iort.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.31.1 Acked-by: Hanjun Guo 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");