Re: 6.18/regression/bisected – BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:321 after 6d31602a9f57

From: Mikhail Gavrilov

Date: Mon Oct 13 2025 - 07:04:03 EST


On Tue, Oct 7, 2025 at 10:55 PM Pillai, Aurabindo
<Aurabindo.Pillai@xxxxxxx> wrote:
>
> [AMD Official Use Only - AMD Internal Distribution Only]
>
> Hi Mikhail,
>
> schedule_dc_vmin_vmax() has an allocation which is incorrectly using GFP_KERNEL, which is likely the reason for the "sleeping function called from invalid context". We have a fix queued for this week's update (switching it to GFP_NOWAIT).
>

Hi Aurabindo,

6.18.0-rc1 still requires reverting commits 9d6939179491 and 6d31602a9f57
to avoid the “sleeping function called from invalid context” warnings.

The good news is that the separate WARN previously triggered at
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:138 amdgpu_vm_set_pasid()
no longer appears in recent builds.
This WARN was a merge-only side effect (interaction between drm-next
and amd-drm-next),
though it’s unclear which exact change resolved it.

Logs for both cases are attached.

--
Best Regards,
Mike Gavrilov.

Attachment: dmesg-6.18.0-rc1-revert-9d6939179491-6d31602a9f57.zip
Description: Zip archive

Attachment: dmesg-6.18.0-rc1.zip
Description: Zip archive