[PATCH 17/23] NFS: change access cache to use 'struct cred'.

2018-12-02 Thread NeilBrown
Rather than keying the access cache with 'struct rpc_cred', use 'struct cred'. Then use cred_fscmp() to compare credentials rather than comparing the raw pointer. A benefit of this approach is that in the common case we avoid the rpc_lookup_cred_nonblock() call which can be slow when the cred

[PATCH 13/23] SUNRPC: introduce RPC_TASK_NULLCREDS to request auth_none

2018-12-02 Thread NeilBrown
In almost all cases the credential stored in rpc_message.rpc_cred is a "generic" credential. One of the two expections is when an AUTH_NULL credential is used such as for RPC ping requests. To improve consistency, don't pass an explicit credential in these cases, but instead pass NULL and set a

[PATCH 16/23] SUNRPC: remove RPCAUTH_AUTH_NO_CRKEY_TIMEOUT

2018-12-02 Thread NeilBrown
This is no longer used. Signed-off-by: NeilBrown --- include/linux/sunrpc/auth.h |3 --- net/sunrpc/auth_null.c |1 - net/sunrpc/auth_unix.c |1 - 3 files changed, 5 deletions(-) diff --git a/include/linux/sunrpc/auth.h b/include/linux/sunrpc/auth.h index

[PATCH 18/23] NFS: struct nfs_open_dir_context: convert rpc_cred pointer to cred.

2018-12-02 Thread NeilBrown
Use the common 'struct cred' to pass credentials for readdir. Signed-off-by: NeilBrown --- fs/nfs/dir.c| 15 +-- fs/nfs/nfs3proc.c | 11 +-- fs/nfs/nfs4proc.c | 13 ++--- fs/nfs/proc.c | 11 +-- include/linux/nfs_fs.h

[PATCH 20/23] SUNRPC: remove generic cred code.

2018-12-02 Thread NeilBrown
This is no longer used. Signed-off-by: NeilBrown --- include/linux/sunrpc/auth.h |6 - net/sunrpc/Makefile |2 net/sunrpc/auth.c | 18 net/sunrpc/auth_generic.c | 199 --- net/sunrpc/auth_null.c |2 5 files

[PATCH 15/23] NFS: move credential expiry tracking out of SUNRPC into NFS.

2018-12-02 Thread NeilBrown
NFS needs to know when a credential is about to expire so that it can modify write-back behaviour to finish the write inside the expiry time. It currently uses functions in SUNRPC code which make use of a fairly complex callback scheme and flags in the generic credientials. As I am working to

[PATCH 10/23] NFSv4: don't require lock for get_renew_cred or get_machine_cred

2018-12-02 Thread NeilBrown
This lock is no longer necessary. If nfs4_get_renew_cred() needs to hunt through the open-state creds for a user cred, it still takes the lock to stablize the rbtree, but otherwise there are no races. Note that this completely removes the lock from nfs4_renew_state(). It appears that the

[PATCH 12/23] NFS/SUNRPC: don't lookup machine credential until rpcauth_bindcred().

2018-12-02 Thread NeilBrown
When NFS creates a machine credential, it is a "generic" credential, not tied to any auth protocol, and is really just a container for the princpal name. This doesn't get linked to a genuine credential until rpcauth_bindcred() is called. The lookup always succeeds, so various places that test if

[PATCH 10/23] NFSv4: don't require lock for get_renew_cred or get_machine_cred

2018-12-02 Thread NeilBrown
This lock is no longer necessary. If nfs4_get_renew_cred() needs to hunt through the open-state creds for a user cred, it still takes the lock to stablize the rbtree, but otherwise there are no races. Note that this completely removes the lock from nfs4_renew_state(). It appears that the

[PATCH 12/23] NFS/SUNRPC: don't lookup machine credential until rpcauth_bindcred().

2018-12-02 Thread NeilBrown
When NFS creates a machine credential, it is a "generic" credential, not tied to any auth protocol, and is really just a container for the princpal name. This doesn't get linked to a genuine credential until rpcauth_bindcred() is called. The lookup always succeeds, so various places that test if

[PATCH 11/23] SUNRPC: discard RPC_DO_ROOTOVERRIDE()

2018-12-02 Thread NeilBrown
it is never used. Signed-off-by: NeilBrown --- include/linux/sunrpc/sched.h |1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/sunrpc/sched.h b/include/linux/sunrpc/sched.h index 7b540c066594..f542dad8d4ab 100644 --- a/include/linux/sunrpc/sched.h +++

[PATCH 11/23] SUNRPC: discard RPC_DO_ROOTOVERRIDE()

2018-12-02 Thread NeilBrown
it is never used. Signed-off-by: NeilBrown --- include/linux/sunrpc/sched.h |1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/sunrpc/sched.h b/include/linux/sunrpc/sched.h index 7b540c066594..f542dad8d4ab 100644 --- a/include/linux/sunrpc/sched.h +++

[PATCH 09/23] NFSv4: add cl_root_cred for use when machine cred is not available.

2018-12-02 Thread NeilBrown
NFSv4 state management tries a root credential when no machine credential is available, as can happen with kerberos. It does this by replacing the cl_machine_cred with a root credential. This means that any user of the machine credential needs to take a lock while getting a reference to the

[PATCH 09/23] NFSv4: add cl_root_cred for use when machine cred is not available.

2018-12-02 Thread NeilBrown
NFSv4 state management tries a root credential when no machine credential is available, as can happen with kerberos. It does this by replacing the cl_machine_cred with a root credential. This means that any user of the machine credential needs to take a lock while getting a reference to the

[PATCH 08/23] SUNRPC: remove machine_cred field from struct auth_cred

2018-12-02 Thread NeilBrown
The cred is a machine_cred iff ->principal is set, so there is no need for the extra flag. There is one case which deserves some explanation. nfs4_root_machine_cred() calls rpc_lookup_machine_cred() with a NULL principal name which results in not getting a machine credential, but getting a root

[PATCH 07/23] SUNRPC: remove uid and gid from struct auth_cred

2018-12-02 Thread NeilBrown
Use cred->fsuid and cred->fsgid instead. Signed-off-by: NeilBrown --- fs/nfs/flexfilelayout/flexfilelayout.c | 14 -- fs/nfsd/nfs4callback.c |6 ++ include/linux/sunrpc/auth.h|3 --- net/sunrpc/auth.c |6 +-

[PATCH 04/23] cred: allow get_cred() and put_cred() to be given NULL.

2018-12-02 Thread NeilBrown
It is common practice for helpers like this to silently, accept a NULL pointer. get_rpccred() and put_rpccred() used by NFS act this way and using the same interface will ease the conversion for NFS, and simplify the resulting code. Signed-off-by: NeilBrown --- include/linux/cred.h | 14

[PATCH 08/23] SUNRPC: remove machine_cred field from struct auth_cred

2018-12-02 Thread NeilBrown
The cred is a machine_cred iff ->principal is set, so there is no need for the extra flag. There is one case which deserves some explanation. nfs4_root_machine_cred() calls rpc_lookup_machine_cred() with a NULL principal name which results in not getting a machine credential, but getting a root

[PATCH 07/23] SUNRPC: remove uid and gid from struct auth_cred

2018-12-02 Thread NeilBrown
Use cred->fsuid and cred->fsgid instead. Signed-off-by: NeilBrown --- fs/nfs/flexfilelayout/flexfilelayout.c | 14 -- fs/nfsd/nfs4callback.c |6 ++ include/linux/sunrpc/auth.h|3 --- net/sunrpc/auth.c |6 +-

[PATCH 04/23] cred: allow get_cred() and put_cred() to be given NULL.

2018-12-02 Thread NeilBrown
It is common practice for helpers like this to silently, accept a NULL pointer. get_rpccred() and put_rpccred() used by NFS act this way and using the same interface will ease the conversion for NFS, and simplify the resulting code. Signed-off-by: NeilBrown --- include/linux/cred.h | 14

[PATCH 06/23] SUNRPC: remove groupinfo from struct auth_cred.

2018-12-02 Thread NeilBrown
We can use cred->groupinfo (from the 'struct cred') instead. Signed-off-by: NeilBrown --- fs/nfs/flexfilelayout/flexfilelayout.c | 14 +- include/linux/sunrpc/auth.h|1 - net/sunrpc/auth.c |1 - net/sunrpc/auth_generic.c | 17

[PATCH 05/23] SUNRPC: add 'struct cred *' to auth_cred and rpc_cred

2018-12-02 Thread NeilBrown
The SUNRPC credential framework was put together before Linux has 'struct cred'. Now that we have it, it makes sense to use it. This first step just includes a suitable 'struct cred *' pointer in every 'struct auth_cred' and almost every 'struct rpc_cred'. The rpc_cred used for auth_null has a

[PATCH 06/23] SUNRPC: remove groupinfo from struct auth_cred.

2018-12-02 Thread NeilBrown
We can use cred->groupinfo (from the 'struct cred') instead. Signed-off-by: NeilBrown --- fs/nfs/flexfilelayout/flexfilelayout.c | 14 +- include/linux/sunrpc/auth.h|1 - net/sunrpc/auth.c |1 - net/sunrpc/auth_generic.c | 17

[PATCH 05/23] SUNRPC: add 'struct cred *' to auth_cred and rpc_cred

2018-12-02 Thread NeilBrown
The SUNRPC credential framework was put together before Linux has 'struct cred'. Now that we have it, it makes sense to use it. This first step just includes a suitable 'struct cred *' pointer in every 'struct auth_cred' and almost every 'struct rpc_cred'. The rpc_cred used for auth_null has a

[PATCH 01/23] cred: add cred_fscmp() for comparing creds.

2018-12-02 Thread NeilBrown
NFS needs to compare to credentials, to see if they can be treated the same w.r.t. filesystem access. Sometimes an ordering is needed when credentials are used as a key to an rbtree. NFS currently has its own private credential management from before 'struct cred' existed. To move it over to

[PATCH 00/23 - V5] NFS: Remove generic RPC credentials.

2018-12-02 Thread NeilBrown
This is the same series as posted on 07 November, modified slightly to match some recent code changes upstream - nothing substantial. General description: There doesn't seem to be a maintainer for the 'cred' code, so I don't know who to ask to approve the first 4 patches. Maybe if the NFS team

[PATCH 02/23] cred: add get_cred_rcu()

2018-12-02 Thread NeilBrown
Sometimes we want to opportunistically get a ref to a cred in an rcu_read_lock protected section. get_task_cred() does this, and NFS does as similar thing with its own credential structures. To prepare for NFS converting to use 'struct cred' more uniformly, define get_cred_rcu(), and use it in

[PATCH 03/23] cred: export get_task_cred().

2018-12-02 Thread NeilBrown
There is no reason that modules should not be able to use this, and NFS will need it when converted to use 'struct cred'. Signed-off-by: NeilBrown --- kernel/cred.c |1 + 1 file changed, 1 insertion(+) diff --git a/kernel/cred.c b/kernel/cred.c index ba60162249e8..21f4a97085b4 100644 ---

[PATCH 02/23] cred: add get_cred_rcu()

2018-12-02 Thread NeilBrown
Sometimes we want to opportunistically get a ref to a cred in an rcu_read_lock protected section. get_task_cred() does this, and NFS does as similar thing with its own credential structures. To prepare for NFS converting to use 'struct cred' more uniformly, define get_cred_rcu(), and use it in

[PATCH 03/23] cred: export get_task_cred().

2018-12-02 Thread NeilBrown
There is no reason that modules should not be able to use this, and NFS will need it when converted to use 'struct cred'. Signed-off-by: NeilBrown --- kernel/cred.c |1 + 1 file changed, 1 insertion(+) diff --git a/kernel/cred.c b/kernel/cred.c index ba60162249e8..21f4a97085b4 100644 ---

[PATCH 01/23] cred: add cred_fscmp() for comparing creds.

2018-12-02 Thread NeilBrown
NFS needs to compare to credentials, to see if they can be treated the same w.r.t. filesystem access. Sometimes an ordering is needed when credentials are used as a key to an rbtree. NFS currently has its own private credential management from before 'struct cred' existed. To move it over to

[PATCH 00/23 - V5] NFS: Remove generic RPC credentials.

2018-12-02 Thread NeilBrown
This is the same series as posted on 07 November, modified slightly to match some recent code changes upstream - nothing substantial. General description: There doesn't seem to be a maintainer for the 'cred' code, so I don't know who to ask to approve the first 4 patches. Maybe if the NFS team

Re: [PATCH v2 06/15] m68k: define syscall_get_arch()

2018-12-02 Thread Dmitry V. Levin
Hi Geert, On Sun, Dec 02, 2018 at 11:29:10AM +0100, Geert Uytterhoeven wrote: > Hi Dmitry, > > On Tue, Nov 20, 2018 at 1:15 AM Dmitry V. Levin wrote: > > syscall_get_arch() is required to be implemented on all architectures > > in order to extend the generic ptrace API with

Re: [PATCH v2 06/15] m68k: define syscall_get_arch()

2018-12-02 Thread Dmitry V. Levin
Hi Geert, On Sun, Dec 02, 2018 at 11:29:10AM +0100, Geert Uytterhoeven wrote: > Hi Dmitry, > > On Tue, Nov 20, 2018 at 1:15 AM Dmitry V. Levin wrote: > > syscall_get_arch() is required to be implemented on all architectures > > in order to extend the generic ptrace API with

linux-next: manual merge of the vfs tree with the fscrypt tree

2018-12-02 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the vfs tree got a conflict in: include/linux/fs.h between commit: a2bd7d2fc32c ("fs-verity: add setup code, UAPI, and Kconfig") from the fscrypt tree and commit: 37744f3d21f8 ("vfs: Implement a filesystem superblock creation/configuration context")

linux-next: manual merge of the vfs tree with the fscrypt tree

2018-12-02 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the vfs tree got a conflict in: include/linux/fs.h between commit: a2bd7d2fc32c ("fs-verity: add setup code, UAPI, and Kconfig") from the fscrypt tree and commit: 37744f3d21f8 ("vfs: Implement a filesystem superblock creation/configuration context")

Re: [PATCH v2] x86/hyper-v: Mark TLFS structures packed

2018-12-02 Thread Vitaly Kuznetsov
Nadav Amit writes: [skip] > > Having said that, something else is sort of strange in the TLFS definitions, > I think (I really know little about this whole protocol). Look at the > following definitions from hyperv-tlfs.h: > >> struct hv_vpset { >> u64 format; >> u64

Re: [PATCH v2] x86/hyper-v: Mark TLFS structures packed

2018-12-02 Thread Vitaly Kuznetsov
Nadav Amit writes: [skip] > > Having said that, something else is sort of strange in the TLFS definitions, > I think (I really know little about this whole protocol). Look at the > following definitions from hyperv-tlfs.h: > >> struct hv_vpset { >> u64 format; >> u64

Re: [PATCH v2 17/17] power: supply: olpc_battery: Add OLPC XO 1.75 support

2018-12-02 Thread Darren Hart
On Fri, Nov 16, 2018 at 05:24:03PM +0100, Lubomir Rintel wrote: > The battery and the protocol are essentially the same as OLPC XO 1.5, > but the responses from the EC are LSB first. > > Signed-off-by: Lubomir Rintel > Acked-by: Pavel Machek > > --- > Changes since v1: > - s/s16

Re: [PATCH v2 17/17] power: supply: olpc_battery: Add OLPC XO 1.75 support

2018-12-02 Thread Darren Hart
On Fri, Nov 16, 2018 at 05:24:03PM +0100, Lubomir Rintel wrote: > The battery and the protocol are essentially the same as OLPC XO 1.5, > but the responses from the EC are LSB first. > > Signed-off-by: Lubomir Rintel > Acked-by: Pavel Machek > > --- > Changes since v1: > - s/s16

Linux 4.20-rc5

2018-12-02 Thread Linus Torvalds
Hmm.. I'd like to say it was a normal week, but I'd be lying. rc5 is the biggest rc so far (with the obvious exception of rc1), and it looks fairly unusual in the diffstat too, with almost a third being arch updates. Yes, another third is drivers (normal), but even there almost half is in sound.

Linux 4.20-rc5

2018-12-02 Thread Linus Torvalds
Hmm.. I'd like to say it was a normal week, but I'd be lying. rc5 is the biggest rc so far (with the obvious exception of rc1), and it looks fairly unusual in the diffstat too, with almost a third being arch updates. Yes, another third is drivers (normal), but even there almost half is in sound.

Re: [PATCH v3 0/7] zram idle page writeback

2018-12-02 Thread Joey Pabalinas
On Tue, Nov 27, 2018 at 02:54:22PM +0900, Minchan Kim wrote: > Inherently, swap device has many idle pages which are rare touched since > it was allocated. It is never problem if we use storage device as swap. > However, it's just waste for zram-swap. > > This patchset supports zram idle page

Re: [PATCH v3 0/7] zram idle page writeback

2018-12-02 Thread Joey Pabalinas
On Tue, Nov 27, 2018 at 02:54:22PM +0900, Minchan Kim wrote: > Inherently, swap device has many idle pages which are rare touched since > it was allocated. It is never problem if we use storage device as swap. > However, it's just waste for zram-swap. > > This patchset supports zram idle page

Re: [PATCH v4 0/20] MMP platform fixes

2018-12-02 Thread James Cameron
On Sun, Dec 02, 2018 at 11:29:30PM +0100, Pavel Machek wrote: > Hi! > > > > > The patch set has been tested on an OLPC XO-1.75 laptop. > > > > > > Excellent! > > > > OOooh, I have one of those... somewhere. > > Time to find it :-). It is still pretty great machine, can last 8? > hours on

Re: [PATCH v4 0/20] MMP platform fixes

2018-12-02 Thread James Cameron
On Sun, Dec 02, 2018 at 11:29:30PM +0100, Pavel Machek wrote: > Hi! > > > > > The patch set has been tested on an OLPC XO-1.75 laptop. > > > > > > Excellent! > > > > OOooh, I have one of those... somewhere. > > Time to find it :-). It is still pretty great machine, can last 8? > hours on

Re: [PATCH v2 13/17] power: supply: olpc_battery: Use DT to get battery version

2018-12-02 Thread Darren Hart
On Fri, Nov 16, 2018 at 05:23:59PM +0100, Lubomir Rintel wrote: > Avoid using the x86 OLPC platform specific call to get the board > version. It won't work on FDT-based ARM MMP2 platform. > > Signed-off-by: Lubomir Rintel > Reviewed-by: Andy Shevchenko > Acked-by: Pavel Machek > > --- >

Re: [PATCH v2 13/17] power: supply: olpc_battery: Use DT to get battery version

2018-12-02 Thread Darren Hart
On Fri, Nov 16, 2018 at 05:23:59PM +0100, Lubomir Rintel wrote: > Avoid using the x86 OLPC platform specific call to get the board > version. It won't work on FDT-based ARM MMP2 platform. > > Signed-off-by: Lubomir Rintel > Reviewed-by: Andy Shevchenko > Acked-by: Pavel Machek > > --- >

Re: [PATCH AUTOSEL 4.14 25/35] iomap: sub-block dio needs to zeroout beyond EOF

2018-12-02 Thread Dave Chinner
On Sat, Dec 01, 2018 at 02:49:09AM -0500, Sasha Levin wrote: > On Sat, Dec 01, 2018 at 08:50:05AM +1100, Dave Chinner wrote: > >On Fri, Nov 30, 2018 at 05:14:41AM -0500, Sasha Levin wrote: > >>On Fri, Nov 30, 2018 at 09:22:03AM +0100, Greg KH wrote: > >>>On Fri, Nov 30, 2018 at 09:40:19AM +1100,

Re: [PATCH AUTOSEL 4.14 25/35] iomap: sub-block dio needs to zeroout beyond EOF

2018-12-02 Thread Dave Chinner
On Sat, Dec 01, 2018 at 02:49:09AM -0500, Sasha Levin wrote: > On Sat, Dec 01, 2018 at 08:50:05AM +1100, Dave Chinner wrote: > >On Fri, Nov 30, 2018 at 05:14:41AM -0500, Sasha Levin wrote: > >>On Fri, Nov 30, 2018 at 09:22:03AM +0100, Greg KH wrote: > >>>On Fri, Nov 30, 2018 at 09:40:19AM +1100,

Re: [PATCH] staging: iio: ad5933: add binding doc for ad5933

2018-12-02 Thread Joe Perches
On Mon, 2018-12-03 at 00:20 +0530, Himanshu Jha wrote: > On Sun, Dec 02, 2018 at 02:57:12PM -0200, Marcelo Schmitt wrote: > > Add a devicetree documentation for the ad5933 and ad5934 impedance > > converter, network analyzer. > > > > Co-Developed-by: Gabriel Capella > > checkpatch spits out: >

Re: [PATCH] staging: iio: ad5933: add binding doc for ad5933

2018-12-02 Thread Joe Perches
On Mon, 2018-12-03 at 00:20 +0530, Himanshu Jha wrote: > On Sun, Dec 02, 2018 at 02:57:12PM -0200, Marcelo Schmitt wrote: > > Add a devicetree documentation for the ad5933 and ad5934 impedance > > converter, network analyzer. > > > > Co-Developed-by: Gabriel Capella > > checkpatch spits out: >

Re: [PATCH v3 0/7] zram idle page writeback

2018-12-02 Thread Minchan Kim
On Fri, Nov 30, 2018 at 01:36:56PM +0900, Sergey Senozhatsky wrote: > On (11/27/18 14:54), Minchan Kim wrote: > > Inherently, swap device has many idle pages which are rare touched since > > it was allocated. It is never problem if we use storage device as swap. > > However, it's just waste for

Re: [PATCH v3 0/7] zram idle page writeback

2018-12-02 Thread Minchan Kim
On Fri, Nov 30, 2018 at 01:36:56PM +0900, Sergey Senozhatsky wrote: > On (11/27/18 14:54), Minchan Kim wrote: > > Inherently, swap device has many idle pages which are rare touched since > > it was allocated. It is never problem if we use storage device as swap. > > However, it's just waste for

Re: [PATCH v3 7/7] zram: writeback throttle

2018-12-02 Thread Minchan Kim
On Thu, Nov 29, 2018 at 11:23:58AM +0900, Sergey Senozhatsky wrote: > On (11/27/18 14:54), Minchan Kim wrote: > > diff --git a/Documentation/ABI/testing/sysfs-block-zram > > b/Documentation/ABI/testing/sysfs-block-zram > > index 65fc33b2f53b..9d2339a485c8 100644 > > ---

Re: [PATCH v3 7/7] zram: writeback throttle

2018-12-02 Thread Minchan Kim
On Thu, Nov 29, 2018 at 11:23:58AM +0900, Sergey Senozhatsky wrote: > On (11/27/18 14:54), Minchan Kim wrote: > > diff --git a/Documentation/ABI/testing/sysfs-block-zram > > b/Documentation/ABI/testing/sysfs-block-zram > > index 65fc33b2f53b..9d2339a485c8 100644 > > ---

Re: [PATCH v2 07/17] Platform: OLPC: Avoid a warning if the EC didn't register yet

2018-12-02 Thread Darren Hart
On Fri, Nov 16, 2018 at 05:23:53PM +0100, Lubomir Rintel wrote: > Just return ENODEV, so that whoever attempted to use the EC call can I think you meant EPROBE_DEFER here, but the language in the commit message is a bit ambiguous here... > defer their work. > > Signed-off-by: Lubomir Rintel >

Re: [PATCH v2 07/17] Platform: OLPC: Avoid a warning if the EC didn't register yet

2018-12-02 Thread Darren Hart
On Fri, Nov 16, 2018 at 05:23:53PM +0100, Lubomir Rintel wrote: > Just return ENODEV, so that whoever attempted to use the EC call can I think you meant EPROBE_DEFER here, but the language in the commit message is a bit ambiguous here... > defer their work. > > Signed-off-by: Lubomir Rintel >

Re: [PATCH v2 06/17] Platform: OLPC: Add XO-1.75 EC driver

2018-12-02 Thread Darren Hart
On Fri, Nov 16, 2018 at 05:23:52PM +0100, Lubomir Rintel wrote: > It's based off the driver from the OLPC kernel sources. Somewhat > modernized and cleaned up, for better or worse. > > Modified to plug into the olpc-ec driver infrastructure (so that battery > interface and debugfs could be

Re: [PATCH v2 06/17] Platform: OLPC: Add XO-1.75 EC driver

2018-12-02 Thread Darren Hart
On Fri, Nov 16, 2018 at 05:23:52PM +0100, Lubomir Rintel wrote: > It's based off the driver from the OLPC kernel sources. Somewhat > modernized and cleaned up, for better or worse. > > Modified to plug into the olpc-ec driver infrastructure (so that battery > interface and debugfs could be

Re: [PATCH] docs: Extend trusted keys documentation for TPM 2.0

2018-12-02 Thread Jarkko Sakkinen
On Sun, Dec 02, 2018 at 10:10:36AM -0500, Mimi Zohar wrote: > Are you asking about coordinating staging the trusted key patches to > be upstreamed or about moving portions of the encrypted keys code out > of the keyring subsystem? > > I'm not sure there needs to be a separate encrypted-keys pull

Re: [PATCH] docs: Extend trusted keys documentation for TPM 2.0

2018-12-02 Thread Jarkko Sakkinen
On Sun, Dec 02, 2018 at 10:10:36AM -0500, Mimi Zohar wrote: > Are you asking about coordinating staging the trusted key patches to > be upstreamed or about moving portions of the encrypted keys code out > of the keyring subsystem? > > I'm not sure there needs to be a separate encrypted-keys pull

Re: [PATCH v4 0/20] MMP platform fixes

2018-12-02 Thread Pavel Machek
Hi! > > > The patch set has been tested on an OLPC XO-1.75 laptop. > > > > Excellent! > > OOooh, I have one of those... somewhere. Time to find it :-). It is still pretty great machine, can last 8? hours on battery, sunlight readable screen, and if you meet a tiger you can hit him on the head

Re: [PATCH v4 0/20] MMP platform fixes

2018-12-02 Thread Pavel Machek
Hi! > > > The patch set has been tested on an OLPC XO-1.75 laptop. > > > > Excellent! > > OOooh, I have one of those... somewhere. Time to find it :-). It is still pretty great machine, can last 8? hours on battery, sunlight readable screen, and if you meet a tiger you can hit him on the head

Re: [regression, bisected] Keyboard not responding after resuming from suspend/hibernate

2018-12-02 Thread Pavel Machek
On Fri 2018-11-30 15:44:55, Numan Demirdöğen wrote: > Sun, 28 Oct 2018 22:06:54 +0300 tarihinde > Numan Demirdöğen yazdı: > > >Thu, 25 Oct 2018 09:49:03 +0200 tarihinde > >Pavel Machek yazdı: > > > >> Hi! > >> > >> Here's problem bisected down to: > >> > >> commit

Re: [regression, bisected] Keyboard not responding after resuming from suspend/hibernate

2018-12-02 Thread Pavel Machek
On Fri 2018-11-30 15:44:55, Numan Demirdöğen wrote: > Sun, 28 Oct 2018 22:06:54 +0300 tarihinde > Numan Demirdöğen yazdı: > > >Thu, 25 Oct 2018 09:49:03 +0200 tarihinde > >Pavel Machek yazdı: > > > >> Hi! > >> > >> Here's problem bisected down to: > >> > >> commit

linux-next: manual merge of the reset tree with the arm-soc tree

2018-12-02 Thread Stephen Rothwell
Hi Philipp, Today's linux-next merge of the reset tree got a conflict in: arch/arm/mach-socfpga/socfpga.c between commit: 8f6f8c77fc4d ("reset: socfpga: add an early reset driver for SoCFPGA") from the arm-soc tree and commit: 48e2bab90d8e ("ARM: socfpga: Clean unused functions") from

linux-next: manual merge of the reset tree with the arm-soc tree

2018-12-02 Thread Stephen Rothwell
Hi Philipp, Today's linux-next merge of the reset tree got a conflict in: arch/arm/mach-socfpga/socfpga.c between commit: 8f6f8c77fc4d ("reset: socfpga: add an early reset driver for SoCFPGA") from the arm-soc tree and commit: 48e2bab90d8e ("ARM: socfpga: Clean unused functions") from

Re: [PATCH 1/2] irq/irq_sim: provide irq_sim_fire_edge()

2018-12-02 Thread Bartosz Golaszewski
niedz., 2 gru 2018 o 22:56 Uwe Kleine-König napisał(a): > > Hello, > > On Thu, Nov 29, 2018 at 07:14:45PM +0100, Bartosz Golaszewski wrote: > > We're getting too much into details of how to handle simulated > > interrupts and we can continue discussing it, but meanwhile I'd like > > to address a

Re: [PATCH 1/2] irq/irq_sim: provide irq_sim_fire_edge()

2018-12-02 Thread Bartosz Golaszewski
niedz., 2 gru 2018 o 22:56 Uwe Kleine-König napisał(a): > > Hello, > > On Thu, Nov 29, 2018 at 07:14:45PM +0100, Bartosz Golaszewski wrote: > > We're getting too much into details of how to handle simulated > > interrupts and we can continue discussing it, but meanwhile I'd like > > to address a

Re: ext4 file system corruption with v4.19.3 / v4.19.4

2018-12-02 Thread Rainer Fiebig
Am 02.12.18 um 21:19 schrieb Andrey Melnikov: > чт, 29 нояб. 2018 г. в 01:08, Rainer Fiebig : >> >> Am 28.11.18 um 22:13 schrieb Andrey Melnikov: >>> ср, 28 нояб. 2018 г. в 18:55, Rainer Fiebig : Am Mittwoch, 28. November 2018, 13:02:56 schrieb Andrey Jr. Melnikov: > In

Re: ext4 file system corruption with v4.19.3 / v4.19.4

2018-12-02 Thread Rainer Fiebig
Am 02.12.18 um 21:19 schrieb Andrey Melnikov: > чт, 29 нояб. 2018 г. в 01:08, Rainer Fiebig : >> >> Am 28.11.18 um 22:13 schrieb Andrey Melnikov: >>> ср, 28 нояб. 2018 г. в 18:55, Rainer Fiebig : Am Mittwoch, 28. November 2018, 13:02:56 schrieb Andrey Jr. Melnikov: > In

[PATCH v5 2/2] rtc: support for the Amlogic Meson RTC

2018-12-02 Thread Martin Blumenstingl
Add support for the RTC block on the 32-bit Amlogic Meson6, Meson8, Meson8b and Meson8m2 SoCs. The RTC is split in to two parts, which are both managed by this driver: - the AHB front end - and a simple serial connection to the actual registers The RTC_COUNTER register which holds the time is

[PATCH v5 0/2] Amlogic Meson6/8/8b/8m2 SoC RTC driver

2018-12-02 Thread Martin Blumenstingl
This series adds support for the RTC on the 32-bit Amlogic Meson SoCs. The series does not have any build dependencies, but does require device-tree entries for the relevant boards. The series is tested by myself on the Meson8b EC-100 board. Earlier versions of this series were tested on an

[PATCH v5 1/2] dt-bindings: rtc: add device-tree bindings for the Amlogic Meson RTC

2018-12-02 Thread Martin Blumenstingl
The 32-bit Amlogic Meson SoCs (Meson6, Meson8, Meson8b and Meson8m2) have a built-in RTC block. It has the following inputs: - an 32.768kHz crystal oscillator - an interrupt line - a reset line - 0.9V voltage input Signed-off-by: Ben Dooks [resurrected patches from Ben after 2 years]

[PATCH v5 0/2] Amlogic Meson6/8/8b/8m2 SoC RTC driver

2018-12-02 Thread Martin Blumenstingl
This series adds support for the RTC on the 32-bit Amlogic Meson SoCs. The series does not have any build dependencies, but does require device-tree entries for the relevant boards. The series is tested by myself on the Meson8b EC-100 board. Earlier versions of this series were tested on an

[PATCH v5 1/2] dt-bindings: rtc: add device-tree bindings for the Amlogic Meson RTC

2018-12-02 Thread Martin Blumenstingl
The 32-bit Amlogic Meson SoCs (Meson6, Meson8, Meson8b and Meson8m2) have a built-in RTC block. It has the following inputs: - an 32.768kHz crystal oscillator - an interrupt line - a reset line - 0.9V voltage input Signed-off-by: Ben Dooks [resurrected patches from Ben after 2 years]

[PATCH v5 2/2] rtc: support for the Amlogic Meson RTC

2018-12-02 Thread Martin Blumenstingl
Add support for the RTC block on the 32-bit Amlogic Meson6, Meson8, Meson8b and Meson8m2 SoCs. The RTC is split in to two parts, which are both managed by this driver: - the AHB front end - and a simple serial connection to the actual registers The RTC_COUNTER register which holds the time is

linux-next: manual merge of the arm-soc tree with the kbuild tree

2018-12-02 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm-soc tree got a conflict in: arch/arm/mach-socfpga/Kconfig between commit: 2eac9c2dfb2b ("PCI: consolidate the PCI_DOMAINS and PCI_DOMAINS_GENERIC config options") from the kbuild tree and commit: fbc125afdc50 ("ARM: socfpga: Turn on ARM

linux-next: manual merge of the arm-soc tree with the kbuild tree

2018-12-02 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm-soc tree got a conflict in: arch/arm/mach-socfpga/Kconfig between commit: 2eac9c2dfb2b ("PCI: consolidate the PCI_DOMAINS and PCI_DOMAINS_GENERIC config options") from the kbuild tree and commit: fbc125afdc50 ("ARM: socfpga: Turn on ARM

Re: [PATCH 1/2] irq/irq_sim: provide irq_sim_fire_edge()

2018-12-02 Thread Uwe Kleine-König
Hello, On Thu, Nov 29, 2018 at 07:14:45PM +0100, Bartosz Golaszewski wrote: > We're getting too much into details of how to handle simulated > interrupts and we can continue discussing it, but meanwhile I'd like > to address a different thing: > > Thomas, Linus: after commit fa38869b0161

Re: [PATCH 1/2] irq/irq_sim: provide irq_sim_fire_edge()

2018-12-02 Thread Uwe Kleine-König
Hello, On Thu, Nov 29, 2018 at 07:14:45PM +0100, Bartosz Golaszewski wrote: > We're getting too much into details of how to handle simulated > interrupts and we can continue discussing it, but meanwhile I'd like > to address a different thing: > > Thomas, Linus: after commit fa38869b0161

[PATCH 3/3] clk: meson: meson8b: add the read-only video clock trees

2018-12-02 Thread Martin Blumenstingl
Add all clocks to give us the final video clocks within the Meson8, Meson8b and Meson8m2 SoCs. The final video clocks are: - cts_enct - cts_encl - cts_encp - cts_enci - cts_vdac0 - hdmi_tx_pixel - hdmi_sys Add multiple clocks in between which are needed to implement these clocks: - Opposed to

[PATCH 3/3] clk: meson: meson8b: add the read-only video clock trees

2018-12-02 Thread Martin Blumenstingl
Add all clocks to give us the final video clocks within the Meson8, Meson8b and Meson8m2 SoCs. The final video clocks are: - cts_enct - cts_encl - cts_encp - cts_enci - cts_vdac0 - hdmi_tx_pixel - hdmi_sys Add multiple clocks in between which are needed to implement these clocks: - Opposed to

Re: [patch set 4.19.6] BFS updates

2018-12-02 Thread Tigran Aivazian
just wanted to add: although the subject says "4.19.6" the patches apply perfectly to the top of "torvalds/linux" tree from github. On Sun, 2 Dec 2018 at 21:01, Tigran Aivazian wrote: > > Hi Linus, > > I attached two incremental patches for BFS: > > 1. Make inode bitmap allocation static (applies

[PATCH 0/3] - clk: meson8b: add the (read-only) video clock trees

2018-12-02 Thread Martin Blumenstingl
This is the Meson8b variant of Neil's series from [0] called "- clk: meson: Add video clocks path". GXBB and newer use a -- vid_pll divider IP block which doesn't exist on the 32-bit SoCs. Instead the 32-bit SoCs use three simple dividers, a few muxes and some fixed dividers. I used Neil's GXBB

[PATCH 1/3] clk: meson: meson8b: fix the offset of vid_pll_dco's N value

2018-12-02 Thread Martin Blumenstingl
Unlike the other PLLs on Meson8b the N value "vid_pll_dco" (a better name would be hdmi_pll_dco or - as the datasheet calls it - HPLL) is located at HHI_VID_PLL_CNTL[14:10] instead of [13:9]. This results in an incorrect calculation of the rate of this PLL because the value seen by the kernel is

[PATCH 2/3] clk: meson: meson8b: add the fractional divider for vid_pll_dco

2018-12-02 Thread Martin Blumenstingl
This "vid_pll_dco" (which should be named HDMI_PLL or - as the datasheet calls it - HPLL) has a 12-bit wide fractional parameter at HHI_VID_PLL_CNTL2[11:0]. Add this so we correctly calculate the rate of this PLL when u-boot is configured for a video mode which uses this fractional parameter.

Re: [patch set 4.19.6] BFS updates

2018-12-02 Thread Tigran Aivazian
just wanted to add: although the subject says "4.19.6" the patches apply perfectly to the top of "torvalds/linux" tree from github. On Sun, 2 Dec 2018 at 21:01, Tigran Aivazian wrote: > > Hi Linus, > > I attached two incremental patches for BFS: > > 1. Make inode bitmap allocation static (applies

[PATCH 0/3] - clk: meson8b: add the (read-only) video clock trees

2018-12-02 Thread Martin Blumenstingl
This is the Meson8b variant of Neil's series from [0] called "- clk: meson: Add video clocks path". GXBB and newer use a -- vid_pll divider IP block which doesn't exist on the 32-bit SoCs. Instead the 32-bit SoCs use three simple dividers, a few muxes and some fixed dividers. I used Neil's GXBB

[PATCH 1/3] clk: meson: meson8b: fix the offset of vid_pll_dco's N value

2018-12-02 Thread Martin Blumenstingl
Unlike the other PLLs on Meson8b the N value "vid_pll_dco" (a better name would be hdmi_pll_dco or - as the datasheet calls it - HPLL) is located at HHI_VID_PLL_CNTL[14:10] instead of [13:9]. This results in an incorrect calculation of the rate of this PLL because the value seen by the kernel is

[PATCH 2/3] clk: meson: meson8b: add the fractional divider for vid_pll_dco

2018-12-02 Thread Martin Blumenstingl
This "vid_pll_dco" (which should be named HDMI_PLL or - as the datasheet calls it - HPLL) has a 12-bit wide fractional parameter at HHI_VID_PLL_CNTL2[11:0]. Add this so we correctly calculate the rate of this PLL when u-boot is configured for a video mode which uses this fractional parameter.

Re: [PATCH RFC 14/15] lib: replace **** with a hug

2018-12-02 Thread Tobin C. Harding
On Fri, Nov 30, 2018 at 11:27:23AM -0800, Jarkko Sakkinen wrote: > In order to comply with the CoC, replace with a hug. > > Signed-off-by: Jarkko Sakkinen > --- > lib/vsprintf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/vsprintf.c b/lib/vsprintf.c >

Re: [PATCH RFC 14/15] lib: replace **** with a hug

2018-12-02 Thread Tobin C. Harding
On Fri, Nov 30, 2018 at 11:27:23AM -0800, Jarkko Sakkinen wrote: > In order to comply with the CoC, replace with a hug. > > Signed-off-by: Jarkko Sakkinen > --- > lib/vsprintf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/vsprintf.c b/lib/vsprintf.c >

[PATCH 7/9] ARM: dts: imx7d-pico: Extend peripherals support

2018-12-02 Thread Otavio Salvador
From: Fabio Estevam This extends the peripherals supported by the imx7d-pico.dtsi. It adds: - I2C2 - Flexcan (flexcan1 and flexcan2 ports) - USDHC1 - UART (6 and 7 ports) - PWM (4 ports) - eCSPI3 Signed-off-by: Fabio Estevam Signed-off-by: Otavio Salvador ---

[PATCH 9/9] ARM: dts: imx7d-pico: Add the imx7d-pico-hobbit variant

2018-12-02 Thread Otavio Salvador
From: Fabio Estevam The imx7d-pico-hobbit contains a imx7d-pico SoM and a hobbit baseboard. Add support for it. Signed-off-by: Fabio Estevam Signed-off-by: Otavio Salvador --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx7d-pico-hobbit.dts | 105

[PATCH 4/9] ARM: dts: imx7d-pico: Pass the USBOTG1_PWR pinctrl

2018-12-02 Thread Otavio Salvador
From: Fabio Estevam Pass the USBOTG1_PWR pinctrl description in the USBOTG GPIO controlled regulator. Signed-off-by: Fabio Estevam Signed-off-by: Otavio Salvador --- arch/arm/boot/dts/imx7d-pico.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-pico.dtsi

[PATCH 8/9] ARM: dts: imx7d-pico-pi: Extend peripherals support

2018-12-02 Thread Otavio Salvador
From: Fabio Estevam This adds following peripherals for the imx7d-pico-pi as: - LED - Touchscreen - GPIO Signed-off-by: Fabio Estevam Signed-off-by: Otavio Salvador --- arch/arm/boot/dts/imx7d-pico-pi.dts | 56 + 1 file changed, 56 insertions(+) diff --git

[PATCH 2/9] ARM: dts: imx7d-pico: Switch to SPDX identifier

2018-12-02 Thread Otavio Salvador
From: Fabio Estevam Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Fabio Estevam Signed-off-by: Otavio Salvador --- arch/arm/boot/dts/imx7d-pico-pi.dts | 44 ++--- arch/arm/boot/dts/imx7d-pico.dtsi | 44

[PATCH 7/9] ARM: dts: imx7d-pico: Extend peripherals support

2018-12-02 Thread Otavio Salvador
From: Fabio Estevam This extends the peripherals supported by the imx7d-pico.dtsi. It adds: - I2C2 - Flexcan (flexcan1 and flexcan2 ports) - USDHC1 - UART (6 and 7 ports) - PWM (4 ports) - eCSPI3 Signed-off-by: Fabio Estevam Signed-off-by: Otavio Salvador ---

<    1   2   3   4   5   6   7   >