Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1506063

[PATCH 1/2] drm/i915/gvt: add ACPI and 64BIT dependencies

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Arnd Bergmann <arnd@arndb.de>
Newsgroups linux.kernel
Subject [PATCH 1/2] drm/i915/gvt: add ACPI and 64BIT dependencies
Date Fri, 21 Oct 2016 17:30:01 +0200
Message-ID <suJVD-7tM-9@gated-at.bofh.it> (permalink)
X-Original-To Daniel Vetter <daniel.vetter@intel.com>, Jani Nikula <jani.nikula@linux.intel.com>
X-Mailer git-send-email 2.9.0
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
X-Provags-ID V03:K0:haPabR3uF57r3g9O8MLf48j+W1OdTJJinxdPfG+AFjfoaX1iMG9 HWXBx78X+Wpy17F44qFJmEQL1CCF7ru/PcFkcqBjIJKi9LS62iPKN6PbPN4YltPQ/jC6uo7 s1xHnuQEUH6Bw1npdmsxR8bKoGKTW5R5bn2looTTbapAgR2O+nDW09GMxay1edtq9bGEsLa /063JOcrTO7LP6Gl5ZAEg==
X-Ui-Out-Filterresults notjunk:1;V01:K0:p/ypMQAdhbM=:Ci8QTgZFs3WVY6A3ZewmIQ XMMLLVs0rxlWPwqYu+l5yxQiCO5NJP9iJfGPc1mfyWYRLLxQu6akrFr4tH96FDnD+Q/Gc8VHv djHmxxiN0ylyfriGMoMfBp6F+U6KsdquUqJ3Lyc8zvgTzr7YCHKiBreIq60lCjg3HsRe1UlGr 55U7kALnUqkhr1MqVLJy0DEO1T+QMrb+hoeA9+HYSRrbKilDJxuZ/m5Qj8J1+Jcsaj47SJB9B /VMFtWHnboXtKfVzOFMR+8GlqkvI395vjLeyBqGu/PvgSOjLrUyboX1n3idbQO239IHeXWyjB QYK2mPNdoUGOpgD+57MgqOpNGxNGRPejssW7asX/HFzvO0rbUBxsAG0neQrwmdL8yd7R9Rj6V L6HiO9f+VWcTYEc3LCxKlCyqVkiuBkJAG7ssNWTaIrzTUnC7EprSO5eLGX9WqKCXjtPxta3Nw BbeCjkJA5P1TqEo3GFU1LDF6J23Vg6ynyxcsVwhfxVZys4Bvim03DgjeAWzt1GsPymCz/pFYb k9go0YCl8HtupPGGQ8V2p8rz4T3149BnMO6SD8k37XYcQTKZ2KLnJj8g6r24dQh3uSNRHN5lz uC8+bi+eRxlnIcSWIkSHJx2eLfdY92S/nXLKZRAWopfOCUkVFVnOTgwjl4cgZNDXyV22uV0G+ wAwtmo31NQeFmEZYJ2bOF1fXbXqcnC0MsI2nvQK7nkXIaQv+es27G6BngTr5gCsjmZNtoqPH/ BsoHLEJYem0TNmpe
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 38
Organization linux.* mail to news gateway
X-Original-Cc Zhi Wang <zhi.a.wang@intel.com>, Zhenyu Wang <zhenyuw@linux.intel.com>, Arnd Bergmann <arnd@arndb.de>, David Airlie <airlied@linux.ie>, Chris Wilson <chris@chris-wilson.co.uk>, Joonas Lahtinen <joonas.lahtinen@linux.intel.com>, Tvrtko Ursulin <tvrtko.ursulin@intel.com>, Andreas Ziegler <andreas.ziegler@fau.de>, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
X-Original-Date Fri, 21 Oct 2016 17:25:49 +0200
X-Original-Message-ID <20161021152620.3324407-1-arnd@arndb.de>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1506063

Show key headers only | View raw


The newly added gvt code produces lots of serious warnings and errors
when either built on 32-bit x86, or built with ACPI disabled, e.g.

drivers/gpu/drm/i915/gvt/gtt.c: In function ‘read_pte64’:
drivers/gpu/drm/i915/gvt/gtt.c:277:2: error: left shift count >= width of type [-Werror]
drivers/gpu/drm/i915/gvt/gtt.c: In function ‘gen8_gtt_get_pfn’:
drivers/gpu/drm/i915/gvt/gtt.c:360:3: error: left shift count >= width of type [-Werror]
drivers/gpu/drm/i915/gvt/opregion.c: In function ‘intel_gvt_init_opregion’:
drivers/gpu/drm/i915/gvt/opregion.c:183:2: error: implicit declaration of function ‘acpi_os_ioremap’ [-Werror=implicit-function-declaration]

This avoids the problems by simply disallowing those configurations
in Kconfig. I'm sure it's possible to make the code more portable
and support building GVT without those options, but it might not be
useful to do so.

Fixes: 4d60c5fd3f87 ("drm/i915/gvt: vGPU PCI configuration space virtualization")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
If the code is meant to work on 32-bit and non-ACPI kernels, please
treat this as a bug report and disregard the patch.
---
 drivers/gpu/drm/i915/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/Kconfig b/drivers/gpu/drm/i915/Kconfig
index 6d4194288d11..1b9308284dde 100644
--- a/drivers/gpu/drm/i915/Kconfig
+++ b/drivers/gpu/drm/i915/Kconfig
@@ -84,6 +84,7 @@ config DRM_I915_USERPTR
 config DRM_I915_GVT
         bool "Enable Intel GVT-g graphics virtualization host support"
         depends on DRM_I915
+	depends on 64BIT && ACPI
         default n
         help
 	  Choose this option if you want to enable Intel GVT-g graphics
-- 
2.9.0

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] drm/i915/gvt: add ACPI and 64BIT dependencies Arnd Bergmann <arnd@arndb.de> - 2016-10-21 17:30 +0200
  [PATCH 2/2] drm/i915/gvt: fix compilation Arnd Bergmann <arnd@arndb.de> - 2016-10-21 17:30 +0200
    Re: [PATCH 2/2] drm/i915/gvt: fix compilation Zhenyu Wang <zhenyuw@linux.intel.com> - 2016-10-22 07:20 +0200
  Re: [PATCH 1/2] drm/i915/gvt: add ACPI and 64BIT dependencies Zhenyu Wang <zhenyuw@linux.intel.com> - 2016-10-22 07:20 +0200

csiph-web