[PATCH v2] RDMA/cma: Make CM response timeout and # CM retries configurable

2019-02-25 Thread Håkon Bugge
During certain workloads, the default CM response timeout is too short, leading to excessive retries. Hence, make it configurable through sysctl. While at it, also make number of CM retries configurable. The defaults are not changed. Signed-off-by: Håkon Bugge --- v1 -> v2: * Added

[PATCH v3 3/4] dt-bindings: display: Add bindings for OSD101T2587-53TS panel

2019-02-25 Thread Peter Ujfalusi
This adds the device-tree bindings for the OSD101T2587-53TS 10.1" 1920x1200 panel from One Stop Displays. Note: the panel is similar to OSD101T2045-53TS, but it needs additional MIPI_DSI_TURN_ON_PERIPHERAL message from the host. Signed-off-by: Peter Ujfalusi Reviewed-by: Rob Herring ---

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

2019-02-25 Thread Eric Biggers
On Fri, Sep 28, 2018 at 06:09:03AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:1042caa79e93 net-ipv4: remove 2 always zero parameters fro.. > git tree: net-next > console output: https://syzkaller.appspot.com/x/log.txt?x=13fff71140 >

[PATCH v3 4/4] drm/panel: Add OSD101T2587-53TS driver

2019-02-25 Thread Peter Ujfalusi
The panel is similar to OSD101T2045-53TS (which is handled by panel-simple) with one big difference: osd101t2587-53ts needs MIPI_DSI_TURN_ON_PERIPHERAL message to be sent from the host to be operational and thus can not be handled by panel-simple. Signed-off-by: Peter Ujfalusi Reviewed-by: Sam

Re: [PATCH v2 20/26] userfaultfd: wp: support write protection for userfault vma range

2019-02-25 Thread Peter Xu
On Tue, Feb 26, 2019 at 09:46:12AM +0200, Mike Rapoport wrote: [...] > > > > > > +int mwriteprotect_range(struct mm_struct *dst_mm, unsigned long > > > > > > start, > > > > > > + unsigned long len, bool enable_wp, bool > > > > > > *mmap_changing) > > > > > > +{ > > > > > > +

[PATCH v3 1/4] dt-bindings: display: Add bindings for OSD101T2045-53TS

2019-02-25 Thread Peter Ujfalusi
This adds the device-tree bindings for the OSD101T2045-53TS 10.1" 1920x1200 panel from One Stop Displays. Signed-off-by: Peter Ujfalusi Reviewed-by: Rob Herring --- .../bindings/display/panel/osd,osd101t2045-53ts.txt | 11 +++ 1 file changed, 11 insertions(+) create mode 100644

[PATCH v3 0/4] drm/panel: Support for OSD101T2045-53TS and OSD101T2587-53TS

2019-02-25 Thread Peter Ujfalusi
Hi, Changes since v2: - Added Reviewed-by from Rob to the binding patches - Added help text to Kconfig (osd101t2587-53ts) - Print the error values in dev_err/warn - Added Reviewed-by from Sam to the osd101t2587-53ts patch Changes since v1 (only panel-osd-osd101t2587-53ts changed): - Removed

Re: [PATCH v2 26/26] userfaultfd: selftests: add write-protect test

2019-02-25 Thread Peter Xu
On Tue, Feb 26, 2019 at 08:58:36AM +0200, Mike Rapoport wrote: > On Tue, Feb 12, 2019 at 10:56:32AM +0800, Peter Xu wrote: > > This patch adds uffd tests for write protection. > > > > Instead of introducing new tests for it, let's simply squashing uffd-wp > > tests into existing uffd-missing test

Re: [PATCH net-next] can: kvaser_usb: Use struct_size() in alloc_candev()

2019-02-25 Thread Marc Kleine-Budde
On 2/8/19 4:10 AM, 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 { > int stuff;

VERY URGENT.

2019-02-25 Thread Karim Zakari
Dear Friend, I know that this letter will come to you as surprise, I got your contact address while I search for foreign partner to assist me in this business transaction that is present in our favor now, My name is Mr. KARIM ZAKARI, I am the Bill and Exchange (assistant) Manager (BOA)

Re: [PATCH v2 20/26] userfaultfd: wp: support write protection for userfault vma range

2019-02-25 Thread Mike Rapoport
On Tue, Feb 26, 2019 at 03:20:28PM +0800, Peter Xu wrote: > On Tue, Feb 26, 2019 at 08:43:47AM +0200, Mike Rapoport wrote: > > On Tue, Feb 26, 2019 at 02:06:27PM +0800, Peter Xu wrote: > > > On Mon, Feb 25, 2019 at 10:52:34PM +0200, Mike Rapoport wrote: > > > > On Tue, Feb 12, 2019 at 10:56:26AM

Re: [PATCH] huegtlbfs: fix races and page leaks during migration

2019-02-25 Thread Naoya Horiguchi
Hi Mike, On Thu, Feb 21, 2019 at 11:11:06AM -0800, Mike Kravetz wrote: > On 2/20/19 10:09 PM, Andrew Morton wrote: > > On Tue, 12 Feb 2019 14:14:00 -0800 Mike Kravetz > > wrote: > >> diff --git a/mm/hugetlb.c b/mm/hugetlb.c > >> index a80832487981..f859e319e3eb 100644 > >> --- a/mm/hugetlb.c >

Re: [PATCH v2 24/26] userfaultfd: wp: UFFDIO_REGISTER_MODE_WP documentation update

2019-02-25 Thread Peter Xu
On Tue, Feb 26, 2019 at 09:04:25AM +0200, Mike Rapoport wrote: > On Tue, Feb 26, 2019 at 02:53:42PM +0800, Peter Xu wrote: > > On Mon, Feb 25, 2019 at 11:19:32PM +0200, Mike Rapoport wrote: > > > On Tue, Feb 12, 2019 at 10:56:30AM +0800, Peter Xu wrote: > > > > From: Martin Cracauer > > > > > >

Re: [PATCH v2 23/26] userfaultfd: wp: don't wake up when doing write protect

2019-02-25 Thread Peter Xu
On Tue, Feb 26, 2019 at 09:29:33AM +0200, Mike Rapoport wrote: > On Tue, Feb 26, 2019 at 02:24:52PM +0800, Peter Xu wrote: > > On Mon, Feb 25, 2019 at 11:09:35PM +0200, Mike Rapoport wrote: > > > On Tue, Feb 12, 2019 at 10:56:29AM +0800, Peter Xu wrote: > > > > It does not make sense to try to

Re: [PATCH 1/5] mm/resource: return real error codes from walk failures

2019-02-25 Thread Christophe Leroy
Le 25/02/2019 à 19:57, Dave Hansen a écrit : From: Dave Hansen walk_system_ram_range() can return an error code either becuase *it* failed, or because the 'func' that it calls returned an error. The memory hotplug does the following: ret = walk_system_ram_range(..., func);

Re: general protection fault in tls_push_sg

2019-02-25 Thread Eric Biggers
On Tue, Jun 19, 2018 at 10:34:01PM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:ba4dbdedd3ed Merge tag 'jfs-4.18' of git://github.com/klei.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=112e9ce440 >

linux-next: build failure after merge of the akpm tree

2019-02-25 Thread Stephen Rothwell
Hi Andrew, After merging the akpm tree, today's linux-next build (powerpc allnoconfig) failed like this: /home/sfr/next/next/arch/powerpc/kernel/setup_32.c:176:21: error: redefinition of 'alloc_stack' static void *__init alloc_stack(void) ^~~

Re: [PATCH 3/4] mb12x2.c: add mb12x2 ultrasonic distance iio sensor

2019-02-25 Thread Peter Meerwald-Stadler
On Sun, 24 Feb 2019, Andreas Klinger wrote: comments below > Add MaxSonar-I2CXL ultrasonic distance sensors of type family mb12x2 > using the i2c interface > > Implemented functionality: > - reading the distance via in_distance_raw > - buffered mode with trigger > - make use of status gpio to

Re: general protection fault in gcmaes_crypt_by_sg

2019-02-25 Thread Eric Biggers
On Wed, Feb 20, 2019 at 05:03:38PM +0100, 'Dmitry Vyukov' via syzkaller-bugs wrote: > On Mon, Oct 8, 2018 at 12:06 PM Ard Biesheuvel > wrote: > > > > (add the TLS maintainers) > > > > On 6 October 2018 at 15:04, syzbot > > wrote: > > > Hello, > > > > > > syzbot found the following crash on: > >

[PATCH] fw_cfg: use __ATTR_RO_MODE to define rev sysfs

2019-02-25 Thread Wei Yang
Leverage __ATTR_RO_MODE to define rev sysfs instead of using open code to define the attribute. Signed-off-by: Wei Yang --- drivers/firmware/qemu_fw_cfg.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/firmware/qemu_fw_cfg.c

[bug report][stable] perf probe: failed to add events

2019-02-25 Thread Joseph Qi
Hi, I'm using kernel v4.19.24 and have found that there is an issue when using perf probe to define a new dynamic tracepoint. $ perf probe -a handle_mm_fault Failed to write event: Numerical result out of range Error: Failed to add events. I've also tried kernel v4.20, and it can pass. So

Re: KASAN: use-after-free Write in tls_push_record (2)

2019-02-25 Thread Eric Biggers
On Thu, Jul 12, 2018 at 06:44:55AM -0400, Boris Pismenny wrote: > It seems to me that the crash here is due to write_space being called after > the close system call. Maybe the correct solution is to move the TX software > state to be released in sk_destruct. As we already do for the device state

Re: [PATCH v2 23/26] userfaultfd: wp: don't wake up when doing write protect

2019-02-25 Thread Mike Rapoport
On Tue, Feb 26, 2019 at 02:24:52PM +0800, Peter Xu wrote: > On Mon, Feb 25, 2019 at 11:09:35PM +0200, Mike Rapoport wrote: > > On Tue, Feb 12, 2019 at 10:56:29AM +0800, Peter Xu wrote: > > > It does not make sense to try to wake up any waiting thread when we're > > > write-protecting a memory

[PATCH] arm64: defconfig: Enable SPI_SUN6I

2019-02-25 Thread Jagan Teki
Enable SUN6I SPI controller for Allwinner ARM64 SoC's. This would helpful to setup spi flash, for another booting source. mark it as static since it require during boot. Signed-off-by: Jagan Teki --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

Re: kernel BUG at include/linux/mm.h:LINE! (2)

2019-02-25 Thread Eric Biggers
On Fri, Jun 08, 2018 at 06:11:02AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:7170e6045a6a strparser: Add __strp_unpause and use it in k.. > git tree: net-next > console output: https://syzkaller.appspot.com/x/log.txt?x=114236af80 >

Re: [PATCH] staging: wilc1000: Fix incorrent type in assignment

2019-02-25 Thread YU Bo
On Tue, Feb 26, 2019 at 06:39:28AM +, ajay.kat...@microchip.com wrote: On 2/26/2019 8:58 AM, Bo YU wrote: The patch fixes following sparse warning: drivers/staging/wilc1000/host_interface.c:450:30: warning: incorrect type in assignment (different base types)

[PATCH V2] staging: wilc1000: fix incorrent type assignment

2019-02-25 Thread Bo YU
Fix sparse warning: drivers/staging/wilc1000/host_interface.c:450:30: warning: incorrect type in assignment (different base types) drivers/staging/wilc1000/host_interface.c:450:30:expected restricted __le16 [usertype] beacon_period drivers/staging/wilc1000/host_interface.c:450:30:got

Re: [PATCH 2/4] iio/proximity: add mb12x2 driver to Kconfig and Makefile

2019-02-25 Thread Peter Meerwald-Stadler
On Sun, 24 Feb 2019, Andreas Klinger wrote: > Makefile and Kconfig: add configuration for mb12x2 ultrasonic proximity > driver > > diff --git a/drivers/iio/proximity/Makefile b/drivers/iio/proximity/Makefile > index 6d031f903c4c..c56b72a8be87 100644 > --- a/drivers/iio/proximity/Makefile > +++

Re: [PATCH v2 20/26] userfaultfd: wp: support write protection for userfault vma range

2019-02-25 Thread Peter Xu
On Tue, Feb 26, 2019 at 08:43:47AM +0200, Mike Rapoport wrote: > On Tue, Feb 26, 2019 at 02:06:27PM +0800, Peter Xu wrote: > > On Mon, Feb 25, 2019 at 10:52:34PM +0200, Mike Rapoport wrote: > > > On Tue, Feb 12, 2019 at 10:56:26AM +0800, Peter Xu wrote: > > > > From: Shaohua Li > > > > > > > >

Re: [PATCH] lib/raid6: use vdupq_n_u8 to avoid endianness warnings

2019-02-25 Thread Ard Biesheuvel
On Tue, 26 Feb 2019 at 05:03, wrote: > > Clang warns: vector initializers are not compatible with NEON intrinsics > in big endian mode [-Wnonportable-vector-initialization] > > While this is usually the case, it's not an issue for this case since > we're initializing the uint8x16_t (16x

[PATCH v3 5/5] arm64: dts: imx8mq: Enable wm8524 codec

2019-02-25 Thread Daniel Baluta
This uses simple-audio-card machine driver adding 1 CPU DAI and 1 Codec DAI. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 29 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts

[PATCH v3 3/5] arm64: dts: imx8mq: Add SAI pinctrl configuration

2019-02-25 Thread Daniel Baluta
This sets the pin configuration for SAI pins BLCK/MCLK/FSYNC/DATA. GPIO_01 is used for mute. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts

[PATCH v3 2/5] arm64: dts: imx8mq: Add SAI2 node

2019-02-25 Thread Daniel Baluta
SAI2 is part of AIPS-3 memory region and it's the DAI through which the wm8524 codec gets its data. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi

[PATCH v3 4/5] arm64: dts: imx8mq: Enable SAI2 for wm8524 codec

2019-02-25 Thread Daniel Baluta
This enables SAI2 digital audio interface to be used with wm8524 codec. wm8524 works only in slave mode, so we make sure that IMX8MQ_CLK_SAI2 has an appropriate frequency in order to easily derive rates divisible with 8000. Signed-off-by: Daniel Baluta ---

[PATCH v3 1/5] arm64: dts: imx8mq: Add SDMA nodes

2019-02-25 Thread Daniel Baluta
SDMA1 is part of AIPS-3 region and SDMA2 is part of AIPS-1 region. Signed-off-by: Anson Huang [initial submit in i.MX internal tree] Signed-off-by: Daniel Baluta [adaptation for linux-next] --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 22 ++ 1 file changed, 22

[PATCH v3 0/5] Enable wm8524 on i.MX8MQ

2019-02-25 Thread Daniel Baluta
On i.MX8MQ we can start the party using the wm8524 codec which gets it's data through the SAI2 interface. In order to make it work this patch series enables the SDMA nodes, sets the correct pinctrl configuration and uses the simple card machine driver to put everything together. Changes since

Re: [PATCH v4 1/3] PCI: altera: Add Stratix 10 PCIe support

2019-02-25 Thread Ley Foon Tan
On Mon, Feb 25, 2019 at 5:35 PM Ley Foon Tan wrote: > > On Tue, 2019-02-19 at 16:23 +, Lorenzo Pieralisi wrote: > > On Thu, Feb 14, 2019 at 11:20:36PM +0800, Ley Foon Tan wrote: > > > > > > Add PCIe Root Port support for Stratix 10 device. > > > > > > Main differences: > > Main differences

[PATCH] arm64: dts: qcom: sdm845: Add GEN2 PCIe controller and PHY

2019-02-25 Thread Bjorn Andersson
SDM845 sports two PCIe controller/phy pairs; one GEN2 and one GEN3. Add the nodes for the GEN2 pair. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 103 +++ 1 file changed, 103 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi

Re: [PATCH v2 24/26] userfaultfd: wp: UFFDIO_REGISTER_MODE_WP documentation update

2019-02-25 Thread Mike Rapoport
On Tue, Feb 26, 2019 at 02:53:42PM +0800, Peter Xu wrote: > On Mon, Feb 25, 2019 at 11:19:32PM +0200, Mike Rapoport wrote: > > On Tue, Feb 12, 2019 at 10:56:30AM +0800, Peter Xu wrote: > > > From: Martin Cracauer > > > > > > Adds documentation about the write protection support. > > > > > >

[PATCH] clk: qcom: gcc-sdm845: Define parent of PCIe PIPE clocks

2019-02-25 Thread Bjorn Andersson
The PCIe PIPE clock in the GCC is fed by the PIPE clock coming from the PHY, describe this relationship. Signed-off-by: Bjorn Andersson --- drivers/clk/qcom/gcc-sdm845.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/clk/qcom/gcc-sdm845.c b/drivers/clk/qcom/gcc-sdm845.c index

[PATCH v3 1/9] feature: implement libzstd check, LIBZSTD_DIR and NO_LIBZSTD defines

2019-02-25 Thread Alexey Budankov
Implement libzstd feature check, NO_LIBZSTD and LIBZSTD_DIR defines to override Zstd library sources or disable the feature from the command line: $ make -C tools/perf LIBZSTD_DIR=/path/to/zstd/sources/ clean all $ make -C tools/perf NO_LIBZSTD=1 clean all Auto detection feature status is

[PATCH] pcie: qcom: Add support for sdm845 PCIe controller

2019-02-25 Thread Bjorn Andersson
The SDM845 has one Gen2 and one Gen3 controller, add support for these. Due to lack of hardware only the Gen2 controller has been verified. Signed-off-by: Bjorn Andersson --- .../devicetree/bindings/pci/qcom,pcie.txt | 19 +++ drivers/pci/controller/dwc/pcie-qcom.c| 146

[PATCH v3 2/2] usb: dwc3: Add workaround for host mode VBUS glitch when boot

2019-02-25 Thread Ran Wang
When DWC3 is set to host mode by programming register DWC3_GCTL, VBUS (or its control signal) will be turned on immediately on related Root Hub ports. Then, the VBUS is turned off for a little while(15us) when do xhci reset (conducted by xhci driver) and back to normal finally, we can observe a

[PATCH v3 1/2] usb: dwc3: Add avoiding vbus glitch happen during xhci reset

2019-02-25 Thread Ran Wang
When DWC3 is set to host mode by programming register DWC3_GCTL, VBUS (or its control signal) will turn on immediately on related Root Hub ports. Then the VBUS will be de-asserted for a little while during xhci reset (conducted by xhci driver) for a little while and back to normal. This VBUS

Re: [PATCH v2 26/26] userfaultfd: selftests: add write-protect test

2019-02-25 Thread Mike Rapoport
On Tue, Feb 12, 2019 at 10:56:32AM +0800, Peter Xu wrote: > This patch adds uffd tests for write protection. > > Instead of introducing new tests for it, let's simply squashing uffd-wp > tests into existing uffd-missing test cases. Changes are: > > (1) Bouncing tests > > We do the

[PATCH] phy: qcom: qmp: Add SDM845 PCIe QMP PHY support

2019-02-25 Thread Bjorn Andersson
qcom_qmp_phy_init() is extended to support the additional register writes needed in PCS MISC and the appropriate sequences and resources are defined for SDM845. Signed-off-by: Bjorn Andersson --- .../devicetree/bindings/phy/qcom-qmp-phy.txt | 7 + drivers/phy/qualcomm/phy-qcom-qmp.c

Re: [PATCH 08/11] powercap/intel_rapl: Support multi-die/package

2019-02-25 Thread Zhang Rui
On 一, 2019-02-25 at 23:41 -0500, Len Brown wrote: > On Thu, Feb 21, 2019 at 12:44 AM Len Brown wrote: > > > > > > On Wed, Feb 20, 2019 at 6:02 AM Peter Zijlstra > g> wrote: > > > > > > > > > > > > >   list_for_each_entry(rp, _packages, plist) { > > > > @@ -1457,7 +1457,7 @@ static void

Re: [PATCH v2 24/26] userfaultfd: wp: UFFDIO_REGISTER_MODE_WP documentation update

2019-02-25 Thread Peter Xu
On Mon, Feb 25, 2019 at 11:19:32PM +0200, Mike Rapoport wrote: > On Tue, Feb 12, 2019 at 10:56:30AM +0800, Peter Xu wrote: > > From: Martin Cracauer > > > > Adds documentation about the write protection support. > > > > Signed-off-by: Andrea Arcangeli > > [peterx: rewrite in rst format; fixups

Re: [PATCH v2 25/26] userfaultfd: selftests: refactor statistics

2019-02-25 Thread Mike Rapoport
On Tue, Feb 12, 2019 at 10:56:31AM +0800, Peter Xu wrote: > Introduce uffd_stats structure for statistics of the self test, at the > same time refactor the code to always pass in the uffd_stats for either > read() or poll() typed fault handling threads instead of using two > different ways to

INFO: rcu detected stall in ext4_file_write_iter

2019-02-25 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:8a61716ff2ab Merge tag 'ceph-for-5.0-rc8' of git://github... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=161b71d4c0 kernel config: https://syzkaller.appspot.com/x/.config?x=7132344728e7ec3f

Re: [PATCH -mm -V8] mm, swap: fix race between swapoff and some swap operations

2019-02-25 Thread Huang, Ying
Hi, Daniel and Andrea, "Huang, Ying" writes: > From: Huang Ying > > When swapin is performed, after getting the swap entry information from > the page table, system will swap in the swap entry, without any lock held > to prevent the swap device from being swapoff. This may cause the race >

Re: Linux-next 20190218: am57xx-evm: mmc1: ADMA error

2019-02-25 Thread Faiz Abbas
Hi Ming Lei, On 26/02/19 7:11 AM, Ming Lei wrote: > On Mon, Feb 25, 2019 at 9:14 PM Faiz Abbas wrote: >> >> Hi Naresh, >> >> + Commit authors. >> >> On 19/02/19 6:38 PM, Faiz Abbas wrote: >>> Hi Naresh, >>> >>> On 18/02/19 6:57 PM, Naresh Kamboju wrote: Do you see this error on am57xx-evm

Re: [PATCH v2 20/26] userfaultfd: wp: support write protection for userfault vma range

2019-02-25 Thread Mike Rapoport
On Tue, Feb 26, 2019 at 02:06:27PM +0800, Peter Xu wrote: > On Mon, Feb 25, 2019 at 10:52:34PM +0200, Mike Rapoport wrote: > > On Tue, Feb 12, 2019 at 10:56:26AM +0800, Peter Xu wrote: > > > From: Shaohua Li > > > > > > Add API to enable/disable writeprotect a vma range. Unlike mprotect, > > >

Re: [PATCH] staging: wilc1000: Fix incorrent type in assignment

2019-02-25 Thread Ajay.Kathat
On 2/26/2019 8:58 AM, Bo YU wrote: > The patch fixes following sparse warning: > > drivers/staging/wilc1000/host_interface.c:450:30: warning: incorrect type in > assignment (different base types) > drivers/staging/wilc1000/host_interface.c:450:30:expected restricted > __le16 [usertype]

[RFC v10 2/4] pstore/blk: add blkoops for pstore_blk

2019-02-25 Thread liaoweixiong
blkoops is a sample for pstore/blk. It can only record oops, excluding panics as no read/write apis for panic registered. It support settings on Kconfg/module parameters. It can record oops log even power failure if "PSTORE_BLKOOPS_BLKDEV" on Kconfig or "blkdev" on module parameter is valid.

[PATCH v3 1/8] KVM:VMX: Define CET VMCS fields and bits

2019-02-25 Thread Yang Weijiang
CET - Control-flow Enforcement Technology, it's used to protect against return/jump oriented programming (ROP) attacks. It provides the following capabilities to defend against ROP/JOP style control-flow subversion attacks: - Shadow Stack (SHSTK): A second stack for the program

[RFC v10 0/4] pstore/block: new support logger for block devices

2019-02-25 Thread liaoweixiong
Why should we need pstore_block? 1. Most embedded intelligent equipment have no persistent ram, which increases costs. We perfer to cheaper solutions, like block devices. In fast, there is already a sample for block device logger in driver MTD (drivers/mtd/mtdoops.c). 2. Do not any equipment have

[PATCH v3 5/8] KVM:VMX: Pass through host CET related MSRs to Guest.

2019-02-25 Thread Yang Weijiang
The CET runtime settings, i.e., CET state control bits(IA32_U_CET/ IA32_S_CET), CET SSP(IA32_PL3_SSP/IA32_PL0_SSP) and SSP table address (IA32_INTERRUPT_SSP_TABLE_ADDR) are task/thread specific, therefore, OS needs to save/restore the states properly during context switch, e.g., task/thread

[RFC v10 4/4] Documentation: pstore/blk: create document for pstore_blk

2019-02-25 Thread liaoweixiong
The document, at Documentation/admin-guide/pstore-block.rst, tells user how to use pstore_blk and the attentions about panic read/write Signed-off-by: liaoweixiong --- Documentation/admin-guide/pstore-block.rst | 233 + MAINTAINERS|

[RFC v10 3/4] pstore/blk: support pmsg for pstore block

2019-02-25 Thread liaoweixiong
To enable pmsg, just set pmsg_size when block device register blkzone. Signed-off-by: liaoweixiong --- fs/pstore/Kconfig | 21 fs/pstore/blkoops.c| 10 ++ fs/pstore/blkzone.c| 253 + include/linux/pstore_blk.h | 1 +

[RFC v10 1/4] pstore/blk: new support logger for block devices

2019-02-25 Thread liaoweixiong
pstore_blk is similar to pstore_ram, but dump log to block devices rather than persistent ram. Why should we need pstore_blk? 1. Most embedded intelligent equipment have no persistent ram, which increases costs. We perfer to cheaper solutions, like block devices. In fact, there is already a

[PATCH v3 0/8] This patch-set is to enable Guest CET support

2019-02-25 Thread Yang Weijiang
Control-flow Enforcement Technology (CET) provides protection against return/jump-oriented programming (ROP) attacks. To make kvm Guest OS own the capability, this patch-set is required. It enables CET related CPUID report, xsaves/xrstors, vmx entry configuration etc. for Guest OS. PATCH 1:

[PATCH v3 3/8] KVM:CPUID: Add CPUID support for Guest CET

2019-02-25 Thread Yang Weijiang
Guest CET SHSTK and IBT capability are reported via CPUID.(EAX=7, ECX=0):ECX[bit 7] and EDX[bit 20] respectively. Guest user mode and supervisor mode xsaves component size is reported via CPUID.(EAX=0xD, ECX=1):ECX[bit 11] and ECX[bit 12] respectively. Signed-off-by: Zhang Yi Z Signed-off-by:

[PATCH v3 2/8] KVM:CPUID: Define CET CPUID bits and CR4.CET master enable bit.

2019-02-25 Thread Yang Weijiang
Guest queries CET SHSTK and IBT support by CPUID.(EAX=0x7,ECX=0), in return, ECX[bit 7] corresponds to SHSTK feature, and EDX[bit 20] corresponds to IBT feature. CR4.CET[bit 23] is CET master enable bit, it controls CET feature availability in guest OS. Note: Although SHSTK or IBT can be enabled

[PATCH v3 4/8] KVM:CPUID: Fix xsaves area size calculation for CPUID.(EAX=0xD,ECX=1).

2019-02-25 Thread Yang Weijiang
According to latest Software Development Manual vol.2/3.2, for CPUID.(EAX=0xD,ECX=1), it should report xsaves area size containing all states enabled by XCR0|IA32_MSR_XSS. Signed-off-by: Zhang Yi Z Signed-off-by: Yang Weijiang --- arch/x86/kvm/cpuid.c | 3 ++- 1 file changed, 2 insertions(+),

[PATCH v3 8/8] KVM:X86: Add user-space read/write interface for CET MSRs.

2019-02-25 Thread Yang Weijiang
The Guest MSRs are stored in fpu storage area, they are operated by XSAVES/XRSTORS, so use kvm_load_guest_fpu to restore them is a convenient way to let KVM access them. After finish operation, need to restore Host MSR contents by kvm_put_guest_fpu. Signed-off-by: Yang Weijiang ---

[PATCH v3 6/8] KVM:VMX: Load Guest CET via VMCS when CET is enabled in Guest

2019-02-25 Thread Yang Weijiang
"Load Guest CET state" bit controls whether guest CET states will be loaded at Guest entry. Before doing that, KVM needs to check if CPU CET feature is available. Signed-off-by: Zhang Yi Z Signed-off-by: Yang Weijiang --- arch/x86/kvm/vmx.c | 32 1 file

[PATCH v3 7/8] KVM:X86: Add XSS bit 11 and 12 support for CET xsaves/xrstors.

2019-02-25 Thread Yang Weijiang
For Guest XSS, right now, only bit 11(user states) and bit 12 (supervisor states) are supported, if other bits are being set, need to modify KVM_SUPPORTED_XSS macro to have support. Signed-off-by: Zhang Yi Z Signed-off-by: Yang Weijiang --- arch/x86/kvm/vmx.c | 8 +--- 1 file changed, 5

Re: [PATCH v2 21/26] userfaultfd: wp: add the writeprotect API to userfaultfd ioctl

2019-02-25 Thread Peter Xu
On Mon, Feb 25, 2019 at 11:03:51PM +0200, Mike Rapoport wrote: > On Tue, Feb 12, 2019 at 10:56:27AM +0800, Peter Xu wrote: > > From: Andrea Arcangeli > > > > v1: From: Shaohua Li > > > > v2: cleanups, remove a branch. > > > > [peterx writes up the commit message, as below...] > > > > This

[PATCH v3 9/9] perf inject: enable COMPRESSED records decompression

2019-02-25 Thread Alexey Budankov
Initialized decompression API so COMPRESSED records would be decompressed into the resulting output data file. Signed-off-by: Alexey Budankov --- tools/perf/builtin-inject.c | 4 1 file changed, 4 insertions(+) diff --git a/tools/perf/builtin-inject.c b/tools/perf/builtin-inject.c index

[PATCH v3 8/9] perf report: implement record trace decompression

2019-02-25 Thread Alexey Budankov
Trace frames containing PERF_RECORD_COMPRESSED records are decompressed using functions from zstd.c into a linked list of mmaped memory regions of mmap_comp_len size (struct decomp). After decompression of one COMPRESSED record its content is iterated and fetched for usual processing. The

Re: [PATCH v2 23/26] userfaultfd: wp: don't wake up when doing write protect

2019-02-25 Thread Peter Xu
On Mon, Feb 25, 2019 at 11:09:35PM +0200, Mike Rapoport wrote: > On Tue, Feb 12, 2019 at 10:56:29AM +0800, Peter Xu wrote: > > It does not make sense to try to wake up any waiting thread when we're > > write-protecting a memory region. Only wake up when resolving a write > > protected page fault.

Re: [PATCH v2 2/2] Drivers: hv: vmbus: Add a channel ring buffer mutex lock

2019-02-25 Thread Kimberly Brown
On Sun, Feb 24, 2019 at 04:53:03PM +, Michael Kelley wrote: > From: Kimberly Brown Sent: Thursday, February 21, 2019 > 7:47 PM > > > > The "_show" functions that access channel ring buffer data are > > vulnerable to a race condition that can result in a NULL pointer > > dereference. This

[PATCH 10/14] powercap/intel_rapl: update rapl domain name and debug messages

2019-02-25 Thread Len Brown
From: Zhang Rui The RAPL domain "name" attribute contains "Package-N", which is ambiguous on multi-die per-package systems. Update the name to "package-X-die-Y" on those systems. No change on systems without multi-die. Driver debug messages are also updated. Signed-off-by: Zhang Rui

[PATCH v3 7/9] perf record: implement -z,--compression_level=n option and compression

2019-02-25 Thread Alexey Budankov
Implemented -z,--compression_level=n option that enables compression of mmaped kernel data buffers content in runtime during perf record sampling collection. Compression is implemented using the functions from zstd.c. As the memory to operate on the compression employs mmap->data buffer in

[PATCH 0/14] v2 multi-die/package topology support

2019-02-25 Thread Len Brown
This patch series does 4 things. 1. Parses the new CPUID.1F leaf to discover multi-die/package topology 2. Export multi-die topology inside the kernel 3. Update 3 places (coretemp, pkgtemp, rapl) that that need to know the difference between die and package-scope MSR. (Note: Kan Liang

[PATCH 02/14] topolgy: Simplify cputopology.txt formatting and wording

2019-02-25 Thread Len Brown
From: Len Brown Syntax only, no functional or semantic change. Signed-off-by: Len Brown Cc: linux-...@vger.kernel.org --- Documentation/cputopology.txt | 46 +-- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/Documentation/cputopology.txt

[PATCH 01/14] x86 topology: Fix doc typo

2019-02-25 Thread Len Brown
From: Len Brown Syntax only, no functional or semantic change. reflect actual cpuinfo_x86 field name: s/logical_id/logical_proc_id/ Signed-off-by: Len Brown Cc: linux-...@vger.kernel.org --- Documentation/x86/topology.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v4] mm/hugetlb: Fix unsigned overflow in __nr_hugepages_store_common()

2019-02-25 Thread David Rientjes
On Tue, 26 Feb 2019, Jing Xiangfeng wrote: > On 2019/2/26 3:17, David Rientjes wrote: > > On Mon, 25 Feb 2019, Mike Kravetz wrote: > > > >> Ok, what about just moving the calculation/check inside the lock as in the > >> untested patch below? > >> > >> Signed-off-by: Mike Kravetz > >> --- > >>

[PATCH 08/14] powercap/intel_rapl: Support multi-die/package

2019-02-25 Thread Len Brown
From: Zhang Rui On the new dual-die/package systems, the RAPL MSR becomes die-scope. Thus instead of one powercap device per physical package, now there should be one powercap device for each unique die on these systems. This patch introduces intel_rapl driver support for new dual-die/package

[PATCH 11/14] hwmon/coretemp: Support multi-die/package

2019-02-25 Thread Len Brown
From: Zhang Rui This patch introduces coretemp driver support for new dual-die/package systems. On the new dual-die/package systems, the package temperature MSRs becomes die-scope. Thus instead of one hwmon device per physical package, now there should be one hwmon device for each die on these

[PATCH 06/14] x86 topology: Define topology_logical_die_id()

2019-02-25 Thread Len Brown
From: Len Brown Define topology_logical_die_id() ala existing topology_logical_package_id() Signed-off-by: Len Brown --- arch/x86/include/asm/processor.h | 1 + arch/x86/include/asm/topology.h | 3 +++ arch/x86/kernel/smpboot.c| 43 3 files changed,

[PATCH 12/14] topology: Create package_threads sysfs attribute

2019-02-25 Thread Len Brown
From: Len Brown The sysfs cpu/topology/core_siblings (and core_siblings_list) attributes are documented, implemented, and used by programs to represent set of logical CPU threads sharing the same package. This makes sense if the next topology level above a core is always a package. But on

[PATCH 09/14] thermal/x86_pkg_temp_thermal: Support multi-die/package

2019-02-25 Thread Len Brown
From: Zhang Rui On the new dual-die/package systems, the package temperature MSR becomes die-scope. Thus instead of one thermal zone device per physical package, now there should be one thermal_zone for each die on these systems. This patch introduces x86_pkg_temp_thermal support for new

[PATCH 04/14] x86 topology: Add CPUID.1F multi-die/package support

2019-02-25 Thread Len Brown
From: Len Brown Some new systems have multiple software-visible die within each package. Update Linux parsing of the Intel CPUID "Extended Topology Leaf" to handle either CPUID.B, or the new CPUID.1F. Add cpuinfo_x86.die_id and cpuinfo_x86.max_dies to store the result. die_id will be non-zero

[PATCH 13/14] topology: Create core_threads sysfs attribute

2019-02-25 Thread Len Brown
From: Len Brown Create CPU topology sysfs attributes: "core_threads" and "core_threads_list" These attributes represent all of the logical CPU threads that share the same core. These attriutes is synonymous with the existing "thread_siblings" and "thread_siblings_list" attribute, which will be

[PATCH 05/14] cpu topology: Export die_id

2019-02-25 Thread Len Brown
From: Len Brown Export die_id in cpu topology, for the benefit of hardware that has multiple-die/package. Signed-off-by: Len Brown Cc: linux-...@vger.kernel.org --- Documentation/cputopology.txt | 6 ++ arch/x86/include/asm/topology.h | 1 + drivers/base/topology.c | 4

[PATCH 14/14] topology: Create die_threads sysfs attribute

2019-02-25 Thread Len Brown
From: Len Brown The die_threads show all the logical CPUs that share the same die_id. Signed-off-by: Len Brown Suggested-by: Brice Goglin --- Documentation/cputopology.txt | 12 arch/x86/include/asm/smp.h | 1 + arch/x86/include/asm/topology.h | 1 +

[PATCH 03/14] x86 smpboot: Rename match_die() to match_pkg()

2019-02-25 Thread Len Brown
From: Len Brown Syntax only, no functional or semantic change. This routine matches packages, not die, so name it thus. Signed-off-by: Len Brown --- arch/x86/kernel/smpboot.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/smpboot.c

[PATCH 07/14] powercap/intel_rapl: Simplify rapl_find_package()

2019-02-25 Thread Len Brown
From: Zhang Rui Syntax only, no functional or semantic change. Simplify how the code to discover a package is called. Rename find_package_by_id() to rapl_find_package() Signed-off-by: Zhang Rui Signed-off-by: Len Brown Acked-by: Rafael J. Wysocki Cc: linux...@vger.kernel.org ---

Glückwunsch zum Gewinn

2019-02-25 Thread director . ict
Schönen Tag, Mein Name ist Mavis Wanczyk, Gewinner des Powerball-Jackpots im August 2017 in Höhe von 758,7 Millionen US-Dollar. Ich und meine Familie haben beschlossen, jeweils fünf Millionen US-Dollar an einige glückliche Personen auf der ganzen Welt auszugeben. Kontaktieren Sie mich über

Re: [PATCH 1/2] dt-bindings: input: sitronix-st1232: document optional reset-gpios property

2019-02-25 Thread Martin Kepplinger
On 25.02.19 15:43, Rob Herring wrote: > On Tue, Jan 29, 2019 at 11:23:46AM +0100, Martin Kepplinger wrote: >> From: Martin Kepplinger >> >> The st1232 driver reads this via gpiod. > > What a driver does is not relevant to the binding. This breaks > compatibility so you need to mention that and

Re: [PATCH v6 0/4] input: touchscreen: Add goodix GT5553 CTP support

2019-02-25 Thread Jagan Teki
Hi Dmitry, On Tue, Feb 19, 2019 at 3:46 PM Jagan Teki wrote: > > This is v6 patchset for supporting goodix GT5553 CTP. Here is the > previous version[1] > > Changes for v5: > - document bindings for required regulators, which are need during > power-on sequence > - enable, disable required

Re: [PATCH] dt-bindings: Add vendor prefix for feiyang

2019-02-25 Thread Jagan Teki
Hi Rob, On Tue, Feb 12, 2019 at 5:22 PM Jagan Teki wrote: > > Add vendor prefix for feiyang, known as > Shenzhen Fly Young Technology Co.,LTD. a known producer for LCD modules. > > Signed-off-by: Jagan Teki > --- > Note: notation about using 'feiyang' is based on the datasheet >

[PATCH v3 6/9] perf util: introduce Zstd based streaming compression API

2019-02-25 Thread Alexey Budankov
Implemented functions are based on Zstd streaming compression API. The functions are used in runtime to compress data that come from mmaped kernel buffer data and then stored into a trace. Signed-off-by: Alexey Budankov --- tools/perf/util/Build | 2 + tools/perf/util/compress.h | 18

RE: [PATCH v3 2/2] drivers: mux: Add Generic regmap bitfield-based multiplexer in mmio-mux

2019-02-25 Thread Pankaj Bansal
Hi Peter, > -Original Message- > From: Peter Rosin [mailto:p...@axentia.se] > Sent: Monday, 25 February, 2019 08:14 PM > To: Pankaj Bansal ; Leo Li > Cc: linux-kernel@vger.kernel.org > Subject: Re: [PATCH v3 2/2] drivers: mux: Add Generic regmap bitfield-based > multiplexer in mmio-mux >

Re: [PATCH v2 20/26] userfaultfd: wp: support write protection for userfault vma range

2019-02-25 Thread Peter Xu
On Mon, Feb 25, 2019 at 10:52:34PM +0200, Mike Rapoport wrote: > On Tue, Feb 12, 2019 at 10:56:26AM +0800, Peter Xu wrote: > > From: Shaohua Li > > > > Add API to enable/disable writeprotect a vma range. Unlike mprotect, > > this doesn't split/merge vmas. > > > > Cc: Andrea Arcangeli > > Cc:

Re: [PATCH v2] dt-bindings: hwmon: Add missing documentation for lm75

2019-02-25 Thread Jagan Teki
Rob, On Thu, Feb 21, 2019 at 7:32 PM Guenter Roeck wrote: > > On 2/20/19 9:22 AM, Jagan Teki wrote: > > On Tue, Feb 12, 2019 at 5:08 PM Jagan Teki > > wrote: > >> > >> Add missing dt-binding documentation for lm75 hwmon sensor. > >> > >> Signed-off-by: Jagan Teki > >> --- > >> Changes for v2:

[PATCH v3 5/9] perf mmap: implement dedicated memory buffer for data compression

2019-02-25 Thread Alexey Budankov
Implemented mmap data buffer that is used as the memory to operate on when compressing sampling data in case of serial trace streaming. In case of AIO trace streaming AIO buffers are used to implement sampling data compression. Signed-off-by: Alexey Budankov --- tools/perf/builtin-record.c |

[PATCH 2/2] arm64: allwinner: a64: Add Oceanic A64-5inMFD initial support

2019-02-25 Thread Jagan Teki
Oceanic A64-5inMFD is a 5 inch Multi function display baseboard designed to mount SoPine SOM. Key features: - Allwinner A64 Cortex-A53 - Mali-400MP2 GPU - AXP803 PMIC - 2GB DDR3 RAM - SD Slot - SPI-NOR flash - EMAC, RTL8211E - MCP2515 CAN - MIPI-DSI - Goodix 911 CTP - USB Host - 12V DC power

  1   2   3   4   5   6   7   8   9   10   >