Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1551995rwb; Fri, 13 Jan 2023 14:03:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXtIDTa8wM1mipqLRlUsHC5xmCr0yV49HxvONHXQfFY9lfLxv+9UWXI4kSV1w5KAwqdvK31F X-Received: by 2002:a17:907:d389:b0:7c1:5a37:825 with SMTP id vh9-20020a170907d38900b007c15a370825mr88136567ejc.34.1673647406650; Fri, 13 Jan 2023 14:03:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673647406; cv=none; d=google.com; s=arc-20160816; b=tZgmYTfrvNljYxSqdLDaEC6FUmItLexyc+jCq2pvKXEBH9R60egAZLtiadsfbW3jb+ 3ks5XssrHA/0fAInnSdOpRPxOj5w/6stg6NDGie7wJvsVze/Wp3GKHpkEearBLIvDhrV KnJuWsJw12LNP2hlEluJxe4LxLqwSNta3SJaox5XVGf77lPSlnQxAqxYnykthMZQhieb QxzWgaO4BnKW585/ko3BEdZVW9ym1hdlfOTz4r6mnrzCSVQvWYz0rHc72aSrlPYPCzn4 oGr47TYcqkm1dEwZDcvC6aJF+Sf7VQ+K6d8plEM00FeEzpJZ2OBhkDgqgz1pAf/4xFtC 15iA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=6wh/LvHiAV+cBnCS2OWc1a/uyl4L/FHgVxOEFcPbsNs=; b=W+Kb63LvlReU+VBXyjMLk0ndB9p7SGAygu2ci/YVqHVMkH5QXAMsEIuC5vhy4/Fqq5 yyE/nqQFvSYICKba1pucaOIHGlprz4ZAY63j7l7cx/v1AY0NxfybwMQCr8SZATBgANWe z7BpIZEbGHkSb5Ti3+GBDBv5/6JA1Gacig6/0sE02iYQ69vH54yh9ai6SoTgXgeY+H0M CaVEngZpi3iJKvWYHz4ykfZjQFT9VP6PwkcAQdwHWg21HhGr/uzhnlW8TGXy0oQCNH7C XhtzF26Ya41AV6k0BpmtnQ9TfcMvOfkDewW2CKwmpxKjGfIoF+IQCyYFNbqpB+cHwaau W4/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=+QCUBDwN; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g14-20020a1709065d0e00b0086b5808d6b4si2716577ejt.717.2023.01.13.14.03.07; Fri, 13 Jan 2023 14:03:26 -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; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=+QCUBDwN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229870AbjAMVMM (ORCPT + 52 others); Fri, 13 Jan 2023 16:12:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229673AbjAMVMK (ORCPT ); Fri, 13 Jan 2023 16:12:10 -0500 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a01:238:4321:8900:456f:ecd6:43e:202c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 884244D4B3; Fri, 13 Jan 2023 13:12:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6wh/LvHiAV+cBnCS2OWc1a/uyl4L/FHgVxOEFcPbsNs=; b=+QCUBDwNzM+PirmCEw8yQTQJhi IEe2NVdTM+cA4w+1TeqBoy9kD7/3p7bi7e+11uMHQu/m7ns0cqUmz5VosWZ1f+T0EMoog0sh+/0KJ CFCD/QchLgm+UTUi7KbYFAVvXb6a2IY6/60/KByuXYz/qjJKj2cWq0wYCYsqUGAK2JuT7KfmYTht1 GfD1TOPpusSlgBSnlN2kw+qEzRivkyfVtBIO7MHRyyiJSVTdyvYBc4APt/iYrOZ3hMyHxL7ILB1v4 cwSXgPkkkhNEqc+LsYiiCS8OcE0viplmn7GTEeVCxKiFGxSTIWSr+YnPvu63A3DPWhJlATjwU+9cJ EZ9qAiiw==; Received: from p200300ccff089e001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff08:9e00:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1pGRLD-0005C3-4A; Fri, 13 Jan 2023 22:11:59 +0100 Received: from andi by aktux with local (Exim 4.94.2) (envelope-from ) id 1pGRLC-009iDU-JV; Fri, 13 Jan 2023 22:11:58 +0100 From: Andreas Kemnade To: bcousson@baylibre.com, tony@atomide.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, aford173@gmail.com, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "H. Nikolaus Schaller" , Andreas Kemnade Subject: [PATCH] ARM: dts: gta04: fix excess dma channel usage Date: Fri, 13 Jan 2023 22:11:51 +0100 Message-Id: <20230113211151.2314874-1-andreas@kemnade.info> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.0 (-) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 From: "H. Nikolaus Schaller" OMAP processors support 32 channels but there is no check or inspect this except booting a device and looking at dmesg reports of not available channels. Recently some more subsystems with DMA (aes1+2) were added filling the list of dma channels beyond the limit of 32 (even if other parameters indicate 96 or 128 channels). This leads to random subsystem failures i(e.g. mcbsp for audio) after boot or boot messages that DMA can not be initialized. Another symptom is that /sys/kernel/debug/dmaengine/summary has 32 entries and does not show all required channels. Fix by disabling unused (on the GTA04 hardware) mcspi1...4. Each SPI channel allocates 4 DMA channels rapidly filling the available ones. Disabling unused SPI modules on the OMAP3 SoC may also save some energy (has not been checked). Fixes: c312f066314e ("ARM: dts: omap3: Migrate AES from hwmods to sysc-omap2") Signed-off-by: H. Nikolaus Schaller [re-enabled aes2, improved commit subject line] Signed-off-by: Andreas Kemnade --- arch/arm/boot/dts/omap3-gta04.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index 87e0ab1bbe95..e0be0fb23f80 100644 --- a/arch/arm/boot/dts/omap3-gta04.dtsi +++ b/arch/arm/boot/dts/omap3-gta04.dtsi @@ -612,6 +612,22 @@ &i2c3 { clock-frequency = <100000>; }; +&mcspi1 { + status = "disabled"; +}; + +&mcspi2 { + status = "disabled"; +}; + +&mcspi3 { + status = "disabled"; +}; + +&mcspi4 { + status = "disabled"; +}; + &usb_otg_hs { interface-type = <0>; usb-phy = <&usb2_phy>; -- 2.30.2