mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 12:07:12 +00:00 
			
		
		
		
	pipe_crc: Warn if the CRC values is 0xffffffff
This is what we read when the CRC logic in in a powered down well. We really don't want that to happen. In theory, it's possible 0xffffffff to be a valid CRC value, so I don't assert here. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
		
							parent
							
								
									4f83c4efa8
								
							
						
					
					
						commit
						09196af60d
					
				@ -199,9 +199,14 @@ bool igt_crc_is_null(igt_crc_t *crc)
 | 
			
		||||
{
 | 
			
		||||
	int i;
 | 
			
		||||
 | 
			
		||||
	for (i = 0; i < crc->n_words; i++)
 | 
			
		||||
	for (i = 0; i < crc->n_words; i++) {
 | 
			
		||||
		if (crc->crc[i] == 0xffffffff)
 | 
			
		||||
			igt_warn("Suspicious CRC: it looks like the CRC "
 | 
			
		||||
				 "read back was from a register in a powered "
 | 
			
		||||
				 "down well\n");
 | 
			
		||||
		if (crc->crc[i])
 | 
			
		||||
			return false;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user