From nobody Mon Feb 9 16:34:39 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 306AF1AB6F1 for ; Tue, 6 Jan 2026 06:19:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767680382; cv=none; b=c5I0E6YN8UOAOeMnLH+xbssuRSdVLTidoIpGqxZZTLDVzTMBiT5vdStobO1IdEnc+lSrcgJhhERBFjgSZMBhg5p6rqLI3zMUMfUCUSpLoH6a7fAOmAumikZU82pf4QCuG9SExEgBrTRkSeEoD1vBeNy/IzWecQi4C3Fl8zLgWCQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767680382; c=relaxed/simple; bh=Lb9y6QjIHVxs19PYkMuZkTsM4jjtnJJgID8rCPwwfqE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=B1g+V+UqesV4strW1juA7PwQ9lJ7qZSgdsP9KtlD5dPPvX6Y/0Lf9+4UuBCqObUQq0tnELH8hy7W1jM0ESvPPk71xkxQKRC2GXfGT4zqF+iiPiGY7ip2farVBas9vY/q6oPh4xJO5o+A2HgmAlt2xUm9otU2+TMTVqaYN5yhbzc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=off82Ed6; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="off82Ed6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28AC2C19421; Tue, 6 Jan 2026 06:19:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767680381; bh=Lb9y6QjIHVxs19PYkMuZkTsM4jjtnJJgID8rCPwwfqE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=off82Ed6psfiILeSEaDWaxGtFe2Lga/9ajHRiJ8oLsPOEaIF7dfz8sFvcvVz/UpGb 9j3l1OTQjS8JXlZTQk+WSkehvuSOoufm7Vsab/4L4YFuE6QHN6/xiEN1AwA2+Ku31i VDXsnCMOH8eMjCQKlayXngefSSQKE3pvbfLLt1jspYJqTbTWGGe+geFF30u8X21pDw BAFd6xEukjtSSorq5cfOJc5NXXZo/GQx0XhFsfoWKszOipJBX66TVj0997GbmvHAIp JzjFfGz4nh8FqAoVvFKP1YnsmRuCoVWawaYQC14zdUTT8WT2hJ14e1e2+b+Uq2yOwg I0W2z119EPpCA== From: Nathan Chancellor Date: Mon, 05 Jan 2026 23:19:27 -0700 Subject: [PATCH 2/2] drm/panic: Fix expected string for QR_CODE in drm_panic_type_map Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260105-drm_panic-handle-invalid-drm_panic_screen-v1-2-55228bd4b0f8@kernel.org> References: <20260105-drm_panic-handle-invalid-drm_panic_screen-v1-0-55228bd4b0f8@kernel.org> In-Reply-To: <20260105-drm_panic-handle-invalid-drm_panic_screen-v1-0-55228bd4b0f8@kernel.org> To: Jocelyn Falempe , Javier Martinez Canillas , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Tvrtko Ursulin Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Nathan Chancellor X-Mailer: b4 0.15-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1462; i=nathan@kernel.org; h=from:subject:message-id; bh=Lb9y6QjIHVxs19PYkMuZkTsM4jjtnJJgID8rCPwwfqE=; b=owGbwMvMwCUmm602sfCA1DTG02pJDJkxK8t/fP90JeUB/7yzAtc77LgU3i3v1OnJvV95/jmnf +uJtdWiHaUsDGJcDLJiiizVj1WPGxrOOct449QkmDmsTCBDGLg4BWAit1sZGWanSKxkmP9CxODa BnfFki3ZPsapv748/+9k90HH1Sld/RXD/zq7Xinvm5Gz1ZZqqcq9sTPVXnDxfOBLXpPVlxgYswO /cgAA X-Developer-Key: i=nathan@kernel.org; a=openpgp; fpr=2437CB76E544CB6AB3D9DFD399739260CB6CB716 The help text of CONFIG_DRM_PANIC_SCREEN_QR_CODE documents the expected value to CONFIG_DRM_PANIC_SCREEN as "qr_code" but drm_panic_type_map checks for "qr". Adjust drm_panic_type_map and the module description to match so that existing configurations do not stop working. Fixes: e85e9ccf3f84 ("drm/panic: Report invalid or unsupported panic modes") Signed-off-by: Nathan Chancellor Reviewed-by: Jocelyn Falempe Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/drm_panic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_panic.c b/drivers/gpu/drm/drm_panic.c index 0cd574dd9d88..d6d3b8d85dea 100644 --- a/drivers/gpu/drm/drm_panic.c +++ b/drivers/gpu/drm/drm_panic.c @@ -823,7 +823,7 @@ static const char *drm_panic_type_map[] =3D { [DRM_PANIC_TYPE_KMSG] =3D "kmsg", [DRM_PANIC_TYPE_USER] =3D "user", #if IS_ENABLED(CONFIG_DRM_PANIC_SCREEN_QR_CODE) - [DRM_PANIC_TYPE_QR] =3D "qr", + [DRM_PANIC_TYPE_QR] =3D "qr_code", #endif }; =20 @@ -855,7 +855,7 @@ static const struct kernel_param_ops drm_panic_ops =3D { module_param_cb(panic_screen, &drm_panic_ops, NULL, 0644); MODULE_PARM_DESC(panic_screen, #if IS_ENABLED(CONFIG_DRM_PANIC_SCREEN_QR_CODE) - "Choose what will be displayed by drm_panic, 'user', 'kmsg' or 'qr' [de= fault=3D" + "Choose what will be displayed by drm_panic, 'user', 'kmsg' or 'qr_code= ' [default=3D" #else "Choose what will be displayed by drm_panic, 'user' or 'kmsg' [default= =3D" #endif --=20 2.52.0