[PATCH 1/2] Add a manpage for watch_queue(7)

2020-08-24 Thread David Howells
Add a manual page for the notifications/watch_queue facility. Signed-off-by: David Howells --- man7/watch_queue.7 | 304 1 file changed, 304 insertions(+) create mode 100644 man7/watch_queue.7 diff --git a/man7/watch_queue.7 b/man7/watch_q

[PATCH 2/2] Modify the pipe(2) manpage for notification queues

2020-08-24 Thread David Howells
Modify the pipe(2) manual page to cover support for notification queues Signed-off-by: David Howells --- man2/pipe.2 | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/man2/pipe.2 b/man2/pipe.2 index 117f8950c..c50b38530 100644 --- a/man2/pipe.2 +++ b/man2/pipe.2 @@

[PATCH v2 1/1] mm, oom_adj: don't loop through tasks in __set_oom_adj when not necessary

2020-08-24 Thread Suren Baghdasaryan
Currently __set_oom_adj loops through all processes in the system to keep oom_score_adj and oom_score_adj_min in sync between processes sharing their mm. This is done for any task with more that one mm_users, which includes processes with multiple threads (sharing mm and signals). However for such

Re: [PATCH v3] btrfs: block-group: Fix free-space bitmap threshould

2020-08-24 Thread David Sterba
On Fri, Aug 21, 2020 at 11:54:44AM -0300, Marcos Paulo de Souza wrote: > From: Marcos Paulo de Souza > > [BUG] > After commit 9afc66498a0b ("btrfs: block-group: refactor how we read one > block group item"), cache->length is being assigned after calling > btrfs_create_block_group_cache. This caus

Re: [PATCH 1/2] Add a manpage for watch_queue(7)

2020-08-24 Thread David Howells
Ben Boeckel wrote: > > +In the case of message loss, > > +.BR read (2) > > +will fabricate a loss message and pass that to userspace immediately after > > the > > +point at which the loss occurred. > > If multiple messages are dropped in a row, is there one loss message per > loss message or pe

Re: [RFC PATCH 2/3] sched: membarrier: cover kthread_use_mm (v2)

2020-08-24 Thread Mathieu Desnoyers
- On Aug 16, 2020, at 11:29 AM, Boqun Feng boqun.f...@gmail.com wrote: > On Fri, Aug 14, 2020 at 12:43:57PM -0400, Mathieu Desnoyers wrote: >> Add comments and memory barrier to kthread_use_mm and kthread_unuse_mm >> to allow the effect of membarrier(2) to apply to kthreads accessing >> user-s

Re: [PATCH v1] brcmfmac: increase F2 watermark for BCM4329

2020-08-24 Thread Dmitry Osipenko
24.08.2020 11:28, Arend Van Spriel пишет: > > > On 8/23/2020 4:20 PM, Dmitry Osipenko wrote: >> This patch fixes SDHCI CRC errors during of RX throughput testing on >> BCM4329 chip if SDIO BUS is clocked above 25MHz. In particular the >> checksum problem is observed on NVIDIA Tegra20 SoCs. The go

[PATCH 0/2] ARM: dts: sun8i: r40: Enable mali400 GPU

2020-08-24 Thread Jernej Skrabec
Following two patches enable Mali400 GPU on Allwinner R40 SoC. At this point I didn't add table for frequency switching because it would require far more testing and defaults work stable and reasonably well. Please take a look. Best regards, Jernej Jernej Skrabec (2): dt-bindings: gpu: mali-ut

Re: [PATCH 5.8 000/148] 5.8.4-rc1 review

2020-08-24 Thread Sasha Levin
On Mon, Aug 24, 2020 at 06:40:27AM -0700, Guenter Roeck wrote: On Mon, Aug 24, 2020 at 10:28:18AM +0200, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.8.4 release. There are 148 patches in this series, all will be posted as a response to this one. If anyone ha

Re: [PATCH] gpu: amd: Remove duplicate semicolons at the end of line

2020-08-24 Thread Alex Deucher
On Sat, Aug 22, 2020 at 5:02 AM Youling Tang wrote: > > Remove duplicate semicolons at the end of line. > > Signed-off-by: Youling Tang Applied. Thanks! Alex > --- > drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c | 2 +- > drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c | 2 +- >

[PATCH 3/9] iomap: Use kzalloc to allocate iomap_page

2020-08-24 Thread Matthew Wilcox (Oracle)
We can skip most of the initialisation, although spinlocks still need explicit initialisation as architectures may use a non-zero value to indicate unlocked. The comment is no longer useful as attach_page_private() handles the refcount now. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Chr

[PATCH 03/11] mm: Zero the head page, not the tail page

2020-08-24 Thread Matthew Wilcox (Oracle)
Pass the head page to zero_user_segment(), not the tail page, and adjust the byte offsets appropriately. Signed-off-by: Matthew Wilcox (Oracle) --- mm/shmem.c| 7 +++ mm/truncate.c | 7 +++ 2 files changed, 14 insertions(+) diff --git a/mm/shmem.c b/mm/shmem.c index 271548ca20f3..77

[PATCH 04/11] block: Add bio_for_each_thp_segment_all

2020-08-24 Thread Matthew Wilcox (Oracle)
Iterate once for each THP instead of once for each base page. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/bio.h | 13 + include/linux/bvec.h | 27 +++ 2 files changed, 40 insertions(+) diff --git a/include/linux/bio.h b/include/linux/bio.h index

[PATCH 06/11] iomap: Support THPs in invalidatepage

2020-08-24 Thread Matthew Wilcox (Oracle)
If we're punching a hole in a THP, we need to remove the per-page iomap data as the THP is about to be split and each page will need its own. This means that writepage can now come across a page with no iop allocated, so remove the assertions that there is already one, and just create one (with th

[PATCH 07/11] iomap: Support THPs in read paths

2020-08-24 Thread Matthew Wilcox (Oracle)
Use thp_size() instead of PAGE_SIZE, offset_in_thp() instead of offset_in_page() and bio_for_each_thp_segment_all(). Signed-off-by: Matthew Wilcox (Oracle) --- fs/iomap/buffered-io.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/fs/iomap/buffered-io.c

[PATCH 05/11] iomap: Support THPs in iomap_adjust_read_range

2020-08-24 Thread Matthew Wilcox (Oracle)
Pass the struct page instead of the iomap_page so we can determine the size of the page. Use offset_in_thp() instead of offset_in_page() and use thp_size() instead of PAGE_SIZE. Convert the arguments to be size_t instead of unsigned int, in case pages ever get larger than 2^31 bytes. Signed-off-

[PATCH 00/11] iomap/fs/block patches for 5.11

2020-08-24 Thread Matthew Wilcox (Oracle)
As promised earlier [1], here are the patches which I would like to merge into 5.11 to support THPs. They depend on that earlier series. If there's anything in here that you'd like to see pulled out and added to that earlier series, let me know. There are a couple of pieces in here which aren't e

Re: [PATCH v2] module: Harden STRICT_MODULE_RWX

2020-08-24 Thread Jessica Yu
+++ Ard Biesheuvel [22/08/20 15:47 +0200]: (+ Masahiro) On Fri, 21 Aug 2020 at 14:30, Will Deacon wrote: On Fri, Aug 21, 2020 at 02:27:05PM +0200, Ard Biesheuvel wrote: > On Fri, 21 Aug 2020 at 14:20, Will Deacon wrote: > > > > On Thu, Aug 13, 2020 at 03:07:13PM +0200, Ard Biesheuvel wrote:

[PATCH 10/11] iomap: Inline data shouldn't see THPs

2020-08-24 Thread Matthew Wilcox (Oracle)
Assert that we're not seeing THPs in functions that read/write inline data, rather than zeroing out the tail. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Christoph Hellwig --- fs/iomap/buffered-io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/iomap/buffered-io.c b/fs/iomap/

Re: Is: virtio_gpu_object_shmem_init issues? Was:Re: upstream boot error: general protection fault in swiotlb_map

2020-08-24 Thread Dmitry Vyukov
On Mon, Aug 24, 2020 at 5:07 PM Konrad Rzeszutek Wilk wrote: > > On Thu, Aug 06, 2020 at 03:46:23AM -0700, syzbot wrote: > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit:47ec5303 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. > > git tree: upstream > > con

[PATCH 11/11] iomap: Handle tail pages in iomap_page_mkwrite

2020-08-24 Thread Matthew Wilcox (Oracle)
iomap_page_mkwrite() can be called with a tail page. If we are, operate on the head page, since we're treating the entire thing as a single unit and the whole page is dirtied at the same time. Signed-off-by: Matthew Wilcox (Oracle) --- fs/iomap/buffered-io.c | 2 +- 1 file changed, 1 insertion(

[PATCH] staging: emxx_udc: Fix passing of NULL to dma_alloc_coherent()

2020-08-24 Thread Alex Dewar
In nbu2ss_eq_queue() memory is allocated with dma_alloc_coherent(), though, strangely, NULL is passed as the struct device* argument. Pass the UDC's device instead. Build-tested on x86 only. Fixes: 33aa8d45a4fe ("staging: emxx_udc: Add Emma Mobile USB Gadget driver") Signed-off-by: Alex Dewar --

Re: [PATCH] lib: pldmfw: delete duplicated words

2020-08-24 Thread Jacob Keller
On 8/22/2020 9:05 PM, Randy Dunlap wrote: > Drop the repeated word "header". > Thanks for fixing this! Reviewed-by: Jacob Keller > Signed-off-by: Randy Dunlap > Cc: Jacob Keller > Cc: "David S. Miller" > Cc: Jakub Kicinski > --- > lib/pldmfw/pldmfw.c |2 +- > 1 file changed, 1 inse

Re: [RFC] security: replace indirect calls with static calls

2020-08-24 Thread Brendan Jackman
On Fri, 21 Aug 2020 at 00:46, Casey Schaufler wrote: > > On 8/20/2020 9:47 AM, Brendan Jackman wrote: [...] > What does NOP really look like? The NOP is the same as a regular function call but the CALL instruction is replaced with a NOP instruction. The code that sets up the call parameters is un

[PATCH 7/9] iomap: Convert write_count to byte count

2020-08-24 Thread Matthew Wilcox (Oracle)
Instead of counting bio segments, count the number of bytes submitted. This insulates us from the block layer's definition of what a 'same page' is, which is not necessarily clear once THPs are involved. Signed-off-by: Matthew Wilcox (Oracle) --- fs/iomap/buffered-io.c | 11 ++- 1 file c

Re: [PATCH] x86/entry: Fix AC assertion

2020-08-24 Thread peterz
On Mon, Aug 24, 2020 at 03:22:06PM +0100, Andrew Cooper wrote: > On 24/08/2020 11:14, pet...@infradead.org wrote: > > The WARN added in commit 3c73b81a9164 ("x86/entry, selftests: Further > > improve user entry sanity checks") unconditionally triggers on my IVB > > machine because it does not suppo

Re: [PATCH stable-5.8.y backport 1/2] KVM: Pass MMU notifier range flags to kvm_unmap_hva_range()

2020-08-24 Thread Greg KH
On Mon, Aug 24, 2020 at 12:30:47PM +0100, Will Deacon wrote: > commit fdfe7cbd58806522e799e2a50a15aee7f2cbb7b6 upstream. > > The 'flags' field of 'struct mmu_notifier_range' is used to indicate > whether invalidate_range_{start,end}() are permitted to block. In the > case of kvm_mmu_notifier_inval

[PATCH 08/11] iomap: Change iomap_write_begin calling convention

2020-08-24 Thread Matthew Wilcox (Oracle)
Pass (up to) the remaining length of the extent to iomap_write_begin() and have it return the number of bytes that will fit in the page. That lets us copy more bytes per call to iomap_write_begin() if the page cache has already allocated a THP (and will in future allow us to pass a hint to the page

[PATCH 09/11] iomap: Support THPs in write paths

2020-08-24 Thread Matthew Wilcox (Oracle)
Use thp_size() instead of PAGE_SIZE and offset_in_thp() instead of offset_in_page(). Also simplify the logic in iomap_do_writepage() for determining end of file. Signed-off-by: Matthew Wilcox (Oracle) --- fs/iomap/buffered-io.c | 54 -- 1 file changed, 31

[PATCH 02/11] mm: Support THPs in zero_user_segments

2020-08-24 Thread Matthew Wilcox (Oracle)
We can only kmap() one subpage of a THP at a time, so loop over all relevant subpages, skipping ones which don't need to be zeroed. This is too large to inline when THPs are enabled and we actually need highmem, so put it in highmem.c. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/hi

[PATCH 1/9] iomap: Fix misplaced page flushing

2020-08-24 Thread Matthew Wilcox (Oracle)
If iomap_unshare_actor() unshares to an inline iomap, the page was not being flushed. block_write_end() and __iomap_write_end() already contain flushes, so adding it to iomap_write_end_inline() seems like the best place. That means we can remove it from iomap_write_actor(). Signed-off-by: Matthe

[PATCH 01/11] fs: Make page_mkwrite_check_truncate thp-aware

2020-08-24 Thread Matthew Wilcox (Oracle)
If the page is compound, check the last index in the page and return the appropriate size. Change the return type to ssize_t in case we ever support pages larger than 2GB. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap.h | 10 +- 1 file changed, 5 insertions(+), 5 dele

[PATCH 0/9] THP iomap patches for 5.10

2020-08-24 Thread Matthew Wilcox (Oracle)
These patches are carefully plucked from the THP series. I would like them to hit 5.10 to make the THP patchset merge easier. Some of these are just generic improvements that make sense on their own terms, but the overall intent is to support THPs in iomap. I'll send another patch series later t

Re: Is: virtio_gpu_object_shmem_init issues? Was:Re: upstream boot error: general protection fault in swiotlb_map

2020-08-24 Thread Christoph Hellwig
On Mon, Aug 24, 2020 at 11:06:51AM -0400, Konrad Rzeszutek Wilk wrote: > So it fails at > > 683 dev_WARN_ONCE(dev, 1, > > 684 "swiotlb addr %pad+%zu overflow (mask %llx, bus > limit %llx).\n", > 685

Re: [LKP] Re: [x86/mce] 1de08dccd3: will-it-scale.per_process_ops -14.1% regression

2020-08-24 Thread Borislav Petkov
On Fri, Aug 21, 2020 at 10:02:59AM +0800, Feng Tang wrote: > 1de08dccd383 x86/mce: Add a struct mce.kflags field > 9554bfe403bd x86/mce: Convert the CEC to use the MCE notifier > > And strange thing is after using gcc9 and debian10 rootfs, with same commits > the regression turns to a improvem

Re: [PATCH] ceph: add column 'mds' to show caps in more user friendly

2020-08-24 Thread Jeff Layton
On Mon, 2020-08-24 at 11:00 +0800, Yanhu Cao wrote: > In multi-mds, the 'caps' debugfs file will have duplicate ino, > add the 'mds' column to indicate which mds session the cap belongs to. > > Signed-off-by: Yanhu Cao > --- > fs/ceph/debugfs.c | 7 --- > 1 file changed, 4 insertions(+), 3 d

[PATCH v4 3/3] arm64: dts: sparx5: Add Sparx5 eMMC support

2020-08-24 Thread Lars Povlsen
This adds eMMC support to the applicable Sparx5 board configuration files. Signed-off-by: Lars Povlsen --- arch/arm64/boot/dts/microchip/sparx5.dtsi | 24 +++ .../boot/dts/microchip/sparx5_pcb125.dts | 23 ++ .../boot/dts/microchip/sparx5_pcb134_emmc.dts

[net v3 PATCH 2/2] net: ethernet: ti: cpsw_new: fix clean up of vlan mc entries for host port

2020-08-24 Thread Murali Karicheri
To flush the vid + mc entries from ALE, which is required when a VLAN interface is removed, driver needs to call cpsw_ale_flush_multicast() with ALE_PORT_HOST for port mask as these entries are added only for host port. Without this, these entries remain in the ALE table even after removing the VLA

[net v3 PATCH 1/2] net: ethernet: ti: cpsw: fix clean up of vlan mc entries for host port

2020-08-24 Thread Murali Karicheri
To flush the vid + mc entries from ALE, which is required when a VLAN interface is removed, driver needs to call cpsw_ale_flush_multicast() with ALE_PORT_HOST for port mask as these entries are added only for host port. Without this, these entries remain in the ALE table even after removing the VLA

[PATCH v4 2/3] sdhci: sparx5: Add Sparx5 SoC eMMC driver

2020-08-24 Thread Lars Povlsen
This adds the eMMC driver for the Sparx5 SoC. It is based upon the designware IP, but requires some extra initialization and quirks. Signed-off-by: Lars Povlsen --- drivers/mmc/host/Kconfig | 13 ++ drivers/mmc/host/Makefile | 1 + drivers/mmc/host/sdhci-of-sparx5.c | 269 +

[PATCH v4 0/3] mmc: Adding support for Microchip Sparx5 SoC

2020-08-24 Thread Lars Povlsen
(This is a resend of an identical patch set, sent at a time where Sparx5 support was not integrated yet. With the Sparx5 clock driver and associated header now in place in the v5.9rc series, the driver is now resubmitted for inclusion). The patch adds eMMC support for Sparx5, by adding a driver fo

[PATCH v4 1/3] dt-bindings: mmc: Add Sparx5 SDHCI controller bindings

2020-08-24 Thread Lars Povlsen
The Sparx5 SDHCI controller is based on the Designware controller IP. Signed-off-by: Lars Povlsen --- .../mmc/microchip,dw-sparx5-sdhci.yaml| 65 +++ 1 file changed, 65 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/microchip,dw-sparx5-sdhci.yaml

Is: virtio_gpu_object_shmem_init issues? Was:Re: upstream boot error: general protection fault in swiotlb_map

2020-08-24 Thread Konrad Rzeszutek Wilk
On Thu, Aug 06, 2020 at 03:46:23AM -0700, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:47ec5303 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=16fe1dea90 > kernel

[PATCH 8/9] iomap: Convert iomap_write_end types

2020-08-24 Thread Matthew Wilcox (Oracle)
iomap_write_end cannot return an error, so switch it to return size_t instead of int and remove the error checking from the callers. Also convert the arguments to size_t from unsigned int, in case anyone ever wants to support a page size larger than 2GB. Signed-off-by: Matthew Wilcox (Oracle) ---

Re: [PATCH] x86/mce: Increase maximum number of banks to 64

2020-08-24 Thread Yazen Ghannam
On Thu, Aug 20, 2020 at 06:15:15PM +, Luck, Tony wrote: > >> How much does vmlinux size grow with your change? > >> > > > > It seems to get smaller. > > > > -rwxrwxr-x 1 yghannam yghannam 807634088 Aug 20 17:51 vmlinux-32banks > > -rwxrwxr-x 1 yghannam yghannam 807634072 Aug 20 17:50 vmlinu

Re: [Resend PATCH 1/6] mm/memcg: warning on !memcg after readahead page charged

2020-08-24 Thread Michal Hocko
On Mon 24-08-20 10:52:02, Qian Cai wrote: > On Thu, Aug 20, 2020 at 10:58:50AM -0400, Qian Cai wrote: > > On Tue, Aug 11, 2020 at 07:10:27PM +0800, Alex Shi wrote: > > > Since readahead page is charged on memcg too, in theory we don't have to > > > check this exception now. Before safely remove the

[PATCH 5/9] iomap: Support arbitrarily many blocks per page

2020-08-24 Thread Matthew Wilcox (Oracle)
Size the uptodate array dynamically to support larger pages in the page cache. With a 64kB page, we're only saving 8 bytes per page today, but with a 2MB maximum page size, we'd have to allocate more than 4kB per page. Add a few debugging assertions. Signed-off-by: Matthew Wilcox (Oracle) ---

Re: [PATCH -next] amdgpu: fix Documentation builds for pm/ file movement

2020-08-24 Thread Alex Deucher
Applied. Thanks! Alex On Sun, Aug 23, 2020 at 11:00 PM Quan, Evan wrote: > > [AMD Official Use Only - Internal Distribution Only] > > Thanks for fixing this. The patch is reviewed-by: Evan Quan > > > BR > Evan > -Original Message- > From: Randy Dunlap > Sent: Monday, August 24, 2020

Re: [RFC PATCH 3/3] opp: Power on (virtual) power domains managed by the OPP core

2020-08-24 Thread Stephan Gerhold
On Mon, Aug 24, 2020 at 04:36:57PM +0200, Ulf Hansson wrote: > On Mon, 24 Aug 2020 at 13:56, Stephan Gerhold wrote: > > > > On Mon, Aug 24, 2020 at 04:57:44PM +0530, Viresh Kumar wrote: > > > On 30-07-20, 10:01, Stephan Gerhold wrote: > > > > dev_pm_opp_attach_genpd() allows attaching an arbitrary

[PATCH 9/9] iomap: Change calling convention for zeroing

2020-08-24 Thread Matthew Wilcox (Oracle)
Pass the full length to iomap_zero() and dax_iomap_zero(), and have them return how many bytes they actually handled. This is preparatory work for handling THP, although it looks like DAX could actually take advantage of it if there's a larger contiguous area. Signed-off-by: Matthew Wilcox (Oracl

RE: [PATCH] MAINTAINERS: Update Intel TXT maintainer

2020-08-24 Thread Sun, Ning
Acknowledged. -Ning -Original Message- From: Lukasz Hawrylko Sent: Wednesday, August 12, 2020 5:24 AM To: Sun, Ning Cc: Lukasz Hawrylko ; Mauro Carvalho Chehab ; David S. Miller ; Rob Herring ; linux-kernel@vger.kernel.org Subject: [PATCH] MAINTAINERS: Update Intel TXT maintainer A

[PATCH 2/9] fs: Introduce i_blocks_per_page

2020-08-24 Thread Matthew Wilcox (Oracle)
This helper is useful for both THPs and for supporting block size larger than page size. Convert all users that I could find (we have a few different ways of writing this idiom, and I may have missed some). Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Christoph Hellwig --- fs/iomap/buff

Re: [Resend PATCH 1/6] mm/memcg: warning on !memcg after readahead page charged

2020-08-24 Thread Michal Hocko
On Fri 21-08-20 15:48:44, Michal Hocko wrote: > On Fri 21-08-20 08:39:37, Qian Cai wrote: > > On Fri, Aug 21, 2020 at 10:01:27AM +0200, Michal Hocko wrote: > > > On Thu 20-08-20 10:58:51, Qian Cai wrote: > > > > On Tue, Aug 11, 2020 at 07:10:27PM +0800, Alex Shi wrote: > > > > > Since readahead pag

Re: [PATCH][next] NTB: Use struct_size() helper in devm_kzalloc()

2020-08-24 Thread Jon Mason
On Fri, Jun 19, 2020 at 01:10:55PM -0600, Logan Gunthorpe wrote: > > > On 2020-06-19 11:25 a.m., Gustavo A. R. Silva wrote: > > Make use of the struct_size() helper instead of an open-coded version > > in order to avoid any potential type mistakes. Also, remove unnecessary > > variable _struct_si

[PATCH 6/9] iomap: Convert read_count to byte count

2020-08-24 Thread Matthew Wilcox (Oracle)
Instead of counting bio segments, count the number of bytes submitted. This insulates us from the block layer's definition of what a 'same page' is, which is not necessarily clear once THPs are involved. Signed-off-by: Matthew Wilcox (Oracle) --- fs/iomap/buffered-io.c | 29 ++---

[PATCH 4/9] iomap: Use bitmap ops to set uptodate bits

2020-08-24 Thread Matthew Wilcox (Oracle)
Now that the bitmap is protected by a spinlock, we can use the more efficient bitmap ops instead of individual test/set bit ops. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Christoph Hellwig --- fs/iomap/buffered-io.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-)

RE: Re:Re: [PATCH] powerpc: Fix a bug in __div64_32 if divisor is zero

2020-08-24 Thread David Laight
From: Guohua Zhong > Sent: 24 August 2020 14:26 > > >> >In generic version in lib/math/div64.c, there is no checking of 'base' > >> >either. > >> >Do we really want to add this check in the powerpc version only ? > >> > >> >The only user of __div64_32() is do_div() in > >> >include/asm-generic/div

Re: [RFC] security: replace indirect calls with static calls

2020-08-24 Thread Brendan Jackman
On Mon, Aug 24, 2020 at 04:33:44PM +0200, Peter Zijlstra wrote: > On Mon, Aug 24, 2020 at 04:09:09PM +0200, Brendan Jackman wrote: > > > > > Why this trick with a switch statement? The table of static call is > > > > defined > > > > at compile time. The number of hook callbacks that will be defin

[PATCH 1/2] dt-bindings: gpu: mali-utgard: Add Allwinner R40 compatible

2020-08-24 Thread Jernej Skrabec
Allwinner R40 SoC contains Mali400, so add its specific compatible to bindings. Signed-off-by: Jernej Skrabec --- Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml b/Documen

[PATCH 2/2] ARM: dts: sun8i: r40: Add Mali node

2020-08-24 Thread Jernej Skrabec
R40 has Mali400 GP2 GPU. Add a node for it. Signed-off-by: Jernej Skrabec --- arch/arm/boot/dts/sun8i-r40.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-r40.dtsi b/arch/arm/boot/dts/sun8i-r40.dtsi index b782041e0e04..b82031b19893 100644 -

Re: [PATCH] iomap: Fix the write_count in iomap_add_to_ioend().

2020-08-24 Thread Christoph Hellwig
On Mon, Aug 24, 2020 at 10:28:23AM -0400, Brian Foster wrote: > Do I understand the current code (__bio_try_merge_page() -> > page_is_mergeable()) correctly in that we're checking for physical page > contiguity and not necessarily requiring a new bio_vec per physical > page? Yes. > With regard t

Re: [PATCH] PM: sleep: core: Fix the handling of pending runtime resume requests

2020-08-24 Thread Alan Stern
On Mon, Aug 24, 2020 at 03:36:36PM +0200, Rafael J. Wysocki wrote: > > Furthermore, by the logic used in this patch, the call to > > pm_wakeup_event() in the original code is also redundant: Any required > > wakeup event should have been generated when the runtime resume inside > > pm_runtime_ba

[PATCH V2] cpufreq: tegra186: Fix initial frequency

2020-08-24 Thread Jon Hunter
Commit 6cc3d0e9a097 ("cpufreq: tegra186: add CPUFREQ_NEED_INITIAL_FREQ_CHECK flag") fixed CPUFREQ support for Tegra186 but as a consequence the following warnings are now seen on boot ... cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 0 KHz cpufreq: cpufreq_online: CPU0: Unlisted initi

RE: [RFC/RFT][PATCH] cpufreq: intel_pstate: Work in passive mode with HWP enabled

2020-08-24 Thread Doug Smythies
On 2020.05.21 10:16 Rafael J. Wysocki wrote: ... > > The INTEL_CPUFREQ_TRANSITION_DELAY_HWP value has been guessed and it very well > may turn out to be either too high or too low for the general use, which is > one > reason why getting as much testing coverage as possible is key here. > > If y

Re: [RESEND] NTB: hw: amd: fix an issue about leak system resources

2020-08-24 Thread Jon Mason
On Tue, Aug 11, 2020 at 09:59:57AM +0800, Kaige Li wrote: > The related system resources were not released when pci_set_dma_mask(), > pci_set_consistent_dma_mask(), or pci_iomap() return error in the > amd_ntb_init_pci() function. Add pci_release_regions() to fix it. > > Signed-off-by: Kaige Li

[PATCH] docs: fb: Correcting the location of FRAMEBUFFER_CONSOLE option.

2020-08-24 Thread Bilal Wasim
fbcon doc mentions FRAMEBUFFER_CONSOLE option to be under Device Drivers->Graphics Support->Frame buffer Devices-> Console display driver support->Framebuffer Console Support, while its under Device Drivers->Graphics Support-> Console display driver support->Framebuffer Console Support. Correcting

Re: [Resend PATCH 1/6] mm/memcg: warning on !memcg after readahead page charged

2020-08-24 Thread Qian Cai
_mod [last unloaded: dummy_del_mod] [ 7380.783242][T73938] CPU: 160 PID: 73938 Comm: move_pages12 Tainted: G O L5.9.0-rc2-next-20200824 #1 [ 7380.793499][T73938] Hardware name: HPE Apollo 70 /C01_APACHE_MB , BIOS L50_5.13_1.15 05/08/2020 [ 7380.803932][T

Re: [PATCH v2] hv_utils: drain the timesync packets on onchannelcallback

2020-08-24 Thread Wei Liu
On Sun, Aug 23, 2020 at 08:15:41AM -0400, Vineeth Pillai wrote: > > > Typo "packaet". > > > > No need to resend. I can fix this while committing this patch. > > Thanks Wei. > > Applied to hyperv-fixes. Thanks.

Re: [PATCH v2] hv_utils: return error if host timesysnc update is stale

2020-08-24 Thread Wei Liu
On Fri, Aug 21, 2020 at 03:44:24PM +, Michael Kelley wrote: > From: virem...@linux.microsoft.com Sent: Friday, August 21, 2020 8:25 AM > > > > If for any reason, host timesync messages were not processed by > > the guest, hv_ptp_gettime() returns a stale value and the > > caller (clock_gettime

Re: [PATCH] ntb: intel: Fix memleak in intel_ntb_pci_probe

2020-08-24 Thread Jon Mason
On Mon, Aug 24, 2020 at 07:37:56AM -0700, Dave Jiang wrote: > > > On 8/22/2020 11:55 PM, Dinghao Liu wrote: > > The default error branch of a series of pdev_is_gen calls > > should free ndev just like what we've done in these calls. > > > > Signed-off-by: Dinghao Liu > > Thanks Dinghao > Acked

[PATCH 2/2] vlan: Initialize dev->perm_addr

2020-08-24 Thread Mira Ressel
Set the perm_addr of vlan devices to that of their parent device. Otherwise, it remains all zero, with the consequence that ipv6_generate_stable_address() (which is used if the sysctl net.ipv6.conf.DEV.addr_gen_mode is set to 2 or 3) assigns every vlan interface on a host the same link-local addres

Re: [PATCH] MAINTAINERS: Add entry for HPE Superdome Flex (UV) maintainers

2020-08-24 Thread Steve Wahl
Added Darren Hart, Andy Shevchenko, Thomas Gleixner, Ingo Molnar, Borislav Petkov, and x86.kernel.org, after being told that get_maintainers.pl doesn't work on MAINTAINERS. Thanks, Steve Wahl, HPE On Fri, Aug 21, 2020 at 10:48:49AM -0500, Steve Wahl wrote: > > Signed-off-by: Steve Wahl > --- >

Re: [PATCH] Fix s390x compile error on F32 utils/stat-display.c

2020-08-24 Thread Thomas Richter
Hi Arnaldo, Jin, Jiri any update on this issue? Thanks. On 8/12/20 1:27 PM, Arnaldo Carvalho de Melo wrote: > Em Wed, Jul 22, 2020 at 11:20:53AM +0200, Thomas Richter escreveu: >> Fix a compile error on F32 and gcc version 10.1 on s390 in file >> utils/stat-display.c. The error does not show up

Re: [PATCH 4/5] bio: introduce BIO_FOLL_PIN flag

2020-08-24 Thread Christoph Hellwig
On Mon, Aug 24, 2020 at 03:20:26AM -0600, Jens Axboe wrote: > (not relevant to this series as this patch has thankfully already been > dropped, just in general - but yes, definitely need a *strong* justification > to bump the bio size). > > Would actually be nice to kill off a few flags, if possib

Re: [PATCH v2 4/6] power: reset: Add poweroff driver for ATC260x PMICs

2020-08-24 Thread Sebastian Reichel
Hi, On Sat, Aug 22, 2020 at 01:19:50AM +0300, Cristian Ciocaltea wrote: > This driver provides poweroff and reboot support for a system through > the ATC2603C and ATC2609A chip variants of the Actions Semi ATC260x > family of PMICs. > > Signed-off-by: Cristian Ciocaltea > --- > drivers/power/re

[PATCH 1/2] veth: Initialize dev->perm_addr

2020-08-24 Thread Mira Ressel
Set the perm_addr of veth devices to whatever MAC has been assigned to the device. Otherwise, it remains all zero, with the consequence that ipv6_generate_stable_address() (which is used if the sysctl net.ipv6.conf.DEV.addr_gen_mode is set to 2 or 3) assigns every veth interface on a host the same

Re: [PATCH 2/2] media: uvcvideo: Convey full ycbcr colorspace information to v4l2

2020-08-24 Thread Hans Verkuil
On 24/08/2020 15:56, Adam Goode wrote: > On Mon, Aug 24, 2020 at 4:48 AM Hans Verkuil wrote: >> >> On 23/08/2020 17:08, Laurent Pinchart wrote: >>> Hi Adam, >>> >>> (CC'ing Hans Verkuil) >>> >>> On Sun, Aug 23, 2020 at 05:54:24PM +0300, Laurent Pinchart wrote: Hi Adam, Thank you for

Re: [PATCH] ntb: intel: Fix memleak in intel_ntb_pci_probe

2020-08-24 Thread Dave Jiang
On 8/22/2020 11:55 PM, Dinghao Liu wrote: The default error branch of a series of pdev_is_gen calls should free ndev just like what we've done in these calls. Signed-off-by: Dinghao Liu Thanks Dinghao Acked-by: Dave Jiang --- drivers/ntb/hw/intel/ntb_hw_gen1.c | 2 +- 1 file changed,

Re: [RFC PATCH 3/3] opp: Power on (virtual) power domains managed by the OPP core

2020-08-24 Thread Ulf Hansson
On Mon, 24 Aug 2020 at 13:56, Stephan Gerhold wrote: > > On Mon, Aug 24, 2020 at 04:57:44PM +0530, Viresh Kumar wrote: > > On 30-07-20, 10:01, Stephan Gerhold wrote: > > > dev_pm_opp_attach_genpd() allows attaching an arbitrary number of > > > power domains to an OPP table. In that case, the genpd

Re: [PATCH] SELinux: Measure state and hash of policy using IMA

2020-08-24 Thread Lakshmi Ramasubramanian
On 8/24/20 7:00 AM, Stephen Smalley wrote: On Fri, Aug 21, 2020 at 9:00 PM Lakshmi Ramasubramanian +int security_read_policy_kernel(struct selinux_state *state, + void **data, size_t *len) +{ + int rc; + + rc = security_read_policy_len(state, len); +

Re: [PATCH] MAINTAINERS, edac: Calxeda Highbank, handover maintenance to Andre Przywara

2020-08-24 Thread Borislav Petkov
On Mon, Aug 24, 2020 at 02:49:31PM +0200, Robert Richter wrote: > I do not have hardware anymore, nor there is ongoing development. So > handover maintenance to Andre who already maintains the last > remainings of Calxeda. > > Cc: Andre Przywara > Signed-off-by: Robert Richter > --- > MAINTAINE

Re: [PATCH] virt: vbox: Use current_uid() in vbg_misc_device_requestor()

2020-08-24 Thread Hans de Goede
Hi, On 8/24/20 2:53 PM, Denis Efremov wrote: Modify vbg_misc_device_requestor() to use current_uid() wrapper. Signed-off-by: Denis Efremov Thank you, patch looks good to me: Reviewed-by: Hans de Goede Regards, Hans --- drivers/virt/vboxguest/vboxguest_linux.c | 2 +- 1 file changed

Re: [RFC] security: replace indirect calls with static calls

2020-08-24 Thread Peter Zijlstra
On Mon, Aug 24, 2020 at 04:09:09PM +0200, Brendan Jackman wrote: > > > Why this trick with a switch statement? The table of static call is > > > defined > > > at compile time. The number of hook callbacks that will be defined is > > > unknown at that time, and the table cannot be resized at runti

Re: [PATCH 1/4] mm: Trial do_wp_page() simplification

2020-08-24 Thread Jan Kara
On Mon 24-08-20 11:36:22, Kirill Tkhai wrote: > On 22.08.2020 02:49, Peter Xu wrote: > > From: Linus Torvalds > > > > How about we just make sure we're the only possible valid user fo the > > page before we bother to reuse it? > > > > Simplify, simplify, simplify. > > > > And get rid of the nas

Re: [PATCH] iomap: Fix the write_count in iomap_add_to_ioend().

2020-08-24 Thread Brian Foster
On Sat, Aug 22, 2020 at 02:13:12PM +0100, Christoph Hellwig wrote: > On Sat, Aug 22, 2020 at 07:53:58AM +1000, Dave Chinner wrote: > > but iomap only allows BIO_MAX_PAGES when creating the bio. And: > > > > #define BIO_MAX_PAGES 256 > > > > So even on a 64k page machine, we should not be building

Re: [PATCH v3] PCI: Introduce flag for detached virtual functions

2020-08-24 Thread Matthew Rosato
On 8/13/20 11:40 AM, Matthew Rosato wrote: s390x has the notion of providing VFs to the kernel in a manner where the associated PF is inaccessible other than via firmware. These are not treated as typical VFs and access to them is emulated by underlying firmware which can still access the PF. Af

Re: [PATCH] x86/entry: Fix AC assertion

2020-08-24 Thread Andrew Cooper
On 24/08/2020 11:14, pet...@infradead.org wrote: > The WARN added in commit 3c73b81a9164 ("x86/entry, selftests: Further > improve user entry sanity checks") unconditionally triggers on my IVB > machine because it does not support SMAP. > > For !SMAP hardware we patch out CLAC/STAC instructions and

[PATCH bpf] bpf, sysctl: let bpf_stats_handler take a kernel pointer buffer

2020-08-24 Thread Tobias Klauser
Commit 32927393dc1c ("sysctl: pass kernel pointers to ->proc_handler") changed ctl_table.proc_handler to take a kernel pointer. Adjust the signature of bpf_stats_handler to match ctl_table.proc_handler which fixes the following sparse warning: kernel/sysctl.c:226:49: warning: incorrect type in arg

Re: x86/kprobes: kretprobe fails to triggered if kprobe at function entry is not optimized (trigger by int3 breakpoint)

2020-08-24 Thread Peter Zijlstra
On Mon, Aug 24, 2020 at 12:02:58PM +, eddy...@trendmicro.com wrote: > After bisecting, I found this behavior seems to introduce by this > commit: (5.8-rc1) 0d00449c7a28a1514595630735df383dec606812 x86: > Replace ist_enter() with nmi_enter() This make kprobe_int3_handler() > effectively running

Re: [PATCH 3/3] dmaengine: qcom: Add GPI dma driver

2020-08-24 Thread kernel test robot
Hi Vinod, I love your patch! Perhaps something to improve: [auto build test WARNING on vkoul-dmaengine/next] [also build test WARNING on v5.9-rc2 next-20200824] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--bas

Re: [RFC] security: replace indirect calls with static calls

2020-08-24 Thread Brendan Jackman
On Thu, 20 Aug 2020 at 23:46, Kees Cook wrote: > > On Thu, Aug 20, 2020 at 06:47:53PM +0200, Brendan Jackman wrote: > > From: Paul Renauld > > > > LSMs have high overhead due to indirect function calls through > > retpolines. This RPC proposes to replace these with static calls [1] > > typo: RFC

Re: [PATCH v1 2/6] power: supply: Add battery gauge driver for Acer Iconia Tab A500

2020-08-24 Thread Sebastian Reichel
Hi, On Sun, Aug 23, 2020 at 05:08:42PM +0300, Dmitry Osipenko wrote: > This patch adds battery gauge driver for Acer Iconia Tab A500 device. > The battery gauge function is provided via the Embedded Controller, > which is found on the Acer A500. > > Signed-off-by: Dmitry Osipenko > --- > driver

Re: [PATCH] ACPI: OSL: Prevent acpi_release_memory() from returning too early

2020-08-24 Thread Mika Westerberg
On Fri, Aug 21, 2020 at 07:42:55PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > After commit 1757659d022b ("ACPI: OSL: Implement deferred unmapping > of ACPI memory") in some cases acpi_release_memory() may return > before the target memory mappings actually go away, because they

Re: [PATCH 0/4] cpufreq: intel_pstate: Address some HWP-related oddities

2020-08-24 Thread Rafael J. Wysocki
On Saturday, August 22, 2020 2:47:05 AM CEST Doug Smythies wrote: > Hi Rafael, > > On 2020.08.20 09:35 Rafael J. Wysocki wrote: > > > > The purpose of this series is to address some peculiarities related to > > taking CPUs offline/online and switching between different operation > > modes with HW

Re: [PATCH 3/3] dmaengine: qcom: Add GPI dma driver

2020-08-24 Thread kernel test robot
Hi Vinod, I love your patch! Yet something to improve: [auto build test ERROR on vkoul-dmaengine/next] [also build test ERROR on v5.9-rc2 next-20200824] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as doc

Re: drivers/dma/pl330.c:2981:9: warning: Identical condition 'ret', second condition is always false

2020-08-24 Thread Vinod Koul
On 24-08-20, 15:50, Marek Szyprowski wrote: > Hi Vinod, > > On 08.08.2020 14:59, Vinod Koul wrote: > > On 08-08-20, 10:53, kernel test robot wrote: > >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > >> master > >> head: 30185b69a2d533c4ba6ca926b8390ce7de495e29 > >

Re: [PATCH 16/18] staging/media/tegra-vde: Clean up IOMMU workaround

2020-08-24 Thread Robin Murphy
On 2020-08-23 22:34, Dmitry Osipenko wrote: 21.08.2020 03:11, Robin Murphy пишет: ... Hello, Robin! Thank you for yours work! Some drivers, like this Tegra VDE (Video Decoder Engine) driver for example, do not want to use implicit IOMMU domain. That isn't (intentionally) changing here - the o

Re: [PATCH] SELinux: Measure state and hash of policy using IMA

2020-08-24 Thread Stephen Smalley
On Fri, Aug 21, 2020 at 9:00 PM Lakshmi Ramasubramanian wrote: > > Critical data structures of security modules are currently not measured. > Therefore an attestation service, for instance, would not be able to > attest whether the security modules are always operating with the policies > and conf

Re: [PATCH] PM: sleep: core: Fix the handling of pending runtime resume requests

2020-08-24 Thread Mika Westerberg
On Mon, Aug 24, 2020 at 03:38:39PM +0200, Rafael J. Wysocki wrote: > BTW, does the patch make the issue at hand go away? I asked the folks who have this particular hardware to try it out as I don't have access to this one. Hopefully we get the results back soon and once we do, I'll let you know.

Re: [RESEND PATCH v3 7/8] mtd: spi-nor: Convert cadence-quadspi to use spi-mem framework

2020-08-24 Thread Jan Kiszka
On 24.08.20 14:04, Boris Brezillon wrote: > On Mon, 24 Aug 2020 17:14:56 +0530 > Vignesh Raghavendra wrote: > >> Hi Jan, >> >> On 8/24/20 11:25 AM, Jan Kiszka wrote: >> [...] >> +MODULE_AUTHOR("Vignesh Raghavendra "); >>> On the AM65x, this changes mtd->name (thus mtd-id for >>> parse

<    7   8   9   10   11   12   13   14   15   16   >