Re: [PATCH 30/32] tools lib bpf: Renaming pr_warning to pr_warn

2019-09-23 Thread Petr Mladek
On Mon 2019-09-23 10:20:39, Daniel Borkmann wrote: > On Sun, Sep 22, 2019 at 02:07:21PM -0700, Andrii Nakryiko wrote: > > On Fri, Sep 20, 2019 at 10:06 AM Kefeng Wang > > wrote: > > > > > > For kernel logging macro, pr_warning is completely removed and > > > replaced by pr_warn, using pr_warn in

Re: Kernel Concurrency Sanitizer (KCSAN)

2019-09-23 Thread Marco Elver
On Mon, 23 Sep 2019 at 10:59, Dmitry Vyukov wrote: > > On Mon, Sep 23, 2019 at 10:54 AM Boqun Feng wrote: > > > > On Mon, Sep 23, 2019 at 10:21:38AM +0200, Dmitry Vyukov wrote: > > > On Mon, Sep 23, 2019 at 6:31 AM Boqun Feng wrote: > > > > > > > > On Fri, Sep 20, 2019 at 04:54:21PM +0100, Will

Re: For review: pidfd_open(2) manual page

2019-09-23 Thread Florian Weimer
* Michael Kerrisk: > SYNOPSIS >int pidfd_open(pid_t pid, unsigned int flags); Should this mention for pid_t? > ERRORS >EINVAL flags is not 0. > >EINVAL pid is not valid. > >ESRCH The process specified by pid does not exist. Presumably, EMFILE and ENFILE are

Re: [PATCH v4 1/2] soc/tegra: pmc: Query PCLK clock rate at probe time

2019-09-23 Thread Jon Hunter
On 04/08/2019 21:29, Dmitry Osipenko wrote: > It is possible to get a lockup if kernel decides to enter LP2 cpuidle > from some clk-notifier, in that case CCF's "prepare" mutex is kept locked > and thus clk_get_rate(pclk) blocks on the same mutex with interrupts being > disabled. > >

Re: [PATCH] futex: robust futex maybe never be awaked, on rare situation.

2019-09-23 Thread Michal Hocko
[Cc more futex people] On Mon 23-09-19 11:18:20, Yunfeng Cui wrote: > I use model checker find a issue of robust and pi futex. On below > situation, the owner can't find something in pi_state_list, while > the requester will be blocked, never be awaked. > > CPU0 CPU1 >

Re: [PATCH RESEND] gen-insn-attr-x86.awk: Fix regexp warnings

2019-09-23 Thread Alexander Kapshuk
On Mon, Sep 23, 2019 at 1:31 PM Borislav Petkov wrote: > > + Masami. > > On Sun, Sep 22, 2019 at 06:03:28PM +0300, Alexander Kapshuk wrote: > > This patch fixes the regexp warnings shown below: > > Avoid having "This patch" or "This commit" in the commit message. It is > tautologically useless. >

Re: [PATCH] mm/hotplug: Reorder memblock_[free|remove]() calls in try_remove_memory()

2019-09-23 Thread David Hildenbrand
On 23.09.19 12:52, Michal Hocko wrote: > On Mon 16-09-19 11:17:37, Anshuman Khandual wrote: >> In add_memory_resource() the memory range to be hot added first gets into >> the memblock via memblock_add() before arch_add_memory() is called on it. >> Reverse sequence should be followed during memory

Re: [PATCH] mm/hotplug: Reorder memblock_[free|remove]() calls in try_remove_memory()

2019-09-23 Thread Michal Hocko
On Mon 16-09-19 11:17:37, Anshuman Khandual wrote: > In add_memory_resource() the memory range to be hot added first gets into > the memblock via memblock_add() before arch_add_memory() is called on it. > Reverse sequence should be followed during memory hot removal which already > is being

[PATCH] usb: hub add filter for device with specific VID

2019-09-23 Thread Ran Wang
USB 2.0 Embedded Host PET Automated Test (CH6) 6.7.23 A-UUT "Unsupported Device" Message require to stop enumerating device with VID=0x1a0a PID=0x0201 and pop message to declare this device is not supported. Signed-off-by: Ran Wang --- drivers/usb/core/hub.c | 12 1 file changed,

Sveiki

2019-09-23 Thread Daniel Philip Mark
Sveiki Dārgais draugs, Es esmu barr.Daniel Philip Mark, personīgais advokāts Late Mr.J.B. Es sazinājos ar jums, ņemot vērā naudas līdzekļu iemaksu (USD 10,5 miljoni) banka, uz kuru kopš mana klienta, kurš i., nāves nav atsaukts ticiet, ka esat jūsu radinieks, jo jums ir tāds pats uzvārds ar

Re: [PATCH] printk: Fix unnecessary returning broken pipe error from devkmsg_read

2019-09-23 Thread He Zhe
On 9/23/19 6:05 PM, Sergey Senozhatsky wrote: > On (09/18/19 21:31), zhe...@windriver.com wrote: >> When users read the buffer from start, there is no need to return -EPIPE >> since the possible overflows will not affect the output. >> > [..] >> -if (user->seq < log_first_seq) { >> +if

Re: [for-next][PATCH 7/8] tracing/probe: Reject exactly same probe event

2019-09-23 Thread Srikar Dronamraju
Hey Masami, Steven > > +static bool trace_kprobe_has_same_kprobe(struct trace_kprobe *orig, > + struct trace_kprobe *comp) > +{ > + struct trace_probe_event *tpe = orig->tp.event; > + struct trace_probe *pos; > + int i; > + > +

Re: [PATCH RFC v3 1/9] ACPI: NUMA: export pxm_to_node

2019-09-23 Thread David Hildenbrand
On 23.09.19 12:36, Michal Hocko wrote: > On Mon 23-09-19 12:13:11, David Hildenbrand wrote: >> On 19.09.19 16:22, David Hildenbrand wrote: >>> Will be needed by virtio-mem to identify the node from a pxm. >>> >>> Cc: "Rafael J. Wysocki" >>> Cc: Len Brown >>> Cc: linux-a...@vger.kernel.org >>>

[PATCH] scsi: qedf: Add port_id getter

2019-09-23 Thread Daniel Wagner
Add qedf_get_host_port_id() to the transport template. The fc_transport_template initializes the port_id member to the default value of -1. The new getter ensures that the sysfs entry shows the current value and not the default one, e.g by using 'lsscsi -H -t' Signed-off-by: Daniel Wagner ---

Re: [PATCH RFC v3 1/9] ACPI: NUMA: export pxm_to_node

2019-09-23 Thread Michal Hocko
On Mon 23-09-19 12:13:11, David Hildenbrand wrote: > On 19.09.19 16:22, David Hildenbrand wrote: > > Will be needed by virtio-mem to identify the node from a pxm. > > > > Cc: "Rafael J. Wysocki" > > Cc: Len Brown > > Cc: linux-a...@vger.kernel.org > > Signed-off-by: David Hildenbrand > > --- >

Re: [PATCH RESEND] gen-insn-attr-x86.awk: Fix regexp warnings

2019-09-23 Thread Borislav Petkov
+ Masami. On Sun, Sep 22, 2019 at 06:03:28PM +0300, Alexander Kapshuk wrote: > This patch fixes the regexp warnings shown below: Avoid having "This patch" or "This commit" in the commit message. It is tautologically useless. Also, do $ git grep 'This patch' Documentation/process for more

Re: [RFC patch 10/15] x86/entry: Move irq tracing to C code

2019-09-23 Thread Thomas Gleixner
On Mon, 23 Sep 2019, Peter Zijlstra wrote: > On Thu, Sep 19, 2019 at 05:03:24PM +0200, Thomas Gleixner wrote: > > To prepare for converting the exit to usermode code to the generic version, > > move the irqflags tracing into C code. > > > > Signed-off-by: Thomas Gleixner > > --- > >

Re: [PATCH RESEND] gen-insn-attr-x86.awk: Fix regexp warnings

2019-09-23 Thread Borislav Petkov
On Mon, Sep 23, 2019 at 12:56:14PM +0300, Alexander Kapshuk wrote: > On Mon, Sep 23, 2019 at 12:19 PM Borislav Petkov wrote: > > > > On Sun, Sep 22, 2019 at 06:03:28PM +0300, Alexander Kapshuk wrote: > > > This patch fixes the regexp warnings shown below: > > > GEN

Re: [PATCH 01/17] x86: spec_ctrl: fix SPEC_CTRL initialization after kexec

2019-09-23 Thread Paolo Bonzini
On 20/09/19 23:24, Andrea Arcangeli wrote: > We can't assume the SPEC_CTRL msr is zero at boot because it could be > left enabled by a previous kernel booted with > spec_store_bypass_disable=on. > > Without this fix a boot with spec_store_bypass_disable=on followed by > a kexec boot with

Re: [PATCH 13/17] KVM: monolithic: x86: drop the kvm_pmu_ops structure

2019-09-23 Thread Paolo Bonzini
On 20/09/19 23:25, Andrea Arcangeli wrote: > Cleanup after this was finally left fully unused. > > Signed-off-by: Andrea Arcangeli > --- > arch/x86/include/asm/kvm_host.h | 3 --- > arch/x86/kvm/pmu.h | 19 --- > arch/x86/kvm/pmu_amd.c | 15 ---

[PATCH v5 1/3] led: make led_set_brightness_sync() use led_set_brightness_nosleep()

2019-09-23 Thread Jean-Jacques Hiblot
Making led_set_brightness_sync() use led_set_brightness_nosleep() has 2 advantages: - works for LED controllers that do not provide brightness_set_blocking() - When the blocking callback is used, it uses the workqueue to update the LED state, removing the need for mutual exclusion between

Re: printk() + memory offline deadlock (WAS Re: page_alloc.shuffle=1 + CONFIG_PROVE_LOCKING=y = arm64 hang)

2019-09-23 Thread Sergey Senozhatsky
On (09/18/19 12:10), Qian Cai wrote: [..] > > So you have debug objects enabled. Right? This thing does not behave > > when it comes to printing. debug_objects are slightly problematic. > > Yes, but there is an also a similar splat without the debug_objects. It looks > like anything try to

[PATCH v5 0/3] leds: Add control of the voltage/current regulator to the LED core

2019-09-23 Thread Jean-Jacques Hiblot
This series makes it possible for the LED core to manage the power supply of a LED. It uses the regulator API to disable/enable the power if when the LED is turned on/off. This is especially useful in situations where the LED driver/controller is not supplying the power. Because updating a

[PATCH v5 2/3] dt-bindings: leds: document the "power-supply" property

2019-09-23 Thread Jean-Jacques Hiblot
Most of the LEDs are powered by a voltage/current regulator. Describing it in the device-tree makes it possible for the LED core to enable/disable it when needed. Signed-off-by: Jean-Jacques Hiblot --- Documentation/devicetree/bindings/leds/common.txt | 6 ++ 1 file changed, 6 insertions(+)

[PATCH v5 3/3] leds: Add control of the voltage/current regulator to the LED core

2019-09-23 Thread Jean-Jacques Hiblot
A LED is usually powered by a voltage/current regulator. Let the LED core know about it. This allows the LED core to turn on or off the power supply as needed. Signed-off-by: Jean-Jacques Hiblot --- drivers/leds/led-class.c | 17 +++ drivers/leds/led-core.c | 65

Re: [PATCH 02/17] KVM: monolithic: x86: convert the kvm_x86_ops methods to external functions

2019-09-23 Thread Paolo Bonzini
On 20/09/19 23:24, Andrea Arcangeli wrote: > diff --git a/arch/x86/kvm/svm_ops.c b/arch/x86/kvm/svm_ops.c > new file mode 100644 > index ..2aaabda92179 > --- /dev/null > +++ b/arch/x86/kvm/svm_ops.c > @@ -0,0 +1,672 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + *

Re: [PATCH 14/17] KVM: monolithic: x86: inline more exit handlers in vmx.c

2019-09-23 Thread Paolo Bonzini
On 20/09/19 23:25, Andrea Arcangeli wrote: > They can be called directly more efficiently, so we can as well mark > some of them inline in case gcc doesn't decide to inline them. What is the output of size(1) before and after? Paolo > Signed-off-by: Andrea Arcangeli > --- >

[PATCH v6 0/2] Add support for Layerscape external interrupt lines

2019-09-23 Thread Kurt Kanzenbach
Hi, this is a respin of getting the support for the Layerscape's external interrupt lines. The last version from Rasmus Villemoes can be found here: https://lkml.kernel.org/r/20180223210901.23480-1-rasmus.villem...@prevas.dk/ Rasmus Villemoes ran out of time, so I prepared v6. Changes since

[PATCH v6 2/2] dt/bindings: Add bindings for Layerscape external irqs

2019-09-23 Thread Kurt Kanzenbach
From: Rasmus Villemoes This adds Device Tree binding documentation for the external interrupt lines with configurable polarity present on some Layerscape SOCs. Signed-off-by: Rasmus Villemoes Signed-off-by: Kurt Kanzenbach --- Changes since v5: - Add #address-cells and #size-cells to

Re: [PATCH 07/17] KVM: monolithic: x86: adjust the section prefixes

2019-09-23 Thread Paolo Bonzini
On 20/09/19 23:24, Andrea Arcangeli wrote: > Adjusts the section prefixes of some KVM common code function because > with the monolithic methods the section checker can now do a more > accurate analysis at build time and this allows to build without > CONFIG_SECTION_MISMATCH_WARN_ONLY=n. > >

[PATCH v6 1/2] irqchip: Add support for Layerscape external interrupt lines

2019-09-23 Thread Kurt Kanzenbach
From: Rasmus Villemoes The LS1021A allows inverting the polarity of six interrupt lines IRQ[0:5] via the scfg_intpcr register, effectively allowing IRQ_TYPE_LEVEL_LOW and IRQ_TYPE_EDGE_FALLING for those. We just need to check the type, set the relevant bit in INTPCR accordingly, and fixup the

Re: [PATCH RFC v3 1/9] ACPI: NUMA: export pxm_to_node

2019-09-23 Thread David Hildenbrand
On 19.09.19 16:22, David Hildenbrand wrote: > Will be needed by virtio-mem to identify the node from a pxm. > > Cc: "Rafael J. Wysocki" > Cc: Len Brown > Cc: linux-a...@vger.kernel.org > Signed-off-by: David Hildenbrand > --- > drivers/acpi/numa.c | 1 + > 1 file changed, 1 insertion(+) > >

Re: [PATCH] arm64: use generic free_initrd_mem()

2019-09-23 Thread Anshuman Khandual
On 09/16/2019 07:25 PM, Mike Rapoport wrote: > (added linux-arch) > > On Mon, Sep 16, 2019 at 08:23:29AM -0400, Laura Abbott wrote: >> On 9/16/19 8:21 AM, Mike Rapoport wrote: >>> From: Mike Rapoport >>> >>> arm64 calls memblock_free() for the initrd area in its implementation of >>>

[PATCH v2 1/2] mmc: sdhci: Let drivers define their DMA mask

2019-09-23 Thread Thierry Reding
From: Adrian Hunter Add host operation ->set_dma_mask() so that drivers can define their own DMA masks. Signed-off-by: Adrian Hunter Tested-by: Nicolin Chen Signed-off-by: Thierry Reding --- Changes in v2: - add Tested-by tag from Nicolin drivers/mmc/host/sdhci.c | 12

[PATCH v2 2/2] mmc: tegra: Implement ->set_dma_mask()

2019-09-23 Thread Thierry Reding
From: Nicolin Chen The SDHCI controller on Tegra186 supports 40-bit addressing, which is usually enough to address all of system memory. However, if the SDHCI controller is behind an IOMMU, the address space can go beyond. This happens on Tegra186 and later where the ARM SMMU has an input

Re: [PATCH 0/6] add the DDR clock controller on Meson8 and Meson8b

2019-09-23 Thread Jerome Brunet
On Sat 21 Sep 2019 at 17:18, Martin Blumenstingl wrote: > Meson8 and Meson8b SoCs embed a DDR clock controller in their MMCBUS > registers. This series: > - adds support for this DDR clock controller (patches 0 and 1) > - wires up the DDR PLL as input for two audio clocks (patches 2 and 3)

Re: [PATCH] printk: Fix unnecessary returning broken pipe error from devkmsg_read

2019-09-23 Thread Sergey Senozhatsky
On (09/18/19 21:31), zhe...@windriver.com wrote: > > When users read the buffer from start, there is no need to return -EPIPE > since the possible overflows will not affect the output. > [..] > - if (user->seq < log_first_seq) { > + if (user->seq == 0) { > + user->seq =

[PATCH] leds: tlc591xx: update the maximum brightness

2019-09-23 Thread Jean-Jacques Hiblot
The TLC chips actually offer 257 levels: - 0: led OFF - 1-255: Led dimmed is using a PWM. The duty cycle range from 0.4% to 99.6% - 256: led fully ON Signed-off-by: Jean-Jacques Hiblot --- drivers/leds/leds-tlc591xx.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

Re: [PATCH 10/17] KVM: monolithic: x86: use the external functions instead of kvm_x86_ops

2019-09-23 Thread Paolo Bonzini
On 20/09/19 23:25, Andrea Arcangeli wrote: > Now that the new methods are plugged in and they are functional use > them instead of invoking the pointer to functions through kvm_x86_ops. > > Signed-off-by: Andrea Arcangeli > --- > arch/x86/include/asm/kvm_host.h | 10 +- > arch/x86/kvm/cpuid.c

Re: [PATCH] quota: code cleanup for hash bits calculation

2019-09-23 Thread Jan Kara
On Sat 21-09-19 09:56:28, Chengguang Xu wrote: > Code cleanup for hash bits calculation by > calling rounddown_pow_of_two() and ilog2() > > Signed-off-by: Chengguang Xu Thanks for the patch! One comment below: > diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c > index

Re: [PATCH v4 2/2] leds: tlc591xx: use devm_led_classdev_register_ext()

2019-09-23 Thread Jean-Jacques Hiblot
On 20/09/2019 22:29, Jacek Anaszewski wrote: Hi Jean, Thank you for the update. On 9/20/19 1:58 PM, Jean-Jacques Hiblot wrote: Use devm_led_classdev_register_ext() to pass the fwnode to the LED core. The fwnode can then be used by the firmware core to create meaningful names.

Re: [PATCH 16/17] KVM: retpolines: x86: eliminate retpoline from svm.c exit handlers

2019-09-23 Thread Paolo Bonzini
On 20/09/19 23:25, Andrea Arcangeli wrote: > +#ifdef CONFIG_RETPOLINE > + if (exit_code == SVM_EXIT_MSR) > + return msr_interception(svm); > + else if (exit_code == SVM_EXIT_VINTR) > + return interrupt_window_interception(svm); > + else if (exit_code ==

Re: [PATCH 15/17] KVM: retpolines: x86: eliminate retpoline from vmx.c exit handlers

2019-09-23 Thread Paolo Bonzini
On 23/09/19 11:31, Vitaly Kuznetsov wrote: > +#ifdef CONFIG_RETPOLINE > + if (exit_reason == EXIT_REASON_MSR_WRITE) > + return handle_wrmsr(vcpu); > + else if (exit_reason == EXIT_REASON_PREEMPTION_TIMER) > + return

Re: [PATCH RESEND] gen-insn-attr-x86.awk: Fix regexp warnings

2019-09-23 Thread Alexander Kapshuk
On Mon, Sep 23, 2019 at 12:19 PM Borislav Petkov wrote: > > On Sun, Sep 22, 2019 at 06:03:28PM +0300, Alexander Kapshuk wrote: > > This patch fixes the regexp warnings shown below: > > GEN /home/sasha/torvalds/tools/objtool/arch/x86/lib/inat-tables.c > > awk:

Re: pci: endpoint test BUG

2019-09-23 Thread Lorenzo Pieralisi
On Sat, Sep 21, 2019 at 10:04:55AM +0800, Hillf Danton wrote: > > > > >> It will be resent if no one saw the message. > > > > > > I didn't see it and I can't find it on lore.kernel.org/linux-pci/. > > > > > Respin, git send-email works/jj/pci-epf-uaf.txt > > ... > > From: Hillf Danton >

Re: [PATCH] seccomp: remove unused arg from secure_computing()

2019-09-23 Thread Borislav Petkov
On Fri, Sep 20, 2019 at 03:19:09PM +0200, Christian Brauner wrote: > While touching seccomp code I realized that the struct seccomp_data > argument to secure_computing() seems to be unused by all current > callers. So let's remove it unless there is some subtlety I missed. > Note, I only tested

[PATCH] ACPICA: Introduce acpi_load_table_with_index()

2019-09-23 Thread Nikolaus Voss
For unloading an ACPI table, it is necessary to provide the index of the table. The method intended for dynamically loading or hotplug addition of tables, acpi_load_table(), does not provide this information, so a new function acpi_load_table_with_index() with the same functionality, but an

Re: [PATCH -next] fuse: Make fuse_args_to_req static

2019-09-23 Thread Miklos Szeredi
On Mon, Sep 23, 2019 at 7:53 AM YueHaibing wrote: > > Fix sparse warning: > > fs/fuse/dev.c:468:6: warning: symbol 'fuse_args_to_req' was not declared. > Should it be static? Thanks, applied. Miklos

Re: Re: KASAN: use-after-free Read in usb_anchor_resume_wakeups

2019-09-23 Thread syzbot
On Tue, Jul 9, 2019 at 2:27 PM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:7829a896 usb-fuzzer: main usb gadget fuzzer driver > git tree: https://github.com/google/kasan.git usb-fuzzer > console output:

Re: KASAN: use-after-free Read in usb_anchor_resume_wakeups

2019-09-23 Thread Peter Chen
> On Tue, Jul 9, 2019 at 2:27 PM syzbot > wrote: > > > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:7829a896 usb-fuzzer: main usb gadget fuzzer driver > > git tree: https://github.com/google/kasan.git usb-fuzzer > > console output:

Re: [PATCH 15/17] KVM: retpolines: x86: eliminate retpoline from vmx.c exit handlers

2019-09-23 Thread Vitaly Kuznetsov
Andrea Arcangeli writes: > It's enough to check the exit value and issue a direct call to avoid > the retpoline for all the common vmexit reasons. > > Signed-off-by: Andrea Arcangeli > --- > arch/x86/kvm/vmx/vmx.c | 24 ++-- > 1 file changed, 22 insertions(+), 2

Re: [PATCH v1 0/3] mm/memory_hotplug: Export generic_online_page()

2019-09-23 Thread David Hildenbrand
On 23.09.19 10:58, Michal Hocko wrote: > On Fri 20-09-19 10:17:54, David Hildenbrand wrote: >> On 09.09.19 13:48, David Hildenbrand wrote: >>> Based on linux/next + "[PATCH 0/3] Remove __online_page_set_limits()" >>> >>> Let's replace the __online_page...() functions by generic_online_page(). >>>

Re: [PATCH 4/5] clk: meson: meson8b: don't register the XTAL clock when provided via OF

2019-09-23 Thread Jerome Brunet
On Sat 21 Sep 2019 at 17:12, Martin Blumenstingl wrote: > The XTAL clock is an actual crystal on the PCB. Thus the meson8b clock > driver should not register the XTAL clock - instead it should be > provided via .dts and then passed to the clock controller. > > Skip the registration of the XTAL

[PATCH] sched/core: Remove double update_max_interval() call on CPU startup

2019-09-23 Thread Valentin Schneider
update_max_interval() is called in both CPUHP_AP_SCHED_STARTING's startup and teardown callbacks, but it turns out it's also called at the end of the startup callback of CPUHP_AP_ACTIVE (which is further down the startup sequence). There's no point in repeating this interval update in the startup

Re: [PATCH 0/5] provide the XTAL clock via OF on Meson8/8b/8m2

2019-09-23 Thread Jerome Brunet
On Sat 21 Sep 2019 at 17:12, Martin Blumenstingl wrote: > So far the HHI clock controller has been providing the XTAL clock on > Amlogic Meson8/Meson8b/Meson8m2 SoCs. > This is not correct because the XTAL is actually a crystal on the > boards and the SoC has a dedicated input for it. > > This

Re: EDAC: Armada XP: Use devm_platform_ioremap_resource() in two functions

2019-09-23 Thread Markus Elfring
> Which semantic patch did you use here? I suggest to take another look at details around background information on a subject like “Coccinelle: api: add devm_platform_ioremap_resource script”. https://lore.kernel.org/r/2cacd712-a8b8-6471-a9b4-23ba54434...@web.de/

RE: [PATCH] thermal: qoriq: add thermal monitor unit version 2 support

2019-09-23 Thread Andy Tang
Hi Rui, Edubezval, Would you please review this patch? BR, Andy > -Original Message- > From: Andy Tang > Sent: 2019年8月29日 16:38 > To: 'edubez...@gmail.com' ; 'rui.zh...@intel.com' > > Cc: 'daniel.lezc...@linaro.org' ; Leo Li > ; 'linux...@vger.kernel.org' > ;

Re: [PATCH v3 2/3] media: i2c: Add IMX290 CMOS image sensor driver

2019-09-23 Thread Sakari Ailus
Hi Manivannan, On Fri, Aug 30, 2019 at 02:49:42PM +0530, Manivannan Sadhasivam wrote: > Add driver for Sony IMX290 CMOS image sensor driver. The driver only > supports I2C interface for programming and MIPI CSI-2 for sensor output. > > Signed-off-by: Manivannan Sadhasivam > --- >

Re: [PATCH 2/2] x86/mm: replace a goto by merging two if clause

2019-09-23 Thread Peter Zijlstra
On Thu, Sep 19, 2019 at 10:08:44AM +0800, Wei Yang wrote: > There is only one place to use good_area jump, which could be reduced by > merging the following two if clause. > > Signed-off-by: Wei Yang > --- > arch/x86/mm/fault.c | 11 +-- > 1 file changed, 5 insertions(+), 6 deletions(-)

Re: linux-next: Tree for Sep 18 (objtool)

2019-09-23 Thread Peter Zijlstra
On Wed, Sep 18, 2019 at 09:04:21PM -0700, Randy Dunlap wrote: > On 9/18/19 3:10 PM, Mark Brown wrote: > > Hi all, > > > > Changes since 20190917: > > > > on x86_64: > > drivers/gpu/drm/i915/gem/i915_gem_execbuffer.o: warning: objtool: > i915_gem_execbuffer2_ioctl()+0x2fb: call to

Re: [PATCH RESEND] gen-insn-attr-x86.awk: Fix regexp warnings

2019-09-23 Thread Borislav Petkov
On Sun, Sep 22, 2019 at 06:03:28PM +0300, Alexander Kapshuk wrote: > This patch fixes the regexp warnings shown below: > GEN /home/sasha/torvalds/tools/objtool/arch/x86/lib/inat-tables.c > awk: ../arch/x86/tools/gen-insn-attr-x86.awk:260: warning: regexp escape > sequence `\:' is not a known

Re: [PATCH 1/4] pwm: mxs: implement ->apply

2019-09-23 Thread Uwe Kleine-König
Hello, [expanded the recipents to include RMK and the clk list] On Mon, Sep 23, 2019 at 11:04:39AM +0200, Rasmus Villemoes wrote: > On 23/09/2019 10.24, Uwe Kleine-König wrote: > > Also there is a bug already in .config: You are not supposed to call > > clk_get_rate if the clk might be off. > >

Re: [PATCH v4 1/3] led: make led_set_brightness_sync() use led_set_brightness_nosleep()

2019-09-23 Thread Jean-Jacques Hiblot
Hi Jacek, On 20/09/2019 23:10, Jacek Anaszewski wrote: Hi Jean, On 9/20/19 2:25 PM, Jean-Jacques Hiblot wrote: Making led_set_brightness_sync() use led_set_brightness_nosleep() has 2 advantages: - works for LED controllers that do not provide brightness_set_blocking() - When the blocking

RE: [PATCH] vhost: It's better to use size_t for the 3rd parameter of vhost_exceeds_weight()

2019-09-23 Thread wangxu (AE)
Hi Michael Thanks for your fast reply. As the following code, the 2nd branch of iov_iter_advance() does not check if i->count < size, when this happens, i->count -= size may cause len exceed INT_MAX, and then total_len exceed INT_MAX. handle_tx_copy() ->

[PATCH] arm64: errata: Update stale comment

2019-09-23 Thread Thierry Reding
From: Thierry Reding Commit 73f381660959 ("arm64: Advertise mitigation of Spectre-v2, or lack thereof") renamed the caller of the install_bp_hardening_cb() function but forgot to update a comment, which can be confusing when trying to follow the code flow. Fixes: 73f381660959 ("arm64: Advertise

Re: [PATCH v1 2/2] drm/panel: simple: add display timings for logic technologies displays

2019-09-23 Thread Philippe Schenker
On Fri, 2019-09-20 at 09:54 +0200, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Add display timings for the following 3 display panels manufactured by > Logic Technologies Limited: > > - LT161010-2NHC e.g. as found in the Toradex Capacitive Touch Display > 7" Parallel [1] > -

For review: pidfd_send_signal(2) manual page

2019-09-23 Thread Michael Kerrisk (man-pages)
Hello Christian and all, Below, I have the rendered version of the current draft of the pidfd_send_signal(2) manual page that I have written. The page source can be found in a Git branch at: https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/log/?h=draft_pidfd I would be pleased to

For review: pidfd_open(2) manual page

2019-09-23 Thread Michael Kerrisk (man-pages)
Hello Christian and all, Below, I have the rendered version of the current draft of the pidfd_open(2) manual page that I have written. The page source can be found in a Git branch at: https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/log/?h=draft_pidfd I would be pleased to receive

Re: [PATCH] ACPICA: make acpi_load_table() return table index

2019-09-23 Thread Nikolaus Voss
On Thu, 19 Sep 2019, Rafael J. Wysocki wrote: On Thursday, September 12, 2019 10:07:42 AM CEST Nikolaus Voss wrote: For unloading an ACPI table, it is necessary to provide the index of the table. The method intended for dynamically loading or hotplug addition of tables, acpi_load_table(),

Re: [PATCH 1/3] HID: google: whiskers: more robust tablet mode detection

2019-09-23 Thread Jiri Kosina
On Sun, 15 Sep 2019, Dmitry Torokhov wrote: > > > The USB interface may get detected before the platform/EC one, so let's > > > note the state of the base (if we receive event) and use it to correctly > > > initialize the tablet mode switch state. > > > > > > Also let's start the HID interface

Re: [PATCH v3 3/3] MAINTAINERS: Add entry for IMX290 CMOS image sensor driver

2019-09-23 Thread Sakari Ailus
On Fri, Aug 30, 2019 at 02:49:43PM +0530, Manivannan Sadhasivam wrote: > Add MAINTAINERS entry for Sony IMX290 CMOS image sensor driver. > > Signed-off-by: Manivannan Sadhasivam > --- > MAINTAINERS | 8 > 1 file changed, 8 insertions(+) > > diff --git a/MAINTAINERS b/MAINTAINERS >

Re: [RFC patch 01/15] entry: Provide generic syscall entry functionality

2019-09-23 Thread Mike Rapoport
On Thu, Sep 19, 2019 at 05:03:15PM +0200, Thomas Gleixner wrote: > On syscall entry certain work needs to be done conditionally like tracing, > seccomp etc. This code is duplicated in all architectures. > > Provide a generic version. > > Signed-off-by: Thomas Gleixner > --- > arch/Kconfig

Re: [PATCH] ata: libahci_platform: Use common error handling code in ahci_platform_get_resources()

2019-09-23 Thread Hans de Goede
Hi, On 22-09-2019 15:55, Markus Elfring wrote: From: Markus Elfring Date: Sun, 22 Sep 2019 15:42:46 +0200 Convert the call of the function “of_node_put” to another jump target so that it can be better reused at three places in this function. Signed-off-by: Markus Elfring Patch looks good

Re: [RFC PATCH for 5.4 0/7] Membarrier fixes and cleanups

2019-09-23 Thread Peter Zijlstra
On Thu, Sep 19, 2019 at 01:36:58PM -0400, Mathieu Desnoyers wrote: > Hi, > > Those series of fixes and cleanups are initially motivated by the report > of race in membarrier, which can load p->mm->membarrier_state after mm > has been freed (use-after-free). > The lot looks good to me; what do

Re: [PATCH 1/4] pwm: mxs: implement ->apply

2019-09-23 Thread Rasmus Villemoes
On 23/09/2019 10.24, Uwe Kleine-König wrote: > Hello Rasmus, > > On Mon, Sep 23, 2019 at 10:13:45AM +0200, Rasmus Villemoes wrote: >> In preparation for supporting setting the polarity, switch the driver >> to support the ->apply method. >> > > Maybe it would be easier to review when converting

RE: [PATCH] ACPICA: make acpi_load_table() return table index

2019-09-23 Thread Nikolaus Voss
On Thu, 19 Sep 2019, Moore, Robert wrote: -Original Message- From: Nikolaus Voss [mailto:n...@vosn.de] Sent: Wednesday, September 18, 2019 7:32 AM To: Moore, Robert Cc: Ferry Toth ; Shevchenko, Andriy ; Schmauss, Erik ; Rafael J. Wysocki ; Len Brown ; Jacek Anaszewski ; Pavel Machek

[PATCH v18 01/19] kunit: test: add KUnit test runner core

2019-09-23 Thread Brendan Higgins
Add core facilities for defining unit tests; this provides a common way to define test cases, functions that execute code which is under test and determine whether the code under test behaves as expected; this also provides a way to group together related test cases in test suites (here we call

[PATCH v18 04/19] kunit: test: add assertion printing library

2019-09-23 Thread Brendan Higgins
Add `struct kunit_assert` and friends which provide a structured way to capture data from an expectation or an assertion (introduced later in the series) so that it may be printed out in the event of a failure. Signed-off-by: Brendan Higgins Reviewed-by: Stephen Boyd --- include/kunit/assert.h

Re: Kernel Concurrency Sanitizer (KCSAN)

2019-09-23 Thread Dmitry Vyukov
On Mon, Sep 23, 2019 at 10:54 AM Boqun Feng wrote: > > On Mon, Sep 23, 2019 at 10:21:38AM +0200, Dmitry Vyukov wrote: > > On Mon, Sep 23, 2019 at 6:31 AM Boqun Feng wrote: > > > > > > On Fri, Sep 20, 2019 at 04:54:21PM +0100, Will Deacon wrote: > > > > Hi Marco, > > > > > > > > On Fri, Sep 20,

Re: [PATCH v1 0/3] mm/memory_hotplug: Export generic_online_page()

2019-09-23 Thread Michal Hocko
On Fri 20-09-19 10:17:54, David Hildenbrand wrote: > On 09.09.19 13:48, David Hildenbrand wrote: > > Based on linux/next + "[PATCH 0/3] Remove __online_page_set_limits()" > > > > Let's replace the __online_page...() functions by generic_online_page(). > > Hyper-V only wants to delay the actual

Re: Kernel Concurrency Sanitizer (KCSAN)

2019-09-23 Thread Boqun Feng
On Mon, Sep 23, 2019 at 10:21:38AM +0200, Dmitry Vyukov wrote: > On Mon, Sep 23, 2019 at 6:31 AM Boqun Feng wrote: > > > > On Fri, Sep 20, 2019 at 04:54:21PM +0100, Will Deacon wrote: > > > Hi Marco, > > > > > > On Fri, Sep 20, 2019 at 04:18:57PM +0200, Marco Elver wrote: > > > > We would like to

Re: [PATCH 3/4] pwm: mxs: add support for inverse polarity

2019-09-23 Thread Uwe Kleine-König
On Mon, Sep 23, 2019 at 10:45:56AM +0200, Rasmus Villemoes wrote: > On 23/09/2019 10.27, Uwe Kleine-König wrote: > > On Mon, Sep 23, 2019 at 10:13:47AM +0200, Rasmus Villemoes wrote: > >> > >> > >> + pol_bits = state->polarity == PWM_POLARITY_NORMAL ? > >> + PERIOD_POLARITY_NORMAL :

Re: [PATCH v2 1/3] cifs: Add support for root file systems

2019-09-23 Thread David Miller
Please resubmit this series when the net-next tree opens back up, and also with an appropriate "[PATCH 0/N]" header posting explaining what the patch series is doing, how it is doing it, and why it is doing it that way. Thank you.

Re: [PATCH v2 5/5] irqchip/irq-bcm7038-l1: Support brcm,int-fwd-mask

2019-09-23 Thread Marc Zyngier
On 22/09/2019 20:08, Florian Fainelli wrote: > > > On 9/22/2019 5:38 AM, Marc Zyngier wrote: >> On Fri, 13 Sep 2019 12:15:42 -0700 >> Florian Fainelli wrote: >> >>> On some specific chips like 7211 we need to leave some interrupts >>> untouched/forwarded to the VPU which is another agent in the

Re: [PATCH v3] mm: memory: fix /proc/meminfo reporting for MLOCK_ONFAULT

2019-09-23 Thread Michal Hocko
On Tue 17-09-19 14:35:50, Kirill A. Shutemov wrote: > On Tue, Sep 17, 2019 at 12:15:19PM +0200, Michal Hocko wrote: > > On Mon 16-09-19 18:26:19, Kirill A. Shutemov wrote: > > > On Fri, Sep 13, 2019 at 02:11:19PM -0700, Lucian Adrian Grijincu wrote: > > > > As pages are faulted in MLOCK_ONFAULT

Re: [PATCH] selftests/net: replace AF_MAX with INT_MAX in socket.c

2019-09-23 Thread David Miller
From: Marcelo Henrique Cerri Date: Mon, 16 Sep 2019 12:03:37 -0300 > Use INT_MAX instead of AF_MAX, since libc might have a smaller value > of AF_MAX than the kernel, what causes the test to fail. > > Signed-off-by: Marcelo Henrique Cerri Definitely need to fix this differently.

Re: [PATCH STABLE 4.9] x86, mm, gup: prevent get_page() race with munmap in paravirt guest

2019-09-23 Thread Vlastimil Babka
On 9/19/19 8:26 PM, Ben Hutchings wrote: On Mon, 2019-08-19 at 18:58 +0100, Vlastimil Babka wrote: [...] Hi, I'm sending this stable-only patch for consideration because it's probably unrealistic to backport the 4.13 switch to generic GUP. I can look at 4.4 and 3.16 if accepted. The RCU page

Re: [RFC patch 10/15] x86/entry: Move irq tracing to C code

2019-09-23 Thread Peter Zijlstra
On Thu, Sep 19, 2019 at 05:03:24PM +0200, Thomas Gleixner wrote: > To prepare for converting the exit to usermode code to the generic version, > move the irqflags tracing into C code. > > Signed-off-by: Thomas Gleixner > --- > arch/x86/entry/common.c | 10 ++ >

Re: [PATCH 3/4] pwm: mxs: add support for inverse polarity

2019-09-23 Thread Rasmus Villemoes
On 23/09/2019 10.27, Uwe Kleine-König wrote: > On Mon, Sep 23, 2019 at 10:13:47AM +0200, Rasmus Villemoes wrote: >> >> >> +pol_bits = state->polarity == PWM_POLARITY_NORMAL ? >> +PERIOD_POLARITY_NORMAL : PERIOD_POLARITY_INVERSE; >> + >> writel(duty_cycles << 16, >>

Re: [PATCH] memcg: Only record foreign writebacks with dirty pages when memcg is not disabled

2019-09-23 Thread Baoquan He
On 09/23/19 at 04:30pm, Baoquan He wrote: > --- > include/linux/memcontrol.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h > index ad8f1a397ae4..fa53f9d51205 100644 > --- a/include/linux/memcontrol.h > +++

Re: [RFC patch 03/15] x86/entry: Use generic syscall entry function

2019-09-23 Thread Thomas Gleixner
On Mon, 23 Sep 2019, Peter Zijlstra wrote: > On Fri, Sep 20, 2019 at 04:41:03PM -0700, Andy Lutomirski wrote: > > On Thu, Sep 19, 2019 at 8:09 AM Thomas Gleixner wrote: > > > > > > Replace the syscall entry work handling with the generic version, Provide > > > the necessary helper inlines to

Re: [PATCH] regulator: fixed: Prevent NULL pointer dereference when !CONFIG_OF

2019-09-23 Thread Philippe Schenker
On Sun, 2019-09-22 at 10:29 +0800, Axel Lin wrote: > Use of_device_get_match_data which has NULL test for match before > dereference match->data. Add NULL test for drvtype so it still works > for fixed_voltage_ops when !CONFIG_OF. > > Signed-off-by: Axel Lin Reviewed-by: Philippe Schenker >

Re: [PATCH 1/1] clk: meson: gxbb: let sar_adc_clk_div set the parent clock rate

2019-09-23 Thread Jerome Brunet
On Sat 21 Sep 2019 at 17:04, Martin Blumenstingl wrote: > The meson-saradc driver manually sets the input clock for > sar_adc_clk_sel. Update the GXBB clock driver (which is used on GXBB, > GXL and GXM) so the rate settings on sar_adc_clk_div are propagated up > to sar_adc_clk_sel which will

Re: bringing back media/zoran driver

2019-09-23 Thread Corentin Labbe
On Mon, Sep 23, 2019 at 10:05:09AM +0200, Hans Verkuil wrote: > On 9/21/19 7:03 PM, Corentin Labbe wrote: > > hello > > > > I am the owner of a zoran based DC10+ card. > > I am in the need of using it since yesterday and I found that its driver > > was removed. > > > > Reverting the removing

Re: [PATCH AUTOSEL 5.3 034/203] ASoC: meson: g12a-tohdmitx: override codec2codec params

2019-09-23 Thread Jerome Brunet
On Sun 22 Sep 2019 at 14:41, Sasha Levin wrote: > From: Jerome Brunet > > [ Upstream commit 2c4956bc1e9062e5e3c5ea7612294f24e6d4fbdd ] > > So far, forwarding the hw_params of the input to output relied on the > .hw_params() callback of the cpu side of the codec2codec link to be called > first.

[PATCH v2 1/3] arm64: dts: meson: add reset controller for Meson-A1 SoC

2019-09-23 Thread Xingyu Chen
Add the reset controller device of Meson-A1 SoC family Signed-off-by: Xingyu Chen Signed-off-by: Jianxin Pan --- arch/arm64/boot/dts/amlogic/meson-a1.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-a1.dtsi

[PATCH v2 2/3] dt-bindings: reset: add bindings for the Meson-A1 SoC Reset Controller

2019-09-23 Thread Xingyu Chen
Add DT bindings for the Meson-A1 SoC Reset Controller include file, and also slightly update documentation. Signed-off-by: Xingyu Chen Signed-off-by: Jianxin Pan --- .../bindings/reset/amlogic,meson-reset.yaml| 1 + include/dt-bindings/reset/amlogic,meson-a1-reset.h | 59

[PATCH v2 3/3] reset: add support for the Meson-A1 SoC Reset Controller

2019-09-23 Thread Xingyu Chen
The number of RESET registers and offset of RESET_LEVEL register for Meson-A1 are different from previous SoCs, In order to describe these differences, we introduce the struct meson_reset_param. Signed-off-by: Xingyu Chen Signed-off-by: Jianxin Pan Reviewed-by: Neil Armstrong ---

[PATCH v2 0/3] reset: meson: add Meson-A1 SoC support

2019-09-23 Thread Xingyu Chen
This patchset adds support for Meson-A1 SoC Reset Controller. A new struct meson_reset_param is introduced to describe the register differences between Meson-A1 and previous SoCs. This patchset is based on A1 DTBv4[0]. Changes since v1 at [1]: - rebase on linux-next - add Neil's Reviewed-by [0]

Re: [PATCH -next] scsi: hisi_sas: Make three functions static

2019-09-23 Thread John Garry
On 23/09/2019 06:40, YueHaibing wrote: Fix sparse warnings: drivers/scsi/hisi_sas/hisi_sas_main.c:3686:6: warning: symbol 'hisi_sas_debugfs_release' was not declared. Should it be static? drivers/scsi/hisi_sas/hisi_sas_main.c:3708:5: warning: symbol 'hisi_sas_debugfs_alloc' was not declared.

<    2   3   4   5   6   7   8   >