[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <724b4600-d983-434a-acf6-68cd87b04636@app.fastmail.com>
Date: Mon, 14 Jul 2025 17:01:34 +0200
From: "Arnd Bergmann" <arnd@...db.de>
To: "Mario Limonciello" <Mario.Limonciello@....com>,
"Arnd Bergmann" <arnd@...nel.org>,
"Alex Deucher" <Alexander.Deucher@....com>,
Christian König <Christian.Koenig@....com>,
"Dave Airlie" <airlied@...il.com>, "Simona Vetter" <simona@...ll.ch>,
"Lijo Lazar" <Lijo.Lazar@....com>,
"Zhang, GuoQing (Sam)" <GuoQing.Zhang@....com>
Cc: "Olsak, Marek" <Marek.Olsak@....com>,
"amd-gfx@...ts.freedesktop.org" <amd-gfx@...ts.freedesktop.org>,
"dri-devel@...ts.freedesktop.org" <dri-devel@...ts.freedesktop.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] drm/amdgpu: fix link error for !PM_SLEEP
On Mon, Jul 14, 2025, at 16:59, Limonciello, Mario wrote:
> On 7/14/25 3:16 AM, Arnd Bergmann wrote:
>> From: Arnd Bergmann <arnd@...db.de>
>>
>> When power management is not enabled in the kernel build, the newly
>> added hibernation changes cause a link failure:
>>
>> arm-linux-gnueabi-ld: drivers/gpu/drm/amd/amdgpu/amdgpu_drv.o: in function `amdgpu_pmops_thaw':
>> amdgpu_drv.c:(.text+0x1514): undefined reference to `pm_hibernate_is_recovering'
>>
>> Make the power management code in this driver conditional on
>> CONFIG_PM and CONFIG_PM_SLEEP
>>
>> Fixes: 530694f54dd5 ("drm/amdgpu: do not resume device in thaw for normal hibernation")
>> Signed-off-by: Arnd Bergmann <arnd@...db.de>
>
> We're going to fix it using this stub instead.
>
> https://lore.kernel.org/linux-pm/20250712233715.821424-1-superm1@kernel.org/
>
> It's in drm-misc-next as of this weekend and it should show up in
> linux-next in the next day or two.
That patch makes sense as well, but I think mine is useful as an
improvement even if it doesn't address a link failure but only
reduces the object size by reducing the amount of dead code.
Arnd
Powered by blists - more mailing lists