Re: [PATCH v2] Input: applespi - register touchpad device synchronously in probe

2019-07-29 Thread Life is hard, and then you die
Hi Dmitry, On Mon, Jul 29, 2019 at 03:22:03PM +0200, Dmitry Torokhov wrote: > Hi Ronald, > > On Sun, Jul 21, 2019 at 12:05:23AM -0700, Ronald Tschalär wrote: > > This allows errors during registration to properly fail the probe > > function. > > > > Doing this requires waiting for a response

Re: [RFC PATCH 00/16] KVM RISC-V Support

2019-07-29 Thread Andreas Schwab
ERROR: "riscv_cs_get_mult_shift" [arch/riscv/kvm/kvm.ko] undefined! ERROR: "riscv_isa" [arch/riscv/kvm/kvm.ko] undefined! ERROR: "smp_send_reschedule" [arch/riscv/kvm/kvm.ko] undefined! ERROR: "riscv_timebase" [arch/riscv/kvm/kvm.ko] undefined! Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.

Re: [RFC PATCH 13/16] RISC-V: KVM: Add timer functionality

2019-07-29 Thread Andreas Schwab
On Jul 29 2019, Atish Patra wrote: > Strange. We never saw this error. It is part of CONFIG_KERNEL_HEADER_TEST. Everyone developing a driver should enable it. > #include > > Can you try it at your end and confirm please ? Confirmed. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GP

Re: [PATCH v5 2/3] treewide: Remove dev_err() usage after platform_get_irq()

2019-07-29 Thread Greg Kroah-Hartman
On Mon, Jul 29, 2019 at 10:38:44PM -0700, Stephen Boyd wrote: > We don't need dev_err() messages when platform_get_irq() fails now that > platform_get_irq() prints an error message itself when something goes > wrong. Let's remove these prints with a simple semantic patch. > > // > @@ > expression

Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-29 Thread Greg KH
On Mon, Jul 29, 2019 at 07:43:09PM -0700, Tri Vo wrote: > Userspace can use wakeup_sources debugfs node to plot history of suspend > blocking wakeup sources over device's boot cycle. This information can > then be used (1) for power-specific bug reporting and (2) towards > attributing battery consu

Re: [PATCH 4/5] sched/deadline: Cleanup on_dl_rq() handling

2019-07-29 Thread Juri Lelli
On 29/07/19 18:49, Peter Zijlstra wrote: > On Fri, Jul 26, 2019 at 09:27:55AM +0100, Dietmar Eggemann wrote: > > Remove BUG_ON() in __enqueue_dl_entity() since there is already one in > > enqueue_dl_entity(). > > > > Move the check that the dl_se is not on the dl_rq from > > __dequeue_dl_entity()

Re: [RFC] net: phy: read link status twice when phy_check_link_status()

2019-07-29 Thread liuyonglong
On 2019/7/30 14:35, liuyonglong wrote: > :/sys/kernel/debug/tracing$ cat trace > # tracer: nop > # > # entries-in-buffer/entries-written: 45/45 #P:128 > # > # _-=> irqs-off > # / _=> need-resched > #|

Re: [PATCH 01/12] rdmacg: Replace strncmp with str_has_prefix

2019-07-29 Thread Chuhong Yuan
Kees Cook 于2019年7月30日周二 下午12:26写道: > > On Mon, Jul 29, 2019 at 11:13:46PM +0800, Chuhong Yuan wrote: > > strncmp(str, const, len) is error-prone. > > We had better use newly introduced > > str_has_prefix() instead of it. > > Wait, stop. :) After Laura called my attention to your conversion series,

Re: [RFC] net: phy: read link status twice when phy_check_link_status()

2019-07-29 Thread liuyonglong
:/sys/kernel/debug/tracing$ cat trace # tracer: nop # # entries-in-buffer/entries-written: 45/45 #P:128 # # _-=> irqs-off # / _=> need-resched #| / _---=> hardirq/softirq #|| /

Re: [PATCH v2 00/12] tracing/probe: Add multi-probes per event support

2019-07-29 Thread Masami Hiramatsu
Hi Steve, Have you already picked this series? If not yet, should I update and resend this series? Thank you, On Thu, 4 Jul 2019 07:28:33 -0400 Steven Rostedt wrote: > On Thu, 4 Jul 2019 15:39:58 +0900 > Masami Hiramatsu wrote: > > > Hi Steve, > > > > Would you have any comment on this? > >

[PATCH v3 2/2] mmc: Add support for the ASPEED SD controller

2019-07-29 Thread Andrew Jeffery
Add a minimal driver for ASPEED's SD controller, which exposes two SDHCIs. The ASPEED design implements a common register set for the SDHCIs, and moves some of the standard configuration elements out to this common area (e.g. 8-bit mode, and card detect configuration which is not currently support

[PATCH v3 0/2] mmc: Add support for the ASPEED SD controller

2019-07-29 Thread Andrew Jeffery
Hello, v3 of the ASPEED SDHCI driver makes a bunch of fixes to the driver and the devicetree binding, including the addition of the AST2600 compatible string. v2 can be found here: https://lists.ozlabs.org/pipermail/linux-aspeed/2019-July/002013.html Please review! Andrew Andrew Jeffery (2):

[PATCH v3 1/2] dt-bindings: mmc: Document Aspeed SD controller

2019-07-29 Thread Andrew Jeffery
The ASPEED SD/SDIO/eMMC controller exposes two slots implementing the SDIO Host Specification v2.00, with 1 or 4 bit data buses, or an 8 bit data bus if only a single slot is enabled. Signed-off-by: Andrew Jeffery --- v3: * Fix compatible enums * Add AST2600 compatibles * Describe #address-cells

[PATCH] x86/mce: Remove redundant irq work

2019-07-29 Thread Santosh Sivaraj
IRQ work currently only does a schedule work to process the mce events. Since irq work does no other function, remove it. Signed-off-by: Santosh Sivaraj --- arch/x86/kernel/cpu/mce/core.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/arch/x86/kernel/cpu/mce/cor

Re: [PATCH RESEND 0/8] Fix mmap base in bottom-up mmap

2019-07-29 Thread Alexandre Ghiti
On 6/20/19 7:03 AM, Alexandre Ghiti wrote: This series fixes the fallback of the top-down mmap: in case of failure, a bottom-up scheme can be tried as a last resort between the top-down mmap base and the stack, hoping for a large unused stack limit. Lots of architectures and even mm code start t

Re: [RFC] net: phy: read link status twice when phy_check_link_status()

2019-07-29 Thread Heiner Kallweit
On 30.07.2019 06:03, liuyonglong wrote: > > > On 2019/7/30 4:57, Heiner Kallweit wrote: >> On 29.07.2019 05:59, liuyonglong wrote: >>> >>> >>> On 2019/7/27 2:14, Heiner Kallweit wrote: On 26.07.2019 11:53, Yonglong Liu wrote: > According to the datasheet of Marvell phy and Realtek phy, t

[PATCH V2] scsi: ufs: revamp string descriptor reading

2019-07-29 Thread Tomas Winkler
Define new a type: uc_string_id for easier string handling and less casting. Reduce number or string copies in price of a dynamic allocation. Signed-off-by: Tomas Winkler Tested-by: Avri Altman --- V2: a. Use u8 instead of char as result string is utf8 b. In ufshcd_read_desc_param() keep b

[PATCH v5 14/14] riscv: Make mmap allocation top-down by default

2019-07-29 Thread Alexandre Ghiti
In order to avoid wasting user address space by using bottom-up mmap allocation scheme, prefer top-down scheme when possible. Before: root@qemuriscv64:~# cat /proc/self/maps 0001-00016000 r-xp fe:00 6389 /bin/cat.coreutils 00016000-00017000 r--p 5000 fe:00 6389 /bin/ca

[PATCH v5 13/14] mips: Use generic mmap top-down layout and brk randomization

2019-07-29 Thread Alexandre Ghiti
mips uses a top-down layout by default that exactly fits the generic functions, so get rid of arch specific code and use the generic version by selecting ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT. As ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT selects ARCH_HAS_ELF_RANDOMIZE, use the generic version of arch_r

[PATCH v5 12/14] mips: Replace arch specific way to determine 32bit task with generic version

2019-07-29 Thread Alexandre Ghiti
Mips uses TASK_IS_32BIT_ADDR to determine if a task is 32bit, but this define is mips specific and other arches do not have it: instead, use !IS_ENABLED(CONFIG_64BIT) || is_compat_task() condition. Signed-off-by: Alexandre Ghiti Acked-by: Paul Burton Reviewed-by: Kees Cook Reviewed-by: Luis Cha

Re: [Xen-devel] [PATCH v4 8/9] xen/gntdev.c: Convert to use vm_map_pages()

2019-07-29 Thread Souptick Joarder
On Mon, Jul 29, 2019 at 7:06 PM Marek Marczykowski-Górecki wrote: > > On Mon, Jul 29, 2019 at 02:02:54PM +0530, Souptick Joarder wrote: > > On Mon, Jul 29, 2019 at 1:35 PM Souptick Joarder > > wrote: > > > > > > On Sun, Jul 28, 2019 at 11:36 PM Marek Marczykowski-Górecki > > > wrote: > > > > >

[PATCH v5 11/14] mips: Adjust brk randomization offset to fit generic version

2019-07-29 Thread Alexandre Ghiti
This commit simply bumps up to 32MB and 1GB the random offset of brk, compared to 8MB and 256MB, for 32bit and 64bit respectively. Suggested-by: Kees Cook Signed-off-by: Alexandre Ghiti Acked-by: Paul Burton Reviewed-by: Kees Cook Reviewed-by: Luis Chamberlain --- arch/mips/mm/mmap.c | 7 +++

[PATCH v5 10/14] mips: Use STACK_TOP when computing mmap base address

2019-07-29 Thread Alexandre Ghiti
mmap base address must be computed wrt stack top address, using TASK_SIZE is wrong since STACK_TOP and TASK_SIZE are not equivalent. Signed-off-by: Alexandre Ghiti Acked-by: Kees Cook Acked-by: Paul Burton Reviewed-by: Luis Chamberlain --- arch/mips/mm/mmap.c | 4 ++-- 1 file changed, 2 inser

[PATCH v5 09/14] mips: Properly account for stack randomization and stack guard gap

2019-07-29 Thread Alexandre Ghiti
This commit takes care of stack randomization and stack guard gap when computing mmap base address and checks if the task asked for randomization. This fixes the problem uncovered and not fixed for arm here: https://lkml.kernel.org/r/20170622200033.25714-1-r...@redhat.com Signed-off-by: Alexandre

Re: [PATCH net-next 1/2] net: phy: broadcom: set features explicitly for BCM54616S

2019-07-29 Thread Heiner Kallweit
On 30.07.2019 07:05, Tao Ren wrote: > On 7/29/19 8:35 PM, Andrew Lunn wrote: >> On Mon, Jul 29, 2019 at 05:25:32PM -0700, Tao Ren wrote: >>> BCM54616S feature "PHY_GBIT_FEATURES" was removed by commit dcdecdcfe1fc >>> ("net: phy: switch drivers to use dynamic feature detection"). As dynamic >>> fea

[PATCH v5 08/14] arm: Use generic mmap top-down layout and brk randomization

2019-07-29 Thread Alexandre Ghiti
arm uses a top-down mmap layout by default that exactly fits the generic functions, so get rid of arch specific code and use the generic version by selecting ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT. As ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT selects ARCH_HAS_ELF_RANDOMIZE, use the generic version of ar

[PATCH] ARM: dts: aspeed: Add Mihawk BMC platform

2019-07-29 Thread Ben Pai
The Mihawk BMC is an ASPEED ast2500 based BMC that is part of an OpenPower Power9 server. This adds the device tree description for most upstream components. It is a squashed commit from the OpenBMC kernel tree. Signed-off-by: Ben Pai --- arch/arm/boot/dts/Makefile | 1 + arc

[PATCH v5 07/14] arm: Use STACK_TOP when computing mmap base address

2019-07-29 Thread Alexandre Ghiti
mmap base address must be computed wrt stack top address, using TASK_SIZE is wrong since STACK_TOP and TASK_SIZE are not equivalent. Signed-off-by: Alexandre Ghiti Acked-by: Kees Cook Reviewed-by: Luis Chamberlain --- arch/arm/mm/mmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH v5 06/14] arm: Properly account for stack randomization and stack guard gap

2019-07-29 Thread Alexandre Ghiti
This commit takes care of stack randomization and stack guard gap when computing mmap base address and checks if the task asked for randomization. This fixes the problem uncovered and not fixed for arm here: https://lkml.kernel.org/r/20170622200033.25714-1-r...@redhat.com Signed-off-by: Alexandre

[PATCH v5 05/14] arm64, mm: Make randomization selected by generic topdown mmap layout

2019-07-29 Thread Alexandre Ghiti
This commits selects ARCH_HAS_ELF_RANDOMIZE when an arch uses the generic topdown mmap layout functions so that this security feature is on by default. Note that this commit also removes the possibility for arm64 to have elf randomization and no MMU: without MMU, the security added by randomization

[PATCH v5 04/14] arm64, mm: Move generic mmap layout functions to mm

2019-07-29 Thread Alexandre Ghiti
arm64 handles top-down mmap layout in a way that can be easily reused by other architectures, so make it available in mm. It then introduces a new config ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT that can be set by other architectures to benefit from those functions. Note that this new config depends o

[PATCH v5 03/14] arm64: Consider stack randomization for mmap base only when necessary

2019-07-29 Thread Alexandre Ghiti
Do not offset mmap base address because of stack randomization if current task does not want randomization. Note that x86 already implements this behaviour. Signed-off-by: Alexandre Ghiti Acked-by: Catalin Marinas Acked-by: Kees Cook Reviewed-by: Christoph Hellwig Reviewed-by: Luis Chamberlain

[PATCH v5 01/14] mm, fs: Move randomize_stack_top from fs to mm

2019-07-29 Thread Alexandre Ghiti
This preparatory commit moves this function so that further introduction of generic topdown mmap layout is contained only in mm/util.c. Signed-off-by: Alexandre Ghiti Acked-by: Kees Cook Reviewed-by: Christoph Hellwig Reviewed-by: Luis Chamberlain --- fs/binfmt_elf.c| 20 -

Re: [PATCH 00/10] make "order" unsigned int

2019-07-29 Thread Pengfei Li
On Mon, Jul 29, 2019 at 4:34 PM Mel Gorman wrote: > > On Sun, Jul 28, 2019 at 12:44:36AM +0800, Pengfei Li wrote: > > On Fri, Jul 26, 2019 at 3:26 PM Mel Gorman > > wrote: > > > > > > > Thank you for your comments. > > > > > On Fri, Jul 26, 2019 at 02:42:43AM +0800, Pengfei Li wrote: > > > > Obj

[PATCH v5 02/14] arm64: Make use of is_compat_task instead of hardcoding this test

2019-07-29 Thread Alexandre Ghiti
Each architecture has its own way to determine if a task is a compat task, by using is_compat_task in arch_mmap_rnd, it allows more genericity and then it prepares its moving to mm/. Signed-off-by: Alexandre Ghiti Acked-by: Catalin Marinas Acked-by: Kees Cook Reviewed-by: Christoph Hellwig Rev

[PATCH 13/13] mm: allow HMM_MIRROR on all architectures with MMU

2019-07-29 Thread Christoph Hellwig
There isn't really any architecture specific code in this page table walk implementation, so drop the dependencies. Signed-off-by: Christoph Hellwig --- mm/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/Kconfig b/mm/Kconfig index 56cec636a1fc..b18782be969c 10064

Re: [PATCH v4 0/3] Introduce Bandwidth OPPs for interconnects

2019-07-29 Thread Saravana Kannan
On Mon, Jul 29, 2019 at 10:28 PM Sibi Sankar wrote: > > Hey Viresh, > > On 7/30/19 8:16 AM, Viresh Kumar wrote: > > On 29-07-19, 13:16, Saravana Kannan wrote: > >> Sibi might be working on doing that for the SDM845 CPUfreq driver. > >> Georgi could also change his GPU driver use case to use this B

[PATCH v5 00/14] Provide generic top-down mmap layout functions

2019-07-29 Thread Alexandre Ghiti
This series introduces generic functions to make top-down mmap layout easily accessible to architectures, in particular riscv which was the initial goal of this series. The generic implementation was taken from arm64 and used successively by arm, mips and finally riscv. Note that in addition the s

Re: [PATCH 1/1] power: supply: sbs-battery: Add ability to force load a battery via the devicetree

2019-07-29 Thread Richard Tresidder
Hi Guenter   See below Richard Tresidder Cheers   Richard Tresidder ** On 30/07/2019 12:09 pm, Guenter Roeck wrote: On Mon, Jul 29, 2019 at 8:02 PM Richard Tresidder wrote: Hi Nick and Guenter Just adding you to this one also seeing as you're looking at that other sbs_battery patch for me. N

Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-29 Thread Rafael J. Wysocki
On Tue, Jul 30, 2019 at 4:45 AM Tri Vo wrote: > > Userspace can use wakeup_sources debugfs node to plot history of suspend > blocking wakeup sources over device's boot cycle. This information can > then be used (1) for power-specific bug reporting and (2) towards > attributing battery consumption

[PATCH v2 2/5] pinctrl: uniphier: Add another audio I/O pin-mux settings for LD20

2019-07-29 Thread Kunihiko Hayashi
This adds support for pinmux settings of aout1b group. This group includes audio I/O signals derived from xirq pins, and it is equivalent to "aout1" in functionality. Signed-off-by: Kunihiko Hayashi --- drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c | 5 - 1 file changed, 4 insertions(+),

[PATCH v2] gpio: remove less important #ifdef around declarations

2019-07-29 Thread Masahiro Yamada
The whole struct/function declarations in this header are surrounded by #ifdef. As far as I understood, the motivation of this is probably to break the build earlier if a driver misses to select or depend on correct CONFIG options in Kconfig. Since commit 94bed2a9c4ae ("Add -Werror-implicit-funct

[PATCH v2 4/5] pinctrl: uniphier: Add Pro5 PCIe pin-mux settings

2019-07-29 Thread Kunihiko Hayashi
Pro5 PCIe interface uses the following pins: XPERST, XPEWAKE, XPECLKRQ Signed-off-by: Kunihiko Hayashi --- drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c b/drivers/pinctrl/uniphier/pi

[PATCH v2 1/5] pinctrl: uniphier: Separate modem group from UART ctsrts group

2019-07-29 Thread Kunihiko Hayashi
It depends on the board implementation whether to have each pins of CTS/RTS, and others for modem. So it is necessary to divide current uart_ctsrts group into uart_ctsrts and uart_modem groups. Since the number of implemented pins for modem differs depending on SoC, each uart_modem group also has

[PATCH v2 0/5] pinctrl: uniphier: Add some improvements and new settings

2019-07-29 Thread Kunihiko Hayashi
This series adds some improvements and new settings for pin-mux. Changes since v1: - sort arrays in alphabetical order - sort pin numbers in ascending order - merge "aout1b" pin-mux to aout1_group - change "4th" in the subject to "5th" - add Acked-by: lines Kunihiko Hayashi (5): pinctrl: uniphi

[PATCH v2 3/5] pinctrl: uniphier: Add 5th LD20 MPEG2-TS input pin-mux setting

2019-07-29 Thread Kunihiko Hayashi
The 5th serial TS interface uses the following pins: hscin4_s: PCA[11-14] Signed-off-by: Kunihiko Hayashi Acked-by: Masahiro Yamada --- drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c b

[PATCH v2 5/5] pinctrl: uniphier: Fix Pro5 SD pin-mux setting

2019-07-29 Thread Kunihiko Hayashi
SD uses the following pins starting from 247: SDCD, SDWP, SDVOLC, SDCLK, SDCMD, SDDAT{0,1,2,3} Signed-off-by: Kunihiko Hayashi Acked-by: Masahiro Yamada --- drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/u

[PATCH v5 1/3] driver core: platform: Add an error message to platform_get_irq*()

2019-07-29 Thread Stephen Boyd
A grep of the kernel shows that many drivers print an error message if they fail to get the irq they're looking for. Furthermore, those drivers all decide to print the device name, or not, and the irq they were requesting, or not, etc. Let's consolidate all these error messages into the API itself,

[PATCH v3] mailbox: imx: add support for imx v1 mu

2019-07-29 Thread Richard Zhu
There is a version1.0 MU on i.MX7ULP platform. One new version ID register is added, and it's offset is 0. TRn registers are defined at the offset 0x20 ~ 0x2C. RRn registers are defined at the offset 0x40 ~ 0x4C. SR/CR registers are defined at 0x60/0x64. Extend this driver to support it. Signed-of

[PATCH v3] mailbox: imx: add support for imx v1 mu

2019-07-29 Thread Richard Zhu
Change logs: v2 --> v3: - Format the patch-set refer to Oleksij's guidance. - Init the register array by a simple way recommended by Oleksij. - Add Reviewed-by: Oleksij Rempel tag. v1 --> v2: - Use to have the register layout linked on probe, suggested by Oleksij Rempel . - Add Revie

Re: [PATCH] powerpc: workaround clang codegen bug in dcbz

2019-07-29 Thread Christophe Leroy
Le 29/07/2019 à 22:32, Nathan Chancellor a écrit : On Mon, Jul 29, 2019 at 01:25:41PM -0700, Nick Desaulniers wrote: Commit 6c5875843b87 ("powerpc: slightly improve cache helpers") exposed what looks like a codegen bug in Clang's handling of `%y` output template with `Z` constraint. This is r

Re: [PATCH v4 0/3] Introduce Bandwidth OPPs for interconnects

2019-07-29 Thread Sibi Sankar
Hey Viresh, On 7/30/19 8:16 AM, Viresh Kumar wrote: On 29-07-19, 13:16, Saravana Kannan wrote: Sibi might be working on doing that for the SDM845 CPUfreq driver. Georgi could also change his GPU driver use case to use this BW OPP table and required-opps. The problem is that people don't want t

Re: [RFC PATCH 00/16] KVM RISC-V Support

2019-07-29 Thread Anup Patel
On Tue, Jul 30, 2019 at 3:17 AM Paolo Bonzini wrote: > > On 29/07/19 13:56, Anup Patel wrote: > > This series adds initial KVM RISC-V support. Currently, we are able to boot > > RISC-V 64bit Linux Guests with multiple VCPUs. > > > > Few key aspects of KVM RISC-V added by this series are: > > 1. Mi

[PATCH v10 2/4] uprobe: use original page when all uprobes are removed

2019-07-29 Thread Song Liu
Currently, uprobe swaps the target page with a anonymous page in both install_breakpoint() and remove_breakpoint(). When all uprobes on a page are removed, the given mm is still using an anonymous page (not the original page). This patch allows uprobe to use original page when possible (all uprobe

[PATCH v10 1/4] mm: move memcmp_pages() and pages_identical()

2019-07-29 Thread Song Liu
This patch moves memcmp_pages() to mm/util.c and pages_identical() to mm.h, so that we can use them in other files. Acked-by: Kirill A. Shutemov Signed-off-by: Song Liu --- include/linux/mm.h | 7 +++ mm/ksm.c | 18 -- mm/util.c | 13 + 3 file

[PATCH v10 3/4] mm, thp: introduce FOLL_SPLIT_PMD

2019-07-29 Thread Song Liu
This patches introduces a new foll_flag: FOLL_SPLIT_PMD. As the name says FOLL_SPLIT_PMD splits huge pmd for given mm_struct, the underlining huge page stays as-is. FOLL_SPLIT_PMD is useful for cases where we need to use regular pages, but would switch back to huge page and huge pmd on. One of suc

[PATCH v10 4/4] uprobe: use FOLL_SPLIT_PMD instead of FOLL_SPLIT

2019-07-29 Thread Song Liu
This patch uses newly added FOLL_SPLIT_PMD in uprobe. This preserves the huge page when the uprobe is enabled. When the uprobe is disabled, newer instances of the same application could still benefit from huge page. For the next step, we will enable khugepaged to regroup the pmd, so that existing

[PATCH v10 0/4] THP aware uprobe

2019-07-29 Thread Song Liu
This set makes uprobe aware of THPs. Currently, when uprobe is attached to text on THP, the page is split by FOLL_SPLIT. As a result, uprobe eliminates the performance benefit of THP. This set makes uprobe THP-aware. Instead of FOLL_SPLIT, we introduces FOLL_SPLIT_PMD, which only split PMD for up

[PATCH v2] psi: get poll_work to run when calling poll syscall next time

2019-07-29 Thread Jason Xing
Only when calling the poll syscall the first time can user receive POLLPRI correctly. After that, user always fails to acquire the event signal. Reproduce case: 1. Get the monitor code in Documentation/accounting/psi.txt 2. Run it, and wait for the event triggered. 3. Kill and restart the process.

linux-next: Tree for Jul 30

2019-07-29 Thread Stephen Rothwell
Hi all, Changes since 20190729: New tree: fsverity The keys tree gained a semantic conflict against the fsverity tree for which I applied a merge fix patch. Non-merge commits (relative to Linus' tree): 2756 3095 files changed, 191869 insertions(+), 78406 dele

Re: [PATCH net-next 1/2] net: phy: broadcom: set features explicitly for BCM54616S

2019-07-29 Thread Tao Ren
On 7/29/19 8:35 PM, Andrew Lunn wrote: > On Mon, Jul 29, 2019 at 05:25:32PM -0700, Tao Ren wrote: >> BCM54616S feature "PHY_GBIT_FEATURES" was removed by commit dcdecdcfe1fc >> ("net: phy: switch drivers to use dynamic feature detection"). As dynamic >> feature detection doesn't work when BCM54616S

CVE-2019-13648: Linux kernel: powerpc: kernel crash in TM handling triggerable by any local user

2019-07-29 Thread Michael Neuling
The Linux kernel for powerpc since v3.9 has a bug in the TM handling where any unprivileged local user may crash the operating system. This bug affects machines using 64-bit CPUs where Transactional Memory (TM) is not present or has been disabled (see below for more details on affected CPUs). To

[PATCH v6 2/8] PCI: Add dev_is_untrusted helper

2019-07-29 Thread Lu Baolu
There are several places in the kernel where it is necessary to check whether a device is a pci untrusted device. Add a helper to simplify the callers. Signed-off-by: Lu Baolu Reviewed-by: Christoph Hellwig --- include/linux/pci.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/li

Re: [PATCH net-next 2/2] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-07-29 Thread Tao Ren
On 7/29/19 6:32 PM, Vladimir Oltean wrote: > Hi Tao, > > On Tue, 30 Jul 2019 at 03:31, Tao Ren wrote: >> >> Configure the BCM54616S for 1000Base-X mode when "brcm-phy-mode-1000bx" >> is set in device tree. This is needed when the PHY is used for fiber and >> backplane connections. >> >> The patch

[PATCH v6 3/8] swiotlb: Split size parameter to map/unmap APIs

2019-07-29 Thread Lu Baolu
This splits the size parameter to swiotlb_tbl_map_single() and swiotlb_tbl_unmap_single() into an alloc_size and a mapping_size parameter, where the latter one is rounded up to the iommu page size. Suggested-by: Christoph Hellwig Signed-off-by: Lu Baolu Reviewed-by: Christoph Hellwig --- drive

Re: [PATCH 0/4] new driver for TI eQEP

2019-07-29 Thread William Breathitt Gray
On Thu, Jul 25, 2019 at 05:52:21PM -0500, David Lechner wrote: > On 7/25/19 7:40 AM, William Breathitt Gray wrote: > > On Mon, Jul 22, 2019 at 10:45:34AM -0500, David Lechner wrote: > >> This series adds device tree bindings and a new counter driver for the > >> Texas > >> Instruments Enhanced Qua

Re: [PATCH] drivers/macintosh/smu.c: Mark expected switch fall-through

2019-07-29 Thread Stephen Rothwell
Hi all, On Tue, 30 Jul 2019 14:37:04 +1000 Stephen Rothwell wrote: > > Mark switch cases where we are expecting to fall through. > > This patch fixes the following warning (Building: powerpc): > > drivers/macintosh/smu.c: In function 'smu_queue_i2c': > drivers/macintosh/smu.c:854:21: warning:

[RFC PATCH] ARM: zynq: Use memcpy_toio instead of memcpy on smp bring-up

2019-07-29 Thread Luis Araneda
This fixes a kernel panic (read overflow) on memcpy when FORTIFY_SOURCE is enabled. The computed size of memcpy args are: - p_size (dst): 4294967295 = (size_t) -1 - q_size (src): 1 - size (len): 8 Additionally, the memory is marked as __iomem, so one of the memcpy_* functions should be used for r

[PATCH] drivers/macintosh/smu.c: Mark expected switch fall-through

2019-07-29 Thread Stephen Rothwell
Mark switch cases where we are expecting to fall through. This patch fixes the following warning (Building: powerpc): drivers/macintosh/smu.c: In function 'smu_queue_i2c': drivers/macintosh/smu.c:854:21: warning: this statement may fall through [-Wimplicit-fallthrough=] cmd->info.devaddr &= 0

Re: [PATCH 19/20] pstore: fs superblock limits

2019-07-29 Thread Kees Cook
On Mon, Jul 29, 2019 at 06:49:23PM -0700, Deepa Dinamani wrote: > Also update the gran since pstore has microsecond granularity. So, I'm fine with this, but technically the granularity depends on the backend storage... many have no actual time keeping, though. My point is, pstore's timestamps are

Re: [PATCH v2] libata: zpodd: Fix small read overflow in zpodd_get_mech_type()

2019-07-29 Thread Kees Cook
On Mon, Jul 29, 2019 at 04:00:08PM -0600, Jens Axboe wrote: > On 7/29/19 3:58 PM, Nick Desaulniers wrote: > > On Mon, Jul 29, 2019 at 2:55 PM Jens Axboe wrote: > >> > >> On 7/29/19 3:47 PM, Kees Cook wrote: > >>> Jeffrin reported a KASAN issue: > >>> > >>> BUG: KASAN: global-out-of-bounds in a

Re: [PATCH] Revision of pc87413_wdt driver to use watchdog subsystem

2019-07-29 Thread Guenter Roeck
On 7/29/19 8:50 PM, Mark Balantzyan wrote: This patch rewrites the pc87413_wdt driver to use the watchdog subsystem. In doing so, it also addresses a potential race condition owing from the swc_base_addr variable being used before being set. Signed-off-by: Mark Balantzyan "Revision of ..." i

Re: [PATCH 01/12] rdmacg: Replace strncmp with str_has_prefix

2019-07-29 Thread Kees Cook
On Mon, Jul 29, 2019 at 11:13:46PM +0800, Chuhong Yuan wrote: > strncmp(str, const, len) is error-prone. > We had better use newly introduced > str_has_prefix() instead of it. Wait, stop. :) After Laura called my attention to your conversion series, mpe pointed out that str_has_prefix() is almost

Re: [PATCH] tracing: Prevent RCU EQS breakage in preemptirq events

2019-07-29 Thread Joel Fernandes
On Mon, Jul 29, 2019 at 10:15 PM Steven Rostedt wrote: [snip] > > If the problem was only with userstacktrace, it will be reasonable to > > surround only the userstack unwinder. But the situation is similar to > > the previous "tracing vs CR2" case. As Peter taught me in > > https://lore.kernel.or

REPLY URGENT PLS.

2019-07-29 Thread Dr.James Kabore
Dear friend, Greetings to you, I got your contact through International business directory, my names are Hon.Dr. James Kabore from Burkina Faso, West Africa. I am a politician with government position. am pleased to contact you for your assistance to help me invest in real estate or any provitable

Re: [PATCH 0/3] Add IMX290 CMOS image sensor support

2019-07-29 Thread Manivannan Sadhasivam
On Thu, Jul 04, 2019 at 12:32:27AM +0530, Manivannan Sadhasivam wrote: > Hello, > > This patchset adds support for IMX290 CMOS image sensor from Sony. > Sensor can be programmed through I2C and 4-wire interface but the > current driver only supports I2C interface. Also, the sensor is > capable of

Re: [PATCH 1/1] power: supply: sbs-battery: Add ability to force load a battery via the devicetree

2019-07-29 Thread Guenter Roeck
On Mon, Jul 29, 2019 at 8:02 PM Richard Tresidder wrote: > > Hi Nick and Guenter > Just adding you to this one also seeing as you're looking at that other > sbs_battery patch for me. > Not sure why the get maintainers didn't list you for this one. > > Cheers > Richard Tresidder > > Add the abi

Re: [RFC] net: phy: read link status twice when phy_check_link_status()

2019-07-29 Thread liuyonglong
On 2019/7/30 4:57, Heiner Kallweit wrote: > On 29.07.2019 05:59, liuyonglong wrote: >> >> >> On 2019/7/27 2:14, Heiner Kallweit wrote: >>> On 26.07.2019 11:53, Yonglong Liu wrote: According to the datasheet of Marvell phy and Realtek phy, the copper link status should read twice, or it

Re: [PATCH V14 13/13] PCI: tegra: Add Tegra194 PCIe support

2019-07-29 Thread Vidya Sagar
On 7/24/2019 11:18 PM, Vidya Sagar wrote: Bjorn / Lorenzo, Can you please review this change? Thanks, Vidya Sagar Add support for Synopsys DesignWare core IP based PCIe host controller present in Tegra194 SoC. Signed-off-by: Vidya Sagar Acked-by: Thierry Reding --- V14: * Addressed Lorenzo'

Re: [PATCH V2 4/4] thermal: qoriq: Add clock operations

2019-07-29 Thread Fabio Estevam
Hi Anson, On Tue, Jul 30, 2019 at 12:00 AM Anson Huang wrote: > Shawn already applied the patch, and Abel has the AHB clock patch to fix that, > so just wait for the AHB clock patch in instead of revert the TMU clock patch? Sorry, I don't understand Abel's patch as there is not a proper descrip

Re: linux-next: build warnings after merge of the keys tree

2019-07-29 Thread Stephen Rothwell
Hi Eric, On Mon, 29 Jul 2019 20:47:04 -0700 Eric Biggers wrote: > > On Tue, Jul 30, 2019 at 12:30:42PM +1000, Stephen Rothwell wrote: > > +static struct key_acl fsverity_acl = { > > + .usage = REFCOUNT_INIT(1), > > + .possessor_viewable = true, > > I don't think .possessor_viewable should

[PATCH] Revision of pc87413_wdt driver to use watchdog subsystem

2019-07-29 Thread Mark Balantzyan
This patch rewrites the pc87413_wdt driver to use the watchdog subsystem. In doing so, it also addresses a potential race condition owing from the swc_base_addr variable being used before being set. Signed-off-by: Mark Balantzyan --- drivers/watchdog/Kconfig | 1 + drivers/watchdog/pc87

Re: [PATCH 1/2] KEYS: Replace uid/gid/perm permissions checking with an ACL

2019-07-29 Thread Eric Biggers
is > > $ keyctl show > Session Keyring > 605894913 --alswrv 0 0 keyring: _ses > 189223103 s-rv 0 0 \_ user: invocation_id > > - Eric This bug is still present in next-20190729. - Eric

Re: linux-next: build warnings after merge of the keys tree

2019-07-29 Thread Eric Biggers
On Tue, Jul 30, 2019 at 12:30:42PM +1000, Stephen Rothwell wrote: > Subject: [PATCH] fsverity: merge fix for keyring_alloc API change > > Signed-off-by: Stephen Rothwell > --- > fs/verity/signature.c | 17 ++--- > 1 file changed, 14 insertions(+), 3 deletions(-) > > diff --git a/fs/

Re: [PATCH 3/4] RISC-V: Support case insensitive ISA string parsing.

2019-07-29 Thread Palmer Dabbelt
On Fri, 26 Jul 2019 15:20:47 PDT (-0700), Atish Patra wrote: On 7/26/19 1:47 PM, Paul Walmsley wrote: On Fri, 26 Jul 2019, Atish Patra wrote: As per riscv specification, ISA naming strings are case insensitive. However, currently only lower case strings are parsed during cpu procfs. Support p

Re: [PATCH] net: phy: phy_led_triggers: Fix a possible null-pointer dereference in phy_led_trigger_change_speed()

2019-07-29 Thread David Miller
From: Andrew Lunn Date: Tue, 30 Jul 2019 05:32:29 +0200 > On Tue, Jul 30, 2019 at 10:25:36AM +0800, Jia-Ju Bai wrote: >> >> >> On 2019/7/29 21:45, Andrew Lunn wrote: >> >On Mon, Jul 29, 2019 at 05:24:24PM +0800, Jia-Ju Bai wrote: >> >>In phy_led_trigger_change_speed(), there is an if statement

Re: [PATCH net-next 1/2] net: phy: broadcom: set features explicitly for BCM54616S

2019-07-29 Thread Andrew Lunn
On Mon, Jul 29, 2019 at 05:25:32PM -0700, Tao Ren wrote: > BCM54616S feature "PHY_GBIT_FEATURES" was removed by commit dcdecdcfe1fc > ("net: phy: switch drivers to use dynamic feature detection"). As dynamic > feature detection doesn't work when BCM54616S is working in RGMII-Fiber > mode (different

Re: [PATCH 5.2 000/215] 5.2.5-stable review

2019-07-29 Thread kernelci.org bot
stable-rc/linux-5.2.y boot: 122 boots: 0 failed, 75 passed with 45 offline, 2 untried/unknown (v5.2.4-216-g0c4d120e771a) Full Boot Summary: https://kernelci.org/boot/all/job/stable-rc/branch/linux-5.2.y/kernel/v5.2.4-216-g0c4d120e771a/ Full Build Summary: https://kernelci.org/build/stable-rc/br

Re: [PATCH 4.14 000/293] 4.14.135-stable review

2019-07-29 Thread kernelci.org bot
stable-rc/linux-4.14.y boot: 106 boots: 1 failed, 64 passed with 41 offline (v4.14.134-294-gf6ba73a2e356) Full Boot Summary: https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.14.y/kernel/v4.14.134-294-gf6ba73a2e356/ Full Build Summary: https://kernelci.org/build/stable-rc/branch/linux-

Re: [PATCH] net: phy: phy_led_triggers: Fix a possible null-pointer dereference in phy_led_trigger_change_speed()

2019-07-29 Thread Andrew Lunn
On Tue, Jul 30, 2019 at 10:25:36AM +0800, Jia-Ju Bai wrote: > > > On 2019/7/29 21:45, Andrew Lunn wrote: > >On Mon, Jul 29, 2019 at 05:24:24PM +0800, Jia-Ju Bai wrote: > >>In phy_led_trigger_change_speed(), there is an if statement on line 48 > >>to check whether phy->last_triggered is NULL: > >>

RE: [PATCH] rtw88: pci: Use general byte arrays as the elements of RX ring

2019-07-29 Thread Tony Chuang
> > > > While allocating all 512 buffers in one block (just over 4MB) > > > > is probably not a good idea, you may need to allocated (and dma map) > > > > then in groups. > > > > > > Thanks for reviewing. But got questions here to double confirm the > idea. > > > According to original code, it all

Re: [RFC PATCH 08/21] KVM: x86: Add kvm_x86_ops hook to short circuit emulation

2019-07-29 Thread Sean Christopherson
On Fri, Jul 26, 2019 at 10:52:01PM -0700, Sean Christopherson wrote: > diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c > index 48c865a4e5dd..0fb8b60eb136 100644 > --- a/arch/x86/kvm/svm.c > +++ b/arch/x86/kvm/svm.c > @@ -7115,10 +7115,25 @@ static int nested_enable_evmcs(struct kvm_vcpu *vcpu,

[PATCH 006/107] perf trace: Order -e syscalls table

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The ev_qualifier is an array with the syscall ids passed via -e on the command line, sort it as we'll search it when setting up the BPF_MAP_TYPE_PROG_ARRAY. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Luis Cláudio Gonçalves Cc: Namhyung Kim Link: https://lkml.kernel.or

[PATCH 013/107] perf augmented_raw_syscalls: Support copying two string syscall args

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Starting with the renameat and renameat2 syscall, that both receive as second and fourth parameters a pathname: # perf trace -e rename* mv one ANOTHER LLVM: dumping /home/acme/git/perf/tools/perf/examples/bpf/augmented_raw_syscalls.o mv: cannot stat 'one': N

[PATCH 017/107] perf trace beauty: Make connect's addrlen be printed as an int, not hex

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo # perf trace -e connec* ssh www.bla.com connect(3, { .family: PF_LOCAL, path: /var/run/nscd/socket }, 110) = -1 ENOENT (No such file or directory) connect(3, { .family: PF_LOCAL, path: /var/run/nscd/socket }, 110) = -1 ENOENT (No such file or directory) co

[PATCH 003/107] perf evsel: Store backpointer to attached bpf_object

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We may want to get to this bpf_object, to search for other BPF programs, etc. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Luis Cláudio Gonçalves Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-3y8hrb6lszjfi23vjlic3...@git.kernel.org Signed-off-by: Arnaldo Carvalho

[PATCH 015/107] perf augmented_raw_syscalls: Rename augmented_args_filename to augmented_args_payload

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo It'll get other stuff in there than just filenames, starting with sockaddr for 'connect' and 'bind'. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Luis Cláudio Gonçalves Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-bsexidtsn91ehdpzcd6n5...@git.kernel.org Signed-o

[PATCH] staging: rtl8723bs: core: Remove Macro "IS_MAC_ADDRESS_BROADCAST"

2019-07-29 Thread Hariprasad Kelam
Remove unused macro IS_MAC_ADDRESS_BROADCAST. In future if one wants use it ,use generic API "is_broadcast_ether_addr" Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/core/rtw_ioctl_set.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_i

[PATCH 004/107] perf trace: Add pointer to BPF object containing __augmented_syscalls__

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo So that we can use it when looking for other components of that object file, such as other programs to add to the BPF_MAP_TYPE_PROG_ARRAY and use with bpf_tail_call(). Cc: Adrian Hunter Cc: Jiri Olsa Cc: Luis Cláudio Gonçalves Cc: Namhyung Kim Link: https://lkm

[PATCH 042/107] perf evsel: Rename perf_evsel__enable() to evsel__enable()

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Rename perf_evsel__enable() to evsel__enable(), so we don't have a name clash when we add perf_evsel__enable() in libperf. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Andi Kleen Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link: http:/

  1   2   3   4   5   6   7   8   9   10   >