Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5959086rwl; Tue, 11 Apr 2023 12:26:21 -0700 (PDT) X-Google-Smtp-Source: AKy350ZtLxbhIIm3gHas2ArjonNI6Netk37F8LA9B8DM9ctgNbtZ/4LbdE4mQs5JHvvBipMKMrMc X-Received: by 2002:a05:6a20:b21e:b0:e8:a277:5e16 with SMTP id eh30-20020a056a20b21e00b000e8a2775e16mr14657753pzb.43.1681241181067; Tue, 11 Apr 2023 12:26:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681241181; cv=none; d=google.com; s=arc-20160816; b=b5UYMhcY80aVQ32n6aD9za9z6Vk/pBF8ADsYVDHyp5vI777/+EYTAAGgJIjkEfDURx dapQwOz2Mvoyy8Diw/lPG+7fT66sEny84TqI68xlLWKqskspqUwMApCb/0gUiw/luUHp qAp9hlKnn7f4WnDb+0gblx1w9IHw0ismdQtCGRUIf8Qqpd0+wlmLbWnqQXfYXmpZ5gVR pGR0YsfpfH9bwUWftw/oP36kjF9KXT9hM0QYJwl1zt2d8l7JrhuBs9sHPTQlebV1tziO Y+ErOr0wEuFCsix5i6qvA1nd+nDwPG+ATkBbTALJkkUxnXQVO/07z093+mWMnFhJlxhV zB2Q== 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=qhq9dpmn2VnCwqB0zz5VnZkW7xe5Ahb4i2F79uPfYtI=; b=L+DTemYkTj6vGIcxlSCkEqVqF7cCi+Lupun/Del/C03OiN8I7rnRaP21MIfMX0n7H2 8P5eYqBDlVkD4RSTo5xJRPhe2/3YoOxbP9ZfTZ/yR/9/EWOT2pD33TAm8bNw3doCg5gL EL6qsZAO5wV69b9KKISESXF3BDggxRwoigHF8oWWxULT/TpT7MGVaGIvlVr7p2brahMs s8P38FBdHtPXXyMx4zTYVywlncw+VzPf57QapKlXL4tfYK4VCknwgH4GWInYRCHleFqj +tqD/tDvQ+yI2sgMs7u/sZs744q9dU2iPp7d49VqOg5SwQhzqq2hNnfwo1B7LlK6dfk1 SV6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AIquNZrO; 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 h191-20020a6383c8000000b00518db33cf17si7903146pge.552.2023.04.11.12.26.09; Tue, 11 Apr 2023 12:26:21 -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=AIquNZrO; 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 S229531AbjDKT0E (ORCPT + 99 others); Tue, 11 Apr 2023 15:26:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbjDKT0D (ORCPT ); Tue, 11 Apr 2023 15:26:03 -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 963215590 for ; Tue, 11 Apr 2023 12:24:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681241028; 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: content-transfer-encoding:content-transfer-encoding; bh=qhq9dpmn2VnCwqB0zz5VnZkW7xe5Ahb4i2F79uPfYtI=; b=AIquNZrOvUeKxJdSXBfmwIByQXR2EVwqbAyfRgXxYCjxuTU5/4v4KlQvPcah/r0bfjUBLe Qz0fm5JbggXJu44o78/PHMTkr+ewMAOqQ4fMIyUZ/NG2LFy0gQTArMG4bKnrV9QqeTwiVW av8Aj1xJmBO7VnqMvKjClKhqw6EybHE= Received: from mail-yb1-f199.google.com (mail-yb1-f199.google.com [209.85.219.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-2-DxK9xDEeMFWrPi16RtqXpw-1; Tue, 11 Apr 2023 15:22:05 -0400 X-MC-Unique: DxK9xDEeMFWrPi16RtqXpw-1 Received: by mail-yb1-f199.google.com with SMTP id c67-20020a254e46000000b00b88f1fd158fso25289097ybb.17 for ; Tue, 11 Apr 2023 12:22:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681240925; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qhq9dpmn2VnCwqB0zz5VnZkW7xe5Ahb4i2F79uPfYtI=; b=BFJC20XXFWSG6CtSqSz9kcgKDEqTDLT2W3/h5XyeG4omE7QpgQT4iLmqSPQj2CwqSx f5PMkHywLpvRlw7dpliXwn0FQs+QnbU6o3fsi5oArs6ULZkwrSo5a5SGk1xcRPB4D4VC JOTLxFR1QfgdkeYJyT7Ebpzd3bXUkmKKPa750d51xddmfk3GdkCpcA32MItWLkZYNCZq 3FFWECylKKb6AbN5qZ3oVkTJqZ68hb06DSH7AjjXWr1Wl25zkDflJzivAAwmecTZHGfV 6vfJcyFOcSXN6WU2ukNjr0js1qTGPzTeQqqJWPj50GVYizqpP795kGeVzY6/36pwFfqr CV9A== X-Gm-Message-State: AAQBX9evv5Gd2uHsWMx6FjUqJFx/5ADkc05t4iy9J3MDlNkeOk3G/WzB w7hYrZ3ah8PHAnrgStK1kRe1hcABtH/M0G78raCO5+q1o3JF0X+nSSWC4bgQC5cNS+n25ziayWA xLGLvS6mxnUcdtXzXgZ/lD+A5 X-Received: by 2002:a81:4fc1:0:b0:54e:a6e3:4f28 with SMTP id d184-20020a814fc1000000b0054ea6e34f28mr11197578ywb.20.1681240924943; Tue, 11 Apr 2023 12:22:04 -0700 (PDT) X-Received: by 2002:a81:4fc1:0:b0:54e:a6e3:4f28 with SMTP id d184-20020a814fc1000000b0054ea6e34f28mr11197566ywb.20.1681240924699; Tue, 11 Apr 2023 12:22:04 -0700 (PDT) Received: from x1.redhat.com (c-73-214-169-22.hsd1.pa.comcast.net. [73.214.169.22]) by smtp.gmail.com with ESMTPSA id f10-20020a81414a000000b00545a08184desm3687792ywk.110.2023.04.11.12.22.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 12:22:03 -0700 (PDT) From: Brian Masney To: corbet@lwn.net, sboyd@kernel.org Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, mturquette@baylibre.com, linux-doc@vger.kernel.org Subject: [PATCH] docs: clk: add documentation to log which clocks have been disabled Date: Tue, 11 Apr 2023 15:21:53 -0400 Message-Id: <20230411192153.289688-1-bmasney@redhat.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit 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=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 The existing clk documentation has a section that talks about the clk_ignore_unused kernel parameter. Add additional documentation that describes how to log which clocks the kernel disables on bootup. This will log messages like the following to the console on bootup: [ 1.268115] clk: Disabling unused clocks [ 1.272167] clk_disable: gcc_usb_clkref_en [ 1.276389] clk_disable: gcc_usb30_sec_sleep_clk [ 1.281131] clk_disable: gcc_usb30_prim_sleep_clk ... Signed-off-by: Brian Masney --- Documentation/driver-api/clk.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/driver-api/clk.rst b/Documentation/driver-api/clk.rst index 3cad45d14187..2199c0042e75 100644 --- a/Documentation/driver-api/clk.rst +++ b/Documentation/driver-api/clk.rst @@ -258,6 +258,11 @@ clocks properly but rely on them being on from the bootloader, bypassing the disabling means that the driver will remain functional while the issues are sorted out. +You can see which clocks have been disabled by booting your kernel with these +parameters: + + tp_printk trace_event=clk:clk_disable + To bypass this disabling, include "clk_ignore_unused" in the bootargs to the kernel. -- 2.39.2