[Intel-gfx] Help needed for unusual hack

harrykipper harrykipper at gmail.com
Sat Aug 1 12:49:55 PDT 2015


On Sat, 1 Aug, 2015 at 4:01 PM, Lukas Wunner <lukas at wunner.de> wrote:
> Hi,

Thanks very much Lukas, I tried both

> 
> Change is_edp() to something like:
> 
> -	return intel_dig_port->base.type == INTEL_OUTPUT_EDP;
> +	return intel_dig_port->base.type == INTEL_OUTPUT_EDP ||
> +	       strncmp(intel_dp->base.name, "DP-1", 4) == 0;


This fails as ‘struct intel_dp’ has no member named ‘base’. 
Tried some variants, but I am clueless.. :-/

> 
> 
> An alternative solution might be to modify intel_bios.c and change 
> what
> has been read vom VBT, see parse_ddi_port().

This seems easier, parse_ddi_port() assigns an 'is_edp' variable with
is_edp = is_dp && (child->common.device_type & 
DEVICE_TYPE_INTERNAL_CONNECTOR);

Assuming that setting it would suffice for my port to be detected as 
eDPI tried to change it to something like:
is_edp = is_dp && child->common.dvo_port == DVO_PORT_DPC;
or
is_edp = is_dp && (port == PORT_C);

is_edp = is_dp && port_name(port) == "DP-3"

since it's the third DP, but no success.

I must admit I am a bit clueless, but the solution seems within 
grasp....


Thanks very much



More information about the Intel-gfx mailing list