RE: [RFC][PATCH 7/7] cpufreq: intel_pstate: Change P-state selection algorithm for Core

2016-08-03 Thread Doug Smythies
On 2016.08.03 21:19 Doug Smythies wrote: Re-sending without the previously attached graph. Hi Rafael, Hope this feedback and test results help. On 2016.07.31 16:49 Rafael J. Wysocki wrote: > The PID-base P-state selection algorithm used by intel_pstate for > Core processors is based on very we

Crashes in refresh_zone_stat_thresholds when some nodes have no memory

2016-08-03 Thread Paul Mackerras
It appears that commit 75ef71840539 ("mm, vmstat: add infrastructure for per-node vmstats", 2016-07-28) has introduced a regression on machines that have nodes which have no memory, such as the POWER8 server that I use for testing. When I boot current upstream, I get a splat like this: [1.713

Re: perf test BPF failing on f24: fix

2016-08-03 Thread Masami Hiramatsu
On Wed, 3 Aug 2016 17:04:15 -0300 Arnaldo Carvalho de Melo wrote: > Em Wed, Aug 03, 2016 at 11:45:57PM +0900, Masami Hiramatsu escreveu: > > > If we remove vmlinux, perf should use /proc/kallsyms. I think > > I am not removing vmlinux, it is being used, its just that the function > chosen by the

[patch] tty: amiserial.c: remove a double irq restore

2016-08-03 Thread Dan Carpenter
We already called "local_irq_restore(flags);" so this isn't needed. Signed-off-by: Dan Carpenter diff --git a/drivers/tty/amiserial.c b/drivers/tty/amiserial.c index 208f573..2f33cf1 100644 --- a/drivers/tty/amiserial.c +++ b/drivers/tty/amiserial.c @@ -880,7 +880,6 @@ static int rs_write(struct

Re: [PATCH] usb:serial: Add Fintek F81532/534 driver

2016-08-03 Thread Ji-Ze Hong (Peter Hong)
Hi Alan, One Thousand Gnomes 於 2016/7/29 下午 08:48 寫道: O +static int f81534_set_normal_register(struct usb_device *dev, u16 reg, u8 data) +{ + size_t count = F81534_USB_MAX_RETRY; + int status; + u8 *tmp; + + tmp = kmalloc(sizeof(u8), GFP_KERNEL); + if (!tmp) +

Re: [PATCH v6 6/6] drm/i915/skl: Update DDB values atomically with wms/plane attrs

2016-08-03 Thread Ville Syrjälä
On Wed, Aug 03, 2016 at 03:19:28PM -0700, Matt Roper wrote: > On Wed, Aug 03, 2016 at 06:00:42PM +0300, Ville Syrjälä wrote: > > On Tue, Aug 02, 2016 at 06:37:37PM -0400, Lyude wrote: > > > Now that we can hook into update_crtcs and control the order in which we > > > update CRTCs at each modeset,

next-20160804: Build error when building xtensa images

2016-08-03 Thread Guenter Roeck
Hi Max, I see the following build errors when building xtensa images in next-20160804. Error log: arch/xtensa/kernel/built-in.o: In function `fast_alloca': (.text+0x99a): dangerous relocation: j: cannot encode: _WindowUnderflow12 arch/xtensa/kernel/built-in.o: In function `fast_alloca': (.text+0

Re: [PATCH v2] powerpc/32: fix csum_partial_copy_generic()

2016-08-03 Thread Alessio Igor Bogani
Scott, On 4 August 2016 at 05:53, Scott Wood wrote: > On Tue, 2016-08-02 at 10:07 +0200, Christophe Leroy wrote: >> commit 7aef4136566b0 ("powerpc32: rewrite csum_partial_copy_generic() >> based on copy_tofrom_user()") introduced a bug when destination >> address is odd and initial csum is not nu

Re: [patch] tty: amiserial.c: remove a double irq restore

2016-08-03 Thread Jiri Slaby
On 08/04/2016, 07:34 AM, Dan Carpenter wrote: > We already called "local_irq_restore(flags);" so this isn't needed. > > Signed-off-by: Dan Carpenter > > diff --git a/drivers/tty/amiserial.c b/drivers/tty/amiserial.c > index 208f573..2f33cf1 100644 > --- a/drivers/tty/amiserial.c > +++ b/drivers/

[PATCH] drm/bridge: analogix_dp: Remove duplicated code

2016-08-03 Thread Tomeu Vizoso
Remove code for reading the EDID and DPCD fields and use the helpers instead. Besides the obvious code reduction, other helpers are being added to the core that could be used in this driver and will be good to be able to use them instead of duplicating them. Signed-off-by: Tomeu Vizoso Cc: Javie

Re: [PATCH v4 2/6] power: add power sequence library

2016-08-03 Thread Peter Chen
On Wed, Aug 03, 2016 at 03:16:58PM -0700, Matthias Kaehlcke wrote: > El Tue, Aug 02, 2016 at 11:30:48AM +0800 Peter Chen ha dit: > > > diff --git a/drivers/power/pwrseq/core.c b/drivers/power/pwrseq/core.c > > > > ... > > > > +static DEFINE_MUTEX(pwrseq_list_mutex); > > +static LIST_HEAD(pwrseq_li

[PATCH] PM / devfreq: event: remove duplicate devfreq_event_get_drvdata()

2016-08-03 Thread Lin Huang
there define two devfreq_event_get_drvdata() function in devfreq-event.h when disable CONFIG_PM_DEVFREQ_EVENT, it will lead to build fail. So remove devfreq_event_get_drvdata() function. Signed-off-by: Lin Huang --- include/linux/devfreq-event.h | 5 - 1 file changed, 5 deletions(-) diff --

Re: [PATCH 37/45] drivers: use req op accessor

2016-08-03 Thread Mike Christie
On 08/03/2016 07:30 PM, Shaun Tancheff wrote: > On Wed, Aug 3, 2016 at 6:47 PM, Mike Christie wrote: >> On 08/03/2016 05:33 PM, Ross Zwisler wrote: >>> On Sun, Jun 5, 2016 at 1:32 PM, wrote: From: Mike Christie The req operation REQ_OP is separated from the rq_flag_bits defi

Re: [PATCH v3] virtio_blk: Fix a slient kernel panic

2016-08-03 Thread Minfei Huang
Hi, Michael. Since Stefan and Cornelia have review-acked this patch, could you mind helping review this patch? Thanks Minfei > On Jul 29, 2016, at 16:26, Stefan Hajnoczi wrote: > > On Tue, Jul 19, 2016 at 5:32 AM, Minfei Huang wrote: >> From: Minfei Huang >> >> We do a lot of memory allocat

Re: [PATCH] iio: humidity: hdc100x: use i2c_master_recv to read sensor data

2016-08-03 Thread Peter Meerwald-Stadler
> > Replace the i2c_smbus_read_byte commmands used to retrieve the sensor > > data with an i2c_master_recv command. > > > > The smbus read byte method fails because the device does not expect a > > stop condition after sending the first byte. When we issue the second > > read, we are getting the f

[patch] CRIS v32: remove some double unlocks

2016-08-03 Thread Dan Carpenter
We unlocked a few lines earlier so we can delete these unlocks. Signed-off-by: Dan Carpenter diff --git a/arch/cris/arch-v32/mach-a3/dma.c b/arch/cris/arch-v32/mach-a3/dma.c index 47c64bf..11f417f 100644 --- a/arch/cris/arch-v32/mach-a3/dma.c +++ b/arch/cris/arch-v32/mach-a3/dma.c @@ -41,7 +41,6

[patch] mailbox: bcm-pdc: potential NULL dereference in pdc_shutdown()

2016-08-03 Thread Dan Carpenter
We can't pass NULL pointers to pdc_ring_free() so I moved the check for NULL. Signed-off-by: Dan Carpenter diff --git a/drivers/mailbox/bcm-pdc-mailbox.c b/drivers/mailbox/bcm-pdc-mailbox.c index cbe0c1e..c56d4d0 100644 --- a/drivers/mailbox/bcm-pdc-mailbox.c +++ b/drivers/mailbox/bcm-pdc-mailb

Re: [RFC][PATCH 3/4] power: reset: Add sram-reboot-mode driver

2016-08-03 Thread Bjorn Andersson
On Wed 03 Aug 20:08 PDT 2016, John Stultz wrote: > On Wed, Aug 3, 2016 at 6:03 PM, Bjorn Andersson > wrote: > > On Wed 03 Aug 16:05 PDT 2016, John Stultz wrote: > > > > [..] > >> diff --git a/drivers/power/reset/sram-reboot-mode.c > >> b/drivers/power/reset/sram-reboot-mode.c [..] > >> + ret

[patch] rapidio: dereferencing an error pointer

2016-08-03 Thread Dan Carpenter
If riocm_ch_alloc() fails then we end up dereferencing the error pointer. The problem is that we're not unwinding in the reverse order from how we allocate things so it gets confusing. I've changed this around so now "ch" is NULL when we are done with it after we call riocm_put_channel(). That w

[patch] mfd: 88pm80x: Double shifting bug in suspend/resume

2016-08-03 Thread Dan Carpenter
set_bit() and clear_bit() take the bit number so this code is really doing "1 << (1 << irq)" which is a double shift bug. It's done consistently so it won't cause a problem unless "irq" is more than 4. Fixes: 70c6cce04066 ('mfd: Support 88pm80x in 80x driver') Signed-off-by: Dan Carpenter diff

Re: "run seccomp after ptrace" changes expose "missing PTRACE_EVENT_EXIT" bug

2016-08-03 Thread Kees Cook
On Wed, Aug 3, 2016 at 4:51 PM, Robert O'Callahan wrote: > I work on rr (http://rr-project.org/), a record-and-replay reverse-execution > debugger which is a heavy user of ptrace and seccomp. The recent change to > perform syscall-entry PTRACE_SYSCALL stops before PTRACE_EVENT_SECCOMP stops > brok

Re: [GIT PULL] Thermal SoC management updates for v4.8-rc1

2016-08-03 Thread Zhang Rui
On 三, 2016-08-03 at 16:26 -0700, Eduardo Valentin wrote: > On Wed, Aug 03, 2016 at 03:58:47PM -0700, Eduardo Valentin wrote: > > > > Hello Rui, > > > > Please pull from > So, forgot to mention that I have been away from upstream work for > some > time now, and I am still catching up on my emails.

[PATCH] .mailmap: Correct entries for Mauro Carvalho Chehab and Shuah Khan

2016-08-03 Thread Joe Perches
mailmap entries may not use more than 2 email addresses per line. Signed-off-by: Joe Perches --- .mailmap | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.mailmap b/.mailmap index c0d5704..2a91c14c 100644 --- a/.mailmap +++ b/.mailmap @@ -96,7 +96,13 @@ Linus L

RE: Kernel panics while creating RAID volume on latest stable 4.6.2 kernel beacuse of "[PATCH v2 3/3] ses: fix discovery of SATA devices in SAS enclosures"

2016-08-03 Thread Chaitra Basappa
Any updates on this ??? Thanks, Chaitra -Original Message- From: Chaitra Basappa [mailto:chaitra.basa...@broadcom.com] Sent: Friday, June 17, 2016 4:04 PM To: linux-kernel@vger.kernel.org; Linux SCSI Mailinglist; James Bottomley Subject: Kernel panics while creating RAID volume on latest

[PATCH 2/2] power: reset: syscon-reboot-mode: Use managed resource API

2016-08-03 Thread Bjorn Andersson
Use the managed resource version of reboot_mode_register(). Cc: John Stultz Signed-off-by: Bjorn Andersson --- John, here's a "pointer" to what I meant with my comment on your sram-reboot-mode patch. Only compile tested though. drivers/power/reset/syscon-reboot-mode.c | 12 +--- 1 fil

[bug, 4.8] /proc/meminfo: counter values are very wrong

2016-08-03 Thread Dave Chinner
Hi folks, I just noticed a whacky memory usage profile when running some basic IO tests on a current 4.8 tree. It looked like there was a massive memory leak from my monitoring graphs - doing buffered IO was causing huge amounts of memory to be considered used, but the cache size was not increasin

[PATCH 1/2] power: reset: reboot-mode: Add managed resource API

2016-08-03 Thread Bjorn Andersson
Provide managed resource version of reboot_mode_register() and reboot_mode_unregister() to simplify implementations. Cc: John Stultz Signed-off-by: Bjorn Andersson --- John, here's a "pointer" to what I meant with my comment on your sram-reboot-mode patch. Only compile tested though. Document

Re: [RFC PATCH v7 1/7] Restartable sequences system call

2016-08-03 Thread Andy Lutomirski
On Wed, Aug 3, 2016 at 9:27 PM, Boqun Feng wrote: > On Wed, Aug 03, 2016 at 09:37:57AM -0700, Andy Lutomirski wrote: >> On Wed, Aug 3, 2016 at 5:27 AM, Peter Zijlstra wrote: >> > On Tue, Jul 26, 2016 at 03:02:19AM +, Mathieu Desnoyers wrote: >> >> We really care about preemption here. Every m

Re: [RFC PATCH v7 1/7] Restartable sequences system call

2016-08-03 Thread Andy Lutomirski
On Aug 3, 2016 11:31 AM, "Christoph Lameter" wrote: > > On Wed, 3 Aug 2016, Andy Lutomirski wrote: > > > > Well, a CMPXCHG without LOCK prefix isn't all that expensive on x86. > > > > > > It is however on PPC and possibly other architectures, so in name of > > > simplicity supporting only the one

Re: [PATCH] iio: humidity: hdc100x: use i2c_master_recv to read sensor data

2016-08-03 Thread Matt Ranostay
On Wed, Aug 3, 2016 at 8:33 PM, Alison Schofield wrote: > Replace the i2c_smbus_read_byte commmands used to retrieve the sensor > data with an i2c_master_recv command. > > The smbus read byte method fails because the device does not expect a > stop condition after sending the first byte. When we i

Re: [PATCH v15 04/10] arm64: Kprobes with single stepping support

2016-08-03 Thread David Long
On 07/29/2016 05:01 AM, Daniel Thompson wrote: > On 28/07/16 15:40, Catalin Marinas wrote: >> On Wed, Jul 27, 2016 at 06:13:37PM -0400, David Long wrote: >>> On 07/27/2016 07:50 AM, Daniel Thompson wrote: On 25/07/16 23:27, David Long wrote: > On 07/25/2016 01:13 PM, Catalin Marinas wrote:

Build error in -next due to 'sh: add working futex atomic ops on userspace addresses for smp'

2016-08-03 Thread Guenter Roeck
Hi, I see the following build error in -next when building sh:shx3_defconfig. {standard input}: Assembler messages: {standard input}:177: Error: unknown opcode {standard input}:7760: Error: unknown opcode {standard input}:163: Error: displacement to defined symbol .L24 overflows 8-bit field {s

[GIT PULL] target updates for v4.8-rc1

2016-08-03 Thread Nicholas A. Bellinger
Hello Linus, Here are the target-pending updates for v4.8-rc1. Please go ahead and pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git for-next The most notable item is IBM virtual SCSI target driver, that was originally ported to target-core back in 2010 by Tomo-s

[PATCH v6 2/2] clocksource: add J-Core timer/clocksource driver

2016-08-03 Thread Rich Felker
At the hardware level, the J-Core PIT is integrated with the interrupt controller, but it is represented as its own device and has an independent programming interface. It provides a 12-bit countdown timer, which is not presently used, and a periodic timer. The interval length for the latter is pro

Re: [PATCH v5 2/2] spi: add driver for J-Core SPI controller

2016-08-03 Thread Rich Felker
On Wed, Aug 03, 2016 at 08:16:43AM -0500, Rob Herring wrote: > On Sun, Apr 3, 2016 at 12:12 AM, Rich Felker wrote: > > The date on your patch emails is way off. Thanks for catching this. I tweaked my email-prep scripts to improve coverage of who to send to, and somehow lost the part that deletes

[PATCH v5 1/2] of: add J-Core SPI master bindings

2016-08-03 Thread Rich Felker
Signed-off-by: Rich Felker --- .../devicetree/bindings/spi/jcore,spi.txt | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/jcore,spi.txt diff --git a/Documentation/devicetree/bindings/spi/jcore,spi.txt b/Documentatio

[PATCH v5 2/2] spi: add driver for J-Core SPI controller

2016-08-03 Thread Rich Felker
The J-Core "spi2" device is a PIO-based SPI master controller. It differs from "bitbang" devices in that that it's clocked in hardware rather than via soft clock modulation over gpio, and performs byte-at-a-time transfers between the cpu and SPI controller. This driver will be extended to support

[PATCH v6 0/2] J-Core timer support

2016-08-03 Thread Rich Felker
Updated to include changes requested by Thomas Gleixner. Aside from minor style improvements, the main changes are moving from the old cpu notifier framework for cpu starting to the cpuhotplug framework. Since the new framework does not easily facilitate multiple driver instances without significan

[PATCH v5 0/2] J-Core SPI controller support

2016-08-03 Thread Rich Felker
Updates based on requests by Mark Brown. Driver has been made conditional in Kconfig to avoid it showing up in configurations where it's not relevant. Lots of small style improvements have been made, and the input clock frequency is now handled via the clk framework rather than a fixed clock-freque

[PATCH v6 1/2] of: add J-Core timer bindings

2016-08-03 Thread Rich Felker
Signed-off-by: Rich Felker --- .../devicetree/bindings/timer/jcore,pit.txt| 24 ++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/jcore,pit.txt diff --git a/Documentation/devicetree/bindings/timer/jcore,pit.txt b/Document

Re: [PATCH v2 1/3] mtd: introduce the mtd_pairing_scheme concept

2016-08-03 Thread Brian Norris
Hi Boris, On Mon, Jun 20, 2016 at 03:50:16PM +0200, Boris Brezillon wrote: > MLC and TLC NAND devices are using NAND cells exposing more than one bit, > but instead of attaching all the bits in a given cell to a single NAND > page, each bit is usually attached to a different page. This concept is

[PATCH v5] usb: ohci-at91: Forcibly suspend ports while USB suspend

2016-08-03 Thread Wenyou Yang
The usb controller does not managed correctly the suspend mode for the ehci. In echi mode, there is no way to have utmi_suspend_o_n[1] suspend without any device connected to it. This is why this specific control is added to fix this issue. The suspend mode works in ohci mode. This specific contro

[PATCH v6 0/2] J-Core interrupt controller support

2016-08-03 Thread Rich Felker
Updated based on feedback from Thomas Gleixner. Removal of unnecessary data allowed some simplification. Magic numbers have been replaced with meaningful (I hope) macro constants, comments added, and minor style issues fixed. Also, driver was made conditional in Kconfig to avoid it showing up in c

[PATCH v6 1/2] of: add J-Core interrupt controller bindings

2016-08-03 Thread Rich Felker
Signed-off-by: Rich Felker Acked-by: Rob Herring --- .../bindings/interrupt-controller/jcore,aic.txt| 26 ++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/jcore,aic.txt diff --git a/Documentation/devicetree/

[PATCH v6 2/2] irqchip: add J-Core AIC driver

2016-08-03 Thread Rich Felker
There are two versions of the J-Core interrupt controller in use, aic1 which generates interrupts with programmable priorities, but only supports 8 irq lines and maps them to cpu traps in the range 17 to 24, and aic2 which uses traps in the range 64-127 and supports up to 128 irqs, with priorities

Re: Generic section maintainers

2016-08-03 Thread Josh Poimboeuf
On Wed, Aug 03, 2016 at 12:56:22PM -0700, Luis R. Rodriguez wrote: > Arnd, Josh, > > In my linker table work [0], other than the linker table work and > section ranges stuff, I'm adding: > > o include/linux/sections.h > o include/asm-generic/section-core.h (not in RFC v3 but it is in my > RFC v4

Re: [RFC PATCH v7 1/7] Restartable sequences system call

2016-08-03 Thread Boqun Feng
On Wed, Aug 03, 2016 at 09:37:57AM -0700, Andy Lutomirski wrote: > On Wed, Aug 3, 2016 at 5:27 AM, Peter Zijlstra wrote: > > On Tue, Jul 26, 2016 at 03:02:19AM +, Mathieu Desnoyers wrote: > >> We really care about preemption here. Every migration implies a > >> preemption from a user-space per

linux-next: Tree for Aug 4

2016-08-03 Thread Stephen Rothwell
Hi all, Please do not add material destined for v4.9 to your linux-next included branches until after v4.8-rc1 has been released. Changes since 20160803: The v4l-dvb tree gained a conflict against Linus' tree. The thermal-soc tree gained a conflict against the thermal tree. Non-merge co

Re: [PATCH v3 2/6] extcon: Add the support for extcon property according to extcon type

2016-08-03 Thread Guenter Roeck
On Wed, Aug 3, 2016 at 5:42 PM, Chanwoo Choi wrote: > Hi Roger, > > On 2016년 08월 03일 18:46, Roger Quadros wrote: >> Hi Chanwoo, >> [ ... ] > + /* > + * Check whether the external connector is attached. > + * If external connector is detached, the user can not > + * get the

A question about transparent hugepages

2016-08-03 Thread zhong jiang
according to the total_mapcount, Different process can map any subpages of the transparent hugepages. How it can happen to ?

Re: [PATCH v2] powerpc/32: fix csum_partial_copy_generic()

2016-08-03 Thread Scott Wood
On Tue, 2016-08-02 at 10:07 +0200, Christophe Leroy wrote: > commit 7aef4136566b0 ("powerpc32: rewrite csum_partial_copy_generic() > based on copy_tofrom_user()") introduced a bug when destination > address is odd and initial csum is not null > > In that (rare) case the initial csum value has to b

RE: [PATCH] usb: ohci-at91: Suspend the ports while USB suspending

2016-08-03 Thread Yang, Wenyou
Hi Alan, From: Alan Stern [st...@rowland.harvard.edu] Sent: Friday, May 13, 2016 2:11 To: Yang, Wenyou Cc: Greg Kroah-Hartman; Ferre, Nicolas; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org Subject: Re: [PATCH]

Re: [RFC PATCH v2 1/4] Documentation: DT: net: Add Xilinx gmiitorgmii converter device tree binding documentation

2016-08-03 Thread Florian Fainelli
On 27/07/2016 01:05, Andrew Lunn wrote: > Hi Appana > > Here is roughly what i was thinking: > > struct priv { >phy_device *master; >phy_device *slave; >struct phy_driver *slave_drv; > }; > > phy_status_clone(phy_device *master, phy_device *slave) > { > master->spee

Re: [kernel-hardening] Re: [PATCH 1/2] security, perf: allow further restriction of perf_event_open

2016-08-03 Thread Eric W. Biederman
Peter Zijlstra writes: > On Wed, Aug 03, 2016 at 11:53:41AM -0700, Kees Cook wrote: >> > Kees Cook writes: >> > >> >> On Tue, Aug 2, 2016 at 1:30 PM, Peter Zijlstra >> >> wrote: >> >> Let me take this another way instead. What would be a better way to >> >> provide a mechanism for system owner

Re: [PATCH v1] net: phy: micrel: Add specific suspend

2016-08-03 Thread Florian Fainelli
On 03/08/2016 17:21, Wenyou Yang wrote: > Disable all interrupts when suspend, they will be enabled > when resume. Otherwise, the suspend/resume process will be > blocked occasionally. This seems like something fairly generic actually, we could imagine having the core library do something like thi

Re: [PATCH v2 1/3] mm: memcontrol: fix swap counter leak on swapout from offline cgroup

2016-08-03 Thread Vladimir Davydov
On Wed, Aug 03, 2016 at 01:09:42PM +0200, Michal Hocko wrote: > On Wed 03-08-16 12:50:49, Vladimir Davydov wrote: > > On Tue, Aug 02, 2016 at 06:00:26PM +0200, Michal Hocko wrote: > > > On Tue 02-08-16 18:00:48, Vladimir Davydov wrote: > > ... > > > > diff --git a/mm/memcontrol.c b/mm/memcontrol.c

[PATCH] iio: humidity: hdc100x: use i2c_master_recv to read sensor data

2016-08-03 Thread Alison Schofield
Replace the i2c_smbus_read_byte commmands used to retrieve the sensor data with an i2c_master_recv command. The smbus read byte method fails because the device does not expect a stop condition after sending the first byte. When we issue the second read, we are getting the first byte again. Net eff

Re: [PATCH] powerpc: move hmi.c to arch/powerpc/kvm/

2016-08-03 Thread Daniel Axtens
Paolo Bonzini writes: > hmi.c functions are unused unless sibling_subcore_state is nonzero, and > that in turn happens only if KVM is in use. So move the code to > arch/powerpc/kvm/, putting it under CONFIG_KVM_BOOK3S_64_HANDLER > rather than CONFIG_PPC_BOOK3S_64. The sibling_subcore_state is a

Re: [RFC PATCH v2 0/3] perf/tracefs: Container-aware tracing support

2016-08-03 Thread Eric W. Biederman
Hari Bathini writes: > This RFC patch set supports filtering container specific events > when perf tool is executed inside a container. The patches apply > cleanly on v4.7.0-rc7 > > Changes from v1: > 1/3. Revived earlier approach[1] with cgroup namespace instead > of pid namespace > 2/3. Ne

Re: [RFC][PATCH 3/4] power: reset: Add sram-reboot-mode driver

2016-08-03 Thread John Stultz
On Wed, Aug 3, 2016 at 6:03 PM, Bjorn Andersson wrote: > On Wed 03 Aug 16:05 PDT 2016, John Stultz wrote: > > [..] >> diff --git a/drivers/power/reset/sram-reboot-mode.c >> b/drivers/power/reset/sram-reboot-mode.c > [..] >> + >> +struct sram_reboot_mode { >> + struct reboot_mode_driver reboot

xfstests xfs fuzzers fail with DAX

2016-08-03 Thread Xiong Zhou
Hi, A few xfs fuzzers in xfstests fail with dax mount option, pass without dax. They are xfs/086 xfs/088 xfs/089 xfs/091. xfstests to commit 4470ad4c7e (Jul 26) kernel to commit dd95069545 (Jul 24) + ./check xfs/091 FSTYP -- xfs (non-debug) PLATFORM -- Linux/x86_64 rhel73 4.7.0+

[PATCH v2 7/7] drm/mediatek: Fix mtk_atomic_complete for runtime_pm

2016-08-03 Thread Bibby Hsieh
To properly implement atomic w/ runtime pm, we move drm_atomic_helper_commit_modeset_enables() above drm_atomic_helper_commit_planes() to ensure CRTCs are enabled before modifying plane registers, and set active_only to true to filter out plane update notifications when the CRTC is disabled. Accor

[PATCH v2 2/7] drm/mediatek: plane: Remove plane zpos/index

2016-08-03 Thread Bibby Hsieh
From: Daniel Kurtz It is not actually useful to a mtk plane to know its zpos/index, so just remove this field. This let's completely remove struct mtk_drm_plane in a follow up patch. Signed-off-by: Daniel Kurtz Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c |2 +-

[PATCH v2 6/7] drm/mediatek: plane: Use FB's format's cpp to compute x offset

2016-08-03 Thread Bibby Hsieh
From: Daniel Kurtz Use the framebuffer's format to compute its cpp, and use it when calculating the address shift value. Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_drm_plane.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_d

[PATCH v2 0/7] drm/mediatek: cleaning up and refine

2016-08-03 Thread Bibby Hsieh
These patches based on 4.7-rc1 to clean up unused function & variable and use drm core function instead. The following patches are needed to cleanly apply on top of v4.7-rc1: - https://patchwork.kernel.org/patch/8044001/ (drm: Deal with rotation in drm_plane_helper_check_update()) - https://p

[PATCH v2 3/7] drm/mediatek: Remove mtk_drm_plane

2016-08-03 Thread Bibby Hsieh
From: Daniel Kurtz Now that mtk_drm_plane just contains its base struct drm_plane, we can just remove it and use struct drm_plane everywhere. Signed-off-by: Daniel Kurtz Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 16 drivers/gpu/drm/mediatek/m

Re: [RFC PATCH v2 3/3] tracefs: add 'newinstance' mount option

2016-08-03 Thread Eric W. Biederman
Hari Bathini writes: > When tracefs is mounted inside a container, its files are visible to > all containers. This implies that a user from within a container can > list/delete uprobes registered elsewhere, leading to security issues > and/or denial of service (Eg. deleting a probe that is regist

[PATCH v2 1/7] drm/mediatek: Remove mtk_drm_crtc_check_flush

2016-08-03 Thread Bibby Hsieh
From: Daniel Kurtz This function no longer exists. Signed-off-by: Daniel Kurtz Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_drm_crtc.h |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_crtc.h b/drivers/gpu/drm/mediatek/mtk_drm_crtc.h index

[PATCH v2 5/7] drm/mediatek: plane: Merge mtk_plane_enable into mtk_plane_atomic_update

2016-08-03 Thread Bibby Hsieh
From: Daniel Kurtz The mtk_plane_enable is just called once by mtk_plane_atomic_update. So, merge mtk_plane_enable into mtk_plane_atomic_update. While we are here, also clean up the function a bit by using an fb local variables. Signed-off-by: Bibby Hsieh Signed-off-by: Daniel Kurtz --- driv

[PATCH v2 4/7] drm/mediatek: Use drm_atomic destroy_state helpers

2016-08-03 Thread Bibby Hsieh
Use the core destroy_state helpers to destroy core state to ensure we don't leak if/when more fields get added later. Signed-off-by: Daniel Kurtz Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c |3 +-- drivers/gpu/drm/mediatek/mtk_drm_plane.c |3 +-- 2 files chan

[PATCH v5] arm64: dts: mt8173: add mmsel clocks for 4K support

2016-08-03 Thread Bibby Hsieh
To support HDMI 4K resolution, mmsys need clcok mm_sel to be 400MHz. The board .dts file should override the clock rate property with the higher VENCPLL frequency the board supports HDMI 4K resolution. Signed-off-by: Bibby Hsieh --- arch/arm64/boot/dts/mediatek/mt8173.dtsi |2 ++ 1 file cha

Re: [PATCH v3 0/7] char/random: Simplify random address requests

2016-08-03 Thread Kees Cook
On Wed, Aug 3, 2016 at 4:39 PM, Jason Cooper wrote: > Two previous attempts have been made to rework this API. The first can be > found at: > > https://lkml.kernel.org/r/cover.1390770607.git.ydrone...@opteya.com > > The second at: > > > https://lkml.kernel.org/r/1469471141-25669-1-git-send-e

[PATCH v3 3/3] drm/mediatek: fix the wrong pixel clock when resolution is 4K

2016-08-03 Thread Bibby Hsieh
From: Junzhi Zhao Pixel clock should be 297MHz when resolution is 4K. Signed-off-by: Junzhi Zhao Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_dpi.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/d

[PATCH v3 2/3] drm/mediatek: enhance the HDMI driving current

2016-08-03 Thread Bibby Hsieh
From: Junzhi Zhao In order to improve 4K resolution performance, we have to enhance the HDMI driving current when clock rate is greater than 165MHz. Signed-off-by: Junzhi Zhao Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c | 42 +--- 1 file

[PATCH v3 0/3] MT8173 HDMI 4K support

2016-08-03 Thread Bibby Hsieh
This is MT8173 HDMI 4K support PATCH v3, based on 4.7-rc1. In order to support HDMI 4K on MT8173, we have to make some modifications. 1) Make sure that mtk_hdmi_send_infoframe is sent successfully. 2) Enhance the HDMI driving current to improve performance. 3) Make sure that pixel clock is 297MHz

[PATCH v3 1/3] drm/mediatek: do mtk_hdmi_send_infoframe after HDMI clock enable

2016-08-03 Thread Bibby Hsieh
From: Junzhi Zhao The mtk_hdmi_send_infoframe have to be run after PLL and PIXEL clock of HDMI enable. Make sure that HDMI inforframes can be sent successfully. Signed-off-by: Junzhi Zhao Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 17 +++-- 1 file chang

Re: [RFC][PATCH 5/7] cpufreq / sched: UUF_IO flag to indicate iowait condition

2016-08-03 Thread Steve Muckle
On Wed, Aug 03, 2016 at 12:38:20AM +0200, Rafael J. Wysocki wrote: > On Wed, Aug 3, 2016 at 12:02 AM, Steve Muckle wrote: > > On Tue, Aug 02, 2016 at 03:37:02AM +0200, Rafael J. Wysocki wrote: > >> On Tue, Aug 2, 2016 at 3:22 AM, Steve Muckle > >> wrote: > >> > On Mon, Aug 01, 2016 at 01:37:23AM

[PATCH v1] drm/rockchip: fix fbdev crash when not use DRM_FBDEV_EMULATION

2016-08-03 Thread Mark Yao
[1.162571] Unable to handle kernel NULL pointer dereference at virtual address 0200 [1.165656] Modules linked in: [1.165941] CPU: 5 PID: 143 Comm: kworker/5:2 Not tainted 4.4.15 #237 [1.166506] Hardware name: Rockchip RK3399 Evaluation Board v1 (Android) (DT) [1.167153] Wor

[PATCH V4]mmc: dw_mmc-k3: UHS-SD card for Hisilicon Hikey

2016-08-03 Thread Jin Guojun
mmc: dw_mmc-k3: Hisilicon Hikey have no tuning function in dw_mmc-k3.c,so we must do the tuning function stub when we init UHS card. V1:add .prepare_command in dw_mmc.c V2:delete .prepare_command, add err = 0 in dw_mci_execute_tuning V3:delete err = 0 in dw_mci_execute_tuning,add .execute_tuning

Re: [PATCH 1/3] drm/rockchip: inno_hdmi: add audio support

2016-08-03 Thread Yakir Yang
Mark, Got it, would rebase soonest :-) Thanks, - Yakir On 08/04/2016 10:01 AM, Mark yao wrote: Hi Yakir After apply your patch, I got following warning messge: drivers/gpu/drm/rockchip/inno_hdmi.c:818:2: warning: initialization from incompatible pointer type [enabled by default] drivers/g

Re: [PATCH 1/3] drm/rockchip: inno_hdmi: add audio support

2016-08-03 Thread Mark yao
Hi Yakir After apply your patch, I got following warning messge: drivers/gpu/drm/rockchip/inno_hdmi.c:818:2: warning: initialization from incompatible pointer type [enabled by default] drivers/gpu/drm/rockchip/inno_hdmi.c:818:2: warning: (near initialization for 'audio_codec_ops.hw_params') [e

Re: perf test BPF failing on f24: fix

2016-08-03 Thread Wangnan (F)
On 2016/8/4 7:08, Masami Hiramatsu wrote: On Wed, 3 Aug 2016 23:45:57 +0900 Masami Hiramatsu wrote: [root@jouet ~]# perf probe sys_epoll_wait Failed to find debug information for address bd295b50 Probe point 'sys_epoll_wait' not found. Error: Failed to add events. So, at least I

[PATCH] sched/deadline: Fix lock pinning warning during cpu hotplug

2016-08-03 Thread Wanpeng Li
From: Wanpeng Li WARNING: CPU: 0 PID: 0 at kernel/locking/lockdep.c:3531 lock_release+0x690/0x6a0 releasing a pinned lock Call Trace: dump_stack+0x99/0xd0 __warn+0xd1/0xf0 ? dl_task_timer+0x1a1/0x2b0 warn_slowpath_fmt+0x4f/0x60 ? sched_clock+0x13/0x20 lock_release+0x690/0x6a0 ? enqueue_pus

linux-next: manual merge of the thermal-soc tree with the thermal tree

2016-08-03 Thread Stephen Rothwell
Hi Eduardo, Today's linux-next merge of the thermal-soc tree got a conflict in: drivers/thermal/thermal_core.c between commit: c61628f5c6be ("thermal: fix race condition when updating cooling device") from the thermal tree and commit: 5eb0037dc771 ("thermal: core: introduce thermal_help

Re: [PATCH] UHS-SD card for Hisilicon Hikey

2016-08-03 Thread Jaehoon Chung
Hi, On 08/03/2016 07:22 PM, Jin Guojun wrote: > mmc: dw_mmc-k3: Hisilicon Hikey have no tuning function in dw_mmc-k3.c,so we > must do the tuning function stub when we init UHS card. Refer to Shawn's previous comment. "No, please amend the commit title line as "mmc: dw_mmc: x" And add "linux

Re: [RFC PATCH v2 2/3] tracefs: add instances support for uprobe events

2016-08-03 Thread Steven Rostedt
On Thu, 4 Aug 2016 01:46:04 +0530 Aravinda Prasad wrote: > On Thursday 04 August 2016 01:40 AM, Steven Rostedt wrote: > > On Thu, 4 Aug 2016 01:00:51 +0530 > > Aravinda Prasad wrote: > > > >> > >>> Can a container have its own function tracing? > >> > >> Sorry, I didn't understand that.

Re: [RFC][PATCH 3/4] power: reset: Add sram-reboot-mode driver

2016-08-03 Thread Bjorn Andersson
On Wed 03 Aug 16:05 PDT 2016, John Stultz wrote: [..] > diff --git a/drivers/power/reset/sram-reboot-mode.c > b/drivers/power/reset/sram-reboot-mode.c [..] > + > +struct sram_reboot_mode { > + struct reboot_mode_driver reboot; > + void __iomem *reboot_reason_val_addr; 23 characters is...

linux-next: manual merge of the v4l-dvb tree with Linus' tree

2016-08-03 Thread Stephen Rothwell
Hi Mauro, Today's linux-next merge of the v4l-dvb tree got a conflict in: Documentation/DocBook/Makefile between commit: 88e196b337d6 ("Documentation/DocBook: remove gpu.tmpl") from Linus' tree and commit: 43f71d93a0cb ("doc-rst: Remove the media docbook") from the v4l-dvb tree. I fix

[PATCH 05/17] perf annotate: Introduce strerror for handling symbol__disassemble() errors

2016-08-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We were just using pr_error() which makes it difficult for non stdio UIs to provide errors using its widgets, as they need to somehow catch what was passed to pr_error(). Fix it by introducing a __strerror() interface like the ones used elsewhere, for instance targ

[PATCH 15/17] perf record: Add --sample-cpu option

2016-08-03 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Adding --sample-cpu option to be able to explicitly enable CPU sample type. Currently it's only enable implicitly in case the target is cpu related. It will be useful for following c2c record tool. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra

[PATCH 14/17] perf hists: Introduce output_resort_cb method

2016-08-03 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa When dealing with nested hist entries it's helpful to have a way to resort those nested objects. Adding optional callback call into output_resort function and following new interface function: typedef int (*hists__resort_cb_t)(struct hist_entry *he); void hists__output_reso

Re: [PATCH v3 2/6] extcon: Add the support for extcon property according to extcon type

2016-08-03 Thread Chanwoo Choi
Hi Roger, On 2016년 08월 03일 18:46, Roger Quadros wrote: > Hi Chanwoo, > > On 02/08/16 11:08, Chanwoo Choi wrote: >> Hi, >> >> On 2016년 08월 02일 16:43, Roger Quadros wrote: >>> +Felipe >>> >>> Hi, >>> >>> On 02/08/16 04:58, Chanwoo Choi wrote: This patch support the extcon property for the exte

[PATCH 01/17] perf evsel: Introduce constructor for cycles event

2016-08-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo That is the default used when no events is specified in tools, separate it so that simpler tools that need no evlist can use it directly. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-67mwuthsc

[PATCH 02/17] perf annotate: Use pipe + fork instead of popen

2016-08-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We will need to redirect the stderr as well, so open code popen as a starting point. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-k0zt9svg4bswiglem7orn...@git.kernel.org Signed-off-by: Arnaldo

[PATCH 11/17] tools lib: Add bitmap_and function

2016-08-03 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add support to perform logical and on bitmaps. Code taken from kernel's include/linux/bitmap.h. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1470074555-24889-4-git-send-email-jo...@kernel.org Signed-off-by: Arna

[PATCH 08/17] tools lib traceevent: Ignore generated library files

2016-08-03 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim Signed-off-by: Namhyung Kim Cc: David Ahern Cc: Jiri Olsa Cc: Peter Zijlstra Cc: Steven Rostedt Link: http://lkml.kernel.org/r/20160802050148.3413-1-namhy...@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/lib/traceevent/.gitignore | 1 + 1 file changed, 1 i

[PATCH 03/17] perf target: str_error_r() always returns the buffer it receives

2016-08-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo So no need for checking if it uses the strerror_r() GNU variant error reporting mechanism, i.e. if it returns a pointer to a immutable string internal to glibc. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Fixes: c8b5f2c96d1b (

[PATCH 10/17] tools lib: Add bitmap_scnprintf function

2016-08-03 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add support to print bitmap list. Code mostly taken from kernel's bitmap_list_string. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1470074555-24889-3-git-send-email-jo...@kernel.org [ s/bitmap_snprintf/bitmap_scn

[PATCH 07/17] perf tools: Fix build failure on perl script context

2016-08-03 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim On my Archlinux machine, perf faild to build like below: CC scripts/perl/Perf-Trace-Util/Context.o In file included from /usr/lib/perl5/core/perl/CORE/perl.h:3905:0, from Context.xs:23: /usr/lib/perl5/core/perl/CORE/inline.h: In function : /u

[PATCH 09/17] tools lib: Add bitmap_alloc function

2016-08-03 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Adding bitmap_alloc function to dynamically allocate bitmap. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20160802113302.GA7479@krava Signed-off-by: Arnaldo Carvalho de Melo --- tools/include/linu

  1   2   3   4   5   6   >