Re: [PATCH v5 18/21] arm64: Move "nokaslr" over to the early cpufeature infrastructure

2021-01-25 Thread Ard Biesheuvel
On Mon, 25 Jan 2021 at 14:54, Marc Zyngier wrote: > > On 2021-01-25 12:54, Ard Biesheuvel wrote: > > On Mon, 25 Jan 2021 at 11:53, Marc Zyngier wrote: > >> > >> Given that the early cpufeature infrastructure has borrowed quite > >> a lot of code from the kaslr implementation, let's reimplement >

Re: [PATCH 2/2] spidev: Add cisco device compatible

2021-01-25 Thread Mark Brown
On Thu, 21 Jan 2021 15:12:36 -0800, Daniel Walker wrote: > Add compatible string for Cisco device present on the Cisco Petra > platform. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [2/2] spidev: Add cisco device compatible commit:

Re: [PATCH 0/2] mmc: J7200: Add support for higher speed modes in MMCSD subsystems

2021-01-25 Thread Nishanth Menon
On 19:43-20210125, Aswath Govindraju wrote: > >>> Will also help to provide some verification log along with this. > >>> > >> > >> May I know what sort of logs would be best to provide. Would enumeration > >> logs during boot suffice ? >

Re: [PATCH v7 13/14] selftests/vm: test flag is broken

2021-01-25 Thread Pavel Tatashin
On Sun, Jan 24, 2021 at 6:03 PM John Hubbard wrote: > > On 1/21/21 7:37 PM, Pavel Tatashin wrote: > > In gup_test both gup_flags and test_flags use the same flags field. > > This is broken. > > > > Farther, in the actual gup_test.c all the passed gup_flags are erased and > > unconditionally

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 1:30 AM, Miaohe Lin wrote: On 2021/1/25 12:24, Waiman Long wrote: The commit 3fea5a499d57 ("mm: memcontrol: convert page cache to a new mem_cgroup_charge() API") introduced a bug in __add_to_page_cache_locked() causing the following splat: [ 1570.068330] page dumped because:

[PATCH v2] media: doc: pixfmt-yuv: Fix 4:4:4 subsampling info

2021-01-25 Thread Helen Koike
YUV 4:4:4 is not subsampled, fix this in the docs. Fixes: da785536e007 ("media: doc: pixfmt-yuv: Move all semi-planar YUV formats to common file") Signed-off-by: Helen Koike --- Changes in v2: - s/No sub-sampling/The chroma plane is not subsampled/ (Laurent) - Fixed description regarding the

[PATCH 2/2] KVM: arm64: Skip the cache flush when coalescing tables into a block

2021-01-25 Thread Yanan Wang
After dirty-logging is stopped for a VM configured with huge mappings, KVM will recover the table mappings back to block mappings. As we only replace the existing page tables with a block entry and the cacheability has not been changed, the cache maintenance opreations can be skipped.

[PATCH 0/2] Performance improvement about cache flush

2021-01-25 Thread Yanan Wang
Hi, This two patches are posted to introduce a new method that can distinguish cases of allocating memcache more precisely, and to elide some unnecessary cache flush. For patch-1: With a guest translation fault, we don't really need the memcache pages when only installing a new entry to the

Re: [PATCH v2 09/17] mfd: Support for ROHM BD71815 PMIC core

2021-01-25 Thread Lee Jones
On Tue, 19 Jan 2021, Matti Vaittinen wrote: > Add core support for ROHM BD71815 Power Management IC. > > The IC integrates regulators, a battery charger with a coulomb counter, > a real-time clock (RTC), clock gate and general-purpose outputs (GPO). > > Signed-off-by: Matti Vaittinen > --- >

Re: [PATCH 1/3] tracing: Merge irqflags + preempt counter.

2021-01-25 Thread Sebastian Andrzej Siewior
On 2021-01-22 17:07:50 [-0500], Steven Rostedt wrote: > On Wed, 13 Jan 2021 00:00:55 +0100 > Sebastian Andrzej Siewior wrote: > > > +unsigned int _tracing_gen_ctx_flags(unsigned long irqflags); > > +unsigned int tracing_gen_ctx_flags(void); > > +unsigned int tracing_gen_ctx_flags_dect(void); >

Re: [PATCH v3 0/2] net: sfp: add support for GPON RTL8672/RTL9601C and Ubiquiti U-Fiber

2021-01-25 Thread Pali Rohár
On Monday 18 January 2021 10:34:35 Pali Rohár wrote: > On Monday 11 January 2021 12:39:07 Pali Rohár wrote: > > This is a third version of patches which add workarounds for > > RTL8672/RTL9601C EEPROMs and Ubiquiti U-Fiber Instant SFP. > > > > Russel's PATCH v2 2/3 was dropped from this patch

Re: [PATCH] media: doc: pixfmt-yuv: Fix 4:4:4 subsampling info

2021-01-25 Thread Helen Koike
On 1/25/21 10:57 AM, Helen Koike wrote: > > > On 1/23/21 6:56 AM, Laurent Pinchart wrote: >> Hi Helen, >> >> Thank you for the patch. >> >> On Fri, Jan 22, 2021 at 03:27:23PM -0300, Helen Koike wrote: >>> YUV 4:4:4 is not subsampled, fix this in the docs. >>> >>> Fixes: da785536e007 ("media:

Re: [PATCH v5 18/21] arm64: Move "nokaslr" over to the early cpufeature infrastructure

2021-01-25 Thread Marc Zyngier
On 2021-01-25 12:54, Ard Biesheuvel wrote: On Mon, 25 Jan 2021 at 11:53, Marc Zyngier wrote: Given that the early cpufeature infrastructure has borrowed quite a lot of code from the kaslr implementation, let's reimplement the matching of the "nokaslr" option with it. Signed-off-by: Marc

Re: [RFC PATCH v1] sched/fair: limit load balance redo times at the same sched_domain level

2021-01-25 Thread Li, Aubrey
On 2021/1/25 18:56, Vincent Guittot wrote: > On Mon, 25 Jan 2021 at 06:50, Aubrey Li wrote: >> >> A long-tail load balance cost is observed on the newly idle path, >> this is caused by a race window between the first nr_running check >> of the busiest runqueue and its nr_running recheck in

Re: [PATCH] Revert "mm: memcontrol: avoid workload stalls when lowering memory.high"

2021-01-25 Thread Chris Down
Johannes Weiner writes: This reverts commit 536d3bf261a2fc3b05b3e91e7eef7383443015cf, as it can cause writers to memory.high to get stuck in the kernel forever, performing page reclaim and consuming excessive amounts of CPU cycles. Before the patch, a write to memory.high would first put the

Re: [RFC PATCH 0/4] make jbd2 debug switch per device

2021-01-25 Thread brookxu
Thanks for your reply. Jan Kara wrote on 2021/1/25 20:41: > On Fri 22-01-21 14:43:18, Chunguang Xu wrote: >> On a multi-disk machine, because jbd2 debugging switch is global, this >> confuses the logs of multiple disks. It is not easy to distinguish the >> logs of each disk and the amount of

Re: [PATCH v2 08/17] mfd: Add ROHM BD71815 ID

2021-01-25 Thread Lee Jones
On Tue, 19 Jan 2021, Matti Vaittinen wrote: > Add chip ID for ROHM BD71815 and PMIC so that drivers can identify > this IC. > > Signed-off-by: Matti Vaittinen > --- > No changes since v1. > > include/linux/mfd/rohm-generic.h | 1 + > 1 file changed, 1 insertion(+) For my own reference (apply

Re: [PATCH] media: doc: pixfmt-yuv: Fix 4:4:4 subsampling info

2021-01-25 Thread Helen Koike
On 1/23/21 6:56 AM, Laurent Pinchart wrote: > Hi Helen, > > Thank you for the patch. > > On Fri, Jan 22, 2021 at 03:27:23PM -0300, Helen Koike wrote: >> YUV 4:4:4 is not subsampled, fix this in the docs. >> >> Fixes: da785536e007 ("media: doc: pixfmt-yuv: Move all semi-planar YUV >> formats

Re: [PATCH v2 04/17] mfd: bd718x7: simplify by cleaning unnecessary device data

2021-01-25 Thread Lee Jones
On Tue, 19 Jan 2021, Matti Vaittinen wrote: > Most ROHM PMIC sub-devices only use the regmap pointer from > parent device. They can obtain this by dev_get_regamap so in > most cases the MFD device does not need to allocate and populate > the driver data. Simplify drivers by removing this. > >

Re: [PATCH] bridge: Use PTR_ERR_OR_ZERO instead if(IS_ERR(...)) + PTR_ERR

2021-01-25 Thread Nikolay Aleksandrov
On 25/01/2021 04:39, Jiapeng Zhong wrote: > coccicheck suggested using PTR_ERR_OR_ZERO() and looking at the code. > > Fix the following coccicheck warnings: > > ./net/bridge/br_multicast.c:1295:7-13: WARNING: PTR_ERR_OR_ZERO can be > used. > > Reported-by: Abaci > Signed-off-by: Jiapeng Zhong

[PATCH 6/7] USB: serial: cp210x: fix RTS handling

2021-01-25 Thread Johan Hovold
Clearing TIOCM_RTS should always deassert RTS and setting the same bit should enable auto-RTS if hardware flow control is enabled. This allows user space to throttle input directly at the source also when hardware-assisted flow control is enabled and makes dtr_rts() always deassert both lines

[PATCH 4/7] USB: serial: cp210x: clean up flow-control debug message

2021-01-25 Thread Johan Hovold
Shorten the flow-control debug message by abbreviating the field names and reducing the value width to two characters. The latter improves readability since all but the least significant byte will almost always be zero anyway. Signed-off-by: Johan Hovold --- drivers/usb/serial/cp210x.c | 4 ++--

Re: 回复: 回复: [PATCH 3/3] kvfree_rcu: use migrate_disable/enable()

2021-01-25 Thread Uladzislau Rezki
> > > 发件人: Uladzislau Rezki > 发送时间: 2021年1月25日 5:57 > 收件人: Zhang, Qiang > 抄送: Uladzislau Rezki (Sony); LKML; RCU; Paul E . McKenney; Michael Ellerman; > Andrew Morton; Daniel Axtens; Frederic Weisbecker; Neeraj Upadhyay; Joel > Fernandes; Peter

[PATCH 1/7] USB: serial: cp210x: suppress modem-control errors

2021-01-25 Thread Johan Hovold
The CP210X_SET_MHS request cannot be used to control RTS when hardware flow control (auto-RTS) is enabled and instead returns an error which is currently logged as: cp210x ttyUSB0: failed set request 0x7 status: -32 when opening and closing a port (and on TIOCMSET requests). Add a

[PATCH 2/7] USB: serial: cp210x: fix modem-control handling

2021-01-25 Thread Johan Hovold
The vendor request used to set the flow-control settings also sets the state of the modem-control lines. Add state variables to keep track of the modem-control lines to avoid always asserting the lines whenever the flow-control settings are updated. This specifically also avoids asserting

[PATCH 5/7] USB: serial: cp210x: clean up printk zero padding

2021-01-25 Thread Johan Hovold
Use the 0-flag and a field width to specify zero-padding consistently in printk messages. Signed-off-by: Johan Hovold --- drivers/usb/serial/cp210x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c index

[PATCH 7/7] USB: serial: cp210x: clean up auto-RTS handling

2021-01-25 Thread Johan Hovold
Clear the RTS bits of the flow-control request before determining the new value when updating the settings. Signed-off-by: Johan Hovold --- drivers/usb/serial/cp210x.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c

Re: [PATCH 1/2] ecryptfs: fix uid translation for setxattr on security.capability

2021-01-25 Thread Miklos Szeredi
On Mon, Jan 25, 2021 at 2:25 PM Miklos Szeredi wrote: > > On Fri, Jan 22, 2021 at 7:31 PM Tyler Hicks wrote: > > > > On 2021-01-19 17:22:03, Miklos Szeredi wrote: > > > Prior to commit 7c03e2cda4a5 ("vfs: move cap_convert_nscap() call into > > > vfs_setxattr()") the translation of nscap->rootid

[PATCH] drm/i915/gvt: fix uninitialized return in intel_gvt_update_reg_whitelist()

2021-01-25 Thread Dan Carpenter
Smatch found an uninitialized variable bug in this code: drivers/gpu/drm/i915/gvt/cmd_parser.c:3191 intel_gvt_update_reg_whitelist() error: uninitialized symbol 'ret'. The first thing that Smatch complains about is that "ret" isn't set if we don't enter the "for_each_engine(engine,

[RFC PATCH v3 13/13] vsock_test: add SOCK_SEQPACKET tests

2021-01-25 Thread Arseny Krasnov
This adds two tests of SOCK_SEQPACKET socket: both transfer data and then test MSG_EOR and MSG_TRUNC flags. Cases for connect(), bind(), etc. are not tested, because it is same as for stream socket. Signed-off-by: Arseny Krasnov --- tools/testing/vsock/util.c | 32 ++--

Re: [PATCH v2] sched/fair: check for idle core

2021-01-25 Thread Julia Lawall
On Mon, 25 Jan 2021, Vincent Guittot wrote: > On Mon, 25 Jan 2021 at 10:20, Julia Lawall wrote: > > > > > > > > On Mon, 25 Jan 2021, Mel Gorman wrote: > > > > > On Sun, Jan 24, 2021 at 09:38:14PM +0100, Julia Lawall wrote: > > > > > > > > > > > > On Tue, 27 Oct 2020, Mel Gorman wrote: > > > >

Re: [PATCH 2/5] mm,memory_hotplug: Allocate memmap from the added memory range

2021-01-25 Thread David Hildenbrand
On 25.01.21 12:18, Oscar Salvador wrote: > On Mon, Jan 25, 2021 at 11:57:20AM +0100, David Hildenbrand wrote: >> I'm confused. >> >> 1. Assume we hotplug memory, online it to ZONE_MOVABLE. The vmemmap gets >> allocated from altmap space. > > The vmemmap could have never been allocated from altmap

[PATCH] optee: simplify i2c access

2021-01-25 Thread Arnd Bergmann
From: Arnd Bergmann Storing a bogus i2c_client structure on the stack adds overhead and causes a compile-time warning: drivers/tee/optee/rpc.c:493:6: error: stack frame size of 1056 bytes in function 'optee_handle_rpc' [-Werror,-Wframe-larger-than=] void optee_handle_rpc(struct tee_context

Re: [RFC PATCH v3 03/13] af_vsock: implement SEQPACKET rx loop

2021-01-25 Thread stsp
25.01.2021 14:12, Arseny Krasnov пишет: This adds receive loop for SEQPACKET. It looks like receive loop for SEQPACKET,     ^^^ You meant "STREAM"?

Re: [RFC PATCH] kvm: arm64: Try stage2 block mapping for host device MMIO

2021-01-25 Thread Keqian Zhu
I forget to give the link of the bugfix I mentioned below :-). [1] https://lkml.org/lkml/2020/5/1/1294 On 2021/1/25 19:25, Keqian Zhu wrote: > Hi Marc, > > On 2021/1/22 17:45, Marc Zyngier wrote: >> On 2021-01-22 08:36, Keqian Zhu wrote: >>> The MMIO region of a device maybe huge (GB level),

Re: [PATCH] x86/kgdb: Allow removal of early BPs

2021-01-25 Thread Lorena Kretzschmar
Hi, I wanted to ask about the status of the patch. Let us know if there are any other steps we can undertake. Kind regards Lorena On Fri 2020-12-18 16:44:21, Daniel Thompson wrote: > Hi Stefan > > On Mon, Dec 14, 2020 at 03:13:12PM +0100, Stefan Saecherl wrote: > > The problem is that

Re: [PATCH] ath9k: fix build error with LEDS_CLASS=m

2021-01-25 Thread Krzysztof Kozlowski
On Mon, 25 Jan 2021 at 14:09, Arnd Bergmann wrote: > > On Mon, Jan 25, 2021 at 12:40 PM Krzysztof Kozlowski wrote: > > On Mon, 25 Jan 2021 at 12:36, Arnd Bergmann wrote: > > > > > > From: Arnd Bergmann > > > > > > When CONFIG_ATH9K is built-in but LED support is in a loadable > > > module,

Re: [PATCH bpf-next v3 3/3] xsk: build skb by page

2021-01-25 Thread Alexander Lobakin
From: Xuan Zhuo Date: Mon, 25 Jan 2021 11:10:43 +0800 > On Fri, 22 Jan 2021 16:24:17 +, Alexander Lobakin wrote: > > From: Xuan Zhuo > > Date: Fri, 22 Jan 2021 23:36:29 +0800 > > > > > On Fri, 22 Jan 2021 12:08:00 +, Alexander Lobakin > > > wrote: > > > > From: Alexander Lobakin > >

Re: [PATCH net-next v2 2/2] net: dsa: mt7530: MT7530 optional GPIO support

2021-01-25 Thread Andrew Lunn
On Mon, Jan 25, 2021 at 12:43:22PM +0800, DENG Qingfang wrote: > MT7530's LED controller can drive up to 15 LED/GPIOs. > > Add support for GPIO control and allow users to use its GPIOs by > setting gpio-controller property in device tree. > > Signed-off-by: DENG Qingfang Reviewed-by: Andrew

Re: [PATCH 1/2] ecryptfs: fix uid translation for setxattr on security.capability

2021-01-25 Thread Miklos Szeredi
On Fri, Jan 22, 2021 at 7:31 PM Tyler Hicks wrote: > > On 2021-01-19 17:22:03, Miklos Szeredi wrote: > > Prior to commit 7c03e2cda4a5 ("vfs: move cap_convert_nscap() call into > > vfs_setxattr()") the translation of nscap->rootid did not take stacked > > filesystems (overlayfs and ecryptfs) into

Re: linux-next: build warning after merge of the xfs tree

2021-01-25 Thread Brian Foster
On Mon, Jan 25, 2021 at 09:55:32AM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the xfs tree, today's linux-next build (powerpc > ppc64_defconfig) produced this warning: > > fs/xfs/xfs_log.c: In function 'xfs_log_cover': > fs/xfs/xfs_log.c::16: warning: unused variable 'log'

Re: [PATCH] dsa: vsc73xx: add support for vlan filtering

2021-01-25 Thread Linus Walleij
On Mon, Jan 25, 2021 at 12:45 AM Vladimir Oltean wrote: > Anyhow, you did not approve or disprove the tag_8021q idea. I just don't understand it well enough so I didn't know what to say about that... > With VLAN trunking on the CPU port, how would per-port traffic be > managed? Would it be

Re: [PATCH] kgdb: use new API for breakpoint tasklet

2021-01-25 Thread Emil Renner Berthing
On Mon, 25 Jan 2021 at 12:03, Daniel Thompson wrote: > > On Sat, Jan 23, 2021 at 07:42:37PM +0100, Emil Renner Berthing wrote: > > This converts the kgdb_tasklet_breakpoint to use the new API in > > commit 12cc923f1ccc ("tasklet: Introduce new initialization API") > > > > The new API changes the

Re: [PATCH] m68k: let clk_enable() return immediately if clk is NULL

2021-01-25 Thread Greg Ungerer
Hi Defang, On 28/12/20 12:07 pm, Defang Bo wrote: Similar to commit<742859adc721>("m68k: let clk_disable() return immediately if clk is NULL"). there should be a check for clk to prevent NULL pointer dereference. Signed-off-by: Defang Bo I have applied this to the m68knommu git tree,

Re: [PATCH v2 2/4] KVM: SVM: Add emulation support for #GP triggered by SVM instructions

2021-01-25 Thread Maxim Levitsky
On Thu, 2021-01-21 at 14:40 -0800, Sean Christopherson wrote: > On Thu, Jan 21, 2021, Maxim Levitsky wrote: > > BTW, on unrelated note, currently the smap test is broken in kvm-unit tests. > > I bisected it to commit 322cdd6405250a2a3e48db199f97a45ef519e226 > > > > It seems that the following

Re: [PATCH] [5.8 regression] net: ks8851: fix link error

2021-01-25 Thread Andrew Lunn
On Mon, Jan 25, 2021 at 01:19:20PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > An object file cannot be built for both loadable module and built-in > use at the same time: > > arm-linux-gnueabi-ld: drivers/net/ethernet/micrel/ks8851_common.o: in > function `ks8851_probe_common': >

Re: [PATCH] sched/fair: Rate limit calls to update_blocked_averages() for NOHZ

2021-01-25 Thread Vincent Guittot
On Fri, 22 Jan 2021 at 19:39, Qais Yousef wrote: > > On 01/22/21 17:56, Vincent Guittot wrote: > > > --- > > > kernel/sched/fair.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > > > index 04a3ce20da67..fe2dc0024db5

Re: [PATCH v2 00/14] PHY: Add support in Sierra to use external clock

2021-01-25 Thread Kishon Vijay Abraham I
On 22/12/20 12:35 pm, Kishon Vijay Abraham I wrote: > The previous version of the patch series can be found @ [1] > > Changes from v1: > 1) Remove the part that prevents configuration if the SERDES is already >configured and focus only on using external clock and the associated >

Re: [PATCH 1/1] process_madvise.2: Add process_madvise man page

2021-01-25 Thread Michal Hocko
On Wed 20-01-21 12:23:37, Suren Baghdasaryan wrote: [...] > MADV_COLD (since Linux 5.4.1) > Deactivate a given range of pages by moving them from active to > inactive LRU list. This is done to accelerate the reclaim of these > pages. The advice might be ignored for some

Re: KASAN: slab-out-of-bounds Write in record_print_text

2021-01-25 Thread John Ogness
On 2021-01-25, syzbot wrote: > syzbot found the following issue on: > > HEAD commit:e6806137 Merge tag 'irq_urgent_for_v5.11_rc5' of git://git.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=10c59c6f50 > kernel config:

Re: [PATCH bpf-next v3 3/3] xsk: build skb by page

2021-01-25 Thread Magnus Karlsson
On Mon, Jan 25, 2021 at 1:43 PM Xuan Zhuo wrote: > > On Mon, 25 Jan 2021 08:44:38 +0100, Magnus Karlsson > wrote: > > On Mon, Jan 25, 2021 at 3:27 AM Xuan Zhuo > > wrote: > > > > > > On Fri, 22 Jan 2021 19:37:06 +0100, Magnus Karlsson > > > wrote: > > > > On Fri, Jan 22, 2021 at 6:26 PM

Re: 5.11 new lockdep warning related to led-class code (also may involve ata / piix controller)

2021-01-25 Thread Hans de Goede
Hi, On 1/13/21 9:59 AM, Hans de Goede wrote: > Hi, > > On 1/12/21 11:30 PM, Pavel Machek wrote: >> Hi! >> >>> Booting a 5.11-rc2 kernel with lockdep enabled inside a virtualbox vm >>> (which still >>> emulates good old piix ATA controllers) I get the below lockdep splat early >>> on during

Re: [PATCH v4 2/4] mm: failfast mode with __GFP_NORETRY in alloc_contig_range

2021-01-25 Thread Michal Hocko
On Mon 25-01-21 14:12:02, Michal Hocko wrote: > On Thu 21-01-21 09:55:00, Minchan Kim wrote: > > Contiguous memory allocation can be stalled due to waiting > > on page writeback and/or page lock which causes unpredictable > > delay. It's a unavoidable cost for the requestor to get *big* > >

Re: [PATCH net-next v2 1/2] dt-bindings: net: dsa: add MT7530 GPIO controller binding

2021-01-25 Thread Linus Walleij
On Mon, Jan 25, 2021 at 5:43 AM DENG Qingfang wrote: > Add device tree binding to support MT7530 GPIO controller. > > Signed-off-by: DENG Qingfang Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH net-next v2 2/2] net: dsa: mt7530: MT7530 optional GPIO support

2021-01-25 Thread Linus Walleij
On Mon, Jan 25, 2021 at 5:43 AM DENG Qingfang wrote: > MT7530's LED controller can drive up to 15 LED/GPIOs. > > Add support for GPIO control and allow users to use its GPIOs by > setting gpio-controller property in device tree. > > Signed-off-by: DENG Qingfang Reviewed-by: Linus Walleij

Re: [PATCH] ath9k: fix build error with LEDS_CLASS=m

2021-01-25 Thread Arnd Bergmann
On Mon, Jan 25, 2021 at 12:40 PM Krzysztof Kozlowski wrote: > On Mon, 25 Jan 2021 at 12:36, Arnd Bergmann wrote: > > > > From: Arnd Bergmann > > > > When CONFIG_ATH9K is built-in but LED support is in a loadable > > module, both ath9k drivers fails to link: > > > > x86_64-linux-ld:

[PATCH 0/1] mfd: da9063: Support SMBus and I2C mode

2021-01-25 Thread Mark Jonas
On an NXP i.MX6 Solo processor we are running an application which makes use of real-time threads (SCHED_RR). In combination with a DA9063 we experienced (rare) random shut-downs and reboots. We found that the issue was caused by a combination of the (default) DA9063 SMBus mode and non-atomic I2C

Re: [PATCH v4 1/4] mm: cma: introduce gfp flag in cma_alloc instead of no_warn

2021-01-25 Thread Michal Hocko
On Thu 21-01-21 09:54:59, Minchan Kim wrote: > The upcoming patch will introduce __GFP_NORETRY semantic > in alloc_contig_range which is a failfast mode of the API. > Instead of adding a additional parameter for gfp, replace > no_warn with gfp flag. > > To keep old behaviors, it follows the rule

[PATCH v2 2/2] thermal: Move therm_throt there from x86/mce

2021-01-25 Thread Borislav Petkov
From: Borislav Petkov This functionality has nothing to do with MCE, move it to the thermal framework and untangle it from MCE. Have thermal_set_handler() check the build-time assigned default handler stub was the one used before therm_throt assigns a new one. Requested-by: Peter Zijlstra

[PATCH v2 1/2] x86/mce: Get rid of mcheck_intel_therm_init()

2021-01-25 Thread Borislav Petkov
From: Borislav Petkov Move the APIC_LVTTHMR read which needs to happen on the BSP, to intel_init_thermal(). One less boot dependency. No functional changes. Signed-off-by: Borislav Petkov --- arch/x86/include/asm/mce.h| 6 -- arch/x86/kernel/cpu/mce/core.c| 1 -

[PATCH v2 0/2] Move ...mce/therm_throt.c to drivers/thermal/

2021-01-25 Thread Borislav Petkov
From: Borislav Petkov Hi, here's v2 which addresses peterz's comments to patch 2. @thermal folks, lemme know if you have any objections otherwise I'll route this through the tip tree. Thx. Changelog: == v1: so this has come up a bunch of times in the past and PeterZ is right - that

Re: [PATCH 1/4] ARM: dts: qcom: msm8974: add gpu support

2021-01-25 Thread Iskren Chernev
On 1/24/21 11:05 PM, Pavel Machek wrote: > On Sun 2021-01-24 15:56:07, Iskren Chernev wrote: >> From: Brian Masney >> >> Add support for the a3xx GPU > > This is phone, right? Can I ask phone-de...@vger.kernel.org to be > cc-ed? CC-ing phone-de...@vger.kernel.org. I'm not sure why you

[PATCH v3 2/3] drm/bridge: anx7625: fix not correct return value

2021-01-25 Thread Xin Ji
At some time, the original code may return non zero value, force return 0 if operation finished Signed-off-by: Xin Ji --- drivers/gpu/drm/bridge/analogix/anx7625.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c

RE: [RFC PATCH v3 0/2] scheduler: expose the topology of clusters and add cluster scheduler

2021-01-25 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Dietmar Eggemann [mailto:dietmar.eggem...@arm.com] > Sent: Wednesday, January 13, 2021 1:53 AM > To: Song Bao Hua (Barry Song) ; Morten Rasmussen > ; Tim Chen > Cc: valentin.schnei...@arm.com; catalin.mari...@arm.com; w...@kernel.org; > r...@rjwysocki.net;

Re: [PATCH v4 1/3] arm64: Improve kernel address detection of __is_lm_address()

2021-01-25 Thread Mark Rutland
Hi Vincenzo, On Fri, Jan 22, 2021 at 03:56:40PM +, Vincenzo Frascino wrote: > Currently, the __is_lm_address() check just masks out the top 12 bits > of the address, but if they are 0, it still yields a true result. > This has as a side effect that virt_addr_valid() returns true even for >

Re: [PATCH RFC v1 00/15] iommu/virtio: Nested stage support with Arm

2021-01-25 Thread Vivek Kumar Gautam
Hi Shameer, On 1/22/21 9:19 PM, Shameerali Kolothum Thodi wrote: Hi Vivek, -Original Message- From: Vivek Kumar Gautam [mailto:vivek.gau...@arm.com] Sent: 21 January 2021 17:34 To: Auger Eric ; linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org;

[PATCH v3 3/3] drm/bridge: anx7625: add MIPI DPI input feature support

2021-01-25 Thread Xin Ji
Add MIPI rx DPI input support Reported-by: kernel test robot Signed-off-by: Xin Ji --- drivers/gpu/drm/bridge/analogix/anx7625.c | 326 -- drivers/gpu/drm/bridge/analogix/anx7625.h | 20 +- 2 files changed, 285 insertions(+), 61 deletions(-) diff --git

[PATCH -next] usb: core: Remove unused including

2021-01-25 Thread Zou Wei
Fix the following versioncheck warning: drivers/usb/core/hcd.c:14:1: unused including Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/usb/core/hcd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index 3f03813..53bc93d 100644 ---

[PATCH] perf test: Add parse-metric memory bandwidth testcase

2021-01-25 Thread John Garry
Event duration_time in a metric expression requires special handling. Improve test coverage by including a metric whose expression includes duration_time. The actual metric is a copied from the L1D_Cache_Fill_BW metric on my broadwell machine. Signed-off-by: John Garry --- Based on acme

Re: [PATCH v3] iio: adc: stm32-adc: enable timestamping for non-DMA usage

2021-01-25 Thread Marc Kleine-Budde
On 1/25/21 12:21 PM, Ahmad Fatoum wrote: > For non-DMA usage, we have an easy way to associate a timestamp with a > sample: iio_pollfunc_store_time stores a timestamp in the primary > trigger IRQ handler and stm32_adc_trigger_handler runs in the IRQ thread > to push out the buffer along with the

RE: [PATCH] drm/amd/display: use div_s64() for 64-bit division

2021-01-25 Thread Chen, Guchun
[AMD Public Use] Hi Arnd Bergmann, Thanks for your patch. This link error during compile has been fixed by below commit and been submitted to drm-next branch already. 5da047444e82 drm/amd/display: fix 64-bit division issue on 32-bit OS Regards, Guchun -Original Message- From: amd-gfx

KASAN: slab-out-of-bounds Write in record_print_text

2021-01-25 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:e6806137 Merge tag 'irq_urgent_for_v5.11_rc5' of git://git.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10c59c6f50 kernel config: https://syzkaller.appspot.com/x/.config?x=be33d8015c9de024

Re: [PATCH] i915: Fix DRM_I915_WERROR dependencies

2021-01-25 Thread Chris Wilson
Quoting Arnd Bergmann (2021-01-25 12:26:44) > From: Arnd Bergmann > > CONFIG_DRM_I915_DEBUG now selects CONFIG_DRM_I915_WERROR, but fails > to honor its dependencies: > > WARNING: unmet direct dependencies detected for DRM_I915_WERROR > Depends on [n]: HAS_IOMEM [=y] && DRM_I915 [=m] &&

[PATCH] mmc: brcmstb: Fix sdhci_pltfm_suspend link error

2021-01-25 Thread Arnd Bergmann
From: Arnd Bergmann sdhci_pltfm_suspend() is only available when CONFIG_PM_SLEEP support is built into the kernel, which caused a regression in a recent bugfix: ld.lld: error: undefined symbol: sdhci_pltfm_suspend >>> referenced by sdhci-brcmstb.c >>>

Re: [PATCH v3 00/17] KVM: x86/pmu: Add support to enable Guest PEBS via DS

2021-01-25 Thread Peter Zijlstra
On Mon, Jan 25, 2021 at 04:08:22PM +0800, Like Xu wrote: > Hi Peter, > > On 2021/1/22 17:56, Peter Zijlstra wrote: > > On Fri, Jan 15, 2021 at 10:51:38AM -0800, Sean Christopherson wrote: > > > On Fri, Jan 15, 2021, Andi Kleen wrote: > > > > > I'm asking about ucode/hardare. Is the "guest pebs

[PATCH] arm64: kfence: fix header inclusion

2021-01-25 Thread Arnd Bergmann
From: Arnd Bergmann Randconfig builds started warning about a missing function declaration after set_memory_valid() is moved to a new file: In file included from mm/kfence/core.c:26: arch/arm64/include/asm/kfence.h:17:2: error: implicit declaration of function 'set_memory_valid'

Re: [PATCH 0/4] perf vendor events arm64: Some tidy-up/refactoring

2021-01-25 Thread John Garry
On 25/01/2021 11:53, John Garry wrote: + Missed reviewers for https://lore.kernel.org/lkml/1611575600-2440-1-git-send-email-john.ga...@huawei.com/T/#u There is much event duplication in the common and uarch events for A76 and Ampere eMag support, so factor out into a common JSON. Since the

Re: [PATCH 2/3] blk-mq: Always complete remote completions requests in softirq

2021-01-25 Thread Christoph Hellwig
On Sat, Jan 23, 2021 at 09:10:26PM +0100, Sebastian Andrzej Siewior wrote: > Controllers with multiple queues have their IRQ-handelers pinned to a > CPU. The core shouldn't need to complete the request on a remote CPU. > > Remove this case and always raise the softirq to complete the request.

[PATCH v2 net-next] net: core: devlink: add 'dropped' stats field for DROP trap action

2021-01-25 Thread Oleksandr Mazur
Whenever query statistics is issued for trap with DROP action, devlink subsystem would also fill-in statistics 'dropped' field. In case if device driver did't register callback for hard drop statistics querying, 'dropped' field will be omitted and not filled. Add trap_drop_counter_get callback

[PATCH] amdgpu: fix clang build warning

2021-01-25 Thread Arnd Bergmann
From: Arnd Bergmann clang warns about the -mhard-float command line arguments on architectures that do not support this: clang: error: argument unused during compilation: '-mhard-float' [-Werror,-Wunused-command-line-argument] Move this into the gcc-specific arguments. Fixes: e77165bf7b02

Re: [PATCH v2 0/4] MIPS: process: Some fixes and improvements about get_frame_info()

2021-01-25 Thread Thomas Bogendoerfer
On Thu, Jan 21, 2021 at 01:31:34PM +0800, Jinyang He wrote: > Not familiar with microMIPS. Not test on microMIPS. > > Changelog v2: > - Thanks to Thomas for suggesting that remove and sort header includes. > [PATCH 1/4] for details. > - Thanks to Jiaxun for test v1 and told me it stuck at

[RFC 3/3] thunderbolt: build kunit tests without structleak plugin

2021-01-25 Thread Arnd Bergmann
From: Arnd Bergmann The structleak plugin causes the stack frame size to grow immensely: drivers/thunderbolt/test.c:1529:1: error: the frame size of 1176 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] Turn it off in this file. Signed-off-by: Arnd Bergmann ---

[RFC 2/3] drivers/base: build kunit tests without structleak plugin

2021-01-25 Thread Arnd Bergmann
From: Arnd Bergmann The structleak plugin causes the stack frame size to grow immensely: drivers/base/test/property-entry-test.c: In function 'pe_test_reference': drivers/base/test/property-entry-test.c:481:1: error: the frame size of 2640 bytes is larger than 2048 bytes

Re: [PATCH v2 04/16] rpmsg: ctrl: implement the ioctl function to create device

2021-01-25 Thread Arnaud POULIQUEN
Hi Mathieu, On 1/22/21 9:59 PM, Mathieu Poirier wrote: > On Fri, Jan 22, 2021 at 02:05:27PM +0100, Arnaud POULIQUEN wrote: >> Hi Mathieu, >> >> On 1/22/21 12:52 AM, Mathieu Poirier wrote: >>> On Tue, Dec 22, 2020 at 11:57:14AM +0100, Arnaud Pouliquen wrote: Implement the ioctl function that

[RFC 1/3] bitfield: build kunit tests without structleak plugin

2021-01-25 Thread Arnd Bergmann
From: Arnd Bergmann The structleak plugin causes the stack frame size to grow immensely: lib/bitfield_kunit.c: In function 'test_bitfields_constants': lib/bitfield_kunit.c:93:1: error: the frame size of 7440 bytes is larger than 2048 bytes [-Werror=frame-larger-than=] Turn it off in this

[PATCH] blk: wbt: remove unused parameter from wbt_should_throttle

2021-01-25 Thread chenlei0x
From: Lei Chen The first parameter rwb is not used for this function. So just remove it. Signed-off-by: Lei Chen --- block/blk-wbt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/blk-wbt.c b/block/blk-wbt.c index 0321ca8..42aed01 100644 --- a/block/blk-wbt.c

[RFC PATCH v3 09/13] virtio/vsock: add SEQPACKET receive logic

2021-01-25 Thread Arseny Krasnov
This modifies current receive logic for SEQPACKET support: 1) Inserts 'SEQ_BEGIN' packet to socket's rx queue. 2) Inserts 'RW' packet to socket's rx queue, but without merging with buffer of last packet in queue. 3) Performs check for packet and socket types on receive(if mismatch, then

Re: [PATCH net-next] net: core: devlink: add new trap action HARD_DROP

2021-01-25 Thread Oleksandr Mazur
Thu, Jan 21, 2021 at 06:36:05PM CET, k...@kernel.org wrote: >On Thu, 21 Jan 2021 14:21:52 +0200 Ido Schimmel wrote: >> On Thu, Jan 21, 2021 at 01:29:37PM +0200, Oleksandr Mazur wrote: >> > Add new trap action HARD_DROP, which can be used by the >> > drivers to register traps, where it's impossible

[RFC v3 net-next] net: core: devlink: add 'dropped' stats field for DROP trap action

2021-01-25 Thread Oleksandr Mazur
Whenever query statistics is issued for trap with DROP action, devlink subsystem would also fill-in statistics 'dropped' field. In case if device driver did't register callback for hard drop statistics querying, 'dropped' field will be omitted and not filled. Add trap_drop_counter_get callback

[PATCH] PCI: endpoint: Select configfs dependency

2021-01-25 Thread Arnd Bergmann
From: Arnd Bergmann The newly added pci-epf-ntb driver uses configfs, which causes a link failure when that is disabled at compile-time: arm-linux-gnueabi-ld: drivers/pci/endpoint/functions/pci-epf-ntb.o: in function `epf_ntb_add_cfs': pci-epf-ntb.c:(.text+0x954): undefined reference to

Re: [PATCH] kasan: export kasan_poison

2021-01-25 Thread Vincenzo Frascino
On 1/25/21 11:28 AM, Arnd Bergmann wrote: > From: Arnd Bergmann > > The unit test module fails to build after adding a reference > to kasan_poison: > > ERROR: modpost: "kasan_poison" [lib/test_kasan.ko] undefined! > > Export this symbol to make it available to loadable modules. > > Fixes:

[PATCH] i915: Fix DRM_I915_WERROR dependencies

2021-01-25 Thread Arnd Bergmann
From: Arnd Bergmann CONFIG_DRM_I915_DEBUG now selects CONFIG_DRM_I915_WERROR, but fails to honor its dependencies: WARNING: unmet direct dependencies detected for DRM_I915_WERROR Depends on [n]: HAS_IOMEM [=y] && DRM_I915 [=m] && EXPERT [=y] && !COMPILE_TEST [=y] Selected by [m]: -

Re: [PATCH v3 0/5] Scan for an idle sibling in a single pass

2021-01-25 Thread Li, Aubrey
On 2021/1/25 17:04, Mel Gorman wrote: > On Mon, Jan 25, 2021 at 12:29:47PM +0800, Li, Aubrey wrote: > hackbench -l 2560 -g 1 on 8 cores arm64 > v5.11-rc4 : 1.355 (+/- 7.96) > + sis improvement : 1.923 (+/- 25%) > + the patch below : 1.332 (+/- 4.95) > > hackbench -l 2560 -g

[PATCH v3] x86/perf: Use static_call for x86_pmu.guest_get_msrs

2021-01-25 Thread Like Xu
Clean up that CONFIG_RETPOLINE crud and replace the indirect call x86_pmu.guest_get_msrs with static_call(). Suggested-by: Peter Zijlstra (Intel) Reported-by: kernel test robot Signed-off-by: Like Xu --- v2->v3 Changelog: - fix compiler warning from [-Wmissing-prototypes] v1->v2 Changelog: -

[PATCH v3] iio: adc: stm32-adc: enable timestamping for non-DMA usage

2021-01-25 Thread Ahmad Fatoum
For non-DMA usage, we have an easy way to associate a timestamp with a sample: iio_pollfunc_store_time stores a timestamp in the primary trigger IRQ handler and stm32_adc_trigger_handler runs in the IRQ thread to push out the buffer along with the timestamp. For this to work, the driver needs to

[PATCH 4/4] perf vendor events arm64: Reference common and uarch events for A76

2021-01-25 Thread John Garry
Reduce duplication in the JSONs by referencing standard events from armv8-common-and-microarch.json In general the "PublicDescription" fields are not modified when somewhat significantly worded differently than the standard. Apart from that, description and names for events slightly different to

[PATCH 2/4] perf vendor events arm64: Add common and uarch event JSON

2021-01-25 Thread John Garry
Add a common and microarch JSON, which can be referenced from CPU JSONs. For now, brief and public description are as event brief event description from the ARMv8 ARM [0], D7-11. The list of events is not complete, as not all events will be referenced yet. Reference document is at the

Re: [PATCH v3 00/17] KVM: x86/pmu: Add support to enable Guest PEBS via DS

2021-01-25 Thread Peter Zijlstra
On Mon, Jan 25, 2021 at 08:07:06PM +0800, Xu, Like wrote: > So under the premise that counter cross-mapping is allowed, > how can hypercall help fix it ? Hypercall or otherwise exposing the mapping, will let the guest fix it up when it already touches the data. Which avoids the host from having

Re: [PATCH v3 18/21] dt-bindings: allwinner: Add H616 compatible strings

2021-01-25 Thread Andre Przywara
On Sun, 17 Jan 2021 22:28:47 -0600 Samuel Holland wrote: Hi, > On 1/17/21 8:08 PM, Andre Przywara wrote: > > Add simple "allwinner,sun50i-h616-xxx" compatible names to existing > > bindings, and pair them with an existing fallback compatible string, > > as the devices are compatible. > > This

Re: [PATCH v3 2/4] drm/qxl: unpin release objects

2021-01-25 Thread Gerd Hoffmann
> > Just calling ttm_bo_unpin() here makes lockdep unhappy. > > How does that one splat? But yeah if that's a problem should be > explained in the comment. I'd then also only do a pin_count--; to make > sure you can still catch other pin leaks if you have them. Setting it > to 0 kinda defeats the

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