History log of /rk3399_rockchip-uboot/drivers/misc/rockchip_decompress.c (Results 1 – 25 of 33)
Revision Date Author Comments
# 1bd990de 18-Jun-2025 Simon Xue <xxm@rock-chips.com>

drivers: misc: rockchip_decompress: Avoid premature decompression termination by decom

Change-Id: Icee7b70fdd88fbaf852fbdceddae3eea174ad9f0
Signed-off-by: Simon Xue <xxm@rock-chips.com>


# 7163e0a1 18-Jun-2025 Xuhui Lin <xuhui.lin@rock-chips.com>

drivers: misc: rockchip_decompress: Fix capability support

Fixes:
ba0b3bba557 drivers: misc: rockchip_decompress: Fix RV1126B not support LZ4
0699fac8ab5 misc: rockchip decompress: fix RV1103B not s

drivers: misc: rockchip_decompress: Fix capability support

Fixes:
ba0b3bba557 drivers: misc: rockchip_decompress: Fix RV1126B not support LZ4
0699fac8ab5 misc: rockchip decompress: fix RV1103B not support LZ4

Change-Id: Ib728847b95749a369cea65a69571c2ee9f427479
Signed-off-by: Xuhui Lin <xuhui.lin@rock-chips.com>

show more ...


# ba0b3bba 09-Jun-2025 Xuhui Lin <xuhui.lin@rock-chips.com>

drivers: misc: rockchip_decompress: Fix RV1126B not support LZ4

Change-Id: I80285dcce29957c9e053272fbaa5e84e20311a18
Signed-off-by: Xuhui Lin <xuhui.lin@rock-chips.com>


# 0699fac8 08-Jul-2024 Xuhui Lin <xuhui.lin@rock-chips.com>

misc: rockchip decompress: fix RV1103B not support LZ4

Change-Id: Ie7ade00d58ea8c80585676bec6dc7aea601a3163
Signed-off-by: Xuhui Lin <xuhui.lin@rock-chips.com>


# 04d08ece 10-May-2024 Simon Xue <xxm@rock-chips.com>

misc: rockchip decompress: fix RK3576 not support LZ4

Change-Id: Idf5e367bf261055c4ce88bfca8358e88fda6ad8d
Signed-off-by: Simon Xue <xxm@rock-chips.com>


# 369ace90 19-Sep-2023 Xuhui Lin <xuhui.lin@rock-chips.com>

misc: rockchip decompress: Enable IRQ when storage is spi-nand in SPL

1. If you need to auto trigger an interrupt to wake up rootfs
unpack when kernel DECOM driver is initialized, you need to ena

misc: rockchip decompress: Enable IRQ when storage is spi-nand in SPL

1. If you need to auto trigger an interrupt to wake up rootfs
unpack when kernel DECOM driver is initialized, you need to enable
DECOM interrupt in SPL.
2. SPL may decompress multiple packages, and interrupts need to be
cleared first to prevent from being triggered when it enters kernel
without completing the decompression.

Signed-off-by: Xuhui Lin <xuhui.lin@rock-chips.com>
Change-Id: I784af2eab797b4dba5c8577518c414b19f596a2e

show more ...


# 41f62ac5 12-Nov-2021 Jason Zhu <jason.zhu@rock-chips.com>

misc: rockchip decompress: change the interface of clock

Use the clk_get_by_index() so that the device clock node can be
removed in spl.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-I

misc: rockchip decompress: change the interface of clock

Use the clk_get_by_index() so that the device clock node can be
removed in spl.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I1620ebdb5a4cf587ce5b27c6a2c8cb622f9e5dcb

show more ...


# 03e89306 23-Nov-2021 Simon Xue <xxm@rock-chips.com>

misc: rockchip decompress: support lz4 format

Change-Id: I2c5903a38076a957cc0a0f031be2377689a0a2e0
Signed-off-by: Simon Xue <xxm@rock-chips.com>


# c92fa1bd 09-Sep-2021 Jason Zhu <jason.zhu@rock-chips.com>

misc: rockchip decompress: delete unused code

Just set the decompress interruppt when the storage device is spi
nand.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Ifbaad8164bbf483

misc: rockchip decompress: delete unused code

Just set the decompress interruppt when the storage device is spi
nand.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Ifbaad8164bbf4837a62a4284db24fbcb6267e1b2

show more ...


# d416248e 23-Aug-2021 Joseph Chen <chenjh@rock-chips.com>

misc: rockchip decompress: fix compile error

Fix error when !CONFIG_IS_ENABLED(DM_RESET).

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ieea7a520c3e719dc4b9aef772566b87aff4f64d2


# 406de325 07-Jul-2021 Weiwen Chen <cww@rock-chips.com>

misc: rockchip_decompress: enable interrupt

Support decompress firmware in spl and hold the
decompress interrupt flag after jump to next-stage.

Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Chang

misc: rockchip_decompress: enable interrupt

Support decompress firmware in spl and hold the
decompress interrupt flag after jump to next-stage.

Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: Ifa94d59606a87e7f731f7337636bf6a0f08dcd3e

show more ...


# c9f753f3 02-Sep-2020 Joseph Chen <chenjh@rock-chips.com>

misc: rockchip decompress: use flush_dcache_all() before decompress

flush_dcache_all() operating on set/way is faster than
flush_cache() and invalidate_dcache_range() operating
on virtual address.

misc: rockchip decompress: use flush_dcache_all() before decompress

flush_dcache_all() operating on set/way is faster than
flush_cache() and invalidate_dcache_range() operating
on virtual address.

Tested: it saves about 12.5ms in rv1126 thunder-boot.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ie8ba42f56e72d0d554dca3949573196ef2165bd7

show more ...


# 5db33a71 17-Aug-2020 Simon Xue <xxm@rock-chips.com>

misc: rockchip_decompress: set default dclk to 400MHz

Change-Id: Ie64c1d7fd25ae2e570a06141c9942faeaadcc09c
Signed-off-by: Simon Xue <xxm@rock-chips.com>


# 9f59c154 12-Aug-2020 Joseph Chen <chenjh@rock-chips.com>

misc: rockchip decompress: support invalidate dcache

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I668fc041083c1547357d0556cb483b6ab2f58b5a


# e1e885d3 12-Aug-2020 Joseph Chen <chenjh@rock-chips.com>

misc: decompress: correct size_src and size_dst usage

We misunderstood the size_src as decompressed image size.

Without this patch, the decompress can work normally, but
it wastes the time to flush

misc: decompress: correct size_src and size_dst usage

We misunderstood the size_src as decompressed image size.

Without this patch, the decompress can work normally, but
it wastes the time to flush data cache. Let's correct it
for thunder boot version to save boot time.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I93014ccec7814faec5abbe96b383bc1170cdb0e2

show more ...


# b367c66b 27-Jul-2020 Joseph Chen <chenjh@rock-chips.com>

misc: rockchip decompress: add dm resets support

Using dm reset API to reset decompress module.

There seems to be some unknown cause to make the module
in abnormal state, which output the wrong dec

misc: rockchip decompress: add dm resets support

Using dm reset API to reset decompress module.

There seems to be some unknown cause to make the module
in abnormal state, which output the wrong decompress
data. Let's reset it before starting decompress.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ic4113eec0701f83059453fa263810d31caa406eb

show more ...


# 8b225c61 30-Jun-2020 Joseph Chen <chenjh@rock-chips.com>

misc: rockchip_decompress: add dcache flush

If the decompress module doesn't access the data through dcache,
it should add flush behavior to promise getting the real data
from dram. Otherwise it may

misc: rockchip_decompress: add dcache flush

If the decompress module doesn't access the data through dcache,
it should add flush behavior to promise getting the real data
from dram. Otherwise it may decompress the wrong data but not
report any failure.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I6570ca7dc3a60c4b5bb9fcf3ae9f1025e2c658ea

show more ...


# adf69379 29-Jun-2020 Joseph Chen <chenjh@rock-chips.com>

misc: rockchip decompress: remove IRQ support

SPL don't support IRQ and U-Boot proper is not deeply care
about boot time. There is not a mechanism to support IRQ
mode now.

In addition, the decompre

misc: rockchip decompress: remove IRQ support

SPL don't support IRQ and U-Boot proper is not deeply care
about boot time. There is not a mechanism to support IRQ
mode now.

In addition, the decompress irq is design to catch the exceptions
but not to decompress images continuously.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I842bce530aa180d5b0a30c1d2038575e464241b8

show more ...


# 656bdb59 22-Jun-2020 Joseph Chen <chenjh@rock-chips.com>

misc: decompress: add/update API

- Support get gunzip data size from src data;
- Support sync decompress for this round;
- Support return the gunzip data size of compressed image.
- Add misc_decompr

misc: decompress: add/update API

- Support get gunzip data size from src data;
- Support sync decompress for this round;
- Support return the gunzip data size of compressed image.
- Add misc_decompress_cleanup() for waiting last decompress done.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ie84b2a6174d04592110333d66667da66f98f07f6

show more ...


# 809af6ba 12-Jun-2020 Jason Zhu <jason.zhu@rock-chips.com>

misc: rockchip_decompress: update the decompress driver

1.add DECOM_AXI_STAT to test decompress whether is in idle
2.correct the misc_decompress_is_complete return value

Signed-off-by: Jason Zhu <j

misc: rockchip_decompress: update the decompress driver

1.add DECOM_AXI_STAT to test decompress whether is in idle
2.correct the misc_decompress_is_complete return value

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Signed-off-by: Simon Xue <xxm@rock-chips.com>
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I904d9909ade709fb479893325dd6c0b3d47d5908

show more ...


# 3cafcfcd 05-Jun-2020 Simon Xue <xxm@rock-chips.com>

misc: rockchip_decompress: fix param size

Change-Id: Ia193a6035faff4bab66262cab2e97a3c6b94e45a
Signed-off-by: Simon Xue <xxm@rock-chips.com>


# 327380da 04-Jun-2020 Simon Xue <xxm@rock-chips.com>

misc: rockchip_decompress: add limit decompressed buffer size

In order to prevent physical memory from being written oversize,
limit the decompressed buffer size, user can assign a size to
decompres

misc: rockchip_decompress: add limit decompressed buffer size

In order to prevent physical memory from being written oversize,
limit the decompressed buffer size, user can assign a size to
decompress, the reserved destination buffer size is a choice

Change-Id: I8723c5ec8d58ec1d443c5607987941cf67cf1a01
Signed-off-by: Simon Xue <xxm@rock-chips.com>

show more ...


# 2bc8e110 23-Apr-2020 Joseph Chen <chenjh@rock-chips.com>

Merge branch 'next-dev' into thunder-boot


# dc33c231 23-Apr-2020 Joseph Chen <chenjh@rock-chips.com>

misc: rockchip_decompress: use buffer to store capability

ioctl() should return error code but not data.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I66eaefc64a20303400b730cc46f38

misc: rockchip_decompress: use buffer to store capability

ioctl() should return error code but not data.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I66eaefc64a20303400b730cc46f3814a9f050cf0

show more ...


# 1cef1b20 23-Apr-2020 Joseph Chen <chenjh@rock-chips.com>

dm: misc: merge generic header file into misc.h

Puting the generic function declaration together that the
caller don't need care too much about different header file.

Signed-off-by: Joseph Chen <ch

dm: misc: merge generic header file into misc.h

Puting the generic function declaration together that the
caller don't need care too much about different header file.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ib37d1550e5a747d8f18e30c428ea8f613f9cc006

show more ...


12