[PATCH v4 4/4] arm64: dts: rockchip: enable rk3328-rock64 usb3 nodes

2020-09-02 Thread lindsey . stanpoor
From: Cameron Nemo Enable USB3 nodes for the rk3328-based PINE Rock64 board. Signed-off-by: Heiko Stuebner Signed-off-by: Cameron Nemo --- arch/arm64/boot/dts/rockchip/rk3328-rock64.dts | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts

Re: [PATCH v2 2/2] MAINTAINERS: Move Hartmut Knaack to Credits

2020-09-02 Thread Andy Shevchenko
On Wed, Sep 2, 2020 at 6:01 PM Krzysztof Kozlowski wrote: > > Hartmut Knaack was an active reviewer and contributor to the IIO > subsystem and drivers. However his last message on LKML is from > October 2015. > > In thanks for Hartmut's effort, move him name to the Credits. Reviewed-by: Andy She

Re: [PATCH 5/7] arm64: dts: ti: k3-am65-wakeup: Use generic temperature-sensor for node name

2020-09-02 Thread Nishanth Menon
On 11:55-20200902, Suman Anna wrote: > On 9/1/20 5:30 PM, Nishanth Menon wrote: > > Use temperature-sensor@ naming for nodes following standard conventions of > > device > > tree (section 2.2.2 Generic Names recommendation in [1]). > > > > [1] https://git

Re: [PATCH][next] staging: media: atomisp: fix memory leak of object flash

2020-09-02 Thread Andy Shevchenko
On Wed, Sep 2, 2020 at 8:02 PM Colin King wrote: > > From: Colin Ian King > > In the case where the call to lm3554_platform_data_func returns an > error there is a memory leak on the error return path of object > flash. Fix this by adding an error return path that will free > flash and rename la

Re: [PATCH 7/7] arm64: dts: ti: k3-*: Fix up node_name_chars_strict errors

2020-09-02 Thread Nishanth Menon
On 11:54-20200902, Suman Anna wrote: > On 9/1/20 5:30 PM, Nishanth Menon wrote: > > Building with W=2 throws up a bunch of easy to fixup errors.. > > node_name_chars_strict is one of them.. Knock those out. > > > > Signed-off-by: Nishanth Menon > > --- &g

Re: [PATCH 3/5] KVM: nVMX: Update VMX controls MSR according to guest CPUID after setting VMX MSRs

2020-09-02 Thread Sean Christopherson
On Fri, Aug 28, 2020 at 01:39:39PM -0700, Jim Mattson wrote: > On Fri, Aug 28, 2020 at 1:54 AM Chenyi Qiang wrote: > > > > Update the fields (i.e. VM_{ENTRY_LOAD, EXIT_CLEAR}_BNDCFGS and > > VM_{ENTRY, EXIT}_LOAD_IA32_PERF_GLOBAL_CTRL) in > > nested MSR_IA32_VMX_TRUE_{ENTRY, EXIT}_CTLS according t

Re: [PATCH net-next] net: dp83869: Add ability to advertise Fiber connection

2020-09-02 Thread Dan Murphy
On 9/2/20 8:25 AM, Dan Murphy wrote: Add the ability to advertise the Fiber connection if the strap or the op-mode is configured for 100Base-FX. Auto negotiation is not supported on this PHY when in fiber mode. Signed-off-by: Dan Murphy --- drivers/net/phy/dp83869.c | 35 ++

WARNING: ODEBUG bug in process_one_work (2)

2020-09-02 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:4d41ead6 Merge tag 'block-5.9-2020-08-28' of git://git.ker.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1196ce6190 kernel config: https://syzkaller.appspot.com/x/.config?x=978db74cb30aa994 das

Re: [PATCH 6/7] arm64: dts: ti: k3-*: Use generic adc for node names

2020-09-02 Thread Nishanth Menon
On 11:51-20200902, Suman Anna wrote: > On 9/1/20 5:30 PM, Nishanth Menon wrote: > > Use adc@ naming for nodes following standard conventions of device > > tree (section 2.2.2 Generic Names recommendation in [1]). > > > > [1] https://github.com/devicetree-org/devicet

Re: [RFC PATCH] tools/x86: add kcpuid tool to show raw CPU features

2020-09-02 Thread Borislav Petkov
On Wed, Sep 02, 2020 at 10:18:38AM -0700, Dave Hansen wrote: > All good points. > > Personally, I think I'd be OK if kcpuid _focused_ on single-bit values > only. Those are the vast majority of the things that we need from such > a tool. I don't think there's nearly as much demand for the topolo

Re: [PATCH v2] x86/asm: Replace __force_order with memory clobber

2020-09-02 Thread Miguel Ojeda
On Wed, Sep 2, 2020 at 5:33 PM Arvind Sankar wrote: > > + * The compiler should not reorder volatile asm, however older versions of > GCC > + * had a bug (which was fixed in 8.1, 7.3 and 6.5) where they could sometimes > + * reorder volatile asm. The write functions are not a problem since they

Re: [PATCH 2/7] arm64: dts: ti: k3-am65*: Use generic clock for serdes clock name

2020-09-02 Thread Nishanth Menon
On 12:45-20200902, Suman Anna wrote: > On 9/1/20 5:30 PM, Nishanth Menon wrote: > > Use clock@ naming for nodes following standard conventions of device > > tree (section 2.2.2 Generic Names recommendation in [1]). > > > > [1] https://github.com/devicetree-org/devicet

Re: [PATCH] kconfig: streamline_config.pl: check defined(ENV variable) before using it

2020-09-02 Thread Nathan Royce
Thanks, but I'd just as soon not be acknowledged/credited. All I did was submit a report. On Wed, Sep 2, 2020 at 11:47 AM Masahiro Yamada wrote: > > Applied to linux-kbuild/fixes with Nathan's tag > > Reported-by: Nathan Royce > > > > Nathan, > I think adding your tag is OK to credit your contri

Re: [PATCH v2] x86/asm: Replace __force_order with memory clobber

2020-09-02 Thread Arvind Sankar
On Wed, Sep 02, 2020 at 08:19:25PM +0200, Miguel Ojeda wrote: > On Wed, Sep 2, 2020 at 5:33 PM Arvind Sankar wrote: > > > > + * The compiler should not reorder volatile asm, however older versions of > > GCC > > + * had a bug (which was fixed in 8.1, 7.3 and 6.5) where they could > > sometimes >

Re: [PATCH -rc 0/4] Protect from GCC garbage input in GCOV

2020-09-02 Thread Linus Torvalds
On Wed, Sep 2, 2020 at 10:52 AM Leon Romanovsky wrote: > > Are you suggesting something like this? > > diff --git a/kernel/gcov/Kconfig b/kernel/gcov/Kconfig > index 3110c77230c7..bc0e355f64aa 100644 > --- a/kernel/gcov/Kconfig > +++ b/kernel/gcov/Kconfig > @@ -3,7 +3,7 @@ menu "GCOV-based kernel

[PATCH] drivers/perf: xgene_pmu: Fix uninitialized resource struct

2020-09-02 Thread Mark Salter
This splat was reported on newer Fedora kernels booting on certain X-gene based machines: xgene-pmu APMC0D83:00: X-Gene PMU version 3 Unable to handle kernel read from unreadable memory at virtual \ address 4006 ... Call trace: string+0x50/0x100 vsnprintf+0x160/0x750 devm_kv

Re: [PATCH rdma-next 1/4] gcov: Open-code kmemdup() to work correctly with kernel and user space pointers

2020-09-02 Thread Linus Torvalds
On Wed, Sep 2, 2020 at 10:46 AM Leon Romanovsky wrote: > > Definitely my explanation is wrong, but it was my interpretation of > "BUG: KASAN: global-out-of-bounds in kmemdup+0x43/0x70" line. I saw > that the failure was in memcpy() inside of kmemdup(), so I changed > from memcpy to be copy_from_us

Re: [PATCH -rc 0/4] Protect from GCC garbage input in GCOV

2020-09-02 Thread Leon Romanovsky
On Wed, Sep 02, 2020 at 11:24:50AM -0700, Linus Torvalds wrote: > On Wed, Sep 2, 2020 at 10:52 AM Leon Romanovsky wrote: > > > > Are you suggesting something like this? > > > > diff --git a/kernel/gcov/Kconfig b/kernel/gcov/Kconfig > > index 3110c77230c7..bc0e355f64aa 100644 > > --- a/kernel/gcov/

[PATCH] media: tc358743: cleanup tc358743_cec_isr

2020-09-02 Thread trix
From: Tom Rix tc358743_cec_isr is misnammed, it is not the main isr. So rename it to be consistent with its siblings, tc358743_cec_handler. It also does not check if its input parameter 'handled' is is non NULL like its siblings, so add a check. Fixes: a0ec8d1dc42e ("media: tc358743: add CEC su

Re: [PATCH 3/5] KVM: nVMX: Update VMX controls MSR according to guest CPUID after setting VMX MSRs

2020-09-02 Thread Jim Mattson
On Wed, Sep 2, 2020 at 11:16 AM Sean Christopherson wrote: > > On Fri, Aug 28, 2020 at 01:39:39PM -0700, Jim Mattson wrote: > > On Fri, Aug 28, 2020 at 1:54 AM Chenyi Qiang wrote: > > > > > > Update the fields (i.e. VM_{ENTRY_LOAD, EXIT_CLEAR}_BNDCFGS and > > > VM_{ENTRY, EXIT}_LOAD_IA32_PERF_GLO

Re: [PATCH 9/9] i2c: mux: reg: Simplify with dev_err_probe()

2020-09-02 Thread Peter Rosin
On 2020-09-02 17:06, Krzysztof Kozlowski wrote: > Common pattern of handling deferred probe can be simplified with > dev_err_probe(). Less code and the error value gets printed. > > Signed-off-by: Krzysztof Kozlowski Acked-by: Peter Rosin Cheers, Peter

Re: [PATCH][next] xsk: Fix null check on error return path

2020-09-02 Thread Daniel Borkmann
On 9/2/20 5:07 PM, Gustavo A. R. Silva wrote: Currently, dma_map is being checked, when the right object identifier to be null-checked is dma_map->dma_pages, instead. Fix this by null-checking dma_map->dma_pages. Addresses-Coverity-ID: 1496811 ("Logically dead code") Fixes: 921b68692abb ("xsk:

Re: [PATCH 8/9] i2c: mux: gpmux: Simplify with dev_err_probe()

2020-09-02 Thread Peter Rosin
On 2020-09-02 17:06, Krzysztof Kozlowski wrote: > Common pattern of handling deferred probe can be simplified with > dev_err_probe(). Less code and the error value gets printed. > > Signed-off-by: Krzysztof Kozlowski Acked-by: Peter Rosin Cheers, Peter

Re: [PATCH][next] xsk: fix incorrect memory allocation failure check on dma_map->dma_pages

2020-09-02 Thread Daniel Borkmann
On 9/2/20 6:13 PM, Colin King wrote: From: Colin Ian King The failed memory allocation check for dma_map->dma_pages is incorrect, it is null checking dma_map and not dma_map->dma_pages. Fix this. Addresses-Coverity: ("Logicall dead code") Fixes: 921b68692abb ("xsk: Enable sharing of dma mappin

Re: [PATCH] xsk: Free variable on error path

2020-09-02 Thread Daniel Borkmann
On 9/2/20 6:33 PM, Alex Dewar wrote: In xp_create_dma_map(), memory is allocated to dma_map->dma_pages, but then dma_map is erroneously compared to NULL, rather than the member. Fix this. Addresses-Coverity: ("Dead code") Fixes: 921b68692abb ("xsk: Enable sharing of dma mappings") Signed-off-by:

compensation

2020-09-02 Thread Mr. Milla
Dear Friend, I'm sorry but happy to inform you about my success in getting those funds transferred under the cooperation of a new partner from Vietnam, though I tried my best to involve you in the business but God decided the whole situations. Presently I’m in Vietnam for investment projects

[PATCH 7/7] clk: qcom: Add display clock controller driver for SM8250

2020-09-02 Thread Jonathan Marek
Add support for the display clock controller found on SM8250 based devices. Signed-off-by: Jonathan Marek --- drivers/clk/qcom/Kconfig |9 + drivers/clk/qcom/Makefile|1 + drivers/clk/qcom/dispcc-sm8250.c | 1100 ++ 3 files changed, 1110 insert

Re: [PATCH v2] net: openvswitch: pass NULL for unused parameters

2020-09-02 Thread Tom Rix
On 9/1/20 1:11 PM, David Miller wrote: > From: t...@redhat.com > Date: Sun, 30 Aug 2020 14:26:30 -0700 > >> Passing unused parameters is a waste. > Poorly predicted branches are an even bigger waste. > > I'm not a big fan of this change and others have asked for performance > analysis to be perfo

Re: [PATCH v33 11/21] x86/sgx: Linux Enclave Driver

2020-09-02 Thread Haitao Huang
On Wed, 02 Sep 2020 11:10:12 -0500, Sean Christopherson wrote: On Tue, Sep 01, 2020 at 10:06:32PM -0500, Haitao Huang wrote: On Fri, 03 Jul 2020 22:31:10 -0500, Jarkko Sakkinen wrote: > On Wed, Jul 01, 2020 at 08:59:02PM -0700, Sean Christopherson wrote: > > On Thu, Jun 18, 2020 at 01:08:3

Re: [RFC PATCH 00/16] 1GB THP support on x86_64

2020-09-02 Thread Jason Gunthorpe
On Wed, Sep 02, 2020 at 02:06:12PM -0400, Zi Yan wrote: > From: Zi Yan > > Hi all, > > This patchset adds support for 1GB THP on x86_64. It is on top of > v5.9-rc2-mmots-2020-08-25-21-13. > > 1GB THP is more flexible for reducing translation overhead and increasing the > performance of applicat

[PATCH 5/7] dt-bindings: clock: Introduce QCOM SM8250 display clock bindings

2020-09-02 Thread Jonathan Marek
Add device tree bindings for display clock controller for Qualcomm Technology Inc's SM8250 SoCs. Signed-off-by: Jonathan Marek --- .../bindings/clock/qcom,dispcc.yaml | 4 +- .../dt-bindings/clock/qcom,dispcc-sm8250.h| 66 +++ 2 files changed, 69 insertions(+), 1 d

[PATCH 6/7] clk: qcom: Add display clock controller driver for SM8150

2020-09-02 Thread Jonathan Marek
Add support for the display clock controller found on SM8150 based devices. Signed-off-by: Jonathan Marek --- drivers/clk/qcom/Kconfig |9 + drivers/clk/qcom/Makefile|1 + drivers/clk/qcom/dispcc-sm8150.c | 1152 ++ 3 files changed, 1162 insert

[PATCH 0/7] SM8150 and SM8250 dispcc drivers

2020-09-02 Thread Jonathan Marek
Add display clock drivers required to get DSI and DP displays working on SM8150 and SM8250 SoCs. Derived from downstream drivers. Notable changes compared to downstream: - EDP clks removed (nothing uses these even in downstream it seems) - freq_tbl values for dp_link clk is in Hz and not kHz Jo

[PATCH 3/7] dt-bindings: clock: combine qcom,sdm845-dispcc and qcom,sc7180-dispcc

2020-09-02 Thread Jonathan Marek
These two bindings are almost identical, so combine them into one. This will make it easier to add the sm8150 and sm8250 dispcc bindings. Signed-off-by: Jonathan Marek --- ...om,sdm845-dispcc.yaml => qcom,dispcc.yaml} | 18 ++-- .../bindings/clock/qcom,sc7180-dispcc.yaml| 86

[PATCH 4/7] dt-bindings: clock: Introduce QCOM SM8150 display clock bindings

2020-09-02 Thread Jonathan Marek
Add device tree bindings for display clock controller for Qualcomm Technology Inc's SM8150 SoCs. Signed-off-by: Jonathan Marek --- .../bindings/clock/qcom,dispcc.yaml | 4 +- .../dt-bindings/clock/qcom,dispcc-sm8150.h| 69 +++ 2 files changed, 72 insertions(+), 1 d

[PATCH 2/7] arm64: dts: qcom: sdm845-dispcc: same name for dp_phy clocks as sc7180

2020-09-02 Thread Jonathan Marek
This makes it easier to combine dt bindings for sdm845/sc7180 dispcc. Note: nothing upstream provides these clocks and the sdm845 dispcc driver hasn't switched to using .fw_name for these clocks (these properties are ignored), so changing this shouldn't be a problem. Signed-off-by: Jonathan Marek

[PATCH 1/7] dt-bindings: clock: sdm845-dispcc: same name for dp_phy clocks as sc7180

2020-09-02 Thread Jonathan Marek
This makes it easier to combine dt bindings for sdm845/sc7180 dispcc. Note: nothing upstream provides these clocks and the sdm845 dispcc driver hasn't switched to using .fw_name for these clocks (these properties are ignored), so changing this shouldn't be a problem. Signed-off-by: Jonathan Marek

[PATCH] staging: media: atomisp: Fix error path in lm3554_probe()

2020-09-02 Thread Alex Dewar
The error path for lm3554_probe() contains a number of bugs, including: * resource leaks * jumping to error labels out of sequence * not setting the return value appropriately Fix it up and give the labels more memorable names. This issue has existed since the code was originally contributed i

Re: [PATCH rdma-next 1/4] gcov: Open-code kmemdup() to work correctly with kernel and user space pointers

2020-09-02 Thread Leon Romanovsky
On Wed, Sep 02, 2020 at 11:27:14AM -0700, Linus Torvalds wrote: > On Wed, Sep 2, 2020 at 10:46 AM Leon Romanovsky wrote: > > > > Definitely my explanation is wrong, but it was my interpretation of > > "BUG: KASAN: global-out-of-bounds in kmemdup+0x43/0x70" line. I saw > > that the failure was in m

Re: [RFC PATCH 00/16] 1GB THP support on x86_64

2020-09-02 Thread Zi Yan
On 2 Sep 2020, at 14:40, Jason Gunthorpe wrote: > On Wed, Sep 02, 2020 at 02:06:12PM -0400, Zi Yan wrote: >> From: Zi Yan >> >> Hi all, >> >> This patchset adds support for 1GB THP on x86_64. It is on top of >> v5.9-rc2-mmots-2020-08-25-21-13. >> >> 1GB THP is more flexible for reducing translati

Re: [PATCH 02/38] media: v4l2-ioctl: avoid memory leaks on some time32 compat functions

2020-09-02 Thread Arnd Bergmann
On Wed, Sep 2, 2020 at 6:10 PM Mauro Carvalho Chehab wrote: > > There are some reports about possible memory leaks: > > drivers/media/v4l2-core//v4l2-ioctl.c:3203 video_put_user() warn: > check that 'ev32' doesn't leak information (struct has a hole after 'type') > drivers/media/v

Re: [RFC PATCH 00/16] 1GB THP support on x86_64

2020-09-02 Thread Jason Gunthorpe
On Wed, Sep 02, 2020 at 02:45:37PM -0400, Zi Yan wrote: > > Surprised this doesn't touch mm/pagewalk.c ? > > 1GB PUD page support is present for DAX purpose, so the code is there > in mm/pagewalk.c already. I only needed to supply ops->pud_entry when using > the functions in mm/pagewalk.c. :) Ye

Re: [PATCH v2 3/3] arm64: stacktrace: Convert to ARCH_STACKWALK

2020-09-02 Thread Mark Rutland
On Wed, Sep 02, 2020 at 11:32:13AM +0200, Miroslav Benes wrote: > Hi, > > it could be a silly question, but better to ask... > > > + if (regs) > > + start_backtrace(&frame, regs->regs[29], regs->pc); > > + else > > + start_backtrace(&frame, thread_saved_fp(task), > > +

Re: [RFC PATCH 00/30] ima: Introduce IMA namespace

2020-09-02 Thread Mimi Zohar
On Fri, 2020-08-21 at 15:13 +, Krzysztof Struczynski wrote: > > From: James Bottomley [mailto:james.bottom...@hansenpartnership.com] > > On Tue, 2020-08-18 at 17:20 +0200, krzysztof.struczyn...@huawei.com > > wrote: > > > The measurement list remains global, with the assumption that there > > >

Re: [PATCH v2 1/2] MAINTAINERS: Consolidate Analog Devices IIO entries and remove Beniamin Bia

2020-09-02 Thread Joe Perches
On Wed, 2020-09-02 at 21:11 +0300, Andy Shevchenko wrote: > On Wed, Sep 2, 2020 at 6:04 PM Krzysztof Kozlowski wrote: > > Emails to Beniamin Bia bounce with no such address so remove him from > > maintainers. After this removal, many entries for Analog Devices Inc > > IIO drivers look exactly the

Re: [PATCH] Fix khugepaged's request size in collapse_file()

2020-09-02 Thread Pankaj Gupta
> collapse_file() in khugepaged passes PAGE_SIZE as the number of pages to be > read ahead to page_cache_sync_readahead(). It seems this was expressed as a > number of bytes rather than a number of pages. > > Fix it to use the number of pages to the end of the window instead. > > Fixes: 99cb0dbd47

Re: [PATCH v1] regmap: Add can_sleep configuration option

2020-09-02 Thread Mark Brown
On Wed, 2 Sep 2020 17:18:43 +0300, Dmitry Osipenko wrote: > Regmap can't sleep if spinlock is used for the locking protection. > This patch fixes regression caused by a previous commit that switched > regmap to use fsleep() and this broke Amlogic S922X platform. > > This patch adds new configurati

Re: [PATCH] regulator: pwm: Fix machine constraints application

2020-09-02 Thread Mark Brown
On Wed, 2 Sep 2020 15:09:52 +0200, Vincent Whitchurch wrote: > If the zero duty cycle doesn't correspond to any voltage in the voltage > table, the PWM regulator returns an -EINVAL from get_voltage_sel() which > results in the core erroring out with a "failed to get the current > voltage" and endin

[GIT PULL] HID fixes

2020-09-02 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-linus to receive HID subsystem fixes. Most importantly: = - Data sanitization and validtion fixes for report descriptor parser from Marc Zyngier - memory leak fix for hid-elan driver from Dinghao Liu

Re: [PATCH v3 04/10] PCI/RCEC: Add pcie_walk_rcec() to walk associated RCiEPs

2020-09-02 Thread Bjorn Helgaas
On Wed, Aug 12, 2020 at 09:46:53AM -0700, Sean V Kelley wrote: > From: Qiuxu Zhuo > > When an RCEC device signals error(s) to a CPU core, the CPU core > needs to walk all the RCiEPs associated with that RCEC to check > errors. So add the function pcie_walk_rcec() to walk all RCiEPs > associated w

Re: [PATCH v2 0/3] arm64: Convert to ARCH_STACKWALK

2020-09-02 Thread Mark Rutland
On Wed, Sep 02, 2020 at 06:38:03PM +0100, Mark Brown wrote: > On Tue, Sep 01, 2020 at 05:06:26PM +0100, Mark Rutland wrote: > > > Just to check, has the skipping logic been tested to work equivalently > > to what we had before? By inspection I think it should, but since it > > relies on function c

Re: [PATCH v7 0/5] Warn on orphan section placement

2020-09-02 Thread Nick Desaulniers
On Tue, Sep 1, 2020 at 7:53 PM Kees Cook wrote: > > Hi Ingo, > > The ever-shortening series. ;) Here is "v7", which is just the remaining > Makefile changes to enable orphan section warnings, now updated to > include ld-option calls. > > Thanks for getting this all into -tip! For the series, Revi

Re: [PATCH v2 1/4] clk: bcm: rpi: Add register to control pixel bvb clk

2020-09-02 Thread Maxime Ripard
Hi Stephen, Mike, On Tue, Sep 01, 2020 at 01:07:56PM +0900, Hoegeun Kwon wrote: > To use QHD or higher, we need to modify the pixel_bvb_clk value. So > add register to control this clock. > > Signed-off-by: Hoegeun Kwon Reviewed-by: Maxime Ripard Can you merge this patch through the clk tree?

Re: pwm-sun4i: PWM backlight is not turned off on shutdown

2020-09-02 Thread Andrey Lebedev
On 9/2/20 12:54 PM, Daniel Thompson wrote: > On Thu, Aug 27, 2020 at 10:55:28PM +0300, Andrey Lebedev wrote: >> I think I'm experiencing problem with pwm-sun4i module. I'll describe >> the symptoms first. >> >> I have a device, based on Allwinner A20 (Cubieboard 2) with LVDS display >> that has a

Re: [PATCH rdma-next 1/4] gcov: Open-code kmemdup() to work correctly with kernel and user space pointers

2020-09-02 Thread Linus Torvalds
On Wed, Sep 2, 2020 at 11:44 AM Leon Romanovsky wrote: > > I already don't remember why, but copy_from_user() caused to second flow > of gcov_info_dup() through gcov_event() to generate another set of warnings. > > As a summary, I have a workaround, but I don't know why it works and not > proud ab

Re: [RFC PATCH 00/16] 1GB THP support on x86_64

2020-09-02 Thread Zi Yan
On 2 Sep 2020, at 14:48, Jason Gunthorpe wrote: > On Wed, Sep 02, 2020 at 02:45:37PM -0400, Zi Yan wrote: > >>> Surprised this doesn't touch mm/pagewalk.c ? >> >> 1GB PUD page support is present for DAX purpose, so the code is there >> in mm/pagewalk.c already. I only needed to supply ops->pud_ent

[PATCH] mm/doc: editorial pass on page migration

2020-09-02 Thread Ralph Campbell
Add Sphinx reference links to HMM and CPUSETS, and numerous small editorial changes to make the page_migration.rst document more readable. Signed-off-by: Ralph Campbell --- .../admin-guide/cgroup-v1/cpusets.rst | 2 + Documentation/vm/hmm.rst | 2 +- Documentatio

Re: [PATCH][next] xsk: Fix null check on error return path

2020-09-02 Thread Gustavo A. R. Silva
On Wed, Sep 02, 2020 at 08:33:41PM +0200, Daniel Borkmann wrote: > On 9/2/20 5:07 PM, Gustavo A. R. Silva wrote: > > Currently, dma_map is being checked, when the right object identifier > > to be null-checked is dma_map->dma_pages, instead. > > > > Fix this by null-checking dma_map->dma_pages. >

Re: [PATCH v2 1/2] MAINTAINERS: Consolidate Analog Devices IIO entries and remove Beniamin Bia

2020-09-02 Thread Krzysztof Kozlowski
On Wed, 2 Sep 2020 at 20:54, Joe Perches wrote: > > On Wed, 2020-09-02 at 21:11 +0300, Andy Shevchenko wrote: > > On Wed, Sep 2, 2020 at 6:04 PM Krzysztof Kozlowski wrote: > > > Emails to Beniamin Bia bounce with no such address so remove him from > > > maintainers. After this removal, many entr

[PATCH] staging: rtl8723bs: os_dep: added blank line to fix coding style issue

2020-09-02 Thread Ross Schmidt
Fixed a coding style issue by adding a blank line after declarations in sdio_intf.c to fix a checkpatch warning. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b/driver

[PATCH] staging: pi433: break long lines

2020-09-02 Thread Bryan Brattlof
scripts/checkpatch.pl is warning about some lines exceeding 100 charecters. This will cleanup the warnings. Signed-off-by: Bryan Brattlof --- drivers/staging/pi433/pi433_if.h | 26 ++ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/drivers/staging/pi433/p

[PATCH net] net: dp83867: Fix WoL SecureOn password

2020-09-02 Thread Dan Murphy
Fix the registers being written to as the values were being over written when writing the same registers. Fixes: caabee5b53f5 ("net: phy: dp83867: support Wake on LAN") Signed-off-by: Dan Murphy --- drivers/net/phy/dp83867.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH net v2] drivers/net/wan/hdlc: Change the default of hard_header_len to 0

2020-09-02 Thread Xie He
Change the default value of hard_header_len in hdlc.c from 16 to 0. Currently there are 6 HDLC protocol drivers. Among them: hdlc_raw_eth, hdlc_cisco, hdlc_ppp, hdlc_x25 set hard_header_len when attaching the protocol, overriding the default. So this patch does not affect them. hdlc_raw and hdlc

Re: [PATCH v2 0/7] set clang minimum version to 10.0.1

2020-09-02 Thread Nick Desaulniers
On Tue, Sep 1, 2020 at 1:01 PM Kees Cook wrote: > > On Mon, Aug 31, 2020 at 05:23:19PM -0700, Nick Desaulniers wrote: > > Adds a compile time #error to compiler-clang.h setting the effective > > minimum supported version to clang 10.0.1. A separate patch has already > > been picked up into the Doc

Re: [PATCH v2 1/2] cper, apei, mce: Pass x86 CPER through the MCA handling chain

2020-09-02 Thread Smita Koralahalli Channabasappa
On 8/31/20 12:05 AM, Punit Agrawal wrote: Hi Smita, A couple of comments below - Smita Koralahalli writes: [...] diff --git a/drivers/firmware/efi/cper-x86.c b/drivers/firmware/efi/cper-x86.c index 2531de49f56c..374b8e18552a 100644 --- a/drivers/firmware/efi/cper-x86.c +++ b/drivers/firmw

[PATCH 04/11] mmc: jz4740: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/mmc/host/jz4740_mmc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/jz4740_mmc

[PATCH 05/11] mmc: meson: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/mmc/host/meson-gx-mmc.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers/mmc/

[PATCH 02/11] mmc: davinci: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/mmc/host/davinci_mmc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/davinci_m

[RFT 06/11] mmc: sdhci-brcmstb: Simplify with optional clock and dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Only -ENOENT from devm_clk_get() means that clock is not present in device tree. Other errors have their own meaning and should not be ignored. Simplify getting the clock which is in fact optional and also use dev_err_probe() for handling deferred. Signed-off-by: Krzysztof Kozlowski --- Not t

[PATCH 03/11] mmc: dw_mmc-zx: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/mmc/host/dw_mmc-zx.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/mmc/host/dw_m

[PATCH 01/11] mmc: bcm2835: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/mmc/host/bcm2835.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mmc/host/bcm2835.c b/dri

[PATCH 11/11] mmc: host: Enable compile testing of multiple drivers

2020-09-02 Thread Krzysztof Kozlowski
Multiple MMC host controller driver can be compile tested as they do not depend on architecture specific headers. Signed-off-by: Krzysztof Kozlowski --- drivers/mmc/host/Kconfig | 42 ++-- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/drivers

[PATCH 09/11] mmc: dw_mmc: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code, the error value gets printed and real error from dw_mci_parse_dt() is passed further instead of fixed -EINVAL. Signed-off-by: Krzysztof Kozlowski --- drivers/mmc/host/dw_mmc.c | 9 +++-- 1 file chan

[PATCH 10/11] mmc: sdhci-of-sparx5: Use proper printk format for dma_addr_t

2020-09-02 Thread Krzysztof Kozlowski
dma_addr_t size varies between architectures so use dedicated printk format to fix compile testing warning (e.g. on 32-bit MIPS): drivers/mmc/host/sdhci-of-sparx5.c:63:11: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘dma_addr_t {aka unsi

[PATCH 08/11] mmc: sdhci-tegra: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/mmc/host/sdhci-tegra.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/host/sdhci-t

[PATCH 07/11] mmc: sdhci-of-arasan: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/mmc/host/sdhci-of-arasan.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/sdh

Re: [PATCH] RDMA/ucma: fix memory leak of mc on an xa_alloc failure

2020-09-02 Thread Colin Ian King
On 02/09/2020 20:03, Markus Elfring wrote: >> Currently when an xa_alloc failure occurs the error exit path leaks >> the allocated object mc. Fix this by adding an error return path >> that frees mc and rename error exit paths err3 to err4 and err2 to err3. > > I propose to choose further alterna

Re: [PATCH] mm/doc: editorial pass on page migration

2020-09-02 Thread Randy Dunlap
Hey Ralph, Thanks for the update/corrections. Nice job. A few nits/comments below: On 9/2/20 12:06 PM, Ralph Campbell wrote: > Add Sphinx reference links to HMM and CPUSETS, and numerous small > editorial changes to make the page_migration.rst document more readable. > > Signed-off-by: Ralph Ca

Re: [PATCH] lockdep: Fix "USED" <- "IN-NMI" inversions

2020-09-02 Thread Paul E. McKenney
On Wed, Sep 02, 2020 at 06:03:23PM +0200, pet...@infradead.org wrote: > > During the LPC RCU BoF Paul asked how come the "USED" <- "IN-NMI" > detector doesn't trip over rcu_read_lock()'s lockdep annotation. > > Looking into this I found a very embarrasing typo in > verify_lock_unused(): > > -

[PATCH 00/11] mmc: Minor cleanups and compile test

2020-09-02 Thread Krzysztof Kozlowski
Hi, Set of minor cleanups. Patches requiring more attention: - 6/11: Testing and review would be appreciated, - 11/11: I build tested multiple architectures but not all and definitely no all possible configs. This one could sit on the lists for few days so 0-day would try it. Best regard

[PATCH v4 1/3] PCI/IOV: Mark VFs as not implementing MSE bit

2020-09-02 Thread Matthew Rosato
Per the PCIe spec, VFs cannot implement the MSE bit AKA PCI_COMMAND_MEMORY, and it must be hard-wired to 0. Use a dev_flags bit to signify this requirement. Signed-off-by: Matthew Rosato --- drivers/pci/iov.c | 1 + include/linux/pci.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/dri

[PATCH v4 0/3] vfio/pci: Restore MMIO access for s390 detached VFs

2020-09-02 Thread Matthew Rosato
Since commit abafbc551fdd ("vfio-pci: Invalidate mmaps and block MMIO access on disabled memory") VFIO now rejects guest MMIO access when the PCI_COMMAND_MEMORY (MSE) bit is OFF. This is however not the case for VFs (fixed in commit ebfa440ce38b ("vfio/pci: Fix SR-IOV VF handling with MMIO blockin

[PATCH v4 2/3] s390/pci: Mark all VFs as not implementing MSE bit

2020-09-02 Thread Matthew Rosato
For s390 we can have VFs that are passed-through without the associated PF. Firmware provides an emulation layer to allow these devices to operate independently, but is missing emulation of the MSE bit. For these as well as linked VFs, mark a dev_flags bit that specifies these devices do not impl

[PATCH v4 3/3] vfio/pci: Decouple MSE bit checks from is_virtfn

2020-09-02 Thread Matthew Rosato
While it is true that devices with is_virtfn=1 will have an MSE that is hard-wired to 0, this is not the only case where we see this behavior -- For example some bare-metal hypervisors lack MSE bit emulation for devices not setting is_virtfn (s390). Fix this by instead checking for the newly-added

Re: [PATCH v2 5/9] libperf: Add support for user space counter access

2020-09-02 Thread Rob Herring
On Wed, Sep 2, 2020 at 12:07 PM Ian Rogers wrote: > > On Fri, Aug 28, 2020 at 1:56 PM Rob Herring wrote: > > > > x86 and arm64 can both support direct access of event counters in > > userspace. The access sequence is less than trivial and currently exists > > in perf test code (tools/perf/arch/x8

Re: [PATCH] PCI/ASPM: Enable ASPM for links under VMD domain

2020-09-02 Thread David Fugate
On Tue, 2020-08-25 at 07:56 +0100, Christoph Hellwig wrote: > while adding absolutely no value. Basically we have to add a large > chunk of kernel code just to undo silicone/firmware Intel added to > their > platform to make things complicated. I mean it is their platform and > if > they want a "

Re: [PATCH net 3/3] hinic: fix bug of send pkts while setting channels

2020-09-02 Thread David Miller
From: Luo bin Date: Wed, 2 Sep 2020 17:41:45 +0800 > @@ -531,6 +531,11 @@ netdev_tx_t hinic_xmit_frame(struct sk_buff *skb, struct > net_device *netdev) > struct hinic_txq *txq; > struct hinic_qp *qp; > > + if (unlikely(!netif_carrier_ok(netdev))) { > + dev_kfree_sk

Re: pwm-sun4i: PWM backlight is not turned off on shutdown

2020-09-02 Thread Pascal Roeleven
Thank you for adding me. Emil (also added now) and I spent a while on trying to figure out how to solve this. The Allwinner PWM controller has some quirks. Unfortunately I never got around to perform some more tests and fix it indefinitely. It's still on my todo list.. On 9/2/20 12:54 PM, D

Re: [PATCH] net: bcmgenet: fix mask check in bcmgenet_validate_flow()

2020-09-02 Thread David Miller
From: Denis Efremov Date: Wed, 2 Sep 2020 14:18:45 +0300 > VALIDATE_MASK(eth_mask->h_source) is checked twice in a row in > bcmgenet_validate_flow(). Add VALIDATE_MASK(eth_mask->h_dest) > instead. > > Fixes: 3e370952287c ("net: bcmgenet: add support for ethtool rxnfc flows") > Cc: sta...@vger.k

Re: [RFC PATCH 00/30] ima: Introduce IMA namespace

2020-09-02 Thread Mimi Zohar
On Tue, 2020-08-18 at 18:49 +0200, Christian Brauner wrote: > On Tue, Aug 18, 2020 at 05:20:07PM +0200, krzysztof.struczyn...@huawei.com > wrote: > > From: Krzysztof Struczynski > > > > IMA has not been designed to work with containers. It handles every > > process in the same way, and it cannot

[tip:master] BUILD SUCCESS 10690df7fc4a529605c4d72508567ad25a93d406

2020-09-02 Thread kernel test robot
00901 i386 randconfig-a004-20200902 i386 randconfig-a005-20200902 i386 randconfig-a006-20200902 i386 randconfig-a002-20200902 i386 randconfig-a001-20200902 i386 randconfig-a003-20200902 i386 randconfig-a01

Re: Various problems for the Xen for XenGT code and guide.

2020-09-02 Thread Roman Shaposhnik
On Wed, Sep 2, 2020 at 5:48 AM Lv, Zhiyuan wrote: > > Hi, > > It is mainly due to the business priority change. XenGT project was > originally created for data center usages with XEON E3 servers which have > integrated processor graphics. After SkyLake E3, there are no new servers > capable of

Re: [PATCH 01/11] mmc: bcm2835: Simplify with dev_err_probe()

2020-09-02 Thread Florian Fainelli
On 9/2/2020 12:36 PM, Krzysztof Kozlowski wrote: Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski Acked-by: Florian Fainelli -- Florian

Re: [RFC PATCH 00/16] 1GB THP support on x86_64

2020-09-02 Thread Jason Gunthorpe
On Wed, Sep 02, 2020 at 03:05:39PM -0400, Zi Yan wrote: > On 2 Sep 2020, at 14:48, Jason Gunthorpe wrote: > > > On Wed, Sep 02, 2020 at 02:45:37PM -0400, Zi Yan wrote: > > > >>> Surprised this doesn't touch mm/pagewalk.c ? > >> > >> 1GB PUD page support is present for DAX purpose, so the code is t

Re: [PATCH] mm/doc: editorial pass on page migration

2020-09-02 Thread Ralph Campbell
On 9/2/20 12:41 PM, Randy Dunlap wrote: Hey Ralph, Thanks for the update/corrections. Nice job. A few nits/comments below: On 9/2/20 12:06 PM, Ralph Campbell wrote: Add Sphinx reference links to HMM and CPUSETS, and numerous small editorial changes to make the page_migration.rst document mo

Re: [RFT 06/11] mmc: sdhci-brcmstb: Simplify with optional clock and dev_err_probe()

2020-09-02 Thread Florian Fainelli
On 9/2/2020 12:36 PM, Krzysztof Kozlowski wrote: Only -ENOENT from devm_clk_get() means that clock is not present in device tree. Other errors have their own meaning and should not be ignored. Simplify getting the clock which is in fact optional and also use dev_err_probe() for handling defe

Re: [PATCH net] net: dp83867: Fix WoL SecureOn password

2020-09-02 Thread Andrew Lunn
On Wed, Sep 02, 2020 at 02:27:04PM -0500, Dan Murphy wrote: > Fix the registers being written to as the values were being over written > when writing the same registers. > > Fixes: caabee5b53f5 ("net: phy: dp83867: support Wake on LAN") > Signed-off-by: Dan Murphy Reviewed-by: Andrew Lunn

Re: [PATCH v7 6/6] Documentation: ACPI: Document allow-low-power-probe _DSD property

2020-09-02 Thread Sakari Ailus
On Wed, Sep 02, 2020 at 06:34:30PM +0200, Rafael J. Wysocki wrote: > On Wed, Sep 2, 2020 at 6:31 PM Sakari Ailus > wrote: > > > > Hi Rafael, > > > > Thank you for the review. > > > > On Wed, Sep 02, 2020 at 05:57:01PM +0200, Rafael J. Wysocki wrote: > > > On Tue, Sep 1, 2020 at 11:03 PM Sakari Ail

[RFC PATCH 2/7] pstore: Support a new backend, ramtrace

2020-09-02 Thread Nachammai Karuppiah
ramtrace provides persistent RAM storage for trace, so they can be recovered after a reboot. This is a child-node of "/reserved-memory", and is named "ramtrace" after the backend. ramtrace supports allocation and deallocation of page-sized memory This functionality is used by ring buffer in trace

[RFC PATCH 6/7] tracing: Use ramtrace alloc and free methods while using persistent RAM

2020-09-02 Thread Nachammai Karuppiah
If persistent RAM is being used to record trace entries, allocate and free pages using ramtrace_alloc_page and ramtrace_free_page. Signed-off-by: Nachammai Karuppiah --- kernel/trace/ring_buffer.c | 122 +++-- 1 file changed, 119 insertions(+), 3 deletions

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