On Thu, Apr 10, 2014 at 12:09:03PM +0200, Michal Simek wrote: > The question here is. This driver is just reporting problem through > edac interface which is counting that errors and provide an unified > way how to report problems. Yes, normally you can use edac for reporting and error counting. But, if, as I said earlier, it is easier to solve your issue of having two entities touch one hardware and synchronizing around it is too much, just for this one case, you can simply report the errors with simple printk, without the edac interface. This is why I was asking the practical question of why do you even need the edac interface? If it is only for reporting, use printk and solve the problem of having two drivers. > Maybe as you said we don't need to use edac interface at all but by > design because every error means that there is the problem and error > should be reported and system should be reset because we just don't > know where the problem is. We know that we have a problem. > > The question also is if we should execute any code because the problem > can be with instructions and system should just reset. > > Isn't there any security issue that even executing any code is a > problem? Well, this is up to you to answer. If an UE (Uncorrectable Error) causes data to get corrupted on your system, which, as a result, corrupts visible state which lands on storage, you definitely want to stop executing any code. x86 deals very rigorously with errors like those by running an exception handler, on AMD there's also this thing called syncflood which stops any execution and a warm reset happens. So you have to think hard what those UEs cause on your systems and only then act accordingly. If something bad like the above happens, the last thing you want to do is report them to dmesg. HTH. -- Regards/Gruss, Boris. Sent from a fat crate under my desk. Formatting is fine. -- -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html