[PATCH 2/7] iio: adc: max1027: Make it optional to use interrupts

2019-10-02 Thread Miquel Raynal
The chip has a 'start conversion' and a 'end of conversion' pair of pins. They can be used but this is absolutely not mandatory as regular polling of the value is totally fine with the current internal clocking setup. Turn the interrupts optional and do not error out if they are not inquired in

[PATCH 5/7] iio: adc: max1027: Introduce 12-bit devices support

2019-10-02 Thread Miquel Raynal
Maxim's max12xx series is very similar to the max10xx series, with the difference of the measurements depth which is upgraded from 10 to 12 bits per channel. Everything else looks the same. Signed-off-by: Miquel Raynal --- drivers/iio/adc/Kconfig | 4 ++-- drivers/iio/adc/max1027.c | 41

[PATCH 6/7] dt-bindings: iio: adc: max1027: Mark interrupts as optional

2019-10-02 Thread Miquel Raynal
The chips have a 'start conversion' and a 'end of conversion' pair of pins. They can be used but this is absolutely not mandatory as regular polling is supported by the chip depending on its internal clocking setup. There is no physical reason to force the use of interrupts so turn them optional.

[PATCH 3/7] iio: adc: max1027: Reset the device at probe time

2019-10-02 Thread Miquel Raynal
All the registers are configured by the driver, let's reset the chip at probe time, avoiding any conflict with a possible earlier configuration. Signed-off-by: Miquel Raynal --- drivers/iio/adc/max1027.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/iio/adc/max1027.c

[PATCH 1/7] iio: adc: max1027: Add debugfs register read support

2019-10-02 Thread Miquel Raynal
Until now, only write operations were supported. Force two bytes read operation when reading from this register (might be wrong when reading the temperature, but will work with any other value). Signed-off-by: Miquel Raynal --- drivers/iio/adc/max1027.c | 7 +-- 1 file changed, 5

[PATCH 7/7] dt-bindings: iio: adc: max1027: Document max12xx series compatibles

2019-10-02 Thread Miquel Raynal
Update the bindings documentation with new Maxim ADCs compatibles. Signed-off-by: Miquel Raynal --- .../devicetree/bindings/iio/adc/max1027-adc.txt| 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/adc/max1027-adc.txt

[PATCH 0/7] Introduce max12xx ADC support

2019-10-02 Thread Miquel Raynal
Hello, here is a patchset updating the existing max1027.c driver (for 10-bit max1027/29/31 ADCs) with a few corrections/improvements and then introducing their 12-bit cousins named max1227/29/31. As on my hardware setup the "start conversion" and "end of conversion" pin are not wired (which is

[PATCH 4/7] iio: adc: max1027: Prepare the introduction of different resolutions

2019-10-02 Thread Miquel Raynal
Maxim's max1027/29/31 series returns the measured voltages with a resolution of 10 bits. There is a very similar series, max1227/29/31 which works very similarly but uses a resolution of 12 bits. Prepare the support for these chips by turning the 'depth' into a macro parameter instead of

Re: Lease semantic proposal

2019-10-02 Thread Jeff Layton
On Tue, 2019-10-01 at 11:17 -0700, Ira Weiny wrote: > On Mon, Sep 23, 2019 at 04:17:59PM -0400, Jeff Layton wrote: > > On Mon, 2019-09-23 at 12:08 -0700, Ira Weiny wrote: > > > Since the last RFC patch set[1] much of the discussion of supporting RDMA > > > with > > > FS DAX has been around the

[PATCH 1/3] gpio: max77620: Use correct unit for debounce times

2019-10-02 Thread Thierry Reding
From: Thierry Reding The gpiod_set_debounce() function takes the debounce time in microseconds. Adjust the switch/case values in the MAX77620 GPIO to use the correct unit. Signed-off-by: Thierry Reding --- drivers/gpio/gpio-max77620.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[PATCH 3/3] gpio: max77620: Fix interrupt handling

2019-10-02 Thread Thierry Reding
From: Timo Alho The interrupt-related register fields on the MAX77620 GPIO controller share registers with GPIO related fields. If the IRQ chip is implemented with regmap-irq, this causes the IRQ controller code to overwrite fields previously configured by the GPIO controller code. Two examples

[PATCH 2/3] gpio: max77620: Do not allocate IRQs upfront

2019-10-02 Thread Thierry Reding
From: Thierry Reding regmap_add_irq_chip() will try to allocate all of the IRQ descriptors upfront if passed a non-zero irq_base parameter. However, the intention is to allocate IRQ descriptors on an as-needed basis if possible. Pass 0 instead of -1 to fix that use-case. Signed-off-by: Thierry

Re: [PATCH 3/3] usb: host: xhci-tegra: use regulator_bulk_set_supply_names()

2019-10-02 Thread Thierry Reding
On Tue, Oct 01, 2019 at 03:23:33PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Use the new regulator helper instead of a for loop. > > Signed-off-by: Bartosz Golaszewski > --- > drivers/usb/host/xhci-tegra.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-)

Re: [PATCH 2/3] phy: tegra: use regulator_bulk_set_supply_names()

2019-10-02 Thread Thierry Reding
On Tue, Oct 01, 2019 at 03:23:32PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Use the new regulator helper instead of a for loop. > > Signed-off-by: Bartosz Golaszewski > --- > drivers/phy/tegra/xusb.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-)

Re: [PATCH 1/3] ahci: tegra: use regulator_bulk_set_supply_names()

2019-10-02 Thread Thierry Reding
On Tue, Oct 01, 2019 at 03:23:31PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Use the new regulator helper instead of a for loop. > > Signed-off-by: Bartosz Golaszewski > --- > drivers/ata/ahci_tegra.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-)

Re: [PATCH] perf/x86/intel/uncore: fix integer overflow on shift of a u32 integer

2019-10-02 Thread Mark Rutland
On Wed, Oct 02, 2019 at 12:55:45PM +0100, Colin King wrote: > From: Colin Ian King > > Shifting the u32 integer result of (pci_dword & SNR_IMC_MMIO_BASE_MASK) > will end up with an overflow when pci_dword greater than 0x1ff. Fix this > by casting pci_dword to a resource_size_t before masking and

[PATCH v2 1/2] x86,sched: Add support for frequency invariance

2019-10-02 Thread Giovanni Gherdovich
Implement arch_scale_freq_capacity() for 'modern' x86. This function is used by the scheduler to correctly account usage in the face of DVFS. The present patch addresses Intel processors specifically and has positive performance and performance-per-watt implications for the schedutil cpufreq

[PATCH v2 0/2] Add support for frequency invariance for (some) x86

2019-10-02 Thread Giovanni Gherdovich
v1 at https://lore.kernel.org/lkml/20190909024216.5942-1-ggherdov...@suse.cz/ Changes wrt v1: - add x86-specific implementation of arch_scale_freq_invariant() using a static key that checks for the availability of APERF and MPERF - refer to GOLDMONT_D instead of GOLDMONT_X, according to recent

[PATCH v2 2/2] cpufreq: intel_pstate: Conditional frequency invariant accounting

2019-10-02 Thread Giovanni Gherdovich
From: Srinivas Pandruvada intel_pstate has two operating modes: active and passive. In "active" mode, the in-built scaling governor is used and in "passive" mode, the driver can be used with any governor like "schedutil". In "active" mode the utilization values from schedutil is not used and

System hangs if NVMe/SSD is removed during suspend

2019-10-02 Thread Mika Westerberg
Hi Tejun, In a system with Thunderbolt connected NVMe or SSD entering system suspend, detaching the NVMe/SSD and resuming the system hangs (see also https://bugzilla.kernel.org/show_bug.cgi?id=204385). Triggering sysrq-w I see this: [ 113.093783] Workqueue: nvme-wq nvme_remove_dead_ctrl_work

Re: [PATCH 1/2] x86,sched: Add support for frequency invariance

2019-10-02 Thread Giovanni Gherdovich
On Tue, 2019-09-24 at 18:00 +0200, Peter Zijlstra wrote: > On Tue, Sep 24, 2019 at 04:03:32PM +0200, Peter Zijlstra wrote: > > > > I'll check what's the cost of static_cpu_has() and if it's non-negligible > > > I'll > > > do what you suggest (x86-specific version of arch_scale_freq_invariant().

Re: [PATCH 1/2] x86,sched: Add support for frequency invariance

2019-10-02 Thread Giovanni Gherdovich
On Tue, 2019-09-24 at 18:04 +0200, Peter Zijlstra wrote: > On Mon, Sep 09, 2019 at 04:42:15AM +0200, Giovanni Gherdovich wrote: > > > +static void intel_set_cpu_max_freq(void) > > +{ > > + /* > > +* TODO: add support for: > > +* > > +* - Xeon Phi (KNM, KNL) > > +* - Xeon

Re: [PATCH 1/2] x86,sched: Add support for frequency invariance

2019-10-02 Thread Giovanni Gherdovich
Hello Peter, late replies as I wasn't in the office last week. On Tue, 2019-09-24 at 18:30 +0200, Peter Zijlstra wrote: > On Mon, Sep 09, 2019 at 04:42:15AM +0200, Giovanni Gherdovich wrote: > > +static const struct x86_cpu_id has_turbo_ratio_group_limits[] = { > > +

Re: [PATCH v7] rtl8xxxu: Improve TX performance of RTL8723BU on rtl8xxxu driver

2019-10-02 Thread Chris Chiu
On Wed, Oct 2, 2019 at 12:30 PM Kalle Valo wrote: > New warning: > > drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c: In function > 'rtl8xxxu_refresh_rate_mask': > drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:5907:7: warning: this > statement may fall through

[PATCH v8] rtl8xxxu: Improve TX performance of RTL8723BU on rtl8xxxu driver

2019-10-02 Thread Chris Chiu
We have 3 laptops which connect the wifi by the same RTL8723BU. The PCI VID/PID of the wifi chip is 10EC:B720 which is supported. They have the same problem with the in-kernel rtl8xxxu driver, the iperf (as a client to an ethernet-connected server) gets ~1Mbps. Nevertheless, the signal strength is

Re: [PATCH] kasan: fix the missing underflow in memmove and memcpy with CONFIG_KASAN_GENERIC=y

2019-10-02 Thread Walter Wu
On Mon, 2019-09-30 at 12:36 +0800, Walter Wu wrote: > On Fri, 2019-09-27 at 21:41 +0200, Dmitry Vyukov wrote: > > On Fri, Sep 27, 2019 at 4:22 PM Walter Wu wrote: > > > > > > On Fri, 2019-09-27 at 15:07 +0200, Dmitry Vyukov wrote: > > > > On Fri, Sep 27, 2019 at 5:43 AM Walter Wu > > > > wrote:

[PATCH net] mlx5: avoid 64-bit division in dr_icm_pool_mr_create()

2019-10-02 Thread Michal Kubecek
Recently added code introduces 64-bit division in dr_icm_pool_mr_create() so that build on 32-bit architectures fails with ERROR: "__umoddi3" [drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.ko] undefined! As the divisor is always a power of 2, we can use bitwise operation instead. Fixes:

Re: [Patch 1/3] media: ov5640: add PIXEL_RATE control

2019-10-02 Thread Benoit Parrot
Hi Jacopo, Maybe, I miss spoke when I mentioned a helper I did not intent a framework level generic function. Just a function to help in this case :) That being said, I re-read the thread you mentioned. And as Hughes pointed out dynamically generating a "working" link frequency value which can

Re: [PATCH] input: ixp4xx-beeper: include linux/io.h

2019-10-02 Thread Arnd Bergmann
On Wed, Oct 2, 2019 at 11:57 AM Arnd Bergmann wrote: > > asm/io.h may not be included implicitly, causing a rare > randconfig build error: > > drivers/input/misc/ixp4xx-beeper.c:48:3: error: implicit declaration of > function '__raw_writel' [-Werror,-Wimplicit-function-declaration] >

Re: [PATCH v7 08/13] lib/vsprintf: Remove support for %pF and %pf in favour of %pS and %ps

2019-10-02 Thread Sakari Ailus
Hi Petr, Thank you for the review. On Tue, Sep 24, 2019 at 12:38:29PM +0200, Petr Mladek wrote: > On Wed 2019-09-18 16:34:14, Sakari Ailus wrote: > > %pS and %ps are now the preferred conversion specifiers to print function > > names. The functionality is equivalent; remove the old, deprecated

[PATCH bpf-next 0/2] selftest/bpf: remove warns for enable_all_controllers

2019-10-02 Thread Ivan Khoronzhuk
This micro series fixes annoying warn described in patches while samples/bpf build. Second patch fixes new warn that comes after fixing warn of first patch, that was masked. Ivan Khoronzhuk (2): selftests/bpf: add static to enable_all_controllers() selftests/bpf: correct path to include msg +

[PATCH bpf-next 2/2] selftests/bpf: correct path to include msg + path

2019-10-02 Thread Ivan Khoronzhuk
The "path" buf is supposed to contain path + printf msg up to 24 bytes. It will be cut anyway, but compiler generates truncation warns like: " samples/bpf/../../tools/testing/selftests/bpf/cgroup_helpers.c: In function ‘setup_cgroup_environment’:

Re: [PATCH 4/5] leds: flash: Add devm_* functions to the flash class

2019-10-02 Thread Dan Murphy
Jacek On 10/1/19 4:06 PM, Jacek Anaszewski wrote: Dan, Thank you for the patch. One funny omission caught my eye here and in led-class.c when making visual comparison. Please refer below. On 10/1/19 8:04 PM, Dan Murphy wrote: Add the missing device managed API for registration and

[PATCH bpf-next 1/2] selftests/bpf: add static to enable_all_controllers()

2019-10-02 Thread Ivan Khoronzhuk
Add static to enable_all_controllers() to get rid from annoying warn: samples/bpf/../../tools/testing/selftests/bpf/cgroup_helpers.c:44:5: warning: no previous prototype for ‘enable_all_controllers’ [-Wmissing-prototypes] int enable_all_controllers(char *cgroup_path) while samples/bpf build.

[PATCH 6/6] [RESEND] drm/amdgpu: work around llvm bug #42576

2019-10-02 Thread Arnd Bergmann
Code in the amdgpu driver triggers a bug when using clang to build an arm64 kernel: /tmp/sdma_v4_0-f95fd3.s: Assembler messages: /tmp/sdma_v4_0-f95fd3.s:44: Error: selected processor does not support `bfc w0,#1,#5' I expect this to be fixed in llvm soon, but we can also work around it by

Re: [PATCH v7 09/13] lib/vsprintf: Add a note on re-using %pf or %pF

2019-10-02 Thread Sakari Ailus
On Tue, Sep 24, 2019 at 12:45:49PM +0200, Petr Mladek wrote: > On Wed 2019-09-18 16:34:15, Sakari Ailus wrote: > > Add a note warning of re-use of obsolete %pf or %pF extensions. > > > > Signed-off-by: Sakari Ailus > > Cc: Steven Rostedt > > --- > > lib/vsprintf.c | 2 ++ > > 1 file changed, 2

Re: [PATCH v2 1/3] x86/boot: Introduce the kernel_info

2019-10-02 Thread Daniel Kiper
On Tue, Oct 01, 2019 at 03:28:01PM -0700, H. Peter Anvin wrote: > On 2019-10-01 04:41, Daniel Kiper wrote: > > > > OK, so, this is more or less what I had in my v3 patch before sending > > this email. So, it looks that I am on good track. Great! Though I am not > > sure that we should have magic

[PATCH 1/6] drm/amdgpu: make pmu support optional, again

2019-10-02 Thread Arnd Bergmann
When CONFIG_PERF_EVENTS is disabled, we cannot compile the pmu portion of the amdgpu driver: drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c:48:38: error: no member named 'hw' in 'struct perf_event' struct hw_perf_event *hwc = >hw; ~ ^

Re: x86/random: Speculation to the rescue

2019-10-02 Thread Theodore Y. Ts'o
On Tue, Oct 01, 2019 at 06:15:02PM +0200, Ahmed S. Darwish wrote: > > Using the "ent" tool, [2] also used to test randomness in the Stephen > Müller LRNG paper, on a 50-byte file, produced the following > results: The "ent" tool is really, really useless. If you take any CRNG, even

Re: [PATCH] input: ixp4xx-beeper: include linux/io.h

2019-10-02 Thread Linus Walleij
On Wed, Oct 2, 2019 at 11:57 AM Arnd Bergmann wrote: > asm/io.h may not be included implicitly, causing a rare > randconfig build error: > > drivers/input/misc/ixp4xx-beeper.c:48:3: error: implicit declaration of > function '__raw_writel' [-Werror,-Wimplicit-function-declaration] >

Re: [PATCH 3/5] leds: flash: Remove extern from the header file

2019-10-02 Thread Dan Murphy
Jacek On 10/1/19 3:57 PM, Jacek Anaszewski wrote: Dan, Thank you for the patch. Could we have similar patch for leds.h when we are at it, if you wouldn't mind? Sure do you want it in this patch or a separate patch? Dan

[PATCH] perf/x86/intel/uncore: fix integer overflow on shift of a u32 integer

2019-10-02 Thread Colin King
From: Colin Ian King Shifting the u32 integer result of (pci_dword & SNR_IMC_MMIO_BASE_MASK) will end up with an overflow when pci_dword greater than 0x1ff. Fix this by casting pci_dword to a resource_size_t before masking and shifting it. Addresses-Coverity: ("Unintentional integer overflow")

Re: [PATCH v8 1/5] kasan: support backing vmalloc space with real shadow memory

2019-10-02 Thread Uladzislau Rezki
On Wed, Oct 02, 2019 at 11:23:06AM +1000, Daniel Axtens wrote: > Hi, > > >>/* > >> * Find a place in the tree where VA potentially will be > >> * inserted, unless it is merged with its sibling/siblings. > >> @@ -741,6 +752,10 @@ merge_or_add_vmap_area(struct vmap_area *va, > >>

[PATCH] Revert "Bluetooth: hci_ll: set operational frequency earlier"

2019-10-02 Thread Adam Ford
As nice as it would be to update firmware faster, that patch broke at least two different boards, an OMAP4+WL1285 based Motorola Droid 4, as reported by Sebasian Reichel and the Logic PD i.MX6Q + WL1837MOD. This reverts commit a2e02f38eff84f199c8e32359eb213f81f270047. Signed-off-by: Adam Ford

[PATCH] ARM: dt: check MPIDR on MP devices built without SMP

2019-10-02 Thread Nicolas Saenz Julienne
Currently, in arm_dt_init_cpu_maps(), the hwid of the boot CPU is read from MPIDR on SMP devices and set to 0 for non SMP. This value is then matched with the DT cpu nodes' reg property in order to find the boot CPU in DT. On MP devices build without SMP the cpu DT node contains the expected

Re: [PATCH v2 4/4] usb: host: xhci-tegra: Switch to use %ptT

2019-10-02 Thread Thierry Reding
On Tue, Oct 01, 2019 at 04:47:17PM +0300, Andy Shevchenko wrote: > Use %ptT instead of open coded variant to print content of > time64_t type in human readable format. > > Cc: Thierry Reding > Cc: Jonathan Hunter > Signed-off-by: Andy Shevchenko > --- > drivers/usb/host/xhci-tegra.c | 6

Re: [PATCH] ASoC: atmel: fix atmel_ssc_set_audio link failure

2019-10-02 Thread Mark Brown
On Tue, Oct 01, 2019 at 09:02:22PM +0200, Arnd Bergmann wrote: > On Tue, Oct 1, 2019 at 7:55 PM Mark Brown wrote: > > This doesn't apply against current code, please check and resend. > I looked at "git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git > for-next" > as well as the

Re: [PATCH] serial: sh-sci: Use platform_get_irq_optional() for optional interrupts

2019-10-02 Thread Geert Uytterhoeven
ng, and next-20191001? > url: > https://github.com/0day-ci/linux/commits/Geert-Uytterhoeven/serial-sh-sci-Use-platform_get_irq_optional-for-optional-interrupts/20191002-171547 Oh, this is still the old tty/tty-testing before it was rebased to v5.4-rc1, i.e. still based on v5.3-rc4. That

[PATCH 5/5 v5] irqchip: Ingenic: Add process for more than one irq at the same time.

2019-10-02 Thread Zhou Yanjie
Add process for the situation that more than one irq is coming to a single chip at the same time. The original code will only respond to the lowest setted bit in JZ_REG_INTC_PENDING, and then exit the interrupt dispatch function. After exiting the interrupt dispatch function, since the second

[PATCH] media: uvc: Avoid cyclic entity chains due to malformed USB descriptors

2019-10-02 Thread Will Deacon
Way back in 2017, fuzzing the 4.14-rc2 USB stack with syzkaller kicked up the following WARNING from the UVC chain scanning code: | list_add double add: new=880069084010, prev=880069084010, | next=880067d22298. | [ cut here ] | WARNING: CPU: 1 PID: 1846

[PATCH 3/5 v5] irqchip: ingenic: Get virq number from IRQ domain

2019-10-02 Thread Zhou Yanjie
From: Paul Cercueil Get the virq number from the IRQ domain instead of calculating it from the hardcoded irq base. Signed-off-by: Paul Cercueil --- drivers/irqchip/irq-ingenic.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-ingenic.c

[PATCH 4/5 v5] irqchip: ingenic: Alloc generic chips from IRQ domain

2019-10-02 Thread Zhou Yanjie
From: Paul Cercueil By creating the generic chips from the IRQ domain, we don't rely on the JZ4740_IRQ_BASE macro. It also makes the code a bit cleaner. Signed-off-by: Paul Cercueil --- drivers/irqchip/irq-ingenic.c | 30 +- 1 file changed, 17 insertions(+), 13

[PATCH 2/5 v5] irqchip: ingenic: Error out if IRQ domain creation failed

2019-10-02 Thread Zhou Yanjie
From: Paul Cercueil If we cannot create the IRQ domain, the driver should fail to probe instead of succeeding with just a warning message. Signed-off-by: Paul Cercueil --- drivers/irqchip/irq-ingenic.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git

[PATCH 2/2] power: supply: axp20x_usb_power: add applied max Vbus support for AXP813

2019-10-02 Thread Icenowy Zheng
AXP813 PMIC has two Vbus maximum value settings -- one is the default value, which is currently the only supported one; the other is the really applied value, which is set according to the default value if the BC detection module detected a charging port, or 500mA if no charging port is detected.

[PATCH 1/5 v5] irqchip: ingenic: Drop redundant irq_suspend / irq_resume functions

2019-10-02 Thread Zhou Yanjie
From: Paul Cercueil The same behaviour can be obtained by using the IRQCHIP_MASK_ON_SUSPEND flag on the IRQ chip. Signed-off-by: Paul Cercueil --- drivers/irqchip/irq-ingenic.c | 24 +--- include/linux/irqchip/ingenic.h | 14 -- 2 files changed, 1

[PATCH 1/2] power: supply: axp20x_usb_power: enable USB BC detection on AXP813

2019-10-02 Thread Icenowy Zheng
The AXP813 PMIC has support for detection of USB Battery Charging specification, and it will limit the current to 500mA by default when the detection is not enabled or the detection result is SDP. Enable the BC detection to allow correctly selection of the current. Signed-off-by: Icenowy Zheng

Add process for more than one irq at the same time v5

2019-10-02 Thread Zhou Yanjie
Rebase on top of Paul Cercueil's patches and drop unneeded changes as Paul Cercueil's advice.

[PATCH 0/2] Enable USB BC detection to raise AXP813 Vbus current

2019-10-02 Thread Icenowy Zheng
Unlike previous AXP PMICs, the AXP813 PMIC (and AXP803) supports port detection defined in USB Battery Charging Specification 1.2, and sets the real Vbus current based on a pre-defined value (which is the original Vbus current limitation field) and the port status. However, the detection needs

[PATCH] percpu-refcount: Use normal instead of RCU-sched"

2019-10-02 Thread Sebastian Andrzej Siewior
This is a revert of commit a4244454df129 ("percpu-refcount: use RCU-sched insted of normal RCU") which claims the only reason for using RCU-sched is "rcu_read_[un]lock() … are slightly more expensive than preempt_disable/enable()" and "As the RCU critical sections are extremely short,

[PATCH] net: stmmac: xgmac: add missing parentheses to fix precendence error

2019-10-02 Thread Colin King
From: Colin Ian King The expression !(hw_cap & XGMAC_HWFEAT_RAVSEL) >> 10 is always zero, so the masking operation is incorrect. Fix this by adding the missing parentheses to correctly bind the negate operator on the entire expression. Addresses-Coverity: ("Operands don't affect result") Fixes:

Re: [PATCH 2/3] watchdog: sam9x60_wdt: introduce sam9x60 watchdog timer driver

2019-10-02 Thread Eugen.Hristev
On 02.10.2019 13:23, Alexandre Belloni wrote: > Hi, > > On 02/10/2019 07:35:26+, eugen.hris...@microchip.com wrote: >> +static void wdt_write(struct sam9x60_wdt *wdt, u32 field, u32 val) >> +{ >> +/* >> + * WDT_CR and WDT_MR must not be modified within three slow clock >> + *

[PATCH v3] usb-storage: SCSI glue: use dev_err instead of printk

2019-10-02 Thread Matthias Maennich
Follow common practice and retire printk(KERN_ERR ...) in favor of dev_err(). Cc: Alan Stern Cc: Greg Kroah-Hartman Cc: usb-stor...@lists.one-eyed-alien.net Signed-off-by: Matthias Maennich --- drivers/usb/storage/scsiglue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

Re: [PATCH v2 2/2] riscv: Add KASAN support

2019-10-02 Thread Andrey Konovalov
On Wed, Oct 2, 2019 at 8:16 AM Nick Hu wrote: > > This patch ports the feature Kernel Address SANitizer (KASAN). Hi Nick, Please also update KASAN documentation to mention that riscv is supported. Thanks! > > Note: The start address of shadow memory is at the beginning of kernel > space,

Re: [PATCH v3 04/10] sched/fair: rework load_balance

2019-10-02 Thread Valentin Schneider
On 02/10/2019 09:30, Vincent Guittot wrote: >> Isn't that one somewhat risky? >> >> Say both groups are classified group_has_spare and we do prefer_sibling. >> We'd select busiest as the one with the maximum number of busy CPUs, but it >> could be so that busiest.sum_h_nr_running <

Re: [PATCH v2] ARM: add __always_inline to functions called from __get_user_check()

2019-10-02 Thread Masahiro Yamada
On Wed, Oct 2, 2019 at 5:25 PM Russell King - ARM Linux admin wrote: > Masahiro Yamada, please send this to the patch system, thanks. Done. (8908/1) Thanks. -- Best Regards Masahiro Yamada

[PATCH v2,RESEND] tpm: Detach page allocation from tpm_buf

2019-10-02 Thread Jarkko Sakkinen
As has been seen recently, binding the buffer allocation and tpm_buf together is sometimes far from optimal. The buffer might come from the caller namely when tpm_send() is used by another subsystem. In addition we can stability in call sites w/o rollback (e.g. power events)> Take allocation out

Re: [PATCH v11 0/6] mm / virtio: Provide support for unused page reporting

2019-10-02 Thread Nitesh Narayan Lal
On 10/2/19 3:13 AM, David Hildenbrand wrote: > On 02.10.19 02:55, Alexander Duyck wrote: >> On Tue, Oct 1, 2019 at 12:16 PM Nitesh Narayan Lal wrote: >>> >>> On 10/1/19 12:21 PM, Alexander Duyck wrote: On Tue, 2019-10-01 at 17:35 +0200, David Hildenbrand wrote: > On 01.10.19 17:29,

[PATCH v2] tpm: Detach page allocation from tpm_buf

2019-10-02 Thread Jarkko Sakkinen
As has been seen recently, binding the buffer allocation and tpm_buf together is sometimes far from optimal. The buffer might come from the caller namely when tpm_send() is used by another subsystem. In addition we can stability in call sites w/o rollback (e.g. power events)> Take allocation out

Re: [PATCH v3 1/2] selftests: watchdog: Validate optional file argument

2019-10-02 Thread Eugeniu Rosca
Hi Shuah, On Tue, Oct 01, 2019 at 08:41:43PM +, patchwork-bot+linux-kselft...@kernel.org wrote: > Hello: > > This series was applied to shuah/linux-kselftest.git (refs/heads/fixes). > > On Tue, 17 Sep 2019 20:40:22 +0200 you wrote: > > From: "George G. Davis" > > > > The newly added

Re: [PATCH] pwm: sun4i: redundant assignment to variable pval

2019-10-02 Thread Thierry Reding
On Wed, Oct 02, 2019 at 11:08:44AM +0100, Colin King wrote: > From: Colin Ian King > > Variable pval is being assigned a value that is never read. The > assignment is redundant and hence can be removed. > > Addresses-Coverity: ("Unused value") > Signed-off-by: Colin Ian King > --- >

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

2019-10-02 Thread Sakari Ailus
Hi Manivannan, On Wed, Oct 02, 2019 at 12:12:00AM +0530, Manivannan Sadhasivam wrote: > Hi Sakari, > > On Mon, Sep 23, 2019 at 12:22:09PM +0300, Sakari Ailus wrote: > > Hi Manivannan, > > > > On Fri, Aug 30, 2019 at 02:49:42PM +0530, Manivannan Sadhasivam wrote: > > > Add driver for Sony IMX290

Re: [PATCH v11 0/6] mm / virtio: Provide support for unused page reporting

2019-10-02 Thread Nitesh Narayan Lal
On 10/1/19 8:55 PM, Alexander Duyck wrote: > On Tue, Oct 1, 2019 at 12:16 PM Nitesh Narayan Lal wrote: >> >> On 10/1/19 12:21 PM, Alexander Duyck wrote: >>> On Tue, 2019-10-01 at 17:35 +0200, David Hildenbrand wrote: On 01.10.19 17:29, Alexander Duyck wrote: > This series provides an

Re: [patch for-5.3 0/4] revert immediate fallback to remote hugepages

2019-10-02 Thread Michal Hocko
On Tue 01-10-19 23:54:14, Vlastimil Babka wrote: > On 10/1/19 10:31 PM, David Rientjes wrote: [...] > > If > > hugetlb wants to stress this to the fullest extent possible, it already > > appropriately uses __GFP_RETRY_MAYFAIL. > > Which doesn't work anymore right now, and should again after

Re: [PATCH v3] rtc: wilco-ec: Handle reading invalid times

2019-10-02 Thread Alexandre Belloni
On 01/10/2019 13:42:24-0700, Dmitry Torokhov wrote: > On Tue, Oct 1, 2019 at 12:53 PM Alexandre Belloni > wrote: > > > > Hi Nick, > > > > On 25/09/2019 14:32:09-0600, Nick Crews wrote: > > > If the RTC HW returns an invalid time, the rtc_year_days() > > > call would crash. This patch adds error

[PATCH] ARM: add __always_inline to functions called from __get_user_check()

2019-10-02 Thread Masahiro Yamada
KernelCI reports that bcm2835_defconfig is no longer booting since commit ac7c3e4ff401 ("compiler: enable CONFIG_OPTIMIZE_INLINING forcibly") (https://lkml.org/lkml/2019/9/26/825). I also received a regression report from Nicolas Saenz Julienne (https://lkml.org/lkml/2019/9/27/263). This problem

Re: [PATCH 6/6] arm64: tegra: Enable XUSB host in P2972-0000 board

2019-10-02 Thread Thierry Reding
lators the polarity of the enable GPIO is not specified in the GPIO specifier. Instead you're supposed to use the boolean enable-active-high property to specify if the enable GPIO is active-high. By default the enable GPIO is considered to be active-low. The GPIO specifier ne

Re: [RESEND PATCH] ARM: dts: Add stmpe-adc DT node to Toradex T30 modules

2019-10-02 Thread Philippe Schenker
On Tue, 2019-10-01 at 16:35 +0200, Thierry Reding wrote: > On Wed, Aug 14, 2019 at 10:53:38AM +, Philippe Schenker wrote: > > Add the stmpe-adc DT node as found on Toradex T30 modules > > > > Signed-off-by: Philippe Schenker > > > > --- > > > > arch/arm/boot/dts/tegra30-apalis-v1.1.dtsi |

Re: [PATCH 2/3] watchdog: sam9x60_wdt: introduce sam9x60 watchdog timer driver

2019-10-02 Thread Alexandre Belloni
Hi, On 02/10/2019 07:35:26+, eugen.hris...@microchip.com wrote: > +static void wdt_write(struct sam9x60_wdt *wdt, u32 field, u32 val) > +{ > + /* > + * WDT_CR and WDT_MR must not be modified within three slow clock > + * periods following a restart of the watchdog performed by a

[PATCH v2] x86/hyperv: make vapic support x2apic mode

2019-10-02 Thread Roman Kagan
Now that there's Hyper-V IOMMU driver, Linux can switch to x2apic mode when supported by the vcpus. However, the apic access functions for Hyper-V enlightened apic assume xapic mode only. As a result, Linux fails to bring up secondary cpus when run as a guest in QEMU/KVM with both hv_apic and

Re: [PATCH] pwm: sun4i: redundant assignment to variable pval

2019-10-02 Thread Uwe Kleine-König
On Wed, Oct 02, 2019 at 11:08:44AM +0100, Colin King wrote: > From: Colin Ian King > > Variable pval is being assigned a value that is never read. The > assignment is redundant and hence can be removed. > > Addresses-Coverity: ("Unused value") > Signed-off-by: Colin Ian King > --- >

[PATCH] libertas: remove redundant assignment to variable ret

2019-10-02 Thread Colin King
From: Colin Ian King The variable ret is being assigned a value that is never read and is being re-assigned a little later on. The assignment is redundant and hence can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King ---

Re: [PATCH 5/6] arm64: tegra: Add XUSB and pad controller on Tegra194

2019-10-02 Thread Thierry Reding
On Wed, Oct 02, 2019 at 04:00:50PM +0800, JC Kuo wrote: > Adds the XUSB pad and XUSB controllers on Tegra194. > > Signed-off-by: JC Kuo > --- > arch/arm64/boot/dts/nvidia/tegra194.dtsi | 130 +++ > 1 file changed, 130 insertions(+) > > diff --git

Re: [PATCH 5/6] arm64: tegra: Add XUSB and pad controller on Tegra194

2019-10-02 Thread Thierry Reding
On Wed, Oct 02, 2019 at 04:00:50PM +0800, JC Kuo wrote: > Adds the XUSB pad and XUSB controllers on Tegra194. > > Signed-off-by: JC Kuo > --- > arch/arm64/boot/dts/nvidia/tegra194.dtsi | 130 +++ > 1 file changed, 130 insertions(+) > > diff --git

[PATCH] pwm: sun4i: redundant assignment to variable pval

2019-10-02 Thread Colin King
From: Colin Ian King Variable pval is being assigned a value that is never read. The assignment is redundant and hence can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/pwm/pwm-sun4i.c | 1 - 1 file changed, 1 deletion(-) diff --git

net-next/master boot bisection: v5.3-13203-gc01ebd6c4698 on bcm2836-rpi-2-b

2019-10-02 Thread kernelci.org bot
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This automated bisection report was sent to you on the basis * * that you may be involved with the breaking commit it has * * found. No manual investigation has been done to verify it, * * and the root cause of the

Re: [PATCH 3/6] phy: tegra: xusb: Add Tegra194 support

2019-10-02 Thread Thierry Reding
On Wed, Oct 02, 2019 at 04:00:48PM +0800, JC Kuo wrote: > Add support for the XUSB pad controller found on Tegra194 SoCs. It is > mostly similar to the same IP found on Tegra186, but the number of > pads exposed differs, as do the programming sequences. Because most of > the Tegra194 XUSB PADCTL

[PATCH] input: ixp4xx-beeper: include linux/io.h

2019-10-02 Thread Arnd Bergmann
asm/io.h may not be included implicitly, causing a rare randconfig build error: drivers/input/misc/ixp4xx-beeper.c:48:3: error: implicit declaration of function '__raw_writel' [-Werror,-Wimplicit-function-declaration] __raw_writel((count & ~IXP4XX_OST_RELOAD_MASK) |

Re: [PATCH 1/3] dt-bindings: watchdog: sam9x60_wdt: add bindings

2019-10-02 Thread Alexandre Belloni
On 02/10/2019 07:35:23+, eugen.hris...@microchip.com wrote: > From: Eugen Hristev > > Add bindings for Microchip SAM9X60 Watchdog Timer > > It has the same bindings as > Documentation/devicetree/bindings/watchdog/atmel-sama5d4-wdt.txt > except the compatible. > Maybe it can then use the

[PATCH] ARM: dts: am335x-sancloud-bbe: Fix PHY mode for ethernet

2019-10-02 Thread Jeroen Hofstee
cd28d1d6e52e: ("net: phy: at803x: Disable phy delay for RGMII mode") broke the ethernet networking on the beaglebone enhanced. The board relied on the bug in the at803x driver to always enable the rx delay. So change the phy-mode to rgmii-id so it is enabled again. Signed-off-by: Jeroen Hofstee

Re: [PATCH] serial: sh-sci: Use platform_get_irq_optional() for optional interrupts

2019-10-02 Thread kbuild test robot
the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Geert-Uytterhoeven/serial-sh-sci-Use-platform_get_irq_optional-for-optional-interrupts/20191002-171547 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh

Re: [PATCH 4/6] dt-bindings: phy: tegra: Add Tegra194 support

2019-10-02 Thread Thierry Reding
On Wed, Oct 02, 2019 at 04:00:49PM +0800, JC Kuo wrote: > Extend the bindings to cover the set of features found in Tegra194. > Note that, technically, there are four more supplies connected to the > XUSB pad controller (DVDD_PEX, DVDD_PEX_PLL, HVDD_PEX and HVDD_PEX_PLL) > , but the power

Re: [PATCH 2/6] usb: host: xhci-tegra: Add Tegra194 XHCI support

2019-10-02 Thread Thierry Reding
On Wed, Oct 02, 2019 at 04:00:47PM +0800, JC Kuo wrote: > This commit adds Tegra194 XUSB host mode controller support. This is > very similar to the existing Tegra124/Tegra210/Tegra186 XHCI, except > 1. the number of ports and PHYs differs > 2. the IPFS wrapper being removed > 3. mailbox

Re: [PATCH 1/6] xhci: tegra: Parameterize mailbox register addresses

2019-10-02 Thread Thierry Reding
On Wed, Oct 02, 2019 at 04:00:46PM +0800, JC Kuo wrote: > Tegra194 XUSB host controller has rearranged mailbox registers. This > commit makes mailbox registers address a part of "soc" data so that > xhci-tegra driver can be used for Tegra194. > > Signed-off-by: JC Kuo > --- >

Re: [RFC 1/2] dt-bindings: power: Convert Generic Power Domain bindings to json-schema

2019-10-02 Thread Krzysztof Kozlowski
On Mon, Sep 30, 2019 at 09:00:06AM -0500, Rob Herring wrote: > On Sun, Sep 08, 2019 at 05:28:12PM +0200, Krzysztof Kozlowski wrote: > > Convert Generic Power Domain bindings to DT schema format using > > json-schema. The consumer bindings are split to separate file. > > > > Signed-off-by:

Re: [PATCH v4 1/2] edac: Add an API for edac device to report for multiple errors

2019-10-02 Thread Hawa, Hanna
On 9/30/2019 5:50 PM, Borislav Petkov wrote: On Mon, Sep 23, 2019 at 08:17:40PM +0100, Hanna Hawa wrote: +void edac_device_handle_ce(struct edac_device_ctl_info *edac_dev, + int inst_nr, int block_nr, const char *msg) +{ + __edac_device_handle_ce(edac_dev, 1,

Re: [PATCH v2 7/9] arm64: dts: qcom: msm8998: Add PSCI cpuidle low power states

2019-10-02 Thread Niklas Cassel
On Wed, Oct 02, 2019 at 11:19:50AM +0200, Niklas Cassel wrote: > On Mon, Sep 30, 2019 at 04:20:15PM -0600, Jeffrey Hugo wrote: > > Amit, the merged version of the below change causes a boot failure > > (nasty hang, sometimes with RCU stalls) on the msm8998 laptops. Oddly > > enough, it seems to

Re: [PATCH v3 04/10] sched/fair: rework load_balance

2019-10-02 Thread Dietmar Eggemann
On 02/10/2019 10:23, Vincent Guittot wrote: > On Tue, 1 Oct 2019 at 18:53, Dietmar Eggemann > wrote: >> >> On 01/10/2019 10:14, Vincent Guittot wrote: >>> On Mon, 30 Sep 2019 at 18:24, Dietmar Eggemann >>> wrote: Hi Vincent, On 19/09/2019 09:33, Vincent Guittot wrote: >> >

Re: [PATCH v3 04/10] sched/fair: rework load_balance

2019-10-02 Thread Dietmar Eggemann
On 02/10/2019 08:44, Vincent Guittot wrote: > On Tue, 1 Oct 2019 at 18:53, Dietmar Eggemann > wrote: >> >> On 01/10/2019 10:14, Vincent Guittot wrote: >>> On Mon, 30 Sep 2019 at 18:24, Dietmar Eggemann >>> wrote: Hi Vincent, On 19/09/2019 09:33, Vincent Guittot wrote: >> >>

Re: Ack to merge through DRM? WAS Re: [PATCH v2 1/5] mm: Add write-protect and clean utilities for address space ranges

2019-10-02 Thread VMware
On 9/26/19 10:16 PM, Linus Torvalds wrote: On Thu, Sep 26, 2019 at 1:09 PM Thomas Hellström (VMware) wrote: That said, if people are OK with me modifying the assert in pud_trans_huge_lock() and make __walk_page_range non-static, it should probably be possible to make it work, yes. I don't

Re: [PATCH net 2/2] arm: dts: mediatek: Fix mt7629 dts to reflect the latest dt-binding

2019-10-02 Thread mtk15127
On Tue, 2019-10-01 at 13:56 +, René van Dorst wrote: > Hi MarkLee, > > Quoting MarkLee : > > > * Removes mediatek,physpeed property from dtsi that is useless in PHYLINK > > * Set gmac0 to fixed-link sgmii 2.5Gbit mode > > * Set gmac1 to gmii mode that connect to a internal gphy > > > >

<    3   4   5   6   7   8   9   10   >