Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3596019pxj; Tue, 11 May 2021 07:52:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPvlIBv/oM/Ews8YHhDKjRa4GCVZ88KpcWJCzw83oCK+ctkMCymlFW6mNvYwhymhaLvBWn X-Received: by 2002:a17:906:2c16:: with SMTP id e22mr31690705ejh.395.1620744757756; Tue, 11 May 2021 07:52:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620744757; cv=none; d=google.com; s=arc-20160816; b=a0inQNv+5mQ2MriQpf0GoFVLG60a3yUauep7hom+C23PxXYR7WhXHPHpXZ4rveDd76 pfrCSGn6khbjSqc7+ZY9n+137DkZxt8RRY/wR7Y7/EBed/8HRkR200xu5lBq+XoEv68g 3pdYCojMWwC3lC09RK2XRWR9OjRitM3xLcnJZZH26iweMIP4EB/rDdV/vUzOG2ia3rxC J+rXbnBRQGAY1nGvS6Q6fct0pOsyGdWkwee8gVu6NsGy48W+fzIwGwUoOZ9Z7gQLJlyf dGEkhIeLIlwQ6SkYxwly/IAFZzgCjJnFFl/FcRh4YLBcvQcaZIcGli9rvvW1mrVIeys6 rjIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=EnXg6Kh16FhklatDAvmNh/kvk7jA2VwWCKHJwBrPgEI=; b=JnA+BvU6M3lO/lDwhRUb4lue+6kN+v1ag6bzHdfA3k9e0xiK36pydxE6pwD/qfMTdB joSVveBewk5bpTZ93NRqQKShVwcBIxWZV20rD2go7Rwg1ZsZoDZ5/UKy8entl+OPI3O/ YxQbNoiRSeRm9o6et2rVC+6cI9usMitkHb6DLEBgb2C7FA/RxoE6MBB84m8XAox+jjM0 a78kyarZ587QNkQdEqtSetMKvRlIn1LPC7xMLs1GcZQ7hcNXwog3lxiAuNWxgoUudSSQ Ae5DwtotfEmUBPc9yZFok3BINtTwsXGv0a2WXQuTZj8MHHc9BY7OTh4Yt6okT3o6jvjx qKtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KjBr6w4S; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d15si15528355edu.375.2021.05.11.07.52.14; Tue, 11 May 2021 07:52:37 -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=@gmail.com header.s=20161025 header.b=KjBr6w4S; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231779AbhEKOt7 (ORCPT + 99 others); Tue, 11 May 2021 10:49:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231643AbhEKOt6 (ORCPT ); Tue, 11 May 2021 10:49:58 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCDB3C061574; Tue, 11 May 2021 07:48:50 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id j26so19538174edf.9; Tue, 11 May 2021 07:48:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EnXg6Kh16FhklatDAvmNh/kvk7jA2VwWCKHJwBrPgEI=; b=KjBr6w4Svz3OfDzOH34kdTnM4yU4Tuh/vR+P/XX7L+oBcwVUto0HT4Xh0YYpjQDVsh rSADgtm6apdD9p1FwJ1uGRmh5Fl6jJMaLi/xQFQLVLgMNP4W40AIq6n30DnixAzmbtgH gxmmd8vwtEx0A396fOrXJ+BNxuMnuTUg+hOy/skPgLnGmf3QmXMsYMY2wPiR1+DLDVPJ ZspkCtDVCxti+//8LJih7IWM+bM0KB7eHFLwlzI5EPmcdfeRZbZR74nwNv39/tNbQlFw /oVhPn6FfetXSgnne2e2ufpjWR00bZO9SQmWayOeyRN9pX8D8pfPHyyGrwUPV5Y2LoW4 4+4w== 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; bh=EnXg6Kh16FhklatDAvmNh/kvk7jA2VwWCKHJwBrPgEI=; b=fXh54plrdieZitG1DmL+GaAQo+KEkL/LFGaDdczzARYhyLLKVLX1o8piiVk4k3TLgK f3pgkUVyU4wDCubnfSy9gDqAp6/BwYFP8hj0m6HcORzpQuzKi167QhV6E1lFe2GvkCX1 lglwcQ/AKpxYtqrYbyl9Bl9DurL1gD2h8L94xAIk6bc1sD8HJiI2ksrJKD6WwMARyFUD HVYAt2PQBFcRLLCAmqDyR3zeDDGIL5IiGQBqpXT/3o587BNDYgl6C11Jssw8cInA6gzk A6Y+AUU7rx+Fw6590Scip1z0G/L5l77evET6RlMgF7uHboEpVJKH2uPir0DdxGSWJ43B Bf7w== X-Gm-Message-State: AOAM5335NXGxOc4dTYj6+dl/pwr8/+EzT9NOSDibFPnpbN+n2kMVuGad xMj77MehCvnBa0xef0L+FxqXDtHa3F8TOkqfQEU= X-Received: by 2002:a05:6402:310a:: with SMTP id dc10mr36794847edb.38.1620744529500; Tue, 11 May 2021 07:48:49 -0700 (PDT) MIME-Version: 1.0 References: <20210406013344.124255-1-aford173@gmail.com> <20210511024604.GE3425@dragon> In-Reply-To: From: Adam Ford Date: Tue, 11 May 2021 09:48:38 -0500 Message-ID: Subject: Re: [PATCH 1/2] arm64: dts: imx8mn: Add spba1 bus To: Robin Gong Cc: Shawn Guo , arm-soc , Rob Herring , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , dl-linux-imx , devicetree , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. adam > > > >