Re: [PATCH] x86/boot/64: Make level2_kernel_pgt pages invalid outside kernel area.

2019-09-16 Thread Steve Wahl
On Mon, Sep 16, 2019 at 12:00:58PM +0300, Kirill A. Shutemov wrote: > On Fri, Sep 13, 2019 at 10:14:15AM -0500, Steve Wahl wrote: > > On Thu, Sep 12, 2019 at 01:19:17PM +0300, Kirill A. Shutemov wrote: > > > On Wed, Sep 11, 2019 at 03:08:35PM -0500, Steve Wahl wrote: > > > > Thank you for your

Re: Linux 5.3-rc8

2019-09-16 Thread Linus Torvalds
On Sun, Sep 15, 2019 at 11:13 PM Willy Tarreau wrote: > > > > > So three out of four flag combinations end up being mostly "don't > > use", and the fourth one isn't what you'd normally want (which is just > > plain /dev/urandom semantics). > > I'm seeing it from a different angle. I now

[PATCH v5 7/8] clk: Add common clock driver for BM1880 SoC

2019-09-16 Thread Manivannan Sadhasivam
Add common clock driver for Bitmain BM1880 SoC. The clock controller on BM1880 has supplies clocks to all peripherals in the form of gate clocks and composite clocks (fixed factor + gate). Signed-off-by: Manivannan Sadhasivam --- drivers/clk/Kconfig | 7 + drivers/clk/Makefile | 1

[PATCH v5 8/8] MAINTAINERS: Add entry for BM1880 SoC clock driver

2019-09-16 Thread Manivannan Sadhasivam
Add MAINTAINERS entry for Bitmain BM1880 SoC clock driver. Signed-off-by: Manivannan Sadhasivam --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 997a4f8fe88e..280defec35b2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1503,8 +1503,10 @@ M:

Re: [PATCH 2/2] selftests: watchdog: Add command line option to show watchdog_info

2019-09-16 Thread George G. Davis
Hello Shuah, On Mon, Sep 16, 2019 at 10:05:17AM -0600, shuah wrote: > On 9/16/19 7:57 AM, Eugeniu Rosca wrote: > >Hi Shuah, > >CC George > > > >On Mon, Sep 16, 2019 at 07:26:41AM -0600, shuah wrote: > >[..] > >>> case 'f': > >>> /* Handled above */ >

[PATCH v5 2/8] clk: Warn if clk_init_data is not zero initialized

2019-09-16 Thread Manivannan Sadhasivam
The new implementation for determining parent map uses multiple ways to pass parent info. The order in which it gets processed depends on the first available member. Hence, it is necessary to zero init the clk_init_data struct so that the expected member gets processed correctly. So, add a warning

[PATCH v5 5/8] arm64: dts: bitmain: Add clock controller support for BM1880 SoC

2019-09-16 Thread Manivannan Sadhasivam
Add clock controller support for Bitmain BM1880 SoC. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/bitmain/bm1880.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/bitmain/bm1880.dtsi b/arch/arm64/boot/dts/bitmain/bm1880.dtsi index

[PATCH v5 6/8] arm64: dts: bitmain: Source common clock for UART controllers

2019-09-16 Thread Manivannan Sadhasivam
Remove fixed clock and source common clock for UART controllers. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/bitmain/bm1880-sophon-edge.dts | 9 - arch/arm64/boot/dts/bitmain/bm1880.dtsi| 12 2 files changed, 12 insertions(+), 9 deletions(-)

[PATCH v5 4/8] dt-bindings: clock: Add devicetree binding for BM1880 SoC

2019-09-16 Thread Manivannan Sadhasivam
Add YAML devicetree binding for Bitmain BM1880 SoC. Signed-off-by: Manivannan Sadhasivam --- .../bindings/clock/bitmain,bm1880-clk.yaml| 76 + include/dt-bindings/clock/bm1880-clock.h | 82 +++ 2 files changed, 158 insertions(+) create mode 100644

[PATCH v5 3/8] clk: Add clk_hw_unregister_composite helper function definition

2019-09-16 Thread Manivannan Sadhasivam
This function has been delcared but not defined anywhere. Hence, this commit adds definition for it. Signed-off-by: Manivannan Sadhasivam --- drivers/clk/clk-composite.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/clk/clk-composite.c b/drivers/clk/clk-composite.c

[PATCH v5 0/8] Add Bitmain BM1880 clock driver

2019-09-16 Thread Manivannan Sadhasivam
Hello, This patchset adds common clock driver for Bitmain BM1880 SoC clock controller. The clock controller consists of gate, divider, mux and pll clocks with different compositions. Hence, the driver uses composite clock structure in place where multiple clocking units are combined together.

[PATCH v5 1/8] clk: Zero init clk_init_data in helpers

2019-09-16 Thread Manivannan Sadhasivam
The clk_init_data struct needs to be initialized to zero for the new parent_map implementation to work correctly. Otherwise, the member which is available first will get processed. Signed-off-by: Manivannan Sadhasivam --- drivers/clk/clk-composite.c | 2 +- drivers/clk/clk-divider.c| 2 +-

Re: [v6 1/2] mtd: rawnand: Add new Cadence NAND driver to MTD subsystem

2019-09-16 Thread kbuild test robot
/mtd-rawnand-Add-Cadence-NAND-controller-driver/20190916-205004 config: parisc-allyesconfig (attached as .config) compiler: hppa-linux-gcc (GCC) 7.4.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin

RE: [PATCH 2/3] spi: dw: Add basic runtime PM support

2019-09-16 Thread Gareth Williams
Hi Geert, I appreciate the feedback. > On Mon, Sep 16, 2019 at 15:36 PM Geert Uytterhoeven > wrote: > Hi Gareth, > > On Fri, Sep 13, 2019 at 2:13 PM Gareth Williams > wrote: > > From: Phil Edworthy > > > > Enable runtime PM so that the clock used to access the registers in > > the peripheral

Re: [RFC PATCH 0/2] Add support for SBI version to 0.2

2019-09-16 Thread Palmer Dabbelt
On Sun, 15 Sep 2019 23:54:46 PDT (-0700), Christoph Hellwig wrote: On Fri, Sep 13, 2019 at 08:54:27AM -0700, Palmer Dabbelt wrote: On Tue, Sep 3, 2019 at 12:38 AM h...@infradead.org wrote: > On Fri, Aug 30, 2019 at 11:13:25PM +, Atish Patra wrote: > > If I understood you clearly, you want

Re: [PATCH] serial/sifive: select SERIAL_EARLYCON

2019-09-16 Thread Palmer Dabbelt
On Sun, 15 Sep 2019 23:42:53 PDT (-0700), Christoph Hellwig wrote: On Fri, Sep 13, 2019 at 01:40:27PM -0700, Palmer Dabbelt wrote: OpenEmbedded passes "earlycon=sbi", which I can find in the doumentation. I can't find anything about just "earlycon". I've sent a patch adding sbi to the list of

[RFC PATCH] mm/slub: remove left-over debugging code

2019-09-16 Thread Qian Cai
SLUB_RESILIENCY_TEST and SLUB_DEBUG_CMPXCHG look like some left-over debugging code during the internal development that probably nobody uses it anymore. Remove them to make the world greener. --- mm/slub.c | 110 -- 1 file changed, 110

[PATCH] pinctrl: devicetree: Avoid taking direct reference to device name string

2019-09-16 Thread Will Deacon
When populating the pinctrl mapping table entries for a device, the 'dev_name' field for each entry is initialised to point directly at the string returned by 'dev_name()' for the device and subsequently used by 'create_pinctrl()' when looking up the mappings for the device being probed. This is

memory leak in h5_rx_pkt_start

2019-09-16 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:1609d760 Merge tag 'for-linus' of git://git.kernel.org/pub.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1494a08160 kernel config: https://syzkaller.appspot.com/x/.config?x=90cbcb59581ed842

Re: [PATCH] selftests/net: replace AF_MAX with INT_MAX in socket.c

2019-09-16 Thread shuah
On 9/16/19 9:03 AM, Marcelo Henrique Cerri wrote: Use INT_MAX instead of AF_MAX, since libc might have a smaller value of AF_MAX than the kernel, what causes the test to fail. Signed-off-by: Marcelo Henrique Cerri --- tools/testing/selftests/net/socket.c | 6 +- 1 file changed, 5

possible deadlock in usb_deregister_dev (2)

2019-09-16 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:f0df5c1b usb-fuzzer: main usb gadget fuzzer driver git tree: https://github.com/google/kasan.git usb-fuzzer console output: https://syzkaller.appspot.com/x/log.txt?x=1742f15960 kernel config:

Re: [PATCH 2/2] selftests: watchdog: Add command line option to show watchdog_info

2019-09-16 Thread shuah
On 9/16/19 7:57 AM, Eugeniu Rosca wrote: Hi Shuah, CC George On Mon, Sep 16, 2019 at 07:26:41AM -0600, shuah wrote: [..] case 'f': /* Handled above */ break; + case 'i': + /* +

Re: [PATCH v5 0/7] mm, slab: Make kmalloc_info[] contain all types of names

2019-09-16 Thread Christopher Lameter
On Mon, 16 Sep 2019, Pengfei Li wrote: > The name of KMALLOC_NORMAL is contained in kmalloc_info[].name, > but the names of KMALLOC_RECLAIM and KMALLOC_DMA are dynamically > generated by kmalloc_cache_name(). > > Patch1 predefines the names of all types of kmalloc to save > the time spent

Re: [Patch 05/13] media: am437x-vpfe: Streamlined vb2 buffer cleanup

2019-09-16 Thread Lad, Prabhakar
On Mon, Sep 16, 2019 at 3:51 PM Benoit Parrot wrote: > > Lad, Prabhakar wrote on Mon [2019-Sep-16 > 09:00:03 +0100]: > > Hi Benoit, > > > > Thank you for the patch. > > > > On Mon, Sep 9, 2019 at 5:26 PM Benoit Parrot wrote: > > > > > > Returning queued vb2 buffers back to user space is a

Re: linux-next: manual merge of the modules tree with the compiler-attributes tree

2019-09-16 Thread Mark Brown
On Sun, Sep 15, 2019 at 11:27:20PM +0100, Mark Brown wrote: > Since this conflcit is non-trivial, it's late and there's a good chance > I'm not going to actually finish building -next today I've just used the > commit from the last time -next was built, 3b5be16c7e90a69c, for the > modules tree -

Re: [PATCH v3] mm/kasan: dump alloc and free stack for page allocator

2019-09-16 Thread Andrey Ryabinin
On 9/16/19 12:42 PM, Vlastimil Babka wrote: > On 9/12/19 7:05 PM, Andrey Ryabinin wrote: >> >> Or another alternative option (and actually easier one to implement), leave >> PAGE_OWNER as is (no "select"s in Kconfigs) >> Make PAGE_OWNER_FREE_STACK like this: >> >> +config PAGE_OWNER_FREE_STACK >>

Re: [PATCH v5 7/7] mm, slab_common: Modify kmalloc_caches[type][idx] to kmalloc_caches[idx][type]

2019-09-16 Thread Christopher Lameter
On Mon, 16 Sep 2019, Pengfei Li wrote: > KMALLOC_NORMAL is the most frequently accessed, and kmalloc_caches[] > is initialized by different types of the same size. > > So modifying kmalloc_caches[type][idx] to kmalloc_caches[idx][type] > will benefit performance. Why would that increase

Re: [PATCH 0/6] ARM, arm64: Remove arm_pm_restart()

2019-09-16 Thread Thierry Reding
On Mon, Sep 16, 2019 at 08:43:36AM -0700, Guenter Roeck wrote: > On Mon, Sep 16, 2019 at 03:49:20PM +0200, Thierry Reding wrote: > > On Mon, Sep 16, 2019 at 06:17:01AM -0700, Guenter Roeck wrote: > > > On 9/16/19 12:49 AM, Arnd Bergmann wrote: > > > > On Sat, Sep 14, 2019 at 5:26 PM Guenter Roeck

Re: [PATCH v3] usbip: vhci_hcd indicate failed message

2019-09-16 Thread shuah
On 9/16/19 9:09 AM, Mao Wenan wrote: If the return value of vhci_init_attr_group and sysfs_create_group is non-zero, which mean they failed to init attr_group and create sysfs group, so it would better add 'failed' message to indicate that. This patch also change pr_err to dev_err to trace which

[PATCH v4 6/7] MAINTAINERS: Add entry for Actions Semi SD/MMC driver and binding

2019-09-16 Thread Manivannan Sadhasivam
Add MAINTAINERS entry for Actions Semi SD/MMC driver with its binding. Signed-off-by: Manivannan Sadhasivam --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index c31e6492b601..d13138330b97 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1375,6

[PATCH v4 5/7] mmc: Add Actions Semi Owl SoCs SD/MMC driver

2019-09-16 Thread Manivannan Sadhasivam
Add SD/MMC driver for Actions Semi Owl SoCs. This driver currently supports standard, high speed, SDR12, SDR25 and SDR50. DDR50 mode is supported but it is untested. There is no SDIO support for now. Signed-off-by: Manivannan Sadhasivam --- drivers/mmc/host/Kconfig | 8 +

[PATCH v4 7/7] arm64: configs: Enable Actions Semi platform in defconfig

2019-09-16 Thread Manivannan Sadhasivam
Since the Actions Semi platform can now boot a distro, enable it in ARM64 defconfig. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index

[PATCH v4 3/7] arm64: dts: actions: Add MMC controller support for S900

2019-09-16 Thread Manivannan Sadhasivam
Add MMC controller support for Actions Semi S900 SoC. There are 4 MMC controllers in this SoC which can be used for accessing SD/MMC/SDIO cards. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s900.dtsi | 45 +++ 1 file changed, 45 insertions(+)

[PATCH v4 4/7] arm64: dts: actions: Add uSD and eMMC support for Bubblegum96

2019-09-16 Thread Manivannan Sadhasivam
Add uSD and eMMC support for Bubblegum96 board based on Actions Semi S900 SoC. SD0 is connected to uSD slot and SD2 is connected to eMMC. Since there is no PMIC support added yet, fixed regulator has been used as a regulator node. Signed-off-by: Manivannan Sadhasivam ---

[PATCH v4 2/7] dt-bindings: mmc: Add Actions Semi SD/MMC/SDIO controller binding

2019-09-16 Thread Manivannan Sadhasivam
Add devicetree YAML binding for Actions Semi Owl SoC's SD/MMC/SDIO controller. Signed-off-by: Manivannan Sadhasivam --- .../devicetree/bindings/mmc/owl-mmc.yaml | 59 +++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/owl-mmc.yaml

[PATCH v4 1/7] clk: actions: Fix factor clk struct member access

2019-09-16 Thread Manivannan Sadhasivam
Since the helper "owl_factor_helper_round_rate" is shared between factor and composite clocks, using the factor clk specific helper function like "hw_to_owl_factor" to access its members will create issues when called from composite clk specific code. Hence, pass the "factor_hw" struct pointer

[PATCH v4 0/7] Add SD/MMC driver for Actions Semi S900 SoC

2019-09-16 Thread Manivannan Sadhasivam
Hello, This patchset adds SD/MMC driver for Actions Semi S900 SoC from Owl family SoCs. There are 4 SD/MMC controller present in this SoC but only 2 are enabled currently for Bubblegum96 board to access uSD and onboard eMMC. SDIO support for this driver is not currently implemented. Note:

Re: [PATCH 0/6] ARM, arm64: Remove arm_pm_restart()

2019-09-16 Thread Guenter Roeck
On Mon, Sep 16, 2019 at 03:49:20PM +0200, Thierry Reding wrote: > On Mon, Sep 16, 2019 at 06:17:01AM -0700, Guenter Roeck wrote: > > On 9/16/19 12:49 AM, Arnd Bergmann wrote: > > > On Sat, Sep 14, 2019 at 5:26 PM Guenter Roeck wrote: > > > > On Mon, Jan 30, 2017 at 12:05:06PM +0100, Thierry

[PATCH] mm/memcontrol: fix a -Wunused-function warning

2019-09-16 Thread Qian Cai
mem_cgroup_id_get() was introduced in the commit 73f576c04b94 ("mm:memcontrol: fix cgroup creation failure after many small jobs"). Later, it no longer has any user since the commits, 1f47b61fb407 ("mm: memcontrol: fix swap counter leak on swapout from offline cgroup") 58fa2a5512d9 ("mm:

Re: [PATCH] locking: locktorture: Do not include rwlock.h directly

2019-09-16 Thread Paul E. McKenney
On Mon, Sep 16, 2019 at 04:54:04PM +0200, Sebastian Andrzej Siewior wrote: > From: Wolfgang M. Reimer > > Including rwlock.h directly will cause kernel builds to fail > if CONFIG_PREEMPT_RT is defined. The correct header file > (rwlock_rt.h OR rwlock.h) will be included by spinlock.h which > is

[GIT PULL] cgroup changes for v5.4-rc1

2019-09-16 Thread Tejun Heo
Hello, Linus. Three minor cleanup patches. Thanks. The following changes since commit ad5e427e0f6b702e52c11d1f7b2b7be3bac7de82: Merge branch 'parisc-5.3-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux (2019-07-23 15:34:59 -0700) are available in the Git repository

Re: INFO: rcu detected stall in dummy_timer

2019-09-16 Thread Andrey Konovalov
On Fri, Sep 13, 2019 at 10:35 PM Alan Stern wrote: > > On Fri, 13 Sep 2019, syzbot wrote: > > > syzbot has found a reproducer for the following crash on: > > > > HEAD commit:f0df5c1b usb-fuzzer: main usb gadget fuzzer driver > > git tree: https://github.com/google/kasan.git usb-fuzzer >

[tip: x86/mm] x86/cpu: Clean up intel_tlb_table[]

2019-09-16 Thread tip-bot2 for Sylvain 'ythier' Hitier
The following commit has been merged into the x86/mm branch of tip: Commit-ID: 77df779de742d6616d4ddd177cba152a75259104 Gitweb: https://git.kernel.org/tip/77df779de742d6616d4ddd177cba152a75259104 Author:Sylvain 'ythier' Hitier AuthorDate:Sun, 15 Sep 2019 11:09:25 +02:00

Re: [PATCH] arm64: psci: Use udelay() instead of msleep() to reduce waiting time

2019-09-16 Thread Yunfeng Ye
On 2019/9/12 16:48, David Laight wrote: > From: Yunfeng Ye >> Sent: 11 September 2019 09:50 >> We want to reduce the time of cpu_down() for saving power, found that >> cpu_psci_cpu_kill() cost 10ms after psci_ops.affinity_info() fail. >> >> Normally the time cpu dead is very short, it is no

Re: [PATCH v3] mm: memory: fix /proc/meminfo reporting for MLOCK_ONFAULT

2019-09-16 Thread Kirill A. Shutemov
On Fri, Sep 13, 2019 at 02:11:19PM -0700, Lucian Adrian Grijincu wrote: > As pages are faulted in MLOCK_ONFAULT correctly updates > /proc/self/smaps, but doesn't update /proc/meminfo's Mlocked field. I don't think there's something wrong with this behaviour. It is okay to keep the page an

Re: Documentation for plain accesses and data races

2019-09-16 Thread Alan Stern
On Mon, 16 Sep 2019, Boqun Feng wrote: > > In other words, we can define ->vis as: > > > > let vis = prop ; ((strong-fence ; [Marked] ; xbstar) | (xbstar & int)) > > > > Hmm.. so the problem with this approach is that the (xbstar & int) part > doesn't satisfy the requirement of

Re: [PATCH 2/9] perf/core: Add PERF_SAMPLE_CGROUP feature

2019-09-16 Thread Tejun Heo
Hello, Song. On Sat, Sep 14, 2019 at 03:02:51PM +0100, Song Liu wrote: > I think we don't need a perfect identifier in this case. IIUC, the goal of I really don't want different versions of imperfect identifiers proliferating. > this patchset is to map each sample with a cgroup name (or full

Re: Documentation for plain accesses and data races

2019-09-16 Thread Alan Stern
On Mon, 16 Sep 2019, Boqun Feng wrote: > > executes if Y is a store.) This is expressed by the visibility > > relation (vis), where X ->vis Y is defined to hold if there is an > > intermediate event Z such that: > > > > X is connected to Z by a possibly empty sequence of > > cumul-fence

[GIT PULL] RISC-V updates for v5.4-rc1

2019-09-16 Thread Paul Walmsley
Linus, The following changes since commit a256f2e329df0773022d28df2c3d206b9aaf1e61: RISC-V: Fix FIXMAP area corruption on RV32 systems (2019-08-28 15:30:12 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git tags/riscv/for-v5.4-rc1

Re: [PATCH 8/9] select/restart_block: Convert poll's timeout to u64

2019-09-16 Thread Dmitry Safonov
On 9/9/19 2:07 PM, David Laight wrote: > From: Dmitry Safonov >> Sent: 09 September 2019 11:24 >> >> All preparations have been done - now poll() can set u64 timeout in >> restart_block. It allows to do the next step - unifying all timeouts in >> restart_block and provide ptrace() API to read it.

Re: [RESEND v4 5/7] mm, slab_common: Make kmalloc_caches[] start at size KMALLOC_MIN_SIZE

2019-09-16 Thread Pengfei Li
e, please drop us a note to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Pengfei-Li/mm-slab-Make-kmalloc_info-contain-all-types-of-names/20190916-065820 > reproduce: > # apt-get install sparse > # sparse version: v0.6.1-rc

Re: [RESEND v4 5/7] mm, slab_common: Make kmalloc_caches[] start at size KMALLOC_MIN_SIZE

2019-09-16 Thread Pengfei Li
rop us a note to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Pengfei-Li/mm-slab-Make-kmalloc_info-contain-all-types-of-names/20190916-065820 > config: parisc-allmodconfig (attached as .config) > compiler: hppa-linux-gcc (GCC)

[PATCH] media: usb: tm6000: Use the correct style for SPDX License Identifier

2019-09-16 Thread Nishad Kamdar
This patch corrects the SPDX License Identifier style in header files for TV Master Media USB Adapter drivers. For C header files Documentation/process/license-rules.rst mandates C-like comments (opposed to C source files where C++ style should be used) Changes made by using a script provided by

Re: [PATCH v2 2/2] powerpc/83xx: map IMMR with a BAT.

2019-09-16 Thread Scott Wood
On Mon, 2019-09-16 at 06:42 +, Christophe Leroy wrote: > @@ -145,6 +147,15 @@ void __init mpc83xx_setup_arch(void) > if (ppc_md.progress) > ppc_md.progress("mpc83xx_setup_arch()", 0); > > + if (!__map_without_bats) { > + phys_addr_t immrbase =

Re: [RESEND v4 6/7] mm, slab_common: Initialize the same size of kmalloc_caches[]

2019-09-16 Thread Pengfei Li
On Mon, Sep 16, 2019 at 5:38 AM David Rientjes wrote: Thanks for your review comments! > > On Mon, 16 Sep 2019, Pengfei Li wrote: > > > diff --git a/mm/slab_common.c b/mm/slab_common.c > > index 2aed30deb071..e7903bd28b1f 100644 > > --- a/mm/slab_common.c > > +++ b/mm/slab_common.c > > @@

[PATCH] selftests/net: replace AF_MAX with INT_MAX in socket.c

2019-09-16 Thread Marcelo Henrique Cerri
Use INT_MAX instead of AF_MAX, since libc might have a smaller value of AF_MAX than the kernel, what causes the test to fail. Signed-off-by: Marcelo Henrique Cerri --- tools/testing/selftests/net/socket.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[tip: x86/mm] x86/mm: Enable 5-level paging support by default

2019-09-16 Thread tip-bot2 for Kirill A. Shutemov
The following commit has been merged into the x86/mm branch of tip: Commit-ID: 18ec1eaf58fbf2d9009a752a102a3d8e0d905a0f Gitweb: https://git.kernel.org/tip/18ec1eaf58fbf2d9009a752a102a3d8e0d905a0f Author:Kirill A. Shutemov AuthorDate:Fri, 13 Sep 2019 12:54:52 +03:00

[PATCH] locking: locktorture: Do not include rwlock.h directly

2019-09-16 Thread Sebastian Andrzej Siewior
From: Wolfgang M. Reimer Including rwlock.h directly will cause kernel builds to fail if CONFIG_PREEMPT_RT is defined. The correct header file (rwlock_rt.h OR rwlock.h) will be included by spinlock.h which is included by locktorture.c anyway. Remove the include of linux/rwlock.h.

Re: [PATCH] x86/mm: Enable 5-level paging support by default

2019-09-16 Thread Ingo Molnar
* Dave Hansen wrote: > On 9/13/19 2:54 AM, Kirill A. Shutemov wrote: > > The next major release of distributions expected to have > > CONFIG_X86_5LEVEL=y. > > It's probably worth noting that this exposes to two kinds of possible > performance issues: > > First is the overhead of having the

[PATCH v3] usbip: vhci_hcd indicate failed message

2019-09-16 Thread Mao Wenan
If the return value of vhci_init_attr_group and sysfs_create_group is non-zero, which mean they failed to init attr_group and create sysfs group, so it would better add 'failed' message to indicate that. This patch also change pr_err to dev_err to trace which device is failed. Fixes: 0775a9cbc694

Re: [RESEND v4 1/7] mm, slab: Make kmalloc_info[] contain all types of names

2019-09-16 Thread Pengfei Li
On Mon, Sep 16, 2019 at 5:38 AM David Rientjes wrote: > > On Mon, 16 Sep 2019, Pengfei Li wrote: > > > There are three types of kmalloc, KMALLOC_NORMAL, KMALLOC_RECLAIM > > and KMALLOC_DMA. > > > > The name of KMALLOC_NORMAL is contained in kmalloc_info[].name, > > but the names of

Re: [Patch 05/13] media: am437x-vpfe: Streamlined vb2 buffer cleanup

2019-09-16 Thread Benoit Parrot
Lad, Prabhakar wrote on Mon [2019-Sep-16 09:00:03 +0100]: > Hi Benoit, > > Thank you for the patch. > > On Mon, Sep 9, 2019 at 5:26 PM Benoit Parrot wrote: > > > > Returning queued vb2 buffers back to user space is a common > > task best handled by a helper function. > > > > Signed-off-by:

[PATCH v5 7/7] mm, slab_common: Modify kmalloc_caches[type][idx] to kmalloc_caches[idx][type]

2019-09-16 Thread Pengfei Li
KMALLOC_NORMAL is the most frequently accessed, and kmalloc_caches[] is initialized by different types of the same size. So modifying kmalloc_caches[type][idx] to kmalloc_caches[idx][type] will benefit performance. $ ./scripts/bloat-o-meter vmlinux.patch_1-6 vmlinux.patch_1-7 add/remove: 0/0

[PATCH v5 6/7] mm, slab_common: Initialize the same size of kmalloc_caches[]

2019-09-16 Thread Pengfei Li
In the current implementation, KMALLOC_RECLAIM is not initialized until all the KMALLOC_NORMAL sizes have been initialized. But for a particular size, create_kmalloc_caches() can be executed faster by initializing different types of kmalloc in order. $ ./scripts/bloat-o-meter vmlinux.patch_1-5

[PATCH v5 5/7] mm, slab_common: Make kmalloc_caches[] start at size KMALLOC_MIN_SIZE

2019-09-16 Thread Pengfei Li
Currently, kmalloc_cache[] is not sorted by size, kmalloc_cache[0] is kmalloc-96, kmalloc_cache[1] is kmalloc-192 (when ARCH_DMA_MINALIGN is not defined). As suggested by Vlastimil Babka, "Since you're doing these cleanups, have you considered reordering kmalloc_info, size_index, kmalloc_index()

[PATCH v5 4/7] mm, slab: Return ZERO_SIZE_ALLOC for zero sized kmalloc requests

2019-09-16 Thread Pengfei Li
This is a preparation patch, just replace 0 with ZERO_SIZE_ALLOC as the return value of zero sized requests. Signed-off-by: Pengfei Li Acked-by: David Rientjes --- include/linux/slab.h | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/include/linux/slab.h

[PATCH v5 3/7] mm, slab_common: Use enum kmalloc_cache_type to iterate over kmalloc caches

2019-09-16 Thread Pengfei Li
The type of local variable *type* of new_kmalloc_cache() should be enum kmalloc_cache_type instead of int, so correct it. Signed-off-by: Pengfei Li Acked-by: Vlastimil Babka Acked-by: Roman Gushchin Acked-by: David Rientjes --- mm/slab_common.c | 5 +++-- 1 file changed, 3 insertions(+), 2

[PATCH v5 2/7] mm, slab: Remove unused kmalloc_size()

2019-09-16 Thread Pengfei Li
The size of kmalloc can be obtained from kmalloc_info[], so remove kmalloc_size() that will not be used anymore. Signed-off-by: Pengfei Li Acked-by: Vlastimil Babka Acked-by: Roman Gushchin Acked-by: David Rientjes --- include/linux/slab.h | 20 mm/slab.c| 5

[PATCH v5 1/7] mm, slab: Make kmalloc_info[] contain all types of names

2019-09-16 Thread Pengfei Li
There are three types of kmalloc, KMALLOC_NORMAL, KMALLOC_RECLAIM and KMALLOC_DMA. The name of KMALLOC_NORMAL is contained in kmalloc_info[].name, but the names of KMALLOC_RECLAIM and KMALLOC_DMA are dynamically generated by kmalloc_cache_name(). This patch predefines the names of all types of

[PATCH v5 0/7] mm, slab: Make kmalloc_info[] contain all types of names

2019-09-16 Thread Pengfei Li
Changes in v5 -- 1. patch 1/7: - rename SET_KMALLOC_SIZE to INIT_KMALLOC_INFO 2. patch 5/7: - fix build errors (Reported-by: kbuild test robot) - make all_kmalloc_info[] static (Reported-by: kbuild test robot) 3. patch 6/7: - for robustness, determine kmalloc_cache is !NULL in

Re: [PATCH for 5.3 3/3] rseq/selftests: Fix: Namespace gettid() for compatibility with glibc 2.30

2019-09-16 Thread Mathieu Desnoyers
- On Sep 14, 2019, at 3:47 PM, Sasha Levin sas...@kernel.org wrote: > Hi, > > [This is an automated email] > > This commit has been processed because it contains a -stable tag. > The stable tag indicates that it's relevant for the following trees: all > > The bot has tested the following

Re: page_alloc.shuffle=1 + CONFIG_PROVE_LOCKING=y = arm64 hang

2019-09-16 Thread Steven Rostedt
On Thu, 12 Sep 2019 08:05:41 -0400 Qian Cai wrote: > > drivers/char/random.c | 7 --- > > 1 file changed, 4 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/char/random.c b/drivers/char/random.c > > index 9b54cdb301d3..975015857200 100644 > > --- a/drivers/char/random.c > > +++

Hi dear,

2019-09-16 Thread Jessica Vail
Hi dear, I'm Jessica Vail, from the United States,please i wish to have a communication with you. I am waiting for your answer, Jessica Vail.

Re: [PATCH v6 01/12] tools lib traceevent: Convert remaining %p[fF] users to %p[sS]

2019-09-16 Thread Steven Rostedt
On Mon, 16 Sep 2019 14:41:59 +0300 Sakari Ailus wrote: > > Well, if you think that works, OK great. > > > > But could that work? > > How would an individual trace record know if > > another trace record used %pfw? > > > > Perhaps not reusing %pf, marking it reserved > > for a period of years,

Re: [PATCH v3 09/11] PCI: layerscape: Add EP mode support for ls1088a and ls2088a

2019-09-16 Thread Andrew Murray
On Sat, Sep 14, 2019 at 04:10:22AM +, Xiaowei Bao wrote: > > > > -Original Message- > > From: Andrew Murray > > Sent: 2019年9月12日 20:50 > > To: Xiaowei Bao > > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo > > Li ; kis...@ti.com; lorenzo.pieral...@arm.com;

Re: [PATCH 2/3] spi: dw: Add basic runtime PM support

2019-09-16 Thread Geert Uytterhoeven
Hi Gareth, On Fri, Sep 13, 2019 at 2:13 PM Gareth Williams wrote: > From: Phil Edworthy > > Enable runtime PM so that the clock used to access the registers in the > peripheral is turned on using a clock domain. > > Signed-off-by: Phil Edworthy > Signed-off-by: Gareth Williams Thanks for

Re: [PATCH] arm: fix page faults in do_alignment

2019-09-16 Thread Eric W. Biederman
Russell King - ARM Linux admin writes: > On Fri, Sep 06, 2019 at 04:17:59PM +0100, Russell King - ARM Linux admin > wrote: >> On Mon, Sep 02, 2019 at 12:36:56PM -0500, Eric W. Biederman wrote: >> > Russell King - ARM Linux admin writes: >> > >> > > On Fri, Aug 30, 2019 at 04:02:48PM -0500,

Re: [PATCH 4/4] dmaengine: imx-sdma: drop redundant variable

2019-09-16 Thread Lucas Stach
On Mi, 2019-09-11 at 16:49 +0200, Philipp Puschmann wrote: > In sdma_prep_dma_cyclic buf is redundant. Drop it. > > Signed-off-by: Philipp Puschmann Reviewed-by: Lucas Stach > --- > drivers/dma/imx-sdma.c | 7 ++- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git

Re: printk meeting at LPC

2019-09-16 Thread John Ogness
On 2019-09-16, Steven Rostedt wrote: 6. A new may-sleep function pr_flush() will be made available to wait for all previously printk'd messages to be output on all consoles before proceeding. For example: pr_cont("Running test ABC... "); pr_flush();

Re: [PATCH] x86/boot/64: Make level2_kernel_pgt pages invalid outside kernel area.

2019-09-16 Thread Dave Hansen
On 9/16/19 2:00 AM, Kirill A. Shutemov wrote: >>> I think we also need to make it clear that this is workaround for a broken >>> hardware: speculative execution must not trigger a halt. >> I think the word broken is a bit loaded here. According to the UEFI >> spec (version 2.8, page 167),

Re: [PATCH 3/4] serial: imx: adapt rx buffer and dma periods

2019-09-16 Thread Lucas Stach
On Mi, 2019-09-11 at 16:49 +0200, Philipp Puschmann wrote: > Using only 4 DMA periods for UART RX is very few if we have a high > frequency of small transfers - like in our case using Bluetooth with many > small packets via UART - causing many dma transfers but in each only > filling a fraction of

Re: [PATCH 2/4] dmaengine: imx-sdma: fix dma freezes

2019-09-16 Thread Lucas Stach
On Mi, 2019-09-11 at 16:49 +0200, Philipp Puschmann wrote: > For some years and since many kernel versions there are reports that the > RX UART SDMA channel stops working at some point. The workaround was to > disable DMA for RX. This commit tries to fix the problem itself. > > Due to its license

RE: [PATCH] x86_64: new and improved memset()

2019-09-16 Thread David Laight
From: Alexey Dobriyan > Sent: 14 September 2019 11:34 ... > +ENTRY(memset0_rep_stosq) > + xor eax, eax > +.globl memsetx_rep_stosq > +memsetx_rep_stosq: > + lea rsi, [rdi + rcx] > + shr rcx, 3 > + rep stosq > + cmp rdi, rsi > + je 1f > +2: > + mov

Re: [PATCH 1/4] dmaengine: imx-sdma: fix buffer ownership

2019-09-16 Thread Lucas Stach
On Mi, 2019-09-11 at 16:49 +0200, Philipp Puschmann wrote: > BD_DONE flag marks ownership of the buffer. When 1 SDMA owns the buffer, > when 0 ARM owns it. When processing the buffers in > sdma_update_channel_loop the ownership of the currently processed buffer > was set to SDMA again before

Re: [PATCH v6 0/3] genirq/vfio: Introduce irq_update_devid() and optimize VFIO irq ops

2019-09-16 Thread Thomas Gleixner
On Fri, 13 Sep 2019, Alex Williamson wrote: > On Tue, 10 Sep 2019 14:30:16 +0800 > Ben Luo wrote: > > > A friendly reminder. > > The vfio patch looks ok to me. Thomas, do you have further comments or > a preference on how to merge these? I'd tend to prefer the vfio > changes through my

Re: [PATCH v3 2/2] mm: fix double page fault on arm64 if PTE_AF is cleared

2019-09-16 Thread Kirill A. Shutemov
On Mon, Sep 16, 2019 at 09:35:21AM +, Justin He (Arm Technology China) wrote: > > Hi Kirill > > -Original Message- > > From: Kirill A. Shutemov > > Sent: 2019年9月16日 17:16 > > To: Justin He (Arm Technology China) > > Cc: Catalin Marinas ; Will Deacon > > ; Mark Rutland ; James Morse

[PATCH] connector: report comm change event when modifying /proc/pid/task/tid/comm

2019-09-16 Thread KeMeng Shi
Commit f786ecba41588 ("connector: add comm change event report to proc connector") added proc_comm_connector to report comm change event, and prctl will report comm change event when dealing with PR_SET_NAME case. prctl can only set the name of the calling thread. In order to set the name of

Re: [HELP REQUESTED from the community] Was: Staging status of speakup

2019-09-16 Thread Greg Kroah-Hartman
On Mon, Sep 16, 2019 at 03:47:28PM +0200, Samuel Thibault wrote: > Okash Khawaja, le dim. 15 sept. 2019 19:41:30 +0100, a ecrit: > > I have attached the descriptions. > > Attachment is missing :) I saw it :) Anyway, please put the Description: lines without a blank after that, with the

RE: [EXT] Re: [PATCH 0/4] Fix UART DMA freezes for iMX6

2019-09-16 Thread Andy Duan
From: Philipp Puschmann Sent: Monday, September 16, 2019 9:55 PM > Hi Fabio, > > Am 12.09.19 um 20:23 schrieb Fabio Estevam: > > Hi Philipp, > > > > Thanks for submitting these fixes. > > > > On Wed, Sep 11, 2019 at 11:50 AM Philipp Puschmann > > wrote: > >> > >> For some years and since many

Re: [PATCH 2/2] pwm: core: Add option to config PWM duty/period with u64 data length

2019-09-16 Thread kbuild test robot
-Srinagesh/pwm-Add-different-PWM-output-types-support/20190916-151008 config: arm-multi_v4t_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod

Re: linux-next: manual merge of the kselftest tree with the tpmdd tree

2019-09-16 Thread shuah
On 9/16/19 7:42 AM, Mark Brown wrote: On Mon, Sep 16, 2019 at 03:16:54PM +0200, Anders Roxell wrote: If I re-read the Documentation/dev-tools/kselftest.rst I think the patch from the kselftest tree should be dropped. I saw that I didn't send an email to the tpm maintainers or the tpm list

Re: [PATCH v5 6/9] leds: multicolor: Introduce a multicolor class definition

2019-09-16 Thread Dan Murphy
Jacek On 9/15/19 11:20 AM, Jacek Anaszewski wrote: Dan, On 9/11/19 8:01 PM, Dan Murphy wrote: Introduce a multicolor class that groups colored LEDs within a LED node. The framework allows for dynamically setting individual LEDs or setting brightness levels of LEDs and updating them virtually

Re: [PATCH 1/2] pwm: Add different PWM output types support

2019-09-16 Thread Thierry Reding
On Fri, Sep 13, 2019 at 03:57:43PM -0700, Guru Das Srinagesh wrote: > From: Fenglin Wu > > Normally, PWM channel has fixed output until software request to change > its settings. There are some PWM devices which their outputs could be > changed autonomously according to a predefined pattern

Re: [Openipmi-developer] [PATCH 0/1] Fix race in ipmi timer cleanup

2019-09-16 Thread Jes Sorensen
On 9/14/19 9:08 PM, Corey Minyard wrote: >> >>> >>> {disable,enable}_si_irq() themselves are racy: >>> >>> static inline bool disable_si_irq(struct smi_info *smi_info) >>> { >>> if ((smi_info->io.irq) && (!smi_info->interrupt_disabled)) { >>> smi_info->interrupt_disabled =

Re: [PATCH v5 9/9] leds: Update the lp55xx to use the multi color framework

2019-09-16 Thread Dan Murphy
On 9/15/19 11:28 AM, Jacek Anaszewski wrote: Hi Dan, On 9/11/19 8:01 PM, Dan Murphy wrote: Update the lp5523 to use the multi color framework. Signed-off-by: Dan Murphy --- drivers/leds/leds-lp5523.c| 13 +++ drivers/leds/leds-lp55xx-common.c | 131

Re: [PATCH] mm/slub: fix a deadlock in shuffle_freelist()

2019-09-16 Thread Qian Cai
On Mon, 2019-09-16 at 11:03 +0200, Sebastian Andrzej Siewior wrote: > On 2019-09-13 12:27:44 [-0400], Qian Cai wrote: > … > > Chain exists of: > > random_write_wait.lock --> >lock --> batched_entropy_u32.lock > > > > Possible unsafe locking scenario: > > > >CPU0

Re: [PATCH] RDMA/bnxt_re: fix spelling mistake "missin_resp" -> "missing_resp"

2019-09-16 Thread Jason Gunthorpe
On Wed, Sep 11, 2019 at 10:28:56AM +0100, Colin King wrote: > From: Colin Ian King > > There is a spelling mistake in a literal string, fix it. > > Signed-off-by: Colin Ian King > --- > drivers/infiniband/hw/bnxt_re/hw_counters.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH 2/2] pwm: core: Add option to config PWM duty/period with u64 data length

2019-09-16 Thread Thierry Reding
On Fri, Sep 13, 2019 at 03:57:44PM -0700, Guru Das Srinagesh wrote: > From: Fenglin Wu > > Currently, PWM core driver provides interfaces for configuring PWM > period and duty length in nanoseconds with an integer data type, so > the max period can be only set to ~2.147 seconds. Add interfaces

Re: [PATCH 2/2] pwm: core: Add option to config PWM duty/period with u64 data length

2019-09-16 Thread kbuild test robot
-Srinagesh/pwm-Add-different-PWM-output-types-support/20190916-151008 config: i386-randconfig-h004-201937 (attached as .config) compiler: gcc-7 (Debian 7.4.0-11) 7.4.0 reproduce: # save the attached .config to linux build tree make ARCH=i386 If you fix the issue, kindly add

Re: [PATCH 0/4] Fix UART DMA freezes for iMX6

2019-09-16 Thread Fabio Estevam
Hi Philipp, On Mon, Sep 16, 2019 at 10:55 AM Philipp Puschmann wrote: > Thanks for the hints. I will apply them if the contentual feedback is > positive. > > p.s. Did you forget to add Andy? I don't see a Andy in the to- and cc-list. Andy's e-mail is fugang.d...@nxp.com, which I added on Cc.

<    1   2   3   4   5   6   7   8   9   >