Re: [RFC PATCH 4.10 1/6] crypto/sha256: Refactor the API so it can be used without shash

2016-12-25 Thread Herbert Xu
On Sat, Dec 24, 2016 at 09:57:53AM -0800, Andy Lutomirski wrote: > > I actually do use incremental hashing later on. BPF currently > vmallocs() a big temporary buffer just so it can fill it and hash it. > I change it to hash as it goes. How much data is this supposed to hash on average? If it's

Re: [GIT pull] smp/hotplug: Removal of notifiers

2016-12-25 Thread Markus Trippelsdorf
On 2016.12.25 at 14:39 +0100, Thomas Gleixner wrote: > Linus, > > please pull the latest smp-urgent-for-linus git tree from: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > smp-urgent-for-linus > > Thomas Gleixner (11): > cpu/hotplug: Prevent overwriting of callbacks T

RE: [Intel-gfx] [PATCH] drm/i915: check if execlist_port is empty before using its content

2016-12-25 Thread Du, Changbin
> On Fri, Dec 23, 2016 at 01:46:36PM +0800, changbin...@intel.com wrote: > > From: "Du, Changbin" > > > > This patch fix a crash in function reset_common_ring. In this case, > > the port[0].request is null when reset the render ring, so a null > > dereference exception is raised. We need to check

Re: [PATCH 3/4] mmc: mmc: enable ios.enhanced_strobe before mmc_set_timing

2016-12-25 Thread Shawn Lin
On 2016/12/23 17:18, Ritesh Harjani wrote: Hi Shawn, Do you think, below change should be fine? yes. I am still checking on what we discussed on Patch2. why I am asking is because - for HS400 in SDHC-MSM, we do the DLL re-calibration as per the HW sequence. So it is done in both the cases,

[rfc patch-rt] posix_cpu_timers: Kill hotplug cpu notifier

2016-12-25 Thread Mike Galbraith
Shamelessly steal softirq.c thread initialization method. Signed-off-by: Mike Galbraith --- include/linux/cpuhotplug.h |1 kernel/time/posix-cpu-timers.c | 158 ++--- 2 files changed, 56 insertions(+), 103 deletions(-) --- a/include/linux/cpuhotplug

[patch-rt] kvm: Convert pvclock_gtod_sync_lock to raw_spinlock_t

2016-12-25 Thread Mike Galbraith
Fix splat below. Lock is short hold, make it raw. [15528.614216] BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:995 [15528.614218] in_atomic(): 0, irqs_disabled(): 1, pid: 19619, name: qemu-system-x86 [15528.614218] no locks held by qemu-system-x86/19619. [15528.

[PATCH] coresight: fix kernel panic caused by invalid CPU

2016-12-25 Thread Wang Nan
Commit d52c9750f150 ("coresight: reset 'enable_sink' flag when need be") caused a kernel panic because of the using of an invalid value: after 'for_each_cpu(cpu, mask)', value of local variable 'cpu' become invalid, causes following 'cpu_to_node' access invalid memory area. This patch brings the d

[lkp-developer] [mm, memcg] d18e2b2aca: WARNING:at_mm/memcontrol.c:#mem_cgroup_update_lru_size

2016-12-25 Thread kernel test robot
FYI, we noticed the following commit: commit: d18e2b2aca0396849f588241e134787a829c707d ("mm, memcg: fix (Re: OOM: Better, but still there on)") url: https://github.com/0day-ci/linux/commits/Michal-Hocko/mm-memcg-fix-Re-OOM-Better-but-still-there-on/20161223-225057 base: git://git.cmpxchg.org/li

[PATCH] Staging: comedi: comedi_compat32: fixed a syntax error

2016-12-25 Thread Jonathan Villatoro
Fixed a syntax error in the function definition's parameter. Signed-off-by: Jonathan Horacio Villatoro Córdoba --- drivers/staging/comedi/comedi_compat32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/comedi_compat32.h b/drivers/staging/comedi/comed

Re: [PATCHSET] cgroup: reorganize cgroup source files

2016-12-25 Thread Zefan Li
On 2016/12/21 5:08, Tejun Heo wrote: > cgroup source files are getting a bit too unwieldy. Let's reorganize > them. > > * Move cgroup files in kernel to kernel/cgroup. > > * Split cgroup.c into multiple files. > > The only functional change this patchset causes is loss of a > WARN_ON(); otherwi

Re: [PATCHSET] kernfs, cgroup: reimplement "cgroup.procs" reading for v2

2016-12-25 Thread Zefan Li
On 2016/12/21 0:12, Tejun Heo wrote: > On cgroup v1, the pid listings in "cgroup.procs" and "tasks" are > sorted which adds a lot of complications and overhead. v2 doesn't > have such requirement and has been intentionally using a modified > sorting order so that the output doesn't look sorted to

[PATCH] x86/apic: Fix two typos in comments

2016-12-25 Thread Dou Liyang
s/inr_logical_cpuidi/nr_logical_cpuids/ s/generic_processor_info()/__generic_processor_info()/ Signed-off-by: Dou Liyang --- arch/x86/kernel/apic/apic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index 5b7e43e

Re: [PATCH v2] locking/pvqspinlock: Relax cmpxchg's to improve performance on some archs

2016-12-25 Thread Boqun Feng
Hi Wainman, On Sun, Dec 25, 2016 at 03:26:01PM -0500, Waiman Long wrote: > A number of cmpxchg calls in qspinlock_paravirt.h were replaced by more > relaxed versions to improve performance on architectures that use LL/SC. > > All the locking related cmpxchg's are replaced with the _acquire > vari

Re: [PATCH] serial: 8250_dw: #ifdef out dw8250_acpi_match if ACPI isn't set

2016-12-25 Thread Jisheng Zhang
Hi Greg, On Fri, 23 Dec 2016 19:09:23 +0100 Greg KH wrote: > > On Fri, Dec 23, 2016 at 08:33:55PM +0800, Jisheng Zhang wrote: > > dw8250_acpi_match is used only when ACPI is enabled. Fix the following > > gcc warning when W=1 is set: > > > > drivers/tty/serial/8250/8250_dw.c:640:36: warning: 'dw

[RFC PATCH 2/6] Documetation: samsung-phy: add the exynos-pcie-phy binding

2016-12-25 Thread Jaehoon Chung
Adds the exynos-pcie-phy binding for Exynos PCIe PHY. This is for using generic PHY framework. Signed-off-by: Jaehoon Chung --- .../devicetree/bindings/phy/samsung-phy.txt | 21 + 1 file changed, 21 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/sam

[RFC PATCH 3/6] ARM64: dts: exynos5433: add the pcie_phy node for PCIe

2016-12-25 Thread Jaehoon Chung
To use the generic PHY framework, adds the pcie_phy node. Signed-off-by: Jaehoon Chung --- arch/arm64/boot/dts/exynos/exynos5433.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi b/arch/arm64/boot/dts/exynos/exynos5433.dtsi index

[RFC PATCH 6/6] ARM64: exynos: add the pcie node for TM2

2016-12-25 Thread Jaehoon Chung
Add the Exxynos5433 pcie node for TM2. This pcie device is used for supporting WiFi. And some gpios are already requested from pinctrl. so it doesn't need to initialize. GPJ2-0 is used for supplying to WiFi PCIe chip. Signed-off-by: Jaehoon Chung --- arch/arm64/boot/dts/exynos/exynos5433-pinctr

[RFC PATCH 5/6] Documentation: pci: add the exynos5433-pcie binding

2016-12-25 Thread Jaehoon Chung
Signed-off-by: Jaehoon Chung --- .../devicetree/bindings/pci/exynos5433-pcie.txt| 36 ++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/exynos5433-pcie.txt diff --git a/Documentation/devicetree/bindings/pci/exynos5433-pcie.txt

[RFC PATCH 4/6] PCI: exynos5433: Add new exynos pci host controller for Exynos5433

2016-12-25 Thread Jaehoon Chung
Exynos5433 supports the PCIe. This patch adds new pci-exynos5433.c file for Exynos ARM64. Signed-off-by: Jaehoon Chung --- drivers/pci/host/Kconfig | 9 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pci-exynos5433.c | 338 ++ 3 files

[RFC PATCH 0/6] Support the PCIe for TM2(exynos5433)

2016-12-25 Thread Jaehoon Chung
This patchset is for supporting PCIe exynos5433. TM2(exynos5433) supports the PCIe for WiFi. In driver/pci/host/, there is pci-exynos.c. But i can't touch anything. The below reasons are why i added the new file. 1. Don't have the exynos5440 TRM - I can't check anything for exynso5440. - So i can'

[RFC PATCH 1/6] phy: exynos-pcie: Add support for Exynos PCIe phy

2016-12-25 Thread Jaehoon Chung
This patch supports to use Generic Phy framework for Exynos PCIe phy. When Exynos that supported the pcie want to use the PCIe, it needs to control the phy resgister. But it should be more complex to control in their own PCIe device drivers. Signed-off-by: Jaehoon Chung --- drivers/phy/Kconfig

RE: [PATCH v2 REGRESSION RESEND] usb: ohci-at91: use descriptor-based gpio APIs correctly

2016-12-25 Thread Wenyou.Yang
> -Original Message- > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > Sent: 2016年12月24日 2:05 > To: Peter Rosin > Cc: linux-kernel@vger.kernel.org; Alan Stern ; > linux-...@vger.kernel.org; Wenyou Yang - A41535 > > Subject: Re: [PATCH v2 REGRESSION RESEND] usb: ohci-at91:

Re: Detecting kprobes generated code addresses

2016-12-25 Thread Masami Hiramatsu
On Sun, 25 Dec 2016 15:16:00 +0900 Masami Hiramatsu wrote: > On Sun, 25 Dec 2016 12:13:20 +0900 > Masami Hiramatsu wrote: > > > On Thu, 22 Dec 2016 00:42:19 -0600 > > Josh Poimboeuf wrote: > > > > > Hi Masami, > > > > > > I would like to make __kernel_text_address() be able to detect whether

[PATCH] lib: bitmap: introduce bitmap_find_next_zero_area_and_size

2016-12-25 Thread Jaewon Kim
There was no bitmap API which returns both next zero index and size of zeros from that index. This is helpful to look fragmentation. This is an test code to look size of zeros. Test result is '10+9+994=>1013 found of total: 1024' unsigned long search_idx, found_idx, nr_found_tot; unsigned long b

[PATCH] [linux-next] tools/power turbostat: Fix typo in turbostat.8

2016-12-25 Thread Masanari Iida
This patch fix two spelling typo in turbostat.8 Signed-off-by: Masanari Iida --- tools/power/x86/turbostat/turbostat.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/power/x86/turbostat/turbostat.8 b/tools/power/x86/turbostat/turbostat.8 index 492e84fbebfa..6765e0ae98

[PATCH v3 4/4] clk: rockchip: add new pll-type for rk3328

2016-12-25 Thread Elaine Zhang
The rk3328's pll and clock are similar with rk3036's, it different with pll_mode_mask, the rk3328 soc pll mode only one bit(rk3036 soc have two bits) so these should be independent and separate from the series of rk3328s. Changes in v3: fix up the pll type pll_rk3328 description and use Signed-

[PATCH v3 3/4] clk: rockchip: add clock controller for rk3328

2016-12-25 Thread Elaine Zhang
Add the clock tree definition for the new rk3328 SoC. Changes in v3: fix up the pll parent only xin24m. Changes in v2: fix up these *_sample error description. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/Makefile |1 + drivers/clk/rockchip/clk-rk3328.c | 1068 ++

[PATCH v3 2/4] dt-bindings: add bindings for rk3328 clock controller

2016-12-25 Thread Elaine Zhang
Add devicetree bindings for Rockchip cru which found on Rockchip SoCs. Signed-off-by: Elaine Zhang --- .../bindings/clock/rockchip,rk3328-cru.txt | 57 ++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/rockchip,rk3328-cru

[PATCH v3 0/4] clk: rockchip: support clk controller for rk3328 SoC

2016-12-25 Thread Elaine Zhang
Changes in v3: fix up the pll type pll_rk3328 description and use. Changes in v2: add bindings for rk3328 clock controller Elaine Zhang (4): clk: rockchip: add dt-binding header for rk3328 dt-bindings: add bindings for rk3328 clock controller clk: rockchip: add clock controller for rk332

[PATCH v3 1/4] clk: rockchip: add dt-binding header for rk3328

2016-12-25 Thread Elaine Zhang
Add the dt-bindings header for the rk3328, that gets shared between the clock controller and the clock references in the dts. Add softreset ID for rk3328. Signed-off-by: Elaine Zhang --- include/dt-bindings/clock/rk3328-cru.h | 403 + 1 file changed, 403 insertion

Re: [PATCH v2 0/4] vfio-mdev: Fix remove race, clean namespace and better define ABI

2016-12-25 Thread Kirti Wankhede
On 12/23/2016 1:51 AM, Alex Williamson wrote: > Cleanup the namespace a bit by prefixing structures with mdev_ and > also more concretely define the mdev interface. Structs with comments > defining which fields are private vs public tempts poor behavior, > especially for an interface where we exp

Re: [PATCH v2 1/4] vfio-mdev: Fix remove race

2016-12-25 Thread Kirti Wankhede
On 12/26/2016 1:10 AM, Alex Williamson wrote: > On Sun, 25 Dec 2016 22:39:47 +0530 > Kirti Wankhede wrote: > >> On 12/23/2016 1:51 AM, Alex Williamson wrote: >>> Using the mtty mdev sample driver we can generate a remove race by >>> starting one shell that continuously creates mtty devices and

Re: [PATCH] nohz: Fix collision between tick and other hrtimers

2016-12-25 Thread Rik van Riel
On Sat, 2016-12-24 at 17:15 +0100, Frederic Weisbecker wrote: > When the tick is stopped and an interrupt occurs afterward, we check > on > that interrupt exit if the next tick needs to be rescheduled. If it > doesn't need any update, we don't want to do anything. > > In order to check if the tick

Re: [PATCH net 0/9] several fixups for virtio-net XDP

2016-12-25 Thread Jason Wang
On 2016年12月24日 01:10, John Fastabend wrote: On 16-12-23 06:37 AM, Jason Wang wrote: Merry Xmas and a Happy New year to all: This series tries to fixes several issues for virtio-net XDP which could be categorized into several parts: - fix several issues during XDP linearizing - allow csumed p

Re: [PATCH net 7/9] virtio-net: forbid XDP when VIRTIO_NET_F_GUEST_UFO is support

2016-12-25 Thread Jason Wang
On 2016年12月24日 00:10, John Fastabend wrote: On 16-12-23 08:02 AM, John Fastabend wrote: On 16-12-23 06:37 AM, Jason Wang wrote: When VIRTIO_NET_F_GUEST_UFO is negotiated, host could still send UFO packet that exceeds a single page which could not be handled correctly by XDP. So this patch for

[PATCH] clk: uniphier: remove unneeded #include

2016-12-25 Thread Masahiro Yamada
This include was needed to suppress build error when this driver was initially merged because did not include at that time. (developers' headache across sub-systems) The root cause has been fixed by commit adf08d481b52 ("regmap: include from include/linux/regmap.h"), so this line can be droppe

Re: [PATCH net 4/9] virtio-net: correctly handle XDP_PASS for linearized packets

2016-12-25 Thread Jason Wang
On 2016年12月23日 23:57, John Fastabend wrote: On 16-12-23 06:37 AM, Jason Wang wrote: When XDP_PASS were determined for linearized packets, we try to get new buffers in the virtqueue and build skbs from them. This is wrong, we should create skbs based on existed buffers instead. Fixing them by c

Re: [PATCH net 3/9] virtio-net: fix page miscount during XDP linearizing

2016-12-25 Thread Jason Wang
On 2016年12月23日 23:54, John Fastabend wrote: On 16-12-23 06:37 AM, Jason Wang wrote: We don't put page during linearizing, the would cause leaking when xmit through XDP_TX or the packet exceeds PAGE_SIZE. Fix them by put page accordingly. Also decrease the number of buffers during linearizing t

Re: [PATCH] x86/e820: make e820_search_gap() static and remove unused variables

2016-12-25 Thread Yinghai Lu
On Sun, Dec 25, 2016 at 02:35:51PM +, Wei Yang wrote: > e820_search_gap() is just used locally now and the start_addr and end_addr > is fixed. Also gapstart is not checked in this function. > > The patch makes e820_search_gap() static and remove those unused variables. > > Signed-off-by: Wei

[PATCH] arm64: defconfig: enable CONFIG_MMC_SDHCI_CADENCE

2016-12-25 Thread Masahiro Yamada
Enable the Cadence SD/SDIO/eMMC controller. This is used on Socionext UniPhier SoC family. Signed-off-by: Masahiro Yamada --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 0888cab..23045b4 1006

fs/crypto/crypto.c:360:6: error: dereferencing pointer to incomplete type

2016-12-25 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7ce7d89f48834cefece7804d38fc5d85382edf77 commit: d475a507457b5cafa428871a473d0dcc828c5f68 ubifs: Add skeleton for fscrypto date: 13 days ago config: x86_64-randconfig-n0-12260905 (attached as .config) comp

Re: [PATCH v5 09/14] ACPI: platform: setup MSI domain for ACPI based platform device

2016-12-25 Thread Hanjun Guo
Hi Rafael, Happy holidays! reply inline. On 2016/12/26 8:31, Rafael J. Wysocki wrote: > On Sat, Dec 24, 2016 at 8:34 AM, Hanjun Guo wrote: >> Hi Rafael, >> >> Thank you for your comments, when I was demoing your suggestion, >> I got a little bit confusions, please see my comments below. >> > [cu

Re: [PATCH 2/2] mm: add PageWaiters indicating tasks are waiting for a page bit

2016-12-25 Thread Nicholas Piggin
On Sun, 25 Dec 2016 13:51:17 -0800 Linus Torvalds wrote: > On Sat, Dec 24, 2016 at 7:00 PM, Nicholas Piggin wrote: > > Add a new page flag, PageWaiters, to indicate the page waitqueue has > > tasks waiting. This can be tested rather than testing waitqueue_active > > which requires another cachel

Linux 4.10-rc1

2016-12-25 Thread Linus Torvalds
It's Christmas Day, and it's two weeks since the merge window opened. Thus, the merge window is now closed. I did a few final pulls today, but I also rejected a couple of pulls that came in late in the window and looked dodgy. You know who you are. On the whole, this wasn't all that big a release

[PATCH/RESEND 5/5] z3fold: add kref refcounting

2016-12-25 Thread Vitaly Wool
With both coming and already present locking optimizations, introducing kref to reference-count z3fold objects is the right thing to do. Moreover, it makes buddied list no longer necessary, and allows for a simpler handling of headless pages. Signed-off-by: Vitaly Wool --- mm/z3fold.c | 137

[PATCH/RESEND 4/5] z3fold: fix header size related issues

2016-12-25 Thread Vitaly Wool
Currently the whole kernel build will be stopped if the size of struct z3fold_header is greater than the size of one chunk, which is 64 bytes by default. This patch instead defines the offset for z3fold objects as the size of the z3fold header in chunks. Fixed also are the calculation of num_free_

[PATCH/RESEND 3/5] z3fold: use per-page spinlock

2016-12-25 Thread Vitaly Wool
Most of z3fold operations are in-page, such as modifying z3fold page header or moving z3fold objects within a page. Taking per-pool spinlock to protect per-page objects is therefore suboptimal, and the idea of having a per-page spinlock (or rwlock) has been around for some time. This patch implem

[PATCH/RESEND 2/5] mm/z3fold.c: extend compaction function

2016-12-25 Thread Vitaly Wool
z3fold_compact_page() currently only handles the situation where there's a single middle chunk within the z3fold page. However it may be worth it to move middle chunk closer to either first or last chunk, whichever is there, if the gap between them is big enough. Basically compression ratio wise,

[PATCH/RESEND 2/5] mm/z3fold.c: extend compaction function

2016-12-25 Thread Vitaly Wool
z3fold_compact_page() currently only handles the situation where there's a single middle chunk within the z3fold page. However it may be worth it to move middle chunk closer to either first or last chunk, whichever is there, if the gap between them is big enough. Basically compression ratio wise,

[PATCH/RESEND 1/5] mm/z3fold.c: make pages_nr atomic

2016-12-25 Thread Vitaly Wool
Convert pages_nr per-pool counter to atomic64_t so that we won't have to care about locking for reading/updating it. Signed-off-by: Vitaly Wool --- mm/z3fold.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/mm/z3fold.c b/mm/z3fold.c index 207e5dd..22737

Re: [PATCH v5 09/14] ACPI: platform: setup MSI domain for ACPI based platform device

2016-12-25 Thread Rafael J. Wysocki
On Sat, Dec 24, 2016 at 8:34 AM, Hanjun Guo wrote: > Hi Rafael, > > Thank you for your comments, when I was demoing your suggestion, > I got a little bit confusions, please see my comments below. > [cut] >>> + >>> +/** >>> * acpi_create_platform_device - Create platform device for ACPI device

[PATCH/RESEND 0/5] z3fold optimizations and fixes

2016-12-25 Thread Vitaly Wool
This is a consolidation of z3fold optimizations and fixes done so far, revised after comments from Dan [1]. The coming patches are to be applied on top of the following commit: commit 07cfe852286d5e314f8cd19781444e12a2b6cdf3 Author: zhong jiang Date: Tue Dec 20 11:53:40 2016 +1100 mm/z3fo

Re: [PATCHv4 2/8] Fixed variables not being consistently lower case

2016-12-25 Thread Al Viro
On Sun, Dec 25, 2016 at 10:34:54PM +, Jonathan Cameron wrote: > > > On 25 December 2016 20:14:09 GMT+00:00, Al Viro > wrote: > >On Sun, Dec 25, 2016 at 01:41:06PM -0600, Scott Matheina wrote: > >> Across the file, variables were sometimes upper case, some times > >> lower case, this fix add

Re: [PATCHv4 2/8] Fixed variables not being consistently lower case

2016-12-25 Thread Jonathan Cameron
On 25 December 2016 20:14:09 GMT+00:00, Al Viro wrote: >On Sun, Dec 25, 2016 at 01:41:06PM -0600, Scott Matheina wrote: >> Across the file, variables were sometimes upper case, some times >> lower case, this fix addresses a few of the instances with this >> inconsistency. > >NAK. Go learn C and

Re: Question regarding power button of Dell XPS13

2016-12-25 Thread Linus Torvalds
On Fri, Dec 23, 2016 at 4:36 AM, Paul Menzel wrote: > > I heard that you both have a Dell XPS13. I got the “revision” 9360, and > installed Debian Stretch/testing on it with Linux 4.8.15 and Linux 4.9-rc8. > > When pressing the power button the GNOME dialog, asking what to do (restart, > power off

[PATCH] um: Fix _print_addr()

2016-12-25 Thread Richard Weinberger
Recent changes to printk() broke UML's stack trace output. Kill the root of the problem by using a single printk() statement. Signed-off-by: Richard Weinberger --- arch/um/kernel/sysrq.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/um/kernel/sysrq.c b/arch/um/ke

[PATCH v2 1/2] rtc: mcp795: Add support for weekday.

2016-12-25 Thread Emil Bartczak
This patch adds support for saving/loading weekday value from the chip. Signed-off-by: Emil Bartczak --- drivers/rtc/rtc-mcp795.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/rtc/rtc-mcp795.c b/drivers/rtc/rtc-mcp795.c index ce75e42..8107fc0 100644 ---

[PATCH v2 2/2] rtc: mcp795: add alarm support.

2016-12-25 Thread Emil Bartczak
This patch adds alarm support. This allows to configure the chip to generate an interrupt when the alarm matches current time value. Alarm can be programmed up to one year in the future and is accurate to the second. Signed-off-by: Emil Bartczak --- drivers/rtc/rtc-mcp795.c | 171 +++

Re: [PATCH] arm: dt: Initialize boot_command_line from CONFIG_CMDLINE in case DT does not provide /chosen/bootargs

2016-12-25 Thread Pali Rohár
On Friday 16 December 2016 12:42:34 Pali Rohár wrote: > On Thursday 15 December 2016 11:09:32 Russell King - ARM Linux wrote: > > > What is reason that CONFIG_CMDLINE is not supported for DT? > > > > Sorry, that's my mistake - as you've pointed out above, it is > > supported but via generic code.

[PATCH v2 0/2] Provides support for alarm.

2016-12-25 Thread Emil Bartczak
This patchset provides support for weekday and alarm in the file driver/rtc/rtc-mcp795.c. Please review the changes and consider to apply them to the main kernel tree. Changes from v1: - Cover letter added. Emil Bartczak (2): rtc: mcp795: Add support for weekday. rtc: mcp795: add alarm supp

Re: [PATCH 2/2] mm: add PageWaiters indicating tasks are waiting for a page bit

2016-12-25 Thread Linus Torvalds
On Sat, Dec 24, 2016 at 7:00 PM, Nicholas Piggin wrote: > Add a new page flag, PageWaiters, to indicate the page waitqueue has > tasks waiting. This can be tested rather than testing waitqueue_active > which requires another cacheline load. Ok, I applied this one too. I think there's room for imp

Re: [PATCH 01/16] Add the ability to lock down access to the running kernel image

2016-12-25 Thread David Howells
Pavel Machek wrote: > > +config ALLOW_LOCKDOWN_LIFT > > + bool > > Don't you need to add 'bool "something"' so that user can actually > select this? No - see patch 6. This option merely makes the function available. Actually, I haven't done it quite right: the function in the .c file should

[PATCH 2/2] rtc: mcp795: add alarm support.

2016-12-25 Thread Emil Bartczak
This patch adds alarm support. This allows to configure the chip to generate an interrupt when the alarm matches current time value. Alarm can be programmed up to one year in the future and is accurate to the second. Signed-off-by: Emil Bartczak --- drivers/rtc/rtc-mcp795.c | 171 +++

[PATCH 1/2] rtc: mcp795: Add support for weekday.

2016-12-25 Thread Emil Bartczak
This patch adds support for saving/loading weekday value from the chip. Signed-off-by: Emil Bartczak --- drivers/rtc/rtc-mcp795.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/rtc/rtc-mcp795.c b/drivers/rtc/rtc-mcp795.c index ce75e42..8107fc0 100644 ---

Bug 4.9 and memorymanagement

2016-12-25 Thread Klaus Ethgen
Hello, The last days I compiled version 4.9 for my i386 laptop. (Lenovo x61s) First, everything seems to be sane but after some sleep and awake (suspend to ram) cycles I seen some really weird behaviour ending in OOM or even complete freeze of the laptop. What I was able to see is that it went t

Re: [PATCH 01/16] Add the ability to lock down access to the running kernel image

2016-12-25 Thread Pavel Machek
Hi! > allow the running kernel image to be changed including the loading of > modules that aren't validly signed with a key we recognise, fiddling with > MSR registers and disallowing hibernation, "." at EOL. > @@ -158,6 +158,21 @@ config HARDENED_USERCOPY_PAGESPAN > been removed. This c

Re: [PATCH 1/4] serial: core: Add LED trigger support

2016-12-25 Thread Pavel Machek
Hi! > > Could we somehow remedy the lack of knowledge from the core as whether > > the HW sends/receives characters first before adding support for LED > > triggers? It would be more generic and future proof to require UART > > drivers to report to the core when they actually TX/RX, and then at th

Re: [PATCH 1/4] serial: core: Add LED trigger support

2016-12-25 Thread Pavel Machek
Hi! > As the serial core layer does not know when the hardware actually sends > or receives characters, this needs help from the UART drivers. The > LED triggers are registered in uart_add_led_triggers() called from > the UART drivers which want to support LED triggers. All the driver > has to do

Re: [PATCHv4 8/8] Fixes style issues due to mis-aligned carry over lines

2016-12-25 Thread kbuild test robot
Hi Scott, [auto build test ERROR on iio/togreg] [also build test ERROR on v4.9 next-20161224] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Scott-Matheina/Checkpatch-fixes-to-driver-staging-iio

Re: [PATCHv4 3/8] Fix camel case issues

2016-12-25 Thread kbuild test robot
Hi Scott, [auto build test ERROR on iio/togreg] [also build test ERROR on v4.9 next-20161224] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Scott-Matheina/Checkpatch-fixes-to-driver-staging-iio

Re: [PATCH 2/6] wl1251: Use request_firmware_prefer_user() for loading NVS calibration data

2016-12-25 Thread Pali Rohár
On Sunday 25 December 2016 21:15:40 Arend Van Spriel wrote: > On 24-12-2016 17:52, Pali Rohár wrote: > > NVS calibration data for wl1251 are model specific. Every one > > device with wl1251 chip has different and calibrated in factory. > > > > Not all wl1251 chips have own EEPROM where are calibra

Re: [PATCHv4 7/8] Changed code to align with coding style of using octat

2016-12-25 Thread kbuild test robot
Hi Scott, [auto build test ERROR on iio/togreg] [also build test ERROR on v4.9 next-20161224] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Scott-Matheina/Checkpatch-fixes-to-driver-staging-iio

[PATCH v2] locking/pvqspinlock: Relax cmpxchg's to improve performance on some archs

2016-12-25 Thread Waiman Long
A number of cmpxchg calls in qspinlock_paravirt.h were replaced by more relaxed versions to improve performance on architectures that use LL/SC. All the locking related cmpxchg's are replaced with the _acquire variants: - pv_queued_spin_steal_lock() - trylock_clear_pending() The cmpxchg's relat

Re: [PATCHv4 2/8] Fixed variables not being consistently lower case

2016-12-25 Thread kbuild test robot
Hi Scott, [auto build test ERROR on iio/togreg] [also build test ERROR on v4.9 next-20161224] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Scott-Matheina/Checkpatch-fixes-to-driver-staging-iio

Re: [PATCH 2/6] wl1251: Use request_firmware_prefer_user() for loading NVS calibration data

2016-12-25 Thread Arend Van Spriel
On 24-12-2016 17:52, Pali Rohár wrote: > NVS calibration data for wl1251 are model specific. Every one device with > wl1251 chip has different and calibrated in factory. > > Not all wl1251 chips have own EEPROM where are calibration data stored. And > in that case there is no "standard" place. Eve

Re: [PATCHv4 2/8] Fixed variables not being consistently lower case

2016-12-25 Thread Al Viro
On Sun, Dec 25, 2016 at 01:41:06PM -0600, Scott Matheina wrote: > Across the file, variables were sometimes upper case, some times > lower case, this fix addresses a few of the instances with this > inconsistency. NAK. Go learn C and don't come back until you've done that. If somebody has told y

[PATCHv4 7/8] Changed code to align with coding style of using octat

2016-12-25 Thread Scott Matheina
The permmission code was changed to reflect octat (0644/0444) for required permissions. Signed-off-by: Scott Matheina --- drivers/staging/iio/addac/adt7316.c | 264 ++-- 1 file changed, 101 insertions(+), 163 deletions(-) diff --git a/drivers/staging/iio/addac/a

[PATCHv4 8/8] Fixes style issues due to mis-aligned carry over lines

2016-12-25 Thread Scott Matheina
Lines were not aligned with (, this patch simply changes the indention, no substantive changes function of driver. Signed-Off-By: Scott Matheina --- drivers/staging/iio/addac/adt7316.c | 415 ++-- 1 file changed, 210 insertions(+), 205 deletions(-) diff --git a/

[PATCHv4 5/8] Remove line after closing braces

2016-12-25 Thread Scott Matheina
There was an additional line which was un-needed, removed that line. Signed-off-by: Scott Matheina --- drivers/staging/iio/addac/adt7316.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/iio/addac/adt7316.c b/drivers/staging/iio/addac/adt7316.c index e78d302..4678a64 100644 -

[PATCHv4 6/8] Fixed code wrap alignment with preceding (.

2016-12-25 Thread Scott Matheina
The code wasn't aligned with preceding ( on following lines, fixes this coding style issue. Signed-off-by: Scott Matheina --- drivers/staging/iio/addac/adt7316.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/staging/iio/addac/adt

[PATCHv4 3/8] Fix camel case issues

2016-12-25 Thread Scott Matheina
Cases of camel case were fixed by making variables lower case throughout the file. Signed-off-by: Scott Matheina --- drivers/staging/iio/addac/adt7316.c | 82 ++--- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/drivers/staging/iio/addac/adt7316.c

[PATCHv4 4/8] Fix braces not present on all arms of if else statement

2016-12-25 Thread Scott Matheina
Adds braces to second arm of if else statement. Signed-off-by: Scott Matheina --- drivers/staging/iio/addac/adt7316.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/iio/addac/adt7316.c b/drivers/staging/iio/addac/adt7316.c index 2b584a0..e78d302 100644 ---

[PATCHv4 2/8] Fixed variables not being consistently lower case

2016-12-25 Thread Scott Matheina
Across the file, variables were sometimes upper case, some times lower case, this fix addresses a few of the instances with this inconsistency. Signed-off-by: Scott Matheina --- drivers/staging/iio/addac/adt7316.c | 48 ++--- 1 file changed, 24 insertions(+), 24 d

[PATCHv4 1/8] fixed long description text exceeding 80 characters

2016-12-25 Thread Scott Matheina
The description was split into 2 lines due to the line greatly exceeding the 80 character soft limit. Signed-off-by: Scott Matheina --- drivers/staging/iio/addac/adt7316.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/iio/addac/adt7316.c b/drivers/staging

[PATCHv4 0/8] Checkpatch fixes to driver/staging/iio/addac

2016-12-25 Thread Scott Matheina
*** BLURB HERE *** Scott Matheina (8): fixed long description text exceeding 80 characters Fixed variables not being consistently lower case Fix camel case issues Fix braces not present on all arms of if else statement Remove line after closing braces Fixed code wrap alignment with pre

[PATCHv4 4/8] Fix braces not present on all arms of if else statement

2016-12-25 Thread Scott Matheina
Adds braces to second arm of if else statement. Signed-off-by: Scott Matheina --- drivers/staging/iio/addac/adt7316.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/iio/addac/adt7316.c b/drivers/staging/iio/addac/adt7316.c index 2b584a0..e78d302 100644 ---

[PATCHv4 2/8] Fixed variables not being consistently lower case

2016-12-25 Thread Scott Matheina
Across the file, variables were sometimes upper case, some times lower case, this fix addresses a few of the instances with this inconsistency. Signed-off-by: Scott Matheina --- drivers/staging/iio/addac/adt7316.c | 48 ++--- 1 file changed, 24 insertions(+), 24 d

[PATCHv4 7/8] Changed code to align with coding style of using octat

2016-12-25 Thread Scott Matheina
The permmission code was changed to reflect octat (0644/0444) for required permissions. Signed-off-by: Scott Matheina --- drivers/staging/iio/addac/adt7316.c | 264 ++-- 1 file changed, 101 insertions(+), 163 deletions(-) diff --git a/drivers/staging/iio/addac/a

[PATCHv4 5/8] Remove line after closing braces

2016-12-25 Thread Scott Matheina
There was an additional line which was un-needed, removed that line. Signed-off-by: Scott Matheina --- drivers/staging/iio/addac/adt7316.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/iio/addac/adt7316.c b/drivers/staging/iio/addac/adt7316.c index e78d302..4678a64 100644 -

[PATCHv4 1/8] fixed long description text exceeding 80 characters

2016-12-25 Thread Scott Matheina
The description was split into 2 lines due to the line greatly exceeding the 80 character soft limit. Signed-off-by: Scott Matheina --- drivers/staging/iio/addac/adt7316.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/iio/addac/adt7316.c b/drivers/staging

[PATCHv4 0/8] Checkpatch fixes to driver/staging/iio/addac

2016-12-25 Thread Scott Matheina
*** BLURB HERE *** Scott Matheina (8): fixed long description text exceeding 80 characters Fixed variables not being consistently lower case Fix camel case issues Fix braces not present on all arms of if else statement Remove line after closing braces Fixed code wrap alignment with pre

[PATCHv4 3/8] Fix camel case issues

2016-12-25 Thread Scott Matheina
Cases of camel case were fixed by making variables lower case throughout the file. Signed-off-by: Scott Matheina --- drivers/staging/iio/addac/adt7316.c | 82 ++--- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/drivers/staging/iio/addac/adt7316.c

Re: [PATCH v2 1/4] vfio-mdev: Fix remove race

2016-12-25 Thread Alex Williamson
On Sun, 25 Dec 2016 22:39:47 +0530 Kirti Wankhede wrote: > On 12/23/2016 1:51 AM, Alex Williamson wrote: > > Using the mtty mdev sample driver we can generate a remove race by > > starting one shell that continuously creates mtty devices and several > > other shells all attempting to remove devic

[PATCH 19/19] [media] uvc_video: Add some spaces for better code readability

2016-12-25 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 25 Dec 2016 19:00:29 +0100 Use space characters at some source code places according to the Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/media/usb/uvc/uvc_video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH 18/19] [media] uvc_video: Enclose an expression for the sizeof operator by parentheses

2016-12-25 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 25 Dec 2016 18:50:35 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: sizeof *ctrl should be sizeof(*ctrl) Thus fix the affected source code place. Signed-off-by: Markus Elfring --- drivers/media/usb/uvc/uvc_video.c | 2 +-

[PATCH 17/19] [media] uvc_video: Fix a typo in a comment line

2016-12-25 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 25 Dec 2016 18:42:58 +0100 The script "checkpatch.pl" pointed out that a word may be misspelled. Add a missing character there. Signed-off-by: Markus Elfring --- drivers/media/usb/uvc/uvc_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 16/19] [media] uvc_video: Adjust 18 checks for null pointers

2016-12-25 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 25 Dec 2016 18:26:21 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script "checkpatch.pl" pointed information out like the following. Comparison to NULL could be written … Thus fix the affected source code pla

[PATCH 15/19] [media] uvc_video: Adjust one function call together with a variable assignment

2016-12-25 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 25 Dec 2016 18:00:39 +0100 The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix the affected source code place. Signed-off-by: Markus Elfring --- drivers/media/usb/uvc/uvc_video.c | 4 ++--

[PATCH 14/19] [media] uvc_video: Combine substrings for 22 messages

2016-12-25 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 25 Dec 2016 17:54:05 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: quoted string split across lines * Thus fix the affected source code places. * Improve indentation for passed parameters. Signed-off-by: Markus Elfring -

[PATCH 13/19] [media] uvc_video: Use kmalloc_array() in uvc_video_clock_init()

2016-12-25 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 25 Dec 2016 16:45:21 +0100 A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "kmalloc_array". This issue was detected by using the Coccinelle software.

  1   2   >