Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99C1BC636D4 for ; Tue, 14 Feb 2023 02:04:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231156AbjBNCED (ORCPT ); Mon, 13 Feb 2023 21:04:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjBNCEB (ORCPT ); Mon, 13 Feb 2023 21:04:01 -0500 Received: from out-206.mta1.migadu.com (out-206.mta1.migadu.com [IPv6:2001:41d0:203:375::ce]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D11DCA3A for ; Mon, 13 Feb 2023 18:03:58 -0800 (PST) Date: Tue, 14 Feb 2023 10:03:53 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1676340237; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eD7UjkPGZvdFIcp1h9xe+/jJqfTGRkEXEHj4xh5B/r4=; b=oFd+iidyFq9wmSbyh9uOjyaVtbw4tG9Lt0OYSJHNpv4O01rkAVZrOK00irv/gX80nGu51L U36la+0U882VlvbgGDi09/yTGRWI3jejLg4H0ETW0DPF4pUqxMxa3jfNMEtGMCY0ZG1uVu j80PyfLLQDNWxpJDGFFFUCu+pg0gQbU= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Cai Huoqing To: Bjorn Helgaas Cc: Sergey.Semin@baikalelectronics.ru, Gustavo Pimentel , Vinod Koul , Jingoo Han , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v3 3/4] dmaengine: dw-edma: Add support for native HDMA Message-ID: References: <20230213132411.65524-4-cai.huoqing@linux.dev> <20230213205927.GA2930625@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230213205927.GA2930625@bhelgaas> X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13 2月 23 14:59:27, Bjorn Helgaas wrote: > On Mon, Feb 13, 2023 at 09:24:08PM +0800, Cai Huoqing wrote: > > From: Cai huoqing > > > > Add support for HDMA NATIVE, as long the IP design has set > > the compatible register map parameter-HDMA_NATIVE, > > which allows compatibility for native HDMA register configuration. > > Rewrap to fill 75 columns. Also applies below. > > > The HDMA Hyper-DMA IP is an enhancement of the eDMA embedded-DMA IP. > > And the native HDMA registers are different from eDMA, > > so this patch add support for HDMA NATIVE mode. > > > > HDMA write and read channels operate independently to maximize > > the performance of the HDMA read and write data transfer over > > the link When you configure the HDMA with multiple read channels, > > then it uses a round robin (RR) arbitration scheme to select > > the next read channel to be serviced. > > The same applies when you have multiple write channels. > > Wrap into a single paragraph or add a blank line if you want the last > sentence to be a new paragraph. > > > The native HDMA driver also supports a maximum of 16 independent > > channels (8 write + 8 read), which can run simultaneously. > > Both SAR (Source Address Register) and DAR (Destination Address Register) > > are alignmented to byte. > > s/alignmented/aligned/ > > > + u32 watermark_en; /* 0x0030 */ > > + u32 control1; /* 0x0034 */ > > + u32 func_num; /* 0x0038 */ > > + u32 qos; /* 0x003c */ > > + u32 reserved; /* 0x0040..0x007c */ > > + u32 ch_stat; /* 0x0080 */ > > Weird indentation of control1, func_num, etc. Is that meaningful or a > mistake? > > > + union { > > + u64 reg; /* 0x00a0..0x00a4 */ > > + struct { > > + u32 lsb; /* 0x00a0 */ > > + u32 msb; /* 0x00a4 */ > > + }; > > + } msi_abort; > > + u32 msi_msgdata; /* 0x00a8 */ > > Again here. Will fix these in next version Cai > > Bjorn