Re: linux-next: manual merge of the kvm tree with the s390 tree

2016-07-13 Thread David Hildenbrand
> Hi all, > > Today's linux-next merge of the kvm tree got a conflict in: > > arch/s390/mm/gmap.c > > between commit: > > f04540298440 ("s390/mm: fix gmap tlb flush issues") > > from the s390 tree and commit: > > 6ea427bbbd40 ("s390/mm: add reference counter to gmap structure") > > fro

Re: [GIT PULL 00/19] perf/core improvements and fixes

2016-07-13 Thread Ingo Molnar
ime elapsed > > [root@jouet ~]# > > - Arnaldo > > The following changes since commit 7b39cafb7aa68ef8e32a9f51fbe737d96084ca74: > > tools: Work around BITS_PER_LONG related build failure in objtool > (2016-07-13 09:37:43 +0200) > > are available in the git reposit

Re: [PATCH v2 0/5] Add support for EPT execute only for nested hypervisors

2016-07-13 Thread Paolo Bonzini
On 13/07/2016 17:47, Bandan Das wrote: >>> I wanted to keep it the former way because "PT_PRESENT_MASK is equal to >>> VMX_EPT_READABLE_MASK" >>> is an assumption all throughout. I wanted to use this section to catch >>> mismatches. >> >> I think there's no such assumption anymore, actually. C

Re: [PATCH 13/32] Documentation, x86: Documentation for Intel resource allocation user interface

2016-07-13 Thread Thomas Gleixner
On Wed, 13 Jul 2016, Luck, Tony wrote: > On Wed, Jul 13, 2016 at 02:47:30PM +0200, Thomas Gleixner wrote: > > On Tue, 12 Jul 2016, Fenghua Yu wrote: > > > +3. Hierarchy in rscctrl > > > +=== > > > > What means rscctrl? > > > > You were not able to find a more cryptic acronym?

Re: [PATCH v6] mm, kasan: switch SLUB to stackdepot, enable memory quarantine for SLUB

2016-07-13 Thread Joonsoo Kim
On Tue, Jul 12, 2016 at 03:02:19PM +0200, Alexander Potapenko wrote: > >> + > >> /* Add alloc meta. */ > >> cache->kasan_info.alloc_meta_offset = *size; > >> *size += sizeof(struct kasan_alloc_meta); > >> @@ -392,17 +385,36 @@ void kasan_cache_create(struct kmem_cache *cache, > >

Re: [PATCH 8/9] overlayfs: Dilute permission checks on lower only if not special file

2016-07-13 Thread Miklos Szeredi
On Wed, Jul 13, 2016 at 4:44 PM, Vivek Goyal wrote: > Right now if file is on lower/, we remove MAY_WRITE/MAY_APPEND bits from > mask as lower/ will never be written and file will be copied up. But this > is not true for special files. These files are not copied up and are > opened in place. So do

Re: [PATCH 2/5] remoteproc: core: Add rproc OF look-up functions

2016-07-13 Thread Lee Jones
On Wed, 13 Jul 2016, Bjorn Andersson wrote: > On Thu 05 May 06:29 PDT 2016, Lee Jones wrote: > > Lee, > > I ran into this topic again while looking into some unrelated things. > > > diff --git a/drivers/remoteproc/remoteproc_core.c > > b/drivers/remoteproc/remoteproc_core.c > > +struct rproc *

Re: Severe performance regression w/ 4.4+ on Android due to cgroup locking changes

2016-07-13 Thread Peter Zijlstra
On Wed, Jul 13, 2016 at 06:01:28PM -0400, Tejun Heo wrote: > Technically, I think the lglock approach would be better here given > the combination of requirements; however, it's quite a bit more code > which would likely require some sophistications down the line (like > blocking new readers first

Re: [PATCH 9/9] overlayfs: Append MAY_READ when diluting write checks

2016-07-13 Thread Miklos Szeredi
On Wed, Jul 13, 2016 at 4:44 PM, Vivek Goyal wrote: > Right now we remove MAY_WRITE/MAY_APPEND bits from mask if realfile is > on lower/. This is done as files on lower will never be written and will > be copied up. But to copy up a file, mounter should have MAY_READ permission > otherwise copy up

Re: What to do on cdev_add failure

2016-07-13 Thread Greg KH
On Wed, Jul 13, 2016 at 03:46:14PM +0200, Jean Delvare wrote: > Hi all, > > I am currently working on the i2c-dev driver, which has just been > converted to the non-ancestral cdev API. As I am cleaning up the > driver, I would like to switch from static cdev initialization > (cdev_init) to dynamic

Re: [PATCH] arm64: Add config to limit user space to 47bits

2016-07-13 Thread Alexander Graf
> On 14 Jul 2016, at 03:08, Steve Capper wrote: > > Hi Alex, > > Thanks for posting this. > > On Wed, Jul 13, 2016 at 06:14:11PM +0200, Alexander Graf wrote: >> On 07/13/2016 05:59 PM, Ard Biesheuvel wrote: >>> On 13 July 2016 at 17:42, Alexander Graf wrote: Some user space applications

Re: [PATCH] vcodec: mediatek: Add g/s_selection support for V4L2 Encoder

2016-07-13 Thread tiffany lin
Hi Hans, On Mon, 2016-07-11 at 06:32 +0200, Hans Verkuil wrote: > Hi Tiffany, > > My apologies for the delay, but here is my review at last: > > On 05/30/2016 09:52 AM, Tiffany Lin wrote: > > This patch add g/s_selection support for MT8173 > > > > Signed-off-by: Tiffany Lin > > --- > > drive

RE: [PATCH 30/32] x86/intel_rdt_rdtgroup.c: Process schemas input from rscctrl interface

2016-07-13 Thread Yu, Fenghua
> From: David Carrillo-Cisneros [mailto:davi...@google.com] > > +static int get_res_type(char **res, enum resource_type *res_type) { > > + char *tok; > > + > > + tok = strsep(res, ":"); > > + if (tok == NULL) > > + return -EINVAL; > > + > > + if (!strcmp(tok, "

Re: [PATCH] mlxsw: spectrum_router: Return -ENOENT in case of error

2016-07-13 Thread Jiri Pirko
Thu, Jul 14, 2016 at 08:18:45AM CEST, christophe.jail...@wanadoo.fr wrote: >'vr' should be a valid pointer here, so returning 'PTR_ERR(vr)' is wrong. >Return an explicit error code (-ENOENT) instead. > This is fo net-next. Fixes: 61c503f976 ("mlxsw: spectrum_router: Implement fib4 add/del switchd

Re: [PATCH 04/31] mm, vmscan: begin reclaiming pages on a per-node basis

2016-07-13 Thread Joonsoo Kim
memory hogger > > would > > consume them again so inactive LRU is continually full with higher > > zone's LRU pages and zone-contrained allocation requestor cannot > > progress. > > > > The same memory hogger will also be reclaiming the highmem pages and &g

Re: [PATCH net-next 1/2] devlink: fix build error for CONFIG_MODULES=n

2016-07-13 Thread Jiri Pirko
Wed, Jul 13, 2016 at 11:03:37PM CEST, a...@arndb.de wrote: >A driver calling trace_devlink_hwmsg cannot be built when modules are disabled: > >include/trace/events/devlink.h: In function >'trace_event_get_offsets_devlink_hwmsg': >include/trace/events/devlink.h:25:51: error: dereferencing pointer t

linux-next: Tree for Jul 14

2016-07-13 Thread Stephen Rothwell
Hi all, Changes since 20160713: Undropped tree: hid The kvm tree gained a conflict against the s390 tree. The akpm tree lost a patch that turned up elsewhere. Non-merge commits (relative to Linus' tree): 8913 8478 files changed, 470013 insertions(+), 159158 dele

[PATCH] mlxsw: spectrum_router: Return -ENOENT in case of error

2016-07-13 Thread Christophe JAILLET
'vr' should be a valid pointer here, so returning 'PTR_ERR(vr)' is wrong. Return an explicit error code (-ENOENT) instead. Signed-off-by: Christophe JAILLET --- drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/e

RE: [PATCH 30/32] x86/intel_rdt_rdtgroup.c: Process schemas input from rscctrl interface

2016-07-13 Thread Yu, Fenghua
> From: Thomas Gleixner [mailto:t...@linutronix.de] > Sent: Wednesday, July 13, 2016 11:11 PM > On Wed, 13 Jul 2016, David Carrillo-Cisneros wrote: > > > +static void free_cache_resource(struct cache_resource *l) { > > > + kfree(l->cbm); > > > + kfree(l->cbm2); > > > + kfree(l->cl

Re: [PATCH perf/core 03/10] perf-probe: Make --list shows only available cached events

2016-07-13 Thread Masami Hiramatsu
On Wed, 13 Jul 2016 16:28:37 -0300 Arnaldo Carvalho de Melo wrote: > Em Tue, Jul 12, 2016 at 07:04:54PM +0900, Masami Hiramatsu escreveu: > > From: Masami Hiramatsu > > > > Make "perf probe --cache --list" shows only available cached events > > by checking build-id validity. > > Something is m

Re: [PATCH 30/32] x86/intel_rdt_rdtgroup.c: Process schemas input from rscctrl interface

2016-07-13 Thread Thomas Gleixner
On Wed, 13 Jul 2016, David Carrillo-Cisneros wrote: > > +static void free_cache_resource(struct cache_resource *l) > > +{ > > + kfree(l->cbm); > > + kfree(l->cbm2); > > + kfree(l->closid); > > + kfree(l->refcnt); > > this function is used to clean up alloc_cache_resource in

Re: [PATCH 2/4] x86, pagetable: ignore A/D bits in pte/pmd/pud_none()

2016-07-13 Thread Michal Hocko
On Wed 13-07-16 08:47:51, Dave Hansen wrote: > On 07/13/2016 08:21 AM, Michal Hocko wrote: > >> > This adds a tiny amount of overhead to all pte_none() checks. > >> > I doubt we'll be able to measure it anywhere. > > It would be better to introduce the overhead only for the affected > > cpu models

[PATCH v3 8/8] Input: synaptics-rmi4: Use the RMI_F11_REL_BYTES define in rmi_f11_rel_pos_report

2016-07-13 Thread Andrew Duggan
The size of relative data in F11 is already defined by RMI_F11_REL_BYTES. Use the define in rmi_f11_rel_pos_report() to be consistent. Signed-off-by: Andrew Duggan Reviewed-by: Nick Dyer --- This is the same as the v2 version. drivers/input/rmi4/rmi_f11.c | 4 ++-- 1 file changed, 2 insertions

[PATCH v3 5/8] Input: synaptics-rmi4: Remove pointer to rmi_function in f12_data

2016-07-13 Thread Andrew Duggan
The pointer to struct rmi_function in f12_data is never set and was never used. The fn pointer is also stored in rmi_2d_sensor which is a member of f12_data. Signed-off-by: Andrew Duggan Reviewed-by: Benjamin Tissoires Reviewed-by: Nick Dyer --- This is the same as the v1 version. drivers/inp

[PATCH v3 7/8] Input: synaptics-rmi4: Handle incomplete input data

2016-07-13 Thread Andrew Duggan
Commit 5b65c2a02966 ("HID: rmi: check sanity of the incoming report") added support for handling incomplete HID reports do to the input data being corrupted in transit. This patch reimplements this functionality in the function drivers so they can handle getting less valid data then they expect. S

[PATCH v3 4/8] Input: synaptics-rmi4: Add support for controlling dribble packets in F12

2016-07-13 Thread Andrew Duggan
Implements reading and setting the dribble bit in F12's control registers. Signed-off-by: Andrew Duggan Acked-by: Benjamin Tissoires --- This is the same as V1. drivers/input/rmi4/rmi_f12.c | 74 +++- 1 file changed, 73 insertions(+), 1 deletion(-) diff

[PATCH v3 6/8] Input: synaptics-rmi4: Remove unneeded variable

2016-07-13 Thread Andrew Duggan
Remove the data_base_addr_offset variable in rmi_f11_attention(). The f11 data is read as a single block so there is no need to store an offset to the data address. Signed-off-by: Andrew Duggan Reviewed-by: Benjamin Tissoires Reviewed-by: Nick Dyer --- This is the same as the v1 version. driv

[PATCH v3 1/8] Input: synaptics-rmi4: Use of_get_child_by_name() instead of of_find_node_by_name()

2016-07-13 Thread Andrew Duggan
Calling of_find_node_by_name() assumes that the caller has incremented the refcount of the of_node being passed in. Currently, the caller is not incrementing the refcount of the of_node which results in the node being prematurely freed when of_find_node_by_name() calls of_node_put() on it. Instead

[PATCH v3 3/8] Input: synaptics-rmi4: Add dribble and palm gesture parameters to device tree

2016-07-13 Thread Andrew Duggan
Signed-off-by: Andrew Duggan --- This version includes Nick's suggestion of adding force to the device tree parameters so make it obvious that these parameters overwrite the default values set in the firware config. .../devicetree/bindings/input/rmi4/rmi_2d_sensor.txt| 10 ++ dri

[PATCH v3 0/8] Input: synaptics-rmi4: Reimplement functionality from hid-rmi

2016-07-13 Thread Andrew Duggan
The v3 version of this patch series makes changes to patch 1 and patch 3. Patch 1 now uses of_get_child_by_name() instead of of_find_node_by_name() to avoid having to increment the refcount of the of_node which avoid that hack. Patch 3 adds "force" to the device tree parameters to help to clarify t

[PATCH v3 2/8] Input: synaptics-rmi4: Add parameters for dribble packets and palm detect gesture

2016-07-13 Thread Andrew Duggan
The rmi_f11 driver currently disables dribble packets and the palm detect gesture for all devices. This patch creates a parameter in the 2d sensor platform data for controlling this functionality on a per device basis. For more information on dribble packets: Commit 05ba999fcabb ("HID: rmi: disabl

RE: [f2fs-dev] [PATCH 3/7] f2fs: drop any block plugging

2016-07-13 Thread hebiao (G)
Thanks Kim, it'll be very meaningful in block layer :-) -Original Message- From: Jaegeuk Kim [mailto:jaeg...@kernel.org] Sent: 2016年7月14日 10:40 To: hebiao (G) Cc: Yuchao (T) ; linux-kernel@vger.kernel.org; linux-fsde...@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net; CHEN CHUN

RE: Purpose of pci_remap_iospace

2016-07-13 Thread Bharat Kumar Gogada
> Subject: Re: Purpose of pci_remap_iospace > > On Wed, Jul 13, 2016 at 12:30:44PM +, Bharat Kumar Gogada wrote: > > [...] > > > err = of_pci_get_host_bridge_resources(node, 0, 0xff, &res, &iobase); > > if (err) { > > pr_err("Getting bridge resources failed\n"); > >

Re: [PATCH v4 2/5]nbd: fix might_sleep warning on socket shutdown

2016-07-13 Thread Pranay Srivastava
On Wed, Jul 13, 2016 at 12:43 PM, Markus Pargmann wrote: > On Sunday 10 July 2016 21:03:05 Pranay Srivastava wrote: >> On Sunday, July 10, 2016, Markus Pargmann wrote: >> > Hi, >> > >> > On 2016 M06 30, Thu 14:02:02 CEST Pranay Kr. Srivastava wrote: >> >> spinlocked ranges should be small and not

Re: [PATCH 1/1] gpn: drm: fsl_tcon: add missing of_node_put after calling of_parse_phandle

2016-07-13 Thread Stefan Agner
On 2016-07-04 00:40, Peter Chen wrote: > of_node_put needs to be called when the device node which is got > from of_parse_phandle has finished using, but current code only > calls it at error path, fix it by adding it at correct code path. > > Signed-off-by: Peter Chen > --- > drivers/gpu/drm/fs

Re: [PATCH v2 01/11] mm: Implement stack frame object validation

2016-07-13 Thread Josh Poimboeuf
On Wed, Jul 13, 2016 at 03:04:26PM -0700, Kees Cook wrote: > On Wed, Jul 13, 2016 at 3:01 PM, Andy Lutomirski wrote: > > On Wed, Jul 13, 2016 at 2:55 PM, Kees Cook wrote: > >> This creates per-architecture function arch_within_stack_frames() that > >> should validate if a given object is containe

Re: [PATCH v4 3/5]nbd: make nbd device wait for its users

2016-07-13 Thread Pranay Srivastava
On Wed, Jul 13, 2016 at 1:24 PM, Markus Pargmann wrote: > On Sunday 10 July 2016 21:32:07 Pranay Srivastava wrote: >> On Sun, Jul 10, 2016 at 6:32 PM, Markus Pargmann wrote: >> > On 2016 M06 30, Thu 14:02:03 CEST Pranay Kr. Srivastava wrote: >> >> When a timeout occurs or a recv fails, then >> >>

Re: [PATCH v11 21/22] IB/hns: Kconfig and Makefile for RoCE module

2016-07-13 Thread Leon Romanovsky
On Sat, Jul 02, 2016 at 05:39:23PM +0800, Lijun Ou wrote: > This patch added Kconfig and Makefile for building RoCE module. > > Signed-off-by: Wei Hu > Signed-off-by: Nenglong Zhao > Signed-off-by: Lijun Ou > --- > PATCH v11: > hns_roce_icm.o -> hns_roce_hem.o > > PATCH v10/v9/v8/v7/v6/v5: > -

Re: [PATCH v4 3/5] nvmem: core: Add consumer API to get nvmem cell from node

2016-07-13 Thread Stefan Agner
On 2016-07-08 10:23, Srinivas Kandagatla wrote: > On 08/07/16 17:42, Stefan Agner wrote: >> On 2016-07-08 08:41, Srinivas Kandagatla wrote: >>> On 07/07/16 14:48, maitysancha...@gmail.com wrote: Hello Srinivas, On 16-07-07 1 > > ... > >> >> Our requirement is to be able to

Re: [PATCH 2/2] proc: Add /proc//timerslack_ns interface

2016-07-13 Thread Arjan van de Ven
On 7/13/2016 8:39 PM, Kees Cook wrote: So I worry I'm a bit stuck here. For general systems, CAP_SYS_NICE is too low a level of privilege to set a tasks timerslack, but apparently CAP_SYS_PTRACE is too high a privilege for Android's system_server to require just to set a tasks timerslack value.

[PATCH kernel] powerpc/mm/iommu: Put pages on process exit

2016-07-13 Thread Alexey Kardashevskiy
At the moment VFIO IOMMU SPAPR v2 driver pins all guest RAM pages when the userspace starts using VFIO. When the userspace process finishes, all the pinned pages need to be put; this is done as a part of the userspace memory context (MM) destruction which happens on the very last mmdrop(). This ap

Re: [PATCH v11 00/22] Add HiSilicon RoCE driver

2016-07-13 Thread Leon Romanovsky
On Thu, Jul 14, 2016 at 11:43:59AM +0800, oulijun wrote: > 在 2016/7/2 17:39, Lijun Ou 写道: > > > Hi, Doug & Sean Hefty & Hal Rosenstock > "Hello, I understand that maintainer is dealing with lots of patches not just > mine. Also, I could not see any further review comments from the community. > I

Re: [PATCH 08/31] mm, vmscan: simplify the logic deciding whether kswapd sleeps

2016-07-13 Thread Joonsoo Kim
On Fri, Jul 08, 2016 at 11:11:47AM +0100, Mel Gorman wrote: > On Fri, Jul 08, 2016 at 11:44:47AM +0900, Joonsoo Kim wrote: > > > > > @@ -3390,12 +3386,24 @@ static int kswapd(void *p) > > > > >* We can speed up thawing tasks if we don't call > > > > > balance_pgdat > > > > >

Re: [RFC PATCH v2] clk: move check of CLK_SET_RATE_GATE flag to clk_propagate_rate_change()

2016-07-13 Thread Jiada Wang
Hello Michael On 07/13/2016 07:29 AM, Michael Turquette wrote: Quoting jiada_w...@mentor.com (2016-07-10 22:33:28) From: Jiada Wang Previously CLK_SET_RATE_GATE flag is only checked in clk_set_rate() which only ensures the clock being called by clk_set_rate() won't change rate when it has bee

Re: [PATCH] qla2xxx: setup data needed in ISR before setting up the ISR

2016-07-13 Thread Martin K. Petersen
> "Johannes" == Johannes Thumshirn writes: Johannes> qla2xxx first calls request_irq() and then does the setup of Johannes> the queue entry data needed in the interrupt handlers in when Johannes> using MSI-X. This could lead to a NULL pointer dereference Johannes> when an IRQ fires between th

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

2016-07-13 Thread Stephen Rothwell
Hi all, On Thu, 14 Jul 2016 13:37:29 +1000 Stephen Rothwell wrote: > > After merging the tip tree, today's linux-next build (powerpc64le perf) > produced these warnings: > > Warning: tools/include/uapi/linux/bpf.h differs from kernel > Warning: tools/arch/x86/include/asm/disabled-features.h dif

[PATCH v4 4/4] drm/rockchip: analogix_dp: implement PSR function

2016-07-13 Thread Yakir Yang
Alway enable the PSR function for Rockchip analogix_dp driver. If panel don't support PSR, then the core analogix_dp would ignore this setting. Signed-off-by: Yakir Yang --- Changes in v4: - Return 'void' instead of 'int' in analogix_dp_psr_set(). (Sean) - Pull the 10ms delay time out into a #def

[PATCH v4 2/4] drm/rockchip: add an common abstracted PSR driver

2016-07-13 Thread Yakir Yang
The PSR driver have exported four symbols for specific device driver: - rockchip_drm_psr_register() - rockchip_drm_psr_unregister() - rockchip_drm_psr_enable() - rockchip_drm_psr_disable() - rockchip_drm_psr_flush() Encoder driver should call the register/unregister interfaces to hook itself into

[PATCH v4 3/4] drm/bridge: analogix_dp: add the PSR function support

2016-07-13 Thread Yakir Yang
The full name of PSR is Panel Self Refresh, panel device could refresh itself with the hardware framebuffer in panel, this would make lots of sense to save the power consumption. This patch have exported two symbols for platform driver to implement the PSR function in hardware side: - analogix_dp_

[PATCH v4 0/4] Add PSR function support for Analogix/Rockchip DP

2016-07-13 Thread Yakir Yang
The full name of PSR is Panel Self Refresh, panel device could refresh itself with the hardware framebuffer in panel, this would make a lots of sense to save the power consumption. This v3 version have splited an common PSR driver for Rockchip, which is biggest changes from v2. This thread is ba

[PATCH v4 1/4] drm/rockchip: vop: export line flag function

2016-07-13 Thread Yakir Yang
VOP have integrated a hardware counter which indicate the exact display line that vop is scanning. And if we're interested in a specific line, we can set the line number to vop line_flag register, and then vop would generate a line_flag interrupt for it. For example eDP PSR function is interested

linux-next: manual merge of the kvm tree with the s390 tree

2016-07-13 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm tree got a conflict in: arch/s390/mm/gmap.c between commit: f04540298440 ("s390/mm: fix gmap tlb flush issues") from the s390 tree and commit: 6ea427bbbd40 ("s390/mm: add reference counter to gmap structure") from the kvm tree. I fixed it up

Re: [PATCH 0/2] Code style fixes

2016-07-13 Thread David Miller
From: Elad Kanfi Date: Wed, 13 Jul 2016 16:58:05 +0300 > Fix all checkpatch warnings and errors, and reuse code Series applied to net-next, thanks.

Re: [PATCH 6/8] x86: xen: audit and remove any unnecessary uses of module.h

2016-07-13 Thread Juergen Gross
On 14/07/16 02:18, Paul Gortmaker wrote: > Historically a lot of these existed because we did not have > a distinction between what was modular code and what was providing > support to modules via EXPORT_SYMBOL and friends. That changed > when we forked out support for the latter into the export.h

linux-next: build warnings after merge of the tip tree

2016-07-13 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (x86_64 allmodconfig) produced these warnings: In file included from tools/include/linux/hashtable.h:12:0, from elf.h:24, from builtin-check.c:33: tools/include/linux/bitops.h:12:0: error: "BITS_PER_LON

Re: [PATCH v11 00/22] Add HiSilicon RoCE driver

2016-07-13 Thread oulijun
在 2016/7/2 17:39, Lijun Ou 写道: > The HiSilicon Network Substem is a long term evolution IP which is > supposed to be used in HiSilicon ICT SoCs. HNS (HiSilicon Network > Sybsystem) also has a hardware support of performing RDMA with > RoCEE. > The driver for HiSilicon RoCEE(RoCE Engine) is a platfo

Re: [PATCH 2/2] proc: Add /proc//timerslack_ns interface

2016-07-13 Thread Kees Cook
On Wed, Jul 13, 2016 at 4:47 PM, John Stultz wrote: > On Tue, Feb 16, 2016 at 5:06 PM, John Stultz wrote: >> This patch provides a proc/PID/timerslack_ns interface which >> exposes a task's timerslack value in nanoseconds and allows it >> to be changed. >> >> This allows power/performance managem

Re: [PATCH v2 02/10] irqchip: add irqchip driver for nuc900

2016-07-13 Thread Wan Zongshun
On 2016年07月14日 04:09, Jason Cooper wrote: Hi Wan Zongshun, On Sun, Jul 10, 2016 at 03:27:22PM +0800, Wan Zongshun wrote: This patch is to add irqchip driver support for nuc900 plat, current this driver only supports nuc970 SoC. Signed-off-by: Wan Zongshun --- arch/arm/mach-w90x900/include

linux-next: build warnings after merge of the tip tree

2016-07-13 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (powerpc64le perf) produced these warnings: Warning: tools/include/uapi/linux/bpf.h differs from kernel Warning: tools/arch/x86/include/asm/disabled-features.h differs from kernel Warning: tools/arch/x86/include/asm/required-features.h

[PATCH 2/2] net: nps_enet: code reuse

2016-07-13 Thread Elad Kanfi
From: Elad Kanfi Add inline function that checks if there is a pending tx packet. Signed-off-by: Elad Kanfi --- drivers/net/ethernet/ezchip/nps_enet.c | 21 +++-- 1 files changed, 11 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet/ezchip/nps_enet.c b/driver

Re: [PATCH v2 0/5] firmware: add SmPL grammar to avoid issues

2016-07-13 Thread Fengguang Wu
On Thu, Jul 14, 2016 at 05:08:12AM +0200, Luis R. Rodriguez wrote: On Thu, Jul 14, 2016 at 10:23:36AM +0800, Fengguang Wu wrote: On Thu, Jul 14, 2016 at 04:15:01AM +0200, Luis R. Rodriguez wrote: >On Thu, Jul 14, 2016 at 07:52:07AM +0800, Fengguang Wu wrote: >>Hi Luis, >> >>On Thu, Jul 07, 2016

Re: [PATCH 0/2] Automatically load the vmx_crypto module if supported

2016-07-13 Thread Balbir Singh
On Wed, Jul 13, 2016 at 03:54:59PM +1000, Alastair D'Silva wrote: > On Wed, 2016-07-13 at 15:47 +1000, alast...@au1.ibm.com wrote: > > From: Alastair D'Silva > > > This series allows the vmx_crypto module to be detected and > > automatically > > loaded via UDEV if the CPU supports the vector crypt

Re: [PATCH v4 4/7] rtc: ac100: Add clk output support

2016-07-13 Thread Chen-Yu Tsai
On Sat, Jul 9, 2016 at 2:36 AM, Michael Turquette wrote: > Quoting Chen-Yu Tsai (2016-06-30 08:58:48) >> +static long ac100_clkout_round_rate(struct clk_hw *hw, unsigned long rate, >> + unsigned long prate) >> +{ >> + unsigned long best_rate = 0, tmp_rate, t

[PATCH 5/6] drm/rockchip: vop: correct the source size of uv scale factor setting

2016-07-13 Thread Mark Yao
When the input color format is YUV, we need to do some external scale for CBCR. Like, * In YUV420 data format: cbcr_xscale = dst_w / src_w * 2; cbcr_yscale = dst_h / src_h * 2; * In YUV422 data format: cbcr_xscale = dst_w / src_w * 2; cbcr_yscale = dst_h / src_h; * In YUV444

[PATCH 6/6] drm/rockchip: vop: correct rk3036 register define

2016-07-13 Thread Mark Yao
Signed-off-by: Mark Yao Reported-by: Tomasz Figa --- drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_vop_reg.c b/drivers/gpu/drm/rockchip/rockchip_vop_reg.c index a348a7a..919992c 100644 --- a/

[PATCH 1/6] drm/rockchip: dw_hdmi: remove unused #include

2016-07-13 Thread Mark Yao
From: John Keeping drm_encoder_slave is not used in this file. Signed-off-by: John Keeping Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c b/drivers/gpu/drm/rockchip/dw_hdmi

[PATCH 2/6] drm/rockchip: fb: add missing header

2016-07-13 Thread Mark Yao
From: John Keeping This fixes the following sparse warnings: drivers/gpu/drm/rockchip/rockchip_drm_fb.c:32:23: warning: symbol 'rockchip_fb_get_gem_obj' was not declared. Should it be static? drivers/gpu/drm/rockchip/rockchip_drm_fb.c:315:24: warning: symbol 'rockchip_drm_framebuffer_init' was

[PATCH 0/6] drm/rockchip: some fixes

2016-07-13 Thread Mark Yao
Here are some fixes for drm/rockchip: These following patches were sent to upstream, seems no doubt about them, I just rebase them to newest Dave's branch and resent. drm/rockchip: vop: correct the source size of uv scale factor setting drm/rockchip: vop: add uv_vir register field for RK3036 V

[PATCH 4/6] drm/rockchip: vop: add uv_vir register field for RK3036 VOP

2016-07-13 Thread Mark Yao
From: Yakir Yang The WIN0 of RK3036 VOP could support YUV data format, but driver forget to add the uv_vir register field for it. Signed-off-by: Yakir Yang Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/d

[PATCH 3/6] drm/rockchip: fix "should it be static?" warnings

2016-07-13 Thread Mark Yao
From: John Keeping Combined with the previous commit, this fixes all of the sparse warnings in drm/rockchip. Signed-off-by: John Keeping Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 2 +- drivers/gpu/drm/rockchip/rockchip_drm_fb.c | 2 +- drivers/gpu/drm/rockchip

Re: [PATCH 1/2] scsi: lpfc: avoid harmless comparison warning

2016-07-13 Thread Martin K. Petersen
> "Arnd" == Arnd Bergmann writes: Arnd> When building with -Wextra, we get a lot of warnings for the lpfc Arnd> driver concerning expressions that are always true, starting with: Arnd> drivers/scsi/lpfc/lpfc_attr.c: In function Arnd> 'lpfc_enable_npiv_init': drivers/scsi/lpfc/lpfc_attr.c:278

Re: [v5 PATCH 5/5] drm/rockchip: cdn-dp: add cdn DP support for rk3399

2016-07-13 Thread Chris Zhong
Hi Sean Thanks for your detailed review. I'm working to modify most of code according to comment. And there is reply for some comment On 07/13/2016 09:59 PM, Sean Paul wrote: On Tue, Jul 12, 2016 at 8:09 AM, Chris Zhong wrote: Add support for cdn DP controller which is embedded in the rk339

Request for discussion

2016-07-13 Thread Bun Sam
Good day, I am Bun Sam. I work with one of the major banks in Cambodia as the director of audit. I have a proposal for you, a very urgent and quick business that will be completed in 12 working days. I have just discovered documents relating to funds belonging to a deceased client of our bank,

Re: [PATCH v2 0/5] firmware: add SmPL grammar to avoid issues

2016-07-13 Thread Luis R. Rodriguez
On Thu, Jul 14, 2016 at 10:23:36AM +0800, Fengguang Wu wrote: > On Thu, Jul 14, 2016 at 04:15:01AM +0200, Luis R. Rodriguez wrote: > >On Thu, Jul 14, 2016 at 07:52:07AM +0800, Fengguang Wu wrote: > >>Hi Luis, > >> > >>On Thu, Jul 07, 2016 at 02:56:44AM +0200, Luis R. Rodriguez wrote: > >>>On Thu, J

Re: [GIT PULL] phy: for 4.8 merge window

2016-07-13 Thread Greg KH
On Tue, Jul 05, 2016 at 10:53:47AM +0530, Kishon Vijay Abraham I wrote: > Hi Greg, > > Please find the pull request for 4.8 merge window below. > > Now the controller can configure the mode in which the PHY should > work using the new phy_set_mode API. This was added by David Lechner > required f

Re: [git pull] stm class/intel_th: Updates for char-misc-linus

2016-07-13 Thread Greg KH
On Fri, Jul 01, 2016 at 12:15:37PM +0300, Alexander Shishkin wrote: > Hi Greg, > > These are fixes I have queued for the v4.7. Please consider pulling into > char-misc-linus. > > The following changes since commit 60cef77f9ba419fec6c41bc4e3fecb9bf426f664: > > intel_th: pci: Add Kaby Lake PCH-H

Re: [git pull] stm class/intel_th: Updates for char-misc-next

2016-07-13 Thread Greg KH
On Fri, Jul 01, 2016 at 02:46:11PM +0300, Alexander Shishkin wrote: > Hi Greg, > > These are updates I have queued for the v4.8 merge window. Apologies for > late request. Please consider pulling. > > The following changes since commit af8c34ce6ae32addda3788d54a7e340cad22516b: > > Linux 4.7-rc

Re: [GIT PULL] extcon next for 4.8

2016-07-13 Thread Greg KH
On Tue, Jul 05, 2016 at 08:04:08PM +0900, Chanwoo Choi wrote: > Dear Greg, > > This is extcon-next pull request for v4.8. I add detailed description of > this pull request on below. Please pull extcon with following updates. > > Best Regards, > Chanwoo Choi > > The following changes since commit

Re: [PULL] lkdtm update (next)

2016-07-13 Thread Greg KH
On Thu, Jul 07, 2016 at 11:14:35AM -0700, Kees Cook wrote: > Hi, > > Please pull these lkdtm changes for next. > > Thanks! > > -Kees > > The following changes since commit e2402b1d214e5d50e807773563d590115a161f45: > > nvmem: imx-ocotp: Fix assignment warning. (2016-06-25 07:42:55 -0700) > >

[PATCH] dmaengine: qcom_hidma: release the descriptor before the callback

2016-07-13 Thread Sinan Kaya
There is a race condition between data transfer callback and descriptor free code. The callback routine may decide to clear the resources even though the descriptor has not yet been freed. Instead of calling the callback first and then releasing the memory, this code is changing the order to retur

[lkp] [x86/hpet] a28b41ab00: RIP: 0010:[] [] __lock_acquire+0xce/0x649

2016-07-13 Thread kernel test robot
FYI, we noticed the following commit: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.smp/hotplug commit a28b41ab00dc93b9b16deda9d9b4b26601444f6d ("x86/hpet: Convert to hotplug state machine") in testcase: boot on test machine: 2 threads qemu-system-x86_64 -enable-kvm -cpu Neha

Re: [PATCH v2 2/7] lib/dlock-list: Add __percpu modifier for parameters

2016-07-13 Thread Waiman Long
On 07/13/2016 12:08 PM, Tejun Heo wrote: On Mon, Jul 11, 2016 at 01:32:07PM -0400, Waiman Long wrote: From: Boqun Feng Add __percpu modifier properly to help: 1. Differ pointers to actual structures with those to percpu structures, which could improve readability. 2. Prevent

Re: [PATCH v2 1/7] lib/dlock-list: Distributed and lock-protected lists

2016-07-13 Thread Waiman Long
On 07/13/2016 12:08 PM, Tejun Heo wrote: Hello, On Mon, Jul 11, 2016 at 01:32:06PM -0400, Waiman Long wrote: ... A new header file include/linux/dlock-list.h will be added with the Heh, I think perpcu_list was the better name but suppose I'm too late. Given the fact that we may change the le

[PATCH 3/3] tools/power/acpi/acpidbg: Use new flushing mechanism

2016-07-13 Thread Lv Zheng
This patch converts tools/power/acpi/tools/acpidbg/acpidbg to use the new flushing mechanism. Signed-off-by: Lv Zheng --- tools/power/acpi/tools/acpidbg/acpidbg.c | 49 +++--- 1 file changed, 5 insertions(+), 44 deletions(-) diff --git a/tools/power/acpi/tools/acpidbg/

[PATCH 2/3] ACPI / debugger: Add kernel flushing support

2016-07-13 Thread Lv Zheng
This patch adds debugger log flushing support in kernel via .fsync() callback. The in-kernel flushing is more efficient, because it reduces useless log IOs by bypassing log user_read/kern_write during the flush period. Signed-off-by: Lv Zheng --- drivers/acpi/acpi_dbg.c | 94 ++

[PATCH 0/3] ACPI / debugger: Add kernel flushing support

2016-07-13 Thread Lv Zheng
AML debugger is implemented in the kernel as a character device located in the debugfs. Currently, when its batch mode is used, the userspace tool needs to flush the logs/prompts remained in the kernel output buffer, this is implemented in an inefficient way in the userspace by polling the IO and r

[PATCH 1/3] debugfs: Add .fsync() callback proxy support

2016-07-13 Thread Lv Zheng
This patch adds .fsync() callback for debugfs files. ACPI AML debugger needs to implement this to flush cmds/logs. Signed-off-by: Lv Zheng Cc: Greg Kroah-Hartman --- fs/debugfs/file.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c index 592059

Re: [f2fs-dev] [PATCH 3/7] f2fs: drop any block plugging

2016-07-13 Thread Jaegeuk Kim
Hi hebiao, On Wed, Jul 13, 2016 at 01:21:15AM +, hebiao (G) wrote: > Hi, Kim, > > You are right. If file system can merge bios as much as possible. It's > very helpful to block layer. But plugging mechanism has a precognition of IO > stream except merging bios. For example, we can out

[PATCH] mem-hotplug: use GFP_HIGHUSER_MOVABLE and alloc from next node in alloc_migrate_target()

2016-07-13 Thread Xishi Qiu
alloc_migrate_target() is called from migrate_pages(), and the page is always from user space, so we can add __GFP_HIGHMEM directly. Second, when we offline a node, the new page should alloced from other nodes instead of the current node, because re-migrate is a waste of time. Signed-off-by: Xish

Re: [PATCH v3] locking/qrwlock: Let qrwlock has same layout regardless of the endian

2016-07-13 Thread Waiman Long
On 07/13/2016 03:54 PM, Peter Zijlstra wrote: On Mon, Jun 20, 2016 at 02:20:52PM +0800, Pan Xinhui wrote: This patch aims to get rid of endianness in queued_write_unlock(). We want to set __qrwlock->wmode to NULL, however the address is not &lock->cnts in big endian machine. That causes queued_

[PATCH] apic: remove the unused field apic_id_mask

2016-07-13 Thread Wei Jiangang
The only user verify_local_APIC() had been removed by commit 4399c03c6780 ("x86/apic: Remove verify_local_APIC()"), so no need to keep it. Signed-off-by: Wei Jiangang --- arch/x86/include/asm/apic.h | 1 - arch/x86/kernel/apic/apic_flat_64.c | 2 -- arch/x86/kernel/apic/apic_noop.c

[PATCH 12/19] perf probe-cache: Add for_each_probe_cache_entry() wrapper

2016-07-13 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Add for_each_probe_cache_entry() wrapper macro for hiding list in probe_cache. Signed-off-by: Masami Hiramatsu Cc: Ananth N Mavinakayanahalli Cc: Brendan Gregg Cc: Hemant Kumar Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/146831790386.17065.150

Linux 3.18.37

2016-07-13 Thread Sasha Levin
I'm announcing the release of the 3.18.37 kernel. All users of the 3.18 kernel series must upgrade. The updated 3.18.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.18.y and can be browsed at the normal kernel.org git web browser:

[PATCH 09/19] perf probe: Fix to show correct error message for $vars and $params

2016-07-13 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Fix to show correct error messages for $vars and $params because those special variables requires debug information to find the real variables or function parameters. E.g. without this fix; # perf probe -x /lib64/libc-2.23.so getaddrinfo \$params Failed to write

[PATCH 17/19] perf probe: Support a special SDT probe format

2016-07-13 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Support a special SDT probe format which can omit the '%' prefix only if the SDT group name starts with "sdt_". So, for example both of "%sdt_libc:setjump" and "sdt_libc:setjump" are acceptable for perf probe --add. E.g. without this: # perf probe -a sdt_libc:setjmp S

Re: [PATCH v2 0/5] firmware: add SmPL grammar to avoid issues

2016-07-13 Thread Fengguang Wu
On Thu, Jul 14, 2016 at 04:15:01AM +0200, Luis R. Rodriguez wrote: On Thu, Jul 14, 2016 at 07:52:07AM +0800, Fengguang Wu wrote: Hi Luis, On Thu, Jul 07, 2016 at 02:56:44AM +0200, Luis R. Rodriguez wrote: >On Thu, Jun 16, 2016 at 03:54:16PM -0700, Luis R. Rodriguez wrote: >>The firmware API has

Linux 4.1.28

2016-07-13 Thread Sasha Levin
I'm announcing the release of the 4.1.28 kernel. All users of the 4.1 kernel series must upgrade. The updated 4.1.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.1.y and can be browsed at the normal kernel.org git web browser:

[PATCH 07/19] perf bpf: Rename bpf__foreach_tev() to bpf__foreach_event()

2016-07-13 Thread Arnaldo Carvalho de Melo
From: Wang Nan Following commit will allow BPF script attach to tracepoints. bpf__foreach_tev() will iterate over all events, not only kprobes. Rename it to bpf__foreach_event(). Since only group and event are used by caller, there's no need to pass full 'struct probe_trace_event' to bpf_prog_it

[PATCH 01/19] tools: Fix up BITS_PER_LONG setting

2016-07-13 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo It was set based on CONFIG_64BIT, that is available only when using Kconfig, which we're working towards but not to the point of having this CONFIG variable set, so synthesize it from available compiler defined defines, __SIZEOF_LONG__ or, lacking that, __WORDSIZE.

[PATCH 18/19] perf build: Add sdt feature detection

2016-07-13 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu This checks whether sys/sdt.h is available or not, which is required for DTRACE_PROBE(). We can disable this feature by passing NO_SDT=1 when building. This flag will be used for SDT test case and further SDT events in perftools. Signed-off-by: Masami Hiramatsu Cc: Anan

  1   2   3   4   5   6   7   8   9   10   >