i915 init-time configuration (v2)
Subsystems (2)
cover i915 init-time configuration (v2)
Background:
This capability is targeted at deeply embedded appliance like devices that make use of Intel integrated graphics. There are a few use cases that are not currently supported by the i915 driver. For example, they may not be running user space code that is capable of querying and setting the various DRM properties and would like them set during the driver initialization. Also they may be using a custom firmware bootloader that does not include any graphics initialization or VBT information.
This level of initialization configuration has been available in the Intel EMGD kernel driver and a similar level of configurability will be expected as designs transition to the i915 driver.
This patch set provides a framework that makes use of ACPI property tables containing configuration information. It also includes some examples on how this may be applied to various aspects of the i915 driver initialization.
V2 removes the support for replacing the internal workaround list and the support for overriding the VBT values. Instead there are patches to configure the specific items that the EMGD kernel driver currently allows customers to override. There are also patches to make the values of those items available via debugfs. I've also removed the code that embeds an ACPI property table into the driver as the ACPICA code doesn't really support loading and unloading a table like this and would fail after a couple of driver load/unload cycles.
Series description:
Patch 1 is the framework. It loads the ACPI property table and builds some lists containing the configuration found in that table. There are functions for looking up and applying the configuration.
Patch 2 checks for a CRTC bits-per-color configuration and uses that if EDID does not provide the value.
Patch 3 replaces the attach_property function with a call to a configuration function that can override the default property value with one from the configuration table.
Patch 4 is an example of using the configuration to specify a default value for the DP panel fitter property.
Patch 5 allows the configuration table to override the DP max link rate value.
Patch 6 allows the configuration table to override the eDP panel power sequence delay values.
Patch 7 allows the configuration table to override the eDP backlight max (inverter frequency) and level (duty cycle) values.
Patch 8 adds the eDP panel power sequence values to the debugfs output (i915_display_info)
Patch 9 adds the eDP backlight values to the debugfs output (i915_display_info)
Patch 10 is an example ACPI property table to give some context to the above code. It can be compiled and placed in /lib/firmware/drm_i915.aml for testing the code.
Bob Paauwe (10):
drm/i915/config: Initial framework
drm/i915/config: Add init-time configuration of bits per color. drm/i915/config: Add init-time configuration of general connector
properties.
drm/i915/config: Add init-time configuration of dp panel fitter
property.
drm/i915/config: Add init-time configuration of DP max link rate. drm/i915/config: Add init-time configuration of eDP PPS delays. drm/i915/config: Add init-time configuration of eDP backlight
settings.
drm/i915: Add PPS delay values to debugfs.
drm/i915: Add backlight max and level to debugfs output. drm/i915/config: An example/test ACPI property table.
drivers/gpu/drm/i915/Makefile | 3 +- drivers/gpu/drm/i915/i915-properties.asl | 167 +++++++++ drivers/gpu/drm/i915/i915_debugfs.c | 18 +- drivers/gpu/drm/i915/i915_dma.c | 4 + drivers/gpu/drm/i915/i915_drv.h | 17 + drivers/gpu/drm/i915/i915_params.c | 6 + drivers/gpu/drm/i915/intel_config.c | 558 +++++++++++++++++++++++++++++++ drivers/gpu/drm/i915/intel_display.c | 14 + drivers/gpu/drm/i915/intel_dp.c | 36 +- drivers/gpu/drm/i915/intel_drv.h | 27 ++ drivers/gpu/drm/i915/intel_modes.c | 4 +- drivers/gpu/drm/i915/intel_panel.c | 8 + 12 files changed, 852 insertions(+), 10 deletions(-) create mode 100644 drivers/gpu/drm/i915/i915-properties.asl create mode 100644 drivers/gpu/drm/i915/intel_config.c
Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC 1/10 drm/i915/config: Initial framework
This adds an init-time configuration framework that parses configuration data from an ACPI property table. The table is assumed to have well defined sub-device property tables that correspond to the various driver components. Initially the following sub-device tables are defined:
CRTC (CRTC)
The CRTC sub-device table contains additional sub-device tables where each one corresponds to a CRTC. Each CRTC sub-device must include a property called "id" whose value matches the driver's crtc id. Additional properties for the CRTC are used to configure the crtc.
Connector (CNCT)
The CNCT sub-device table contains additional sub-device tables where each one corresponds to a connector. Each of the connector sub-device tables must include a property called "name" whose value matches a connector name assigned by the driver (see later patch for output name function). Additional connector properties can be set through these tables.
Plane (PLNS)
The PLNS sub-device table contains additional sub-device tables where each one corresponds to a plane. [this needs additional work]
In addition, the main device property table for the device may contain configuration information that applies to general driver configuration.
The framework includes a couple of helper functions to access the configuration data.
intel_config_get_integer() will look up a configuration property and return the integer value associated with it.
intel_config_init_<component>_property() will look up a configuration property and assign the value to a drm property of the same name. These functions are used to initialize drm property instances to specific values.
v2: Add plane/connector properties to proper lists. (Bob)
Abstract out the list cleanup (Jani)
Squash patch that abstracted list allocation (Jani) Use module parameter for firmware file if it exist (Jani) Use defined name to access table handle (Bob) Remove the acpi table bind/unbind (Bob)
Make firmware struct part of the config (Bob) Release firmware on shutdown (Bob)
Free allocated intel_config_info on shutdown (Bob)
--- drivers/gpu/drm/i915/Makefile | 3 +- drivers/gpu/drm/i915/i915_dma.c | 4 + drivers/gpu/drm/i915/i915_drv.h | 17 ++ drivers/gpu/drm/i915/i915_params.c | 6 + drivers/gpu/drm/i915/intel_config.c | 558 ++++++++++++++++++++++++++++++++++++ drivers/gpu/drm/i915/intel_drv.h | 27 ++ 6 files changed, 614 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/i915/intel_config.c
drivers/gpu/drm/i915/Makefile +2 -1
@@ -12,7 +12,8 @@ i915-y := i915_drv.o \ i915_suspend.o \ i915_sysfs.o \ intel_pm.o \ - intel_runtime_pm.o + intel_runtime_pm.o \ + intel_config.o i915-$(CONFIG_COMPAT) += i915_ioc32.o i915-$(CONFIG_DEBUG_FS) += i915_debugfs.o
drivers/gpu/drm/i915/i915_dma.c +4 -0
@@ -803,6 +803,8 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags) dev->dev_private = dev_priv; dev_priv->dev = dev; +intel_config_init (dev); +/* Setup the write-once "constant" device info */ device_info = (struct intel_device_info *)&dev_priv->info;memcpy (device_info, info,sizeof (dev_priv->info));
@@ -1078,6 +1080,8 @@ int i915_driver_unload(struct drm_device *dev)intel_fbdev_fini (dev); +intel_config_shutdown (dev); +drm_vblank_cleanup (dev);intel_modeset_cleanup (dev);
drivers/gpu/drm/i915/i915_drv.h +17 -0
@@ -1557,6 +1557,21 @@ struct i915_virtual_gpu {bool active; }; +struct intel_config_node { +struct acpi_device *adev; +struct list_head node; +struct list_head list; +}; + +struct intel_config_info { +const struct firmware *fw; +struct intel_config_node base; +struct list_head crtc_list; +struct list_head connector_list; +struct list_head plane_list; +}; + +struct drm_i915_private {struct drm_device *dev;struct kmem_cache *objects;
@@ -1800,6 +1815,7 @@ struct drm_i915_private {u32 long_hpd_port_mask;u32 short_hpd_port_mask;struct work_struct dig_port_work; +struct intel_config_info *config_info;/* * if we get a HPD irq from DP and a HPD irq from non-DP
@@ -2477,6 +2493,7 @@ struct i915_params {int enable_ips;int invert_brightness;int enable_cmd_parser; +char cfg_firmware[PATH_MAX ];/* leave bools at the end to not create holes */ bool enable_hangcheck;bool fastboot;
drivers/gpu/drm/i915/i915_params.c +6 -0
@@ -53,6 +53,7 @@ struct i915_params i915 __read_mostly = { .mmio_debug = 0, .verbose_state_checks = 1, .nuclear_pageflip = 0, + .cfg_firmware = "", };module_param_named (modeset, i915.modeset, int,0400 );
@@ -184,3 +185,8 @@ MODULE_PARM_DESC(verbose_state_checks,module_param_named_unsafe (nuclear_pageflip, i915.nuclear_pageflip, bool,0600 );MODULE_PARM_DESC (nuclear_pageflip,"Force atomic modeset functionality; only planes work for now (default: false)." ); + +module_param_string (cfg_firmware, i915.cfg_firmware,sizeof (i915.cfg_firmware),0444 ); +MODULE_PARM_DESC (cfg_firmware, +"Load configuration firmware from built-in data or /lib/firmware. " ); +
drivers/gpu/drm/i915/intel_config.c new file +558 -0
558 lines not on this page · raw message
drivers/gpu/drm/i915/intel_drv.h +27 -0
@@ -1407,4 +1407,31 @@ void intel_plane_destroy_state(struct drm_plane *plane, struct drm_plane_state *state);extern const struct drm_plane_helper_funcs intel_plane_helper_funcs; +/* intel_config.c */ +enum cfg_type { +CFG_DRV , +CFG_CRTC , +CFG_CONNECTOR , +CFG_PLANE +}; + +void intel_config_init (struct drm_device *dev); +void intel_config_shutdown (struct drm_device *dev); +bool intel_config_get_integer (struct drm_i915_private *dev_priv, +enum cfg_type cfg_type, +const char *name, +const char *property, +uint32_t *value); +uint64_t intel_config_init_connector_property (struct drm_connector *connector, +struct drm_property *property, +uint64_t dflt); +uint64_t intel_config_init_plane_property (struct drm_plane *plane, +const char *name, +struct drm_property *property, +uint64_t dflt); +uint64_t intel_config_init_crtc_property (struct drm_crtc *crtc, +const char *name, +struct drm_property *property, +uint64_t dflt); +#endif /* __INTEL_DRV_H__ */
Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC 2/10 drm/i915/config: Add init-time configuration of bits per color.
In reply to Bob PaauweAllow the init-time configuration to specify the bits per color value that gets used if bits per color is not present in EDID data (or if EDID is not present).
v2: Use connector->base.name for connector name (Jani)
--- drivers/gpu/drm/i915/intel_display.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
drivers/gpu/drm/i915/intel_display.c +14 -0
@@ -10744,6 +10744,20 @@ connected_sink_compute_bpp(struct intel_connector *connector, connector->base.base.id, connector->base.name); +/* If !bpc then see if one was specified in the static configuation */ +if (connector->base.display_info.bpc ==0 ) { +/* +* This is making the assumption that the static configuration +* will use the names defined in the drm_connector_enum_list +* array to identify the connector. +*/ +intel_config_get_integer (to_i915 (connector->base.dev), +CFG_CONNECTOR , + connector->base.name, +"bits_per_color" , + &connector->base.display_info.bpc); + } +/* Don't use an invalid EDID bpc value */ if (connector->base.display_info.bpc && connector->base.display_info.bpc *3 < bpp) {
Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC 3/10 drm/i915/config: Add init-time configuration of general connector properties.
In reply to Bob PaauweSet the initial value of the force audio and broadcast rgb properties using property values found in the init-time configuration.
v2: Use drm connector name (Jani)
--- drivers/gpu/drm/i915/intel_modes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/intel_modes.c +2 -2
@@ -96,7 +96,7 @@ intel_attach_force_audio_property(struct drm_connector *connector) dev_priv->force_audio_property = prop; } -drm_object_attach_property (&connector->base, prop,0 ); +intel_config_init_connector_property (connector, prop,0 ); }static const struct drm_prop_enum_list broadcast_rgb_names[] = {
@@ -124,5 +124,5 @@ intel_attach_broadcast_rgb_property(struct drm_connector *connector) dev_priv->broadcast_rgb_property = prop; } -drm_object_attach_property (&connector->base, prop,0 ); +intel_config_init_connector_property (connector, prop,0 ); }
Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC 4/10 drm/i915/config: Add init-time configuration of dp panel fitter property.
In reply to Bob PaauweUse the init-time configuration setting for scaling_mode to set the initial value of the scaling_mode connector property.
v2: Use drm connector name (Jani)
--- drivers/gpu/drm/i915/intel_dp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/intel_dp.c +4 -3
@@ -4785,6 +4785,7 @@ void intel_dp_add_properties(struct intel_dp *intel_dp, struct drm_connector *connector) { struct intel_connector *intel_connector = to_intel_connector(connector); +uint64_t fitting_mode;intel_attach_force_audio_property (connector);intel_attach_broadcast_rgb_property (connector);
@@ -4792,11 +4793,11 @@ intel_dp_add_properties(struct intel_dp *intel_dp, struct drm_connector *connectif (is_edp (intel_dp)) {drm_mode_create_scaling_mode_property (connector->dev); -drm_object_attach_property ( - &connector->base, + fitting_mode =intel_config_init_connector_property ( + connector, connector->dev->mode_config.scaling_mode_property,DRM_MODE_SCALE_ASPECT ); - intel_connector->panel.fitting_mode =DRM_MODE_SCALE_ASPECT ; + intel_connector->panel.fitting_mode = (int )fitting_mode; } }
Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC 5/10 drm/i915/config: Add init-time configuration of DP max link rate.
In reply to Bob PaauweIf the sink does not provide a maximum link rate, then check the connector configuration before defaulting to the lowest allowed link rate.
--- drivers/gpu/drm/i915/intel_dp.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/intel_dp.c +12 -3
@@ -129,6 +129,9 @@ static int intel_dp_max_link_bw(struct intel_dp *intel_dp) {int max_link_bw = intel_dp->dpcd[DP_MAX_LINK_RATE ]; +int cfg_max_link_bw =DP_LINK_BW_1_62 ; +struct intel_digital_port *intel_dig_port =dp_to_dig_port (intel_dp); +struct drm_device *dev = intel_dig_port->base.base.dev;switch (max_link_bw) {case DP_LINK_BW_1_62 :
@@ -136,9 +139,15 @@ intel_dp_max_link_bw(struct intel_dp *intel_dp)case DP_LINK_BW_5_4 :break ;default : -WARN (1 ,"invalid max DP link bw val %x, using 1.62Gbps\n" , - max_link_bw); - max_link_bw =DP_LINK_BW_1_62 ; +intel_config_get_integer (to_i915 (dev), +CFG_CONNECTOR , + intel_dp->attached_connector->base.name, +"Maximum DPCD Rate" , + &cfg_max_link_bw); + +WARN (1 ,"invalid max DP link bw val %x, using %x\n" , + max_link_bw, cfg_max_link_bw); + max_link_bw = cfg_max_link_bw;break ; }return max_link_bw;
Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC 6/10 drm/i915/config: Add init-time configuration of eDP PPS delays.
In reply to Bob PaauweAllow the configuration file to overide the various panel power sequence delay values.
--- drivers/gpu/drm/i915/intel_dp.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
drivers/gpu/drm/i915/intel_dp.c +14 -0
@@ -5565,6 +5565,20 @@ intel_dp_init_connector(struct intel_digital_port *intel_dig_port,else intel_dp_init_panel_power_sequencer (dev, intel_dp);pps_unlock (intel_dp); + +/* Check for config overides for PPS delays */ +#define CONFIG_PANEL_POWER_DELAY (delay_name) \ + intel_config_get_integer(dev_priv, CFG_CONNECTOR, \ + intel_dp->attached_connector->base.name, \ + #delay_name, \ + (uint32_t *)&intel_dp->pps_delays.delay_name) + +CONFIG_PANEL_POWER_DELAY (t1_t3); +CONFIG_PANEL_POWER_DELAY (t8); +CONFIG_PANEL_POWER_DELAY (t9); +CONFIG_PANEL_POWER_DELAY (t10); +CONFIG_PANEL_POWER_DELAY (t11_t12); +#undef CONFIG_PANEL_POWER_DELAY }intel_dp_aux_init (intel_dp, intel_connector);
Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC 7/10 drm/i915/config: Add init-time configuration of eDP backlight settings.
In reply to Bob PaauweAllow the configuration file to overide the backlight max and level settings.
--- drivers/gpu/drm/i915/intel_panel.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/gpu/drm/i915/intel_panel.c +8 -0
@@ -1326,6 +1326,14 @@ int intel_panel_setup_backlight(struct drm_connector *connector, enum pipe pipe)return ret; } +/* Allow config to overide backlight settings */ +intel_config_get_integer (dev_priv,CFG_CONNECTOR , + connector->name,"backlight maximum" , + &panel->backlight.max); +intel_config_get_integer (dev_priv,CFG_CONNECTOR , + connector->name,"backlight level" , + &panel->backlight.level); + panel->backlight.present = true; DRM_DEBUG_KMS("Connector %s backlight initialized, %s, brightness %u/%u\n",
Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC 8/10 drm/i915: Add PPS delay values to debugfs.
In reply to Bob PaauweSo that we verify which values are currently in use.
--- drivers/gpu/drm/i915/i915_debugfs.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_debugfs.c +12 -1
@@ -2641,8 +2641,19 @@ static void intel_dp_info(struct seq_file *m,seq_printf (m,"\tDPCD rev: %x\n" , intel_dp->dpcd[DP_DPCD_REV ]);seq_printf (m,"\taudio support: %s\n" , intel_dp->has_audio ?"yes" :"no" ); -if (intel_encoder->type ==INTEL_OUTPUT_EDP ) +if (intel_encoder->type ==INTEL_OUTPUT_EDP ) { +seq_printf (m,"\tpanel power on delay: %d\n" , + intel_dp->pps_delays.t1_t3); +seq_printf (m,"\tpanel backlight on delay: %d\n" , + intel_dp->pps_delays.t8); +seq_printf (m,"\tpanel backlight off delay: %d\n" , + intel_dp->pps_delays.t9); +seq_printf (m,"\tpanel power off delay: %d\n" , + intel_dp->pps_delays.t10); +seq_printf (m,"\tpanel power cycle delay: %d\n" , + intel_dp->pps_delays.t11_t12);intel_panel_info (m, &intel_connector->panel); + } } static void intel_hdmi_info(struct seq_file *m,
Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC 9/10 drm/i915: Add backlight max and level to debugfs output.
In reply to Bob PaauweTo allow us to verify the current backlight max and level values.
--- drivers/gpu/drm/i915/i915_debugfs.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/i915/i915_debugfs.c +5 -0
@@ -2652,6 +2652,11 @@ static void intel_dp_info(struct seq_file *m, intel_dp->pps_delays.t10);seq_printf (m,"\tpanel power cycle delay: %d\n" , intel_dp->pps_delays.t11_t12); +seq_printf (m,"\tpanel backlight max: %d\n" , + intel_connector->panel.backlight.max); +seq_printf (m,"\tpanel backlight level: %d\n" , + intel_connector->panel.backlight.level); +intel_panel_info (m, &intel_connector->panel); } }
Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC 10/10 drm/i915/config: An example/test ACPI property table.
In reply to Bob PaauweThis is an example of what an ACPI property table looks like.
--- drivers/gpu/drm/i915/i915-properties.asl | 167 +++++++++++++++++++++++++++++++ 1 file changed, 167 insertions(+) create mode 100644 drivers/gpu/drm/i915/i915-properties.asl
drivers/gpu/drm/i915/i915-properties.asl new file +167 -0
@@ -0,0 +1,167 @@ +DefinitionBlock ("i915-properties.aml", "SSDT", 5, "", "", 0x00000001) +{ + External (DSEN) + + Device (\_SB.PRP) { + Device(GFX0) { + Name (_ADR, 0x00020000) + Name (_HID, "PRP0000") + + Method (_DOS, 1, NotSerialized) { + Store (And (Arg0, 0x07), DSEN) + If (LEqual (And (Arg0, 0x03), Zero)) { + } + } + + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package() {"display_detect", 1}, + Package() {"fastboot", 1}, + Package() {"powersave", 0}, + Package() {"count", 99}, + } + }) + + Device (CRTC) { + Name (_HID, "PRP0000") + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package() { "enabled", "3" }, + Package() { "count", 3 } + } + }) + + Device (ID0) { + Name (_HID, "PRP0000") + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package() { "id", 0 }, + Package() { "canvas_color", Package() { 0, 0, 0 } }, + Package() { "blend_equ", 0 }, + Package() { "enabled", 1 } + } + }) + } + + Device (ID1) { + Name (_HID, "PRP0000") + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package() { "id", 1 }, + Package() { "canvas_color", Package() { 0, 0, 0 } }, + Package() { "blend_equ", 0 }, + Package() { "enabled", 1 } + } + }) + } + + Device (ID2) { + Name (_HID, "PRP0000") + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package() { "id", 2 }, + Package() { "canvas_color", Package() { 0, 0, 0 } }, + Package() { "blend_equ", 0 }, + Package() { "enabled", 1 } + } + }) + } + } + + Device (PLNS) { + Name (_HID, "PRP0000") + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package() { "count", 2 } + } + }) + + Device (PL0) { + Name (_HID, "PRP0000") + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package () { "gamma", 1 }, + Package () { "color-key", 0xffffffff }, + } + }) + } + + Device (PL1) { + Name (_HID, "PRP0000") + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package () { "gamma", 0 }, + Package () { "color-key", 0xffffffff }, + } + }) + } + } + + + Device (CNCT) { + Name (_HID, "PRP0000") + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package() { "count", 2 } + } + }) + + Device(C0) { + Name (_HID, "PRP0000") + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package() { "name", "VGA-1" }, + Package() { "enabled", 1 }, + Package() { "bits_per_color", 6 }, + Package() { "constant_alpha", 255 } + } + }) + } + + Device(C1) { + Name (_HID, "PRP0000") + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package() { "name", "DP-1" }, + Package() { "enabled", 1 }, + Package() { "scaling_mode", "Full aspect" }, + Package() { "audio", "force-dvi" }, + Package() { "Broadcast_RGB", "Automatic" }, + Package() { "bits_per_color", 8 }, + Package() { "constant_alpha", 255 } + } + }) + } + + Device(C2) { + Name (_HID, "PRP0000") + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package() { "name", "eDP-1" }, + Package() { "enabled", 1 }, + Package() { "t1_t3", 2001 }, + Package() { "t8", 0 }, + Package() { "t9", 2001 }, + Package() { "t10", 501 }, + Package() { "t11_t12", 6001 }, + Package() { "backlight level", 100 }, + } + }) + } + } + } + } +} +
Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx