In D19725 I touched a few area of the ioat(4) driver for which there didn't exist any existing unit test code. This patch aims to address that.
Details
Details
- Reviewers
cem mav jimharris - Group Reviewers
manpages - Commits
- rS345812: ioatcontrol(8) could exercise 8k-aligned copy with page-break, crc and
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
arc-copy modes
typo: "crc-copy" (in the summary)
Looks mostly good to me. A few remarks:
sys/dev/ioat/ioat_test.c | ||
---|---|---|
319–322 | I'm not sure these point to valid indices in buf at the limit. Why not just swap pages with the non-pagebreak case, i.e., src2 = ...buf[2*i+1] + PAGE_SIZE; dst2 = ...buf[2*i] + PAGE_SIZE; | |
379–380 | Oh, I see this is how you enforce src/dst+PAGESIZE*2 is valid. Still, it seems excessive when we only need 2*PAGE_SIZE in buffer, just a different access pattern to avoid the contiguous pages. |
Comment Actions
sys/dev/ioat/ioat_test.c | ||
---|---|---|
319–322 | Why not? Sometimes when you start one way you don't see the obvious but cleaner alternative. Like here. Good suggestion I've fixed it. |
sys/dev/ioat/ioat_test.c | ||
---|---|---|
372 | Need || TEST_DMA_8K_PB now, I think :-) |