Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9222388rwl; Wed, 11 Jan 2023 03:08:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXvHqOzSc6AZGjolbCg4PstcJhtTzcVhY3yevOmM1OZTmA8rFGsNLTjS9QnliXb/AoNnK3nj X-Received: by 2002:a17:903:189:b0:189:ba1f:b178 with SMTP id z9-20020a170903018900b00189ba1fb178mr115656168plg.9.1673435297723; Wed, 11 Jan 2023 03:08:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673435297; cv=none; d=google.com; s=arc-20160816; b=uqerJXsjdOWHJRbyvaRGY5HDxc4QaRBe02SAud6UshILnMIPY3g4sk3HLxM7Ghs58V CmPWe3852WlUU7WWXUwPJSYfzetWpkon1UNAmslJc81acbbGDfqceGb3+5lxZFi/DjPX RKTZZdKjQVvj2VjsL/jQ0IXFDEPRPEHcT+h3W6Lp7/nU3SW4gVvEOXo6Ta1m/kxFNciB ZZK8e0t5fQVkOR/0IAmguBcHTOy19KcHF0vx6J9WU7wyd3WufaqVpkfvB6XuO6rjBsjI Oij5ared/R831nDt//odSYMZcFD701V+L1BJr00IVQYQwuI+30Y6RJwdEnCd4Agj/Cg2 +zMQ== 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; bh=5vHozu7GT7v8CkxvowdBhWVFhPt3EHQOTa6Nz+vmopU=; b=gIRRvhxwYqJaJrzvVvitH6VEI/cLgzM2+6/HBzAnm8Xmpci/Ni0MpQqYlTWgR65Qwa SNNfCHPVH0hBLMpW3WvpDnufdWMav4GtdAQgWVq2FFau8sDICsLhPe05+EhXh8gxcbJf XOjJseoFldjcYiR5sIWygDtHGDWFFwWGlhjWI+IhkyPgwK8hWHD+J5WJlAfxohURHQkF C5xGFabRoiGxH9heE7Nn/SfUtcRCmaqoqNtnpe4zlIhe1zqbVQORfU24bu4XF/5+zzUH 2gQx4+ZTIaC9tRr0jgiLENCvYsow5IqFlGzuYD4Okr7M+/sNGu9L+1cPg3WaCVLofZ/p XbwQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w9-20020a1709027b8900b00192721d4f1fsi12758619pll.494.2023.01.11.03.08.11; Wed, 11 Jan 2023 03:08:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232606AbjAKKlh (ORCPT + 53 others); Wed, 11 Jan 2023 05:41:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232662AbjAKKlf (ORCPT ); Wed, 11 Jan 2023 05:41:35 -0500 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DC6DC0D; Wed, 11 Jan 2023 02:41:33 -0800 (PST) Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pFYXv-0004Rf-N7; Wed, 11 Jan 2023 11:41:27 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: wens@kernel.org, Peter Geis Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: dts: rockchip: rk356x: Add dma-names to UART device nodes Date: Wed, 11 Jan 2023 11:41:27 +0100 Message-ID: <18284546.sWSEgdgrri@diego> In-Reply-To: References: <20221106161443.4104-1-wens@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SPF_HELO_TEMPERROR autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, 7. November 2022, 02:50:43 CET schrieb Peter Geis: > On Sun, Nov 6, 2022 at 8:28 PM Chen-Yu Tsai wrote: > > > > On Mon, Nov 7, 2022 at 8:52 AM Peter Geis wrote: > > > > > > On Sun, Nov 6, 2022 at 11:15 AM Chen-Yu Tsai wrote: > > > > > > > > From: Chen-Yu Tsai > > > > > > > > At least one implementation, Linux, requires "dma-names" properties > > > > be used together with "dmas" to describe DMA resources. These are > > > > currently missing, causing DMA to not be used for UARTs. > > > > > > > > Add "dma-names" to the UART device nodes. > > > > > > > > Fixes: a3adc0b9071d ("arm64: dts: rockchip: add core dtsi for RK3568 SoC") > > > > Signed-off-by: Chen-Yu Tsai > > > > > > Enabling dma globally can cause some interesting issues, have you > > > tested this fully? > > > > It seems to work OK with the Bluetooth controller, though I'm not running > > extensive transfers over it. Scanning both traditional and LE works, and > > does exercise the DMA controller. > > > > If your worried about the DMA controller running out of channels and > > impacting other peripherals, the DMA controller for the UARTs is only > > shared with other UARTs, SPI, and PWM (which the kernel doesn't support > > DMAing to). The UART and SPI drivers can fall back to PIO if DMA isn't > > available. > > Nah, enabling it for bluetooth is fine because you have flow control. > My issues have been on channels without flow control. Without DMA it > simply drops messages or the channel hangs until you close and reopen > it. With DMA, when an overflow locks up the channel it is usually > unavailable until the board is rebooted. > > It's the main reason I've stopped daisy chaining boards to each other, > when the board powers off the pinmux pulls go crazy just long enough > to lock up the other end. It sometimes happens with reboots and large > data bursts as well. > > I'd only enable them on bluetooth channels for the time being because of this. I guess I'll agree with Peter here. So enabling uart dmas should likely happen on a board-level for bluetooth connections.