[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

[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

[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

[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

[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: > > > >

[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

[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

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

[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

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.

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

[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

[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:

[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

[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

[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

[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.

[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

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

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

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.

[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

[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

[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

[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

[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

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 deletions

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

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).

[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

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 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 ---

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

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

[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 &=

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

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 ..."

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 > >

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

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

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

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

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

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

[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 +

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

2019-07-29 Thread Eric Biggers
tl 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

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

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

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:

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:

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

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

[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:

[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':

[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)

[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

[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

[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

[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:

[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:

[PATCH 035/107] perf evlist: Rename perf_evlist__new() to evlist__new()

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Rename perf_evlist__new() to evlist__new(), so we don't have a name clash when we add perf_evlist__new() 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:

[PATCH 046/107] perf evlist: Rename perf_evlist__open() to evlist__open()

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Rename perf_evlist__open() to evlist__open(), so we don't have a name clash when we add perf_evlist__open() 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:

[PATCH 071/107] libperf: Move zalloc.o into libperf

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa We need it in both perf and libperf, thus moving it to 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:

[PATCH 065/107] libperf: Add perf_evlist__init() function

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add the perf_evlist__init() function to initialize a perf_evlist struct. Committer testing: Fix a change in init ordering that was causing this backtrace: (gdb) run stat sleep 1 Starting program: /root/bin/perf stat sleep 1 Program received signal SIGSEGV, Segmentation

[PATCH 064/107] libperf: Add perf_evsel__init function

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add the perf_evsel__init() function to initialize perf_evsel struct. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Andi Kleen Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH 072/107] libperf: Add perf_evlist__new() function

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add perf_evlist__new() function to create and init a perf_evlist struct dynamicaly. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Andi Kleen Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH v2] alpha: Replace strncmp with str_has_prefix

2019-07-29 Thread Chuhong Yuan
In commit b6b2735514bc ("tracing: Use str_has_prefix() instead of using fixed sizes") the newly introduced str_has_prefix() was used to replace error-prone strncmp(str, const, len). Here fix codes with the same pattern. Signed-off-by: Chuhong Yuan --- Changes in v2: - Revise the indent and

[PATCH 075/107] libperf: Add perf_evlist__delete() function

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add the perf_evlist__delete() function to delete a perf_evlist instance. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Andi Kleen Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link:

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 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 ability to force load a hot pluggable battery during boot where there is no

[PATCH 084/107] libperf: Adopt xyarray class from perf

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Move the xyarray class from perf to libperf, because it's going to be used in both. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Andi Kleen Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH 077/107] libperf: Add cpus to struct perf_evsel

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Mov the 'cpus' field from tools/perf's evsel to libperf's perf_evsel. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Andi Kleen Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH 100/107] libperf: Add perf_cpu_map test

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add simple perf_cpu_map tests. Committer testing: One has to build it in the source tree, a limitation that should be fixed in followup patches: $ make O=/tmp/build/perf -C tools/perf/lib make: Entering directory '/home/acme/git/perf/tools/perf/lib' LINK

[PATCH 104/107] libperf: Add perf_evlist__enable/disable test

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add simple perf_evlist enable/disable test together with evlist counter reading interface. Committer testing: # make -C tools/perf/lib tests make: Entering directory '/home/acme/git/perf/tools/perf/lib' LINK test-cpumap-a LINK test-threadmap-a LINK

[PATCH 105/107] libperf: Add perf_evsel__enable/disable test

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add simple perf_evsel enable/disable test together with evsel counter reading interface. Committer testing: # make -C tools/perf/lib tests make: Entering directory '/home/acme/git/perf/tools/perf/lib' LINK test-cpumap-a LINK test-threadmap-a LINK

[PATCH 107/107] perf vendor events power9: Added missing event descriptions

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Michael Petlan Documentation source: https://wiki.raptorcs.com/w/images/6/6b/POWER9_PMU_UG_v12_28NOV2018_pub.pdf Signed-off-by: Michael Petlan Reviewed-by: Madhavan Srinivasan Cc: Ananth N Mavinakayanahalli Cc: Carl Love Cc: Michael Ellerman Cc: Naveen N. Rao Cc: Paul Clarke Cc:

[PATCH 106/107] libperf: Initial documentation

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add initial drafts of documentation files, hugely unfinished. 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://lkml.kernel.org/r/20190721112506.12306-80-jo...@kernel.org

[PATCH 103/107] libperf: Add perf_evsel tests

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add 2 simple perf_evsel tests to test counters reading interface through the struct evsel object. Committer testing: # make -C tools/perf/lib tests make: Entering directory '/home/acme/git/perf/tools/perf/lib' LINK test-cpumap-a LINK test-threadmap-a

[PATCH 099/107] libperf: Add tests support

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Adding simple test framework, now empty. 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://lkml.kernel.org/r/20190721112506.12306-73-jo...@kernel.org Signed-off-by:

[PATCH 101/107] libperf: Add perf_thread_map test

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add simple perf_thread_map tests. Committer testing: $ make O=/tmp/build/perf -C tools/perf/lib tests make: Entering directory '/home/acme/git/perf/tools/perf/lib' LINK test-cpumap-a LINK test-threadmap-a LINK test-cpumap-so LINK

Re: [PATCH v3 0/6] Introduce Bandwidth OPPs for interconnect paths

2019-07-29 Thread Viresh Kumar
On 29-07-19, 13:12, Saravana Kannan wrote: > On Mon, Jul 29, 2019 at 2:24 AM Viresh Kumar wrote: > > > > On 18-07-19, 21:12, Saravana Kannan wrote: > > > On Wed, Jul 17, 2019 at 10:37 PM Viresh Kumar > > > wrote: > > > > I would like > > > > to put this data in the GPU OPP table only. What

[PATCH 102/107] libperf: Add perf_evlist test

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add 2 simple perf_evlist tests to test counters reading interface through the struct evlist object. Committer testing: # make -C tools/perf/lib tests make: Entering directory '/home/acme/git/perf/tools/perf/lib' LINK test-cpumap-a LINK test-threadmap-a

[PATCH 096/107] libperf: Adopt perf_evlist__enable()/disable() functions from perf

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Adopt the following functions from tools/perf: perf_evlist__enable() perf_evlist__disable() Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Andi Kleen Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH 095/107] libperf: Adopt simplified perf_evlist__open()/close() functions from tools/perf

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add the following functions: perf_evlist__open() perf_evlist__close() It's a simplified version of perf's evlist__open() without the sampling id index calculations. We can try to merge it in the future when we need it in some new libperf user. Also adopt some helper evlist

[PATCH 097/107] libperf: Add perf_evsel__attr() function

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add a perf_evsel__attr() function to get attr pointer from a perf_evsel instance. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Andi Kleen Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH 090/107] libperf: Adopt simplified perf_evsel__close() function from tools/perf

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add perf_evsel__close() function to libperf while keeping a tools/perf specific evsel__close() to free ids. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Andi Kleen Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH 098/107] libperf: Add install targets

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add install targets (mostly copied from tools/lib/bpf), it's now possible to install libperf with: $ make DESTDIR=/tmp/krava install INSTALL libperf.a INSTALL libperf.so INSTALL libperf.so.0 INSTALL libperf.so.0.0.1 INSTALL headers INSTALL

[PATCH 094/107] libperf: Add perf_evsel__cpus()/threads() functions

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add the following functions: perf_evsel__cpus() perf_evsel__threads() to access the evsel's cpus and threads objects. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Andi Kleen Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link:

  1   2   3   4   5   6   7   8   9   10   >