1 Nov 2010 01:04
Re: [PATCH 2/3] [x86, next] Add mce_ser interface in /sys/kernel/debug/mce/ for test
Jin Dongming <jin.dongming <at> np.css.fujitsu.com>
2010-11-01 00:04:10 GMT
2010-11-01 00:04:10 GMT
(2010/10/29 17:06), Andi Kleen wrote: > On Fri, Oct 29, 2010 at 01:42:09PM +0900, Jin Dongming wrote: >> If we want to test the part of mce handler for SRAO and SRAR, we need to >> have a test machine whose CPU supports MCG_SER_P. If we don't have such >> machine, we can not test the part of mce handler for SRAO and SRAR. >> >> With this interface we can test the part of mce handler for SRAO and SRAR >> by setting mce_ser 1 on the machine which does not support MCG_SER_P. >> >> Usage: >> if val == 1 or val == 0 >> Set val to mce_ser. >> else >> Ser the original value to mce_ser. >> >> Note: >> Please don't use mce_ser interface except mce test. >> Because when the real mce exception happened, the unsuitable set >> with this interface maybe change the real process of mce handler and >> lead to a different result. > > Basic idea is good (I have been using a similar patch for quite some time). > My patch was a little bit simpler though, not bothering with org_ser: > Yes, it is. But if you set mce_ser with mca_recovery_set(), the original value of mce_ser will be changed, is it right? If a new guy try to test mce with the test machine, he/she may be(Continue reading)
RSS Feed