US 12,321,638 B2
Compression accelerator card and method of simulating hard disk mode to access the compression accelerator card
Xiaoli Rui, Shanghai (CN); Yuan-mao Chang, Shanghai (CN); Gang Hu, Shanghai (CN); and Zining Wu, Shanghai (CN)
Assigned to INNOGRIT TECHNOLOGIES CO., LTD., Shanghai (CN)
Filed by INNOGRIT TECHNOLOGIES CO., LTD., Shanghai (CN)
Filed on Jan. 13, 2023, as Appl. No. 18/154,434.
Prior Publication US 2024/0241667 A1, Jul. 18, 2024
Int. Cl. G06F 3/06 (2006.01)
CPC G06F 3/0659 (2013.01) [G06F 3/064 (2013.01); G06F 3/0679 (2013.01); G06F 3/0604 (2013.01)] 6 Claims
OG exemplary drawing
 
1. A method of simulating hard disk mode to access a compression accelerator card based on data intelligent processing technology, comprising:
inserting the compression accelerator card into a host;
loading a hard disk driver and an application, not a PCIe adapter driver, and successfully detecting the compression accelerator card as a virtual compression hard disk by the host, the host accessing the compression accelerator card as if accessing a normal hard disk;
using the application to perform functions of setting a compression identifier and sending a write command to the virtual compression hard disk, and the write command is sent to a compression accelerator card via the virtual compression hard disk, the compression accelerator card is driven by the hard disk driver and detected as the virtual compression hard disk to the host;
compressing data by the compression accelerator card according to the compression identifier and caching the compressed data within the compression accelerator card, and returning a message to the application;
using the application to perform functions of setting a decompression identifier and sending a read command to the virtual compression hard disk, the read command is sent to the compression accelerator card via the virtual compression hard disk, wherein a logical address to be read by the read command is a same logical address as was used for the write command; and
not decompressing the compressed data cached in the compression accelerator card according to the decompression identifier set by the application, and returning the compressed data cached in the compression accelerator card to the application by the virtual compression hard disk without decompressing the compressed data cached in the compression accelerator card,
wherein the compression identifier is added to the write command and sent to the virtual compression hard disk, and the decompression identifier is added to the read command and sent to the virtual compression hard disk, and
wherein the compression identifier and the decompression identifier are respectively arranged in a register of the compression accelerator card.