mirror of
https://github.com/gnif/vendor-reset.git
synced 2025-12-29 06:59:29 +01:00
[amd] navi10: cosmetics (tabs to two spaces)
This commit is contained in:
parent
fb4e65efe1
commit
aacf8f3450
@ -134,10 +134,10 @@ static int amd_navi10_reset(struct vendor_reset_dev *dev)
|
|||||||
WREG32(adev->bios_scratch_reg_offset + 7, 0);
|
WREG32(adev->bios_scratch_reg_offset + 7, 0);
|
||||||
|
|
||||||
/* it only makes sense to reset mp1 if it's running
|
/* it only makes sense to reset mp1 if it's running
|
||||||
* XXX: is this even necessary? in early testing, I ran into
|
* XXX: is this even necessary? in early testing, I ran into
|
||||||
* situations where MP1 was alive but not responsive, but in
|
* situations where MP1 was alive but not responsive, but in
|
||||||
* later testing I have not been able to replicate this scenario.
|
* later testing I have not been able to replicate this scenario.
|
||||||
*/
|
*/
|
||||||
if (smu_resp != 0x01 && mp1_intr)
|
if (smu_resp != 0x01 && mp1_intr)
|
||||||
{
|
{
|
||||||
nv_info("MP1 reset\n");
|
nv_info("MP1 reset\n");
|
||||||
@ -171,10 +171,10 @@ static int amd_navi10_reset(struct vendor_reset_dev *dev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* again, this only makes sense if we have an SMU to talk to
|
* again, this only makes sense if we have an SMU to talk to
|
||||||
* some of these may fail, that's okay. we're just turning off as many
|
* some of these may fail, that's okay. we're just turning off as many
|
||||||
* things as possible
|
* things as possible
|
||||||
*/
|
*/
|
||||||
if (mp1_intr)
|
if (mp1_intr)
|
||||||
{
|
{
|
||||||
smu_wait(adev);
|
smu_wait(adev);
|
||||||
@ -237,9 +237,9 @@ static int amd_navi10_reset(struct vendor_reset_dev *dev)
|
|||||||
}
|
}
|
||||||
nv_info("memsize: %x\n", tmp);
|
nv_info("memsize: %x\n", tmp);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* this takes a long time :(
|
* this takes a long time :(
|
||||||
*/
|
*/
|
||||||
for (timeout = 100; timeout; --timeout)
|
for (timeout = 100; timeout; --timeout)
|
||||||
{
|
{
|
||||||
/* see if PSP bootloader comes back */
|
/* see if PSP bootloader comes back */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user