From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Hoffmann Subject: Re: [Intel-gfx] [PATCH V5] drm/i915: Disable stolen memory when i915 runs on qemu Date: Tue, 18 Apr 2017 13:26:17 +0200 Message-ID: <1492514777.27392.34.camel@redhat.com> References: <1491358106-26329-1-git-send-email-xiong.y.zhang@intel.com> <1491999600-4406-1-git-send-email-xiong.y.zhang@intel.com> <20170412120159.03765ea7@t450s.home> <8082FF9BCB2B054996454E47167FF4EC1C4BDCC8@SHSMSX104.ccr.corp.intel.com> <20170413085312.4f4fa028@t450s.home> <8082FF9BCB2B054996454E47167FF4EC1C4BF299@SHSMSX104.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Return-path: In-Reply-To: <8082FF9BCB2B054996454E47167FF4EC1C4BF299@SHSMSX104.ccr.corp.intel.com> Sender: stable-owner@vger.kernel.org To: "Zhang, Xiong Y" Cc: Alex Williamson , "intel-gfx@lists.freedesktop.org" , "joonas.lahtinen@linux.intel.com" , "jani.nikula@linux.intel.com" , "zhenyuw@linux.intel.com" , "daniel@ffwll.ch" , "stable@vger.kernel.org" , "intel-gvt-dev@lists.freedesktop.org" List-Id: intel-gfx@lists.freedesktop.org Hi, > [Zhang, Xiong Y] Thanks for your teach and propose. > For smbios, could you teach me which type and field could be used ? qemu adds a specific subsystem id to all virtual devices, so you can use that to figure you are running on qemu. One good candidate to check is the host bridge (easy to find due to fixed pci address), another one is the isa bridge aka lpc (igd already searches for that one for other reasons). In fact there already is a check for qemu in intel_detect_pch() ... cheers, Gerd