* [PATCH i-g-t 1/2] tools/intel_vbt_defs: Sync up intel_vbt_defs.h with enum vbt_gmbus_ddi from the kernel
@ 2017-10-30 14:58 Ville Syrjala
2017-10-30 14:58 ` [PATCH i-g-t 2/2] tools/intel_vbt_decode: Decode HDMI max data rate Ville Syrjala
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Ville Syrjala @ 2017-10-30 14:58 UTC (permalink / raw)
To: intel-gfx; +Cc: Jani Nikula, Rodrigo Vivi
From: Ville Syrjälä <ville.syrjala@linux.intel.com>
Bring over enum vbt_gmbus_ddi from intel_vbt_defs.h in the kernel.
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
tools/intel_vbt_defs.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tools/intel_vbt_defs.h b/tools/intel_vbt_defs.h
index 27da765eb0db..3c3c421e2e43 100644
--- a/tools/intel_vbt_defs.h
+++ b/tools/intel_vbt_defs.h
@@ -306,6 +306,14 @@ struct bdb_general_features {
#define LEGACY_CHILD_DEVICE_CONFIG_SIZE 33
+/* DDC Bus DDI Type 155+ */
+enum vbt_gmbus_ddi {
+ DDC_BUS_DDI_B = 0x1,
+ DDC_BUS_DDI_C,
+ DDC_BUS_DDI_D,
+ DDC_BUS_DDI_F,
+};
+
/*
* The child device config, aka the display device data structure, provides a
* description of a port and its configuration on the platform.
--
2.13.6
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH i-g-t 2/2] tools/intel_vbt_decode: Decode HDMI max data rate 2017-10-30 14:58 [PATCH i-g-t 1/2] tools/intel_vbt_defs: Sync up intel_vbt_defs.h with enum vbt_gmbus_ddi from the kernel Ville Syrjala @ 2017-10-30 14:58 ` Ville Syrjala 2017-10-30 15:08 ` [PATCH i-g-t 1/2] tools/intel_vbt_defs: Sync up intel_vbt_defs.h with enum vbt_gmbus_ddi from the kernel Jani Nikula 2017-10-30 16:16 ` ✗ Fi.CI.BAT: failure for series starting with [1/2] " Patchwork 2 siblings, 0 replies; 4+ messages in thread From: Ville Syrjala @ 2017-10-30 14:58 UTC (permalink / raw) To: intel-gfx; +Cc: Jani Nikula From: Ville Syrjälä <ville.syrjala@linux.intel.com> Decode the HDMI max data rate from the VBT. Cc: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> --- tools/intel_vbt_decode.c | 22 +++++++++++++++++++++- tools/intel_vbt_defs.h | 4 ++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/tools/intel_vbt_decode.c b/tools/intel_vbt_decode.c index 9d90c69dbc9c..93a090f73d54 100644 --- a/tools/intel_vbt_decode.c +++ b/tools/intel_vbt_decode.c @@ -398,6 +398,26 @@ static const char *mipi_bridge_type(uint8_t type) } } +static void dump_hmdi_max_data_rate(uint8_t hdmi_max_data_rate) +{ + static const uint16_t max_data_rate[] = { + [HDMI_MAX_DATA_RATE_PLATFORM] = 0, + [HDMI_MAX_DATA_RATE_297] = 297, + [HDMI_MAX_DATA_RATE_165] = 165, + }; + + if (hdmi_max_data_rate >= ARRAY_SIZE(max_data_rate)) + printf("\t\tHDMI max data rate: <unknown> (0x%02x)\n", + hdmi_max_data_rate); + else if (hdmi_max_data_rate == HDMI_MAX_DATA_RATE_PLATFORM) + printf("\t\tHDMI max data rate: <platform max> (0x%02x)\n", + hdmi_max_data_rate); + else + printf("\t\tHDMI max data rate: %d MHz (0x%02x)\n", + max_data_rate[hdmi_max_data_rate], + hdmi_max_data_rate); +} + static void dump_child_device(struct context *context, const struct child_device_config *child) { @@ -418,7 +438,7 @@ static void dump_child_device(struct context *context, printf("\t\tDP onboard redriver: 0x%02x\n", child->dp_onboard_redriver); printf("\t\tDP ondock redriver: 0x%02x\n", child->dp_ondock_redriver); printf("\t\tHDMI level shifter value: 0x%02x\n", child->hdmi_level_shifter_value); - printf("\t\tHDMI max data rate: 0x%02x\n", child->hdmi_max_data_rate); + dump_hmdi_max_data_rate(child->hdmi_max_data_rate); printf("\t\tOffset to DTD buffer for edidless CHILD: 0x%02x\n", child->dtd_buf_ptr); printf("\t\tEdidless EFP: %s\n", YESNO(child->edidless_efp)); printf("\t\tCompression enable: %s\n", YESNO(child->compression_enable)); diff --git a/tools/intel_vbt_defs.h b/tools/intel_vbt_defs.h index 3c3c421e2e43..e3d7745a9151 100644 --- a/tools/intel_vbt_defs.h +++ b/tools/intel_vbt_defs.h @@ -304,6 +304,10 @@ struct bdb_general_features { #define DVO_PORT_MIPIC 23 /* 171 */ #define DVO_PORT_MIPID 24 /* 171 */ +#define HDMI_MAX_DATA_RATE_PLATFORM 0 /* 204 */ +#define HDMI_MAX_DATA_RATE_297 1 /* 204 */ +#define HDMI_MAX_DATA_RATE_165 2 /* 204 */ + #define LEGACY_CHILD_DEVICE_CONFIG_SIZE 33 /* DDC Bus DDI Type 155+ */ -- 2.13.6 _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH i-g-t 1/2] tools/intel_vbt_defs: Sync up intel_vbt_defs.h with enum vbt_gmbus_ddi from the kernel 2017-10-30 14:58 [PATCH i-g-t 1/2] tools/intel_vbt_defs: Sync up intel_vbt_defs.h with enum vbt_gmbus_ddi from the kernel Ville Syrjala 2017-10-30 14:58 ` [PATCH i-g-t 2/2] tools/intel_vbt_decode: Decode HDMI max data rate Ville Syrjala @ 2017-10-30 15:08 ` Jani Nikula 2017-10-30 16:16 ` ✗ Fi.CI.BAT: failure for series starting with [1/2] " Patchwork 2 siblings, 0 replies; 4+ messages in thread From: Jani Nikula @ 2017-10-30 15:08 UTC (permalink / raw) To: Ville Syrjala, intel-gfx; +Cc: Rodrigo Vivi On Mon, 30 Oct 2017, Ville Syrjala <ville.syrjala@linux.intel.com> wrote: > From: Ville Syrjälä <ville.syrjala@linux.intel.com> > > Bring over enum vbt_gmbus_ddi from intel_vbt_defs.h in the kernel. Both patches Reviewed-by: Jani Nikula <jani.nikula@intel.com> > > Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> > Cc: Jani Nikula <jani.nikula@intel.com> > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> > --- > tools/intel_vbt_defs.h | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/tools/intel_vbt_defs.h b/tools/intel_vbt_defs.h > index 27da765eb0db..3c3c421e2e43 100644 > --- a/tools/intel_vbt_defs.h > +++ b/tools/intel_vbt_defs.h > @@ -306,6 +306,14 @@ struct bdb_general_features { > > #define LEGACY_CHILD_DEVICE_CONFIG_SIZE 33 > > +/* DDC Bus DDI Type 155+ */ > +enum vbt_gmbus_ddi { > + DDC_BUS_DDI_B = 0x1, > + DDC_BUS_DDI_C, > + DDC_BUS_DDI_D, > + DDC_BUS_DDI_F, > +}; > + > /* > * The child device config, aka the display device data structure, provides a > * description of a port and its configuration on the platform. -- Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx ^ permalink raw reply [flat|nested] 4+ messages in thread
* ✗ Fi.CI.BAT: failure for series starting with [1/2] tools/intel_vbt_defs: Sync up intel_vbt_defs.h with enum vbt_gmbus_ddi from the kernel 2017-10-30 14:58 [PATCH i-g-t 1/2] tools/intel_vbt_defs: Sync up intel_vbt_defs.h with enum vbt_gmbus_ddi from the kernel Ville Syrjala 2017-10-30 14:58 ` [PATCH i-g-t 2/2] tools/intel_vbt_decode: Decode HDMI max data rate Ville Syrjala 2017-10-30 15:08 ` [PATCH i-g-t 1/2] tools/intel_vbt_defs: Sync up intel_vbt_defs.h with enum vbt_gmbus_ddi from the kernel Jani Nikula @ 2017-10-30 16:16 ` Patchwork 2 siblings, 0 replies; 4+ messages in thread From: Patchwork @ 2017-10-30 16:16 UTC (permalink / raw) To: Ville Syrjälä; +Cc: intel-gfx == Series Details == Series: series starting with [1/2] tools/intel_vbt_defs: Sync up intel_vbt_defs.h with enum vbt_gmbus_ddi from the kernel URL : https://patchwork.freedesktop.org/series/32841/ State : failure == Summary == IGT patchset tested on top of latest successful build 1fc4de1ca390adec9be8bd7cc0c36cab07465959 igt/gem_exec_latency: Wire up an interloper for preemption with latest DRM-Tip kernel build CI_DRM_3294 2dd14a4ad87f drm-tip: 2017y-10m-30d-13h-40m-22s UTC integration manifest No testlist changes. Test debugfs_test: Subgroup read_all_entries: dmesg-warn -> PASS (fi-cfl-s) Test drv_getparams_basic: Subgroup basic-eu-total: dmesg-warn -> PASS (fi-cfl-s) Subgroup basic-subslice-total: dmesg-warn -> PASS (fi-cfl-s) Test drv_hangman: Subgroup error-state-basic: dmesg-warn -> PASS (fi-cfl-s) Test gem_ctx_switch: Subgroup basic-default-heavy: pass -> INCOMPLETE (fi-glk-dsi) Test kms_cursor_legacy: Subgroup basic-busy-flip-before-cursor-atomic: pass -> DMESG-WARN (fi-cnl-y) Test kms_pipe_crc_basic: Subgroup read-crc-pipe-b: pass -> INCOMPLETE (fi-cnl-y) fdo#103339 Subgroup suspend-read-crc-pipe-b: pass -> DMESG-WARN (fi-byt-n2820) fdo#101705 Test drv_module_reload: Subgroup basic-reload-inject: pass -> DMESG-WARN (fi-bsw-n3050) fdo#103339 https://bugs.freedesktop.org/show_bug.cgi?id=103339 fdo#101705 https://bugs.freedesktop.org/show_bug.cgi?id=101705 fi-bdw-5557u total:289 pass:268 dwarn:0 dfail:0 fail:0 skip:21 time:442s fi-bdw-gvtdvm total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:462s fi-blb-e6850 total:289 pass:223 dwarn:1 dfail:0 fail:0 skip:65 time:372s fi-bsw-n3050 total:289 pass:242 dwarn:1 dfail:0 fail:0 skip:46 time:533s fi-bwr-2160 total:289 pass:183 dwarn:0 dfail:0 fail:0 skip:106 time:267s fi-bxt-dsi total:289 pass:259 dwarn:0 dfail:0 fail:0 skip:30 time:503s fi-bxt-j4205 total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:497s fi-byt-j1900 total:289 pass:253 dwarn:1 dfail:0 fail:0 skip:35 time:502s fi-byt-n2820 total:289 pass:249 dwarn:1 dfail:0 fail:0 skip:39 time:482s fi-cfl-s total:289 pass:253 dwarn:4 dfail:0 fail:0 skip:32 time:551s fi-cnl-y total:289 pass:215 dwarn:1 dfail:0 fail:0 skip:24 fi-elk-e7500 total:289 pass:229 dwarn:0 dfail:0 fail:0 skip:60 time:428s fi-gdg-551 total:289 pass:178 dwarn:1 dfail:0 fail:1 skip:109 time:253s fi-glk-1 total:289 pass:261 dwarn:0 dfail:0 fail:0 skip:28 time:580s fi-glk-dsi total:32 pass:22 dwarn:0 dfail:0 fail:0 skip:9 fi-hsw-4770 total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:428s fi-hsw-4770r total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:434s fi-ilk-650 total:289 pass:228 dwarn:0 dfail:0 fail:0 skip:61 time:422s fi-ivb-3520m total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:498s fi-ivb-3770 total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:464s fi-kbl-7500u total:289 pass:264 dwarn:1 dfail:0 fail:0 skip:24 time:492s fi-kbl-7560u total:289 pass:270 dwarn:0 dfail:0 fail:0 skip:19 time:572s fi-kbl-7567u total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:478s fi-kbl-r total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:583s fi-pnv-d510 total:289 pass:222 dwarn:1 dfail:0 fail:0 skip:66 time:549s fi-skl-6260u total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:461s fi-skl-6600u total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:595s fi-skl-6700hq total:289 pass:263 dwarn:0 dfail:0 fail:0 skip:26 time:650s fi-skl-6700k total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:525s fi-skl-6770hq total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:503s fi-skl-gvtdvm total:289 pass:266 dwarn:0 dfail:0 fail:0 skip:23 time:460s fi-snb-2520m total:289 pass:250 dwarn:0 dfail:0 fail:0 skip:39 time:566s fi-snb-2600 total:289 pass:249 dwarn:0 dfail:0 fail:0 skip:40 time:423s == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_445/ _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-10-30 16:16 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-10-30 14:58 [PATCH i-g-t 1/2] tools/intel_vbt_defs: Sync up intel_vbt_defs.h with enum vbt_gmbus_ddi from the kernel Ville Syrjala 2017-10-30 14:58 ` [PATCH i-g-t 2/2] tools/intel_vbt_decode: Decode HDMI max data rate Ville Syrjala 2017-10-30 15:08 ` [PATCH i-g-t 1/2] tools/intel_vbt_defs: Sync up intel_vbt_defs.h with enum vbt_gmbus_ddi from the kernel Jani Nikula 2017-10-30 16:16 ` ✗ Fi.CI.BAT: failure for series starting with [1/2] " Patchwork
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox