summaryrefslogtreecommitdiffstats
path: root/include/linux/vm_err.h
Commit message (Collapse)AuthorAge
* Err-inject: Handle generic sync exception reportsAndre Richter2020-02-21
| | | | | | | | | | | | | | | | | | | | | | | | This change extends the existing minimal placeholder sample handler for injected synchronous exceptions. It now consumes a generic sync exception report and, showcases how the information can be used to decode the exceptions further using two minimal examples (Data Abort and Instr Abort). This needs to be used only as a reference for any customized elaborate error handling that may be needed. JIRA ESV-312 Bug 2580803 Change-Id: I32cf2322a6002ac00071d3246a32a17eb37165c3 Signed-off-by: Andre Richter <arichter@nvidia.com> (cherry picked from commit 9ce3c05e425607a1acf0a28ea75258fb66f06820) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2300616 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Dmitry Pervushin <dpervushin@nvidia.com> Reviewed-by: Rohit Upadhyay <rupadhyay@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* inject-vm-err: T19x MC error handlerPotharaju Ravi Teja2020-01-24
| | | | | | | | | | | | | | | | | | | - Add support to handle Memory Controller errors on on t19x. - This change adds a sample handler for MC errors. It is a minimal handler that just dumps error information to the console. This can be used as a reference to implement an elaborate error handler. Bug 2580803 Change-Id: Ib86b925125650b4812fdbee5310455ae95ccd83c (cherry picked from commit 6c8395d11872f79ab5819a9900cb40b8f946852e) Signed-off-by: Potharaju Ravi Teja <pteja@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2279875 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
* inject-vm-err: CBB error handlerPotharaju Ravi Teja2020-01-24
| | | | | | | | | | | | | | | | | | | | | | Add support to handle control back bone errors. - This change adds a sample handler for cbb error. It is a minimal handler that just dumps error information to the console. This can be used as a reference to implement an elaborate error handler. Bug 2580803 Change-Id: I2fbbc994854611a54276068ee90f1d2cffeeb948 (cherry picked from commit ea898756f7b2e4aff8f89546f3b69fc4e97fd300) Signed-off-by: Potharaju Ravi Teja <pteja@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2279874 GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Dmitry Pervushin <dpervushin@nvidia.com> Reviewed-by: Rohit Upadhyay <rupadhyay@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
* inject-vm-err: misc. improvementsYashomati2019-12-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Prevented bad mode entry for unassigned offender as no point in rebooting the Privileged guest in that case. - Made the driver to fire build bug if sizes of structures shared with HV code are out of sync. - Replaced enum variables with unsigned int in err_data structure members to avoid ambiguity in size used by HV and Linux compilers for enum. - Renamed variables from camelCase to small_case, added tegra-hv prefix, etc. - Removed sending of redundant parameter while sending ack for sync error. - Added #undef _X5,6,7_X17 for completeness that was missed earlier. JIRA ESV-312 Bug 2580803 Change-Id: Ibf49c80a2e781dd75faadd96813b9c19e31e68bf Signed-off-by: Yashomati <ygodbole@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2228786 (cherry picked from commit 7364fbd8661997c98a4d9fa036ad3a5659fe319e) Reviewed-on: https://git-master.nvidia.com/r/2254757 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Dmitry Pervushin <dpervushin@nvidia.com> Reviewed-by: Hardik T Shah <hardikts@nvidia.com> Reviewed-by: Rohit Upadhyay <rupadhyay@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* inject-vm-err: handlers for injected errorsYashomati2019-12-24
If Linux/EBP causes an error that HV can't handle, then instead of freezing the guest, HV injects the error back into the guest. This enables the guest to handle the error as gracefully as it can/needs. This changeset provides 2 parts: 1. sample handlers: minimal placeholder handlers that just dump the error information on to the console. This is to be used as a reference for any customized elaborate error handling that may be needed. 2. library module: it comes into existence only if/when any error handler is registered. Its main responsibilities: - map memory that's shared with HV where HV dumps all information about the errors. - register handlers for interrupts used by HV to inject errors - invoke custom error handlers when HV injects error JIRA ESV-312 Bug 2580803 Change-Id: Ia8c6484d423fd33cabbfd901f0f6ebb0da95cb40 Signed-off-by: Yashomati <ygodbole@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2214402 Reviewed-on: https://git-master.nvidia.com/r/2128765 GVS: Gerrit_Virtual_Submit Reviewed-by: Dmitry Pervushin <dpervushin@nvidia.com> Reviewed-by: Hardik T Shah <hardikts@nvidia.com> Reviewed-by: Rohit Upadhyay <rupadhyay@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>