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 10198E80AAF for ; Wed, 27 Sep 2023 14:17:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7474A10E539; Wed, 27 Sep 2023 14:17:36 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1D4D710E539 for ; Wed, 27 Sep 2023 14:17:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695824254; x=1727360254; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=JRGGlC7C6Ts76nL3C88pcUhjN0eGJyyQtVf4yqxK+es=; b=d8JPwKSgjg4Slk+ZVtit/iN4JPqTLEAARdG7jvHrYcK0kNgBbJhc3THg 5oIJN5dD3clBsnrONEiTozGp75akN9HvxwZyooZeVMRS0y/TNRI97lAkM d5fUhp+NT//Di9QuYMeKStGVsOpEgHUxiTUbPkzTGw+pHp8b7j045Hixl x+8yMTiTgYSK6IfefpnqKlu1UkVr+T18GLICgSndaW3kqtrkzBQhogKel /O3qfd+IIgy9RnCRy3Mx67grCqYscEb3d4I/NxFym20uDGz+DFA3K3WyW QkR6V11xina+jqVqe2vRwP5oQ7EIw5W6TLlgnAsO9DAyznpaPhjeaOX/c Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10846"; a="380715434" X-IronPort-AV: E=Sophos;i="6.03,181,1694761200"; d="scan'208";a="380715434" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2023 07:17:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10846"; a="752612505" X-IronPort-AV: E=Sophos;i="6.03,181,1694761200"; d="scan'208";a="752612505" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.153]) by fmsmga007.fm.intel.com with SMTP; 27 Sep 2023 07:17:31 -0700 Received: by stinkbox (sSMTP sendmail emulation); Wed, 27 Sep 2023 17:17:30 +0300 Date: Wed, 27 Sep 2023 17:17:30 +0300 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Uma Shankar Message-ID: References: <20230926192054.1359127-1-uma.shankar@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230926192054.1359127-1-uma.shankar@intel.com> X-Patchwork-Hint: comment Subject: Re: [Intel-gfx] [v3] drm/i915/display: Created exclusive version of vga decode setup 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: , Cc: jani.nikula@intel.com, intel-gfx@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Wed, Sep 27, 2023 at 12:50:54AM +0530, Uma Shankar wrote: > Some of the VGA functionality is not needed by the proposed > Intel Xe driver, I wouldn't put it that way. IIRC the main issue is that X becomes a slideshow if it thinks there are multiple GPUs that have VGA decoding enabled as it insists on adjusting the VGA routing pretty much for every little operation involving any of the GPUs. The fact that our current VGA arbiter implementation is just smoke and mirrors would cause real problems if anyone actually needs to talk another GPU using legacy VGA resources. > while this will be utilized by i915. > Created a version of the function to be used exclusively by i915. > Xe will implement it's own respective version. > > v2: Addressed Jani Nikula's review comments. > > v3: Dropped a duplicate function (Jani) > > Signed-off-by: Uma Shankar > --- > drivers/gpu/drm/i915/display/intel_vga.c | 18 +----------------- > drivers/gpu/drm/i915/soc/intel_gmch.c | 14 ++++++++++++++ > drivers/gpu/drm/i915/soc/intel_gmch.h | 2 ++ > 3 files changed, 17 insertions(+), 17 deletions(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_vga.c b/drivers/gpu/drm/i915/display/intel_vga.c > index 286a0bdd28c6..4b98833bfa8c 100644 > --- a/drivers/gpu/drm/i915/display/intel_vga.c > +++ b/drivers/gpu/drm/i915/display/intel_vga.c > @@ -3,11 +3,9 @@ > * Copyright © 2019 Intel Corporation > */ > > -#include > #include > > #include