[PATCH 08/11] MIPS: math-emu: Fix bit-width in ieee754dp_{mul,maddf,msubf} comments

2016-04-21 Thread Paul Burton
A comment in ieee754dp_mul indicates that the code is about to perform a 32b x 32b multiplication & keep the high 32b of the result. It appears this was copied from the single-precision multiplication code, since the code actually goes on to perform a 64b x 64b multiplication & keep the high 64b of

[PATCH 11/11] MIPS: math-emu: Fix jalr emulation when rd == $0

2016-04-21 Thread Paul Burton
When emulating a jalr instruction with rd == $0, the code in isBranchInstr was incorrectly writing to GPR $0 which should actually always remain zeroed. This would lead to any further instructions emulated which use $0 operating on a bogus value until the task is next context switched, at which poi

[PATCH 07/11] MIPS: math-emu: Add z argument macros

2016-04-21 Thread Paul Burton
Introduce macros for handling the "z" argument to maddf & msubf, making its handling consistent with that of the "x" & "y" arguments rather than open-coding equivalents. Signed-off-by: Paul Burton --- arch/mips/math-emu/dp_maddf.c | 9 - arch/mips/math-emu/ieee754dp.h | 1 + arch/m

Re: [PATCH 10/11] x86, rwsem: provide __down_write_killable

2016-04-21 Thread Michal Hocko
On Thu 21-04-16 13:35:16, Borislav Petkov wrote: > On Wed, Apr 20, 2016 at 03:29:30PM -0700, H. Peter Anvin wrote: > > Since it is a fixed register we could just mark edx clobbered, but > > with more flexible register constraints it can permit gcc to allocate > > a temp resister for us. -- > > Rig

Re: [RFC][PATCH 0/6] /dev/random - a new approach

2016-04-21 Thread Stephan Mueller
Am Donnerstag, 21. April 2016, 15:03:37 schrieb Nikos Mavrogiannopoulos: Hi Nikos, > On Thu, Apr 21, 2016 at 11:11 AM, Stephan Mueller wrote: > > Hi Herbert, Ted, > > > > The venerable Linux /dev/random served users of cryptographic mechanisms > > well for a long time. Its behavior is well und

Re: [rtc-linux] [PATCH v2] rtc: s3c: Document in binding that only s3c6410 needs a src clk

2016-04-21 Thread Alexandre Belloni
On 21/04/2016 at 08:46:33 -0400, Javier Martinez Canillas wrote : > Hello Alexandre, > > On 03/28/2016 06:19 PM, Alexandre Belloni wrote: > > On 15/02/2016 at 11:11:06 -0300, Javier Martinez Canillas wrote : > >> The S3C binding doc says that the RTC and RTC source clocks are required > >> but the

Re: [RESEND PATCH v4] clk/axs10x: Add I2S PLL clock driver

2016-04-21 Thread Jose Abreu
Hi Alexey, On 21-04-2016 13:18, Alexey Brodkin wrote: > Hi Jose, > > On Thu, 2016-04-21 at 10:51 +0100, Jose Abreu wrote: >> Hi Alexey, > > Otherwise, I still prefer two DTS files for the two different FPGA > versions. At the least, please use ioremap for any pointers that > you readl

Re: [PATCH v4 0/2] Skylake PSys support

2016-04-21 Thread Peter Zijlstra
On Wed, Apr 20, 2016 at 10:21:14PM +0200, Rafael J. Wysocki wrote: > You can send both and they both can go in via tip as far as I'm concerned. OK, thanks! Srinivas I've munged the rapl patch to match the new style, so no need to resend that.

Re: [PATCH v2 all 00/14] use of_platform_default_populate() to populate default bus

2016-04-21 Thread Rob Herring
On Thu, Apr 21, 2016 at 2:55 AM, Kefeng Wang wrote: > Hi Rob, > > On 2016/4/20 5:10, Rob Herring wrote: >> On Wed, Mar 16, 2016 at 2:35 AM, Kefeng Wang >> wrote: >>> Use helper of_platform_default_populate() in linux/of_platform >>> when possible, instead of calling of_platform_populate() with >

Re: Nokia N900 retention mode in v4.6, camera buttons fun

2016-04-21 Thread Pali Rohár
On Sunday 17 April 2016 19:55:40 Pavel Machek wrote: > Hi! > > > > > > > Ok, it works now. I was doing tests in daylight so it was poorly > > > > > > visible. The right part of keyboard stays lit (but that's expected > > > > > > AFAICT), but the left part blinks. > > > > > > > > > > During idle,

[PATCH 00/11] FP emulation fixes

2016-04-21 Thread Paul Burton
This series fixes up some issues with FPU emulation, ranging from missing instructions to outright backwards branches to a non-zero zero register. Some cleanups are made along the way, reducing unnecessary duplication of code. There are still issues around the R6 maddf & msubf instructions, which

[PATCH 01/11] MIPS: math-emu: Fix BC1{EQ,NE}Z emulation

2016-04-21 Thread Paul Burton
The conditions for branching when emulating the BC1EQZ & BC1NEZ instructions were backwards, leading to each of those instructions being treated as the other. Fix this by reversing the conditions, and clear up the code a little for readability & checkpatch. Fixes: c909ca718e8f ("MIPS: math-emu: Em

[PATCH 03/11] MIPS: inst: Declare fsel_op for sel.fmt instruction

2016-04-21 Thread Paul Burton
Declare the opcode for the MIPSr6 sel.fmt instruction, as fsel_op in order to match other FP op names. Signed-off-by: Paul Burton --- arch/mips/include/uapi/asm/inst.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/include/uapi/asm/inst.h b/arch/mips/include/uapi/asm/inst.h inde

Re: [PATCH v4 6/6] hwmon: use smp_call_on_cpu() for dell-smm i8k

2016-04-21 Thread Juergen Gross
On 21/04/16 12:57, Pali Rohár wrote: > On Tuesday 05 April 2016 21:31:52 Pali Rohár wrote: >> On Tuesday 05 April 2016 16:54:14 Guenter Roeck wrote: >>> On Tue, Apr 05, 2016 at 07:10:07AM +0200, Juergen Gross wrote: Use the smp_call_on_cpu() function to call system management mode on cpu

fat: changed filesystem dirty bit behavior

2016-04-21 Thread Anssi Hannula
Hi all! Starting with commit b88a105802e9aeb [1] ("fat: mark fs as dirty on mount and clean on umount") FAT(32) filesystems are now marked as "dirty" on mount and clean on unmount. The commit message says that this is similar to Win 7 behavior - "Win 7, set dirty flag on first write and remove it

[PATCH v2 2/7] mfd: RK808: Add RK818 support

2016-04-21 Thread Wadim Egorov
The RK818 chip is a power management IC for multimedia and handheld devices. It contains the following components: - Regulators - RTC - Clkout - battery support Both chips RK808 and RK818 are using a similar register map. So we can reuse the RTC and Clkout functionality. Signed-off-by: Wadim Ego

[PATCH v2 6/7] clk: Kconfig: Name RK818 in Kconfig for COMMON_CLK_RK808

2016-04-21 Thread Wadim Egorov
The RK808 and RK818 PMICs are using a similar register map. We can reuse the clk driver for the RK818 PMIC. So let's add the RK818 in the Kconfig description. Signed-off-by: Wadim Egorov --- drivers/clk/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/K

[PATCH v2 7/7] rtc: Kconfig: Name RK818 in Kconfig for RTC_DRV_RK808

2016-04-21 Thread Wadim Egorov
The RK808 and RK818 PMICs are using a similar register map. We can reuse the rtc driver for the RK818 PMIC. So let's add the RK818 in the Kconfig description. Signed-off-by: Wadim Egorov --- drivers/rtc/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/K

[PATCH v2 5/7] mfd: dt-bindings: Add RK818 device tree bindings document

2016-04-21 Thread Wadim Egorov
Add device tree bindings documentation for Rockchip's RK818 PMIC. Signed-off-by: Wadim Egorov --- Documentation/devicetree/bindings/mfd/rk808.txt | 37 +++-- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/rk808.txt b/Docu

[PATCH v2 4/7] regulator: rk808: Add regulator driver for RK818

2016-04-21 Thread Wadim Egorov
Add support for the rk818 regulator. The regulator module consists of 4 DCDCs, 9 LDOs, 1 switch and 1 BOOST converter which is used to power OTG and HDMI5V. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Wadim Egorov

[PATCH v2 1/7] drivers: mfd: rk808: rename rk808 struct to rk8xx

2016-04-21 Thread Wadim Egorov
This patch renames the rk808 struct. So it is more clear that this struct can be shared between all RK8XX related PMIC drivers. Signed-off-by: Wadim Egorov --- drivers/clk/clk-rk808.c | 20 +++ drivers/mfd/rk808.c | 36 +- drivers/r

[PATCH v2 3/7] regulator: rk808: Migrate to regulator core's simplified DT parsing code

2016-04-21 Thread Wadim Egorov
A common simplified DT parsing code for regulators was introduced in commit a0c7b164ad11 ("regulator: of: Provide simplified DT parsing method") While at it also added RK8XX_DESC and RK8XX_DESC_SWITCH macros for the regulator_desc struct initialization. This just makes the driver more compact. Rem

Re: [PATCH v11 0/3] printk: Make printk() completely async

2016-04-21 Thread Jan Kara
On Wed 20-04-16 19:17:13, Joe Perches wrote: > On Thu, 2016-04-21 at 11:14 +0900, Sergey Senozhatsky wrote: > > On (04/15/16 22:44), Joe Perches wrote: > > [..] > > > > Sir, is there anything else you want me to improve in this patch > > > > set? > > > I'm not sir, but my preference would be to mov

[PATCH v2 0/5] Add support for rk818

2016-04-21 Thread Wadim Egorov
Hopefully, this is the right approach now. Changes since v1: - dropped the renaming of the drivers - renamed the rk808 struct in mfd/rk808.h Patch 3 is a cosmetic patch for the regulator driver. Wadim Egorov (7): drivers: mfd: rk808: rename rk808 struct to rk8xx mfd: RK808: Add RK818 support

Re: [PATCH 0/2 v6] printk, Add monotonic and real printk timestamps

2016-04-21 Thread Prarit Bhargava
On 04/19/2016 04:56 AM, Petr Mladek wrote: > On Mon 2016-04-18 11:30:52, Prarit Bhargava wrote: > Hmm, If you allow to change the timestamp format only at boot time, it > will make things easier. I just wonder if it would work correctly for > early messages. For example, are there any messages p

Re: [PATCH v2] drivers/idle: make intel_idle.c driver more explicitly non-modular

2016-04-21 Thread Daniel Lezcano
On Thu, Apr 21, 2016 at 08:44:55AM -0400, Paul Gortmaker wrote: > [Re: [PATCH v2] drivers/idle: make intel_idle.c driver more explicitly > non-modular] On 21/04/2016 (Thu 10:04) Daniel Lezcano wrote: > > > On Wed, Apr 20, 2016 at 11:12:49PM -0400, Paul Gortmaker wrote: > > > > [ ... ] > > > > >

Re: [PATCH 10/11] x86, rwsem: provide __down_write_killable

2016-04-21 Thread Borislav Petkov
On Thu, Apr 21, 2016 at 09:09:11AM -0400, Michal Hocko wrote: > Thanks Boris! This is highly appreciated. I know ;-) -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.

Re: [PATCH v3] KVM: remove buggy vcpu id check on vcpu creation

2016-04-21 Thread David Hildenbrand
> On Wed, 20 Apr 2016 20:29:09 +0200 > Radim Krčmář wrote: > > > 2016-04-20 17:44+0200, Greg Kurz: > > > Commit 338c7dbadd26 ("KVM: Improve create VCPU parameter (CVE-2013-4587)") > > > introduced a check to prevent potential kernel memory corruption in case > > > the vcpu id is too great. > >

Re: [PATCH v6 07/19] i2c: octeon: Use i2c recovery framework

2016-04-21 Thread Jan Glauber
On Wed, Apr 20, 2016 at 11:31:21PM +0200, Wolfram Sang wrote: > On Mon, Apr 11, 2016 at 05:28:38PM +0200, Jan Glauber wrote: > > Switch to the i2c bus recovery framework using generic SCL recovery. > > If this fails try to reset the hardware. The recovery is triggered > > during START on timeout of

Re: [PATCH] hrtimers: doc cleanup

2016-04-21 Thread Jonathan Corbet
On Thu, 21 Apr 2016 18:25:41 +0800 Cao jin wrote: > > This change is incorrect - "unacceptable" is exactly what the writer > > wanted to say here. > > > *it cannot be 'designed out' without inevitably degrading other portions > of the timers.c code in an unacceptable way* > > equals > > *it

Re: [PATCH 5/6] fs: define a string representation of the kernel_read_file_id enumeration

2016-04-21 Thread Andy Shevchenko
On Wed, 2016-04-20 at 15:46 -0700, Kees Cook wrote: > From: Mimi Zohar > > A string representation of the kernel_read_file_id enumeration is > needed for displaying messages (eg. pr_info, auditing) that can be > used by multiple LSMs and the integrity subsystem.  To simplify > keeping the list of

Re: fat: changed filesystem dirty bit behavior

2016-04-21 Thread Austin S. Hemmelgarn
On 2016-04-21 09:09, Anssi Hannula wrote: Hi all! Starting with commit b88a105802e9aeb [1] ("fat: mark fs as dirty on mount and clean on umount") FAT(32) filesystems are now marked as "dirty" on mount and clean on unmount. The commit message says that this is similar to Win 7 behavior - "Win 7,

Re: [PATCH] Remove useless test during exchanging values

2016-04-21 Thread Peter Zijlstra
On Thu, Apr 21, 2016 at 08:28:28PM +0800, Minfei Huang wrote: > The value delta is correct as well, although calc_load_idle[idx] is > equal to 0. Remove this useless test to improve performance, since this > function is called more frequently. > > Signed-off-by: Minfei Huang > --- > kernel/sched

Re: [PATCH v4 6/6] hwmon: use smp_call_on_cpu() for dell-smm i8k

2016-04-21 Thread Pali Rohár
On Thursday 21 April 2016 15:12:52 Juergen Gross wrote: > On 21/04/16 12:57, Pali Rohár wrote: > > On Tuesday 05 April 2016 21:31:52 Pali Rohár wrote: > >> On Tuesday 05 April 2016 16:54:14 Guenter Roeck wrote: > >>> On Tue, Apr 05, 2016 at 07:10:07AM +0200, Juergen Gross wrote: > Use the smp_

[PATCH 1/3] checkpatch: add Kconfig 'default n' test

2016-04-21 Thread Yingjoe Chen
If a Kconfig config option doesn't specify 'default', the default will be n. Adding 'default n' is unnecessary. Add a test to warn about this. Signed-off-by: Yingjoe Chen --- scripts/checkpatch.pl | 7 +++ 1 file changed, 7 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpa

[PATCH 3/3] checkpatch: relax Kconfig help text line number threshold

2016-04-21 Thread Yingjoe Chen
Current threshold is too strict and many upstream patch doesn't pass this test. Relax it. Signed-off-by: Yingjoe Chen --- In v4.6-rc1, 171 new config options was added, and 87 of those options have < 4 lines and 24 options have only 1 line. After this change, checkpatch only raise warning when h

[PATCH 2/3] checkpatch: testing more config for Kconfig help text

2016-04-21 Thread Yingjoe Chen
Current help text check only check a config option if it is followed by another config. Adding check for help text if the next entry is menuconfig, choice/ endchoice, comment, menu/endmenu, if/endif, source or end of file. Signed-off-by: Yingjoe Chen --- scripts/checkpatch.pl | 11 ++- 1

Re: [RFT PATCH v2] [media] exynos4-is: Fix fimc_is_parse_sensor_config() nodes handling

2016-04-21 Thread Javier Martinez Canillas
Hello Sylwester, On 03/23/2016 08:41 PM, Javier Martinez Canillas wrote: > The same struct device_node * is used for looking up the I2C sensor, OF > graph endpoint and port. So the reference count is incremented but not > decremented for the endpoint and port nodes. > > Fix this by having separat

Re: linux-next: zillions of lockdep whinges in include/net/sock.h:1408

2016-04-21 Thread Eric Dumazet
On Thu, 2016-04-21 at 05:05 -0400, valdis.kletni...@vt.edu wrote: > On Thu, 21 Apr 2016 09:42:12 +0200, Hannes Frederic Sowa said: > > Hi, > > > > On Thu, Apr 21, 2016, at 02:30, Valdis Kletnieks wrote: > > > linux-next 20160420 is whining at an incredible rate - in 20 minutes of > > > uptime, I pi

Re: [PATCH v3] KVM: remove buggy vcpu id check on vcpu creation

2016-04-21 Thread David Hildenbrand
> On Wed, 20 Apr 2016 17:44:54 +0200 > Greg Kurz wrote: > > > Commit 338c7dbadd26 ("KVM: Improve create VCPU parameter (CVE-2013-4587)") > > introduced a check to prevent potential kernel memory corruption in case > > the vcpu id is too great. > > > > Unfortunately this check assumes vcpu ids gr

Re: [RFC v1 3/4] x86, boot: Implement ASLR for kernel memory sections (x86_64)

2016-04-21 Thread Boris Ostrovsky
On 04/15/2016 06:03 PM, Thomas Garnier wrote: +void __init kernel_randomize_memory(void) +{ + size_t i; + unsigned long addr = memory_rand_start; + unsigned long padding, rand, mem_tb; + struct rnd_state rnd_st; + unsigned long remain_padding = memory_rand_end - me

Re: [PATCH] sched/cpufreq: don't trigger cpufreq update w/o real rt/deadline tasks running

2016-04-21 Thread Wanpeng Li
Hi Peterz, 2016-04-21 20:33 GMT+08:00 Peter Zijlstra : > On Thu, Apr 21, 2016 at 09:09:43AM +0800, Wanpeng Li wrote: >> >> Sometimes .update_curr hook is called w/o tasks actually running, it is >> >> captured by: >> >> >> >> u64 delta_exec = rq_clock_task(rq) - curr->se.exec_start; >> >>

[BUG] 4.4.7 af_unix, wakeup

2016-04-21 Thread Mika Penttilä
Have hit this same looking oops every now and then since at least 4.2 or so.. Not easy to reproduce systematically. --Mika [10973.891726] Unable to handle kernel NULL pointer dereference at virtual address [10973.899839] pgd = a8ce4000 [10973.902549] [] *pgd=38c38831, *pte=00

Re: [PATCH] hrtimers: doc cleanup

2016-04-21 Thread Cao jin
On 04/21/2016 09:23 PM, Jonathan Corbet wrote: On Thu, 21 Apr 2016 18:25:41 +0800 Cao jin wrote: This change is incorrect - "unacceptable" is exactly what the writer wanted to say here. *it cannot be 'designed out' without inevitably degrading other portions of the timers.c code in an unac

Re: [PATCH 2/3] kernel.h: add u64_to_user_ptr()

2016-04-21 Thread Gustavo Padovan
2016-04-20 Joe Perches : > On Wed, 2016-04-20 at 16:18 -0300, Gustavo Padovan wrote: > > From: Gustavo Padovan > > > > This function had copies in 3 different files. Unify them in kernel.h. > [] > > diff --git a/include/linux/kernel.h b/include/linux/kernel.h > [] > > @@ -53,6 +53,12 @@ > > > >

[PATCH v2] hrtimers: doc cleanup

2016-04-21 Thread Cao jin
It has: a tense correction(led->leads); a typo(unevitably->inevitably); Signed-off-by: Cao jin --- Documentation/timers/hrtimers.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/timers/hrtimers.txt b/Documentation/timers/hrtimers.txt index ce31f65..492f1

Re: [PATCH v4] ARM64: ACPI: Update documentation for latest specification version

2016-04-21 Thread Alexey Klimov
Hi Al, I hope you don't mind if I put few minor questions here. On Mon, Apr 18, 2016 at 8:32 PM, Al Stone wrote: > The ACPI 6.1 specification was recently released at the end of January > 2016, but the arm64 kernel documentation for the use of ACPI was written > for the 5.1 version of the spec.

Re: [PATCH v6 1/2] Documentation: DT: dma: Add Xilinx zynqmp dma device tree binding documentation

2016-04-21 Thread Rob Herring
On Fri, Apr 15, 2016 at 02:22:53PM +0530, Kedareswara rao Appana wrote: > Device-tree binding documentation for Xilinx zynqmp dma engine used in > Zynq UltraScale+ MPSoC. > > Signed-off-by: Punnaiah Choudary Kalluri > Signed-off-by: Kedareswara rao Appana > --- > Changes in v6: > - Removed desc-

[PATCH V2 RFC] fixup! virtio: convert to use DMA api

2016-04-21 Thread Michael S. Tsirkin
This adds a flag to enable/disable bypassing the IOMMU by virtio devices. This is on top of patch http://article.gmane.org/gmane.comp.emulators.qemu/403467 virtio: convert to use DMA api Tested with patchset http://article.gmane.org/gmane.linux.kernel.virtualization/27545 virtio-pci: iommu suppor

Re: watchdog: deadlock warning with imx2_wdt driver and systemd

2016-04-21 Thread Clemens Gruber
On Wed, Apr 20, 2016 at 09:30:07PM -0700, Guenter Roeck wrote: > > Hi Clemens, > > fix is to drop the call to cancel_delayed_work_sync() from watchdog_release(). > Turns out the call is not necessary. > > I'll send a proper patch in the next couple of days. > > Guenter > Hi Guenter, thank yo

RE: [PATCH] s390/compat: build error for large compat syscall args

2016-04-21 Thread Jungseung Lee
Hello, > s390/compat: build error for large compat syscall args > > Enforce 32 bit types for all compat syscall argument types. > > This way we can make sure that all arguments get correct sign > or zero extension. Otherwise incorrect code would be generated. > > E.g. for a 'long' type the

Re: [V2,4/4] tool/perf: Add sample_reg_mask to include all perf_regs

2016-04-21 Thread Michael Ellerman
On Sat, 2016-20-02 at 05:02:48 UTC, Anju T wrote: > From: Madhavan Srinivasan > > Add sample_reg_mask array with pt_regs registers. > This is needed for printing supported regs ( -I? option). > > Signed-off-by: Madhavan Srinivasan Applied to powerpc next, thanks. https://git.kernel.org/powerp

[PATCH] Documentation:Update Documentation/zh_CN/arm64/booting.txt

2016-04-21 Thread wefu
From: Fu Wei This is a update of Chinese documentation: Documentation/zh_CN/arm64/booting.txt It is based on the modifications of Documentation/arm64/booting.txt in submission: "a7f8de16". Signed-off-by: Fu Wei --- Documentation/zh_CN/arm64/booting.txt | 20 1 file chang

Re: [PATCH 2/3] drm/exynos: Use VIDEO_SAMSUNG_EXYNOS_GSC=n as GSC Kconfig dependency

2016-04-21 Thread Javier Martinez Canillas
Hello Inki, On 03/28/2016 09:28 PM, Javier Martinez Canillas wrote: > Commit aeefb36832e5 ("drm/exynos: gsc: add device tree support and remove > usage of static mappings") made the DRM_EXYNOS_GSC Kconfig symbol to only > be selectable if the exynos-gsc V4L2 driver isn't enabled, since both use >

[PATCH] efivarfs: merge boolean flag arguments

2016-04-21 Thread Julia Lawall
The parameters atomic and duplicates of efivar_init always have opposite values. Drop the parameter atomic, replace the uses of !atomic with duplicates, and update the call sites accordingly. The code using duplicates is slightly reorganized with an else, to avoid duplicating the lock code. Sign

Re: [V11,1/4] perf/powerpc: assign an id to each powerpc register

2016-04-21 Thread Michael Ellerman
On Sat, 2016-20-02 at 05:02:45 UTC, Anju T wrote: > The enum definition assigns an 'id' to each register in "struct pt_regs" > of arch/powerpc. The order of these values in the enum definition are > based on the corresponding macros in arch/powerpc/include/uapi/asm/ptrace.h. > > Signed-off-by: Anj

Re: [PATCH V11 0/4]perf/powerpc: Add ability to sample intr machine state in powerpc

2016-04-21 Thread Michael Ellerman
On Wed, 2016-04-20 at 10:16 -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Apr 20, 2016 at 02:55:58PM +1000, Michael Ellerman escreveu: > > On Wed, 2016-04-20 at 00:57 -0300, Arnaldo Carvalho de Melo wrote: > > > Even the bits in tools/perf/ are arch specific, so I guess this goes via > > > the p

Re: [PATCH v6 08/19] i2c: octeon: Enable High-Level Controller

2016-04-21 Thread Jan Glauber
On Wed, Apr 20, 2016 at 02:55:15PM -0700, David Daney wrote: > On 04/20/2016 02:43 PM, Wolfram Sang wrote: > >On Mon, Apr 11, 2016 at 05:28:39PM +0200, Jan Glauber wrote: > [...] > >>+ */ > >>+static int octeon_i2c_hlc_wait(struct octeon_i2c *i2c) > >>+{ > >>+ int time_left; > >>+ > >>+ octeon_

Re: [PATCH kernel 1/2] mm: add the related functions to build the free page bitmap

2016-04-21 Thread Michael S. Tsirkin
On Wed, Apr 20, 2016 at 01:41:24AM +, Li, Liang Z wrote: > > Cc: Rik van Riel; v...@zeniv.linux.org.uk; linux-kernel@vger.kernel.org; > > quint...@redhat.com; amit.s...@redhat.com; pbonz...@redhat.com; > > dgilb...@redhat.com; linux...@kvack.org; k...@vger.kernel.org; qemu- > > de...@nongnu.org

Re: linux-next: zillions of lockdep whinges in include/net/sock.h:1408

2016-04-21 Thread Hannes Frederic Sowa
On 21.04.2016 15:31, Eric Dumazet wrote: > On Thu, 2016-04-21 at 05:05 -0400, valdis.kletni...@vt.edu wrote: >> On Thu, 21 Apr 2016 09:42:12 +0200, Hannes Frederic Sowa said: >>> Hi, >>> >>> On Thu, Apr 21, 2016, at 02:30, Valdis Kletnieks wrote: linux-next 20160420 is whining at an incredible

[PATCH 1/9] powerpc/powernv: Move CHECK_HMI_INTERRUPT to exception-64s header

2016-04-21 Thread Shreyas B. Prabhu
CHECK_HMI_INTERRUPT is used to check for HMI's in reset vector. Move the macro to a common location (exception-64s.h) This patch does not change any functionality. Signed-off-by: Shreyas B. Prabhu --- arch/powerpc/include/asm/exception-64s.h | 18 ++ arch/powerpc/kernel/idle_powe

Re: [PATCH 3/8] gpio: stmpe: fix edge and rising/falling edge detection

2016-04-21 Thread Patrice Chotard
On 04/20/2016 04:37 PM, Linus Walleij wrote: On Tue, Apr 19, 2016 at 2:18 PM, wrote: From: Patrice Chotard By cross-checking STMPE 610/801/811/1601/2401/2403 datasheets, it appears that edge detection and rising/falling edge detection is not supported by all STMPE variant: GP

[PATCH 0/9] powerpc/powernv/cpuidle: Add support for POWER ISA v3 idle states

2016-04-21 Thread Shreyas B. Prabhu
POWER ISA v3 defines a new idle processor core mechanism. In summary, a) new instruction named stop is added. This instruction replaces instructions like nap, sleep, rvwinkle. b) new per thread SPR named PSSCR is added which controls the behavior of stop instruction.

Re: [PATCH v5 3/9] dma-mapping: add dma_{map,unmap}_resource

2016-04-21 Thread Christoph Hellwig
On Wed, Apr 13, 2016 at 03:29:17PM +0200, Niklas S?derlund wrote: > > Yes, it would be good to do an audit of all the ARM dma_ops as well > > as generic code like drivers/base/dma-*.c, lib/dma-debug.c and > > include/linux/dma-*.h What about things like the phys_addr() helper in lib/dma-debug.c?

[PATCH 2/9] powerpc/kvm: make hypervisor state restore a function

2016-04-21 Thread Shreyas B. Prabhu
In the current code, when the thread wakes up in reset vector, some of the state restore code and check for whether a thread needs to branch to kvm is duplicated. Reorder the code such that this duplication is avoided. At a higher level this is what the change looks like- Before this patch - powe

[PATCH 8/9] cpuidle/powernv: Add support for POWER ISA v3 idle states

2016-04-21 Thread Shreyas B. Prabhu
POWER ISA v3 defines a new idle processor core mechanism. In summary, a) new instruction named stop is added. b) new per thread SPR named PSSCR is added which controls the behavior of stop instruction. Supported idle states and value to be written to PSSCR register to enter any idle stat

Re: [PATCH] PM / Runtime: Only force-resume device if it has been force-suspended

2016-04-21 Thread Ulf Hansson
On 21 April 2016 at 14:41, Laurent Pinchart wrote: > Hi Ulf, > > On Thursday 21 Apr 2016 11:10:19 Ulf Hansson wrote: >> On 21 April 2016 at 01:30, Laurent Pinchart wrote: >> > On Monday 07 Mar 2016 11:10:08 Ulf Hansson wrote: >> >> [...] >> >> >> I agree, that's a better idea. Drivers shouldn

[PATCH 7/9] powerpc/powernv: Add platform support for stop instruction

2016-04-21 Thread Shreyas B. Prabhu
POWER ISA v3 defines a new idle processor core mechanism. In summary, a) new instruction named stop is added. This instruction replaces instructions like nap, sleep, rvwinkle. b) new per thread SPR named PSSCR is added which controls the behavior of stop instruction. PSSCR has fo

Re: [PATCH 6/8] mfd: Add STMPE1600 support

2016-04-21 Thread Patrice Chotard
On 04/20/2016 04:43 PM, Linus Walleij wrote: On Tue, Apr 19, 2016 at 2:18 PM, wrote: From: Patrice Chotard STMPE1600 is a 16-bit port expander. Datasheet is available here : http://www2.st.com/content/st_com/en/products/interfaces-and-transceivers/ i-o-expanders-and-level-translators/i-o-

[PATCH 4/9] powerpc/powernv: Make power7_powersave_common more generic

2016-04-21 Thread Shreyas B. Prabhu
power7_powersave_common does common steps needed before entering idle state and eventually changes MSR to MSR_IDLE and does rfid to power7_enter_nap_mode. Make it more generic by passing the rfid address as a function parameter. Also make function name more generic. Signed-off-by: Shreyas B. Prab

Re: [PATCH V2 RFC] fixup! virtio: convert to use DMA api

2016-04-21 Thread Wei Liu
Add Stefano and Anthony On Thu, Apr 21, 2016 at 04:43:45PM +0300, Michael S. Tsirkin wrote: > This adds a flag to enable/disable bypassing the IOMMU by > virtio devices. > > This is on top of patch > http://article.gmane.org/gmane.comp.emulators.qemu/403467 > virtio: convert to use DMA api > > T

Re: stable-security kernel updates

2016-04-21 Thread Sasha Levin
On 04/21/2016 07:59 AM, Jiri Slaby wrote: > On 04/21/2016, 01:11 PM, Sasha Levin wrote: >>> Ok, not that bad, it is only unused code, but why are *not* these in the >>> security tree? >>> ipr: Fix out-of-bounds null overwrite >> >> Is there a particular way to exploit this that I'm missing? > > An

[PATCH] mmc: sdhci-of-at91: add presets setup

2016-04-21 Thread Ludovic Desroches
The controller claims to support SDR104. In fact, it only supports a degraded SDR104 since the maximum frequency of the SD clock is 120 MHz instead of 208 MHz. The sdhci core is unaware of it and will compute a wrong clock divider. We can deal with this specific case by using presets. Signed-off-b

Re: stable-security kernel updates

2016-04-21 Thread Sasha Levin
On 04/21/2016 08:39 AM, Greg KH wrote: > On Thu, Apr 21, 2016 at 02:05:41PM +0200, Jiri Slaby wrote: >> > On 04/21/2016, 01:59 PM, Jiri Slaby wrote: > >> (CVE-2016-2085) 613317b EVM: Use crypto_memneq() for digest > >> comparisons >>> > > >>> > > Does not exist in the CVE database/is no

Re: [PATCH v6 07/19] i2c: octeon: Use i2c recovery framework

2016-04-21 Thread Wolfram Sang
> I assumed this check was bogus and there are no valid 0-length > messages... They are valid (check SMBUS_QUICK), but not every controller can handle them correctly. Your driver has SMBUS_QUICK enabled, so this is a contradiction to the check above where it rejects it. So, it looks like it need

Re: [PATCH v6 08/19] i2c: octeon: Enable High-Level Controller

2016-04-21 Thread Wolfram Sang
> I think we should just drop the _interruptible_ and use > wait_event_timeout. The same is already used in the octeon_i2c_wait(). > The 2ms timeout should not hurt anyone. This is what most people have good experience with :) signature.asc Description: PGP signature

Re: [PATCH] iio: inv_mpu6050: Add support for auxiliary I2C master

2016-04-21 Thread Peter Rosin
Crestez Dan Leonard wrote: > On 04/20/2016 11:31 PM, Peter Rosin wrote: > > Crestez Dan Leonard wrote: > >> Changes since that version: > >> * Nest the adapter in inv_mpu6050_state instead of making it static > >> * Explicitly forward of_node "i2c-aux-master" to allow describing aux > >> devices >

Re: [V11,3/4] tools/perf: Map the ID values with register names

2016-04-21 Thread Michael Ellerman
On Sat, 2016-20-02 at 05:02:47 UTC, Anju T wrote: > Map ID values with corresponding register names. These names are then > displayed when user issues perf record with the -I option > followed by perf report/script with -D option. > > To test this patchset, > Eg: > $ perf record -I ls # record m

Re: [V11,2/4] perf/powerpc: add support for sampling intr machine state

2016-04-21 Thread Michael Ellerman
On Sat, 2016-20-02 at 05:02:46 UTC, Anju T wrote: > The perf infrastructure uses a bit mask to find out valid > registers to display. Define a register mask for supported > registers defined in asm/perf_regs.h. The bit positions also > correspond to register IDs which is used by perf infrastructure

RE: [PATCH] s390/compat: build error for large compat syscall args

2016-04-21 Thread Jungseung Lee
Hello, > s390/compat: build error for large compat syscall args > > Enforce 32 bit types for all compat syscall argument types. > > This way we can make sure that all arguments get correct sign > or zero extension. Otherwise incorrect code would be generated. > > E.g. for a 'long' type the

[PATCH 3/9] powerpc/powernv: Move idle code usable by multiple hardware to common location

2016-04-21 Thread Shreyas B. Prabhu
CPU-idle related code like context save/restore functions idle_power7.S can reused for adding stop instruction support. Move this code to a new commonly accessible location. Signed-off-by: Shreyas B. Prabhu --- arch/powerpc/kernel/Makefile| 1 + arch/powerpc/kernel/idle_power7.S

[PATCH 9/9] powerpc/powernv: Use deepest stop state when cpu is offlined

2016-04-21 Thread Shreyas B. Prabhu
If hardware supports stop state, use the deepest stop state when the cpu is offlined. Signed-off-by: Shreyas B. Prabhu --- arch/powerpc/platforms/powernv/idle.c| 15 +-- arch/powerpc/platforms/powernv/powernv.h | 1 + arch/powerpc/platforms/powernv/smp.c | 4 +++- 3 files c

[PATCH 6/9] powerpc/powernv: set power_save func after the idle states are initialized

2016-04-21 Thread Shreyas B. Prabhu
pnv_init_idle_states discovers supported idle states from the device tree and does the required initialization. Set power_save function pointer only after this initialization is done Signed-off-by: Shreyas B. Prabhy --- arch/powerpc/platforms/powernv/idle.c | 3 +++ arch/powerpc/platforms/power

[PATCH 5/9] powerpc/powernv: Move idle related macros to cpuidle.h

2016-04-21 Thread Shreyas B. Prabhu
Move idle related macros to a common location asm/cpuidle.h so that they can be used for stop instruction support. Signed-off-by: Shreyas B. Prabhy --- arch/powerpc/include/asm/cpuidle.h | 27 +++ arch/powerpc/kernel/idle_power7.S | 26 -- 2 files

Re: stable-security kernel updates

2016-04-21 Thread Sasha Levin
On 04/21/2016 08:36 AM, Greg KH wrote: > On Thu, Apr 21, 2016 at 07:27:39AM -0400, Sasha Levin wrote: >> Hey Willy, >> >> On 04/21/2016 03:11 AM, Willy Tarreau wrote: >>> This illustrates exactly what I suspected would happen because that's the >>> same trouble we all face when picking backports fo

Re: [PATCH net-next] perf, bpf: minimize the size of perf_trace_() tracepoint handler

2016-04-21 Thread Peter Zijlstra
On Mon, Apr 18, 2016 at 08:11:50PM -0700, Alexei Starovoitov wrote: > move trace_call_bpf() into helper function to minimize the size > of perf_trace_*() tracepoint handlers. > text data bss dechex filename > 10541679 5526646 2945024 190133491221ee5 vml

Re: [PATCH v6 08/19] i2c: octeon: Enable High-Level Controller

2016-04-21 Thread Jan Glauber
On Wed, Apr 20, 2016 at 11:43:54PM +0200, Wolfram Sang wrote: > On Mon, Apr 11, 2016 at 05:28:39PM +0200, Jan Glauber wrote: > > From: David Daney > > > > Use High-Level Controller (HLC) when possible. The HLC can read/write > > up to 8 bytes and is completely optional. The most important differe

Re: stable-security kernel updates

2016-04-21 Thread Willy Tarreau
On Thu, Apr 21, 2016 at 10:01:29AM -0400, Sasha Levin wrote: > > What are you "stop-gapping" then? The 7-10 days between stable > > releases? > > In a perfect world where everyone has a team of kernel hackers on hand > reviewing stable commits, verifying the resulting kernel doesn't regress > the

Re: [PATCH net-next] perf, bpf: minimize the size of perf_trace_() tracepoint handler

2016-04-21 Thread Steven Rostedt
On Thu, 21 Apr 2016 16:02:55 +0200 Peter Zijlstra wrote: > Acked-by: Peter Zijlstra (Intel) > > David, please take through the net tree as this depends on prior patches > by Alexei that are already in your tree. Yes please! Acked-by: Steven Rostedt -- Steve

Re: stable-security kernel updates

2016-04-21 Thread Jiri Slaby
On 04/21/2016, 03:54 PM, Sasha Levin wrote: > On 04/21/2016 08:39 AM, Greg KH wrote: >> On Thu, Apr 21, 2016 at 02:05:41PM +0200, Jiri Slaby wrote: On 04/21/2016, 01:59 PM, Jiri Slaby wrote: (CVE-2016-2085) 613317b EVM: Use crypto_memneq() for digest comparisons >> >> Does not

Re: stable-security kernel updates

2016-04-21 Thread Sasha Levin
On 04/21/2016 08:56 AM, Willy Tarreau wrote: > On Wed, Apr 20, 2016 at 03:50:34PM -0400, Sasha Levin wrote: >> Hi all, >> >> Updates for stable-security kernels have been released: >> >> - v3.12.58-security >> - v3.14.67-security >> - v3.18.31-security >> - v4.1.22-security >>

Re: [PATCH v4 1/2] KVM: remove NULL return path for vcpu ids >= KVM_MAX_VCPUS

2016-04-21 Thread David Hildenbrand
> Commit c896939f7cff ("KVM: use heuristic for fast VCPU lookup by id") added > a return path that prevents vcpu ids to exceed KVM_MAX_VCPUS. This is a > problem for powerpc where vcpu ids can grow up to 8*KVM_MAX_VCPUS. > > This patch simply reverses the logic so that we only try fast path if the

Re: [PATCH 2/3] ASoC: simple-card: Add support jack detection via codec

2016-04-21 Thread Rob Herring
On Mon, Apr 18, 2016 at 04:17:31PM +0800, Xing Zheng wrote: > In most cases, many codecs already supports jack detection, previouslly, > we need to create a customized machine driver every time. > > Hence, the simple-card need to support use them dynamically via parse dts > file for better flexibi

Re: stable-security kernel updates

2016-04-21 Thread Willy Tarreau
On Thu, Apr 21, 2016 at 04:13:07PM +0200, Jiri Slaby wrote: > On 04/21/2016, 03:54 PM, Sasha Levin wrote: > > On 04/21/2016 08:39 AM, Greg KH wrote: > >> On Thu, Apr 21, 2016 at 02:05:41PM +0200, Jiri Slaby wrote: > On 04/21/2016, 01:59 PM, Jiri Slaby wrote: > (CVE-2016-2085) 613317b

Re: [PATCHv2 1/5] efi/runtime-wrappers: add {__,}efi_call_virt templates

2016-04-21 Thread Mark Rutland
On Thu, Apr 21, 2016 at 01:55:07PM +0100, Mark Rutland wrote: > On Thu, Apr 21, 2016 at 12:42:56PM +0100, Leif Lindholm wrote: > > On Thu, Apr 21, 2016 at 12:35:25PM +0100, Mark Rutland wrote: > > > Currently each architecture must implement two macros, efi_call_virt and > > > __efi_call_virt, whic

Re: [PATCH v2 1/7] drivers: mfd: rk808: rename rk808 struct to rk8xx

2016-04-21 Thread Alexandre Belloni
On 21/04/2016 at 15:12:35 +0200, Wadim Egorov wrote : > This patch renames the rk808 struct. So it is more clear that this > struct can be shared between all RK8XX related PMIC drivers. > I'm still thinking this is unnecessary and that the rk8xx will become more confusing that rx808 in the future

[PATCH v4 0/2] let archs decide for vcpu ids

2016-04-21 Thread Greg Kurz
This series mostly addresses Radim's comments on my previous patch "KVM: remove buggy vcpu id check on vcpu creation": - prepended a patch to fix kvm_get_vcpu_by_id() - updated the KVM API documentation --- Greg Kurz (2): KVM: remove NULL return path for vcpu ids >= KVM_MAX_VCPUS KVM:

[PATCH v4 1/2] KVM: remove NULL return path for vcpu ids >= KVM_MAX_VCPUS

2016-04-21 Thread Greg Kurz
Commit c896939f7cff ("KVM: use heuristic for fast VCPU lookup by id") added a return path that prevents vcpu ids to exceed KVM_MAX_VCPUS. This is a problem for powerpc where vcpu ids can grow up to 8*KVM_MAX_VCPUS. This patch simply reverses the logic so that we only try fast path if the vcpu id c

[PATCH] OMAPDSS: HDMI5: Fix AVI infoframe

2016-04-21 Thread J.D. Schroeder
From: "Lodes, Jim" The AVI infoframe R0-R3 in the 2nd data byte represents the Active Format Aspect Ratio. It is four bits long not two bits. This fixes that mask used to extract the bits before writing the bits to the hardware registers. Signed-off-by: Lodes, Jim Signed-off-by: J.D. Schroeder

[PATCH v4 2/2] KVM: move vcpu id checking to archs

2016-04-21 Thread Greg Kurz
Commit 338c7dbadd26 ("KVM: Improve create VCPU parameter (CVE-2013-4587)") introduced a check to prevent potential kernel memory corruption in case the vcpu id is too great. Unfortunately this check assumes vcpu ids grow in sequence with a common difference of 1, which is wrong: archs are free to

<    1   2   3   4   5   6   7   8   9   >