Lines Matching +full:odd +full:- +full:numbered
1 .. SPDX-License-Identifier: GPL-2.0
18 higher-level compression devices such as zswap.
25 represented by selecting the 'deflate-iaa' crypto compression
28 # echo deflate-iaa > /sys/module/zswap/parameters/compressor
38 'deflate-iaa'. (Because the IAA hardware has a 4k history-window
52 Cryptographic API -> Hardware crypto devices -> Support for Intel(R) IAA Compression Accelerator
59 …Cryptographic API -> Hardware crypto devices -> Support for Intel(R) IAA Compression -> Enable Int…
78 - Scalable
79 - Legacy
80 - No IOMMU
84 -------------
91 with VT-d turned on in BIOS.
98 …Socket Configuration > IIO Configuration > Intel VT for Directed I/O (VT-d) > Intel VT for Directe…
104 -----------
110 or VT-d is not turned on in BIOS.
112 If you have booted into Linux and not sure if VT-d is on, do a "dmesg
113 | grep -i dmar". If you don't see a number of DMAR devices enumerated,
114 most likely VT-d is not on.
120 -------------
132 accel-config
133 ------------
139 configuration, and then re-register the deflate-iaa algorithm with the
153 The userspace tool to help doing that is called accel-config. Using
154 accel-config to configure device or loading a previously saved config
158 cover the sysfs interface but assumes you will be using accel-config.
163 The accel-config tool along with instructions for building it can be
166 https://github.com/intel/idxd-config/#readme
169 -------------
177 specified as 'iax' rather than 'iaa' - this is because upstream still
182 …accel-config config-wq --group-id=0 --mode=dedicated --type=kernel --priority=10 --name="iaa_crypt…
184 accel-config config-engine iax1/engine1.0 --group-id=0
188 accel-config enable-device iax1
192 accel-config enable-wq iax1/wq1.0
220 -----------------
222 There are a couple user-configurable driver attributes that can be
234 - verify_compress
242 The default setting is '1' - verify all compresses.
244 - sync_mode
251 so in a synchronous manner - it fills and submits the IDXD
260 with -EINPROGRESS. The caller can then either poll for completion
289 -------------------------
313 to have the new configuration applied to the deflate-iaa crypto
314 algorithm, it needs to be re-registered by removing and reinserting
324 # ls -al /sys/kernel/debug/iaa-crypto/
326 drwxr-xr-x 2 root root 0 Mar 3 07:55 .
327 drwx------ 53 root root 0 Mar 3 07:55 ..
328 -rw-r--r-- 1 root root 0 Mar 3 07:55 global_stats
329 -rw-r--r-- 1 root root 0 Mar 3 07:55 stats_reset
330 -rw-r--r-- 1 root root 0 Mar 3 07:55 wq_stats
346 The wq_stats file shows per-wq stats, a set for each iaa device and wq
408 per-device and per-wq stats::
427 -----------------
464 # echo -n 'module iaa_crypto +p' > /sys/kernel/debug/dynamic_debug/control
465 # echo -n 'module idxd +p' > /sys/kernel/debug/dynamic_debug/control
471 # echo deflate-iaa > /sys/module/zswap/parameters/compressor
491 …comp_acompress: dma_map_sg, src_addr 223925c000, nr_sgs 1, req->src 00000000ee7cb5e6, req->slen 40…
492 …comp_acompress: dma_map_sg, dst_addr 21dadf8000, nr_sgs 1, req->dst 000000008d6acea8, req->dlen 40…
493 …press: desc->src1_addr 223925c000, desc->src1_size 4096, desc->dst_addr 21dadf8000, desc->max_dst_…
494 …y: (verify) desc->src1_addr 21dadf8000, desc->src1_size 228, desc->dst_addr 223925c000, desc->max_…
502 # swapoff -a
513 # swapon -a
515 Following all that the IAA device(s) can now be re-configured and
527 lspci -d:0cfe
529 lspci -d:0cfe | wc -l
535 num_iaa=$(lspci -d:${iaa_dev_id} | wc -l)
545 accel-config disable-wq iax${i}/wq${i}.0
547 accel-config disable-device iax${i}
564 …accel-config config-wq --group-id=0 --mode=dedicated --wq-size=128 --priority=10 --type=kernel --n…
565 accel-config config-engine iax${i}/engine${i}.0 --group-id=0
577 accel-config enable-device iax${i}
579 accel-config enable-wq iax${i}/wq${i}.0
586 enabled debug output (echo -n 'module iaa_crypto +p' >
615 Now run the following zswap-specific setup commands to have zswap use
620 echo deflate-iaa > /sys/module/zswap/parameters/compressor
640 you've enabled debug output (echo -n 'module iaa_crypto +p' >
643 …comp_acompress: dma_map_sg, src_addr 223925c000, nr_sgs 1, req->src 00000000ee7cb5e6, req->slen 40…
644 …comp_acompress: dma_map_sg, dst_addr 21dadf8000, nr_sgs 1, req->dst 000000008d6acea8, req->dlen 40…
645 …press: desc->src1_addr 223925c000, desc->src1_size 4096, desc->dst_addr 21dadf8000, desc->max_dst_…
646 …y: (verify) desc->src1_addr 21dadf8000, desc->src1_size 228, desc->dst_addr 223925c000, desc->max_…
647 …mp_adecompress: dma_map_sg, src_addr 21ddd8b100, nr_sgs 1, req->src 0000000084adab64, req->slen 22…
648 …mp_adecompress: dma_map_sg, dst_addr 21ee3dc000, nr_sgs 1, req->dst 000000004e2990d0, req->dlen 40…
649 …decompress: desc->src1_addr 21ddd8b100, desc->src1_size 228, desc->dst_addr 21ee3dc000, desc->max_…
650 …mp_adecompress: dma_map_sg, src_addr 21ddd8b100, nr_sgs 1, req->src 0000000084adab64, req->slen 22…
651 …mp_adecompress: dma_map_sg, dst_addr 21f1551000, nr_sgs 1, req->dst 000000004e2990d0, req->dlen 40…
652 …decompress: desc->src1_addr 21ddd8b100, desc->src1_size 228, desc->dst_addr 21f1551000, desc->max_…
663 swapoff -a
675 ------------------
682 lspci -d:0cfe
684 lspci -d:0cfe | wc -l
690 num_iaa=$(lspci -d:${iaa_dev_id} | wc -l)
700 accel-config disable-wq iax${i}/wq${i}.0
702 accel-config disable-device iax${i}
713 memory_madvise.c (gcc -o memory_memadvise memory_madvise.c)::
741 … addr = mmap(NULL, nr_pages * PG_SZ, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, 0);
775 loop --;
786 --------------------------
791 since accel-config can do everything the sysfs interface can and in
792 fact accel-config is based on it under the covers.
798 odd-numbered devices; the even-numbered devices are DSA devices and