From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C20A4E909D4 for ; Tue, 17 Feb 2026 16:58:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1D23F10E51E; Tue, 17 Feb 2026 16:58:54 +0000 (UTC) Received: from psionic.psi5.com (psionic.psi5.com [185.187.169.70]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4A6DA10E51F; Tue, 17 Feb 2026 16:58:53 +0000 (UTC) Received: from localhost.localdomain (unknown [IPv6:2400:2410:b120:f200:2e09:4dff:fe00:2e9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by psionic.psi5.com (Postfix) with ESMTPSA id 8FA983F1BA; Tue, 17 Feb 2026 17:52:23 +0100 (CET) From: Simon Richter To: intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: Simon Richter Subject: [PATCH 0/1] Avoid oops on illegal VGA register access Date: Wed, 18 Feb 2026 01:51:01 +0900 Message-ID: <20260217165214.236482-1-Simon.Richter@hogyros.de> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi, this adds a way to avoid the illegal VGA accesses on non-x86 platforms by letting these platforms report that VGA registers cannot be mapped. This patch alone doesn't fully solve the problem, it also needs complementary changes in vgaarb to actually report this, but since the interface is unchanged and it is wrong to ignore the error code anyway, little coordination is needed here. Needs review from Intel whether this is the correct flow, and a decision on whether this should be backported. Simon Simon Richter (1): drm/i915: handle failure from vga_get drivers/gpu/drm/i915/display/intel_vga.c | 29 ++++++++++++++++++++---- 1 file changed, 24 insertions(+), 5 deletions(-) base-commit: 15658979e64a7c97eaa65563e27a5a65e68a0188 -- 2.47.3