Re: [PATCH 2/2] drivers/gpu/drm/ast: Fix infinite loop if read fails

2020-12-28 Thread Randy Dunlap
On 12/25/20 12:13 AM, Defang Bo wrote: > [Why] Similar to commit <298360af3> ast_init_dram_reg() configures a window > in order to access BMC memory. > A BMC register can be configured to disallow this, and if so, causes > an infinite loop in the ast driver which renders the system unusable. > [Ho

[PATCH 2/2] drivers/gpu/drm/ast: Fix infinite loop if read fails

2020-12-25 Thread Defang Bo
[Why] Similar to commit <298360af3> ast_init_dram_reg() configures a window in order to access BMC memory. A BMC register can be configured to disallow this, and if so, causes an infinite loop in the ast driver which renders the system unusable. [How] Fix this by erroring out if an error is detect