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 CEB75D3B7EA for ; Tue, 9 Dec 2025 10:52:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 710E010E505; Tue, 9 Dec 2025 10:52:14 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="Xw412yuv"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6FD1D10E504; Tue, 9 Dec 2025 10:52:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1765277533; x=1796813533; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=i4f5m0Uf/3l7e9MBwU5PN9K2S4CyadWhFoFyMc78ydk=; b=Xw412yuvBbn2FExZmMjTjjPnOEI2/+KzKRe+0KG8eW8oZoTVjD7aHM+C uWMpJ31Kg80WOPgc+YJ7PioCYXXMwzKUlZS12ew6DpfpfWyR/FFTmGNKA RbXmHpxvjO9pkV24kzRVe5sNE4ewcO6SzNuWRys2Hat0ageo2TGXXXzFz DWtDVcvcI41F0qq5GwEDxAeJ4hxyPtsFB7DYHz2lj0SSYbAbsMiGLZY90 6Is0F4JJwArlPAxneRBrAHN1vBROdqpwrxo7oIb/3oSNTEu3GxG9ypBXp 3VO7H/uJ7GTUTP58PzLnUSl0halN64E7iM9ZVIzlKANQJyXlhbhsgRTMM A==; X-CSE-ConnectionGUID: fQBAnOODSc2S/ze4kuGuoQ== X-CSE-MsgGUID: MMt5GOa2Q6ei0puiCBtvfw== X-IronPort-AV: E=McAfee;i="6800,10657,11636"; a="66412698" X-IronPort-AV: E=Sophos;i="6.20,261,1758610800"; d="scan'208";a="66412698" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Dec 2025 02:52:12 -0800 X-CSE-ConnectionGUID: dRJCU6T0TSa9E6ROc9mlrw== X-CSE-MsgGUID: 4anRQerVTxSZaVWdlnGgNw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.20,261,1758610800"; d="scan'208";a="201117498" Received: from mwiniars-mobl.ger.corp.intel.com (HELO localhost) ([10.245.246.154]) by fmviesa004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Dec 2025 02:52:11 -0800 From: Jani Nikula To: Ville Syrjala , intel-gfx@lists.freedesktop.org Cc: intel-xe@lists.freedesktop.org Subject: Re: [PATCH 12/19] drm/i915/vga: Introduce intel_vga_{read,write}() In-Reply-To: <20251208182637.334-13-ville.syrjala@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20251208182637.334-1-ville.syrjala@linux.intel.com> <20251208182637.334-13-ville.syrjala@linux.intel.com> Date: Tue, 09 Dec 2025 12:52:07 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Mon, 08 Dec 2025, Ville Syrjala wrote: > From: Ville Syrj=C3=A4l=C3=A4 > > VGA register are rather special since they either get accessed > via the global IO addresses, or possibly through MMIO on > pre-g4x platforms. Wrap all VGA register accesses in > intel_vga_{read,write}() to make it obvious where they get > accessed. > > Signed-off-by: Ville Syrj=C3=A4l=C3=A4 Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/i915/display/intel_crt.c | 6 +++-- > drivers/gpu/drm/i915/display/intel_crt_regs.h | 2 -- > drivers/gpu/drm/i915/display/intel_vga.c | 27 +++++++++++++++---- > drivers/gpu/drm/i915/display/intel_vga.h | 3 +++ > 4 files changed, 29 insertions(+), 9 deletions(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_crt.c b/drivers/gpu/drm/i= 915/display/intel_crt.c > index 5f9a03877ea9..dedc26f6a2b2 100644 > --- a/drivers/gpu/drm/i915/display/intel_crt.c > +++ b/drivers/gpu/drm/i915/display/intel_crt.c > @@ -33,6 +33,7 @@ > #include > #include > #include > +#include