RE: [PATCH] drm/amdgpu: updated UMC error address record with correct channel index

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[AMD Public Use]

 

If we have to improve the macro definition for repetitive loops, I assume we can merge the two defines into one, like:

 

#define LOOP_UMC_CH_INST(umc_inst) for ((umc_inst) = 0; (umc_inst) < adev->umc.umc_inst##_num; (umc_inst)++)

 

Then when we call the double loop, it can be done like:

LOOP_UMC_CH_INST(umc_inst)

              LOOP_UMC_CH_INST(channel_inst) {…

 

Next we should name the macro more friendly.

 

Regards,

Guchun

 

From: Clements, John <John.Clements@xxxxxxx>
Sent: Tuesday, January 7, 2020 3:28 PM
To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx; dl.srdc_lnx_ras <dl.srdc_lnx_ras@xxxxxxx>
Subject: [PATCH] drm/amdgpu: updated UMC error address record with correct channel index

 

[AMD Official Use Only - Internal Distribution Only]

 

Resolved issue with inputting an incorrect UMC channel index into the UMC error address record.

 

Defined macros for repetitive for loops

 

Thank you,

John Clements

_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux