Re: [PATCH v3 0/3] genirq/vfio: Introduce update_irq_devid and optimize VFIO irq ops

2019-08-20 Thread luoben
在 2019/8/20 下午11:22, Alex Williamson 写道: On Tue, 20 Aug 2019 12:03:50 +0800 luoben wrote: 在 2019/8/20 上午4:51, Alex Williamson 写道: On Thu, 15 Aug 2019 21:02:58 +0800 Ben Luo wrote: Currently, VFIO takes a lot of free-then-request-irq actions whenever a VM (with device passthru via

Re: [PATCH v3 2/5] arm64: cpufeature: Add feature to detect heterogeneous systems

2019-08-20 Thread Mark Rutland
On Tue, Aug 20, 2019 at 04:23:17PM +0100, Mark Rutland wrote: > Hi Raphael, > > On Fri, Aug 16, 2019 at 01:59:31PM +0100, Raphael Gault wrote: > > This feature is required in order to enable PMU counters direct > > access from userspace only when the system is homogeneous. > > This feature checks

Re: [PATCH] MAINTAINERS, x86/CPU: Tony Luck will maintain asm/intel-family.h

2019-08-20 Thread Peter Zijlstra
On Tue, Aug 20, 2019 at 05:40:11PM +0200, Peter Zijlstra wrote: > > _CORE > > _DESKTOP > > These two and no _SHORT should/could be collated, I think. for i in `git grep -l "INTEL_FAM6_.*_\(CORE\|DESKTOP\)"` do sed -i -e 's/\(INTEL_FAM6_.*\)_\(CORE\|DESKTOP\)/\1/g' ${i} done ---

Re: [PATCH V2 2/4] watchdog: Add i.MX7ULP watchdog support

2019-08-20 Thread Guenter Roeck
On Tue, Aug 20, 2019 at 08:31:55AM -0700, Guenter Roeck wrote: > On Mon, Aug 12, 2019 at 04:53:19PM +0800, anson.hu...@nxp.com wrote: > > From: Anson Huang > > > > The i.MX7ULP Watchdog Timer (WDOG) module is an independent timer > > that is available for system use. > > It provides a safety

Re: [PATCH 3/6] net: stmmac: sun8i: Use devm_regulator_get for PHY regulator

2019-08-20 Thread Ondřej Jirman
Hi Andrew, On Tue, Aug 20, 2019 at 05:39:39PM +0200, Andrew Lunn wrote: > On Tue, Aug 20, 2019 at 04:53:40PM +0200, meg...@megous.com wrote: > > From: Ondrej Jirman > > > > Use devm_regulator_get instead of devm_regulator_get_optional and rely > > on dummy supply. This avoids NULL checks before

Re: [RFC,v2 3/6] media: dt-bindings: add DS90UB954-Q1 video deserializer

2019-08-20 Thread Rob Herring
On Mon, Aug 19, 2019 at 5:41 PM Luca Ceresoli wrote: > > Hi Rob, > > thanks for your review. > > On 13/08/19 17:44, Rob Herring wrote: > > On Tue, Jul 23, 2019 at 10:37:20PM +0200, Luca Ceresoli wrote: > >> Describe the Texas Instruments DS90UB954-Q1, a 2-input video deserializer > >> with I2C

Re: [ANNOUNCE] v5.2.9-rt3

2019-08-20 Thread Alexandre Belloni
Hi, On 19/08/2019 13:03:51+0200, Alexander Dahl wrote: > Hei hei, > > just tried to compile this v5.2.9-rt3 for SAMA5D27-SOM1-EK1 based on > arch/arm/configs/sama5_defconfig and with running oldconfig and selecting > defaults, but that fails if CONFIG_ATMEL_TCB_CLKSRC_USE_SLOW_CLOCK is not >

Re: [PATCH v2 2/3] Documentation: media: Describe V4L2_CID_UNIT_CELL_SIZE

2019-08-20 Thread Philipp Zabel
On Tue, 2019-08-20 at 11:40 +0200, Ricardo Ribalda Delgado wrote: > New control to pass to userspace the width/height of a pixel. Which is > needed for calibration and lens selection. > > Signed-off-by: Ricardo Ribalda Delgado > --- > Documentation/media/uapi/v4l/ext-ctrls-camera.rst | 8

[PATCH 2/2] rtc: s35390a: convert to devm_i2c_new_dummy_device()

2019-08-20 Thread Wolfram Sang
I was about to simplify the call to i2c_unregister_device() when I realized that converting to devm_i2c_new_dummy_device() will simplify the driver a lot. So I took this approach. Signed-off-by: Wolfram Sang --- Build tested only, buildbot is happy, too. Please apply to your tree.

[PATCH 1/2] rtc: max77686: convert to devm_i2c_new_dummy_device()

2019-08-20 Thread Wolfram Sang
I was about to simplify the call to i2c_unregister_device() when I realized that converting to devm_i2c_new_dummy_device() will simplify the driver a lot. So I took this approach. Signed-off-by: Wolfram Sang --- Build tested only, buildbot is happy, too. Please apply to your tree.

[PATCH 0/2] rtc: convert two drivers to devm_i2c_new_dummy_device()

2019-08-20 Thread Wolfram Sang
I was about to simplify the call to i2c_unregister_device() when I realized that converting to devm_i2c_new_dummy_device() will simplify the drivers a lot. So I took this approach. Only build tested, but visually reviewed multiple times. Wolfram Sang (2): rtc: max77686: convert to

Re: linux-next: Tree for Aug 20 (mm/memcontrol)

2019-08-20 Thread Randy Dunlap
On 8/20/19 12:09 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20190819: > on i386 or x86_64: ../mm/memcontrol.c: In function ‘__mem_cgroup_free’: ../mm/memcontrol.c:4885:2: error: implicit declaration of function ‘memcg_flush_percpu_vmstats’; did you mean ‘qdisc_is_percpu_stats’?

Re: [PATCH v2 2/3] x86/cpu: Add new Intel Atom CPU model name

2019-08-20 Thread Peter Zijlstra
On Tue, Aug 20, 2019 at 12:48:05PM +, Luck, Tony wrote: > > >> +#define INTEL_FAM6_ATOM_AIRMONT_NP0x75 /* Lightning Mountain */ > > > > What's _NP ? > > Network Processor. But that is too narrow a descriptor. This is going to be > used in > other areas besides networking. > > I’m

Re: [PATCH] MAINTAINERS, x86/CPU: Tony Luck will maintain asm/intel-family.h

2019-08-20 Thread Peter Zijlstra
On Thu, Aug 15, 2019 at 10:22:07PM +0200, Thomas Gleixner wrote: > We have the following existing _SHORT variants: > _G > _GT3E Those two are special SOCs due to 'extra graphics bits on', and I suppose we could collate them. That said; I'm not sure NHM_G ever shipped, I'm looking at a wikipedia

Re: [PATCH net-next v3 2/4] net: mdio: add PTP offset compensation to mdiobus_write_sts

2019-08-20 Thread Miroslav Lichvar
On Tue, Aug 20, 2019 at 05:23:06PM +0200, Andrew Lunn wrote: > > - take a second "post" system timestamp after the completion > > For this hardware, completion is an interrupt, which has a lot of > jitter on it. But this hardware is odd, in that it uses an > interrupt. Every other MDIO bus

Re: [PATCH 2/2] reset: meson-audio-arb: add sm1 support

2019-08-20 Thread Philipp Zabel
Hi Jerome, thank you for the patch. Just one nitpick and one real issue below: On Tue, 2019-08-20 at 11:46 +0200, Jerome Brunet wrote: > Add the new arb reset lines of the SM1 SoC family > > Signed-off-by: Jerome Brunet > --- > drivers/reset/reset-meson-audio-arb.c | 28

Re: [PATCH 3/6] net: stmmac: sun8i: Use devm_regulator_get for PHY regulator

2019-08-20 Thread Andrew Lunn
On Tue, Aug 20, 2019 at 04:53:40PM +0200, meg...@megous.com wrote: > From: Ondrej Jirman > > Use devm_regulator_get instead of devm_regulator_get_optional and rely > on dummy supply. This avoids NULL checks before regulator_enable/disable > calls. Hi Ondrej What do you mean by a dummy supply?

[PATCH] selftests: kvm: fix state save/load on processors without XSAVE

2019-08-20 Thread Paolo Bonzini
state_test and smm_test are failing on older processors that do not have xcr0. This is because on those processor KVM does provide support for KVM_GET/SET_XSAVE (to avoid having to rely on the older KVM_GET/SET_FPU) but not for KVM_GET/SET_XCRS. Signed-off-by: Paolo Bonzini ---

[PATCH v6 4/4] ARM: dts: imx6ul-kontron-n6310: Add Kontron i.MX6UL N6310 SoM and boards

2019-08-20 Thread Krzysztof Kozlowski
Add support for i.MX6UL modules from Kontron Electronics GmbH (before acquisition: Exceet Electronics) and evalkit boards based on it: 1. N6310 SOM: i.MX6 UL System-on-Module, a 25x25 mm solderable module (LGA pads and pin castellations) with 256 MB RAM, 1 MB NOR-Flash, 256 MB NAND and

Re: [PATCH net] ixgbe: fix double clean of tx descriptors with xdp

2019-08-20 Thread Alexander Duyck
On Tue, Aug 20, 2019 at 8:18 AM Ilya Maximets wrote: > > Tx code doesn't clear the descriptor status after cleaning. > So, if the budget is larger than number of used elems in a ring, some > descriptors will be accounted twice and xsk_umem_complete_tx will move > prod_tail far beyond the

[PATCH v6 3/4] dt-bindings: arm: fsl: Add Kontron i.MX6UL N6310 compatibles

2019-08-20 Thread Krzysztof Kozlowski
Add the compatibles for Kontron i.MX6UL N6310 SoM and boards. Signed-off-by: Krzysztof Kozlowski --- Changes since v5: New patch --- Documentation/devicetree/bindings/arm/fsl.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml

[PATCH v6 2/4] dt-bindings: eeprom: at25: Add Anvo ANV32E61W

2019-08-20 Thread Krzysztof Kozlowski
Document the compatible for ANV32E61W 64kb Serial SPI non-volatile SRAM. Although it is a SRAM device, it can be accessed through EEPROM interface. At least until there is no proper SRAM driver support for it. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Fabio Estevam --- Changes since v4:

[PATCH v6 1/4] dt-bindings: vendor-prefixes: Add Anvo-Systems

2019-08-20 Thread Krzysztof Kozlowski
Add vendor prefix for Anvo-Systems Dresden GmbH. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- Changes since v4: None Changes since v3: 1. Add Rob's tag, 2. Remove Admatec (not needed anymore). Changes since v2: 1. Use admatecde vendor prefix. 2. Add Anvo-Systems Dresden

[PATCH] video: backlight: tosa_lcd: drop check because i2c_unregister_device() is NULL safe

2019-08-20 Thread Wolfram Sang
No need to check the argument of i2c_unregister_device() because the function itself does it. Signed-off-by: Wolfram Sang --- Build tested only, buildbot is happy, too. Please apply to your tree. drivers/video/backlight/tosa_lcd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH] platform: chrome: chromeos_laptop: drop checks of NULL-safe functions

2019-08-20 Thread Wolfram Sang
No need to check the argument of i2c_unregister_device() and property_entries_free() because the functions do check it. Signed-off-by: Wolfram Sang --- Build tested only, buildbot is happy, too. Please apply to your tree. drivers/platform/chrome/chromeos_laptop.c | 10 +++--- 1 file

Re: [PATCH v3 3/5] arm64: pmu: Add function implementation to update event index in userpage.

2019-08-20 Thread Mark Rutland
On Fri, Aug 16, 2019 at 01:59:32PM +0100, Raphael Gault wrote: > In order to be able to access the counter directly for userspace, > we need to provide the index of the counter using the userpage. > We thus need to override the event_idx function to retrieve and > convert the perf_event index to

[PATCH] i2c: cht-wc: drop check because i2c_unregister_device() is NULL safe

2019-08-20 Thread Wolfram Sang
No need to check the argument of i2c_unregister_device() because the function itself does it. Signed-off-by: Wolfram Sang --- Build tested only, buildbot is happy, too. Please apply to your tree. drivers/i2c/busses/i2c-cht-wc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH 1/2] media: i2c: adv7511-v4l2: drop check because i2c_unregister_device() is NULL safe

2019-08-20 Thread Wolfram Sang
No need to check the argument of i2c_unregister_device() because the function itself does it. Signed-off-by: Wolfram Sang --- Build tested only, buildbot is happy, too. Please apply to your tree. drivers/media/i2c/adv7511-v4l2.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-)

[PATCH 2/2] media: i2c: adv7842: drop check because i2c_unregister_device() is NULL safe

2019-08-20 Thread Wolfram Sang
No need to check the argument of i2c_unregister_device() because the function itself does it. Signed-off-by: Wolfram Sang --- Build tested only, buildbot is happy, too. Please apply to your tree. drivers/media/i2c/adv7842.c | 33 +++-- 1 file changed, 11

[PATCH] mfd: htc-i2cpld: drop check because i2c_unregister_device() is NULL safe

2019-08-20 Thread Wolfram Sang
No need to check the argument of i2c_unregister_device() because the function itself does it. Signed-off-by: Wolfram Sang --- Build tested only, buildbot is happy, too. Please apply to your tree. drivers/mfd/htc-i2cpld.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH] staging: comedi: ni_mio_common: Fix a typo in ni_mio_common.c

2019-08-20 Thread Masanari Iida
This patch fix a spelling typo in ni_mio_common.c Signed-off-by: Masanari Iida --- drivers/staging/comedi/drivers/ni_mio_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/ni_mio_common.c b/drivers/staging/comedi/drivers/ni_mio_common.c

Re: [PATCH v5 2/6] vfio: Introduce vGPU display irq type

2019-08-20 Thread Alex Williamson
On Tue, 20 Aug 2019 02:12:10 + "Zhang, Tina" wrote: > BTW, IIRC, we might also have one question waiting to be replied: > - Can we just use VFIO_IRQ_TYPE_GFX w/o proposing a new sub type > (i.e. VFIO_IRQ_SUBTYPE_GFX_DISPLAY_IRQ)? Well, only if we can agree > on that we don't have any other

Re: [PATCH V2 2/4] watchdog: Add i.MX7ULP watchdog support

2019-08-20 Thread Guenter Roeck
On Mon, Aug 12, 2019 at 04:53:19PM +0800, anson.hu...@nxp.com wrote: > From: Anson Huang > > The i.MX7ULP Watchdog Timer (WDOG) module is an independent timer > that is available for system use. > It provides a safety feature to ensure that software is executing > as planned and that the CPU is

Re: [PATCH] PCI: Add PCIE ACS quirk for IPROC PAXB

2019-08-20 Thread Scott Branden
Looks good. On 2019-08-19 9:39 p.m., Srinath Mannam wrote: From: Abhinav Ratna IPROC PAXB RC doesn't support ACS capabilities and control registers. Add quirk to have separate IOMMU groups for all EPs and functions connected to root port, by masking RR/CR/SV/UF bits. Signed-off-by: Abhinav

Re: [PATCH] libperf: Fix arch include paths

2019-08-20 Thread Arnaldo Carvalho de Melo
Em Tue, Aug 20, 2019 at 08:26:45AM -0700, Guenter Roeck escreveu: > On 8/20/19 5:46 AM, Jiri Olsa wrote: > > version) and we don't get the proper include path. > > > > Reported-by: Guenter Roeck > > Link: http://lkml.kernel.org/n/tip-408wq8mtajlvs9iir7qo9...@git.kernel.org > > Signed-off-by:

Re: [PATCH] MAINTAINERS, x86/CPU: Tony Luck will maintain asm/intel-family.h

2019-08-20 Thread Peter Zijlstra
On Thu, Aug 15, 2019 at 10:22:07PM +0200, Thomas Gleixner wrote: > On Thu, 15 Aug 2019, Luck, Tony wrote: > > On Thu, Aug 15, 2019 at 07:54:55PM +0200, Borislav Petkov wrote: > > @@ -11,6 +11,21 @@ > > * While adding a new CPUID for a new microarchitecture, add a new > > * group to keep

Re: [PATCH] Tools: hv: kvp: eliminate 'may be used uninitialized' warning

2019-08-20 Thread Sasha Levin
On Mon, Aug 19, 2019 at 04:44:09PM +0200, Vitaly Kuznetsov wrote: When building hv_kvp_daemon GCC-8.3 complains: hv_kvp_daemon.c: In function ‘kvp_get_ip_info.constprop’: hv_kvp_daemon.c:812:30: warning: ‘ip_buffer’ may be used uninitialized in this function [-Wmaybe-uninitialized] struct

Re: [PATCH] ARM: dts: vf610-zii-cfu1: Slow I2C0 down to 100kHz

2019-08-20 Thread Andrew Lunn
On Mon, Aug 19, 2019 at 08:08:04PM -0700, Andrey Smirnov wrote: > Fiber-optic module attached to the bus is only rated to work at > 100kHz, so drop the bus frequncy to accomodate that. Hi Andrey Did you review all the other ZII platforms? I could imaging the same problem happening else where.

Re: [PATCH bpf-next] xsk: proper socket state check in xsk_poll

2019-08-20 Thread Björn Töpel
On Tue, 20 Aug 2019 at 16:30, Daniel Borkmann wrote: > > On 8/20/19 12:04 PM, Björn Töpel wrote: > > From: Björn Töpel > > > > The poll() implementation for AF_XDP sockets did not perform the > > proper state checks, prior accessing the socket umem. This patch fixes > > that by performing a

Re: [PATCH] Input: hyperv-keyboard: Use in-place iterator API in the channel callback

2019-08-20 Thread Sasha Levin
On Mon, Aug 19, 2019 at 08:18:05PM -0700, dmitry.torok...@gmail.com wrote: On Tue, Aug 20, 2019 at 03:01:23AM +, Dexuan Cui wrote: Simplify the ring buffer handling with the in-place API. Also avoid the dynamic allocation and the memory leak in the channel callback function.

Re: [PATCH] Drivers: hv: vmbus: Remove the unused "tsc_page" from struct hv_context

2019-08-20 Thread Sasha Levin
On Tue, Aug 20, 2019 at 03:06:40AM +, Dexuan Cui wrote: This field is no longer used after the commit 63ed4e0c67df ("Drivers: hv: vmbus: Consolidate all Hyper-V specific clocksource code") , because it's replaced by the global variable "struct ms_hyperv_tsc_page *tsc_pg;" (now, the variable

Re: [PATCH v3 3/3] vfio_pci: make use of update_irq_devid and optimize irq ops

2019-08-20 Thread Liu, Jiang
> On Aug 20, 2019, at 11:24 PM, luoben wrote: > > > > 在 2019/8/16 上午12:45, Thomas Gleixner 写道: >> On Thu, 15 Aug 2019, Ben Luo wrote: >> >>> if (vdev->ctx[vector].trigger) { >>> - free_irq(irq, vdev->ctx[vector].trigger); >>> -

Re: [PATCH] libperf: Fix arch include paths

2019-08-20 Thread Guenter Roeck
On 8/20/19 5:46 AM, Jiri Olsa wrote: On Mon, Aug 19, 2019 at 10:21:37AM +0200, Jiri Olsa wrote: SNIP next-20190816, though the problem has been seen since at least next-20190801. Mainline builds fine. Here is the script I used to bisect the problem: make mrproper rm -rf /tmp/linux mkdir

Re: [PATCH v3 4/8] PCI: Add quirk to disable MSI-X support for Amazon's Annapurna Labs Root Port

2019-08-20 Thread Andrew Murray
On Tue, Aug 20, 2019 at 02:52:30PM +, Chocron, Jonathan wrote: > On Mon, 2019-08-19 at 19:23 +0100, Andrew Murray wrote: > > On Tue, Jul 23, 2019 at 12:25:29PM +0300, Jonathan Chocron wrote: > > > The Root Port (identified by [1c36:0032]) doesn't support MSI-X. On > > > some > > > > Shouldn't

[PATCH RFC] dt-bindings: regulator: define a mux regulator

2019-08-20 Thread Uwe Kleine-König
A mux regulator is used to provide current on one of several outputs. It might look as follows: ,. --; we still needed something to implement compatibility to the currently defined bindings. Signed-off-by: Uwe Kleine-König --- Hello, the obvious alternative is to add

Re: [PATCH v3 2/5] arm64: cpufeature: Add feature to detect heterogeneous systems

2019-08-20 Thread Mark Rutland
Hi Raphael, On Fri, Aug 16, 2019 at 01:59:31PM +0100, Raphael Gault wrote: > This feature is required in order to enable PMU counters direct > access from userspace only when the system is homogeneous. > This feature checks the model of each CPU brought online and compares it > to the boot CPU.

Re: [PATCH net-next v3 2/4] net: mdio: add PTP offset compensation to mdiobus_write_sts

2019-08-20 Thread Andrew Lunn
> - take a second "post" system timestamp after the completion For this hardware, completion is an interrupt, which has a lot of jitter on it. But this hardware is odd, in that it uses an interrupt. Every other MDIO bus controller uses polled IO, with an mdelay(10) or similar between each poll.

Re: [PATCH 6/7] clocksource/drivers/sh_cmt: r8a7740 and sh73a0 SoC-specific match

2019-08-20 Thread Simon Horman
On Tue, Aug 20, 2019 at 09:34:13PM +0900, Magnus Damm wrote: > Hi Simon, > > On Wed, Jul 24, 2019 at 8:12 PM Simon Horman wrote: > > > > On Thu, Jul 18, 2019 at 08:45:24PM +0900, Magnus Damm wrote: > > > From: Magnus Damm > > > > > > Add SoC-specific matching for CMT1 on r8a7740 and sh73a0. > >

Re: [PATCH v6 1/2] dt-bindings: Add ipsps1 as a trivial device

2019-08-20 Thread Guenter Roeck
On Mon, Aug 19, 2019 at 05:14:25PM +0800, John Wang wrote: > The ipsps1 is an Inspur Power System power supply unit > > Signed-off-by: John Wang > Reviewed-by: Rob Herring Aplied to hwmon-next. If someone else wants to take it, please let me know and I'll drop it. Thanks, Guenter > --- > v6:

Re: [PATCH v3 0/3] genirq/vfio: Introduce update_irq_devid and optimize VFIO irq ops

2019-08-20 Thread Alex Williamson
On Tue, 20 Aug 2019 12:03:50 +0800 luoben wrote: > 在 2019/8/20 上午4:51, Alex Williamson 写道: > > On Thu, 15 Aug 2019 21:02:58 +0800 > > Ben Luo wrote: > > > >> Currently, VFIO takes a lot of free-then-request-irq actions whenever > >> a VM (with device passthru via VFIO) sets irq affinity or

Re: [PATCH] sched/core: Schedule new worker even if PI-blocked

2019-08-20 Thread Peter Zijlstra
On Tue, Aug 20, 2019 at 04:59:26PM +0200, Sebastian Andrzej Siewior wrote: > On 2019-08-20 15:50:14 [+0200], Peter Zijlstra wrote: > > On Fri, Aug 16, 2019 at 06:06:26PM +0200, Sebastian Andrzej Siewior wrote: > > > If a task is PI-blocked (blocking on sleeping spinlock) then we don't > > > want

[PATCH v2 2/3] rtc: sun6i: Add support for H6 RTC

2019-08-20 Thread megous
From: Ondrej Jirman RTC on H6 is mostly the same as on H5 and H3. It has slight differences mostly in features that are not yet supported by this driver. Some differences are already stated in the comments in existing code. One other difference is that H6 has extra bit in LOSC_CTRL_REG, called

[PATCH v2 1/3] dt-bindings: Add compatible for H6 RTC

2019-08-20 Thread megous
From: Ondrej Jirman RTC on H6 is similar to the one on H5 SoC, but incompatible in small details. See the driver for description of differences. For example H6 RTC needs to enable the external low speed oscillator. Add new compatible for this RTC. Signed-off-by: Ondrej Jirman ---

[PATCH] net: Fix detection for IPv4 duplicate address.

2019-08-20 Thread Dongxu Liu
The network sends an ARP REQUEST packet to determine whether there is a host with the same IP. The source IP address of the packet is 0. However, Windows may also send the source IP address to determine, then the source IP address is equal to the destination IP address. Signed-off-by: Dongxu Liu

[PATCH v2 3/3] arm64: dts: sun50i-h6: Add support for RTC and fix the clock tree

2019-08-20 Thread megous
From: Ondrej Jirman This patch adds RTC node and fixes the clock properties and nodes to reflect the real clock tree. The device nodes for the internal oscillator and osc32k are removed, as these clocks are now provided by the RTC device. Clock references are fixed accordingly, too.

[PATCH v2 0/3] Add basic support for RTC on Allwinner H6 SoC

2019-08-20 Thread megous
From: Ondrej Jirman I went through the datasheets for H6 and H5, and compared the differences. RTCs are largely similar, but not entirely compatible. Incompatibilities are in details not yet implemented by the rtc driver though. I also corrected the clock tree in H6 DTSI. This patchset is

Re: [PATCH 2/2] of/platform: Disable generic device linking code for PowerPC

2019-08-20 Thread Rob Herring
On Thu, Aug 15, 2019 at 9:04 PM Saravana Kannan wrote: > > On Wed, Aug 14, 2019 at 4:41 PM Rob Herring wrote: > > > > On Tue, Aug 6, 2019 at 4:04 PM Saravana Kannan wrote: > > > > > > On Tue, Aug 6, 2019 at 2:27 PM Rob Herring wrote: > > > > > > > > On Tue, Aug 6, 2019 at 1:27 PM Saravana

[PATCH] drm/komeda: Add missing of_node_get() call

2019-08-20 Thread Mihail Atanassov
komeda_pipeline_destroy has the matching of_node_put(). Fixes: 29e56aec911dd ("drm/komeda: Add DT parsing") Signed-off-by: Mihail Atanassov --- drivers/gpu/drm/arm/display/komeda/komeda_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH net] ixgbe: fix double clean of tx descriptors with xdp

2019-08-20 Thread Ilya Maximets
Tx code doesn't clear the descriptor status after cleaning. So, if the budget is larger than number of used elems in a ring, some descriptors will be accounted twice and xsk_umem_complete_tx will move prod_tail far beyond the prod_head breaking the comletion queue ring. Fix that by limiting the

Re: [PATCH -next] nfsd: remove duplicated include from filecache.c

2019-08-20 Thread J . Bruce Fields
Thanks, applied.--b. On Tue, Aug 20, 2019 at 01:32:43AM +, YueHaibing wrote: > Remove duplicated include. > > Signed-off-by: YueHaibing > --- > fs/nfsd/filecache.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/fs/nfsd/filecache.c b/fs/nfsd/filecache.c > index

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

2019-08-20 Thread Alan Stern
On Tue, 20 Aug 2019, Oliver Neukum wrote: > Am Dienstag, den 20.08.2019, 10:18 -0400 schrieb Alan Stern: > > On Mon, 19 Aug 2019, Oliver Neukum wrote: > > > > > Am Montag, den 19.08.2019, 07:48 -0700 schrieb syzbot: > > > > Hello, > > > > > > > > syzbot found the following crash on: > > > > >

Re: [GIT PULL 3/4] intel_th: pci: Add support for another Lewisburg PCH

2019-08-20 Thread Alexander Shishkin
Greg Kroah-Hartman writes: > On Tue, Aug 20, 2019 at 01:16:52PM +0300, Alexander Shishkin wrote: >> Add support for the Trace Hub in another Lewisburg PCH. >> >> Signed-off-by: Alexander Shishkin >> --- >> drivers/hwtracing/intel_th/pci.c | 5 + >> 1 file changed, 5 insertions(+) > > same

datablock reuse races Re: [RFC PATCH v4 1/9] printk-rb: add a new printk ringbuffer implementation

2019-08-20 Thread Petr Mladek
On Thu 2019-08-08 00:32:26, John Ogness wrote: > +/** > + * _dataring_pop() - Move tail forward, invalidating the oldest data block. > + * > + * @dr:The data ringbuffer containing the data block. > + * > + * @tail_lpos: The logical position of the oldest data block. > + * > + * This

Re: [PATCH bpf 1/1] xdp: unpin xdp umem pages in error path

2019-08-20 Thread Daniel Borkmann
On 8/15/19 10:56 PM, Ivan Khoronzhuk wrote: Fix mem leak caused by missed unpin routine for umem pages. Fixes: 8aef7340ae9695 ("commit xsk: introduce xdp_umem_page") Signed-off-by: Ivan Khoronzhuk Applied & fixed up 'Fixes:' tag, thanks.

Re: [PATCH] test_bpf: Fix a new clang warning about xor-ing two numbers

2019-08-20 Thread Daniel Borkmann
On 8/19/19 6:34 AM, Nathan Chancellor wrote: r369217 in clang added a new warning about potential misuse of the xor operator as an exponentiation operator: ../lib/test_bpf.c:870:13: warning: result of '10 ^ 300' is 294; did you mean '1e300'? [-Wxor-used-as-pow] { { 4, 10 ^ 300

Re: [PATCH] bpfilter/verifier: add include guard to tnum.h

2019-08-20 Thread Daniel Borkmann
On 8/19/19 6:10 PM, Masahiro Yamada wrote: Add a header include guard just in case. Signed-off-by: Masahiro Yamada Applied, thanks!

Re: [PATCH] perf/x86: Consider pinned events for group validation

2019-08-20 Thread Peter Zijlstra
On Tue, Aug 20, 2019 at 10:52:57AM -0400, Liang, Kan wrote: > On 8/20/2019 10:10 AM, Peter Zijlstra wrote: > > On Fri, Aug 16, 2019 at 10:49:10AM -0700, kan.li...@linux.intel.com wrote: > > > From: Kan Liang > > > > > > perf stat -M metrics relies on weak groups to reject unschedulable > > >

Re: [PATCH v2] merge_config.sh: Check error codes from make

2019-08-20 Thread Masahiro Yamada
On Tue, Aug 20, 2019 at 5:07 AM Mark Brown wrote: > > When we execute make after merging the configurations we ignore any > errors it produces causing whatever is running merge_config.sh to be > unaware of any failures. This issue was noticed by Guillaume Tucker > while looking at problems with

Re: [PATCH 0/3] fix interrupt swamp in NVMe

2019-08-20 Thread Keith Busch
On Tue, Aug 20, 2019 at 01:59:32AM -0700, John Garry wrote: > diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c > index e8f7f179bf77..cb483a055512 100644 > --- a/kernel/irq/manage.c > +++ b/kernel/irq/manage.c > @@ -966,9 +966,13 @@ irq_thread_check_affinity(struct irq_desc *desc, > struct

[PATCH] powerpc/fadump: when fadump is supported register the fadump sysfs files.

2019-08-20 Thread Michal Suchanek
Currently it is not possible to distinguish the case when fadump is supported by firmware and disabled in kernel and completely unsupported using the kernel sysfs interface. User can investigate the devicetree but it is more reasonable to provide sysfs files in case we get some fadumpv2 in the

Re: [PATCH v5 2/6] vfio: Introduce vGPU display irq type

2019-08-20 Thread Alex Williamson
On Tue, 20 Aug 2019 09:20:30 +0200 "kra...@redhat.com" wrote: > > > > +#define VFIO_IRQ_TYPE_GFX (1) > > > > +/* > > > > + * vGPU vendor sub-type > > > > + * vGPU device display related interrupts e.g. vblank/pageflip */ > > > > +#define

[PATCH v2 01/11] asm-generic: add dma_zone_size

2019-08-20 Thread Nicolas Saenz Julienne
Some architectures have platform specific DMA addressing limitations. This will allow for hardware description code to provide the constraints in a generic manner, so as for arch code to properly setup it's memory zones and DMA mask. Signed-off-by: Nicolas Saenz Julienne --- Changes in v2: None

[PATCH v2 02/11] arm: use generic dma_zone_size

2019-08-20 Thread Nicolas Saenz Julienne
'dma_zone_size' was created as a generic replacement to 'arm_dma_zone_size'. Use it accordingly. Signed-off-by: Nicolas Saenz Julienne --- Changes in v2: None arch/arm/include/asm/dma.h | 8 +--- arch/arm/mm/init.c | 12 2 files changed, 9 insertions(+), 11

[PATCH v2 00/11] Raspberry Pi 4 DMA addressing support

2019-08-20 Thread Nicolas Saenz Julienne
Hi all, this series attempts to address some issues we found while bringing up the new Raspberry Pi 4 in arm64 and it's intended to serve as a follow up of these discussions: v1: https://lkml.org/lkml/2019/7/31/922 RFC: https://lkml.org/lkml/2019/7/17/476 The new Raspberry Pi 4 has up to 4GB of

Re: [PATCH v3] lsilogic mpt fusion: mptctl: Fixed race condition around mptctl_id variable using mutexes

2019-08-20 Thread Mark Balançian
Hello Mister Prakash, Calaby, and Subramani, I also please request your reply to my previous message before the end of this Thursday the latest, as I am partaking in an evaluation period from the organization I am working for with a deadline very close to that time. Thank you, Mark On

[RESEND PATCHv4 0/1] drivers/amba: add reset control to amba

2019-08-20 Thread Dinh Nguyen
Hello, Even though this patch is a V4, I'm including more people in this review cycle because I found that there was previous patch[1] that was discussed. Thanks, Dinh [1] https://patchwork.kernel.org/patch/10845695/ Dinh Nguyen (1): drivers/amba: add reset control to amba bus probe

[RESEND PATCHv4 1/1] drivers/amba: add reset control to amba bus probe

2019-08-20 Thread Dinh Nguyen
The primecell controller on some SoCs, i.e. SoCFPGA, is held in reset by default. Until recently, the DMA controller was brought out of reset by the bootloader(i.e. U-Boot). But a recent change in U-Boot, the peripherals that are not used are held in reset and are left to Linux to bring them out

[PATCH v2 07/11] arm64: re-introduce max_zone_dma_phys()

2019-08-20 Thread Nicolas Saenz Julienne
Some devices might have multiple interconnects with different DMA addressing limitations. This function provides the higher physical address accessible by all peripherals on the SoC. If such limitation doesn't exist it'll return the maximum physical address of the 32 bit addressable area.

[PATCH v2 04/11] of/fdt: add early_init_dt_get_dma_zone_size()

2019-08-20 Thread Nicolas Saenz Julienne
Some devices might have weird DMA addressing limitations that only apply to a subset of the available peripherals. For example the Raspberry Pi 4 has two interconnects, one able to address the whole lower 4G memory area and another one limited to the lower 1G. Being an uncommon situation we

Re: [PATCH] sched/core: Schedule new worker even if PI-blocked

2019-08-20 Thread Sebastian Andrzej Siewior
On 2019-08-20 15:50:14 [+0200], Peter Zijlstra wrote: > On Fri, Aug 16, 2019 at 06:06:26PM +0200, Sebastian Andrzej Siewior wrote: > > If a task is PI-blocked (blocking on sleeping spinlock) then we don't want > > to > > schedule a new kworker if we schedule out due to lock contention because !RT

[PATCH v2 05/11] arm64: mm: use arm64_dma_phys_limit instead of calling max_zone_dma_phys()

2019-08-20 Thread Nicolas Saenz Julienne
By the time we call zones_sizes_init() arm64_dma_phys_limit already contains the result of max_zone_dma_phys(). We use the variable instead of calling the function directly to save some precious cpu time. Signed-off-by: Nicolas Saenz Julienne --- Changes in v2: None arch/arm64/mm/init.c | 2

Re: [PATCH RESEND] HID: fix error message in hid_open_report()

2019-08-20 Thread Jiri Kosina
On Mon, 22 Jul 2019, Michał Mirosław wrote: > On HID report descriptor parsing error the code displays bogus > pointer instead of error offset (subtracts start=NULL from end). > Make the message more useful by displaying correct error offset > and include total buffer size for reference. > >

Re: [RFC 04/11] soc: amlogic: Add support for SM1 power controller

2019-08-20 Thread Neil Armstrong
On 20/08/2019 01:56, Kevin Hilman wrote: > Neil Armstrong writes: > >> Add support for the General Purpose Amlogic SM1 Power controller, >> dedicated to the PCIe, USB, NNA and GE2D Power Domains. >> >> Signed-off-by: Neil Armstrong > > I like this driver in general, but as I look at all the EE

Re: [PATCH v2] mtd: spi-nor: fix a memory leak bug

2019-08-20 Thread Tudor.Ambarus
On 08/19/2019 08:16 PM, Wenwen Wang wrote: > External E-Mail > > > In spi_nor_parse_4bait(), 'dwords' is allocated through kmalloc(). However, > it is not deallocated in the following execution if spi_nor_read_sfdp() > fails, leading to a memory leak. To fix this issue, free 'dwords' before >

[PATCH 1/6] dt-bindings: net: sun8i-a83t-emac: Add phy-supply property

2019-08-20 Thread megous
From: Ondrej Jirman This is already supported by the driver, but is missing from the bindings. Signed-off-by: Ondrej Jirman --- .../devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml| 4 1 file changed, 4 insertions(+) diff --git

[PATCH 4/6] net: stmmac: sun8i: Rename PHY regulator variable to regulator_phy

2019-08-20 Thread megous
From: Ondrej Jirman We'll be adding further optional regulators, and this makes it clearer what the regulator is for. Signed-off-by: Ondrej Jirman --- .../net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 32 ++- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git

[PATCH 0/6] Add ethernet support for Orange Pi 3

2019-08-20 Thread megous
From: Ondrej Jirman This series implements ethernet support for Xunlong Orange Pi 3 board, by: - making small cleanups of existing dwmac-sun8i code - adding DT bindings docummentation - adding support for phy-io-supply to dwmac-sun8i code - adding DT configuration for Orange Pi 3 board For

[PATCH 6/6] arm64: dts: allwinner: orange-pi-3: Enable ethernet

2019-08-20 Thread megous
From: Ondrej Jirman Orange Pi 3 has two regulators that power the Realtek RTL8211E PHY. According to the datasheet, both regulators need to be enabled at the same time, or that "phy-io" should be enabled slightly earlier than "phy" regulator. RTL8211E/RTL8211EG datasheet says: Note 4: 2.5V

[PATCH 2/6] dt-bindings: net: sun8i-a83t-emac: Add phy-io-supply property

2019-08-20 Thread megous
From: Ondrej Jirman Some PHYs require separate power supply for I/O pins in some modes of operation. Add phy-io-supply property, to allow enabling this power supply. Signed-off-by: Ondrej Jirman --- .../devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml| 4 1 file changed, 4

[PATCH 5/6] net: stmmac: sun8i: Add support for enabling a regulator for PHY I/O pins

2019-08-20 Thread megous
From: Ondrej Jirman Orange Pi 3 has two regulators that power the Realtek RTL8211E. According to the phy datasheet, both regulators need to be enabled at the same time. Add support for the second optional regulator, "phy-io", to the glue driver. Signed-off-by: Ondrej Jirman ---

[PATCH 3/6] net: stmmac: sun8i: Use devm_regulator_get for PHY regulator

2019-08-20 Thread megous
From: Ondrej Jirman Use devm_regulator_get instead of devm_regulator_get_optional and rely on dummy supply. This avoids NULL checks before regulator_enable/disable calls. This path also improves error reporting, because we now report both use of dummy supply and error during registration with

[PATCH] modules: page-align module section allocations only for arches supporting strict module rwx

2019-08-20 Thread zhe.he
From: He Zhe We should keep the case of "#define debug_align(X) (X)" for all arches without CONFIG_HAS_STRICT_MODULE_RWX ability, which would save people, who are sensitive to system size, a lot of memory when using modules, especially for embedded systems. This is also the intention of the

Re: [PATCH] perf/x86: Consider pinned events for group validation

2019-08-20 Thread Liang, Kan
On 8/20/2019 10:10 AM, Peter Zijlstra wrote: On Fri, Aug 16, 2019 at 10:49:10AM -0700, kan.li...@linux.intel.com wrote: From: Kan Liang perf stat -M metrics relies on weak groups to reject unschedulable groups and run them as non-groups. This uses the group validation code in the kernel.

Re: [PATCH v3 4/8] PCI: Add quirk to disable MSI-X support for Amazon's Annapurna Labs Root Port

2019-08-20 Thread Chocron, Jonathan
On Mon, 2019-08-19 at 19:23 +0100, Andrew Murray wrote: > On Tue, Jul 23, 2019 at 12:25:29PM +0300, Jonathan Chocron wrote: > > The Root Port (identified by [1c36:0032]) doesn't support MSI-X. On > > some > > Shouldn't this read [1c36:0031]? > Indeed. Thanks for catching this. > > > platforms

using eventfd between userspace and kernelspace

2019-08-20 Thread Cosmin Marin
Hi folks, I have some doubts regarding the usage of eventfd and I'm seeking for some advice/suggestions. I want to use eventfd in a producer-consumer manner (EFD_SEMAPHORE) between a process's userspace and a kernel module. The desired behaviour: periodically, a userspace thread writes to the

Re: [PATCH v3] lsilogic mpt fusion: mptctl: Fixed race condition around mptctl_id variable using mutexes

2019-08-20 Thread Mark Balantzyan
Hi all, The race condition in the mptctl driver I'm wishing to have confirmed is evidenced by the pair of call chains: compat_mpctl_ioctl -> compat_mpt_command -> mptctl_do_mpt_command which calls mpt_get_msg_frame(mptctl_id, ioc) and __mptctl_ioctl -> mpt_fw_download ->

Re: [PATCH v3 bpf-next 1/4] tracing/probe: Add PERF_EVENT_IOC_QUERY_PROBE ioctl

2019-08-20 Thread Peter Zijlstra
On Fri, Aug 16, 2019 at 03:31:46PM -0700, Daniel Xu wrote: > It's useful to know [uk]probe's nmissed and nhit stats. For example with > tracing tools, it's important to know when events may have been lost. > debugfs currently exposes a control file to get this information, but > it is not

Re: [PATCH -rcu dev 1/3] rcu/tree: tick_dep_set/clear_cpu should accept bits instead of masks

2019-08-20 Thread Paul E. McKenney
On Tue, Aug 20, 2019 at 02:08:45PM +0200, Frederic Weisbecker wrote: > On Mon, Aug 19, 2019 at 09:44:20AM -0700, Paul E. McKenney wrote: > > On Mon, Aug 19, 2019 at 06:32:27PM +0200, Frederic Weisbecker wrote: > > > > But would the following patch make sense? This would not help for (say) > > > >

[PATCH 0/6] arm64: Add support for Amlogic SM1 SoC Family

2019-08-20 Thread Neil Armstrong
The new Amlogic SM1 SoC Family is a derivative of the Amlogic G12A SoC Family, with the following changes : - Cortex-A55 cores instead of A53 - more power domains, including USB & PCIe - a neural network co-processor (NNA) - a CSI input and image processor - some changes in the audio complex, thus

[PATCH 5/6] dt-bindings: arm: amlogic: add SEI Robotics SEI610 bindings

2019-08-20 Thread Neil Armstrong
Add the compatible for the Amlogic SM1 Based SEI610 board. Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/arm/amlogic.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml

<    1   2   3   4   5   6   7   8   9   10   >