Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp2562248lkm; Mon, 20 Sep 2021 18:47:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxC8D5HgmfZZn1c8wfEXzXtyU0niTeQK9M6bQIrpLeFZGEgomM3DdKKzSgk7NhLkZCuEzRd X-Received: by 2002:a6b:4e0d:: with SMTP id c13mr14148830iob.143.1632188833666; Mon, 20 Sep 2021 18:47:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632188833; cv=none; d=google.com; s=arc-20160816; b=K9MRYd3yFzNPfnGFV/rEiQA/1Nanaf+FC76Lm6QmY7pZI3R5EU8Zj51L9Gwtgwwwod UTbr1W/v6sBgmgey4llSN5/t5AEV7xhEswHDhsEXTUhhHwA1C9ZeqGCY3+Dz6W1omKwm mPMQciF9q7ebcMn9vRuqbJxYQwLqEUh0U6RSxv5/ZWb7TXVC8kzyEirSPQ6wFmw/cdaY gKXocU8NdJublPiyI3rjPRKONWG9B4CMk1XM6lEvthOIqdZggLl7jWN7Wztup5nRVPX5 l16ApJdoIzzkLsH1wn71z7MGorkRFqmpJ4ImBVph8P5i/6imfUeTayJ6a9TTrzL6Syhz d7PQ== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=tpn1PRZfU4w3inUP4/lYYHttlQarkwqNbY/U9blLmE4=; b=fX0C7T+uEnZJfKIfUKVNUEfbjGZK2kjWsRnIZdUFRzUziD5rf2dIMlx59UnW6bI02D PIDm+/cXyCu234UuMao/fHQTBI/YnukmCU7KxLTisT13jPo+dLsudwa3mDAh6XmXbNtb TtE/Ear7OslnLKwNyrWltXAmYtibF9zuNeSzje5QFCPdDDWpWD00Gb2IXdg6ej7qsHZn 2sAdFZF4h8IntKpQr6YODitWcmoxsVP+oYB4Mpg3KFOZaHiNdgfJi50lqW8lkM1qtrf1 sgj2Q8kkAz5HqK9tTle1+0rbfF/S2t8u2kBxjOEgALh04BNd33w6wXjARfK4tiYl8oB9 JMzw== 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 j28si5711524ila.60.2021.09.20.18.47.02; Mon, 20 Sep 2021 18:47:13 -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 S1348983AbhITRVP (ORCPT + 99 others); Mon, 20 Sep 2021 13:21:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348426AbhITRTP (ORCPT ); Mon, 20 Sep 2021 13:19:15 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5A76C0604C5 for ; Mon, 20 Sep 2021 09:50:36 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mSMUt-00042Z-Ln; Mon, 20 Sep 2021 18:50:27 +0200 Message-ID: <12e1d4b64f3f7f705439cdf7b81f4ead75909948.camel@pengutronix.de> Subject: Re: [PATCH v4 5/9] ARM: imx_v6_v7_defconfig: build imx sdma driver as module From: Lucas Stach To: Marek Vasut , Marcel Ziswiler , "linux-arm-kernel@lists.infradead.org" Cc: "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "linux@armlinux.org.uk" , "linux-kernel@vger.kernel.org" , "andreas@kemnade.info" , "linux-imx@nxp.com" , "kernel@pengutronix.de" , "pzimmermann@dh-electronics.com" , "festevam@gmail.com" Date: Mon, 20 Sep 2021 18:50:23 +0200 In-Reply-To: References: <20210920144938.314588-1-marcel@ziswiler.com> <20210920144938.314588-6-marcel@ziswiler.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, dem 20.09.2021 um 18:14 +0200 schrieb Marek Vasut: > On 9/20/21 5:55 PM, Marcel Ziswiler wrote: > > On Mon, 2021-09-20 at 16:52 +0200, Marek Vasut wrote: > > > On 9/20/21 4:49 PM, Marcel Ziswiler wrote: > > > > From: Marcel Ziswiler > > > > > > > > Build CONFIG_IMX_SDMA as a module to avoid the following boot issue: > > > > > > > > [    5.214751] imx-sdma 20ec000.sdma: Direct firmware load for > > > >   imx/sdma/sdma-imx6q.bin failed with error -2 > > > > [    5.215762] imx-sdma 20ec000.sdma: Falling back to sysfs fallback > > > >   for: imx/sdma/sdma-imx6q.bin > > > > > > Isn't there some ROM-side SDMA firmware baked into the MX6 which is used > > > as a fallback if loading newer one from filesystem fails ? I suspect the > > > default ROM firmware might be buggy. > > > > I'm not so sure about this. At least it seems to fail if no external firmware can be loaded. > > See e.g. SDMA chapter in MX6SDLRM or similar, it does talk about 4k boot > ROM, which contains scripts and utilities later referenced by scripts in > RAM. It might be worth looking into that a bit further, but that seems > like a separate topic from this patch. > Yep, most of the systems we ship do work with the ROM firmware, which should be picked when firmware loading fails. The RAM firmware is useful in some cases like multichannel SAI or now to work around the SPI DMA issue on i.MX6. Regards, Lucas