From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [Intel-gfx] [RFC][PATCH] gpu:drm:i915:intel_detect_pch: back to check devfn instead of check class type Date: Mon, 7 Jul 2014 19:54:02 +0200 Message-ID: <20140707175402.GS5821@phenom.ffwll.local> References: <1403171631-3452-1-git-send-email-tiejun.chen@intel.com> <53A42DAA.80406@redhat.com> <53A692F9.3060200@intel.com> <53AA70C0.2000806@redhat.com> <20140707144917.GZ5821@phenom.ffwll.local> <53BAB569.5000709@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-we0-f170.google.com (mail-we0-f170.google.com [74.125.82.170]) by gabe.freedesktop.org (Postfix) with ESMTP id E692F6E44E for ; Mon, 7 Jul 2014 10:53:52 -0700 (PDT) Received: by mail-we0-f170.google.com with SMTP id w61so4815888wes.15 for ; Mon, 07 Jul 2014 10:53:51 -0700 (PDT) Content-Disposition: inline In-Reply-To: <53BAB569.5000709@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Paolo Bonzini Cc: xen-devel@lists.xensource.com, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, qemu-devel@nongnu.org, dri-devel@lists.freedesktop.org, "Chen, Tiejun" List-Id: dri-devel@lists.freedesktop.org On Mon, Jul 07, 2014 at 04:57:45PM +0200, Paolo Bonzini wrote: > Il 07/07/2014 16:49, Daniel Vetter ha scritto: > >So the correct fix to forward intel gpus to guests is indeed to somehow > >fake the pch pci ids since the driver really needs them. Gross design, but > >that's how the hardware works. > > A way that could work for virtualization is this: if you find the card has a > magic subsystem vendor id, fetch the subsystem device id and use _that_ as > the PCH device id. > > Would that work for you? I guess for quemu it also depends upon what windows does since we can't change that. If we care about that part. Another consideration is supporting older kernels, if that's possible at all. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch