[PATCH 01/13] afs: Fix interruption of operations

2020-07-13 Thread David Howells
The afs filesystem driver allows unstarted operations to be cancelled by signal, but most of these can easily be restarted (mkdir for example). The primary culprits for reproducing this are those applications that use SIGALRM to display a progress counter. File lock-extension operation is marked

[PATCH 29/32] fscache: Implement "will_modify" parameter on fscache_use_cookie()

2020-07-13 Thread David Howells
Implement the "will_modify" parameter passed to fscache_use_cookie(). Setting this to true will henceforth cause the affected object to be marked as dirty on disk, subject to conflict resolution in the event that power failure or a crash occurs or the filesystem operates in disconnected mode.

Re: [PATCH v2 17/22] drivers/base: Make device_find_child_by_name() compatible with sysfs inputs

2020-07-13 Thread Dan Williams
On Mon, Jul 13, 2020 at 9:13 AM Greg Kroah-Hartman wrote: > > On Mon, Jul 13, 2020 at 09:09:18AM -0700, Dan Williams wrote: > > On Mon, Jul 13, 2020 at 8:52 AM Greg Kroah-Hartman > > wrote: > > > > > > On Mon, Jul 13, 2020 at 08:39:43AM -0700, Dan Williams wrote: > > > > On Sun, Jul 12, 2020 at

[PATCH 30/32] fscache: Provide resize operation

2020-07-13 Thread David Howells
Provide a cache operation to resize an object. This is intended to be run synchronously rather than being deferred as it really needs to run inside the inode lock on the netfs inode from ->setattr() to correctly order with respect to other truncates and writes. Signed-off-by: David Howells ---

Re: [PATCH v2 19/22] mm/memremap_pages: Convert to 'struct range'

2020-07-13 Thread Ralph Campbell
On 7/12/20 9:27 AM, Dan Williams wrote: The 'struct resource' in 'struct dev_pagemap' is only used for holding resource span information. The other fields, 'name', 'flags', 'desc', 'parent', 'sibling', and 'child' are all unused wasted space. This is in preparation for introducing a

[PATCH 32/32] cachefiles: Shape write requests

2020-07-13 Thread David Howells
In cachefiles_shape_extent(), shape a write request to always write to the cache. The assumption is made that the caller has read the entire cache granule beforehand if necessary. Possibly this should be amended so that writes will only take place to granules that are marked present and granules

[PATCH 27/32] fscache: New stats

2020-07-13 Thread David Howells
Create some new stat counters appropriate to the new routines and display them in /proc/fs/fscache/stats. Signed-off-by: David Howells --- fs/fscache/dispatcher.c |6 fs/fscache/internal.h| 25 + fs/fscache/io.c |2 + fs/fscache/read_helper.c | 38

[PATCH 25/32] fscache: Display cache-specific data in /proc/fs/fscache/objects

2020-07-13 Thread David Howells
Allow the cache to add information in /proc/fs/fscache/objects instead of displaying cookie key and aux data - which can be seen in the cookies file. Signed-off-by: David Howells --- fs/cachefiles/content-map.c | 41 + fs/cachefiles/interface.c |

Re: [PATCH] firmware: qcom_scm: Fix legacy convention SCM accessors

2020-07-13 Thread Elliot Berman
For the Qualcomm TrustZone firmwares which I am familiar with: Reviewed-by: Elliot Berman On 7/4/2020 10:23 AM, Jonathan McDowell wrote: > The move to a combined driver for the QCOM SCM hardware changed the > io_writel and io_readl helpers to use non-atomic calls, despite the > commit message

[PATCH 26/32] fscache: Remove more obsolete stats

2020-07-13 Thread David Howells
Remove some more stats that have become obsolete. Signed-off-by: David Howells --- fs/fscache/internal.h | 18 ++ fs/fscache/obj.c |6 +++--- fs/fscache/stats.c| 50 + 3 files changed, 14 insertions(+), 60

[PATCH 28/32] fscache, cachefiles: Rewrite invalidation

2020-07-13 Thread David Howells
Rewrite the cache object invalidation code in fscache and cachefiles. The following changes are made to fscache: (1) Invalidation is now ignored or allowed to proceed depending on the 'stage' a non-index cookie is in with respect to the backing object. (2) If invalidation is proceeds, it

[PATCH 24/32] fscache: Add read helper

2020-07-13 Thread David Howells
Add a trio of helper functions: fscache_read_helper_page_list(); fscache_read_helper_locked_page(); fscache_read_helper_for_write(); to do the work of shaping read requests, attempting to read from the cache, issuing or reissuing requests to the filesystem to pass to the

Re: [PATCH v2] Bluetooth: btusb: add Realtek 8822CE to usb_device_id table

2020-07-13 Thread Marcel Holtmann
Hi Joseph, > This patch adds the Realtek 8822CE controller to the usb_device_id > table to support the wideband speech capability. > > Reviewed-by: ala...@chromium.org > Signed-off-by: Joseph Hwang > --- > > Changes in v2: > - Fixed the commit subject and message body. > >

[PATCH 22/32] cachefiles: Implement read and write parts of new I/O API

2020-07-13 Thread David Howells
Implement writing into the cache and reading back from the cache inside cachefiles using asynchronous direct I/O from the specified iterator. The size and position of the request should be aligned to the reported dio_block_size. Errors and completion are reported by callback. Signed-off-by:

[PATCH 23/32] cachefiles: Add I/O tracepoints

2020-07-13 Thread David Howells
--- fs/cachefiles/interface.c | 16 +++-- fs/cachefiles/io.c|2 + include/trace/events/cachefiles.h | 123 + 3 files changed, 136 insertions(+), 5 deletions(-) diff --git a/fs/cachefiles/interface.c b/fs/cachefiles/interface.c

[PATCH 19/32] cachefiles: Implement a content-present indicator and bitmap

2020-07-13 Thread David Howells
Implement a content indicator that indicates the presence or absence of content and a bitmap that indicates which blocks of granular content are present in a granular file. This is added to the xattr that stores the netfs coherency data, along with the file size and the file zero point (the point

[PATCH 21/32] cachefiles: Round the cachefile size up to DIO block size

2020-07-13 Thread David Howells
Round the size of a cachefile up to DIO block size so that we can always read back the last partial page of a file using direct I/O. Signed-off-by: David Howells --- fs/cachefiles/interface.c | 13 + 1 file changed, 13 insertions(+) diff --git a/fs/cachefiles/interface.c

[PATCH 20/32] cachefiles: Implement extent shaper

2020-07-13 Thread David Howells
Implement the function that shapes extents to map onto the granules in a cache file. When setting to fetch data from the server to be cached, the extent will be expanded to align with granule size and cut down so that it doesn't cross the boundary between a non-present extent and a present

[PATCH 14/32] cachefiles: Remove some redundant checks on unsigned values

2020-07-13 Thread David Howells
Remove some redundant checks for unsigned values being >= 0. Signed-off-by: David Howells --- fs/cachefiles/bind.c |6 ++ fs/cachefiles/daemon.c |6 +++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/fs/cachefiles/bind.c b/fs/cachefiles/bind.c index

[PATCH 18/32] cachefiles: Merge object->backer into object->dentry

2020-07-13 Thread David Howells
Merge the object->backer pointer into the object->dentry pointer and assume that data objects are always going to be just regular files. object->dentry can then more easily be overridden later by invalidation without having two different things to update the xattrs on. object->old maintains a

[PATCH 15/32] cachefiles: trace: Log coherency checks

2020-07-13 Thread David Howells
Add a cachefiles tracepoint that logs the result of coherency management when the coherency data on a file in the cache is checked or committed. Signed-off-by: David Howells --- fs/cachefiles/xattr.c | 45 ++ include/trace/events/cachefiles.h | 56

Re: [PATCH net-next v6 1/4] net: phy: add USXGMII link partner ability constants

2020-07-13 Thread Vladimir Oltean
On Thu, Jul 09, 2020 at 11:35:23PM +0200, Michael Walle wrote: > The constants are taken from the USXGMII Singleport Copper Interface > specification. The naming are based on the SGMII ones, but with an MDIO_ > prefix. > > Signed-off-by: Michael Walle > --- Somebody would need to review this

Re: [PATCH net-next v6 2/4] net: dsa: felix: (re)use already existing constants

2020-07-13 Thread Vladimir Oltean
On Thu, Jul 09, 2020 at 11:35:24PM +0200, Michael Walle wrote: > Now that there are USXGMII constants available, drop the old definitions > and reuse the generic ones. > > Signed-off-by: Michael Walle > --- I did regression-testing of this on an LS1028A-QDS with SerDes protocol 0x13bb.

[PATCH 17/32] cachefiles: Implement new fscache I/O backend API

2020-07-13 Thread David Howells
Implement the new fscache I/O backend API in cachefiles. The cachefiles_object struct carries a non-accounted file to the cachefiles object (so that it doesn't cause ENFILE). Signed-off-by: David Howells --- fs/cachefiles/Makefile|1 + fs/cachefiles/interface.c |3 ++

[PATCH 16/32] cachefiles: Split cachefiles_drop_object() up a bit

2020-07-13 Thread David Howells
Split cachefiles_drop_object() up a bit to make it easier to modify later. Signed-off-by: David Howells --- fs/cachefiles/interface.c | 58 ++--- 1 file changed, 39 insertions(+), 19 deletions(-) diff --git a/fs/cachefiles/interface.c

[PATCH 10/32] fscache: Remove fscache_wait_on_invalidate()

2020-07-13 Thread David Howells
Remove fscache_wait_on_invalidate() as the invalidation wait is now built into the I/O path. Signed-off-by: David Howells --- fs/fscache/cookie.c | 14 -- include/linux/fscache.h | 17 - 2 files changed, 31 deletions(-) diff --git a/fs/fscache/cookie.c

Re: [PATCH 21/25] pinctrl: pinctrl-single: Fix struct/function documentation blocks

2020-07-13 Thread Tony Lindgren
* Lee Jones [200713 14:50]: > Add some missing attributes/parameter descriptions, remove other > superfluous ones, add struct header titles and fix misspellings. > > Fixes the following W=1 kernel build warning(s): > > drivers/pinctrl/pinctrl-single.c:50: warning: Function parameter or member

[PATCH 08/32] fscache: Replace the object management state machine

2020-07-13 Thread David Howells
Replace the object management state machine with something a lot simpler. The entire process of setting up or tearing down a cookie is done in one go, and the dispatcher either punts it to a worker thread, or if all the worker threads are all busy, does it in the current thread.

[PATCH 13/32] fscache: Recast assertion in terms of cookie not being an index

2020-07-13 Thread David Howells
Recast assertion in terms of cookie not being an index rather than being a datafile. Signed-off-by: David Howells --- fs/fscache/cookie.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fscache/cookie.c b/fs/fscache/cookie.c index 5c53027d3f53..2d9d147411cd 100644 ---

Re: [PATCH] gcc-plugins: Replace HTTP links with HTTPS ones

2020-07-13 Thread Kees Cook
On Mon, Jul 13, 2020 at 03:50:18PM +0200, Alexander A. Klimov wrote: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Deterministic algorithm: > For each file: > If not .svg: > For each line: > If

Re: [PATCH 1/3] Bluetooth: Add new quirk for broken local ext features max_page

2020-07-13 Thread Marcel Holtmann
Hi Vasily, >> maybe just the read sync train params command is broken? Can you change the >> init code and not send it and see if the rest of the init phase proceeds. I >> would rather have the secure connections actually tested before dismissing >> it altogether. > > I don't think that I

[PATCH 11/32] fscache: Keep track of size of a file last set independently on the server

2020-07-13 Thread David Howells
Keep track of the size of a file that we're caching as last set independently on the server by another client. As long as this does not change, we can make the assumption that anything over that boundary, if not represented in the local cache, will not be represented on the server either and can

[PATCH 12/32] fscache, cachefiles: Fix disabled histogram warnings

2020-07-13 Thread David Howells
Fix variable unused warnings due to disabled histogram stuff. Signed-off-by: David Howells --- fs/cachefiles/internal.h |7 +-- fs/fscache/internal.h|6 -- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/fs/cachefiles/internal.h b/fs/cachefiles/internal.h

[PATCH] memory: Replace HTTP links with HTTPS ones

2020-07-13 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

[PATCH 09/32] fscache: Rewrite the I/O API based on iov_iter

2020-07-13 Thread David Howells
Rewrite the fscache I/O API by introducing a number of new routines based on a number of principles: (1) The cache provides *only* write-to-cache and read-from-cache calls for transferring data to/from the cache. (2) The bufferage for I/O to/from the cache is supplied with an iov_iter.

[PATCH 06/32] cachefiles: Remove tree of active files and use S_CACHE_FILE inode flag

2020-07-13 Thread David Howells
Remove the tree of active dentries from the cachefiles_cache struct and instead set a flag, S_CACHE_FILE, on the backing inode to indicate that this file is in use by the kernel so as to ward off other kernel users. This simplifies the code a lot and also prevents two overlain caches from

[PATCH 07/32] fscache: Provide a simple thread pool for running ops asynchronously

2020-07-13 Thread David Howells
Provide a simple thread pool that can be used to run cookie management operations in the background and a dispatcher infrastructure to punt operations to the pool if threads are available or to just run the operation in the calling thread if not. A future patch will replace all the object state

[PATCH 01/32] iov_iter: Add ITER_MAPPING

2020-07-13 Thread David Howells
Add an iterator, ITER_MAPPING, that walks through a set of pages attached to an address_space, starting at a given page and offset and walking for the specified amount of bytes. The caller must guarantee that the pages are all present and they must be locked using PG_locked, PG_writeback or

[PATCH 05/32] mm: Provide lru_to_last_page() to get last of a page list

2020-07-13 Thread David Howells
Provide a macro, lru_to_last_page(), to find the last page in a page list (the opposite of lru_to_page()). Signed-off-by: David Howells --- include/linux/mm.h |1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mm.h b/include/linux/mm.h index dc7b87310c10..9692b9b58b06 100644

[PATCH 02/32] vm: Add wait/unlock functions for PG_fscache

2020-07-13 Thread David Howells
Add functions to unlock and wait for unlock of PG_fscache analogously with those for PG_lock. Signed-off-by: David Howells --- include/linux/pagemap.h | 14 ++ mm/filemap.c| 18 ++ 2 files changed, 32 insertions(+) diff --git

[PATCH 04/32] vfs: Provide S_CACHE_FILE inode flag

2020-07-13 Thread David Howells
Provide an S_CACHE_FILE inode flag that cachefiles can set to ward off other kernel services and drivers (including itself) from using its cache files. Signed-off-by: David Howells --- include/linux/fs.h |1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/fs.h

[PATCH 03/32] vfs: Export rw_verify_area() for use by cachefiles

2020-07-13 Thread David Howells
Export rw_verify_area() for so that cachefiles can use it before issuing call_read_iter() and call_write_iter() to effect async DIO operations against the cache. Signed-off-by: David Howells --- fs/internal.h |5 - fs/read_write.c|1 + include/linux/fs.h |1 + 3 files

[PATCH 00/32] fscache: Rewrite 2: Make the I/O interface use kiocb/iov_iter

2020-07-13 Thread David Howells
Here's a set of patches that massively overhauls the object lifecycle management and the I/O API of the local caching for network filesystems code for a reduction of about 3000 LoC and a 1000 line Documentation reduction. The ability to use async DIO to pass data to/from the cache gives a huge

[PATCH 13/14] fscache: Temporarily disable fscache_invalidate()

2020-07-13 Thread David Howells
Temporarily disable the fscache side of fscache_invalidate() so that the operation managing code can be removed. Signed-off-by: David Howells --- fs/cachefiles/interface.c |9 ++--- fs/fscache/cookie.c |4 +- fs/fscache/object.c | 78

[PATCH 14/14] fscache: Remove the I/O operation manager

2020-07-13 Thread David Howells
Remove the fscache I/O operation manager. Getting operation-operation interactions and object-operation interactions correct has proven really difficult; furthermore, the operations are being replaced with kiocb-driven stuff on the cache front. Signed-off-by: David Howells ---

[PATCH 12/14] fscache: Remove old I/O tracepoints

2020-07-13 Thread David Howells
Remove now-unused fscache tracepoints that have been obsoleted by the removal of the old I/O code. Signed-off-by: David Howells --- fs/fscache/object.c|1 include/trace/events/fscache.h | 195 2 files changed, 196 deletions(-) diff

[PATCH 10/14] fscache: Remove fscache_attr_changed()

2020-07-13 Thread David Howells
Remove fscache_attr_changed() as it's unused. Signed-off-by: David Howells --- fs/cachefiles/interface.c | 13 ++--- fs/fscache/Makefile |3 - fs/fscache/page.c | 98 - include/linux/fscache-cache.h |4 --

[PATCH 11/14] fscache: Remove obsolete stats

2020-07-13 Thread David Howells
Remove a bunch of now-unused fscache stats counters that were obsoleted by the removal of the old I/O routines. Signed-off-by: David Howells --- fs/fscache/internal.h | 61 --- fs/fscache/stats.c| 129 - 2 files

[PATCH 08/14] fscache: Remove store_limit* from struct fscache_object

2020-07-13 Thread David Howells
Remove the store_limit values from struct fscache_object and store the object size in the cookie. The netfs can update this at will, and we don't want to call back into the netfs to fetch it. Signed-off-by: David Howells --- fs/cachefiles/interface.c | 10 ++ fs/fscache/cookie.c

[PATCH 09/14] fscache: Remove fscache_check_consistency()

2020-07-13 Thread David Howells
Remove fscache_check_consistency() as that allows the netfs to pry into the inner working of the cache - and what's in the cookie should be taken as consistent with the disk (possibly lazily). Signed-off-by: David Howells --- fs/cachefiles/interface.c | 26 -

Re: [PATCH 11/18] perf metric: Add referenced metrics to hash data

2020-07-13 Thread John Garry
On 12/07/2020 14:26, Jiri Olsa wrote: +int expr__add_ref(struct expr_parse_ctx *ctx, struct metric_ref *ref) +{ + struct expr_id_data *data_ptr = NULL, *old_data = NULL; + char *old_key = NULL; + char *name; + int ret; + + data_ptr = zalloc(sizeof(*data_ptr)); +

[PATCH 05/14] fscache: Remove the old I/O API

2020-07-13 Thread David Howells
Remove the old fscache I/O API. There's no point trying to transform it as the new one will bear no similarities to the old one. Signed-off-by: David Howells --- fs/cachefiles/Makefile |1 fs/cachefiles/interface.c| 15 - fs/cachefiles/internal.h | 38 -

[PATCH 07/14] fscache: Remove struct fscache_cookie_def

2020-07-13 Thread David Howells
Remove the cookie definition structure so that there's no pointers from that back into the network filesystem. All of the method pointers that were in there have been removed anyway. Any remaining information is stashed in the cookie. Signed-off-by: David Howells --- fs/afs/cache.c

[PATCH 06/14] fscache: Remove the netfs data from the cookie

2020-07-13 Thread David Howells
Remove the netfs data pointer from the cookie so that we don't refer back to the netfs state and don't need accessors to manage this. Keep the information we do need (of which there's not actually a lot) in the cookie which we can keep hold of if the netfs state goes away. Signed-off-by: David

[PATCH 04/14] fscache: Procfile to display cookies

2020-07-13 Thread David Howells
Add /proc/fs/fscache/cookies to display active cookies. Signed-off-by: David Howells --- fs/fscache/cookie.c | 103 +++ fs/fscache/internal.h |1 fs/fscache/proc.c |7 +++ include/linux/fscache.h |1 4 files changed, 112

[PATCH 02/14] afs: Disable use of the fscache I/O routines

2020-07-13 Thread David Howells
Disable use of the fscache I/O routined by the AFS filesystem. It's about to transition to passing iov_iters down and fscache is about to have its I/O path to use iov_iter, so all that needs to change. Signed-off-by: David Howells cc: linux-...@lists.infradead.org --- fs/afs/file.c | 196

[PATCH 03/14] fscache: Add a cookie debug ID and use that in traces

2020-07-13 Thread David Howells
Add a cookie debug ID and use that in traces and in procfiles rather than displaying the (hashed) pointer to the cookie. This is easier to correlate and we don't lose anything when interpreting oops output since that shows unhashed addresses and registers that aren't comparable to the hashed

Re: [v5] dt-bindings: msm: disp: add yaml schemas for DPU and DSI bindings

2020-07-13 Thread Rob Herring
On Fri, Jul 10, 2020 at 07:27:49PM +0530, Krishna Manikandan wrote: > MSM Mobile Display Subsytem (MDSS) encapsulates sub-blocks > like DPU display controller, DSI etc. Add YAML schema > for the device tree bindings for the same. > > Signed-off-by: Krishna Manikandan > > Changes in v2: >

[PATCH 00/14] fscache: Rewrite 1: Disable and clean in preparation for rewrite

2020-07-13 Thread David Howells
Here's a set of patches that disables the network filesystems that use fscache and then remove a whole chunk of the fscache codebase pending it being rewritten. The following parts of fscache have been removed: - The object state machine - The I/O operation manager - All

[PATCH 01/14] nfs, cifs, ceph, 9p: Disable use of fscache prior to its rewrite

2020-07-13 Thread David Howells
Temporarily disable the use of fscache by the various Linux network filesystems, apart from afs, so that the fscache core can be rewritten. Signed-off-by: David Howells cc: Dave Wysochanski cc: Trond Myklebust cc: Anna Schumaker cc: linux-...@vger.kernel.org cc: Jeff Layton cc: Ilya Dryomov

Re: [PATCH v6 1/2] remoteproc: qcom: Add per subsystem SSR notification

2020-07-13 Thread Jon Hunter
On 24/06/2020 03:23, Rishabh Bhatnagar wrote: > Currently there is a single notification chain which is called whenever any > remoteproc shuts down. This leads to all the listeners being notified, and > is not an optimal design as kernel drivers might only be interested in > listening to

[PATCH] clocksource/drivers/timer-ti-dm: Fix suspend and resume for am3 and am4

2020-07-13 Thread Tony Lindgren
Carlos Hernandez reported that we now have a suspend and resume regresssion on am3 and am4 compared to the earlier kernels. While suspend and resume works with v5.8-rc3, we now get errors with rtcwake: pm33xx pm33xx: PM: Could not transition all powerdomains to target state ... rtcwake: write

[PATCH] media: uvcvideo: Replace HTTP links with HTTPS ones

2020-07-13 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types)

2020-07-13 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 11ba468877bb23f28956a35e896356252d63c983 commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH date: 8 months ago config: microblaze-randconfig-s031-20200713 (attached

[PATCH v2] KVM: nVMX: fix the layout of struct kvm_vmx_nested_state_hdr

2020-07-13 Thread Vitaly Kuznetsov
Before commit 850448f35aaf ("KVM: nVMX: Fix VMX preemption timer migration") struct kvm_vmx_nested_state_hdr looked like: struct kvm_vmx_nested_state_hdr { __u64 vmxon_pa; __u64 vmcs12_pa; struct { __u16 flags; } smm; } The ABI got broken by the

10 of your incoming messages has been suspended

2020-07-13 Thread Felipe Francisco Romero Ruiz
MICROSOFT NOTIFICATION MEMO 10 of your incoming messages has been suspended and your email box account will be suspended also because your email box account has not been verified for this year. do click on verify now below to verify your email box account

Re: WARNING in submit_bio_checks

2020-07-13 Thread Eric Biggers
On Mon, Jul 13, 2020 at 11:18:36AM +0100, Christoph Hellwig wrote: > On Fri, Jul 10, 2020 at 10:34:19PM -0700, syzbot wrote: > > Hello, > > > > syzbot found the following crash on: > > This is not a crash, but a WARN_ONCE. A pre-existing one that just > slightly changed the printed message

[PATCH v6 2/2] tmpfs: Support 64-bit inums per-sb

2020-07-13 Thread Chris Down
The default is still set to inode32 for backwards compatibility, but system administrators can opt in to the new 64-bit inode numbers by either: 1. Passing inode64 on the command line when mounting, or 2. Configuring the kernel with CONFIG_TMPFS_INODE64=y The inode64 and inode32 names are used

[PATCH v6 0/2] tmpfs: inode: Reduce risk of inum overflow

2020-07-13 Thread Chris Down
In Facebook production we are seeing heavy i_ino wraparounds on tmpfs. On affected tiers, in excess of 10% of hosts show multiple files with different content and the same inode number, with some servers even having as many as 150 duplicated inode numbers with differing file content. This causes

[PATCH v6 1/2] tmpfs: Per-superblock i_ino support

2020-07-13 Thread Chris Down
get_next_ino has a number of problems: - It uses and returns a uint, which is susceptible to become overflowed if a lot of volatile inodes that use get_next_ino are created. - It's global, with no specificity per-sb or even per-filesystem. This means it's not that difficult to cause inode

Re: [PATCH] fuse_writepages_fill() optimization to avoid WARN_ON in tree_insert

2020-07-13 Thread Miklos Szeredi
On Mon, Jul 13, 2020 at 10:02 AM Vasily Averin wrote: > > On 7/11/20 7:01 AM, Miklos Szeredi wrote: > > On Thu, Jun 25, 2020 at 11:02 AM Vasily Averin wrote: > >> > >> In current implementation fuse_writepages_fill() tries to share the code: > >> for new wpa it calls tree_insert() with num_pages

[PATCH] [media] tw68: Replace HTTP links with HTTPS ones

2020-07-13 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

Re: [PATCH v2 17/22] drivers/base: Make device_find_child_by_name() compatible with sysfs inputs

2020-07-13 Thread Greg Kroah-Hartman
On Mon, Jul 13, 2020 at 09:09:18AM -0700, Dan Williams wrote: > On Mon, Jul 13, 2020 at 8:52 AM Greg Kroah-Hartman > wrote: > > > > On Mon, Jul 13, 2020 at 08:39:43AM -0700, Dan Williams wrote: > > > On Sun, Jul 12, 2020 at 10:09 AM Greg Kroah-Hartman > > > wrote: > > > > > > > > On Sun, Jul 12,

Re: [PATCH v4 2/2] iio: adc: ad7192: move ad7192_of_match table closer to the end of the file

2020-07-13 Thread Ardelean, Alexandru
On Wed, 2020-04-15 at 08:58 +0300, Alexandru Ardelean wrote: > The change is more cosmetic. There is no need to reference this table in > the probe function since 'of_device_get_match_data' is used, which > obtains > this information from the driver object. This looks like it could be applied

Re: [PATCH v2 17/22] drivers/base: Make device_find_child_by_name() compatible with sysfs inputs

2020-07-13 Thread Dan Williams
On Mon, Jul 13, 2020 at 8:52 AM Greg Kroah-Hartman wrote: > > On Mon, Jul 13, 2020 at 08:39:43AM -0700, Dan Williams wrote: > > On Sun, Jul 12, 2020 at 10:09 AM Greg Kroah-Hartman > > wrote: > > > > > > On Sun, Jul 12, 2020 at 09:27:37AM -0700, Dan Williams wrote: > > > > Use sysfs_streq() in

Re: [PATCH v4] ALSA: line6: add hw monitor volume control for POD HD500

2020-07-13 Thread Takashi Iwai
On Mon, 13 Jul 2020 17:28:52 +0200, Vasily Khoruzhick wrote: > > Add hw monitor volume control for POD HD500. The same change may > work for HD500X but I don't have it to test. > > Signed-off-by: Vasily Khoruzhick > --- > v4: add NULL check for kmalloc-ed buffer > v3: - use EXPORT_SYMBOL_GPL

Re: [PATCH] drm/vkms: add wait_for_vblanks in atomic_commit_tail

2020-07-13 Thread Daniel Vetter
On Fri, Jul 10, 2020 at 02:05:33PM -0300, Melissa Wen wrote: > On 07/02, Daniel Vetter wrote: > > On Wed, Jul 01, 2020 at 03:31:34PM +, Sidong Yang wrote: > > > there is an error when igt test is run continuously. > > > vkms_atomic_commit_tail() > > > need to call

Re: [PATCH][next] scsi: cxgb4i: fix dereference of pointer tdata before it is null checked

2020-07-13 Thread Varun Prakash
On Thu, Jul 09, 2020 at 02:52:17PM +0100, Colin King wrote: > From: Colin Ian King > > Currently pointer tdata is being dereferenced on the initialization of > pointer skb before tdata is null checked. This could lead to a potential > null pointer dereference. Fix this by dereferencing tdata

Re: [PATCH v5 03/13] dt-bindings: mfd: Add bindings for sl28cpld

2020-07-13 Thread Rob Herring
On Mon, 06 Jul 2020 19:53:43 +0200, Michael Walle wrote: > Add a device tree bindings for the board management controller found on > the Kontron SMARC-sAL28 board. > > Signed-off-by: Michael Walle > --- > Changes since v4: > - fix the regex of the unit-address > > Changes since v3: > - see

[PATCH] [media] tw5864-core: Replace HTTP links with HTTPS ones

2020-07-13 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

[PATCH v7 6/6] docs: mm: numaperf.rst Add brief description for access class 1.

2020-07-13 Thread Jonathan Cameron
Try to make minimal changes to the document which already describes access class 0 in a generic fashion (including IO initiatiors that are not CPUs). Signed-off-by: Jonathan Cameron --- Documentation/admin-guide/mm/numaperf.rst | 8 1 file changed, 8 insertions(+) diff --git

Re: [PATCH 1/3] Bluetooth: Add new quirk for broken local ext features max_page

2020-07-13 Thread Vasily Khoruzhick
On Sun, Jul 12, 2020 at 11:28 PM Marcel Holtmann wrote: Hi Marcel, > maybe just the read sync train params command is broken? Can you change the > init code and not send it and see if the rest of the init phase proceeds. I > would rather have the secure connections actually tested before

[PATCH v7 4/6] ACPI: HMAT: Fix handling of changes from ACPI 6.2 to ACPI 6.3

2020-07-13 Thread Jonathan Cameron
In ACPI 6.3, the Memory Proximity Domain Attributes Structure changed substantially. One of those changes was that the flag for "Memory Proximity Domain field is valid" was deprecated. This was because the field "Proximity Domain for the Memory" became a required field and hence having a

Re: [PATCH] drm/bridge: sil_sii8620: initialize return of sii8620_readb

2020-07-13 Thread Sam Ravnborg
Hi Tom. On Sun, Jul 12, 2020 at 08:24:53AM -0700, t...@redhat.com wrote: > From: Tom Rix > > clang static analysis flags this error > > sil-sii8620.c:184:2: warning: Undefined or garbage value > returned to caller [core.uninitialized.UndefReturn] > return ret; > ^~ >

Re: [Freedreno] [v1] drm/msm/dpu: add support for clk and bw scaling for display

2020-07-13 Thread kalyan_t
On 2020-07-10 22:38, Rob Clark wrote: On Thu, Jun 18, 2020 at 7:09 AM Kalyan Thota wrote: This change adds support to scale src clk and bandwidth as per composition requirements. Interconnect registration for bw has been moved to mdp device node from mdss to facilitate the scaling. Changes

[PATCH v7 5/6] node: Add access1 class to represent CPU to memory characteristics

2020-07-13 Thread Jonathan Cameron
New access1 class is nearly the same as access0, but always provides characteristics for CPUs to memory. The existing access0 class provides characteristics to nearest or direct connnect initiator which may be a Generic Initiator such as a GPU or network adapter. This new class allows thread

Re: [PATCH] x86/entry: Fix vectors to IDTENTRY_SYSVEC for CONFIG_HYPERV

2020-07-13 Thread Sedat Dilek
On Mon, Jul 13, 2020 at 1:13 PM Wei Liu wrote: > > On Mon, Jul 13, 2020 at 01:10:50AM +0200, Sedat Dilek wrote: > > When using Clang's Integrated Assembler (LLVM_IAS=1) we fell over > > ClangBuiltLinux (CBL) issue #1043 where Jian Cai provided a fix. > > > > With Jian's fix applied another issue

[PATCH v7 3/6] ACPI: Let ACPI know we support Generic Initiator Affinity Structures

2020-07-13 Thread Jonathan Cameron
Until we tell ACPI that we support generic initiators, it will have to operate in fall back domain mode and all _PXM entries should be on existing non GI domains. This patch sets the relevant OSC bit to make that happen. Signed-off-by: Jonathan Cameron --- drivers/acpi/bus.c | 1 +

Re: [PATCH] cpufreq: Replace HTTP links with HTTPS ones

2020-07-13 Thread Rafael J. Wysocki
On Mon, Jul 13, 2020 at 12:55 PM Alexander A. Klimov wrote: > > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Deterministic algorithm: > For each file: > If not .svg: > For each line: > If doesn't

Re: [RFC PATCH 7/7] lazy tlb: shoot lazies, a non-refcounting lazy tlb option

2020-07-13 Thread Andy Lutomirski
On Thu, Jul 9, 2020 at 6:57 PM Nicholas Piggin wrote: > > On big systems, the mm refcount can become highly contented when doing > a lot of context switching with threaded applications (particularly > switching between the idle thread and an application thread). > > Abandoning lazy tlb slows

Re: [PATCH 1/3] habanalabs: implement dma-fence mechanism

2020-07-13 Thread Greg Kroah-Hartman
On Mon, Jul 13, 2020 at 06:54:22PM +0300, Oded Gabbay wrote: > From: Ofir Bitton > > Instead of using standard dma-fence mechanism designed for GPU's, we > introduce our own implementation based on the former one. This > implementation is much more sparse than the original, contains only >

[PATCH v7 2/6] x86: Support Generic Initiator only proximity domains

2020-07-13 Thread Jonathan Cameron
In common with memoryless domains we only register GI domains if the proximity node is not online. If a domain is already a memory containing domain, or a memoryless domain there is nothing to do just because it also contains a Generic Initiator. Signed-off-by: Jonathan Cameron ---

[PATCH v7 1/6] ACPI: Support Generic Initiator only domains

2020-07-13 Thread Jonathan Cameron
Generic Initiators are a new ACPI concept that allows for the description of proximity domains that contain a device which performs memory access (such as a network card) but neither host CPU nor Memory. This patch has the parsing code and provides the infrastructure for an architecture to

[PATCH v7 0/6] ACPI: Support Generic Initiator proximity domains

2020-07-13 Thread Jonathan Cameron
Depends on [PATCH] ACPI: Only create numa nodes from entries in SRAT or SRAT emulation. or remove the extra parameter in acpi_map_pxm_to_node. Introduces a new type of NUMA node for cases where we want to represent the access characteristics of a non CPU initiator of memory requests, as these

Re: [PATCH] Driver-API: Documentation: Replace deprecated :c:func: Usage

2020-07-13 Thread Jonathan Corbet
On Tue, 7 Jul 2020 11:02:52 +0530 Puranjay Mohan wrote: > Replace :c:func: with func() as the previous usage is deprecated. > > Signed-off-by: Puranjay Mohan > --- > Documentation/driver-api/device-io.rst | 22 +++--- > 1 file changed, 11 insertions(+), 11 deletions(-)

Re: [PATCH V1] mmc: sdhci-msm: Set IO pins in low power state during suspend

2020-07-13 Thread Veerabhadrarao Badiganti
On 7/11/2020 5:49 AM, Matthias Kaehlcke wrote: Hi, On Fri, Jul 10, 2020 at 04:28:36PM +0530, Veerabhadrarao Badiganti wrote: Hi Mathias, On 7/10/2020 6:22 AM, Matthias Kaehlcke wrote: Hi, On Wed, Jul 08, 2020 at 06:41:20PM +0530, Veerabhadrarao Badiganti wrote: Configure SDHC IO pins

Re: [PATCH v2 01/11] xen/manage: keep track of the on-going suspend mode

2020-07-13 Thread Boris Ostrovsky
On 7/2/20 2:21 PM, Anchal Agarwal wrote: > From: Munehisa Kamata > > Guest hibernation is different from xen suspend/resume/live migration. > Xen save/restore does not use pm_ops as is needed by guest hibernation. > Hibernation in guest follows ACPI path and is guest inititated , the >

Re: [PATCH] KVM: nVMX: properly pad struct kvm_vmx_nested_state_hdr

2020-07-13 Thread Vitaly Kuznetsov
Sean Christopherson writes: > On Mon, Jul 13, 2020 at 10:28:24AM +0200, Vitaly Kuznetsov wrote: >> Holes in structs which are userspace ABI are undesireable. >> >> Fixes: 83d31e5271ac ("KVM: nVMX: fixes for preemption timer migration") >> Signed-off-by: Vitaly Kuznetsov >> --- >>

Re: [Ksummit-discuss] [PATCH] CodingStyle: Inclusive Terminology

2020-07-13 Thread Dan Williams
On Sun, Jul 12, 2020 at 9:26 PM Vinod Koul wrote: > > Hi Mauro, > > On 09-07-20, 13:11, Mauro Carvalho Chehab wrote: > > Em Mon, 06 Jul 2020 06:30:01 -0700 > > Joe Perches escreveu: > > > > > > $ git grep -i -w -P '\w*slave\w*' drivers | \ > > > cut -f1,2 -d/ | uniq -c | sort -rn | head -20 |

Re: [PATCH v3 13/16] dt-bindings: i2c: mv64xxx: Add compatible for the A100 i2c node.

2020-07-13 Thread Rob Herring
On Mon, 13 Jul 2020 10:20:49 +0800, Frank Lee wrote: > Allwinner A100 have a mv64xxx i2c interface available to be used. > > Signed-off-by: Frank Lee > --- > Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml | 3 +++ > 1 file changed, 3 insertions(+) > Reviewed-by: Rob Herring

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