lib/igt_edid: add docs
PATCH 1/1 lib/igt_edid: add docs
Add a description of the library, and add misisng function docs.
--- lib/igt_edid.c | 40 ++++++++++++++++++++++++++++++++++++++++ lib/igt_edid.h | 6 ++++++ 2 files changed, 46 insertions(+)
lib/igt_edid.c +40 -0
@@ -34,6 +34,21 @@#include "igt_core.h" #include "igt_edid.h" +/** +* SECTION:igt_edid +* @short_description: EDID generation library +* @title: EDID +* @include: igt_edid.h +* +* This library contains helpers to generate custom EDIDs. + +* The E-EDID specification is available at: +* https://glenwing.github.io/docs/VESA-EEDID-A2.pdf +* +* The EDID CEA extension is defined in CEA-861-D section 7. The HDMI VSDB is +* defined in the HDMI spec. +*/ +static const char edid_header[] = {0x00 ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0x00 };
@@ -351,6 +366,10 @@ static void edid_cea_data_block_init(struct edid_cea_data_block *block, block->type_len = type <<5 | size; } +/** +* edid_cea_data_block_set_sad: initialize a CEA data block to contain Short +* Audio Descriptors +*/ size_t edid_cea_data_block_set_sad (struct edid_cea_data_block *block,const struct cea_sad *sads,size_t sads_len) {
@@ -364,6 +383,10 @@ size_t edid_cea_data_block_set_sad(struct edid_cea_data_block *block,return sizeof (struct edid_cea_data_block ) + sads_size; } +/** +* edid_cea_data_block_set_svd: initialize a CEA data block to contain Short +* Video Descriptors +*/ size_t edid_cea_data_block_set_svd (struct edid_cea_data_block *block,const uint8_t *svds,size_t svds_len) {
@@ -372,6 +395,10 @@ size_t edid_cea_data_block_set_svd(struct edid_cea_data_block *block,return sizeof (struct edid_cea_data_block ) + svds_len; } +/** +* edid_cea_data_block_set_vsdb: initialize a CEA data block to contain a +* Vendor Specific Data Block +*/ size_t edid_cea_data_block_set_vsdb (struct edid_cea_data_block *block,const struct cea_vsdb *vsdb,size_t vsdb_size) {
@@ -383,6 +410,10 @@ size_t edid_cea_data_block_set_vsdb(struct edid_cea_data_block *block,return sizeof (struct edid_cea_data_block ) + vsdb_size; } +/** +* edid_cea_data_block_set_hdmi_vsdb: initialize a CEA data block to contain an +* HDMI VSDB +*/ size_t edid_cea_data_block_set_hdmi_vsdb (struct edid_cea_data_block *block,const struct hdmi_vsdb *hdmi,size_t hdmi_size)
@@ -399,6 +430,10 @@ size_t edid_cea_data_block_set_hdmi_vsdb(struct edid_cea_data_block *block, CEA_VSDB_HEADER_SIZE + hdmi_size); } +/** +* edid_cea_data_block_set_speaker_alloc: initialize a CEA data block to +* contain a Speaker Allocation Data block +*/ size_t edid_cea_data_block_set_speaker_alloc (struct edid_cea_data_block *block,const struct cea_speaker_alloc *speakers) {
@@ -411,6 +446,11 @@ size_t edid_cea_data_block_set_speaker_alloc(struct edid_cea_data_block *block,return sizeof (struct edid_cea_data_block ) + size; } +/** +* edid_ext_set_cea: initialize an EDID extension block to contain a CEA +* extension. CEA extensions contain a Data Block Collection (with multiple +* CEA data blocks) followed by multiple Detailed Timing Descriptors. +*/ void edid_ext_set_cea (struct edid_ext *ext,size_t data_blocks_size,uint8_t num_native_dtds,uint8_t flags) {
lib/igt_edid.h +6 -0
@@ -32,6 +32,9 @@#include <xf86drmMode.h> +/** +* est_timings: set of established timings +*/ struct est_timings {uint8_t t1;uint8_t t2;
@@ -47,6 +50,9 @@ enum std_timing_aspect { STD_TIMING_16_9 = 0b11, }; +/** +* std_timing: a standard timing +*/ struct std_timing {uint8_t hsize;uint8_t vfreq_aspect;
--
2.22.0
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ Fi.CI.BAT: failure for lib/igt_edid: add docs
== Series Details ==
== Series Details ==
Series: lib/igt_edid: add docs
URL : https://patchwork.freedesktop.org/series/63654/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_6474 -> IGTPW_3267
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_3267 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_3267, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://patchwork.freedesktop.org/api/1.0/series/63654/revisions/1/mbox/
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_3267:
### IGT changes ###
#### Possible regressions ####
* igt@kms_cursor_legacy@basic-flip-before-cursor-legacy:
- fi-byt-n2820: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6474/fi-byt-n2820/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3267/fi-byt-n2820/igt@[email protected]
Known issues
------------
Here are the changes found in IGTPW_3267 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_create@basic-files:
- fi-icl-u3: [PASS][3] -> [INCOMPLETE][4] ([fdo#107713] / [fdo#109100])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6474/fi-icl-u3/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3267/fi-icl-u3/igt@[email protected]
* igt@gem_exec_suspend@basic-s4-devices:
- fi-blb-e6850: [PASS][5] -> [INCOMPLETE][6] ([fdo#107718])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6474/fi-blb-e6850/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3267/fi-blb-e6850/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [PASS][7] -> [FAIL][8] ([fdo#109485])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6474/fi-kbl-7500u/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3267/fi-kbl-7500u/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_suspend@basic-s3:
- fi-apl-guc: [DMESG-WARN][9] ([fdo#108566]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6474/fi-apl-guc/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3267/fi-apl-guc/igt@[email protected]
* igt@i915_selftest@live_execlists:
- fi-skl-gvtdvm: [DMESG-FAIL][11] ([fdo#111108]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6474/fi-skl-gvtdvm/igt@i915_selftest@live_execlists.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3267/fi-skl-gvtdvm/igt@i915_selftest@live_execlists.html
* igt@kms_chamelium@hdmi-edid-read:
- {fi-icl-u4}: [FAIL][13] ([fdo#111045] / [fdo#111046 ]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6474/fi-icl-u4/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3267/fi-icl-u4/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#109100]: https://bugs.freedesktop.org/show_bug.cgi?id=109100
[fdo#109485]: https://bugs.freedesktop.org/show_bug.cgi?id=109485
[fdo#111045]: https://bugs.freedesktop.org/show_bug.cgi?id=111045
[fdo#111046 ]: https://bugs.freedesktop.org/show_bug.cgi?id=111046
[fdo#111108]: https://bugs.freedesktop.org/show_bug.cgi?id=111108
Participating hosts (54 -> 46)
------------------------------
Missing (8): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-icl-y fi-byt-clapper fi-bdw-samus
Build changes
-------------
* IGT: IGT_5095 -> IGTPW_3267
CI_DRM_6474: 0140ee44b0e52427496bcc7dddba0f0d7ee15f56 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_3267: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3267/
IGT_5095: 549e1cdc064c0491a9c4509f42d826ae0e752a07 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3267/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Arkadiusz Hiler
Reviewed-byRe: [igt-dev] ✗ Fi.CI.BAT: failure for lib/igt_edid: add docs
Quoted 30 lines · Patchwork
== Series Details ==
Series:
lib/igt_edid: add docs
URL : https://patchwork.freedesktop.org/series/63654/
State : failure== Summary ==
CI Bug Log - changes from
CI_DRM_6474->IGTPW_3267
====================================================Summary
-------**FAILURE**
Serious unknown changes coming with
IGTPW_3267absolutely need to be verified manually.If you think the reported changes have nothing to do with the changes introduced in
IGTPW_3267, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.External URL: https://patchwork.freedesktop.org/api/1.0/series/63654/revisions/1/mbox/
Possible new issues
-------------------Here are the unknown changes that may have been introduced in
IGTPW_3267:
Quoted 8 lines
### IGT changes ###
#### Possible regressions ####
* igt@kms_cursor_legacy@basic-flip-before-cursor-legacy:
- fi-byt-n2820: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6474/fi-byt-n2820/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3267/fi-byt-n2820/igt@[email protected]
CCing mupuf because this false positive
The patch is
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev