Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4196637pxu; Tue, 20 Oct 2020 10:28:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoQEWkyFyECDvHsNypLzSg2j84A88NoeRC5qnudgnL2dt5NxYsJ2G+LDWdwmpn/hXpd2wz X-Received: by 2002:a17:906:f29a:: with SMTP id gu26mr4042581ejb.363.1603214901909; Tue, 20 Oct 2020 10:28:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603214901; cv=none; d=google.com; s=arc-20160816; b=r2dJokOjvZF/i8j45rBCzsVFQsVgluI2A/FK/Pnr8o2uUfWdX7ecdfMPVPmN1gJFOb hMc4vR4I9xccNhVwy4Uzc9hB7eqTkTQlR+uZjmO7rJVpgcrmtyRin0mv/UkG/GEehqD3 1ZUXyxj+Yfu2U7q5aOhVkRoLcUzo7oDNScu9Itep20cM+4UcQcfUQK1KiEUfdCskctc9 L4Lt0MyMLWDn1gGbby1w8CwG/Idh9C+WOyYbDIi3daVk09ow//r1/jG8KdvC1e55YUG7 NxQ+DVOgnpwGpKLgHlnXoxXEDs1gifhwErZ03kv4tXOGDw5bPKqlr9NfS7N3/zeDQE7t s0ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=ZCaJ2DgqdXz+kVewHPeylrq+TtQS9CdBoW7NSxcgYJc=; b=ky20/ticFX5E1WteDhDEfuAEEWRRJKjC2v5BiLOlITTaFz0CbWTqg/uijyYdto96oc eUdk1W3FSQE2sOpn+q15F2XkKS85F53JyYyPTs0FNIzvVLsCjGXXf6xmTOT/aiEYNvGJ +yzElh913Ql0p76JwH81wymioydSR6aWXSFodn2yQMHqS/n5kAsyTvaDeEA193Q0+OQY K91rmEU3EC18Gw23FxLScpdy90/eYbXejc6Gg8JLAC2Agtkj0NFEgPd3v1Fp0zjC2qbK 312DQE/EG8Lp9MHoaSqY8yOq8IUjK4ar7CjRnxTEvDvXet7PiKz7eb2+x9vzM3qySBfa 9HfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m6si1584530edq.104.2020.10.20.10.28.00; Tue, 20 Oct 2020 10:28:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391326AbgJTDwt convert rfc822-to-8bit (ORCPT + 99 others); Mon, 19 Oct 2020 23:52:49 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:40042 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391321AbgJTDwt (ORCPT ); Mon, 19 Oct 2020 23:52:49 -0400 Received: by mail-lf1-f68.google.com with SMTP id a9so321401lfc.7; Mon, 19 Oct 2020 20:52:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=QSKcWCkaOciBpr52CFiHddOWbs/SRgpSc2aqm5gms6Y=; b=poYJzxodG2eX4Awb2Gph+GfF8idgxItMAw8PHRI7jeuUOIj3i+N1vrzTB9mWv4c385 zjfyb3YJUrkadtE2pukTGe/1sHUqqmLYLRF9HVqGSPAnvEQU39d1Hll28Sg5HBwFvVjX 82aSkZXBmykksFyvZOQ5XAqDRG0PfP+6Iy/E1NtlzXmS35FrPPQuZBCHTzGOOTTyH7An rQwq/k+lFqiiNYHwePXQKcTaXcuKxYF0pBpgPmJWSa6impu4bxXjPc1dL4heF8JboXcy 0z4YYYB1CH5Q1wltVSm+hInJsKY9tuHUde3I8EPw8+6ekGvxCJQlKH1P4VsFxJZIBR8F M+Ag== X-Gm-Message-State: AOAM531Ssj5LCNpz8NIMRVuzX/YAMSsqsZh4K0eZ0EDmANsqcb4Ski2z +NGtrJDy69s/xo2Zh0R/p4qBpCkMXOKB7A== X-Received: by 2002:a19:838e:: with SMTP id f136mr240994lfd.16.1603165966339; Mon, 19 Oct 2020 20:52:46 -0700 (PDT) Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com. [209.85.167.46]) by smtp.gmail.com with ESMTPSA id r80sm83454lff.284.2020.10.19.20.52.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Oct 2020 20:52:46 -0700 (PDT) Received: by mail-lf1-f46.google.com with SMTP id d24so320342lfa.8; Mon, 19 Oct 2020 20:52:45 -0700 (PDT) X-Received: by 2002:a19:c88c:: with SMTP id y134mr230506lff.283.1603165965810; Mon, 19 Oct 2020 20:52:45 -0700 (PDT) MIME-Version: 1.0 References: <20201015154740.20825-1-al.kochet@gmail.com> <20201019082129.myxpxla5xwoqwldo@gilmour.lan> <4EC91DD5-5611-4B48-B6FC-00690B400584@gmail.com> In-Reply-To: <4EC91DD5-5611-4B48-B6FC-00690B400584@gmail.com> From: Chen-Yu Tsai Date: Tue, 20 Oct 2020 11:52:34 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] spi: spi-sun6i: implement DMA-based transfer mode To: Alexander Kochetkov Cc: Maxime Ripard , Mark Brown , linux-spi@vger.kernel.org, linux-arm-kernel , linux-kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 20, 2020 at 1:43 AM Alexander Kochetkov wrote: > > > > > 19 окт. 2020 г., в 11:21, Maxime Ripard написал(а): > > > > Hi! > > > > On Thu, Oct 15, 2020 at 06:47:40PM +0300, Alexander Kochetkov wrote: > >> DMA-based transfer will be enabled if data length is larger than FIFO size > >> (64 bytes for A64). This greatly reduce number of interrupts for > >> transferring data. > >> > >> For smaller data size PIO mode will be used. In PIO mode whole buffer will > >> be loaded into FIFO. > >> > >> If driver failed to request DMA channels then it fallback for PIO mode. > >> > >> Tested on SOPINE (https://www.pine64.org/sopine/) > >> > >> Signed-off-by: Alexander Kochetkov > > > > Thanks for working on this, it's been a bit overdue > > Hi, Maxime! > > We did custom A64 based computation module for our product. > Do you mean that A64 is obsolete or EOL product? > If so, can you recommend active replacement for A64 from Allwinner same price? I believe what Maxime meant was that DMA transfer for SPI is a long sought-after feature, but no one had finished it. ChenYu