On Wed, Jun 14, 2017 at 01:47:30PM +0800, Mustamin B Mustaffa wrote: > From: "Anuar, Nuhairi" <nuhairi.anuar@xxxxxxxxx> > > In GVT guest, when port A is DP, i915 will force it as an EDP panel, > which > will cause DP-1 not working in GVT guest. > This patch fixed this issue by check intel_vgpu_active() in > intel_ddi_compute_config(). > > Signed-off-by: Min He <min.he@xxxxxxxxx> > Signed-off-by: Nuhairi Anuar <nuhairi.anuar@xxxxxxxxx> > --- > drivers/gpu/drm/i915/intel_ddi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c > index 66b367d..1110cbc 100644 > --- a/drivers/gpu/drm/i915/intel_ddi.c > +++ b/drivers/gpu/drm/i915/intel_ddi.c > @@ -2069,7 +2069,7 @@ static bool intel_ddi_compute_config(struct intel_encoder *encoder, > > WARN(type == INTEL_OUTPUT_UNKNOWN, "compute_config() on unknown output!\n"); > > - if (port == PORT_A) > + if (port == PORT_A && !intel_vgpu_active(dev_priv)) > pipe_config->cpu_transcoder = TRANSCODER_EDP; And why exactly are you trying to register DP on port A? > > if (type == INTEL_OUTPUT_HDMI) > -- > 1.9.1 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@xxxxxxxxxxxxxxxxxxxxx > https://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Ville Syrjälä Intel OTC _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx