[PATCH 0/7] K230: add gsdma and decomp_gzip

Tao Ding posted 7 patches 3 days, 16 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260721161335.73872-1-dingtao0430@163.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, Palmer Dabbelt <palmer@dabbelt.com>, Alistair Francis <alistair.francis@wdc.com>, Weiwei Li <liwei1518@gmail.com>, Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>, Liu Zhiwei <zhiwei_liu@linux.alibaba.com>, Chao Liu <chao.liu@processmission.com>, Fabiano Rosas <farosas@suse.de>, Laurent Vivier <lvivier@redhat.com>
hw/dma/Kconfig                      |   3 +
hw/dma/k230_gsdma.c                 | 532 ++++++++++++++++++++++++++++
hw/dma/meson.build                  |   1 +
hw/dma/trace-events                 |   6 +
hw/misc/Kconfig                     |   3 +
hw/misc/k230_decomp_gzip.c          | 498 ++++++++++++++++++++++++++
hw/misc/meson.build                 |   1 +
hw/misc/trace-events                |   4 +
hw/riscv/Kconfig                    |   2 +
hw/riscv/k230.c                     |  38 +-
include/hw/dma/k230_gsdma.h         | 128 +++++++
include/hw/misc/k230_decomp_gzip.h  |  92 +++++
include/hw/riscv/k230.h             |   5 +
tests/qtest/k230-decomp-gzip-test.c | 181 ++++++++++
tests/qtest/k230-gsdma-test.c       | 201 +++++++++++
tests/qtest/meson.build             |   2 +-
16 files changed, 1689 insertions(+), 8 deletions(-)
create mode 100644 hw/dma/k230_gsdma.c
create mode 100644 hw/misc/k230_decomp_gzip.c
create mode 100644 include/hw/dma/k230_gsdma.h
create mode 100644 include/hw/misc/k230_decomp_gzip.h
create mode 100644 tests/qtest/k230-decomp-gzip-test.c
create mode 100644 tests/qtest/k230-gsdma-test.c
[PATCH 0/7] K230: add gsdma and decomp_gzip
Posted by Tao Ding 3 days, 16 hours ago
Hi all,

This patch series adds GSDMA and Decomp_gzip to the K230 board.
Enable k230 to use k230_unzip to decompress files during the u-boot phase.

This series includes the following features:

*patch1: add K230 gsdma which supports sdma, gdma is temporarily not supported
*patch2: add gsdma to K230 board
*patch3: add K230 gsdma qtest
*patch4: add K230 decomp_gzip which decompress data work with sdma
*patch5: add decomp_gzip to K230 board
*patch6: add K230 decomp_gzip qtest
*patch7: add a noc-stub region in K230 board

Thanks

Tao Ding (7):
  hw/dma: add K230 gsdma
  hw/riscv: k230: add gsdma in K230 board
  tests/qtest: add test for K230 gsdma
  hw/misc: add K230 decomp gzip
  hw/riscv: k230: add decomp gzip in K230 board
  tests/qtest: add test for K230 decomp gzip
  hw/riscv: k230: add a noc stub region in K230 board

 hw/dma/Kconfig                      |   3 +
 hw/dma/k230_gsdma.c                 | 532 ++++++++++++++++++++++++++++
 hw/dma/meson.build                  |   1 +
 hw/dma/trace-events                 |   6 +
 hw/misc/Kconfig                     |   3 +
 hw/misc/k230_decomp_gzip.c          | 498 ++++++++++++++++++++++++++
 hw/misc/meson.build                 |   1 +
 hw/misc/trace-events                |   4 +
 hw/riscv/Kconfig                    |   2 +
 hw/riscv/k230.c                     |  38 +-
 include/hw/dma/k230_gsdma.h         | 128 +++++++
 include/hw/misc/k230_decomp_gzip.h  |  92 +++++
 include/hw/riscv/k230.h             |   5 +
 tests/qtest/k230-decomp-gzip-test.c | 181 ++++++++++
 tests/qtest/k230-gsdma-test.c       | 201 +++++++++++
 tests/qtest/meson.build             |   2 +-
 16 files changed, 1689 insertions(+), 8 deletions(-)
 create mode 100644 hw/dma/k230_gsdma.c
 create mode 100644 hw/misc/k230_decomp_gzip.c
 create mode 100644 include/hw/dma/k230_gsdma.h
 create mode 100644 include/hw/misc/k230_decomp_gzip.h
 create mode 100644 tests/qtest/k230-decomp-gzip-test.c
 create mode 100644 tests/qtest/k230-gsdma-test.c


base-commit: bd6079a7a1d14de0918a7715ef6db85dc32de3bb
-- 
2.43.0
Re: [PATCH 0/7] K230: add gsdma and decomp_gzip
Posted by Chao Liu 3 days, 6 hours ago
Hi Tao,

On Wed, Jul 22, 2026 at 12:13:28AM +0800, Tao Ding wrote:
> Hi all,
> 
> This patch series adds GSDMA and Decomp_gzip to the K230 board.
> Enable k230 to use k230_unzip to decompress files during the u-boot phase.
> 
Thanks for the contribution!

I believe you need to update the K230 documentation. If peripheral modeling
for things like UNGIP and GSDMA has been added, could the boot flow in the
firmware linux booting path be simplified to better align with the hardware's
actual boot process?

cc Junze, Can you help review this? Thanks!


Thanks,
Chao
> This series includes the following features:
> 
> *patch1: add K230 gsdma which supports sdma, gdma is temporarily not supported
> *patch2: add gsdma to K230 board
> *patch3: add K230 gsdma qtest
> *patch4: add K230 decomp_gzip which decompress data work with sdma
> *patch5: add decomp_gzip to K230 board
> *patch6: add K230 decomp_gzip qtest
> *patch7: add a noc-stub region in K230 board
> 
> Thanks
> 
> Tao Ding (7):
>   hw/dma: add K230 gsdma
>   hw/riscv: k230: add gsdma in K230 board
>   tests/qtest: add test for K230 gsdma
>   hw/misc: add K230 decomp gzip
>   hw/riscv: k230: add decomp gzip in K230 board
>   tests/qtest: add test for K230 decomp gzip
>   hw/riscv: k230: add a noc stub region in K230 board
> 
>  hw/dma/Kconfig                      |   3 +
>  hw/dma/k230_gsdma.c                 | 532 ++++++++++++++++++++++++++++
>  hw/dma/meson.build                  |   1 +
>  hw/dma/trace-events                 |   6 +
>  hw/misc/Kconfig                     |   3 +
>  hw/misc/k230_decomp_gzip.c          | 498 ++++++++++++++++++++++++++
>  hw/misc/meson.build                 |   1 +
>  hw/misc/trace-events                |   4 +
>  hw/riscv/Kconfig                    |   2 +
>  hw/riscv/k230.c                     |  38 +-
>  include/hw/dma/k230_gsdma.h         | 128 +++++++
>  include/hw/misc/k230_decomp_gzip.h  |  92 +++++
>  include/hw/riscv/k230.h             |   5 +
>  tests/qtest/k230-decomp-gzip-test.c | 181 ++++++++++
>  tests/qtest/k230-gsdma-test.c       | 201 +++++++++++
>  tests/qtest/meson.build             |   2 +-
>  16 files changed, 1689 insertions(+), 8 deletions(-)
>  create mode 100644 hw/dma/k230_gsdma.c
>  create mode 100644 hw/misc/k230_decomp_gzip.c
>  create mode 100644 include/hw/dma/k230_gsdma.h
>  create mode 100644 include/hw/misc/k230_decomp_gzip.h
>  create mode 100644 tests/qtest/k230-decomp-gzip-test.c
>  create mode 100644 tests/qtest/k230-gsdma-test.c
> 
> 
> base-commit: bd6079a7a1d14de0918a7715ef6db85dc32de3bb
> -- 
> 2.43.0
>