nux distro kernel.
https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.18.y2026-02-26T22:59:42Zdrm/amdgpu: Fix memory leak in amdgpu_acpi_enumerate_xcc()2026-02-26T22:59:42ZZilin Guanzilin@seu.edu.cn2026-01-29T09:25:32Zurn:sha1:d1370ef2ecf7d4df25e3e1e430cd191b1e7f8596
[ Upstream commit c9be63d565789b56ca7b0197e2cb78a3671f95a8 ]
In amdgpu_acpi_enumerate_xcc(), if amdgpu_acpi_dev_init() returns -ENOMEM,
the function returns directly without releasing the allocated xcc_info,
resulting in a memory leak.
Fix this by ensuring that xcc_info is properly freed in the error paths.
Compile tested only. Issue found using a prototype static analysis tool
and code review.
Fixes: 4d5275ab0b18 ("drm/amdgpu: Add parsing of acpi xcc objects")
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Zilin Guan <zilin@seu.edu.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drm/amd/amdgpu: Initialize swnode for ISP MFD device2025-07-16T20:17:35ZPratap Nirujogipratap.nirujogi@amd.com2025-06-24T23:15:00Zurn:sha1:e36519f5c8035f1685b39690ed330ac3b2c978a2
Create amd_isp_capture MFD device with swnode initialized to
isp specific software_node part of fwnode graph in amd_isp4
x86/platform driver. The isp driver use this swnode handle
to retrieve the critical properties (data-lanes, mipi phyid,
link-frequencies etc.) required for camera to work on AMD ISP4
based targets.
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Pratap Nirujogi <pratap.nirujogi@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amdgpu: Pass adev pointer to functions2025-07-07T17:41:37ZLijo Lazarlijo.lazar@amd.com2025-06-30T13:41:33Zurn:sha1:127ed492ad2df0aa2351a1ad32a793ae7d91161b
Pass amdgpu device context instead of drm device context to some
amdgpu_device_* functions. DRM device context is not required in those
functions. No functional change.
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/amdgpu: Add GPIO resources required for amdisp2025-05-28T20:01:39ZPratap Nirujogipratap.nirujogi@amd.com2025-03-09T20:53:01Zurn:sha1:3e9d9df850f3f93261a3259751394643f100a52a
ISP is a child device to GFX, and its device specific information
is not available in ACPI. Adding the 2 GPIO resources required for
ISP_v4_1_1 in amdgpu_isp driver.
- GPIO 0 to allow sensor driver to enable and disable sensor module.
- GPIO 85 to allow ISP driver to enable and disable ISP RGB streaming mode.
Signed-off-by: Pratap Nirujogi <pratap.nirujogi@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Revert "drm/amd: Stop evicting resources on APUs in suspend"2025-05-07T21:42:30ZAlex Deucheralexander.deucher@amd.com2025-05-01T17:00:16Zurn:sha1:ce8f7d95899c2869b47ea6ce0b3e5bf304b2fff4
This reverts commit 3a9626c816db901def438dc2513622e281186d39.
This breaks S4 because we end up setting the s3/s0ix flags
even when we are entering s4 since prepare is used by both
flows. The causes both the S3/s0ix and s4 flags to be set
which breaks several checks in the driver which assume they
are mutually exclusive.
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3634
Cc: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd: Pass luminance data to amdgpu_dm_backlight_caps2025-03-05T15:42:42ZMario Limonciellomario.limonciello@amd.com2025-02-28T18:51:42Zurn:sha1:f729e63743f0fbd504a1464e9495c456f63ff7ef
The ATIF method on some systems will provide a backlight curve. Pass
this curve into amdgpu_dm add it to the structures.
Reviewed-by: Alex Hung <alex.hung@amd.com>
Link: https://lore.kernel.org/r/20250228185145.186319-3-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd: Copy entire structure in amdgpu_acpi_get_backlight_caps()2025-03-05T15:42:37ZMario Limonciellomario.limonciello@amd.com2025-02-28T18:51:41Zurn:sha1:1c79b5fcdf1a29525dbb6e8243d0e63c0e9a5000
As new members are introduced to the structure copying the entire
structure will help avoid missing them.
Reviewed-by: Alex Hung <alex.hung@amd.com>
Link: https://lore.kernel.org/r/20250228185145.186319-2-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>