All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org
Cc: Sasha Levin <sashal@kernel.org>,
	Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com>,
	Aurabindo Pillai <aurabindo.pillai@amd.com>,
	James Lin <pinglei.lin@amd.com>,
	Daniel Wheeler <daniel.wheeler@amd.com>,
	Alex Deucher <alexander.deucher@amd.com>
Subject: Re: [PATCH 6.12.y] drm/amd/display: Wrap DCN32 phantom-plane allocation in DC_RUN_WITH_PREEMPTION_ENABLED
Date: Sun, 24 May 2026 08:09:13 -0400	[thread overview]
Message-ID: <20260524-stable-item003-reply@kernel.org> (raw)
In-Reply-To: <20260520212725.182308-1-mikhail.v.gavrilov@gmail.com>

> [How]
> Wrap the dc_state_create_phantom_plane() call with the
> DC_RUN_WITH_PREEMPTION_ENABLED() macro to allow preemption during
> this memory allocation.

> +#if !defined(DC_RUN_WITH_PREEMPTION_ENABLED)
> +#define DC_RUN_WITH_PREEMPTION_ENABLED(code) code
> +#endif

Thanks for the backport, but this isn't going to fix the BUG_ON on
6.12.y as-is. DC_RUN_WITH_PREEMPTION_ENABLED() only gained its real
definition in v6.16 (around the dc_fpu_preempt rework); it does not
exist on 6.12 at all. With the "!defined(...) -> identity" fallback
above, the wrap reduces to a plain call to dc_state_create_phantom_plane()
on this tree, which is exactly the pre-patch code path that hits
BUG_ON(in_interrupt()) in the vmalloc path.

So the backport as written is a no-op on 6.12.y and won't address the
DCN32 crash you're seeing. To actually fix it on 6.12.y we need the
underlying preempt-enabled-region mechanism, or a different
6.12-specific fix that allows the ~335 KiB allocation outside the
DC_FP_START()/DC_FP_END() region (for example by hoisting the
allocation, or using a smaller/preallocated buffer).

Could you put together a v2 along those lines?

-- 
Thanks,
Sasha

      reply	other threads:[~2026-05-24 12:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-20 14:37 FAILED: patch "[PATCH] drm/amd/display: Wrap DCN32 phantom-plane allocation in" failed to apply to 6.12-stable tree gregkh
2026-05-20 21:27 ` [PATCH 6.12.y] drm/amd/display: Wrap DCN32 phantom-plane allocation in DC_RUN_WITH_PREEMPTION_ENABLED Mikhail Gavrilov
2026-05-24 12:09   ` Sasha Levin [this message]

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=20260524-stable-item003-reply@kernel.org \
    --to=sashal@kernel.org \
    --cc=alexander.deucher@amd.com \
    --cc=aurabindo.pillai@amd.com \
    --cc=daniel.wheeler@amd.com \
    --cc=mikhail.v.gavrilov@gmail.com \
    --cc=pinglei.lin@amd.com \
    --cc=stable@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.