[lkp-robot] [x86/kasan] def0e7b54d: Kernel_panic-not_syncing:memblock_virt_alloc_try_nid:Failed_to_allocate#bytes_align=#nid=#from=#max_addr=

2018-01-27 Thread kernel test robot
Hi, Andrey Is this panic log expected with your commit? FYI, we noticed the following commit (built with gcc-7): commit: def0e7b54d63bae120302a4957c272107563ad04 ("x86/kasan: Panic if there is not enough memory to boot") https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git x86/pti in testc

Re: [PATCH v2 1/6] resource: Extend the PPC32 reserved memory hack

2018-01-27 Thread Jonathan Neuschäfer
On Wed, Jan 24, 2018 at 12:23:05PM +1100, Michael Ellerman wrote: > Jonathan Neuschäfer writes: [...] > > Do you have any pointer on how to implement discontiguous memory > > support? CONFIG_ARCH_SPARSEMEM_ENABLE seems relevant. > > I'm not really sure what the key impediment to it working is. >

Re: [PATCH v3 1/2] iio: adc: driver for ti adc081s/adc101s/adc121s

2018-01-27 Thread Milan Stevanovic
On 01/26/2018 07:43 PM, Andy Shevchenko wrote: On Fri, Jan 26, 2018 at 8:25 PM, Lars-Peter Clausen wrote: On 01/26/2018 07:19 PM, Andy Shevchenko wrote: On Sun, Jan 14, 2018 at 10:32 PM, Milan Stevanovic wrote: Add Linux device driver for TI single-channel CMOS 8/10/12-bit analog-t

[PATCH v2] block: paride: on26: Replace mdelay with msleep in on26_test_port

2018-01-27 Thread Jia-Ju Bai
on26_test_port() is never called from atomic context. It has no direct callers and it is called only via function pointer "->test_port" that is only used in pi_probe_unit(): drivers/block/paride/paride.c:322: max = pi->proto->test_port(pi); That gets called only from pi_init(), called from p{d,cd

Re: [RFC 09/10] x86/enter: Create macros to restrict/unrestrict Indirect Branch Speculation

2018-01-27 Thread Borislav Petkov
On Fri, Jan 26, 2018 at 09:19:09AM -0800, Linus Torvalds wrote: > But did we do that "disable stuffing with SMEP"? I'm not seeing it. In > my tree, it's only conditional on X86_FEATURE_RETPOLINE. Or rather, enable stuffing on !SMEP: + if ((!boot_cpu_has(X86_FEATURE_PTI) && +!boo

Re: [lkp-robot] [x86/kasan] def0e7b54d: Kernel_panic-not_syncing:memblock_virt_alloc_try_nid:Failed_to_allocate#by tes_align=#nid=#from=#max_addr=

2018-01-27 Thread Thomas Gleixner
On Sat, 27 Jan 2018, kernel test robot wrote: > Hi, Andrey > > Is this panic log expected with your commit? Yes it is. It says that there is not enough memroy to run with KASAN. If you revert it the machine will die with a NULL pointer dereference at some other place w/o telling you what the rea

[PATCH] usb: musb: fix enumeration after resume

2018-01-27 Thread Andreas Kemnade
On dm3730 there are enumeration problems after resume. Investigation led to the cause that the MUSB_POWER_SOFTCONN bit is not set. If it was set before suspend (because it was enabled via musb_pullup()), it is set in musb_restore_context() so the pullup is enabled. But then musb_start() is called w

Re: [RFC PATCH 0/2] check I2C device id for pca984x chips

2018-01-27 Thread Peter Rosin
On 2018-01-26 17:33, Adrian Fiergolski wrote: > Hi Peter, > > Sorry for the late reply. No problem. > Yes, it's true I have one of the chip. However, my yocto based build system > depends on https://github.com/Xilinx/linux-xlnx and it's in version > 4.9.0-xilinx-v2017.3. > Apparently, there were

Re: [PATCH 0/3] Per-VCPU MSR bitmaps patches - topic branch for x86/pti

2018-01-27 Thread Paolo Bonzini
On 26/01/2018 23:51, Paolo Bonzini wrote: > David and others, > > the following changes since commit ba804bb4b72e57374b5f567b783aa0298fba0ce6: > > Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (2018-01-26 > 09:03:16 -0800) > > are available in the git repository at: > > git

Re: [PATCH] x86/cpufeatures: Cleanup AMD speculation feature bits

2018-01-27 Thread David Woodhouse
On Fri, 2018-01-26 at 17:14 -0600, Tom Lendacky wrote: > On 1/26/2018 4:10 PM, Borislav Petkov wrote: > > > > On Fri, Jan 26, 2018 at 09:59:44PM +, David Woodhouse wrote: > > > > > > If we wanted to do this kind of thing, we'd do it the other way round. > > > Turn the *Intel* feature into bot

[PATCH v2 2/3] KVM: VMX: introduce alloc_loaded_vmcs

2018-01-27 Thread Paolo Bonzini
Group together the calls to alloc_vmcs and loaded_vmcs_init. Soon we'll also allocate an MSR bitmap there. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/vmx.c | 36 ++-- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86

[PATCH v2 0/3] Per-VCPU MSR bitmaps patches - topic branch for x86/pti

2018-01-27 Thread Paolo Bonzini
David and others, the following changes since commit ba804bb4b72e57374b5f567b783aa0298fba0ce6: Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (2018-01-26 09:03:16 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/kvm.git msr-bitmaps for yo

[PATCH v2 3/3] KVM: VMX: make MSR bitmaps per-VCPU

2018-01-27 Thread Paolo Bonzini
Place the MSR bitmap in struct loaded_vmcs, and update it in place every time the x2apic or APICv state can change. This is rare and the loop can handle 64 MSRs per iteration, in a similar fashion as nested_vmx_prepare_msr_bitmap. This prepares for choosing, on a per-VM basis, whether to intercep

[PATCH v2 1/3] KVM: nVMX: Eliminate vmcs02 pool

2018-01-27 Thread Paolo Bonzini
From: Jim Mattson The potential performance advantages of a vmcs02 pool have never been realized. To simplify the code, eliminate the pool. Instead, a single vmcs02 is allocated per VCPU when the VCPU enters VMX operation. Signed-off-by: Jim Mattson Signed-off-by: Mark Kanda Reviewed-by: Ameya

Re: [PATCH v2 1/2] x86/retpoline: Simplify vmexit_fill_RSB()

2018-01-27 Thread Borislav Petkov
On Fri, Jan 26, 2018 at 11:20:39PM -0500, Konrad Rzeszutek Wilk wrote: > BOINK? > > Really? There's always someone who's bound to get offended, right? So I better change it to something boring, yes? -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the rep

Re: [PATCH v2 12/13] ocxl: Documentation

2018-01-27 Thread Michael Ellerman
Frederic Barrat writes: > Le 25/01/2018 à 14:17, Greg KH a écrit : >> On Tue, Jan 23, 2018 at 12:31:47PM +0100, Frederic Barrat wrote: >>> ocxl.rst gives a quick, high-level view of opencapi. >>> >>> Update ioctl-number.txt to reflect ioctl numbers being used by the >>> ocxl driver >>> >>> Signed

Re: [PATCH] x86/cpufeatures: Cleanup AMD speculation feature bits

2018-01-27 Thread David Woodhouse
http://david.woodhou.se/cleanup-feature-bits.patch on top of my full tree? I'll rework that into the series instead of as a patch on top... smime.p7s Description: S/MIME cryptographic signature

[PATCH 2/2] f2fs: fix to check extent cache in f2fs_drop_extent_tree

2018-01-27 Thread Chao Yu
If noextent_cache mount option is on, we will never initialize extent tree in inode, but still we're going to access it in f2fs_drop_extent_tree, result in kernel panic as below: BUG: unable to handle kernel NULL pointer dereference at 0038 IP: _raw_write_lock+0xc/0x30 Call Trace:

[PATCH 1/2] f2fs: restrict inline_xattr_size configuration

2018-01-27 Thread Chao Yu
This patch limits to enable inline_xattr_size mount option only if both extra_attr and flexible_inline_xattr feature is on in current image. Signed-off-by: Chao Yu --- fs/f2fs/super.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 8173ae688814.

Re: [RFC PATCH V5 5/5] workqueue: introduce a way to set workqueue's scheduler

2018-01-27 Thread Mike Galbraith
On Sat, 2018-01-27 at 13:15 +0800, Wen Yang wrote: > When pinning RT threads to specific cores using CPU affinity, the > kworkers on the same CPU would starve, which may lead to some kind > of priority inversion. In that case, the RT threads would also > suffer high performance impact. ... > This

CMA allocation failure

2018-01-27 Thread Skidanov, Alexey
Hello, I enabled CMA global area to be 8GB. Immediately after boot, I'm able to allocate the really big contiguous chunks of memory (about 8GB). But several minutes after the boot, there is some degradation in an ability of CMA to allocate contiguous memory buffers: [ 2333.037004] cma: cma_all

Re: [PATCH v2 2/5] powerpc/32: Fix hugepage allocation on 8xx at hint address

2018-01-27 Thread Michael Ellerman
"Aneesh Kumar K.V" writes: > Christophe Leroy writes: > >> On the 8xx, the page size is set in the PMD entry and applies to >> all pages of the page table pointed by the said PMD entry. >> ... >> diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c >> index a9b9083c5e49..79

Re: [PATCH] x86/cpufeatures: Cleanup AMD speculation feature bits

2018-01-27 Thread Borislav Petkov
On Sat, Jan 27, 2018 at 09:27:48AM +, David Woodhouse wrote: > http://david.woodhou.se/cleanup-feature-bits.patch on top of my full > tree? @@ -223,7 +223,7 @@ static inline void indirect_branch_prediction_barrier(void) "movl %[val], %%eax\n\t"

Re: [PATCH v3] perf/trace : Fix repetitious traces of perf on tracepoint

2018-01-27 Thread chengjian (D)
Hi, Milian On 2018/1/16 22:33, Milian Wolff wrote: perf script print the same wakeup_new event multiple times. These events which trigger this issue all specify a target process. commit e6dab5ffab59 ("perf/trace: Add ability to set a target task for events") has designed a method to trace thes

[PATCH 2/8] staging: pi433: fix CamelCase for powerLevel

2018-01-27 Thread Valentin Vidic
Fixes checkpatch warnings: CHECK: Avoid CamelCase: Signed-off-by: Valentin Vidic --- drivers/staging/pi433/rf69.c | 8 drivers/staging/pi433/rf69.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c inde

[PATCH 2/2] f2fs: support {d,id,did,x}node checksum

2018-01-27 Thread Chao Yu
This patch adds to support {d,id,did,x}node checksum in kernel side. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 15 +++- fs/f2fs/inode.c | 98 +++-- fs/f2fs/node.c | 2 +- fs/f2fs/segment.c | 2 +- fs/f2fs/sysfs.c

[PATCH 1/8] staging: pi433: fix CamelCase for syncValues

2018-01-27 Thread Valentin Vidic
Fixes checkpatch warnings: CHECK: Avoid CamelCase: Signed-off-by: Valentin Vidic --- drivers/staging/pi433/rf69.c | 18 +- drivers/staging/pi433/rf69.h | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi4

[PATCH 4/8] staging: pi433: fix CamelCase for Ohm identifiers

2018-01-27 Thread Valentin Vidic
Fixes checkpatch warnings: CHECK: Avoid CamelCase: CHECK: Avoid CamelCase: Signed-off-by: Valentin Vidic --- drivers/staging/pi433/Documentation/pi433.txt | 4 ++-- drivers/staging/pi433/pi433_if.c | 2 +- drivers/staging/pi433/rf69.c | 4 ++-- drivers/stagin

[PATCH 3/8] staging: pi433: fix CamelCase for antennaImpedance

2018-01-27 Thread Valentin Vidic
Fixes checkpatch warnings: CHECK: Avoid CamelCase: Signed-off-by: Valentin Vidic --- drivers/staging/pi433/Documentation/pi433.txt | 2 +- drivers/staging/pi433/pi433_if.h | 2 +- drivers/staging/pi433/rf69.c | 4 ++-- drivers/staging/pi433/rf69.h

[PATCH 1/2] f2fs: enhance scalibility of {d,id,did,x}node disk layout

2018-01-27 Thread Chao Yu
Scalibility of non-inode disk layout is very bad, it's hard to add or reuse any fields in current structure, so, for new feature like node checksum which wants to add 4 bytes field in node structure, the bad scaliblity becomes a obstacle for its implementation. In order to enhance scalibility, we

[PATCH 5/8] staging: pi433: fix CamelCase for currentValue

2018-01-27 Thread Valentin Vidic
Local variable storing the value for modulation register so replace with modulation_reg. Fixes checkpatch warnings: CHECK: Avoid CamelCase: Signed-off-by: Valentin Vidic --- drivers/staging/pi433/rf69.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/stagin

[PATCH 6/8] staging: pi433: fix CamelCase for newValue

2018-01-27 Thread Valentin Vidic
Local variable storing the new value for bandwidth register so replace with bandwidth. Fixes checkpatch warnings: CHECK: Avoid CamelCase: Signed-off-by: Valentin Vidic --- drivers/staging/pi433/rf69.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drive

[PATCH 7/8] staging: pi433: fix CamelCase for regValue

2018-01-27 Thread Valentin Vidic
Local variable storing the new value for dio register so replace with dio_value. Update regaddr to dio_addr to match. Fixes checkpatch warnings: CHECK: Avoid CamelCase: Signed-off-by: Valentin Vidic --- drivers/staging/pi433/rf69.c | 24 1 file changed, 12 insertio

[PATCH 8/8] staging: pi433: fix CamelCase for DIONumber

2018-01-27 Thread Valentin Vidic
Fixes checkpatch warnings: CHECK: Avoid CamelCase: Signed-off-by: Valentin Vidic --- drivers/staging/pi433/rf69.c | 4 ++-- drivers/staging/pi433/rf69.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index 42

[PATCH 0/2] Input: nspire-keypad: Adjustments for nspire_keypad_probe()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 10:48:28 +0100 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation Improve a size determination drivers/input/keyboard/nspire-keypad.c | 7 ++-

[PATCH 1/2] Input: nspire-keypad: Delete an error message for a failed memory allocation in nspire_keypad_probe()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 10:33:37 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/input/keyboard/nspire-keypad.c | 4 +--- 1 file changed, 1 ins

[PATCH 2/2] Input: nspire-keypad: Improve a size determination in nspire_keypad_probe()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 10:36:20 +0100 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was det

Re: [PATCH RFC 00/16] A new RCU implementation based on a fast consensus protocol

2018-01-27 Thread Lihao Liang
On Sat, Jan 27, 2018 at 7:57 AM, Paul E. McKenney wrote: > On Sat, Jan 27, 2018 at 07:22:27AM +, Lihao Liang wrote: >> On Thu, Jan 25, 2018 at 5:53 AM, Paul E. McKenney >> wrote: >> > On Tue, Jan 23, 2018 at 03:59:25PM +0800, liangli...@huawei.com wrote: >> >> From: Lihao Liang >> >> >> >> D

[PATCH] bluetooth: hci_ll: Replace mdelay with msleep in download_firmware

2018-01-27 Thread Jia-Ju Bai
download_firmware() is never called from atomic context. It is only called by ll_setup() that is called only via function pointer "->setup" used in hci_uart_setup() in drivers/bluetooth/hci_serdev.c and drivers/bluetooth/hci_ldisc.c. hci_uart_setup() is called only via function pointer "->setup"

[PATCH] bluetooth: hci_ath: Replace mdelay with msleep in ath_wakeup_ar3k

2018-01-27 Thread Jia-Ju Bai
ath_wakeup_ar3k() is never called from atomic context. It is only called by ath_hci_uart_work() that is only called in ath_open() via INIT_WORK(). All of the above functions do not enter atomic context along the way. Despite never getting called from atomic context, ath_wakeup_ar3k() calls mdela

Re: [PATCH 8/8] kprobes/s390: Fix %p uses in error messages

2018-01-27 Thread Heiko Carstens
On Thu, Jan 25, 2018 at 02:30:32PM +0900, Masami Hiramatsu wrote: > Remove %p because the kprobe will be dumped in > dump_kprobe(). > > Signed-off-by: Masami Hiramatsu > --- > arch/s390/kernel/kprobes.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/s390/kernel

[PATCH v6] Support intel-vbtn based tablet mode switch

2018-01-27 Thread Marco Martin
Some laptops such as Dell Inspiron 7000 series have the tablet mode switch implemented in Intel ACPI, the events to enter and exit the tablet mode are 0xCC and 0xCD CC: platform-driver-...@vger.kernel.org CC: Matthew Garrett CC: "Pali Rohár" CC: Darren Hart CC: Mario Limonciello CC: Andy Shevc

Re: [PATCH v5] Support intel-vbtn based tablet mode switch

2018-01-27 Thread Marco Martin
On Fri, Jan 26, 2018 at 5:29 PM, wrote: >> -Original Message- >> From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] >> Sent: Friday, January 26, 2018 10:28 AM >> To: Limonciello, Mario >> Cc: Marco Martin ; Linux Kernel Mailing List > ker...@vger.kernel.org>; Matthew Garrett ; Pali

Re: [PATCH v6] Support intel-vbtn based tablet mode switch

2018-01-27 Thread Pali Rohár
On Saturday 27 January 2018 11:15:38 Marco Martin wrote: > Some laptops such as Dell Inspiron 7000 series have the > tablet mode switch implemented in Intel ACPI, > the events to enter and exit the tablet mode are 0xCC and 0xCD > > CC: platform-driver-...@vger.kernel.org > CC: Matthew Garrett > C

Re: [PATCH bpf-next v7 2/5] libbpf: add function to setup XDP

2018-01-27 Thread Eric Leblond
Hi, On Sat, 2018-01-27 at 02:23 +0100, Daniel Borkmann wrote: > On 01/25/2018 01:05 AM, Eric Leblond wrote: > > Most of the code is taken from set_link_xdp_fd() in bpf_load.c and > > slightly modified to be library compliant. > > > > Signed-off-by: Eric Leblond > > Acked-by: Alexei Starovoitov

Re: [PATCH bpf-next v7 3/5] libbpf: add error reporting in XDP

2018-01-27 Thread Eric Leblond
Hi, On Sat, 2018-01-27 at 02:28 +0100, Daniel Borkmann wrote: > On 01/25/2018 01:05 AM, Eric Leblond wrote: > > Parse netlink ext attribute to get the error message returned by > > the card. Code is partially take from libnl. > > > > We add netlink.h to the uapi include of tools. And we need to >

Re: [PATCH] x86/cpufeatures: Cleanup AMD speculation feature bits

2018-01-27 Thread David Woodhouse
On Sat, 2018-01-27 at 10:37 +0100, Borislav Petkov wrote: > On Sat, Jan 27, 2018 at 09:27:48AM +, David Woodhouse wrote: > > > > http://david.woodhou.se/cleanup-feature-bits.patch on top of my full > > tree? > @@ -223,7 +223,7 @@ static inline void > indirect_branch_prediction_barrier(void) >

Re: [patch -mm v2 1/3] mm, memcg: introduce per-memcg oom policy tunable

2018-01-27 Thread Michal Hocko
On Thu 25-01-18 15:53:45, David Rientjes wrote: > The cgroup aware oom killer is needlessly declared for the entire system > by a mount option. It's unnecessary to force the system into a single > oom policy: either cgroup aware, or the traditional process aware. > > This patch introduces a memor

Re: [RFC][PATCH] printk: do not flush printk_safe from irq_work

2018-01-27 Thread Petr Mladek
On Wed 2018-01-24 18:37:23, Sergey Senozhatsky wrote: > Tejun Heo reported that net_console can cause recursive printk()-s > from call_console_drivers() (under OOM/etc.) and this can lockup that > CPU, because CPU calls call_console_drivers() to print pending logbufs, > but recursive printk() issue

Re: Hi (Assigning NULL to variable after freeing it).

2018-01-27 Thread George B
>> I have just started to contribute to linux kernel. I was thinking of >> giving a patch where a variable is made null after free if not already >> done. >> > General answer is no... unless that particular code expects a freed pointer > to be null. In many cases the code is written so that this i

[PATCH 0/2] Input: max7359_keypad: Adjustments for max7359_probe()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 13:08:24 +0100 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation Improve a size determination drivers/input/keyboard/max7359_keypad.c | 8 ++

[PATCH 1/2] Input: max7359_keypad: Delete an error message for a failed memory allocation in max7359_probe()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 12:56:25 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/input/keyboard/max7359_keypad.c | 4 +--- 1 file changed, 1 in

[PATCH 2/2] Input: max7359_keypad: Improve a size determination in max7359_probe()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 13:00:10 +0100 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was det

Re: [PATCH 2/2] x86/speculation: Simplify indirect_branch_prediction_barrier()

2018-01-27 Thread David Woodhouse
On Fri, 2018-01-26 at 21:08 +0100, Borislav Petkov wrote: > > --- a/arch/x86/include/asm/processor.h > +++ b/arch/x86/include/asm/processor.h > @@ -971,4 +971,8 @@ bool xen_set_default_idle(void); >   >  void stop_this_cpu(void *dummy); >  void df_debug(struct pt_regs *regs, long error_code); > +

Re: [RFC PATCH V5 5/5] workqueue: introduce a way to set workqueue's scheduler

2018-01-27 Thread Mike Galbraith
On Sat, 2018-01-27 at 10:31 +0100, Mike Galbraith wrote: > On Sat, 2018-01-27 at 13:15 +0800, Wen Yang wrote: > > When pinning RT threads to specific cores using CPU affinity, the > > kworkers on the same CPU would starve, which may lead to some kind > > of priority inversion. In that case, the RT

Re: [PATCH] net/mlx4_en: ensure rx_desc updating reaches HW before prod db updating

2018-01-27 Thread jianchao.wang
Hi Tariq Thanks for your kindly response. That's really appreciated. On 01/25/2018 05:54 PM, Tariq Toukan wrote: > > > On 25/01/2018 8:25 AM, jianchao.wang wrote: >> Hi Eric >> >> Thanks for you kindly response and suggestion. >> That's really appreciated. >> >> Jianchao >> >> On 01/25/2018 11:

[PATCH resend 6/6] cdrom: wait for drive to become ready

2018-01-27 Thread Michal Suchanek
When the drive closes it can take tens of seconds until the disc is analyzed. Wait for the drive to become ready or report an error. Signed-off-by: Michal Suchanek --- drivers/cdrom/cdrom.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c

[PATCH 0/2] Input: matrix_keypad: Adjustments for two function implementations

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 13:48:42 +0100 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete two error messages for a failed memory allocation in matrix_keypad_parse_dt() Improve a size determination in matrix_keyp

[PATCH 1/2] Input: matrix_keypad: Delete two error messages for a failed memory allocation in matrix_keypad_parse_dt()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 13:35:02 +0100 Omit extra messages for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/input/keyboard/matrix_keypad.c | 8 ++-- 1 file changed, 2 i

[PATCH 2/2] Input: matrix_keypad: Improve a size determination in matrix_keypad_probe()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 13:43:16 +0100 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was det

RE: [PATCH v24 1/2] mm: support reporting free page blocks

2018-01-27 Thread Wang, Wei W
On Saturday, January 27, 2018 5:44 AM, Michael S. Tsirkin wrote: > On Fri, Jan 26, 2018 at 05:00:09PM +0200, Michael S. Tsirkin wrote: > > On Fri, Jan 26, 2018 at 11:29:15AM +0800, Wei Wang wrote: > > > On 01/25/2018 09:41 PM, Michael S. Tsirkin wrote: > > > > On Wed, Jan 24, 2018 at 06:42:41PM +08

Re: [PATCH] x86/cpufeatures: Cleanup AMD speculation feature bits

2018-01-27 Thread Borislav Petkov
On Sat, Jan 27, 2018 at 10:32:26AM +, David Woodhouse wrote: > No because cpuinfo should be information about the CPU. That argument doesn't work in this case because we're already lying there. Otherwise we would've never had the synthetic features in the first place. If you *really* wanna kn

Re: [PATCH 2/2] x86/speculation: Simplify indirect_branch_prediction_barrier()

2018-01-27 Thread Borislav Petkov
On Sat, Jan 27, 2018 at 12:32:41PM +, David Woodhouse wrote: > Did I already say that needs to live in asm-prototypes.h? That's a C function. > And it needs to be exported to modules, I think. Right. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim t

[PATCH] Input: imx_keypad: Delete an error message for a failed memory allocation in imx_keypad_probe()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 14:14:04 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/input/keyboard/imx_keypad.c | 4 +--- 1 file changed, 1 insert

[PATCH v2] i2c: i801: Register optional lis3lv02d i2c device on Dell machines

2018-01-27 Thread Pali Rohár
Dell platform team told us that some (DMI whitelisted) Dell Latitude machines have ST microelectronics accelerometer at i2c address 0x29. Presence of that ST microelectronics accelerometer is verified by existence of SMO88xx ACPI device which represent that accelerometer. Unfortunately ACPI device

Re: [tip:x86/pti] module/retpoline: Warn about missing retpoline in module

2018-01-27 Thread Borislav Petkov
On Fri, Jan 26, 2018 at 06:59:06AM -0800, tip-bot for Andi Kleen wrote: > Commit-ID: caf7501a1b4ec964190f31f9c3f163de252273b8 > Gitweb: > https://git.kernel.org/tip/caf7501a1b4ec964190f31f9c3f163de252273b8 > Author: Andi Kleen > AuthorDate: Thu, 25 Jan 2018 15:50:28 -0800 > Committer: T

Re: [RFC 09/10] x86/enter: Create macros to restrict/unrestrict Indirect Branch Speculation

2018-01-27 Thread Konrad Rzeszutek Wilk
On Fri, Jan 26, 2018 at 07:11:47PM +, Hansen, Dave wrote: > The need for RSB stuffing in all the various scenarios and what the heck it > actually mitigates is freakishly complicated. I've tried to write it all > down in one place: https://goo.gl/pXbvBE Thank you for sharing that. One ques

[PATCH resend 4/6] cdrom: introduce CDS_DRIVE_ERROR

2018-01-27 Thread Michal Suchanek
CDS_DRIVE_NOT_READY is used for the state in which CDROM is 'becoming ready' (typically analyzing the disc) but also as the fallback when nothing else applies. Introduce CDS_DRIVE_ERROR for the fallback case. Signed-off-by: Michal Suchanek --- drivers/block/paride/pcd.c | 2 +- drivers/cdrom/gd

[PATCH] Input: gpio_keys: Delete an error message for a failed memory allocation in two functions

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 14:42:19 +0100 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/input/keyboard/gpio_keys.c| 4 +--- drivers/input/ke

Re: [PATCH v2 4/8] x86/spec_ctrl: Add sysctl knobs to enable/disable SPEC_CTRL feature

2018-01-27 Thread Konrad Rzeszutek Wilk
On Mon, Jan 08, 2018 at 05:14:37PM +0100, Peter Zijlstra wrote: > On Mon, Jan 08, 2018 at 01:47:07PM +0100, Peter Zijlstra wrote: > > > a good suggestion, but we encountered some issues with it either > > > crashing the kernel at boot or not properly turning on/off. > > The below boots, but I lack

Re: [RFC] apparent bogosity in unregister_ftrace_function_probe_func()

2018-01-27 Thread Dmitry Safonov
Hi Alexander, 2018-01-27 3:17 GMT+00:00 Al Viro : > It contains something very odd: > > func_g.type = filter_parse_regex(glob, strlen(glob), > &func_g.search, ¬); > func_g.len = strlen(func_g.search); >

RE: [PATCH v24 1/2] mm: support reporting free page blocks

2018-01-27 Thread Wang, Wei W
On Friday, January 26, 2018 11:00 PM, Michael S. Tsirkin wrote: > On Fri, Jan 26, 2018 at 11:29:15AM +0800, Wei Wang wrote: > > On 01/25/2018 09:41 PM, Michael S. Tsirkin wrote: > > > On Wed, Jan 24, 2018 at 06:42:41PM +0800, Wei Wang wrote: > > > > This patch adds support to walk through the free

Re: [PATCH v2 1/2] x86/retpoline: Simplify vmexit_fill_RSB()

2018-01-27 Thread Konrad Rzeszutek Wilk
On Sat, Jan 27, 2018 at 10:01:55AM +0100, Borislav Petkov wrote: > On Fri, Jan 26, 2018 at 11:20:39PM -0500, Konrad Rzeszutek Wilk wrote: > > BOINK? > > > > Really? > > There's always someone who's bound to get offended, right? So I better > change it to something boring, yes? https://www.networ

Re: Dell Vostro 3360 multimedia keys

2018-01-27 Thread Pali Rohár
On Tuesday 21 November 2017 19:58:24 Oleksandr Natalenko wrote: > Hi. > > On úterý 21. listopadu 2017 19:36:24 CET Pali Rohár wrote: > > Ok, if wmi_requires_smbios_request is really doing nothing, then it > > should not be used. It enables some QSET feature in Dell SMM mode which > > is for 2 lapt

Re: i8k_smm_func() takes enormous of time to execute

2018-01-27 Thread Pali Rohár
On Monday 04 December 2017 13:18:29 Pali Rohár wrote: > > > Your last patch in bugzilla looks ok, you add my Reviewed-by: Pali > > > Rohár > > > > Could you please advice on how to proceed further? I can submit all 3 > > patches (incl. yours two), to a ML. > > Now it is up to hwmon maintainers (

Re: [PATCH v2 0/6] wl1251: Fix MAC address for Nokia N900

2018-01-27 Thread Pali Rohár
On Friday 05 January 2018 02:45:10 Luis R. Rodriguez wrote: > On Tue, Jan 02, 2018 at 08:23:45PM +0100, Pali Rohár wrote: > > On Friday 10 November 2017 00:38:22 Pali Rohár wrote: > > > This patch series fix processing MAC address for wl1251 chip found in > > > Nokia N900. > > > > > > Changes sin

[PATCH] Input: adp5520-keys: Delete an error message for a failed memory allocation in adp5520_keys_probe()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 15:15:52 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/input/keyboard/adp5520-keys.c | 4 +--- 1 file changed, 1 inse

Re: [PATCH 20/21] Kbuild, lto: Add Link Time Optimization support

2018-01-27 Thread Arnd Bergmann
On Sat, Jan 27, 2018 at 1:55 AM, Andi Kleen wrote: > On Sat, Jan 27, 2018 at 01:15:49AM +0100, Arnd Bergmann wrote: >> On Mon, Nov 27, 2017 at 10:34 PM, Andi Kleen wrote: >> > From: Andi Kleen >> > - Add a new LDFINAL variable that controls the final link >> > for vmlinux or module. In this case

Re: [PATCH v2 4/8] x86/spec_ctrl: Add sysctl knobs to enable/disable SPEC_CTRL feature

2018-01-27 Thread David Woodhouse
On Sat, 2018-01-27 at 08:59 -0500, Konrad Rzeszutek Wilk wrote: > On Mon, Jan 08, 2018 at 05:14:37PM +0100, Peter Zijlstra wrote: > > > > On Mon, Jan 08, 2018 at 01:47:07PM +0100, Peter Zijlstra wrote: > > > > > > > > > > > a good suggestion, but we encountered some issues with it either > > > >

[tip:timers/urgent] hrtimer: Reset hrtimer cpu base proper on CPU hotplug

2018-01-27 Thread tip-bot for Thomas Gleixner
Commit-ID: d5421ea43d30701e03cadc56a38854c36a8b4433 Gitweb: https://git.kernel.org/tip/d5421ea43d30701e03cadc56a38854c36a8b4433 Author: Thomas Gleixner AuthorDate: Fri, 26 Jan 2018 14:54:32 +0100 Committer: Thomas Gleixner CommitDate: Sat, 27 Jan 2018 15:12:22 +0100 hrtimer: Reset hrti

[PATCH] power: supply: bq27xxx: Update comments

2018-01-27 Thread Liu Xiang
The URL of bq27441-g1 is missing and bq27520-g4 is duplicated. Signed-off-by: Liu Xiang --- drivers/power/supply/bq27xxx_battery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/power/supply/bq27xxx_battery.c b/drivers/power/supply/bq27xxx_battery.c index 2de378

[PATCH] power: supply: bq27xxx: Add bq27411 support

2018-01-27 Thread Liu Xiang
According to the datasheet, bq27411 is similar to bq27421. Signed-off-by: Liu Xiang --- drivers/power/supply/bq27xxx_battery.c | 14 ++ include/linux/power/bq27xxx_battery.h | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/power/supply/bq27xxx_battery

[PATCH v2 3/5] ALSA: emu10k1: add optional debug printouts with DMA addresses

2018-01-27 Thread Maciej S. Szmigiero
When we get a IOMMU page fault for a emu10k1 device it is very hard to discover which of chip many DMA allocations triggered it (since on a IOMMU system the DMA address space is often very different from the CPU one). Let's add optional debug printouts providing this information. These debug print

[PATCH v2 1/5] ALSA: emu10k1: remove reserved_page

2018-01-27 Thread Maciej S. Szmigiero
The emu10k1-family chips need the first page (index 0) reserved in their page tables for some reason (every emu10k1 driver I've checked does this without much of an explanation). Using the first page for normal samples results in a broken playback. However, we already have a dummy page allocated -

[PATCH v2 5/5] ALSA: emu10k1: add a IOMMU workaround

2018-01-27 Thread Maciej S. Szmigiero
The Audigy 2 CA0102 chip (but most likely others from the emu10k1 family, too) has a problem that from time to time it likes to do few DMA reads a bit beyond its normal allocation and gets very confused if these reads get blocked by a IOMMU. For the first (reserved) page this happens multiple time

[PATCH v2 2/5] ALSA: emu10k1: use dma_set_mask_and_coherent()

2018-01-27 Thread Maciej S. Szmigiero
We have been calling dma_set_mask() and then dma_set_coherent_mask() with the same value, but there is a dma_set_mask_and_coherent() function that does exactly that so let's use it instead. Signed-off-by: Maciej S. Szmigiero --- Changes from v1: None in this patch. sound/pci/emu10k1/emu10k1_mai

[PATCH v2 4/5] ALSA: emu10k1: make sure synth DMA pages are allocated with DMA functions

2018-01-27 Thread Maciej S. Szmigiero
Commit a5003fc04113 ("[ALSA] emu10k1 - simplify page allocation for synth") switched from using the DMA allocator for synth DMA pages to manually calling alloc_page(). However, this usage has an implicit assumption that the DMA address space for the emu10k1-family chip is the same as the CPU physic

Re: [PATCH v12 10/16] platform/x86: dell-smbios: Introduce dispatcher for SMM calls

2018-01-27 Thread Pali Rohár
Hi! On Wednesday 01 November 2017 14:25:31 Mario Limonciello wrote: > This splits up the dell-smbios driver into two drivers: > * dell-smbios > * dell-smbios-smm > > dell-smbios can operate with multiple different dispatcher drivers to > perform SMBIOS operations. > > Also modify the interface t

Re: [PATCH v10 12/15] platform/x86: dell-smbios: Add filtering support

2018-01-27 Thread Pali Rohár
On Friday 05 January 2018 14:48:39 mario.limoncie...@dell.com wrote: > > > > -Original Message- > > From: platform-driver-x86-ow...@vger.kernel.org [mailto:platform-driver-x86- > > ow...@vger.kernel.org] On Behalf Of Pali Rohár > > Sent: Friday, January 5, 2018 8:44 AM > > To: Limonciello

Re: [PATCH 0/4] PCI: Add SPDX tags

2018-01-27 Thread Greg Kroah-Hartman
On Fri, Jan 26, 2018 at 03:32:17PM -0600, Bjorn Helgaas wrote: > b24413180f56 ("License cleanup: add SPDX GPL-2.0 license identifier to > files with no license") added SPDX GPL-2.0 tags to several PCI files. > > These patches add SPDX tags to almost all remaining PCI files. For ease of > reviewin

[PATCH] drm/radeon: adjust tested variable

2018-01-27 Thread Julia Lawall
Check the variable that was most recently initialized. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression x, y, f, g, e, m; statement S1,S2,S3,S4; @@ x = f(...); if (\(<+...x...+>\&e\)) S1 else S2 ( x = g(...); | m = g(...,&x,...); | y = g(..

[PATCH] firmware: tegra: adjust tested variable

2018-01-27 Thread Julia Lawall
Check the variable that was most recently initialized. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression x, y, f, g, e, m; statement S1,S2,S3,S4; @@ x = f(...); if (\(<+...x...+>\&e\)) S1 else S2 ( x = g(...); | m = g(...,&x,...); | y = g(..

[PATCH 0/2] Input-TurboGraFX: Adjustments for tgfx_attach()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 15:55:44 +0100 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation Improve a size determination drivers/input/joystick/turbografx.c | 6 ++

[PATCH 1/2] Input: turbografx: Delete an error message for a failed memory allocation in tgfx_attach()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 15:43:38 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/input/joystick/turbografx.c | 4 +--- 1 file changed, 1 insert

[PATCH 2/2] Input: turbografx: Improve a size determination in tgfx_attach()

2018-01-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 27 Jan 2018 15:46:24 +0100 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was det

Re: [PATCH] firmware: tegra: adjust tested variable

2018-01-27 Thread Mikko Perttunen
Reviewed-by: Mikko Perttunen On 01/27/2018 04:28 PM, Julia Lawall wrote: Check the variable that was most recently initialized. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression x, y, f, g, e, m; statement S1,S2,S3,S4; @@ x = f(...); if

[tip:x86/urgent] x86: Mark hpa as a "Designated Reviewer" for the time being

2018-01-27 Thread tip-bot for H. Peter Anvin
Commit-ID: 8a95b74d50825067fb6c8af7f9db03e711b1cb9d Gitweb: https://git.kernel.org/tip/8a95b74d50825067fb6c8af7f9db03e711b1cb9d Author: H. Peter Anvin AuthorDate: Thu, 25 Jan 2018 11:59:34 -0800 Committer: Ingo Molnar CommitDate: Sat, 27 Jan 2018 10:11:00 +0100 x86: Mark hpa as a "Desi

Re: [PATCH] x86: Mark hpa as a "Designated Reviewer" for the time being

2018-01-27 Thread Thomas Gleixner
Peter! On Thu, 25 Jan 2018, H. Peter Anvin wrote: > Due to some unfortunate events, I have not been directly involved in > the x86 kernel patch flow for a while now. I have also not been able > to ramp back up by now like I had hoped to, and after reviewing what I > will need to work on both int

Re: [PATCH] ARM: dts: imx25-pinfunc: Always set SION for SD CMD

2018-01-27 Thread Uwe Kleine-König
On Sat, Jan 27, 2018 at 01:07:52AM +0100, Benoît Thébaudeau wrote: > The eSDHC does not work properly if the SION bit is not set for the > bidirectional CMD signal, whatever the eSDHC instance and the selected > pad. Therefore, setting SION is mandatory for all eSDHC CMD ports. Do > this for MX25_P

Re: [lkp-robot] [tools/bpf] 8c417dc15f: BUG:sleeping_function_called_from_invalid_context_at_mm/slab.h

2018-01-27 Thread Yonghong Song
Thanks for reporting. This issue has been fixed by the below commit in bpf-next repo, which is waiting to be pulled into net-next. = commit 2310035fa03f651dd5b03f19a26a97512aa8842c Author: Yonghong Song Date: Mon Jan 22 22:53:51 2018 -0800 bpf: fix incorrect kmalloc usage in lpm_tr

  1   2   >