Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2084207ybl; Thu, 19 Dec 2019 07:51:29 -0800 (PST) X-Google-Smtp-Source: APXvYqxm+J4GLl2SaLz7tT4YTOTxXtfvmZpHG6p+kSTPJNh4OO/BHeAo2jXP3/Vxbl6M0j6W9CZF X-Received: by 2002:a9d:7f11:: with SMTP id j17mr9877577otq.281.1576770689175; Thu, 19 Dec 2019 07:51:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576770689; cv=none; d=google.com; s=arc-20160816; b=TE5tegvUOliNAYYzD5XNSdM2HJPWo7XMBARcBrF4oHbwZG4zqZaeV/EPdRG2PRX+5D +5Eat0a0y1AfKQlCpxWvpv0w2+MKWIqGxvT2xPsuPuz675HRZTXTcMA1z6oHBIqQjify bbP37ETAlBKO7Kkg1xszVlwqdaPIvpYJz577bQ0Sd71EvafAJfem6cdzoY7E7/Ky8neV H/oJr9putj0pE13tLB9koKZg5hdmtzJgRzJwhHFcEXUREC+8Y1e1PDVBN7clcv7I6EX2 WUYEUEjYjOj8clIcpgTqoQR2OUbCvAzI824TeIipdb7BdUS54gOZx3uBK2n0ETlcCrXh Z+kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=2KAAPyigRNQuPYzd9cBq73IsJ4HwMkBiKGcr7h5AELA=; b=QSFzAnqwMSr3WHseaZ/GnUGv2+Q0lkyHNBtX6q/KFZLsuobLvzMvjNLsCzbjljPwo5 QWLtUqdZaDuaQ2QsWQQgoGIgPGC6hkcBJiPx7lthPN9Bdu1Nc4xZwVTv/gfCFdRt1YTS txKeoyaZzbhsivUuDEp3GmHe844UUt67kNPDRDP8jHha4PDxwGkb5MTeWkofotbOtgfZ Bs67p8fozz5MtuDdcaLfx46VX9MJJjj+gHcWdq2Nnj4zEpweIb6U4jCj1nt2Ip14TK6K EZtzGs9aWU1mAD5LnHEVIMgy3Zl0tBSWsRH64kiOMCNEH1ridTUVI6JSwDNAma+PM7FZ LXkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si3432248otq.298.2019.12.19.07.51.09; Thu, 19 Dec 2019 07:51:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726869AbfLSPtF (ORCPT + 99 others); Thu, 19 Dec 2019 10:49:05 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:60084 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726789AbfLSPtE (ORCPT ); Thu, 19 Dec 2019 10:49:04 -0500 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xBJFljJv132736; Thu, 19 Dec 2019 10:48:47 -0500 Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0b-001b2d01.pphosted.com with ESMTP id 2x0a9npec1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Dec 2019 10:48:46 -0500 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id xBJFlulW009200; Thu, 19 Dec 2019 15:48:46 GMT Received: from b03cxnp08026.gho.boulder.ibm.com (b03cxnp08026.gho.boulder.ibm.com [9.17.130.18]) by ppma04dal.us.ibm.com with ESMTP id 2wvqc7be7g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Dec 2019 15:48:46 +0000 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp08026.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id xBJFmirc55050534 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 19 Dec 2019 15:48:44 GMT Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 87DF8BE053; Thu, 19 Dec 2019 15:48:44 +0000 (GMT) Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1860DBE04F; Thu, 19 Dec 2019 15:48:43 +0000 (GMT) Received: from [9.211.143.195] (unknown [9.211.143.195]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTP; Thu, 19 Dec 2019 15:48:43 +0000 (GMT) Subject: Re: [PATCH v3 05/12] dt-bindings: soc: Add Aspeed XDMA Engine To: Andrew Jeffery , linux-aspeed@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, mark.rutland@arm.com, Jason Cooper , Marc Zyngier , Rob Herring , tglx@linutronix.de, Joel Stanley References: <1576681778-18737-1-git-send-email-eajames@linux.ibm.com> <1576681778-18737-6-git-send-email-eajames@linux.ibm.com> <73cbffea-89f1-4212-99af-10c32968cf15@www.fastmail.com> From: Eddie James Message-ID: <45cabf88-063d-aea1-6c2b-fa8cc0d8cbd3@linux.ibm.com> Date: Thu, 19 Dec 2019 09:48:43 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: <73cbffea-89f1-4212-99af-10c32968cf15@www.fastmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-12-19_04:2019-12-17,2019-12-19 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 phishscore=0 spamscore=0 suspectscore=0 bulkscore=0 impostorscore=0 priorityscore=1501 mlxscore=0 clxscore=1015 mlxlogscore=999 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1912190131 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/18/19 5:12 PM, Andrew Jeffery wrote: > > On Thu, 19 Dec 2019, at 01:39, Eddie James wrote: >> Document the bindings for the Aspeed AST25XX and AST26XX XDMA engine. >> >> Signed-off-by: Eddie James >> Reviewed-by: Rob Herring >> --- >> Changes since v2: >> - Remove 'sdmc', rename 'vga-mem' to 'memory' >> >> .../devicetree/bindings/soc/aspeed/xdma.txt | 40 +++++++++++++++++++ >> MAINTAINERS | 6 +++ >> 2 files changed, 46 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/soc/aspeed/xdma.txt >> >> diff --git a/Documentation/devicetree/bindings/soc/aspeed/xdma.txt >> b/Documentation/devicetree/bindings/soc/aspeed/xdma.txt >> new file mode 100644 >> index 000000000000..58253ea1587b >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/soc/aspeed/xdma.txt >> @@ -0,0 +1,40 @@ >> +Aspeed AST25XX and AST26XX XDMA Engine >> + >> +The XDMA Engine embedded in the AST2500 and AST2600 SOCs can perform >> automatic >> +DMA operations over PCI between the SOC (acting as a BMC) and a host >> processor. >> + >> +Required properties: >> + - compatible : must be "aspeed,ast2500-xdma" or >> + "aspeed,ast2600-xdma" >> + - reg : contains the address and size of the memory region >> + associated with the XDMA engine registers >> + - clocks : clock specifier for the clock associated with the >> + XDMA engine >> + - resets : reset specifier for the syscon reset associated with >> + the XDMA engine >> + - interrupts-extended : two interrupt cells; the first specifies the >> global >> + interrupt for the XDMA engine and the second >> + specifies the PCI-E reset or PERST interrupt. >> + - scu : a phandle to the syscon node for the system control >> + unit of the SOC > I think this should be aspeed,scu. Sure. > >> + - memory : contains the address and size of the memory area to >> + be used by the XDMA engine for DMA operations > Hmm, I was thinking more like a phandle to a reserved memory region, > like we have in the aspeed-lpc-ctrl binding. I think I mentioned before, but that doesn't work with the VGA memory. Linux can't reserve it. I haven't quite understood what happens in the memory system but I've tried it and it didn't work. > >> + >> +Optional properties: >> + - pcie-device : should be either "bmc" or "vga", corresponding to >> + which device should be used by the XDMA engine for >> + DMA operations. If this property is not set, the XDMA >> + engine will use the BMC PCI-E device. >> + >> +Example: >> + >> + xdma@1e6e7000 { >> + compatible = "aspeed,ast2500-xdma"; >> + reg = <0x1e6e7000 0x100>; >> + clocks = <&syscon ASPEED_CLK_GATE_BCLK>; >> + resets = <&syscon ASPEED_RESET_XDMA>; >> + interrupts-extended = <&vic 6>, <&scu_ic >> ASPEED_AST2500_SCU_IC_PCIE_RESET_LO_TO_HI>; >> + scu = <&syscon>; >> + pcie-device = "bmc"; >> + memory = <0x9f000000 0x01000000>; >> + }; >> diff --git a/MAINTAINERS b/MAINTAINERS >> index ac9c120d192b..8a14d4268bdc 100644 >> --- a/MAINTAINERS >> +++ b/MAINTAINERS >> @@ -2708,6 +2708,12 @@ S: Maintained >> F: drivers/media/platform/aspeed-video.c >> F: Documentation/devicetree/bindings/media/aspeed-video.txt >> >> +ASPEED XDMA ENGINE DRIVER >> +M: Eddie James >> +L: linux-aspeed@lists.ozlabs.org (moderated for non-subscribers) >> +S: Maintained >> +F: Documentation/devicetree/bindings/soc/aspeed/xdma.txt >> + >> ASUS NOTEBOOKS AND EEEPC ACPI/WMI EXTRAS DRIVERS >> M: Corentin Chary >> L: acpi4asus-user@lists.sourceforge.net >> -- >> 2.24.0 >> >>