Re: [PATCH v4 2/2] dt-bindings: Document bindings for new SDM845 devices

2021-01-25 Thread Rob Herring
On Thu, 14 Jan 2021 20:32:06 +, Caleb Connolly wrote: > Document compatible bindings for the new OnePlus 6/6T devices. > > Signed-off-by: Caleb Connolly > --- > Documentation/devicetree/bindings/arm/qcom.yaml| 5 + > Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ >

Re: [PATCH 1/3] dt-bindings: mtd: move partition binding to its own file

2021-01-25 Thread Rob Herring
On Fri, 15 Jan 2021 16:38:59 +0100, Rafał Miłecki wrote: > From: Rafał Miłecki > > Single partition binding is quite common and may be: > 1. Used by multiple parsers > 2. Extended for more specific cases > > Move it to separated file to avoid code duplication. > > Signed-off-by: Rafał Miłecki

Re: (subset) [PATCH v6 0/5] ARM: arm64: Add SMCCC TRNG entropy service

2021-01-25 Thread Marc Zyngier
On Wed, 6 Jan 2021 10:34:48 +, Andre Przywara wrote: > a fix to v5, now *really* fixing the wrong priority of SMCCC vs. RNDR > in arch_get_random_seed_long_early(). Apologies for messing this up > in v5 and thanks to broonie for being on the watch! > > Will, Catalin: it would be much appreciat

Re: [PATCH 3/3] iio: proximity: Add a ChromeOS EC MKBP proximity driver

2021-01-25 Thread Gwendal Grignou
On Mon, Jan 25, 2021 at 10:52 AM Stephen Boyd wrote: > > Quoting Gwendal Grignou (2021-01-24 13:41:44) > > On Sun, Jan 24, 2021 at 9:38 AM Jonathan Cameron wrote: > > > > > > On Fri, 22 Jan 2021 14:54:43 -0800 > > > Stephen Boyd wrote: > > > > > > > --- > > > > drivers/iio/proximity/Kconfig

[PATCH 22/32] afs: Prepare for use of THPs

2021-01-25 Thread David Howells
As a prelude to supporting transparent huge pages, use thp_size() and similar rather than PAGE_SIZE/SHIFT. Further, try and frame everything in terms of file positions and lengths rather than page indices and numbers of pages. Signed-off-by: David Howells --- fs/afs/dir.c |2 fs/afs/

RE: [PATCH 1/1] sched/topology: Make sched_init_numa() use a set for the deduplicating sort

2021-01-25 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Valentin Schneider [mailto:valentin.schnei...@arm.com] > Sent: Tuesday, January 26, 2021 5:46 AM > To: Song Bao Hua (Barry Song) ; > linux-kernel@vger.kernel.org > Cc: mi...@kernel.org; pet...@infradead.org; vincent.guit...@linaro.org; > dietmar.eggem...@arm.

Re: [PATCH v4 2/4] opp: Add dev_pm_opp_sync_regulators()

2021-01-25 Thread Dmitry Osipenko
21.01.2021 01:26, Dmitry Osipenko пишет: > Extend OPP API with dev_pm_opp_sync_regulators() function, which syncs > voltage state of regulators. > > Tested-by: Peter Geis > Tested-by: Nicolas Chauvet > Tested-by: Matt Merhar > Signed-off-by: Dmitry Osipenko > --- > drivers/opp/core.c | 41

[PATCH 21/32] afs: Extract writeback extension into its own function

2021-01-25 Thread David Howells
Extract writeback extension into its own function to break up the writeback function a bit. Signed-off-by: David Howells --- fs/afs/write.c | 109 ++-- 1 file changed, 67 insertions(+), 42 deletions(-) diff --git a/fs/afs/write.c b/fs/afs/wr

[PATCH 19/32] afs: Use ITER_XARRAY for writing

2021-01-25 Thread David Howells
Use a single ITER_XARRAY iterator to describe the portion of a file to be transmitted to the server rather than generating a series of small ITER_BVEC iterators on the fly. This will make it easier to implement AIO in afs. In theory we could maybe use one giant ITER_BVEC, but that means potential

[PATCH v3 net-next] Remove buf_info from device accessible structures

2021-01-25 Thread Ronak Doshi
vmxnet3: Remove buf_info from device accessible structures buf_info structures in RX & TX queues are private driver data that do not need to be visible to the device. Although there is physical address and length in the queue descriptor that points to these structures, their layout is not standar

[PATCH 18/32] afs: Set up the iov_iter before calling afs_extract_data()

2021-01-25 Thread David Howells
afs_extract_data() sets up a temporary iov_iter and passes it to AF_RXRPC each time it is called to describe the remaining buffer to be filled. Instead: (1) Put an iterator in the afs_call struct. (2) Set the iterator for each marshalling stage to load data into the appropriate places. A

[PATCH 17/32] afs: Log remote unmarshalling errors

2021-01-25 Thread David Howells
Log unmarshalling errors reported by the peer (ie. it can't parse what we sent it). Limit the maximum number of messages to 3. Signed-off-by: David Howells --- fs/afs/rxrpc.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/fs/afs/rxrpc.c b/fs/afs/rxrpc

[PATCH 08/32] netfs: Gather stats

2021-01-25 Thread David Howells
Gather statistics from the netfs interface that can be exported through a seqfile. This is intended to be called by a later patch when viewing /proc/fs/fscache/stats. Signed-off-by: David Howells --- fs/netfs/Kconfig | 15 + fs/netfs/Makefile |3 +-- fs/netfs/inter

[PATCH 16/32] afs: Don't truncate iter during data fetch

2021-01-25 Thread David Howells
Don't truncate the iterator to correspond to the actual data size when fetching the data from the server - rather, pass the length we want to read to rxrpc. This will allow the clear-after-read code in future to simply clear the remaining iterator capacity rather than having to reinitialise the it

Re: [PATCH 2/3] dt-bindings: mtd: add binding from BCM4908 partitions

2021-01-25 Thread Rob Herring
On Fri, Jan 15, 2021 at 04:39:00PM +0100, Rafał Miłecki wrote: > From: Rafał Miłecki > > BCM4908 uses fixed partitions layout but function of some partitions may > vary. Some devices use multiple firmware partitions and those should be > marked to let system discover their purpose. > > Signed-of

Re: [PATCH] smackfs: restrict bytes count in smackfs write functions

2021-01-25 Thread Tetsuo Handa
On 2021/01/26 3:08, Casey Schaufler wrote: > On 1/24/2021 6:36 AM, Sabyrzhan Tasbolatov wrote: >> syzbot found WARNINGs in several smackfs write operations where >> bytes count is passed to memdup_user_nul which exceeds >> GFP MAX_ORDER. Check count size if bigger SMK_LONGLABEL, >> for smk_write_sy

Re: [PATCH] pinctrl: qcom-pmic-gpio: Add support for pm8019

2021-01-25 Thread Rob Herring
On Fri, 15 Jan 2021 18:11:13 +0100, Konrad Dybcio wrote: > PM8019 provides 6 GPIOs. Add a compatible to support that. > > Signed-off-by: Konrad Dybcio > --- > Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt | 1 + > drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 1 +

Re: [PATCH] ACPI / APEI: Add is_ghes_type() to identify GHES sources

2021-01-25 Thread Terry Bowman
On 1/25/21 11:14 AM, Borislav Petkov wrote: On Mon, Jan 25, 2021 at 05:41:04PM +0100, Rafael J. Wysocki wrote: On Fri, Jan 22, 2021 at 7:05 PM Terry Bowman wrote: From: Yazen Ghannam Refactor duplicated GHES identity logic into is_ghes_type(). Signed-off-by: Yazen Ghannam Reviewed-by: Robert

Re: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver()

2021-01-25 Thread Saravana Kannan
On Mon, Jan 25, 2021 at 11:49 AM Michael Walle wrote: > > Am 2021-01-21 12:01, schrieb Geert Uytterhoeven: > > Hi Saravana, > > > > On Thu, Jan 21, 2021 at 1:05 AM Saravana Kannan > > wrote: > >> On Wed, Jan 20, 2021 at 3:53 PM Michael Walle > >> wrote: > >> > Am 2021-01-20 20:47, schrieb Sarava

Re: [PATCH] pinctrl: qcom: spmi-mpp: Add PM8019 compatible

2021-01-25 Thread Rob Herring
On Fri, 15 Jan 2021 18:11:14 +0100, Konrad Dybcio wrote: > PM8019 provides 6 MPPs. Add a compatible to support them. > > Signed-off-by: Konrad Dybcio > --- > Documentation/devicetree/bindings/pinctrl/qcom,pmic-mpp.txt | 1 + > drivers/pinctrl/qcom/pinctrl-spmi-mpp.c | 1 + >

Re: [PATCH v2 00/20] objtool: vmlinux.o and CLANG LTO support

2021-01-25 Thread Sami Tolvanen
On Fri, Jan 22, 2021 at 6:26 PM Josh Poimboeuf wrote: > > On Fri, Jan 22, 2021 at 05:32:43PM -0800, Nick Desaulniers wrote: > > > In this specific case, find_func_by_offset returns NULL for > > > .text..L.cfi.jumptable.43 at addend 0x8, because Clang doesn't emit > > > jump table symbols for stati

[PATCH 15/32] afs: Move key to afs_read struct

2021-01-25 Thread David Howells
Stash the key used to authenticate read operations in the afs_read struct. This will be necessary to reissue the operation against the server if a read from the cache fails in upcoming cache changes. Signed-off-by: David Howells --- fs/afs/dir.c |3 ++- fs/afs/file.c | 16 +++

Re: [PATCH] kfence: fix implicit function declaration

2021-01-25 Thread Andrew Morton
On Fri, 4 Dec 2020 13:38:25 +0100 Marco Elver wrote: > On Fri, Dec 04, 2020 at 01:18PM +0100, Anders Roxell wrote: > > When building kfence the following error shows up: > > > > In file included from mm/kfence/report.c:13: > > arch/arm64/include/asm/kfence.h: In function ‘kfence_protect_page’: >

[PATCH 01/32] iov_iter: Add ITER_XARRAY

2021-01-25 Thread David Howells
Add an iterator, ITER_XARRAY, that walks through a set of pages attached to an xarray, starting at a given page and offset and walking for the specified amount of bytes. The iterator supports transparent huge pages. The caller must guarantee that the pages are all present and they must be locked

[PATCH 13/32] afs: Pass page into dirty region helpers to provide THP size

2021-01-25 Thread David Howells
Pass a pointer to the page being accessed into the dirty region helpers so that the size of the page can be determined in case it's a transparent huge page. This also required the page to be passed into the afs_page_dirty trace point - so there's no need to specifically pass in the index or privat

Re: [PATCH v4 12/21] dt-bindings: rtc: sun6i: Add H616 compatible string

2021-01-25 Thread Alexandre Belloni
Hello Andre, On 25/01/2021 15:18:02+, Andre Przywara wrote: > Add the obvious compatible name to the existing RTC binding, and pair > it with the existing H6 fallback compatible string, as the devices are > compatible. > > Signed-off-by: Andre Przywara > Acked-by: Rob Herring > --- > .../d

Re: Linux 5.11-rc5

2021-01-25 Thread Mike Rapoport
On Mon, Jan 25, 2021 at 12:49:39PM -0800, Linus Torvalds wrote: > On Mon, Jan 25, 2021 at 12:35 PM Chris Wilson > wrote: > > > > Quoting Linus Torvalds (2021-01-25 01:06:40) > > > Mike Rapoport (3): > > ... > > > mm: fix initialization of struct page for holes in memory layout > > > > We ha

[PATCH 12/32] afs: Disable use of the fscache I/O routines

2021-01-25 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 | 199 +++

[PATCH v2 00/10] fsdax: introduce fs query to support reflink

2021-01-25 Thread Shiyang Ruan
This patchset is aimed to support shared pages tracking for fsdax. Change from V1: - Add the old memory-failure handler back for rolling back - Add callback in MD's ->rmap() to support multiple mapping of dm device - Add judgement for CONFIG_SYSFS - Add pfn_valid() judgement in hwpoison_fi

[PATCH v5] x86/mce: Avoid infinite loop for copy from user recovery

2021-01-25 Thread Luck, Tony
On Thu, Jan 21, 2021 at 01:09:59PM -0800, Luck, Tony wrote: > On Wed, Jan 20, 2021 at 01:18:12PM +0100, Borislav Petkov wrote: > But, on a whim, I changed the type of mce_count from "int" to "atomic_t" and > fixeed up the increment & clear to use atomic_inc_return() and atomic_set(). > See updated

[PATCH v2 01/10] pagemap: Introduce ->memory_failure()

2021-01-25 Thread Shiyang Ruan
When memory-failure occurs, we call this function which is implemented by each kind of devices. For the fsdax case, pmem device driver implements it. Pmem device driver will find out the block device where the error page locates in, and try to get the filesystem on this block device. And finally

[PATCH v2 04/10] mm, fsdax: Refactor memory-failure handler for dax mapping

2021-01-25 Thread Shiyang Ruan
The current memory_failure_dev_pagemap() can only handle single-mapped dax page for fsdax mode. The dax page could be mapped by multiple files and offsets if we let reflink feature & fsdax mode work together. So, we refactor current implementation to support handle memory failure on each file and

[PATCH v2 05/10] mm, pmem: Implement ->memory_failure() in pmem driver

2021-01-25 Thread Shiyang Ruan
Call the ->memory_failure() which is implemented by pmem driver, in order to finally notify filesystem to handle the corrupted data. The handler which collects and kills processes are moved into mf_dax_mapping_kill_procs(), which will be called by filesystem. Keep the old handler in order to roll

[PATCH v2 08/10] md: Implement ->corrupted_range()

2021-01-25 Thread Shiyang Ruan
With the support of ->rmap(), it is possible to obtain the superblock on a mapped device. If a pmem device is used as one target of mapped device, we cannot obtain its superblock directly. With the help of SYSFS, the mapped device can be found on the target devices. So, we iterate the bdev->bd_h

Re: [PATCHv3 1/6] firmware: stratix10-svc: add COMMAND_AUTHENTICATE_BITSTREAM flag

2021-01-25 Thread Tom Rix
On 1/25/21 12:56 PM, richard.g...@linux.intel.com wrote: > From: Richard Gong > > Add COMMAND_AUTHENTICATE_BITSTREAM command flag for new added bitstream > authentication feature. Authenticating a bitstream is to make sure a signed > bitstream has the valid signatures. > > Except for the actual

[PATCH v2 09/10] xfs: Implement ->corrupted_range() for XFS

2021-01-25 Thread Shiyang Ruan
This function is used to handle errors which may cause data lost in filesystem. Such as memory failure in fsdax mode. In XFS, it requires "rmapbt" feature in order to query for files or metadata which associated to the corrupted data. Then we could call fs recover functions to try to repair the

[PATCH v2 10/10] fs/dax: Remove useless functions

2021-01-25 Thread Shiyang Ruan
Since owner tarcking is triggerred by pmem device, these functions are useless. So remove it. Signed-off-by: Shiyang Ruan --- fs/dax.c | 46 -- 1 file changed, 46 deletions(-) diff --git a/fs/dax.c b/fs/dax.c index c64c3a0e76a6..e20a5df03eec 100644 -

[PATCH v2 06/10] pmem: Implement ->corrupted_range() for pmem driver

2021-01-25 Thread Shiyang Ruan
Obtain the superblock of a pmem disk, and call filesystem's ->corrupted_range() to handle the corrupted data. Signed-off-by: Shiyang Ruan --- block/genhd.c | 6 ++ drivers/nvdimm/pmem.c | 24 include/linux/genhd.h | 1 + 3 files changed, 31 insertions(+) d

[PATCH v2 03/10] fs: Introduce ->corrupted_range() for superblock

2021-01-25 Thread Shiyang Ruan
Memory failure occurs in fsdax mode will finally be handled in filesystem. We introduce this interface to find out files or metadata affected by the corrupted range, and try to recover the corrupted data if possiable. Signed-off-by: Shiyang Ruan --- include/linux/fs.h | 2 ++ 1 file changed, 2

[PATCH v2 07/10] dm: Introduce ->rmap() to find bdev offset

2021-01-25 Thread Shiyang Ruan
Pmem device could be a target of mapped device. In order to obtain superblock on the mapped device, we introduce this to translate offset from target device to md device. Currently, we implement it on linear target, which is easy to do the translation. Other targets will be supported in the futu

[PATCH v2 02/10] blk: Introduce ->corrupted_range() for block device

2021-01-25 Thread Shiyang Ruan
In fsdax mode, the memory failure happens on block device. So, it is needed to introduce an interface for block devices. Each kind of block device can handle the memory failure in ther own ways. Signed-off-by: Shiyang Ruan --- include/linux/blkdev.h | 2 ++ 1 file changed, 2 insertions(+) dif

[PATCH 05/32] netfs: Make a netfs helper module

2021-01-25 Thread David Howells
Make a netfs helper module to manage read request segmentation, caching support and transparent huge page support on behalf of a network filesystem. Signed-off-by: David Howells --- fs/netfs/Kconfig |8 1 file changed, 8 insertions(+) create mode 100644 fs/netfs/Kconfig diff --gi

[PATCH 00/32] Network fs helper library & fscache kiocb API [ver #2]

2021-01-25 Thread David Howells
Here's a set of patches to do two things: (1) Add a helper library to handle the new VM readahead interface. This is intended to be used unconditionally by the filesystem (whether or not caching is enabled) and provides a common framework for doing caching, transparent huge page

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

2021-01-25 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 c

Re: md_raid: mdX_raid6 looping after sync_action "check" to "idle" transition

2021-01-25 Thread Donald Buczek
On 25.01.21 09:54, Donald Buczek wrote: Dear Guoqing, a colleague of mine was able to produce the issue inside a vm and were able to find a procedure to run the vm into the issue within minutes (not unreliably after hours on a physical system as before). This of course helped to pinpoint t

[PATCH 03/32] mm: Implement readahead_control pageset expansion

2021-01-25 Thread David Howells
Provide a function, readahead_expand(), that expands the set of pages specified by a readahead_control object to encompass a revised area with a proposed size and length. The proposed area must include all of the old area and may be expanded yet more by this function so that the edges align on (tr

[GIT PULL] Crypto Fixes for 5.11

2021-01-25 Thread Herbert Xu
Hi Linus: This push fixes a regression in the cesa driver. The following changes since commit 382811940303f7cd01d0f3dcdf432dfd89c5a98e: crypto: omap-sham - Fix link error without crypto-engine (2021-01-08 15:37:55 +1100) are available in the Git repository at: git://git.kernel.org/pub/scm

Re: [PATCH] mm/filemap: Adding missing mem_cgroup_uncharge() to __add_to_page_cache_locked()

2021-01-25 Thread Andrew Morton
On Mon, 25 Jan 2021 09:12:56 -0500 Waiman Long wrote: > Yes, this patch should go to stable. I think the stable tree maintainers > will automatically pick up patches with the "Fixes" tag. That is why I > don't explicitly put a "cc:stable" line in the patch. No. Both the Fixes: and the cc:stab

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

2021-01-25 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 a/include/linux/pagemap.

Re: [PATCH] mm/filemap: Adding missing mem_cgroup_uncharge() to __add_to_page_cache_locked()

2021-01-25 Thread Waiman Long
On 1/25/21 6:11 PM, Andrew Morton wrote: On Mon, 25 Jan 2021 09:12:56 -0500 Waiman Long wrote: Yes, this patch should go to stable. I think the stable tree maintainers will automatically pick up patches with the "Fixes" tag. That is why I don't explicitly put a "cc:stable" line in the patch.

[PATCH] net: sysctl: remove redundant #ifdef CONFIG_NET

2021-01-25 Thread Masahiro Yamada
CONFIG_NET is a bool option, and this file is compiled only when CONFIG_NET=y. Remove #ifdef CONFIG_NET, which we know it is always met. Signed-off-by: Masahiro Yamada --- net/core/sysctl_net_core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/core/sysctl_net_core.c b/net/core/sysc

Re: [RFC PATCH v2] uacce: Add uacce_ctrl misc device

2021-01-25 Thread Jason Gunthorpe
On Mon, Jan 25, 2021 at 10:21:14PM +, Song Bao Hua (Barry Song) wrote: > mlock, while certainly be able to prevent swapping out, it won't > be able to stop page moving due to: > * memory compaction in alloc_pages() > * making huge pages > * numa balance > * memory compaction in CMA Enabling th

Re: [PATCH v7 1/2] dt-bindings: input: cros-ec-keyb: Add a new property

2021-01-25 Thread Rob Herring
On Fri, 15 Jan 2021 12:24:29 -0800, Philip Chen wrote: > Add a new property `function-row-physmap` to the > device tree for the custom keyboard top row design. > > The property describes the rows/columns of the top row keys > from left to right. > > Signed-off-by: Philip Chen > --- > > Changes

[PATCH 4/4] net: l3mdev: use obj-$(CONFIG_NET_L3_MASTER_DEV) form in net/Makefile

2021-01-25 Thread Masahiro Yamada
CONFIG_NET_L3_MASTER_DEV is a bool option. Change the ifeq conditional to the standard obj-$(CONFIG_NET_L3_MASTER_DEV) form. Use obj-y in net/l3mdev/Makefile because Kbuild visits this Makefile only when CONFIG_NET_L3_MASTER_DEV=y. Signed-off-by: Masahiro Yamada --- net/Makefile| 4 +--

[PATCH 1/4] net: move CONFIG_NET guard to top Makefile

2021-01-25 Thread Masahiro Yamada
When CONFIG_NET is disabled, nothing under the net/ directory is compiled. Move the CONFIG_NET guard to the top Makefile so the net/ directory is entirely skipped. When Kbuild visits net/Makefile, CONFIG_NET is obvioulsy 'y' because CONFIG_NET is a bool option. Clean up net/Makefile. Signed-off-b

[PATCH 2/4] net: dcb: use obj-$(CONFIG_DCB) form in net/Makefile

2021-01-25 Thread Masahiro Yamada
CONFIG_DCB is a bool option. Change the ifeq conditional to the standard obj-$(CONFIG_DCB) form. Use obj-y in net/dcb/Makefile because Kbuild visits this Makefile only when CONFIG_DCB=y. Signed-off-by: Masahiro Yamada --- net/Makefile | 4 +--- net/dcb/Makefile | 2 +- 2 files changed, 2 i

[PATCH 3/4] net: switchdev: use obj-$(CONFIG_NET_SWITCHDEV) form in net/Makefile

2021-01-25 Thread Masahiro Yamada
CONFIG_NET_SWITCHDEV is a bool option. Change the ifeq conditional to the standard obj-$(CONFIG_NET_SWITCHDEV) form. Use obj-y in net/switchdev/Makefile because Kbuild visits this Makefile only when CONFIG_NET_SWITCHDEV=y. Signed-off-by: Masahiro Yamada --- net/Makefile | 4 +--- net

Re: (subset) [PATCH v2 1/2] rtc: tps65910: Support wakeup-source property

2021-01-25 Thread Alexandre Belloni
On Thu, 21 Jan 2021 00:16:02 +0300, Dmitry Osipenko wrote: > TPS65910 is a PMIC MFD device and RTC is one of its functions. The > wakeup-source DT property is specified for the parent MFD device and we > need to use this property for the RTC in order to allow to use RTC alarm > for waking up system

Re: [PATCH] mm/filemap: Remove redundant variable's assignment

2021-01-25 Thread Andrew Morton
On Mon, 25 Jan 2021 11:20:02 +0800 Baolin Wang wrote: > We've already set the variable 'i' 's initial value before using it, > thus remove redundant previous assignment of variable 'i'. > > ... > > --- a/mm/filemap.c > +++ b/mm/filemap.c > @@ -2472,7 +2472,6 @@ ssize_t generic_file_buffered_rea

[PATCH net-next 6/6] net: ipa: don't pass size to ipa_cmd_transfer_add()

2021-01-25 Thread Alex Elder
The only time we transfer data (rather than issuing a command) out of the AP->command TX endpoint is when we're clearing the hardware pipeline. All that's needed is a "small" data buffer, and its contents aren't even important. For convenience, we just transfer a command structure in this case (i

[PATCH net-next 4/6] net: ipa: signal when tag transfer completes

2021-01-25 Thread Alex Elder
There are times, such as when the modem crashes, when we issue commands to clear the IPA hardware pipeline. These commands include a data transfer command that delivers a small packet directly to the default (AP<-LAN RX) endpoint. The places that do this wait for the transactions that contain the

[PATCH net-next 3/6] net: ipa: drop packet if status has valid tag

2021-01-25 Thread Alex Elder
Introduce ipa_endpoint_status_tag(), which returns true if received status indicates its tag field is valid. The endpoint parameter is not yet used. Call this from ipa_status_drop_packet(), and drop the packet if the status indicates the tag was valid. Pass the endpoint pointer to ipa_status_dro

[PATCH net-next 5/6] net: ipa: don't pass tag value to ipa_cmd_ip_tag_status_add()

2021-01-25 Thread Alex Elder
We only send a tagged packet from the AP->command TX endpoint when we're clearing the hardware pipeline. And when we receive the tagged packet we don't care what the actual tag value is. Stop passing a tag value to ipa_cmd_ip_tag_status_add(), and just encode 0 as the tag sent. Fix the function

[PATCH net-next 2/6] net: ipa: minor update to handling of packet with status

2021-01-25 Thread Alex Elder
Rearrange some comments and assignments made when handling a packet that is received with status, aiming to improve understandability. Use DIV_ROUND_CLOSEST() to get a better per-packet true size estimate. Signed-off-by: Alex Elder --- drivers/net/ipa/ipa_endpoint.c | 30 +--

Re: [External] Re: [PATCH v13 05/12] mm: hugetlb: allocate the vmemmap pages associated with each HugeTLB page

2021-01-25 Thread Mike Kravetz
On 1/25/21 1:34 AM, Muchun Song wrote: > On Mon, Jan 25, 2021 at 5:15 PM David Hildenbrand wrote: >> >> On 25.01.21 08:41, Muchun Song wrote: >>> On Mon, Jan 25, 2021 at 2:40 PM Muchun Song >>> wrote: On Mon, Jan 25, 2021 at 8:05 AM David Rientjes wrote: > > > On Sun, 17 J

Re: [PATCH V2 06/11] dts: bindings: Document device tree bindings for ETE

2021-01-25 Thread Suzuki K Poulose
On 1/25/21 10:20 PM, Suzuki K Poulose wrote: Hi Rob On 1/25/21 7:22 PM, Rob Herring wrote: On Wed, Jan 13, 2021 at 09:48:13AM +0530, Anshuman Khandual wrote: From: Suzuki K Poulose Document the device tree bindings for Embedded Trace Extensions. ETE can be connected to legacy coresight compo

Re: [PATCH v3 0/2] rtc: pcf2127: proper initialization after power loss

2021-01-25 Thread Alexandre Belloni
On Mon, 18 Jan 2021 09:57:50 +0100, Philipp Rosenberger wrote: > If the PCF2127/2129 loses power it needs some initialization to work > correctly. A bootloader/firmware might do this. If not we should do this > in the driver. > > Changes for v3: > - drop the test if clearing PORO was successful >

Re: [PATCH bpf-next v2] samples/bpf: Set flag __SANE_USERSPACE_TYPES__ for MIPS to fix build warnings

2021-01-25 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf-next.git (refs/heads/master): On Mon, 25 Jan 2021 13:05:46 +0800 you wrote: > There exists many build warnings when make M=samples/bpf on the Loongson > platform, this issue is MIPS related, x86 compiles just fine. > > Here are some warnings: > > CC s

Re: [PATCH v1 5/5] driver core: Set fw_devlink=on by default

2021-01-25 Thread Saravana Kannan
On Thu, Jan 21, 2021 at 8:04 AM Geert Uytterhoeven wrote: > > Hi Saravana, > > On Wed, Jan 20, 2021 at 6:23 PM Saravana Kannan wrote: > > On Wed, Jan 20, 2021 at 6:27 AM Geert Uytterhoeven > > wrote: > > > On Wed, Jan 20, 2021 at 10:40 AM Geert Uytterhoeven > > > wrote: > > > > On Tue, Jan 19,

Re: [PATCH RFC v1 0/3] Introduce vfio-pci-core subsystem

2021-01-25 Thread Alex Williamson
On Mon, 25 Jan 2021 14:04:40 -0400 Jason Gunthorpe wrote: > On Mon, Jan 25, 2021 at 05:20:35PM +0100, Cornelia Huck wrote: > > > I think you cut out an important part of Alex' comment, so let me > > repost it here: > > Yes, I've already respnded to this. Not really. For example, how can str

RE: [RFC PATCH v2] uacce: Add uacce_ctrl misc device

2021-01-25 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: owner-linux...@kvack.org [mailto:owner-linux...@kvack.org] On Behalf Of > Jason Gunthorpe > Sent: Tuesday, January 26, 2021 12:16 PM > To: Song Bao Hua (Barry Song) > Cc: Wangzhou (B) ; Greg Kroah-Hartman > ; Arnd Bergmann ; Zhangfei Gao > ; linux-accelerat.

Re: [PATCH] af_unix: Allow Unix sockets to raise SIGURG

2021-01-25 Thread Jakub Kicinski
On Fri, 22 Jan 2021 15:06:37 + Matthew Wilcox (Oracle) wrote: > From: Rao Shoaib > > TCP sockets allow SIGURG to be sent to the process holding the other > end of the socket. Extend Unix sockets to have the same ability. > > The API is the same in that the sender uses sendmsg() with MSG_OOB

Re: [PATCH 1/8] dt-binding: watchdog: add more Rockchip compatibles to snps,dw-wdt.yaml

2021-01-25 Thread Heiko Stuebner
Hi Guenter, Am Samstag, 23. Januar 2021, 18:34:01 CET schrieb Guenter Roeck: > On Fri, Dec 18, 2020 at 01:05:27PM +0100, Johan Jonker wrote: > > The watchdog compatible strings are suppose to be SoC orientated. > > In the more recently added Rockchip SoC dtsi files only > > the fallback string "sn

Re: [PATCH v2 29/34] Intel tsens i2c slave driver.

2021-01-25 Thread mark gross
On Mon, Jan 11, 2021 at 11:15:06PM -0800, Randy Dunlap wrote: > On 1/8/21 1:25 PM, mgr...@linux.intel.com wrote: > > diff --git a/drivers/misc/intel_tsens/Kconfig > > b/drivers/misc/intel_tsens/Kconfig > > index 8b263fdd80c3..c2138339bd89 100644 > > --- a/drivers/misc/intel_tsens/Kconfig > > +++ b

Re: [RFC PATCH 6/8] preempt/dynamic: Provide preempt_schedule[_notrace]() static calls

2021-01-25 Thread Josh Poimboeuf
On Fri, Jan 22, 2021 at 05:52:26PM +0100, Peter Zijlstra wrote: > On Mon, Jan 18, 2021 at 03:12:21PM +0100, Frederic Weisbecker wrote: > > +#ifdef CONFIG_PREEMPT_DYNAMIC > > +DEFINE_STATIC_CALL(preempt_schedule, __preempt_schedule_func()); > > +EXPORT_STATIC_CALL(preempt_schedule); > > +#endif > >

Re: [PATCH RFC] gcc-plugins: Handle GCC version mismatch for OOT modules

2021-01-25 Thread Josh Poimboeuf
On Tue, Jan 26, 2021 at 06:16:01AM +0900, Masahiro Yamada wrote: > On Tue, Jan 26, 2021 at 5:42 AM Josh Poimboeuf wrote: > > > > When building out-of-tree kernel modules, the build system doesn't > > require the GCC version to match the version used to build the original > > kernel. That's probab

Re: [PATCH BUGFIX/IMPROVEMENT 0/6] block, bfq: second batch of fixes and improvements

2021-01-25 Thread Jens Axboe
On 1/25/21 12:02 PM, Paolo Valente wrote: > Hi, > here's batch 2/3. > > Thanks, > Paolo > > Paolo Valente (6): > block, bfq: replace mechanism for evaluating I/O intensity > block, bfq: re-evaluate convenience of I/O plugging on rq arrivals > block, bfq: fix switch back from soft-rt weitgh-

Re: [PATCH v1] drm/panel: simple: add SGD GKTW70SDAD1SD

2021-01-25 Thread Oliver Graute
On 16/01/21, Fabio Estevam wrote: > On Sat, Jan 16, 2021 at 9:49 AM Oliver Graute wrote: > > > > power-supply = <®_touch_3v3> is not correct, as the reg_touch_3v3 > > > does not power the LCD. > > > > yes, but how is the LCD correctly powered then? > > J4 is powered by VCC_5V and VCC_3V#. > > >

Re: [PATCH v2 08/14] dt-bindings: display: bridge: Add i.MX8qxp pixel link to DPI binding

2021-01-25 Thread Rob Herring
On Thu, Jan 14, 2021 at 05:22:06PM +0800, Liu Ying wrote: > This patch adds bindings for i.MX8qxp pixel link to DPI(PXL2DPI). > > Signed-off-by: Liu Ying > --- > v1->v2: > * Use graph schema. (Laurent) > > .../display/bridge/fsl,imx8qxp-pxl2dpi.yaml| 105 > + > 1 fi

Re: [PATCH 3/3] iio: proximity: Add a ChromeOS EC MKBP proximity driver

2021-01-25 Thread Stephen Boyd
Quoting Gwendal Grignou (2021-01-25 14:28:46) > On Mon, Jan 25, 2021 at 10:52 AM Stephen Boyd wrote: > > > > Quoting Gwendal Grignou (2021-01-24 13:41:44) > > > On Sun, Jan 24, 2021 at 9:38 AM Jonathan Cameron wrote: > > > > > > > > On Fri, 22 Jan 2021 14:54:43 -0800 > > > > Stephen Boyd wrote:

Re: [v4 PATCH 07/11] mm: vmscan: add per memcg shrinker nr_deferred

2021-01-25 Thread Yang Shi
On Mon, Jan 25, 2021 at 1:31 AM Kirill Tkhai wrote: > > On 22.01.2021 02:06, Yang Shi wrote: > > Currently the number of deferred objects are per shrinker, but some slabs, > > for example, > > vfs inode/dentry cache are per memcg, this would result in poor isolation > > among memcgs. > > > > The

Re: [PATCH 1/4] cxgb4: remove redundant NULL check

2021-01-25 Thread Jakub Kicinski
On Mon, 25 Jan 2021 17:47:22 +0800 Yang Li wrote: > Fix below warnings reported by coccicheck: > ./drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c:327:3-9: WARNING: NULL > check before some freeing functions is not needed. > > Reported-by: Abaci Robot > Signed-off-by: Yang Li These 4 patches chan

Re: [PATCH v2 04/14] dt-bindings: display: bridge: Add i.MX8qm/qxp pixel combiner binding

2021-01-25 Thread Rob Herring
On Thu, 14 Jan 2021 17:22:02 +0800, Liu Ying wrote: > This patch adds bindings for i.MX8qm/qxp pixel combiner. > > Signed-off-by: Liu Ying > --- > v1->v2: > * Use graph schema. (Laurent) > * Use enum instead of oneOf + const for the reg property of pixel combiner > channels. (Rob) > > .../dis

Re: [PATCH] usb: host: ehci-tegra: fix Kconfig depencies

2021-01-25 Thread Arnd Bergmann
On Mon, Jan 25, 2021 at 5:22 PM Alan Stern wrote: > > On Mon, Jan 25, 2021 at 12:32:30PM +0100, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > Selecting the chipidea driver from the old Kconfig symbol > > can lead to a missing dependency: > > Arnd: > > I found this whole patch a little conf

Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk

2021-01-25 Thread Helge Deller
On 1/25/21 10:08 PM, John David Anglin wrote: > I would suggest the following for this hunk: > > +    ldil    L%intr_restore, %r2 > +    BL    preempt_schedule_irq > +    ldo R%intr_restore(%r2), %r2 > >     ldil    L%intr_restore, %r1 >     b,l    preempt_schedule_irq,%r2 >     ldo R%intr_

Re: WARNING in pskb_expand_head

2021-01-25 Thread Jakub Kicinski
CC Willem just in case On Sun, 24 Jan 2021 12:51:20 -0800 syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:7d68e382 bpf: Permit size-0 datasec > git tree: bpf-next > console output: https://syzkaller.appspot.com/x/log.txt?x=132567e750 > kernel config:

[PATCH] drm/msm/kms: Make a lock_class_key for each crtc mutex

2021-01-25 Thread Stephen Boyd
Lockdep complains about an AA deadlock when rebooting the device. WARNING: possible recursive locking detected 5.4.91 #1 Not tainted reboot/5213 is trying to acquire lock: ff80d13391b0 (&kms->commit_lock[

Re: [PATCH v4 2/2] dt-bindings: pinctrl: Add bindings for Awinic AW9523/AW9523B

2021-01-25 Thread Rob Herring
On Wed, 13 Jan 2021 19:40:30 +0100, AngeloGioacchino Del Regno wrote: > Add bindings for the Awinic AW9523/AW9523B I2C GPIO Expander driver. > > Signed-off-by: AngeloGioacchino Del Regno > > --- > .../pinctrl/awinic,aw9523-pinctrl.yaml| 139 ++ > 1 file changed, 139 inse

Re: [PATCH 1/2] arm64: boot: dts: add new dts for hellcat & petra

2021-01-25 Thread Daniel Walker (danielwa)
On Mon, Jan 25, 2021 at 08:52:01AM +0100, Michal Simek wrote: > > > >> > >> Long time ago we said that we are not going to push any PL related > >> configurations. It means all below can't be merged. > >> And there are also coding style issues. > > > > You'll need to explain this more. It's likel

Re: [PATCH 06/24] kvm: x86/mmu: Skip no-op changes in TDP MMU functions

2021-01-25 Thread Ben Gardon
On Wed, Jan 20, 2021 at 11:51 AM Sean Christopherson wrote: > > On Tue, Jan 12, 2021, Ben Gardon wrote: > > Skip setting SPTEs if no change is expected. > > > > Reviewed-by: Peter Feiner > > > Nit on all of these, can you remove the extra newline between the Reviewed-by > and SOB? Yeah, that lin

Re: Thoughts on sharing KVM tracepoints [was:Re: [PATCH 2/2] KVM: nVMX: trace nested vm entry]

2021-01-25 Thread Sean Christopherson
On Mon, Jan 25, 2021, Maxim Levitsky wrote: > On Thu, 2021-01-21 at 14:27 -0800, Sean Christopherson wrote: > > I still don't see why VMX can't share this with SVM. "npt' can easily be > > "tdp", > > differentiating between VMCB and VMCS can be down with ISA, and VMX can > > give 0 > > for int_c

Re: [PATCH] arm64: dts: rockchip: add device_type property to rk3399 pcie node

2021-01-25 Thread Heiko Stuebner
Am Freitag, 22. Januar 2021, 19:05:59 CET schrieb Johan Jonker: > A test with the command below gives for example this error: > /arch/arm64/boot/dts/rockchip/rk3399-rock960.dt.yaml: > pcie@f800: 'device_type' is a required property > > Fix this by adding a device_type property to the rk3399 pc

Re: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver()

2021-01-25 Thread Michael Walle
Am 2021-01-25 19:58, schrieb Saravana Kannan: On Mon, Jan 25, 2021 at 8:50 AM Lorenzo Pieralisi wrote: On Wed, Jan 20, 2021 at 08:28:36PM +0100, Michael Walle wrote: > [RESEND, fat-fingered the buttons of my mail client and converted > all CCs to BCCs :(] > > Am 2021-01-20 20:02, schrieb Sarav

Re: [PATCH 5.4 00/86] 5.4.93-rc1 review

2021-01-25 Thread Daniel Díaz
Hello! On 1/25/21 12:38 PM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.4.93 release. There are 86 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should

[PATCH v10 14/18] arm64: kexec: use ld script for relocation function

2021-01-25 Thread Pavel Tatashin
Currently, relocation code declares start and end variables which are used to compute it size. The better way to do this is to use ld script incited, and put relocation function in its own section. Soon, relocation function will share the same page with EL2 vectors. So, proper marking is needed.

Re: (subset) [PATCH v4 0/4] arm64: rockchip: Fix PCIe ep-gpios requirement and Add Nanopi M4B

2021-01-25 Thread Heiko Stuebner
On Fri, 22 Jan 2021 00:23:17 +0800, Chen-Yu Tsai wrote: > This is v4 of my Nanopi M4B series. > > Changes since v3 include: > > - Directly return dev_err_probe() instead of having a separate return > statement > > [...] Applied, thanks! [3/4] arm64: dts: rockchip: nanopi4: Move ep-gpios

Re: (subset) [PATCH 00/20] Rid W=1 warnings from Clock

2021-01-25 Thread Heiko Stuebner
On Wed, 20 Jan 2021 09:30:20 +, Lee Jones wrote: > This set is part of a larger effort attempting to clean-up W=1 > kernel builds, which are currently overwhelmingly riddled with > niggly little warnings. > > We should have these nailed in ~2 patchsets. > > Lee Jones (20): > clk: rockchip:

Re: [PATCH v2] arm64: dts: rockchip: cleanup cpu_thermal node of rk3399-rock960.dts

2021-01-25 Thread Heiko Stuebner
On Mon, 18 Jan 2021 19:00:54 +0100, Johan Jonker wrote: > The cpu_thermal node in the rk3399-rock960.dts file does not > reference &cpu_thermal directly to add the board-specific parts, > but also repeats all the SoC default properties. > Clean the whole thing up and fix alignment. > Place new node

Re: (subset) [PATCH 1/5] ARM: dts: rockchip: assign a fixed index to mmc devices on rk322x boards

2021-01-25 Thread Heiko Stuebner
On Mon, 18 Jan 2021 16:52:38 +0100, Johan Jonker wrote: > Recently introduced async probe on mmc devices can shuffle block IDs. > Pin them to fixed values to ease booting in environments where UUIDs are > not practical. Use newly introduced aliases for mmcblk devices from [1]. > The sort order is b

Re: Issue in dmesg time with lockless ring buffer

2021-01-25 Thread J. Avila
Hello, This dmesg uses /dev/kmsg; we've verified that we don't see this long dmesg time when reading from syslog (via dmesg -S). We've also tried testing this with logging daemons disabled as well as within initrd - both result in similar behavior. If it's relevant, this was done on a toybox she

<    5   6   7   8   9   10   11   12   >