[PATCH v1 1/1] mfd: intel-lpss: save register context on suspend

2016-01-26 Thread Andy Shevchenko
From: Heikki Krogerus All configurations are lost and the registers will have default values when the hardware is suspended and resumed, so saving the private register space context on suspend, and restoring it on resume. Fixes: 4b45efe85263 (mfd: Add support for Intel Sunrisepoint LPSS devices)

Re: gpu: kmalloc size WARNING in vga_arb_write

2016-01-26 Thread Daniel Vetter
On Tue, Jan 26, 2016 at 11:26:29AM +0100, Dmitry Vyukov wrote: > Hello, > > I've hit the following warning while running syzkaller fuzzer: > > [ cut here ] > WARNING: CPU: 2 PID: 29322 at mm/page_alloc.c:2999 > __alloc_pages_nodemask+0x7d2/0x1760() > Modules linked in: > C

Re: [PATCH 07/12] perf hists browser: Fix callchain_node__count_rows()

2016-01-26 Thread Jiri Olsa
On Sun, Jan 24, 2016 at 10:53:30PM +0900, Namhyung Kim wrote: > Like other functions, it should stop counting if there's any folded > callchain. Because of this it occasionally lose the cursor at the end. are you reffering to the case when the browser wouldn't jump to the last entry, but the curs

[PATCH] hisi_sas: add dependency for HAS_IOMEM

2016-01-26 Thread John Garry
Not every arch has io, so fix build by adding necessary dependency. Signed-off-by: John Garry Suggested-by: Richard Weinberger diff --git a/drivers/scsi/hisi_sas/Kconfig b/drivers/scsi/hisi_sas/Kconfig index b676618..d1dd161 100644 --- a/drivers/scsi/hisi_sas/Kconfig +++ b/drivers/scsi/hisi_sas

Re: [PATCH 1/2] crypto: jitterentropy - always select CRYPTO_RNG

2016-01-26 Thread Arnd Bergmann
On Tuesday 26 January 2016 18:30:18 Herbert Xu wrote: > On Mon, Jan 25, 2016 at 05:50:34PM +0100, Arnd Bergmann wrote: > > When building the jitterentropy driver by itself, we get a link error > > when CRYPTO_RNG is not enabled as well: > > > > crypto/built-in.o: In function `jent_mod_init': > > j

Re: [PATCH] ASoC: fsl: add imx-cs427x machine driver

2016-01-26 Thread Mark Brown
On Tue, Jan 26, 2016 at 09:43:58AM +, Felipe Ferreri Tonello wrote: > On 26/01/16 02:29, Rob Herring wrote: > > Do all the i.MX audio bindings really vary more that the codec? Seems > > like a lot of duplication. > I agree, but that how it is today. These platform drivers for imx are > simil

Re: [PATCH v3 3/4] x86/efi: print size in binary units in efi_print_memmap

2016-01-26 Thread Matt Fleming
On Mon, 25 Jan, at 08:37:58PM, Elliott, Robert (Persistent Memory) wrote: > > For the UEFI memory map, that was indeed my intention. I > don't want it silently round to "20 GiB". Even rounding > to "19.999 GiB" is imprecise. OK, let's just go with your original patch Robert (minus the @ addr bi

Re: [PATCH v2] serial: atmel: Use atmel_port consistently

2016-01-26 Thread kbuild test robot
-atmel_port-consistently/20160126-190554 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing config: xtensa-allyesconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross

ipipe_virtualize_irq

2016-01-26 Thread Julia Lawall
Hello, I wonder where the function ipipe_virtualize_irq is defined? It is called in the function __ipipe_enable_pipeline in arch/blackfin/kernel/ipipe.c, but it doesn't seem to be defined anywhere in the kernel. julia

net/bluetooth: workqueue destruction WARNING in hci_unregister_dev

2016-01-26 Thread Dmitry Vyukov
Hello, I've hit the following warning while running syzkaller fuzzer: [ cut here ] WARNING: CPU: 2 PID: 17409 at kernel/workqueue.c:3968 destroy_workqueue+0x172/0x550() Modules linked in: CPU: 2 PID: 17409 Comm: syz-executor Not tainted 4.5.0-rc1+ #283 Hardware name: QEMU

Re: [patch] ceph: checking for IS_ERR instead of NULL

2016-01-26 Thread Yan, Zheng
> On Jan 26, 2016, at 19:40, Ilya Dryomov wrote: > > On Tue, Jan 26, 2016 at 12:16 PM, Yan, Zheng wrote: >> >>> On Jan 26, 2016, at 18:30, Ilya Dryomov wrote: >>> >>> On Tue, Jan 26, 2016 at 10:24 AM, Dan Carpenter >>> wrote: ceph_osdc_alloc_request() returns NULL on error, it never re

Re: [RFC PATCH] selftests: use INSTALL_HDR_PATH instead of relative paths

2016-01-26 Thread Sudeep Holla
On Thu, Jan 14, 2016 at 11:17 AM, Sudeep Holla wrote: > > > On 14/01/16 03:37, Michael Ellerman wrote: >> [...] >> >> Does the patch below work for you? It uses INSTALL_HDR_PATH if it is >> defined, >> or otherwise KERNEL_HEADERS if it is defined, or finally it guesses at >> ../../../usr/include

Re: [PATCH v3 3/4] x86/efi: print size in binary units in efi_print_memmap

2016-01-26 Thread Andy Shevchenko
On Tue, 2016-01-26 at 11:50 +, Matt Fleming wrote: > On Mon, 25 Jan, at 08:37:58PM, Elliott, Robert (Persistent Memory) > wrote: > > > > For the UEFI memory map, that was indeed my intention.  I > > don't want it silently round to "20 GiB".  Even rounding > > to "19.999 GiB" is imprecise. > >

Re: Regression in v4.5-rc1, bisected to commit 39bfcd5235e0 ("drm/i915: more virtual south bridge detection")

2016-01-26 Thread Harald Arnesen
Bjørn Mork [2016-01-25 03:52]: > I have confirmed tha reverting this commit on top of v4.5-rc1 fixes the > problem. Confirmed. Fixes the problem with my T500 also. -- Hilsen Harald

UBSAN: Undefined behaviour in fs/ext4/mballoc.c:1274:11

2016-01-26 Thread Chris Bainbridge
Mounting ext4 fs on 4.5.0-rc1 [ 1176.592557] [ 1176.592565] UBSAN: Undefined behaviour in fs/ext4/mballoc.c:1274:11 [ 1176.592567] shift exponent -1 is negative [ 1176.592571] CPU: 3 PID: 4976 Comm: QThread Not taint

Re: [PATCH] regulator: return NULL for dummy bulk_get operation

2016-01-26 Thread Mark Brown
On Mon, Jan 25, 2016 at 04:58:50PM +0100, Arnd Bergmann wrote: > Drivers that call regulator_bulk_get or devm_regulator_bulk_get when > CONFIG_REGULATOR is disabled see the function return successfully, but > cannot use the "consumer" pointers that are meant to be returned from > the functions, as

Re: [PATCH V2 4/4] mfd: mediatek: add MT6323 support to MT6397 driver

2016-01-26 Thread John Crispin
On 26/01/2016 09:34, Lee Jones wrote: > On Tue, 26 Jan 2016, John Crispin wrote: >> On 26/01/2016 04:07, Henry Chen wrote: >>> On Mon, 2016-01-25 at 19:59 +0100, John Crispin wrote: On 25/01/2016 19:44, Matthias Brugger wrote: > On Monday 25 Jan 2016 16:36:40 John Crispin wrote: >>>

[PATCH] zram: export the number of available comp streams

2016-01-26 Thread Sergey Senozhatsky
I've been asked several very simple questions: a) How can I ensure that zram uses (or used) several compression streams? b) What is the current number of comp streams (how much memory does zram *actually* use for compression streams, if there are more than one stream)? zram, indeed, does

[PATCH] iio: ltr501: Use a signed return type for ltr501_match_samp_freq

2016-01-26 Thread Lucas Tanure
The return type "unsigned int" was used by the ltr501_match_samp_freq function despite of the aspect that it will eventually return a negative error code. So, change to signed int and get the value by reference in the parameters. Done with the help of Coccinelle. Signed-off-by: Lucas Tanure ---

Re: [PATCH v3 17/17] Xen: EFI: Parse DT parameters for Xen specific UEFI

2016-01-26 Thread Matt Fleming
On Sat, 23 Jan, at 11:19:44AM, Shannon Zhao wrote: > From: Shannon Zhao > > Add a new function to parse DT parameters for Xen specific UEFI just > like the way for normal UEFI. Then it could reuse the existing codes. > > If Xen supports EFI, initialize runtime services. > > Signed-off-by: Shann

[PATCH 2/2] perf tools: Fix another seg fault using Intel PT

2016-01-26 Thread Adrian Hunter
Fix segmentation fault using: perf record -e intel_pt//u uname perf script Back trace: 0 __list_del (next=0x1880710, prev=0x0) at /home/ahunter/git/linux/tools/include/linux/list.h:89 1 __list_del_entry (entry=0x1880710) at /home/ahunter/git/linux/tools/include/linux/list

[PATCH 0/2] perf tools: Fix seg fault with Intel PT

2016-01-26 Thread Adrian Hunter
Hi Here are a couple of small fixes for problems noticed on v4.5-rc1, although the first goes back to v4.4 and is cc stable. Adrian Hunter (2): perf tools: Fix seg fault with Intel PT perf tools: Fix another seg fault using Intel PT tools/perf/util/parse-events.c | 3 +++ tools/per

[RFC 10/10] Documentation: build asciidoc documentation

2016-01-26 Thread Jani Nikula
Finally wrap up all the work in the preceding patches, and generate a pipeline from asciidoc documentation as part of the DocBook documentation. The biggest difference in building DocBook xml from asciidoc compared to the docproc pipeline is the use of intermediate asciidoc snippets for the kernel

[RFC 09/10] Documentation: convert gpu.tmpl to gpu.txt

2016-01-26 Thread Jani Nikula
This is the verbatim result of $ scripts/tmpl2asciidoc < Documentation/DocBook/gpu.tmpl > Documentation/DocBook/gpu.txt $ rm Documentation/DocBook/gpu.tmpl It should probably be split up to separate documents for GPU drivers etc. using include macros within asciidoc, but this is for demonstratio

Re: [RFC] A first shot at asciidoc-based formatted docs

2016-01-26 Thread Jani Nikula
On Tue, 26 Jan 2016, Jonathan Corbet wrote: > So here is a proof-of-concept series showing how a fully asciidoc-based > toolchain might work. Lots of hackery here, this isn't meant to be applied > to anything at this point, but it's a good start. What this series has is: > > - Jani Nikula's pat

Re: [PATCH] iio: ltr501: Use a signed return type for ltr501_match_samp_freq

2016-01-26 Thread Peter Meerwald-Stadler
> The return type "unsigned int" was used by the ltr501_match_samp_freq function > despite of the aspect that it will eventually return a negative error code. > So, change to signed int and get the value by reference in the parameters. ok, or just change the return type to int w/o adding a new po

Re: [v3,11/41] mips: reuse asm-generic/barrier.h

2016-01-26 Thread Will Deacon
On Mon, Jan 25, 2016 at 05:06:46PM -0800, Paul E. McKenney wrote: > On Mon, Jan 25, 2016 at 02:41:34PM +, Will Deacon wrote: > > On Fri, Jan 15, 2016 at 11:28:45AM -0800, Paul E. McKenney wrote: > > > On Fri, Jan 15, 2016 at 09:54:01AM -0800, Paul E. McKenney wrote: > > > > On Fri, Jan 15, 2016

[RFC 06/10] scripts: add a kernel-doc helper for special invocation

2016-01-26 Thread Jani Nikula
Add a helper for calling kernel-doc, with the -w parameter describing the parameters to pass on to kernel-doc, in a special format. [This is easier to explain and will make more sense in the context of the following patches. The -w parameter is expected to be a filename with the kernel-doc paramet

[RFC 05/10] scripts: add asciidoc-includes to extract includes from asciidoc

2016-01-26 Thread Jani Nikula
Given an asciidoc input file in standard input, print the files included using asciidoc include macros to standard output, one per line. This will be helpful in asciidoc dependency generation. Signed-off-by: Jani Nikula --- scripts/asciidoc-includes | 6 ++ 1 file changed, 6 insertions(+) c

[RFC 08/10] scripts: add a crude converter from DocBook tmpl to asciidoc

2016-01-26 Thread Jani Nikula
Use some pre- and post-processing to handle the "![EIFPCD]" docproc directives in the DocBook, and let pandoc do the rest. Manual editing will be required, but this will give a big jump start. The asciidoc result would be nicer without the pandoc --no-wrap option, but unfortunately pandoc also wra

[RFC 07/10] scripts: add tool for generating asciidoc dependencies and rules

2016-01-26 Thread Jani Nikula
Given a list of special format filenames, generate dependencies and rules for kernel-doc invocation on those files, to be included in to Makefiles. Signed-off-by: Jani Nikula --- scripts/kernel-doc-deps | 66 + 1 file changed, 66 insertions(+) cre

[RFC 02/10] kernel-doc: add support for asciidoc output

2016-01-26 Thread Jani Nikula
Add new -asciidoc option to produce asciidoc output from kernel-doc. The output is formatted internally, with no dependencies on external tools. Any asciidoc formatting present in kernel-doc will naturally be present in the resulting asciidoc as well. Highlighting of functions(), &struct structure

[RFC 04/10] kernel-doc: add support for printing DOC: comments with escaped names

2016-01-26 Thread Jani Nikula
-function supports printing named DOC: sections, but spaces and braces and quotes etc. are allowed in section titles. This is tricky to handle in scripts, let alone Makefiles. Add a new -doc parameter for dumping doc sections (to not convolute -function more than it already is), with support for "

[RFC 03/10] kernel-doc: support printing exported and non-exported symbols

2016-01-26 Thread Jani Nikula
Currently we use docproc to figure out which symbols are exported, and then docproc calls kernel-doc on specific functions, to get documentation on exported functions. According to git blame and docproc comments, this is due to historical reasons, as functions and their corresponding EXPORT_SYMBOL*

Re: [PATCH v3 16/17] FDT: Add a helper to get specified name subnode

2016-01-26 Thread Stefano Stabellini
On Sat, 23 Jan 2016, Shannon Zhao wrote: > From: Shannon Zhao > > Sometimes it needs to check if there is a node in FDT by full path. > Introduce this helper to get the specified name subnode if it exists. > > Signed-off-by: Shannon Zhao > --- > CC: Rob Herring > --- > drivers/of/fdt.c

[RFC 01/10] kernel-doc: rewrite usage description, remove duplicated comments

2016-01-26 Thread Jani Nikula
Instead of having the kernel-doc usage in both comments and in output to the user, merge them all to one here document. While at it, imrove the text and make it pretty. Give shoemaker's children some shoes. Signed-off-by: Jani Nikula --- scripts/kernel-doc | 83 --

Re: [PATCH] iio: ltr501: Use a signed return type for ltr501_match_samp_freq

2016-01-26 Thread Lucas Tanure
Hi, On Tue, Jan 26, 2016 at 10:10 AM, Peter Meerwald-Stadler wrote: > >> The return type "unsigned int" was used by the ltr501_match_samp_freq >> function >> despite of the aspect that it will eventually return a negative error code. >> So, change to signed int and get the value by reference in

[PATCH v8 1/5] dt-bindings: iommu: Add binding for mediatek IOMMU

2016-01-26 Thread Yong Wu
This patch add mediatek iommu dts binding document. Signed-off-by: Yong Wu Acked-by: Rob Herring --- .../devicetree/bindings/iommu/mediatek,iommu.txt | 68 ++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/iommu/mediatek,iommu.txt d

[PATCH v8 0/5] MT8173 IOMMU SUPPORT

2016-01-26 Thread Yong Wu
This patch set adds support for m4u(Multimedia Memory Management Unit), Currently it only support the m4u with 2 levels of pagetable on mt8173. It's also based on Robin Murphy's reposting Short-descriptor v2. Please check the hardware block diagram of Mediatek IOMMU. m4u (M

[PATCH v8 4/5] iommu/mediatek: Add mt8173 IOMMU driver

2016-01-26 Thread Yong Wu
This patch adds support for mediatek m4u (MultiMedia Memory Management Unit). Signed-off-by: Yong Wu --- drivers/iommu/Kconfig | 16 + drivers/iommu/Makefile| 1 + drivers/iommu/mtk_iommu.c | 732 ++ 3 files changed, 749 insertions(+) creat

[PATCH v8 3/5] memory: mediatek: Add SMI driver

2016-01-26 Thread Yong Wu
This patch add SMI(Smart Multimedia Interface) driver. This driver is responsible to enable/disable iommu and control the power domain and clocks of each local arbiter. Signed-off-by: Yong Wu Tested-by: Philipp Zabel --- drivers/memory/Kconfig | 8 ++ drivers/memory/Makefile| 1 + d

[PATCH v8 2/5] dt-bindings: mediatek: Add smi dts binding

2016-01-26 Thread Yong Wu
This patch add smi binding document and smi local arbiter header file. Signed-off-by: Yong Wu --- .../memory-controllers/mediatek,smi-common.txt | 24 + .../memory-controllers/mediatek,smi-larb.txt | 25 + include/dt-bindings/memory/mt8173-larb-port.h | 111 +

[PATCH v8 5/5] dts: mt8173: Add iommu/smi nodes for mt8173

2016-01-26 Thread Yong Wu
This patch add the iommu/larbs nodes for mt8173 Signed-off-by: Yong Wu --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 81 1 file changed, 81 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index ec1

Re: [PATCH V2 3/5] PCI: xilinx: Modifying AXI PCIe Host Bridge driver to work on both Zynq and Microblaze

2016-01-26 Thread Arnd Bergmann
On Tuesday 26 January 2016 10:59:12 Michal Simek wrote: > >> diff --git a/drivers/pci/host/pcie-xilinx.c > >> b/drivers/pci/host/pcie-xilinx.c > >> index 3e3757f..1981948 100644 > >> --- a/drivers/pci/host/pcie-xilinx.c > >> +++ b/drivers/pci/host/pcie-xilinx.c > >> @@ -92,7 +92,12 @@ > >> #defin

Re: [PATCHSET 00/12] perf tools: Apply percent-limit to callchains

2016-01-26 Thread Jiri Olsa
On Sun, Jan 24, 2016 at 10:53:23PM +0900, Namhyung Kim wrote: > Hello, > > This patchset tries to implement percent limit to callchains which was > requested by Andi Kleen. For some reason, limiting callchains by > (overhead) percentage didn't work well. This patch fixes it and make > --percent-

Re: [v3,11/41] mips: reuse asm-generic/barrier.h

2016-01-26 Thread Will Deacon
On Mon, Jan 25, 2016 at 10:03:22PM -0800, Paul E. McKenney wrote: > On Mon, Jan 25, 2016 at 04:42:43PM +, Will Deacon wrote: > > On Fri, Jan 15, 2016 at 01:58:53PM -0800, Paul E. McKenney wrote: > > > PPC Overlapping Group-B sets version 4 > > > "" > > > (* When the Group-B sets from two differ

[PATCH 1/2] perf tools: Fix seg fault with Intel PT

2016-01-26 Thread Adrian Hunter
Fix segmentation fault using: perf record -e intel_pt//u uname Back trace: 0 tracepoint_error (err=13, err@entry=-13, sys=sys@entry=0x18706c0 "sched", name=name@entry=0x1871c70 "sched_switch", e=, e=) at util/parse-events.c:416 1 0x0049791c in add_tracepoint (head_config=

Re: [RFC] A first shot at asciidoc-based formatted docs

2016-01-26 Thread Daniel Vetter
On Tue, Jan 26, 2016 at 1:08 PM, Jani Nikula wrote: > On Tue, 26 Jan 2016, Jonathan Corbet wrote: >> So here is a proof-of-concept series showing how a fully asciidoc-based >> toolchain might work. Lots of hackery here, this isn't meant to be applied >> to anything at this point, but it's a good

Re: [PATCH v2] ata: add AMD Seattle platform driver

2016-01-26 Thread Arnd Bergmann
On Monday 25 January 2016 15:43:00 Tejun Heo wrote: > On Thu, Jan 14, 2016 at 10:31:11AM -0600, Brijesh Singh wrote: > > AMD Seattle SATA controller mostly conforms to AHCI interface with some > > special register to control SGPIO interface. In the case of an AHCI > > controller, the SGPIO feature

[PATCH v1 1/1] mfd: intel-lpss: Pass I2C configuration via properties on BXT

2016-01-26 Thread Andy Shevchenko
From: Mika Westerberg I2C host controller need to be configured properly in order to meet I2C timings specified in the I2C protocol specification. Some Intel Broxton based machines do not have this information in the ACPI namespace (or the boot firmware does not support ACPI at all) so we use bui

Re: linux-next: build failure after merge of the akpm tree

2016-01-26 Thread Vinod Koul
On Mon, Jan 25, 2016 at 02:45:55PM +0100, Takashi Iwai wrote: > Below is the revised one. Acked-by: Vinod Koul Thanks for fixing this up... -- ~Vinod

[PATCH] x86/head_64.S: remove unused L3_PAGE_OFFSET

2016-01-26 Thread Alexander Kuleshov
The kernel/head_64.S has L3_PAGE_OFFSET definition which is not used anywhere. It was introduced in the a6523748bd commit (paravirt/x86, 64-bit: move __PAGE_OFFSET to leave a space for hypervisor by Eduardo Habkost ), but still not used anywhere. Signed-off-by: Alexander Kuleshov --- arch/x86/ke

Re: [PATCH 3/3] tty: hvc_xen: hide xen_console_remove when unused

2016-01-26 Thread Stefano Stabellini
On Mon, 25 Jan 2016, Boris Ostrovsky wrote: > On 01/25/2016 04:54 PM, Arnd Bergmann wrote: > > xencons_disconnect_backend() is only called from xen_console_remove(), > > and also from xencons_probe()/xencons_resume(). But those two are also under > the > same ifdef. Good point. Aside from this th

Re: [PATCH v3 14/17] XEN: EFI: Move x86 specific codes to architecture directory

2016-01-26 Thread Shannon Zhao
On 2016/1/26 19:31, Stefano Stabellini wrote: > On Tue, 26 Jan 2016, Shannon Zhao wrote: >> > On 2016/1/26 0:44, Stefano Stabellini wrote: >>> > > On Sat, 23 Jan 2016, Shannon Zhao wrote: > > >> > From: Shannon Zhao > > >> > > > >> > Move x86 specific codes to architecture directory

[PATCH 0/3] Introduce the cypto engine framework

2016-01-26 Thread Baolin Wang
Now block cipher engines need to implement and maintain their own queue/thread for processing requests, moreover currently helpers provided for only the queue itself (in crypto_enqueue_request() and crypto_dequeue_request()) but they don't help with the mechanics of driving the hardware (things lik

[PATCH 2/3] crypto: Introduce the block request crypto engine framework

2016-01-26 Thread Baolin Wang
Now block cipher engines need to implement and maintain their own queue/thread for processing requests, moreover currently helpers provided for only the queue itself (in crypto_enqueue_request() and crypto_dequeue_request()) but they don't help with the mechanics of driving the hardware (things lik

Re: [PATCH v3 16/17] FDT: Add a helper to get specified name subnode

2016-01-26 Thread Shannon Zhao
On 2016/1/26 20:11, Stefano Stabellini wrote: > On Sat, 23 Jan 2016, Shannon Zhao wrote: >> > From: Shannon Zhao >> > >> > Sometimes it needs to check if there is a node in FDT by full path. >> > Introduce this helper to get the specified name subnode if it exists. >> > >> > Signed-off-by: Sha

[PATCH 3/3] crypto: omap-aes: Support crypto engine framework

2016-01-26 Thread Baolin Wang
Integrate with the newly added crypto engine to make the crypto hardware engine underutilized as each block needs to be processed before the crypto hardware can start working on the next block. The requests from dm-crypt will be listed into engine queue and processed by engine automatically, so re

[PATCH 1/3] crypto: Introduce crypto_queue_len() helper function

2016-01-26 Thread Baolin Wang
This patch introduces crypto_queue_len() helper function to help to get the queue length in the crypto queue list now. Signed-off-by: Baolin Wang --- include/crypto/algapi.h |4 1 file changed, 4 insertions(+) diff --git a/include/crypto/algapi.h b/include/crypto/algapi.h index c9fe145

Re: net/bluetooth: workqueue destruction WARNING in hci_unregister_dev

2016-01-26 Thread Dmitry Vyukov
On Tue, Jan 26, 2016 at 12:53 PM, Dmitry Vyukov wrote: > Hello, > > I've hit the following warning while running syzkaller fuzzer: > > [ cut here ] > WARNING: CPU: 2 PID: 17409 at kernel/workqueue.c:3968 > destroy_workqueue+0x172/0x550() > Modules linked in: > CPU: 2 PID: 1

Re: [PATCH 07/12] perf hists browser: Fix callchain_node__count_rows()

2016-01-26 Thread Namhyung Kim
Hi Jiri, On Tue, Jan 26, 2016 at 12:46:38PM +0100, Jiri Olsa wrote: > On Sun, Jan 24, 2016 at 10:53:30PM +0900, Namhyung Kim wrote: > > Like other functions, it should stop counting if there's any folded > > callchain. Because of this it occasionally lose the cursor at the end. > > are you reffe

Re: [PATCH v3] watchdog: Add watchdog timer support for the WinSystems EBC-C384

2016-01-26 Thread William Breathitt Gray
On 01/26/2016 04:09 AM, Paul Bolle wrote: > On ma, 2016-01-25 at 14:09 -0500, William Breathitt Gray wrote: >> --- a/drivers/watchdog/Kconfig >> +++ b/drivers/watchdog/Kconfig > >> +config EBC_C386_WDT >> +tristate "WinSystems EBC-C384 Watchdog Timer" >> +depends on X86 >> +select WATC

[PATCH v2 1/2] lightnvm: specify target's logical address area

2016-01-26 Thread Wenwei Tao
We can create more than one target on a lightnvm device by specifying its begin lun and end lun. But only specify the physical address area is not enough, we need to get the corresponding non- intersection logical address area division from the backend device's logcial address space. Otherwise the

[PATCH v2 2/2] lightnvm: add non-continuous lun target creation support

2016-01-26 Thread Wenwei Tao
When create a target, we specify the begin lunid and the end lunid, and get the corresponding continuous luns from media manager, if one of the luns is not free, we failed to create the target, even if the device's total free luns are enough. So add non-continuous lun target creation support, thus

Re: [PATCH] acpi: implement Generic Event Device

2016-01-26 Thread Andy Shevchenko
On Mon, Jan 25, 2016 at 11:29 PM, Sinan Kaya wrote: Few comments below. > Generic Event Device described in ACPI 6.1 allows platforms to handle > platform interrupts in ACPI ASL statements. It borrows constructs like > _EVT from GPIO events. Can it share code with gpiolib-acpi.c ? I see some du

Re: [RFC] A first shot at asciidoc-based formatted docs

2016-01-26 Thread Jani Nikula
On Tue, 26 Jan 2016, Daniel Vetter wrote: > On Tue, Jan 26, 2016 at 1:08 PM, Jani Nikula wrote: >> I first took roughly the same approach as you did. I was really >> impressed with the speed and the beauty of the produced HTML. The >> trouble is, neither asciidoc nor asciidoctor can produce chunk

Re: linux-next: build failure after merge of the akpm tree

2016-01-26 Thread Vinod Koul
On Mon, Jan 25, 2016 at 01:55:46PM +, Mark Brown wrote: > > though we will need to come up with an alternative solution for the > affected architectures if anyone ends up caring (MIPS or PowerPC might > possibly). Okay I did some rethink on this. So we should be able to make MAX_NUM_CODEC_DES

[PATCH] clk: rockchip: Reparent hclk_rom, hclk_i2s0 and hclk_spdif to hclk_cpubus on RK3066/RK3188

2016-01-26 Thread Alexander Kochetkov
In order to make peripherals (rom, i2s0 or spdif) accessible via cpu, hclk_cpubus gate must be opened. Without that all accesses (readl/writel) return wrong data. The patch fixes regression introduced by recent clock code. Fixes: 78eaf6095cc763c ("clk: rockchip: disable unused clocks") Signed-of

[PATCH v4 07/14] mm, page_alloc: print symbolic gfp_flags on allocation failure

2016-01-26 Thread Vlastimil Babka
It would be useful to translate gfp_flags into string representation when printing in case of an allocation failure, especially as the flags have been undergoing some changes recently and the script ./scripts/gfp-translate needs a matching source version to be accurate. Example output: stapio: pa

[PATCH v3 2/2] [media] tvp5150: Add pad-level subdev operations

2016-01-26 Thread Javier Martinez Canillas
From: Laurent Pinchart This patch enables the tvp5150 decoder driver to be used with the media controller framework by adding pad-level subdev operations and init the media entity pad. Signed-off-by: Laurent Pinchart Signed-off-by: Javier Martinez Canillas --- Changes in v3: - Split the form

Re: [PATCH V3 06/11] soc: mediatek: PMIC wrap:: SPI_WRITE needs a different bitmask for MT2701/7623

2016-01-26 Thread Yingjoe Chen
nit for the subject: soc: mediatek: PMIC wrap:: SPI_WRITE needs a different bitmask for MT2701/7623 ^^ extra : here. Otherwise the patch looks good to me. Joe.C On Mon, 2016-01-25 at 10:53 +0100, John Crispin wrote: > MT2701 and MT7623 use a different bitmask for the S

[PATCH v3 1/2] [media] tvp5150: fix tvp5150_fill_fmt()

2016-01-26 Thread Javier Martinez Canillas
From: Laurent Pinchart The tvp5150 output video is interlaced so mark the format field as alternate and reduce the height to the half. Signed-off-by: Laurent Pinchart [javier: split patch and write commit message] Signed-off-by: Javier Martinez Canillas --- Changes in v3: None Changes in v2:

[PATCH v4 13/14] mm, page_owner: dump page owner info from dump_page()

2016-01-26 Thread Vlastimil Babka
The page_owner mechanism is useful for dealing with memory leaks. By reading /sys/kernel/debug/page_owner one can determine the stack traces leading to allocations of all pages, and find e.g. a buggy driver. This information might be also potentially useful for debugging, such as the VM_BUG_ON_PAG

[PATCH v4 14/14] mm, debug: move bad flags printing to bad_page()

2016-01-26 Thread Vlastimil Babka
Since bad_page() is the only user of the badflags parameter of dump_page_badflags(), we can move the code to bad_page() and simplify a bit. The dump_page_badflags() function is renamed to __dump_page() and can still be called separately from dump_page() for temporary debug prints where page_owner

[PATCH v3 0/2] [media] tvp5150: Add MC support

2016-01-26 Thread Javier Martinez Canillas
Hello, This series is a split of patch [0] that was part of this series [1]. All patches in that series were picked besides [0] that Mauro asked to split in two different patches. I kept the version number of the previous series (v2) so the patches are marked as v3. [0]: http://lkml.iu.edu/hype

[PATCH v4 08/14] mm, oom: print symbolic gfp_flags in oom warning

2016-01-26 Thread Vlastimil Babka
It would be useful to translate gfp_flags into string representation when printing in case of an OOM, especially as the flags have been undergoing some changes recently and the script ./scripts/gfp-translate needs a matching source version to be accurate. Example output: a.out invoked oom-killer:

[PATCH v4 02/14] mm, tracing: make show_gfp_flags() up to date

2016-01-26 Thread Vlastimil Babka
The show_gfp_flags() macro provides human-friendly printing of gfp flags in tracepoints. However, it is somewhat out of date and missing several flags. This patches fills in the missing flags, and distinguishes properly between GFP_ATOMIC and __GFP_ATOMIC which were both translated to "GFP_ATOMIC".

Re: [PATCH v6 8/9] Implement kernel live patching for ppc64le (ABIv2)

2016-01-26 Thread Petr Mladek
On Tue 2016-01-26 11:50:25, Miroslav Benes wrote: > > [ added Petr to CC list ] > > On Mon, 25 Jan 2016, Torsten Duwe wrote: > > > * create the appropriate files+functions > > arch/powerpc/include/asm/livepatch.h > > klp_check_compiler_support, > > klp_arch_set_pc > > a

Re: [RFC PATCH] dax, ext2, ext4, XFS: fix data corruption race

2016-01-26 Thread Matthew Wilcox
On Mon, Jan 25, 2016 at 02:59:21PM +0100, Jan Kara wrote: > On Mon 25-01-16 09:01:07, Dave Chinner wrote: > > What happens if we get rid of that DAX write fault optimisation that > > skips the initial read fault? The write fault will always run on a > > mapping that has a hole loaded, right?, so th

[PATCH v4 05/14] mm, printk: introduce new format string for flags

2016-01-26 Thread Vlastimil Babka
In mm we use several kinds of flags bitfields that are sometimes printed for debugging purposes, or exported to userspace via sysfs. To make them easier to interpret independently on kernel version and config, we want to dump also the symbolic flag names. So far this has been done with repeated cal

[PATCH v4 04/14] mm, tracing: unify mm flags handling in tracepoints and printk

2016-01-26 Thread Vlastimil Babka
In tracepoints, it's possible to print gfp flags in a human-friendly format through a macro show_gfp_flags(), which defines a translation array and passes is to __print_flags(). Since the following patch will introduce support for gfp flags printing in printk(), it would be nice to reuse the array.

Re: [PATCH] Let AHCI dirver skip Lenovo SWRAID controller

2016-01-26 Thread Ocean HY1 He
Hi Alan, Thanks for your comments! Lenovo SWRAID driver is a closed source driver at this time, I am afraid it's not possible to submit it to kernel. This patch is very important and critical for Lenovo next generation Servers. I have tried to make sure this patch only impacts Lenovo dedicate

[PATCH v4 09/14] mm, page_owner: print migratetype of page and pageblock, symbolic flags

2016-01-26 Thread Vlastimil Babka
The information in /sys/kernel/debug/page_owner includes the migratetype of the pageblock the page belongs to. This is also checked against the page's migratetype (as declared by gfp_flags during its allocation), and the page is reported as Fallback if its migratetype differs from the pageblock's o

[PATCH v4 11/14] mm, page_owner: copy page owner info during migration

2016-01-26 Thread Vlastimil Babka
The page_owner mechanism stores gfp_flags of an allocation and stack trace that lead to it. During page migration, the original information is practically replaced by the allocation of free page as the migration target. Arguably this is less useful and might lead to all the page_owner info for migr

[PATCH v4 10/14] mm, page_owner: convert page_owner_inited to static key

2016-01-26 Thread Vlastimil Babka
CONFIG_PAGE_OWNER attempts to impose negligible runtime overhead when enabled during compilation, but not actually enabled during runtime by boot param page_owner=on. This overhead can be further reduced using the static key mechanism, which this patch does. Signed-off-by: Vlastimil Babka Cc: Joo

[PATCH v4 12/14] mm, page_owner: track and print last migrate reason

2016-01-26 Thread Vlastimil Babka
During migration, page_owner info is now copied with the rest of the page, so the stacktrace leading to free page allocation during migration is overwritten. For debugging purposes, it might be however useful to know that the page has been migrated since its initial allocation. This might happen ma

[PATCH v4 00/14] mm flags in printk, page_owner improvements for debugging

2016-01-26 Thread Vlastimil Babka
Changes since v3: - Rebased on next-20160125 - Changed the %pg format string for flags to %pG due to clash with another patch already merged merged - Update GFP flags (patches 2, 3) for new changes and stuff I overlooked the last time - __GFP_X flags are now printed as __GFP_X instead of GFP_X

[PATCH v4 06/14] mm, debug: replace dump_flags() with the new printk formats

2016-01-26 Thread Vlastimil Babka
With the new printk format strings for flags, we can get rid of dump_flags() in mm/debug.c. This also fixes dump_vma() which used dump_flags() for printing vma flags. However dump_flags() did a page-flags specific filtering of bits higher than NR_PAGEFLAGS in order to remove the zone id part. For

[PATCH v4 01/14] tracepoints: move trace_print_flags definitions to tracepoint-defs.h

2016-01-26 Thread Vlastimil Babka
The following patch will need to declare array of struct trace_print_flags in a header. To prevent this header from pulling in all of RCU through trace_events.h, move the struct trace_print_flags{_64} definitions to the new lightweight tracepoint-defs.h header. Signed-off-by: Vlastimil Babka Cc:

[PATCH v4 03/14] tools, perf: make gfp_compact_table up to date

2016-01-26 Thread Vlastimil Babka
When updating tracing's show_gfp_flags() I have noticed that perf's gfp_compact_table is also outdated. Fill in the missing flags and place a note in gfp.h to increase chance that future updates are synced. Convert the __GFP_X flags from "GFP_X" to "__GFP_X" strings in line with the previous patch.

Re: [RFC 8/8] Do not reclaim the whole CPU bandwidth

2016-01-26 Thread luca abeni
Hi Peter, On Fri, 15 Jan 2016 09:50:04 +0100 Peter Zijlstra wrote: [...] > > >>NOTE: the fraction of CPU time that cannot be reclaimed is > > >>currently hardcoded as (1 << 20) / 10 -> 90%, but it must be made > > >>configurable! > > > > > >So the alternative is an explicit SCHED_OTHER server whi

Re: [PATCHSET 00/12] perf tools: Apply percent-limit to callchains

2016-01-26 Thread Namhyung Kim
On Tue, Jan 26, 2016 at 01:14:47PM +0100, Jiri Olsa wrote: > On Sun, Jan 24, 2016 at 10:53:23PM +0900, Namhyung Kim wrote: > > Hello, > > > > This patchset tries to implement percent limit to callchains which was > > requested by Andi Kleen. For some reason, limiting callchains by > > (overhead)

mm: VM_BUG_ON_PAGE(PageTail(page)) in mbind

2016-01-26 Thread Dmitry Vyukov
Hello, The following program triggers the following bug: page:eab82240 count:0 mapcount:1 mapping:dead index:0x0 compound_mapcount: 0 flags: 0x1fffc00() page dumped because: VM_BUG_ON_PAGE(PageTail(page)) [ cut here ] kernel BUG at mm/vmscan.c:1

Re: [PATCH 0/4] spi: pxa2xx: Chip select fixes for Intel Baytrail and Braswell

2016-01-26 Thread Jarkko Nikula
On 01/26/2016 01:18 PM, Mika Westerberg wrote: It turns out that in Windows SPI drivers are responsible for handling ACPI DeviceSelection field themselves. Furthermore there has been separate drivers for big core and atom SPI host controllers. For atom (including Baytrail and Braswell) the drive

Re: [PATCH V3 08/11] soc: mediatek: PMIC wrap: remove pwrap_is_mt8135() and pwrap_is_mt8173()

2016-01-26 Thread Yingjoe Chen
On Mon, 2016-01-25 at 10:53 +0100, John Crispin wrote: > With ore SoCs being added the list of helper functions like these would > grow. While at it also add a new flag "bridge" and use that insted of > pwrap_is_mt8173() where appropriate. typos? s/ore/more/ s/insted/instead/ I think you mean "h

Re: mm: WARNING in __delete_from_page_cache

2016-01-26 Thread Matthew Wilcox
On Tue, Jan 26, 2016 at 03:42:34AM +, Williams, Dan J wrote: > @@ -2907,7 +2912,12 @@ extern void replace_mount_options(struct super_block > *sb, char *options); >   >  static inline bool io_is_direct(struct file *filp) >  { > - return (filp->f_flags & O_DIRECT) || IS_DAX(file_inode(filp))

Re: [PATCH] drm/exynos: fix building without CONFIG_PM_SLEEP

2016-01-26 Thread Arnd Bergmann
On Tuesday 26 January 2016 15:21:41 Inki Dae wrote: > > -#ifdef CONFIG_PM_SLEEP > > How about just changing it to CONFIG_PM for consistency of other kms drivers? > Actually, I had modified it to PM since original auther, Gustavo Padovan, > posted runtime pm support. > However, it seems missing th

[PATCH v7 08/10] x86: early_printk: add USB3 debug port earlyprintk support

2016-01-26 Thread Lu Baolu
Add support for early printk by writing debug messages to the USB3 debug port. Users can use this type of early printk by specifying kernel parameter of "earlyprintk=xdbc". This gives users a chance of providing debug output. Signed-off-by: Lu Baolu --- Documentation/kernel-parameters.txt | 1 +

[PATCH v7 07/10] usb: dbc: handle endpoint stall

2016-01-26 Thread Lu Baolu
In case of endpoint stall, software is able to detect the situation by reading DCCTRL.HIT or DCCTRL.HOT bits. DbC follows the normal USB framework to handle endpoint stall. When software detects endpoint stall situation, it should wait until endpoint is recovered before read or write oprations. Si

[PATCH v7 06/10] usb: dbc: handle dbc-configured exit

2016-01-26 Thread Lu Baolu
DbC might exit configured state in some cases (refer to 7.6.4.4 in xHCI spec 1.1). Software needs detect and clear this situation by clearing DCCTRL.DCR and wait until the DbC configured before read or write oprations. Signed-off-by: Lu Baolu --- drivers/usb/early/xhci-dbc.c | 28 +++

<    4   5   6   7   8   9   10   11   12   >