Re: [PATCH v3] tools/perf: Fix the mask in regs_dump__printf and print_sample_iregs

2016-06-22 Thread Yury Norov
On Wed, Jun 22, 2016 at 09:20:43AM +0530, Madhavan Srinivasan wrote: > > > On Tuesday 21 June 2016 09:05 PM, Yury Norov wrote: > > On Tue, Jun 21, 2016 at 08:26:40PM +0530, Madhavan Srinivasan wrote: > >> When decoding the perf_regs mask in regs_dump__printf(), > >> we loop through the mask using

Re: [PATCH 6/6] ppc: ebpf/jit: Implement JIT compiler for extended BPF

2016-06-22 Thread Naveen N. Rao
On 2016/06/22 08:37PM, Michael Ellerman wrote: > On Tue, 2016-06-07 at 19:02 +0530, Naveen N. Rao wrote: > > > PPC64 eBPF JIT compiler. > > > > Enable with: > > echo 1 > /proc/sys/net/core/bpf_jit_enable > > or > > echo 2 > /proc/sys/net/core/bpf_jit_enable > > > > ... to see the generated JIT c

[PATCH] staging: emxx_udc: allow modular build

2016-06-22 Thread Arnd Bergmann
A change to the usb gadget core allowed certain API functions to be part of a loadable module, which breaks having emxx_udc built-in: drivers/staging/built-in.o: In function `nbu2ss_drv_probe': (.text+0x2428): undefined reference to `usb_ep_set_maxpacket_limit' The original patch already fixed to

Re: [PATCH v2] byteswap: try to avoid __builtin_constant_p gcc bug

2016-06-22 Thread Arnd Bergmann
On Wednesday, June 22, 2016 2:44:21 PM CEST Tomas Winkler wrote: > > > > There are more than 20 files that have the statement: case cpu_to_... > > Sparse complains about: case __builtin_bswap, not about > > __builtin_constant_p. > > There is even much more in the header files used in initializer

Re: [RFC PATCH 1/4] Documentation: mmc: add description for new caps

2016-06-22 Thread Ulf Hansson
On 8 June 2016 at 22:48, Rob Herring wrote: > On Wed, Jun 08, 2016 at 04:20:21PM +0800, Shawn Lin wrote: >> Let's add some basic description for cap-no-sdio, >> cap-no-sd and cap-no-mmc. > > This doesn't say why. > > If you know what is there, then there's a better way to do this. Look at > the ch

[PATCH 3/3] fs/9p: search open fids first

2016-06-22 Thread Greg Kurz
A previous patch fixed the "create-unlink-getattr" idiom: if getattr is called on an unlinked file, we try to find an open fid attached to the corresponding inode. We have a similar issue with file permissions and setattr: open("./test.txt", O_RDWR|O_CREAT, 0666) = 4 chmod("./test.txt", 0)

[PATCH 2/3] fs/9p: track open fids

2016-06-22 Thread Greg Kurz
From: Greg Kurz This patch adds accounting of open fids in a list hanging off the i_private field of the corresponding inode. This allows faster lookups compared to searching the full 9p client list. The lookup code is modified accordingly. Signed-off-by: Greg Kurz --- fs/9p/fid.c

[PATCH 0/3] fs/9p: fix setattr/getattr issues with open files

2016-06-22 Thread Greg Kurz
The 9p filesystem has some serious issues with all syscalls that deal with file attributes out of a file descriptor instead of a path name (aka. fstat, ftruncate, fchmod and friends). If the file is opened and then unlinked, any subsequent call to the above syscalls will fail with EACCES. The same

Re: [PATCH v2 10/11] clk: Show CRITICAL clks in clk_summary output

2016-06-22 Thread Thierry Reding
On Fri, May 27, 2016 at 04:38:13PM -0400, Rhyland Klein wrote: > Add a '^' character to the beginning of clk entries that are for > CRITICAL clks. > > Signed-off-by: Rhyland Klein > --- > drivers/clk/clk.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/drivers/c

[PATCH 1/3] fs/9p: fix create-unlink-getattr idiom

2016-06-22 Thread Greg Kurz
From: Eric Van Hensbergen Fixes several outstanding bug reports of not being able to getattr from an open file after an unlink. This patch cleans up transient fids on an unlink and will search open fids on a client if it detects a dentry that appears to have been unlinked. This search is necess

Re: [PATCH v8 4/4] serial: pl011: add console matching function

2016-06-22 Thread Yury Norov
On Fri, May 20, 2016 at 04:03:23PM +0300, Aleksey Makarov wrote: > This patch adds function pl011_console_match() that implements > method match of struct console. It allows to match consoles against > data specified in a string, for example taken from command line or > compiled by ACPI SPCR table

Re: [PATCH v2 01/11] clk: tegra: Switch to using critical clks

2016-06-22 Thread Thierry Reding
On Fri, May 27, 2016 at 04:38:04PM -0400, Rhyland Klein wrote: > Mark some of the required-to-be-enabled clks as critical clks. These > need to be kept on through the disabling of unused clks during init. > They may not get any reference before or after init, but are required > to be on, therefore

Re: [PATCH] mwifiex: Reduce endian conversion for REG Host Commands

2016-06-22 Thread Prasun Maiti
> If you send a new version of the patch mark it as [PATCH v2] and always > include a change log so that people don't need to guess what has > changed: > > http://kernelnewbies.org/FirstKernelPatch#head-5c81b3c517a1d0bbc24f92594cb734e155fcbbcb > > So now you should send a v3 and include a changelog

[PATCH] MAINTAINERS: Extend Samsung SoC entry with S3C/S5P drivers

2016-06-22 Thread Krzysztof Kozlowski
Some of the drivers for S3C and S5P families of Samsung SoCs go in through Samsung SoC tree. Extend the entry so proper maintainers would be displayed in such cases, most notably the cpufreq drivers. This does not change the work-flow for other drivers which have sub-maintainers (like Samsung clo

Re: mm, oom_reaper: How to handle race with oom_killer_disable() ?

2016-06-22 Thread Michal Hocko
On Wed 22-06-16 14:08:43, Michal Hocko wrote: > On Wed 22-06-16 19:57:17, Tetsuo Handa wrote: > > Michal Hocko wrote: > [...] > > > That being said I guess the patch to try_to_freeze_tasks after > > > oom_killer_disable should be simple enough to go for now and stable > > > trees and we can come up

[PATCH] oom, suspend: fix oom_reaper vs. oom_killer_disable race

2016-06-22 Thread Michal Hocko
From: Michal Hocko Tetsuo has reported the following potential oom_killer_disable vs. oom_reaper race: (1) freeze_processes() starts freezing user space threads. (2) Somebody (maybe a kenrel thread) calls out_of_memory(). (3) The OOM killer calls mark_oom_victim() on a user space thread P1 w

Re: [Intel-gfx] linux-next: manual merge of the drm-misc tree with the arm tree

2016-06-22 Thread Daniel Vetter
On Wed, Jun 22, 2016 at 10:43 AM, Russell King wrote: > On Wed, Jun 22, 2016 at 10:23:36AM +0200, Daniel Vetter wrote: >> On Wed, Jun 22, 2016 at 09:21:11AM +0100, Russell King wrote: >> > On Wed, Jun 22, 2016 at 09:31:18AM +0200, Daniel Vetter wrote: >> > > On Wed, Jun 22, 2016 at 3:47 AM, Stephe

Re: [PATCH v1 1/2] mm: thp: move pmd check inside ptl for freeze_page()

2016-06-22 Thread Kirill A. Shutemov
On Wed, Jun 22, 2016 at 02:42:25AM +, Naoya Horiguchi wrote: > On Wed, Jun 22, 2016 at 01:37:00AM +, Horiguchi Naoya(堀口 直也) wrote: > > On Tue, Jun 21, 2016 at 06:04:33PM +0300, Kirill A. Shutemov wrote: > > > On Mon, Jun 20, 2016 at 12:32:01PM +0300, Kirill A. Shutemov wrote: > > > > > +voi

Re: mm, oom_reaper: How to handle race with oom_killer_disable() ?

2016-06-22 Thread Michal Hocko
On Wed 22-06-16 19:57:17, Tetsuo Handa wrote: > Michal Hocko wrote: [...] > > That being said I guess the patch to try_to_freeze_tasks after > > oom_killer_disable should be simple enough to go for now and stable > > trees and we can come up with something less hackish later. I do not > > like the

Re: [PATCH] rcu: Use rcu_gp_kthread_wake() to wake up grace period kthreads again

2016-06-22 Thread Paul E. McKenney
On Wed, Jun 22, 2016 at 05:19:27PM +0800, Jisheng Zhang wrote: > commit abedf8e2419f ("rcu: Use simple wait queues where possible in > rcutree") converts wait queues in rcutree to use simple wait queues, > but it incorrectly reverts the commit 2aa792e6faf1 ("rcu: Use > rcu_gp_kthread_wake() to wake

Re: [PATCH v4 2/9] [media] v4l2-core: Add VFL_TYPE_TOUCH_SENSOR

2016-06-22 Thread Florian Echtler
On 20.06.2016 14:00, Hans Verkuil wrote: > On 06/17/2016 04:16 PM, Nick Dyer wrote: >> Some touch controllers send out raw touch data in a similar way to a >> greyscale frame grabber. Add a new device type for these devices. >> >> Use a new device prefix v4l-touch for these devices, to stop generic

Re: Reported regressions for 4.7 as of Sunday, 2016-06-19

2016-06-22 Thread Johannes Thumshirn
On Tue, Jun 21, 2016 at 09:25:18PM -0400, Martin K. Petersen wrote: > > "Linus" == Linus Torvalds writes: > > >> https://bugzilla.redhat.com/show_bug.cgi?id=1348342 > > This first one appears to be a crash in a USB sound doodad and not > qla2xxx. Also, this appears to be where the 4.5.5 -> 4

Re: [PATCH V7 1/8] ACPI: I/O Remapping Table (IORT) initial support

2016-06-22 Thread Marc Zyngier
On 22/06/16 12:06, Tomasz Nowicki wrote: > On 22.06.2016 12:50, Marc Zyngier wrote: >> On 21/06/16 08:12, Hanjun Guo wrote: >>> Hi Tomasz, >>> >>> Sorry for jumping out late, just one comment below. >>> >>> On 2016/6/20 19:02, Tomasz Nowicki wrote: IORT shows representation of IO topology for

[PATCH 1/5] pwm: tegra: Add support for reset control

2016-06-22 Thread Laxman Dewangan
From: Rohith Seelaboyina Add reset control of the PWM controller to reset it before accessing the PWM register. Signed-off-by: Rohith Seelaboyina Signed-off-by: Laxman Dewangan --- drivers/pwm/pwm-tegra.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/pwm/pwm-tegra.c

[PATCH 2/5] pwm: tegra: Allow 100% duty cycle

2016-06-22 Thread Laxman Dewangan
From: "Victor(Weiguo) Pan" To get 100% duty cycle (always high), pulse width needs to be set to 256. Signed-off-by: Victor(Weiguo) Pan Signed-off-by: Laxman Dewangan --- drivers/pwm/pwm-tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/pwm-tegra.c b/drive

[PATCH 5/5] pwm: tegra: Add support for Tegra186

2016-06-22 Thread Laxman Dewangan
Tegra186 has PWM controller with only one output instead of 4 output in earlier generation SoCs. Add support for Tegra186 and find the number of PWM output based on driver data. Signed-off-by: Laxman Dewangan --- drivers/pwm/pwm-tegra.c | 31 ++- 1 file changed, 26 i

[PATCH 3/5] pwm: tegra: fix overflow when calculating duty cycle

2016-06-22 Thread Laxman Dewangan
From: Hyong Bin Kim duty_ns * (1 << PWM_DUTY_WIDTH) could overflow in integer calcualtion when PWM rate is low. Hence do all calculation on unsigned long long to avoid overflow. Signed-off-by: Hyong Bin Kim Signed-off-by: Laxman Dewangan --- drivers/pwm/pwm-tegra.c | 5 +++-- 1 file changed,

RE: [PATCH] Input: elan_i2c - +200 ms delay before setting to ABS mode

2016-06-22 Thread 廖崇榮
-Original Message- From: Daniel Drake [mailto:dr...@endlessm.com] Sent: Tuesday, June 21, 2016 10:42 PM To: 廖崇榮 Cc: Dmitry Torokhov; Chris Chiu; Charlie Mooney; Michele Curti; Krzysztof Kozlowski; Benson Leung; linux-in...@vger.kernel.org; Linux Kernel; Linux Upstreaming Team; 黃世鵬 經理 Sub

[PATCH 4/5] pwm: tegra: Add DT node compatible for Tegra186

2016-06-22 Thread Laxman Dewangan
Tegra186 has 8 different PWM controller and each controller has only one output. Earlier generation SoCs have the 4 PWM output per controller. Add DT node compatible for Tegra186. Signed-off-by: Laxman Dewangan --- Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt | 10 ++ 1

Re: [PATCH v4 2/9] [media] v4l2-core: Add VFL_TYPE_TOUCH_SENSOR

2016-06-22 Thread Nick Dyer
On 22/06/2016 12:48, Florian Echtler wrote: > On 20.06.2016 14:00, Hans Verkuil wrote: >> On 06/17/2016 04:16 PM, Nick Dyer wrote: >>> Some touch controllers send out raw touch data in a similar way to a >>> greyscale frame grabber. Add a new device type for these devices. >>> >>> Use a new device

Re: [PATCH v3 2/3] x86/signal: Rewire the restart_block() syscall to have a constant nr

2016-06-22 Thread Pedro Alves
On 06/21/2016 05:32 PM, Andy Lutomirski wrote: > On Jun 21, 2016 5:40 AM, "Pedro Alves" wrote: > I didn't try that particular experiment. But, from that email: > >> After that, GDB can control the stopped inferior. To call function "func1()" >> of inferior, GDB need: Step 1, save current value

[PATCH 0/5] pwm: Fixes and support for Tegra186

2016-06-22 Thread Laxman Dewangan
Have fixes for 100% duty cycle, avoid computation loss for duty period calculation and add support the Tegra186. Hyong Bin Kim (1): pwm: tegra: fix overflow when calculating duty cycle Laxman Dewangan (2): pwm: tegra: Add DT node compatible for Tegra186 pwm: tegra: Add support for Tegra186

Re: [PATCH v2] pwm: improve args checking in pwm_apply_state()

2016-06-22 Thread Thierry Reding
On Wed, Jun 22, 2016 at 10:04:22AM +0200, Boris Brezillon wrote: > On Tue, 21 Jun 2016 11:37:31 -0700 > Brian Norris wrote: > > > Hi Geert, > > > > On Tue, Jun 21, 2016 at 04:42:04PM +0200, Geert Uytterhoeven wrote: > > > On Fri, May 27, 2016 at 6:45 PM, Brian Norris > > > wrote: > > > > It

Re: camera application for testing (was Re: v4l subdevs without big device)

2016-06-22 Thread Pavel Machek
Hi! > > I think libv4l itself has algorithms to control at least some of these. It > > relies on the image data so the CPU time consumption will be high. > > > > AFAIR Laurent has also worked on implementing some algorithms that use the > > histogram and some of the statistics. Add him to cc list

Re: [PATCH 02/13] irq: Introduce IRQD_AFFINITY_MANAGED flag

2016-06-22 Thread Alexander Gordeev
On Thu, Jun 16, 2016 at 11:19:51AM -0400, Keith Busch wrote: > On Wed, Jun 15, 2016 at 10:50:53PM +0200, Bart Van Assche wrote: > > Does it matter on x86 systems whether or not these interrupt vectors are > > also associated with a CPU with a higher CPU number? Although multiple bits > > can be set

[PATCH v2] tracing: Fix oops caused by graph notrace filter

2016-06-22 Thread Chunyu Hu
wakeup tracer can use function_graph trace when display_graph trace option is setup by user via tracefs, and bypass the set_graph_function and set_graph_notrace. But the bypass of set_graph_notrace is not clean. Although wakeup_graph_entry does most of the bypass, and both the enry and exit event w

Re: [PATCH] x86: Report Intel platform_id in /proc/cpuinfo

2016-06-22 Thread Henrique de Moraes Holschuh
On Tue, Jun 21, 2016, at 13:05, Andi Kleen wrote: > Andi Kleen writes: > > Ping! Any comments on this patch? Well, FWIW, it looks good enough to me. -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond whe

Re: [PATCHv3 1/2] usb: USB Type-C connector class

2016-06-22 Thread Oliver Neukum
On Wed, 2016-06-22 at 13:03 +0300, Heikki Krogerus wrote: > On Wed, Jun 22, 2016 at 12:50:16PM +0300, Heikki Krogerus wrote: > > > But if the port is DRP, we will always be able to swap the data role > > between DFP and UFP. > > Just to clarify: DRP as it's defined in Type-C spec < 1.2 means the

Re: [PATCH 4/4] sched,fair: Fix PELT integrity for new tasks

2016-06-22 Thread Peter Zijlstra
On Tue, Jun 21, 2016 at 03:29:49PM +0200, Vincent Guittot wrote: > > --- a/kernel/sched/fair.c > > +++ b/kernel/sched/fair.c > > @@ -692,6 +692,7 @@ void init_entity_runnable_average(struct > > > > static inline u64 cfs_rq_clock_task(struct cfs_rq *cfs_rq); > > static int update_cfs_rq_load_avg(u

Re: [PATCHv3 1/2] usb: USB Type-C connector class

2016-06-22 Thread Heikki Krogerus
On Wed, Jun 22, 2016 at 12:14:55PM +0200, Oliver Neukum wrote: > On Wed, 2016-06-22 at 12:50 +0300, Heikki Krogerus wrote: > > On Tue, Jun 21, 2016 at 10:25:05PM +0200, Oliver Neukum wrote: > > > On Tue, 2016-06-21 at 17:51 +0300, Heikki Krogerus wrote: > > > > +What: /sys/class/typec//sup

[PATCH 5/5] mmc: bcm2835-sdhost: add to devicetree

2016-06-22 Thread Gerd Hoffmann
--- arch/arm/boot/dts/bcm283x.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi index b982522..b9540d9 100644 --- a/arch/arm/boot/dts/bcm283x.dtsi +++ b/arch/arm/boot/dts/bcm283x.dtsi @@ -239,6 +239,14 @@

[PATCH V2] mmc: sdhci: use pr_err for sdhci_dumpregs

2016-06-22 Thread Adrian Hunter
From: Chuanxiao Dong sdhci_dumpregs is used to dump registers when error happens. Thus it should use pr_err instead of pr_debug to show more information about the hardware. Signed-off-by: Chuanxiao Dong [Fix whitespace and checkpatch warnings] Signed-off-by: Adrian Hunter --- Changes in V2:

[PATCH 2/5] mmc: bcm2835-sdhost: Add new driver for the internal SD controller.

2016-06-22 Thread Gerd Hoffmann
From: Eric Anholt The 2835 has two SD controllers: The Arasan SDHCI controller that we currently use, and a custom SD controller. The custom one runs faster The code was originally written by Phil Elwell in the downstream Rasbperry Pi tree, and I did a major cleanup on it (+319, -707 lines out

[PATCH 4/5] mmc: bcm2835-sdhost: reset tweaks. [fixup]

2016-06-22 Thread Gerd Hoffmann
Kill any pending stuff before calling reset_internal(), so there shouldn't be any completion callbacks interfering. This allows to call reset_internal without lock, which in turn allows to turn the mdelay calls into msleep calls. Also adjust the time from 10ms to 20ms as checkpatch warns about th

Re: [PATCH v2] byteswap: try to avoid __builtin_constant_p gcc bug

2016-06-22 Thread Tomas Winkler
On Wed, Jun 22, 2016 at 1:25 PM, Levy, Amir (Jer) wrote: > On 2016-06-22 Arnd Bergmann wrote: >> On Wednesday, June 22, 2016 11:24:50 AM CEST Tomas Winkler wrote: >> > On Tue, Jun 21, 2016 at 12:02 PM, Tomas Winkler >> wrote: >> > > On Tue, May 3, 2016 at 9:36 AM, Arnd Bergmann >> wrote: >> > >>

[PATCH 3/5] mmc: bcm2835-sdhost: zap mmiowb() [fixup]

2016-06-22 Thread Gerd Hoffmann
Arnd asked why they are needed. Seems they are not needed at all. Things are still working fine if I remove them. Guess the arm{,64} versions of writel() & friends take care already. Signed-off-by: Gerd Hoffmann --- drivers/mmc/host/bcm2835-sdhost.c | 15 --- 1 file changed, 15 del

[PATCH 1/5] dt-bindings: Add binding for brcm,bcm2835-sdhost.

2016-06-22 Thread Gerd Hoffmann
From: Eric Anholt This is the other SD controller on the platform, which can be swapped to the role of SD card host using pin muxing. Signed-off-by: Eric Anholt --- .../devicetree/bindings/mmc/brcm,bcm2835-sdhci.txt | 3 +++ .../bindings/mmc/brcm,bcm2835-sdhost.txt | 24

[PATCH v4 2/3] pwm: iproc: Add support for Broadcom iproc pwm controller

2016-06-22 Thread Yendapally Reddy Dhananjaya Reddy
Add support for the PWM controller present in Broadcom's iProc family of SoCs. This driver is derived from the pwm-bcm-kona driver, with changes to the register offsets and bit positions. It has been tested on the Northstar+ bcm958625HR board. Signed-off-by: Yendapally Reddy Dhananjaya Reddy ---

[PATCH v4 3/3] ARM: dts: NSP: Add PWM Support to DT

2016-06-22 Thread Yendapally Reddy Dhananjaya Reddy
Add PWM support to the device tree for the Broadcom Northstar Plus SoC. Signed-off-by: Yendapally Reddy Dhananjaya Reddy --- arch/arm/boot/dts/bcm-nsp.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boot/dts/bcm-nsp.dtsi index def9e78..f

[PATCH v4 0/3] pwm support for Broadcom iProc SoC's

2016-06-22 Thread Yendapally Reddy Dhananjaya Reddy
This patchset contains the pwm support for the Broadcom's iProc SoC's. The first patch provides the documentation details and the second patch contains the controller support details. The third patch contains the enable method for Northstar Plus SoC. This patch series has been tested on NSP bcm95

[PATCH v4 1/3] Documentation: dt: Add Broadcom iproc pwm controller binding

2016-06-22 Thread Yendapally Reddy Dhananjaya Reddy
Add a binding for Broadcom iproc pwm controller Signed-off-by: Yendapally Reddy Dhananjaya Reddy Acked-by: Rob Herring --- .../devicetree/bindings/pwm/brcm,iproc-pwm.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/b

[RFC PATCH v2 3/3] mm, thp: fix comment inconsistency for swapin readahead functions

2016-06-22 Thread Ebru Akagunduz
After fixing swapin issues, comment lines stayed as in old version. This patch updates the comments. Signed-off-by: Ebru Akagunduz Reported-by: Hillf Danton --- Changes in v2: - Newly created in this version. mm/huge_memory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff -

Re: [PATCHv9-rebased2 01/37] mm, thp: make swapin readahead under down_read of mmap_sem

2016-06-22 Thread Ebru Akagunduz
On Mon, Jun 20, 2016 at 10:51:25AM +0800, Hillf Danton wrote: > > > > > @@ -2401,11 +2430,18 @@ static void > > > > > __collapse_huge_page_swapin(struct mm_struct *mm, > > > > > continue; > > > > > swapped_in++; > > > > > ret = do_swap_page(mm, vma

Re: [PATCH v2] HID: i2c-hid: set power sleep before shutdown

2016-06-22 Thread ghzhong
On 06/21/2016 07:09 PM, Jiri Kosina wrote: On Tue, 21 Jun 2016, Guohua Zhong wrote: Add i2c_hid_shutdown for i2c-hid driver to send suspend cmd & free irq before device shutdown. Some HW design (i.e. Umaro, a chromebook model) is that the power to i2c hid device won't down after device shutd

Re: [PATCH v2] HID: i2c-hid: set power sleep before shutdown

2016-06-22 Thread Jiri Kosina
On Wed, 22 Jun 2016, ghzhong wrote: > Do you mean that the Patch V2 has been reviewed & approved? Or I make > something wrong and need to do something else? It's queued in for-4.8/i2c-hid branch of hid.git: https://git.kernel.org/cgit/linux/kernel/git/jikos/hid.git/log/?h=for-4.8/i2c-h

[PATCH 2/2] thermal: rockchip: fixes the exception interrupts

2016-06-22 Thread Caesar Wang
The hardware-tracked trips will set the alarm interrupt value for registers. Then when the thermal zone has no trips to be set, That make the thermal trips callback a over range value. The root cause is the rk_tsadcv2_temp_to_code() function to handle the invalid temperature range is indeed incorr

Re: [RFC PATCHv2] usb: USB Type-C Connector Class

2016-06-22 Thread Heikki Krogerus
On Wed, Jun 22, 2016 at 12:08:57PM +0200, Oliver Neukum wrote: > On Wed, 2016-06-22 at 12:31 +0300, Heikki Krogerus wrote: > > Hi, > > > > Now correct me, if I am misreading the spec. I am sure the system > > > will boot unless it needs ridiculous amounts of power, but > > > will we see anything

Re: [PATCH v5 0/5] Thermal: Support for hardware-tracked trip points

2016-06-22 Thread Caesar Wang
On 2016年06月22日 11:25, Zhang Rui wrote: On 二, 2016-06-21 at 09:42 +0800, Caesar Wang wrote: Do you have other ideas for the following patches? :-) Even if only took two weeks feel after a long time. 9157919 New [v5,1/5] thermal: Add support for hardware- tracked trip points 9157917 New

[RFC PATCH v2 2/3] mm, thp: convert from optimistic swapin collapsing to conservative

2016-06-22 Thread Ebru Akagunduz
To detect whether khugepaged swapin worthwhile, this patch checks the amount of young pages. There should be at least half of HPAGE_PMD_NR to swapin. Signed-off-by: Ebru Akagunduz Suggested-by: Minchan Kim --- Changes in v2: - Don't change thp design, only notice amount of young pages, if kh

[RFC PATCH v2 1/3] mm, thp: revert allocstall comparing

2016-06-22 Thread Ebru Akagunduz
This patch takes back allocstall comparing when deciding whether swapin worthwhile because it does not work, if vmevent disabled. Related commit: http://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/?id=2548306628308aa6a326640d345a737bc898941d Signed-off-by: Ebru Akagunduz Sugg

Re: [PATCH] mwifiex: Reduce endian conversion for REG Host Commands

2016-06-22 Thread Kalle Valo
Prasun Maiti writes: > For multiple REG Host Commands (e.g HostCmd_CMD_802_11_EEPROM_ACCESS, > HostCmd_CMD_MAC_REG_ACCESS etc.) "cpu_to_leX"-converted values are > saved to driver. So, "leX_to_cpu" conversion is required too many > times afterwards in driver. > > This patch reduces the endian: co

[RFC PATCH v2 0/3] mm, thp: convert from optimistic swapin collapsing to conservative

2016-06-22 Thread Ebru Akagunduz
This patch series supplies to decide to swapin looking the amount of young pages. Removes allocstall comparing and fixes comment inconsistency. Ebru Akagunduz (3): mm, thp: revert allocstall comparing mm, thp: convert from optimistic swapin collapsing to conservative mm, thp: fix comment inc

[PATCH v2] coresight: etm4x: request to retain power to the trace unit when active

2016-06-22 Thread Sudeep Holla
The Coresight ETMv4 architecture provides a way to request to keep the power to the trace unit. This might help to collect the traces without the need to disable the CPU power management(entering/exiting deeper idle states). Trace PowerDown Control Register provides powerup request bit which when

[PATCH] pinctrl: baytrail: Fix mingled clock pins

2016-06-22 Thread Cristina Ciocan
Fix plt clock 3, 4 and 5 pins, which were not in the proper order. Signed-off-by: Cristina Ciocan --- drivers/pinctrl/intel/pinctrl-baytrail.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/intel/pinctrl-baytrail.c b/drivers/pinctrl/intel/pinctrl-baytr

Re: Kernel 4.7rc3 - Performance drop 30-40% for SPECjbb2005 and SPECjvm2008 benchmarks against 4.6 kernel

2016-06-22 Thread Peter Zijlstra
On Wed, Jun 22, 2016 at 11:52:45AM +0200, Jirka Hladky wrote: > Hi Peter, > > the performance regression has been caused by this commit > > = > commit 6ecdd74962f246dfe8750b7bea481a1c0816315d > Author: Yuyang Du > Date: Tue Apr 5 12:12:26 2016 +0

Re: [patch] mm, compaction: abort free scanner if split fails

2016-06-22 Thread Vlastimil Babka
On 06/22/2016 03:22 AM, David Rientjes wrote: If the memory compaction free scanner cannot successfully split a free page (only possible due to per-zone low watermark), terminate the free scanner rather than continuing to scan memory needlessly. If the watermark is insufficient for a free page o

Re: [PATCH v3 3/3] staging: wilc1000: Change interface wilc_mq_send to wilc_enqueue_cmd

2016-06-22 Thread kbuild test robot
Hi, [auto build test ERROR on staging/staging-testing] [also build test ERROR on v4.7-rc4 next-20160622] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Binoy-Jayan/staging-wilc1000-Replace

Re: [PATCH] coresight: etm4x: request to retain power to the trace unit when active

2016-06-22 Thread Sudeep Holla
On 22/06/16 11:46, Suzuki K Poulose wrote: On 22/06/16 11:15, Sudeep Holla wrote: The Coresight ETMv4 architecture provides a way to request to keep the power to the trace unit. This might help to collect the traces without the need to disable the CPU power management(entering/exiting deeper i

Re: [PATCH V7 1/8] ACPI: I/O Remapping Table (IORT) initial support

2016-06-22 Thread Tomasz Nowicki
On 22.06.2016 12:50, Marc Zyngier wrote: On 21/06/16 08:12, Hanjun Guo wrote: Hi Tomasz, Sorry for jumping out late, just one comment below. On 2016/6/20 19:02, Tomasz Nowicki wrote: IORT shows representation of IO topology for ARM based systems. It describes how various components are connec

Re: [PATCH v2] more mapcount page as kpage could reduce total replacement times than fewer mapcount one in probability.

2016-06-22 Thread zhouxianrong
hey hugh: thank you for your reply and supplied more information. i spent lots of time to study your questions mentioned. i state my idea in detail, for exmple, page1 with map count 7 and page2 with map count 9 are equal. choosing page1 for ksm page will do 9 times heavily merg and 6 times

Re: [RFC] regmap: Add regmap_pipe_read API

2016-06-22 Thread Mark Brown
On Wed, Jun 22, 2016 at 11:32:20AM +0300, Crestez Dan Leonard wrote: > On 06/21/2016 09:42 PM, Mark Brown wrote: > > On Thu, Jun 16, 2016 at 06:24:36PM +0300, Crestez Dan Leonard wrote: > >> + val = ((u8*)val) + read_len; > > This cast looks broken, you should be able to do pointer arith

Re: mm, oom_reaper: How to handle race with oom_killer_disable() ?

2016-06-22 Thread Tetsuo Handa
Michal Hocko wrote: > On Wed 22-06-16 08:40:15, Michal Hocko wrote: > > On Wed 22-06-16 06:47:48, Tetsuo Handa wrote: > > > Michal Hocko wrote: > > > > On Wed 22-06-16 00:32:29, Tetsuo Handa wrote: > > > > > Michal Hocko wrote: > > > > [...] > > > > > > Hmm, what about the following instead. It is

Re: [PATCH v7 3/5] tpm: Clean up reading of timeout and duration capabilities

2016-06-22 Thread Jarkko Sakkinen
On Tue, Jun 21, 2016 at 05:21:27PM -0700, Ed Swierk wrote: > On Mon, Jun 20, 2016 at 6:54 PM, Ed Swierk wrote: > > --- a/drivers/char/tpm/tpm-interface.c > > +++ b/drivers/char/tpm/tpm-interface.c > > @@ -461,9 +461,19 @@ ssize_t tpm_getcap(struct device *dev, __be32 > > subcap_id, cap_t *cap, >

Re: [PATCH 1/5] sched,time: count actually elapsed irq & softirq time

2016-06-22 Thread Peter Zijlstra
On Wed, Jun 22, 2016 at 12:40:31PM +0200, Paolo Bonzini wrote: > > > On 21/06/2016 23:21, Peter Zijlstra wrote: > > cputime_to_jiffies is a division, could we not avoid that by doing > > something like: > > > > irq_jiffies = min(irq, jiffies_to_cputime(max_jiffies)); > > while (irq_jiffi

Re: [PATCH] coresight: etm4x: request to retain power to the trace unit when active

2016-06-22 Thread Suzuki K Poulose
On 22/06/16 11:15, Sudeep Holla wrote: The Coresight ETMv4 architecture provides a way to request to keep the power to the trace unit. This might help to collect the traces without the need to disable the CPU power management(entering/exiting deeper idle states). Trace PowerDown Control Register

Re: [PATCH V7 1/8] ACPI: I/O Remapping Table (IORT) initial support

2016-06-22 Thread Marc Zyngier
On 21/06/16 08:12, Hanjun Guo wrote: > Hi Tomasz, > > Sorry for jumping out late, just one comment below. > > On 2016/6/20 19:02, Tomasz Nowicki wrote: >> IORT shows representation of IO topology for ARM based systems. >> It describes how various components are connected together on >> parent-chi

Re: adf_ctl_drv.c:(.init.text+0x14915): undefined reference to `adf_init_pf_wq' (was Linux 4.4.13)

2016-06-22 Thread Hans de Bruin
On 06/20/2016 07:17 PM, Randy Dunlap wrote: On 06/20/16 08:43, Greg KH wrote: On Sun, Jun 19, 2016 at 09:12:29AM +0200, Hans de Bruin wrote: On 06/08/2016 03:43 AM, Greg KH wrote: I'm announcing the release of the 4.4.13 kernel. Hi, I tried to compile 4.4.13 using my 4.4.7 config file and

Re: [PATCH 1/5] sched,time: count actually elapsed irq & softirq time

2016-06-22 Thread Paolo Bonzini
On 21/06/2016 23:21, Peter Zijlstra wrote: > cputime_to_jiffies is a division, could we not avoid that by doing > something like: > > irq_jiffies = min(irq, jiffies_to_cputime(max_jiffies)); > while (irq_jiffies > cputime_one_jiffy) { > irq_jiffies -= cputime_one_jiffy;

Re: [PATCH v8 4/4] serial: pl011: add console matching function

2016-06-22 Thread Aleksey Makarov
On 05/20/2016 04:03 PM, Aleksey Makarov wrote: > This patch adds function pl011_console_match() that implements > method match of struct console. It allows to match consoles against > data specified in a string, for example taken from command line or > compiled by ACPI SPCR table handler. Hi Gre

Re: Build failures in -next due to 'locking/atomic, arch/arc: Implement atomic_fetch_{add,sub,and,andnot,or,xor}()'

2016-06-22 Thread Peter Zijlstra
On Wed, Jun 22, 2016 at 03:34:54PM +0530, Vineet Gupta wrote: > > Peter the fixlet below doesn't show up in linux-next yet. Could you please do > that > soon. Our internal build lords are yelling at me :-) > > To keep things bisectable, it would be desirable to squash this with the orig > commi

Re: [PATCH] i2c: hibvt: add Hisilicon BVT I2C controller driver

2016-06-22 Thread Mark Rutland
On Wed, Jun 22, 2016 at 04:55:26PM +0800, Pan Wen wrote: > add Hisilicon BVT I2C controller driver support. > > Signed-off-by: Pan Wen > --- > .../devicetree/bindings/i2c/i2c-hibvt.txt | 24 + > drivers/i2c/busses/Kconfig | 10 + > drivers/i2c/busses/Makefile

Re: [PATCH 6/6] dt-bindings: pwm-regulator: Document enable-gpio property

2016-06-22 Thread Mark Brown
On Wed, Jun 22, 2016 at 05:25:58PM +0900, Alexandre Courbot wrote: > Add and document the enable-gpio property. Its behavior is similar to > the property of the same name found in GPIO regulator and fixed > regulator. Please submit patches using subject lines reflecting the style for the subsystem

RE: [PATCH v2] byteswap: try to avoid __builtin_constant_p gcc bug

2016-06-22 Thread Levy, Amir (Jer)
On 2016-06-22 Arnd Bergmann wrote: > On Wednesday, June 22, 2016 11:24:50 AM CEST Tomas Winkler wrote: > > On Tue, Jun 21, 2016 at 12:02 PM, Tomas Winkler > wrote: > > > On Tue, May 3, 2016 at 9:36 AM, Arnd Bergmann > wrote: > > >> On Monday 02 May 2016 16:32:25 Andrew Morton wrote: > > > >> #i

Re: [PATCH 6/6] ppc: ebpf/jit: Implement JIT compiler for extended BPF

2016-06-22 Thread Michael Ellerman
On Tue, 2016-06-07 at 19:02 +0530, Naveen N. Rao wrote: > PPC64 eBPF JIT compiler. > > Enable with: > echo 1 > /proc/sys/net/core/bpf_jit_enable > or > echo 2 > /proc/sys/net/core/bpf_jit_enable > > ... to see the generated JIT code. This can further be processed with > tools/net/bpf_jit_disasm.

Re: [PATCH 05/27] [AARCH64] Use PTR_REG in crti.S.

2016-06-22 Thread Joseph Myers
On Wed, 22 Jun 2016, Yury Norov wrote: > > As well as preprocessor indentation, this is missing spaces after '('; > > check for and fix that issue throughout this patch series. (There are > > only a few cases where a macro is used to construct a type / variable > > name, such as ElfW, where mi

Re: [PATCH 1/9] regulator: tps65217: Enable suspend configuration

2016-06-22 Thread Keerthy
On Wednesday 22 June 2016 03:46 PM, Mark Brown wrote: On Wed, Jun 22, 2016 at 03:44:02PM +0530, Keerthy wrote: Hence saving it in a static array and using it later in the ops functions to disable or enable regulator during suspend. Why a static array and not part of the dynamically allocate

Re: [PATCH 12/15] net: davinci_mdio: document missed "ti,am4372-mdio" compat string

2016-06-22 Thread Grygorii Strashko
On 06/19/2016 05:35 PM, Rob Herring wrote: > On Wed, Jun 15, 2016 at 02:56:00PM +0300, Grygorii Strashko wrote: >> Document missed "ti,am4372-mdio" compat string used for TI am437x SoC >> (am4372.dtsi). >> >> Signed-off-by: Grygorii Strashko >> --- >> Documentation/devicetree/bindings/net/davinc

Re: [PATCH 2/6] regulator: of: Add enable GPIO configuration function

2016-06-22 Thread Mark Brown
On Wed, Jun 22, 2016 at 05:25:54PM +0900, Alexandre Courbot wrote: > Several regulator drivers are using an enable GPIO with similar DT > properties, yet each driver is parsing these properties its own way. Add > the of_get_regulator_gpio_config() function which is able to parse all > known propert

Re: [PATCH 1/6] regulator: core: Allow simultaneous use of enable op and GPIO

2016-06-22 Thread Mark Brown
On Wed, Jun 22, 2016 at 05:25:53PM +0900, Alexandre Courbot wrote: > The current regulator enable/disable mechanism does not call the driver > enable/disable op if an enable GPIO is set. It may be desirable to use > both mechanisms though, e.g. in the case of a PWM regulator that also > has an enab

Re: [LTP] [patch V2 00/20] timer: Refactor the timer wheel

2016-06-22 Thread Cyril Hrubis
Hi! > > rtbox:~ # > > /usr/local/ltp/conformance/interfaces/sigtimedwait/sigtimedwait_1-1.run-test > > Test FAILED: sigtimedwait() did not return in the required time > > time_elapsed: 1.197057 > > ...come on, you can do it... > > rtbox:~ # > > /usr/local/ltp/conformance/interfaces/sigtimedwait/s

Re: [PATCH v3 0/4] dell-wmi: Changes in WMI event code handling

2016-06-22 Thread Pali Rohár
On Tuesday 21 June 2016 18:37:19 mario_limoncie...@dell.com wrote: > > -Original Message- > > From: Pali Rohár [mailto:pali.ro...@gmail.com] > > Sent: Tuesday, June 21, 2016 1:29 PM > > To: Limonciello, Mario > > Cc: dvh...@infradead.org; gabriele@gmail.com; l...@kernel.org; > > alex.h

[PATCH RESEND] ipconfig : Fix null reference to the freed dev_addr

2016-06-22 Thread Chanho Min
The USB to ethernet can be detached and free netdev after rtnl mutex is released. It can cause null reference during the dynamic IP configuration. sequence is: ic_open_devs rtnl_lock(); wait for a carrier hub_event()

Re: [PATCH] mmc: core: add auto bkops support

2016-06-22 Thread Ulf Hansson
On 13 June 2016 at 14:25, Adrian Hunter wrote: > On 13/06/16 11:58, Shawn Lin wrote: >> 在 2016/6/13 16:17, Adrian Hunter 写道: >>> On 13/06/16 10:48, Shawn Lin wrote: On 2016/6/13 14:29, Adrian Hunter wrote: > On 06/06/16 06:07, Shawn Lin wrote: >> JEDEC eMMC v5.1 introduce an autonomou

Re: [PATCH] ARM: BCM5301X: Set GPIO enabling USB power on Netgear R7000

2016-06-22 Thread Imre Kaloz
On Tue, 21 Jun 2016 17:23:18 +0200, Rafał Miłecki wrote: On 21 June 2016 at 16:29, Imre Kaloz wrote: On Tue, 21 Jun 2016 14:26:11 +0200, Rafał Miłecki wrote: On 21 June 2016 at 14:22, Imre Kaloz wrote: Is there any reason you are not handling this properly as a regulator with usb-nop-

Re: [PATCH v3 2/9] kexec_file: Generalize kexec_add_buffer.

2016-06-22 Thread Dave Young
The patch looks good, but could the subject be more specific? For example just like the first sentence of the patch descriotion: Allow architectures to specify their own memory walking function On 06/21/16 at 04:48pm, Thiago Jung Bauermann wrote: > Allow architectures to specify different memory

Re: [PATCH v4 2/2] reset: add TI SYSCON based reset driver

2016-06-22 Thread Philipp Zabel
Am Montag, den 20.06.2016, 13:46 -0500 schrieb Andrew F. Davis: > Add a reset-controller driver for performing reset management of > various devices present on the SoC, with the reset registers shared > between devices in a common register memory space. This driver uses > the syscon/regmap framewor

Re: [PATCHv3 1/2] usb: USB Type-C connector class

2016-06-22 Thread Oliver Neukum
On Wed, 2016-06-22 at 12:50 +0300, Heikki Krogerus wrote: > On Tue, Jun 21, 2016 at 10:25:05PM +0200, Oliver Neukum wrote: > > On Tue, 2016-06-21 at 17:51 +0300, Heikki Krogerus wrote: > > > +What: /sys/class/typec//supported_data_roles > > > +Data: June 2016 > > > +Contact:

Re: [PATCH 1/9] regulator: tps65217: Enable suspend configuration

2016-06-22 Thread Keerthy
On Wednesday 22 June 2016 12:38 AM, Mark Brown wrote: On Mon, Jun 20, 2016 at 02:13:30PM +0530, Keerthy wrote: +static struct tps65217_regulator_data regulator_data[TPS65217_NUM_REGULATOR]; Why is this a static global? + /* Store default strobe info */ + ret =

Re: [PATCH v3 3/9] kexec_file: Factor out kexec_locate_mem_hole from kexec_add_buffer.

2016-06-22 Thread Dave Young
On 06/21/16 at 04:48pm, Thiago Jung Bauermann wrote: > kexec_locate_mem_hole will be used by the PowerPC kexec_file_load > implementation to find free memory for the purgatory stack. > > Signed-off-by: Thiago Jung Bauermann > Cc: Eric Biederman > Cc: Dave Young > Cc: ke...@lists.infradead.org >

[PATCH 1/2] thermal: rockchip: fixes the period time for tsadc

2016-06-22 Thread Caesar Wang
We should increase the period cycles to save power since the rk3399 has the high frequency for tsadc clock. Fixes commit b0d70338bca22cb14 ("thermal: rockchip: Support the RK3399 SoCs in thermal driver") Signed-off-by: Caesar Wang Cc: Zhang Rui Cc: Eduardo Valentin Cc: Heiko Stuebner Cc: linu

<    4   5   6   7   8   9   10   11   >