Re: [patch 05/16] mm: Allow special mappings with user access cleared

2017-12-13 Thread Peter Zijlstra
On Wed, Dec 13, 2017 at 04:00:07PM +0100, Peter Zijlstra wrote: > On Wed, Dec 13, 2017 at 05:43:39PM +0300, Kirill A. Shutemov wrote: > > > am I perchance looking at the wrong tee? > > > > I'm looking at Linus' tree. > > Clearly I'm not synced up enough... :/ > > > It was changed recently: > >

Re: TSC x86 fixes for LTS kernel 4.9.x

2017-12-13 Thread Thomas Gleixner
On Wed, 13 Dec 2017, Greg KH wrote: > On Wed, Dec 13, 2017 at 11:45:20AM +0200, Dan Aloni wrote: > > # git log 8c9b9d87b855 --oneline -n 19 --reverse --pretty="%h # %s" | awk > > -F" " '{print "git cherry-pick -x " $0}' > > > > git cherry-pick -x 47c95a46d0fa # x86/tsc: Add X86_FEATURE_TSC_KNOWN_

[PATCH 7/8] staging: pi433: avoid logging ENOMEM messages

2017-12-13 Thread Valentin Vidic
Fixes checkpatch warning: WARNING: Possible unnecessary 'out of memory' message Signed-off-by: Valentin Vidic --- drivers/staging/pi433/pi433_if.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index 8

[PATCH 6/8] staging: pi433: use defines for shifting register values

2017-12-13 Thread Valentin Vidic
Avoid shifting by magic numbers and use defines instead: SHIFT_DATAMODUL_MODULATION_TYPE SHIFT_LNA_CURRENT_GAIN Signed-off-by: Valentin Vidic --- drivers/staging/pi433/rf69.c | 4 ++-- drivers/staging/pi433/rf69_registers.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-)

[PATCH 4/8] staging: pi433: add parentheses to mask and shift

2017-12-13 Thread Valentin Vidic
Fixes checkpatch warning: WARNING: Possible precedence defect with mask then right shift - may need parentheses Signed-off-by: Valentin Vidic --- drivers/staging/pi433/rf69.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/pi433/rf69.c b/drivers/stagin

[PATCH v2 0/7] x86/kvm/hyperv: stable clocksorce for L2 guests when running nested KVM on Hyper-V

2017-12-13 Thread Vitaly Kuznetsov
Changes since v1: - PATCH5 "x86/irq: Count Hyper-V reenlightenment interrupts" added [Michael Kelley] - PATCH3 "x86/hyper-v: reenlightenment notifications support" changes: - rename register_hv_tsc_update/unregister_hv_tsc_update() to set_hv_tscchange_cb()/clear_hv_tscchange_cb() to avoid t

[PATCH v2 1/7] x86/hyper-v: check for required priviliges in hyperv_init()

2017-12-13 Thread Vitaly Kuznetsov
In hyperv_init() we presume we always have access to VP index and hypercall MSRs while according to the specification we should check if we're allowed to access the corresponding MSRs before accessing them. Signed-off-by: Vitaly Kuznetsov --- arch/x86/hyperv/hv_init.c | 9 - 1 file chang

[PATCH v2 2/7] x86/hyper-v: add a function to read both TSC and TSC page value simulateneously

2017-12-13 Thread Vitaly Kuznetsov
This is going to be used from KVM code where we need to get both TSC and TSC page value. When Hyper-V code is compiled out just return rdtsc(), this will allow us to avoid ugly ifdefs in non-Hyper-V code. Signed-off-by: Vitaly Kuznetsov --- arch/x86/hyperv/hv_init.c | 1 + arch/x86/inclu

[PATCH v2 3/7] x86/hyper-v: reenlightenment notifications support

2017-12-13 Thread Vitaly Kuznetsov
Hyper-V supports Live Migration notification. This is supposed to be used in conjunction with TSC emulation: when we are migrated to a host with different TSC frequency for some short period host emulates our accesses to TSC and sends us an interrupt to notify about the event. When we're done updat

[PATCH v2 4/7] x86/hyper-v: redirect reenlightment notifications on CPU offlining

2017-12-13 Thread Vitaly Kuznetsov
It is very unlikely for CPUs to get offlined when we run on Hyper-V as we have a protection in vmbus module which prevents it when we have any VMBus devices assigned. This, however, may change in future if an option to reassign an already active channel will be added. It is also possible to run wi

[PATCH v2 7/7] x86/kvm: support Hyper-V reenlightenment

2017-12-13 Thread Vitaly Kuznetsov
When we run nested KVM on Hyper-V guests we need to update masterclocks for all guests when L1 migrates to a host with different TSC frequency. Implement the procedure in the following way: - Pause all guests. - Tell our host (Hyper-V) to stop emulating TSC accesses. - Update our gtod copy, recompu

[PATCH v2 5/7] x86/irq: Count Hyper-V reenlightenment interrupts

2017-12-13 Thread Vitaly Kuznetsov
Hyper-V reenlightenment interrupts arrive when the VM is migrated, we're not supposed to see many of them. However, it may be important to know that the event has happened in case we have L2 nested guests. Signed-off-by: Vitaly Kuznetsov --- arch/x86/hyperv/hv_init.c | 2 ++ arch/x86/includ

[PATCH v2 6/7] x86/kvm: pass stable clocksource to guests when running nested on Hyper-V

2017-12-13 Thread Vitaly Kuznetsov
Currently, KVM is able to work in 'masterclock' mode passing PVCLOCK_TSC_STABLE_BIT to guests when the clocksource we use on the host is TSC. When running nested on Hyper-V we normally use a different one: TSC page which is resistant to TSC frequency changes on event like L1 migration. Add support

Re: [PATCH 1/1] staging: rtl8723bs: make memcmp() calls consistent

2017-12-13 Thread Rasmus Villemoes
On 2017-12-13 15:49, Hans de Goede wrote: > Hi, > > On 13-12-17 12:47, Greg Kroah-Hartman wrote: >> On Sun, Dec 10, 2017 at 08:35:12PM +0100, Nicolas Iooss wrote: >>> rtw_pm_set() uses memcmp() with 5-chars strings and a length of 4 when >>> parsing extra, and then parses extra+4 as an int: >>> >>

Re: [patch 05/16] mm: Allow special mappings with user access cleared

2017-12-13 Thread Dave Hansen
On 12/13/2017 04:57 AM, Kirill A. Shutemov wrote: > Dave, what is effect of this on protection keys? The goal was to make pkeys-protected userspace memory access _consistent_ with normal access. Specifically, we want a kernel to disallow access (or writes) to memory where userspace mapping has a

Re: [PATCH] arm64: dts: hisilicon: Add hi3660 cpu capacity-dmips-mhz information

2017-12-13 Thread Valentin Schneider
Hi Leo, On 12/13/2017 02:53 PM, Leo Yan wrote: Hi Valentin, On Wed, Dec 13, 2017 at 02:21:06PM +, Valentin Schneider wrote: The following dt entries are added: cpus [0-3] (Cortex A53): - capacity-dmips-mhz = <592>; cpus [4-7] (Cortex A73): - capacity-dmips-mhz = <1024>; Thos

[PATCH v4 net-next 0/4] bpftool: cgroup bpf operations

2017-12-13 Thread Roman Gushchin
This patchset adds basic cgroup bpf operations to bpftool. Right now there is no convenient way to perform these operations. The /samples/bpf/load_sock_ops.c implements attach/detacg operations, but only for BPF_CGROUP_SOCK_OPS programs. Bps (part of bcc) implements bpf introspection, but lacks an

[PATCH v4 net-next 1/4] libbpf: add ability to guess program type based on section name

2017-12-13 Thread Roman Gushchin
The bpf_prog_load() function will guess program type if it's not specified explicitly. This functionality will be used to implement loading of different programs without asking a user to specify the program type. In first order it will be used by bpftool. Signed-off-by: Roman Gushchin Cc: Alexei

[PATCH v4 net-next 4/4] bpftool: implement cgroup bpf operations

2017-12-13 Thread Roman Gushchin
This patch adds basic cgroup bpf operations to bpftool: cgroup list, attach and detach commands. Usage is described in the corresponding man pages, and examples are provided. Syntax: $ bpftool cgroup list CGROUP $ bpftool cgroup attach CGROUP ATTACH_TYPE PROG [ATTACH_FLAGS] $ bpftool cgroup detac

[PATCH v4 net-next 3/4] bpftool: implement prog load command

2017-12-13 Thread Roman Gushchin
Add the prog load command to load a bpf program from a specified binary file and pin it to bpffs. Usage description and examples are given in the corresponding man page. Syntax: $ bpftool prog load OBJ FILE FILE is a non-existing file on bpffs. Signed-off-by: Roman Gushchin Cc: Alexei Starovoi

[PATCH v4 net-next 2/4] libbpf: prefer global symbols as bpf program name source

2017-12-13 Thread Roman Gushchin
Libbpf picks the name of the first symbol in the corresponding elf section to use as a program name. But without taking symbol's scope into account it may end's up with some local label as a program name. E.g.: $ bpftool prog 1: type 15 name LBB0_10tag 0390a5136ba23f5c loaded_at Dec 0

Re: [PATCH] ptp: make PTP a menuconfig to ease disabling it all

2017-12-13 Thread Richard Cochran
On Wed, Dec 13, 2017 at 10:01:15AM +0100, Vincent Legoll wrote: > I don't think there are alternatives available in Kconfig to achieve > the goal of easing the management of a .config with menuconfig. > > Do you have any idea about how to do it without using menuconfig ? scripts/config HTH, Rich

Re: About the try to remove cross-release feature entirely by Ingo

2017-12-13 Thread Bart Van Assche
On Wed, 2017-12-13 at 16:13 +0900, Byungchul Park wrote: > In addition, I want to say that the current level of > classification is much less than 100% but, since we > have annotated well to suppress wrong reports by > rough classifications, finally it does not come into > view by original lockdep

Re: [PATCH 8/8] staging: pi433: replace printk calls with dev_dbg

2017-12-13 Thread Valentin Vidic
On Wed, Dec 13, 2017 at 05:52:36PM +0300, Dan Carpenter wrote: > On Wed, Dec 13, 2017 at 03:21:56PM +0100, Valentin Vidic wrote: > > drivers/staging/pi433/pi433_if.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/staging/pi433/pi433_if.c > > b/drivers/

Re: [PATCH 4/8] staging: pi433: add parentheses to mask and shift

2017-12-13 Thread Marcus Wolf
Am 13.12.2017 um 16:21 schrieb Valentin Vidic: Fixes checkpatch warning: WARNING: Possible precedence defect with mask then right shift - may need parentheses Signed-off-by: Valentin Vidic --- drivers/staging/pi433/rf69.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

Re: [BUG]kernel softlockup due to sidtab_search_context run for long time because of too many sidtab context node

2017-12-13 Thread Stephen Smalley
On Wed, 2017-12-13 at 09:25 +, yangjihong wrote: > Hello,  > > I am doing stressing testing on 3.10 kernel(centos 7.4), to > constantly starting numbers of docker ontainers with selinux enabled, > and after about 2 days, the kernel softlockup panic: >    [] sched_show_task+0xb8/0x120 >  [] sho

Re: Crash in cgroup_procs_show

2017-12-13 Thread Tejun Heo
Hello, Laura. On Tue, Dec 12, 2017 at 04:38:33PM -0800, Laura Abbott wrote: > Hi, > > Fedora got a bug report on 4.14.4 of a crash on > reboot https://bugzilla.redhat.com/show_bug.cgi?id=1525279 > > BUG: unable to handle kernel NULL pointer dereference at 0254 > IP: __task_pid_nr_n

Re: [PATCH 6/8] staging: pi433: use defines for shifting register values

2017-12-13 Thread Marcus Wolf
Am 13.12.2017 um 16:21 schrieb Valentin Vidic: Avoid shifting by magic numbers and use defines instead: SHIFT_DATAMODUL_MODULATION_TYPE SHIFT_LNA_CURRENT_GAIN Signed-off-by: Valentin Vidic --- drivers/staging/pi433/rf69.c | 4 ++-- drivers/staging/pi433/rf69_registers.h |

Re: [PATCH] vfio: Simplify capability helper

2017-12-13 Thread Auger Eric
Hi, On 13/12/17 16:04, Auger Eric wrote: > Hi Peter, > > On 13/12/17 07:49, Peter Xu wrote: >> On Tue, Dec 12, 2017 at 12:59:39PM -0700, Alex Williamson wrote: >>> The vfio_info_add_capability() helper requires the caller to pass a >>> capability ID, which it then uses to fill in header fields, a

Re: [patch 05/16] mm: Allow special mappings with user access cleared

2017-12-13 Thread Peter Zijlstra
On Wed, Dec 13, 2017 at 07:14:41AM -0800, Dave Hansen wrote: > On 12/13/2017 04:57 AM, Kirill A. Shutemov wrote: > > Dave, what is effect of this on protection keys? > > The goal was to make pkeys-protected userspace memory access > _consistent_ with normal access. Specifically, we want a kernel

Re: [PATCH] ARM: dts: omap3-evm: Fix missing NAND partition information

2017-12-13 Thread Derald D. Woods
On Wed, Dec 13, 2017 at 04:05:06PM +0100, Ladislav Michl wrote: > On Wed, Dec 13, 2017 at 07:44:25AM -0600, Derald D. Woods wrote: > > On Tue, Dec 12, 2017 at 06:13:51PM -0600, Adam Ford wrote: > > > On Dec 12, 2017 12:41 PM, "Ladislav Michl" wrote: > > > > > > On Tue, Dec 12, 2017 at 12:24:02PM

[PATCH 5/8] drm/sun4i: Add a driver for the display frontend

2017-12-13 Thread Maxime Ripard
The display frontend is an hardware block that can be used to implement some more advanced features like hardware scaling or colorspace conversions. It can also be used to implement the output format of the VPU. Let's create a minimal driver for it that will only enable the hardware scaling featur

[PATCH 0/8] drm/sun4i: Support the Display Engine frontend

2017-12-13 Thread Maxime Ripard
Hi, This is a first serie to enable the display engine frontend. This hardware block is found in the first generation Display Engine from Allwinner. Its role is to implement more advanced features that the associated backend, even though the backend alone can be used (and was used so far) for bas

[PATCH 7/8] drm/sun4i: sun4i_layer: Add a custom atomic_check for the frontend

2017-12-13 Thread Maxime Ripard
Now that we have everything in place, we can start enabling the frontend. This is more difficult than one would assume since there can only be one plane using the frontend per-backend. We therefore need to make sure that the userspace will not try to setup multiple planes using it, since that woul

[PATCH 8/8] ARM: dts: sun8i: a33 Enable our display frontend

2017-12-13 Thread Maxime Ripard
The display frontend can be used to do hardware scaling, colorspaces conversion or to implement the buffer format output by the Cedar VPU. Since we're starting to have some support for it in the DRM driver, let's enable its DT node. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-a33.d

[PATCH v2] mm/slab: Do not hash pointers when debugging slab

2017-12-13 Thread Geert Uytterhoeven
If CONFIG_DEBUG_SLAB/CONFIG_DEBUG_SLAB_LEAK are enabled, the slab code prints extra debug information when e.g. corruption is detected. This includes pointers, which are not very useful when hashed. Fix this by using %px to print unhashed pointers instead where it makes sense, and by removing the

[PATCH 6/8] drm/sun4i: sun4i_layer: Wire in the frontend

2017-12-13 Thread Maxime Ripard
Now that we have a driver, we can make use of it. This is done by adding a flag to our custom plane state that will trigger whether we should use the frontend on that particular plane or not. The rest is just plumbing to set up the backend to not perform the DMA but receive its data from the front

[PATCH 4/8] drm/sun4i: crtc: Add a custom crtc atomic_check

2017-12-13 Thread Maxime Ripard
We have some restrictions on what the planes and CRTC can provide that are tied to only one generation of display engines. For example, on the first generation, we can only have one YUV plane or one plane that uses the frontend output. Let's allow our engines to provide an atomic_check callback t

Re: [PATCH v3 03/12] media: rkisp1: Add user space ABI definitions

2017-12-13 Thread Hans Verkuil
On 06/12/17 12:19, Jacob Chen wrote: > From: Jeffy Chen > > Add the header for userspace > > Signed-off-by: Jeffy Chen > Signed-off-by: Jacob Chen > --- > include/uapi/linux/rkisp1-config.h | 785 > + > 1 file changed, 785 insertions(+) > create mode 1006

[PATCH 1/8] drm/sun4i: backend: Move line stride setup to buffer setup function

2017-12-13 Thread Maxime Ripard
Setup the line stride in the buffer setup function, since it's tied to the buffer itself, and is not needed when we do not set the buffer in the backend. This is for example the case when using the frontend and then routing its output to the backend. Signed-off-by: Maxime Ripard --- drivers/gpu

[PATCH 3/8] drm/sun4i: sun4i_layer: Add a custom plane state

2017-12-13 Thread Maxime Ripard
We will need to store some additional data in the future to the state. Create a custom plane state that will embed those data, in order to store the pipe or whether or not that plane should use the frontend. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_layer.c | 48 ++

[PATCH 2/8] drm/sun4i: backend: Allow a NULL plane pointer to retrieve the format

2017-12-13 Thread Maxime Ripard
The function converting the DRM format to its equivalent in the backend registers was assuming that we were having a plane. However, we might want to use that function when setting up a plane using the frontend, in which case we will not have a plane associated to the backend's layer. Yet, we stil

Re: [PATCH] vfio: Simplify capability helper

2017-12-13 Thread Alex Williamson
On Wed, 13 Dec 2017 16:04:48 +0100 Auger Eric wrote: > Hi Peter, > > On 13/12/17 07:49, Peter Xu wrote: > > On Tue, Dec 12, 2017 at 12:59:39PM -0700, Alex Williamson wrote: > >> The vfio_info_add_capability() helper requires the caller to pass a > >> capability ID, which it then uses to fill i

Re: [PATCH] ACPI, APEI, Fix use resource_size

2017-12-13 Thread Borislav Petkov
On Wed, Dec 13, 2017 at 01:19:55AM +0100, Rafael J. Wysocki wrote: > On Monday, December 11, 2017 4:44:31 PM CET Vasyl Gomonovych wrote: > > Use resource_size function on resource object > > Underneath __request_region set res->end to start + n - 1 > > Lets use resourse_size to set value properly.

Re: [PATCH 2/3] regmap: don't create the debugfs entries if locking is disabled

2017-12-13 Thread Mark Brown
On Wed, Dec 13, 2017 at 10:28:11AM +0100, Bartosz Golaszewski wrote: > User space can initiate concurrent access to regmap over debugfs and, > if the locking is disabled, we can't protect it. Don't create the > debugfs entries at all in this case. I (probably unsurprisingly) prefer my version that

Re: [PATCH v2] writeback: synchronize sync(2) against cgroup writeback membership switches

2017-12-13 Thread Tejun Heo
Hello, On Wed, Dec 13, 2017 at 12:00:04PM +0100, Jan Kara wrote: > OK, but this effectively prevents writeback from sync_inodes_sb() to ever > make inode switch wbs. Cannot that be abused in some way like making sure > writeback of our memcg is "invisible" by forcing it out using sync(2)? It > jus

Re: [PATCH] platform/x86: dell-rbtn: Block comments use * on subsequent lines

2017-12-13 Thread Joe Perches
On Wed, 2017-12-13 at 12:41 +, Dhaval Shah wrote: > > If anyone does conversions of these license texts > > you have to be _extremely_ careful about what > > specific license identifier you use. > > This license includes the text > > "or (at your option) any later version" > > which is

Re: [PATCH v5] ASoC: TSCS42xx: Add support for Tempo Semiconductor's TSCS42xx audio CODEC

2017-12-13 Thread Steven Eckhoff
On Wed, Dec 13, 2017 at 10:47:32AM +, Mark Brown wrote: > The things the driver is doing automatically to mute the DACs and ADCs > should be moved to user control if they're not suitable for doing > automatically. > The mutes can work normally without the PLL stuff. I have removed the PLL stuf

Re: [PATCH 1/1] arm: sunxi: Add alternative pins for spi0

2017-12-13 Thread Maxime Ripard
Hi, On Wed, Dec 13, 2017 at 09:44:34AM +0200, Stefan Mavrodiev wrote: > Allwinner A10/A13/A20 SoCs have pinmux for spi0 > on port C. The patch adds these pins in the respective > dts includes. > > Signed-off-by: Stefan Mavrodiev Do you have any boards that are using these? We won't merge that

Re: [PATCH] cgroup/cpuset: fix circular locking dependency

2017-12-13 Thread Tejun Heo
Hello, Prateek. On Wed, Dec 13, 2017 at 07:58:24PM +0530, Prateek Sood wrote: > Did you mean something like below. If not then could you > please share a patch for this problem in > cgroup_transfer_tasks(). Oh we surely can add a new iterator but we can just count in cgroup_transfer_tasks() too,

Re: [PATCH v4] perf-probe: Support escaped character in parser

2017-12-13 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 13, 2017 at 10:40:24PM +0900, Masami Hiramatsu escreveu: > On Tue, 12 Dec 2017 12:27:24 -0300 > Arnaldo Carvalho de Melo wrote: > > > Em Wed, Dec 13, 2017 at 12:05:12AM +0900, Masami Hiramatsu escreveu: > > > Support the special characters escaped by '\' in parser. > > > This allows u

Re: [PATCH 01/10] ASoC: tlv320aic32x4: Remove filename from header and switch to SPDX

2017-12-13 Thread Andrew F. Davis
On 12/12/2017 08:19 PM, Joe Perches wrote: > On Tue, 2017-12-12 at 16:43 -0600, Andrew F. Davis wrote: >> The filename is often wrong after moves and adds nothing of value, >> lets drop it. While already here, switch to SPDX. > [] >> diff --git a/sound/soc/codecs/tlv320aic32x4-i2c.c >> b/sound/soc

Re: [PATCH 2/3] regmap: don't create the debugfs entries if locking is disabled

2017-12-13 Thread Bartosz Golaszewski
2017-12-13 16:39 GMT+01:00 Mark Brown : > On Wed, Dec 13, 2017 at 10:28:11AM +0100, Bartosz Golaszewski wrote: >> User space can initiate concurrent access to regmap over debugfs and, >> if the locking is disabled, we can't protect it. Don't create the >> debugfs entries at all in this case. > > I

Re: [PATCH v4 4/4] ARM: pinctrl: sunxi-pinctrl: fix pin funtion can not be match correctly.

2017-12-13 Thread Maxime Ripard
Hi, Thanks for your patch! On Wed, Dec 13, 2017 at 10:47:48PM +0800, hao_zhang wrote: > Pin function can not be match correctly when SUNXI_PIN describe with > mutiple variant and same function. > > such as: > on pinctrl-sun4i-a10.c > > SUNXI_PIN(SUNXI_PINCTRL_PIN(B, 2), > SUNXI_FU

Applied "regmap: rename regmap_lock_unlock_empty() to regmap_lock_unlock_none()" to the regmap tree

2017-12-13 Thread Mark Brown
The patch regmap: rename regmap_lock_unlock_empty() to regmap_lock_unlock_none() has been applied to the regmap tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in th

Re: [patch 05/16] mm: Allow special mappings with user access cleared

2017-12-13 Thread Dave Hansen
On 12/13/2017 07:32 AM, Peter Zijlstra wrote: >> This will fault writing a byte to 'addr': >> >> char *addr = malloc(PAGE_SIZE); >> pkey_mprotect(addr, PAGE_SIZE, 13); >> pkey_deny_access(13); >> *addr[0] = 'f'; >> >> But this will write one byte to addr successfully (if it uses

Re: [PATCH v4 1/4] dt-bindings: pwm: binding allwinner sun8i R40/V40/T3.

2017-12-13 Thread Maxime Ripard
Hi, On Wed, Dec 13, 2017 at 10:43:09PM +0800, hao_zhang wrote: > This patch adds allwinner R40, V40, T3 pwm binding documents. > > Signed-off-by: hao_zhang > --- > Documentation/devicetree/bindings/pwm/pwm-sun8i.txt | 18 ++ > 1 file changed, 18 insertions(+) > create mode 1006

Re: [PATCH] regmap: Disable debugfs when locking is disabled

2017-12-13 Thread Bartosz Golaszewski
2017-12-12 18:13 GMT+01:00 Mark Brown : > The recently added support for disabling the regmap internal locking left > debugfs enabled for devices with the locking disabled. This is a problem > since debugfs allows userspace to do things like initiate reads from the > hardware which will use the scr

Re: [PATCH 01/10] ASoC: tlv320aic32x4: Remove filename from header and switch to SPDX

2017-12-13 Thread Joe Perches
On Wed, 2017-12-13 at 09:44 -0600, Andrew F. Davis wrote: > On 12/12/2017 08:19 PM, Joe Perches wrote: > > On Tue, 2017-12-12 at 16:43 -0600, Andrew F. Davis wrote: > > > The filename is often wrong after moves and adds nothing of value, > > > lets drop it. While already here, switch to SPDX. > >

Re: [PATCH 01/10] ASoC: tlv320aic32x4: Remove filename from header and switch to SPDX

2017-12-13 Thread Andrew F. Davis
On 12/13/2017 09:44 AM, Andrew F. Davis wrote: > On 12/12/2017 08:19 PM, Joe Perches wrote: >> On Tue, 2017-12-12 at 16:43 -0600, Andrew F. Davis wrote: >>> The filename is often wrong after moves and adds nothing of value, >>> lets drop it. While already here, switch to SPDX. >> [] >>> diff --git

Re: [PATCH 01/10] ASoC: tlv320aic32x4: Remove filename from header and switch to SPDX

2017-12-13 Thread Andrew F. Davis
On 12/13/2017 09:50 AM, Joe Perches wrote: > On Wed, 2017-12-13 at 09:44 -0600, Andrew F. Davis wrote: >> On 12/12/2017 08:19 PM, Joe Perches wrote: >>> On Tue, 2017-12-12 at 16:43 -0600, Andrew F. Davis wrote: The filename is often wrong after moves and adds nothing of value, lets drop i

Re: [patch 05/16] mm: Allow special mappings with user access cleared

2017-12-13 Thread Peter Zijlstra
On Wed, Dec 13, 2017 at 07:47:46AM -0800, Dave Hansen wrote: > On 12/13/2017 07:32 AM, Peter Zijlstra wrote: > >> This will fault writing a byte to 'addr': > >> > >>char *addr = malloc(PAGE_SIZE); > >>pkey_mprotect(addr, PAGE_SIZE, 13); > >>pkey_deny_access(13); > >>*addr[0] = 'f';

Re: [PATCH] ACPI / CPPC: FIX KASAN global out of bounds warning

2017-12-13 Thread Bjorn Helgaas
On Mon, Dec 04, 2017 at 02:06:54PM +, George Cherian wrote: > Default value of pcc_subspace_idx is -1. > Make sure to check pcc_subspace_idx before using the same as array index. > This will avoid following KASAN warnings too. > @@ -1172,11 +1174,12 @@ int cppc_set_perf(int cpu, struct cppc_pe

Re: Regression: kexec/kdump boot hangs with x86/vector commits

2017-12-13 Thread Yu Chen
On Wed, Dec 13, 2017 at 10:52:56AM +0800, Dave Young wrote: > Hi, > > Kexec reboot and kdump has broken on my laptop for long time with > 4.15.0-rc1+ kernels. With the patch below an early panic been fixed: > https://patchwork.kernel.org/patch/10084289/ > > But still can not get a successful rebo

Re: [PATCH v4 2/4] ARM: PWM: add allwinner sun8i R40/V40/T3 pwm support.

2017-12-13 Thread Maxime Ripard
Hi, Thanks for your patch. It looks mostly good except for a few things below: On Wed, Dec 13, 2017 at 10:44:46PM +0800, hao_zhang wrote: > This patch add allwinner sun8i R40/V40/T3 pwm support. > > Signed-off-by: hao_zhang > --- > drivers/pwm/Kconfig | 10 + > drivers/pwm/Makefile

Re: [PATCH v4 3/4] ARM: dts: add pwm node for r40.

2017-12-13 Thread Maxime Ripard
Hi, On Wed, Dec 13, 2017 at 10:46:28PM +0800, hao_zhang wrote: > This patch add pwm node for r40. > > Signed-off-by: hao_zhang > --- > arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts | 6 ++ > arch/arm/boot/dts/sun8i-r40.dtsi | 13 + > 2 files changed, 19 ins

[PATCH 2/8 v2] staging: pi433: move var declaration to function level

2017-12-13 Thread Valentin Vidic
Fixes checkpatch warning: WARNING: Missing a blank line after declarations Signed-off-by: Valentin Vidic --- v2: use a better variable name drivers/staging/pi433/pi433_if.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/s

Re: Linux 4.15-rc2: Regression in resume from ACPI S3

2017-12-13 Thread Thomas Gleixner
So I was finally able to figure out what the hell is going on: Suspend: - The device suspend code puts the graphics card into a power state != PCI_D0. - Offline non boot CPUs - Break interrupt affinity. Allocate new vector on CPU 0, compose and write MSI message which ends up in: _

Re: [PATCH] iommu/vt-d: Fix shift overflow in qi_flush_dev_iotlb

2017-12-13 Thread Alex Williamson
On Wed, 13 Dec 2017 15:13:55 +0800 Peter Xu wrote: > On Tue, Dec 12, 2017 at 03:43:08PM -0700, Alex Williamson wrote: > > [...] > > > diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c > > index 9a7ffd13c7f0..87888b102057 100644 > > --- a/drivers/iommu/dmar.c > > +++ b/drivers/iommu/dmar.

Re: [PATCH] IPI performance benchmark

2017-12-13 Thread Konrad Rzeszutek Wilk
On Wed, Dec 13, 2017 at 01:47:47PM +0300, Yury Norov wrote: > On Mon, Dec 11, 2017 at 10:33:32AM -0500, Konrad Rzeszutek Wilk wrote: > > On Mon, Dec 11, 2017 at 05:16:00PM +0300, Yury Norov wrote: > > > This benchmark sends many IPIs in different modes and measures > > > time for IPI delivery (firs

Re: [PATCH 2/3] regmap: don't create the debugfs entries if locking is disabled

2017-12-13 Thread Mark Brown
On Wed, Dec 13, 2017 at 04:46:10PM +0100, Bartosz Golaszewski wrote: > 2017-12-13 16:39 GMT+01:00 Mark Brown : > > I (probably unsurprisingly) prefer my version that I posted yesterday as > > it gives us the trivial memory saving of not having the flag if debugfs > > is disabled but more important

Re: [PATCH 3/3][RFC/RFT] PM / sleep: Do not delay the synchronization of MTRR during resume

2017-12-13 Thread Yu Chen
On Wed, Dec 13, 2017 at 01:31:50AM +0100, Rafael J. Wysocki wrote: > On Tuesday, October 31, 2017 10:58:50 AM CET Yu Chen wrote: > > From: Chen Yu > > > > Sometimes it is too late for the APs to synchronize the MTRR > > after all the APs have been brought up. In some cases the BIOS > > might scri

Re: [PATCH] KVM: vmx: shadow more fields that are read/written on every vmexits

2017-12-13 Thread Konrad Rzeszutek Wilk
On Wed, Dec 13, 2017 at 01:13:56PM +0100, Paolo Bonzini wrote: > Compared to when VMCS shadowing was added to KVM, we are reading/writing > a few more fields: the PML index, the interrupt status and the preemption > timer value. The first two are because we are exposing more features > to nested g

Re: [PATCH 1/1] staging: rtl8723bs: make memcmp() calls consistent

2017-12-13 Thread Hans de Goede
Hi, On 13-12-17 16:12, Rasmus Villemoes wrote: On 2017-12-13 15:49, Hans de Goede wrote: Hi, On 13-12-17 12:47, Greg Kroah-Hartman wrote: On Sun, Dec 10, 2017 at 08:35:12PM +0100, Nicolas Iooss wrote: rtw_pm_set() uses memcmp() with 5-chars strings and a length of 4 when parsing extra, and t

Re: [PATCH 01/10] ASoC: tlv320aic32x4: Remove filename from header and switch to SPDX

2017-12-13 Thread Mark Brown
On Wed, Dec 13, 2017 at 09:50:34AM -0600, Andrew F. Davis wrote: > On 12/13/2017 09:44 AM, Andrew F. Davis wrote: > > By the way, do you like these spdx update patch? Or would you rather I > > drop this one and wait to let some script do it for the whole subsystem? > This last question was direct

Re: [PATCH 2/3] reset: meson-axg: add compatible string for Meson-AXG SoC

2017-12-13 Thread Philipp Zabel
Hi Yixun, On Wed, 2017-12-13 at 22:07 +0800, Yixun Lan wrote: > Hi Philipp > > On 11/10/2017 04:46 PM, Yixun Lan wrote: > > Try to add compatible string explictly to support new Meson-AXG SoC. > > > > Signed-off-by: Yixun Lan > > --- > > drivers/reset/reset-meson.c | 2 ++ > > 1 file changed,

Re: [PATCH 1/8] drm/sun4i: backend: Move line stride setup to buffer setup function

2017-12-13 Thread Neil Armstrong
On 13/12/2017 16:33, Maxime Ripard wrote: > Setup the line stride in the buffer setup function, since it's tied to the > buffer itself, and is not needed when we do not set the buffer in the > backend. > > This is for example the case when using the frontend and then routing its > output to the ba

Re: [PATCH 5/5] PCI: cadence: add EndPoint Controller driver for Cadence PCIe controller

2017-12-13 Thread Cyrille Pitchen
Hi Philippe, Le 07/12/2017 à 11:05, Philippe Ombredanne a écrit : > Cyrille, > > > On Tue, Dec 5, 2017 at 10:19 AM, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Friday 01 December 2017 05:50 PM, Lorenzo Pieralisi wrote: >>> On Thu, Nov 23, 2017 at 04:01:50PM +0100, Cyrille Pitchen wrote:

Re: [PATCH 2/8] drm/sun4i: backend: Allow a NULL plane pointer to retrieve the format

2017-12-13 Thread Neil Armstrong
On 13/12/2017 16:33, Maxime Ripard wrote: > The function converting the DRM format to its equivalent in the backend > registers was assuming that we were having a plane. > > However, we might want to use that function when setting up a plane using > the frontend, in which case we will not have a p

Re: [PATCH v2 0/4] Utilization estimation (util_est) for FAIR tasks

2017-12-13 Thread Peter Zijlstra
On Tue, Dec 05, 2017 at 05:10:14PM +, Patrick Bellasi wrote: > With this feature enabled, the measured overhead is in the range of ~1% > on the same HW/SW test configuration. That's quite a lot; did you look where that comes from?

Re: [PATCH v2 2/4] sched/fair: add util_est on top of PELT

2017-12-13 Thread Peter Zijlstra
On Tue, Dec 05, 2017 at 05:10:16PM +, Patrick Bellasi wrote: > + if (cfs_rq->nr_running > 0) { > + util_est = cfs_rq->util_est_runnable; > + util_est -= task_util_est(p); > + if (util_est < 0) > + util_est = 0; > + cfs_rq-

Re: [PATCH 3/8] drm/sun4i: sun4i_layer: Add a custom plane state

2017-12-13 Thread Neil Armstrong
On 13/12/2017 16:33, Maxime Ripard wrote: > We will need to store some additional data in the future to the state. > Create a custom plane state that will embed those data, in order to store > the pipe or whether or not that plane should use the frontend. > > Signed-off-by: Maxime Ripard > --- >

Re: [PATCH 4/8] drm/sun4i: crtc: Add a custom crtc atomic_check

2017-12-13 Thread Neil Armstrong
On 13/12/2017 16:33, Maxime Ripard wrote: > We have some restrictions on what the planes and CRTC can provide that are > tied to only one generation of display engines. > > For example, on the first generation, we can only have one YUV plane or one > plane that uses the frontend output. > > Let's

Re: [PATCH] cgroup/cpuset: fix circular locking dependency

2017-12-13 Thread Tejun Heo
Hello, Prateek. On Wed, Dec 13, 2017 at 01:20:46PM +0530, Prateek Sood wrote: > This change makes the usage of cpuset_hotplug_workfn() from cpu > hotplug path synchronous. For memory hotplug it still remains > asynchronous. Ah, right. > Memory migration happening from cpuset_hotplug_workfn() is

Re: [PATCH v10 08/13] regmap: add SLIMbus support

2017-12-13 Thread Mark Brown
> On Mon, Dec 11, 2017 at 11:43:02PM +, srinivas.kandaga...@linaro.org > wrote: > Mark, can I get an Ack for this patch so I can take it through my tree > with the other patches in this series? I'm actually not seeing a direct dependency here (there's a depends in place stopping the regmap c

Re: [PATCH 6/6] blk-mq: remove REQ_ATOM_STARTED

2017-12-13 Thread Tejun Heo
Hello, On Wed, Dec 13, 2017 at 11:05:11AM +0800, jianchao.wang wrote: > Just don't quite understand the strict definition of "generation" you said. > A allocation->free cycle is a generation ? or a idle->in-flight cycle is a > generation? The idle->in-flight cycle could include the requeue case as

Re: [PATCH 1/1] staging: rtl8723bs: make memcmp() calls consistent

2017-12-13 Thread Greg Kroah-Hartman
On Wed, Dec 13, 2017 at 03:49:12PM +0100, Hans de Goede wrote: > Hi, > > On 13-12-17 12:47, Greg Kroah-Hartman wrote: > > On Sun, Dec 10, 2017 at 08:35:12PM +0100, Nicolas Iooss wrote: > > > rtw_pm_set() uses memcmp() with 5-chars strings and a length of 4 when > > > parsing extra, and then parses

Re: [PATCH 5/8] drm/sun4i: Add a driver for the display frontend

2017-12-13 Thread Neil Armstrong
On 13/12/2017 16:33, Maxime Ripard wrote: > The display frontend is an hardware block that can be used to implement > some more advanced features like hardware scaling or colorspace > conversions. It can also be used to implement the output format of the VPU. > > Let's create a minimal driver for

Re: [PATCH 6/8] drm/sun4i: sun4i_layer: Wire in the frontend

2017-12-13 Thread Neil Armstrong
On 13/12/2017 16:33, Maxime Ripard wrote: > Now that we have a driver, we can make use of it. This is done by > adding a flag to our custom plane state that will trigger whether we should > use the frontend on that particular plane or not. > > The rest is just plumbing to set up the backend to not

Re: [PATCH 7/8] drm/sun4i: sun4i_layer: Add a custom atomic_check for the frontend

2017-12-13 Thread Neil Armstrong
On 13/12/2017 16:33, Maxime Ripard wrote: > Now that we have everything in place, we can start enabling the frontend. > This is more difficult than one would assume since there can only be one > plane using the frontend per-backend. > > We therefore need to make sure that the userspace will not tr

Re: [PATCH 1/6] blk-mq: protect completion path with RCU

2017-12-13 Thread Tejun Heo
Hello, On Wed, Dec 13, 2017 at 11:30:48AM +0800, jianchao.wang wrote: > > + } else { > > + srcu_idx = srcu_read_lock(hctx->queue_rq_srcu); > > + if (!blk_mark_rq_complete(rq)) > > + __blk_mq_complete_request(rq); > > + srcu_read_unlock(hctx->queue_

Re: [PATCH 01/10] ASoC: tlv320aic32x4: Remove filename from header and switch to SPDX

2017-12-13 Thread Andrew F. Davis
On 12/13/2017 06:28 AM, Mark Brown wrote: > On Tue, Dec 12, 2017 at 04:43:02PM -0600, Andrew F. Davis wrote: > >> @@ -1,21 +1,10 @@ >> +// SPDX-License-Identifier: GPL-2.0 >> /* >> - * linux/sound/soc/codecs/tlv320aic32x4-i2c.c >> - * >> * Copyright 2011 NW Digital Radio >> * > > Having the

Re: [PATCH 2/6] blk-mq: replace timeout synchronization with a RCU and generation based scheme

2017-12-13 Thread Tejun Heo
Hi, Jianchao. On Wed, Dec 13, 2017 at 01:07:30PM +0800, jianchao.wang wrote: > Test ok with NVMe Awesome, thanks for testing! -- tejun

Re: [PATCH v4 net-next 4/4] bpftool: implement cgroup bpf operations

2017-12-13 Thread David Ahern
On 12/13/17 8:18 AM, Roman Gushchin wrote: > This patch adds basic cgroup bpf operations to bpftool: > cgroup list, attach and detach commands. > > Usage is described in the corresponding man pages, > and examples are provided. > > Syntax: > $ bpftool cgroup list CGROUP > $ bpftool cgroup attach

Re: [RFC] Sharing PMU counters across compatible events

2017-12-13 Thread Tejun Heo
Hello, Jiri. On Wed, Dec 13, 2017 at 11:18:07AM +0100, Jiri Olsa wrote: > so I can see this to be useful for HW conters only, because > of limited number of regs > > as for the higher level on which this could be implemented I > see some pitfals with event rotations as Peter mentioned and > task/

Re: [PATCH 0/8] drm/sun4i: Support the Display Engine frontend

2017-12-13 Thread Thomas van Kleef
Hi, On 13-12-17 16:33, Maxime Ripard wrote: > Hi, > > This is a first serie to enable the display engine frontend. > > This hardware block is found in the first generation Display Engine from > Allwinner. Its role is to implement more advanced features that the > associated backend, even though

Re: [PATCH v2 2/4] sched/fair: add util_est on top of PELT

2017-12-13 Thread Peter Zijlstra
On Tue, Dec 05, 2017 at 05:10:16PM +, Patrick Bellasi wrote: > +static inline void util_est_dequeue(struct task_struct *p, int flags) > +{ > + struct cfs_rq *cfs_rq = &task_rq(p)->cfs; > + unsigned long util_last = task_util(p); > + bool sleep = flags & DEQUEUE_SLEEP; > + unsign

Re: [PATCH net-next v2 0/5] net: mvpp2: various improvements

2017-12-13 Thread David Miller
From: Antoine Tenart Date: Mon, 11 Dec 2017 09:13:24 +0100 > These patches are sent as a series to avoid any possible conflict, even > though there're not entirely related. I can send them separately if > needed. The series applies on today's net-next tree. ... > Since v1: > - Removed the patc

Re: [RFC] Sharing PMU counters across compatible events

2017-12-13 Thread Tejun Heo
Hello, Peter. On Tue, Dec 12, 2017 at 11:37:36PM +0100, Peter Zijlstra wrote: > That would be a fairly massive change from how perf works today. And the > obvious pain point would be changing the per-cpu event set, which would > mean recomputing all possible combinations of task sets. > > Also no

Re: [PATCH v2 2/4] sched/fair: add util_est on top of PELT

2017-12-13 Thread Peter Zijlstra
On Tue, Dec 05, 2017 at 05:10:16PM +, Patrick Bellasi wrote: > @@ -562,6 +577,12 @@ struct task_struct { > > const struct sched_class*sched_class; > struct sched_entity se; > + /* > + * Since we use se.avg.util_avg to update util_est fields, > + *

  1   2   3   4   5   6   7   8   9   10   >