Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5006660pxj; Wed, 12 May 2021 19:13:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnmlnVMcVGKIIseddmDRu0Ag52UIavdDPN+WXmbsC7+GRYj+7TakE2s1XZwCvuHcAw94SV X-Received: by 2002:aa7:cf07:: with SMTP id a7mr47150529edy.261.1620871984530; Wed, 12 May 2021 19:13:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620871984; cv=none; d=google.com; s=arc-20160816; b=EB7QGHJJdfGWCIVlYi7+qiNG1p4cfJ6GBYKDUJDfjzosEmeHg+0+CwoFRnqLP9wsQT I93UM7V0fa4Vr0xCVdktjCh8TkHSX5co7sRgD1DhZgV1p7+q3jRAOERF0SmcWnb+Zv33 rf6Vl3/NLfaZzQmXVDUk3TvbyNCt76IorCNn4H02gGjJpE7J5q6JGjFaOrAx2eoQ+cro xJYMDWkVDit0s34pJkN4GaV9U5HaZrQxP6wfxnEOkk8bWMsEhWcv1pvxQ8zb8DxZPLK/ GHWwxIgg8/gvkOLlCZBFkf5Sro8CPN0nfK7RPNXjb23v9mJv5IFfa0nWenEwumlR2Ccc Q/7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=SVwLEck/V7daSQM/aMr+JHThUTerGpNJYz63BS3t9LI=; b=UUbXPYN6HGh/WbVTGKzHw0QX9i6+Css1xPKAIffKJrxfzMY/Nv3YHTq24YMcjEqWin TIvptXJjpzuJopPaLuI56X+4gKQk5aseiUOefZfqrsWZfiXASQHURrnb/YW05tsIJLpI HFDQL5Zj+1s7rdx2skYMY6CE8TussZqScPENtRYxpp+feb7aEYPQqs8Hi7s43INBAKx3 7PcOl957LiPeTUAECM42I5ykGIv1ITDBadjzhCrVQNztc5Izh9FJaCU+VEXPF9w+IQPC OTzRPoAo+DTDQw+aS8G1UiPpzjhZ25M6y8z7sBNOOegB95JqGjachaj9bdmqNIb7+9Jb w/xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cra+afcn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g27si1585157ejb.616.2021.05.12.19.12.40; Wed, 12 May 2021 19:13:04 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cra+afcn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230210AbhEMCKP (ORCPT + 99 others); Wed, 12 May 2021 22:10:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:55888 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229630AbhEMCKO (ORCPT ); Wed, 12 May 2021 22:10:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 04F0660FE9; Thu, 13 May 2021 02:09:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620871745; bh=VGw1fMdv7a1LyI1pnnicV4IuFjxiNwdg/mYbWWDFhHA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Cra+afcn4f04+Ui4+XAyl1MzvES37KAqkJocA6GKzLJcNHurLa02CD7gEnj0JR0X6 v/o1/o3oukhhXGJIB0d4ggspmzvuoututtLhbjI2Y3g4OF3I42uw5LA0NDtL4AJcBb ECh1W5NDfGGu64DXkDsXrTjr7YUg+yGvkirWZK9MtNwcb1XtAOhX6LKQ9KNZ0GvQXf asMbA5yOQPeWUJZp2najeUon31au7gPkA/abtobbb7Nu1gKKTVjOpttt0OyOoGc5I8 XD1GXTizzHkxkRJtOa7/Mt7nlh3iQkAPlQeQU/puVMYF6+fCuogGehC0ENouoKj3hO VVLPaSw983b7w== Date: Thu, 13 May 2021 10:09:00 +0800 From: Shawn Guo To: Adam Ford Cc: Robin Gong , arm-soc , Rob Herring , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , dl-linux-imx , devicetree , Linux Kernel Mailing List Subject: Re: [PATCH 1/2] arm64: dts: imx8mn: Add spba1 bus Message-ID: <20210513020859.GI3425@dragon> References: <20210406013344.124255-1-aford173@gmail.com> <20210511024604.GE3425@dragon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 11, 2021 at 09:48:38AM -0500, Adam Ford wrote: > On Tue, May 11, 2021 at 7:20 AM Robin Gong wrote: > > > > On 2021/05/11 18:45 Adam Ford wrote: > > > > Also may I ask if you have a real use case for this bus node? > > > > > > The reference manual shows the SPBA bus tells the DMA controller which > > > peripherals are associated with it. Nearly all the i.MX boards use this. The > > > boards I support have Bluetooth devices connected to a UART running high > > > speeds, and if the DMA driver isn't loaded, I can see a performance change. > > Compare PIO with DMA on UART, but not w/o this 'spba bus node ' patch? > > > > > In fact, if the DMA firmware isn't loaded, I often get transfer errors. > > UART use SDMA ROM firmware instead of RAM firmware, so it should work > > even without sdma RAM firmware loaded. Still curious what really happen in > > your board without this patch. > > What I am seeing is that at times, the HCI UART loading before the DMA > firmware is loaded. > > [ 10.582037] Bluetooth: HCI UART driver ver 2.3 > [ 10.586867] Bluetooth: HCI UART protocol H4 registered > [ 10.593566] imx-sdma 30bd0000.dma-controller: sdma firmware not ready! > [ 10.594548] Bluetooth: HCI UART protocol Broadcom registered > [ 10.600108] imx-uart 30860000.serial: We cannot prepare for the RX slave dma! > > When I get the above message, the bluetooth chip I have throws > timeouts and does not function. > > [ 10.615090] imx-sdma 302c0000.dma-controller: loaded firmware 4.5 > > Once the firmware is loaded, I can unload the HCI Uart driver and > re-load Bluetooth works again. > > Based on that, I've been having my system delay the loading of the > Bluetooth modules until after the firmware is loaded, but this tells > me there is a relationship between the DMA and UART. Yeah, I can see how DMA firmware impacts your Bluetooth device, but do not follow how this spba node change make a difference here. Nevertheless, patches look good. Applied, thanks. Shawn