[PATCH v2] drm/i915/gvt: Fix display port type issue.

Zhenyu Wang zhenyuw at linux.intel.com
Fri Mar 6 01:17:03 UTC 2020


On 2020.03.05 21:16:00 +0800, Tina Zhang wrote:
> According to the vbt provided by GVT-g, the display output type should
> be display port, instead of DVI. Currently, GVT-g display model only
> supports display port emulation, not DVI or HDMI. This patch fixes this
> by telling guest i915 the right output type supported by GVT-g.
> 
> v2: refine the commit message. (Zhenyu)
> 
> Signed-off-by: Tina Zhang <tina.zhang at intel.com>
> ---
>  drivers/gpu/drm/i915/gvt/display.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/gvt/display.c b/drivers/gpu/drm/i915/gvt/display.c
> index 14e139e66e45..86dc80405977 100644
> --- a/drivers/gpu/drm/i915/gvt/display.c
> +++ b/drivers/gpu/drm/i915/gvt/display.c
> @@ -261,7 +261,7 @@ static void emulate_monitor_status_change(struct intel_vgpu *vgpu)
>  			~(TRANS_DDI_BPC_MASK | TRANS_DDI_MODE_SELECT_MASK |
>  			TRANS_DDI_PORT_MASK);
>  		vgpu_vreg_t(vgpu, TRANS_DDI_FUNC_CTL(TRANSCODER_A)) |=
> -			(TRANS_DDI_BPC_8 | TRANS_DDI_MODE_SELECT_DVI |
> +			(TRANS_DDI_BPC_8 | TRANS_DDI_MODE_SELECT_DP_SST |

Why does this only change for one port? what about others?

>  			(PORT_D << TRANS_DDI_PORT_SHIFT) |
>  			TRANS_DDI_FUNC_ENABLE);
>  		if (IS_BROADWELL(dev_priv)) {
> -- 
> 2.17.1
> 


-- 
Open Source Technology Center, Intel ltd.

$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20200306/595ff570/attachment-0001.sig>


More information about the intel-gvt-dev mailing list