Re: [PATCH] x86/boot: drop memset from copy.S

2019-01-07 Thread hpa
On January 6, 2019 11:40:56 PM PST, Cao jin wrote: >According to objdump output of setup, function memset is not used in >setup code. Currently, all usage of memset in setup come from macro >definition of string.h. > >Signed-off-by: Cao jin >--- >Compiled and booted under x86_64; compiled under i

Re: [PATCHv4] x86/kdump: bugfix, make the behavior of crashkernel=X consistent with kaslr

2019-01-07 Thread Pingfan Liu
On Fri, Jan 4, 2019 at 5:43 PM Baoquan He wrote: > > On 01/04/19 at 04:39pm, Pingfan Liu wrote: > > Customer reported a bug on a high end server with many pcie devices, where > > kernel bootup with crashkernel=384M, and kaslr is enabled. Even > > though we still see much memory under 896 MB, the f

[PATCHv5] x86/kdump: bugfix, make the behavior of crashkernel=X consistent with kaslr

2019-01-07 Thread Pingfan Liu
Customer reported a bug on a high end server with many pcie devices, where kernel bootup with crashkernel=384M, and kaslr is enabled. Even though we still see much memory under 896 MB, the finding still failed intermittently. Because currently we can only find region under 896 MB, if w/0 ',high' sp

Re: [PATCH] Elantech Touchpad: Fix Elantech touchpad and trackpoint for Lenovo ThinkPad notebooks.

2019-01-07 Thread Benjamin Tissoires
Hi Kai-Heng, On Sun, Jan 6, 2019 at 10:44 AM Kai Heng Feng wrote: > > Hi Benjamin, > > > On Dec 29, 2018, at 1:53 AM, Philipp Kaelin wrote: > > > > Initial situation: > > - The touchpad of a Lenovo ThinkPad L580 doesn't work with newer kernel > > versions eg. 4.20 > > - It used to work on earli

RE: [PATCH 1/2 v5] kdump: add the vmcoreinfo documentation

2019-01-07 Thread Hatayama, Daisuke
Hi, > -Original Message- > From: linux-kernel-ow...@vger.kernel.org > [mailto:linux-kernel-ow...@vger.kernel.org] On Behalf Of Lianbo Jiang > Sent: Monday, January 7, 2019 10:48 AM > To: linux-kernel@vger.kernel.org > Cc: ke...@lists.infradead.org; t...@linutronix.de; mi...@redhat.com; > b

Re: [RFC PATCH 4/4] crypto: Add EC-RDSA algorithm

2019-01-07 Thread Vitaly Chikunov
Stephan, On Sun, Jan 06, 2019 at 07:11:50PM +0100, Stephan Müller wrote: > Am Sonntag, 6. Januar 2019, 14:36:08 CET schrieb Vitaly Chikunov: > > > Add Elliptic Curve Russian Digital Signature Algorithm (GOST R > > 34.10-2012, RFC 7091, ISO/IEC 14888-3) is one of the Russian (and since > > 2018 th

[RFC PATCH 1/4] acpi: change the topo of acpi_table_upgrade()

2019-01-07 Thread Pingfan Liu
The current acpi_table_upgrade() relies on initrd_start, but this var is only valid after relocate_initrd(). There is requirement to extract the acpi info from initrd before memblock-allocator can work(see [2/4]), hence acpi_table_upgrade() need to accept the input param directly. Signed-off-by: P

[RFC PATCH 2/4] x86/setup: parse acpi to get hotplug info before init_mem_mapping()

2019-01-07 Thread Pingfan Liu
At present, memblock bottom-up allocation can help us against stamping over movable node in very high probability. But if the hotplug info has already been parsed, the memblock allocator can step around the movable node by itself. This patch pushes the parsing step forward, just ahead of where, the

[RFC PATCH 3/4] x86/mm: set allowed range for memblock allocator

2019-01-07 Thread Pingfan Liu
Due to the incoming divergence of x86_32 and x86_64, there is requirement to set the allowed allocating range at the early boot stage. This patch also includes minor change to remove redundat cond check, refer to memblock_find_in_range_node(), memblock_find_in_range() has already protect itself fro

[RFC PATCH 4/4] x86/mm: remove bottom-up allocation style for x86_64

2019-01-07 Thread Pingfan Liu
There are two acheivements by this patch. -1st. keep the subtree of pgtable away from movable node. Background about the defect of the current bottom-up allocation style, take the following scenario: | unmovable node | movable node | | kaslr-kernel |subtree of

[RFC PATCH 0/4] x86_64/mm: remove bottom-up allocation style by pushing forward the parsing of mem hotplug info

2019-01-07 Thread Pingfan Liu
Background about the defect of the current bottom-up allocation style, take the following scenario: | unmovable node | movable node | | kaslr-kernel |subtree of pgtable for phy<->virt | Although kaslr-kernel can avoid to stain the movable node. But the pgtable

[PATCH] fbdev: fbmem: convert CONFIG_FB_LOGO_CENTER into a cmd line, option

2019-01-07 Thread Peter Rosin
On 2019-01-06 10:33, Geert Uytterhoeven wrote: > Hi Peter, > > On Mon, Nov 26, 2018 at 10:59 PM Peter Rosin wrote: >> If there are extra logos (CONFIG_FB_LOGO_EXTRA) the heights of these >> extra logos are not considered when centering the first logo vertically. >> >> Signed-off-by: Peter Rosin

[PATCH 1/2] dt-bindings: bcm-ns-usb2-phy: rework binding to use CRU syscon

2019-01-07 Thread Rafał Miłecki
From: Rafał Miłecki USB 2.0 PHY is a hardware block that happens to use two registers from the CRU block to setup a single PLL. It's not part of the CRU or DMU and so its binding shouldn't cover the whole DMU. The correct way of handling this is to reference CRU block node using a syscon. Docume

[PATCH 2/2] phy: bcm-ns-usb2: support updated DT binding with the CRU syscon

2019-01-07 Thread Rafał Miłecki
From: Rafał Miłecki This adds support for the "syscon-cru" DT property which simply requires using regmap to access CRU registers. The old binding has been deprecated and stays as a fallback method. Signed-off-by: Rafał Miłecki --- drivers/phy/broadcom/phy-bcm-ns-usb2.c | 44 +

Re: [PATCH v7 03/22] alpha: define remaining syscall_get_* functions

2019-01-07 Thread kbuild test robot
/linux/commits/Dmitry-V-Levin/asm-generic-syscall-h-prepare-for-inclusion-by-other-files/20190107-115241 config: alpha-allmodconfig (attached as .config) compiler: alpha-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin

Re: [RFC PATCH 4/4] crypto: Add EC-RDSA algorithm

2019-01-07 Thread Stephan Mueller
Am Montag, 7. Januar 2019, 09:07:10 CET schrieb Vitaly Chikunov: Hi Vitaly, > > Why do you manually parse the ASN.1 structure instead of using the ASN.1 > > parser? > > I am not sure this worth effort and will not be most degenerate use of > asn1_ber_decoder, since 1) I only need to parse one ty

Re: [PATCHv3 1/2] mm/memblock: extend the limit inferior of bottom-up after parsing hotplug attr

2019-01-07 Thread Pingfan Liu
I send out a series [RFC PATCH 0/4] x86_64/mm: remove bottom-up allocation style by pushing forward the parsing of mem hotplug info ( https://lore.kernel.org/lkml/1546849485-27933-1-git-send-email-kernelf...@gmail.com/T/#t). Please give comment if you are interested. Thanks, Pingfan On Fri, Jan 4

Re: [RFC PATCH V3 5/5] vhost: access vq metadata through kernel virtual address

2019-01-07 Thread Jason Wang
On 2019/1/5 上午5:34, Michael S. Tsirkin wrote: On Sat, Dec 29, 2018 at 08:46:56PM +0800, Jason Wang wrote: It was noticed that the copy_user() friends that was used to access virtqueue metdata tends to be very expensive for dataplane implementation like vhost since it involves lots of software

Re: [PATCH] fbdev: fbmem: convert CONFIG_FB_LOGO_CENTER into a cmd line, option

2019-01-07 Thread Geert Uytterhoeven
Hi Peter, On Mon, Jan 7, 2019 at 9:26 AM Peter Rosin wrote: > On 2019-01-06 10:33, Geert Uytterhoeven wrote: > > On Mon, Nov 26, 2018 at 10:59 PM Peter Rosin wrote: > >> If there are extra logos (CONFIG_FB_LOGO_EXTRA) the heights of these > >> extra logos are not considered when centering the fi

Re: mmotm 2018-12-21-15-28 uploaded

2019-01-07 Thread Michal Hocko
Hi, On Mon 07-01-19 13:02:31, Anshuman Khandual wrote: > On 12/22/2018 04:58 AM, a...@linux-foundation.org wrote: [...] > > A git tree which contains the memory management portion of this tree is > > maintained at git://git.kernel.org/pub/scm/linux/kernel/git/mhocko/mm.gi > > Hello Michal, > > I

Re: [PATCH v2] kernel/dma: Fix panic caused by passing swiotlb to command line

2019-01-07 Thread He Zhe
Kindly ping. Zhe On 12/3/18 6:22 PM, zhe...@windriver.com wrote: > From: He Zhe > > setup_io_tlb_npages does not check input argument before passing it > to isdigit. The argument would be a NULL pointer if "swiotlb", without > its value, is set in command line and thus causes the following panic

Re: [PATCH] dmaengine: st_fdma: use struct_size() in kzalloc()

2019-01-07 Thread Patrice CHOTARD
Hi Gustavo On 1/4/19 7:43 PM, Gustavo A. R. Silva wrote: > One of the more common cases of allocation size calculations is finding the > size of a structure that has a zero-sized array at the end, along with memory > for some number of elements for that array. For example: > > struct foo { >

Re: [PATCH] Revert "can: dev: __can_get_echo_skb(): print error message, if trying to echo non existing skb"

2019-01-07 Thread Manfred Schlaegl
 Manfred Schlaegl | Leitung Entwicklung Linz  GINZINGER ELECTRONIC SYSTEMS GMBH Tel.: +43 7723 5422 153 Mobil: +43 676 841 208 253 Mail: manfred.schla...@ginzinger.com Web: www.ginzinger.com On 04.01.19 16:23, Marc Kleine-Budde wrote: > On 12/19/18 7:39 PM, Manfred Schlaegl wrote: >> This r

Re: [BUG] tty: serial: mxs-auart: possible concurrency use-after-free bugs in mxs_auart_dma_exit_channel()

2019-01-07 Thread Greg KH
On Mon, Jan 07, 2019 at 04:47:43PM +0800, Jia-Ju Bai wrote: > The driver functions mxs_auart_settermios(), dma_rx_callback() and > dma_tx_callback() can be concurrently executed. > > In Linux 4.19: > > mxs_auart_settermios > mxs_auart_dma_exit > mxs_auart_dma_exit_channel > line 918:

Re: [BUG] char: pcmcia: a possible concurrency double-free bug in rx_alloc_buffers()

2019-01-07 Thread Greg KH
On Mon, Jan 07, 2019 at 04:12:22PM +0800, Jia-Ju Bai wrote: > In drivers/char/pcmcia/synclink_cs.c, the functions mgslpc_open() and > hdlcdev_open() can be concurrently executed. > > hdlcdev_open > startup > claim_resources > rx_alloc_buffers > line 2641: kfree(info->rx_buf) >

Re: [PATCH] x86/boot: drop memset from copy.S

2019-01-07 Thread Cao jin
Hi, On 1/7/19 3:59 PM, h...@zytor.com wrote: > On January 6, 2019 11:40:56 PM PST, Cao jin wrote: >> According to objdump output of setup, function memset is not used in >> setup code. Currently, all usage of memset in setup come from macro >> definition of string.h. >> >> Signed-off-by: Cao jin

Re: PROBLEM: Old content of /proc/net after switching network namespace

2019-01-07 Thread Mateusz Stępień
Thank you for the quick response, unfortunately the patch does not work, problem still persist. I saw the other mail thread, and it looks like the proper solution described by Al will take some time. I don't know if we can afford right now to write a proper patch ourselves, also at least my unde

Re: [PATCH v2 1/4] dt-bindings: Correct RISC-V's timebase-frequency

2019-01-07 Thread Daniel Lezcano
On 04/01/2019 01:36, Palmer Dabbelt wrote: > On Fri, 14 Dec 2018 01:17:24 PST (-0800), daniel.lezc...@linaro.org wrote: >> On 14/12/2018 00:14, Atish Patra wrote: >>> From: Palmer Dabbelt >>> >>> In RISC-V systems, timebase-frequency is per cpu instead of one >>> instance for entire SOC as there i

Re: [BUG] char: pcmcia: a possible concurrency double-free bug in rx_alloc_buffers()

2019-01-07 Thread Greg KH
On Mon, Jan 07, 2019 at 04:12:22PM +0800, Jia-Ju Bai wrote: > In drivers/char/pcmcia/synclink_cs.c, the functions mgslpc_open() and > hdlcdev_open() can be concurrently executed. > > hdlcdev_open > startup > claim_resources > rx_alloc_buffers > line 2641: kfree(info->rx_buf) >

Re: [PATCH] vfio_pci: Add local source directory as include

2019-01-07 Thread Michael Ellerman
Laura Abbott writes: > Commit 7f92891778df ("vfio_pci: Add NVIDIA GV100GL [Tesla V100 SXM2] > subdriver") introduced a trace.h file in the local directory but > missed adding the local include path, resulting in compilation > failures with tracepoints: > > In file included from drivers/vfio/pci/tr

Re: [PATCH] fbdev: fbmem: convert CONFIG_FB_LOGO_CENTER into a cmd line, option

2019-01-07 Thread Peter Rosin
On 2019-01-07 09:40, Geert Uytterhoeven wrote: > Hi Peter, > > On Mon, Jan 7, 2019 at 9:26 AM Peter Rosin wrote: >> On 2019-01-06 10:33, Geert Uytterhoeven wrote: >>> On Mon, Nov 26, 2018 at 10:59 PM Peter Rosin wrote: If there are extra logos (CONFIG_FB_LOGO_EXTRA) the heights of these >>>

Re: [PATCH] fbdev: fbmem: convert CONFIG_FB_LOGO_CENTER into a cmd line, option

2019-01-07 Thread Peter Rosin
On 2019-01-07 09:59, Peter Rosin wrote: > On 2019-01-07 09:40, Geert Uytterhoeven wrote: >> Hi Peter, >> >> On Mon, Jan 7, 2019 at 9:26 AM Peter Rosin wrote: >>> On 2019-01-06 10:33, Geert Uytterhoeven wrote: On Mon, Nov 26, 2018 at 10:59 PM Peter Rosin wrote: > If there are extra logos

[RFC PATCH 2/3] crypto: Add Xilinx SHA3 driver

2019-01-07 Thread Kalyani Akula
This patch adds SHA3 driver suuport for the Xilinx ZynqMP SoC. Signed-off-by: Kalyani Akula --- drivers/crypto/Kconfig | 10 ++ drivers/crypto/Makefile |1 + drivers/crypto/zynqmp-sha.c | 303 +++ 3 files changed, 314 insertions(+), 0 delet

[RFC PATCH 3/3] ARM64: zynqmp: Add Xilinix SHA-384 node.

2019-01-07 Thread Kalyani Akula
This patch adds a SHA3 DT node for Xilinx ZynqMP SoC. Signed-off-by: Kalyani Akula --- arch/arm64/boot/dts/xilinx/zynqmp.dtsi |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi index fa4fd77

[RFC PATCH 0/3] Add Xilinx's ZynqMP SHA3 driver support

2019-01-07 Thread Kalyani Akula
This patch set adds support for - dt-binding docs for Xilinx ZynqMP SHA3 driver - Adds Xilinx ZynqMP driver for SHA3 Algorithm - Adds device tree node for ZynqMP SHA3 driver Kalyani Akula (3): dt-bindings: crypto: Add bindings for ZynqMP SHA3 driver crypto: Add Xilinx SHA3 driver ARM64: zyn

[RFC PATCH 1/3] dt-bindings: crypto: Add bindings for ZynqMP SHA3 driver

2019-01-07 Thread Kalyani Akula
Add documentation to describe Xilinx ZynqMP SHA3 driver bindings. Signed-off-by: Kalyani Akula --- .../devicetree/bindings/crypto/zynqmp-sha.txt | 12 1 files changed, 12 insertions(+), 0 deletions(-) create mode 100755 Documentation/devicetree/bindings/crypto/zynqmp-sha.txt

Re: [BUG] tty: serial: mxs-auart: possible concurrency use-after-free bugs in mxs_auart_dma_exit_channel()

2019-01-07 Thread Jia-Ju Bai
On 2019/1/7 16:52, Greg KH wrote: On Mon, Jan 07, 2019 at 04:47:43PM +0800, Jia-Ju Bai wrote: The driver functions mxs_auart_settermios(), dma_rx_callback() and dma_tx_callback() can be concurrently executed. In Linux 4.19: mxs_auart_settermios mxs_auart_dma_exit mxs_auart_dma_exit

Re: [RFC PATCH 4/4] crypto: Add EC-RDSA algorithm

2019-01-07 Thread Vitaly Chikunov
Stephan, On Mon, Jan 07, 2019 at 09:31:40AM +0100, Stephan Mueller wrote: > Am Montag, 7. Januar 2019, 09:07:10 CET schrieb Vitaly Chikunov: > > > > Why do you manually parse the ASN.1 structure instead of using the ASN.1 > > > parser? > > > > I am not sure this worth effort and will not be most

Re: kernel panic: stack is corrupted in udp4_lib_lookup2

2019-01-07 Thread Dmitry Vyukov
On Fri, Jan 4, 2019 at 7:05 PM Stefano Brivio wrote: > > On Fri, 4 Jan 2019 18:26:16 +0100 > Dmitry Vyukov wrote: > > > On Fri, Jan 4, 2019 at 6:14 PM Stefano Brivio wrote: > > > > > > On Fri, 4 Jan 2019 12:05:04 +0100 > > > Dmitry Vyukov wrote: > > > > > > > I've added these as tests: > > > >

Re: [PATCH v2] Poll for monitored tasks being alive in fork mode

2019-01-07 Thread Jiri Olsa
On Mon, Jan 07, 2019 at 09:00:50AM +0800, Jin Yao wrote: > Following test shows the stat keeps running even if no longer > task to monitor (mgen exits at ~5s). > > perf stat -e cycles -p `pgrep mgen` -I1000 -- sleep 10 > time counts unit events > 1.000148916 1,308

Re: [PATCH v2] kernel/dma: Fix panic caused by passing swiotlb to command line

2019-01-07 Thread Christoph Hellwig
On Mon, Jan 07, 2019 at 04:46:51PM +0800, He Zhe wrote: > Kindly ping. Konrad, I'll pick this up through the DMA mapping tree unless you protest in the next few days.

Re: [PATCH v4 05/10] KVM/x86: expose MSR_IA32_PERF_CAPABILITIES to the guest

2019-01-07 Thread Wei Wang
On 01/03/2019 11:25 PM, Jim Mattson wrote: On Wed, Jan 2, 2019 at 11:55 PM Wei Wang wrote: Right, thanks. Probably better to change it to below: msr_info->data = 0; data = native_read_msr(MSR_IA32_PERF_CAPABILITIES); if (vcpu->kvm->arch.lbr_in_guest) msr_info->data |= (data & X86_PERF_C

RE: [PATCH v4 1/2] xen/blkback: add stack variable 'blkif' in connect_ring()

2019-01-07 Thread Paul Durrant
> -Original Message- > From: Dongli Zhang [mailto:dongli.zh...@oracle.com] > Sent: 07 January 2019 05:36 > To: xen-de...@lists.xenproject.org; linux-bl...@vger.kernel.org; linux- > ker...@vger.kernel.org > Cc: konrad.w...@oracle.com; Roger Pau Monne ; > ax...@kernel.dk; Paul Durrant > Subj

Re: [PATCH] fbdev: fbmem: convert CONFIG_FB_LOGO_CENTER into a cmd line, option

2019-01-07 Thread Geert Uytterhoeven
Hi Peter, On Mon, Jan 7, 2019 at 10:03 AM Peter Rosin wrote: > On 2019-01-07 09:59, Peter Rosin wrote: > > On 2019-01-07 09:40, Geert Uytterhoeven wrote: > >> On Mon, Jan 7, 2019 at 9:26 AM Peter Rosin wrote: > >>> On 2019-01-06 10:33, Geert Uytterhoeven wrote: > On Mon, Nov 26, 2018 at 10:

Re: mmotm 2018-12-21-15-28 uploaded

2019-01-07 Thread Anshuman Khandual
On 01/07/2019 02:13 PM, Michal Hocko wrote: > Hi, > > On Mon 07-01-19 13:02:31, Anshuman Khandual wrote: >> On 12/22/2018 04:58 AM, a...@linux-foundation.org wrote: > [...] >>> A git tree which contains the memory management portion of this tree is >>> maintained at git://git.kernel.org/pub/scm

RE: [PATCH v4 2/2] xen/blkback: rework connect_ring() to avoid inconsistent xenstore 'ring-page-order' set by malicious blkfront

2019-01-07 Thread Paul Durrant
> -Original Message- > From: Dongli Zhang [mailto:dongli.zh...@oracle.com] > Sent: 07 January 2019 05:36 > To: xen-de...@lists.xenproject.org; linux-bl...@vger.kernel.org; linux- > ker...@vger.kernel.org > Cc: konrad.w...@oracle.com; Roger Pau Monne ; > ax...@kernel.dk; Paul Durrant > Subj

Re: mmotm 2018-12-21-15-28 uploaded

2019-01-07 Thread Michal Hocko
On Mon 07-01-19 14:46:43, Anshuman Khandual wrote: > > > On 01/07/2019 02:13 PM, Michal Hocko wrote: > > Hi, > > > > On Mon 07-01-19 13:02:31, Anshuman Khandual wrote: > >> On 12/22/2018 04:58 AM, a...@linux-foundation.org wrote: > > [...] > >>> A git tree which contains the memory management po

[PATCH v8 0/7] Port the FSL QSPI driver to the SPI framework

2019-01-07 Thread Schrempf Frieder
From: Frieder Schrempf Now that the SPI memory interface was introduced by Boris, it is possible to move drivers from mtd/spi-nor to the SPI framework in order to use them for different type of SPI memory chips. Patch 1 adds the driver for the Freescale QSPI controller to the SPI framework. Toge

[PATCH] m68k: Avoid VLA use in mangle_kernel_stack()

2019-01-07 Thread Geert Uytterhoeven
With gcc 7.3.0: arch/m68k/kernel/signal.c: In function ‘mangle_kernel_stack’: arch/m68k/kernel/signal.c:654:3: warning: ISO C90 forbids variable length array ‘buf’ [-Wvla] unsigned long buf[fsize / 2]; /* yes, twice as much */ ^~~~ Replace the variable size by the upper

[PATCH v8 4/7] mtd: fsl-quadspi: Remove the driver as it was replaced by spi-fsl-qspi.c

2019-01-07 Thread Schrempf Frieder
From: Frieder Schrempf There's a new driver using the SPI memory interface of the SPI framework at spi/spi-fsl-qspi.c, which can be used together with m25p80.c to replace the functionality of this SPI NOR driver. The new driver is already in use and this code is not compiled anymore, so let's re

[PATCH v8 6/7] ARM64: dts: ls1046a: Remove fsl,qspi-has-second-chip as it is not used

2019-01-07 Thread Schrempf Frieder
From: Frieder Schrempf After switching to the new FSL QSPI driver the property 'fsl,qspi-has-second-chip' is not needed anymore. The driver now uses the 'reg' property to determine the bus and the chipselect. Signed-off-by: Frieder Schrempf --- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi |

[PATCH] m68k/atari: Avoid VLA use in atari_switches_setup()

2019-01-07 Thread Geert Uytterhoeven
With gcc 7.3.0: arch/m68k/atari/config.c: In function ‘atari_switches_setup’: arch/m68k/atari/config.c:151:2: warning: ISO C90 forbids variable length array ‘switches’ [-Wvla] char switches[strlen(str) + 1]; ^~~~ Replace the variable size by the maximum kernel command line si

[PATCH v8 7/7] MAINTAINERS: Move the Freescale QSPI driver to the SPI framework

2019-01-07 Thread Schrempf Frieder
From: Frieder Schrempf The driver was ported to the SPI framework so it can be used as a generic SPI memory driver and not only for SPI NOR. Reflect this transition in the MAINTAINERS file. Signed-off-by: Frieder Schrempf --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-

[PATCH v8 2/7] dt-bindings: spi: Move the bindings for the FSL QSPI driver

2019-01-07 Thread Schrempf Frieder
From: Frieder Schrempf Move the documentation of the old SPI NOR driver to the place of the new SPI memory interface based driver. Signed-off-by: Frieder Schrempf Reviewed-by: Rob Herring --- .../bindings/{mtd/fsl-quadspi.txt => spi/spi-fsl-qspi.txt} | 0 1 file changed, 0 insertion

[PATCH v8 5/7] ARM: dts: ls1021a: Remove fsl,qspi-has-second-chip as it is not used

2019-01-07 Thread Schrempf Frieder
From: Frieder Schrempf After switching to the new FSL QSPI driver the property 'fsl,qspi-has-second-chip' is not needed anymore. The driver now uses the 'reg' property to determine the bus and the chipselect. Signed-off-by: Frieder Schrempf --- arch/arm/boot/dts/ls1021a-moxa-uc-8410a.dts | 1

[PATCH v8 1/7] spi: Add a driver for the Freescale/NXP QuadSPI controller

2019-01-07 Thread Schrempf Frieder
From: Frieder Schrempf This driver is derived from the SPI NOR driver at mtd/spi-nor/fsl-quadspi.c. It uses the new SPI memory interface of the SPI framework to issue flash memory operations to up to four connected flash chips (2 buses with 2 CS each). The controller does not support generic SPI

[PATCH] m68k/defconfig: Update defconfigs for v5.0-rc1

2019-01-07 Thread Geert Uytterhoeven
Actual changes: -CONFIG_IOSCHED_DEADLINE=m -CONFIG_BATMAN_ADV_MCAST=y -# CONFIG_SCSI_MQ_DEFAULT is not set +CONFIG_CRYPTO_ADIANTUM=m +CONFIG_CRYPTO_STREEBOG=m Signed-off-by: Geert Uytterhoeven --- arch/m68k/configs/amiga_defconfig| 5 ++--- arch/m68k/configs/apollo_defcon

Re: [PATCH v8 1/6] pwm: extend PWM framework with PWM modes

2019-01-07 Thread Claudiu.Beznea
On 05.01.2019 23:05, Uwe Kleine-König wrote: > Hello, > > On Thu, Jan 03, 2019 at 01:29:44PM +, claudiu.bez...@microchip.com wrote: >> From: Claudiu Beznea >> >> Add basic PWM modes: normal and complementary. These modes should >> differentiate the single output PWM channels from two output

[PATCH] m68k/defconfig: Drop NET_VENDOR_=n

2019-01-07 Thread Geert Uytterhoeven
Enabling NET_VENDOR_* Kconfig options does not directly affect the kernel, so there is no need to explicitly disable them. The individual network drivers under them are still disabled. Signed-off-by: Geert Uytterhoeven --- arch/m68k/configs/amcore_defconfig | 20 - arch/m68k/co

Re: [PATCH v8 2/6] pwm: add PWM modes

2019-01-07 Thread Claudiu.Beznea
On 05.01.2019 22:41, Uwe Kleine-König wrote: > On Thu, Jan 03, 2019 at 01:29:47PM +, claudiu.bez...@microchip.com wrote: >> From: Claudiu Beznea >> >> Add PWM normal and complementary modes. >> > > The Subject line and the commit log don't really match the patch > content as it only adds do

[PATCH v8 3/7] dt-bindings: spi: Adjust the bindings for the FSL QSPI driver

2019-01-07 Thread Schrempf Frieder
From: Frieder Schrempf Adjust the documentation of the new SPI memory interface based driver to reflect the new drivers settings. The "old" driver was using the "fsl,qspi-has-second-chip" property to select one of two dual chip setups (two chips on one bus or two chips on separate buses). And it

Re: [BUG] char: pcmcia: a possible concurrency double-free bug in rx_alloc_buffers()

2019-01-07 Thread Jia-Ju Bai
On 2019/1/7 16:57, Greg KH wrote: On Mon, Jan 07, 2019 at 04:12:22PM +0800, Jia-Ju Bai wrote: In drivers/char/pcmcia/synclink_cs.c, the functions mgslpc_open() and hdlcdev_open() can be concurrently executed. hdlcdev_open startup claim_resources rx_alloc_buffers line

Re: [PATCH 1/2 v5] kdump: add the vmcoreinfo documentation

2019-01-07 Thread lijiang
在 2019年01月07日 15:55, Hatayama, Daisuke 写道: > Hi, > >> -Original Message- >> From: linux-kernel-ow...@vger.kernel.org >> [mailto:linux-kernel-ow...@vger.kernel.org] On Behalf Of Lianbo Jiang >> Sent: Monday, January 7, 2019 10:48 AM >> To: linux-kernel@vger.kernel.org >> Cc: ke...@lists.inf

Out-of-tree build works, in-tree build fails due to tracing (was Re: compilation failure with CONFIG_VFIO_PCI_NVLINK2)

2019-01-07 Thread Michael Ellerman
[ + Masahiro & Steve ] Alexey Kardashevskiy writes: > On 07/01/2019 13:58, Alexey Kardashevskiy wrote: >> On 04/01/2019 02:08, Laura Abbott wrote: >>> On 1/3/19 5:49 AM, Alexey Kardashevskiy wrote: On 03/01/2019 03:37, Laura Abbott wrote: > Hi, > > I got a compilation failure whe

Re: [PATCH 2/2 v5] kdump,vmcoreinfo: Export the value of sme mask to vmcoreinfo

2019-01-07 Thread lijiang
在 2019年01月07日 10:29, Baoquan He 写道: > On 01/07/19 at 09:47am, Lianbo Jiang wrote: >> For AMD machine with SME feature, makedumpfile tools need to know >> whether the crash kernel was encrypted or not. If SME is enabled > ^ crashed >> in the first kernel, the crash kernel's page table(

Re: KASAN: use-after-free Read in handle_userfault (2)

2019-01-07 Thread Dmitry Vyukov
On Sat, Jan 5, 2019 at 12:10 AM Andrea Arcangeli wrote: > > On Wed, Jan 02, 2019 at 02:37:58PM +0100, Dmitry Vyukov wrote: > > If we are proceeding with "mm: some enhancements to the page fault > > mechanism", that's good as it will eliminate at least part of this > > output. > > Agreed. > > > The

Re: [PATCH RFC 3/4] barriers: convert a control to a data dependency

2019-01-07 Thread Peter Zijlstra
On Sun, Jan 06, 2019 at 11:23:07PM -0500, Michael S. Tsirkin wrote: > On Mon, Jan 07, 2019 at 11:58:23AM +0800, Jason Wang wrote: > > On 2019/1/3 上午4:57, Michael S. Tsirkin wrote: > > > +#if defined(COMPILER_HAS_OPTIMIZER_HIDE_VAR) && \ > > > + !defined(ARCH_NEEDS_READ_BARRIER_DEPENDS) > > > + > >

possible deadlock in fs_reclaim_acquire

2019-01-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:f1c2f8857c5a Merge tag 'powerpc-4.21-2' of git://git.kerne.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1043514b40 kernel config: https://syzkaller.appspot.com/x/.config?x=47c29c309c47af16 da

WARNING: locking bug in nr_release

2019-01-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:574823bfab82 Change mincore() to count "mapped" pages rath.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=121dc980c0 kernel config: https://syzkaller.appspot.com/x/.config?x=d7b516c45456 da

Re: kmemleak: Cannot allocate a kmemleak_object structure - Kernel 4.19.13

2019-01-07 Thread Catalin Marinas
Hi Nathan, On Tue, Jan 01, 2019 at 01:17:06PM -0600, Nathan Royce wrote: > I had a leak somewhere and I was directed to look into SUnreclaim > which was 5.5 GB after an uptime of a little over 1 month on an 8 GB > system. kmalloc-2048 was a problem. > I just had enough and needed to find out the c

Re: possible deadlock in __wake_up_common_lock

2019-01-07 Thread Peter Zijlstra
On Wed, Jan 02, 2019 at 01:51:01PM +0100, Vlastimil Babka wrote: > > -> #3 (&base->lock){-.-.}: > > __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 > > [inline] > > _raw_spin_lock_irqsave+0x99/0xd0 kernel/locking/spinlock.c:152 > > lock_timer_base+0xbb/0x2b0 ke

KASAN: use-after-free Read in xfrm_migrate

2019-01-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:b71acb0e3721 Merge branch 'linus' of git://git.kernel.org/.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=1755f9bb40 kernel config: https://syzkaller.appspot.com/x/.config?x=b03c5892bb940c76 da

WARNING: refcount bug in nr_release

2019-01-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:f1c2f8857c5a Merge tag 'powerpc-4.21-2' of git://git.kerne.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16af96bb40 kernel config: https://syzkaller.appspot.com/x/.config?x=47c29c309c47af16 da

[PATCH v2 0/2] arm64: dts: meson: add simple-framebuffer nodes

2019-01-07 Thread Maxime Jourdan
This patch series adds support for simplefb for the GXBB and GXL chips. simple-framebuffer allows sharing a framebuffer already setup by the firmware to the kernel for a seamless boot transition. It goes along with a u-boot patch series adding display support to GXBB & GXL that is not sent yet.

[PATCH v2 1/2] dt-bindings: meson: add specific simplefb bindings

2019-01-07 Thread Maxime Jourdan
Similar to simple-framebuffer-sunxi, we support different display pipelines that the firmware is free to choose from. This documents the "amlogic,simple-framebuffer" compatible and the "amlogic,pipeline" extension. Signed-off-by: Maxime Jourdan --- .../display/simple-framebuffer-meson.txt

[PATCH v2 2/2] arm64: dts: meson-gx: add support for simplefb

2019-01-07 Thread Maxime Jourdan
SimpleFB allows transferring a framebuffer from the firmware/bootloader to the kernel, while making sure the related clocks and power supplies stay enabled. Add nodes for CVBS and HDMI Simple Framebuffers. Signed-off-by: Maxime Jourdan --- arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 22 ++

[PATCH] xfs: correct statx's result_mask value

2019-01-07 Thread Su Yanjun
For statx syscall, xfs return the wrong result_mask. Signed-off-by: Su Yanjun --- fs/xfs/xfs_iops.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c index f48ffd7..3811457 100644 --- a/fs/xfs/xfs_iops.c +++ b/fs/xfs/xfs_iops.c @@ -521,6 +521,9 @@ xfs_v

KASAN: slab-out-of-bounds Read in dst_dev_put

2019-01-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:f1c2f8857c5a Merge tag 'powerpc-4.21-2' of git://git.kerne.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16b0484f40 kernel config: https://syzkaller.appspot.com/x/.config?x=47c29c309c47af16 da

Re: [PATCH v5 1/2] drm/amd: validate user pitch alignment

2019-01-07 Thread Michel Dänzer
On 2019-01-07 5:00 a.m., Yu Zhao wrote: > On Thu, Jan 03, 2019 at 05:33:19PM +0100, Michel Dänzer wrote: >> On 2018-12-30 2:00 a.m., Yu Zhao wrote: >>> Userspace may request pitch alignment that is not supported by GPU. >>> Some requests 32, but GPU ignores it and uses default 64 when cpp is >>> 4.

[PATCH] ia64: tweak BREAK_LOGLEVEL and RESTORE_LOGLEVEL

2019-01-07 Thread Sergey Senozhatsky
a) Do not pass console_loglevel to macros, use console_loglevel directly. b) Use CONSOLE_LOGLEVEL_MOTORMOUTH instead of a naked number c) Use bust_spinlocks() to set/clear oops_in_progress d) Fix checkpatch error: Macros with multiple statements should be enclosed in a do -

WARNING in _cleanup_srcu_struct

2019-01-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:574823bfab82 Change mincore() to count "mapped" pages rath.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=101b7180c0 kernel config: https://syzkaller.appspot.com/x/.config?x=d7b516c45456 da

KASAN: null-ptr-deref Write in dst_release

2019-01-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:b71acb0e3721 Merge branch 'linus' of git://git.kernel.org/.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=15c947e740 kernel config: https://syzkaller.appspot.com/x/.config?x=b03c5892bb940c76 da

[PATCH 1/1] drm/prime: Use sg_dma_len() macro to get sg's length

2019-01-07 Thread Vivek Gautam
After mapping a sg list we should use sg_dma_address(), and sg_dma_len() macros to access sg->address and sg->length. Fix the same for sg->length in drm_prime_sg_to_page_addr_arrays(). Signed-off-by: Vivek Gautam --- This came while debugging one dmabuf import issue that we are seeing on sdm845

BUG: unable to handle kernel paging request in dst_dev_put

2019-01-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:b71acb0e3721 Merge branch 'linus' of git://git.kernel.org/.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=132246e340 kernel config: https://syzkaller.appspot.com/x/.config?x=b03c5892bb940c76 da

RE: [PATCH] x86: only use ERMS for user copies for larger sizes

2019-01-07 Thread David Laight
From: Linus Torvalds > Sent: 05 January 2019 02:39 ... > Anyway, it would be lovely to hear whether memcpy_toio() now works > reasonably. I just picked our very old legacy function for this, so it > will do things in 32-bit chunks (even on x86-64), and I'm certainly > open to somebody doing somethi

[PATCH] parisc: replace oops_in_progress manipulation with bust_spinlocks()

2019-01-07 Thread Sergey Senozhatsky
Use bust_spinlocks() function to set oops_in_progress. Signed-off-by: Sergey Senozhatsky --- arch/parisc/kernel/traps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/parisc/kernel/traps.c b/arch/parisc/kernel/traps.c index 472a818e8c17..7e1ccafadf57 100644 --- a/ar

[PATCH] powerpc: use a CONSOLE_LOGLEVEL_DEBUG macro

2019-01-07 Thread Sergey Senozhatsky
Use a CONSOLE_LOGLEVEL_DEBUG macro for console_loglevel rather than a naked number. Signed-off-by: Sergey Senozhatsky --- arch/powerpc/kernel/udbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/udbg.c b/arch/powerpc/kernel/udbg.c index 7cc38b5b58bc..8db

Re: [linux-sunxi] [PATCH v2 1/2] media: v4l: Add definitions for the HEVC slice format and controls

2019-01-07 Thread Paul Kocialkowski
Hi, On Mon, 2019-01-07 at 11:49 +0800, Randy Li wrote: > On 12/12/18 8:51 PM, Paul Kocialkowski wrote: > > Hi, > > > > On Wed, 2018-12-05 at 21:59 +0100, Jernej Škrabec wrote: > > > > > > + > > > > +#define V4L2_HEVC_DPB_ENTRY_RPS_ST_CURR_BEFORE 0x01 > > > > +#define V4L2_HEVC_DPB_ENTRY_RPS_ST_C

Re: [RFC][PATCH v2 10/21] mm: build separate zonelist for PMEM and DRAM node

2019-01-07 Thread Fengguang Wu
On Tue, Jan 01, 2019 at 02:44:41PM +0530, Aneesh Kumar K.V wrote: Fengguang Wu writes: From: Fan Du When allocate page, DRAM and PMEM node should better not fall back to each other. This allows migration code to explicitly control which type of node to allocate pages from. With this patch,

KASAN: out-of-bounds Read in unwind_next_frame

2019-01-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:b5aef86e089a Merge tag 'docs-5.0-fixes' of git://git.lwn.n.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1034c54b40 kernel config: https://syzkaller.appspot.com/x/.config?x=d7b516c45456 da

kernel BUG at net/ipv6/route.c:LINE! (2)

2019-01-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:b71acb0e3721 Merge branch 'linus' of git://git.kernel.org/.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=11d5f9bb40 kernel config: https://syzkaller.appspot.com/x/.config?x=b03c5892bb940c76 da

Re: KASAN: out-of-bounds Read in unwind_next_frame

2019-01-07 Thread Dmitry Vyukov
On Mon, Jan 7, 2019 at 11:01 AM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:b5aef86e089a Merge tag 'docs-5.0-fixes' of git://git.lwn.n.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=1034c54b40 > kernel config:

Re: [PATCH v7 1/5] tpm: dynamically allocate the allocated_banks array

2019-01-07 Thread Roberto Sassu
On 12/22/2018 1:03 AM, Jarkko Sakkinen wrote: On Fri, Dec 21, 2018 at 10:40:09AM +0100, Roberto Sassu wrote: On 12/20/2018 3:55 PM, Jarkko Sakkinen wrote: On Thu, Dec 13, 2018 at 11:29:41AM +0100, Roberto Sassu wrote: This patch renames active_banks (member of tpm_chip) to allocated_banks, sto

[RESEND PATCH v2 1/3] dt-bindings: stm32: syscon: add clock support

2019-01-07 Thread Fabrice Gasnier
STM32 system configuration controller registers needs to be clocked. Document clock support on stm32-syscon. Signed-off-by: Fabrice Gasnier Reviewed-by: Rob Herring --- Changes in v2: - move clocks to specific bindings using syscon as per Rob's comment --- Documentation/devicetree/bindings/arm/

[RESEND PATCH v2 0/3] mfd: syscon: Add optional clock support needed on stm32

2019-01-07 Thread Fabrice Gasnier
STM32 syscfg registers are accessed using syscon. It needs syscfg clock to be enabled while accessing registers. This adds support for optional clock on syscon, and the relevant clock in stm32mp157 device tree. Changes in v2: - move clocks to specific bindings using syscon as per Rob's comment Fa

[RESEND PATCH v2 2/3] mfd: syscon: Add optional clock support

2019-01-07 Thread Fabrice Gasnier
Some system control registers need to be clocked, so the registers can be accessed. Add an optional clock and attach it to regmap. Signed-off-by: Fabrice Gasnier --- drivers/mfd/syscon.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/mfd/syscon.c b/drivers/mfd/s

[RESEND PATCH v2 3/3] ARM: dts: stm32: Add clock on stm32mp157c syscfg

2019-01-07 Thread Fabrice Gasnier
STM32 syscfg needs a clock to access registers. Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32mp157c.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi index 8bf1c17..61b2a70 100644 --- a/arch/arm/boot/dts

Re: [PATCH v1 1/2] drm/fb-helper: Bring back workaround for bugs of SDL 1.2

2019-01-07 Thread Daniel Vetter
On Sat, Jan 05, 2019 at 09:11:53PM +0500, Ivan Mironov wrote: > On Fri, 2018-12-28 at 13:15 +0100, Daniel Vetter wrote: > > On Fri, Dec 28, 2018 at 04:13:07AM +0500, Ivan Mironov wrote: > > > SDL 1.2 sets all fields related to the pixel format to zero in some > > > cases[1]. Prior to commit db05c48

[PATCH v9 01/10] dt-bindings: opp: Introduce opp-level bindings

2019-01-07 Thread Rajendra Nayak
On some SoCs (especially from Qualcomm and MediaTek) an OPP node needs to describe an additional level/corner value that is then communicated to a remote microprocessor by the CPU, which then takes some actions (like adjusting voltage values across various rails) based on the value passed. Describ

[PATCH v9 04/10] soc: qcom: rpmpd: Add support for get/set performance state

2019-01-07 Thread Rajendra Nayak
Add support for the .set_performace_state() and .opp_to_performance_state() callbacks in the rpmpd driver. Signed-off-by: Rajendra Nayak Signed-off-by: Viresh Kumar Reviewed-by: Ulf Hansson Reviewed-by: Stephen Boyd --- drivers/soc/qcom/rpmpd.c | 44 1

  1   2   3   4   5   6   7   8   9   10   >