Skip to content

Commit

Permalink
Merge pull request #338 from ved-rivos/0531_2
Browse files Browse the repository at this point in the history
Stop Marker are not auto-resp
  • Loading branch information
ved-rivos authored May 31, 2024
2 parents d0bab6b + 4492976 commit 7931dc1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions iommu_ref_model/libiommu/src/iommu_ats.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ handle_page_request(
device_context_t DC;
page_rec_t prec;
uint8_t DDI[3];
uint8_t L;
uint8_t L, R, W;
uint16_t PRGI;
uint32_t device_id, cause, status, response_code, PRPR;
uint64_t prec_addr;
Expand Down Expand Up @@ -319,9 +319,11 @@ handle_page_request(
// The status is set to Success if no other faults were encountered but the
// "Page Request" could not be queued due to the page-request queue being full
// (pqh == pqt - 1) or had a overflow (pqcsr.pqof == 1).
R = get_bits(0, 0, pr->PAYLOAD);
W = get_bits(1, 1, pr->PAYLOAD);
L = get_bits(2, 2, pr->PAYLOAD);
PRGI = get_bits(11, 3, pr->PAYLOAD);
if ( L == 0 ) {
if ( L == 0 || (L == 1 && R == 0 && W == 0) ) {
return;
}
prgr.MSGCODE = PRGR_MSG_CODE;
Expand Down

0 comments on commit 7931dc1

Please sign in to comment.