Skip to content

Commit 0e8ef14

Browse files
authored
Merge pull request #37 from dgarske/sym_align
Fix for not aligned NUMA
2 parents 5a8005a + 56e8ad5 commit 0e8ef14

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

wolfcrypt/src/port/intel/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,14 @@ The asynchronous crypto files are located at `wolfcrypt/src/async.c` and `wolfss
1616
QuickAssist drivers can be downloaded from Intel here:
1717
https://01.org/intel-quick-assist-technology/downloads
1818

19+
The latest driver for QAT can be found here:
20+
https://www.intel.com/content/www/us/en/download/19734
21+
1922
### QAT 1.7
2023

24+
The latest QAT 1.7 Linux release:
25+
https://downloadcenter.intel.com/download/30178
26+
2127
Note: If you have the older driver installed you may need to remove it or unload the module and reboot.
2228

2329
1. Setup `QAT1.7` and `wolfssl` next to each other in the same folder.

wolfcrypt/src/port/intel/quickassist_mem.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,10 @@ void* IntelQaRealloc(void *ptr, size_t size, void* heap, int type
563563
if (newIsNuma == 0 && ptrIsNuma == 0) {
564564
allocNew = 1;
565565
}
566+
/* confirm input is aligned, otherwise allocate new */
567+
else if (((size_t)ptr % WOLF_HEADER_ALIGN) != 0) {
568+
allocNew = 1;
569+
}
566570
/* if matching NUMA type and size fits, use existing */
567571
else if (newIsNuma == ptrIsNuma && header->size >= size) {
568572

0 commit comments

Comments
 (0)