Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp759577rwd; Thu, 25 May 2023 03:38:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/wkZiXCVrFWHuzXMwn54zZnUTqyqLmEvfAO7k5b5JgFsgXptJc3YDPxj14sGUL+Yl4jGx X-Received: by 2002:a17:90a:c20c:b0:24e:3b3e:f348 with SMTP id e12-20020a17090ac20c00b0024e3b3ef348mr1190343pjt.2.1685011089613; Thu, 25 May 2023 03:38:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685011089; cv=none; d=google.com; s=arc-20160816; b=GycwF0gaXV8Lmw2R/oLzgJgNJc2k1P/yUlKF92dt5vFIOs92faKcim5OLtnDHoVKmx C6XsqC8/tF9YD/hgYahww0w5mf7U1uAkJNqBxJAf/p4aweU12QMxPSHMuujyq/nzrU2l NEQfWIcRT+1k8ziVep/VcYmA8DijB1XHpc7fa8oPS6pp4yKGNnvMcI/ecYSKvx3SCfnw fjK7TzEm7xIxs3MZnlMHOJLd2J6++GyLSetpEMIViQammtEp+83RWPi4CjIH06XY+I46 N0Tif6QP7A3akXg4RXBr6l2lG2CV1YU4zMWamQvXz6hgl3mKcNfPegXj17Gj8x8kZdXP GS9Q== 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=3qUwZavWeot6BxoSwWB1BeOsQSAKpT3nzUsF0j/xmbk=; b=iLORW2gVEUHTyXWb1rm1e2BxeLsIKjNFne8XbHMJuV45Zj72NPuU8jXWhD0WcCRdBu QECushjtirVlxCrfKPBvqdQbcdMEdLNMFBOeHyBgcHSkCWgf7jK7T2MTIxi8tOU4vevn bRpLqpTDT/iYogNo86Ek71Nd+hPeZrJjy83UeZ0cm7NJBQky/xWFh2ARduzGgjNpoNim DDatzphL1Ucw67FTUMnLg/TV3dEBQxBRHFwAsd/csS9o4Gci9VOuhFSAApddEueeZtl9 tSIo8olE2W++jYJKhGSEVu/dhposyHOd0FL212Emhbitr8OlOe+hZJ5A/PBenUxQofFO PgZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HwEdC2z4; 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 7-20020a17090a018700b00247ad6e4188si1576090pjc.51.2023.05.25.03.37.54; Thu, 25 May 2023 03:38:09 -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=HwEdC2z4; 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 S240775AbjEYKPB (ORCPT + 99 others); Thu, 25 May 2023 06:15:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240884AbjEYKOt (ORCPT ); Thu, 25 May 2023 06:14:49 -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 98E8CE66 for ; Thu, 25 May 2023 03:13:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685009599; 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=3qUwZavWeot6BxoSwWB1BeOsQSAKpT3nzUsF0j/xmbk=; b=HwEdC2z4TDa0JTuP9UuNI/G1yjiJy/jfcjJxsGbf2ktudUEZSy2NCXQsDOPZizwFOJZQqA FRN3IMqMYVStQ4eDTqKhMU68Zv4ClT3TKJupG9cMOAZc8N2hYWtvISUt4ga0bKmtasUgJX ClZ4UK0SywpRv0HwTQPCt3KPsRpkSgE= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-440-XtW11Vf2Oz6A2Brv6rTUuw-1; Thu, 25 May 2023 06:13:18 -0400 X-MC-Unique: XtW11Vf2Oz6A2Brv6rTUuw-1 Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-50daa85e940so2524078a12.0 for ; Thu, 25 May 2023 03:13:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685009596; x=1687601596; 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=3qUwZavWeot6BxoSwWB1BeOsQSAKpT3nzUsF0j/xmbk=; b=YkAodAzdMU8YY4P6Wt4hUpaYTzUErZK4IVIZ+6aUKvYDyJLA2b2N4q7X8lndsvuOFC qYG+N2NoBZptCa6ondnFnuPvsCYvus8BGjvkH9iMk7jDvrpFcNw76YO+oO1kC8w9ovmK EfMqh4Bm2l3NylNI4FaNwBlOrORSbruC9ePJJGmKoEdfC14kc47xAxk3+ajomXWqomaK MyMgcVTG7wmZkJyWeFpGxSdJJMnmuoS5ULq2Ijv35L6Q3yJumGLavRc7etMcMA+V00NT VprvmjCy+Fbs+8ZhCzcYBMTWd/Hq/AHrUWtvNL3+SsXw2Gwim90EzR3+TBBgGvIpFgxW srPQ== X-Gm-Message-State: AC+VfDyqLpFvnB9tVm7pe8DxjwPBYrzjaa69SRTV3z3B1CD+RCQNn+nz RPS4KNvgaMAZ6oeRJhH4xJ8aaZSWM9+spo+TUkRZdn/cGKxtHhesFq0+ny7/6lLSEKzMl/qa74f MrXha2SH8ZJTinrd3ISgBl8fX7ZlFn4zD X-Received: by 2002:a17:907:720f:b0:972:aa30:203e with SMTP id dr15-20020a170907720f00b00972aa30203emr1112323ejc.34.1685009596735; Thu, 25 May 2023 03:13:16 -0700 (PDT) X-Received: by 2002:a17:907:720f:b0:972:aa30:203e with SMTP id dr15-20020a170907720f00b00972aa30203emr1112304ejc.34.1685009596436; Thu, 25 May 2023 03:13:16 -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 kq10-20020a170906abca00b00960005e09a3sm648261ejb.61.2023.05.25.03.13.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 May 2023 03:13:15 -0700 (PDT) Message-ID: Date: Thu, 25 May 2023 12:13:15 +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: "Limonciello, Mario" , "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" , "S-k, Shyam-sundar" , "Natikar, Basavaraj" References: <20230522200033.2605-1-mario.limonciello@amd.com> <20230522200033.2605-4-mario.limonciello@amd.com> From: Hans de Goede In-Reply-To: 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,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/23/23 18:21, Limonciello, Mario wrote: > [AMD Official Use Only - General] > >> -----Original Message----- >> From: Hans de Goede >> Sent: Tuesday, May 23, 2023 6:08 AM >> To: Limonciello, Mario ; 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; S-k, Shyam-sundar ; >> Natikar, Basavaraj >> Subject: Re: [PATCH v2 4/4] platform/x86/amd: pmc: Use pm_pr_dbg() for >> suspend related messages >> >> 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 >> > > My apologies, yes I was compiling in when testing. Let me ask if this > series makes sense and is "generally" agreeable though. I have no objections against this series, otherwise I don't really have a strong opinion on this series. If this makes sense and if exporting pm_debug_messages_on is ok is Rafael's call to make IMHO. Rafael ? Regards, Hans