[PATCH] serial: samsung: Reorder the sequence of clock control when call s3c24xx_serial_set_termios()

2016-03-13 Thread Chanwoo Choi
This patch fixes the broken serial log when changing the clock source of uart device. Before disabling the original clock source, this patch enables the new clock source to protect the clock off state for a split second. Signed-off-by: Chanwoo Choi --- drivers/tty/serial/samsung.c | 4 ++-- 1 fi

Re: [PATCH] kbuild: drop FORCE from PHONY targets

2016-03-13 Thread Andy Lutomirski
On Mar 12, 2016 4:14 PM, "Masahiro Yamada" wrote: > > These targets are marked as PHONY. No need to add FORCE to their > dependency. If this is, in fact, correct, can you update Documentation/kbuild/makefiles.txt as well? Thanks, Andy

Re: [PATCH 6/7] clk: rockchip: remove redundant checking of device_node

2016-03-13 Thread Heiko Stuebner
Am Sonntag, 13. März 2016, 00:25:53 schrieb Shawn Lin: > rockchip_clk_of_add_provider is used by sub-clk driver which > already call of_iomap before calling it. If device_node does > not exist, of_iomap returns NULL which will fail to init the > sub-clk driver. So really it's redundant. > > Signed

Re: [PATCH 2/7] clk: rockchip: fix warning reported by kernel-doc

2016-03-13 Thread Heiko Stuebner
Am Sonntag, 13. März 2016, 00:25:14 schrieb Shawn Lin: > ./scripts/kernel-doc -man -v drivers/clk/rockchip/clk.h > /dev/null > > drivers/clk/rockchip/clk.h:133: warning: missing initial short > description on line: > * struct rockchip_clk_provider: information about clock provider > drivers/clk/r

Re: [PATCH v2.1 3/9] net: arc_emac: support the phy reset for emac driver

2016-03-13 Thread Caesar Wang
在 2016年03月14日 02:02, David Miller 写道: When you submit a new version of a patch that's part of a series, you must submit the entire series anew, not just the patch which is changing. Thanks for reminding me. I think it's not good to respin-respin since the build error. So that just send a bit

Re: [PATCH 1/7] clk: rockchip: remove mux_core_reg from rockchip_cpuclk_reg_data

2016-03-13 Thread Heiko Stuebner
Am Sonntag, 13. März 2016, 00:25:00 schrieb Shawn Lin: > mux_core_reg isn't been used anywhere, let's remove it. > > Signed-off-by: Shawn Lin applied for v4.7 Thanks Heiko

[PATCH v2 4/4] hwrng: exynos - Disable runtime PM on driver unbind

2016-03-13 Thread Krzysztof Kozlowski
Driver enabled runtime PM but did not revert this on removal. Re-binding of a device triggered warning: exynos-rng 10830400.rng: Unbalanced pm_runtime_enable! Fixes: b329669ea0b5 ("hwrng: exynos - Add support for Exynos random number generator") Signed-off-by: Krzysztof Kozlowski --- C

[PATCH v2 3/4] hwrng: exynos - Disable runtime PM on probe failure

2016-03-13 Thread Krzysztof Kozlowski
Add proper error path (for disabling runtime PM) when registering of hwrng fails. Fixes: b329669ea0b5 ("hwrng: exynos - Add support for Exynos random number generator") Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. Call also pm_runtime_dont_use_autosuspend() to revert everything

[PATCH v2 2/4] hwrng: exynos - Fix unbalanced PM runtime put on timeout error path

2016-03-13 Thread Krzysztof Kozlowski
In case of timeout during read operation, the exit path lacked PM runtime put. This could lead to unbalanced runtime PM usage counter thus leaving the device in an active state. Fixes: d7fd6075a205 ("hwrng: exynos - Add timeout for waiting on init done") Cc: # v4.4+ Signed-off-by: Krzysztof Kozlo

[PATCH v2 1/4] hwrng: exynos - Runtime suspend device after init

2016-03-13 Thread Krzysztof Kozlowski
The driver uses pm_runtime_put_noidle() after initialization so the device might remain in active state if the core does not read from it (the read callback contains regular runtime put). The put_noidle() was chosen probably to avoid unneeded suspend and resume cycle after the initialization. Howe

Re: [PATCH] x86/efi: Always map boot service regions into new EFI page tables

2016-03-13 Thread Scott Ashcroft
On Sun, 2016-03-13 at 23:07 +, Matt Fleming wrote: > On Sun, 13 Mar, at 09:58:47PM, Matt Fleming wrote: > > Does $(grep pdpe1gb /proc/cpuinfo) show any output on your machine? > Assuming the answer to this question is "no", can you try out this > patch? The answer is no. Attached is the dmesg

[PATCH] drivers/tty: make serial/mvebu-uart.c explicitly non-modular

2016-03-13 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/tty/serial/Kconfig:config SERIAL_MVEBU_UART drivers/tty/serial/Kconfig: bool "Marvell EBU serial port support" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is es

Re: [PATCH v18 21/22] ext4: Add richacl support

2016-03-13 Thread Andreas Gruenbacher
On Fri, Mar 11, 2016 at 3:27 PM, Christoph Hellwig wrote: >> +static int >> +__ext4_set_richacl(handle_t *handle, struct inode *inode, struct richacl >> *acl) >> +{ >> + const int name_index = EXT4_XATTR_INDEX_RICHACL; >> + umode_t mode = inode->i_mode; >> + int retval, size; >> +

Re: [PATCH v2 2/2] mm, thp: avoid unnecessary swapin in khugepaged

2016-03-13 Thread Kirill A. Shutemov
On Sun, Mar 13, 2016 at 11:28:55AM +0200, Ebru Akagunduz wrote: > Currently khugepaged makes swapin readahead to improve > THP collapse rate. This patch checks vm statistics > to avoid workload of swapin, if unnecessary. So that > when system under pressure, khugepaged won't consume > resources to

Re: [PATCH 2/2] block: create ioctl to discard-or-zeroout a range of blocks

2016-03-13 Thread Dave Chinner
On Fri, Mar 11, 2016 at 04:44:16PM -0800, Linus Torvalds wrote: > On Fri, Mar 11, 2016 at 4:35 PM, Theodore Ts'o wrote: > > > > At the end of the day it's about whether you trust the userspace > > program or not. > > There's a big difference between "give the user rope", and "tie the > rope in a

linux-next: manual merge of the vfs tree with Linus' tree

2016-03-13 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in: fs/nfs/nfs4proc.c between commit: d9dfd8d74168 ("NFSv4: Fix a dentry leak on alias use") from Linus' tree and commit: 7635e19a39f6 ("replace d_add_unique() with saner primitive") from the vfs tree. I fixed it up (I jus

Re: [patch] mfd: lp8788-irq: uninitialized variable in irq handler

2016-03-13 Thread Kim, Milo
On 3/11/2016 5:11 PM, Dan Carpenter wrote: Instead to being true/false, the "handled" is true/uninitialized. Presumably this doesn't cause that many problems in real life because normally we handle the IRQ. Fixes: eea6b7cc53aa ('mfd: Add lp8788 mfd driver') Signed-off-by: Dan Carpenter Acked-

Re: [PATCH 1/3] pfn_t: Change the encoding

2016-03-13 Thread Dan Williams
On Sat, Mar 12, 2016 at 10:30 AM, Matthew Wilcox wrote: > On Fri, Mar 11, 2016 at 01:40:20PM -0800, Dan Williams wrote: >> On Fri, Mar 11, 2016 at 1:13 PM, Matthew Wilcox >> wrote: >> > By moving the flag bits to the bottom, we encourage commonality >> > between SGs with pages and those using pfn

Re: [PATCH v18 21/22] ext4: Add richacl support

2016-03-13 Thread Andreas Gruenbacher
On Fri, Mar 11, 2016 at 3:27 PM, Christoph Hellwig wrote: >> +static inline int >> +ext4_acl_chmod(struct inode *inode, umode_t mode) >> +{ >> + if (IS_RICHACL(inode)) >> + return richacl_chmod(inode, inode->i_mode); >> + return posix_acl_chmod(inode, inode->i_mode); >> +} > >

Re: [PATCH v2 1/2] mm, vmstat: calculate particular vm event

2016-03-13 Thread Kirill A. Shutemov
On Sun, Mar 13, 2016 at 11:28:54AM +0200, Ebru Akagunduz wrote: > Currently, vmstat can calculate specific vm event with all_vm_events() > however it allocates all vm events to stack. This patch introduces > a helper to sum value of a specific vm event over all cpu, without > loading all the events

Re: [PATCH] x86/efi: Always map boot service regions into new EFI page tables

2016-03-13 Thread Matt Fleming
On Sun, 13 Mar, at 09:58:47PM, Matt Fleming wrote: > (Fixing Maarten's email address which I botched originally) > > On Sun, 13 Mar, at 05:09:35PM, Scott Ashcroft wrote: > > On Fri, 2016-03-11 at 11:19 +, Matt Fleming wrote: > > > Some machines have EFI regions in page zero (physical address >

Re: [PATCH v18 00/22] Richacls (Core and Ext4)

2016-03-13 Thread Andreas Gruenbacher
On Sat, Mar 12, 2016 at 12:02 AM, Jeremy Allison wrote: > On Fri, Mar 11, 2016 at 02:05:16PM -0600, Steve French wrote: >> Sounds like I need to quickly rework the SMB3 ACL helper functions >> for cifs.ko >> >> Also do you know where is the current version of the corresponding >> vfs_richacl for >

[PATCH v8 05/10] tpm: Split out the devm stuff from tpmm_chip_alloc

2016-03-13 Thread Stefan Berger
From: Jason Gunthorpe tpm_chip_alloc becomes a typical subsystem allocate call. Signed-off-by: Jason Gunthorpe Reviewed-by: Stefan Berger Tested-by: Stefan Berger Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-chip.c | 49 ++

[PATCH v8 09/10] tpm: Initialize TPM and get durations and timeouts

2016-03-13 Thread Stefan Berger
Add the retrieval of TPM 1.2 durations and timeouts. Since this requires the startup of the TPM, do this for TPM 1.2 and TPM 2. Signed-off-by: Stefan Berger CC: linux-kernel@vger.kernel.org CC: linux-...@vger.kernel.org CC: linux-...@vger.kernel.org --- drivers/char/tpm/tpm_vtpm_proxy.c | 95 +++

[PATCH v8 04/10] tpm: Get rid of module locking

2016-03-13 Thread Stefan Berger
Now that the tpm core has strong locking around 'ops' it is possible to remove a TPM driver, module and all, even while user space still has things like /dev/tpmX open. For consistency and simplicity, drop the module locking entirely. The module lock can be dropped since /dev/tpmX holds the reader

[PATCH v8 03/10] tpm: Provide strong locking for device removal

2016-03-13 Thread Stefan Berger
From: Jason Gunthorpe Add a read/write semaphore around the ops function pointers so ops can be set to null when the driver un-registers. Previously the tpm core expected module locking to be enough to ensure that tpm_unregister could not be called during certain times, however that hasn't been

[PATCH v8 01/10] tpm: Get rid of chip->pdev

2016-03-13 Thread Stefan Berger
From: Jason Gunthorpe This is a hold over from before the struct device conversion. - All prints should be using &chip->dev, which is the Linux standard. This changes prints to use tpm0 as the device name, not the PnP/etc ID. - The few places involving sysfs/modules that really do need the

[PATCH v8 10/10] tpm: Add documentation for the tpm_vtpm device driver

2016-03-13 Thread Stefan Berger
Add documentation for the tpm_vtpm device driver that implements support for providing TPM functionality to Linux containers. Parts of this documentation were recycled from the Xen vTPM device driver documentation. Update the documentation for the ioctl numbers. Signed-off-by: Stefan Berger CC:

[PATCH v8 08/10] tpm: Proxy driver for supporting multiple emulated TPMs

2016-03-13 Thread Stefan Berger
This patch implements a proxy driver for supporting multiple emulated TPMs in a system. The driver implements a device /dev/vtpmx that is used to created a client device pair /dev/tpmX (e.g., /dev/tpm10) and a server side that is accessed using a file descriptor returned by an ioctl. The device /d

[PATCH v8 00/10] Multi-instance vTPM proxy driver

2016-03-13 Thread Stefan Berger
The following series of patches implements a multi-instance vTPM proxy driver that can dynamically create TPM 'server' and client device pairs. Using an ioctl on the provided /dev/vtpmx, a client-side vTPM device and a server side file descriptor is created. The file descriptor must be passed to

[PATCH v8 06/10] tpm: Replace device number bitmap with IDR

2016-03-13 Thread Stefan Berger
Replace the device number bitmap with IDR. Extend the number of devices we can create to 64k. Since an IDR allows us to associate a pointer with an ID, we use this now to rewrite tpm_chip_find_get() to simply look up the chip pointer by the given device ID. Protect the IDR calls with a mutex. Sig

[PATCH v8 07/10] tpm: Introduce TPM_CHIP_FLAG_VIRTUAL

2016-03-13 Thread Stefan Berger
Introduce TPM_CHIP_FLAG_VIRTUAL to be used when the chip device has no parent device. Also adapt tpm_chip_alloc so that it can be called with parent device being NULL. Signed-off-by: Stefan Berger Reviewed-by: Jason Gunthorpe Reviewed-by: Jarkko Sakkinen Signed-off-by: Jarkko Sakkinen --- dri

[PATCH v8 02/10] tpm: Get rid of devname

2016-03-13 Thread Stefan Berger
From: Jason Gunthorpe Now that we have a proper struct device just use dev_name() to access this value instead of keeping two copies. Signed-off-by: Jason Gunthorpe Signed-off-by: Stefan Berger Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen Signed-off-by: Jarkko Sakkinen --- drive

Re: [v6, 5/5] mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0

2016-03-13 Thread Arnd Bergmann
On Wednesday 09 March 2016 18:08:51 Yangbo Lu wrote: > @@ -567,10 +580,20 @@ static void esdhc_init(struct platform_device *pdev, > struct sdhci_host *host) > struct sdhci_pltfm_host *pltfm_host; > struct sdhci_esdhc *esdhc; > u16 host_ver; > + u32 svr; > >

Re: [PATCH] x86/efi: Always map boot service regions into new EFI page tables

2016-03-13 Thread Matt Fleming
(Fixing Maarten's email address which I botched originally) On Sun, 13 Mar, at 05:09:35PM, Scott Ashcroft wrote: > On Fri, 2016-03-11 at 11:19 +, Matt Fleming wrote: > > Some machines have EFI regions in page zero (physical address > > 0x) and historically that region has been added to

Re: [PATCH] direct-io: Deinline dio_zero_block, save 2684 bytes

2016-03-13 Thread Denys Vlasenko
On Sun, Mar 13, 2016 at 10:00 PM, Denys Vlasenko wrote: > This function compiles to 2684 bytes, 2 callsites > >textdata bss dec hex filename >9655 16 0967125c7 direct-io.o.before2 >9559 16 095752567 direct-io.o Al, you undoubtedly

Re: [PATCH RFC] ext4: use __GFP_NOFAIL in ext4_free_blocks()

2016-03-13 Thread Theodore Ts'o
On Wed, Feb 24, 2016 at 08:09:12PM +0300, Konstantin Khlebnikov wrote: > This might be unexpected but pages allocated for sbi->s_buddy_cache are > charged to current memory cgroup. So, GFP_NOFS allocation could fail if > current task has been killed by OOM or if current memory cgroup has no > free

Re: [PATCH] drm/msm/dsi: fix definition of msm_dsi_pll_28nm_8960_init()

2016-03-13 Thread Kieran Bingham
On 04/02/16 05:09, Archit Taneja wrote: > > > On 02/03/2016 07:55 PM, Luis Henriques wrote: >> This fixes the following build failure: >> >> drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.o: In function >> `msm_dsi_pll_28nm_8960_init': >> dsi_pll_28nm.c:(.text+0x1198): multiple definition of >> `msm_ds

[PATCH] direct-io: Deinline dio_send_cur_page, save ~2000 bytes

2016-03-13 Thread Denys Vlasenko
This function compiles to 1070 bytes, 2 callsites textdata bss dec hex filename 9559 16 095752567 direct-io.o.before3 7587 16 076031db3 direct-io.o Signed-off-by: Denys Vlasenko CC: Al Viro CC: Jens Axboe CC: Christoph Hellwig CC:

[PATCH] direct-io: Deinline dio_zero_block, save 2684 bytes

2016-03-13 Thread Denys Vlasenko
This function compiles to 2684 bytes, 2 callsites textdata bss dec hex filename 9655 16 0967125c7 direct-io.o.before2 9559 16 095752567 direct-io.o Signed-off-by: Denys Vlasenko CC: Al Viro CC: Jens Axboe CC: Christoph Hellwig CC:

[PATCH] direct-io: Deinline submit_page_section, save 5304 bytes

2016-03-13 Thread Denys Vlasenko
This function compiles to 2628 bytes, 2 callsites textdata bss dec hex filename 15197 16 0 152133b6d direct-io.o.before1 9655 16 0967125c7 direct-io.o Signed-off-by: Denys Vlasenko CC: Al Viro CC: Jens Axboe CC: Christoph Hellwig CC:

[PATCH] ALSA: hda - Add new GPU codec ID 0x10de0082 to snd-hda

2016-03-13 Thread Aaron Plattner
Vendor ID 0x10de0082 is used by a yet-to-be-named GPU chip. This chip also has the 2-ch audio swapping bug, so patch_nvhdmi is appropriate here. Signed-off-by: Aaron Plattner --- Another day, another new chip with the same stupid bug. The hardware folks still claim they're going to fix it somed

Re: [PATCH net-next 2/3] net: dsa: make port_bridge_leave return void

2016-03-13 Thread Jiri Pirko
Sun, Mar 13, 2016 at 09:21:33PM CET, vivien.dide...@savoirfairelinux.com wrote: >netdev_upper_dev_unlink() which notifies NETDEV_CHANGEUPPER, returns >void, as well as del_nbp(). So there's no advantage to catch an eventual >error from the port_bridge_leave routine at the DSA level. > >Make this ro

Re: [PATCH net-next 3/3] net: dsa: refine netdev event notifier

2016-03-13 Thread Jiri Pirko
Sun, Mar 13, 2016 at 09:21:34PM CET, vivien.dide...@savoirfairelinux.com wrote: >Rework the netdev event handler, similar to what the Mellanox Spectrum >driver does, to easily welcome more events later (for example >NETDEV_PRECHANGEUPPER) and use netdev helpers (such as >netif_is_bridge_master). >

Re: [PATCH net-next 1/3] net: dsa: rename port_*_bridge routines

2016-03-13 Thread Jiri Pirko
Sun, Mar 13, 2016 at 09:21:32PM CET, vivien.dide...@savoirfairelinux.com wrote: >Rename DSA port_join_bridge and port_leave_bridge routines to >respectively port_bridge_join and port_bridge_leave in order to respect >an implicit Port::Bridge namespace. > >Signed-off-by: Vivien Didelot Acked-by: J

[GIT PULL] irqchip: Core changes for v4.6 (round 3)

2016-03-13 Thread Jason Cooper
Hey Thomas, Here is the third and last round of changes for irqchip this window. Just one straggler dt binding doc change. This is an incremental pull request from tags/irqchip-core-4.6-2 up to tags/irqchip-core-4.6-3 on the irqchip/core branch. Please pull. thx, Jason. The following changes

Re: [ANNOUNCE] util-linux v2.28-rc1

2016-03-13 Thread Samuel Thibault
Hello, 2.28-rc1 doesn't build on the Hurd system, see attached proposed patch. sigset_t is not a structure on Hurd. Applications are not supposed to assume what it is, and the first thing that sulogin.c does on it is sigemptyset already anyway. Samuel diff --git a/login-utils/sulogin.c b/login-u

kernel/irq/irqdesc.c:206:2: error: array index in initializer exceeds array bounds

2016-03-13 Thread kbuild test robot
Hi Thomas, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f414ca64be4b36c30deb5b5fa25c5a8ff42ea56b commit: 3795de236d67a05994a1a12759db9d4dd9ffc42c genirq: Distangle kernel/irq/handle.c date: 5 years ago config:

[PATCH net-next 3/3] net: dsa: refine netdev event notifier

2016-03-13 Thread Vivien Didelot
Rework the netdev event handler, similar to what the Mellanox Spectrum driver does, to easily welcome more events later (for example NETDEV_PRECHANGEUPPER) and use netdev helpers (such as netif_is_bridge_master). Signed-off-by: Vivien Didelot --- net/dsa/slave.c | 54

[PATCH net-next 2/3] net: dsa: make port_bridge_leave return void

2016-03-13 Thread Vivien Didelot
netdev_upper_dev_unlink() which notifies NETDEV_CHANGEUPPER, returns void, as well as del_nbp(). So there's no advantage to catch an eventual error from the port_bridge_leave routine at the DSA level. Make this routine void for the DSA layer and its existing drivers. Signed-off-by: Vivien Didelot

[PATCH net-next 0/3] net: dsa: finer bridging control

2016-03-13 Thread Vivien Didelot
This patchset renames the bridging routines of the DSA layer, make the unbridging routine return void, and rework the DSA netdev notifier handler, similar to what the Mellanox Spectrum driver does. Changes RFC -> v1: - drop unused NETDEV_PRECHANGEUPPER case - add Andrew's Tested-by tag Vivien

[PATCH net-next 1/3] net: dsa: rename port_*_bridge routines

2016-03-13 Thread Vivien Didelot
Rename DSA port_join_bridge and port_leave_bridge routines to respectively port_bridge_join and port_bridge_leave in order to respect an implicit Port::Bridge namespace. Signed-off-by: Vivien Didelot --- Documentation/networking/dsa/dsa.txt | 4 ++-- drivers/net/dsa/bcm_sf2.c| 4 ++--

Re: [PATCH v3 06/22] media: Media Controller enable/disable source handler API

2016-03-13 Thread Sakari Ailus
Hi Shuah, On Thu, Mar 10, 2016 at 07:29:59AM -0700, Shuah Khan wrote: > On 03/10/2016 12:35 AM, Sakari Ailus wrote: > > Hi Shuah, > > > > On Thu, Feb 11, 2016 at 04:41:22PM -0700, Shuah Khan wrote: > >> Add new fields to struct media_device to add enable_source, and > >> disable_source handlers,

Re: [tpmdd-devel] [PATCH v7 08/10] tpm: Proxy driver for supporting multiple emulated TPMs

2016-03-13 Thread Jarkko Sakkinen
On Sat, Mar 12, 2016 at 06:27:13PM -0500, Stefan Berger wrote: >Jarkko Sakkinen wrote on 03/12/2016 >01:51:54 PM: > >> >> On Fri, Mar 11, 2016 at 09:51:03PM -0500, Stefan Berger wrote: >> > This patch implements a proxy driver for supporting multiple emulated >TPMs >>

Re: [PATCH 1/1] perf: Remove 'core_id' check in topo test

2016-03-13 Thread Jiri Olsa
On Sun, Mar 13, 2016 at 04:13:08PM -0300, Arnaldo Carvalho de Melo wrote: > Its in perf/core as if a few days ago, IIRC > Le 13 mars 2016 3:54 PM, "Jiri Olsa" a écrit : cool, thanks jirka > > > On Thu, Dec 03, 2015 at 03:32:19PM -0800, Sukadev Bhattiprolu wrote: > > > From b6bb5d9182f89cd7c6f1

Re: [PATCH 2/2] isdn: hisax: isac: fixed code style issues.

2016-03-13 Thread Daniel Baluta
On Sun, Mar 13, 2016 at 9:21 PM, Cosmin-Gabriel Samoila wrote: > Fixed errors and warnings reported by checkpatch.pl. > Use indicative mood in your commit message. So, s/Fixed/Fix. http://chris.beams.io/posts/git-commit/ > Signed-off-by: Cosmin-Gabriel Samoila > --- > drivers/isdn/hisax/isac

[PATCH 2/2] ARM64:VDSO: Improve __do_get_tspec, don't use udiv

2016-03-13 Thread Andrew Pinski
In most other targets (x86/tile for an example), the division in __do_get_tspec is converted into a simple loop. The main reason for this is because the result of this division is going to be either 0 or 1. This changes the division to the simple loop and thus speeding up gettimeofday. On Thunder

[PATCH 1/2] ARM64:VDSO: Improve gettimeofday, don't use udiv

2016-03-13 Thread Andrew Pinski
On many cores, udiv with a large value is slow, expand instead the division out to be what GCC would have generated for the divide by 1000. On ThunderX, the speeds up gettimeofday by 5%. Signed-off-by: Andrew Pinski --- arch/arm64/kernel/vdso/gettimeofday.S | 20 1 files

[PATCH 0/2] *** SUBJECT HERE ***

2016-03-13 Thread Andrew Pinski
*** BLURB HERE *** Andrew Pinski (2): ARM64:VDSO: Improve gettimeofday, don't use udiv ARM64:VDSO: Improve __do_get_tspec, don't use udiv arch/arm64/kernel/vdso/gettimeofday.S | 47 1 files changed, 35 insertions(+), 12 deletions(-) -- 1.7.2.5

Re: [PATCH 2/2] isdn: hisax: isac: fixed code style issues.

2016-03-13 Thread Joe Perches
On Sun, 2016-03-13 at 21:21 +0200, Cosmin-Gabriel Samoila wrote: > Fixed errors and warnings reported by checkpatch.pl. Generally it's better to send multiple patches that each change a specific type of style defect. As is, this patch changes object code. Fixing style inconsistency should not do

[PATCH] block/xen-blkback: Deinline shrink_free_pagepool, save 204 bytes

2016-03-13 Thread Denys Vlasenko
This function compiles to 201 bytes of machine code. 2 callsites. This function has a spinlocked code section, which is significantly more expensive than call/return overhead. Signed-off-by: Denys Vlasenko CC: Konrad Rzeszutek Wilk CC: Roger Pau Monné CC: xen-de...@lists.xenproject.org CC: lin

[PATCH] scripts/gdb: Account for changes in module data structure

2016-03-13 Thread Jan Kiszka
From: Jan Kiszka Commit 7523e4dc50 factored out the module_layout structure. Adjust the symbol loader and the lsmod command to this. Signed-off-by: Jan Kiszka --- Probably too late for 4.5, still a regression. scripts/gdb/linux/modules.py | 5 +++-- scripts/gdb/linux/symbols.py | 2 +- 2 fil

[PATCH] block/xen-blkback: Deinline put_free_pages, save 645 bytes

2016-03-13 Thread Denys Vlasenko
This function compiles to 170 bytes of machine code. 7 callsites. This function has a spinlocked code section, which is significantly more expensive than call/return overhead. Signed-off-by: Denys Vlasenko CC: Konrad Rzeszutek Wilk CC: Roger Pau Monné CC: xen-de...@lists.xenproject.org CC: lin

[PATCH 2/2] isdn: hisax: isac: fixed code style issues.

2016-03-13 Thread Cosmin-Gabriel Samoila
Fixed errors and warnings reported by checkpatch.pl. Signed-off-by: Cosmin-Gabriel Samoila --- drivers/isdn/hisax/isac.c | 32 ++-- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/drivers/isdn/hisax/isac.c b/drivers/isdn/hisax/isac.c index 7fdf78f..419

[RFC PATCH] checkpatch: check formatting of __func__ output uses

2016-03-13 Thread Joe Perches
Loggng messages that emit function names have many different forms. Right now, grep shows these mixtures of forms: 13704 "%s:" 3839"%s " 2787"%s()" Some of these are in macros. Perhaps it'd be better for grep and consistency to exclusively use "%s:" Unfortunately, checkpatch isn't an

[PATCH 3/5] net: macb: Address checkpatch 'check' suggestions

2016-03-13 Thread Moritz Fischer
This commit deals with a bunch of checkpatch suggestions that without changing behavior make checkpatch happier. Signed-off-by: Moritz Fischer --- drivers/net/ethernet/cadence/macb.c | 46 +++-- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/drive

[PATCH 2/5] net: macb: Fix coding style warnings

2016-03-13 Thread Moritz Fischer
This commit takes care of the coding style warnings that are mostly due to a different comment style and lines over 80 chars, as well as a dangling else. Signed-off-by: Moritz Fischer --- drivers/net/ethernet/cadence/macb.c | 101 +++- 1 file changed, 43 insertion

[PATCH 0/5] net: macb: Checkpatch cleanups

2016-03-13 Thread Moritz Fischer
Hi all, I backed out the variable scope changes and made a separate patch for the ether_addr_copy change. Changes from v1: * Backed out variable scope changes * Separated out ether_addr_copy into it's own commit * Fixed typo in comments as suggested by Joe Cheers, Moritz Moritz Fischer (5):

[PATCH 4/5] net: macb: Use ether_addr_copy over memcpy

2016-03-13 Thread Moritz Fischer
Checkpatch suggests using ether_addr_copy over memcpy to copy the mac address. Signed-off-by: Moritz Fischer --- drivers/net/ethernet/cadence/macb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c inde

[PATCH 5/5] net: macb: Fix simple typo.

2016-03-13 Thread Moritz Fischer
Signed-off-by: Moritz Fischer --- drivers/net/ethernet/cadence/macb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index a0c01e5..681e5bf 100644 --- a/drivers/net/ethernet/cadence/macb.c +++ b/driver

[PATCH 1/5] net: macb: Fix coding style error message

2016-03-13 Thread Moritz Fischer
checkpatch.pl gave the following error: ERROR: space required before the open parenthesis '(' + for(; p < end; p++, offset += 4) Signed-off-by: Moritz Fischer --- drivers/net/ethernet/cadence/macb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/c

Re: [PATCHv3 09/13] scripts/gdb: Add meminfo command

2016-03-13 Thread Jan Kiszka
On 2016-03-13 19:16, Kieran Bingham wrote: > On 13/03/16 16:34, Jan Kiszka wrote: >> On 2016-03-03 12:41, Kieran Bingham wrote: >>> Provide an equivalent of /proc/meminfo which should be available from >>> core dumps, or crashed kernels. This should allow a debugger to identify >>> if memory pressu

Re: [PATCH 1/1] perf: Remove 'core_id' check in topo test

2016-03-13 Thread Jiri Olsa
On Thu, Dec 03, 2015 at 03:32:19PM -0800, Sukadev Bhattiprolu wrote: > From b6bb5d9182f89cd7c6f1eff3cd5a6d3f947b8b0c Mon Sep 17 00:00:00 2001 > From: Sukadev Bhattiprolu > Date: Thu, 3 Dec 2015 18:26:40 -0500 > Subject: [PATCH 1/1] perf: Remove 'core_id' check in topo test hi, looks like this one

[PATCH] spi: spi-adi-v3: fixed coding style issues.

2016-03-13 Thread Cosmin-Gabriel Samoila
Fixed coding style issues detected using checkpatch.pl. Signed-off-by: Cosmin-Gabriel Samoila --- drivers/spi/spi-adi-v3.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/drivers/spi/spi-adi-v3.c b/drivers/spi/spi-adi-v3.c index a16b25d..06121cc 100644 ---

Re: [RFC PATCH net-next 0/3] net: dsa: finer bridging control

2016-03-13 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: > On Sun, Mar 13, 2016 at 01:42:23AM -0500, Vivien Didelot wrote: >> This patchset renames the bridging routines of the DSA layer, make the >> unbridging routine return void, and rework the DSA netdev notifier handler, >> similar to what the Mellanox Spectrum drive

Re: [PATCHv3 10/13] scripts/gdb: Add cpu iterators

2016-03-13 Thread Kieran Bingham
On 13/03/16 16:33, Jan Kiszka wrote: > On 2016-03-03 12:41, Kieran Bingham wrote: >> The linux kernel provides macro's for iterating against values from the >> cpu_list masks. By providing some commonly used masks, we can mirror the >> kernels helper macros with easy to use generators. >> >> Signed

Re: [PATCH v3 3/9] irqchip/gic-v2: Gather ACPI specific data in a single structure

2016-03-13 Thread Christoffer Dall
On Wed, Mar 09, 2016 at 01:18:14PM +0700, Julien Grall wrote: > Hi Christoffer, > > On 09/03/2016 12:47, Christoffer Dall wrote: > >On Tue, Mar 08, 2016 at 11:29:27AM +, Julien Grall wrote: > >>For now, there is only one member. More member will be added later. > > > >questionable commit messa

Re: [PATCHv3 09/13] scripts/gdb: Add meminfo command

2016-03-13 Thread Kieran Bingham
On 13/03/16 16:34, Jan Kiszka wrote: > On 2016-03-03 12:41, Kieran Bingham wrote: >> Provide an equivalent of /proc/meminfo which should be available from >> core dumps, or crashed kernels. This should allow a debugger to identify >> if memory pressures were applicable in the instance of their issu

Re: [PATCH v2.1 3/9] net: arc_emac: support the phy reset for emac driver

2016-03-13 Thread David Miller
When you submit a new version of a patch that's part of a series, you must submit the entire series anew, not just the patch which is changing. Thanks.

Re: [tip:x86/urgent] x86/efi: Fix boot crash by always mapping boot service regions into new EFI page tables

2016-03-13 Thread Ingo Molnar
* Matt Fleming wrote: > On Sat, 12 Mar, at 10:57:39AM, tip-bot for Matt Fleming wrote: > > Commit-ID: 452308de61056a539352a9306c46716d7af8a1f1 > > Gitweb: > > http://git.kernel.org/tip/452308de61056a539352a9306c46716d7af8a1f1 > > Author: Matt Fleming > > AuthorDate: Fri, 11 Mar 2016 1

[added to the 3.18 stable tree] libata: Align ata_device's id on a cacheline

2016-03-13 Thread Sasha Levin
From: Harvey Hunt This patch has been added to the 3.18 stable tree. If you have any objections, please let us know. === [ Upstream commit 4ee34ea3a12396f35b26d90a094c75db95080baa ] The id buffer in ata_device is a DMA target, but it isn't explicitly cacheline aligned. Due to this,

[added to the 4.1 stable tree] MIPS: kvm: Fix ioctl error handling.

2016-03-13 Thread Sasha Levin
From: "Michael S. Tsirkin" This patch has been added to the 4.1 stable tree. If you have any objections, please let us know. === [ Upstream commit 887349f69f37e71e2a8bfbd743831625a0b2ff51 ] Calling return copy_to_user(...) or return copy_from_user in an ioctl will not do the right

Re: [RFC PATCH net-next 0/3] net: dsa: finer bridging control

2016-03-13 Thread Andrew Lunn
On Sun, Mar 13, 2016 at 01:42:23AM -0500, Vivien Didelot wrote: > This patchset renames the bridging routines of the DSA layer, make the > unbridging routine return void, and rework the DSA netdev notifier handler, > similar to what the Mellanox Spectrum driver does. Tested-by: Andrew Lunn Do yo

[added to the 4.1 stable tree] libata: Align ata_device's id on a cacheline

2016-03-13 Thread Sasha Levin
From: Harvey Hunt This patch has been added to the 4.1 stable tree. If you have any objections, please let us know. === [ Upstream commit 4ee34ea3a12396f35b26d90a094c75db95080baa ] The id buffer in ata_device is a DMA target, but it isn't explicitly cacheline aligned. Due to this,

Re: [PATCHSET RFC cgroup/for-4.6] cgroup, sched: implement resource group and PRIO_RGRP

2016-03-13 Thread Mike Galbraith
On Sun, 2016-03-13 at 11:00 -0400, Tejun Heo wrote: > Hello, Mike. > > On Sat, Mar 12, 2016 at 07:26:59AM +0100, Mike Galbraith wrote: > > Hrm. You're showing that per-thread groups can coexist just fine, > > which is good given need and usage exists today out in the wild. Why > > do such groups

Re: [PATCH V2 2/3] vfio, platform: make reset driver a requirement

2016-03-13 Thread Sinan Kaya
On 3/11/2016 11:54 AM, Sinan Kaya wrote: > The code was allowing platform devices to be used without a supporting VFIO > reset driver. The hardware can be left in some inconsistent state after a > guest machine abort. > > The reset driver will put the hardware back to safe state and disable > inte

Re: [PATCH] x86/efi: Always map boot service regions into new EFI page tables

2016-03-13 Thread Scott Ashcroft
On Fri, 2016-03-11 at 11:19 +, Matt Fleming wrote: > Some machines have EFI regions in page zero (physical address > 0x) and historically that region has been added to the e820 > map via trim_bios_range(), and ultimately mapped into the kernel page > tables. It was not mapped via efi_ma

Re: [PATCHv3 00/13] scripts/gdb: Linux awareness debug commands

2016-03-13 Thread Jan Kiszka
On 2016-03-03 12:40, Kieran Bingham wrote: > Hi Jan, > > V3 of the patchset respun. Now finally adding the lx-interrupts command > after I resolved my issues with the Radix Tree parsing. > > This command only provides the interrupts that are available generically, > and it seems that the /proc/in

Re: [PATCHv3 09/13] scripts/gdb: Add meminfo command

2016-03-13 Thread Jan Kiszka
On 2016-03-03 12:41, Kieran Bingham wrote: > Provide an equivalent of /proc/meminfo which should be available from > core dumps, or crashed kernels. This should allow a debugger to identify > if memory pressures were applicable in the instance of their issue > Sound useful. > Signed-off-by: Kier

Re: [PATCHv3 08/13] scripts/gdb: Add mount point list command

2016-03-13 Thread Jan Kiszka
On 2016-03-03 12:41, Kieran Bingham wrote: > lx-mounts will identify current mount points based on the 'init_task' > namespace by default, as we do not yet have a kernel thread list > implementation to select the current running thread. > > Optionally, a user can specify a PID to list from that pr

Re: [PATCHv3 10/13] scripts/gdb: Add cpu iterators

2016-03-13 Thread Jan Kiszka
On 2016-03-03 12:41, Kieran Bingham wrote: > The linux kernel provides macro's for iterating against values from the > cpu_list masks. By providing some commonly used masks, we can mirror the > kernels helper macros with easy to use generators. > > Signed-off-by: Kieran Bingham > --- > scripts/g

Re: [PATCH] dmaengine: fsl-edma: disable clks in case of failure in probe

2016-03-13 Thread Vinod Koul
On Sat, Mar 12, 2016 at 12:28:39AM +0300, Alexey Khoroshilov wrote: > fsl_edma_probe() does not disable already enabled clocks > in case of failure. The patch fixes that. > > Found by Linux Driver Verification project (linuxtesting.org). The typical method to give this credit is Reported-by: ...

ERROR: "isa_io_base" [sound/pci/vx222/snd-vx222.ko] undefined!

2016-03-13 Thread kbuild test robot
Hi Nicolai, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f414ca64be4b36c30deb5b5fa25c5a8ff42ea56b commit: 48fd8ecf29e3c1199432e173858f5ca4bc529738 framebuffer: disable vgacon on microblaze arch date: 7 months a

vgacon.c:undefined reference to `screen_info'

2016-03-13 Thread kbuild test robot
Hi Chen, 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: f414ca64be4b36c30deb5b5fa25c5a8ff42ea56b commit: f69405ce6c0fc9f4a039011007371b31f80b470d openrisc: include: asm: Kbuild: add default "vga.h"

RE: Performance drop on Baytrail with 4.5-rc2

2016-03-13 Thread Thomas Voegtle
On Wed, 3 Feb 2016, Longepe, Philippe wrote: Hi Thomas, Thank you for sharing this test. I just did a quick test and yes this is really interesting ! Without the scale option, the load is close to 100% for each cpus (so the pstates are increasing up to the turbo frequency) but with scale=3

Re: include/linux/kprobes.h:361:2: error: invalid use of undefined type 'struct kprobe_ctlblk'

2016-03-13 Thread Russell King - ARM Linux
On Sun, Mar 13, 2016 at 04:37:14PM +0800, kbuild test robot wrote: > Hi Russell, > > FYI, the error/warning still remains. Sorry, I've no clue about this. From what I can see, kprobes.h is correct. #ifdef CONFIG_KPROBES DECLARE_PER_CPU(struct kprobe *, current_kprobe); DECLARE_PER_CPU(struct kp

Greetings

2016-03-13 Thread Mevrouw Estelle Amadieu
Greetings, I am Mrs Estelle Amadieu, I am 65 years old base in Cote d'Ivoire I write to relate to you of my intention to use my money 2.5 million dollars for charity work in your country. I was married to Late Chrestien Amadieu who was a contractor with the Government of Cote d'Ivoire before he

Re: [PATCH V14 5/9] dma: qcom_hidma: implement lower level hardware interface

2016-03-13 Thread Vinod Koul
On Fri, Mar 11, 2016 at 04:59:23PM -0500, Sinan Kaya wrote: > Vinod, > > On 3/11/2016 2:29 PM, Sinan Kaya wrote: > > I have done the renaming. This is all left for me to post a follow up. > > I just posted v15 (forgot to put v15 on 4/4). Don't do that manually! git formt-patch --subject-prefix

Re: [PATCH V14 5/9] dma: qcom_hidma: implement lower level hardware interface

2016-03-13 Thread Vinod Koul
On Fri, Mar 11, 2016 at 02:29:41PM -0500, Sinan Kaya wrote: > On 3/11/2016 11:44 AM, Sinan Kaya wrote: > > On 3/11/2016 11:32 AM, Vinod Koul wrote: > > memcpy(lldev->tre_ring + lldev->tre_write_offset, &tre->tre_local[0], > + TRE_SIZE); > >> This one I would write this as:

Re: Kernel docs: muddying the waters a bit

2016-03-13 Thread Markus Heiser
Am 10.03.2016 um 16:21 schrieb Mauro Carvalho Chehab : > Em Thu, 10 Mar 2016 12:25:58 +0200 > Jani Nikula escreveu: > >> TL;DR? Skip to the last paragraph. >> >> On Wed, 09 Mar 2016, Mauro Carvalho Chehab wrote: >>> I guess the conversion to asciidoc format is now in good shape, >>> at least

<    1   2   3   4   >