[PATCH 0/2] Add UCS1002 USB Port Power Controller

2016-01-26 Thread Enric Balletbo i Serra
Dear all, This is the first version of the UCS1002 driver, a Programmable USB Port Power Controller with Charger Emulation. Any comments are welcome. Thanks in advance. Enric Balletbo i Serra (2): devicetree: Add UCS1002 USB Port Power Controller binding power: ucs1002: Add support for

Re: [PATCH] i2c: imx: add slave support

2016-01-26 Thread Dmitriy Baranov
Sorry, we should have added selecting this in our patch. The following fixes it: Subject: [PATCH] Select I2C_SLAVE for i2c-imx driver because it uses the generic slave interface. Signed-off-by: Dmitriy Baranov Signed-off-by: Maxim Syrchin ---

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

2016-01-26 Thread Fabio Estevam
On Tue, Jan 26, 2016 at 9:01 AM, Felipe Ferreri Tonello wrote: > Actually yes, thanks! I didn't know about the existence of fsl-asoc-card. > > I get some errors but I don't think they actually matter: > [ 19.734494] fsl-asrc 2034000.asrc: driver registered > [

Re: UBSAN: Undefined behaviour in fs/btrfs/inode.c:5845:10

2016-01-26 Thread David Sterba
On Tue, Jan 26, 2016 at 10:13:33AM +, Chris Bainbridge wrote: > Booting 4.5.0-rc1 with new UBSAN checker enabled: > > [3.859690] > > [3.859694] UBSAN: Undefined behaviour in fs/btrfs/inode.c:5845:10 > [

Re: Crashes with 874bbfe600a6 in 3.18.25

2016-01-26 Thread Petr Mladek
On Tue 2016-01-26 10:34:00, Jan Kara wrote: > On Sat 23-01-16 17:11:54, Thomas Gleixner wrote: > > On Sat, 23 Jan 2016, Ben Hutchings wrote: > > > On Fri, 2016-01-22 at 11:09 -0500, Tejun Heo wrote: > > > > > Looks like it requires more than trivial backport (I think). Tejun? > > > > > > > > The

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

[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 ---

[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

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 > ---

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] iio: inkern: fix a NULL dereference on error

2016-01-26 Thread Dan Carpenter
In twl4030_bci_probe() there are some failure paths where we call iio_channel_release() with a NULL pointer. (Apparently, that driver can opperate without a valid channel pointer). Let's fix it by adding a NULL check in iio_channel_release(). Fixes: 2202e1fc5a29 ('drivers: power:

Re: Crashes with 874bbfe600a6 in 3.18.25

2016-01-26 Thread Jan Kara
On Sat 23-01-16 17:11:54, Thomas Gleixner wrote: > On Sat, 23 Jan 2016, Ben Hutchings wrote: > > On Fri, 2016-01-22 at 11:09 -0500, Tejun Heo wrote: > > > > Looks like it requires more than trivial backport (I think). Tejun? > > > > > > The timer migration has changed quite a bit.  Given that

Re: [PATCH 05/22] hw_random: Fix dependencies for !HAS_IOMEM archs

2016-01-26 Thread Daniel Thompson
On 25/01/16 22:24, Richard Weinberger wrote: Not every arch has io memory. So, unbreak the build by fixing the dependencies. Signed-off-by: Richard Weinberger Reviewed-by: Daniel Thompson Thanks for cleaning up after me! ---

UBSAN: Undefined behaviour in drivers/usb/core/devio.c:1517:25

2016-01-26 Thread Chris Bainbridge
Booting 4.5.0-rc1 with new UBSAN checker enabled: [4.556968] [4.556972] UBSAN: Undefined behaviour in drivers/usb/core/devio.c:1517:25 [4.556975] shift exponent -1 is negative [4.556979] CPU: 2 PID:

[PATCH v4 11/13] mmc: sdhci-tegra: use sdhci_pltfm_init for private allocation

2016-01-26 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-tegra to this allocation. Signed-off-by: Jisheng Zhang Acked-by: Arnd

[PATCH v4 13/13] mmc: sdhci-pltfm: remove priv variable from sdhci_pltfm_host

2016-01-26 Thread Jisheng Zhang
Now all clients migration to use sdhci_pltfm_init for private allocation is done and there's no users of the priv variable, so we can remove it from the sdhci_pltfm_host structure. Signed-off-by: Jisheng Zhang Acked-by: Arnd Bergmann ---

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

2016-01-26 Thread Miroslav Benes
[ 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 > arch/powerpc/kernel/livepatch.c with a stub for >

Re: [PATCH] numa: fix /proc//numa_maps for hugetlbfs on s390

2016-01-26 Thread Michael Holzheu
On Mon, 25 Jan 2016 14:51:16 -0800 Andrew Morton wrote: > On Mon, 25 Jan 2016 17:30:42 +0100 Michael Holzheu > wrote: > > > When working with hugetlbfs ptes (which are actually pmds) is not > > valid to directly use pte functions like

Re: [RFC] hwmon: (fam15h_power) Add bit masking for tdp_limit

2016-01-26 Thread Gi-Oh Kim
On 26.01.2016 03:25, Huang Rui wrote: On Mon, Jan 25, 2016 at 07:41:07PM +0800, Gioh Kim wrote: The bits [31:29] of D18F5xE8 TDP Limit3 are reserved. I think it'd better to add masking to read ApmTdpLimit[28:16] precisely. Signed-off-by: Gioh Kim ---

Re: [PATCH 04/22] staging: iio: Fix dependencies for !HAS_IOMEM archs

2016-01-26 Thread Geert Uytterhoeven
On Mon, Jan 25, 2016 at 11:24 PM, Richard Weinberger wrote: > Not every arch has io memory. > So, unbreak the build by fixing the dependencies. > > Signed-off-by: Richard Weinberger Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s,

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

2016-01-26 Thread Will Deacon
On Tue, Jan 26, 2016 at 11:32:00AM +0100, Peter Zijlstra wrote: > On Tue, Jan 26, 2016 at 11:24:02AM +0100, Peter Zijlstra wrote: > > > Yeah, this goes under the header: memory-barriers.txt is _NOT_ a > > specification (I seem to keep repeating this). > > Do we want this ? > > --- >

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

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. >

[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

[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

[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

[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(), structures,

[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

[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

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

[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

Re: [PATCH] brcmfmac: sdio: Increase the default timeouts a bit

2016-01-26 Thread Sjoerd Simons
On Mon, 2016-01-25 at 21:07 +0100, Arend van Spriel wrote: > On 25-1-2016 20:23, Doug Anderson wrote: > > Kinda curious: do we get one or two really slow responses on every > > bootup, or just some bootups?  Do we ever succeed even with a slow > > (like 1.8 or 1.9 seconds) response, or is it

Re: [PATCH] media: platform: exynos4-is: media-dev: Add missing of_node_put

2016-01-26 Thread Mauro Carvalho Chehab
Em Tue, 26 Jan 2016 08:12:15 +0100 Julia Lawall escreveu: > On Tue, 26 Jan 2016, Krzysztof Kozlowski wrote: > > > On 26.01.2016 15:24, Julia Lawall wrote: > > > > > > > > > On Tue, 26 Jan 2016, Krzysztof Kozlowski wrote: > > > > > >> On 26.01.2016 00:21, Amitoj Kaur

[offlist] Re: [GIT PULL 00/54] perf tools: Bugfix, BPF improvements and overwrite ring buffer support

2016-01-26 Thread Wangnan (F)
Hi Arnaldo, We didn't make too much progress on this patchset for several weeks. Kernel support of bpf-output has already been merged by v4.4, but perf side code is still missing in v4.5. Do you have any plan on it? Brendan asked this feature this month. I think he would be disappointed because

[PATCH 1/2] devicetree: Add UCS1002 USB Port Power Controller binding

2016-01-26 Thread Enric Balletbo i Serra
The UCS1002-2 provides a USB port power switch for precise control of up to 2.5 amperes continuous current. You can add support to your board with current binding. Example: ucs1002: ucs1002@57 { compatible = "microchip,ucs1002"; reg = <0x57>;

[patch] ceph: checking for IS_ERR instead of NULL

2016-01-26 Thread Dan Carpenter
ceph_osdc_alloc_request() returns NULL on error, it never returns error pointers. Fixes: 5be0389dac66 ('ceph: re-send AIO write request when getting -EOLDSNAP error') Signed-off-by: Dan Carpenter diff --git a/fs/ceph/file.c b/fs/ceph/file.c index d37efdd..a52cf9b

[patch] intel_scu_ipcutil: underflow in scu_reg_access()

2016-01-26 Thread Dan Carpenter
"count" is controlled by the user and it can be negative. Let's prevent that by making it unsigned. You have to have CAP_SYS_RAWIO to call this function so the bug is not as serious as it could be. Fixes: 5369c02d951a ('intel_scu_ipc: Utility driver for intel scu ipc') Signed-off-by: Dan

[patch] hfs: fix hfs_readdir()

2016-01-26 Thread Dan Carpenter
I was looking through static analysis warnings and we seem to be copying garbage into >key. This goes back to before the start of git... Signed-off-by: Dan Carpenter --- Not tested. Please review carefully. diff --git a/fs/hfs/dir.c b/fs/hfs/dir.c index

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

2016-01-26 Thread Hans de Goede
Hi, On 25-01-16 21:43, 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 is ideally

Re: [PATCH v2] pci: fix unavailable irq number 255 reported by BIOS

2016-01-26 Thread Thomas Gleixner
On Tue, 26 Jan 2016, Chen Fan wrote: > On 01/26/2016 04:26 PM, Thomas Gleixner wrote: > > > > if (gsi < 0) { > > > > - if (acpi_isa_register_gsi(dev)) > > > > +#ifdef CONFIG_X86 > > > > + /* > > > > +* The Interrupt Line value of 0xff is defined

[PATCH 1/1] block: fix race between opening blkext device and freeing it

2016-01-26 Thread Roman Pen
There is a race introduced by the commit 2da78092dda13f1e, which causes oops with the following stack and preceding warning: WARNING: CPU: 2 PID: 28311 at include/linux/kref.h:47 kobject_get+0x42/0x50() Call Trace: [] dump_stack+0x46/0x58 [] warn_slowpath_common+0x8c/0xc0 []

[PATCH v4 02/13] mmc: sdhci-esdhc-imx: use sdhci_pltfm_init for private allocation

2016-01-26 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates the sdhci esdhc-imx driver to this allocation. Signed-off-by: Jisheng Zhang

[PATCH v4 07/13] mmc: sdhci-of-at91: use sdhci_pltfm_init for private allocation

2016-01-26 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates the sdhci-of-at91 driver to this allocation. Signed-off-by: Jisheng Zhang

[PATCH v4 09/13] mmc: sdhci-pxav3: use sdhci_pltfm_init for private allocation

2016-01-26 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-pxav3 to this allocation. Signed-off-by: Jisheng Zhang Acked-by: Arnd

[PATCH v4 08/13] mmc: sdhci-of-esdhc: use sdhci_pltfm_init for private allocation

2016-01-26 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates the sdhci-of-esdhc driver to this allocation. Signed-off-by: Jisheng Zhang

undefined reference to `efi_call'

2016-01-26 Thread kbuild test robot
Hi Johannes, It's probably a bug fix that unveils the link errors. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 92e963f50fc74041b5e9e744c330dca48e04f08d commit: 489c2a20a414351fe0813a727c34600c0f7292ae mm: memcontrol: introduce

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

2016-01-26 Thread Ilya Dryomov
On Tue, Jan 26, 2016 at 10:24 AM, Dan Carpenter wrote: > ceph_osdc_alloc_request() returns NULL on error, it never returns error > pointers. > > Fixes: 5be0389dac66 ('ceph: re-send AIO write request when getting -EOLDSNAP > error') > Signed-off-by: Dan Carpenter

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

2016-01-26 Thread Herbert Xu
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': > jitterentropy-kcapi.c:(.init.text+0x98): undefined reference to >

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]: > Hello, > > my oldish Thinkpad X301 only wanted to show a blank screen in v4.5-rc1. Same thing with my Thinkpad T500. I had just started bisecting, but will try this revert first. -- Hilsen Harald

UBSAN: Undefined behaviour in net/mac80211/rc80211_minstrel.h:47:34

2016-01-26 Thread Chris Bainbridge
4.5.0-rc1 with the new UBSAN checker: [ 2624.978741] [ 2624.978749] UBSAN: Undefined behaviour in net/mac80211/rc80211_minstrel.h:47:34 [ 2624.978752] signed integer overflow: [ 2624.978754] -32768 * 100 cannot

Re: [PATCH v3 0/4] crypto: add algif_akcipher user space API

2016-01-26 Thread Herbert Xu
On Mon, Jan 25, 2016 at 10:34:53PM +0100, Stephan Mueller wrote: > Am Freitag, 18. Dezember 2015, 00:49:57 schrieb Stephan Mueller: > > Hi Herbert, > > [...] > > > Changes v3: > > * fix hack in alg_setkey and alg_setsockopt by avoding branches for > > setkey and setpubkey as pointed out by

Re: [PATCH] kernel-doc: add support for asciidoc output

2016-01-26 Thread Jani Nikula
On Tue, 26 Jan 2016, Jonathan Corbet wrote: > On Mon, 18 Jan 2016 10:41:17 +0200 > Jani Nikula wrote: > >> Add new -asciidoc option to produce asciidoc output from kernel-doc. The >> output is formatted internally, with no dependencies on external >> tools.

Re: [RFC][PATCH 1/4] arm64: Drop alloc function from create_mapping

2016-01-26 Thread Mark Rutland
On Mon, Jan 25, 2016 at 08:52:12AM -0800, Laura Abbott wrote: > create_mapping is only used in fixmap_remap_fdt. All the create_mapping > calls need to happen on existing translation table pages without > additional allocations. Rather than have an alloc function be called > and fail, just set it

[PATCH v3] serial: atmel: Use atmel_port consistently

2016-01-26 Thread Nicolas Ferre
From: Jaeden Amero In all functions other than atmel_serial_probe_fifos, atmel_serial_probe, and atmel_console_init, the name "port" is used to refer to an instance of struct uart_port. In many of these functions, "atmel_port" is used to refer to an instance of struct

Re: [PATCH 16/26] libceph: Use skcipher

2016-01-26 Thread Herbert Xu
On Tue, Jan 26, 2016 at 12:29:57PM +0100, Ilya Dryomov wrote: > > LGTM. You want to take it through crypto? That's probably the easiest route since I'd like to take the first patch through cryptodev. Thanks, -- Email: Herbert Xu Home Page:

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 >>>

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

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

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

[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

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. >>

[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

[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

[PATCH v1 2/3] media: VPU: support Rockchip VPU

2016-01-26 Thread Jung Zhao
From: zhaojun The VPU driver for rk3229 & rk3288 platform. Now only support VP8 decoder. Signed-off-by: zhaojun --- drivers/media/platform/rockchip-vpu/Makefile | 6 + drivers/media/platform/rockchip-vpu/rockchip_vpu.c | 799

[PATCH v1 3/3] media: vcodec: rockchip: Add Rockchip VP8 decoder driver

2016-01-26 Thread Jung Zhao
From: zhaojun add vp8 decoder for rk3229 & rk3288 Signed-off-by: zhaojun --- drivers/media/platform/rockchip-vpu/Makefile |3 +- .../media/platform/rockchip-vpu/rkvpu_hw_vp8d.c| 798 ++

Re: [kernel-hardening] [RFC][PATCH 0/3] Sanitization of buddy pages

2016-01-26 Thread Mathias Krause
On 25 January 2016 at 17:55, Laura Abbott wrote: > Hi, > > This is an implementation of page poisoning/sanitization for all arches. It > takes advantage of the existing implementation for > !ARCH_SUPPORTS_DEBUG_PAGEALLOC arches. This is a different approach than what >

[patch] nvme: lightnvm: buffer overflow in nvme_nvm_identity()

2016-01-26 Thread Dan Carpenter
nvme_nvm_id->ppaf is 4 bytes larger than nvm_id->ppaf. We're using the larger size struct for the sizeof() so we end up corrupting the first four bytes of nvm_id->groups[]. It doesn't look like we actually want to copy those last bytes anyway. Signed-off-by: Dan Carpenter

Re: [PATCH] x86/head_64.S: do not use temporary register to check alignment

2016-01-26 Thread Borislav Petkov
On Sat, Jan 23, 2016 at 12:50:28PM +0600, Alexander Kuleshov wrote: > We are using temporary %rax register during checking of kernel address > alignment. We can ged rid of it since testl instruction is safe and does > not change value of the rbp register. > > Signed-off-by: Alexander Kuleshov

Re: [PATCH V3 09/11] soc: mediatek: PMIC wrap: add a slave specific struct

2016-01-26 Thread Yingjoe Chen
Hi John, Thanks for preparing the patch. On Mon, 2016-01-25 at 10:53 +0100, John Crispin wrote: > This patch adds a new struct pwrap_slv_type that we use to store the slave > specific data. The patch adds 2 new helper functions to access the dew > registers. The slave type is looked up via

Re: [PATCH v1 0/3] Add VP8 deocder for rk3229 & rk3288

2016-01-26 Thread Shawn Lin
Hi jun, Where is the dt-bingding documentation about your VP8 controller? And would you please share some info about rk3229? I can just find rk3228 in mainline, otherwise may someone think it's a misspell. Thanks. On 2016/1/26 17:04, Jung Zhao wrote: From: zhaojun

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

2016-01-26 Thread Fabio Estevam
Hi Felipe, On Tue, Jan 26, 2016 at 7:43 AM, Felipe Ferreri Tonello wrote: > I agree, but that how it is today. These platform drivers for imx are > similar but not identical. Looking at them I would guess that they have > 50 to 60% of duplicated code. Would

UBSAN: Undefined behaviour in ./arch/x86/include/asm/atomic.h:156:2

2016-01-26 Thread Chris Bainbridge
Booting 4.5.0-rc1 with new UBSAN checker enabled: [3.805449] [3.805453] UBSAN: Undefined behaviour in ./arch/x86/include/asm/atomic.h:156:2 [3.805455] signed integer overflow: [3.805456] -1720106381

Re: net/rfkill: WARNING in rfkill_fop_read

2016-01-26 Thread Johannes Berg
On Tue, 2016-01-26 at 10:55 +0100, Dmitry Vyukov wrote: > Hello, > > The following program triggers WARNING message in rfkill_fop_read: > > [ cut here ] > WARNING: CPU: 2 PID: 6975 at kernel/sched/core.c:7663 > __might_sleep+0x138/0x1a0() > do not call blocking ops when

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

2016-01-26 Thread Peter Zijlstra
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: > > > On Fri, Jan 15, 2016 at 10:27:14PM +0100, Peter Zijlstra wrote: > > > > Yes, that seems a

[PATCH] mmc: sdhci-iproc: use sdhci_pltfm_unregister directly

2016-01-26 Thread Jisheng Zhang
The sdhci_iproc_remove() is jsut a wrapper to sdhci_pltfm_unregister. So use the sdhci_pltfm_unregister() for the .remove hook directly. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci-iproc.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git

Re: [PATCH 1/4] crypto: sunxi - don't print uninitialized data

2016-01-26 Thread Herbert Xu
On Mon, Jan 25, 2016 at 05:53:48PM +0100, Arnd Bergmann wrote: > gcc correctly warns that the printk output contains a variable that > is not initialized in some cases: > > drivers/crypto/sunxi-ss/sun4i-ss-cipher.c: In function 'sun4i_ss_cipher_poll': >

Re: [PATCH 12/22] nvmem: Fix dependencies for !HAS_IOMEM archs

2016-01-26 Thread Srinivas Kandagatla
On 25/01/16 22:24, Richard Weinberger wrote: Not every arch has io memory. So, unbreak the build by fixing the dependencies. Signed-off-by: Richard Weinberger Acked-by: Srinivas Kandagatla Am happy to pick this one, unless you have plans to

Re: [PATCH v2] ix86: fix types used in pgprot cachability flags translations

2016-01-26 Thread Juergen Gross
On 26/01/16 12:15, Jan Beulich wrote: > For PAE kernels "unsigned long" is not suitable to hold page protection > flags, since _PAGE_NX doesn't fit there. This is the reason for quite a > few W+X pages getting reported as insecure during boot (observed namely > for the entire initrd range). > >

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 >

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

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': > >

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

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,

[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

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: > > -

[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

[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

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

Re: [PATCH v1 1/3] media: v4l: Add VP8 format support in V4L2 framework

2016-01-26 Thread kbuild test robot
-rk3288/20160126-170940 base: https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git for-next config: x86_64-randconfig-x012-01260845 (attached as .config) reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed

[PATCH/RFC 3/3] s390: query dynamic DEBUG_PAGEALLOC setting

2016-01-26 Thread Christian Borntraeger
We can use debug_pagealloc_enabled() to check if we can map the identity mapping with 1MB/2GB pages as well as to print the current setting in dump_stack. Signed-off-by: Christian Borntraeger --- arch/s390/kernel/dumpstack.c | 4 +++- arch/s390/mm/vmem.c | 10

Re: [PATCH] Revert "regmap-mmio: Use native endianness for read/write"

2016-01-26 Thread Johannes Berg
On Tue, 2016-01-26 at 10:09 +0100, Arnd Bergmann wrote: > Again, it's complicated: > > * We should probably add ioread64be()/iowrite64be() on *64bit* > architectures >   for consistency with readq/writeq Right. > * On 32-bit architectures, you generally cannot do 64-bit atomic I/O >  

net/rfkill: WARNING in rfkill_fop_read

2016-01-26 Thread Dmitry Vyukov
Hello, The following program triggers WARNING message in rfkill_fop_read: [ cut here ] WARNING: CPU: 2 PID: 6975 at kernel/sched/core.c:7663 __might_sleep+0x138/0x1a0() do not call blocking ops when !TASK_RUNNING; state=1 set at [] prepare_to_wait_event+0x141/0x410

UBSAN: Undefined behaviour in fs/btrfs/inode.c:5845:10

2016-01-26 Thread Chris Bainbridge
Booting 4.5.0-rc1 with new UBSAN checker enabled: [3.859690] [3.859694] UBSAN: Undefined behaviour in fs/btrfs/inode.c:5845:10 [3.859696] signed integer overflow: [3.859697] 9223372036854775807 + 1

[PATCH v4 06/13] mmc: sdhci-of-arasan: use sdhci_pltfm_init for private allocation

2016-01-26 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates the sdhci-of-arasan driver to this allocation. Signed-off-by: Jisheng Zhang

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

2016-01-26 Thread Peter Zijlstra
On Thu, Jan 14, 2016 at 02:20:46PM -0800, Paul E. McKenney wrote: > On Thu, Jan 14, 2016 at 01:24:34PM -0800, Leonid Yegoshin wrote: > > On 01/14/2016 12:48 PM, Paul E. McKenney wrote: > > > > > >So SYNC_RMB is intended to implement smp_rmb(), correct? > > Yes. > > > > > >You could use

Re: [PATCH V6 8/8] hvsock: introduce Hyper-V Socket feature

2016-01-26 Thread Olaf Hering
On Tue, Jan 26, Dexuan Cui wrote: > +#define AF_MAX 42 /* For now.. */ Maybe net/core/sock.c needs additional strings for the new socket? Olaf

[PATCH] mmc: sdhci-of-at91: fix pm runtime unbalanced issue in error path

2016-01-26 Thread Jisheng Zhang
The device power usage counter is increased by pm_runtime_get_noresume but isn't decreased in err_add_host error path. Fix this issue by calling pm_runtime_put_noidle() in the error path to restore the device's power usage counter. Signed-off-by: Jisheng Zhang Fixes:

Re: [PATCH 03/22] scsi: Fix dependencies for !HAS_IOMEM and !HAS_DMA archs

2016-01-26 Thread John Garry
On 26/01/2016 10:31, Richard Weinberger wrote: Am 26.01.2016 um 11:15 schrieb John Garry: On 25/01/2016 22:24, Richard Weinberger wrote: Not every arch has io or DMA memory. So, unbreak the build by fixing the dependencies. Signed-off-by: Richard Weinberger ---

Re: [PATCH 16/26] libceph: Use skcipher

2016-01-26 Thread Herbert Xu
On Mon, Jan 25, 2016 at 05:18:47PM +0100, Ilya Dryomov wrote: > > Could you get rid of ivsize instead of assigning to it - see the > attached diff? How about an incremental patch like this? Thanks! ---8<--- From: Ilya Dryomov Subject: libceph: Remove unnecessary ivsize

  1   2   3   4   5   6   7   8   9   10   >