Re: [PATCH v5 12/12] KVM/VMX/vPMU: support to report GLOBAL_STATUS_LBRS_FROZEN

2019-02-15 Thread Andi Kleen
On Fri, Feb 15, 2019 at 08:56:02AM +, Wang, Wei W wrote: > On Friday, February 15, 2019 12:32 AM, Andi Kleen wrote: > > > > > +static void intel_pmu_get_global_status(struct kvm_pmu *pmu, > > > + struct msr_data *msr_info) > > > +{ > > > + u64 guest_debugctl, fr

Re: [RFC PATCH v8 08/14] arm64/mm: disable section/contiguous mappings if XPFO is enabled

2019-02-15 Thread Mark Rutland
Hi, On Wed, Feb 13, 2019 at 05:01:31PM -0700, Khalid Aziz wrote: > From: Tycho Andersen > > XPFO doesn't support section/contiguous mappings yet, so let's disable it > if XPFO is turned on. > > Thanks to Laura Abbot for the simplification from v5, and Mark Rutland for > pointing out we need NO_

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

2019-02-15 Thread Michal Hocko
On Fri 15-02-19 15:08:36, Huang, Ying wrote: > Michal Hocko writes: > > > On Mon 11-02-19 16:38:46, Huang, Ying wrote: > >> From: Huang Ying > >> > >> When swapin is performed, after getting the swap entry information from > >> the page table, system will swap in the swap entry, without any loc

RE: [PATCH v2 06/15] clocksource/drivers/timer-milbeaut: Introduce timer for Milbeaut SoCs

2019-02-15 Thread sugaya.taichi
Hi, > -Original Message- > From: linux-arm-kernel > [mailto:linux-arm-kernel-boun...@lists.infradead.org] On Behalf Of > Arnd Bergmann > Sent: Friday, February 15, 2019 6:08 PM > To: Sugaya, Taichi/菅谷 太一 > Cc: Kanematsu, Shinji/兼松 伸次; Masami Hiramatsu; Daniel Lezcano; > Linux Kernel Mailin

Re: [v5] Coccinelle: semantic code search for missing put_device()

2019-02-15 Thread Markus Elfring
>>> +id = of_find_device_by_node@p1(x) … >>> +if (id == NULL || ...) { ... return ...; } >>> +... when != put_device(&id->dev) >> … >>> +when != if (id) { ... put_device(&id->dev) ... } >> … >> >> I would interpret this SmPL code in the way that the if statement >> for the pointer check is “opt

Re: [v5] Coccinelle: semantic code search for missing put_device()

2019-02-15 Thread Markus Elfring
>>> +id = of_find_device_by_node@p1(x) … >>> +if (id == NULL || ...) { ... return ...; } >>> +... when != put_device(&id->dev) >> … >>> +when != if (id) { ... put_device(&id->dev) ... } >> … >> >> I would interpret this SmPL code in the way that the if statement >> for the pointer check is “opt

Re: [PATCH v5 6/6] clk: renesas: r8a774c0: Add Z2 clock

2019-02-15 Thread Simon Horman
On Mon, Feb 11, 2019 at 02:58:58PM +0100, Simon Horman wrote: > Adds support for R-Car RZ/G2E (r8a774c0) Z2 clock. R-Car should not appear on the line above. > > Signed-off-by: Simon Horman > Tested-by: Fabrizio Castro > Reviewed-by: Fabrizio Castro > Reviewed-by: Geert Uytterhoeven > --- >

Re: [PATCH 2/2] driver core: Fix possible supplier PM-usage counter imbalance

2019-02-15 Thread Jon Hunter
On 15/02/2019 12:06, Rafael J. Wysocki wrote: > On Friday, February 15, 2019 12:00:27 PM CET Jon Hunter wrote: >> Hi Rafael, >> >> On 12/02/2019 12:08, Rafael J. Wysocki wrote: >>> From: Rafael J. Wysocki >>> >>> If a stateless device link to a certain supplier with >>> DL_FLAG_PM_RUNTIME set in

Re: [PATCH net-next] net: phy: marvell10g: Don't explicitly set Pause and Asym_Pause

2019-02-15 Thread Andrew Lunn
On Fri, Feb 15, 2019 at 09:33:47AM +0100, Maxime Chevallier wrote: > The PHY core expects PHY drivers not to set Pause and Asym_Pause bits, > unless the driver only wants to specify one of them due to HW > limitation. In the case of the Marvell10g driver, we don't need to set > them. > > Signed-of

Re: [v5] Coccinelle: semantic code search for missing put_device()

2019-02-15 Thread Julia Lawall
On Fri, 15 Feb 2019, Markus Elfring wrote: > >>> +id = of_find_device_by_node@p1(x) > … > >>> +if (id == NULL || ...) { ... return ...; } > >>> +... when != put_device(&id->dev) > >> … > >>> +when != if (id) { ... put_device(&id->dev) ... } > >> … > >> > >> I would interpret this SmPL code i

Re: [PATCH net-next v2 3/3] enetc: Add ENETC PF level external MDIO support

2019-02-15 Thread Andrew Lunn
On Fri, Feb 15, 2019 at 12:10:14PM +0200, Claudiu Manoil wrote: > Each ENETC PF has its own MDIO interface, the corresponding > MDIO registers are mapped in the ENETC's Port register block. > The current patch adds a driver for these PF level MDIO buses, > so that each PF can manage directly its ow

[tip:ras/core] EDAC/mce_amd: Decode MCA_STATUS[Scrub] bit

2019-02-15 Thread tip-bot for Yazen Ghannam
Commit-ID: 3f4da372ec8e4ce58c17ac4f2e3c8891bbfea17e Gitweb: https://git.kernel.org/tip/3f4da372ec8e4ce58c17ac4f2e3c8891bbfea17e Author: Yazen Ghannam AuthorDate: Tue, 12 Feb 2019 21:24:28 + Committer: Borislav Petkov CommitDate: Fri, 15 Feb 2019 14:25:58 +0100 EDAC/mce_amd: Decode

[tip:ras/core] EDAC/mce_amd: Decode MCA_STATUS in bit definition order

2019-02-15 Thread tip-bot for Yazen Ghannam
Commit-ID: a0bcd3c0b8a52ba0eb74371fa6be15ad0390ba67 Gitweb: https://git.kernel.org/tip/a0bcd3c0b8a52ba0eb74371fa6be15ad0390ba67 Author: Yazen Ghannam AuthorDate: Tue, 12 Feb 2019 21:24:29 + Committer: Borislav Petkov CommitDate: Fri, 15 Feb 2019 14:36:31 +0100 EDAC/mce_amd: Decode

[PATCH net-next 0/3] net: stmmac: Performance improvements in Multi-Queue

2019-02-15 Thread Jose Abreu
Tested in XGMAC2 and GMAC5. I guess 1/3 can be backported but besides being a kind of "not that small" refactoring it's also for a scenario that no-one complained yet ... Advice ? Cc: Florian Fainelli Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Jose Abreu (

Re: [PATCH v2 01/14] dt-bindings: remoteproc: Add TI PRUSS bindings

2019-02-15 Thread Matthijs van Duin
On Thu, 14 Feb 2019 at 12:08, Roger Quadros wrote: > The beagleboard community is a primary user of this driver and we need to > find a solution so that PRUSS is usable either via remoteproc or via UIO. While being able to switch drivers without changing the DT by forcibly binding a different dri

[PATCH net-next 3/3] net: stmmac: dwxgmac2: Also use TBU interrupt to clean TX path

2019-02-15 Thread Jose Abreu
TBU interrupt is a normal interrupt and can be used to trigger the cleaning of TX path. Lets check if it's active in DMA interrupt handler. While at it, refactor a little bit the function: - Don't check if RI is enabled because at function exit we will only clear the interrupts t

[PATCH net-next 1/3] net: stmmac: Fix NAPI poll in TX path when in multi-queue

2019-02-15 Thread Jose Abreu
Commit 8fce33317023 introduced the concept of NAPI per-channel and independent cleaning of TX path. This is currently breaking performance in some cases. The scenario happens when all packets are being received in Queue 0 but the TX is performed in Queue != 0. Fix this by using different NAPI ins

[PATCH net-next 2/3] net: stmmac: dwmac4: Also use TBU interrupt to clean TX path

2019-02-15 Thread Jose Abreu
TBU interrupt is a normal interrupt and can be used to trigger the cleaning of TX path. Lets check if it's active in DMA interrupt handler. While at it, refactor a little bit the function: - Don't check if RI is enabled because at function exit we will only clear the interrupts t

[PATCH] perf tests shell: Skip trace+probe_vfs_getname.sh if built without trace support

2019-02-15 Thread Tommi Rantala
From: Tommi Rantala If perf was built without trace support, trace+probe_vfs_getname.sh fails: # perf trace -h perf: 'trace' is not a perf-command. See 'perf --help' # perf test 64 64: Check open filename arg using perf trace + vfs_getname: FAILED! Check trace support, so that we'll sk

Re: [PATCH 10/10] venus: dec: make decoder compliant with stateful codec API

2019-02-15 Thread Hans Verkuil
Hi Stanimir, I never paid much attention to this patch series since others were busy discussing it and I had a lot of other things on my plate, but then I heard that this patch made G_FMT blocking. That's a no-go. Apparently s5p-mfc does that as well, and that's against the V4L2 spec as well (cle

Re: [PATCH v2 05/11] mfd: pm8xxx: disassociate old virq if hwirq mapping already exists

2019-02-15 Thread Brian Masney
On Thu, Feb 14, 2019 at 09:51:26PM -0800, Stephen Boyd wrote: > > diff --git a/drivers/mfd/qcom-pm8xxx.c b/drivers/mfd/qcom-pm8xxx.c > > index 8eb2528793f9..2f99a98ccee5 100644 > > --- a/drivers/mfd/qcom-pm8xxx.c > > +++ b/drivers/mfd/qcom-pm8xxx.c > > @@ -380,6 +380,12 @@ static void pm8xxx_irq_do

Re: [RFC PATCH v1 04/25] printk-rb: add writer interface

2019-02-15 Thread Petr Mladek
On Fri 2019-02-15 00:36:49, John Ogness wrote: > On 2019-02-14, Petr Mladek wrote: > >> Add the writer functions prb_reserve() and prb_commit(). These make > >> use of processor-reentrant spin locks to limit the number of possible > >> interruption scenarios for the writers. > >> > >> --- a/lib/p

[PATCH] iio/chemical/bme680: Fix SPI read interface

2019-02-15 Thread Mike Looijmans
The SPI interface implementation was completely broken. When using the SPI interface, there are only 7 address bits, the upper bit is controlled by a page select register. The core needs access to both ranges, so implement register read/write for both regions. The regmap paging functionality didn'

[PATVH v2 2/4] arm64: dts: allwinner: h6: pine: Add CPU supply regulator

2019-02-15 Thread Yangtao Li
The original pine use the dcdca to supply the CPU cores. According to the axp805 spec, the range of dcdca is 0.6 to 1.1v, 1.12 to 1.52v. In order to support more CPU frequency, slightly increase the voltage maximum and minimum. In fact, in sunxi's sdk, the actual minimum and maximum voltage of the

[PATVH v2 4/4] arm64: dts: allwinner: h6: Add CPU Operating Performance Points table

2019-02-15 Thread Yangtao Li
Add an OPP (Operating Performance Points) table for the CPU cores to enable DVFS (Dynamic Voltage & Frequency Scaling) on the H6. This information comes from github. When the four CPUs are running at 1.8 GHz, 100% busy, it is easy to heat up and make the system restart. And currently H6 does not s

[PATVH v2 1/4] arm64: dts: allwinner: h6: orangepi: Add CPU supply regulator

2019-02-15 Thread Yangtao Li
The original orangepi use the dcdca to supply the CPU cores. According to the axp805 spec, the range of dcdca is 0.6 to 1.1v, 1.12 to 1.52v. In order to support more CPU frequency, slightly increase the voltage maximum and minimum. In fact, in sunxi's sdk, the actual minimum and maximum voltage of

[PATVH v2 0/4] arm64: dts: allwinner: h6: Enable CPU

2019-02-15 Thread Yangtao Li
Add the cpufreq support of h6, source of information is as follows. h6 cpu opp info: https://github.com/Allwinner-Homlet/H6-BSP4.9-linux/blob/master/arch/arm64/boot/dts/sunxi/sun50iw6p1.dtsi axp805 spec: http://linux-sunxi.org/images/b/bc/AXP805_Datasheet_V1.0_en.pdf Yangtao Li (4): arm64: dts

Re: [GIT PULL 2/2] ARM: dts: samsung: exynos and s5pv210 for v5.1

2019-02-15 Thread Arnd Bergmann
On Fri, Feb 1, 2019 at 8:17 PM Krzysztof Kozlowski wrote: > Samsung DTS ARM changes for v5.1 > > 1. Extend support for Aries family of mobile devices (e.g. Samsung >Galaxy S) based on S5Pv210 SoC: DRM Rotator, FIMD, PWM vibrator, >power off, touchscreen, Broadcom BCM4329 Bluetooth and cpuf

[PATVH v2 3/4] arm64: dts: allwinner: h6: Add clock to CPU cores

2019-02-15 Thread Yangtao Li
The ARM CPU cores are fed by the CPU clock from the CCU. Add a reference to the clock for each CPU core, along with the clock transition latency. Signed-off-by: Yangtao Li --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot

Re: [PATCH 4/4] arm64: dts: allwinner: h6: Add CPU Operating Performance Points table

2019-02-15 Thread Maxime Ripard
On Thu, Feb 14, 2019 at 10:52:16PM +0800, Frank Lee wrote: > On Thu, Feb 14, 2019 at 10:38 PM Maxime Ripard > wrote: > > > > Hi, > > > > On Thu, Feb 14, 2019 at 08:09:10AM -0500, Yangtao Li wrote: > > > Add an OPP (Operating Performance Points) table for the CPU cores to > > > enable DVFS (Dynamic

Re: [v5] Coccinelle: semantic code search for missing put_device()

2019-02-15 Thread Markus Elfring
>> Does the first SmPL when specification include the case that a call >> of the function “put_device” can occur within a branch of an if statement? > > It does include that, Thanks for this acknowledgement. So it seems that you find my interpretation of this bit of SmPL code appropriate. > bu

Re: [PATCH 4/4] arm64: dts: allwinner: h6: Add CPU Operating Performance Points table

2019-02-15 Thread Maxime Ripard
Hi On Fri, Feb 15, 2019 at 12:56:03AM +0800, Frank Lee wrote: > How about to implement a thermal driver that is not integrated with > gpadc ? > > GPADC on soc is rarely used now. You mean GPADC in general, or the gpadc driver in particular? Otherwise, yes, having a driver for the thermal sensor

[PATCHv2] random: Make /dev/random wait for crng_ready

2019-02-15 Thread Bernd Edlinger
Reading from /dev/random may return data while the getrandom syscall is still blocking. Those bytes are not yet cryptographically secure. The first byte from /dev/random can have as little as 8 bits entropy estimation. Once a read blocks, it will block until /proc/sys/kernel/random/read_wakeup_t

Re: [RFC 1/2] ARM: dts: exynos: Add proper regulator states for suspend-to-mem for odroid-u3

2019-02-15 Thread Anand Moon
Hi Krzysztof, On Fri, 15 Feb 2019 at 13:01, Krzysztof Kozlowski wrote: > > On Thu, 14 Feb 2019 at 19:35, Anand Moon wrote: > > > > hi Krzysztof, > > > > Thanks fro your review comments. > > > > On Thu, 14 Feb 2019 at 18:11, Krzysztof Kozlowski wrote: > > > > > > Hi Anand, > > > > > > Thanks for

[PATCH v5 0/3] Add NXP AUDMIX device and machine drivers

2019-02-15 Thread Viorel Suman
The patchset adds NXP Audio Mixer (AUDMIX) device and machine drivers and related DT bindings documentation. Changes since V4: 1. Removed "model" attribute from device driver DT bindings documentation as suggested by Nicolin. Changes since V3: 1. Removed machine driver DT bindings documentatio

[PATCH v5 3/3] ASoC: fsl: Add Audio Mixer machine driver

2019-02-15 Thread Viorel Suman
This patch implements Audio Mixer machine driver for NXP iMX8 SOCs. It connects together Audio Mixer and related SAI instances. Signed-off-by: Viorel Suman --- sound/soc/fsl/Kconfig | 9 ++ sound/soc/fsl/Makefile | 2 + sound/soc/fsl/imx-audmix.c | 327 ++

[PATCH v5 2/3] ASoC: add fsl_audmix DT binding documentation

2019-02-15 Thread Viorel Suman
Add the DT binding documentation for NXP Audio Mixer CPU DAI driver. Signed-off-by: Viorel Suman --- .../devicetree/bindings/sound/fsl,audmix.txt | 50 ++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/fsl,audmix.txt diff -

[PATCH v5 1/3] ASoC: fsl: Add Audio Mixer CPU DAI driver

2019-02-15 Thread Viorel Suman
This patch implements Audio Mixer CPU DAI driver for NXP iMX8 SOCs. The Audio Mixer is a on-chip functional module that allows mixing of two audio streams into a single audio stream. Audio Mixer datasheet is available here: https://www.nxp.com/docs/en/reference-manual/IMX8DQXPRM.pdf Signed-off-by

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

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

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

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

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

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

[PATCH 2/4] drm/panel: simple: Add support for OSD101T2045-53TS

2019-02-15 Thread Peter Ujfalusi
Add support for the OSD101T2045-53TS 10.1" 1920x1200 panel from One Stop Displays to the panel-simple driver Signed-off-by: Peter Ujfalusi --- drivers/gpu/drm/panel/panel-simple.c | 34 1 file changed, 34 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple

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

2019-02-15 Thread Peter Ujfalusi
Hi, Add support for OSD101T2045-53TS and OSD101T2587-53TS from One Stop Displays. The two panel is similar with one big difference: OSD101T2587-53TS requires the MIPI_DSI_TURN_ON_PERIPHERAL message, thus can not be handled by panel-simple. Regards, Peter --- Peter Ujfalusi (4): dt-bindings: di

Re: [PATCH 3/5] kmemleak: account for tagged pointers when calculating pointer range

2019-02-15 Thread Catalin Marinas
On Mon, Feb 11, 2019 at 10:59:52PM +0100, Andrey Konovalov wrote: > kmemleak keeps two global variables, min_addr and max_addr, which store > the range of valid (encountered by kmemleak) pointer values, which it > later uses to speed up pointer lookup when scanning blocks. > > With tagged pointers

Re: [PATCH 4/4] arm64: dts: allwinner: h6: Add CPU Operating Performance Points table

2019-02-15 Thread Frank Lee
On Fri, Feb 15, 2019 at 9:56 PM Maxime Ripard wrote: > > Hi > > On Fri, Feb 15, 2019 at 12:56:03AM +0800, Frank Lee wrote: > > How about to implement a thermal driver that is not integrated with > > gpadc ? > > > > GPADC on soc is rarely used now. > > You mean GPADC in general, or the gpadc driver

[PATCH] MAINTAINERS: fix GTA02 entry and mark as orphan

2019-02-15 Thread Jann Horn
The entry for GTA02 never had paths listed; fix that. commit 9d76295ac608 ("[ARM] GTA02/FreeRunner: Add machine definition"), which added the entry for GTA02, created two new files named arch/arm/mach-s3c2442/{include/mach/gta02.h,mach-gta02.c}, which were then renamed in commit dd6f01b5ccba ("ARM:

[net-next] net: crypto set sk to NULL when af_alg_release.

2019-02-15 Thread Mao Wenan
KASAN has found use-after-free in sockfs_setattr. The existed commit 6d8c50dcb029 ("socket: close race condition between sock_close() and sockfs_setattr()") is to fix this simillar issue, but it seems to ignore that crypto module forgets to set the sk to NULL after af_alg_release. KASAN report de

Re: [RESEND PATCH net] mm: page_alloc: fix ref bias in page_frag_alloc() for 1-byte allocs

2019-02-15 Thread Jann Horn
On Thu, Feb 14, 2019 at 11:21 PM David Miller wrote: > > From: Jann Horn > Date: Thu, 14 Feb 2019 22:26:22 +0100 > > > On Thu, Feb 14, 2019 at 6:13 PM David Miller wrote: > >> > >> From: Jann Horn > >> Date: Wed, 13 Feb 2019 22:45:59 +0100 > >> > >> > The basic idea behind ->pagecnt_bias is: If

[PATCH v3 2/3] dt-bindings: input: Refer to touchscreen.txt for goodix ts

2019-02-15 Thread Guido Günther
Refer to touchscreen.txt for generic touch properties. This avoids duplication and we're using the generic code to parse these in the driver. While at that add touchscreen-size-{x,y} which are respected by the driver as well. Signed-off-by: Guido Günther --- .../bindings/input/touchscreen/goodix

[PATCH v3 0/3] input: goodix - support Goodix gt5688

2019-02-15 Thread Guido Günther
Besides the support for gt5688 two more minimal changes piled up so I'm folding these in here. One is a doc update for the goodix bindings, the other one makes it a bit simpler to figure out configuration problems (like lack of touchscreen-size-{x,y} in the device tree. I've kept the original subj

Re: [PATCH v2 1/8] leds: Add support for AXP20X CHGLED

2019-02-15 Thread Stefan Mavrodiev
On 2/15/19 1:50 PM, Stefan Mavrodiev wrote: Most of AXP20x PMIC chips have built-in battery charger with LED indicator. The LED can be controlled ether by the charger or manually by a register. The default is (except for AXP209) manual control, which makes this LED useless, since there is no d

Re: [PATCH 2/2] driver core: Fix possible supplier PM-usage counter imbalance

2019-02-15 Thread Jon Hunter
On 15/02/2019 13:21, Jon Hunter wrote: > > On 15/02/2019 12:06, Rafael J. Wysocki wrote: >> On Friday, February 15, 2019 12:00:27 PM CET Jon Hunter wrote: >>> Hi Rafael, >>> >>> On 12/02/2019 12:08, Rafael J. Wysocki wrote: From: Rafael J. Wysocki If a stateless device link to a

Re: [PATCH] net: dsa: Implement flow_dissect callback for tag_dsa.

2019-02-15 Thread Andrew Lunn
On Fri, Feb 15, 2019 at 08:22:53AM +, Rundong Ge wrote: > RPS not work for DSA devices since the 'skb_get_hash' > will always get the invalid hash for dsa tagged packets. > > "[PATCH] tag_mtk: add flow_dissect callback to the ops struct" > introduced the flow_dissect callback to get the right

[PATCH 0/2] [GIT PULL] tracing: Two more fixes

2019-02-15 Thread Steven Rostedt
Linus, Two more tracing fixes - Have kprobes not use copy_from_user to access kernel addresses as this is now considered a security issue. - Put back the entries counter in the tracing output that was accidentally removed. Please pull the latest trace-v5.0-rc4-2 tree, which can be fou

[PATCH 1/2] kprobe: Do not use uaccess functions to access kernel memory

2019-02-15 Thread Steven Rostedt
From: Changbin Du The userspace can ask kprobe to intercept strings at any memory address, including invalid kernel address. In this case, fetch_store_strlen() would crash since it uses general usercopy function, and user access functions are no longer allowed to access kernel memory. For exampl

[PATCH 2/2] tracing: Fix number of entries in trace header

2019-02-15 Thread Steven Rostedt
From: Quentin Perret The following commit 441dae8f2f29 ("tracing: Add support for display of tgid in trace output") removed the call to print_event_info() from print_func_help_header_irq() which results in the ftrace header not reporting the number of entries written in the buffer. As this wa

Re: [PATCH v2 perf,bpf 08/11] perf, bpf: save btf information as headers to perf.data

2019-02-15 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 14, 2019 at 04:00:09PM -0800, Song Liu escreveu: > This patch enables perf-record to save btf information as headers to > perf.data A new header type HEADER_BTF is introduced for this data. Jiri, Wouldn't it be better for this HEADER_BTF to be introduced already as an user spa

Re: [PATCH v2 perf,bpf 09/11] perf-top: add option --bpf-event

2019-02-15 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 14, 2019 at 04:00:10PM -0800, Song Liu escreveu: > bpf events are only tracked when opts->bpf_event is enabled. This patch > adds command line flag to enable this for perf-top. Shouldn't this start as enabled and we just provide a way to disable it for testing purposes? Normally perf t

Re: [PATCH v2 3/5] kmemleak: account for tagged pointers when calculating pointer range

2019-02-15 Thread Catalin Marinas
On Wed, Feb 13, 2019 at 02:58:28PM +0100, Andrey Konovalov wrote: > kmemleak keeps two global variables, min_addr and max_addr, which store > the range of valid (encountered by kmemleak) pointer values, which it > later uses to speed up pointer lookup when scanning blocks. > > With tagged pointers

[PATCH v3 3/3] input: goodix: Print values in case of inconsistencies

2019-02-15 Thread Guido Günther
"Invalid config" gives little idea what's wrong. Print the values that must not be 0 so we know which ones are off. Signed-off-by: Guido Günther --- drivers/input/touchscreen/goodix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/goodix.c b/dri

Re: [PATCH v2 perf,bpf 07/11] perf, bpf: save btf in a rbtree in perf_env

2019-02-15 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 14, 2019 at 04:00:08PM -0800, Song Liu escreveu: > btf contains information necessary to annotate bpf programs. This patch > saves btf for bpf programs loaded in the system. > > Signed-off-by: Song Liu > --- > tools/perf/util/bpf-event.c | 22 + > tools/perf/util/bpf-even

Re: [PATCH v2 perf,bpf 01/11] perf, bpf: consider events with attr.bpf_event as side-band events

2019-02-15 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 14, 2019 at 03:58:40PM -0800, Song Liu escreveu: > Events with bpf_event should be considered as side-band event, as they > carry information about BPF programs. > > Fixes: 6ee52e2a3fe4 ("perf, bpf: Introduce PERF_RECORD_BPF_EVENT") > Signed-off-by: Song Liu > --- > kernel/events/cor

[PATCH v3 1/3] input: goodix - support Goodix gt5688

2019-02-15 Thread Guido Günther
>From what I've seen in vendor trees it's fine to treat this as gt1x¹. Tested on the Purism Librem 5 Devkit (Rocktech JH057N00900 panel). [1]: https://github.com/TadiT7/android_kernel_mtk-4.4/tree/master/drivers/input/touchscreen/mediatek/GT5688 Signed-off-by: Guido Günther Reviewed-by: Bastien

RE: [PATCH net-next v2 3/3] enetc: Add ENETC PF level external MDIO support

2019-02-15 Thread Claudiu Manoil
>-Original Message- >From: Andrew Lunn >Sent: Friday, February 15, 2019 3:35 PM >To: Claudiu Manoil >Cc: Shawn Guo ; Leo Li ; David S . >Miller ; Alexandru Marginean >; linux-arm-ker...@lists.infradead.org; >devicet...@vger.kernel.org; net...@vger.kernel.org; linux- >ker...@vger.kernel

Re: [PATCH v2 perf,bpf 11/11] perf, bpf: save information about short living bpf programs

2019-02-15 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 14, 2019 at 04:00:45PM -0800, Song Liu escreveu: > To annotate bpf programs in perf, it is necessary to save information in > bpf_prog_info and btf. For short living bpf program, it is necessary to > save these information before it is unloaded. > > This patch saves these information i

Re: [PATCH v2 perf,bpf 05/11] perf, bpf: save bpf_prog_info in a rbtree in perf_env

2019-02-15 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 14, 2019 at 04:00:06PM -0800, Song Liu escreveu: > bpf_prog_info contains information necessary to annotate bpf programs. > This patch saves bpf_prog_info for bpf programs loaded in the system. > > Signed-off-by: Song Liu > --- > tools/perf/builtin-record.c | 2 +- > tools/perf/buil

[PATCH 3/5] sparc64/iommu: allow large DMA masks

2019-02-15 Thread Christoph Hellwig
We've been moving to a model where the device just sets the DMA mask supported by it, instead of having to fallback to something it thinks the platform might support. Sparc64 is the remaining holdout forcing drivers to supply a matching mask. Change dma_4u_supported to just check if the supplied

[PATCH 1/5] ccio: allow large DMA masks

2019-02-15 Thread Christoph Hellwig
There is no harm in setting a 64-bit mask even if we don't need it, and the current ccio code is one of the few place in the kernel still rejecting larger than required DMA masks. Signed-off-by: Christoph Hellwig --- drivers/parisc/ccio-dma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletion

[PATCH 1/2] ASoC: samsung: i2s: Fix the secondary platform device registration

2019-02-15 Thread Sylwester Nawrocki
This fixes unregistration of the secondary platform device so all resources are properly released. The test for NULL priv->pdev_sec is not necessary and it is removed. Signed-off-by: Sylwester Nawrocki --- This patch is based off of ASoC for-next and patches: ASoC: samsung: odroid: Ensure proper

[PATCH 2/2] ASoC: samsung: i2s: Fix multiple "IIS multi" devices initialization

2019-02-15 Thread Sylwester Nawrocki
On some SoCs (e.g. Exynos5433) there are multiple "IIS multi audio interfaces" and the driver will try to register there multiple times same platform device for the secondary FIFO, which of course fails miserably. To fix this we derive the secondary platform device name from the primary device nam

Re: [PATCH 2/2] driver core: Fix possible supplier PM-usage counter imbalance

2019-02-15 Thread Ulf Hansson
On Fri, 15 Feb 2019 at 12:00, Jon Hunter wrote: > > Hi Rafael, > > On 12/02/2019 12:08, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > If a stateless device link to a certain supplier with > > DL_FLAG_PM_RUNTIME set in the flags is added and then removed by the > > consumer driver's

allow larger than require DMA masks

2019-02-15 Thread Christoph Hellwig
Hi all, this series finishes off converting our dma mask model to split between device capabilities (dev->dma_mask and dev->coherent_dma_mask) and system limitations (dev->bus_dma_mask). We already accept larger than required masks in most dma_map_ops implementation, in case of x86 and implementa

[PATCH 2/5] sparc64: refactor the ali DMA quirk

2019-02-15 Thread Christoph Hellwig
Do the quirk first in the dma_supported routines, as we don't need any of the other checks for it, and remove the duplicate mask checking that is already done by the callers. Signed-off-by: Christoph Hellwig --- arch/sparc/kernel/iommu.c | 7 +++--- arch/sparc/kernel/kernel.h| 6 -

[PATCH 4/5] sparc64/pci_sun4v: allow large DMA masks

2019-02-15 Thread Christoph Hellwig
We've been moving to a model where the device just sets the DMA mask supported by it, instead of having to fallback to something it thinks the platform might support. Sparc64 is the remaining holdout forcing drivers to supply a matching mask. Change dma_4v_supported to just check if the supplied

Re: [RFC PATCH v8 08/14] arm64/mm: disable section/contiguous mappings if XPFO is enabled

2019-02-15 Thread Khalid Aziz
On 2/15/19 6:09 AM, Mark Rutland wrote: > Hi, > > On Wed, Feb 13, 2019 at 05:01:31PM -0700, Khalid Aziz wrote: >> From: Tycho Andersen >> >> XPFO doesn't support section/contiguous mappings yet, so let's disable it >> if XPFO is turned on. >> >> Thanks to Laura Abbot for the simplification from v

[PATCH 5/5] Documentation/DMA-API-HOWTO: update dma_mask sections

2019-02-15 Thread Christoph Hellwig
We don't require drivers to guess a DMA mask that might actually match the system capabilities any more, so fix up the documentation to clear this up. Signed-off-by: Christoph Hellwig --- Documentation/DMA-API-HOWTO.txt | 121 +++- 1 file changed, 41 insertions(+), 80

Re: [PATCH] sched/x86: Save [ER]FLAGS on context switch

2019-02-15 Thread Brian Gerst
On Thu, Feb 14, 2019 at 2:34 PM Peter Zijlstra wrote: > > On Thu, Feb 14, 2019 at 11:18:01AM -0500, Brian Gerst wrote: > > > > --- a/arch/x86/include/asm/switch_to.h > > > +++ b/arch/x86/include/asm/switch_to.h > > > @@ -40,6 +40,7 @@ asmlinkage void ret_from_fork(void); > > > * order of the fie

Re: [PATCH V15 00/18] block: support multi-page bvec

2019-02-15 Thread Christoph Hellwig
I still don't understand why mp_bvec_last_segment isn't simply called bvec_last_segment as there is no conflict. But I don't want to hold this series up on that as there only are two users left and we can always just fix it up later.

Re: [PATCH net-next v2 3/3] enetc: Add ENETC PF level external MDIO support

2019-02-15 Thread Andrew Lunn
> Hi, > I don't really see what bindings would need to be documented, as the node > names and properties used so far are common. Like, the "mdio" node name > is common, the enetc ports are "pci" nodes, nothing special for these. > What's missing? Hi Claudiu It is not well defined where to put ph

Re: [PATCH v0 2/2] perf, pt, coresight: Fix address filters for vmas with non-zero offset

2019-02-15 Thread Arnaldo Carvalho de Melo
Adding Mathieu to the CC list. Em Fri, Feb 15, 2019 at 01:56:55PM +0200, Alexander Shishkin escreveu: > Currently, the address range calculation for file-based filters works as > long as the vma that maps the matching part of the object file starts from > offset zero into the file (vm_pgoff==0). O

Re: [RFC 2/3] arm_pmu: acpi: spe: Add initial MADT/SPE probing

2019-02-15 Thread Will Deacon
On Thu, Feb 14, 2019 at 12:03:57PM -0600, Jeremy Linton wrote: > On 2/14/19 11:11 AM, Will Deacon wrote: > > On Fri, Feb 08, 2019 at 06:47:17PM -0600, Jeremy Linton wrote: > > > +/* > > > + * For lack of a better place, hook the normal PMU MADT walk > > > + * and create a SPE device if we detect a

[tip:x86/urgent] x86/platform/UV: Use efi_runtime_lock to serialise BIOS calls

2019-02-15 Thread tip-bot for Hedi Berriche
Commit-ID: f331e766c4be33f4338574f3c9f7f77e98ab4571 Gitweb: https://git.kernel.org/tip/f331e766c4be33f4338574f3c9f7f77e98ab4571 Author: Hedi Berriche AuthorDate: Wed, 13 Feb 2019 19:34:13 + Committer: Borislav Petkov CommitDate: Fri, 15 Feb 2019 15:19:56 +0100 x86/platform/UV: Use

Re: [PATCH v3 4/4] arm64: kprobes: Use arch_populate_kprobe_blacklist()

2019-02-15 Thread Masami Hiramatsu
On Thu, 14 Feb 2019 15:55:22 + Will Deacon wrote: > Hi Masami, > > On Wed, Feb 13, 2019 at 12:44:48AM +0900, Masami Hiramatsu wrote: > > Use arch_populate_kprobe_blacklist() instead of > > arch_within_kprobe_blacklist() so that we can see the full > > blacklisted symbols under the debugfs. >

[RFC] net: dsa: qca8k: implement rgmii-id mode

2019-02-15 Thread Michal Vokáč
Hi, networking on my boards [1], which are currently in linux-next, suddently stopped working. I tracked it down to this commit 5ecdd77c61c8 ("net: dsa: qca8k: disable delay for RGMII mode") [2]. So I think the rgmii-id mode is obviously needed in my case. I was able to find a couple drivers tha

[tip:x86/uv] x86/platform/UV: Remove uv_bios_call_reentrant()

2019-02-15 Thread tip-bot for Hedi Berriche
Commit-ID: f816525d615fff0336d0c881e5d960bbec5ea016 Gitweb: https://git.kernel.org/tip/f816525d615fff0336d0c881e5d960bbec5ea016 Author: Hedi Berriche AuthorDate: Wed, 13 Feb 2019 19:34:11 + Committer: Borislav Petkov CommitDate: Fri, 15 Feb 2019 15:13:48 +0100 x86/platform/UV: Remo

Re: [Xen-devel][PATCH 2/2] xen/gntdev: Check and release imported dma-bufs on close

2019-02-15 Thread Boris Ostrovsky
On 2/14/19 9:23 AM, Oleksandr Andrushchenko wrote: > From: Oleksandr Andrushchenko > > Check if there are any imported dma-bufs left not released by > user-space when grant device's release callback is called and > free those if this is the case. This can happen if user-space > leaks the buffers b

Re: [PATCH v15 15/15] tracing: Add hist trigger action 'expected fail' test case

2019-02-15 Thread Masami Hiramatsu
Hi Tom, On Wed, 13 Feb 2019 17:42:55 -0600 Tom Zanussi wrote: > From: Tom Zanussi > > Add a test case verifying that basic action combinations fail as > expected. > > Signed-off-by: Tom Zanussi This looks good to me. Acked-by: Masami Hiramatsu Thank you! > --- > .../inter-event/trigger

Re: [PATCH V2 3/10] KVM/MMU: Add last_level in the struct mmu_spte_page

2019-02-15 Thread Tianyu Lan
On Fri, Feb 15, 2019 at 12:32 AM Paolo Bonzini wrote: > > On 02/02/19 02:38, lantianyu1...@gmail.com wrote: > > diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c > > index ce770b446238..70cafd3f95ab 100644 > > --- a/arch/x86/kvm/mmu.c > > +++ b/arch/x86/kvm/mmu.c > > @@ -2918,6 +2918,9 @@ stati

[PATCH][next] mlxsw: core: fix spelling mistake "temprature" -> "temperature"

2019-02-15 Thread Colin King
From: Colin Ian King There is a spelling mistake in several dev_err messages, fix these. Signed-off-by: Colin Ian King --- drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlxsw/core_hwmon

Re: [Xen-devel][PATCH 1/2] xen/gntdev: Do not destroy context while dma-bufs are in use

2019-02-15 Thread Boris Ostrovsky
On 2/14/19 9:23 AM, Oleksandr Andrushchenko wrote: > > /* DMA buffer export support. */ > @@ -311,6 +317,7 @@ static void dmabuf_exp_release(struct kref *kref) > > dmabuf_exp_wait_obj_signal(gntdev_dmabuf->priv, gntdev_dmabuf); > list_del(&gntdev_dmabuf->next); > + fput(gntdev_

Re: [PATVH v2 0/4] arm64: dts: allwinner: h6: Enable CPU

2019-02-15 Thread Maxime Ripard
On Fri, Feb 15, 2019 at 08:49:33AM -0500, Yangtao Li wrote: > Add the cpufreq support of h6, source of information is as follows. > > h6 cpu opp info: > https://github.com/Allwinner-Homlet/H6-BSP4.9-linux/blob/master/arch/arm64/boot/dts/sunxi/sun50iw6p1.dtsi > > axp805 spec: > http://linux-sunxi.

Re: [PATCH V6 2/7] clocksource: tegra: add Tegra210 timer support

2019-02-15 Thread Daniel Lezcano
On 01/02/2019 17:16, Joseph Lo wrote: > Add support for the Tegra210 timer that runs at oscillator clock > (TMR10-TMR13). We need these timers to work as clock event device and to > replace the ARMv8 architected timer due to it can't survive across the > power cycle of the CPU core or CPUPORESET si

Re: [GIT PULL] ARM: at91: DT for 5.1

2019-02-15 Thread Arnd Bergmann
On Tue, Feb 12, 2019 at 8:28 PM Alexandre Belloni wrote: > AT91 DT for 5.1 > > - Enable QSPI NOR on sama5d2 SoM1 > - replace deprecated gpio-key,wakeup property > Pulled into arm/dt, thanks! Arnd

[PATCH][next] mtd: spi-nor: cadence-quadspi: fix spelling mistake: "Couldnt't" -> "Couldn't"

2019-02-15 Thread Colin King
From: Colin Ian King There is a spelling mistake in a dev_error message. Fix it. Signed-off-by: Colin Ian King --- drivers/mtd/spi-nor/cadence-quadspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/cadence-quadspi.c b/drivers/mtd/spi-nor/cadence-quad

Re: [PATCH][next] mlxsw: core: fix spelling mistake "temprature" -> "temperature"

2019-02-15 Thread Ido Schimmel
On Fri, Feb 15, 2019 at 03:11:53PM +, Colin King wrote: > From: Colin Ian King > > There is a spelling mistake in several dev_err messages, fix these. > > Signed-off-by: Colin Ian King Reviewed-by: Ido Schimmel Thanks!

Re: [PATCH V2 2/2] rpmsg: add syslog redirection driver

2019-02-15 Thread Andy Shevchenko
On Fri, Feb 15, 2019 at 12:31:17AM +0800, xiang xiao wrote: > On Thu, Feb 14, 2019 at 9:09 PM Andy Shevchenko > wrote: > > On Thu, Feb 14, 2019 at 02:02:38PM +0800, Xiang Xiao wrote: > > > This driver allows the remote processor to redirect the output of > > > syslog or printf into the kernel log

[tip:x86/uv] x86/platform/UV: Remove unnecessary #ifdef CONFIG_EFI

2019-02-15 Thread tip-bot for Hedi Berriche
Commit-ID: 30ad3e031d2feae075cd5fd2c443baa2d86c0195 Gitweb: https://git.kernel.org/tip/30ad3e031d2feae075cd5fd2c443baa2d86c0195 Author: Hedi Berriche AuthorDate: Wed, 13 Feb 2019 19:34:10 + Committer: Borislav Petkov CommitDate: Fri, 15 Feb 2019 15:05:15 +0100 x86/platform/UV: Remo

Re: [GIT PULL] arm64: dts: uniphier: UniPhier DT updates for v5.1

2019-02-15 Thread Arnd Bergmann
On Fri, Feb 15, 2019 at 1:13 AM Masahiro Yamada wrote: > > > UniPhier ARM64 SoC DT updates for v5.1 > > - Add PCI Express controller nodes > Pulled into arm/dt, thanks! Arnd

Re: [Xen-devel][PATCH 1/2] xen/gntdev: Do not destroy context while dma-bufs are in use

2019-02-15 Thread Oleksandr Andrushchenko
On 2/15/19 5:03 PM, Boris Ostrovsky wrote: On 2/14/19 9:23 AM, Oleksandr Andrushchenko wrote: /* DMA buffer export support. */ @@ -311,6 +317,7 @@ static void dmabuf_exp_release(struct kref *kref) dmabuf_exp_wait_obj_signal(gntdev_dmabuf->priv, gntdev_dmabuf); list_del(&gntde

Re: [PATCH v15 14/15] tracing: Add alternative synthetic event trace action test case

2019-02-15 Thread Masami Hiramatsu
Hi Tom, On Wed, 13 Feb 2019 17:42:54 -0600 Tom Zanussi wrote: > From: Tom Zanussi > > Add a test case for the alternative trace( synthetic event generation syntax. > > Signed-off-by: Tom Zanussi This looks good to me. Acked-by: Masami Hiramatsu Thank you! > --- > .../inter-event/trigge

<    1   2   3   4   5   6   7   8   9   10   >