Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp978438rwi; Thu, 27 Oct 2022 09:39:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6r1D8QInK2tmK/pF1RLi2xbeQ+ENnGJvsIdyzPGEQRFoGWge8+HM2fXkAjkTiGlzqDq6cY X-Received: by 2002:a17:90a:2cc7:b0:212:f074:cf4d with SMTP id n65-20020a17090a2cc700b00212f074cf4dmr11283584pjd.70.1666888751558; Thu, 27 Oct 2022 09:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666888751; cv=none; d=google.com; s=arc-20160816; b=wiq8TZQSCm6bhZnsWeqcIdHpkeC7Ekr5guw4xUyl9NyiwVThnr9ZCl8sWYWPctLpeE ZSF07I07I1A5N6exaNiqx4jO3Rnm+vFTstfeNrRscIzqFHnhiIo75xKwpvtztJPTier1 M3LXvccUQJ+hKo5B46pAFnrAWSinqSsozdPckCvNPCirqfx+RZ4usVeXVjS/5+qRC3+C CmO53XqVbZONZc4Py8CLuInuU7qHhsQJA9sHNRB+X4JXCkJTPYdfbIn8tt1tp4yI8e/k NxS60gDgMi4a8SlppcBGeuh/xYhHey1guNLgYbxke++M1+ML/VdXLAMUJW1BB0mPvDC8 t9hQ== 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=ArN/ceylnEiTQ/ffcvkaRkBlDi2r/w3YlTdaaGRYyy0=; b=RbR/ZbZGDFFQATuW5GrWnGw4m3pcqvPUi7ryrj1C9fI+jn6rwYzgX7r+EDLlNTmXf6 LLtoOXYfNviVIMG2wXiN1Jq9JklJkfv9H60ZoTa8gAAY3RSb9ldqyh+WHUphlAEKsPp0 Suuobqp2XdUWTjk71oJEu74kZVVQR1YXA6LwgdiJzIZ3mOEv9H0riNGYvWa6rVqxpe0C dSXHMtgTZbiuZXJuuV6y7ceMZFHCn4Vy8x1asM+WcgjoUyOgecdfM4UFMJQSZnbsWB9X qoZxuo875q5H6rRX8ql//yK4RaDLSVyvxaQG7slAqYxTQcBrXvhjuSoBU8Jjpw77Oaz1 nLaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TBZFyhZ8; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n6-20020a17090a2c8600b0020b127afe7dsi5896856pjd.70.2022.10.27.09.38.52; Thu, 27 Oct 2022 09:39:11 -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=@chromium.org header.s=google header.b=TBZFyhZ8; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236511AbiJ0PVM (ORCPT + 99 others); Thu, 27 Oct 2022 11:21:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236438AbiJ0PU3 (ORCPT ); Thu, 27 Oct 2022 11:20:29 -0400 Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 094AA1AF24 for ; Thu, 27 Oct 2022 08:19:22 -0700 (PDT) Received: by mail-qk1-x72e.google.com with SMTP id i10so1000552qkl.12 for ; Thu, 27 Oct 2022 08:19:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.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=ArN/ceylnEiTQ/ffcvkaRkBlDi2r/w3YlTdaaGRYyy0=; b=TBZFyhZ8VFkxJraM6oMydd20rFcNXgaDzV3Eahs4a5rNLpMc88DjEXedfr1aMtOEd1 y3XKPeBHjK3bb8MVVwe6773bWMogMwYqzUTR0TCvNY9AXaq4QrxueuF/zsSoWFesHt87 BZe2FQDx+9TlQd4jKXvs16YCM2v8qFWIYGTAY= 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=ArN/ceylnEiTQ/ffcvkaRkBlDi2r/w3YlTdaaGRYyy0=; b=OuHzpPW+mXZu1nqdkRK98PE+REJdo1O8hWkuWbMb2cOCVcYuPTk0tTgrkdlOPpk6Re gUeHPnAoBd3a5xtEr2CwT5Jel5P/GV2cGb7QIgJTFUPC/Cunxk59wZVnllItj1kylvQG DXiIuFJ1KwwTJOk4svSXxDGLzFeuU21ZZp+/vLejDqZwZk83Lq23PU2D/2KQfbMAo/Tt 1+cXN0RcGbpC0IgwfgpMQc2zGTb8SCJxXgKKpDenNMUaelPhyaWEONse3pHvuIjCG3Ou N9VZ/H3Gfoa4yWykBHN3wvLYM90ccde72xWvSwfObYZqe8bIATbRpmhf4WocPAb/0f+Z ERrQ== X-Gm-Message-State: ACrzQf1EF+UfiJOAYFzzKOlIBrzqXA+FdRHzntRDSXlGY1m2mfWonFgf MQrnIfOBTyj5KyMmbOi+vqPWprZXSYyQ6A== X-Received: by 2002:a05:620a:51ca:b0:6f5:71e1:5ccf with SMTP id cx10-20020a05620a51ca00b006f571e15ccfmr14767083qkb.217.1666883961039; Thu, 27 Oct 2022 08:19:21 -0700 (PDT) Received: from trappist.c.googlers.com.com (128.174.85.34.bc.googleusercontent.com. [34.85.174.128]) by smtp.gmail.com with ESMTPSA id w7-20020ac84d07000000b0039d02911555sm991304qtv.78.2022.10.27.08.19.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 08:19:20 -0700 (PDT) From: Sven van Ashbrook To: LKML Cc: platform-driver-x86@vger.kernel.org, Rajneesh Bhardwaj , Rafael J Wysocki , Rajat Jain , Sven van Ashbrook , David E Box , Hans de Goede , Mark Gross , Rajneesh Bhardwaj Subject: [PATCH v1] platform/x86: intel_pmc_core: promote S0ix failure warn() to WARN() Date: Thu, 27 Oct 2022 15:19:14 +0000 Message-Id: <20221027151908.v1.1.I295e65357f06f162b46ea6fc6c03be37e3978bdc@changeid> X-Mailer: git-send-email 2.38.0.135.g90850a2211-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 "failure to enter S0ix" warning is critically important for monitoring and debugging power regressions, both in the field and in the test lab. Promote from lower-case warn() to upper-case WARN() so that it becomes more prominent, and gets picked up as part of existing monitoring infrastructure, which typically focuses on WARN() and ignores warn() type log messages. Signed-off-by: Sven van Ashbrook --- Against v6.1-rc2 drivers/platform/x86/intel/pmc/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/intel/pmc/core.c b/drivers/platform/x86/intel/pmc/core.c index a1fe1e0dcf4a5..834f0352c0edf 100644 --- a/drivers/platform/x86/intel/pmc/core.c +++ b/drivers/platform/x86/intel/pmc/core.c @@ -2125,7 +2125,7 @@ static __maybe_unused int pmc_core_resume(struct device *dev) } /* The real interesting case - S0ix failed - lets ask PMC why. */ - dev_warn(dev, "CPU did not enter SLP_S0!!! (S0ix cnt=%llu)\n", + dev_WARN(dev, "CPU did not enter SLP_S0!!! (S0ix cnt=%llu)\n", pmcdev->s0ix_counter); if (pmcdev->map->slps0_dbg_maps) pmc_core_slps0_display(pmcdev, dev, NULL); -- 2.38.0.135.g90850a2211-goog