Re: [RESEND-RFC v2 1/3] powerpc/eeh: Refactor eeh_pe_update_time_stamp() to update freeze_count
From: Andrew Donnellan <hidden>
Date: 2017-03-02 01:04:56
On 01/03/17 22:24, Vaibhav Jain wrote:
This patch introduces a new function eeh_pe_update_freeze_counter() replacing existing function eeh_pe_update_time_stamp(). The new function also manages the value of reeze_count along with tstamp to track the number of times the PE roze in last one hour and if the freeze_count > eeh_max_freezes then eports an error(-ENOTRECOVERABLE) to indicate that the PE should be ermanently disabled. This patch should not introduce any behavioral change. Signed-off-by: Vaibhav Jain <redacted>
Thanks for addressing Russell's comments. Per Guilherme, your commit message is missing a few letters, a couple of minor style points below, otherwise: Reviewed-by: Andrew Donnellan <redacted>
/** - * eeh_pe_update_time_stamp - Update PE's frozen time stamp + * eeh_pe_update_freeze_counter - Update PE's frozen time stamp + * and freeze counter * @pe: EEH PE * - * We have time stamp for each PE to trace its time of getting - * frozen in last hour. The function should be called to update - * the time stamp on first error of the specific PE. On the other - * handle, we needn't account for errors happened in last hour. + * We have a freeze counter and time stamp for each PE to trace + * number of times the PE was frozen in the last hour. This function + * updates the PE's freeze counter and returns an error if its greater
it's
+ * than eeh_max_freezes. The function should be called to once every + * time a specific PE freezes.
"The function should be called every time the PE freezes" -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnellan@au1.ibm.com IBM Australia Limited