Skip to content
  • Grzegorz Daniluk's avatar
    modules/swcore: prevent losing a page when dropping on pages boundary · dd0dadd6
    Grzegorz Daniluk authored
    When it turns out we have to drop frame (e.g. because memory is full) and we get
    this information on page boundary, next inter page is already being requested.
    However, we do not use previously allocated inter page, that means we lose
    previously allocated page forever.
    In most of the cases, the conditional statement prevents such situation by
    checking mpm_dlast = '0'. But mpm_dlast is delayed by 1 clock cycle, that's why
    I added checking for tp_drop. Now, if we get in the same cycle mpm_pg_req and
    tp_drop, then we don't make a new inter page request.
    dd0dadd6