Re: [PATCH] mm:slab: Adjust the print format for the slabinfo

2018-10-01 Thread Michal Hocko
On Mon 01-10-18 19:59:39, jun qian wrote: > Header and the corresponding information is not aligned, > adjust the printing format helps us to understand the slabinfo better. What prevents you from formating the output when printint the file? In other words why do we want to do special formating

Re: [PATCH] mm:slab: Adjust the print format for the slabinfo

2018-10-01 Thread Michal Hocko
On Mon 01-10-18 19:59:39, jun qian wrote: > Header and the corresponding information is not aligned, > adjust the printing format helps us to understand the slabinfo better. What prevents you from formating the output when printint the file? In other words why do we want to do special formating

Re: [PATCH v5 4/4] printk: Give error on attempt to set log buffer length to over 4G

2018-10-01 Thread Sergey Senozhatsky
On (09/30/18 00:45), zhe...@windriver.com wrote: > From: He Zhe > > Give explicit error for users who want to use larger log buffer. > > Signed-off-by: He Zhe > Cc: pmla...@suse.com > Cc: sergey.senozhat...@gmail.com > Cc: rost...@goodmis.org Suggested-by: Sergey Senozhatsky So people will

Re: [PATCH v5 3/4] printk: Add KBUILD_MODNAME and remove a redundant print prefix

2018-10-01 Thread Sergey Senozhatsky
On (09/30/18 00:45), zhe...@windriver.com wrote: > From: He Zhe > > Add KBUILD_MODNAME to make prints more clear. > > Signed-off-by: He Zhe > Cc: pmla...@suse.com > Cc: sergey.senozhat...@gmail.com > Cc: rost...@goodmis.org Reviewed-by: Sergey Senozhatsky -ss

Re: [PATCH v5 4/4] printk: Give error on attempt to set log buffer length to over 4G

2018-10-01 Thread Sergey Senozhatsky
On (09/30/18 00:45), zhe...@windriver.com wrote: > From: He Zhe > > Give explicit error for users who want to use larger log buffer. > > Signed-off-by: He Zhe > Cc: pmla...@suse.com > Cc: sergey.senozhat...@gmail.com > Cc: rost...@goodmis.org Suggested-by: Sergey Senozhatsky So people will

Re: [PATCH v5 3/4] printk: Add KBUILD_MODNAME and remove a redundant print prefix

2018-10-01 Thread Sergey Senozhatsky
On (09/30/18 00:45), zhe...@windriver.com wrote: > From: He Zhe > > Add KBUILD_MODNAME to make prints more clear. > > Signed-off-by: He Zhe > Cc: pmla...@suse.com > Cc: sergey.senozhat...@gmail.com > Cc: rost...@goodmis.org Reviewed-by: Sergey Senozhatsky -ss

Re: [PATCH v5 2/4] printk: Correct wrong casting

2018-10-01 Thread Sergey Senozhatsky
On (09/30/18 00:45), zhe...@windriver.com wrote: > Correct wrong casting that might cut off the normal output. A commit message probably could have been a bit more descriptive, mentioning that log_first_seq and console_seq are 64-bit unsigned integers, this is a Cc material potentially. >

Re: [PATCH v5 2/4] printk: Correct wrong casting

2018-10-01 Thread Sergey Senozhatsky
On (09/30/18 00:45), zhe...@windriver.com wrote: > Correct wrong casting that might cut off the normal output. A commit message probably could have been a bit more descriptive, mentioning that log_first_seq and console_seq are 64-bit unsigned integers, this is a Cc material potentially. >

Re: [PATCH] s390: vmlinux.lds: move JUMP_TABLE_DATA into output section

2018-10-01 Thread Ard Biesheuvel
On 1 October 2018 at 22:25, Heiko Carstens wrote: > On Sun, Sep 30, 2018 at 06:49:50PM +0200, Ard Biesheuvel wrote: >> Commit e872267b8bcbb179 ("jump_table: move entries into ro_after_init >> region") moved the __jump_table input section into the __ro_after_init >> output section, but

Re: [PATCH] s390: vmlinux.lds: move JUMP_TABLE_DATA into output section

2018-10-01 Thread Ard Biesheuvel
On 1 October 2018 at 22:25, Heiko Carstens wrote: > On Sun, Sep 30, 2018 at 06:49:50PM +0200, Ard Biesheuvel wrote: >> Commit e872267b8bcbb179 ("jump_table: move entries into ro_after_init >> region") moved the __jump_table input section into the __ro_after_init >> output section, but

Re: [PATCH v5 1/4] printk: Fix panic caused by passing log_buf_len to command line

2018-10-01 Thread Sergey Senozhatsky
On (09/30/18 00:45), zhe...@windriver.com wrote: > > This patch adds a check to prevent the panic. > > Signed-off-by: He Zhe > Cc: sta...@vger.kernel.org > Cc: pmla...@suse.com > Cc: sergey.senozhat...@gmail.com > Cc: rost...@goodmis.org Reviewed-by: Sergey Senozhatsky -ss

Re: [PATCH v5 1/4] printk: Fix panic caused by passing log_buf_len to command line

2018-10-01 Thread Sergey Senozhatsky
On (09/30/18 00:45), zhe...@windriver.com wrote: > > This patch adds a check to prevent the panic. > > Signed-off-by: He Zhe > Cc: sta...@vger.kernel.org > Cc: pmla...@suse.com > Cc: sergey.senozhat...@gmail.com > Cc: rost...@goodmis.org Reviewed-by: Sergey Senozhatsky -ss

Re: [PATCH V9 3/8] clocksource: add C-SKY SMP timer

2018-10-01 Thread Guo Ren
On Mon, Oct 01, 2018 at 11:14:14AM +0200, Daniel Lezcano wrote: > On 01/10/2018 03:35, Guo Ren wrote: > > This timer is used by SMP system and use mfcr/mtcr instruction > > to access the regs. > > > > Changelog: > > - Remove #define CPUHP_AP_CSKY_TIMER_STARTING > > - Add

Re: [PATCH V9 3/8] clocksource: add C-SKY SMP timer

2018-10-01 Thread Guo Ren
On Mon, Oct 01, 2018 at 11:14:14AM +0200, Daniel Lezcano wrote: > On 01/10/2018 03:35, Guo Ren wrote: > > This timer is used by SMP system and use mfcr/mtcr instruction > > to access the regs. > > > > Changelog: > > - Remove #define CPUHP_AP_CSKY_TIMER_STARTING > > - Add

Re: [PATCH] ARM: makefile: pass -march=armv4 to assembler even on CPU32v3

2018-10-01 Thread Ard Biesheuvel
On 2 October 2018 at 05:53, Jason A. Donenfeld wrote: > Hi Arnd, > > Apologies for the delay in getting back to you. I had some MTA issues > and stupidly assumed ARM developers were taking the day off instead... > > On Tue, Oct 2, 2018 at 5:33 AM Arnd Bergmann wrote: >> -arch-$(CONFIG_CPU_32v3)

Re: [PATCH] ARM: makefile: pass -march=armv4 to assembler even on CPU32v3

2018-10-01 Thread Ard Biesheuvel
On 2 October 2018 at 05:53, Jason A. Donenfeld wrote: > Hi Arnd, > > Apologies for the delay in getting back to you. I had some MTA issues > and stupidly assumed ARM developers were taking the day off instead... > > On Tue, Oct 2, 2018 at 5:33 AM Arnd Bergmann wrote: >> -arch-$(CONFIG_CPU_32v3)

[PATCH v2 RESEND] trace_uprobe: support reference counter in fd-based uprobe

2018-10-01 Thread Song Liu
Changes v1 -> v2: Fix PMU_FORMAT_ATTR as Peter suggested This patch enables uprobes with reference counter in fd-based uprobe. Highest 32 bits of perf_event_attr.config is used to stored offset of the reference count (semaphore). Format information in /sys/bus/event_source/devices/uprobe/format/

[PATCH v2 RESEND] trace_uprobe: support reference counter in fd-based uprobe

2018-10-01 Thread Song Liu
Changes v1 -> v2: Fix PMU_FORMAT_ATTR as Peter suggested This patch enables uprobes with reference counter in fd-based uprobe. Highest 32 bits of perf_event_attr.config is used to stored offset of the reference count (semaphore). Format information in /sys/bus/event_source/devices/uprobe/format/

Re: INFO: task hung in ext4_fallocate

2018-10-01 Thread Theodore Y. Ts'o
This is fixed with the following patch. - Ted >From c4a928ee604e31354c969b461aa9a6171825096a Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Tue, 2 Oct 2018 01:34:44 -0400 Subject: [PATCH] ext4: fix argument checking in EXT4_IOC_MOVE_EXT If

Re: INFO: task hung in ext4_fallocate

2018-10-01 Thread Theodore Y. Ts'o
This is fixed with the following patch. - Ted >From c4a928ee604e31354c969b461aa9a6171825096a Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Tue, 2 Oct 2018 01:34:44 -0400 Subject: [PATCH] ext4: fix argument checking in EXT4_IOC_MOVE_EXT If

linux-next: build warning after merge of the char-misc tree

2018-10-01 Thread Stephen Rothwell
Hi all, After merging the char-misc tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/nvmem/lpc18xx_eeprom.c: In function 'lpc18xx_eeprom_remove': drivers/nvmem/lpc18xx_eeprom.c:258:6: warning: unused variable 'ret' [-Wunused-variable] int ret; ^~~

linux-next: build warning after merge of the char-misc tree

2018-10-01 Thread Stephen Rothwell
Hi all, After merging the char-misc tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/nvmem/lpc18xx_eeprom.c: In function 'lpc18xx_eeprom_remove': drivers/nvmem/lpc18xx_eeprom.c:258:6: warning: unused variable 'ret' [-Wunused-variable] int ret; ^~~

RE: [PATCH v5 12/21] tpm: move pcr extend code to tpm2-cmd.c

2018-10-01 Thread Winkler, Tomas
> > On Sat, Sep 29, 2018 at 01:30:26AM +0300, Tomas Winkler wrote: > > Add tpm2_pcr_extend() function to tpm2-cmd.c with signature required > > by tpm-interface.c. It wraps the original open code implementation. > > The original original tpm2_pcr_extend() function is renamed to > >

RE: [PATCH v5 12/21] tpm: move pcr extend code to tpm2-cmd.c

2018-10-01 Thread Winkler, Tomas
> > On Sat, Sep 29, 2018 at 01:30:26AM +0300, Tomas Winkler wrote: > > Add tpm2_pcr_extend() function to tpm2-cmd.c with signature required > > by tpm-interface.c. It wraps the original open code implementation. > > The original original tpm2_pcr_extend() function is renamed to > >

[PATCH] Revert "serial: 8250_dw: Fix runtime PM handling"

2018-10-01 Thread Guenter Roeck
This reverts commit d76c74387e1c978b6c5524a146ab0f3f72206f98. While commit d76c74387e1c ("serial: 8250_dw: Fix runtime PM handling") fixes runtime PM handling when using kgdb, it introduces a traceback for everyone else. BUG: sleeping function called from invalid context at

[PATCH] Revert "serial: 8250_dw: Fix runtime PM handling"

2018-10-01 Thread Guenter Roeck
This reverts commit d76c74387e1c978b6c5524a146ab0f3f72206f98. While commit d76c74387e1c ("serial: 8250_dw: Fix runtime PM handling") fixes runtime PM handling when using kgdb, it introduces a traceback for everyone else. BUG: sleeping function called from invalid context at

[PATCH] clocksource/drivers/fttmr010: fix invalid interrupt register access

2018-10-01 Thread Tao Ren
TIMER_INTR_MASK register (Base Address of Timer + 0x38) is not designed for masking interrupts on ast2500 chips, and it's not even listed in ast2400 datasheet, so it's not safe to access TIMER_INTR_MASK on aspeed chips. Similarly, TIMER_INTR_STATE register (Base Address of Timer + 0x34) is not

[PATCH] clocksource/drivers/fttmr010: fix invalid interrupt register access

2018-10-01 Thread Tao Ren
TIMER_INTR_MASK register (Base Address of Timer + 0x38) is not designed for masking interrupts on ast2500 chips, and it's not even listed in ast2400 datasheet, so it's not safe to access TIMER_INTR_MASK on aspeed chips. Similarly, TIMER_INTR_STATE register (Base Address of Timer + 0x34) is not

Re: [PATCH] ARM: makefile: pass -march=armv4 to assembler even on CPU32v3

2018-10-01 Thread Jason A. Donenfeld
Hi Russell, > On 1 October 2018 at 19:56, Russell King - ARM Linux > wrote: > We could argue that the ARMv3 assembly files are now stable, so the > chances of ldrh/strh being introduced is low, which would make this > change tolerable, but the commit message needs to spell out that > we lose

Re: [PATCH] ARM: makefile: pass -march=armv4 to assembler even on CPU32v3

2018-10-01 Thread Jason A. Donenfeld
Hi Russell, > On 1 October 2018 at 19:56, Russell King - ARM Linux > wrote: > We could argue that the ARMv3 assembly files are now stable, so the > chances of ldrh/strh being introduced is low, which would make this > change tolerable, but the commit message needs to spell out that > we lose

Re: [PATCH] soc: qcom: Drop help text for QCOM_QMI_HELPERS

2018-10-01 Thread Bjorn Andersson
On Mon 01 Oct 02:55 PDT 2018, Niklas Cassel wrote: > The help text is visible in menuconfig, however QCOM_QMI_HELPERS is a > hidden kconfig, so it is not selectable in menuconfig. > > Remove the help text so that it is more clear that this is intentionally > a hidden kconfig. > > Signed-off-by:

Re: [PATCH] soc: qcom: Drop help text for QCOM_QMI_HELPERS

2018-10-01 Thread Bjorn Andersson
On Mon 01 Oct 02:55 PDT 2018, Niklas Cassel wrote: > The help text is visible in menuconfig, however QCOM_QMI_HELPERS is a > hidden kconfig, so it is not selectable in menuconfig. > > Remove the help text so that it is more clear that this is intentionally > a hidden kconfig. > > Signed-off-by:

Re: [PATCH] slimbus: ngd: QCOM_QMI_HELPERS has to be selected

2018-10-01 Thread Bjorn Andersson
On Mon 01 Oct 03:11 PDT 2018, Niklas Cassel wrote: > QCOM_QMI_HELPERS is a hidden kconfig, so the proper usage is > to select it, not depend upon it. > > Signed-off-by: Niklas Cassel Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > drivers/slimbus/Kconfig | 2 +- > 1 file changed, 1

Re: [PATCH] slimbus: ngd: QCOM_QMI_HELPERS has to be selected

2018-10-01 Thread Bjorn Andersson
On Mon 01 Oct 03:11 PDT 2018, Niklas Cassel wrote: > QCOM_QMI_HELPERS is a hidden kconfig, so the proper usage is > to select it, not depend upon it. > > Signed-off-by: Niklas Cassel Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > drivers/slimbus/Kconfig | 2 +- > 1 file changed, 1

Re: [PATCH] ARM: makefile: pass -march=armv4 to assembler even on CPU32v3

2018-10-01 Thread Jason A. Donenfeld
Hi Ard, On Tue, Oct 2, 2018 at 5:54 AM Ard Biesheuvel wrote: > So Arnd's suggestion to switch to armv3-m would actually be feasible > then? The code in question does not use ldrh only umull, and so it > should build with armv3m as well. And we will even generate some > better code for RiscPC if

Re: [PATCH] ARM: makefile: pass -march=armv4 to assembler even on CPU32v3

2018-10-01 Thread Jason A. Donenfeld
Hi Ard, On Tue, Oct 2, 2018 at 5:54 AM Ard Biesheuvel wrote: > So Arnd's suggestion to switch to armv3-m would actually be feasible > then? The code in question does not use ldrh only umull, and so it > should build with armv3m as well. And we will even generate some > better code for RiscPC if

Re: [PATCH] ARM: makefile: pass -march=armv4 to assembler even on CPU32v3

2018-10-01 Thread Jason A. Donenfeld
Hi Arnd, Apologies for the delay in getting back to you. I had some MTA issues and stupidly assumed ARM developers were taking the day off instead... On Tue, Oct 2, 2018 at 5:33 AM Arnd Bergmann wrote: > -arch-$(CONFIG_CPU_32v3)=-D__LINUX_ARM_ARCH__=3 -march=armv3 >

Re: [PATCH] ARM: makefile: pass -march=armv4 to assembler even on CPU32v3

2018-10-01 Thread Jason A. Donenfeld
Hi Arnd, Apologies for the delay in getting back to you. I had some MTA issues and stupidly assumed ARM developers were taking the day off instead... On Tue, Oct 2, 2018 at 5:33 AM Arnd Bergmann wrote: > -arch-$(CONFIG_CPU_32v3)=-D__LINUX_ARM_ARCH__=3 -march=armv3 >

Re: [PATCH] pinctrl: msm: Actually use function 0 for gpio selection

2018-10-01 Thread Bjorn Andersson
On Mon 01 Oct 14:49 PDT 2018, Stephen Boyd wrote: > This code needs to select function #0, which is the first int in the > array of functions, not the number 0 which may or may not be the > function for "GPIO mode" per the enum mapping. We were getting lucky on > SDM845, where this was tested,

Re: [PATCH] pinctrl: msm: Actually use function 0 for gpio selection

2018-10-01 Thread Bjorn Andersson
On Mon 01 Oct 14:49 PDT 2018, Stephen Boyd wrote: > This code needs to select function #0, which is the first int in the > array of functions, not the number 0 which may or may not be the > function for "GPIO mode" per the enum mapping. We were getting lucky on > SDM845, where this was tested,

Re: [PATCH RFC 1/2] sched/core: Convert synchronize_rcu_mult to synchronize_rcu

2018-10-01 Thread Paul E. McKenney
On Mon, Oct 01, 2018 at 06:20:11PM -0700, Joel Fernandes wrote: > From: "Joel Fernandes (Google)" > > synchronize_rcu_mult is now obsolete since all the different RCU flavors > have been consolidated and the API is now common on the updater side. > sched/core.c is the only user of it. All

Re: [PATCH RFC 1/2] sched/core: Convert synchronize_rcu_mult to synchronize_rcu

2018-10-01 Thread Paul E. McKenney
On Mon, Oct 01, 2018 at 06:20:11PM -0700, Joel Fernandes wrote: > From: "Joel Fernandes (Google)" > > synchronize_rcu_mult is now obsolete since all the different RCU flavors > have been consolidated and the API is now common on the updater side. > sched/core.c is the only user of it. All

Expecting Urgent Response.

2018-10-01 Thread Sean Kim.
Hello my dear. Did you receive my email message to you? Please, get back to me ASAP as the matter is becoming late. Expecting your urgent response. Sean Kim.

Expecting Urgent Response.

2018-10-01 Thread Sean Kim.
Hello my dear. Did you receive my email message to you? Please, get back to me ASAP as the matter is becoming late. Expecting your urgent response. Sean Kim.

linux-next: manual merge of the devicetree tree with the qcom tree

2018-10-01 Thread Stephen Rothwell
Hi Rob, Today's linux-next merge of the devicetree tree got a conflict in: drivers/soc/qcom/apr.c between commit: 4fadb26574cb ("soc: qcom: apr: Avoid string overflow") from the qcom tree and commit: b2efb5b04591 ("soc: Convert to using %pOFn instead of device_node.name") from the

linux-next: manual merge of the devicetree tree with the qcom tree

2018-10-01 Thread Stephen Rothwell
Hi Rob, Today's linux-next merge of the devicetree tree got a conflict in: drivers/soc/qcom/apr.c between commit: 4fadb26574cb ("soc: qcom: apr: Avoid string overflow") from the qcom tree and commit: b2efb5b04591 ("soc: Convert to using %pOFn instead of device_node.name") from the

Re: [PATCH v3] RISC-V: Show IPI stats

2018-10-01 Thread Anup Patel
On Tue, Oct 2, 2018 at 8:45 AM Atish Patra wrote: > > On 9/28/18 11:26 PM, Anup Patel wrote: > > This patch provides arch_show_interrupts() implementation to > > show IPI stats via /proc/interrupts. > > > > Now the contents of /proc/interrupts" will look like below: > > CPU0

Re: [PATCH v3] RISC-V: Show IPI stats

2018-10-01 Thread Anup Patel
On Tue, Oct 2, 2018 at 8:45 AM Atish Patra wrote: > > On 9/28/18 11:26 PM, Anup Patel wrote: > > This patch provides arch_show_interrupts() implementation to > > show IPI stats via /proc/interrupts. > > > > Now the contents of /proc/interrupts" will look like below: > > CPU0

Re: [PATCH v3] RISC-V: Show IPI stats

2018-10-01 Thread Atish Patra
On 9/28/18 11:26 PM, Anup Patel wrote: This patch provides arch_show_interrupts() implementation to show IPI stats via /proc/interrupts. Now the contents of /proc/interrupts" will look like below: CPU0 CPU1 CPU2 CPU3 8: 17 7 6

Re: [PATCH v3] RISC-V: Show IPI stats

2018-10-01 Thread Atish Patra
On 9/28/18 11:26 PM, Anup Patel wrote: This patch provides arch_show_interrupts() implementation to show IPI stats via /proc/interrupts. Now the contents of /proc/interrupts" will look like below: CPU0 CPU1 CPU2 CPU3 8: 17 7 6

linux-next: build warning after merge of the regulator tree

2018-10-01 Thread Stephen Rothwell
Hi all, After merging the regulator tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/mfd/rohm-bd718x7.c: In function 'bd718xx_i2c_probe': drivers/mfd/rohm-bd718x7.c:101:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

linux-next: build warning after merge of the regulator tree

2018-10-01 Thread Stephen Rothwell
Hi all, After merging the regulator tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/mfd/rohm-bd718x7.c: In function 'bd718xx_i2c_probe': drivers/mfd/rohm-bd718x7.c:101:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

[PATCH] mm:slab: Adjust the print format for the slabinfo

2018-10-01 Thread jun qian
Header and the corresponding information is not aligned, adjust the printing format helps us to understand the slabinfo better. Signed-off-by: jun qian Cc: Barry song <21cn...@gmail.com> --- mm/slab_common.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git

[PATCH] mm:slab: Adjust the print format for the slabinfo

2018-10-01 Thread jun qian
Header and the corresponding information is not aligned, adjust the printing format helps us to understand the slabinfo better. Signed-off-by: jun qian Cc: Barry song <21cn...@gmail.com> --- mm/slab_common.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git

[RFC][PATCH 1/3] printk: keep kernel cont support always enabled

2018-10-01 Thread Sergey Senozhatsky
Since 5c2992ee7fd8a29 ("printk: remove console flushing special cases for partial buffered lines") we don't print cont fragments to the consoles; cont lines are now proper log_buf entries and there is no "consecutive continuation flag" anymore: we either have 'c' entries that mark continuation

[RFC][PATCH 1/3] printk: keep kernel cont support always enabled

2018-10-01 Thread Sergey Senozhatsky
Since 5c2992ee7fd8a29 ("printk: remove console flushing special cases for partial buffered lines") we don't print cont fragments to the consoles; cont lines are now proper log_buf entries and there is no "consecutive continuation flag" anymore: we either have 'c' entries that mark continuation

[RFC][PATCH 3/3] printk: do not preliminary split up cont buffer

2018-10-01 Thread Sergey Senozhatsky
We have a proper 'overflow' check which tells us that we need to split up existing cont buffer in separate records: if (cont.len + len > sizeof(cont.buf)) cont_flush(); At the same time we also have one extra flush: "if cont buffer is 80% full then split it up" in

[RFC][PATCH 2/3] printk: lock/unlock console only for new logbuf entries

2018-10-01 Thread Sergey Senozhatsky
From: Sergey Senozhatsky Prior to 5c2992ee7fd8a29 ("printk: remove console flushing special cases for partial buffered lines") we would do console_cont_flush() for each pr_cont() to print cont fragments, so console_unlock() would actually print data: pr_cont(); console_lock();

[RFC][PATCH 3/3] printk: do not preliminary split up cont buffer

2018-10-01 Thread Sergey Senozhatsky
We have a proper 'overflow' check which tells us that we need to split up existing cont buffer in separate records: if (cont.len + len > sizeof(cont.buf)) cont_flush(); At the same time we also have one extra flush: "if cont buffer is 80% full then split it up" in

[RFC][PATCH 2/3] printk: lock/unlock console only for new logbuf entries

2018-10-01 Thread Sergey Senozhatsky
From: Sergey Senozhatsky Prior to 5c2992ee7fd8a29 ("printk: remove console flushing special cases for partial buffered lines") we would do console_cont_flush() for each pr_cont() to print cont fragments, so console_unlock() would actually print data: pr_cont(); console_lock();

[RFC][PATCH 0/3] printk: some pr_cont tweaks and cleanups

2018-10-01 Thread Sergey Senozhatsky
Hello, RFC Forked from "printk feature for syzbot". Let's have a separate discussion thread. A buch of pr_cont tweaks and cleanups, please see commits and commits' messages for more details. Sergey Senozhatsky (3): printk: keep kernel cont support always

[RFC][PATCH 0/3] printk: some pr_cont tweaks and cleanups

2018-10-01 Thread Sergey Senozhatsky
Hello, RFC Forked from "printk feature for syzbot". Let's have a separate discussion thread. A buch of pr_cont tweaks and cleanups, please see commits and commits' messages for more details. Sergey Senozhatsky (3): printk: keep kernel cont support always

Re: [PATCH] fs: ufs: Convert ufs_set_de_type to use lookup table

2018-10-01 Thread Al Viro
On Mon, Oct 01, 2018 at 04:33:10PM +0100, Phillip Potter wrote: > Modify ufs_set_de_type function in fs/ufs/util.h to use a lookup > table rather than a switch statement, as per the TODO comment. Brittle, that... Something like fs/ext2/dir.c approach (that is, #define S_SHIFT 12 static unsigned

Re: [PATCH] fs: ufs: Convert ufs_set_de_type to use lookup table

2018-10-01 Thread Al Viro
On Mon, Oct 01, 2018 at 04:33:10PM +0100, Phillip Potter wrote: > Modify ufs_set_de_type function in fs/ufs/util.h to use a lookup > table rather than a switch statement, as per the TODO comment. Brittle, that... Something like fs/ext2/dir.c approach (that is, #define S_SHIFT 12 static unsigned

[PATCH v2] kbuild: add -Wno-unused-but-set-variable flag unconditionally

2018-10-01 Thread Masahiro Yamada
We have raised the compiler requirement from time to time. With commit cafa0010cd51 ("Raise the minimum required gcc version to 4.6"), the minimum for GCC is 4.6 now. This flag was added by GCC 4.6, and it is recognized by ICC as well. It is true that Clang does not support this flag but this

[PATCH v2] kbuild: add -Wno-unused-but-set-variable flag unconditionally

2018-10-01 Thread Masahiro Yamada
We have raised the compiler requirement from time to time. With commit cafa0010cd51 ("Raise the minimum required gcc version to 4.6"), the minimum for GCC is 4.6 now. This flag was added by GCC 4.6, and it is recognized by ICC as well. It is true that Clang does not support this flag but this

[PATCH v5 2/2] spi: Introduce new driver for Qualcomm QuadSPI controller

2018-10-01 Thread Ryan Case
From: Girish Mahadevan New driver for Qualcomm QuadSPI(QSPI) controller that is used to communicate with slaves such as flash memory devices. The QSPI controller can operate in 2 or 4 wire mode but only supports SPI Mode 0. The controller can also operate in Single or Dual data rate modes.

[PATCH v5 2/2] spi: Introduce new driver for Qualcomm QuadSPI controller

2018-10-01 Thread Ryan Case
From: Girish Mahadevan New driver for Qualcomm QuadSPI(QSPI) controller that is used to communicate with slaves such as flash memory devices. The QSPI controller can operate in 2 or 4 wire mode but only supports SPI Mode 0. The controller can also operate in Single or Dual data rate modes.

[PATCH v5 1/2] dt-bindings: spi: Qualcomm Quad SPI(QSPI) documentation

2018-10-01 Thread Ryan Case
From: Girish Mahadevan Bindings for Qualcomm Quad SPI used on SoCs such as sdm845. Signed-off-by: Girish Mahadevan Signed-off-by: Ryan Case --- Changes in v5: - None Changes in v4: - Changed qspi@ to spi@ and device@ to flash@ to match Rob's review Changes in v3: - Added generic compatible

[PATCH v5 1/2] dt-bindings: spi: Qualcomm Quad SPI(QSPI) documentation

2018-10-01 Thread Ryan Case
From: Girish Mahadevan Bindings for Qualcomm Quad SPI used on SoCs such as sdm845. Signed-off-by: Girish Mahadevan Signed-off-by: Ryan Case --- Changes in v5: - None Changes in v4: - Changed qspi@ to spi@ and device@ to flash@ to match Rob's review Changes in v3: - Added generic compatible

[PATCH 0/2] Fix community TSC ADJUST breakage causing TSC failure

2018-10-01 Thread Mike Travis
Fix a breakage caused by enabling early tsc initialization which bypasses a check that disables the forcing of TSC ADJUST to 0 for chassis 0. This is common on systems where all the chassis start up asynchronously so which chassis should have a TSC ADJUST value of 0 is not predictable. The

[PATCH 0/2] Fix community TSC ADJUST breakage causing TSC failure

2018-10-01 Thread Mike Travis
Fix a breakage caused by enabling early tsc initialization which bypasses a check that disables the forcing of TSC ADJUST to 0 for chassis 0. This is common on systems where all the chassis start up asynchronously so which chassis should have a TSC ADJUST value of 0 is not predictable. The

[PATCH 2/2] x86/tsc: Fix UV TSC initialization

2018-10-01 Thread Mike Travis
Fix regression introduced by commit cf7a63ef4e02 ("x86/tsc: Calibrate tsc only once") as it changed setup_arch() so that it now calls tsc_early_init() before acpi_boot_table_init() which is a necessary step, in the case of UV systems, to inform tsc_sanitize_first_cpu() that we're on a platform

[PATCH 1/2] x86/platform/uv: Add is_early_uv_system check

2018-10-01 Thread Mike Travis
Introduce is_early_uv_system() which uses efi.uv_systab to decide early in the boot process whether we're on a UV system. This is needed to skip other early setup/init code that might break UV platform if done too early such as before necessary ACPI tables parsing takes place. Signed-off-by:

[PATCH 2/2] x86/tsc: Fix UV TSC initialization

2018-10-01 Thread Mike Travis
Fix regression introduced by commit cf7a63ef4e02 ("x86/tsc: Calibrate tsc only once") as it changed setup_arch() so that it now calls tsc_early_init() before acpi_boot_table_init() which is a necessary step, in the case of UV systems, to inform tsc_sanitize_first_cpu() that we're on a platform

[PATCH 1/2] x86/platform/uv: Add is_early_uv_system check

2018-10-01 Thread Mike Travis
Introduce is_early_uv_system() which uses efi.uv_systab to decide early in the boot process whether we're on a UV system. This is needed to skip other early setup/init code that might break UV platform if done too early such as before necessary ACPI tables parsing takes place. Signed-off-by:

Re: [PATCH] EDAC: Don't add devices under /sys/bus/edac

2018-10-01 Thread Mauro Carvalho Chehab
Em Mon, 1 Oct 2018 15:43:13 -0700 "Luck, Tony" escreveu: > Nobody(*) uses them. Dropping this will allow us to make the total > number of memory controllers configurable (as we won't have to > worry about duplicated device names under this directory). > > (*)

Re: [PATCH] EDAC: Don't add devices under /sys/bus/edac

2018-10-01 Thread Mauro Carvalho Chehab
Em Mon, 1 Oct 2018 15:43:13 -0700 "Luck, Tony" escreveu: > Nobody(*) uses them. Dropping this will allow us to make the total > number of memory controllers configurable (as we won't have to > worry about duplicated device names under this directory). > > (*)

[PATCH RFC 2/2] rcu: Remove synchronize_rcu_mult since it has no more users

2018-10-01 Thread Joel Fernandes
From: "Joel Fernandes (Google)" sched/core.c was the only user of synchronize_rcu_mult. It has been coverted to use synchronize_rcu. So lets remove the synchronize_rcu_mult implementation entirely. Signed-off-by: Joel Fernandes (Google) --- include/linux/rcupdate_wait.h | 17 -

[PATCH RFC 1/2] sched/core: Convert synchronize_rcu_mult to synchronize_rcu

2018-10-01 Thread Joel Fernandes
From: "Joel Fernandes (Google)" synchronize_rcu_mult is now obsolete since all the different RCU flavors have been consolidated and the API is now common on the updater side. sched/core.c is the only user of it. All call_rcu_ calls boil down to the same call_rcu. So there's no point in calling

[PATCH RFC 2/2] rcu: Remove synchronize_rcu_mult since it has no more users

2018-10-01 Thread Joel Fernandes
From: "Joel Fernandes (Google)" sched/core.c was the only user of synchronize_rcu_mult. It has been coverted to use synchronize_rcu. So lets remove the synchronize_rcu_mult implementation entirely. Signed-off-by: Joel Fernandes (Google) --- include/linux/rcupdate_wait.h | 17 -

[PATCH RFC 1/2] sched/core: Convert synchronize_rcu_mult to synchronize_rcu

2018-10-01 Thread Joel Fernandes
From: "Joel Fernandes (Google)" synchronize_rcu_mult is now obsolete since all the different RCU flavors have been consolidated and the API is now common on the updater side. sched/core.c is the only user of it. All call_rcu_ calls boil down to the same call_rcu. So there's no point in calling

[PATCH v4 1/2] dt-bindings: spi: Qualcomm Quad SPI(QSPI) documentation

2018-10-01 Thread Ryan Case
From: Girish Mahadevan Bindings for Qualcomm Quad SPI used on SoCs such as sdm845. Signed-off-by: Girish Mahadevan Signed-off-by: Ryan Case --- Changes in v4: - Changed qspi@ to spi@ and device@ to flash@ to match Rob's review Changes in v3: - Added generic compatible string in addition to

[RESEND PATCH v4 8/8] gpio: pcie-idio-24: Utilize for_each_set_clump macro

2018-10-01 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump macro to simplify code and improve clarity. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-pcie-idio-24.c | 102 +++ 1 file changed, 36 insertions(+), 66

[PATCH v4 1/2] dt-bindings: spi: Qualcomm Quad SPI(QSPI) documentation

2018-10-01 Thread Ryan Case
From: Girish Mahadevan Bindings for Qualcomm Quad SPI used on SoCs such as sdm845. Signed-off-by: Girish Mahadevan Signed-off-by: Ryan Case --- Changes in v4: - Changed qspi@ to spi@ and device@ to flash@ to match Rob's review Changes in v3: - Added generic compatible string in addition to

[RESEND PATCH v4 8/8] gpio: pcie-idio-24: Utilize for_each_set_clump macro

2018-10-01 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump macro to simplify code and improve clarity. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-pcie-idio-24.c | 102 +++ 1 file changed, 36 insertions(+), 66

[PATCH v4 2/2] spi: Introduce new driver for Qualcomm QuadSPI controller

2018-10-01 Thread Ryan Case
From: Girish Mahadevan New driver for Qualcomm QuadSPI(QSPI) controller that is used to communicate with slaves such as flash memory devices. The QSPI controller can operate in 2 or 4 wire mode but only supports SPI Mode 0. The controller can also operate in Single or Dual data rate modes.

[PATCH v4 2/2] spi: Introduce new driver for Qualcomm QuadSPI controller

2018-10-01 Thread Ryan Case
From: Girish Mahadevan New driver for Qualcomm QuadSPI(QSPI) controller that is used to communicate with slaves such as flash memory devices. The QSPI controller can operate in 2 or 4 wire mode but only supports SPI Mode 0. The controller can also operate in Single or Dual data rate modes.

Re: [PATCH] CIFS: Print message when attempting mount

2018-10-01 Thread Pavel Shilovsky
пн, 1 окт. 2018 г. в 17:59, Rodrigo Freire : > > By default, no messages are printed when mounting a CIFS filesystem. > This information is valuable when troubleshooting and/or forensic > analyzing a system and finding out if was a CIFS endpoint mount > attempted. > Other filesystems such as XFS,

Re: [PATCH] CIFS: Print message when attempting mount

2018-10-01 Thread Pavel Shilovsky
пн, 1 окт. 2018 г. в 17:59, Rodrigo Freire : > > By default, no messages are printed when mounting a CIFS filesystem. > This information is valuable when troubleshooting and/or forensic > analyzing a system and finding out if was a CIFS endpoint mount > attempted. > Other filesystems such as XFS,

[RESEND PATCH v4 7/8] gpio: pci-idio-16: Utilize for_each_set_clump macro

2018-10-01 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump macro to simplify code and improve clarity. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-pci-idio-16.c | 67 +++-- 1 file changed, 21 insertions(+), 46

[RESEND PATCH v4 7/8] gpio: pci-idio-16: Utilize for_each_set_clump macro

2018-10-01 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump macro to simplify code and improve clarity. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-pci-idio-16.c | 67 +++-- 1 file changed, 21 insertions(+), 46

[RESEND PATCH v4 6/8] gpio: ws16c48: Utilize for_each_set_clump macro

2018-10-01 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump macro to simplify code and improve clarity. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-ws16c48.c | 66 + 1 file changed, 16 insertions(+), 50

[RESEND PATCH v4 5/8] gpio: gpio-mm: Utilize for_each_set_clump macro

2018-10-01 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump macro to simplify code and improve clarity. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-gpio-mm.c | 67 + 1 file changed, 16 insertions(+), 51

Re: [PATCH 0/4] get_user_pages*() and RDMA: first steps

2018-10-01 Thread Dave Chinner
On Mon, Oct 01, 2018 at 05:47:57AM -0700, Christoph Hellwig wrote: > On Mon, Oct 01, 2018 at 04:11:27PM +1000, Dave Chinner wrote: > > This reminds me so much of Linux mmap() in the mid-2000s - mmap() > > worked for ext3 without being aware of page faults, > > And "worked" still is a bit of a

[RESEND PATCH v4 4/8] gpio: 104-idi-48: Utilize for_each_set_clump macro

2018-10-01 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump macro to simplify code and improve clarity. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-104-idi-48.c | 32 1 file changed, 4 insertions(+), 28

[RESEND PATCH v4 3/8] gpio: 104-dio-48e: Utilize for_each_set_clump macro

2018-10-01 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump macro to simplify code and improve clarity. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-104-dio-48e.c | 67 - 1 file changed, 16 insertions(+), 51

[RESEND PATCH v4 6/8] gpio: ws16c48: Utilize for_each_set_clump macro

2018-10-01 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump macro to simplify code and improve clarity. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-ws16c48.c | 66 + 1 file changed, 16 insertions(+), 50

[RESEND PATCH v4 5/8] gpio: gpio-mm: Utilize for_each_set_clump macro

2018-10-01 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump macro to simplify code and improve clarity. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-gpio-mm.c | 67 + 1 file changed, 16 insertions(+), 51

Re: [PATCH 0/4] get_user_pages*() and RDMA: first steps

2018-10-01 Thread Dave Chinner
On Mon, Oct 01, 2018 at 05:47:57AM -0700, Christoph Hellwig wrote: > On Mon, Oct 01, 2018 at 04:11:27PM +1000, Dave Chinner wrote: > > This reminds me so much of Linux mmap() in the mid-2000s - mmap() > > worked for ext3 without being aware of page faults, > > And "worked" still is a bit of a

  1   2   3   4   5   6   7   8   9   10   >