]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ACPI / APEI: Add parameter check before error injection
authorChen Gong <gong.chen@linux.intel.com>
Thu, 23 May 2013 02:32:02 +0000 (02:32 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 1 Jun 2013 20:33:33 +0000 (22:33 +0200)
commit395fb1d62407e9533767d6e9609e52953da71cbd
tree6364bef03ceff19f6a2eb42fca1242b69be48179
parent994f7a3eaa7ee5648d528611c4daf1eaa832915a
ACPI / APEI: Add parameter check before error injection

When param1 is enabled in EINJ but not assigned with a valid
value, sometimes it will cause the error like below:

 APEI: Can not request [mem 0x7aaa7000-0x7aaa7007] for APEI EINJ Trigger registers

It is because some firmware will access target address specified in
param1 to trigger the error when injecting memory error. This will
cause resource conflict with regular memory. So It must be removed
from trigger table resources, but incorrect param1/param2
combination will stop this action. Add extra check to avoid
this kind of error.

Signed-off-by: Chen Gong <gong.chen@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/apei/einj.c
kernel/resource.c