All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Lazar, Lijo" <lijo.lazar@amd.com>
To: Borislav Petkov <bp@alien8.de>
Cc: Alex Deucher <alexdeucher@gmail.com>,
	Alex Deucher <alexander.deucher@amd.com>,
	Pratik Vishwakarma <Pratik.Vishwakarma@amd.com>,
	amd-gfx list <amd-gfx@lists.freedesktop.org>,
	lkml <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] drm/amdgpu: Fix build with missing pm_suspend_target_state module export
Date: Tue, 24 Aug 2021 19:22:46 +0530	[thread overview]
Message-ID: <1bb0baef-7924-98ab-b125-aa3c2ac405d4@amd.com> (raw)
In-Reply-To: <YST2u5UznQjMKulE@zn.tnic>



On 8/24/2021 7:10 PM, Borislav Petkov wrote:
> On Tue, Aug 24, 2021 at 06:38:41PM +0530, Lazar, Lijo wrote:
>> Without CONFIG_PM_SLEEP and with CONFIG_SUSPEND
> 
> Can you even create such a .config?

The description of  "(drm/amdgpu: fix checking pmops when PM_SLEEP is 
not enabled)" says -


'pm_suspend_target_state' is only available when CONFIG_PM_SLEEP
is set/enabled. OTOH, when both SUSPEND and HIBERNATION are not set,
PM_SLEEP is not set, so this variable cannot be used.

../drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c: In function 
‘amdgpu_acpi_is_s0ix_active’:
../drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:1046:11: error: 
‘pm_suspend_target_state’ undeclared (first use in this function); did 
you mean ‘__KSYM_pm_suspend_target_state’?
     return pm_suspend_target_state == PM_SUSPEND_TO_IDLE;
            ^~~~~~~~~~~~~~~~~~~~~~~
            __KSYM_pm_suspend_target_state

Also use shorter IS_ENABLED(CONFIG_foo) notation for checking the
2 config symbols.

So it does look like that error can be extracted as well in some config.

> 
>> I remember giving a reviewed-by for this one, looks like it never got in.
>> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.spinics.net%2Flists%2Famd-gfx%2Fmsg66166.html&amp;data=04%7C01%7Clijo.lazar%40amd.com%7C4d61b17225944c45335b08d967049ee6%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637654091831465201%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=GCdVG8N7g2E9DaiM1ek1voKQ9stZNfnEwyghQ0pWoxU%3D&amp;reserved=0
> 
> A better version of that one got in:
> 
> 5706cb3c910c ("drm/amdgpu: fix checking pmops when PM_SLEEP is not enabled")
> 

Well, now it doesn't seem to be a better one. The original one checked both.

Thanks,
Lijo

  reply	other threads:[~2021-08-24 14:08 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-23 19:42 ERROR: modpost: "pm_suspend_target_state" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! Borislav Petkov
2021-08-23 19:49 ` Alex Deucher
2021-08-23 20:28   ` Borislav Petkov
2021-08-23 20:31     ` Alex Deucher
2021-08-23 20:46       ` Borislav Petkov
2021-08-23 20:49         ` Alex Deucher
2021-08-24  9:42           ` [PATCH] drm/amdgpu: Fix build with missing pm_suspend_target_state module export Borislav Petkov
2021-08-24 13:08             ` Lazar, Lijo
2021-08-24 13:40               ` Borislav Petkov
2021-08-24 13:52                 ` Lazar, Lijo [this message]
2021-08-24 14:37                   ` Borislav Petkov
2021-08-24 15:16             ` Lazar, Lijo
2021-08-24 15:57               ` Alex Deucher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1bb0baef-7924-98ab-b125-aa3c2ac405d4@amd.com \
    --to=lijo.lazar@amd.com \
    --cc=Pratik.Vishwakarma@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=alexdeucher@gmail.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=bp@alien8.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.