[PATCH ghak21 V2 4/4] audit: add parent of refused symlink to audit_names

2018-03-12 Thread Richard Guy Briggs
Audit link denied events for symlinks were missing the parent PATH record. Add it. Since the full pathname may not be available, reconstruct it from the path in the nameidata supplied. See: https://github.com/linux-audit/audit-kernel/issues/21 Signed-off-by: Richard Guy Briggs

[PATCH ghak21 V2 3/4] audit: add refused symlink to audit_names

2018-03-12 Thread Richard Guy Briggs
Audit link denied events for symlinks had duplicate PATH records rather than just updating the existing PATH record. Update the symlink's PATH record with the current dentry and inode information. See: https://github.com/linux-audit/audit-kernel/issues/21 Signed-off-by: Richard Guy Briggs

[RFC PATCH 3/4] irqchip/gic-v3-its: change prop_page to per-cpu type to support CommonLPIAff field

2018-03-12 Thread Yang Yingliang
Change prop_page to per-cpu type and add its_cpu_allocate_prop_tables() to allocate LPI property tables. This function is called by each oneline cpu and allocate tables according to the value of CommonLPIAff. The spec defines the field: CommonLPIAff, bits [25:24] The affinity level at

[RFC PATCH 2/4] irqchip/gic-v3-its: replace alloc_pages() with alloc_pages_node()

2018-03-12 Thread Yang Yingliang
Use alloc_pages_node() to allocate pages on current node. Signed-off-by: Yang Yingliang --- drivers/irqchip/irq-gic-v3-its.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c

[RFC PATCH 4/4] irqchip/gic-v3-its: sync config of LPIs if there are more than one prop_page

2018-03-12 Thread Yang Yingliang
The config of LPIs need to be same in each prop_page. So if one prop_page is modified, other prop_page should be updated too. Signed-off-by: Yang Yingliang --- drivers/irqchip/irq-gic-v3-its.c | 39 ++- 1 file changed, 30

[RFC PATCH 0/4] add support for CommonLPIAff field

2018-03-12 Thread Yang Yingliang
This patch set adjust struct rdists to support CommonLPIAff field. This field is described in spec: CommonLPIAff, bits [25:24] The affinity level at which Redistributors share a LPI Configuration table. 00 All Redistributors must share a LPI Configuration table. 01 All Redistributors with the

Re: [PATCH v5 1/6] dt-bindings: add bindings for USB physical connector

2018-03-12 Thread Andrzej Hajda
On 12.03.2018 08:02, Andrzej Hajda wrote: > On 09.03.2018 11:24, Roger Quadros wrote: >> Hi, >> >> On 27/02/18 09:11, Andrzej Hajda wrote: >>> These bindings allow to describe most known standard USB connectors >>> and it should be possible to extend it if necessary. >>> USB connectors, beside USB

Re: [PATCH 1/2] net: rds: drop VLA in rds_for_each_conn_info()

2018-03-12 Thread santosh.shilim...@oracle.com
On 3/11/18 2:07 PM, Salvatore Mesoraca wrote: Avoid VLA[1] by using an already allocated buffer passed by the caller. [1] https://lkml.org/lkml/2018/3/7/621 Signed-off-by: Salvatore Mesoraca --- Thanks for both VLA fixes Salvatore. FWIW, Acked-by: Santosh Shilimkar

Re: [PATCH v5 3/4] arm64: dts: sdm845: Add minimal dts/dtsi files for sdm845 SoC and MTP

2018-03-12 Thread Rajendra Nayak
On 03/10/2018 02:30 AM, Doug Anderson wrote: > Hi, > > On Wed, Feb 21, 2018 at 10:12 PM, Rajendra Nayak > wrote: >> + gcc: clock-controller@10 { >> + compatible = "qcom,gcc-sdm845"; >> + reg = <0x10

Re: [PATCH 2/2] net: rds: drop VLA in rds_walk_conn_path_info()

2018-03-12 Thread santosh.shilim...@oracle.com
On 3/11/18 2:07 PM, Salvatore Mesoraca wrote: Avoid VLA[1] by using an already allocated buffer passed by the caller. [1] https://lkml.org/lkml/2018/3/7/621 Signed-off-by: Salvatore Mesoraca --- Acked-by: Santosh Shilimkar

Re: [RFC PATCH 01/35] syscalls: define goal to not call sys_xyzzy() from within the kernel

2018-03-12 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Sun, Mar 11, 2018 at 10:55 AM, Dominik Brodowski > wrote: > > The syscall entry points to the kernel defined by SYSCALL_DEFINEx() > > and COMPAT_SYSCALL_DEFINEx() should only be called from userspace > > through kernel

Re: [RFC PATCH 02/35] syscalls: use kernel_wait4() instead of sys_wait4()

2018-03-12 Thread Ingo Molnar
* Dominik Brodowski wrote: > All call sites of sys_wait4() set *rusage to NULL. Therefore, there is > no need for the copy_to_user() handling of *rusage, and we can use > kernel_wait4() directly. > > CC: Luis R. Rodriguez > CC: Al Viro

Re: [RFC PATCH ghak21 4/4] audit: add parent of refused symlink to audit_names

2018-03-12 Thread Richard Guy Briggs
On 2018-03-08 19:50, Paul Moore wrote: > On Wed, Feb 14, 2018 at 11:18 AM, Richard Guy Briggs wrote: > > Audit link denied events for symlinks were missing the parent PATH > > record. Add it. Since the full pathname may not be available, > > reconstruct it from the path in the

Re: [PATCH v2 08/13] PCI/portdrv: Simplify PCIe feature permission checking

2018-03-12 Thread Christoph Hellwig
> + * We assume we can manage these PCIe features. Some systems may > + * reserve these for use by the platform itself, e.g., an ACPI BIOS > + * may implement its own AER handling and use _OSC to prevent the > + * OS from interfering. > + */ > + bridge->use_aer = 1; >

Re: [PATCH v2 0/2] drm/panel: Add support for Raydium RM68200 panel

2018-03-12 Thread Thierry Reding
On Fri, Mar 02, 2018 at 04:32:20PM +0100, Philippe Cornu wrote: > The Raydium Semiconductor Corporation RM68200 is a 5.5" 720x1280 > TFT LCD panel connected using a MIPI-DSI video interface. > > Version 2: > - Add Rob Herring Reviewed-by on dt-bindings. > - Update Kconfig & driver thanks to

Re: [PATCH v4.16-rc4 1/2] x86/vdso: on Intel, VDSO should handle CLOCK_MONOTONIC_RAW

2018-03-12 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Mon, Mar 12, 2018 at 08:24:13AM +0100, Ingo Molnar wrote: > > > - Code quality of the submitted patches is atrocious, please run them > > through > >scripts/checkpatch.pl (and make sure they pass) to at least enable the > > reading > >

Re: [PATCH v4.16-rc4 1/2] x86/vdso: on Intel, VDSO should handle CLOCK_MONOTONIC_RAW

2018-03-12 Thread Jason Vas Dias
Good day - On 12/03/2018, Ingo Molnar wrote: > > * Thomas Gleixner wrote: > >> On Mon, 12 Mar 2018, Jason Vas Dias wrote: >> >> checkpatch.pl still reports: >> >>total: 15 errors, 3 warnings, 165 lines checked >> Sorry I didn't see you had responded

[PATCH RESEND v1 2/3] perf report: extend raw dump (-D) out with switch out event type

2018-03-12 Thread Alexey Budankov
Print additional 'yield' tag for PERF_RECORD_SWITCH[_CPU_WIDE] OUT records when event header misc field contains PERF_RECORD_MISC_SWITCH_OUT_YIELD bit set designating synchronization context switch out event: perf report -D -i system-wide.perf: 0x1b9c50 [0x30]: event: 15 . . ... raw event:

[PATCH RESEND v1 3/3] perf script: extend misc field deconding with switch out event type

2018-03-12 Thread Alexey Budankov
Append 'y' sign to 'S' tag designating the type of context switch out event so 'S' means preemption context switch and 'Sy' means synchronization context switch. Documentation is extended to cover new presentation changes. perf script --show-switch-events -F +misc -I -i system-wide.perf:

Re: [PATCH] net/mlx4_en: Fix a memory leak in case of error in 'mlx4_en_init_netdev()'

2018-03-12 Thread Tariq Toukan
On 12/03/2018 12:45 AM, Christophe JAILLET wrote: If 'kzalloc' fails, we must free some memory before returning. Fixes: 67f8b1dcb9ee ("net/mlx4_en: Refactor the XDP forwarding rings scheme") Signed-off-by: Christophe JAILLET ---

Re: LKML admins (syzbot emails are not delivered)

2018-03-12 Thread Dmitry Vyukov
On Thu, Mar 8, 2018 at 9:03 PM, David Miller wrote: > From: Dmitry Vyukov > Date: Thu, 1 Mar 2018 17:22:54 +0100 > >> The problem strikes back. >> Again people complain that a email does not appear on LKML: >>

Re: smp_mb__after_spinlock requirement too strong?

2018-03-12 Thread Peter Zijlstra
On Mon, Mar 12, 2018 at 04:56:00PM +0800, Boqun Feng wrote: > So I think the purpose of smp_mb__after_spinlock() is to provide RCsc > locks, it's just the comments before that may be misleading. We want > RCsc locks in schedule code because we want writes in different critical > section are

Re: [PATCH v2 14/17 4/4] mfd: tps65910: Move an assignment in tps65910_sleepinit()

2018-03-12 Thread Lee Jones
On Fri, 09 Mar 2018, SF Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 9 Mar 2018 09:19:42 +0100 > > Move the assignment for the local variable "dev" so that its setting > will be performed after a configuration check by this function. > >

[PATCH v4.16-rc4 2/2] x86/vdso: on Intel, VDSO should handle CLOCK_MONOTONIC_RAW

2018-03-12 Thread Jason Vas Dias
Currently the VDSO does not handle clock_gettime( CLOCK_MONOTONIC_RAW, ) on Intel / AMD - it calls vdso_fallback_gettime() for this clock, which issues a syscall, having an unacceptably high latency (minimum measurable time or time between measurements) of 300-700ns on 2

Re: [PATCH v3 05/11] clk: tegra: prepare dfll driver for PWM regulator

2018-03-12 Thread Peter De Schrijver
On Thu, Mar 08, 2018 at 10:50:06PM +, Jon Hunter wrote: > > On 06/02/18 16:34, Peter De Schrijver wrote: > > This patch prepares the dfll driver to work with PWM regulators. > > To do this we introduce a new array lut_uv which gives the voltage for > > a given index generated by the dfll

[PATCH] PCI: Support PCIe 4.0 data rate(16.0 GT/s)

2018-03-12 Thread Jay Fang
PCIe 4.0 provides an effective 16.0 GT/second/lane/direction of raw bandwidth. Current PCI driver does not support this new feature. For example, when you read a PCIe 4.0 EP's link data rate by sysfs, it will return "Unknown speed", not the expected "16.0 GT/s". Signed-off-by: Jay Fang

Re: smp_mb__after_spinlock requirement too strong?

2018-03-12 Thread 焦晓冬
On Mon, Mar 12, 2018 at 4:56 PM, Peter Zijlstra wrote: > On Mon, Mar 12, 2018 at 04:56:00PM +0800, Boqun Feng wrote: >> So I think the purpose of smp_mb__after_spinlock() is to provide RCsc >> locks, it's just the comments before that may be misleading. We want >> RCsc locks

Re: [PATCH char-misc 1/1] Drivers: hv: vmbus: Add hooks for per-CPU IRQ

2018-03-12 Thread Greg KH
On Sun, Mar 11, 2018 at 08:49:02PM -0700, Michael Kelley wrote: > Add hooks to enable/disable a per-CPU IRQ for VMbus. These hooks > are in the architecture independent setup and shutdown paths for > Hyper-V. They are being added as staging for upcoming code for > Linux guests on Hyper-V on

Re: [PATCH v6 01/12] drivers: base: Unified device connection lookup

2018-03-12 Thread Hans de Goede
Hi, On 12-03-18 09:13, Heikki Krogerus wrote: On Sun, Mar 11, 2018 at 07:24:18PM +0100, Hans de Goede wrote: Hi all, On 09-03-18 18:53, Greg Kroah-Hartman wrote: On Fri, Mar 02, 2018 at 11:20:46AM +0100, Hans de Goede wrote: From: Heikki Krogerus Several

[tip:x86/mm] x86/boot/compressed/64: Find a place for 32-bit trampoline

2018-03-12 Thread tip-bot for Kirill A. Shutemov
Commit-ID: 3548e131ec6a82208f36e68d31947b0fe244c7a7 Gitweb: https://git.kernel.org/tip/3548e131ec6a82208f36e68d31947b0fe244c7a7 Author: Kirill A. Shutemov AuthorDate: Mon, 26 Feb 2018 21:04:48 +0300 Committer: Ingo Molnar CommitDate:

[tip:x86/mm] x86/boot/compressed/64: Save and restore trampoline memory

2018-03-12 Thread tip-bot for Kirill A. Shutemov
Commit-ID: fb5268354d20b82c12569e325b0d051c09f983f7 Gitweb: https://git.kernel.org/tip/fb5268354d20b82c12569e325b0d051c09f983f7 Author: Kirill A. Shutemov AuthorDate: Mon, 26 Feb 2018 21:04:49 +0300 Committer: Ingo Molnar CommitDate:

Re: [PATCH 2/5] x86/efi: Replace efi_pgd with efi_mm.pgd

2018-03-12 Thread Ard Biesheuvel
On 12 March 2018 at 09:26, Ingo Molnar wrote: > > * Ingo Molnar wrote: > >> > -static pgd_t *efi_pgd; >> > - >> >> Hm, so there's some interaction here with: >> >> 116fef640859: x86/mm/dump_pagetables: Add the EFI pagetable to the debugfs >> 'page_tables'

Re: [PATCH] drm/sun4i: Fix exclusivity of the TCON clocks

2018-03-12 Thread Maxime Ripard
On Sat, Mar 10, 2018 at 12:05:11PM +0100, meg...@megous.com wrote: > From: Ondrej Jirman > > Currently the exclusivity is enabled when the rate is set by > the mode setting functions. These functions are called by > mode_set_nofb callback of drm_crc_helper. Then exclusivity >

[PATCH 12/13] perf bpf: Run begin/end programs

2018-03-12 Thread Jiri Olsa
Running begin and end programs for ebpf object. Link: http://lkml.kernel.org/n/tip-ego7m00cr7sru8l5bjpjw...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-bpf.c | 6 tools/perf/util/bpf-loader.c | 78

[PATCH 11/13] perf bpf: Add helper header files

2018-03-12 Thread Jiri Olsa
Adding following header files with defines for kernel and user space ebpf calls: bpf-helpers.h bpf-userfuncs.h bpf-userapi.h Link: http://lkml.kernel.org/n/tip-sku9te4ouxg6svjtloh2n...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/bpf-helpers.h | 246

[PATCH 10/13] libbpf: Add bpf_object__run_(begin|end) functions

2018-03-12 Thread Jiri Olsa
Add bpf_object__run_(begin|end) functions to run BEGIN/END code for specific object. Link: http://lkml.kernel.org/n/tip-hj1hwb7fshdwco706j22e...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/lib/bpf/libbpf.c | 30 ++ tools/lib/bpf/libbpf.h | 4

[PATCH 13/13] perf samples: Add syscall-count.c object

2018-03-12 Thread Jiri Olsa
Adding syscall-count.c sample, that generates syscall entry calls, like: $ perf bpf -c samples/syscall-counts.c LLVM: dumping samples/syscall-counts.o $ sudo perf bpf -e samples/syscall-counts.o -a BEGIN ^CEND commvalue firefox 182

Re: [PATCH 09/11] kexec_file: Remove mis-use of sh_offset field

2018-03-12 Thread Philipp Rudo
On Mon, 12 Mar 2018 15:42:18 +0800 Dave Young wrote: > Hi Philipp, > On 03/09/18 at 11:02am, Philipp Rudo wrote: > > Hi Dave, > > > > > > On Fri, 9 Mar 2018 11:14:20 +0800 > > Dave Young wrote: > > > > > On 02/26/18 at 04:16pm, Philipp Rudo wrote: >

[PATCH 07/13] libbpf: Make bpf_program__next skip .text section

2018-03-12 Thread Jiri Olsa
Skip .text section in bpf_program__next, so it iterates only throught the probes code. We are about to add .text code support, so the .text section needs to get separated from probes. Link: http://lkml.kernel.org/n/tip-lcftc9k0fby5b5g2o0lhu...@git.kernel.org Signed-off-by: Jiri Olsa

Re: [PATCH] drm/sun4i: Fix an error handling path in 'sun4i_drv_bind()'

2018-03-12 Thread Maxime Ripard
On Mon, Mar 12, 2018 at 12:19:09AM +0100, Christophe JAILLET wrote: > Commit 070badfab767 ("drm/sun4i: call drm_vblank_init with correct number > of crtcs") has moved some code without updating the error handling gotos > accordingly. > > Branch to the correct label and remove a now unused lablel.

[PATCH] m68k/defconfig: Update defconfigs for v4.16-rc5

2018-03-12 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven --- To be combined with "m68k/defconfig: Update defconfigs for v4.16-rc1". arch/m68k/configs/amiga_defconfig| 1 - arch/m68k/configs/apollo_defconfig | 1 - arch/m68k/configs/atari_defconfig| 1 -

[RFT][PATCH v4 0/7] sched/cpuidle: Idle loop rework

2018-03-12 Thread Rafael J. Wysocki
Hi All, Thanks a lot for the feedback so far! This mostly is a re-send of the v3 except for patch 5 that has been updated to address the review comments from Frederic and patch 7 which is new in this series (although I have posted it already in response to the feedback from Doug). In my view it

[RFT][PATCH v4 1/7] time: tick-sched: Reorganize idle tick management code

2018-03-12 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Prepare the scheduler tick code for reworking the idle loop to avoid stopping the tick in some cases. Move away the tick_nohz_start_idle() invocation from __tick_nohz_idle_enter(), rename the latter to __tick_nohz_idle_stop_tick() and define

[RFT][PATCH v4 2/7] sched: idle: Do not stop the tick upfront in the idle loop

2018-03-12 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Push the decision whether or not to stop the tick somewhat deeper into the idle loop. Stopping the tick upfront leads to unpleasant outcomes in case the idle governor doesn't agree with the timekeeping code on the duration of the upcoming idle

Re: [PATCH v9] mmc: Export host capabilities to debugfs.

2018-03-12 Thread Andy Shevchenko
On Mon, 2018-03-12 at 10:01 +0530, Harish Jenny K N wrote: > This patch exports the host capabilities to debugfs > > This idea of sharing host capabilities over debugfs > came up from Abbas Raza > Earlier discussions: > https://lkml.org/lkml/2018/3/5/357 >

[RFT][PATCH v4 5/7] sched: idle: Select idle state before stopping the tick

2018-03-12 Thread Rafael J. Wysocki
From: Rafael J. Wysocki In order to address the issue with short idle duration predictions by the idle governor after the tick has been stopped, reorder the code in cpuidle_idle_call() so that the governor idle state selection runs before tick_nohz_idle_go_idle() and

[RFT][PATCH v4 6/7] cpuidle: menu: Refine idle state selection for running tick

2018-03-12 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If the tick isn't stopped, the target residency of the state selected by the menu governor may be greater than the actual time to the next tick and that means lost energy. To avoid that, make tick_nohz_get_sleep_length() return the current

[RFT][PATCH v4 7/7] cpuidle: menu: Avoid selecting shallow states with stopped tick

2018-03-12 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If the scheduler tick has been stopped already and the governor selects a shallow idle state, the CPU may spend a long time in that state if the selection is based on an inaccurate prediction of idle period duration. That effect turns out to

Re: [PATCH][rds-next] rds: remove redundant variable 'sg_off'

2018-03-12 Thread santosh.shilim...@oracle.com
On 3/11/18 9:27 AM, Colin King wrote: From: Colin Ian King Variable sg_off is assigned a value but it is never read, hence it is redundant and can be removed. Cleans up clang warning: net/rds/message.c:373:2: warning: Value stored to 'sg_off' is never read

Re: [PATCH][rds-next] rds: make functions rds_info_from_znotifier and rds_message_zcopy_from_user static

2018-03-12 Thread santosh.shilim...@oracle.com
On 3/11/18 10:03 AM, Colin King wrote: From: Colin Ian King Functions rds_info_from_znotifier and rds_message_zcopy_from_user are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnins: net/rds/message.c:70:27:

Re: [PATCH v4.16-rc4 1/2] x86/vdso: on Intel, VDSO should handle CLOCK_MONOTONIC_RAW

2018-03-12 Thread Thomas Gleixner
On Mon, 12 Mar 2018, Jason Vas Dias wrote: checkpatch.pl still reports: total: 15 errors, 3 warnings, 165 lines checked > +notrace static u64 vread_tsc_raw(void) > +{ > + u64 tsc, last=gtod->raw_cycle_last; > + if( likely( gtod->has_rdtscp ) ) > + tsc =

[PATCH v2 2/5] soc: mediatek: update power domain data of MT2712

2018-03-12 Thread Weiyi Lu
1. split MFG power domain into MFG/MFG_SC1/MFG_SC2/MFG_SC3 according to MT2712 ECO design change 2. add subdomain support for MT2712 Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 42 +-- 1 file changed, 40

[PATCH v2 4/5] arm64: dts: add clock device nodes of MT2712

2018-03-12 Thread Weiyi Lu
add new clocks according to ECO design change Signed-off-by: Weiyi Lu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi

[PATCH v2 3/5] dt-bindings: clock: add clocks for MT2712

2018-03-12 Thread Weiyi Lu
add new clocks according to ECO design change Signed-off-by: Weiyi Lu --- include/dt-bindings/clock/mt2712-clk.h | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/include/dt-bindings/clock/mt2712-clk.h

Re: [pci PATCH v4 1/4] pci-iov: Add support for unmanaged SR-IOV

2018-03-12 Thread Christoph Hellwig
On Sun, Mar 11, 2018 at 09:59:09PM -0600, Alex Williamson wrote: > I still struggle to understand why we need this "unmanaged" > complication and how a user of the sysfs API is expected to have any > idea whether a PF is managed or unmanaged and why they should care. > Can't we just have a

[PATCH v4.16-rc4 1/3] x86/vdso: on Intel, VDSO should handle CLOCK_MONOTONIC_RAW

2018-03-12 Thread Jason Vas Dias
Currently the VDSO does not handle clock_gettime( CLOCK_MONOTONIC_RAW, ) on Intel / AMD - it calls vdso_fallback_gettime() for this clock, which issues a syscall, having an unacceptably high latency (minimum measurable time or time between measurements) of 300-700ns on 2

Re: [PATCH ghak21 V2 0/4] audit: address ANOM_LINK excess records

2018-03-12 Thread Richard Guy Briggs
On 2018-03-12 02:31, Richard Guy Briggs wrote: > Audit link denied events were being unexpectedly produced in a disjoint > way when audit was disabled, and when they were expected, there were > duplicate PATH records. This patchset addresses both issues for > symlinks and hardlinks. > > This was

Re: [PATCH v6 01/12] drivers: base: Unified device connection lookup

2018-03-12 Thread Heikki Krogerus
On Sun, Mar 11, 2018 at 07:24:18PM +0100, Hans de Goede wrote: > Hi all, > > On 09-03-18 18:53, Greg Kroah-Hartman wrote: > > On Fri, Mar 02, 2018 at 11:20:46AM +0100, Hans de Goede wrote: > > > From: Heikki Krogerus > > > > > > Several frameworks - clk, gpio,

i915: Screen blanking problems with DRRS on HP Elitebook 820

2018-03-12 Thread Juha Erkkilä
Hello folks, I am seeing some blank screen issues with some HP machines that have a product name "HP Elitebook 820 G1". The problem does not occur with all machines with this product name. The problem manifests itself thus that all of a sudden, maybe after an hour or two of use, the laptop

Re: [PATCH v2 00/12] Introduce STM32MP1 clock driver

2018-03-12 Thread Gabriel FERNANDEZ
Many Thanks Mike ! Best Regards Gabriel. On 03/11/2018 11:42 PM, Michael Turquette wrote: > Excerpts from gabriel.fernan...@st.com's message of March 8, 2018 8:53 > am: >> From: Gabriel Fernandez >> >> v2: >>   - Don't use MFD, use existing binding of STM32 RCC. >>  

RE: [PATCH v4 0/7] typec: tcpm: Add sink side support for PPS

2018-03-12 Thread Adam Thomson
On 09 March 2018 17:34, Greg Kroah-Hartman wrote: > On Tue, Jan 02, 2018 at 03:50:48PM +, Adam Thomson wrote: > > This patch set adds sink side support for the PPS feature introduced in the > > USB PD 3.0 specification. > > > > The source PPS supply is represented using the Power Supply

From: Mr.Ahmed Owain

2018-03-12 Thread Mr.Ahmed Owain
Good Day, Please accept my apologies for writing you a surprise letter.I am Mr.Ahmed Owain, account Manager with an investment bank here in Burkina Faso.I have a very important business I want to discuss with you.There is a draft account opened in my firm by a long-time client of our bank.I have

Re: 答复: [PATCH] Delete some unusefull operations for centaur CPU/platform

2018-03-12 Thread Ingo Molnar
* David Wang wrote: > [David] pr->flags.has_cst means BIOS define valid C state table. And at > lease > define 2 entries. On all centaur platform which support C3, this condition is > always true. > [David] Just as the following comment said, we need not execute

[PATCH] can: m_can: select pinctrl state in each suspend/resume function

2018-03-12 Thread Bich HEMON
Make sure to apply the correct pin state in suspend/resume callbacks. Putting pins in sleep state saves power. Signed-off-by: Bich Hemon --- drivers/net/can/m_can/m_can.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/can/m_can/m_can.c

[PATCH v4 2/6] staging: fsl-dpaa2/ethsw: Add Freescale DPAA2 Ethernet Switch driver

2018-03-12 Thread Razvan Stefanescu
Introduce the DPAA2 Ethernet Switch driver, which manages Datapath Switch (DPSW) objects discovered on the MC bus. Suggested-by: Alexandru Marginean Signed-off-by: Razvan Stefanescu --- Changelog: v2: - fix PVID cleanup in

Re: smp_mb__after_spinlock requirement too strong?

2018-03-12 Thread Boqun Feng
On Mon, Mar 12, 2018 at 04:18:00PM +0800, 焦晓冬 wrote: > >> Peter pointed out in this patch https://patchwork.kernel.org/patch/9771921/ > >> that the spinning-lock used at __schedule() should be RCsc to ensure > >> visibility of writes prior to __schedule when the task is to be migrated to > >>

Re: [PATCH] X86/KVM: Update the exit_qualification access bits while walking an address

2018-03-12 Thread Raslan, KarimAllah
On Sun, 2018-03-04 at 10:17 +, Raslan, KarimAllah wrote: > On Fri, 2018-03-02 at 18:41 +0100, Paolo Bonzini wrote: > > > > On 28/02/2018 19:06, KarimAllah Ahmed wrote: > > > > > > > > > ... to avoid having a stale value when handling an EPT misconfig for MMIO > > > regions. > > > > > >

Re: [PATCH 1/2] rtc: s5m: Move enum from rtc.h to rtc-s5m.c

2018-03-12 Thread Lee Jones
On Sat, 10 Mar 2018, Gustavo A. R. Silva wrote: > Move this enum to rtc-s5m.c once it is meaningless to others drivers [1]. > > [1] https://marc.info/?l=linux-rtc=152060068925948=2 > > Signed-off-by: Gustavo A. R. Silva > --- > drivers/rtc/rtc-s5m.c | 11

[PATCH v4.16-rc4 1/2] x86/vdso: on Intel, VDSO should handle CLOCK_MONOTONIC_RAW

2018-03-12 Thread Jason Vas Dias
Currently the VDSO does not handle clock_gettime( CLOCK_MONOTONIC_RAW, ) on Intel / AMD - it calls vdso_fallback_gettime() for this clock, which issues a syscall, having an unacceptably high latency (minimum measurable time or time between measurements) of 300-700ns on 2

Re: [PATCH v3 07/11] dt-bindings: tegra: Update DFLL binding for PWM regulator

2018-03-12 Thread Peter De Schrijver
On Thu, Mar 08, 2018 at 11:21:40PM +, Jon Hunter wrote: > > On 06/02/18 16:34, Peter De Schrijver wrote: > > Add new properties to configure the DFLL PWM regulator support. Also > > add an example and make the I2C clock only required when I2C support is > > used. > > > > Signed-off-by: Peter

Re: [RESEND PATCH v4 1/4] mfd: syscon: Set name of regmap_config

2018-03-12 Thread Lee Jones
On Fri, 09 Mar 2018, Jeffy Chen wrote: > We are now allowing to register debugfs without a valid device, and not > having a valid name will end up using "dummy*" to create debugfs dir. > > Signed-off-by: Jeffy Chen > --- > > Changes in v4: None > Changes in v3: >

[PATCH v2] cpuidle: poll_state: Add time limit to poll_idle()

2018-03-12 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If poll_idle() is allowed to spin until need_resched() returns 'true', it may actually spin for a much longer time than expected by the idle governor, since set_tsk_need_resched() is not always called by the timer interrupt handler. If that

Re: [PATCH 1/2] direct-io: Remove unused DIO_ASYNC_EXTEND flag

2018-03-12 Thread Nikolay Borisov
On 23.02.2018 13:45, Nikolay Borisov wrote: > This flag was added by 6039257378e4 ("direct-io: add flag to allow aio > writes beyond i_size") to support XFS. However, with the rework of > XFS' DIO's path to use iomap in acdda3aae146 ("xfs: use iomap_dio_rw") > it became redundant. So let's

Re: [PATCH v2] x86/microcode/AMD: check microcode file sanity before loading it

2018-03-12 Thread Borislav Petkov
On Sun, Mar 11, 2018 at 04:27:03PM +0100, Maciej S. Szmigiero wrote: > +/* 4k */ > +#define UCODE_EQUIV_CPU_TABLE_MAX_SIZE (256 * sizeof(struct equiv_cpu_entry)) And you came up with that max size how exactly? > +/* If a patch is larger than this the microcode file is surely corrupted */ >

Re: [PATCH 4.9 00/65] 4.9.87-stable review

2018-03-12 Thread Naresh Kamboju
On 12 March 2018 at 15:02, Naresh Kamboju wrote: > On 12 March 2018 at 12:32, Naresh Kamboju wrote: >> On 10 March 2018 at 05:48, Greg Kroah-Hartman >> wrote: >>> This is the start of the stable review cycle for

[BUGFIX PATCH bpf-next] error-injection: Fix to prohibit jump optimization

2018-03-12 Thread Masami Hiramatsu
Since the kprobe which was optimized by jump can not change the execution path, the kprobe for error-injection must not be optimized. To prohibit it, set a dummy post-handler as officially stated in Documentation/kprobes.txt. Fixes: 4b1a29a7f542 ("error-injection: Support fault injection

Re: [RFC PATCH] KVM: arm/arm64: vgic: change condition for level interrupt resampling

2018-03-12 Thread Marc Zyngier
On 12/03/18 02:33, Yang, Shunyong wrote: > Hi, Marc, > > On Sun, 2018-03-11 at 12:17 +, Marc Zyngier wrote: >> On Sun, 11 Mar 2018 01:55:08 + >> Christoffer Dall wrote: >> >>> >>> On Sat, Mar 10, 2018 at 12:20 PM, Marc Zyngier >> m> wrote:

[RFT][PATCH v4 4/7] cpuidle: Return nohz hint from cpuidle_select()

2018-03-12 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Add a new pointer argument to cpuidle_select() and to the ->select cpuidle governor callback to allow a boolean value indicating whether or not the tick should be stopped before entering the selected state to be returned from there. Make the

Re: [PATCH 2/2] net/usb/ax88179_178a: Delete three unnecessary variables in ax88179_chk_eee()

2018-03-12 Thread Oliver Neukum
Am Samstag, den 10.03.2018, 19:26 +0100 schrieb SF Markus Elfring: > From: Markus Elfring > Date: Sat, 10 Mar 2018 18:53:28 +0100 > > Use three values directly for a condition check without assigning them > to intermediate variables. Hi, what is the benefit of

[GIT PULL] phy: for 4.16 -rc

2018-03-12 Thread Kishon Vijay Abraham I
Hi Greg, Please find the pull request for 4.16 -rc cycle below. It has a single patch from Arnd for fixing Kbuild failure in qcom-ufs driver. This should help to get closer to a clean 4.16 build. Kindly merge it in this -rc cycle if it looks okay to you. Thanks Kishon The following changes

Re: [PATCH v2] staging: vchiq_arm: Clear VLA warning

2018-03-12 Thread Tobin C. Harding
On Mon, Mar 12, 2018 at 06:58:04AM +0100, Stefan Wahren wrote: > Hi Tobin, > > > "Tobin C. Harding" hat am 12. März 2018 um 06:46 > > geschrieben: > > > > > > On Mon, Mar 12, 2018 at 12:37:53PM +1100, Tobin C. Harding wrote: > > > The kernel would like to have all stack VLA

[RFC PATCH 1/4] irqchip/gic-v3: add common_aff_lpi field in struct rdists

2018-03-12 Thread Yang Yingliang
Read CommonLPIAff from GICR_TYPER and check whether the values are same in each register. If they are different, prints warning message and set CommonLPIAff to zero. Signed-off-by: Yang Yingliang --- drivers/irqchip/irq-gic-v3.c | 20

Re: [PATCH v3 1/3] clk: tegra: Mark HCLK, SCLK and EMC as critical

2018-03-12 Thread Thierry Reding
On Fri, Mar 09, 2018 at 05:35:46PM +0300, Dmitry Osipenko wrote: > On 08.03.2018 17:44, Thierry Reding wrote: > > On Thu, Mar 01, 2018 at 04:33:29PM +0300, Dmitry Osipenko wrote: > >> On 15.01.2018 13:56, Dmitry Osipenko wrote: > >>> On 10.01.2018 16:59, Dmitry Osipenko wrote: > Machine dies

RE: [PATCH v7] staging: typec: handle vendor defined part and modify drp toggling flow

2018-03-12 Thread Jun Li
> -Original Message- > From: 李書帆 [mailto:leechu...@gmail.com] > Sent: 2018年3月12日 14:57 > To: Jun Li > Cc: Greg Kroah-Hartman ; > heikki.kroge...@linux.intel.com; li...@roeck-us.net; g...@kroah.com; > shufan_...@richtek.com;

Re: [RFC PATCH 35/35] syscalls: do not call sys_close() within the kernel

2018-03-12 Thread Ingo Molnar
* Dominik Brodowski wrote: > --- a/fs/open.c > +++ b/fs/open.c > @@ -1200,7 +1200,7 @@ SYSCALL_DEFINE1(close, unsigned int, fd) > > return retval; > } > -EXPORT_SYMBOL(sys_close); > + > > /* Nit: this introduces a stray newline. > ---

Re: [PATCH RESEND v5] perf/core: Fix installing arbitrary cgroup event into cpu

2018-03-12 Thread Ingo Molnar
* linxiu...@gmail.com wrote: > /* >* Because cgroup events are always per-cpu events, >* this will always be called from the right CPU. >*/ > + /* > + * if only the cgroup is running on this cpu > + * and cpuctx->cgrp == NULL

Re: [RFCv4,19/21] media: vim2m: add request support

2018-03-12 Thread Paul Kocialkowski
Hi, On Sun, 2018-03-11 at 22:42 +0300, Dmitry Osipenko wrote: > Hello, > > On 07.03.2018 19:37, Paul Kocialkowski wrote: > > Hi, > > > > First off, I'd like to take the occasion to say thank-you for your > > work. > > This is a major piece of plumbing that is required for me to add > > support

Re: smp_mb__after_spinlock requirement too strong?

2018-03-12 Thread 焦晓冬
>> Peter pointed out in this patch https://patchwork.kernel.org/patch/9771921/ >> that the spinning-lock used at __schedule() should be RCsc to ensure >> visibility of writes prior to __schedule when the task is to be migrated to >> another CPU. >> >> And this is emphasized at the comment of the

[PATCH 2/5] x86/efi: Replace efi_pgd with efi_mm.pgd

2018-03-12 Thread Ard Biesheuvel
From: Sai Praneeth Since the previous patch added support for efi_mm, let's handle efi_pgd through efi_mm and remove global variable efi_pgd. Signed-off-by: Sai Praneeth Prakhya Cc: "Lee, Chun-Yi" Cc: Borislav

[PATCH 1/5] efi: Use efi_mm in x86 as well as ARM

2018-03-12 Thread Ard Biesheuvel
From: Sai Praneeth Presently, only ARM uses mm_struct to manage efi page tables and efi runtime region mappings. As this is the preferred approach, let's make this data structure common across architectures. Specially, for x86, using this data structure improves

Re: [PATCH] ARM: dts: sun8i: reference tablet design: Enable PMIC power supplies

2018-03-12 Thread Maxime Ripard
On Mon, Mar 12, 2018 at 12:21:16PM +0800, Chen-Yu Tsai wrote: > The A23/A33 reference tablet design has a DC barrel tied to the ACIN > of the PMIC. And being a tablet, it has a Li-Po battery. > > Enable both power supplies in the device tree. > > Signed-off-by: Chen-Yu Tsai

[PATCH 3/5] x86/efi: Use efi_switch_mm() rather than manually twiddling with %cr3

2018-03-12 Thread Ard Biesheuvel
From: Sai Praneeth Use helper function efi_switch_mm() to switch to/from efi_mm when invoking any UEFI runtime services. Likewise, we need to switch back to previous mm (mm context stolen by efi_mm) after the above calls return successfully. We can use

[PATCH 5/5] efi: use string literals for efi_char16_t variable initializers

2018-03-12 Thread Ard Biesheuvel
Now that we unambiguously build the entire kernel with -fshort-wchar, it is no longer necessary to open code efi_char16_t[] initializers as arrays of characters, and we can move to the L"xxx" notation instead. Cc: Arnd Bergmann Cc: Lukas Wunner Signed-off-by: Ard

Re: [PATCH v1 0/2] drm/panel: otm8009a: Add support for the optional power-supply

2018-03-12 Thread Thierry Reding
On Mon, Feb 05, 2018 at 10:45:30AM +0100, Philippe Cornu wrote: > Some boards use a dedicated voltage regulator for this panel. > Add & Document this related optional power-supply property and > add its support in the driver. > > Philippe Cornu (2): > dt-bindings/display/panel: otm8009a: Add

Re: [PATCH] X86/KVM: Update the exit_qualification access bits while walking an address

2018-03-12 Thread Raslan, KarimAllah
On Mon, 2018-03-12 at 08:52 +, Raslan, KarimAllah wrote: > On Sun, 2018-03-04 at 10:17 +, Raslan, KarimAllah wrote: > > > > On Fri, 2018-03-02 at 18:41 +0100, Paolo Bonzini wrote: > > > > > > > > > On 28/02/2018 19:06, KarimAllah Ahmed wrote: > > > > > > > > > > > > > > > > ... to

Re: [PATCH net-next] net: stmmac: remove superfluous wmb() memory barriers

2018-03-12 Thread Niklas Cassel
On Fri, Mar 09, 2018 at 10:15:20AM -0500, David Miller wrote: > From: Jose Abreu > Date: Fri, 9 Mar 2018 10:26:11 + > > > Sorry but I know at least two architectures which don't do a > > wmb() upon an writel [1] [2]. This can be critical if if we are > > accessing

Re: [PATCH] drm/panel: otm8009a: Adopt SPDX identifiers

2018-03-12 Thread Thierry Reding
On Fri, Jan 19, 2018 at 12:05:16PM +0100, Philippe Cornu wrote: > Add SPDX identifiers to OriseTech OTM8009a panel driver. > > Signed-off-by: Philippe Cornu > --- > drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 4 ++-- > 1 file changed, 2 insertions(+), 2

Re: [PATCH v4.16-rc4 1/2] x86/vdso: on Intel, VDSO should handle CLOCK_MONOTONIC_RAW

2018-03-12 Thread Jason Vas Dias
The split patches with no checkpatch.pl failures are attached and were just sent in separate emails to the mailing list . Sorry it took a few tries to get right . This will be my last send today - I'm off to use it at work. Thanks & all the best, Jason

Re: 答复: [PATCH] Delete some unusefull operations for centaur CPU/platform

2018-03-12 Thread Rafael J. Wysocki
On Monday, March 12, 2018 9:40:33 AM CET Ingo Molnar wrote: > > * David Wang wrote: > > > [David] pr->flags.has_cst means BIOS define valid C state table. And at > > lease > > define 2 entries. On all centaur platform which support C3, this condition > > is > >

Re: [PATCH 2/5] x86/efi: Replace efi_pgd with efi_mm.pgd

2018-03-12 Thread Ingo Molnar
* Ingo Molnar wrote: > > -static pgd_t *efi_pgd; > > - > > Hm, so there's some interaction here with: > > 116fef640859: x86/mm/dump_pagetables: Add the EFI pagetable to the debugfs > 'page_tables' directory > > which is in tip:x86/mm. > > Could you please resolve that

  1   2   3   4   5   6   7   8   9   10   >