Quoting Jani Nikula (2021-01-15 12:50:54) > On Thu, 14 Jan 2021, Zhenyu Wang <zhenyuw@xxxxxxxxxxxxxxx> wrote: > > On 2021.01.14 08:58:19 +0800, Xiong Zhang wrote: > >> From: Zhenyu Wang <zhenyuw@xxxxxxxxxxxxxxx> > >> > >> Some vmm like hyperv and crosvm don't supply any ISA bridge to their guest, > >> when igd passthrough is equipped on these vmm, guest i915 display may > >> couldn't work as guest i915 detects PCH_NONE pch type. > >> > >> When i915 runs as guest, this patch guess pch type through gpu type even > >> without ISA bridge. > >> > >> v2: Fix CI warning > >> v3: Add HAS_DISPLAY()= true condition beforce guessing virt pch, then > >> refactori. > >> v4: Fix CI warning > >> > >> Signed-off-by: Zhenyu Wang <zhenyuw@xxxxxxxxxxxxxxx> > >> Signed-off-by: Xiong Zhang <xiong.y.zhang@xxxxxxxxx> > >> --- > >> drivers/gpu/drm/i915/i915_drv.h | 7 +++++- > >> drivers/gpu/drm/i915/intel_pch.c | 39 ++++++++++++++++++-------------- > >> 2 files changed, 28 insertions(+), 18 deletions(-) > >> > > > > Good to me, thanks! I think this should change author to you. :) > > > > Reviewed-by: Zhenyu Wang <zhenyuw@xxxxxxxxxxxxxxx> > > Pushed to drm-intel-next, thanks for the patch and review. I ended up > retaining Zhenyu's authorship, and added > > Co-developed-by: Xiong Zhang <xiong.y.zhang@xxxxxxxxx> This only works for the majority of SKUs which happen to use the PCH that is most common. I NAKed very similar patch some years back asking for a reliable means to detect the PCH type instead. Has there been any attempt to introduce such mechanism? Regards, Joonas _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx