From patchwork Thu Oct 20 11:55:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13013386 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 517CFC433FE for ; Thu, 20 Oct 2022 12:34:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=6VL8FNrhh1Tl//blHuDZnFD/ErNg30pdeK/ZpVd5xgY=; b=j5L/xBcYz6sCz2 cAlEHQRnTDy3epQjbqxljokXDdF0BWe+WkpDG3JdjxTVJ+3AuL0JAzqJ2velhYcJ/ffyvt0Hosn2v 5L47/ta9SpIDH0E9tVTNdmbhS4CG3+K2grzLoHgMX+2RWck5G67WveNzy64/JUzxVEIuM4fl1u8/H 0hUfGBC0ELI6TyFKvzbuIJrMZaGv2fuin4SF7GY6uQxz63HAEJG0OXWARJON0VyqI0ZmVZjCzXmcH zl3Hk7RRLQCadGxkKIWYAHLX1oLK0itAZxReORgP9JA1/j6jpnFm8OC33xCQyeqZt1ipkCxWCLNcj t47Wt1mNumOQ7cGfG8pg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1olUj3-00EpNW-Nm; Thu, 20 Oct 2022 12:32:42 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1olU95-00ELNV-P5 for linux-arm-kernel@lists.infradead.org; Thu, 20 Oct 2022 11:55:33 +0000 Received: by mail-lf1-x129.google.com with SMTP id g1so33097192lfu.12 for ; Thu, 20 Oct 2022 04:55:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=LsYCCTAqbxl1nYegcA6XVTC9x8A8DOyUVzkeALJAq+8=; b=NBtRzRBtf3CHp+ZqCc1ugzJAxtf+FQVKg2znqKAHKcyqQD28FLc1pZigowJDa5b4cx T14yJBOg6h/DCw82V1QIGM5NujztBo7z5POKBdEh5+GvZIpQO2i62wrTbaUya4zjj0Jw nGJDa6LGC2eIuoWcU+F57K/9Qxd4SMDa/bgId48bb9tHTIDzwE95NvzZQyMscY4iPcD6 UZwmxGMzeB2fHWb5jDfOtSSwUjZ3KGnLsHuHwaicwmoEa7hdVRhuEFI3rTONtWv3Ijlv OvKXGcaJibok55AsceVFipb8FoGx2bs8Kyk/0c5y0e2+o4xRRqSkc+sJnYg66ADBpmj8 VOpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=LsYCCTAqbxl1nYegcA6XVTC9x8A8DOyUVzkeALJAq+8=; b=LHK/Ofqk7xBxo7FxOApvBMyl99IBPivGX2Z1vr+c8FT8zrqi2RPOornuqcNsY4GI90 xoJIGC/A6ae7IAC1fMA8H1C5JXtqNrIjhKTiW+QuPB4njviU/+9wMYJ2z1RuB5tjZOIL BlbrkrRDY/5SJYU93J+KqhbBeN7H94cQCq4SmACBcqJTitwa3/sIvibml5yumJP/pJAz Y0gCw9maaLf6u6o+8WazLa421Hg2vXC7FC5evWkVs/ueWiEfY6n5POQ+1258Bt8o45Yu IqX2G0bO+zKRriPhnU6hTg7JDmJ+VZp226AwN+bKc1hyBfY2QHVD04ia83PXqt36tvaY zauw== X-Gm-Message-State: ACrzQf3+oYu8WdatMtQY4A/yhhvgFBVBQn8f+kUWrugJSKgOZEW4lFwr e5s35/bBaszLgX5mfFvG+nbJ3A== X-Google-Smtp-Source: AMsMyM5ipN3ArP3zHYOiQQl4eLE64TxXPn3wOxrn/2+hiWFMuiv5mEYk8Kq5Z/mO5CmICg29fehyZw== X-Received: by 2002:a05:6512:40d:b0:4a2:d61d:6c82 with SMTP id u13-20020a056512040d00b004a2d61d6c82mr4378263lfk.381.1666266927538; Thu, 20 Oct 2022 04:55:27 -0700 (PDT) Received: from uffe-XPS13.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id s16-20020a056512215000b0049adf925d00sm2701626lfr.1.2022.10.20.04.55.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 04:55:26 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , linux-pm@vger.kernel.org Cc: Johan Hovold , Dmitry Baryshkov , Sudeep Holla , Lorenzo Pieralisi , Daniel Lezcano , Ulf Hansson , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] cpuidle: psci: Extend information in log about OSI/PC mode Date: Thu, 20 Oct 2022 13:55:13 +0200 Message-Id: <20221020115513.93809-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221020_045531_875798_972F101D X-CRM114-Status: GOOD ( 11.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org It's useful to understand whether we are using OS-initiated (OSI) mode or Platform Coordinated (PC) mode, when initializing the CPU PM domains. Therefore, let's extend the print in the log after a successful probe with this information. Signed-off-by: Ulf Hansson Acked-by: Sudeep Holla --- drivers/cpuidle/cpuidle-psci-domain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/cpuidle/cpuidle-psci-domain.c b/drivers/cpuidle/cpuidle-psci-domain.c index 821984947ed9..c80cf9ddabd8 100644 --- a/drivers/cpuidle/cpuidle-psci-domain.c +++ b/drivers/cpuidle/cpuidle-psci-domain.c @@ -181,7 +181,8 @@ static int psci_cpuidle_domain_probe(struct platform_device *pdev) if (ret) goto remove_pd; - pr_info("Initialized CPU PM domain topology\n"); + pr_info("Initialized CPU PM domain topology using %s mode\n", + use_osi ? "OSI" : "PC"); return 0; put_node: