Searched hist:"2 f164822" (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/arch/loongarch/crypto/ |
H A D | Makefile | 2f164822 Mon May 01 04:19:43 CDT 2023 Min Zhou <zhoumin@loongson.cn> LoongArch: crypto: Add crc32 and crc32c hw acceleration
With a blatant copy of some MIPS bits we introduce the crc32 and crc32c hw accelerated module to LoongArch.
LoongArch has provided these instructions to calculate crc32 and crc32c: * crc.w.b.w crcc.w.b.w * crc.w.h.w crcc.w.h.w * crc.w.w.w crcc.w.w.w * crc.w.d.w crcc.w.d.w
So we can make use of these instructions to improve the performance of calculation for crc32(c) checksums.
As can be seen from the following test results, crc32(c) instructions can improve the performance by 58%.
Software implemention Hardware acceleration Buffer size time cost (seconds) time cost (seconds) Accel. 100 KB 0.000845 0.000534 59.1% 1 MB 0.007758 0.004836 59.4% 10 MB 0.076593 0.047682 59.4% 100 MB 0.756734 0.479126 58.5% 1000 MB 7.563841 4.778266 58.5%
Signed-off-by: Min Zhou <zhoumin@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
|
H A D | Kconfig | 2f164822 Mon May 01 04:19:43 CDT 2023 Min Zhou <zhoumin@loongson.cn> LoongArch: crypto: Add crc32 and crc32c hw acceleration
With a blatant copy of some MIPS bits we introduce the crc32 and crc32c hw accelerated module to LoongArch.
LoongArch has provided these instructions to calculate crc32 and crc32c: * crc.w.b.w crcc.w.b.w * crc.w.h.w crcc.w.h.w * crc.w.w.w crcc.w.w.w * crc.w.d.w crcc.w.d.w
So we can make use of these instructions to improve the performance of calculation for crc32(c) checksums.
As can be seen from the following test results, crc32(c) instructions can improve the performance by 58%.
Software implemention Hardware acceleration Buffer size time cost (seconds) time cost (seconds) Accel. 100 KB 0.000845 0.000534 59.1% 1 MB 0.007758 0.004836 59.4% 10 MB 0.076593 0.047682 59.4% 100 MB 0.756734 0.479126 58.5% 1000 MB 7.563841 4.778266 58.5%
Signed-off-by: Min Zhou <zhoumin@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
|
H A D | crc32-loongarch.c | 2f164822 Mon May 01 04:19:43 CDT 2023 Min Zhou <zhoumin@loongson.cn> LoongArch: crypto: Add crc32 and crc32c hw acceleration
With a blatant copy of some MIPS bits we introduce the crc32 and crc32c hw accelerated module to LoongArch.
LoongArch has provided these instructions to calculate crc32 and crc32c: * crc.w.b.w crcc.w.b.w * crc.w.h.w crcc.w.h.w * crc.w.w.w crcc.w.w.w * crc.w.d.w crcc.w.d.w
So we can make use of these instructions to improve the performance of calculation for crc32(c) checksums.
As can be seen from the following test results, crc32(c) instructions can improve the performance by 58%.
Software implemention Hardware acceleration Buffer size time cost (seconds) time cost (seconds) Accel. 100 KB 0.000845 0.000534 59.1% 1 MB 0.007758 0.004836 59.4% 10 MB 0.076593 0.047682 59.4% 100 MB 0.756734 0.479126 58.5% 1000 MB 7.563841 4.778266 58.5%
Signed-off-by: Min Zhou <zhoumin@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
|
/openbmc/linux/arch/loongarch/ |
H A D | Makefile | 2f164822 Mon May 01 04:19:43 CDT 2023 Min Zhou <zhoumin@loongson.cn> LoongArch: crypto: Add crc32 and crc32c hw acceleration
With a blatant copy of some MIPS bits we introduce the crc32 and crc32c hw accelerated module to LoongArch.
LoongArch has provided these instructions to calculate crc32 and crc32c: * crc.w.b.w crcc.w.b.w * crc.w.h.w crcc.w.h.w * crc.w.w.w crcc.w.w.w * crc.w.d.w crcc.w.d.w
So we can make use of these instructions to improve the performance of calculation for crc32(c) checksums.
As can be seen from the following test results, crc32(c) instructions can improve the performance by 58%.
Software implemention Hardware acceleration Buffer size time cost (seconds) time cost (seconds) Accel. 100 KB 0.000845 0.000534 59.1% 1 MB 0.007758 0.004836 59.4% 10 MB 0.076593 0.047682 59.4% 100 MB 0.756734 0.479126 58.5% 1000 MB 7.563841 4.778266 58.5%
Signed-off-by: Min Zhou <zhoumin@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
|
/openbmc/linux/crypto/ |
H A D | Kconfig | 2f164822 Mon May 01 04:19:43 CDT 2023 Min Zhou <zhoumin@loongson.cn> LoongArch: crypto: Add crc32 and crc32c hw acceleration
With a blatant copy of some MIPS bits we introduce the crc32 and crc32c hw accelerated module to LoongArch.
LoongArch has provided these instructions to calculate crc32 and crc32c: * crc.w.b.w crcc.w.b.w * crc.w.h.w crcc.w.h.w * crc.w.w.w crcc.w.w.w * crc.w.d.w crcc.w.d.w
So we can make use of these instructions to improve the performance of calculation for crc32(c) checksums.
As can be seen from the following test results, crc32(c) instructions can improve the performance by 58%.
Software implemention Hardware acceleration Buffer size time cost (seconds) time cost (seconds) Accel. 100 KB 0.000845 0.000534 59.1% 1 MB 0.007758 0.004836 59.4% 10 MB 0.076593 0.047682 59.4% 100 MB 0.756734 0.479126 58.5% 1000 MB 7.563841 4.778266 58.5%
Signed-off-by: Min Zhou <zhoumin@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
|