summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/gsp_phys_booter.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/gsp_phys_booter.c b/kernel/gsp_phys_booter.c
index 821357b..3269233 100644
--- a/kernel/gsp_phys_booter.c
+++ b/kernel/gsp_phys_booter.c
@@ -28426,6 +28426,17 @@ static void gsp_phys_gr_wit_capture(const struct gsp_phys_gr_submit *req)
*/
for (k = 0; req && k < req->n_data; k++)
gsp_phys_gr_wit_note(req->data[k].va, req->data[k].hpa);
+ /*
+ * eng72: also witness the launch's operand pages (req->pages: the
+ * program/RT/surface alias pages). The DRAW_IAB's render target is
+ * the RT0 alias page, which is NOT among the 1025 tracked data
+ * records - the no-writes tracker could not see an RT store. With
+ * these pages in the set, a GUEST-WIT change on the RT page is the
+ * direct store witness.
+ */
+ for (k = 0; req && k < req->n_pages; k++)
+ gsp_phys_gr_wit_note(req->pages[k].guest_va,
+ req->pages[k].hpa);
for (k = 0; k < gsp_phys_gr_gap_n; k++)
gsp_phys_gr_wit_note(gsp_phys_gr_gap[k].va,
gsp_phys_gr_gap[k].hpa);