Re: [patch 14/18] printk: Adjust system_state checks

2017-05-15 Thread Steven Rostedt
On Sun, 14 May 2017 20:27:30 +0200 Thomas Gleixner wrote: > To enable smp_processor_id() and might_sleep() debug checks earlier, it's > required to add system states between SYSTEM_BOOTING and SYSTEM_RUNNING. > > Adjust the system_state check in boot_delay_msec() to handle the extra > states. >

Re: [PATCH] ubifs: Fix inode leak in xattr code

2017-05-15 Thread Artem Bityutskiy
On Mon, 2017-05-15 at 16:20 +0200, Richard Weinberger wrote: > To solve this problem, set i_nlink for all xattr inodes to 0, such > that > the iput() in the UBIFS xattr code makes the temporary inode vanish > immediately. What if there is iget right after iput? With this patch, will we need to go

[PATCH v3 3/7] ARM: dts: imx7s: Add node for GPC

2017-05-15 Thread Andrey Smirnov
Add node for GPC and specify as a parent interrupt controller for SoC bus. Cc: yurov...@gmail.com Cc: Dong Aisheng Cc: Shawn Guo Cc: Sascha Hauer Cc: Fabio Estevam Cc: Rob Herring Cc: Mark Rutland Cc: Russell King Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by

[PATCH v3 5/7] ARM: dts: imx7d-sdb: Add GPIO expander node

2017-05-15 Thread Andrey Smirnov
Add node for U38, a 74LV595PW serial-in shift register that acts as a GPIO expander on the board. Cc: yurov...@gmail.com Cc: Dong Aisheng Cc: Shawn Guo Cc: Sascha Hauer Cc: Fabio Estevam Cc: Rob Herring Cc: Mark Rutland Cc: Russell King Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.k

Re: [patch 15/18] mm/vmscan: Adjust system_state checks

2017-05-15 Thread Steven Rostedt
On Sun, 14 May 2017 20:27:31 +0200 Thomas Gleixner wrote: > To enable smp_processor_id() and might_sleep() debug checks earlier, it's > required to add system states between SYSTEM_BOOTING and SYSTEM_RUNNING. > > Adjust the system_state check in kswapd_run() to handle the extra states. > > Sign

[PATCH v3 7/7] ARM: dts: imx7d-sdb: Enable PCIe peripheral

2017-05-15 Thread Andrey Smirnov
Enable PCIe peripheral on this board. Cc: yurov...@gmail.com Cc: Dong Aisheng Cc: Shawn Guo Cc: Sascha Hauer Cc: Fabio Estevam Cc: Rob Herring Cc: Mark Rutland Cc: Russell King Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Andrey Smirnov --- arch/arm/boot/

[PATCH v3 1/7] ARM: dts: imx: Reintroduce 'anatop-enable-bit' where appropriate

2017-05-15 Thread Andrey Smirnov
Now that support for 'anatop-enable-bit' has been added to ANADIG driver, reintroduce 'anatop-enable-bit' for all applicable LDOs. Cc: yurov...@gmail.com Cc: Dong Aisheng Cc: Shawn Guo Cc: Sascha Hauer Cc: Fabio Estevam Cc: Rob Herring Cc: Mark Rutland Cc: Russell King Cc: devicet...@vger.k

[PATCH] scsi: aacraid: fix leak of data from stack back to userspace

2017-05-15 Thread Colin King
From: Colin Ian King The fields sense_data_size and sense_data are unitialized garbage from the stack and are being copied back to userspace. Fix this leak of stack information by ensuring they are zero'd. Detected by CoverityScan, CID#1435473 ("Uninitialized scalar variable") Fixes: 423400e64

Re: [RFC 1/2] sched/fair: Fix load_balance() affinity redo path

2017-05-15 Thread Dietmar Eggemann
On 12/05/17 21:57, Jeffrey Hugo wrote: > On 5/12/2017 2:47 PM, Peter Zijlstra wrote: >> On Fri, May 12, 2017 at 11:01:37AM -0600, Jeffrey Hugo wrote: >>> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c >>> index d711093..8f783ba 100644 >>> --- a/kernel/sched/fair.c >>> +++ b/kernel/sched/fai

Re: [patch 16/18] init: Introduce SYSTEM_BOOTING_UP/SMP states

2017-05-15 Thread Steven Rostedt
On Sun, 14 May 2017 20:27:32 +0200 Thomas Gleixner wrote: > might_sleep() debugging should be active right after the scheduler starts > working and smp_processor_id() debugging right before the first non boot > cpu is brought up. > > Add two new states which allow to enable those checks earlier

[PATCH v3 2/7] ARM: imx: Select GPCv2 for i.MX7

2017-05-15 Thread Andrey Smirnov
GPCv2 IP block is a part of i.MX7 SoC. Select it to make corresponding driver availible to support DT changes following this patch. Cc: yurov...@gmail.com Cc: Dong Aisheng Cc: Shawn Guo Cc: Sascha Hauer Cc: Fabio Estevam Cc: Rob Herring Cc: Mark Rutland Cc: Russell King Cc: devicet...@vger.

[PATCH] perf report: fix off-by-one for non-activation frames

2017-05-15 Thread Milian Wolff
As the documentation for dwfl_frame_pc says, frames that are no activation frames need to have their program counter decremented by one to properly find the function of the caller. This fixes many cases where perf report currently attributes the cost to the next line. I.e. I have code like this:

Re: [PATCH] scsi: aacraid: fix leak of data from stack back to userspace

2017-05-15 Thread walter harms
Am 15.05.2017 16:56, schrieb Colin King: > From: Colin Ian King > > The fields sense_data_size and sense_data are unitialized garbage from > the stack and are being copied back to userspace. Fix this leak of > stack information by ensuring they are zero'd. > > Detected by CoverityScan, CID#14

Re: [alsa-devel] [PATCH v2 2/2] dmaengine: dw: Remove AVR32 bits from the driver

2017-05-15 Thread Takashi Iwai
On Mon, 15 May 2017 16:49:40 +0200, Vinod Koul wrote: > > On Mon, May 15, 2017 at 11:43:11AM +0300, Andy Shevchenko wrote: > > On Sun, 2017-05-14 at 18:34 +0530, Vinod Koul wrote: > > > On Tue, May 09, 2017 at 07:18:37PM +0300, Andy Shevchenko wrote: > > > > AVR32 is gone. Now it's time to clean u

Re: [patch 17/18] sched: Enable might_sleep() checks early

2017-05-15 Thread Steven Rostedt
On Sun, 14 May 2017 20:27:33 +0200 Thomas Gleixner wrote: > might_sleep() checks are enabled after the boot process is done. That hides > bugs in the smp bringup and driver initialization code. > > Enable it right when the scheduler starts working, i.e. when init task and > kthreadd have been cr

Re: [patch 18/18] sched: Enable smp_processor_id() checks early

2017-05-15 Thread Steven Rostedt
On Sun, 14 May 2017 20:27:34 +0200 Thomas Gleixner wrote: > smp_processor_id() checks are enabled after the boot process is done. That > hides bugs in the smp bringup and driver initialization code. > > Enable it right before the first non-boot CPU is brought up. > > Signed-off-by: Thomas Gleix

Re: [PATCH] perf report: fix off-by-one for non-activation frames

2017-05-15 Thread Milian Wolff
On Monday, May 15, 2017 5:04:44 PM CEST Milian Wolff wrote: > As the documentation for dwfl_frame_pc says, frames that > are no activation frames need to have their program counter > decremented by one to properly find the function of the caller. Note that this leaves the perf build against libunw

Re: [PATCH 3/4] selftests/ftrace: Fix bashisms

2017-05-15 Thread Steven Rostedt
Masami's the original author of ftracetest. Masami, are you OK with this change? -- Steve On Sun, 14 May 2017 01:01:03 +0530 "Naveen N. Rao" wrote: > Fix a few bashisms in ftrace selftests. > > Signed-off-by: Naveen N. Rao > --- > tools/testing/selftests/ftrace/ftracetest

Re: [PATCH V2] pwm: tegra: Set maximum pwm clock source per SoC tapeout

2017-05-15 Thread Laxman Dewangan
On Tuesday 02 May 2017 11:13 PM, Laxman Dewangan wrote: On Tuesday 02 May 2017 08:53 PM, Jon Hunter wrote: On 02/05/17 15:05, Laxman Dewangan wrote: The PWM hardware IP is taped-out with different maximum frequency on different SoCs. From HW team: Before Tegra186, it is 38.4MHz. In

[RFC][PATCH 00/21] VFS: Introduce superblock configuration context [ver #3]

2017-05-15 Thread David Howells
Here are a set of patches to create a superblock configuration context prior to setting up a new mount, populating it with the parsed options/binary data, creating the superblock and then effecting the mount. This allows namespaces and other information to be conveyed through the mount procedure.

[PATCH 02/21] Clean up whitespace in fs/namespace.c [ver #3]

2017-05-15 Thread David Howells
Clean up line terminal whitespace in fs/namespace.c. Signed-off-by: David Howells --- fs/namespace.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/namespace.c b/fs/namespace.c index 8bd3e4d448b9..c076787871e7 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -1

Re: Kernel modules under new copyleft licence : (was Re: [PATCH v2] module.h: add copyleft-next >= 0.3.1 as GPL compatible)

2017-05-15 Thread Alan Cox
> such "or" > language can be a bit confusing.  My understanding is such "or" > language is > really is only necessary or helpful for when you have some sort of > incompatible > licenses, and that's not the case here. The problem is that it takes a lawyer to decide whether the two are compatible.

[PATCH 01/21] Provide a function to create a NUL-terminated string from unterminated data [ver #3]

2017-05-15 Thread David Howells
Provide a function, kmemdup_nul(), that will create a NUL-terminated string from an unterminated character array where the length is known in advance. This is better than kstrndup() in situations where we already know the string length as the strnlen() in kstrndup() is superfluous. Signed-off-by:

[PATCH 03/21] VFS: Make get_mnt_ns() return the namespace [ver #3]

2017-05-15 Thread David Howells
Make get_mnt_ns() return the namespace it got a ref on for consistency with other namespace ref getting functions. Signed-off-by: David Howells --- fs/mount.h |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/mount.h b/fs/mount.h index bf1fda6eed8f..02ef292a77d7 100644

[PATCH 04/21] VFS: Make get_filesystem() return the affected filesystem [ver #3]

2017-05-15 Thread David Howells
Make get_filesystem() return a pointer to the filesystem on which it just got a ref. Suggested-by: Rasmus Villemoes Signed-off-by: David Howells --- fs/filesystems.c |3 ++- include/linux/fs.h |2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/filesystems.c b/fs

[PATCH 05/21] VFS: Provide empty name qstr [ver #3]

2017-05-15 Thread David Howells
Provide an empty name (ie. "") qstr for general use. Signed-off-by: David Howells --- fs/dcache.c|8 ++-- fs/gfs2/dir.c |3 +-- fs/namei.c |3 +-- fs/nsfs.c |3 +-- fs/pipe.c |3 +-- include/linux/dcache.h |5

[PATCH 08/21] Implement fsmount() to effect a pre-configured mount [ver #3]

2017-05-15 Thread David Howells
Provide a system call by which a filesystem opened with fsopen() and configured by a series of writes can be mounted: int ret = fsmount(int fsfd, int dfd, const char *path, unsigned int at_flags, unsigned int flags); where fsfd is the fd returned by fsopen(), dfd

[PATCH 06/21] VFS: Introduce a superblock configuration context [ver #3]

2017-05-15 Thread David Howells
Introduce a superblock configuration context concept to be used during superblock creation for mount and superblock reconfiguration for remount. This is allocated at the beginning of the mount procedure and into it is placed: (1) Filesystem type. (2) Namespaces. (3) Device name. (4) Superbl

[PATCH 10/21] procfs: Move proc_fill_super() to fs/proc/root.c [ver #3]

2017-05-15 Thread David Howells
Move proc_fill_super() to fs/proc/root.c as that's where the other superblock stuff is. Signed-off-by: David Howells --- fs/proc/inode.c| 48 +--- fs/proc/internal.h |4 +--- fs/proc/root.c | 48

[PATCH 09/21] Sample program for driving fsopen/fsmount [ver #3]

2017-05-15 Thread David Howells
--- samples/fsmount/test-fsmount.c | 79 1 file changed, 79 insertions(+) create mode 100644 samples/fsmount/test-fsmount.c diff --git a/samples/fsmount/test-fsmount.c b/samples/fsmount/test-fsmount.c new file mode 100644 index ..98b0258ae

[PATCH 13/21] NFS: Constify mount argument match tables [ver #3]

2017-05-15 Thread David Howells
--- fs/nfs/mount.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/nfs/mount.c b/fs/nfs/mount.c index eb77d9af6c35..9b5b89acf97a 100644 --- a/fs/nfs/mount.c +++ b/fs/nfs/mount.c @@ -197,7 +197,7 @@ enum { Opt_lookupcache_err }; -static match_table_t nfs

[PATCH 12/21] NFS: Move mount bits into their own file [ver #3]

2017-05-15 Thread David Howells
--- fs/nfs/Makefile |2 fs/nfs/internal.h | 30 + fs/nfs/mount.c| 1398 + fs/nfs/super.c| 1391 - 4 files changed, 1429 insertions(+), 1392 deletions(-) create mode 100644 fs

[PATCH 11/21] proc: Add superblock config support to procfs [ver #3]

2017-05-15 Thread David Howells
Add superblock config support to procfs. Signed-off-by: David Howells --- fs/proc/inode.c|2 - fs/proc/internal.h |2 - fs/proc/root.c | 166 +--- 3 files changed, 108 insertions(+), 62 deletions(-) diff --git a/fs/proc/inode.c b

[PATCH 14/21] NFS: Rename struct nfs_parsed_mount_data to struct nfs_sb_config [ver #3]

2017-05-15 Thread David Howells
Rename struct nfs_parsed_mount_data to struct nfs_sb_config and rename pointers to it to "cfg". At some point this will acquire an sb_config struct as the first term. --- fs/nfs/client.c | 64 fs/nfs/internal.h | 14 +- fs/nfs/mount.c | 433 +-

[PATCH 17/21] NFS: Add a small buffer in nfs_sb_config to avoid string dup [ver #3]

2017-05-15 Thread David Howells
Add a small buffer in nfs_sb_config to avoid string duplication when parsing numbers. Also make the parsing function wrapper place the parsed integer directly in the appropriate nfs_sb_config struct member. --- fs/nfs/internal.h |2 + fs/nfs/mount.c| 83 +++-

[PATCH 16/21] NFS: Deindent nfs_sb_config_parse_option() [ver #3]

2017-05-15 Thread David Howells
Deindent nfs_sb_config_parse_option(). --- fs/nfs/mount.c | 706 1 file changed, 351 insertions(+), 355 deletions(-) diff --git a/fs/nfs/mount.c b/fs/nfs/mount.c index 26153b471e48..54c38e0ed167 100644 --- a/fs/nfs/mount.c +++ b/fs/nfs/mo

[PATCH 20/21] Support legacy filesystems [ver #3]

2017-05-15 Thread David Howells
Support legacy filesystems by creating a set of legacy sb_config operations that builds up a list of mount options and then invokes fs_type->mount() within the sb_config mount operation. All filesystems can then be accessed using sb_config and the fs_type->mount() call is _only_ used from within l

[PATCH 18/21] NFS: Do some tidying of the parsing code [ver #3]

2017-05-15 Thread David Howells
Do some tidying of the parsing code, including: (*) Returning 0/error rather than true/false. (*) Putting the nfs_sb_config pointer first in some arg lists. (*) Unwrap some lines that will now fit on one line. (*) Provide unioned sockaddr/sockaddr_storage fields to avoid casts. (*) nfs_pa

Re: [PATCH 2/4] ftrace/instances: Clear function triggers when removing instances

2017-05-15 Thread Steven Rostedt
On Sun, 14 May 2017 01:01:02 +0530 "Naveen N. Rao" wrote: > If instance directories are deleted while there are registered function > triggers: > > # cd /sys/kernel/debug/tracing/instances > # mkdir test > # echo "schedule:enable_event:sched:sched_switch" > test/set_ftrace_filter > # rmd

[PATCH 21/21] Add commands to create or update a superblock [ver #3]

2017-05-15 Thread David Howells
Institute a separate step in the mounting procedure: (1) Create new sb_config context. (2) Configure the context. (3) Create superblock. (4) Mount the superblock any number of times. (5) Destroy the context. Step (3) is added and must be given by userspace before fsmount() may be used:

[PATCH 19/21] NFS: Add mount context support. [ver #3]

2017-05-15 Thread David Howells
Add mount context support to NFS, parsing the options in advance and attaching the information to the mount context. The highlights are: (*) Define a new nfs_mount_context struct that merges together nfs_parsed_mount_data, nfs_mount_info and nfs_clone_mount. This structure represents

[PATCH 15/21] NFS: Split nfs_parse_mount_options() [ver #3]

2017-05-15 Thread David Howells
Split nfs_parse_mount_options() to move the prologue, list-splitting and epilogue into one function and the per-option processing into another. --- fs/nfs/internal.h |3 + fs/nfs/mount.c| 143 ++--- 2 files changed, 83 insertions(+), 63 del

Re: [PATCH] ubifs: Fix inode leak in xattr code

2017-05-15 Thread Richard Weinberger
Artem, Am 15.05.2017 um 16:53 schrieb Artem Bityutskiy: > On Mon, 2017-05-15 at 16:20 +0200, Richard Weinberger wrote: >> To solve this problem, set i_nlink for all xattr inodes to 0, such >> that >> the iput() in the UBIFS xattr code makes the temporary inode vanish >> immediately. > > What if t

Re: [PATCH 1/2] fdt: correctly handle uncompressed node names

2017-05-15 Thread Rob Herring
On Sat, May 13, 2017 at 5:22 AM, Sascha Silbe wrote: > When handling uncompressed node names, we need to compare the last > component rather than the entire string. > > Signed-off-by: Sascha Silbe > --- > scripts/dtc/libfdt/fdt_ro.c | 3 +++ > 1 file changed, 3 insertions(+) This needs to be a

[PATCH 07/21] Implement fsopen() to prepare for a mount [ver #3]

2017-05-15 Thread David Howells
Provide an fsopen() system call that starts the process of preparing to mount, using an fd as a context handle. fsopen() is given the name of the filesystem that will be used: int mfd = fsopen(const char *fsname, int reserved, int open_flags); where reserved shou

Re: [PATCH] devicetree: Move include prefixes from arch to separate directory

2017-05-15 Thread Russell King - ARM Linux
On Mon, May 15, 2017 at 09:47:40AM -0500, Rob Herring wrote: > On Mon, May 15, 2017 at 9:26 AM, Russell King - ARM Linux > wrote: > > Maybe what we should do is: > > > > mkdir include/dt > > git mv include/dt-bindings include/dt > > for arch in arch/*; do > > dts=$arch/boot/dts > > if [ -d $dt

Re: [PATCH] devicetree: Move include prefixes from arch to separate directory

2017-05-15 Thread Olof Johansson
On Mon, May 15, 2017 at 7:47 AM, Rob Herring wrote: > On Mon, May 15, 2017 at 9:26 AM, Russell King - ARM Linux > wrote: >> On Mon, May 15, 2017 at 08:01:07AM -0500, Rob Herring wrote: >>> I'd prefer not to mix things in scripts/dtc that aren't the import of >>> dtc (yes, we do have a few other t

[RFC v1 0/3] Introduce on-chip interconnect API

2017-05-15 Thread Georgi Djakov
Modern SoCs have multiple processors and various dedicated cores (video, gpu, graphics, modem). These cores are talking to each other and can generate a lot of data flowing through the on-chip interconnects. These interconnect buses could form different topologies such as crossbar, point to point b

[RFC v1 3/3] dt-binding: Interconnect device-tree bindings draft

2017-05-15 Thread Georgi Djakov
The interconnect API is not yet using DT bindings for expressing the relations between the API consumers and providers. This is posted a separate patch as it needs further discussions on how to represent this with DT. Signed-off-by: Georgi Djakov --- .../bindings/interconnect/interconnect.txt

[RFC v1 2/3] interconnect: Add Qualcomm msm8916 interconnect provider driver

2017-05-15 Thread Georgi Djakov
Add driver for the Qualcomm interconnect controllers found in msm8916 based platforms. Signed-off-by: Georgi Djakov --- drivers/interconnect/Kconfig | 5 + drivers/interconnect/Makefile| 1 + drivers/interconnect/qcom/Kconfig| 12 + dr

Re: [patch 18/18] sched: Enable smp_processor_id() checks early

2017-05-15 Thread Thomas Gleixner
On Mon, 15 May 2017, Steven Rostedt wrote: > On Sun, 14 May 2017 20:27:34 +0200 > Thomas Gleixner wrote: > > > smp_processor_id() checks are enabled after the boot process is done. That > > hides bugs in the smp bringup and driver initialization code. > > > > Enable it right before the first no

[RFC v1 1/3] interconnect: Add generic interconnect controller API

2017-05-15 Thread Georgi Djakov
This patch introduce a new API to get the requirement and configure the interconnect buses across the entire chipset to fit with the current demand. The API is using a consumer/provider-based model, where the providers are the interconnect controllers and the consumers could be various drivers. Th

Re: [tpmdd-devel] [PATCH] tpm: fix byte order related arithmetic inconsistency in tpm_getcap()

2017-05-15 Thread Jason Gunthorpe
On Mon, May 15, 2017 at 02:36:02PM +0300, Jarkko Sakkinen wrote: > On Wed, May 10, 2017 at 03:34:58PM +0300, Jarkko Sakkinen wrote: > > On Tue, May 09, 2017 at 09:13:08AM -0600, Jason Gunthorpe wrote: > > > On Tue, May 09, 2017 at 05:13:53PM +0300, Jarkko Sakkinen wrote: > > > > On Sun, May 07, 201

Re: Linux 4.12-rc1 (file locations)

2017-05-15 Thread Linus Torvalds
On Sun, May 14, 2017 at 10:59 AM, Randy Dunlap wrote: > > Can the generated files please be put in the same places that (most or > all) previous releases have used? I will leave this to Konstantin.. There may well be practical reasons for the movement. > Oh, and the patch file (on https://kernel

cleanup UUID types V2

2017-05-15 Thread Christoph Hellwig
Hi all, this series, which is a combined effort from Amir, Andy and me introduces new uuid_t and guid_t type names that are less confusing than the existing types, adds new helpers for them and starts switching the fs code over to it. Andy has additional patches on top to convert many of the user

[PATCH 01/17] xfs: use uuid_copy() helper to abstract uuid_t

2017-05-15 Thread Christoph Hellwig
From: Amir Goldstein uuid_t definition is about to change. Signed-off-by: Amir Goldstein Signed-off-by: Christoph Hellwig --- fs/xfs/xfs_inode_item.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/fs/xfs/xfs_inode_item.c b/fs/xfs/xfs_inode_item.c index 08cb7d1a4a3

[PATCH 11/17] uuid: remove struct uuid_v1

2017-05-15 Thread Christoph Hellwig
Unused now. Signed-off-by: Christoph Hellwig --- include/linux/uuid.h | 24 1 file changed, 24 deletions(-) diff --git a/include/linux/uuid.h b/include/linux/uuid.h index f0e2a645e2bb..3980d5579338 100644 --- a/include/linux/uuid.h +++ b/include/linux/uuid.h @@ -19,30 +

[PATCH 13/17] md: namespace private helper names

2017-05-15 Thread Christoph Hellwig
From: Amir Goldstein The md private helper uuid_equal() collides with a generic helper of the same name. Rename the md private helper to md_uuid_equal() and do the same for md_sb_equal(). Cc: Shaohua Li Signed-off-by: Amir Goldstein Signed-off-by: Christoph Hellwig --- drivers/md/md.c | 8 +

[PATCH 09/17] s390/sysinfo: use uuid_is_null instead of opencoding it

2017-05-15 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- arch/s390/kernel/sysinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/kernel/sysinfo.c b/arch/s390/kernel/sysinfo.c index eefcb54872a5..fb869b103825 100644 --- a/arch/s390/kernel/sysinfo.c +++ b/arch/s390/kernel/sysinfo.c @@

[PATCH 16/17] ima/policy: switch to use uuid_t

2017-05-15 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- security/integrity/ima/ima_policy.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/security/integrity/ima/ima_policy.c b/security/integrity/ima/ima_policy.c index 49fbc3e8f012..da3e7d50e0d7 100644 --- a/security/integrity/ima/

[PATCH 17/17] fs: switch ->s_uuid to uuid_t

2017-05-15 Thread Christoph Hellwig
For some file systems we still memcpy into it, but in various places this already allows us to use the proper uuid helpers. More to come.. Signed-off-by: Christoph Hellwig --- drivers/xen/tmem.c | 6 +++--- fs/ext4/super.c | 2 +- fs/f2fs/super.c

[PATCH 14/17] xfs: use the common helper uuid_is_null()

2017-05-15 Thread Christoph Hellwig
From: Amir Goldstein Use the common helper uuid_is_null() and remove the xfs specific helper uuid_is_nil(). The common helper does not check for the NULL pointer value as xfs helper did, but xfs code never calls the helper with a pointer that can be NULL. Conform comments and warning strings to

[PATCH 15/17] block: remove blk_part_pack_uuid

2017-05-15 Thread Christoph Hellwig
This helper was only used by IMA of all things, which would get spurious errors if CONFIG_BLOCK is disabled. Just opencode the call there. Signed-off-by: Christoph Hellwig --- include/linux/genhd.h | 11 --- security/integrity/ima/ima_policy.c | 3 +-- 2 files changed, 1

[PATCH 12/17] xfs: remove uuid_getnodeuniq and xfs_uu_t

2017-05-15 Thread Christoph Hellwig
Directly use the v1 intepretation of uuid_t instead. Signed-off-by: Christoph Hellwig --- fs/xfs/uuid.c | 25 - fs/xfs/uuid.h | 1 - fs/xfs/xfs_mount.c | 6 +- 3 files changed, 5 insertions(+), 27 deletions(-) diff --git a/fs/xfs/uuid.c b/fs/xfs/uuid.c in

[PATCH 10/17] afs: switch to use uuid_t and uuid_gen

2017-05-15 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig Reviewed-by: David Howells --- fs/afs/cmservice.c | 46 +++--- fs/afs/internal.h | 2 +- fs/afs/main.c | 4 ++-- 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/fs/afs/cmservice.c b/fs/afs/cmservice

[PATCH 07/17] uuid: remove the now unused uuid_be_cmp helper

2017-05-15 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/linux/uuid.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/linux/uuid.h b/include/linux/uuid.h index aef21b580b17..21218351ae26 100644 --- a/include/linux/uuid.h +++ b/include/linux/uuid.h @@ -92,9 +92,4 @@ static inline int uuid_le_c

[PATCH 06/17] uuid: hoist helpers uuid_equal() and uuid_copy() from xfs

2017-05-15 Thread Christoph Hellwig
These helper are used to compare and copy two uuid_t type objects. Signed-off-by: Amir Goldstein [hch: also provide the respective guid_ versions] Signed-off-by: Christoph Hellwig --- fs/xfs/uuid.c| 6 -- fs/xfs/uuid.h| 7 --- include/linux/uuid.h | 20

[PATCH 05/17] uuid: add the v1 layout to uuid_t

2017-05-15 Thread Christoph Hellwig
Turn the content of uuid_t into a union and add the fields for the v1 interpretation to it. Signed-off-by: Christoph Hellwig Reviewed-by: David Howells --- include/uapi/linux/uuid.h | 39 +-- 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/incl

[PATCH 08/17] uuid: hoist uuid_is_null() helper from libnvdimm

2017-05-15 Thread Christoph Hellwig
Hoist the libnvdimm helper as an inline helper to linux/uuid.h using an auxiliary const variable uuid_null in lib/uuid.c. [hch: also add the guid variant. Both do the same but I'd like to keep casts to a minimum] The common helper uses the new abstract type uuid_t * instead of u8 *. Suggested-b

Re: [PATCH] sched: remove sched_find_first_bit()

2017-05-15 Thread Yury Norov
On Sun, May 14, 2017 at 08:09:17PM +0200, Ingo Molnar wrote: > > * Yury Norov wrote: > > > sched_find_first_bit() is in fact the unrolled version of > > find_first_bit(), which is theoretically faster in some cases. > > But in the kernel it is called only in couple places in > > kernel/sched/rt

[RFC PATCH] fs: ext4: don't trap kswapd and allocating tasks on ext4 inode IO

2017-05-15 Thread Johannes Weiner
We have observed across several workloads situations where kswapd and direct reclaimers get stuck in the inode shrinker of the ext4 / mount, causing allocation latencies across tasks in the system, while there are dozens of gigabytes of clean page cache covering multiple disks. The stack traces of

[PATCH 03/17] uuid: rename uuid types

2017-05-15 Thread Christoph Hellwig
Our "little endian" UUID really is a Wintel GUID, so rename it and its helpers such (guid_t). The big endian UUID is the only true one, so give it the name uuid_t. The uuid_le and uuid_be names are retained for now, but will hopefully go away soon. The exception to that are the _cmp helpers that

Re: [PATCH] workqueue: Ensure that cpumask set for pools created after boot

2017-05-15 Thread Michael Bringmann
Hello: On 05/10/2017 12:33 PM, Tejun Heo wrote: > Hello, > > On Wed, May 10, 2017 at 11:48:17AM -0500, Michael Bringmann wrote: >> >> On NUMA systems with dynamic processors, the content of the cpumask >> may change over time. As new processors are added via DLPAR operations, >> workqueues are c

[PATCH 04/17] uuid: don't export guid_index and uuid_index

2017-05-15 Thread Christoph Hellwig
These are only used in uuid.c and vsprintf.c and aren't something modules should use directly. Signed-off-by: Christoph Hellwig --- lib/uuid.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/uuid.c b/lib/uuid.c index f80dc63f6ca8..003bf6823003 100644 --- a/lib/uuid.c +++ b/lib/uuid.c @@

[PATCH 02/17] xfs: use uuid_be to implement the uuid_t type

2017-05-15 Thread Christoph Hellwig
Use the generic Linux definition to implement our UUID type, this will allow using more generic infrastructure in the future. Signed-off-by: Christoph Hellwig --- fs/xfs/uuid.h | 4 fs/xfs/xfs_linux.h | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/fs/xfs/uuid.h

Re: [PATCH] devicetree: Move include prefixes from arch to separate directory

2017-05-15 Thread Russell King - ARM Linux
On Mon, May 15, 2017 at 08:27:54AM -0700, Olof Johansson wrote: > On Mon, May 15, 2017 at 7:47 AM, Rob Herring wrote: > > On Mon, May 15, 2017 at 9:26 AM, Russell King - ARM Linux > > wrote: > >> Maybe what we should do is: > >> > >> mkdir include/dt > >> git mv include/dt-bindings include/dt > >

[Kernel.org Helpdesk #40777] [linuxfoundation.org #40777] Re: Linux 4.12-rc1 (file locations)

2017-05-15 Thread Linus Torvalds via RT
On Sun, May 14, 2017 at 10:59 AM, Randy Dunlap wrote: > > Can the generated files please be put in the same places that (most or > all) previous releases have used? I will leave this to Konstantin.. There may well be practical reasons for the movement. > Oh, and the patch file (on https://kernel

Re: [PATCH 1/2] dax: hide block device code in #ifdef

2017-05-15 Thread Darrick J. Wong
On Mon, May 15, 2017 at 04:20:09PM +0200, Arnd Bergmann wrote: > On Mon, May 15, 2017 at 4:11 PM, Dan Williams > wrote: > > On Mon, May 15, 2017 at 6:44 AM, Arnd Bergmann wrote: > >> We allow configurations with CONFIG_BLOCK=n and CONFIG_DAX=y, which now > >> results in a link error: > >> > >> d

RE: [PATCH] nvme: Change our APST table to be no more aggressive than Intel RSTe

2017-05-15 Thread Mario.Limonciello
> On Fri, May 12, 2017 at 7:34 AM, wrote: > >>Yes, mostly. I've written the patch, but I was planning to target it > >>at 4.12 or 4.13 but not -stable. It's mostly just a cleanup and has > >>no real power saving benefit since the RSTe timeouts are so absurdly > >>conservative that I doubt PS4 w

Re: [tpmdd-devel] [PATCH] Add "shutdown" to "struct class".

2017-05-15 Thread Jason Gunthorpe
On Sat, May 13, 2017 at 12:43:11PM +, Winkler, Tomas wrote: > > The TPM class has some common shutdown code that must be executed for > > all drivers. This adds some needed functionality for that > > The issue with this is, that on some platforms the only storage can > be eMMC and TPM is using

[PATCH] watchdog: orion: don't build for ARCH_EBSA110

2017-05-15 Thread Arnd Bergmann
The randconfig builder caught another corner case with this driver that fails to build for EBSA110 since that has its own MMIO handlers and lacks atomic_io_modify: drivers/watchdog/orion_wdt.o: In function `orion_stop': orion_wdt.c:(.text.orion_stop+0x28): undefined reference to `atomic_io_modify'

Re: [PATCH v3 6/6] drm: arc: Use crtc->mode_valid() callback

2017-05-15 Thread Daniel Vetter
On Mon, May 15, 2017 at 10:53:25AM +0200, Daniel Vetter wrote: > On Thu, May 11, 2017 at 10:06:02AM +0100, Jose Abreu wrote: > > Now that we have a callback to check if crtc supports a given mode > > we can use it in arcpgu so that we restrict the number of probbed > > modes to the ones we can actu

Re: [PATCH] devicetree: Move include prefixes from arch to separate directory

2017-05-15 Thread Rob Herring
On Mon, May 15, 2017 at 10:27 AM, Olof Johansson wrote: > On Mon, May 15, 2017 at 7:47 AM, Rob Herring wrote: >> On Mon, May 15, 2017 at 9:26 AM, Russell King - ARM Linux >> wrote: >>> On Mon, May 15, 2017 at 08:01:07AM -0500, Rob Herring wrote: I'd prefer not to mix things in scripts/dtc t

Re: [PATCH v4 2/2] tpm: vtpm_proxy: Implement request_locality function.

2017-05-15 Thread Stefan Berger
On 05/15/2017 08:41 AM, Jarkko Sakkinen wrote: On Wed, May 10, 2017 at 07:54:22PM -0400, Stefan Berger wrote: Implement the request_locality function. To set the locality on the backend we define vendor-specific TPM 1.2 and TPM 2 ordinals and send a command to the backend to set the locality for

[PATCH] cros_ec_i2c: prevent i2c timeout for EC_CMD_FLASH_ERASE

2017-05-15 Thread Wei-Ning Huang
Some EC chip has larger flash sector size which requires longer erase time. During erase the CPU is usually stalled and can't even respond to interrupts. We sleep a while to block any EC command from executing during the flash erase period. Signed-off-by: Wei-Ning Huang --- drivers/mfd/cros_ec_i

[PATCH 2/2] coredump: call do_unlinkat directly instead of sys_unlink

2017-05-15 Thread Christoph Hellwig
And stop messing with the address limit. Signed-off-by: Christoph Hellwig --- fs/coredump.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/fs/coredump.c b/fs/coredump.c index 592683711c64..10a020639a94 100644 --- a/fs/coredump.c +++ b/fs/coredump.c @@ -679,16 +679,11 @

[PATCH 1/2] fs: expose do_unlinkat for built-in callers

2017-05-15 Thread Christoph Hellwig
And make it take a struct filename instead of a user pointer. Signed-off-by: Christoph Hellwig --- fs/internal.h | 1 + fs/namei.c| 12 +--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/fs/internal.h b/fs/internal.h index 9676fe11c093..c127454fe4af 100644 --- a/fs/

[PATCH] scsi: sun_esp: fix device reference leaks

2017-05-15 Thread Johan Hovold
Make sure to drop the reference to the dma device taken by of_find_device_by_node() on probe errors and on driver unbind. Fixes: 334ae614772b ("sparc: Kill SBUS DVMA layer.") Signed-off-by: Johan Hovold --- drivers/scsi/sun_esp.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) dif

Re: [RFC v1 2/3] interconnect: Add Qualcomm msm8916 interconnect provider driver

2017-05-15 Thread Geert Uytterhoeven
Hi Georgi, On Mon, May 15, 2017 at 5:35 PM, Georgi Djakov wrote: > --- /dev/null > +++ b/drivers/interconnect/qcom/interconnect_msm8916.c > +struct qcom_interconnect_node { > + struct interconnect_node node; > + unsigned int id; 4 byte gap due to alignment rules on 64-bit. > +

Re: [PATCH v2 04/11] arm64: dts: Initial DTS files for Broadcom Stingray SOC

2017-05-15 Thread Scott Branden
On 17-05-15 06:13 AM, Mark Rutland wrote: Hi, On Mon, May 15, 2017 at 05:32:14PM +0530, Anup Patel wrote: +/ { + chosen { /* Default kernel args */ + bootargs = "root=/dev/ram rw rootwait \ + earlycon=uart8250,mmio32,0x68a1 \ +

Re: [PATCH v4 1/2] tpm: Refactor tpm_transmit pulling out tpm_transfer function

2017-05-15 Thread Stefan Berger
On 05/15/2017 08:40 AM, Jarkko Sakkinen wrote: On Wed, May 10, 2017 at 07:54:21PM -0400, Stefan Berger wrote: Refactor tpm_transmit and pull out code sending the command and receiving the response and put this into tpm_transfer. Signed-off-by: Stefan Berger --- drivers/char/tpm/tpm-interface

Re: [PATCH] ubifs: Fix inode leak in xattr code

2017-05-15 Thread Artem Bityutskiy
On Mon, 2017-05-15 at 17:22 +0200, Richard Weinberger wrote: > Alternatively we could add a iget_locked/drop_nlink/iput sequence to > ubifs_tnc_remove_ino(). But that will make unlink() much slower for > files > that contain xattrs. At that level we'd need to do it for every xattr, even those that

Re: [PATCH] sched: remove sched_find_first_bit()

2017-05-15 Thread Arnd Bergmann
On Mon, May 15, 2017 at 5:47 PM, Yury Norov wrote: > On Sun, May 14, 2017 at 08:09:17PM +0200, Ingo Molnar wrote: >> >> * Yury Norov wrote: >> >> > sched_find_first_bit() is in fact the unrolled version of >> > find_first_bit(), which is theoretically faster in some cases. >> > But in the kernel

Re: [PATCH v4 1/2] tpm: Refactor tpm_transmit pulling out tpm_transfer function

2017-05-15 Thread Stefan Berger
On 05/15/2017 12:04 PM, Stefan Berger wrote: On 05/15/2017 08:40 AM, Jarkko Sakkinen wrote: On Wed, May 10, 2017 at 07:54:21PM -0400, Stefan Berger wrote: Refactor tpm_transmit and pull out code sending the command and receiving the response and put this into tpm_transfer. Signed-off-by: Stefa

Re: [PATCH] devicetree: Move include prefixes from arch to separate directory

2017-05-15 Thread Olof Johansson
On Mon, May 15, 2017 at 8:52 AM, Rob Herring wrote: > On Mon, May 15, 2017 at 10:27 AM, Olof Johansson wrote: >> On Mon, May 15, 2017 at 7:47 AM, Rob Herring wrote: >>> On Mon, May 15, 2017 at 9:26 AM, Russell King - ARM Linux >>> wrote: On Mon, May 15, 2017 at 08:01:07AM -0500, Rob Herrin

Re: [PATCH 2/4] ftrace/instances: Clear function triggers when removing instances

2017-05-15 Thread Steven Rostedt
On Mon, 15 May 2017 11:21:15 -0400 Steven Rostedt wrote: > On Sun, 14 May 2017 01:01:02 +0530 > "Naveen N. Rao" wrote: > > > If instance directories are deleted while there are registered function > > triggers: > > > > # cd /sys/kernel/debug/tracing/instances > > # mkdir test > > # echo

Re: [PATCH v3 -tip 0/6] locking: Introduce range reader/writer lock

2017-05-15 Thread Christoph Hellwig
Btw, please don't add any new code that only has staging users to the tree. Especially not for a piuece of junk like lustre that should be removed rather sooner than later.

RE: [PATCH] nvme: Change our APST table to be no more aggressive than Intel RSTe

2017-05-15 Thread Mario.Limonciello
> -Original Message- > From: Andy Lutomirski [mailto:l...@kernel.org] > Sent: Saturday, May 13, 2017 7:28 AM > To: Andy Lutomirski > Cc: Jens Axboe ; linux-kernel@vger.kernel.org; Kai-Heng Feng > ; linux-nvme ; > Christoph Hellwig ; Sagi Grimberg ; Keith Busch > ; Limonciello, Mario > Sub

Re: [PATCH] watchdog: orion: don't build for ARCH_EBSA110

2017-05-15 Thread Guenter Roeck
On Mon, May 15, 2017 at 05:50:19PM +0200, Arnd Bergmann wrote: > The randconfig builder caught another corner case with this driver that > fails to build for EBSA110 since that has its own MMIO handlers and > lacks atomic_io_modify: > > drivers/watchdog/orion_wdt.o: In function `orion_stop': > ori

Re: [PATCH] cros_ec_i2c: prevent i2c timeout for EC_CMD_FLASH_ERASE

2017-05-15 Thread Doug Anderson
Hi, On Wed, May 10, 2017 at 10:30 PM, Wei-Ning Huang wrote: > Some EC chip has larger flash sector size which requires longer erase > time. During erase the CPU is usually stalled and can't even respond to > interrupts. We sleep a while to block any EC command from executing > during the flash er

<    1   2   3   4   5   6   7   8   9   10   >