History log of /rk3399_rockchip-uboot/drivers/misc/misc_decompress.c (Results 1 – 22 of 22)
Revision Date Author Comments
# a313512a 15-Apr-2022 Joseph Chen <chenjh@rock-chips.com>

misc: decompress: Check device active status

Only the actived decompress device should do a sync finish.
This avoids to access the NULL priv structure returned from
dev_get_priv().

Signed-off-by: J

misc: decompress: Check device active status

Only the actived decompress device should do a sync finish.
This avoids to access the NULL priv structure returned from
dev_get_priv().

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

show more ...


# fde4d5d2 18-Nov-2021 Joseph Chen <chenjh@rock-chips.com>

misc: decompress: correct error code as -ETIMEDOUT

-ETIMEDOUT is better for timeout wait failure.

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

misc: decompress: correct error code as -ETIMEDOUT

-ETIMEDOUT is better for timeout wait failure.

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

show more ...


# 862a6392 08-Dec-2021 Joseph Chen <chenjh@rock-chips.com>

misc: decompress: add max timeout 2s for decompress finish

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Id5e7dec94d773d57a2ceba30e3bb0b4621caaada
(cherry picked from commit 60bc0ba6

misc: decompress: add max timeout 2s for decompress finish

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Id5e7dec94d773d57a2ceba30e3bb0b4621caaada
(cherry picked from commit 60bc0ba6e70db651d5f1bb70812bd91e4dd111af)

show more ...


# 041e3393 25-Nov-2021 Joseph Chen <chenjh@rock-chips.com>

misc: decompress: add lz4 support

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


# 975d7ad9 25-Nov-2021 Joseph Chen <chenjh@rock-chips.com>

misc: decompress: setup cleanup sync flags by default

setup cleanup sync flags by default if this is a sync request,
unless misc_decompress_async() is called by manual.

This avoid caller to forget

misc: decompress: setup cleanup sync flags by default

setup cleanup sync flags by default if this is a sync request,
unless misc_decompress_async() is called by manual.

This avoid caller to forget to setup cleanup sync flags when
they use a async operation, otherwise cpu jump to kernel
before decompress done.

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

show more ...


# dec35821 25-Nov-2021 Joseph Chen <chenjh@rock-chips.com>

misc: decompress: rename "cap" to "comp"

The "comp" is a better name.

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


# 07a60d49 23-Nov-2021 Simon Xue <xxm@rock-chips.com>

misc: decompress: increase complete timeout times

Larger compressed file need more time to decompress, so
increase the complete timeout times.

Change-Id: I67f1346a003747dfbe4e349c5393f0c047b7f15f
S

misc: decompress: increase complete timeout times

Larger compressed file need more time to decompress, so
increase the complete timeout times.

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

show more ...


# 23926ae7 12-Oct-2021 Joseph Chen <chenjh@rock-chips.com>

misc: decompress: support non-cacheline align decompress address

Some decompress hardware requires aligned dst address as align
to 0x10 (eg. rv1126).

The cacheline align is quite typical and common

misc: decompress: support non-cacheline align decompress address

Some decompress hardware requires aligned dst address as align
to 0x10 (eg. rv1126).

The cacheline align is quite typical and common for address align
in the most time, so use cacheline align in this generic layer
which covers 0x10 align.

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

show more ...


# 2bce72c8 02-Aug-2021 Joseph Chen <chenjh@rock-chips.com>

misc: decompress: add flags function field

That we can assign operation/functions by flags.

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


# 5313a4d0 02-Aug-2021 Joseph Chen <chenjh@rock-chips.com>

misc: decompress: clean up some API as private

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


# 83537505 13-Aug-2020 Joseph Chen <chenjh@rock-chips.com>

misc: decompress: wait complete before stop for sync

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


# 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 ...


# 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 ...


# 4298c19d 10-Jun-2020 Jason Zhu <jason.zhu@rock-chips.com>

misc: decompress: add function misc_decompress_process()

Use it to decompress data.

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


# 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 ...


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

Merge branch 'next-dev' into thunder-boot


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

misc: add a common api to get device by capability

fix: ioctl() should return error code but not capability.

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

misc: add a common api to get device by capability

fix: ioctl() should return error code but not capability.

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

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 ...


# 710cfa3d 22-Apr-2020 Joseph Chen <chenjh@rock-chips.com>

Merge branch 'next-dev' into thunder-boot


# 5b7d3298 20-Apr-2020 Jason Zhu <jason.zhu@rock-chips.com>

drivers: misc: use misc_mode to distinguish different device

The misc attach different device. We use the misc_mode to show
different device's capability.

Signed-off-by: Jason Zhu <jason.zhu@rock-c

drivers: misc: use misc_mode to distinguish different device

The misc attach different device. We use the misc_mode to show
different device's capability.

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

show more ...


# c637f232 16-Apr-2020 Joseph Chen <chenjh@rock-chips.com>

Merge branch 'next-dev' into thunder-boot

Change-Id: I22ac688008080eac49169d752a94b66668f890fc

Conflicts:
drivers/phy/Kconfig
drivers/phy/Makefile


# cc05bcfa 10-Apr-2020 Jason Zhu <jason.zhu@rock-chips.com>

misc: decompress: realize decompress interface layer function

Realize decompress start & stop & is_complete functions for application layer
calling.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.c

misc: decompress: realize decompress interface layer function

Realize decompress start & stop & is_complete functions for application layer
calling.

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

show more ...