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: 6170 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp67144wrr; Thu, 20 Oct 2022 05:05:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4oss75JReI67pCPsyMJKmnIlE2qi+Hz6gKI0p6rd59X0/KeOcxf7N7b2xoHo+pyTXG2rHu X-Received: by 2002:aa7:d39a:0:b0:458:a612:f805 with SMTP id x26-20020aa7d39a000000b00458a612f805mr11641763edq.49.1666267514242; Thu, 20 Oct 2022 05:05:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666267514; cv=none; d=google.com; s=arc-20160816; b=I3e6w6hVfUczZ58AWBQ9BPHCdUtO9YdW5hiVzbAGWbVZAVsL8XOtSrXRuVb9p7ZT2v VpU0nocxHAD7Mqytp8yQQ9apr1+Z2GbE2N3wPCRmonBY3P3Dq3he0d+swDLQIMsIlIvs 3gl0PoDG5sf7o2lkpvkkYGRjeNloVH16VgI9Gatf/XW7sIemjsy5u1pgjYxldAlylQJm 3YWUkOGW5a5L3VwGjxTac/RHiGG0+9QnrFlW+Zi+BMaR9nPFtQdPCDAjHCO074vDtfkC OfYgabpz/X3xrCvGHB6qaucEmkp8oMqGwz9L7/mMVmnnDa0MQXwBbCUsyZHWnXnj24E6 IuxA== 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=LsYCCTAqbxl1nYegcA6XVTC9x8A8DOyUVzkeALJAq+8=; b=U4Rlixit7YuZh4wwheAa8LhIZBENg4kjyTZZ73V0g/Eu/YNSSNjU4m7hhAMeoO9+lC 5D6kCOll4U99wuBUD9XeBj+VSxPqzDi/52MbMKlzhsXrm80hFhj4Q/aIrJOeQWP8WKGL wF4+VeQJB6lTDYc3KShXzdSiBpCzIHkaOW0np2mXLDytA7/jVSZwr5f2MI0t+0bp+U7m MrSnaUBfM7mFyVGjOjXe8VznL+ZZaY3JMQxG27Xj3tMk3za/WTIfqBEVjafaYX4MTROi dOvSiAYvgfeHOPibVOTSouyWw0j+WshxKPaElVRCzy8sJU8DvAgdwbHrc9PdvxP5EVPr rejw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NBtRzRBt; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z11-20020a05640235cb00b0045d0444e410si19596689edc.0.2022.10.20.05.04.46; Thu, 20 Oct 2022 05:05:14 -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=@linaro.org header.s=google header.b=NBtRzRBt; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229613AbiJTLzc (ORCPT + 99 others); Thu, 20 Oct 2022 07:55:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229615AbiJTLza (ORCPT ); Thu, 20 Oct 2022 07:55:30 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 397EA133323 for ; Thu, 20 Oct 2022 04:55:29 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id r14so33130095lfm.2 for ; Thu, 20 Oct 2022 04:55:29 -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=xeQoBKM0j7hZjCKUy17HAwfcIwMZyY9UeilZYY/NXWdhc9L5iKHxoxu3P8TQF8fu+h V2B9xHorqwNNF3ipdPjJbc6tQn+u8bJ1KojHnCtOwopfckgzkqWxavUEDwIHc/cpDqyP 5JmMzkTgfOMpg6ZXloNzfWltsACNxl+i086yuuszS3p+I6tGVejsbso2EcqKxR8A7sje fbVpyFYUq2RhGCSxEzZljYKk0ncvEUDFmrl/g23v/J5VZpFhMhWw7d+zxicr36vCdAF1 j0NDru5iSRVuL9DkHkrBqmBeIfYEMgym4EbTgkEY7bt1rVL7WMuCIqd8mk6Gt17i64i2 4ehQ== X-Gm-Message-State: ACrzQf0z2VeTIsA00GiyYuObysDmY/C95qZgVYZ6KwlDgvMG4Y8MGIT0 fKKxhLlWrl/s1Toht9SDgX9dFw== 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747208124685121720?= X-GMAIL-MSGID: =?utf-8?q?1747208124685121720?= 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: