drm/edid: low level EDID block read refactoring etc.
Subsystems (2)
v2 cover drm/edid: low level EDID block read refactoring etc.
Submitting [1] again for CI. Just a slight change in patch 3 to address review.
BR,
Jani.
[1] https://patchwork.freedesktop.org/series/102329/
Jani Nikula (12):
drm/edid: convert edid_is_zero() to edid_block_is_zero() for blocks drm/edid: have edid_block_check() detect blocks that are all zero drm/edid: refactor EDID block status printing
drm/edid: add a helper to log dump an EDID block drm/edid: pass struct edid to connector_bad_edid() drm/edid: add typedef for block read function
drm/edid: abstract an EDID block read helper
drm/edid: use EDID block read helper in drm_do_get_edid() drm/edid: convert extension block read to EDID block read helper drm/edid: drop extra local var
drm/edid: add single point of return to drm_do_get_edid() drm/edid: add EDID block count and size helpers
drivers/gpu/drm/drm_edid.c | 350 ++++++++++++++++++++++++------------- 1 file changed, 225 insertions(+), 125 deletions(-)
Signature · 1 line
2.30.2
PATCH v2 1/12 drm/edid: convert edid_is_zero() to edid_block_is_zero() for blocks
As edid_is_zero() is only ever used on EDID blocks, convert it to edid_block_is_zero() with implicit block size.
--- drivers/gpu/drm/drm_edid.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/drm_edid.c +5 -5
@@ -1632,9 +1632,9 @@ static int edid_block_tag(const void *_block)return block[0 ]; } -static bool edid_is_zero (const void *edid,int length) +static bool edid_block_is_zero (const void *edid) { -return !memchr_inv (edid,0 , length); +return !memchr_inv (edid,0 ,EDID_LENGTH ); }/**
@@ -1785,7 +1785,7 @@ bool drm_edid_block_valid(u8 *_block, int block_num, bool print_bad_edid, }if (!valid && print_bad_edid) { -if (edid_is_zero (block,EDID_LENGTH )) { +if (edid_block_is_zero (block)) {pr_notice ("EDID block is all zeroes\n" ); }else {pr_notice ("Raw EDID:\n" );
@@ -1942,7 +1942,7 @@ static void connector_bad_edid(struct drm_connector *connector,u8 *block = edid + i *EDID_LENGTH ;char prefix[20 ]; -if (edid_is_zero (block,EDID_LENGTH )) +if (edid_block_is_zero (block))sprintf (prefix,"\t[%02x] ZERO " , i);else if (!drm_edid_block_valid (block, i, false,NULL ))sprintf (prefix,"\t[%02x] BAD " , i);
@@ -2019,7 +2019,7 @@ static struct edid *drm_do_get_edid_base_block(struct drm_connector *connector, goto out;if (drm_edid_block_valid (edid,0 , false, edid_corrupt))break ; -if (try ==0 &&edid_is_zero (edid,EDID_LENGTH )) { +if (try ==0 &&edid_block_is_zero (edid)) {if (null_edid_counter) (*null_edid_counter)++; goto carp;
Signature · 1 line
2.30.2
PATCH v2 2/12 drm/edid: have edid_block_check() detect blocks that are all zero
In reply to Jani NikulaWe have the check function, have it also detect blocks that are all zero instead of leaving that to callers.
--- drivers/gpu/drm/drm_edid.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-)
drivers/gpu/drm/drm_edid.c +14 -5
@@ -1671,6 +1671,7 @@ EXPORT_SYMBOL(drm_edid_are_equal);enum edid_block_status {EDID_BLOCK_OK =0 ,EDID_BLOCK_NULL , +EDID_BLOCK_ZERO ,EDID_BLOCK_HEADER_CORRUPT ,EDID_BLOCK_HEADER_REPAIR ,EDID_BLOCK_HEADER_FIXED ,
@@ -1689,15 +1690,23 @@ static enum edid_block_status edid_block_check(const void *_block,if (is_base_block) {int score =drm_edid_header_is_valid (block); -if (score <clamp (edid_fixup,0 ,8 )) -return EDID_BLOCK_HEADER_CORRUPT ; +if (score <clamp (edid_fixup,0 ,8 )) { +if (edid_block_is_zero (block)) +return EDID_BLOCK_ZERO ; +else +return EDID_BLOCK_HEADER_CORRUPT ; + }if (score <8 )return EDID_BLOCK_HEADER_REPAIR ; } -if (edid_block_compute_checksum (block) !=edid_block_get_checksum (block)) -return EDID_BLOCK_CHECKSUM ; +if (edid_block_compute_checksum (block) !=edid_block_get_checksum (block)) { +if (edid_block_is_zero (block)) +return EDID_BLOCK_ZERO ; +else +return EDID_BLOCK_CHECKSUM ; + }if (is_base_block) {if (block->version !=1 )
@@ -1785,7 +1794,7 @@ bool drm_edid_block_valid(u8 *_block, int block_num, bool print_bad_edid, }if (!valid && print_bad_edid) { -if (edid_block_is_zero (block)) { +if (status ==EDID_BLOCK_ZERO ) {pr_notice ("EDID block is all zeroes\n" ); }else {pr_notice ("Raw EDID:\n" );
Signature · 1 line
2.30.2
PATCH v2 3/12 drm/edid: refactor EDID block status printing
In reply to Jani NikulaSplit out a function to log EDID block status. The printouts get changed slightly.
Unfortunately, not all users will have struct drm_device available, so we convert to pr_* debug logging instead of drm device based logging.
v2: Complain more loudly about unknown status codes (Ville)
--- drivers/gpu/drm/drm_edid.c | 75 ++++++++++++++++++++++++++------------ 1 file changed, 51 insertions(+), 24 deletions(-)
drivers/gpu/drm/drm_edid.c +51 -24
@@ -1729,6 +1729,50 @@ static bool edid_block_valid(const void *block, bool base) edid_block_tag(block)); } +static void edid_block_status_print (enum edid_block_status status, +const struct edid *block, +int block_num) +{ +switch (status) { +case EDID_BLOCK_OK : +break ; +case EDID_BLOCK_NULL : +pr_debug ("EDID block %d pointer is NULL\n" , block_num); +break ; +case EDID_BLOCK_ZERO : +pr_notice ("EDID block %d is all zeroes\n" , block_num); +break ; +case EDID_BLOCK_HEADER_CORRUPT : +pr_notice ("EDID has corrupt header\n" ); +break ; +case EDID_BLOCK_HEADER_REPAIR : +pr_debug ("EDID corrupt header needs repair\n" ); +break ; +case EDID_BLOCK_HEADER_FIXED : +pr_debug ("EDID corrupt header fixed\n" ); +break ; +case EDID_BLOCK_CHECKSUM : +if (edid_block_status_valid (status,edid_block_tag (block))) { +pr_debug ("EDID block %d (tag 0x%02x) checksum is invalid, remainder is %d, ignoring\n" , + block_num,edid_block_tag (block), +edid_block_compute_checksum (block)); + }else { +pr_notice ("EDID block %d (tag 0x%02x) checksum is invalid, remainder is %d\n" , + block_num,edid_block_tag (block), +edid_block_compute_checksum (block)); + } +break ; +case EDID_BLOCK_VERSION : +pr_notice ("EDID has major version %d, instead of 1\n" , + block->version); +break ; +default : +WARN (1 ,"EDID block %d unknown edid block status code %d\n" , + block_num, status); +break ; + } +} +/** * drm_edid_block_valid - Sanity check the EDID block (base or extension) * @raw_edid: pointer to raw EDID block
@@ -1775,33 +1819,16 @@ bool drm_edid_block_valid(u8 *_block, int block_num, bool print_bad_edid, *edid_corrupt = true; } +edid_block_status_print (status, block, block_num); +/* Determine whether we can use this block with this status. */ valid =edid_block_status_valid (status,edid_block_tag (block)); -/* Some fairly random status printouts. */ -if (status ==EDID_BLOCK_CHECKSUM ) { -if (valid) { -DRM_DEBUG ("EDID block checksum is invalid, remainder is %d\n" , -edid_block_compute_checksum (block)); -DRM_DEBUG ("Assuming a KVM switch modified the block but left the original checksum\n" ); - }else if (print_bad_edid) { -DRM_NOTE ("EDID block checksum is invalid, remainder is %d\n" , -edid_block_compute_checksum (block)); - } - }else if (status ==EDID_BLOCK_VERSION ) { -DRM_NOTE ("EDID has major version %d, instead of 1\n" , - block->version); - } - -if (!valid && print_bad_edid) { -if (status ==EDID_BLOCK_ZERO ) { -pr_notice ("EDID block is all zeroes\n" ); - }else { -pr_notice ("Raw EDID:\n" ); -print_hex_dump (KERN_NOTICE , -" \t" ,DUMP_PREFIX_NONE ,16 ,1 , - block,EDID_LENGTH , false); - } +if (!valid && print_bad_edid && status !=EDID_BLOCK_ZERO ) { +pr_notice ("Raw EDID:\n" ); +print_hex_dump (KERN_NOTICE , +" \t" ,DUMP_PREFIX_NONE ,16 ,1 , + block,EDID_LENGTH , false); }return valid;
Signature · 1 line
2.30.2
PATCH v2 4/12 drm/edid: add a helper to log dump an EDID block
In reply to Jani NikulaUnify debug log dumping. There's duplication in the error paths for EDID block validity checks, but this should be neglible.
--- drivers/gpu/drm/drm_edid.c | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-)
drivers/gpu/drm/drm_edid.c +19 -14
@@ -1773,6 +1773,23 @@ static void edid_block_status_print(enum edid_block_status status, } } +static void edid_block_dump (const char *level,const void *block,int block_num) +{ +enum edid_block_status status; +char prefix[20 ]; + + status =edid_block_check (block, block_num ==0 ); +if (status ==EDID_BLOCK_ZERO ) +sprintf (prefix,"\t[%02x] ZERO " , block_num); +else if (!edid_block_status_valid (status,edid_block_tag (block))) +sprintf (prefix,"\t[%02x] BAD " , block_num); +else +sprintf (prefix,"\t[%02x] GOOD " , block_num); + +print_hex_dump (level, prefix,DUMP_PREFIX_NONE ,16 ,1 , + block,EDID_LENGTH , false); +} +/** * drm_edid_block_valid - Sanity check the EDID block (base or extension) * @raw_edid: pointer to raw EDID block
@@ -1826,9 +1843,7 @@ bool drm_edid_block_valid(u8 *_block, int block_num, bool print_bad_edid,if (!valid && print_bad_edid && status !=EDID_BLOCK_ZERO ) {pr_notice ("Raw EDID:\n" ); -print_hex_dump (KERN_NOTICE , -" \t" ,DUMP_PREFIX_NONE ,16 ,1 , - block,EDID_LENGTH , false); +edid_block_dump (KERN_NOTICE , block, block_num); }return valid;
@@ -1976,18 +1991,8 @@ static void connector_bad_edid(struct drm_connector *connector,drm_dbg_kms (connector->dev,"%s: EDID is invalid:\n" , connector->name);for (i =0 ; i < num_blocks; i++) {u8 *block = edid + i *EDID_LENGTH ; -char prefix[20 ]; - -if (edid_block_is_zero (block)) -sprintf (prefix,"\t[%02x] ZERO " , i); -else if (!drm_edid_block_valid (block, i, false,NULL )) -sprintf (prefix,"\t[%02x] BAD " , i); -else -sprintf (prefix,"\t[%02x] GOOD " , i); -print_hex_dump (KERN_DEBUG , - prefix,DUMP_PREFIX_NONE ,16 ,1 , - block,EDID_LENGTH , false); +edid_block_dump (KERN_DEBUG , block, i); } }
Signature · 1 line
2.30.2
PATCH v2 5/12 drm/edid: pass struct edid to connector_bad_edid()
In reply to Jani NikulaAvoid casting here and there, and make it const.
--- drivers/gpu/drm/drm_edid.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-)
drivers/gpu/drm/drm_edid.c +6 -9
@@ -1967,7 +1967,7 @@ drm_do_probe_ddc_edid(void *data, u8 *buf, unsigned int block, size_t len) }static void connector_bad_edid (struct drm_connector *connector, -u8 *edid,int num_blocks) +const struct edid *edid,int num_blocks) {int i;u8 last_block;
@@ -1978,22 +1978,19 @@ static void connector_bad_edid(struct drm_connector *connector,* of 0x7e in the EDID of the _index_ of the last block in the * combined chunk of memory. */ - last_block = edid[0x7e ]; + last_block = edid->extensions;/* Calculate real checksum for the last edid extension block data */ if (last_block < num_blocks) connector->real_edid_checksum = -edid_block_compute_checksum (edid + last_block *EDID_LENGTH ); +edid_block_compute_checksum (edid + last_block);if (connector->bad_edid_counter++ && !drm_debug_enabled (DRM_UT_KMS ))return ;drm_dbg_kms (connector->dev,"%s: EDID is invalid:\n" , connector->name); -for (i =0 ; i < num_blocks; i++) { -u8 *block = edid + i *EDID_LENGTH ; - -edid_block_dump (KERN_DEBUG , block, i); - } +for (i =0 ; i < num_blocks; i++) +edid_block_dump (KERN_DEBUG , edid + i, i); }/* Get override or firmware EDID */
@@ -2139,7 +2136,7 @@ struct edid *drm_do_get_edid(struct drm_connector *connector, }if (invalid_blocks) { -connector_bad_edid (connector, (u8 *)edid, edid->extensions +1 ); +connector_bad_edid (connector, edid, edid->extensions +1 ); edid =edid_filter_invalid_blocks (edid, invalid_blocks); }
Signature · 1 line
2.30.2
PATCH v2 6/12 drm/edid: add typedef for block read function
In reply to Jani NikulaMake the callback a bit easier on the eye.
--- drivers/gpu/drm/drm_edid.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
drivers/gpu/drm/drm_edid.c +9 -9
@@ -2037,10 +2037,11 @@ int drm_add_override_edid_modes(struct drm_connector *connector) }EXPORT_SYMBOL (drm_add_override_edid_modes); +typedef int read_block_fn (void *context,u8 *buf,unsigned int block,size_t len); +static struct edid *drm_do_get_edid_base_block (struct drm_connector *connector, -int (*get_edid_block)(void *data,u8 *buf,unsigned int block, -size_t len), -void *data) +read_block_fn read_block, +void *context) {int *null_edid_counter = connector ? &connector->null_edid_counter :NULL ;bool *edid_corrupt = connector ? &connector->edid_corrupt :NULL ;
@@ -2053,7 +2054,7 @@ static struct edid *drm_do_get_edid_base_block(struct drm_connector *connector,/* base block fetch */ for (try =0 ; try <4 ; try++) { -if (get_edid_block (data, edid,0 ,EDID_LENGTH )) +if (read_block (context, edid,0 ,EDID_LENGTH )) goto out;if (drm_edid_block_valid (edid,0 , false, edid_corrupt))break ;
@@ -2097,9 +2098,8 @@ static struct edid *drm_do_get_edid_base_block(struct drm_connector *connector,* Return: Pointer to valid EDID or NULL if we couldn't find any. */ struct edid *drm_do_get_edid (struct drm_connector *connector, -int (*get_edid_block)(void *data,u8 *buf,unsigned int block, -size_t len), -void *data) +read_block_fn read_block, +void *context) {int j, invalid_blocks =0 ;struct edid *edid, *new, *override;
@@ -2108,7 +2108,7 @@ struct edid *drm_do_get_edid(struct drm_connector *connector,if (override)return override; - edid =drm_do_get_edid_base_block (connector, get_edid_block, data); + edid =drm_do_get_edid_base_block (connector, read_block, context);if (!edid)return NULL ;
@@ -2125,7 +2125,7 @@ struct edid *drm_do_get_edid(struct drm_connector *connector,int try;for (try =0 ; try <4 ; try++) { -if (get_edid_block (data, block, j,EDID_LENGTH )) +if (read_block (context, block, j,EDID_LENGTH )) goto out;if (drm_edid_block_valid (block, j, false,NULL ))break ;
Signature · 1 line
2.30.2
PATCH v2 7/12 drm/edid: abstract an EDID block read helper
In reply to Jani NikulaWe have an abstraction for the EDID base block read, yet duplicating the retries and error handling for extension block reads. Introduce a more generic EDID block read helper.
Switch to the helper piecemeal, starting with drm_edid_get_panel_id(), which doesn't need or have access to the connector anyway.
The subtle change is switching from drm_edid_block_valid() to edid_block_check(). We also status print once, not for every attempt.
--- drivers/gpu/drm/drm_edid.c | 58 +++++++++++++++++++++++++++++++++----- 1 file changed, 51 insertions(+), 7 deletions(-)
drivers/gpu/drm/drm_edid.c +51 -7
@@ -1670,6 +1670,7 @@ EXPORT_SYMBOL(drm_edid_are_equal);enum edid_block_status {EDID_BLOCK_OK =0 , +EDID_BLOCK_READ_FAIL ,EDID_BLOCK_NULL ,EDID_BLOCK_ZERO ,EDID_BLOCK_HEADER_CORRUPT ,
@@ -1736,6 +1737,9 @@ static void edid_block_status_print(enum edid_block_status status,switch (status) {case EDID_BLOCK_OK :break ; +case EDID_BLOCK_READ_FAIL : +pr_debug ("EDID block %d read failed\n" , block_num); +break ;case EDID_BLOCK_NULL :pr_debug ("EDID block %d pointer is NULL\n" , block_num);break ;
@@ -2039,6 +2043,39 @@ EXPORT_SYMBOL(drm_add_override_edid_modes);typedef int read_block_fn (void *context,u8 *buf,unsigned int block,size_t len); +static enum edid_block_status edid_block_read (void *block,unsigned int block_num, +read_block_fn read_block, +void *context) +{ +enum edid_block_status status; +bool is_base_block = block_num ==0 ; +int try; + +for (try =0 ; try <4 ; try++) { +if (read_block (context, block, block_num,EDID_LENGTH )) +return EDID_BLOCK_READ_FAIL ; + + status =edid_block_check (block, is_base_block); +if (status ==EDID_BLOCK_HEADER_REPAIR ) { +edid_header_fix (block); + +/* Retry with fixed header, update status if that worked. */ + status =edid_block_check (block, is_base_block); +if (status ==EDID_BLOCK_OK ) + status =EDID_BLOCK_HEADER_FIXED ; + } + +if (edid_block_status_valid (status,edid_block_tag (block))) +break ; + +/* Fail early for unrepairable base block all zeros. */ +if (try ==0 && is_base_block && status ==EDID_BLOCK_ZERO ) +break ; + } + +return status; +} +static struct edid *drm_do_get_edid_base_block (struct drm_connector *connector,read_block_fn read_block,void *context)
@@ -2237,20 +2274,27 @@ static u32 edid_extract_panel_id(const struct edid *edid)u32 drm_edid_get_panel_id (struct i2c_adapter *adapter) { -const struct edid *edid; -u32 panel_id; - - edid =drm_do_get_edid_base_block (NULL , drm_do_probe_ddc_edid, adapter); +enum edid_block_status status; +void *base_block; +u32 panel_id =0 ;/* * There are no manufacturer IDs of 0, so if there is a problem reading * the EDID then we'll just return 0. */ -if (!edid) + + base_block =kmalloc (EDID_LENGTH ,GFP_KERNEL ); +if (!base_block)return 0 ; - panel_id =edid_extract_panel_id (edid); -kfree (edid); + status =edid_block_read (base_block,0 , drm_do_probe_ddc_edid, adapter); + +edid_block_status_print (status, base_block,0 ); + +if (edid_block_status_valid (status,edid_block_tag (base_block))) + panel_id =edid_extract_panel_id (base_block); + +kfree (base_block);return panel_id; }
Signature · 1 line
2.30.2
PATCH v2 8/12 drm/edid: use EDID block read helper in drm_do_get_edid()
In reply to Jani NikulaConvert drm_do_get_edit() from the base block read helper to the generic block read helper. There's quite a bit going on here, as the corrupt and null EDID information is moved back to the caller. As we see, they were not all that clear to begin with, and this change underlines that.
--- drivers/gpu/drm/drm_edid.c | 62 ++++++++++++++------------------------ 1 file changed, 23 insertions(+), 39 deletions(-)
drivers/gpu/drm/drm_edid.c +23 -39
@@ -2076,44 +2076,6 @@ static enum edid_block_status edid_block_read(void *block, unsigned int block_nureturn status; } -static struct edid *drm_do_get_edid_base_block (struct drm_connector *connector, -read_block_fn read_block, -void *context) -{ -int *null_edid_counter = connector ? &connector->null_edid_counter :NULL ; -bool *edid_corrupt = connector ? &connector->edid_corrupt :NULL ; -void *edid; -int try; - - edid =kmalloc (EDID_LENGTH ,GFP_KERNEL ); -if (edid ==NULL ) -return NULL ; - -/* base block fetch */ -for (try =0 ; try <4 ; try++) { -if (read_block (context, edid,0 ,EDID_LENGTH )) - goto out; -if (drm_edid_block_valid (edid,0 , false, edid_corrupt)) -break ; -if (try ==0 &&edid_block_is_zero (edid)) { -if (null_edid_counter) - (*null_edid_counter)++; - goto carp; - } - } -if (try ==4 ) - goto carp; - -return edid; - -carp: -if (connector) -connector_bad_edid (connector, edid,1 ); -out: -kfree (edid); -return NULL ; -} -/** * drm_do_get_edid - get EDID data using a custom EDID block read function * @connector: connector we're probing
@@ -2138,6 +2100,7 @@ struct edid *drm_do_get_edid(struct drm_connector *connector,read_block_fn read_block, void *context) { + enum edid_block_status status;int j, invalid_blocks =0 ;struct edid *edid, *new, *override;
@@ -2145,10 +2108,31 @@ struct edid *drm_do_get_edid(struct drm_connector *connector,if (override)return override; - edid =drm_do_get_edid_base_block (connector, read_block, context); + edid =kmalloc (EDID_LENGTH ,GFP_KERNEL );if (!edid)return NULL ; + status =edid_block_read (edid,0 , read_block, context); + +edid_block_status_print (status, edid,0 ); + +if (status ==EDID_BLOCK_READ_FAIL ) + goto out; + +/* FIXME: Clarify what a corrupt EDID actually means. */ +if (status ==EDID_BLOCK_OK || status ==EDID_BLOCK_VERSION ) + connector->edid_corrupt = false; +else + connector->edid_corrupt = true; + +if (!edid_block_status_valid (status,edid_block_tag (edid))) { +if (status ==EDID_BLOCK_ZERO ) + connector->null_edid_counter++; + +connector_bad_edid (connector, edid,1 ); + goto out; + } +if (edid->extensions ==0 )return edid;
Signature · 1 line
2.30.2
PATCH v2 9/12 drm/edid: convert extension block read to EDID block read helper
In reply to Jani NikulaUse the EDID block read helper also for extension block reads, making edid_block_read() the only place with the read retry logic.
Note: We observe that drm_do_get_edid() does not use invalid extension blocks to flag the EDID as corrupt.
--- drivers/gpu/drm/drm_edid.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-)
drivers/gpu/drm/drm_edid.c +7 -8
@@ -2143,17 +2143,16 @@ struct edid *drm_do_get_edid(struct drm_connector *connector,for (j =1 ; j <= edid->extensions; j++) {void *block = edid + j; -int try; -for (try =0 ; try <4 ; try++) { -if (read_block (context, block, j,EDID_LENGTH )) - goto out; -if (drm_edid_block_valid (block, j, false,NULL )) -break ; - } + status =edid_block_read (block, j, read_block, context); -if (try ==4 ) +edid_block_status_print (status, block, j); + +if (!edid_block_status_valid (status,edid_block_tag (block))) { +if (status ==EDID_BLOCK_READ_FAIL ) + goto out; invalid_blocks++; + } }if (invalid_blocks) {
Signature · 1 line
2.30.2
PATCH v2 10/12 drm/edid: drop extra local var
In reply to Jani NikulaWe don't need override as a variable for anything.
--- drivers/gpu/drm/drm_edid.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/drm_edid.c +4 -4
@@ -2102,11 +2102,11 @@ struct edid *drm_do_get_edid(struct drm_connector *connector, {enum edid_block_status status;int j, invalid_blocks =0 ; -struct edid *edid, *new, *override; +struct edid *edid, *new; - override =drm_get_override_edid (connector); -if (override) -return override; + edid =drm_get_override_edid (connector); +if (edid) +return edid; edid =kmalloc (EDID_LENGTH ,GFP_KERNEL );if (!edid)
Signature · 1 line
2.30.2
PATCH v2 11/12 drm/edid: add single point of return to drm_do_get_edid()
In reply to Jani NikulaThis will be useful in the future. Use fail label for fail exit.
--- drivers/gpu/drm/drm_edid.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-)
drivers/gpu/drm/drm_edid.c +8 -7
@@ -2106,7 +2106,7 @@ struct edid *drm_do_get_edid(struct drm_connector *connector, edid =drm_get_override_edid (connector);if (edid) -return edid; + goto ok; edid =kmalloc (EDID_LENGTH ,GFP_KERNEL );if (!edid)
@@ -2117,7 +2117,7 @@ struct edid *drm_do_get_edid(struct drm_connector *connector,edid_block_status_print (status, edid,0 );if (status ==EDID_BLOCK_READ_FAIL ) - goto out; + goto fail;/* FIXME: Clarify what a corrupt EDID actually means. */ if (status ==EDID_BLOCK_OK || status ==EDID_BLOCK_VERSION )
@@ -2130,15 +2130,15 @@ struct edid *drm_do_get_edid(struct drm_connector *connector, connector->null_edid_counter++;connector_bad_edid (connector, edid,1 ); - goto out; + goto fail; }if (edid->extensions ==0 ) -return edid; + goto ok; new =krealloc (edid, (edid->extensions +1 ) *EDID_LENGTH ,GFP_KERNEL );if (!new) - goto out; + goto fail; edid = new;for (j =1 ; j <= edid->extensions; j++) {
@@ -2150,7 +2150,7 @@ struct edid *drm_do_get_edid(struct drm_connector *connector,if (!edid_block_status_valid (status,edid_block_tag (block))) {if (status ==EDID_BLOCK_READ_FAIL ) - goto out; + goto fail; invalid_blocks++; } }
@@ -2161,9 +2161,10 @@ struct edid *drm_do_get_edid(struct drm_connector *connector, edid =edid_filter_invalid_blocks (edid, invalid_blocks); } +ok:return edid; -out: +fail:kfree (edid);return NULL ; }
Signature · 1 line
2.30.2
PATCH v2 12/12 drm/edid: add EDID block count and size helpers
In reply to Jani NikulaAdd some helpers to figure out the EDID extension block count, block count, size, pointers to blocks.
Unfortunately, we'll need to cast away the const in a few places where we actually need to access the data.
v2: fix s/j/i/ introduced in a rebase
--- drivers/gpu/drm/drm_edid.c | 80 +++++++++++++++++++++++++++----------- 1 file changed, 57 insertions(+), 23 deletions(-)
drivers/gpu/drm/drm_edid.c +57 -23
@@ -1568,6 +1568,38 @@ static const struct drm_display_mode edid_4k_modes[] = {/*** DDC fetch and block validation ***/ +static int edid_extension_block_count (const struct edid *edid) +{ +return edid->extensions; +} + +static int edid_block_count (const struct edid *edid) +{ +return edid_extension_block_count (edid) +1 ; +} + +static int edid_size_by_blocks (int num_blocks) +{ +return num_blocks *EDID_LENGTH ; +} + +static int edid_size (const struct edid *edid) +{ +return edid_size_by_blocks (edid_block_count (edid)); +} + +static const void *edid_block_data (const struct edid *edid,int index) +{ +BUILD_BUG_ON (sizeof (*edid) !=EDID_LENGTH ); + +return edid + index; +} + +static const void *edid_extension_block_data (const struct edid *edid,int index) +{ +return edid_block_data (edid, index +1 ); +} +static const u8 edid_header[] = {0x00 ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0x00 };
@@ -1654,8 +1686,8 @@ bool drm_edid_are_equal(const struct edid *edid1, const struct edid *edid2)return false;if (edid1) { - edid1_len =EDID_LENGTH * (1 + edid1->extensions); - edid2_len =EDID_LENGTH * (1 + edid2->extensions); + edid1_len =edid_size (edid1); + edid2_len =edid_size (edid2);if (edid1_len != edid2_len)return false;
@@ -1865,14 +1897,16 @@ EXPORT_SYMBOL(drm_edid_block_valid);bool drm_edid_is_valid (struct edid *edid) {int i; -u8 *raw = (u8 *)edid;if (!edid)return false; -for (i =0 ; i <= edid->extensions; i++) -if (!drm_edid_block_valid (raw + i *EDID_LENGTH , i, true,NULL )) +for (i =0 ; i <edid_block_count (edid); i++) { +void *block = (void *)edid_block_data (edid, i); + +if (!drm_edid_block_valid (block, i, true,NULL ))return false; + }return true; }
@@ -1885,13 +1919,13 @@ static struct edid *edid_filter_invalid_blocks(const struct edid *edid,int valid_extensions = edid->extensions - invalid_blocks;int i; - new =kmalloc_array (valid_extensions +1 ,EDID_LENGTH ,GFP_KERNEL ); + new =kmalloc (edid_size_by_blocks (valid_extensions +1 ),GFP_KERNEL );if (!new) goto out; dest_block = new; -for (i =0 ; i <= edid->extensions; i++) { -const void *block = edid + i; +for (i =0 ; i <edid_block_count (edid); i++) { +const void *block =edid_block_data (edid, i);if (edid_block_valid (block, i ==0 ))memcpy (dest_block++, block,EDID_LENGTH );
@@ -2101,7 +2135,7 @@ struct edid *drm_do_get_edid(struct drm_connector *connector, void *context) {enum edid_block_status status; -int j, invalid_blocks =0 ; +int i, invalid_blocks =0 ;struct edid *edid, *new; edid =drm_get_override_edid (connector);
@@ -2133,20 +2167,20 @@ struct edid *drm_do_get_edid(struct drm_connector *connector, goto fail; } -if (edid->extensions ==0 ) +if (!edid_extension_block_count (edid) ==0 ) goto ok; - new =krealloc (edid, (edid->extensions +1 ) *EDID_LENGTH ,GFP_KERNEL ); + new =krealloc (edid,edid_size (edid),GFP_KERNEL );if (!new) goto fail; edid = new; -for (j =1 ; j <= edid->extensions; j++) { -void *block = edid + j; +for (i =1 ; i <edid_block_count (edid); i++) { +void *block = (void *)edid_block_data (edid, i); - status =edid_block_read (block, j, read_block, context); + status =edid_block_read (block, i, read_block, context); -edid_block_status_print (status, block, j); +edid_block_status_print (status, block, i);if (!edid_block_status_valid (status,edid_block_tag (block))) {if (status ==EDID_BLOCK_READ_FAIL )
@@ -2156,7 +2190,7 @@ struct edid *drm_do_get_edid(struct drm_connector *connector, }if (invalid_blocks) { -connector_bad_edid (connector, edid, edid->extensions +1 ); +connector_bad_edid (connector, edid,edid_block_count (edid)); edid =edid_filter_invalid_blocks (edid, invalid_blocks); }
@@ -2321,7 +2355,7 @@ EXPORT_SYMBOL(drm_get_edid_switcheroo);*/ struct edid *drm_edid_duplicate (const struct edid *edid) { -return kmemdup (edid, (edid->extensions +1 ) *EDID_LENGTH ,GFP_KERNEL ); +return kmemdup (edid,edid_size (edid),GFP_KERNEL ); }EXPORT_SYMBOL (drm_edid_duplicate);
@@ -2505,8 +2539,8 @@ drm_for_each_detailed_block(const struct edid *edid, detailed_cb *cb, void *closfor (i =0 ; i <EDID_DETAILED_TIMINGS ; i++)cb (&(edid->detailed_timings[i]), closure); -for (i =1 ; i <= edid->extensions; i++) { -const u8 *ext = (const u8 *)edid + (i *EDID_LENGTH ); +for (i =0 ; i <edid_extension_block_count (edid); i++) { +const u8 *ext =edid_extension_block_data (edid, i);switch (*ext) {case CEA_EXT :
@@ -3476,17 +3510,17 @@ const u8 *drm_find_edid_extension(const struct edid *edid,int i;/* No EDID or EDID extensions */ -if (edid ==NULL || edid->extensions ==0 ) +if (!edid || !edid_extension_block_count (edid))return NULL ;/* Find CEA extension */ -for (i = *ext_index; i < edid->extensions; i++) { - edid_ext = (const u8 *)edid +EDID_LENGTH * (i +1 ); +for (i = *ext_index; i <edid_extension_block_count (edid); i++) { + edid_ext =edid_extension_block_data (edid, i);if (edid_block_tag (edid_ext) == ext_id)break ; } -if (i >= edid->extensions) +if (i >=edid_extension_block_count (edid))return NULL ; *ext_index = i +1 ;
Signature · 1 line
2.30.2
kernel test robot
build botRe: [Intel-gfx] [CI v2 12/12] drm/edid: add EDID block count and size helpers
I love your patch! Perhaps something to improve:
Hi Jani,
I love your patch! Perhaps something to improve:
[auto build test WARNING on drm-tip/drm-tip]
[also build test WARNING on next-20220411]
[cannot apply to drm/drm-next drm-intel/for-linux-next v5.18-rc2] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/intel-lab-lkp/linux/commits/Jani-Nikula/drm-edid-low-level-EDID-block-read-refactoring-etc/20220411-175027 base: git://anongit.freedesktop.org/drm/drm-tip drm-tip config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20220411/[email protected]/config) compiler: arceb-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/ba74d3cc8cc1b6ba4c34a039e797994ddbc77567
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Jani-Nikula/drm-edid-low-level-EDID-block-read-refactoring-etc/20220411-175027 git checkout ba74d3cc8cc1b6ba4c34a039e797994ddbc77567
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash drivers/gpu/drm/
If you fix the issue, kindly add following tag as appropriate
All warnings (new ones prefixed by >>):
drivers/gpu/drm/drm_edid.c: In function 'drm_do_get_edid':
>> drivers/gpu/drm/drm_edid.c:1664:21: warning: array subscript [128, 32640] is outside array bounds of 'struct edid[1]' [-Warray-bounds]
1664 | return block[0];
| ~~~~~^~~
drivers/gpu/drm/drm_edid.c:2173:15: note: referencing an object of size 128 allocated by 'krealloc'
2173 | new = krealloc(edid, edid_size(edid), GFP_KERNEL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~vim +1664 drivers/gpu/drm/drm_edid.c
c465bbc87ce372 Stefan Brüns 2014-11-30 1659
4ba0f53ce685b0 Jani Nikula 2022-03-31 1660 static int edid_block_tag(const void *_block)
4ba0f53ce685b0 Jani Nikula 2022-03-31 1661 {
4ba0f53ce685b0 Jani Nikula 2022-03-31 1662 const u8 *block = _block;
4ba0f53ce685b0 Jani Nikula 2022-03-31 1663
4ba0f53ce685b0 Jani Nikula 2022-03-31 @1664 return block[0];
4ba0f53ce685b0 Jani Nikula 2022-03-31 1665 }
4ba0f53ce685b0 Jani Nikula 2022-03-31 1666 Signature · 2 lines
0-DAY CI Kernel Test Service https://01.org/lkp
Re: [Intel-gfx] [CI v2 12/12] drm/edid: add EDID block count and size helpers
Quoted 31 lines · kernel test robot
Hi Jani,
I love your patch! Perhaps something to improve:
[auto build test WARNING on drm-tip/drm-tip]
[also build test WARNING on next-20220411]
[cannot apply to drm/drm-next drm-intel/for-linux-next v5.18-rc2] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]url: https://github.com/intel-lab-lkp/linux/commits/Jani-Nikula/drm-edid-low-level-EDID-block-read-refactoring-etc/20220411-175027 base: git://anongit.freedesktop.org/drm/drm-tip drm-tip config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20220411/[email protected]/config) compiler: arceb-elf-gcc (GCC) 11.2.0reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/ba74d3cc8cc1b6ba4c34a039e797994ddbc77567
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Jani-Nikula/drm-edid-low-level-EDID-block-read-refactoring-etc/20220411-175027 git checkoutba74d3cc8cc1b6ba4c34a039e797994ddbc77567
# save the config file to linux build tree
mkdirbuild_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bashdrivers/gpu/drm/If you fix the issue, kindly add following tag as appropriate
Reported-by kernel test robot <[email protected]>All warnings (new ones prefixed by >>):
Quoted 7 lines
drivers/gpu/drm/drm_edid.c: In function 'drm_do_get_edid':Quoted 1 line
Quoted 1 line
drivers/gpu/drm/drm_edid.c:1664:21: warning: array subscript [128, 32640] is outside array bounds of 'struct edid[1]' [-Warray-bounds]1664 | return block[0]; | ~~~~~^~~ drivers/gpu/drm/drm_edid.c:2173:15: note: referencing an object of size 128 allocated by 'krealloc' 2173 | new = krealloc(edid, edid_size(edid), GFP_KERNEL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I presume this is caused by the other blunder.
BR,
Jani.
Quoted 12 lines
vim +1664
drivers/gpu/drm/drm_edid.c
c465bbc87ce372Stefan Brüns 2014-11-30 16594ba0f53ce685b0 Jani Nikula 2022-03-31 1660 static int edid_block_tag(const void *_block) 4ba0f53ce685b0 Jani Nikula 2022-03-31 1661 { 4ba0f53ce685b0 Jani Nikula 2022-03-31 1662 const u8 *block = _block; 4ba0f53ce685b0 Jani Nikula 2022-03-31 1663 4ba0f53ce685b0 Jani Nikula 2022-03-31 @1664 return block[0]; 4ba0f53ce685b0 Jani Nikula 2022-03-31 1665 } 4ba0f53ce685b0 Jani Nikula 2022-03-31 1666
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
kernel test robot
build botRe: [Intel-gfx] [CI v2 12/12] drm/edid: add EDID block count and size helpers
In reply to Jani NikulaI love your patch! Perhaps something to improve:
Hi Jani,
I love your patch! Perhaps something to improve:
[auto build test WARNING on drm-tip/drm-tip]
[also build test WARNING on next-20220411]
[cannot apply to drm/drm-next drm-intel/for-linux-next v5.18-rc2] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/intel-lab-lkp/linux/commits/Jani-Nikula/drm-edid-low-level-EDID-block-read-refactoring-etc/20220411-175027 base: git://anongit.freedesktop.org/drm/drm-tip drm-tip config: i386-randconfig-a001-20220411 (https://download.01.org/0day-ci/archive/20220411/[email protected]/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c6e83f560f06cdfe8aa47b248d8bdc58f947274b)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/ba74d3cc8cc1b6ba4c34a039e797994ddbc77567
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Jani-Nikula/drm-edid-low-level-EDID-block-read-refactoring-etc/20220411-175027 git checkout ba74d3cc8cc1b6ba4c34a039e797994ddbc77567
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/
If you fix the issue, kindly add following tag as appropriate
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/drm_edid.c:2170:6: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
if (!edid_extension_block_count(edid) == 0)
^ ~~
drivers/gpu/drm/drm_edid.c:2170:6: note: add parentheses after the '!' to evaluate the comparison first
if (!edid_extension_block_count(edid) == 0)
^
( )
drivers/gpu/drm/drm_edid.c:2170:6: note: add parentheses around left hand side expression to silence this warning
if (!edid_extension_block_count(edid) == 0)
^
( )1 warning generated.
vim +2170 drivers/gpu/drm/drm_edid.c
2112
2113 /**
2114 * drm_do_get_edid - get EDID data using a custom EDID block read function
2115 * @connector: connector we're probing
2116 * @get_edid_block: EDID block read function
2117 * @data: private data passed to the block read function
2118 *
2119 * When the I2C adapter connected to the DDC bus is hidden behind a device that
2120 * exposes a different interface to read EDID blocks this function can be used
2121 * to get EDID data using a custom block read function.
2122 *
2123 * As in the general case the DDC bus is accessible by the kernel at the I2C
2124 * level, drivers must make all reasonable efforts to expose it as an I2C
2125 * adapter and use drm_get_edid() instead of abusing this function.
2126 *
2127 * The EDID may be overridden using debugfs override_edid or firmware EDID
2128 * (drm_load_edid_firmware() and drm.edid_firmware parameter), in this priority
2129 * order. Having either of them bypasses actual EDID reads.
2130 *
2131 * Return: Pointer to valid EDID or NULL if we couldn't find any.
2132 */
2133 struct edid *drm_do_get_edid(struct drm_connector *connector,
2134 read_block_fn read_block,
2135 void *context)
2136 {
2137 enum edid_block_status status;
2138 int i, invalid_blocks = 0;
2139 struct edid *edid, *new;
2140
2141 edid = drm_get_override_edid(connector);
2142 if (edid)
2143 goto ok;
2144
2145 edid = kmalloc(EDID_LENGTH, GFP_KERNEL);
2146 if (!edid)
2147 return NULL;
2148
2149 status = edid_block_read(edid, 0, read_block, context);
2150
2151 edid_block_status_print(status, edid, 0);
2152
2153 if (status == EDID_BLOCK_READ_FAIL)
2154 goto fail;
2155
2156 /* FIXME: Clarify what a corrupt EDID actually means. */
2157 if (status == EDID_BLOCK_OK || status == EDID_BLOCK_VERSION)
2158 connector->edid_corrupt = false;
2159 else
2160 connector->edid_corrupt = true;
2161
2162 if (!edid_block_status_valid(status, edid_block_tag(edid))) {
2163 if (status == EDID_BLOCK_ZERO)
2164 connector->null_edid_counter++;
2165
2166 connector_bad_edid(connector, edid, 1);
2167 goto fail;
2168 }
2169
> 2170 if (!edid_extension_block_count(edid) == 0)
2171 goto ok;
2172
2173 new = krealloc(edid, edid_size(edid), GFP_KERNEL);
2174 if (!new)
2175 goto fail;
2176 edid = new;
2177
2178 for (i = 1; i < edid_block_count(edid); i++) {
2179 void *block = (void *)edid_block_data(edid, i);
2180
2181 status = edid_block_read(block, i, read_block, context);
2182
2183 edid_block_status_print(status, block, i);
2184
2185 if (!edid_block_status_valid(status, edid_block_tag(block))) {
2186 if (status == EDID_BLOCK_READ_FAIL)
2187 goto fail;
2188 invalid_blocks++;
2189 }
2190 }
2191
2192 if (invalid_blocks) {
2193 connector_bad_edid(connector, edid, edid_block_count(edid));
2194
2195 edid = edid_filter_invalid_blocks(edid, invalid_blocks);
2196 }
2197
2198 ok:
2199 return edid;
2200
2201 fail:
2202 kfree(edid);
2203 return NULL;
2204 }
2205 EXPORT_SYMBOL_GPL(drm_do_get_edid);
2206
Signature · 2 lines
0-DAY CI Kernel Test Service https://01.org/lkp
Re: [Intel-gfx] [CI v2 12/12] drm/edid: add EDID block count and size helpers
Quoted 42 lines · kernel test robot
Hi Jani,
I love your patch! Perhaps something to improve:
[auto build test WARNING on drm-tip/drm-tip]
[also build test WARNING on next-20220411]
[cannot apply to drm/drm-next drm-intel/for-linux-next v5.18-rc2] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]url: https://github.com/intel-lab-lkp/linux/commits/Jani-Nikula/drm-edid-low-level-EDID-block-read-refactoring-etc/20220411-175027 base: git://anongit.freedesktop.org/drm/drm-tip drm-tip config: i386-randconfig-a001-20220411 (https://download.01.org/0day-ci/archive/20220411/[email protected]/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c6e83f560f06cdfe8aa47b248d8bdc58f947274b)reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/ba74d3cc8cc1b6ba4c34a039e797994ddbc77567
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Jani-Nikula/drm-edid-low-level-EDID-block-read-refactoring-etc/20220411-175027 git checkoutba74d3cc8cc1b6ba4c34a039e797994ddbc77567
# save the config file to linux build tree
mkdirbuild_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bashdrivers/gpu/drm/If you fix the issue, kindly add following tag as appropriate
Reported-by kernel test robot <[email protected]>All warnings (new ones prefixed by >>):
Quoted 1 line
Quoted 1 line
drivers/gpu/drm/drm_edid.c:2170:6: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]if (!edid_extension_block_count(edid) == 0) ^ ~~ drivers/gpu/drm/drm_edid.c:2170:6: note: add parentheses after the '!' to evaluate the comparison first if (!edid_extension_block_count(edid) == 0) ^ ( ) drivers/gpu/drm/drm_edid.c:2170:6: note: add parentheses around left hand side expression to silence this warning if (!edid_extension_block_count(edid) == 0) ^ ( )
Quoted 1 line
1 warning generated.
Whoops, thanks for the report!
BR,
Jani.
Quoted 99 lines
vim +2170
drivers/gpu/drm/drm_edid.c2112
2113 /**
2114 *drm_do_get_edid- get EDID data using a custom EDID block read function
2115 * @connector: connector we're probing
2116 * @get_edid_block: EDID block read function
2117 * @data: private data passed to the block read function
2118 *
2119 * When the I2C adapter connected to the DDC bus is hidden behind a device that
2120 * exposes a different interface to read EDID blocks this function can be used
2121 * to get EDID data using a custom block read function.
2122 *
2123 * As in the general case the DDC bus is accessible by the kernel at the I2C
2124 * level, drivers must make all reasonable efforts to expose it as an I2C
2125 * adapter and usedrm_get_edid()instead of abusing this function.
2126 *
2127 * The EDID may be overridden using debugfsoverride_edidor firmware EDID
2128 * (drm_load_edid_firmware()and drm.edid_firmware parameter), in this priority
2129 * order. Having either of them bypasses actual EDID reads.
2130 *
2131 * Return: Pointer to valid EDID or NULL if we couldn't find any.
2132 */
2133 struct edid *drm_do_get_edid(structdrm_connector*connector,
2134read_block_fnread_block,
2135 void *context)
2136 {
2137 enumedid_block_statusstatus;
2138 int i,invalid_blocks= 0;
2139 struct edid *edid, *new;
2140
2141 edid =drm_get_override_edid(connector);
2142 if (edid)
2143 goto ok;
2144
2145 edid =kmalloc(EDID_LENGTH, GFP_KERNEL);
2146 if (!edid)
2147 return NULL;
2148
2149 status =edid_block_read(edid, 0, read_block, context);
2150
2151edid_block_status_print(status, edid, 0);
2152
2153 if (status ==EDID_BLOCK_READ_FAIL)
2154 goto fail;
2155
2156 /* FIXME: Clarify what a corrupt EDID actually means. */
2157 if (status ==EDID_BLOCK_OK|| status ==EDID_BLOCK_VERSION)
2158connector->edid_corrupt= false;
2159 else
2160connector->edid_corrupt= true;
2161
2162 if (!edid_block_status_valid(status,edid_block_tag(edid))) {
2163 if (status ==EDID_BLOCK_ZERO)
2164 connector->null_edid_counter++;
2165
2166connector_bad_edid(connector, edid, 1);
2167 goto fail;
2168 }
2169Quoted 1 line
2170 if (!edid_extension_block_count(edid) == 0)
2171 goto ok;
2172
2173 new =krealloc(edid, edid_size(edid), GFP_KERNEL);
2174 if (!new)
2175 goto fail;
2176 edid = new;
2177
2178 for (i = 1; i <edid_block_count(edid); i++) {
2179 void *block = (void *)edid_block_data(edid, i);
2180
2181 status =edid_block_read(block, i, read_block, context);
2182
2183edid_block_status_print(status, block, i);
2184
2185 if (!edid_block_status_valid(status,edid_block_tag(block))) {
2186 if (status ==EDID_BLOCK_READ_FAIL)
2187 goto fail;
2188 invalid_blocks++;
2189 }
2190 }
2191
2192 if (invalid_blocks) {
2193connector_bad_edid(connector, edid, edid_block_count(edid));
2194
2195 edid =edid_filter_invalid_blocks(edid, invalid_blocks);
2196 }
2197
2198 ok:
2199 return edid;
2200
2201 fail:
2202 kfree(edid);
2203 return NULL;
2204 }
2205EXPORT_SYMBOL_GPL(drm_do_get_edid);
2206
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/edid: low level EDID block read refactoring etc. (rev4)
In reply to Jani Nikula== Series Details ==
== Series Details ==
Series: drm/edid: low level EDID block read refactoring etc. (rev4)
URL : https://patchwork.freedesktop.org/series/102329/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_11481 -> Patchwork_102329v4
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_102329v4 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_102329v4, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/index.html
Participating hosts (48 -> 39)
------------------------------
Additional (6): fi-cml-u2 fi-tgl-u2 fi-skl-guc fi-ivb-3770 fi-pnv-d510 fi-ehl-2
Missing (15): fi-bdw-samus shard-tglu bat-dg1-6 bat-dg2-8 shard-rkl bat-adlm-1 bat-dg2-9 fi-bsw-cyan bat-adlp-6 bat-adlp-4 bat-rpls-1 bat-rpls-2 shard-dg1 bat-jsl-2 bat-jsl-1
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_102329v4:
### IGT changes ###
#### Possible regressions ####
* igt@debugfs_test@read_all_entries:
- fi-rkl-11600: [PASS][1] -> [DMESG-WARN][2] +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-rkl-11600/igt@debugfs_test@read_all_entries.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-rkl-11600/igt@debugfs_test@read_all_entries.html
* igt@gem_exec_suspend@basic-s3@smem:
- fi-elk-e7500: [PASS][3] -> [DMESG-WARN][4] +61 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-elk-e7500/igt@gem_exec_suspend@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-elk-e7500/igt@gem_exec_suspend@[email protected]
* igt@kms_addfb_basic@addfb25-modifier-no-flag:
- fi-cfl-guc: [PASS][5] -> [DMESG-WARN][6] +61 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-cfl-guc/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-cfl-guc/igt@[email protected]
* igt@kms_addfb_basic@bad-pitch-128:
- fi-rkl-guc: [PASS][7] -> [DMESG-WARN][8] +62 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-rkl-guc/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-rkl-guc/igt@[email protected]
* igt@kms_addfb_basic@bad-pitch-32:
- fi-adl-ddr5: [PASS][9] -> [DMESG-WARN][10] +63 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-adl-ddr5/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-adl-ddr5/igt@[email protected]
* igt@kms_addfb_basic@bad-pitch-63:
- fi-rkl-11600: NOTRUN -> [DMESG-WARN][11] +59 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-rkl-11600/igt@[email protected]
* igt@kms_addfb_basic@bad-pitch-65536:
- fi-hsw-g3258: [PASS][12] -> [DMESG-WARN][13] +67 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-hsw-g3258/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-hsw-g3258/igt@[email protected]
* igt@kms_addfb_basic@bo-too-small-due-to-tiling:
- fi-icl-u2: [PASS][14] -> [DMESG-WARN][15] +67 similar issues
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-icl-u2/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-icl-u2/igt@[email protected]
* igt@kms_addfb_basic@invalid-get-prop:
- fi-bsw-n3050: [PASS][16] -> [DMESG-WARN][17] +57 similar issues
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-bsw-n3050/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-bsw-n3050/igt@[email protected]
* igt@kms_addfb_basic@tile-pitch-mismatch:
- fi-cfl-8700k: [PASS][18] -> [DMESG-WARN][19] +62 similar issues
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-cfl-8700k/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-cfl-8700k/igt@[email protected]
* igt@kms_addfb_basic@too-wide:
- fi-tgl-1115g4: [PASS][20] -> [DMESG-WARN][21] +63 similar issues
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-tgl-1115g4/igt@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-tgl-1115g4/igt@[email protected]
* igt@kms_addfb_basic@unused-pitches:
- fi-snb-2600: [PASS][22] -> [DMESG-WARN][23] +63 similar issues
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-snb-2600/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-snb-2600/igt@[email protected]
* igt@kms_force_connector_basic@prune-stale-modes:
- fi-glk-j4005: [PASS][24] -> [DMESG-WARN][25] +62 similar issues
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-glk-j4005/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-glk-j4005/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-b:
- fi-cfl-8109u: [PASS][26] -> [DMESG-WARN][27] +62 similar issues
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-cfl-8109u/igt@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-cfl-8109u/igt@[email protected]
* igt@kms_pipe_crc_basic@nonblocking-crc-pipe-a-frame-sequence:
- fi-ilk-650: [PASS][28] -> [DMESG-WARN][29] +63 similar issues
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-ilk-650/igt@[email protected]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-ilk-650/igt@[email protected]
* igt@prime_vgem@basic-fence-flip:
- fi-kbl-7500u: [PASS][30] -> [DMESG-WARN][31] +62 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-kbl-7500u/igt@[email protected]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-kbl-7500u/igt@[email protected]
#### Warnings ####
* igt@gem_exec_suspend@basic-s3@smem:
- fi-rkl-11600: [INCOMPLETE][32] ([i915#5127]) -> [DMESG-WARN][33]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-rkl-11600/igt@gem_exec_suspend@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-rkl-11600/igt@gem_exec_suspend@[email protected]
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* {igt@i915_suspend@system-suspend-without-i915}:
- fi-hsw-g3258: [PASS][34] -> [DMESG-WARN][35]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-hsw-g3258/igt@[email protected]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-hsw-g3258/igt@[email protected]
- fi-elk-e7500: [PASS][36] -> [DMESG-WARN][37]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-elk-e7500/igt@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-elk-e7500/igt@[email protected]
- fi-ilk-650: [PASS][38] -> [DMESG-WARN][39]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-ilk-650/igt@[email protected]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-ilk-650/igt@[email protected]
- fi-snb-2600: [PASS][40] -> [DMESG-WARN][41]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-snb-2600/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-snb-2600/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_102329v4 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@core_hotunplug@unbind-rebind:
- fi-cml-u2: NOTRUN -> [DMESG-WARN][42] ([i915#5437])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-cml-u2/igt@[email protected]
- fi-rkl-11600: NOTRUN -> [DMESG-WARN][43] ([i915#5577])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-rkl-11600/igt@[email protected]
- fi-skl-guc: NOTRUN -> [DMESG-WARN][44] ([i915#5437])
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-skl-guc/igt@[email protected]
* igt@gem_exec_fence@basic-busy@bcs0:
- fi-cml-u2: NOTRUN -> [SKIP][45] ([i915#1208]) +1 similar issue
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-cml-u2/igt@gem_exec_fence@[email protected]
* igt@gem_huc_copy@huc-copy:
- fi-cml-u2: NOTRUN -> [SKIP][46] ([i915#2190])
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-cml-u2/igt@[email protected]
- fi-tgl-u2: NOTRUN -> [SKIP][47] ([i915#2190])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-tgl-u2/igt@[email protected]
- fi-rkl-11600: NOTRUN -> [SKIP][48] ([i915#2190])
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-rkl-11600/igt@[email protected]
* igt@gem_lmem_swapping@basic:
- fi-rkl-11600: NOTRUN -> [SKIP][49] ([i915#4613]) +3 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-rkl-11600/igt@[email protected]
- fi-skl-guc: NOTRUN -> [SKIP][50] ([fdo#109271] / [i915#4613]) +3 similar issues
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-skl-guc/igt@[email protected]
* igt@gem_lmem_swapping@parallel-random-engines:
- fi-cml-u2: NOTRUN -> [SKIP][51] ([i915#4613]) +3 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-cml-u2/igt@[email protected]
* igt@gem_lmem_swapping@random-engines:
- fi-ivb-3770: NOTRUN -> [SKIP][52] ([fdo#109271]) +18 similar issues
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-ivb-3770/igt@[email protected]
* igt@gem_tiled_pread_basic:
- fi-rkl-11600: NOTRUN -> [SKIP][53] ([i915#3282])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-rkl-11600/igt@gem_tiled_pread_basic.html
* igt@i915_pm_backlight@basic-brightness:
- fi-rkl-11600: NOTRUN -> [SKIP][54] ([i915#3012])
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-rkl-11600/igt@[email protected]
* igt@i915_selftest@live@hangcheck:
- fi-snb-2600: [PASS][55] -> [INCOMPLETE][56] ([i915#3921])
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-snb-2600/igt@i915_selftest@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-snb-2600/igt@i915_selftest@[email protected]
* igt@kms_busy@basic@flip:
- fi-tgl-u2: NOTRUN -> [DMESG-WARN][57] ([i915#402])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-tgl-u2/igt@kms_busy@[email protected]
* igt@kms_chamelium@dp-crc-fast:
- fi-skl-guc: NOTRUN -> [SKIP][58] ([fdo#109271] / [fdo#111827]) +8 similar issues
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-skl-guc/igt@[email protected]
- fi-rkl-11600: NOTRUN -> [SKIP][59] ([fdo#111827]) +8 similar issues
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-rkl-11600/igt@[email protected]
* igt@kms_chamelium@dp-hpd-fast:
- fi-ivb-3770: NOTRUN -> [SKIP][60] ([fdo#109271] / [fdo#111827]) +8 similar issues
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-ivb-3770/igt@[email protected]
- fi-tgl-u2: NOTRUN -> [SKIP][61] ([fdo#109284] / [fdo#111827]) +8 similar issues
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-tgl-u2/igt@[email protected]
- fi-cml-u2: NOTRUN -> [SKIP][62] ([fdo#109284] / [fdo#111827]) +8 similar issues
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-cml-u2/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- fi-skl-guc: NOTRUN -> [SKIP][63] ([fdo#109271]) +11 similar issues
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-skl-guc/igt@[email protected]
- fi-rkl-11600: NOTRUN -> [SKIP][64] ([i915#4070] / [i915#4103]) +1 similar issue
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-rkl-11600/igt@[email protected]
- fi-bsw-n3050: [PASS][65] -> [DMESG-WARN][66] ([i915#1982])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-bsw-n3050/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-bsw-n3050/igt@[email protected]
- fi-tgl-u2: NOTRUN -> [SKIP][67] ([i915#4103]) +1 similar issue
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-tgl-u2/igt@[email protected]
- fi-cml-u2: NOTRUN -> [SKIP][68] ([fdo#109278]) +1 similar issue
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-cml-u2/igt@[email protected]
* igt@kms_force_connector_basic@force-load-detect:
- fi-cml-u2: NOTRUN -> [SKIP][69] ([fdo#109285])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-cml-u2/igt@[email protected]
- fi-tgl-u2: NOTRUN -> [SKIP][70] ([fdo#109285])
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-tgl-u2/igt@[email protected]
- fi-rkl-11600: NOTRUN -> [SKIP][71] ([fdo#109285] / [i915#4098])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-rkl-11600/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-cml-u2: NOTRUN -> [DMESG-WARN][72] ([i915#4269])
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-cml-u2/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-c:
- fi-pnv-d510: NOTRUN -> [SKIP][73] ([fdo#109271] / [i915#5341])
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-pnv-d510/igt@[email protected]
- fi-cfl-guc: [PASS][74] -> [DMESG-WARN][75] ([i915#5341])
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-cfl-guc/igt@[email protected]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-cfl-guc/igt@[email protected]
- fi-icl-u2: [PASS][76] -> [DMESG-WARN][77] ([i915#5341])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-icl-u2/igt@[email protected]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-icl-u2/igt@[email protected]
- fi-cfl-8700k: [PASS][78] -> [DMESG-WARN][79] ([i915#5341])
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-cfl-8700k/igt@[email protected]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-cfl-8700k/igt@[email protected]
- fi-cfl-8109u: [PASS][80] -> [DMESG-WARN][81] ([i915#5341])
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-cfl-8109u/igt@[email protected]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-cfl-8109u/igt@[email protected]
- fi-kbl-7500u: [PASS][82] -> [DMESG-WARN][83] ([i915#5341])
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-kbl-7500u/igt@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-kbl-7500u/igt@[email protected]
- fi-hsw-g3258: [PASS][84] -> [DMESG-WARN][85] ([i915#5341])
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-hsw-g3258/igt@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-hsw-g3258/igt@[email protected]
- fi-rkl-guc: [PASS][86] -> [DMESG-WARN][87] ([i915#5341])
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-rkl-guc/igt@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-rkl-guc/igt@[email protected]
- fi-adl-ddr5: [PASS][88] -> [DMESG-WARN][89] ([i915#5341])
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-adl-ddr5/igt@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-adl-ddr5/igt@[email protected]
- fi-glk-j4005: [PASS][90] -> [DMESG-WARN][91] ([i915#5341])
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-glk-j4005/igt@[email protected]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-glk-j4005/igt@[email protected]
- fi-tgl-1115g4: [PASS][92] -> [DMESG-WARN][93] ([i915#5341])
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-tgl-1115g4/igt@[email protected]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-tgl-1115g4/igt@[email protected]
- fi-rkl-11600: NOTRUN -> [DMESG-WARN][94] ([i915#5341])
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-rkl-11600/igt@[email protected]
- fi-bsw-n3050: [PASS][95] -> [DMESG-WARN][96] ([i915#5341])
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11481/fi-bsw-n3050/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-bsw-n3050/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
- fi-rkl-11600: NOTRUN -> [SKIP][97] ([i915#4070] / [i915#533])
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-rkl-11600/igt@[email protected]
- fi-cml-u2: NOTRUN -> [SKIP][98] ([fdo#109278] / [i915#533])
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-cml-u2/igt@[email protected]
- fi-skl-guc: NOTRUN -> [SKIP][99] ([fdo#109271] / [i915#533])
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-skl-guc/igt@[email protected]
* igt@kms_psr@primary_mmap_gtt:
- fi-rkl-11600: NOTRUN -> [SKIP][100] ([i915#1072]) +3 similar issues
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-rkl-11600/igt@kms_psr@primary_mmap_gtt.html
* igt@kms_setmode@basic-clone-single-crtc:
- fi-cml-u2: NOTRUN -> [SKIP][101] ([i915#3555])
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-cml-u2/igt@[email protected]
- fi-tgl-u2: NOTRUN -> [SKIP][102] ([i915#3555])
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-tgl-u2/igt@[email protected]
- fi-rkl-11600: NOTRUN -> [SKIP][103] ([i915#3555] / [i915#4098])
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-rkl-11600/igt@[email protected]
* igt@prime_vgem@basic-userptr:
- fi-pnv-d510: NOTRUN -> [SKIP][104] ([fdo#109271]) +39 similar issues
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-pnv-d510/igt@[email protected]
- fi-rkl-11600: NOTRUN -> [SKIP][105] ([i915#3301] / [i915#3708])
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-rkl-11600/igt@[email protected]
- fi-cml-u2: NOTRUN -> [SKIP][106] ([i915#3301])
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-cml-u2/igt@[email protected]
* igt@prime_vgem@basic-write:
- fi-rkl-11600: NOTRUN -> [SKIP][107] ([i915#3291] / [i915#3708]) +2 similar issues
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-rkl-11600/igt@[email protected]
* igt@runner@aborted:
- fi-rkl-11600: NOTRUN -> [FAIL][108] ([i915#4312])
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-rkl-11600/igt@[email protected]
- fi-bdw-5557u: NOTRUN -> [FAIL][109] ([i915#4312])
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-bdw-5557u/igt@[email protected]
- fi-hsw-4770: NOTRUN -> [FAIL][110] ([fdo#109271] / [i915#2722] / [i915#4312] / [i915#5594])
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-hsw-4770/igt@[email protected]
- fi-cml-u2: NOTRUN -> [FAIL][111] ([i915#4312] / [i915#5257])
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-cml-u2/igt@[email protected]
- fi-skl-guc: NOTRUN -> [FAIL][112] ([i915#4312] / [i915#5257])
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/fi-skl-guc/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#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109284]: https://bugs.freedesktop.org/show_bug.cgi?id=109284
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1208]: https://gitlab.freedesktop.org/drm/intel/issues/1208
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2722]: https://gitlab.freedesktop.org/drm/intel/issues/2722
[i915#3012]: https://gitlab.freedesktop.org/drm/intel/issues/3012
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#3921]: https://gitlab.freedesktop.org/drm/intel/issues/3921
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
[i915#4070]: https://gitlab.freedesktop.org/drm/intel/issues/4070
[i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4269]: https://gitlab.freedesktop.org/drm/intel/issues/4269
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#5127]: https://gitlab.freedesktop.org/drm/intel/issues/5127
[i915#5257]: https://gitlab.freedesktop.org/drm/intel/issues/5257
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
[i915#5341]: https://gitlab.freedesktop.org/drm/intel/issues/5341
[i915#5437]: https://gitlab.freedesktop.org/drm/intel/issues/5437
[i915#5577]: https://gitlab.freedesktop.org/drm/intel/issues/5577
[i915#5594]: https://gitlab.freedesktop.org/drm/intel/issues/5594
Build changes
-------------
* Linux: CI_DRM_11481 -> Patchwork_102329v4
CI-20190529: 20190529
CI_DRM_11481: 9bf68eb47288411da23ce5c9967f27dba43bda1d @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6415: c3b690bd5f7fb1fb7ed786ab0f3b815930a6a55f @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_102329v4: 102329v4 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
8ed8357ac179 drm/edid: add EDID block count and size helpers 742cc7333814 drm/edid: add single point of return to drm_do_get_edid() 7094e7e7477d drm/edid: drop extra local varbcb239b349ce drm/edid: convert extension block read to EDID block read helper 7d685c955a11 drm/edid: use EDID block read helper in drm_do_get_edid() 3b65ff7fa770 drm/edid: abstract an EDID block read helper 923a34fc514e drm/edid: add typedef for block read function ec1501a2d0ad drm/edid: pass struct edid to connector_bad_edid() 8a74029683d0 drm/edid: add a helper to log dump an EDID block ac1abb2628f0 drm/edid: refactor EDID block status printing 3d3e7ba17127 drm/edid: have edid_block_check() detect blocks that are all zero 8acb3a65f117 drm/edid: convert edid_is_zero() to edid_block_is_zero() for blocks
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102329v4/index.html