Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5968312rwl; Tue, 11 Apr 2023 12:35:35 -0700 (PDT) X-Google-Smtp-Source: AKy350bU6A0lPEoxiaaxni8St7Wvc8/uxafNYzj2p4hS6Ej+mR/x/m8Bn8pzg2BoRlEWGJj9oJuC X-Received: by 2002:a17:907:c499:b0:933:15c0:6e05 with SMTP id tp25-20020a170907c49900b0093315c06e05mr10202335ejc.7.1681241734844; Tue, 11 Apr 2023 12:35:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681241734; cv=none; d=google.com; s=arc-20160816; b=PQ6uUdNIOkh9eYd0zRXBWe/I/6OZlJ3j/UrqkG3KLC+Nl0QbA3xL6o5GcFfrfPjRR8 CdybFNcDZOuggVB5joFtCAUHjcQ7KPLiRrFAlgAjPe1Nh9umkJex6OPG15HRSSQAdAAu on4dgwU7yCJmJo3AOch9CgvRLieU2dxJGCZD0agbxX/QBLER0ZcbzKcSbK/rKktCpwEx q6t1CyDMzfBICVkT/nlmxECMpg39SQEDTWnrforu1bd8sdvJTPQI3uECzcTqcMqgIuEc vGFvSs+NgYfhyTp0Sk+47FVRNFOJmQfvCTd+ICxuLGVYkzDSM0Ju1p8o9rbJXWl0MFZ4 fSuQ== 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=XSiYd4vLNxCRpyGc8Q8nbzOyNKeYH8lsn9NGk8/RzXo=; b=mzkyaIov56bnEuPiiqdPNGEVT8Cv+WwkKW6Hp3ivqXwPhevvoUvb7QPQ3sQz03XBBc 2lN38soB9ya0t8blQ2SL1rwKY8NQU76G+VwbmoVh9Cvc1nBNt/pt3C/bbWt/k8su/ZOO /v8QZiio7KmkeoxrHAwar9bK3AdFXFybTgxhzVYJhgi2Jh+qaXnsSokVpgRVIfexQQx0 kOiO5TcW2II2KV5YqOGmS3Ncv2deUfRSWlmGok6aUmpIvqIC352jxuijgVLgVl3GJP9b OTufygxYCknrW9T4S5AcPt7e3rVLxqwlQdSOEPoHazjCmHdGPf6OLS70zPdIX/404vws 16uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=T1MsIAF1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb13-20020a1709076d8d00b0094aa5170b21si4802982ejc.419.2023.04.11.12.35.09; Tue, 11 Apr 2023 12:35:34 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=T1MsIAF1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229683AbjDKTbN (ORCPT + 99 others); Tue, 11 Apr 2023 15:31:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229762AbjDKTbH (ORCPT ); Tue, 11 Apr 2023 15:31:07 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC4D4135 for ; Tue, 11 Apr 2023 12:30:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681241423; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=XSiYd4vLNxCRpyGc8Q8nbzOyNKeYH8lsn9NGk8/RzXo=; b=T1MsIAF1Cz7fTIhH4Gty0x/GYYQtl6HPkrUH8B1YrIIgTVVvyyjBrmp32qOKcnQes5NZ0n /P/qVvJc5vvn9itVI7t41Jpzr9f8MgVgfBY26YDH/biDzLLj6eaFCaq8ttZ50OGg4dYGDI V0YfHwXmVvClsW5yftdv0CAFc5xNf9w= Received: from mail-yw1-f200.google.com (mail-yw1-f200.google.com [209.85.128.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-338-G94lIh3wN0OFpgZLffLjqw-1; Tue, 11 Apr 2023 15:30:22 -0400 X-MC-Unique: G94lIh3wN0OFpgZLffLjqw-1 Received: by mail-yw1-f200.google.com with SMTP id 00721157ae682-54c23fab905so138465197b3.14 for ; Tue, 11 Apr 2023 12:30:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681241422; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XSiYd4vLNxCRpyGc8Q8nbzOyNKeYH8lsn9NGk8/RzXo=; b=Z1YTkiqjZbD9cYNGBHjuy4UfHFLtyH8wxMeSFXEWUXYjtfcaUspjs7HPv5vas2k+s9 ttnrKyJ5tN4PsZo+ioSmW5tKn4an74z/GHPGdqMCB8vy2r9+YbVFAmC/HQ55Yec2/6LO 5l/gq34V1AQsLIRyYfdwX8M+MZYYccHA+TBleNkLKIZIiI7Qpw7cBQX5s529h8OqvEYV p9Lhc2Igo8dmLFE1hJzXCm5aZ8AXr0m7CMGntX/QhIpPoEEBLBDH7o81jZu2SfH3C0xC MGnemxesZM567sWhkuN0D3ly3Ca8DIyt92dVnMcpdq9THssymDcUYYnM/n3i6ltj6IOZ GjAA== X-Gm-Message-State: AAQBX9fkOyL2+ZSadedfa82tRHow8CttiyLZ6kg8ayAX4DqvZQEedrRg kkyTKFFuxC30TZOvBFVfdaV4V8DPOEVpG+Aqd3j8yFvbSsoZsYaRuoQzJrH9gPTPtE1IW/GuwsB grHGNLHdplTrDrUZbYSAEVO7t X-Received: by 2002:a0d:e214:0:b0:54f:32a:a26 with SMTP id l20-20020a0de214000000b0054f032a0a26mr3140016ywe.5.1681241421953; Tue, 11 Apr 2023 12:30:21 -0700 (PDT) X-Received: by 2002:a0d:e214:0:b0:54f:32a:a26 with SMTP id l20-20020a0de214000000b0054f032a0a26mr3139998ywe.5.1681241421597; Tue, 11 Apr 2023 12:30:21 -0700 (PDT) Received: from x1 (c-73-214-169-22.hsd1.pa.comcast.net. [73.214.169.22]) by smtp.gmail.com with ESMTPSA id 23-20020a810717000000b0054f6f2d291dsm693839ywh.34.2023.04.11.12.30.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 12:30:20 -0700 (PDT) Date: Tue, 11 Apr 2023 15:30:19 -0400 From: Brian Masney To: Stephen Boyd Cc: mturquette@baylibre.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] clk: add debug message showing which unused clocks are disabled on boot Message-ID: References: <20221117105829.256717-1-bmasney@redhat.com> <27ded6a4ebd67cef0d4b472a2aea442e.sboyd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.7 (2022-08-07) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 On Thu, Mar 30, 2023 at 10:05:37AM -0400, Brian Masney wrote: > On Wed, Mar 29, 2023 at 02:49:50PM -0700, Stephen Boyd wrote: > > Quoting Brian Masney (2022-11-17 02:58:29) > > > The clk framework on bootup will automatically disable all unused clocks > > > on bootup unless the clk_ignore_unused kernel parameter is present. > > > Let's add a basic debugging log statement here that shows which clocks > > > are disabled. There is already tracepoint present here as well, but > > > there's nothing like a simple, good ol' fashioned printk for simplicity. > > > > > > Signed-off-by: Brian Masney > > > --- > > > > I'd like to see a documentation update instead that covers how to enable > > the tracepoint on the kernel commandline and have it print to the serial > > console. > > Sure, I can do that. I see there's a section 'Disabling clock gating of > unused clocks' in Documentation/driver-api/clk.rst where I think this > would be appropriate. Just to close out this thread, I submitted a patch to the docs tree. https://lore.kernel.org/lkml/20230411192153.289688-1-bmasney@redhat.com/T/#u Brian