[PATCH] PM / Hibernate: Remove unused parameter of enough_swap

2018-01-15 Thread Kyungsik Lee
Parameter flags is no longer used, remove it. Signed-off-by: Kyungsik Lee <kyungsik@lge.com> --- kernel/power/swap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/power/swap.c b/kernel/power/swap.c index 293ead5..a46be12 100644 --- a/kernel/power/swap.c

[PATCH] PM / Hibernate: Remove unused parameter of enough_swap

2018-01-15 Thread Kyungsik Lee
Parameter flags is no longer used, remove it. Signed-off-by: Kyungsik Lee --- kernel/power/swap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/power/swap.c b/kernel/power/swap.c index 293ead5..a46be12 100644 --- a/kernel/power/swap.c +++ b/kernel/power/swap.c

Re: [PATCH] Fix flags for initramfs LZ4 compression

2014-02-18 Thread Kyungsik Lee
l? It seems that lz4 supports legacy format with the same option as lz4c does. Just looking at the first few bytes of lz4 compressed image, we can see whether it is new format or not. It shows new format magic number without this patch. New format magic number is 0x184d2204. $ hexdump -C ./initramfs_da

Re: [PATCH] Fix flags for initramfs LZ4 compression

2014-02-18 Thread Kyungsik Lee
(Little Endian) ... Currently Kernel supports legacy format only. Acked-by: Kyungsik Lee kyungsik@lge.com Thanks, Kyungsik -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH] unlz4: always set an error return code on failures

2013-11-11 Thread Kyungsik Lee
On Mon, Nov 11, 2013 at 08:35:31AM +, Jan Beulich wrote: > >>> On 11.11.13 at 03:49, Kyungsik Lee wrote: > > Hello Jan, > > > > Thanks for the patch. > > > > On Fri, Nov 08, 2013 at 09:27:09AM +, Jan Beulich wrote: > >> "r

Re: [PATCH] unlz4: always set an error return code on failures

2013-11-11 Thread Kyungsik Lee
On Mon, Nov 11, 2013 at 08:35:31AM +, Jan Beulich wrote: On 11.11.13 at 03:49, Kyungsik Lee kyungsik@lge.com wrote: Hello Jan, Thanks for the patch. On Fri, Nov 08, 2013 at 09:27:09AM +, Jan Beulich wrote: ret, being set to -1 early on, gets cleared by the first

Re: [PATCH] unlz4: always set an error return code on failures

2013-11-10 Thread Kyungsik Lee
ticed by the caller without setting > it back to -1 right after those calls. > > Reported-by: Matthew Daley > Signed-off-by: Jan Beulich > Cc: Kyungsik Lee > Cc: Andrew Morton > > --- a/lib/decompress_unlz4.c > +++ b/lib/decompress_unlz4.c > @@ -141,6

Re: [PATCH] unlz4: always set an error return code on failures

2013-11-10 Thread Kyungsik Lee
setting it back to -1 right after those calls. Reported-by: Matthew Daley mat...@gmail.com Signed-off-by: Jan Beulich jbeul...@suse.com Cc: Kyungsik Lee kyungsik@lge.com Cc: Andrew Morton a...@linux-foundation.org --- a/lib/decompress_unlz4.c +++ b/lib/decompress_unlz4.c @@ -141,6

Re: [PATCH] Correct the LZ4 license

2013-08-16 Thread Kyungsik Lee
f76 100644 > --- a/lib/lz4/lz4hc_compress.c > +++ b/lib/lz4/lz4hc_compress.c > @@ -533,7 +533,7 @@ int lz4hc_compress(const unsigned char *src, size_t > src_len, > exit: > return ret; > } > -EXPORT_SYMBOL_GPL(lz4hc_compress); > +EXPORT_SYMBOL(lz4hc_compress); >

Re: [PATCH] Correct the LZ4 license

2013-08-16 Thread Kyungsik Lee
); -MODULE_LICENSE(GPL); +MODULE_LICENSE(Dual BSD/GPL); MODULE_DESCRIPTION(LZ4HC compressor); Acked-by: Kyungsik Lee kyungsik@lge.com Thanks, Kyungsik -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [PATCH] LZ4: compression/decompression signedness mismatch

2013-07-19 Thread Kyungsik Lee
On Thu, Jul 18, 2013 at 11:29:57PM +0200, Geert Uytterhoeven wrote: > On Thu, Jul 18, 2013 at 11:18 PM, Sergey Senozhatsky > wrote: > > On (07/12/13 12:48), Sergey Senozhatsky wrote: > >> On (07/12/13 11:28), Yann Collet wrote: > >> >The reference implementation, hosted at :� > >> >

Re: [PATCH] LZ4: compression/decompression signedness mismatch

2013-07-19 Thread Kyungsik Lee
On Thu, Jul 18, 2013 at 11:29:57PM +0200, Geert Uytterhoeven wrote: On Thu, Jul 18, 2013 at 11:18 PM, Sergey Senozhatsky sergey.senozhat...@gmail.com wrote: On (07/12/13 12:48), Sergey Senozhatsky wrote: On (07/12/13 11:28), Yann Collet wrote: The reference implementation, hosted at :�

Re: [PATCH -next 2/2] kbuild: fix for updated LZ4 tool with the new streaming format

2013-07-10 Thread Kyungsik Lee
b/.gitignore > @@ -29,6 +29,7 @@ modules.builtin > *.bz2 > *.lzma > *.xz > +*.lz4 > *.lzo > *.patch > *.gcno > Acked-by: Kyungsik Lee Thanks, Kyungsik -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to major

Re: [PATCH -next 2/2] kbuild: fix for updated LZ4 tool with the new streaming format

2013-07-10 Thread Kyungsik Lee
*.bz2 *.lzma *.xz +*.lz4 *.lzo *.patch *.gcno Acked-by: Kyungsik Lee kyungsik@lge.com Thanks, Kyungsik -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

[PATCH -next 2/2] kbuild: fix for updated LZ4 tool with the new streaming format

2013-05-06 Thread Kyungsik Lee
://code.google.com/p/lz4/source/checkout Signed-off-by: Kyungsik Lee Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Russell King Cc: Borislav Petkov Cc: Florian Fainelli Cc: Yann Collet Cc: Chanho Min --- scripts/Makefile.lib | 2 +- 1 file changed, 1 insertion(+),

[PATCH -next 1/2] arm: Remove enforced Os flag for LZ4 decompressor

2013-05-06 Thread Kyungsik Lee
enough to remove -Os. Decompression Time(counts) NormalUA enabled -Os 6717 3447 -O2 6720 2728 Note: ARM v7, Kernel 3.4 counter freq. = 32768 HZ UA(Unaligned Access) gcc version 4.6.2 Signed-off-by: Kyungsik Lee Cc: Thomas Gleixner Cc: Russell King Cc

[PATCH -next 1/2] arm: Remove enforced Os flag for LZ4 decompressor

2013-05-06 Thread Kyungsik Lee
enough to remove -Os. Decompression Time(counts) NormalUA enabled -Os 6717 3447 -O2 6720 2728 Note: ARM v7, Kernel 3.4 counter freq. = 32768 HZ UA(Unaligned Access) gcc version 4.6.2 Signed-off-by: Kyungsik Lee kyungsik@lge.com Cc: Thomas Gleixner t

[PATCH -next 2/2] kbuild: fix for updated LZ4 tool with the new streaming format

2013-05-06 Thread Kyungsik Lee
://code.google.com/p/lz4/source/checkout Signed-off-by: Kyungsik Lee kyungsik@lge.com Cc: H. Peter Anvin h...@zytor.com Cc: Ingo Molnar mi...@elte.hu Cc: Thomas Gleixner t...@linutronix.de Cc: Russell King r...@arm.linux.org.uk Cc: Borislav Petkov b...@alien8.de Cc: Florian Fainelli flor

Re: [PATCH v3 -next 3/5] arm: Add support for LZ4-compressed kernel

2013-05-03 Thread Kyungsik Lee
On Tue, Apr 30, 2013 at 01:56:02PM -0700, Andrew Morton wrote: > On Tue, 5 Mar 2013 20:47:34 +0900 Kyungsik Lee wrote: > > > This patch integrates the LZ4 decompression code to the arm pre-boot code. > > And it depends on two patchs below > > > > lib: Add sup

Re: [PATCH v3 -next 3/5] arm: Add support for LZ4-compressed kernel

2013-05-03 Thread Kyungsik Lee
On Tue, Apr 30, 2013 at 01:56:02PM -0700, Andrew Morton wrote: On Tue, 5 Mar 2013 20:47:34 +0900 Kyungsik Lee kyungsik@lge.com wrote: This patch integrates the LZ4 decompression code to the arm pre-boot code. And it depends on two patchs below lib: Add support for LZ4-compressed

[PATCH -next] x86, doc: Add LZ4 magic number for the new compression

2013-04-25 Thread Kyungsik Lee
Documentation/x86/boot.txt is updated to list the LZ4 magic number. This LZ4 magic number is used for the new compression format. Signed-off-by: Kyungsik Lee Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Russell King Cc: Borislav Petkov Cc: Florian Fainelli Cc: Y

[PATCH -next] x86, doc: Add LZ4 magic number for the new compression

2013-04-25 Thread Kyungsik Lee
Documentation/x86/boot.txt is updated to list the LZ4 magic number. This LZ4 magic number is used for the new compression format. Signed-off-by: Kyungsik Lee kyungsik@lge.com Cc: H. Peter Anvin h...@zytor.com Cc: Ingo Molnar mi...@elte.hu Cc: Thomas Gleixner t...@linutronix.de Cc: Russell

Re: [PATCH v3 -next 0/5] Add support for LZ4-compressed kernel

2013-03-07 Thread Kyungsik Lee
Hello, On Tue, Mar 05, 2013 at 03:06:16PM -0800, Andrew Morton wrote: > On Tue, 5 Mar 2013 20:47:31 +0900 Kyungsik Lee wrote: > > > This is the third version. In this version, Some codes are fixed > > and more description and note are added. I would like to thank David

Re: [PATCH v3 -next 0/5] Add support for LZ4-compressed kernel

2013-03-07 Thread Kyungsik Lee
Hello, On Tue, Mar 05, 2013 at 03:06:16PM -0800, Andrew Morton wrote: On Tue, 5 Mar 2013 20:47:31 +0900 Kyungsik Lee kyungsik@lge.com wrote: This is the third version. In this version, Some codes are fixed and more description and note are added. I would like to thank David Sterba

Re: [PATCH v3 -next 4/5] x86: Add support for LZ4-compressed kernel

2013-03-05 Thread Kyungsik Lee
t > >code. > >And it depends on two patchs below > > > >lib: Add support for LZ4-compressed kernel > >decompressor: Add LZ4 decompressor module > > > >Signed-off-by: Kyungsik Lee > >--- > > arch/x86/Kconfig | 1 + > > arch/x86/b

Re: [PATCH v3 -next 0/5] Add support for LZ4-compressed kernel

2013-03-05 Thread Kyungsik Lee
On Tue, Mar 05, 2013 at 03:06:16PM -0800, Andrew Morton wrote: > On Tue, 5 Mar 2013 20:47:31 +0900 Kyungsik Lee wrote: > > > This is the third version. In this version, Some codes are fixed > > and more description and note are added. I would like to thank David Sterba

[PATCH v3 -next 0/5] Add support for LZ4-compressed kernel

2013-03-05 Thread Kyungsik Lee
-process - Apply -Os to decompress.o to improve decompress performance during boot-up process Change log: v3 - Prevent double evaluation by using an inline function - Add LZ4 description and note for uncompressed chunk size issue - Fix indentation error Kyungsik Lee (5): decompressor: Add LZ4

[PATCH v3 -next 5/5] Kconfig: Make x86 and arm kernels default to the LZ4-compressed

2013-03-05 Thread Kyungsik Lee
This patch makes x86 and arm kernels default to the LZ4-compressed to test new LZ4 code in the linux-next. This is requested by Andrew Morton. Signed-off-by: Kyungsik Lee --- init/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/Kconfig b/init/Kconfig index

[PATCH v3 -next 2/5] lib: Add support for LZ4-compressed kernel

2013-03-05 Thread Kyungsik Lee
This patch adds support for extracting LZ4-compressed kernel images, as well as LZ4-compressed ramdisk images in the kernel boot process. This depends on the patch below decompressor: Add LZ4 decompressor module Signed-off-by: Kyungsik Lee v2: - Clean up code - Use lz4_decompress() for LZ4

[PATCH v3 -next 4/5] x86: Add support for LZ4-compressed kernel

2013-03-05 Thread Kyungsik Lee
This patch integrates the LZ4 decompression code to the x86 pre-boot code. And it depends on two patchs below lib: Add support for LZ4-compressed kernel decompressor: Add LZ4 decompressor module Signed-off-by: Kyungsik Lee --- arch/x86/Kconfig | 1 + arch/x86/boot/compressed

[PATCH v3 -next 3/5] arm: Add support for LZ4-compressed kernel

2013-03-05 Thread Kyungsik Lee
This patch integrates the LZ4 decompression code to the arm pre-boot code. And it depends on two patchs below lib: Add support for LZ4-compressed kernel decompressor: Add LZ4 decompressor module Signed-off-by: Kyungsik Lee v2: - Apply CFLAGS, -Os to decompress.o to improve decompress

[PATCH v3 -next 1/5] decompressor: Add LZ4 decompressor module

2013-03-05 Thread Kyungsik Lee
This patch adds support for LZ4 decompression in the Linux Kernel. LZ4 Decompression APIs for kernel are based on LZ4 implementation by Yann Collet. LZ4 homepage : http://fastcompression.blogspot.com/p/lz4.html LZ4 source repository : http://code.google.com/p/lz4/ Signed-off-by: Kyungsik Lee

[PATCH v3 -next 1/5] decompressor: Add LZ4 decompressor module

2013-03-05 Thread Kyungsik Lee
This patch adds support for LZ4 decompression in the Linux Kernel. LZ4 Decompression APIs for kernel are based on LZ4 implementation by Yann Collet. LZ4 homepage : http://fastcompression.blogspot.com/p/lz4.html LZ4 source repository : http://code.google.com/p/lz4/ Signed-off-by: Kyungsik Lee

[PATCH v3 -next 3/5] arm: Add support for LZ4-compressed kernel

2013-03-05 Thread Kyungsik Lee
This patch integrates the LZ4 decompression code to the arm pre-boot code. And it depends on two patchs below lib: Add support for LZ4-compressed kernel decompressor: Add LZ4 decompressor module Signed-off-by: Kyungsik Lee kyungsik@lge.com v2: - Apply CFLAGS, -Os to decompress.o to improve

[PATCH v3 -next 4/5] x86: Add support for LZ4-compressed kernel

2013-03-05 Thread Kyungsik Lee
This patch integrates the LZ4 decompression code to the x86 pre-boot code. And it depends on two patchs below lib: Add support for LZ4-compressed kernel decompressor: Add LZ4 decompressor module Signed-off-by: Kyungsik Lee kyungsik@lge.com --- arch/x86/Kconfig | 1 + arch

[PATCH v3 -next 5/5] Kconfig: Make x86 and arm kernels default to the LZ4-compressed

2013-03-05 Thread Kyungsik Lee
This patch makes x86 and arm kernels default to the LZ4-compressed to test new LZ4 code in the linux-next. This is requested by Andrew Morton. Signed-off-by: Kyungsik Lee kyungsik@lge.com --- init/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/Kconfig b/init

[PATCH v3 -next 2/5] lib: Add support for LZ4-compressed kernel

2013-03-05 Thread Kyungsik Lee
This patch adds support for extracting LZ4-compressed kernel images, as well as LZ4-compressed ramdisk images in the kernel boot process. This depends on the patch below decompressor: Add LZ4 decompressor module Signed-off-by: Kyungsik Lee kyungsik@lge.com v2: - Clean up code - Use

[PATCH v3 -next 0/5] Add support for LZ4-compressed kernel

2013-03-05 Thread Kyungsik Lee
-process - Apply -Os to decompress.o to improve decompress performance during boot-up process Change log: v3 - Prevent double evaluation by using an inline function - Add LZ4 description and note for uncompressed chunk size issue - Fix indentation error Kyungsik Lee (5): decompressor: Add LZ4

Re: [PATCH v3 -next 0/5] Add support for LZ4-compressed kernel

2013-03-05 Thread Kyungsik Lee
On Tue, Mar 05, 2013 at 03:06:16PM -0800, Andrew Morton wrote: On Tue, 5 Mar 2013 20:47:31 +0900 Kyungsik Lee kyungsik@lge.com wrote: This is the third version. In this version, Some codes are fixed and more description and note are added. I would like to thank David Sterba for his

Re: [PATCH v3 -next 4/5] x86: Add support for LZ4-compressed kernel

2013-03-05 Thread Kyungsik Lee
. And it depends on two patchs below lib: Add support for LZ4-compressed kernel decompressor: Add LZ4 decompressor module Signed-off-by: Kyungsik Lee kyungsik@lge.com --- arch/x86/Kconfig | 1 + arch/x86/boot/compressed/Makefile | 5 - arch/x86/boot/compressed/misc.c | 4

Re: [RFC PATCH v2 2/4] lib: Add support for LZ4-compressed kernel

2013-02-27 Thread Kyungsik Lee
On Tue, Feb 26, 2013 at 03:00:51PM +0100, David Sterba wrote: > On Tue, Feb 26, 2013 at 03:24:28PM +0900, Kyungsik Lee wrote: > > +config KERNEL_LZ4 > > + bool "LZ4" > > + depends on HAVE_KERNEL_LZ4 > > + help > > + Its compression rati

Re: [RFC PATCH v2 0/4] Add support for LZ4-compressed kernel

2013-02-27 Thread Kyungsik Lee
On Wed, Feb 27, 2013 at 09:51:39AM +, Russell King - ARM Linux wrote: > On Wed, Feb 27, 2013 at 04:36:47PM +0900, Kyungsik Lee wrote: > > Compiler: Linaro ARM gcc 4.6.2 > > 2. ARMv7, 1.7GHz based board > >Kernel: linux 3.7 > >Uncompressed Kernel Size: 14MB &

Re: [RFC PATCH v2 0/4] Add support for LZ4-compressed kernel

2013-02-27 Thread Kyungsik Lee
On Wed, Feb 27, 2013 at 09:51:39AM +, Russell King - ARM Linux wrote: On Wed, Feb 27, 2013 at 04:36:47PM +0900, Kyungsik Lee wrote: Compiler: Linaro ARM gcc 4.6.2 2. ARMv7, 1.7GHz based board Kernel: linux 3.7 Uncompressed Kernel Size: 14MB Compressed Size

Re: [RFC PATCH v2 2/4] lib: Add support for LZ4-compressed kernel

2013-02-27 Thread Kyungsik Lee
On Tue, Feb 26, 2013 at 03:00:51PM +0100, David Sterba wrote: On Tue, Feb 26, 2013 at 03:24:28PM +0900, Kyungsik Lee wrote: +config KERNEL_LZ4 + bool LZ4 + depends on HAVE_KERNEL_LZ4 + help + Its compression ratio is worse than LZO. The size of the kernel + is about 8

Re: [RFC PATCH v2 0/4] Add support for LZ4-compressed kernel

2013-02-26 Thread Kyungsik Lee
On Tue, Feb 26, 2013 at 09:33:22PM +0100, Markus F.X.J. Oberhumer wrote: > On 2013-02-26 07:24, Kyungsik Lee wrote: > > Hi, > > > > [...] > > > > Through the benchmark, it was found that -Os Compiler flag for > > decompress.o brought better decompressi

Re: [RFC PATCH v2 1/4] decompressor: Add LZ4 decompressor module

2013-02-26 Thread Kyungsik Lee
On Tue, Feb 26, 2013 at 02:12:06PM +0100, David Sterba wrote: > On Tue, Feb 26, 2013 at 03:24:27PM +0900, Kyungsik Lee wrote: > > This patch adds support for LZ4 decompression in the Linux Kernel. > > LZ4 Decompression APIs for kernel are based on LZ4 implementation >

Re: [RFC PATCH v2 1/4] decompressor: Add LZ4 decompressor module

2013-02-26 Thread Kyungsik Lee
On Tue, Feb 26, 2013 at 02:12:06PM +0100, David Sterba wrote: On Tue, Feb 26, 2013 at 03:24:27PM +0900, Kyungsik Lee wrote: This patch adds support for LZ4 decompression in the Linux Kernel. LZ4 Decompression APIs for kernel are based on LZ4 implementation by Yann Collet. LZ4 homepage

Re: [RFC PATCH v2 0/4] Add support for LZ4-compressed kernel

2013-02-26 Thread Kyungsik Lee
On Tue, Feb 26, 2013 at 09:33:22PM +0100, Markus F.X.J. Oberhumer wrote: On 2013-02-26 07:24, Kyungsik Lee wrote: Hi, [...] Through the benchmark, it was found that -Os Compiler flag for decompress.o brought better decompression performance in most of cases (ex, different compiler

[RFC PATCH v2 3/4] arm: Add support for LZ4-compressed kernel

2013-02-25 Thread Kyungsik Lee
This patch integrates the LZ4 decompression code to the arm pre-boot code. And it depends on two patchs below lib: Add support for LZ4-compressed kernel decompressor: Add LZ4 decompressor module Signed-off-by: Kyungsik Lee v2: - Apply CFLAGS, -Os to decompress.o to improve decompress

[RFC PATCH v2 4/4] x86: Add support for LZ4-compressed kernel

2013-02-25 Thread Kyungsik Lee
This patch integrates the LZ4 decompression code to the x86 pre-boot code. And it depends on two patchs below lib: Add support for LZ4-compressed kernel decompressor: Add LZ4 decompressor module Signed-off-by: Kyungsik Lee --- arch/x86/Kconfig | 1 + arch/x86/boot/compressed

[RFC PATCH v2 2/4] lib: Add support for LZ4-compressed kernel

2013-02-25 Thread Kyungsik Lee
This patch adds support for extracting LZ4-compressed kernel images, as well as LZ4-compressed ramdisk images in the kernel boot process. This depends on the patch below decompressor: Add LZ4 decompressor module Signed-off-by: Kyungsik Lee v2: - Clean up code - Use lz4_decompress() for LZ4

[RFC PATCH v2 1/4] decompressor: Add LZ4 decompressor module

2013-02-25 Thread Kyungsik Lee
This patch adds support for LZ4 decompression in the Linux Kernel. LZ4 Decompression APIs for kernel are based on LZ4 implementation by Yann Collet. LZ4 homepage : http://fastcompression.blogspot.com/p/lz4.html LZ4 source repository : http://code.google.com/p/lz4/ Signed-off-by: Kyungsik Lee

[RFC PATCH v2 0/4] Add support for LZ4-compressed kernel

2013-02-25 Thread Kyungsik Lee
kernel during boot-process - Apply -Os to decompress.o to improve decompress performance during boot-up process Kyungsik Lee (4): decompressor: Add LZ4 decompressor module lib: Add support for LZ4-compressed kernel arm: Add support for LZ4-compressed kernel x86: Add support for LZ4

[RFC PATCH v2 0/4] Add support for LZ4-compressed kernel

2013-02-25 Thread Kyungsik Lee
kernel during boot-process - Apply -Os to decompress.o to improve decompress performance during boot-up process Kyungsik Lee (4): decompressor: Add LZ4 decompressor module lib: Add support for LZ4-compressed kernel arm: Add support for LZ4-compressed kernel x86: Add support for LZ4

[RFC PATCH v2 1/4] decompressor: Add LZ4 decompressor module

2013-02-25 Thread Kyungsik Lee
This patch adds support for LZ4 decompression in the Linux Kernel. LZ4 Decompression APIs for kernel are based on LZ4 implementation by Yann Collet. LZ4 homepage : http://fastcompression.blogspot.com/p/lz4.html LZ4 source repository : http://code.google.com/p/lz4/ Signed-off-by: Kyungsik Lee

[RFC PATCH v2 2/4] lib: Add support for LZ4-compressed kernel

2013-02-25 Thread Kyungsik Lee
This patch adds support for extracting LZ4-compressed kernel images, as well as LZ4-compressed ramdisk images in the kernel boot process. This depends on the patch below decompressor: Add LZ4 decompressor module Signed-off-by: Kyungsik Lee kyungsik@lge.com v2: - Clean up code - Use

[RFC PATCH v2 4/4] x86: Add support for LZ4-compressed kernel

2013-02-25 Thread Kyungsik Lee
This patch integrates the LZ4 decompression code to the x86 pre-boot code. And it depends on two patchs below lib: Add support for LZ4-compressed kernel decompressor: Add LZ4 decompressor module Signed-off-by: Kyungsik Lee kyungsik@lge.com --- arch/x86/Kconfig | 1 + arch

[RFC PATCH v2 3/4] arm: Add support for LZ4-compressed kernel

2013-02-25 Thread Kyungsik Lee
This patch integrates the LZ4 decompression code to the arm pre-boot code. And it depends on two patchs below lib: Add support for LZ4-compressed kernel decompressor: Add LZ4 decompressor module Signed-off-by: Kyungsik Lee kyungsik@lge.com v2: - Apply CFLAGS, -Os to decompress.o to improve

Re: [PATCH v2] btrfs: use kmalloc for lzo de/compress buffer

2013-02-22 Thread Kyungsik Lee
On Thu, Feb 21, 2013 at 02:41:53PM +0100, David Sterba wrote: > On Mon, Feb 18, 2013 at 04:56:04PM +0900, Kyungsik Lee wrote: > > @@ -55,8 +55,9 @@ static struct list_head *lzo_alloc_workspace(void) > > return ERR_PTR(-ENOMEM); > > > > workspace->me

Re: [PATCH v2] btrfs: use kmalloc for lzo de/compress buffer

2013-02-22 Thread Kyungsik Lee
On Thu, Feb 21, 2013 at 02:41:53PM +0100, David Sterba wrote: On Mon, Feb 18, 2013 at 04:56:04PM +0900, Kyungsik Lee wrote: @@ -55,8 +55,9 @@ static struct list_head *lzo_alloc_workspace(void) return ERR_PTR(-ENOMEM); workspace-mem = vmalloc(LZO1X_MEM_COMPRESS

[PATCH v2] btrfs: use kmalloc for lzo de/compress buffer

2013-02-17 Thread Kyungsik Lee
The size of de/compress buffer is small enough to use kmalloc. Allocating it with kmalloc rather than vmalloc is preferred. This patch depends on my previous patch, “btrfs: fix decompress buffer size”. v2: Using vmalloc for "workspace->mem" due to the size limit. Signed-off-by: Kyu

[PATCH v2] btrfs: use kmalloc for lzo de/compress buffer

2013-02-17 Thread Kyungsik Lee
The size of de/compress buffer is small enough to use kmalloc. Allocating it with kmalloc rather than vmalloc is preferred. This patch depends on my previous patch, “btrfs: fix decompress buffer size”. v2: Using vmalloc for workspace-mem due to the size limit. Signed-off-by: Kyungsik Lee

[PATCH] btrfs: use kmalloc for lzo de/compress buffer

2013-02-15 Thread Kyungsik Lee
The size of de/compress buffer and LZO1X_MEM_COMPRESS is small enough. Allocating it with kmalloc rather than vmalloc is preferred. This patch depends on my previous patch, “btrfs: fix decompress buffer size”. Signed-off-by: Kyungsik Lee Cc: David Sterba --- fs/btrfs/lzo.c | 14

[PATCH] btrfs: use kmalloc for lzo de/compress buffer

2013-02-15 Thread Kyungsik Lee
The size of de/compress buffer and LZO1X_MEM_COMPRESS is small enough. Allocating it with kmalloc rather than vmalloc is preferred. This patch depends on my previous patch, “btrfs: fix decompress buffer size”. Signed-off-by: Kyungsik Lee kyungsik@lge.com Cc: David Sterba dste...@suse.cz

[PATCH] btrfs: fix decompress buffer size

2013-02-14 Thread Kyungsik Lee
lzo1x_1_compress() is unnecessarily used for allocating decompress buffer. Signed-off-by: Kyungsik Lee --- fs/btrfs/lzo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/lzo.c b/fs/btrfs/lzo.c index 743b86f..223893a 100644 --- a/fs/btrfs/lzo.c +++ b/fs/btrfs

[PATCH] btrfs: fix decompress buffer size

2013-02-14 Thread Kyungsik Lee
lzo1x_1_compress() is unnecessarily used for allocating decompress buffer. Signed-off-by: Kyungsik Lee kyungsik@lge.com --- fs/btrfs/lzo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/lzo.c b/fs/btrfs/lzo.c index 743b86f..223893a 100644 --- a/fs/btrfs

[RFC PATCH 2/4] lib: add support for LZ4-compressed kernels

2013-01-25 Thread Kyungsik Lee
This patch adds support for extracting LZ4-compressed kernel images, as well as LZ4-compressed ramdisk images in the kernel boot process. This depends on the patch below decompressors: add lz4 decompressor module Signed-off-by: Kyungsik Lee --- include/linux/decompress/unlz4.h | 10 ++ init

[RFC PATCH 3/4] arm: add support for LZ4-compressed kernels

2013-01-25 Thread Kyungsik Lee
This patch integrates the LZ4 decompression code to the arm pre-boot code. And it depends on two patchs below lib: add support for LZ4-compressed kernels decompressors: add lz4 decompressor module Signed-off-by: Kyungsik Lee --- arch/arm/Kconfig | 1 + arch/arm/boot

[RFC PATCH 1/4] decompressors: add lz4 decompressor module

2013-01-25 Thread Kyungsik Lee
This patch adds support for LZ4 decompression in the kernel. LZ4 Decompression APIs for kernel are based on LZ4 implementation by Yann Collet. LZ4 homepage : http://fastcompression.blogspot.com/p/lz4.html LZ4 source repository : http://code.google.com/p/lz4/ Signed-off-by: Kyungsik Lee

[RFC PATCH 4/4] x86: add support for LZ4-compressed kernels

2013-01-25 Thread Kyungsik Lee
This patch integrates the LZ4 decompression code to the x86 pre-boot code. And it depends on two patchs below lib: add support for LZ4-compressed kernels decompressors: add lz4 decompressor module Signed-off-by: Kyungsik Lee --- arch/x86/Kconfig | 1 + arch/x86/boot/compressed

[RFC PATCH 4/4] x86: add support for LZ4-compressed kernels

2013-01-25 Thread Kyungsik Lee
This patch integrates the LZ4 decompression code to the x86 pre-boot code. And it depends on two patchs below lib: add support for LZ4-compressed kernels decompressors: add lz4 decompressor module Signed-off-by: Kyungsik Lee kyungsik@lge.com --- arch/x86/Kconfig | 1 + arch

[RFC PATCH 1/4] decompressors: add lz4 decompressor module

2013-01-25 Thread Kyungsik Lee
This patch adds support for LZ4 decompression in the kernel. LZ4 Decompression APIs for kernel are based on LZ4 implementation by Yann Collet. LZ4 homepage : http://fastcompression.blogspot.com/p/lz4.html LZ4 source repository : http://code.google.com/p/lz4/ Signed-off-by: Kyungsik Lee kyungsik

[RFC PATCH 2/4] lib: add support for LZ4-compressed kernels

2013-01-25 Thread Kyungsik Lee
This patch adds support for extracting LZ4-compressed kernel images, as well as LZ4-compressed ramdisk images in the kernel boot process. This depends on the patch below decompressors: add lz4 decompressor module Signed-off-by: Kyungsik Lee kyungsik@lge.com --- include/linux/decompress

[RFC PATCH 3/4] arm: add support for LZ4-compressed kernels

2013-01-25 Thread Kyungsik Lee
This patch integrates the LZ4 decompression code to the arm pre-boot code. And it depends on two patchs below lib: add support for LZ4-compressed kernels decompressors: add lz4 decompressor module Signed-off-by: Kyungsik Lee kyungsik@lge.com --- arch/arm/Kconfig | 1

[PATCH] mmc: debugfs: Fix incorrect size of string allocation

2012-12-04 Thread Kyungsik Lee
It is usually accepted that code should explain itself. The max size of string is 1025(512*2 + 1) bytes so there is no point to add one more byte for string allocation. This patch is intended to fix incorrect size for string allocation and make code more readable. Signed-off-by: Kyungsik Lee

[PATCH] mmc: debugfs: Fix incorrect size of string allocation

2012-12-04 Thread Kyungsik Lee
It is usually accepted that code should explain itself. The max size of string is 1025(512*2 + 1) bytes so there is no point to add one more byte for string allocation. This patch is intended to fix incorrect size for string allocation and make code more readable. Signed-off-by: Kyungsik Lee

[PATCH RESEND v6] mmc: core: Remove bounce buffer in mmc_send_cxd_data()

2012-08-02 Thread Kyungsik Lee
with no performance gain). Signed-off-by: Kyungsik Lee Reviewed-by: Venkatraman S --- Changes in v2: - Handling on-stack buffer if it's used in caller. Changes in v3: - Remove unnecesary code. Changes in v4: - Modify codes based-on S, Venkatraman's comments. Changes in v5: - Modify commit log and add

[PATCH RESEND v5] mmc: core: Remove bounce buffer in mmc_send_cxd_data()

2012-08-02 Thread Kyungsik Lee
with no performance gain). Signed-off-by: Kyungsik Lee Signed-off-by: S, Venkatraman --- Changes in v2: - Handling on-stack buffer if it's used in caller. Changes in v3: - Remove unnecesary code. Changes in v4: - Modify codes based-on S, Venkatraman's comments. Changes in v5: - Modify commit log

[PATCH RESEND v5] mmc: core: Remove bounce buffer in mmc_send_cxd_data()

2012-08-02 Thread Kyungsik Lee
with no performance gain). Signed-off-by: Kyungsik Lee kyungsik@lge.com Signed-off-by: S, Venkatraman svenk...@ti.com --- Changes in v2: - Handling on-stack buffer if it's used in caller. Changes in v3: - Remove unnecesary code. Changes in v4: - Modify codes based-on S, Venkatraman's comments

[PATCH RESEND v6] mmc: core: Remove bounce buffer in mmc_send_cxd_data()

2012-08-02 Thread Kyungsik Lee
with no performance gain). Signed-off-by: Kyungsik Lee kyungsik@lge.com Reviewed-by: Venkatraman S svenk...@ti.com --- Changes in v2: - Handling on-stack buffer if it's used in caller. Changes in v3: - Remove unnecesary code. Changes in v4: - Modify codes based-on S, Venkatraman's comments. Changes

[PATCH RESEND v4] mmc: core: Remove bounce buffer in mmc_send_cxd_data()

2012-07-31 Thread Kyungsik Lee
buffer for reading Extended CSD register in mmc_send_cxd_data(). Signed-off-by: Kyungsik Lee Signed-off-by: S, Venkatraman --- Changes in v2: - Handling on-stack buffer if it's used in caller. Changes in v3: - Remove unnecesary code. Changes in v4: - Modify codes based-on S, Venkatraman's comments

[PATCH RESEND v4] mmc: core: Remove bounce buffer in mmc_send_cxd_data()

2012-07-31 Thread Kyungsik Lee
buffer for reading Extended CSD register in mmc_send_cxd_data(). Signed-off-by: Kyungsik Lee kyungsik@lge.com Signed-off-by: S, Venkatraman svenk...@ti.com --- Changes in v2: - Handling on-stack buffer if it's used in caller. Changes in v3: - Remove unnecesary code. Changes in v4: - Modify codes

[PATCH RESEND v3] mmc: core: Remove bounce buffer in mmc_send_cxd_data()

2012-07-30 Thread Kyungsik Lee
buffer for reading Extended CSD register in mmc_send_cxd_data(). Signed-off-by: Kyungsik Lee --- Changes in v2: - Handling on-stack buffer if it's used in caller. Changes in v3: - Remove unnecesary code. --- drivers/mmc/core/mmc_ops.c | 54 --- 1 files

[PATCH RESEND v3] mmc: core: Remove bounce buffer in mmc_send_cxd_data()

2012-07-30 Thread Kyungsik Lee
buffer for reading Extended CSD register in mmc_send_cxd_data(). Signed-off-by: Kyungsik Lee kyungsik@lge.com --- Changes in v2: - Handling on-stack buffer if it's used in caller. Changes in v3: - Remove unnecesary code. --- drivers/mmc/core/mmc_ops.c | 54

[PATCH RESEND v2] mmc: core: Remove bounce buffer in mmc_send_cxd_data()

2012-07-29 Thread Kyungsik Lee
buffer for reading Extended CSD register in mmc_send_cxd_data(). Signed-off-by: Kyungsik Lee --- Changes in v2: - Handling on-stack buffer if it's used in caller. --- drivers/mmc/core/mmc_ops.c | 56 ++- 1 files changed, 44 insertions(+), 12 deletions

[PATCH RESEND v2] mmc: core: Remove bounce buffer in mmc_send_cxd_data()

2012-07-29 Thread Kyungsik Lee
buffer for reading Extended CSD register in mmc_send_cxd_data(). Signed-off-by: Kyungsik Lee kyungsik@lge.com --- Changes in v2: - Handling on-stack buffer if it's used in caller. --- drivers/mmc/core/mmc_ops.c | 56 ++- 1 files changed, 44 insertions

[PATCH RESEND] mmc: core: Remove bounce buffer in mmc_send_cxd_data()

2012-07-25 Thread Kyungsik Lee
buffer for reading Extended CSD register in mmc_send_cxd_data(). Signed-off-by: Kyungsik Lee --- drivers/mmc/core/mmc_ops.c | 45 --- 1 files changed, 29 insertions(+), 16 deletions(-) diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c

[PATCH RESEND] mmc: core: Remove bounce buffer in mmc_send_cxd_data()

2012-07-25 Thread Kyungsik Lee
buffer for reading Extended CSD register in mmc_send_cxd_data(). Signed-off-by: Kyungsik Lee kyungsik@lge.com --- drivers/mmc/core/mmc_ops.c | 45 --- 1 files changed, 29 insertions(+), 16 deletions(-) diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc