Re: [PATCH 2/2] zram: user per-cpu compression streams

2016-05-03 Thread Sergey Senozhatsky
On (05/03/16 15:19), Minchan Kim wrote: > > > > cat /sys/xxx/max_comp_stream returns num_online_cpus. > > > > > > One more thing, > > > > > > User: > > > echo 4 > /sys/xxx/max_comp_stream" > > > cat /sys/xxx/max_comp_streams > > > 8 > > > > sure, it can also be > > > > cat /sys/xxx/max_comp_str

[PATCH] powerpc/mm/radix: fix STD_MMU_64 typo

2016-05-03 Thread Valentin Rothberg
s/MMU_STD_64/STD_MMU_64/ Fixes: 11ffc1cfa4c2 ("powerpc/mm/radix: Use STD_MMU_64 to properly isolate hash related code") Signed-off-by: Valentin Rothberg --- I only compile tested this change. The issue has been detected with scripts/checkkconfigsymbols.py arch/powerpc/ke

RE: [PATCH v6 09/12] usb: gadget: udc: adapt to OTG core

2016-05-03 Thread Jun Li
Hi > >>> /** > >>> + * usb_gadget_start - start the usb gadget controller and > >>> +connect to bus > >>> + * @gadget: the gadget device to start > >>> + * > >>> + * This is external API for use by OTG core. > >>> + * > >>> + * Start the usb device controller and c

Re: [PATCH] drm/vc4: Return -EBUSY if there's already a pending flip event.

2016-05-03 Thread Maarten Lankhorst
Op 02-05-16 om 21:25 schreef robert.f...@collabora.com: > From: Robert Foss > > As per the docs, atomic_commit should return -EBUSY "if an asycnhronous > update is requested and there is an earlier update pending". > > Signed-off-by: Robert Foss > --- > drivers/gpu/drm/vc4/vc4_crtc.c | 6 ++

Re: v4.6-rc1 regression bisected, Problem loading in-kernel X.509 certificate (-2)

2016-05-03 Thread Herbert Xu
On Sat, Apr 30, 2016 at 08:32:48AM +, Jamie Heilman wrote: > I usually build my kernels to require module signatures and use > automatic signing. As of v4.6-rc1 I'm getting this on boot: > > Problem loading in-kernel X.509 certificate (-2) > > I bisected that to commit d43de6c780a84def056afa

Re: [PATCH] nfit: fix translation of command status results

2016-05-03 Thread Johannes Thumshirn
On Mon, May 02, 2016 at 09:25:41AM -0700, Dan Williams wrote: > When transportation of the command completes successfully, it indicates > that the 'status' result is valid. Fix the missed checking and > translation of the status field at the end of acpi_nfit_ctl(). > Otherwise, we fail to handle r

Re: [PATCH 3.14 00/37] 3.14.68-stable review

2016-05-03 Thread Guenter Roeck
On 05/02/2016 05:11 PM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 3.14.68 release. There are 37 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be m

Re: [PATCH 1/1] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-05-03 Thread Olliver Schinagl
Hey Chen, On 03-05-16 05:33, Chen-Yu Tsai wrote: Hi, On Thu, Apr 28, 2016 at 3:19 PM, Olliver Schinagl wrote: There are 3 kinds of OLinuXino Lime2 boards. One without any on board storage, one with NAND storage and one with eMMC storage. This patch adds the eMMC variant of boards. eMMC stora

Re: [PATCH v2] s390/cpum_cf: Remove superfluous SMP function call

2016-05-03 Thread Martin Schwidefsky
On Mon, 2 May 2016 12:43:05 +0200 Heiko Carstens wrote: > On Mon, May 02, 2016 at 10:59:32AM +0200, Anna-Maria Gleixner wrote: > > Since commit 3b9d6da67e11 ("cpu/hotplug: Fix rollback during error-out > > in __cpu_disable()") it is ensured that callbacks of CPU_ONLINE and > > CPU_DOWN_PREPARE ar

Re: [PATCH v3 00/16] genrtc removal

2016-05-03 Thread Alexandre Belloni
Hi Arnd, I see you didn't copy Greg on that series (that may explain his confusion on the previous patch), do you expect me to take it through the RTC tree? That is fine but I'd like some acks from him. On 28/04/2016 at 00:34:14 +0200, Arnd Bergmann wrote : > I ended up stuffing the two patch ser

Re: [PATCH v2] s390/cpum_sf: Remove superfluous SMP function call

2016-05-03 Thread Martin Schwidefsky
On Mon, 2 May 2016 12:43:56 +0200 Heiko Carstens wrote: > On Mon, May 02, 2016 at 11:00:12AM +0200, Anna-Maria Gleixner wrote: > > Since commit 3b9d6da67e11 ("cpu/hotplug: Fix rollback during error-out > > in __cpu_disable()") it is ensured that callbacks of CPU_ONLINE and > > CPU_DOWN_PREPARE ar

Re: [PATCH 1/1] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-05-03 Thread Chen-Yu Tsai
On Tue, May 3, 2016 at 3:21 PM, Olliver Schinagl wrote: > Hey Chen, ChenYu :) > > > On 03-05-16 05:33, Chen-Yu Tsai wrote: >> >> Hi, >> >> On Thu, Apr 28, 2016 at 3:19 PM, Olliver Schinagl >> wrote: >>> >>> There are 3 kinds of OLinuXino Lime2 boards. >>> One without any on board storage, one w

Re: [PATCH 4.4 000/163] 4.4.9-stable review

2016-05-03 Thread Guenter Roeck
On 05/02/2016 05:10 PM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.4.9 release. There are 163 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be ma

Re: [lkp] [md] 8caa6068fa: kernel BUG at mm/slub.c:3656!

2016-05-03 Thread Michal Hocko
On Tue 03-05-16 09:09:51, kernel test robot wrote: > FYI, we noticed the following commit: > > https://github.com/0day-ci/linux > Michal-Hocko/tree-wide-get-rid-of-__GFP_REPEAT-for-order-0-allocations-part-I/20160428-212857 > commit 8caa6068fa57b7187daedbfa9507d5ba4f962a41 ("md: simplify free_par

Re: [PATCH v3] iio: accel: Add support for Freescale MMA7660FC

2016-05-03 Thread Daniel Baluta
On Sun, May 1, 2016 at 9:56 PM, Jonathan Cameron wrote: > On 29/04/16 13:19, Constantin Musca wrote: >> Minimal implementation of an IIO driver for the Freescale >> MMA7660FC 3-axis accelerometer. Datasheet: >> http://www.freescale.com.cn/files/sensors/doc/data_sheet/MMA7660FC.pdf >> >> Includes:

Re: [PATCH v2] crypto: Add a flag allowing the self-tests to be disabled at runtime.

2016-05-03 Thread Herbert Xu
On Fri, Apr 29, 2016 at 12:03:04PM +0100, Richard W.M. Jones wrote: > Running self-tests for a short-lived KVM VM takes 28ms on my laptop. > This commit adds a flag 'cryptomgr.notests' which allows them to be > disabled. > > Signed-off-by: Richard W.M. Jones Please address the conflict with FIPS

Re: [PATCH 5/5] vfio-pci: Allow to mmap MSI-X table if interrupt remapping is supported

2016-05-03 Thread Yongji Xie
On 2016/5/3 14:22, Tian, Kevin wrote: From: Yongji Xie [mailto:xyj...@linux.vnet.ibm.com] Sent: Tuesday, May 03, 2016 2:08 PM On 2016/5/3 13:34, Tian, Kevin wrote: From: Yongji Xie Sent: Wednesday, April 27, 2016 8:43 PM This patch enables mmapping MSI-X tables if hardware supports interrupt

Re: [PATCH 07/21] X86_64, UV: Disable Obsolete APIC ID fixup code used only on UV1

2016-05-03 Thread Ingo Molnar
* Mike Travis wrote: > +config X86_UV1_SUPPORTED > + bool "SGI Ultraviolet Series 1 Supported" > + depends on X86_UV So I still think it's much simpler if we simply eliminate this Kconfig complication and have it all compatible. AFAICS the runtime impact on newer systems comes down mo

Re: [PATCH] vfio-pci: Allow to mmap sub-page MMIO BARs if the mmio page is exclusive

2016-05-03 Thread Yongji Xie
On 2016/5/3 14:11, Tian, Kevin wrote: From: Yongji Xie [mailto:xyj...@linux.vnet.ibm.com] Sent: Tuesday, May 03, 2016 1:52 PM + + if (!(res->start & ~PAGE_MASK)) { + /* +* Add shadow resource for sub-page bar whose mmio +

Re: [PATCH kernel v4 10/11] powerpc/powernv/npu: Rework TCE Kill handling

2016-05-03 Thread Alistair Popple
On Fri, 29 Apr 2016 18:55:23 Alexey Kardashevskiy wrote: > The pnv_ioda_pe struct keeps an array of peers. At the moment it is only > used to link GPU and NPU for 2 purposes: > > 1. Access NPU quickly when configuring DMA for GPU - this was addressed > in the previos patch by removing use of it as

Re: mm: pages are not freed from lru_add_pvecs after process termination

2016-05-03 Thread Michal Hocko
On Mon 02-05-16 19:02:50, Kirill A. Shutemov wrote: > On Mon, May 02, 2016 at 08:49:03AM -0700, Dave Hansen wrote: > > On 05/02/2016 08:01 AM, Kirill A. Shutemov wrote: > > > On Mon, May 02, 2016 at 04:39:35PM +0200, Vlastimil Babka wrote: > > >> On 04/27/2016 07:11 PM, Dave Hansen wrote: > > >>> 6

Re: [PATCH 4.5 000/200] 4.5.3-stable review

2016-05-03 Thread Guenter Roeck
On 05/02/2016 05:09 PM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.5.3 release. There are 200 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be ma

Re: [PATCH] irqchip, gicv3-its, numa: Enable Cavium ThunderX #23144 workaround for ACPI

2016-05-03 Thread Marc Zyngier
Hi Robert, On 02/05/16 17:38, Robert Richter wrote: > From: Robert Richter > > In case of acpi the firmware does not provide node ids for cpus and > its devices. Determine it from system topology special to Cavium > ThunderX systems. This enables #23144 workaround for ACPI. > > Signed-off-by: R

[patch] ASoC: hdac_hdmi: Potential NULL deref in hdac_hdmi_get_spk_alloc()

2016-05-03 Thread Dan Carpenter
We intended || here instead of &&. The original code potentially leads to a NULL dereference. Fixes: 2889099eb8cd ('ASoC: hdac_hdmi: Register chmap controls and ops') Signed-off-by: Dan Carpenter diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound/soc/codecs/hdac_hdmi.c index 3043120..7e7ff1b 100

Re: [PATCH] usb: xhci-mtk: fixup mouse wakeup failure during system suspend

2016-05-03 Thread chunfeng yun
Hi Mathias, On Thu, 2016-04-21 at 10:04 +0800, Chunfeng Yun wrote: > Click mouse after xhci suspend completion but before system suspend > completion, system will not be waken up by mouse if the duration of > them is larger than 20ms which is the device UFP's resume signaling > lasted. Another rea

[PATCH 0/6] MCB patches for v4.7

2016-05-03 Thread Johannes Thumshirn
Hi Greg, The following patches are the MCB updates for v4.7. These are mainly cleanups and some bug fixes from Andreas and me. The only non cleanup/bugfix patch is 'mcb: export bus information via sysfs' which exports information about the carrier FPGA to sysfs, like the revision number and model

Re: [PATCH 2/4] perf/x86/mbm: Store bytes counted for mbm during recycle

2016-05-03 Thread Peter Zijlstra
On Mon, Apr 25, 2016 at 02:12:09PM -0700, Vikas Shivappa wrote: > >start: > > prev_count = read_hw_counter(); > > I am assuming this means we keep the prev_count when event is initialized. > This is done in the mbm_init which calls update_sample with first parameter > set to true.. No, whe

[tip:x86/boot] x86/boot: Extract error reporting functions

2016-05-03 Thread tip-bot for Kees Cook
Commit-ID: dc425a6e140bca99bdb4823e9909c9d9b8ba36b6 Gitweb: http://git.kernel.org/tip/dc425a6e140bca99bdb4823e9909c9d9b8ba36b6 Author: Kees Cook AuthorDate: Mon, 2 May 2016 15:51:00 -0700 Committer: Ingo Molnar CommitDate: Tue, 3 May 2016 08:15:58 +0200 x86/boot: Extract error reportin

[tip:x86/boot] x86/boot: Warn on future overlapping memcpy() use

2016-05-03 Thread tip-bot for Kees Cook
Commit-ID: 00ec2c37031eb1b1feda006c84748d126dc2ef27 Gitweb: http://git.kernel.org/tip/00ec2c37031eb1b1feda006c84748d126dc2ef27 Author: Kees Cook AuthorDate: Mon, 2 May 2016 15:51:01 -0700 Committer: Ingo Molnar CommitDate: Tue, 3 May 2016 08:15:58 +0200 x86/boot: Warn on future overlap

[tip:x86/asm] x86/asm/entry/32: Simplify pushes of zeroed pt_regs->REGs

2016-05-03 Thread tip-bot for Denys Vlasenko
Commit-ID: 778843f934e362ed4ed734520f60a44a78a074b4 Gitweb: http://git.kernel.org/tip/778843f934e362ed4ed734520f60a44a78a074b4 Author: Denys Vlasenko AuthorDate: Mon, 2 May 2016 16:56:50 +0200 Committer: Ingo Molnar CommitDate: Tue, 3 May 2016 08:19:40 +0200 x86/asm/entry/32: Simplify

[PATCH 2/6] mcb: export bus information via sysfs

2016-05-03 Thread Johannes Thumshirn
Export information about the bus stored in the FPGA's header to userspace via sysfs, instead of hiding it in pr_debug()s from everyone. Signed-off-by: Johannes Thumshirn Reviewed-by: Andreas Werner Tested-by: Andreas Werner --- Documentation/ABI/testing/sysfs-bus-mcb | 29 dri

[patch] usb: dwc3: gadget: fix mask and shift order in DWC3_DCFG_NUMP()

2016-05-03 Thread Dan Carpenter
In the original DWC3_DCFG_NUMP() was always zero. It looks like the intent was to shift first and then do the mask. Fixes: 2a58f9c12bb3 ('usb: dwc3: gadget: disable automatic calculation of ACK TP NUMP') Signed-off-by: Dan Carpenter diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.

[PATCH 1/6] mcb: Correctly initialize the bus's device

2016-05-03 Thread Johannes Thumshirn
The mcb bus' device member wasn't correctly initialized and thus wasn't placed correctly into the driver model. Signed-off-by: Johannes Thumshirn Reviewed-by: Andreas Werner Tested-by: Andreas Werner --- drivers/mcb/mcb-core.c | 19 --- include/linux/mcb.h| 5 ++--- 2 file

[tip:ras/core] x86/mce: Grade uncorrected errors for SMCA-enabled systems

2016-05-03 Thread tip-bot for Aravind Gopalakrishnan
Commit-ID: 6bda529ec42e1cd4dde1c3d0a1a18000ffd3d419 Gitweb: http://git.kernel.org/tip/6bda529ec42e1cd4dde1c3d0a1a18000ffd3d419 Author: Aravind Gopalakrishnan AuthorDate: Sat, 30 Apr 2016 14:33:52 +0200 Committer: Ingo Molnar CommitDate: Tue, 3 May 2016 08:24:15 +0200 x86/mce: Grade unc

[tip:ras/core] x86/mce: Carve out writes to MCx_STATUS and MCx_CTL

2016-05-03 Thread tip-bot for Aravind Gopalakrishnan
Commit-ID: bb91f8c0176b072aeb6b84cfd7e04084025121e0 Gitweb: http://git.kernel.org/tip/bb91f8c0176b072aeb6b84cfd7e04084025121e0 Author: Aravind Gopalakrishnan AuthorDate: Sat, 30 Apr 2016 14:33:53 +0200 Committer: Ingo Molnar CommitDate: Tue, 3 May 2016 08:24:16 +0200 x86/mce: Carve out

[tip:ras/core] x86/mce: Log MCEs after a warm rest on AMD, Fam17h and later

2016-05-03 Thread tip-bot for Aravind Gopalakrishnan
Commit-ID: 10001d91aa0efc793952051f9070a569cc388ebc Gitweb: http://git.kernel.org/tip/10001d91aa0efc793952051f9070a569cc388ebc Author: Aravind Gopalakrishnan AuthorDate: Sat, 30 Apr 2016 14:33:51 +0200 Committer: Ingo Molnar CommitDate: Tue, 3 May 2016 08:24:15 +0200 x86/mce: Log MCEs

[tip:ras/core] x86/mce: Detect and use SMCA-specific msr_ops

2016-05-03 Thread tip-bot for Yazen Ghannam
Commit-ID: d9d73fcc878469d209d7a7030726f20dd10841a7 Gitweb: http://git.kernel.org/tip/d9d73fcc878469d209d7a7030726f20dd10841a7 Author: Yazen Ghannam AuthorDate: Sat, 30 Apr 2016 14:33:55 +0200 Committer: Ingo Molnar CommitDate: Tue, 3 May 2016 08:24:16 +0200 x86/mce: Detect and use SMC

[tip:ras/core] x86/mce: Look in genpool instead of mcelog for pending error records

2016-05-03 Thread tip-bot for Tony Luck
Commit-ID: 5541c93cdf0cc0bb7f6065b43509171838665ea1 Gitweb: http://git.kernel.org/tip/5541c93cdf0cc0bb7f6065b43509171838665ea1 Author: Tony Luck AuthorDate: Sat, 30 Apr 2016 14:33:56 +0200 Committer: Ingo Molnar CommitDate: Tue, 3 May 2016 08:24:16 +0200 x86/mce: Look in genpool instea

[tip:ras/core] x86/mce: Define vendor-specific MSR accessors

2016-05-03 Thread tip-bot for Yazen Ghannam
Commit-ID: a9750a31efdee79bea4ad1db93cf98a5db6e07ac Gitweb: http://git.kernel.org/tip/a9750a31efdee79bea4ad1db93cf98a5db6e07ac Author: Yazen Ghannam AuthorDate: Sat, 30 Apr 2016 14:33:54 +0200 Committer: Ingo Molnar CommitDate: Tue, 3 May 2016 08:24:16 +0200 x86/mce: Define vendor-spec

[tip:core/signals] signals/sigaltstack, x86/signals: Unify the x86 sigaltstack check with other architectures

2016-05-03 Thread tip-bot for Stas Sergeev
Commit-ID: 0b4521e8cf1f582da3045ea460427ac2f741578f Gitweb: http://git.kernel.org/tip/0b4521e8cf1f582da3045ea460427ac2f741578f Author: Stas Sergeev AuthorDate: Thu, 14 Apr 2016 23:20:02 +0300 Committer: Ingo Molnar CommitDate: Tue, 3 May 2016 08:37:58 +0200 signals/sigaltstack, x86/sig

[tip:ras/core] x86/mce: Detect local MCEs properly

2016-05-03 Thread tip-bot for Yazen Ghannam
Commit-ID: fead35c68926682c90c995f22b48f1c8d78865c1 Gitweb: http://git.kernel.org/tip/fead35c68926682c90c995f22b48f1c8d78865c1 Author: Yazen Ghannam AuthorDate: Sat, 30 Apr 2016 14:33:57 +0200 Committer: Ingo Molnar CommitDate: Tue, 3 May 2016 08:24:17 +0200 x86/mce: Detect local MCEs

[tip:core/signals] signals/sigaltstack: Prepare to add new SS_xxx flags

2016-05-03 Thread tip-bot for Stas Sergeev
Commit-ID: 407bc16ad1769f5cb8ad9555611cb198187ef4cd Gitweb: http://git.kernel.org/tip/407bc16ad1769f5cb8ad9555611cb198187ef4cd Author: Stas Sergeev AuthorDate: Thu, 14 Apr 2016 23:20:03 +0300 Committer: Ingo Molnar CommitDate: Tue, 3 May 2016 08:37:59 +0200 signals/sigaltstack: Prepare

[tip:core/signals] selftests/sigaltstack: Add new testcase for sigaltstack(SS_ONSTACK|SS_AUTODISARM)

2016-05-03 Thread tip-bot for Stas Sergeev
Commit-ID: 19fd2868e3671b446b13d135a44363182bbd319a Gitweb: http://git.kernel.org/tip/19fd2868e3671b446b13d135a44363182bbd319a Author: Stas Sergeev AuthorDate: Thu, 14 Apr 2016 23:20:05 +0300 Committer: Ingo Molnar CommitDate: Tue, 3 May 2016 08:37:59 +0200 selftests/sigaltstack: Add n

[tip:core/signals] signals/sigaltstack: Implement SS_AUTODISARM flag

2016-05-03 Thread tip-bot for Stas Sergeev
Commit-ID: 2a74213838104a41588d86fd5e8d344972891ace Gitweb: http://git.kernel.org/tip/2a74213838104a41588d86fd5e8d344972891ace Author: Stas Sergeev AuthorDate: Thu, 14 Apr 2016 23:20:04 +0300 Committer: Ingo Molnar CommitDate: Tue, 3 May 2016 08:37:59 +0200 signals/sigaltstack: Impleme

Re: [PATCH] Revert "USB / PM: Allow USB devices to remain runtime-suspended when sleeping"

2016-05-03 Thread Johan Hovold
On Mon, May 02, 2016 at 11:13:10AM -0400, Alan Stern wrote: > On Mon, 2 May 2016, Johan Hovold wrote: > > > This reverts commit e3345db85068ddb937fc0ba40dfc39c293dad977, which > > broke system resume for a large class of devices. > > > > Devices that after having been reset during resume need to

RE: [PATCH] kasan: improve double-free detection

2016-05-03 Thread Luruo, Kuthonuzo
> I missed that Alexander already landed patches that reduce header size > to 16 bytes. > It is not OK to increase them again. Please leave state as bitfield > and update it with CAS (if we introduce helper functions for state > manipulation, they will hide the CAS loop, which is nice). > Availab

[PATCH 1/1] gpio: dwapb: Add ACPI device ID for DWAPB GPIO controller on X-Gene platforms

2016-05-03 Thread Duc Dang
This patch enables DWAPB GPIO controller support on X-Gene platforms in ACPI boot mode. Signed-off-by: Duc Dang --- This patch needs to be applied on top of for-next branch of linux-gpio tree. --- drivers/gpio/gpio-dwapb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-dwa

Re: [PATCH] usb: xhci-mtk: fixup mouse wakeup failure during system suspend

2016-05-03 Thread Felipe Balbi
Hi, chunfeng yun writes: > On Thu, 2016-04-21 at 10:04 +0800, Chunfeng Yun wrote: >> Click mouse after xhci suspend completion but before system suspend >> completion, system will not be waken up by mouse if the duration of >> them is larger than 20ms which is the device UFP's resume signaling

Re: linux-next: manual merge of the drm-misc tree with the drm-intel tree

2016-05-03 Thread Daniel Vetter
On Tue, May 03, 2016 at 01:24:12PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the drm-misc tree got a conflict in: > > drivers/gpu/drm/i915/intel_display.c > > between commits: > > f7e5838bb37d ("drm/i915: Simplify reset_counter handling during atomic > modese

Re: [patch] usb: dwc3: gadget: fix mask and shift order in DWC3_DCFG_NUMP()

2016-05-03 Thread Felipe Balbi
Hi, Dan Carpenter writes: > In the original DWC3_DCFG_NUMP() was always zero. It looks like the > intent was to shift first and then do the mask. > > Fixes: 2a58f9c12bb3 ('usb: dwc3: gadget: disable automatic calculation of ACK > TP NUMP') > Signed-off-by: Dan Carpenter Thanks for this fix,

Re: [PATCH v2 1/3] ext4: Add alignment check for DAX mount

2016-05-03 Thread Jan Kara
On Mon 02-05-16 12:42:56, Toshi Kani wrote: > When a partition is not aligned by 4KB, mount -o dax succeeds, > but any read/write access to the filesystem fails, except for > metadata update. > > Call bdev_direct_access to check the alignment when -o dax is > specified. > > Reported-by: Micah Par

RE: [PATCH] kasan: improve double-free detection

2016-05-03 Thread Luruo, Kuthonuzo
> > > > I missed that Alexander already landed patches that reduce header size > > to 16 bytes. > > It is not OK to increase them again. Please leave state as bitfield > > and update it with CAS (if we introduce helper functions for state > > manipulation, they will hide the CAS loop, which is nice

Re: [PATCH 1/1] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-05-03 Thread christo . radev
Hi to All, I have already solved and tested this issue on Armbian build. Find patches for both legacy (3.4.111) and mainline (4.5.2) kernels on: http://forum.armbian.com/index.php/topic/853-armbian-customization/page-2#entry7494 There it is also described how to do eMMC bootable and much more. Ab

Re: [PATCH v2 2/3] ext2: Add alignment check for DAX mount

2016-05-03 Thread Jan Kara
On Mon 02-05-16 12:42:57, Toshi Kani wrote: > When a partition is not aligned by 4KB, mount -o dax succeeds, > but any read/write access to the filesystem fails, except for > metadata update. > > Call bdev_direct_access to check the alignment when -o dax is > specified. > > Signed-off-by: Toshi K

Re: [PATCH 0/6] MCB patches for v4.7

2016-05-03 Thread Johannes Thumshirn
On Tue, May 03, 2016 at 09:46:21AM +0200, Johannes Thumshirn wrote: > Hi Greg, > > The following patches are the MCB updates for v4.7. These are mainly cleanups > and some bug fixes from Andreas and me. The only non cleanup/bugfix patch is > 'mcb: export bus information via sysfs' which exports in

Re: [patch] ASoC: hdac_hdmi: Potential NULL deref in hdac_hdmi_get_spk_alloc()

2016-05-03 Thread Takashi Sakamoto
On May 03 2016 16:42, Dan Carpenter wrote: > We intended || here instead of &&. The original code potentially leads > to a NULL dereference. > > Fixes: 2889099eb8cd ('ASoC: hdac_hdmi: Register chmap controls and ops') > Signed-off-by: Dan Carpenter Indeed. Reviewd-by: Takashi Sakamoto > diff

Re: [PATCH v2] lib/mpi: Fix kernel unaligned access in mpi_write_to_sgl

2016-05-03 Thread Herbert Xu
On Wed, Apr 27, 2016 at 09:08:27PM -0400, Sowmini Varadhan wrote: > On (04/28/16 09:01), Herbert Xu wrote: > > Subject: Re: [PATCH v2] lib/mpi: Fix kernel unaligned access in > > mpi_write_to_sgl > > > > Please cc linux-crypto. > > Just bounced the message to linux-crypto as well. > I think get

Re: [PATCH v5 09/21] IB/hns: Add hca support

2016-05-03 Thread Or Gerlitz
On Tue, May 3, 2016 at 10:57 AM, Wei Hu (Xavier) wrote: > On 2016/4/30 12:33, Or Gerlitz wrote: >> Can you elaborate what design aspects in the driver or anywhere else >> should impose that limitation? > 1. Oulijun resolved the problem, and sent PATCH V6 on 2016-4-28. Thanks for > more comment

Re: [PATCH] crypto: vmx - comply with ABIs that specify vrsave as reserved.

2016-05-03 Thread Herbert Xu
On Fri, Apr 29, 2016 at 11:03:05AM -0300, Paulo Flabiano Smorigo wrote: > It gives significant improvements ( ~+15%) on some modes. > > These code has been adopted from OpenSSL project in collaboration > with the original author (Andy Polyakov ). No sign-off. -- Email: Herbert Xu Home Page: htt

Re: [PATCH 1/3] mfd: add Cypress FM33256B Processor Companion driver

2016-05-03 Thread Alexandre Belloni
On 26/04/2016 at 16:31:46 +0200, Jeppe Ledet-Pedersen wrote : > > Good catch, I didn't look at this patch but it includes a lot of code > > that should be going to the RTC driver. > > If trickle charging is not enabled, I guess the RTC will not charge its > > backup battery. > > Thank you for the

Re: [PATCH] usb: serial: ti_usb_3410_5052: add MOXA UPORT 11x0 support

2016-05-03 Thread Johan Hovold
On Mon, May 02, 2016 at 08:37:15PM +0200, Mathieu OTHACEHE wrote: > Hi Johan, > > Thanks for your review. > > > Looks like this code could use a few vid/pid temporaries. > > > I'm not sure it makes sense to try to load a "ti_usb-v110a-p1150.fw" > > firmware before requesting the moxa firmware. A

Re: [PATCH v5 09/21] IB/hns: Add hca support

2016-05-03 Thread Wei Hu (Xavier)
On 2016/4/30 12:33, Or Gerlitz wrote: On Wed, Apr 27, 2016 at 6:34 AM, oulijun wrote: On 2016/4/26 22:25, Jiri Pirko wrote: Tue, Apr 26, 2016 at 04:18:21PM CEST, l...@kernel.org wrote: I appreciate your keen eye. this code is meant for ARM64bit therefore should run corretly for 64-bit

Re: [RFC PATCH] livepatch: allow removal of a disabled patch

2016-05-03 Thread Miroslav Benes
On Mon, 2 May 2016, Josh Poimboeuf wrote: > On Mon, May 02, 2016 at 01:57:22PM +0200, Miroslav Benes wrote: > > Currently we do not allow patch module to unload since there is no > > method to determine if a task is still running in the patched code. > > > > The consistency model gives us the way

Re: [PATCH] crypto: omap-des: Integrate with the crypto engine framework

2016-05-03 Thread Herbert Xu
On Thu, Apr 28, 2016 at 02:11:51PM +0800, Baolin wrote: > Since the crypto engine framework had been merged, thus this patch integrates > with the newly added crypto engine framework to make the crypto hardware > engine under utilized as each block needs to be processed before the crypto > hardware

Re: [PATCH] crypto: omap-aes: Use dma_request_chan() for requesting DMA channel

2016-05-03 Thread Herbert Xu
On Fri, Apr 29, 2016 at 04:02:18PM +0300, Peter Ujfalusi wrote: > With the new dma_request_chan() the client driver does not need to look for > the DMA resource and it does not need to pass filter_fn anymore. > By switching to the new API the driver can now support deferred probing > against DMA. >

Re: [PATCH v2 2/3] ARM: DRA7x: dts: Update the OSC_32K_CLK frequency

2016-05-03 Thread Tero Kristo
On 02/05/16 20:12, J.D. Schroeder wrote: From: "J.D. Schroeder" This commit updates the OSC_32K_CLK (secure_32k_clk_src_ck) frequency from the precise 32kHz frequency (i.e., 32.768 kHz) to a more accurate frequency of ~34.6 kHz. Actual measured frequencies of the clock vary from processor to pr

Re: [PATCH 4/5] crypto: Use dma_pool_zalloc

2016-05-03 Thread Herbert Xu
On Fri, Apr 29, 2016 at 10:09:11PM +0200, Julia Lawall wrote: > Dma_pool_zalloc combines dma_pool_alloc and memset 0. The semantic patch > that makes this transformation is as follows: (http://coccinelle.lip6.fr/) > > // > @@ > expression d,e; > statement S; > @@ > > d = > -

Re: [PATCH] crypto: constify ccp_actions structure

2016-05-03 Thread Herbert Xu
On Sun, May 01, 2016 at 01:52:55PM +0200, Julia Lawall wrote: > The ccp_actions structure is never modified, so declare it as const. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall Applied. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: htt

Re: [PATCH] drm/fsl-dcu: add COMMON_CLK dependency

2016-05-03 Thread Daniel Vetter
On Mon, May 02, 2016 at 02:22:04PM -0700, Stefan Agner wrote: > On 2016-05-02 04:00, Arnd Bergmann wrote: > > The fsl dcu now uses the clk-provider interfaces, which are not available > > when CONFIG_COMMON_CLK is disabled: > > > > drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c: In function 'fsl_dcu_dr

Re: [PATCH v6 00/10] arm64: Add support for KVM with ACPI

2016-05-03 Thread Christoffer Dall
On Mon, May 02, 2016 at 12:54:14PM +, Jason Cooper wrote: > On Thu, Apr 28, 2016 at 02:13:23PM +0100, Marc Zyngier wrote: > > [+ Thomas, Jason] > > > > Do you have any objection against this going through the KVM tree? The > > dependencies are rather intricate, and Daniel gave us his green lig

[PATCH RFC] Watchdog: sbsa_gwdt: Enhance timeout range

2016-05-03 Thread Pratyush Anand
Currently only WOR is used to program both first and second stage which provided very limited range of timeout. This patch uses WCV as well to achieve higher range of timeout. This patch programs max_timeout as 255, but that can be increased further as well. Following testing shows that we can ha

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

2016-05-03 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

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

2016-05-03 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

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

2016-05-03 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.

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

2016-05-03 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 v2 7/9] powerpc/powernv: Add platform support for stop instruction

2016-05-03 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

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

2016-05-03 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

Re: [PATCH V2 5/6] rtc: rv3029: fix alarm support

2016-05-03 Thread Alexandre Belloni
On 29/04/2016 at 00:00:36 +0200, Mylène Josserand wrote : > The RTC RV3029 handles different types of alarms : seconds, minutes, ... > These alarms can be enabled or disabled individually using an AE_x bit > which is the last bit (BIT(7)) on each alarm registers. > > To prepare the alarm IRQ suppo

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

2016-05-03 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

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

2016-05-03 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 v2 4/9] powerpc/powernv: Make power7_powersave_common more generic

2016-05-03 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

linux-next: manual merge of the pwm tree with the regulator tree

2016-05-03 Thread Stephen Rothwell
Hi Thierry, Today's linux-next merge of the pwm tree got a conflict in: drivers/regulator/pwm-regulator.c between commit: fd786fb0276a ("regulator: pwm: Try to avoid voltage error in duty cycle calculation") from the regulator tree and commit: f137b90ba6cd ("regulator: pwm: Use pwm_get

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

2016-05-03 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

Re: [lkp] [sched/fair] 41e0d37f7a: divide error: 0000 [#1] SMP

2016-05-03 Thread Peter Zijlstra
On Tue, May 03, 2016 at 09:10:51AM +0800, kernel test robot wrote: > FYI, we noticed the following commit: > > https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core > commit 41e0d37f7ac81297c07ba311e4ad39465b8c8295 ("sched/fair: Do not call > cpufreq hook unless util changed")

Re: [PATCH] clk: imx: fix ahb clock mux 1

2016-05-03 Thread Shawn Guo
On Thu, Apr 28, 2016 at 02:07:03PM -0700, Stefan Agner wrote: > The clock parent of the AHB root clock when using mux option 1 > is the SYS PLL 270MHz clock. This is specified in Table 5-11 > Clock Root Table of the i.MX 7Dual Applications Processor > Reference Manual. > > While it could be a doc

Re: [PATCH] Fix issue with dmesg.py and python 3.X

2016-05-03 Thread Kieran Bingham
On 29/04/16 20:00, Dom Cote wrote: > Hi Kieran, Hi Dom, sorry for the delay, we had a 3 day weekend over here :) > > Thanks for pinging me on this. > > I had to rebuild a version of GDB with python 2.7 (mine system has 3.X). > I had to dig into the configure.ac script to

Re: [PATCH] ARM: dts: imx6: apalis: parallel lcd display support on ixora

2016-05-03 Thread Shawn Guo
On Fri, Apr 29, 2016 at 10:20:49PM +0200, Marcel Ziswiler wrote: > Add parallel LCD display support for the EDT ET057090DHU 5.7" LCD TFT > panel. > > Signed-off-by: Marcel Ziswiler Applied, thanks.

Re: [RFC PATCH] ext4: Don't release mutex for DAX write

2016-05-03 Thread Christoph Hellwig
As explained in another thread I really think we need to get DAX to stop pretending to be direct I/O, which should also take care of the locking. The same issue also exists for ext2 and XFS so it needs to be solved at a higher level.

Re: [PATCH v2 1/3] ext4: Add alignment check for DAX mount

2016-05-03 Thread Christoph Hellwig
Please come up with a version that doesn't require tons of boilerplate code in every file system.

Re: [PATCH 2/2] target: use RCU_INIT_POINTER() when NULLing.

2016-05-03 Thread Christoph Hellwig
On Mon, May 02, 2016 at 11:06:44AM -0700, Paul E. McKenney wrote: > And for v. But how do I do that without C++ templates? > > Also, does __builtin_constant_p() work reliably on a parameter? > Especially when the compiler decides not to do the inlining? Yeah, it's going to be a pain indeed, gues

Re: [PATCH V6 09/13] pci, acpi: Support for ACPI based generic PCI host controller

2016-05-03 Thread Lorenzo Pieralisi
On Fri, Apr 29, 2016 at 11:05:34PM +0530, Jayachandran C wrote: > On Fri, Apr 29, 2016 at 2:07 PM, Lorenzo Pieralisi > wrote: > > On Thu, Apr 28, 2016 at 04:48:00PM -0500, Bjorn Helgaas wrote: > > > > [...] > > > >> > +static int pci_acpi_setup_ecam_mapping(struct acpi_pci_root *root, > >> > +

Re: [PATCH] mmc: omap: Use dma_request_chan() for requesting DMA channel

2016-05-03 Thread Ulf Hansson
On 29 April 2016 at 15:06, Peter Ujfalusi wrote: > With the new dma_request_chan() the client driver does not need to look for > the DMA resource and it does not need to pass filter_fn anymore. > By switching to the new API the driver can now support deferred probing > against DMA. > > Signed-off-

Re: [PATCH v2 03/12] sched/fair: Change the variable to hold the number of periods to 32bit integer

2016-05-03 Thread Peter Zijlstra
On Tue, May 03, 2016 at 05:54:29AM +0800, Yuyang Du wrote: > In sched average update, a period is about 1ms, so a 32-bit unsigned > integer can approximately hold a maximum of 49 (=2^32/1000/3600/24) > days, which means it is big enough and 64-bit is needless. This fails to explain _why_ 49 days i

[PATCH v3 0/7] ACPI / osi: Fix several issues in _OSI handling

2016-05-03 Thread Lv Zheng
This patchset cleans up _OSI handling code and fixes several issues in it. In the v2 version, as one fix has been changed to be a stable material, patches originally put before it need to be rebased. The necessary changes that are required by this fix are still kept before the fix patch, and the u

[PATCH v3 1/7] ACPI / osi: Fix an issue that acpi_osi=!* cannot disable ACPICA internal strings

2016-05-03 Thread Lv Zheng
The order of the _OSI related functionalities is as follows: acpi_blacklisted() acpi_dmi_osi_linux() acpi_osi_setup() acpi_osi_setup() acpi_update_interfaces() if "!*" parse_args() __setup("acpi_osi=") acpi_osi_setup_linux() a

[PATCH v3 4/7] ACPI / osi: Fix default _OSI(Darwin) support

2016-05-03 Thread Lv Zheng
From: Chen Yu The following commit always reports positive value when Apple hardware queries _OSI("Darwin"): Commit: 7bc5a2bad0b8d9d1ac9f7b8b33150e4ddf197334 Subject: ACPI: Support _OSI("Darwin") correctly However since this implementation places the judgement in runtime, it breaks acpi_osi=!Da

[PATCH v3 2/7] ACPI / osi: Cleanup _OSI("Linux") related code before introducing new support

2016-05-03 Thread Lv Zheng
This patch cleans up OSI code in osl.c to make osi_linux work for OSI strings other than "Linux", so it can be re-used for other purposes. Reported-and-tested-by: Lukas Wunner Tested-by: Chen Yu Signed-off-by: Lv Zheng --- drivers/acpi/osl.c | 42 ++ 1

[PATCH v3 5/7] ACPI / osi: Cleanup OSI handling code to use bool

2016-05-03 Thread Lv Zheng
This patch changes "int/unsigned int" to "bool" to simplify the code. Tested-by: Lukas Wunner Tested-by: Chen Yu Signed-off-by: Lv Zheng --- drivers/acpi/blacklist.c |4 ++-- drivers/acpi/osl.c | 36 +--- include/linux/acpi.h |4 ++-- 3 files

[PATCH v3 7/7] ACPI / osi: Collect _OSI handling into one single file

2016-05-03 Thread Lv Zheng
_OSI handling code grows giant and it's time to move them into one file. This patch collects all _OSI handling code into one single file. So that we only have the following functions to be used externally: early_acpi_osi_init(): Used by DMI detections; acpi_osi_init(): Used to initialize OSI com

Re: [PATCH] mmc: omap_hsmmc: Use dma_request_chan() for requesting DMA channel

2016-05-03 Thread Ulf Hansson
On 29 April 2016 at 15:06, Peter Ujfalusi wrote: > With the new dma_request_chan() the client driver does not need to look for > the DMA resource and it does not need to pass filter_fn anymore. > By switching to the new API the driver can now support deferred probing > against DMA. > > Signed-off-

  1   2   3   4   5   6   7   8   9   10   >