Re: [PATCH 0/2] mm->owner to mm->memcg fixes

2018-05-24 Thread Andrea Parri
On Thu, May 24, 2018 at 02:16:35PM -0700, Andrew Morton wrote: > On Thu, 24 May 2018 13:10:02 +0200 Michal Hocko wrote: > > > I would really prefer and appreciate a repost with all the fixes folded > > in. > > [1/2] > > From: "Eric W. Biederman" > Subject: memcg: replace mm->owner with mm->mem

Re: [PATCH] cros_ec_keyb: Increment the wakeup count to the specific mfd device.

2018-05-24 Thread Dmitry Torokhov
Hi Ravi, On Wed, May 23, 2018 at 11:29:58AM -0700, Ravi Chandra Sadineni wrote: > If the IRQ is processed during resume, increment the wakeup count to the > specific mfd device based on the event, if the mfd device is wake enabled. > This helps in identifying the specific device that caused the wa

Re: [PATCH v2 1/8] driver core: make deferring probe after init optional

2018-05-24 Thread Rob Herring
On Thu, May 24, 2018 at 5:28 PM, Bjorn Andersson wrote: > On Thu 24 May 10:50 PDT 2018, Rob Herring wrote: > >> Deferred probe will currently wait forever on dependent devices to probe, >> but sometimes a driver will never exist. It's also not always critical for >> a driver to exist. Platforms ca

Re: [PATCH 6/6] coresight: allow to build as modules

2018-05-24 Thread Kim Phillips
On Tue, 22 May 2018 15:39:06 -0600 Mathieu Poirier wrote: > On Thu, May 17, 2018 at 08:20:24PM -0500, Kim Phillips wrote: > > Allow to build coresight as modules. This greatly enhances developer > > efficiency by allowing the development to take place exclusively on the > > target, and without n

Re: [PATCH v7 2/2] iommu/amd: Add basic debugfs infrastructure for AMD IOMMU

2018-05-24 Thread Gary R Hook
On 05/18/2018 04:02 PM, Gary R Hook wrote: On 05/18/2018 11:49 AM, Randy Dunlap wrote: I think the Kconfig option would have been the correct choice. "Preferred", perhaps. Neither is incorrect. And really, the Makefile/Kconfig choice is somewhat separate from the organization issue. So I've

Re: [PATCH v2 3/7] platform/mellanox: mlxreg-hotplug: add extra cycle for hotplug work queue

2018-05-24 Thread Darren Hart
On Mon, May 07, 2018 at 06:48:51AM +, Vadim Pasternak wrote: Hi Vadim, > Add extra cycle for hotplug work queue to handle the case when a signal is > It adds missed logic for signal acknowledge, by adding an extra run for > received, but no specific signal assertion is detected. Such case > t

RE: [PATCH] PCI: hv: Do not wait forever on a device that has disappeared

2018-05-24 Thread Dexuan Cui
> From: Lorenzo Pieralisi > Sent: Thursday, May 24, 2018 05:41 > On Wed, May 23, 2018 at 09:12:01PM +, Dexuan Cui wrote: > > > > Before the guest finishes the device initialization, the device can be > > removed anytime by the host, and after that the host won't respond to > > the guest's requ

Re: [PATCH v2 5/7] platform/x86: mlx-platform: Add LED platform driver activation

2018-05-24 Thread Darren Hart
On Mon, May 07, 2018 at 06:48:53AM +, Vadim Pasternak wrote: > Add LED platform driver activation from mlx-platform. This LED driver uses > the same regmap infrastructure as others Mellanox platform drivers, so LED > specific registers description is added. > > System LED configuration depends

[PATCH 00/32] VFS: Introduce filesystem context [ver #8]

2018-05-24 Thread David Howells
Hi Al, Can you take a look at this please, in particular the last 6 patches? Here are a set of patches to create a filesystem 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 is also used for r

[PATCH 01/32] VFS: Suppress MS_* flag defs within the kernel unless explicitly enabled [ver #8]

2018-05-24 Thread David Howells
Only the mount namespace code that implements mount(2) should be using the MS_* flags. Suppress them inside the kernel unless uapi/linux/mount.h is included. Signed-off-by: David Howells --- arch/arc/kernel/setup.c |1 + arch/arm/kernel/atags_parse.c |1 + arch/sh/kernel/setup.c

[PATCH 04/32] VFS: Add LSM hooks for the new mount API [ver #8]

2018-05-24 Thread David Howells
Add LSM hooks for use by the new mount API and filesystem context code. This includes: (1) Hooks to handle allocation, duplication and freeing of the security record attached to a filesystem context. (2) A hook to snoop source specifications. There may be multiple of these if the fil

[PATCH 08/32] tomoyo: Implement security hooks for the new mount API [ver #8]

2018-05-24 Thread David Howells
Implement the security hook to check the creation of a new mountpoint for Tomoyo. As far as I can tell, Tomoyo doesn't make use of the mount data or parse any mount options, so I haven't implemented any of the fs_context hooks for it. Signed-off-by: David Howells cc: Tetsuo Handa cc: tomoyo-dev

[PATCH 03/32] VFS: Introduce the basic header for the new mount API's filesystem context [ver #8]

2018-05-24 Thread David Howells
Introduce a filesystem 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) Source/Device names (there may be multi

[PATCH 12/32] procfs: Move proc_fill_super() to fs/proc/root.c [ver #8]

2018-05-24 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| 49 + fs/proc/internal.h |4 +--- fs/proc/root.c | 48 +++

[PATCH 16/32] kernfs, sysfs, cgroup, intel_rdt: Support fs_context [ver #8]

2018-05-24 Thread David Howells
Make kernfs support superblock creation/mount/remount with fs_context. This requires that sysfs, cgroup and intel_rdt, which are built on kernfs, be made to support fs_context also. Notes: (1) A kernfs_fs_context struct is created to wrap fs_context and the kernfs mount parameters are move

[PATCH 07/32] apparmor: Implement security hooks for the new mount API [ver #8]

2018-05-24 Thread David Howells
Implement hooks to check the creation of new mountpoints for AppArmor. Unfortunately, the DFA evaluation puts the option data in last, after the details of the mountpoint, so we have to cache the mount options in the fs_context using those hooks till we get to the new mountpoint hook. Signed-off-

[PATCH 15/32] cpuset: Use fs_context [ver #8]

2018-05-24 Thread David Howells
Make the cpuset filesystem use the filesystem context. This is potentially tricky as the cpuset fs is almost an alias for the cgroup filesystem, but with some special parameters. This can, however, be handled by setting up an appropriate cgroup filesystem and returning the root directory of that

[PATCH 14/32] ipc: Convert mqueue fs to fs_context [ver #8]

2018-05-24 Thread David Howells
Convert the mqueue filesystem to use the filesystem context stuff. Notes: (1) The relevant ipc namespace is selected in when the context is initialised (and it defaults to the current task's ipc namespace). The caller can override this before calling vfs_get_tree(). (2) Rather than s

[PATCH 17/32] hugetlbfs: Convert to fs_context [ver #8]

2018-05-24 Thread David Howells
Convert the hugetlbfs to use the fs_context during mount. Signed-off-by: David Howells --- fs/hugetlbfs/inode.c | 340 +- 1 file changed, 194 insertions(+), 146 deletions(-) diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index 76fb8eb2

[PATCH 21/32] VFS: Implement fsmount() to effect a pre-configured mount [ver #8]

2018-05-24 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 20/32] vfs: Make close() unmount the attached mount if so flagged [ver #8]

2018-05-24 Thread David Howells
--- fs/file_table.c|4 include/linux/fs.h |4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/fs/file_table.c b/fs/file_table.c index 7ec0b3e5f05d..dbbcc563748a 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -30,6 +30,7 @@ #include #include "intern

[PATCH 22/32] vfs: Provide an fspick() system call [ver #8]

2018-05-24 Thread David Howells
Provide an fspick() system call that can be used to pick an existing mountpoint into an fs_context which can thereafter be used to reconfigure a superblock (equivalent of the superblock side of -o remount). This looks like: int fd = fspick(AT_FDCWD, "/mnt", FSPICK_

[PATCH 26/32] afs: Use fs_context to pass parameters over automount [ver #8]

2018-05-24 Thread David Howells
Alter the AFS automounting code to create and modify an fs_context struct when parameterising a new mount triggered by an AFS mountpoint rather than constructing device name and option strings. Also remove the cell=, vol= and rwpath options as they are then redundant. The reason they existed is be

[PATCH 27/32] vfs: Use a 'struct fd_cookie *' type for light fd handling [ver #8]

2018-05-24 Thread David Howells
Use a 'struct fd_cookie *' type for light fd handling rather than an unsigned long so that confusion doesn't arise with integer fd numbers. I have a use case where I want to store this in struct nameidata, but don't want to expand it to a struct fd to save space. Signed-off-by: David Howells ---

[PATCH 25/32] afs: Add fs_context support [ver #8]

2018-05-24 Thread David Howells
Add fs_context support to the AFS filesystem, converting the parameter parsing to store options there. This will form the basis for namespace propagation over mountpoints within the AFS model, thereby allowing AFS to be used in containers more easily. Signed-off-by: David Howells --- fs/afs/in

[PATCH 24/32] vfs: Add some logging to the core users of the fs_context log [ver #8]

2018-05-24 Thread David Howells
Add some logging to the core users of the fs_context log so that information can be extracted from them as to the reason for failure. Signed-off-by: David Howells --- fs/super.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/super.c b/fs/super.c index 06a665628939.

[PATCH 31/32] [RFC] fs: Add a move_mount() system call [ver #8]

2018-05-24 Thread David Howells
[!] NOTE: This patch doesn't quite work to move an O_CLONE_MOUNT-produced vfsmount as move_mount() checks that the source vfsmount mnt_ns matches the calling process's mnt_ns - but the vfsmount's mnt_ns isn't set until one attempts to actually mount it into the namespace. Add a move_mo

[PATCH 29/32] vfs: Don't mix FMODE_* flags with O_* flags [ver #8]

2018-05-24 Thread David Howells
build_open_flags() has a weird bit in it: /* Must never be set by userspace */ flags &= ~FMODE_NONOTIFY & ~O_CLOEXEC; This didn't used to have the O_CLOEXEC removal in it, but just used to be: /* Must never be set by userspace */ flags &= ~FMODE_NONOTIFY; but thi

[PATCH 32/32] [RFC] fsinfo: Add a system call to allow querying of filesystem information [ver #8]

2018-05-24 Thread David Howells
Add a system call to allow filesystem information to be queried. This is implemented as a function switch where the desired attribute value or values is nominated. === NEW SYSTEM CALL === The new system call looks like: int ret = fsinfo(int dfd,

[PATCH 28/32] vfs: Store the fd_cookie in nameidata, not the dfd int [ver #8]

2018-05-24 Thread David Howells
Look up dfd in set_nameidata() if not AT_FDCWD and store the resultant fd_cookie in struct nameidata. LOOKUP_AT_FDCWD is set if AT_FDCWD was supplied. The fd_cookie is released in restore_nameidata(). This means that where the fd points in a construct like the following: set_nameidata(&

[PATCH 30/32] vfs: Allow cloning of a mount tree with open(O_PATH|O_CLONE_MOUNT) [ver #8]

2018-05-24 Thread David Howells
Make it possible to clone a mount tree with a new pair of open flags that are used in conjunction with O_PATH: (1) O_CLONE_MOUNT - Clone the mount or mount tree at the path. (2) O_NON_RECURSIVE - Don't clone recursively. Note that it's not a good idea to reuse other flags (such as O_CREAT) bec

Re: [PATCH v5 20/28] fpga: dfl: add fpga bridge platform driver for FME

2018-05-24 Thread Wu Hao
On Thu, May 24, 2018 at 12:26:09PM -0500, Alan Tull wrote: > On Wed, May 23, 2018 at 6:42 PM, Wu Hao wrote: > > On Wed, May 23, 2018 at 04:06:17PM -0500, Alan Tull wrote: > >> On Wed, May 23, 2018 at 10:28 AM, Wu Hao wrote: > >> > On Wed, May 23, 2018 at 10:15:00AM -0500, Alan Tull wrote: > >> >>

[PATCH 23/32] VFS: Implement logging through fs_context [ver #8]

2018-05-24 Thread David Howells
Implement the ability for filesystems to log error, warning and informational messages through the fs_context. These can be extracted by userspace by reading from an fd created by fsopen(). Error messages are prefixed with "e ", warnings with "w " and informational messages with "i ". Inside the

[PATCH 19/32] VFS: Implement fsopen() to prepare for a mount [ver #8]

2018-05-24 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 open_flags, void *reserved3, void *reserved4,

[PATCH 18/32] VFS: Remove kern_mount_data() [ver #8]

2018-05-24 Thread David Howells
The kern_mount_data() isn't used any more so remove it. Signed-off-by: David Howells --- fs/namespace.c |7 --- include/linux/fs.h |1 - 2 files changed, 8 deletions(-) diff --git a/fs/namespace.c b/fs/namespace.c index 14be35d02050..ead49e822418 100644 --- a/fs/namespace.c +++

Re: [PATCH 4.4 00/92] 4.4.133-stable review

2018-05-24 Thread Dan Rue
On Thu, May 24, 2018 at 03:52:49PM -0600, Shuah Khan wrote: > On 05/24/2018 03:34 PM, Naresh Kamboju wrote: > > On 24 May 2018 at 23:47, Guenter Roeck wrote: > >> On Thu, May 24, 2018 at 01:06:52PM -0500, Dan Rue wrote: > >>> On Thu, May 24, 2018 at 11:37:37AM +0200, Greg Kroah-Hartman wrote: > >>

[PATCH 13/32] proc: Add fs_context support to procfs [ver #8]

2018-05-24 Thread David Howells
Add fs_context support to procfs. Signed-off-by: David Howells --- fs/proc/inode.c|2 - fs/proc/internal.h |2 - fs/proc/root.c | 179 ++-- 3 files changed, 120 insertions(+), 63 deletions(-) diff --git a/fs/proc/inode.c b/fs/pro

[PATCH 10/32] VFS: Implement a filesystem superblock creation/configuration context [ver #8]

2018-05-24 Thread David Howells
Implement a filesystem context concept to be used during superblock creation for mount and superblock reconfiguration for remount. The mounting procedure then becomes: (1) Allocate new fs_context context. (2) Configure the context. (3) Create superblock. (4) Mount the superblock any number

[PATCH 06/32] smack: Implement filesystem context security hooks [ver #8]

2018-05-24 Thread David Howells
Implement filesystem context security hooks for the smack LSM. Question: Should the ->fs_context_parse_source() hook be implemented to check the labels on any source devices specified? Signed-off-by: David Howells cc: Casey Schaufler cc: linux-security-mod...@vger.kernel.org --- security/smac

[PATCH 11/32] VFS: Remove unused code after filesystem context changes [ver #8]

2018-05-24 Thread David Howells
Remove code that is now unused after the filesystem context changes. Signed-off-by: David Howells --- fs/internal.h |2 - fs/super.c | 62 include/linux/lsm_hooks.h |3 -- include/linux/security.h |7

[PATCH 05/32] selinux: Implement the new mount API LSM hooks [ver #8]

2018-05-24 Thread David Howells
Implement the new mount API LSM hooks for SELinux. At some point the old hooks will need to be removed. Question: Should the ->fs_context_parse_source() hook be implemented to check the labels on any source devices specified? Signed-off-by: David Howells cc: Paul Moore cc: Stephen Smalley cc:

[PATCH 02/32] vfs: Provide documentation for new mount API [ver #8]

2018-05-24 Thread David Howells
Provide documentation for the new mount API. Signed-off-by: David Howells --- Documentation/filesystems/mounting.txt | 458 1 file changed, 458 insertions(+) create mode 100644 Documentation/filesystems/mounting.txt diff --git a/Documentation/filesystems/moun

Re: [PATCH v4] rcu: Speed up calling of RCU tasks callbacks

2018-05-24 Thread Randy Dunlap
On 05/24/2018 04:26 PM, Randy Dunlap wrote: > On 05/24/2018 04:22 PM, Steven Rostedt wrote: >> On Thu, 24 May 2018 16:19:18 -0700 >> Joel Fernandes wrote: >> >>> On Thu, May 24, 2018 at 06:49:46PM -0400, Steven Rostedt wrote: From: Steven Rostedt (VMware) Joel Fernandes found

Re: [rfc patch] mm, oom: fix unnecessary killing of additional processes

2018-05-24 Thread Tetsuo Handa
David Rientjes wrote: > The oom reaper ensures forward progress by setting MMF_OOM_SKIP itself if > it cannot reap an mm. This can happen for a variety of reasons, > including: > > - the inability to grab mm->mmap_sem in a sufficient amount of time, > > - when the mm has blockable mmu notifier

Re: [PATCH v2 6/7] platform/mellanox: Introduce support for Mellanox register access driver

2018-05-24 Thread Darren Hart
On Mon, May 07, 2018 at 06:48:54AM +, Vadim Pasternak wrote: > Introduce new Mellanox platform driver to allow access to Mellanox > programmable device register space trough sysfs interface. > The driver purpose is to provide sysfs interface for user space for the > registers essential for syst

Re: [PATCH net] vhost: synchronize IOTLB message with dev cleanup

2018-05-24 Thread Michael S. Tsirkin
On Tue, May 22, 2018 at 07:58:57PM +0800, Jason Wang wrote: > DaeRyong Jeong reports a race between vhost_dev_cleanup() and > vhost_process_iotlb_msg(): > > Thread interleaving: > CPU0 (vhost_process_iotlb_msg)CPU1 (vhost_dev_cleanup) > (In the case of both VHOST_IOTLB_UPDA

Re: [PATCH 4.4 00/92] 4.4.133-stable review

2018-05-24 Thread Dan Rue
On Thu, May 24, 2018 at 09:08:06PM +0200, Greg Kroah-Hartman wrote: > On Thu, May 24, 2018 at 01:06:52PM -0500, Dan Rue wrote: > > On Thu, May 24, 2018 at 11:37:37AM +0200, Greg Kroah-Hartman wrote: > > > This is the start of the stable review cycle for the 4.4.133 release. > > > There are 92 patch

Re: media: uvcvideo: Support realtek's UVC 1.5 device

2018-05-24 Thread Darren Hart
On Fri, May 18, 2018 at 04:04:35PM +0200, Ana Guerrero Lopez wrote: > On Wed, May 09, 2018 at 10:13:08AM +0800, ming_q...@realsil.com.cn wrote: > > From: ming_qian > > > > The length of UVC 1.5 video control is 48, and it id 34 for UVC 1.1. > > Change it to 48 for UVC 1.5 device, > > and the UVC

[PATCH V2] platform/x86: intel_pmc_core: Add CNP SLPS0 debug registers

2018-05-24 Thread David E. Box
Adds debugfs access to registers in the Cannon Point PCH PMC that are useful for debugging #SLP_S0 signal assertion and other low power related activities. Device pm states are latched in these registers whenever the package enters C10 and can be read from slp_s0_debug_status. The pm states may als

Re: [PATCH v5 1/3] phy: Power on PHY before start Serdes configuration

2018-05-24 Thread cang
On 2018-05-24 16:17, Vivek Gautam wrote: Hi Can, On 5/23/2018 9:17 AM, Can Guo wrote: PHYs should be powered on before register configuration starts. Signed-off-by: Can Guo --- Thanks for fixing this. drivers/phy/qualcomm/phy-qcom-qmp.c | 6 ++ 1 file changed, 6 insertions(+) dif

linux-next: manual merge of the scsi tree with the net-next tree

2018-05-24 Thread Mark Brown
Hi James, Today's linux-next merge of the scsi tree got a conflict in: drivers/scsi/qedf/qedf.h between commit: 8673daf4f55bf3b91 ("qedf: Add get_generic_tlv_data handler.") from the net-next tree and commit: 4b9b7fabb39b3e9d7 ("scsi: qedf: Improve firmware debug dump handling") from t

Re: [PATCH net-next] cxgb4: Check for kvzalloc allocation failure

2018-05-24 Thread YueHaibing
On 2018/5/24 23:07, David Miller wrote: > From: YueHaibing > Date: Tue, 22 May 2018 15:07:18 +0800 > >> diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c >> b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c >> index 130d1ee..019cffe 100644 >> --- a/drivers/net/ethernet/chelsio/cxgb4/c

Re: [PATCH 23/32] VFS: Implement logging through fs_context [ver #8]

2018-05-24 Thread Joe Perches
On Fri, 2018-05-25 at 01:07 +0100, David Howells wrote: > Implement the ability for filesystems to log error, warning and > informational messages through the fs_context. These can be extracted by > userspace by reading from an fd created by fsopen(). > > Error messages are prefixed with "e ", wa

Re: [PATCH v2 0/7] mm: pages for hugetlb's overcommit may be able to charge to memcg

2018-05-24 Thread TSUKADA Koutaro
On 2018/05/24 22:24, Michal Hocko wrote [...]> I do not see anything like that. adjust_pool_surplus is simply and > accounting thing. At least the last time I've checked. Maybe your > patchset handles that? As you said, my patch did not consider handling when manipulating the pool. And even if tha

Re: [PATCH net-next] cxgb4: Check for kvzalloc allocation failure

2018-05-24 Thread David Miller
From: YueHaibing Date: Fri, 25 May 2018 09:39:20 +0800 > On 2018/5/24 23:07, David Miller wrote: >> From: YueHaibing >> Date: Tue, 22 May 2018 15:07:18 +0800 >> >>> diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c >>> b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c >>> index 130d

Re: [PATCH v2 0/7] mm: pages for hugetlb's overcommit may be able to charge to memcg

2018-05-24 Thread TSUKADA Koutaro
On 2018/05/25 2:45, Mike Kravetz wrote: [...] >> THP does not guarantee to use the Huge Page, but may use the normal page. > > Note. You do not want to use THP because "THP does not guarantee". [...] >> One of the answers I have reached is to use HugeTLBfs by overcommitting >> without creating a

[PATCH 1/1] Update AMD cpu microcode for family 15h

2018-05-24 Thread Sherry Hurwitz
* Processor Revision ID 0x00610f01 was accidently not included in the previous submitted microcode container file. * Update the Version for family 15h microcode .bin file Key Name= AMD Microcode Signing Key (for signing microcode container files only) Key ID = F328AE73 Key Fing

Re: [v2,04/19] powerpc/kvm: Prefer fault_in_pages_readable function

2018-05-24 Thread Michael Ellerman
On Wed, 2018-03-28 at 19:58:11 UTC, Mathieu Malaterre wrote: > Directly use fault_in_pages_readable instead of manual __get_user code. Fix > warning treated as error with W=1: > > arch/powerpc/kernel/kvm.c:675:6: error: variable ‘tmp’ set but not used > [-Werror=unused-but-set-variable] >

[PATCH v5] Refactor part of the oom report in dump_header

2018-05-24 Thread ufo19890607
From: yuzhoujian The dump_header does not print the memcg's name when the system oom happened, so users cannot locate the certain container which contains the task that has been killed by the oom killer. I follow the advices of David Rientjes and Michal Hocko, and refactor part of the oom report

Re: [PATCH net] vhost: synchronize IOTLB message with dev cleanup

2018-05-24 Thread David Miller
From: Jason Wang Date: Tue, 22 May 2018 19:58:57 +0800 > DaeRyong Jeong reports a race between vhost_dev_cleanup() and > vhost_process_iotlb_msg(): > > Thread interleaving: > CPU0 (vhost_process_iotlb_msg)CPU1 (vhost_dev_cleanup) > (In the case of both VHOST_IOTLB_UPDATE

[PATCH v2 2/2] selftests/powerpc: Add core file test for Protection Key registers

2018-05-24 Thread Thiago Jung Bauermann
This test verifies that the AMR, IAMR and UAMOR are being written to a process' core file. Signed-off-by: Thiago Jung Bauermann --- tools/testing/selftests/powerpc/ptrace/Makefile| 5 +- tools/testing/selftests/powerpc/ptrace/core-pkey.c | 461 + 2 files changed, 465 in

[PATCH v2 1/2] selftests/powerpc: Add ptrace tests for Protection Key registers

2018-05-24 Thread Thiago Jung Bauermann
This test exercises read and write access to the AMR, IAMR and UAMOR. Signed-off-by: Thiago Jung Bauermann --- tools/testing/selftests/powerpc/include/reg.h | 1 + tools/testing/selftests/powerpc/ptrace/Makefile| 5 +- tools/testing/selftests/powerpc/ptrace/child.h | 139 +++

Re: [PATCH 1/2] selftests/powerpc: Add ptrace tests for Protection Key registers

2018-05-24 Thread Thiago Jung Bauermann
Michael Ellerman writes: > Thiago Jung Bauermann writes: > >> This test exercises read and write access to the AMR, IAMR and UAMOR. >> >> Signed-off-by: Thiago Jung Bauermann >> --- >> tools/testing/selftests/powerpc/include/reg.h | 1 + >> tools/testing/selftests/powerpc/ptrace/Makefi

RE: [PATCH 4.4 00/92] 4.4.133-stable review

2018-05-24 Thread Daniel Sangorrin
Hello Rafael, The tests fcntl35 and fcntl35_64 should have go from FAIL to PASS. https://www.spinics.net/lists/stable/msg239475.html Looking at https://qa-reports.linaro.org/lkft/linux-stable-rc-4.4-oe/build/v4.4.132-93-g915a3d7cdea9/testrun/228569/suite/ltp-syscalls-tests/tests/ I see that these

Re: [RFC V4 PATCH 8/8] vhost: event suppression for packed ring

2018-05-24 Thread Jason Wang
On 2018年05月16日 20:32, Jason Wang wrote: +static bool vhost_notify_packed(struct vhost_dev *dev, + struct vhost_virtqueue *vq) +{ + __virtio16 event_off_wrap, event_flags; + __u16 old, new, off_wrap; + bool v; + + /* Flush out used descriptor

Re: [RFC v5 0/5] virtio: support packed ring

2018-05-24 Thread Jason Wang
On 2018年05月22日 16:16, Tiwei Bie wrote: Hello everyone, This RFC implements packed ring support in virtio driver. Some simple functional tests have been done with Jason's packed ring implementation in vhost (RFC v4): https://lkml.org/lkml/2018/5/16/501 Both of ping and netperf worked as expe

[PATCH v3 6/8] drm/mediatek: add ddp component PWM2

2018-05-24 Thread stu.hsieh
From: Stu Hsieh This patch add component PWM2 Signed-off-by: Stu Hsieh --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h b/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h index 9b19fc4423f1..e00c2e798abd

[PATCH v3 8/8] drm/mediatek: add third ddp path

2018-05-24 Thread stu.hsieh
From: Stu Hsieh This patch create third crtc by third ddp path Signed-off-by: Stu Hsieh --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index b32c4cc8d051..3a866

[PATCH v3 4/8] drm/mediatek: add ddp component AAL1

2018-05-24 Thread stu.hsieh
From: Stu Hsieh This patch add component AAL1 and rename AAL to AAL0 Signed-off-by: Stu Hsieh --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h b/drivers/gpu/drm/mediatek/mtk_drm_dd

[PATCH v3 1/8] drm/mediatek: update dt-bindings for mt2712

2018-05-24 Thread stu.hsieh
From: Stu Hsieh Update device tree binding documentation for the display subsystem for Mediatek MT2712 SoCs. Signed-off-by: Stu Hsieh --- Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devi

[PATCH v3 7/8] drm/mediatek: Add support for mediatek SOC MT2712

2018-05-24 Thread stu.hsieh
From: Stu Hsieh This patch add support for the Mediatek MT2712 DISP subsystem. There are two OVL engine and three disp output in MT2712. Signed-off-by: Stu Hsieh --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 46 +++-- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 8

[PATCH v3 2/8] drm/mediatek: support maximum 64 mutex mod

2018-05-24 Thread stu.hsieh
From: Stu Hsieh This patch support that if modules more than 32, add index more than 31 when using DISP_REG_MUTEX_MOD2 bit Signed-off-by: Stu Hsieh --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 75 +- 1 file changed, 47 insertions(+), 28 deletions(-) diff --git

[PATCH v3 3/8] drm/mediatek: add connection from OD1 to RDMA1

2018-05-24 Thread stu.hsieh
From: Stu Hsieh This patch add the connection from OD1 to RDMA1 for ext path. Signed-off-by: Stu Hsieh --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index 47ffa2

[PATCH v3 5/8] drm/mediatek: add ddp component OD1

2018-05-24 Thread stu.hsieh
From: Stu Hsieh This patch add the component OD1 and rename the OD to OD1 Signed-off-by: Stu Hsieh --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h b/drivers/gpu/drm/mediatek/mtk_d

[PATCH v3 0/8] Add support for mediatek SOC MT2712

2018-05-24 Thread stu.hsieh
From: Stu Hsieh This patch add support for the Mediatek MT2712 DISP subsystem. MT2712 is base on MT8173, there are some difference as following: MT2712 support three disp output(two ovl and one rdma) Change in v3: - Added patch for ddp component AAL1 - Added patch for ddp component OD1 - Added p

Re: Nokia N900: refcount_t underflow, use after free

2018-05-24 Thread Suman Anna
On 05/24/2018 06:05 AM, Pavel Machek wrote: > Hi! > OK, see if the following fixes the issue for you, only build tested. >>> >>> Word-wrapped, so I applied by hand. And yes, the oops at boot is >>> gone. Thanks! >> >> Sorry about that, have to check my mail settings. Anyway will post the

Re: [PATCH] kdump: add default crashkernel reserve kernel config options

2018-05-24 Thread Dave Young
Hi Eric, On 05/24/18 at 11:41am, Eric W. Biederman wrote: > Dave Young writes: > > > Hi Eric, > > On 05/23/18 at 10:53am, Eric W. Biederman wrote: > >> Dave Young writes: > >> > >> > [snip] > >> > > >> >> > > >> >> > +config CRASHKERNEL_DEFAULT_THRESHOLD_MB > >> >> > + int "System memory

Re: [PATCH 4.4 00/92] 4.4.133-stable review

2018-05-24 Thread Rafael Tinoco
Thank you Daniel! Will investigate those. Meanwhile, Greg, I referred to: time: Fix CLOCK_MONOTONIC_RAW sub-nanosecond accounting Since we're not using this type of clock on arm64's 4.4 kernel vdso functions. This commit's description calls attention for it to be responsible for fixing kselftest

Re: [PATCH] cpufreq: reinitialize new policy min/max when writing scaling_(max|min)_freq

2018-05-24 Thread Wangtao (Kevin, Kirin)
在 2018/5/24 15:45, Rafael J. Wysocki 写道: On Thu, May 24, 2018 at 8:43 AM, Kevin Wangtao wrote: consider such situation, current user_policy.min is 100, current user_policy.max is 120, in cpufreq_set_policy, other driver may update policy.min to 120, policy.max to 130. After th

[PATCH 0/7] Fix DM DAX handling

2018-05-24 Thread Ross Zwisler
This series fixes a few issues that I found with DM's handling of DAX devices. Here are some of the issues I found: * We can create a dm-stripe or dm-linear device which is made up of an fsdax PMEM namespace and a raw PMEM namespace but which can hold a filesystem mounted with the -o dax m

[PATCH 3/7] dm: fix test for DAX device support

2018-05-24 Thread Ross Zwisler
Currently device_supports_dax() just checks to see if the QUEUE_FLAG_DAX flag is set on the device's request queue to decide whether or not the device supports filesystem DAX. This is insufficient because there are devices like PMEM namespaces in raw mode which have QUEUE_FLAG_DAX set but which do

[PATCH 5/7] dm: remove DM_TYPE_DAX_BIO_BASED dm_queue_mode

2018-05-24 Thread Ross Zwisler
The DM_TYPE_DAX_BIO_BASED dm_queue_mode was introduced to prevent DM devices that could possibly support DAX from transitioning into DM devices that cannot support DAX. For example, the following transition will currently fail: dm-linear: [fsdax pmem][fsdax pmem] => [fsdax pmem][fsdax raw]

[PATCH 2/7] dax: change bdev_dax_supported() to support boolean returns

2018-05-24 Thread Ross Zwisler
From: Dave Jiang The function return values are confusing with the way the function is named. We expect a true or false return value but it actually returns 0/-errno. This makes the code very confusing. Changing the return values to return a bool where if DAX is supported then return true and no

[PATCH 7/7] dm-error: remove unnecessary direct_access() stub

2018-05-24 Thread Ross Zwisler
This stub was added so that we could use dm-error with DM_TYPE_DAX_BIO_BASED mode devices. That mode and the transition issues associated with it no longer exist, so we can remove this dead code. Signed-off-by: Ross Zwisler --- drivers/md/dm-target.c | 7 --- 1 file changed, 7 deletions(-)

Re: [PATCH v2] ppp: remove the PPPIOCDETACH ioctl

2018-05-24 Thread David Miller
From: Eric Biggers Date: Wed, 23 May 2018 14:37:38 -0700 > From: Eric Biggers > > The PPPIOCDETACH ioctl effectively tries to "close" the given ppp file > before f_count has reached 0, which is fundamentally a bad idea. It > does check 'f_count < 2', which excludes concurrent operations on the

[PATCH 4/7] dm: prevent DAX mounts if not supported

2018-05-24 Thread Ross Zwisler
Currently the code in dm_dax_direct_access() only checks whether the target type has a direct_access() operation defined, not whether the underlying block devices all support DAX. This latter property can be seen by looking at whether we set the QUEUE_FLAG_DAX request queue flag when creating the

[PATCH 6/7] dm-snap: remove unnecessary direct_access() stub

2018-05-24 Thread Ross Zwisler
This stub was added so that we could use dm-snap with DM_TYPE_DAX_BIO_BASED mode devices. That mode and the transition issues associated with it no longer exist, so we can remove this dead code. Signed-off-by: Ross Zwisler --- drivers/md/dm-snap.c | 8 1 file changed, 8 deletions(-) d

[PATCH 1/7] fs: allow per-device dax status checking for filesystems

2018-05-24 Thread Ross Zwisler
From: "Darrick J. Wong" Remove __bdev_dax_supported and change to bdev_dax_supported that takes a bdev parameter. This enables multi-device filesystems like xfs to check that a dax device can work for the particular filesystem. Once that's in place, actually fix all the parts of XFS where we ne

Re: [PATCH] drm/rockchip: vop: fix irq disabled after vop driver probed

2018-05-24 Thread Tomasz Figa
Hi Heiko, Sandy, On Fri, May 25, 2018 at 7:07 AM Heiko Stübner wrote: > From: Sandy Huang > The vop irq is shared between vop and iommu and irq probing in the > iommu driver moved to the probe function recently. This can in some > cases lead to a stall if the irq is triggered while the vop dri

Re: [GIT PULL] isolation: 1Hz residual tick offloading v4

2018-05-24 Thread Frederic Weisbecker
On Tue, May 22, 2018 at 10:10:19PM +0300, Yauheni Kaliuta wrote: > Hi, Frederic! > > > On Mon, 29 Jan 2018 02:10:26 +0100, Frederic Weisbecker wrote: > > On Wed, Jan 24, 2018 at 10:46:08AM -0500, Luiz Capitulino wrote: > > [...] > > >> Since the 1Hz tick offload worked for you, I must be

[PATCH] ARM: dts: imx51-zii-rdu1: Make sure SD1_WP is low

2018-05-24 Thread Andrey Smirnov
Make sure that MX51_PAD_GPIO1_1 does not remain configure as ALT0/SD1_WP (it is out of reset). This is needed because of external pull-up resistor attached to that pad that, when left unchanged, will drive SD1_WP high preventing eSDHC1/eMMC from working correctly. To fix that add a pinmux configur

Re: [RFC v5 0/5] virtio: support packed ring

2018-05-24 Thread Tiwei Bie
On Fri, May 25, 2018 at 10:31:26AM +0800, Jason Wang wrote: > On 2018年05月22日 16:16, Tiwei Bie wrote: > > Hello everyone, > > > > This RFC implements packed ring support in virtio driver. > > > > Some simple functional tests have been done with Jason's > > packed ring implementation in vhost (RFC

Re: [PATCH v3 1/8] drm/mediatek: update dt-bindings for mt2712

2018-05-24 Thread CK Hu
Hi, Stu: On Fri, 2018-05-25 at 10:34 +0800, stu.hs...@mediatek.com wrote: > From: Stu Hsieh > > Update device tree binding documentation for the display subsystem for > Mediatek MT2712 SoCs. > I've acked v2 of this patch and v3 is the same as v2, so you should keep my ack in commit message. R

Re: [PATCH v3 2/8] drm/mediatek: support maximum 64 mutex mod

2018-05-24 Thread CK Hu
Hi, Stu: On Fri, 2018-05-25 at 10:34 +0800, stu.hs...@mediatek.com wrote: > From: Stu Hsieh > > This patch support that if modules more than 32, > add index more than 31 when using DISP_REG_MUTEX_MOD2 bit > Reviewed-by: CK Hu > Signed-off-by: Stu Hsieh > --- > drivers/gpu/drm/mediatek/mtk_

Re: [PATCH v3 3/8] drm/mediatek: add connection from OD1 to RDMA1

2018-05-24 Thread CK Hu
Hi, Stu: On Fri, 2018-05-25 at 10:34 +0800, stu.hs...@mediatek.com wrote: > From: Stu Hsieh > > This patch add the connection from OD1 to RDMA1 for ext path. > Reviewed-by: CK Hu > Signed-off-by: Stu Hsieh > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 3 +++ > 1 file changed, 3 insertio

Re: [GIT PULL] Qualcomm Driver updates for 4.18

2018-05-24 Thread Andy Gross
Please refrain from applying this pull request. The following patch is going to be removed from the pull request and put into a fixes-for-4.17: firmware: qcom: scm: Fix crash in qcom_scm_call_atomic1() I'll send an amended pull request minus this patch. Regards, Andy On Tue, May 22, 2018 at 1

Re: [PATCH 2/6] lib/rhashtable: guarantee initial hashtable allocation

2018-05-24 Thread Davidlohr Bueso
On Thu, 24 May 2018, Davidlohr Bueso wrote: size = sizeof(*tbl) + nbuckets * sizeof(tbl->buckets[0]); + if (retry) { + gfp |= __GFP_NOFAIL; + tbl = kzalloc(size, gfp); + } /* fall-through */ + if (gfp != GFP_KERNEL) tbl = kza

[RESEND PATCH V5 00/33] block: support multipage bvec

2018-05-24 Thread Ming Lei
Hi, This patchset brings multipage bvec into block layer: 1) what is multipage bvec? Multipage bvecs means that one 'struct bio_bvec' can hold multiple pages which are physically contiguous instead of one single page used in linux kernel for long time. 2) why is multipage bvec introduced? Kent

[RESEND PATCH V5 01/33] block: rename bio_for_each_segment* with bio_for_each_page*

2018-05-24 Thread Ming Lei
It is a tree-wide mechanical replacement since both bio_for_each_segment() and bio_for_each_segment_all() never returns real segment at all, and both just return one page per bvec and deceive us for long time, so fix their names. This is a pre-patch for supporting multipage bvec. Once multipage bv

[RESEND PATCH V5 05/33] block: introduce bio_for_each_segment()

2018-05-24 Thread Ming Lei
This helper is used to iterate multipage bvec for bio spliting/merge, and it is required in bio_clone_bioset() too, so introduce it. Signed-off-by: Ming Lei --- include/linux/bio.h | 34 +++--- include/linux/bvec.h | 36 2 files c

<    5   6   7   8   9   10   11   12   13   14   >