Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2538050rwl; Mon, 27 Mar 2023 01:23:25 -0700 (PDT) X-Google-Smtp-Source: AK7set/cKGv8touNjcdIZzAgliIT+hCKKuHXfR9/jqT0aOeAWOr8vAi8L6GZ39767OIo3Z7S/oNG X-Received: by 2002:a05:6402:22a7:b0:4af:6e08:319 with SMTP id cx7-20020a05640222a700b004af6e080319mr17629724edb.15.1679905405453; Mon, 27 Mar 2023 01:23:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679905405; cv=none; d=google.com; s=arc-20160816; b=yV1M/vWdNbHBe1YcOX186ipfKJa/3DU6tyVHp4qAWBhDEbj68n76yLoqhnFcsAU8I+ 90O8LVKwePAn0TBFUMPS4nelzc8FJgY+xigo/n8SwulKHeNKN72eqe5Gw6j6ybXXSq4V n2elPKTtx7K4NUuXSMEeaN91sLsUaQQaPND+78JmActGeP5qiDuU0hMlKcSEXzLH04TF SUrV1+PIHIXYaqFu0Ref07gLbpUGJuCKJQRNdWuS1nueMLs5BDFBDWxsSMqYOtA7vwrT UgHGHADyh8zWCec5iIH5gBTqnKlTxQ539DDmFXfy9o8994I1UHa5jcHsXipCGAhqY2IK rqAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=vdM2P6r+uNYEUwewAWnk8uG0ZxdoS+MVVRgfXzR13J8=; b=UsVQ/G/pw5hzALLiWPMvdTQQBvYRfKIJ6qkPUf5VOwfTad+n3P94Ky9H6GoHMJxoAV kMudtsLx+o5zqcaKNpbs5IIyM1jvqFZbTp3jCNGiTau1SBgFvDlYtMEeTxIPkS+/c1Er eB0LiMPCc7UJvdHWJPwoxrZcgv+b+LSpuPUGoebYs4Q0Z3L4S9BrSiRzNTAB2ZN9u4X5 temULNLiHyqfvMwjJbLJBFahbbjstoSNKNsQnwryFan/6hiMlIoaE0KDH2GVNi6EOJId wYnGYf7Yfd6re5PrpJqyg1g+v7Fs62O5PD7ADOki+mmKH+w2Xlfwfq7st7KqtGeGxugh 8efA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o18-20020a056402039200b0050220d12b22si8343662edv.454.2023.03.27.01.23.00; Mon, 27 Mar 2023 01:23:25 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232992AbjC0INn (ORCPT + 99 others); Mon, 27 Mar 2023 04:13:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232970AbjC0IN3 (ORCPT ); Mon, 27 Mar 2023 04:13:29 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F40C449CA; Mon, 27 Mar 2023 01:13:28 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 4411C8108; Mon, 27 Mar 2023 08:13:28 +0000 (UTC) Date: Mon, 27 Mar 2023 11:13:27 +0300 From: Tony Lindgren To: Andreas Kemnade Cc: bcousson@baylibre.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, "H. Nikolaus Schaller" Subject: Re: [PATCH] ARM: dts: gta04: fix excess dma channel usage Message-ID: <20230327081327.GE7501@atomide.com> References: <20230113211151.2314874-1-andreas@kemnade.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230113211151.2314874-1-andreas@kemnade.info> X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 * Andreas Kemnade [230113 23:12]: > 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). Applying this into omap-for-v6.4/dt based on what we discussed in this thread earlier. Thanks, Tony