mirror of
https://github.com/gnif/vendor-reset.git
synced 2026-03-28 13:12:43 +01:00
Guard against common cases where vega10 does not
need to be reset. Specifically, check if the card is already in BACO. If so, exit. If the card shows no signs of life, exit because we likely can't do anything. If the card shows signs of life, do a BACO reset.
This commit is contained in:
@@ -144,14 +144,6 @@ enum amd_hw_ip_block_type
|
||||
#define HWIP_MAX_INSTANCE 8
|
||||
/* end from amdgpu.h */
|
||||
|
||||
/* from hwmgr.h */
|
||||
enum BACO_STATE
|
||||
{
|
||||
BACO_STATE_OUT = 0,
|
||||
BACO_STATE_IN,
|
||||
};
|
||||
/* end from hwmgr.h */
|
||||
|
||||
struct amd_fake_dev
|
||||
{
|
||||
uint32_t *reg_offset[MAX_HWIP][HWIP_MAX_INSTANCE];
|
||||
|
||||
Reference in New Issue
Block a user