Re: [PATCH] x86/KASLR: move aligning of minimal address to choose_random_location()

2018-01-04 Thread Alexander Kuleshov
On 01-04-18, Baoquan He wrote: > On 01/04/18 at 03:54pm, Alexander Kuleshov wrote: > > we align minimal possible address during randomization to > > CONFIG_PHYSICAL_ALIGN > > two times: during getting of random physical address and virtual > > address (only for x86_64

[PATCH] x86/KASLR: move aligning of minimal address to choose_random_location()

2018-01-04 Thread Alexander Kuleshov
_addr(). Signed-off-by: Alexander Kuleshov --- arch/x86/boot/compressed/kaslr.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/x86/boot/compressed/kaslr.c b/arch/x86/boot/compressed/kaslr.c index 8199a6187251..8c93e399fdfd 100644 --- a/arch/x86/boot/compressed/kaslr.c

[PATCH] assoc_array: fix path to assoc_array documentation

2017-08-22 Thread Alexander Kuleshov
Signed-off-by: Alexander Kuleshov --- lib/assoc_array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/assoc_array.c b/lib/assoc_array.c index 59fd7c0b119c..155c55d8db5f 100644 --- a/lib/assoc_array.c +++ b/lib/assoc_array.c @@ -1,6 +1,6 @@ /* Generic associative array

[tip:x86/cleanups] x86/traps: Get rid of unnecessary preempt_disable/preempt_enable_no_resched

2017-02-04 Thread tip-bot for Alexander Kuleshov
Commit-ID: 07d495dae20717b00881798ef812f7aa53ca0eb3 Gitweb: http://git.kernel.org/tip/07d495dae20717b00881798ef812f7aa53ca0eb3 Author: Alexander Kuleshov AuthorDate: Mon, 28 Nov 2016 13:50:57 +0600 Committer: Thomas Gleixner CommitDate: Sat, 4 Feb 2017 09:36:59 +0100 x86/traps: Get

[PATCH] x86/traps: get rid of unnecessary preempt_disable/preempt_enable_no_resched

2016-11-27 Thread Alexander Kuleshov
preempt_enable_no_resched() after/before ist_enter()/ist_exit(). Let's get rid from them. Signed-off-by: Alexander Kuleshov --- arch/x86/kernel/traps.c | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c index bd4e3d4..5fbff64 100644 --- a/arc

[tip:x86/asm] x86/entry64: Remove unused audit related macros

2016-10-25 Thread tip-bot for Alexander Kuleshov
Commit-ID: 5e25d5bdf6d407224ad185a3fb8b870ad7d6c627 Gitweb: http://git.kernel.org/tip/5e25d5bdf6d407224ad185a3fb8b870ad7d6c627 Author: Alexander Kuleshov AuthorDate: Sun, 23 Oct 2016 19:56:46 +0600 Committer: Ingo Molnar CommitDate: Tue, 25 Oct 2016 11:43:31 +0200 x86/entry64: Remove

[PATCH] x86/entry64: move comment about informing of context tracking in right place

2016-10-24 Thread Alexander Kuleshov
n the CALL_enter_from_user_mode macro expands to the informing of context tracking about this event. Let's move part of comment to the right place where actual call to context tracing occured. Signed-off-by: Alexander Kuleshov --- arch/x86/entry/entry_64.S | 6 -- 1 file changed, 4 insert

[PATCH v3] x86/entry64: remove unused audit related macros

2016-10-23 Thread Alexander Kuleshov
arch/x86/entry/common.c") commit. syscall_trace_enter() now uses same defines from , so these defines are no longer used anywhere in entry_64.S outside of it and we may remove them. Signed-off-by: Alexander Kuleshov Reviewed-by: Borislav Petkov --- ChangeLog: v1 -> v2: - Added more detail

Re: [PATCH v2] x86/entry64: remove unused audit related macros

2016-10-23 Thread Alexander Kuleshov
On 10-23-16, Borislav Petkov wrote: > Now, I went and made it a bit more readable and put the commit IDs and > their names on separate lines, like we do in tip: > > "These macros were added in commit > > 86a1c34a929f ("x86_64 syscall audit fast-path"). > > They were used for sycalls auditing,

[PATCH v2] x86/entry64: remove unused audit related macros

2016-10-23 Thread Alexander Kuleshov
entry and exit code to arch/x86/entry/common.c by Andy Lutomirski ). The syscall_trace_enter() now uses same defines from , so these defines are no longer used anywhere in entry_64.S and we may remove them. Signed-off-by: Alexander Kuleshov --- ChangeLog: v1 -> v2: - Added more details in the com

Re: [PATCH] x86/entry64: remove unused audit related macros

2016-10-23 Thread Alexander Kuleshov
Hello Borislav, On 10-23-16, Borislav Petkov wrote: > I'd prefer it if you said which patch *removed* them and made those > defines unused again. > > What would be even better is if your commit message explained *why* they > were removed in that patch and that because of we > don't need them her

[PATCH] x86/entry64: remove unused audit related macros

2016-10-22 Thread Alexander Kuleshov
which are ocured in the 86a1c34a929f commit (x86_64 syscall audit fast-path by Roland McGrath ) and now they are not used anymore. Signed-off-by: Alexander Kuleshov --- arch/x86/entry/entry_64.S | 6 -- 1 file changed, 6 deletions(-) diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry

[tip:x86/asm] entry/64: Remove unused ZERO_EXTRA_REGS macro

2016-10-20 Thread tip-bot for Alexander Kuleshov
Commit-ID: 29a6d7964d6853f5bcd84dfb92c074fb41d00563 Gitweb: http://git.kernel.org/tip/29a6d7964d6853f5bcd84dfb92c074fb41d00563 Author: Alexander Kuleshov AuthorDate: Thu, 20 Oct 2016 18:07:04 +0600 Committer: Ingo Molnar CommitDate: Fri, 21 Oct 2016 07:47:36 +0200 entry/64: Remove

[tip:x86/urgent] entry/64: Remove unused ZERO_EXTRA_REGS macro

2016-10-20 Thread tip-bot for Alexander Kuleshov
Commit-ID: b05d20f9a12fb7795b2bd220e7dd56e29e196ba8 Gitweb: http://git.kernel.org/tip/b05d20f9a12fb7795b2bd220e7dd56e29e196ba8 Author: Alexander Kuleshov AuthorDate: Thu, 20 Oct 2016 18:07:04 +0600 Committer: Thomas Gleixner CommitDate: Thu, 20 Oct 2016 23:41:15 +0200 entry/64: Remove

[PATCH] entry/64: remove unused ZERO_EXTRA_REGS macro

2016-10-20 Thread Alexander Kuleshov
Signed-off-by: Alexander Kuleshov --- arch/x86/entry/calling.h | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/x86/entry/calling.h b/arch/x86/entry/calling.h index 9a9e588..e32353a 100644 --- a/arch/x86/entry/calling.h +++ b/arch/x86/entry/calling.h @@ -147,15 +147,6 @@ For 32

[tip:x86/asm] x86/entry/64: Remove unused 'addskip' parameter of the ALLOC_PT_GPREGS_ON_STACK macro

2016-10-20 Thread tip-bot for Alexander Kuleshov
Commit-ID: 59df2268311795ee7161776248d5288ee0841d41 Gitweb: http://git.kernel.org/tip/59df2268311795ee7161776248d5288ee0841d41 Author: Alexander Kuleshov AuthorDate: Thu, 20 Oct 2016 01:11:08 +0600 Committer: Ingo Molnar CommitDate: Thu, 20 Oct 2016 08:42:36 +0200 x86/entry/64: Remove

[tip:x86/urgent] x86/entry: Remove addskip parameter from ALLOC_PT_GPREGS_ON_STACK

2016-10-20 Thread tip-bot for Alexander Kuleshov
Commit-ID: ac679bf247cf044a5be6ca7d380307540284dd45 Gitweb: http://git.kernel.org/tip/ac679bf247cf044a5be6ca7d380307540284dd45 Author: Alexander Kuleshov AuthorDate: Thu, 20 Oct 2016 01:11:08 +0600 Committer: Thomas Gleixner CommitDate: Thu, 20 Oct 2016 10:57:37 +0200 x86/entry

[PATCH] x86/calling.h: remove unused addskip parameter of ALLOC_PT_GPREGS_ON_STACK

2016-10-19 Thread Alexander Kuleshov
as no-one user of ALLOC_PT_GPREGS_ON_STACK macro doesn't pass it. Signed-off-by: Alexander Kuleshov --- arch/x86/entry/calling.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/entry/calling.h b/arch/x86/entry/calling.h index 9a9e588..b493c6a 100644 --- a

[tip:irq/core] genirq: No need to mask non trigger mode flags before __irq_set_trigger()

2016-09-06 Thread tip-bot for Alexander Kuleshov
Commit-ID: 00b992deaa08495ab958da5950c9ebbba27d0ddc Gitweb: http://git.kernel.org/tip/00b992deaa08495ab958da5950c9ebbba27d0ddc Author: Alexander Kuleshov AuthorDate: Tue, 19 Jul 2016 15:54:08 +0600 Committer: Thomas Gleixner CommitDate: Tue, 6 Sep 2016 12:14:12 +0200 genirq: No need

[PATCH] Documentation/x86_64: Fix a thread stack size

2016-08-15 Thread Alexander Kuleshov
current information about THREAD_SIZE value is obsoleted. This patch fixes this. Signed-off-by: Alexander Kuleshov --- Documentation/x86/kernel-stacks | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/x86/kernel-stacks b/Documentation/x86/kernel-stacks index

[PATCH] ACPICA: Remove unnecessary '\n' in the end of ACPI_INFO output

2016-08-06 Thread Alexander Kuleshov
as the ACPI_INFO already prints `\n` in the end itself. Signed-off-by: Alexander Kuleshov --- drivers/acpi/acpica/tbxfload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/acpica/tbxfload.c b/drivers/acpi/acpica/tbxfload.c index ac71abc..e7119b7 100644 --- a

[PATCH] mm/memblock: fix a typo in a comment

2016-08-04 Thread Alexander Kuleshov
s/accomodate/accommodate Signed-off-by: Alexander Kuleshov --- mm/memblock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/memblock.c b/mm/memblock.c index ff5ff3b..1f065da 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -482,7 +482,7 @@ static void

[PATCH] genirq: no need to mask non trigger mode flags before __irq_set_trigger()

2016-07-19 Thread Alexander Kuleshov
Some callers of __irq_set_trigger() masks all flags besides trigger mode flags. Actually it is unnecessary operation now, because the __irq_set_trigger() already does this before usage of flags. Signed-off-by: Alexander Kuleshov --- kernel/irq/chip.c | 1 - kernel/irq/manage.c | 5 ++--- 2

[PATCH] mm/memblock: move memblock_{add,reserve}_region into memblock_{add,reserve}

2016-04-17 Thread Alexander Kuleshov
used by anybody outside of memblock.c and the memblock_{add,reserve}() have the same set of flags and nids. Since the memblock_add_region() and memblock_reserve_region() anyway will be inlined, there will not be functional changes, but will improve code readability a little. Signed-off-by: Alexander

[PATCH] clocksource: use clocksource_freq2mult() helper

2016-03-16 Thread Alexander Kuleshov
which is introduced in the 7aca0c072 commit to simplify calculation of the mult and shift in the clocks_calc_mult_shift(). Signed-off-by: Alexander Kuleshov --- kernel/time/clocksource.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/time/clocksource.c b/kernel

[tip:x86/boot] x86/setup: Calculate ramdisk parameters only once

2016-02-29 Thread tip-bot for Alexander Kuleshov
Commit-ID: 6fc77525f509e16b1e909e5ffd6f9ad9dccc0f82 Gitweb: http://git.kernel.org/tip/6fc77525f509e16b1e909e5ffd6f9ad9dccc0f82 Author: Alexander Kuleshov AuthorDate: Fri, 26 Feb 2016 15:04:36 +0600 Committer: Ingo Molnar CommitDate: Sat, 27 Feb 2016 12:52:27 +0100 x86/setup: Calculate

[tip:timers/core] jiffies: Use CLOCKSOURCE_MASK instead of constant

2016-02-27 Thread tip-bot for Alexander Kuleshov
Commit-ID: 232d26373d310a941ef2ab46e53ea62fe076ed13 Gitweb: http://git.kernel.org/tip/232d26373d310a941ef2ab46e53ea62fe076ed13 Author: Alexander Kuleshov AuthorDate: Fri, 26 Feb 2016 19:14:14 -0800 Committer: Thomas Gleixner CommitDate: Sat, 27 Feb 2016 08:55:31 +0100 jiffies: Use

[tip:timers/core] clocksource: Introduce clocksource_freq2mult()

2016-02-27 Thread tip-bot for Alexander Kuleshov
Commit-ID: 7aca0c07207385cca76025cc85231519935722b9 Gitweb: http://git.kernel.org/tip/7aca0c07207385cca76025cc85231519935722b9 Author: Alexander Kuleshov AuthorDate: Fri, 26 Feb 2016 19:14:13 -0800 Committer: Thomas Gleixner CommitDate: Sat, 27 Feb 2016 08:55:30 +0100 clocksource

[PATCH] x86/bitops.h: use IS_IMMEDIATE instead of dirrect call of __builtin_constant_p

2016-02-26 Thread Alexander Kuleshov
The arch/x86/include/asm/bitops.h provides IS_IMMEDIATE macro which expands to the call of the __builtin_constant_p(). Let's use this macro in the test_bit() to be more clear. Signed-off-by: Alexander Kuleshov --- arch/x86/include/asm/bitops.h | 2 +- 1 file changed, 1 insertion(+), 1 del

[PATCH v8] x86/setup: get ramdisk parameters only once

2016-02-26 Thread Alexander Kuleshov
relocate_initrd() functions. This allows us to not get/check ramdisk parameters from the bootparams every time in the early_reserve_initrd(), reserve_initrd() and relocate_initrd() function. Signed-off-by: Alexander Kuleshov --- Tested as with virtual machine as with real hardware. Changelog: v8

[PATCH v7] x86/setup: get ramdisk parameters only once

2016-02-25 Thread Alexander Kuleshov
relocate_initrd() functions. This allows us to not get/check ramdisk parameters from the bootparams every time in the early_reserve_initrd(), reserve_initrd() and relocate_initrd() function. Signed-off-by: Alexander Kuleshov --- Tested as with virtual machine as with real hardware. Changelog: v7

[PATCH v2] x86/head64: no need to define early_idt_ripmsg only if CONFIG_KALLSYMS=n

2016-02-18 Thread Alexander Kuleshov
We have definition of the early_idt_ripmsg which represents string header for the output of the kernel symbols during early exception. But the header with kernel symbols will be printed in a case if the CONFIG_KALLSYMS=y. Signed-off-by: Alexander Kuleshov --- Changelog: v2: commit message fixed

[PATCH v6] x86/setup: get ramdisk parameters only once

2016-02-17 Thread Alexander Kuleshov
relocate_initrd() functions. This allows us to not get/check ramdisk parameters from the bootparams every time in the early_reserve_initrd(), reserve_initrd() and relocate_initrd() function. Signed-off-by: Alexander Kuleshov --- Tested as with virtual machine as with real hardware. Changelog: v6

[PATCH v5] x86/setup: get ramdisk parameters only once

2016-02-17 Thread Alexander Kuleshov
29979605 1c973d5 vmlinux text data bss dec hex filename 9292602 5011696 15675392 29979690 1c9742a vmlinux Signed-off-by: Alexander Kuleshov --- Tested as with virtual machine as with real hardware. Changelog: v5: * move check of the reserve_ramdisk to the reserve_initrd

[PATCH v4] x86/setup: get ramdisk parameters only once

2016-02-11 Thread Alexander Kuleshov
29979690 1c9742a vmlinux.orig text data bss dec hex filename 9292517 5011696 15675392 29979605 1c973d5 vmlinux Signed-off-by: Alexander Kuleshov --- Tested as with virtual machine as with real hardware. Changelog: v4: * bool reserve_ramdisk moved to the struct

[tip:x86/boot] x86/boot: Use proper array element type in memset( ) size calculation

2016-02-09 Thread tip-bot for Alexander Kuleshov
Commit-ID: a91bbe017552b80e12d712c85549b933a62c6ed4 Gitweb: http://git.kernel.org/tip/a91bbe017552b80e12d712c85549b933a62c6ed4 Author: Alexander Kuleshov AuthorDate: Tue, 9 Feb 2016 19:44:54 +0600 Committer: Ingo Molnar CommitDate: Tue, 9 Feb 2016 14:55:48 +0100 x86/boot: Use proper

[PATCH] x86/head64: use pointer type in sizeof

2016-02-09 Thread Alexander Kuleshov
We changed loops with memset in the 5e9ebbd87a99 commit (x86/boot: Micro-optimize reset_early_page_tables()). The base for size of memset was size of pud_p/pmd_p, but the they are actually represented as pointers, although they have the same sizes. Signed-off-by: Alexander Kuleshov --- based on

[PATCH v2] x86/head64: micro optimization: use memset instead of for loop

2016-02-09 Thread Alexander Kuleshov
1cc8500 vmlinux.old 9735119 4970776 15474688301805831cc84e7 vmlinux Signed-off-by: Alexander Kuleshov --- Changelog: v2: We got sizeof pud_p/pmd_p in the v1, but actually we need to take sizeof of pud_p/pmd_p pointer, although their sizes are the same. arch/x86/kernel/head64.c

[PATCH v3] x86/setup: get ramdisk parameters only once

2016-02-09 Thread Alexander Kuleshov
bss dechex filename 9281559 5010736 15474688297669831c63547 vmlinux Signed-off-by: Alexander Kuleshov --- Tested as with virtual machine as with real hardware. Changelog: v3: introduced ramdisk setup which is filled in th setup_arch() and passed

Re: [PATCH v2] x86/setup: Merge {early_,}reserve_initrd() to one function

2016-02-09 Thread Alexander Kuleshov
Hello Ingo, On Tue, Feb 9, 2016 at 3:16 PM, Ingo Molnar wrote: > > So I don't think the code got easier to understand - in particular the > memblock_reserve()/free() pattern, depending on a flag value, is confusing. > > The duplication is there - but please factor it out into a helper structure >

[PATCH v2] x86/setup: Merge {early_,}reserve_initrd() to one function

2016-02-08 Thread Alexander Kuleshov
data bss dec hex filename 9281618 5010736 15474688 29767042 1c63582 vmlinux.orig textdata bss dec hex filename 9281222 5010672 15474688 29766582 1c633b6 vmlinux.new Signed-off-by: Alexander Kuleshov --- Changelog: v2: parameter of

Re: [PATCH] x86/setup: refactor initrd reservation

2016-02-08 Thread Alexander Kuleshov
On Mon, Feb 8, 2016 at 9:56 PM, Andy Shevchenko wrote: > On Fri, Feb 5, 2016 at 7:38 PM, Alexander Kuleshov > wrote: >> The check and definitions related to ramdisk are similar in the >> early_reserve_initrd() and reserve_initrd(). So we can get rid of >> early_reserve_i

[PATCH v2] jiffies: use CLOCKSOURCE_MASK instead of constant

2016-02-06 Thread Alexander Kuleshov
The CLOCKSOURCE_MASK(32) macro expands to the same value, but makes code more readable. Signed-off-by: Alexander Kuleshov --- v2: typo fixed in commit message kernel/time/jiffies.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/jiffies.c b/kernel/time

[PATCH] jiffies: use CLOSKOURCE_MASK instead of constant

2016-02-05 Thread Alexander Kuleshov
The CLOCKSOURCE_MASK(32) macro expands to the same value, but makes code more readable. Signed-off-by: Alexander Kuleshov --- kernel/time/jiffies.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/jiffies.c b/kernel/time/jiffies.c index 347fecf..555e21f 100644

[PATCH] clocksource: introduce clocksource_freq2mult()

2016-02-05 Thread Alexander Kuleshov
code duplication. Signed-off-by: Alexander Kuleshov --- include/linux/clocksource.h | 45 +++-- 1 file changed, 19 insertions(+), 26 deletions(-) diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h index 6013021..a307bf6 100644 --- a

[PATCH] x86/setup: refactor initrd reservation

2016-02-05 Thread Alexander Kuleshov
The check and definitions related to ramdisk are similar in the early_reserve_initrd() and reserve_initrd(). So we can get rid of early_reserve_initrd() and and use late or early algorithm for initrd reservation depends on reserve_initrd() parameter value. Signed-off-by: Alexander Kuleshov

[PATCH] mm/memblock: remove unnecessary memblock_type variable

2016-02-04 Thread Alexander Kuleshov
We define struct memblock_type *type in the memblock_add_region() and memblock_reserve_region() functions only for passing it to the memlock_add_range() and memblock_reserve_range() functions. Let's remove these variables and will pass a type directly. Signed-off-by: Alexander Kuleshov --

[PATCH] init: print warning message if /dev/console failed to open

2016-02-03 Thread Alexander Kuleshov
Signed-off-by: Alexander Kuleshov --- init/do_mounts.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init/do_mounts.c b/init/do_mounts.c index dea5de9..ca5da05 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -505,7 +505,9 @@ void __init change_floppy(char *fmt

[tip:x86/asm] x86/entry/traps: Refactor preemption and interrupt flag handling

2016-02-01 Thread tip-bot for Alexander Kuleshov
Commit-ID: d99e1bd175f4291ddb6e62b22bb5bdbe3976389a Gitweb: http://git.kernel.org/tip/d99e1bd175f4291ddb6e62b22bb5bdbe3976389a Author: Alexander Kuleshov AuthorDate: Mon, 25 Jan 2016 20:41:46 +0100 Committer: Ingo Molnar CommitDate: Mon, 1 Feb 2016 10:45:14 +0100 x86/entry/traps

[PATCH] x86_64/setup: handle builtin command line early

2016-02-01 Thread Alexander Kuleshov
checks 'dis_ucode_ldr' option which may be passed through builtin command line. Signed-off-by: Alexander Kuleshov --- arch/x86/include/asm/setup.h | 2 +- arch/x86/kernel/head64.c | 5 + arch/x86/kernel/setup.c | 31 +++ 3 files changed, 25

[PATCH] x86/head64: define early_idt_ripmsg only if CONFIG_KALLSYMS is enabled

2016-01-30 Thread Alexander Kuleshov
We have definition of the early_idt_ripmsg which represents string header for the output of the kernel symbols during early exception. But it will be used only if CONFIG_KALLSYMS is enabled. Signed-off-by: Alexander Kuleshov --- arch/x86/kernel/head_64.S | 2 ++ 1 file changed, 2 insertions

[tip:x86/boot] x86/boot: Simplify kernel load address alignment check

2016-01-30 Thread tip-bot for Alexander Kuleshov
Commit-ID: a4733143085d6c782ac1e6c85778655b6bac1d4e Gitweb: http://git.kernel.org/tip/a4733143085d6c782ac1e6c85778655b6bac1d4e Author: Alexander Kuleshov AuthorDate: Tue, 26 Jan 2016 22:12:10 +0100 Committer: Ingo Molnar CommitDate: Sat, 30 Jan 2016 11:22:48 +0100 x86/boot: Simplify

[tip:x86/boot] x86/boot: Micro-optimize reset_early_page_tables()

2016-01-30 Thread tip-bot for Alexander Kuleshov
Commit-ID: 5e9ebbd87a99ecc6abb74325b0ac63c46891f6f3 Gitweb: http://git.kernel.org/tip/5e9ebbd87a99ecc6abb74325b0ac63c46891f6f3 Author: Alexander Kuleshov AuthorDate: Sat, 30 Jan 2016 14:01:12 +0600 Committer: Ingo Molnar CommitDate: Sat, 30 Jan 2016 09:20:55 +0100 x86/boot: Micro

[PATCH] x86/head64: micro optimization: use memset instead of for loop

2016-01-30 Thread Alexander Kuleshov
1cc8500 vmlinux.old 9735119 4970776 15474688301805831cc84e7 vmlinux Signed-off-by: Alexander Kuleshov --- arch/x86/kernel/head64.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c index

[tip:timers/core] clockevents: Rename last parameter of clocks_calc_mult_shift() to maxsec

2016-01-27 Thread tip-bot for Alexander Kuleshov
Commit-ID: dd42ac8f02aea32661756554aace2095f7181d34 Gitweb: http://git.kernel.org/tip/dd42ac8f02aea32661756554aace2095f7181d34 Author: Alexander Kuleshov AuthorDate: Fri, 16 Oct 2015 15:20:53 +0600 Committer: Thomas Gleixner CommitDate: Wed, 27 Jan 2016 12:38:03 +0100 clockevents

[tip:x86/asm] x86/asm: Remove unused L3_PAGE_OFFSET

2016-01-27 Thread tip-bot for Alexander Kuleshov
Commit-ID: 14365449b6ce34cf6a3040ff8ebbb39d89d67159 Gitweb: http://git.kernel.org/tip/14365449b6ce34cf6a3040ff8ebbb39d89d67159 Author: Alexander Kuleshov AuthorDate: Tue, 26 Jan 2016 18:21:21 +0600 Committer: Thomas Gleixner CommitDate: Wed, 27 Jan 2016 11:37:49 +0100 x86/asm: Remove

[PATCH] x86/head_64.S: remove unused L3_PAGE_OFFSET

2016-01-26 Thread Alexander Kuleshov
The kernel/head_64.S has L3_PAGE_OFFSET definition which is not used anywhere. It was introduced in the a6523748bd commit (paravirt/x86, 64-bit: move __PAGE_OFFSET to leave a space for hypervisor by Eduardo Habkost ), but still not used anywhere. Signed-off-by: Alexander Kuleshov --- arch/x86

[PATCH] x86/head_64.S: do not use temporary register to check alignment

2016-01-22 Thread Alexander Kuleshov
We are using temporary %rax register during checking of kernel address alignment. We can ged rid of it since testl instruction is safe and does not change value of the rbp register. Signed-off-by: Alexander Kuleshov Suggested-by: Brian Gerst --- arch/x86/kernel/head_64.S | 4 +--- 1 file

Re: [RFC PATCH] x86/head_64.S: remove redundant check that kernel address is 2M aligned

2016-01-22 Thread Alexander Kuleshov
Hello Brian, On 01-22-16, Brian Gerst wrote: > > > > - /* Is the address not 2M aligned? */ > > - movq%rbp, %rax > > - andl$~PMD_PAGE_MASK, %eax > > - testl %eax, %eax > > - jnz bad_address > > - > > /* > > * Is the address too large? >

[RFC PATCH] x86/head_64.S: remove redundant check that kernel address is 2M aligned

2016-01-22 Thread Alexander Kuleshov
-by: Alexander Kuleshov --- arch/x86/kernel/head_64.S | 6 -- 1 file changed, 6 deletions(-) diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S index ffdc0e8..4967cba 100644 --- a/arch/x86/kernel/head_64.S +++ b/arch/x86/kernel/head_64.S @@ -75,12 +75,6 @@ startup_64

[PATCH] x86/aslr: use get_cmd_line_ptr() to get command line address

2016-01-21 Thread Alexander Kuleshov
code duplication. Signed-off-by: Alexander Kuleshov --- arch/x86/boot/compressed/aslr.c| 3 +-- arch/x86/boot/compressed/cmdline.c | 2 +- arch/x86/boot/compressed/misc.h| 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/boot/compressed/aslr.c b/arch/x86/boot/compr

[PATCH] mm/memblock: use memblock_insert_region() for the empty array

2015-12-04 Thread Alexander Kuleshov
We have the special case for an empty array in the memblock_add_range() function. In the same time we have almost the same functional in the memblock_insert_region() function. Let's use the memblock_insert_region() instead of direct initialization. Signed-off-by: Alexander Kuleshov --

[PATCH] mm/memblock: remove rgnbase and rgnsize variables

2015-12-04 Thread Alexander Kuleshov
This patch removes rgnbase and rgnsize variables from the memblock_overlaps_region() function. We use these variables only for passing to the memblock_addrs_overlap() function and that's all. Let's remove them. Signed-off-by: Alexander Kuleshov --- mm/memblock.c | 9 +++-- 1 file

[PATCH] mm/memblock: introduce for_each_memblock_type()

2015-12-04 Thread Alexander Kuleshov
- for_each_memblock_type() which allows us iterate over memblock regions with the given type when the type is unknown. Signed-off-by: Alexander Kuleshov --- include/linux/memblock.h | 5 + mm/memblock.c| 32 2 files changed, 21 insertions(+), 16

[PATCH] xfs/xfs_buf: make xfs_buf_ioend_async() static

2015-11-27 Thread Alexander Kuleshov
There are no callers of the xfs_buf_ioend_async() function outside of the fs/xfs/xfs_buf.c. So, let's make it static. Signed-off-by: Alexander Kuleshov --- fs/xfs/xfs_buf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index 32

[PATCH] mn10300: use asb2346_fpga_{mask,irq}() instead of direct calculation

2015-11-27 Thread Alexander Kuleshov
Signed-off-by: Alexander Kuleshov --- arch/mn10300/unit-asb2364/irq-fpga.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/mn10300/unit-asb2364/irq-fpga.c b/arch/mn10300/unit-asb2364/irq-fpga.c index 073e2cc..9772598 100644 --- a/arch/mn10300/unit-asb2364/irq

Re: [PATCH] staging/dgap: move duplicated code from the dgap_cm.* functions

2015-11-26 Thread Alexander Kuleshov
On Thu, Nov 26, 2015 at 12:26 PM, Sudip Mukherjee wrote: > Signed-off-by ? Hello Sudip, I've put it in the v2 (https://lkml.org/lkml/2015/11/25/650) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo inf

[PATCH v2] drivers/tty/serial: make tegra_serial_handle_break() static

2015-11-25 Thread Alexander Kuleshov
There are no callers of the tegra_serial_handle_break() function outside of drivers/tty/serial/of_serial.c. So let's make it static. Signed-off-by: Alexander Kuleshov --- Forgot Signed-off-by line drivers/tty/serial/of_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] crypto/cryptod: use crypto_skcipher_type() for getting skcipher type

2015-11-25 Thread Alexander Kuleshov
The provides inline function - crypto_skcipher_type(). Let's use it in the cryptd_alloc_ablkcipher() instead of direct calculation. Signed-off-by: Alexander Kuleshov --- crypto/cryptd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crypto/cryptd.c b/crypto/cry

[PATCH v2] staging/dgap: move duplicated code from the dgap_cm.* functions

2015-11-25 Thread Alexander Kuleshov
these functions to prevent code duplication. Signed-off-by: Alexander Kuleshov --- Forgot Signed-off-by line drivers/staging/dgap/dgap.c | 103 1 file changed, 37 insertions(+), 66 deletions(-) diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging

[PATCH] staging/dgap: move duplicated code from the dgap_cm.* functions

2015-11-25 Thread Alexander Kuleshov
The dgap driver contains three functions: dgap_cmdb(), dgap_cmdw() and dgap_cmdw_exit which are contain duplicated code which waits if necessary before updating the pointer to limit outstanding commands. This patch introduces the wait_for_fep_cmds_limit() function which is will be called from these

[PATCH] drivers/tty/serial: make tegra_serial_handle_break() static

2015-11-25 Thread Alexander Kuleshov
There are no callers of the tegra_serial_handle_break() function outside of drivers/tty/serial/of_serial.c. So let's make it static. --- drivers/tty/serial/of_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/of_serial.c b/drivers/tty/serial/of_serial.

[PATCH] arm64/mm: use PAGE_ALIGNED instead of IS_ALIGNED

2015-10-26 Thread Alexander Kuleshov
The already provides the PAGE_ALIGNED macro. Let's use this macro instead of IS_ALIGNED and passing PAGE_SIZE directly. Signed-off-by: Alexander Kuleshov --- arch/arm64/mm/pageattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/mm/pageattr.c b/arch/arm

[PATCH] mm/hugetlb: make node_hstates array static

2015-10-17 Thread Alexander Kuleshov
There are no users of the node_hstates array outside of the mm/hugetlb.c. So let's make it static. Signed-off-by: Alexander Kuleshov --- mm/hugetlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 9cc7734..3afd92f 100644 --- a/mm/huge

[PATCH] clockchips.h: rename last parameter of clocks_calc_mult_shift() to maxsec

2015-10-16 Thread Alexander Kuleshov
Last parameter of the clocks_calc_mult_shift() was renamed from minsec to maxsec in the 5fdade95 (time: Rename misnamed minsec argument of clocks_calc_mult_shift()). Signed-off-by: Alexander Kuleshov --- include/linux/clockchips.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH] powerpc/mm: use memblock_is_memory

2015-10-09 Thread Alexander Kuleshov
The provides memblock_is_memory() function that tries to find a given physical address in the memblock.memory.regions. Let's use this function instead of direct coding of the same functionality. Signed-off-by: Alexander Kuleshov --- arch/powerpc/mm/mem.c | 6 ++ 1 file chang

[PATCH] x86/pci/legacy: make pci_subsys_init static

2015-10-08 Thread Alexander Kuleshov
The pci_subsys_init() is a subsys_initcall that can be declared static. Signed-off-by: Alexander Kuleshov --- arch/x86/pci/legacy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/pci/legacy.c b/arch/x86/pci/legacy.c index 5b662c0..ea6f380 100644 --- a/arch/x86/pci

[PATCH v2] crypto/jitterentropy-kcapi: remove unnecessary information from a comment

2015-10-08 Thread Alexander Kuleshov
The clocksource does not provide clocksource_register() function since f893598 commit (clocksource: Mostly kill clocksource_register()), so let's remove unnecessary information about this function from a comment. Signed-off-by: Alexander Kuleshov Suggested-by: Herbert Xu --- c

[PATCH] crypto/jitterentropy-kcapi: fix a comment reflecting function name changed

2015-10-07 Thread Alexander Kuleshov
The clocksource does not provide clocksource_register() function since f893598 commit (clocksource: Mostly kill clocksource_register()), but __clocksource_register() instead. Signed-off-by: Alexander Kuleshov --- crypto/jitterentropy-kcapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH] m68k/sun3: Fix virtual addresses of clock and interrupt register

2015-09-25 Thread Alexander Kuleshov
Hello Geert On Fri, Sep 25, 2015 at 1:21 PM, Geert Uytterhoeven wrote: > Have you tested this? > > This means enabling/disabling interrupts never worked on Sun 3, which > I find a bit difficult to believe. > There are other 0x0f?? addresses in arch/m68k/sun3/mmu_emu.c. > Nope, just trying to

Re: [char-misc 1/2] mei: Fix debugfs filename in error output

2015-09-21 Thread Alexander Kuleshov
Hello Greg, On Mon, Sep 21, 2015 at 8:25 AM, Greg Kroah-Hartman wrote: > On Mon, Aug 24, 2015 at 03:27:36PM +0300, Tomas Winkler wrote: >> From: "Signed-off-by: Alexander Kuleshov" > > I kind of doubt that's the real author name :( > Why? I've definite

[PATCH 2/2] s390/crash_dump: Use PFN_PHYS and PFN_DOWN macros

2015-09-15 Thread Alexander Kuleshov
The provides PFN_PHYS and PFN_DOWN macros for the getting page frame number and physical address of a page frame number. This patch replaces (pfn << PAGE_SHIFT) and (addr >> PAGE_SHIFT) expressions with the PFN_PHYS and PFN_DOWN macros. Signed-off-by: Alexander Kuleshov --- arch

[PATCH 1/2] s390/crash_dump: Use for_each_mem_range

2015-09-15 Thread Alexander Kuleshov
The already provides for_each_mem_range() macro that iterates through memblock areas from type_a and not included in type_b. We can remove custom for_each_dump_mem_range() macro and use the for_each_mem_range() instead. Signed-off-by: Alexander Kuleshov --- arch/s390/kernel/crash_dump.c | 16

[PATCH] mm/memblock: Make memblock_remove_range() static

2015-09-15 Thread Alexander Kuleshov
The memblock_remove_range() function is only used in the mm/memblock.c, so we can do it static. Signed-off-by: Alexander Kuleshov --- include/linux/memblock.h | 4 mm/memblock.c| 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/include/linux/memblock.h b

[PATCH 03/10] mm/mincore: Use offset_in_page macro

2015-09-15 Thread Alexander Kuleshov
The provides offset_in_page() macro. Let's use already predefined macro instead of (addr & ~PAGE_MASK). Signed-off-by: Alexander Kuleshov --- mm/mincore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/mincore.c b/mm/mincore.c index be25efd..a011355 100644

[PATCH 00/10] Use offset_in_page() macro

2015-09-15 Thread Alexander Kuleshov
This patchset does not provide functional changes, but just replaces (addr & ~PAGE_MASK) expression with already defined offset_in_page() macro from the . Alexander Kuleshov (10): mm/msync: Use offset_in_page macro mm/nommu: Use offset_in_page macro mm/mincore: Use offset_in_page macro

[PATCH 09/10] mm/mmap: Use offset_in_page macro

2015-09-15 Thread Alexander Kuleshov
The provides offset_in_page() macro. Let's use already predefined macro instead of (addr & ~PAGE_MASK). Signed-off-by: Alexander Kuleshov --- mm/mmap.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c index 971dd2c..a313a9c 100644

[PATCH 05/10] mm/percpu: Use offset_in_page macro

2015-09-15 Thread Alexander Kuleshov
The provides offset_in_page() macro. Let's use already predefined macro instead of (addr & ~PAGE_MASK). Signed-off-by: Alexander Kuleshov --- mm/percpu.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mm/percpu.c b/mm/percpu.c index a63b4d8..8a943b9 100

[PATCH 02/10] mm/nommu: Use offset_in_page macro

2015-09-15 Thread Alexander Kuleshov
The provides offset_in_page() macro. Let's use already predefined macro instead of (addr & ~PAGE_MASK). Signed-off-by: Alexander Kuleshov --- mm/nommu.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mm/nommu.c b/mm/nommu.c index ab14a20..1e0f168 100644

[PATCH 06/10] mm/util: Use offset_in_page macro

2015-09-15 Thread Alexander Kuleshov
The provides offset_in_page() macro. Let's use already predefined macro instead of (addr & ~PAGE_MASK). Signed-off-by: Alexander Kuleshov --- mm/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/util.c b/mm/util.c index 68ff8a5..9af1c12 100644 --- a/mm/uti

[PATCH 10/10] mm/mremap: Use offset_in_page macro

2015-09-15 Thread Alexander Kuleshov
The provides offset_in_page() macro. Let's use already predefined macro instead of (addr & ~PAGE_MASK). Signed-off-by: Alexander Kuleshov --- mm/mremap.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mm/mremap.c b/mm/mremap.c index 5a71cce..3fea8

[PATCH 08/10] mm/vmalloc: Use offset_in_page macro

2015-09-15 Thread Alexander Kuleshov
The provides offset_in_page() macro. Let's use already predefined macro instead of (addr & ~PAGE_MASK). Signed-off-by: Alexander Kuleshov --- mm/vmalloc.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 2faaa29..b51b7

[PATCH 01/10] mm/msync: Use offset_in_page macro

2015-09-15 Thread Alexander Kuleshov
The provides offset_in_page() macro. Let's use already predefined macro instead of (addr & ~PAGE_MASK). Signed-off-by: Alexander Kuleshov --- mm/msync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/msync.c b/mm/msync.c index bb04d53..24e612f 100644 --- a/m

[PATCH 07/10] mm/mlock: Use offset_in_page macro

2015-09-15 Thread Alexander Kuleshov
The provides offset_in_page() macro. Let's use already predefined macro instead of (addr & ~PAGE_MASK). Signed-off-by: Alexander Kuleshov --- mm/mlock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/mlock.c b/mm/mlock.c index 25936680..e86206b 100644

[PATCH 04/10] mm/early_ioremap: Use offset_in_page macro

2015-09-15 Thread Alexander Kuleshov
The provides offset_in_page() macro. Let's use already predefined macro instead of (addr & ~PAGE_MASK). Signed-off-by: Alexander Kuleshov --- mm/early_ioremap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/early_ioremap.c b/mm/early_ioremap.c inde

[PATCH] m68k/sun3: Fix virtual addresses of clock and interrupt register

2015-09-14 Thread Alexander Kuleshov
The MMU base is 32 bits size - 0xfe00, seems that we missed one zero in the definition of the clock and interrupt register addresses. Signed-off-by: Alexander Kuleshov --- arch/m68k/sun3/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/m68k/sun3/config.c

[PATCH] lib/halfmd4: Use rol32 inline function in the ROUND macro

2015-09-13 Thread Alexander Kuleshov
The provides rol32() inline function, let's use already predefined function instead of direct expression. Signed-off-by: Alexander Kuleshov --- lib/halfmd4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/halfmd4.c b/lib/halfmd4.c index a8fe627..137e861 100644

[PATCH] staging/dgap: Use strpbrk() instead of dgap_sindex()

2015-09-11 Thread Alexander Kuleshov
The provides strpbrk() function that does the same that the dgap_sindex(). Let's use already defined function instead of writing custom. Signed-off-by: Alexander Kuleshov --- drivers/staging/dgap/dgap.c | 24 +--- 1 file changed, 1 insertion(+), 23 deletions(-) diff

[PATCH] kvm: compile process_smi_save_seg_64() only for x86_64

2015-09-06 Thread Alexander Kuleshov
not used [-Wunused-function] static void process_smi_save_seg_64(struct kvm_vcpu *vcpu, char *buf, int n) ^ Signed-off-by: Alexander Kuleshov --- arch/x86/kvm/x86.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 1e7e76e..a60bdbc

[PATCH] x86/head_32.S: Remove unused macros

2015-09-06 Thread Alexander Kuleshov
This patch removes two unused macros: X86_VENDOR and X86_HARD_MATH from the arch/x86/kernel/head_32.S. Also as CPUINFO_x86_vendor not used anywhere, we can safely remove it from asm-offsets_32.c Signed-off-by: Alexander Kuleshov --- arch/x86/kernel/asm-offsets_32.c | 1 - arch/x86/kernel

  1   2   3   4   >