From 0dca6264e00b8732194f27e983ca686e57b7bec1 Mon Sep 17 00:00:00 2001 From: Ved Shanbhogue Date: Fri, 31 May 2024 06:33:31 -0500 Subject: [PATCH] Add RAS errors --- iommu_ref_model/libiommu/src/iommu_translate.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/iommu_ref_model/libiommu/src/iommu_translate.c b/iommu_ref_model/libiommu/src/iommu_translate.c index a4fea504..6abb736c 100644 --- a/iommu_ref_model/libiommu/src/iommu_translate.c +++ b/iommu_ref_model/libiommu/src/iommu_translate.c @@ -498,8 +498,16 @@ iommu_translate_iova( // * MSI PTE misconfigured (cause = 263) // * PDT entry load access fault (cause = 265) // * PDT entry misconfigured (cause = 267) - if ( (cause == 1) || (cause == 5) || (cause == 7) || (cause == 261) || - (cause == 263) || (cause == 265) || (cause == 267) ) { + // * DDT data corruption (cause = 268) + // * PDT data corruption (cause = 269) + // * MSI PT data corruption (cause = 270) + // * MSI MRIF data corruption (cause = 271) + // * Internal data-path error (cause = 272) + // * First/second-stage PT data corruption (cause = 274) + if ( (cause == 1) || (cause == 5) || (cause == 7) || (cause == 261) || + (cause == 263) || (cause == 265) || (cause == 267) || + (cause == 268) || (cause == 269) || (cause == 270) || + (cause == 271) || (cause == 272) || (cause == 274) ) { report_fault(cause, iotval, iotval2, TTYP, DTF, req->device_id, req->pid_valid, req->process_id, req->priv_req); goto return_completer_abort;