On Wed, 22 Jul 2026 00:13:34 +0800, Tao Ding <[email protected]> wrote:
> diff --git a/tests/qtest/k230-decomp-gzip-test.c 
> b/tests/qtest/k230-decomp-gzip-test.c
> new file mode 100644
> index 0000000000..adddf8f2eb
> --- /dev/null
> +++ b/tests/qtest/k230-decomp-gzip-test.c
> @@ -0,0 +1,181 @@
> [ ... skip 38 lines ... ]
> +}
> +
> +static inline hwaddr k230_sram_addr(hwaddr off)
> +{
> +    return K230_SRAM_BASE + off;
> +}
> +
> +static inline hwaddr k230_sram_input_addr(unsigned int slot)
> +{
> +    return k230_sram_addr(K230_DECOMP_GZIP_SRAM_IN_BASE +
> +                          slot * K230_DECOMP_GZIP_BLOCK_SIZE);
> +}
> +
> +static const uint8_t test_gzip_data[] = {
> +    0x1f, 0x8b, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00,
> +    0x02, 0xff, 0xf3, 0x36, 0x32, 0x36, 0x50, 0x48,
> +    0xaf, 0xca, 0x2c, 0x50, 0x28, 0x2e, 0x29, 0x4a,
> +    0x4d, 0xcc, 0xcd, 0xcc, 0x4b, 0x57, 0x28, 0x49,
> +    0x2d, 0x2e, 0xe1, 0xf2, 0x1e, 0x5a, 0x12, 0x00,
> +    0xdb, 0x9d, 0xbc, 0xdd, 0xc8, 0x00, 0x00, 0x00,
> +};

What is the source of the data here? 
Was it extracted from the SDK?
I've noticed that this data is in fixed Huffman format, but the K230 GZIP 
manual only supports dynamic Huffman format.

-- 
Junze Cao <[email protected]>


Reply via email to