[PATCH v6] input: tablet: add Pegasus Notetaker tablet driver

2016-05-29 Thread Martin Kepplinger
This adds a driver for the Pegasus Notetaker Pen. When connected, this uses the Pen as an input tablet. This device was sold in various different brandings, for example "Pegasus Mobile Notetaker M210", "Genie e-note The Notetaker", "Staedtler Digital ballpoint pen 990 01",

[PATCH 0/3] mmc: sunxi: Fix MMC DDR modes for Allwinner A80

2016-05-29 Thread Chen-Yu Tsai
Hi everyone, This series fixes and re-enables eMMC HS-DDR support for Allwinner A80 SoC. The issue with the original code was the mmc clock timings were incorrect, and thus we had disabled HS-DDR on A80 for the previous release. Patch 1 is a fix for mmc core. Arnd's patch to remove IS_ERR_VALUE r

[PATCH 2/3] mmc: sunxi: Fix DDR MMC timings for A80

2016-05-29 Thread Chen-Yu Tsai
The MMC clock timings were incorrectly calculated, when the conversion from delay value to delay phase was done. The 50M DDR and 50M DDR 8bit timings are off, and make eMMC DDR unusable. Unfortunately it seems different controllers on the same SoC have different timings. The new settings are taken

[PATCH 3/3] mmc: sunxi: Re-enable eMMC HS-DDR modes on Allwinner A80

2016-05-29 Thread Chen-Yu Tsai
Now the the HS-DDR mode clock timings have been corrected, we can re-enable these modes on the A80. Signed-off-by: Chen-Yu Tsai --- drivers/mmc/host/sunxi-mmc.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/mmc/host/sunxi-mmc.c b/drivers/mmc/host/sunxi-mmc.c index 5873dc344ab2.

[PATCH 1/3] mmc: fix mmc mode selection for HS-DDR and higher

2016-05-29 Thread Chen-Yu Tsai
When IS_ERR_VALUE was removed from the mmc core code, it was replaced with a simple not-zero check. This does not work, as the value checked is the return value for mmc_select_bus_width, which returns the set bit width on success. This made eMMC modes higher than HS-DDR unusable. Fix this by check

Re: [PATCH v3 07/10] : Add support for architecture-specific functions

2016-05-29 Thread Geert Uytterhoeven
Hi George, I see this has been applied in the mean time, but improvements never hurt... On Sat, May 28, 2016 at 9:57 PM, George Spelvin wrote: > --- /dev/null > +++ b/lib/test_hash.c > @@ -0,0 +1,250 @@ > +/* > + * Test the various integer hash functions. h64 (or its low-order bits) > + * is t

Re: [PATCH 1/1] iio: light: Added CM36672 Proximity Sensor Driver.

2016-05-29 Thread Peter Meerwald-Stadler
On Sat, 28 May 2016, Kevin Tsai wrote: > Added Vishay Capella CM36672 Proximity Sensor IIO driver. Support both > ACPI and Device Tree. comments below > Signed-off-by: Kevin Tsai > --- > .../devicetree/bindings/i2c/trivial-devices.txt| 1 + > .../devicetree/bindings/iio/light/cm36672.t

Re: [Intel-gfx] 4.7-rc0: redshift stopped working on intel display

2016-05-29 Thread Matthew Auld
Could you try to apply the following patch [1], hopefully this fixes the issue for you. [1] https://patchwork.freedesktop.org/patch/89111/

Re: [PATCH] mm: memcontrol: fix possible css ref leak on oom

2016-05-29 Thread Vladimir Davydov
On Fri, May 27, 2016 at 01:36:29PM -0400, Johannes Weiner wrote: > On Mon, May 23, 2016 at 07:02:10PM +0300, Vladimir Davydov wrote: > > mem_cgroup_oom may be invoked multiple times while a process is handling > > a page fault, in which case current->memcg_in_oom will be overwritten > > leaking the

[PATCH] MIPS: ralink: fix spis group pinmux

2016-05-29 Thread Álvaro Fernández Rojas
pwm function for spis conflicts with uart2 and uart1, fix this by changing it to pwm_uart2, which reflects the real use of these pins with these pinmux (2 for pwm and 2 for uart). Signed-off-by: Álvaro Fernández Rojas --- arch/mips/ralink/mt7620.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

Re: [PATCH 05/54] MAINTAINERS: Add file patterns for rockchip device tree bindings

2016-05-29 Thread Geert Uytterhoeven
Hi Heiko, On Sun, May 22, 2016 at 11:27 AM, Heiko Stuebner wrote: > Am Sonntag, 22. Mai 2016, 11:05:42 schrieb Geert Uytterhoeven: >> Submitters of device tree binding documentation may forget to CC >> the subsystem maintainer if this is missing. > > The "N: rockchip" line at the bottom of the bl

[path v2 1/7] drm/hisilicon/hibmc: Add hisilicon hibmc drm master driver

2016-05-29 Thread Rongrong Zou
Add DRM master driver for Hisilicon Hibmc SoC which used for Out-of-band management. Blow is the general hardware connection, both the Hibmc and the host CPU are on the same mother board. +--+ +--+ | | PCIe | Hibmc | |host CPU( |<->| display | |arm64,x86)|

[path v2 2/7] drm/hisilicon/hibmc: Add plane for DE

2016-05-29 Thread Rongrong Zou
Add plane funcs and helper funcs for DE. Signed-off-by: Rongrong Zou Signed-off-by: Jianhua Li --- drivers/gpu/drm/hisilicon/hibmc/Makefile| 2 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 170 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 41

[path v2 0/7] Add DRM driver for Hisilicon Hibmc

2016-05-29 Thread Rongrong Zou
This patch set adds a new drm driver for Hisilicon Hibmc. Hibmc is a base board management controller, usually it is used on server for Out-of-band management purpose. In this patch set, we just support basic function for Hibmc display subsystem. Hibmc display subsystem is connected to host CPU by

[path v2 3/7] drm/hisilicon/hibmc: Add crtc for DE

2016-05-29 Thread Rongrong Zou
Add crtc funcs and helper funcs for DE. Signed-off-by: Rongrong Zou Signed-off-by: Jianhua Li --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 307 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.h | 29 +++ drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 6 + d

[path v2 4/7] drm/hisilicon/hibmc: Add encoder for VDAC

2016-05-29 Thread Rongrong Zou
Add encoder funcs and helpers for VDAC. Signed-off-by: Rongrong Zou Signed-off-by: Jianhua Li --- drivers/gpu/drm/hisilicon/hibmc/Makefile | 2 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 6 ++ drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 2 + drivers/gpu/drm/hisilico

[path v2 5/7] drm/hisilicon/hibmc: Add connector for VDAC

2016-05-29 Thread Rongrong Zou
Add connector funcs and helper funcs for VDAC. Signed-off-by: Rongrong Zou Signed-off-by: Jianhua Li --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 21 ++ drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 3 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 89

[path v2 6/7] drm/hisilicon/hibmc: Add support for frame buffer

2016-05-29 Thread Rongrong Zou
Add support for fbdev. Signed-off-by: Rongrong Zou Signed-off-by: Jianhua Li --- drivers/gpu/drm/hisilicon/hibmc/Makefile | 2 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 20 ++ drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 17 ++ drivers/gpu/drm/hisilicon/hibmc/hi

[path v2 7/7] drm/hisilicon/hibmc: Add maintainer for Hibmc DRM

2016-05-29 Thread Rongrong Zou
Signed-off-by: Rongrong Zou Signed-off-by: Jianhua Li --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f466673..a8a62e0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3957,6 +3957,13 @@ T: git git://github.com/patjak/drm-gma500 S:

Re: Nokia N900: musb is in wrong state after boot

2016-05-29 Thread Pali Rohár
On Saturday 23 January 2016 13:57:32 Pali Rohár wrote: > On Thursday 21 January 2016 20:21:13 Tony Lindgren wrote: > > * joerg Reisenweber [160121 10:45]: > > > On Thu 21 January 2016 09:41:46 Tony Lindgren wrote: > > > > Then for supporting the USB host mode.. We should add regulator > > > > supp

Re: [PATCH] Rename other copy of hash_string to hashlen_string

2016-05-29 Thread Geert Uytterhoeven
Hi Georges, On Sun, May 29, 2016 at 7:26 AM, George Spelvin wrote: > The original name was simply hash_string(), but that conflicted with a > function with that name in drivers/base/power/trace.c, and I decided that > calling it "hashlen_" was better anyway. > > But you have to do it in two place

[PATCH] regulator: palmas: Remove *rdev[PALMAS_NUM_REGS] from struct palmas_pmic

2016-05-29 Thread Axel Lin
Current code uses devm_regulator_register(), so *rdev[PALMAS_NUM_REGS] is no longer required. Signed-off-by: Axel Lin --- drivers/regulator/palmas-regulator.c | 12 include/linux/mfd/palmas.h | 1 - 2 files changed, 13 deletions(-) diff --git a/drivers/regulator/palmas-r

[PATCH RFT] regulator: max8972: Fix setting ramp delay

2016-05-29 Thread Axel Lin
Current code can set ramp delay to a wrong setting that the return value from .set_voltage_time_sel is not enough for proper delay. Fix the logic in .set_ramp_delay and also remove unused ret_val variable. Signed-off-by: Axel Lin --- drivers/regulator/max8973-regulator.c | 16 ++-- 1

[RFT][PATCH RESEND] regulator: max8973: Fix setting ramp delay

2016-05-29 Thread Axel Lin
Current code can set ramp delay to a wrong setting that the return value from .set_voltage_time_sel is not enough for proper delay. Fix the logic in .set_ramp_delay and also remove unused ret_val variable. Signed-off-by: Axel Lin --- RESEND: Fix typo in subject line, it's max8973. drivers/regula

Re: [PATCH] Rename other copy of hash_string to hashlen_string

2016-05-29 Thread George Spelvin
> That version fails the test. On m68k/ARAnyM: > > test_hash: hashlen_string(256..256) returned length 1, expected 0 Just kill me. :-( I didn't change that code, so I didn't re-test it. But I changed the test. diff --git a/fs/namei.c b/fs/namei.c index aefba699..dcb85255 100644 --- a/fs/namei.c

[PATCH] fs/namei.c. If we way we want zero-length string support, mean it

2016-05-29 Thread George Spelvin
>From 4b237fc0c5addf58ef0e0bbd3740d64007c36375 Mon Sep 17 00:00:00 2001 From: George Spelvin Date: Sun, 29 May 2016 08:05:56 -0400 Subject: [PATCH] fs/namei.c. If we way we want zero-length string suppor mean it. hash_name() is not changed for speed, but the more general purpose hashlen_string n

[PATCH] fs/namei.c: Update !CONFIG_DCACHE_WORD_ACCESS case

2016-05-29 Thread George Spelvin
>From be5e653c0d5ec890c32a48851dcd0a347df8e5fa Mon Sep 17 00:00:00 2001 From: George Spelvin Date: Sun, 29 May 2016 01:23:14 -0400 Subject: [PATCH] fs/namei.c: Update !CONFIG_DCACHE_WORD_ACCESS case A couple of late changes to the previous patch didn't update the !CONFIG_DCACHE_WORD_ACCESS option

[PATCH 2/2] staging: slicoss: fix camel case check

2016-05-29 Thread Jaime Arrocha
From: Jaime Arrocha Fixed several checks about camel case use provided by checkpatch.pl. CHECK: Avoid CamelCase Changes verified to work by compiling module. Signed-off-by: Jaime Arrocha --- drivers/staging/slicoss/slic.h| 30 +++ drivers/staging/slicoss/slicoss.c | 50

[PATCH 1/2] staging: slicoss: fix coding style spacing issues

2016-05-29 Thread Jaime Arrocha
From: Jaime Arrocha This patch fixes spacing in variable declarations. This patch series does not depend on each other. Signed-off-by: Jaime Arrocha --- drivers/staging/slicoss/slic.h | 280 - 1 file changed, 140 insertions(+), 140 deletions(-) diff --g

Re: [PATCH v3 1/2] mm, kasan: improve double-free detection

2016-05-29 Thread Dmitry Vyukov
On Tue, May 24, 2016 at 8:30 PM, Kuthonuzo Luruo wrote: > Currently, KASAN may fail to detect concurrent deallocations of the same > object due to a race in kasan_slab_free(). This patch makes double-free > detection more reliable by serializing access to KASAN object metadata. > New functions kas

[PATCH trivial] include/linux/memblock.h: Clean up code for several trivial details

2016-05-29 Thread chengang
From: Chen Gang Correct the function parameters alignment, since original code already use both tabs and white spaces together for the incorrect parameters alignment functions. If one line can hold one statement within 80 columns, let it in one line (original code did not consider about the tabs

[PATCH] kprobes: fix a comment typo

2016-05-29 Thread Jinbum Park
Just fix a typo in the code comment. Signed-off-by: Jinbum Park --- arch/arm/probes/kprobes/opt-arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/probes/kprobes/opt-arm.c b/arch/arm/probes/kprobes/opt-arm.c index bcdecc2..073c0ba 100644 --- a/arch/arm/probes/kpr

Re: [RFT v3] drm: use late_initcall() for amdkfd and radeon

2016-05-29 Thread Oded Gabbay
On Fri, May 27, 2016 at 4:18 AM, Luis R. Rodriguez wrote: > To get KFD support in radeon we need the following > initialization to happen in this order, their > respective driver file that has its init routine > listed next to it: > > 0. AMD IOMMUv1:arch/x86/kernel/pci-dma.c > 1. AMD IOMMUv2:

RE: [PATCH v3 1/2] mm, kasan: improve double-free detection

2016-05-29 Thread Luruo, Kuthonuzo
> > +/* flags shadow for object header if it has been overwritten. */ > > +void kasan_mark_bad_meta(struct kasan_alloc_meta *alloc_info, > > + struct kasan_access_info *info) > > +{ > > + u8 *datap = (u8 *)&alloc_info->data; > > + > > + if u8 *)info->access_addr + info

dma_declare_coherent_memory fails for RAM allocated memory

2016-05-29 Thread Ivaylo Dimitrov
Hi, When trying to declare and use DT reserved memory region on ARM (OMAP3), dma_declare_coherent_memory() fails in memremap(). This is from today's master: [ cut here ] WARNING: CPU: 0 PID: 1 at kernel/memremap.c:111 memremap+0x118/0x194 memremap attempted on ram 0x8f

Re: [PATCH v3 1/2] mm, kasan: improve double-free detection

2016-05-29 Thread Dmitry Vyukov
On Sun, May 29, 2016 at 4:45 PM, Luruo, Kuthonuzo wrote: >> > +/* flags shadow for object header if it has been overwritten. */ >> > +void kasan_mark_bad_meta(struct kasan_alloc_meta *alloc_info, >> > + struct kasan_access_info *info) >> > +{ >> > + u8 *datap = (u8 *)&alloc_inf

RE: [PATCH v3 1/2] mm, kasan: improve double-free detection

2016-05-29 Thread Luruo, Kuthonuzo
> >> > +/* flags shadow for object header if it has been overwritten. */ > >> > +void kasan_mark_bad_meta(struct kasan_alloc_meta *alloc_info, > >> > + struct kasan_access_info *info) > >> > +{ > >> > + u8 *datap = (u8 *)&alloc_info->data; > >> > + > >> > + if u8 *)inf

Re: [PATCH v2] gpu: drm: amd: amdkfd: Remove create_workqueue()

2016-05-29 Thread Oded Gabbay
On Thu, May 26, 2016 at 10:37 PM, Bhaktipriya Shridhar wrote: > alloc_workqueue replaces deprecated create_workqueue(). > > create_workqueue has been replaced with alloc_workqueue with max_active > as 0 since there is no need for throttling the number of active work items. > > WQ_MEM_RECLAIM has n

Re: [PATCH trivial] include/linux/memblock.h: Clean up code for several trivial details

2016-05-29 Thread Joe Perches
On Sun, 2016-05-29 at 22:36 +0800, cheng...@emindsoft.com.cn wrote: > From: Chen Gang > > Correct the function parameters alignment, since original code already > use both tabs and white spaces together for the incorrect parameters > alignment functions. > > If one line can hold one statement wi

Re: [PATCH v2 2/7] iio: inv_mpu6050: Initial regcache support

2016-05-29 Thread Jonathan Cameron
On 20/05/16 12:01, Crestez Dan Leonard wrote: > On 05/20/2016 09:39 AM, Peter Rosin wrote: >> On 2016-05-20 04:34, Matt Ranostay wrote: >>> On Wed, May 18, 2016 at 8:00 AM, Crestez Dan Leonard >>> wrote: Signed-off-by: Crestez Dan Leonard --- drivers/iio/imu/inv_mpu6050/inv_mpu_co

Re: [PATCH v2 3/7] iio: inv_mpu6050: Only toggle DATA_RDY_EN in inv_reset_fifo

2016-05-29 Thread Jonathan Cameron
On 18/05/16 16:00, Crestez Dan Leonard wrote: > Signed-off-by: Crestez Dan Leonard Looks good to me. Jonathan > --- > drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c| 13 - > drivers/iio/imu/inv_mpu6050/inv_mpu_trigger.c | 3 ++- > 2 files changed, 10 insertions(+), 6 deletions(-) >

Re: [PATCH v2 4/7] iio: inv_mpu6050: Cache non-volatile bits of user_ctrl

2016-05-29 Thread Jonathan Cameron
On 18/05/16 16:00, Crestez Dan Leonard wrote: > Signed-off-by: Crestez Dan Leonard Kind of a pity we have to do this, but fair enough! Jonathan > --- > drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h | 2 ++ > drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c| 9 ++--- > drivers/iio/imu/inv_mpu60

Re: [PATCH v4 3/3] drm: Add helper for simple display pipeline

2016-05-29 Thread Noralf Trønnes
Den 12.05.2016 20:25, skrev Noralf Trønnes: Provides helper functions for drivers that have a simple display pipeline. Plane, crtc and encoder are collapsed into one entity. Cc: jsa...@ti.com Signed-off-by: Noralf Trønnes --- [...] diff --git a/drivers/gpu/drm/drm_simple_kms_helper.c b/dr

[PATCH v3] gpu: drm: amd: amdkfd: Remove create_workqueue()

2016-05-29 Thread Bhaktipriya Shridhar
alloc_workqueue replaces deprecated create_workqueue(). create_workqueue has been replaced with alloc_workqueue with max_active as 0 since there is no need for throttling the number of active work items. WQ_MEM_RECLAIM has not been set to because kfd_process_wq will not be used in memory reclaim

Re: [PATCH v2] gpu: drm: amd: amdkfd: Remove create_workqueue()

2016-05-29 Thread Bhaktipriya Shridhar
Thanks Oded. Sending v3 right away :) On Sun, May 29, 2016 at 8:31 PM, Oded Gabbay wrote: > On Thu, May 26, 2016 at 10:37 PM, Bhaktipriya Shridhar > wrote: >> alloc_workqueue replaces deprecated create_workqueue(). >> >> create_workqueue has been replaced with alloc_workqueue with max_active >>

Re: [PATCH v2 6/7] iio: inv_mpu6050: Reformat sample for active scan mask

2016-05-29 Thread Jonathan Cameron
On 18/05/16 16:00, Crestez Dan Leonard wrote: > Right now it is possible to only enable some of the x/y/z channels, for > example you can enable accel_z without x or y but if you actually do > that what you get is actually only the x channel. > > Fix this by reformatting the hardware sample to onl

[PATCH] Documentation/zh_CN: update Chinese version CodingStyle

2016-05-29 Thread Andy Deng
Chinese version CodingStyle is a little outdate, it should be updated. This patch sync with the latest CodingStyle of all changes, new chapters (chapter 19 and chapter 20) have been translated. Signed-off-by: Andy Deng --- Documentation/zh_CN/CodingStyle | 581 --

Re: [RFC v2 7/7] iio: inv_mpu6050: Expose channels from slave sensors

2016-05-29 Thread Jonathan Cameron
On 18/05/16 16:00, Crestez Dan Leonard wrote: > This works by copying the iio_chan_specs from the slave device and > republishing them as if they belonged to the MPU itself. All > read/write_raw operations are forwarded to the other driver. > > The original device is still registered with linux as

Re: [PATCH 1/1 v3] hwmon: add support for Sensirion SHT3x sensors

2016-05-29 Thread Guenter Roeck
On 05/26/2016 12:25 AM, Pascal Sachs wrote: From: David Frey This driver implements support for the Sensirion SHT3x-DIS chip, a humidity and temperature sensor. Temperature is measured in degrees celsius, relative humidity is expressed as a percentage. In the sysfs interface, all values are sca

Re: [PATCH v2 1/7] iio: inv_mpu6050: Do burst reads using spi/i2c directly

2016-05-29 Thread Jonathan Cameron
On 18/05/16 16:00, Crestez Dan Leonard wrote: > Using regmap_read_bulk is wrong because it assumes that a range of > registers is being read. In our case reading from the fifo register will > return multiple values but this is *not* auto-increment. > > This currently works by accident. > > Signed

Re: [PATCH 1/1 v3] hwmon: add support for Sensirion SHT3x sensors

2016-05-29 Thread Guenter Roeck
On 05/26/2016 12:25 AM, Pascal Sachs wrote: From: David Frey This driver implements support for the Sensirion SHT3x-DIS chip, a humidity and temperature sensor. Temperature is measured in degrees celsius, relative humidity is expressed as a percentage. In the sysfs interface, all values are sca

[PATCH v4 0/2] KASAN double-free detection

2016-05-29 Thread Kuthonuzo Luruo
Submitting v4 for your review/consideration. First patch provides more reliable double-free detection for KASAN. Second patch provides new double-free tests for 'test_kasan'. "Lock break" on out-of-bounds (OOB) write detection in patch v3 suffers from one fatal flaw: it's not possible to distingui

[PATCH v4 1/2] mm, kasan: improve double-free detection

2016-05-29 Thread Kuthonuzo Luruo
Currently, KASAN may fail to detect concurrent deallocations of the same object due to a race in kasan_slab_free(). This patch makes double-free detection more reliable by serializing access to KASAN object metadata. New functions kasan_meta_lock() and kasan_meta_unlock() are provided to lock/unloc

[PATCH v4 2/2] kasan: add double-free tests

2016-05-29 Thread Kuthonuzo Luruo
This patch adds new tests for KASAN double-free error detection when the same slab object is concurrently deallocated. Signed-off-by: Kuthonuzo Luruo --- Changes in v4: - There are *no* changes for v4. Changes in v3: - concurrent double-free test simplified to use on_each_cpu_mask() instead o

Re: [PATCH 1/1] iio: light: Added CM36672 Proximity Sensor Driver.

2016-05-29 Thread Jonathan Cameron
On 29/05/16 09:55, Peter Meerwald-Stadler wrote: > On Sat, 28 May 2016, Kevin Tsai wrote: > >> Added Vishay Capella CM36672 Proximity Sensor IIO driver. Support both >> ACPI and Device Tree. > > comments below > >> Signed-off-by: Kevin Tsai >> --- >> +#ifdef CONFIG_ACPI >> +/** >> + * cm3667

Re: [Revert "ppdev] 1701f68040: genirq: Flags mismatch irq 4. 00000000 (serial) vs. 00000080 (goldfish_pdev_bus)

2016-05-29 Thread Linus Torvalds
On Sun, May 29, 2016 at 8:28 AM, kernel test robot wrote: > > 0day kernel testing robot got the below dmesg and the first bad commit is This bisection seems unlikely. I *think* what is going on is that the previous kernels ended up with boot failures: > +

Re: [PATCH 5/7] x86/uaccess: Warn on uaccess faults other than #PF

2016-05-29 Thread Andy Lutomirski
On Wed, May 25, 2016 at 2:49 AM, Borislav Petkov wrote: > On Tue, May 24, 2016 at 03:48:42PM -0700, Andy Lutomirski wrote: >> If a uaccess instruction fails due to an8 error other than #PF, >> warn. If the fault is #GP, it most likely indicates access to a >> non-canonical address, which means th

Re: [PATCH 4/7] x86/dumpstack: If addr_limit is non-default, display it

2016-05-29 Thread Andy Lutomirski
On Wed, May 25, 2016 at 4:32 AM, Borislav Petkov wrote: > On Tue, May 24, 2016 at 03:48:41PM -0700, Andy Lutomirski wrote: >> This will help debug OOPSes related to USER_DS vs KERNEL_DS. >> >> Signed-off-by: Andy Lutomirski >> --- >> arch/x86/kernel/dumpstack_32.c | 4 >> arch/x86/kernel/du

[GIT PULL] SCSI fixes for 4.7-rc1

2016-05-29 Thread James Bottomley
This is a set of four fixes noticed in the merge window. The aacraid one is an optimisation, the mp3sas one fixes a spurious printk, the sd_check_events one fixes a theoretical race and the failed zero length commands fixes a bug in our completion/retry routines that has been causing problems in t

Re: [PATCH 1/1] iio: light: Added CM36672 Proximity Sensor Driver.

2016-05-29 Thread Jonathan Cameron
On 29/05/16 01:42, Kevin Tsai wrote: > Added Vishay Capella CM36672 Proximity Sensor IIO driver. Support both > ACPI and Device Tree. > > Signed-off-by: Kevin Tsai There are quite a few odd bits around the event handling. I think you failed to register the events properly then tried to work aro

Re: [PATCH 2/3] iio: adc: mxs-lradc: Add support for adc driver

2016-05-29 Thread Jonathan Cameron
On 28/05/16 18:49, Ksenija Stanojević wrote: > On Sun, May 1, 2016 at 6:38 PM, Jonathan Cameron wrote: >> On 29/04/16 12:48, Ksenija Stanojevic wrote: >>> Add mxs-lradc adc driver. >>> >>> Signed-off-by: Ksenija Stanojevic >> Mostly looking good. A few nitpicks and suggestions inline. >> >> Jona

Re: [PATCH 4/7] x86/dumpstack: If addr_limit is non-default, display it

2016-05-29 Thread Andy Lutomirski
On Wed, May 25, 2016 at 4:39 AM, Borislav Petkov wrote: > On Tue, May 24, 2016 at 03:48:41PM -0700, Andy Lutomirski wrote: >> This will help debug OOPSes related to USER_DS vs KERNEL_DS. >> >> Signed-off-by: Andy Lutomirski >> --- >> arch/x86/kernel/dumpstack_32.c | 4 >> arch/x86/kernel/du

Re: [PATCH 3/3] input: touchscreen: mxs-lradc: Add support for touchscreen

2016-05-29 Thread Jonathan Cameron
On 28/05/16 18:45, Ksenija Stanojević wrote: > On Sun, May 1, 2016 at 6:47 PM, Jonathan Cameron wrote: >> On 29/04/16 12:49, Ksenija Stanojevic wrote: >>> Add mxs-lradc touchscreen driver. >>> >>> Signed-off-by: Ksenija Stanojevic >> The only real thing this raises for me is why we are grabbing I

Re: [PATCH] kcov: add AFL-style tracing

2016-05-29 Thread Dmitry Vyukov
On Sat, May 21, 2016 at 6:07 PM, Vegard Nossum wrote: > From: Quentin Casasnovas > > AFL uses a fixed-size buffer (typically 64 KiB) where each byte is > a counter representing how many times an A -> B branch was taken. > Of course, since the buffer is fixed size, it's a little imprecise > in tha

Re: [PATCH 7/7] x86/uaccess: OOPS or warn on a fault with KERNEL_DS and !pagefault_disabled()

2016-05-29 Thread Andy Lutomirski
On Wed, May 25, 2016 at 8:33 AM, Borislav Petkov wrote: > On Tue, May 24, 2016 at 03:48:44PM -0700, Andy Lutomirski wrote: >> + if (unlikely(!is_user_ds && !pagefault_disabled())) { >> + if (extra < TASK_SIZE_MAX) { >> + /* >> + * Accessing

Re: [PATCH] iio: Documentation: fix in_*_scale kernel version

2016-05-29 Thread Jonathan Cameron
On 22/05/16 14:30, Alexandre Belloni wrote: > v3.21 doesn't exist, the first apparition of a in_.*_scale file was in v3.2 > > Signed-off-by: Alexandre Belloni Not that simple as this explicitly in_*_scale in the events directory. First instance of that is much newer. This should probably be 4.0

Linux 4.7-rc1

2016-05-29 Thread Linus Torvalds
Usually I close the merge window on a Sunday afternoon, but I've been known to be annoyed with stragglers and close things a day early. This time, to spice things up, I decided to just release on Sunday morning instead. [ And yes, before you ask , my life really is boring if this is "spicing thing

Re: [PATCH 1/7] iio: adc: ad7266: claim direct mode during sensor read

2016-05-29 Thread Jonathan Cameron
On 25/05/16 11:33, Daniel Baluta wrote: > On Tue, May 24, 2016 at 10:16 PM, Alison Schofield > wrote: >> Driver was checking for direct mode but not locking it down. >> Use iio_device_claim_direct_mode() to guarantee device stays >> in direct mode. >> >> Signed-off-by: Alison Schofield >> Cc: Da

Re: [PATCH 2/7] iio: adc: ad7791: claim direct mode when writing frequency

2016-05-29 Thread Jonathan Cameron
On 25/05/16 11:34, Daniel Baluta wrote: > On Tue, May 24, 2016 at 10:16 PM, Alison Schofield > wrote: >> Driver was checking for direct mode and trying to lock it, but >> left a gap where mode could change before the desired operation. >> Use iio_device_claim_direct_mode() to guarantee device sta

Re: [PATCH 2/7] iio: adc: ad7791: claim direct mode when writing frequency

2016-05-29 Thread Jonathan Cameron
On 29/05/16 18:06, Jonathan Cameron wrote: > On 25/05/16 11:34, Daniel Baluta wrote: >> On Tue, May 24, 2016 at 10:16 PM, Alison Schofield >> wrote: >>> Driver was checking for direct mode and trying to lock it, but >>> left a gap where mode could change before the desired operation. >>> Use iio_

Re: [PATCH] fs/namei.c. If we way we want zero-length string support, mean it

2016-05-29 Thread Geert Uytterhoeven
Hi George, On Sun, May 29, 2016 at 2:12 PM, George Spelvin wrote: > From 4b237fc0c5addf58ef0e0bbd3740d64007c36375 Mon Sep 17 00:00:00 2001 > From: George Spelvin > Date: Sun, 29 May 2016 08:05:56 -0400 > Subject: [PATCH] fs/namei.c. If we way we want zero-length string suppor mean > it. > > has

Re: Linux 4.7-rc1

2016-05-29 Thread Al Viro
On Sun, May 29, 2016 at 10:00:25AM -0700, Linus Torvalds wrote: > Anyway, enough blathering. Go out and test. And in particular, if > you're a low-level filesystem person, or involved in other ways in > path component lookup (security layer etc), go check that everything > looks ok, and if your fi

Re: [PATCH] fbtft: limit transfer length by spi device limit

2016-05-29 Thread Noralf Trønnes
Den 26.05.2016 21:25, skrev Michal Suchanek: Some SPI controllers can transfer only small piece of data at a time. Since SPI core gained a function to get the maximum transfer length use it. Signed-off-by: Michal Suchanek --- Tested on sunxi spi with DMA enabled and disabled. Makes a visibl

Re: [4.1.x -- 4.6.x and probably HEAD] Reproducible unprivileged panic/TLB BUG on sparc via a stack-protected rt_sigaction() ka_restorer, courtesy of the glibc testsuite

2016-05-29 Thread Sam Ravnborg
Hi Dave. > Ok, mystery solved. Super good explanation... > > > >From d645a0376b0010cd60ae5651b3b84a56f5b0e5a4 Mon Sep 17 00:00:00 2001 > From: "David S. Miller" > Date: Sat, 28 May 2016 20:41:12 -0700 > Subject: [PATCH 2/2] sparc64: Fix return from trap window fill crashes.

[PATCH 2/2] test/hash: Fix warning in preprocessor symbol evaluation

2016-05-29 Thread Geert Uytterhoeven
Some versions of gcc don't like tests for the value of an undefined preprocessor symbol, even in the #else branch of an #ifndef: lib/test_hash.c:224:7: warning: "HAVE_ARCH__HASH_32" is not defined [-Wundef] #elif HAVE_ARCH__HASH_32 != 1 ^ lib/test_hash.c:229:7: warning: "H

[PATCH 1/2] test/hash: Fix warning in two-dimensional array init

2016-05-29 Thread Geert Uytterhoeven
lib/test_hash.c: In function 'test_hash_init': lib/test_hash.c:146:2: warning: missing braces around initializer [-Wmissing-braces] Fixes: 468a9428521e7d00 (": Add support for architecture-specific functions") Signed-off-by: Geert Uytterhoeven --- lib/test_hash.c | 2 +- 1 file changed, 1 inse

tty/vt/keyboard: out of bounds access in do_compute_shiftstate

2016-05-29 Thread Sasha Levin
Hi all, I've hit the following while fuzzing with syzkaller inside a KVM tools guest running the latest -next kernel: [ 2662.777566] BUG: KASAN: global-out-of-bounds in do_compute_shiftstate+0x161/0x370 at addr b2e686a0 [ 2662.777592] Read of size 2 by task syz-executor/30576 [ 2662.77

Re: [PATCH 3/3] input: touchscreen: mxs-lradc: Add support for touchscreen

2016-05-29 Thread Ksenija Stanojević
On Sun, May 29, 2016 at 6:49 PM, Jonathan Cameron wrote: > On 28/05/16 18:45, Ksenija Stanojević wrote: >> On Sun, May 1, 2016 at 6:47 PM, Jonathan Cameron wrote: >>> On 29/04/16 12:49, Ksenija Stanojevic wrote: Add mxs-lradc touchscreen driver. Signed-off-by: Ksenija Stanojevic >

Re: [GIT PULL] first round of SCSI updates for the 4.6+ merge window

2016-05-29 Thread Sasha Levin
Hi all, On 05/18/2016 07:19 AM, James Bottomley wrote: > Douglas Gilbert (13): > scsi_debug: use locally assigned naa > scsi_debug: uuid for lu name > scsi_debug: vpd and mode page work > scsi_debug: add multiple queue support > scsi_debug: rework resp_report_luns Th

Re: [PATCH v1 1/3] Add the latent_entropy gcc plugin

2016-05-29 Thread Hector Martin
On Mon, May 23, 2016 at 3:15 PM, Emese Revfy wrote: > +/* > + * Copyright 2012-2016 by the PaX Team > + * Copyright 2016 by Emese Revfy > + * Licensed under the GPL v2 > + * > + * Note: the choice of the license means that the compilation process is > + * NOT 'eligible' as defined by gcc's

[tip:perf/urgent] perf symbols: Check kptr_restrict for root

2016-05-29 Thread tip-bot for Wang Nan
Commit-ID: 38272dc4f1b17437871b786d567e1242d0904f5a Gitweb: http://git.kernel.org/tip/38272dc4f1b17437871b786d567e1242d0904f5a Author: Wang Nan AuthorDate: Tue, 24 May 2016 09:21:27 + Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 27 May 2016 09:41:23 -0300 perf symbols: Chec

issue when applying ICC profile to display after drm/i915 change

2016-05-29 Thread Kui Zhang
Hello, this used to work. xcalib D6200MTX.icc After this it stopped working commit 20a34e78f0d71cab058a943b2e9601b97b761227 drm/i915: Update color management during vblank evasion. Color profile only take effect after the screen if back on. xcalib D6200MTX.icc xrandr --output eDP1 --off xra

[tip:perf/urgent] perf record: Fix crash when kptr is restricted

2016-05-29 Thread tip-bot for Wang Nan
Commit-ID: 3dc6c1d54ff4cc9ce7e8513c286c970304cde20b Gitweb: http://git.kernel.org/tip/3dc6c1d54ff4cc9ce7e8513c286c970304cde20b Author: Wang Nan AuthorDate: Tue, 24 May 2016 09:21:28 + Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 27 May 2016 09:41:39 -0300 perf record: Fix c

[tip:perf/urgent] perf ctf: Convert invalid chars in a string before set value

2016-05-29 Thread tip-bot for Wang Nan
Commit-ID: 5ea5888b2fbf5b230da62b2a21c8247bebb6c9cf Gitweb: http://git.kernel.org/tip/5ea5888b2fbf5b230da62b2a21c8247bebb6c9cf Author: Wang Nan AuthorDate: Fri, 27 May 2016 11:35:51 + Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 27 May 2016 12:08:40 -0300 perf ctf: Convert

Re: [RFT v3] drm: use late_initcall() for amdkfd and radeon

2016-05-29 Thread Daniel Vetter
On Fri, May 27, 2016 at 3:18 AM, Luis R. Rodriguez wrote: > To get KFD support in radeon we need the following > initialization to happen in this order, their > respective driver file that has its init routine > listed next to it: > > 0. AMD IOMMUv1:arch/x86/kernel/pci-dma.c > 1. AMD IOMMUv2:

Re: [PATCH] iio: Documentation: fix in_*_scale kernel version

2016-05-29 Thread Alexandre Belloni
On 29/05/2016 at 17:59:33 +0100, Jonathan Cameron wrote : > On 22/05/16 14:30, Alexandre Belloni wrote: > > v3.21 doesn't exist, the first apparition of a in_.*_scale file was in v3.2 > > > > Signed-off-by: Alexandre Belloni > Not that simple as this explicitly in_*_scale in the events directory.

Re: [PATCH 3/7] iio: adc: ad7793: claim direct mode when writing frequency

2016-05-29 Thread Jonathan Cameron
On 25/05/16 11:36, Daniel Baluta wrote: > On Tue, May 24, 2016 at 10:17 PM, Alison Schofield > wrote: >> Driver was checking for direct mode and trying to lock it, but >> left a gap where mode could change before the desired operation. >> Use iio_device_claim_direct_mode() to guarantee device sta

Re: [PATCH 4/7] iio: adc: ad7476: use iio helper function to guarantee direct mode

2016-05-29 Thread Jonathan Cameron
On 25/05/16 11:37, Daniel Baluta wrote: > On Tue, May 24, 2016 at 10:18 PM, Alison Schofield > wrote: >> Replace the code that guarantees the device stays in direct mode >> with iio_device_claim_direct_mode() which does same. >> >> Signed-off-by: Alison Schofield >> Cc: Daniel Baluta > > Acked

Re: [PATCH 5/7] iio: adc: ad7887: use iio helper function to guarantee direct mode

2016-05-29 Thread Jonathan Cameron
On 25/05/16 11:38, Daniel Baluta wrote: > On Tue, May 24, 2016 at 10:18 PM, Alison Schofield > wrote: >> Replace the code that guarantees the device stays in direct mode >> with iio_device_claim_direct_mode() which does same. >> >> Signed-off-by: Alison Schofield >> Cc: Daniel Baluta > > Acked

Re: [PATCH 6/7] iio: adc: ad7923: use iio helper function to guarantee direct mode

2016-05-29 Thread Jonathan Cameron
On 25/05/16 11:41, Daniel Baluta wrote: > On Tue, May 24, 2016 at 10:19 PM, Alison Schofield > wrote: >> Replace the code that guarantees the device stays in direct mode >> with iio_device_claim_direct_mode() which does same. >> >> Signed-off-by: Alison Schofield >> Cc: Daniel Baluta > > Acked

Fwd: WMI driver no longer load after switching to generic UUID library

2016-05-29 Thread Kui Zhang
oops, forgot the list. -- Forwarded message -- From: Kui Zhang Date: Sun, May 29, 2016 at 11:35 AM Subject: WMI driver no longer load after switching to generic UUID library To: andriy.shevche...@linux.intel.com, dvh...@linux.intel.com, a...@linux-foundation.org, torva...@linux-f

Re: [PATCH 7/7] iio: adc: ad799x: use iio helper function to guarantee direct mode

2016-05-29 Thread Jonathan Cameron
On 25/05/16 11:42, Daniel Baluta wrote: > On Tue, May 24, 2016 at 10:20 PM, Alison Schofield > wrote: >> Replace the code that guarantees the device stays in direct mode >> with iio_device_claim_direct_mode() which does same. >> >> Signed-off-by: Alison Schofield >> Cc: Daniel Baluta > > Acked

Re: [PATCH 4/7] x86/dumpstack: If addr_limit is non-default, display it

2016-05-29 Thread Boris Petkov
Andy Lutomirski wrote: >Easier said than done. struct thread_info doesn't have addr_limit on >sensible architectures (e.g. sparc), and I'd rather not stick a bunch >of ifdefs in generic code. It's not like it doesn't have an actual address limit though - I'm guessing it is something like the ma

Re: [PATCH 1/2] test/hash: Fix warning in two-dimensional array init

2016-05-29 Thread George Spelvin
Good idea. thanks for your help, Geert. Acked-by: George Spelvin

Re: [PATCH 2/2] test/hash: Fix warning in preprocessor symbol evaluation

2016-05-29 Thread George Spelvin
Geert Uytterhoeven wrote: > Some versions of gcc don't like tests for the value of an undefined > preprocessor symbol, even in the #else branch of an #ifndef: Damn, I had hoped that would work universally; I tried to avoid the uglier #if-inside-#ifdef construction. GCC 6 is quite happy wth it.

Re: [RFC PATCH v2] tools: iio: Rename generic_buffer to iio_generic_buffer

2016-05-29 Thread Jonathan Cameron
On 24/05/16 16:03, Daniel Baluta wrote: > This makes it clear that generic_buffer is an IIO tool > and also complies with filename conventions in tools/iio. > > Signed-off-by: Daniel Baluta Pretty uncontroversial bit of common sense to my mind ;) Applied to the togreg branch of iio.git with a fe

Re: tty/vt/keyboard: out of bounds access in do_compute_shiftstate

2016-05-29 Thread Pavel Machek
Hi! (Vojtech added to cc list. This is history.) > I've hit the following while fuzzing with syzkaller inside a KVM tools guest > running the latest -next kernel: What does syzkaller do? Random syscalls? > [ 2662.777566] BUG: KASAN: global-out-of-bounds in > do_compute_shiftstate+0x161/0x370

Re: [PATCH] iio: magnetometer: bmc150: Document Bosch supported chips

2016-05-29 Thread Jonathan Cameron
On 24/05/16 13:42, Daniel Baluta wrote: > bmc150 driver supports also BMC156 and BMM150 chips. > > Signed-off-by: Daniel Baluta Good to clean this sort of thing up. Applied, thanks. Jonathan > --- > drivers/iio/magnetometer/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/dr

Re: [PATCH 2/2] test/hash: Fix warning in preprocessor symbol evaluation

2016-05-29 Thread George Spelvin
> But here's an alternative. Geert, what do you think of this? Never mind; that doesn't work. Plain gcc-4.9 passes, it, but it's the "-Wundef" flag that the kernel uses that triggers it. So we're back to Geert's original suggestion. Acked-by: George Spelvin ==>$ cat foo.c #ifndef FOO This is

Re: [PATCH 4/7] x86/dumpstack: If addr_limit is non-default, display it

2016-05-29 Thread Andy Lutomirski
On May 29, 2016 11:42 AM, "Boris Petkov" wrote: > > Andy Lutomirski wrote: > >Easier said than done. struct thread_info doesn't have addr_limit on > >sensible architectures (e.g. sparc), and I'd rather not stick a bunch > >of ifdefs in generic code. > > It's not like it doesn't have an actual ad

  1   2   3   >