This is using the INTEGRITY OS. I have tried updating all of our EMAC DMA settings to exactly match the settings used in the latest Linux stmmac/dwmac1000 driver, but we still see the same issue.
I also found one KDB article (Why does the ethernet hang when running Linux on my Arria 10 HPS system: https://www.intel.com/content/www/us/en/programmable/support/support-resources/knowledge-base/embedd...) for the Arria 10 SX that describes this exact issue. The fix in that article is to set axi_bus_mode rd_osr_lmt and wr_osr_lmt registers to 0xF. I tried this and it does delay the RUNCLOSE hang for a couple of minutes, but we eventually end up in the same state.
We are not using Linux. This is the INTEGRITY RTOS. However, our EMAC DMA settings exactly match the DMA settings used in the latest Linux stmmac/dwmac1000 driver from https://github.com/altera-opensource/linux-socfpga/tree/master.