Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4173543rwd; Tue, 23 May 2023 04:23:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5MixmP5eTagKLaiiCsspSb/pTY/ZbnXYeFR3xl17CouMHTygp0rIZcqg5fMu8rnXD/qcCR X-Received: by 2002:a05:6a00:8d1:b0:642:fbed:2808 with SMTP id s17-20020a056a0008d100b00642fbed2808mr17469520pfu.25.1684840990496; Tue, 23 May 2023 04:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684840990; cv=none; d=google.com; s=arc-20160816; b=VJ/J3OVjvBIHI/nTYzwDUlmSWXcZdQ9KV7OBdxoE0CW1yIhUIGXNFhxcRLBpOFCaCr 6gIIwCgWWu526YWw38sES6HfjujajMde5GZw2b73SaJbkdWxSiUJIlIgfrRMlZ98+B1B TJzpFBAWY3pPtb4JAh2GByZHH+f6m+7zEVW9Hk27zrD5GKCyi26OXkVgYJNwiKkv+1QI AQDPgcpG2ubwQgichDdcCf5lE5CiUMyVuzdVgBISSFp0+oNOdC6qVcXGHAzv/K/e82Lu na2/XjU/WYXjAhkchUM+zV+DDXbDFOUvrqBP0/N2oVOP0mHX7rDZQ7hmikLISVdczRJb v5fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=TgAfeWGrsZZYnBL05wn3YJIuhT7jiDrtSHb3+2pNJ5c=; b=rYRyu3LfrkxCiZwg2pd9qmTArW5LIi1N2f4IhsPJcw5ej/Sb8ZkI1Vu9CJtGG0xyvs FwfOn9djjlBVrBQJxYDjkdWWGcYNVWnv/z5sTOJWGA8OjDUI7Ga1jHVSJIa5uDvOqT9l NlZ+4YelqbZA3pI41GkFRfyx6btWzYnojcQurmtsWVw5FN8ccRTwRYIXcAaXnyMqD8j1 NdQajUX0bFU/UB4rRjbognV+HPMtIKZVlwa+u2T3gYUwWlSzVihh3pLG8arYA7XBBQII ZoLC4jnONUgjdvLPQX0kU2a66pPWIMzLq4WN4bstqu/Za7+FDVijmwh/X5zwJ6nknDJ3 9JXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TTlnBzLX; 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 z5-20020aa79905000000b0064d5ae89c7fsi4943970pff.334.2023.05.23.04.22.55; Tue, 23 May 2023 04:23:10 -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=TTlnBzLX; 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 S236478AbjEWLIa (ORCPT + 99 others); Tue, 23 May 2023 07:08:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236580AbjEWLI3 (ORCPT ); Tue, 23 May 2023 07:08:29 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B0BFFF for ; Tue, 23 May 2023 04:07:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1684840060; 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: in-reply-to:in-reply-to:references:references; bh=TgAfeWGrsZZYnBL05wn3YJIuhT7jiDrtSHb3+2pNJ5c=; b=TTlnBzLXCbyiO7ZBf5AN18ieEyD4DNR859GiI9qbuh6taxDdJmy7KmIBofpVSefvPRmIbf ZHuRgmaDR2zGvat2vzGeuNVDODm9d704aKlnmhxnAtmu0Umr5Zq3gTBt7/+WkbGcqS3dxj q+ilDIdiweCd/weWZOg09etJNDCQi2I= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-323-n4skp68vPwy-mXIErCYJiA-1; Tue, 23 May 2023 07:07:39 -0400 X-MC-Unique: n4skp68vPwy-mXIErCYJiA-1 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-96f4d917e06so620830966b.1 for ; Tue, 23 May 2023 04:07:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684840058; x=1687432058; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TgAfeWGrsZZYnBL05wn3YJIuhT7jiDrtSHb3+2pNJ5c=; b=KAUU0Qmps23Cwmd8b1hjopfrBDebqxfSNBaa0fTl365kNXzyYdMbYNuKplfgnCHFKs 9uGjdFwaYRuKRHrpBUF4NcG6Ze6XtT0BO6TKX7L68vB8/XGBmM5NjN8IqLsuuwaZ6Pe3 ccbzPZW/r/MMR/GtDDJnxE2meOArLikVLRvyUGpMEOYzexnFNvDisCGzy/GaLC+AxjIp o4v5pnpwQ3E5nHlLhvQWBYw3HD2EGzLKyIa3lnQAw2OmCwuHrnIA5Dz2pG7VnVP+LoFM VDBTN+LA0fibCg8HHHMol9iy9o7V0ioTDZYLHpp70FfKK3zHqtQng1MfLW3xJQ54p5B+ i/ag== X-Gm-Message-State: AC+VfDzlTfnhuqqKnXnrSDTdgFZm6rAbxofDlDv9bWsUgfGs0a/MQrcw kw8XRoRVXcD5haXSmnuhrFOSJYOGqXOVltOQfQSdX1LU76TCnt67ps/CAQ2elUEe5NzCCtteu0d 5+dGNJrTA3omf0LrhovRpu+L/ X-Received: by 2002:a17:907:6287:b0:966:a691:55f9 with SMTP id nd7-20020a170907628700b00966a69155f9mr11068567ejc.30.1684840057966; Tue, 23 May 2023 04:07:37 -0700 (PDT) X-Received: by 2002:a17:907:6287:b0:966:a691:55f9 with SMTP id nd7-20020a170907628700b00966a69155f9mr11068553ejc.30.1684840057699; Tue, 23 May 2023 04:07:37 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id j26-20020a17090686da00b0096f7500502csm4299108ejy.199.2023.05.23.04.07.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 May 2023 04:07:37 -0700 (PDT) Message-ID: Date: Tue, 23 May 2023 13:07:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v2 4/4] platform/x86/amd: pmc: Use pm_pr_dbg() for suspend related messages Content-Language: en-US, nl To: Mario Limonciello , rafael@kernel.org, linus.walleij@linaro.org Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-pm@vger.kernel.org, Shyam-sundar.S-k@amd.com, Basavaraj.Natikar@amd.com References: <20230522200033.2605-1-mario.limonciello@amd.com> <20230522200033.2605-4-mario.limonciello@amd.com> From: Hans de Goede In-Reply-To: <20230522200033.2605-4-mario.limonciello@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 Hi Mario, On 5/22/23 22:00, Mario Limonciello wrote: > Using pm_pr_dbg() allows users to toggle `/sys/power/pm_debug_messages` > as a single knob to turn on messages that amd-pmc can emit to aid in > any s2idle debugging. > > Signed-off-by: Mario Limonciello > --- > drivers/platform/x86/amd/pmc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/platform/x86/amd/pmc.c b/drivers/platform/x86/amd/pmc.c > index 427905714f79..1304cd6f13f6 100644 > --- a/drivers/platform/x86/amd/pmc.c > +++ b/drivers/platform/x86/amd/pmc.c > @@ -543,7 +543,7 @@ static int amd_pmc_idlemask_read(struct amd_pmc_dev *pdev, struct device *dev, > } > > if (dev) > - dev_dbg(pdev->dev, "SMU idlemask s0i3: 0x%x\n", val); > + pm_pr_dbg("SMU idlemask s0i3: 0x%x\n", val); > > if (s) > seq_printf(s, "SMU idlemask : 0x%x\n", val); This does not compile, amd/pmc.c may be build as an amd-pmc.ko module and currently the pm_debug_messages_on flag used by pm_pr_dbg() is not exported to modules: CC [M] drivers/platform/x86/amd/pmc.o LD [M] drivers/platform/x86/amd/amd-pmc.o MODPOST Module.symvers ERROR: modpost: "pm_debug_messages_on" [drivers/platform/x86/amd/amd-pmc.ko] undefined! make[1]: *** [scripts/Makefile.modpost:136: Module.symvers] Error 1 make: *** [Makefile:1978: modpost] Error 2 Regards, Hans