Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 731827 Details for
Bug 807223
sys-kernel/gentoo-sources-5.13.9 fails to build amdgpu without config_suspend
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Upstream patch
amdgpu-fix-checking-pmops-when-pm-sleep-not-enabled.patch (text/plain), 2.19 KB, created by
Mike Pagano
on 2021-08-09 12:29:59 UTC
(
hide
)
Description:
Upstream patch
Filename:
MIME Type:
Creator:
Mike Pagano
Created:
2021-08-09 12:29:59 UTC
Size:
2.19 KB
patch
obsolete
>From 5706cb3c910cc8283f344bc37a889a8d523a2c6d Mon Sep 17 00:00:00 2001 >From: Randy Dunlap <rdunlap@infradead.org> >Date: Thu, 29 Jul 2021 20:03:47 -0700 >Subject: drm/amdgpu: fix checking pmops when PM_SLEEP is not enabled >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >'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. > >Fixes: 91e273712ab8dd ("drm/amdgpu: Check pmops for desired suspend state") >Signed-off-by: Randy Dunlap <rdunlap@infradead.org> >Cc: Alex Deucher <alexander.deucher@amd.com> >Cc: Christian König <christian.koenig@amd.com> >Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com> >Cc: amd-gfx@lists.freedesktop.org >Cc: dri-devel@lists.freedesktop.org >Cc: linux-next@vger.kernel.org >Signed-off-by: Alex Deucher <alexander.deucher@amd.com> >Cc: stable@vger.kernel.org >--- > drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >(limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c') > >diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c >index 6cc0d4fa4d0a4..4137e848f6a24 100644 >--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c >+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c >@@ -1040,7 +1040,7 @@ void amdgpu_acpi_detect(void) > */ > bool amdgpu_acpi_is_s0ix_supported(struct amdgpu_device *adev) > { >-#if defined(CONFIG_AMD_PMC) || defined(CONFIG_AMD_PMC_MODULE) >+#if IS_ENABLED(CONFIG_AMD_PMC) && IS_ENABLED(CONFIG_PM_SLEEP) > if (acpi_gbl_FADT.flags & ACPI_FADT_LOW_POWER_S0) { > if (adev->flags & AMD_IS_APU) > return pm_suspend_target_state == PM_SUSPEND_TO_IDLE; >-- >cgit 1.2.3-1.el7 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 807223
: 731827