Re: [RESEND PATCH] ARM: dts: keystone-k2g-evm: fix rgmii phy-mode for ksz9031 phy

2020-07-24 Thread santosh.shilim...@oracle.com
Hi Arnd, Olof, On 7/24/20 2:42 PM, Grygorii Strashko wrote: Since commit bcf3440c6dd7 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY") the networking is broken on keystone-k2g-evm board. The above board have phy-mode = "rgmii-id" and it is worked before because KSZ9031 PHY started

[GIT PULL] nfsd bugfix for 5.8

2020-07-24 Thread J. Bruce Fields
Please pull: git://linux-nfs.org/~bfields/linux.git tags/nfsd-5.8-2 This is just one fix for a NULL dereference if someone happens to read /proc/fs/nfsd/client/../state at the wrong moment. --b. J. Bruce Fields (1): nfsd4: fix NULL dereference in nfsd/clients display code fs/nfsd/nfs4

Re: [PATCH v2 5/5] iio: sx9310: Enable vdd and svdd regulators at probe

2020-07-24 Thread Doug Anderson
Hi, On Fri, Jul 24, 2020 at 2:33 PM Stephen Boyd wrote: > > Enable the main power supply (vdd) and digital IO power supply (svdd) > during probe so that the i2c communication and device works properly on > boards that aggressively power gate these supplies. > > Cc: Gwendal Grignou > Cc: Daniel C

[PATCH][next] media: Use fallthrough pseudo-keyword

2020-07-24 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary fall-through markings when it is the case. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-

Re: [PATCH RFC 0/6] Add QCOM pwm-lpg and tri-led drivers

2020-07-24 Thread Pavel Machek
Hi! Dalsi cech co hackuje LEDky? > This series brings QCOM pwm-lpg and tri-led drivers from 4.14 that is > required to support pmic-connected notification LED. > This comes straight from downstream and I'm ready for your comments. Yeah, so... Bindings should go first, they may need to be conve

Re: [PATCH] media: davinci: vpif_capture: fix potential double free

2020-07-24 Thread Lad, Prabhakar
Hi Evgeny, On Fri, Jul 24, 2020 at 9:00 PM Evgeny Novikov wrote: > > Hi Lad, > > Yet again I can not demonstrate you a nice error trace corresponding to the > bug fixed by the patch. Indeed, there is a branch in vpif_probe() that > explicitly invokes vpif_probe_complete() and the patch targets

Re: [PATCH v4 0/9] bmips: add BCM63xx power domain controller

2020-07-24 Thread Florian Fainelli
On 6/13/20 1:21 AM, Álvaro Fernández Rojas wrote: > BCM6318, BCM6328, BCM6362 and BCM63268 SoCs have a power domain controller > to enable/disable certain components in order to save power. > > v4: Fix device tree bindings documentation. > v3: Introduce changes suggested by Florian: > - Use dt-b

[PATCH] watch_queue: Limit the number of watches a user can hold

2020-07-24 Thread David Howells
Impose a limit on the number of watches that a user can hold so that they can't use this mechanism to fill up all the available memory. This is done by putting a counter in user_struct that's incremented when a watch is allocated and decreased when it is released. If the number exceeds the RLIMIT

Re: [PATCH v2] sched,tracing: Convert to sched_set_fifo()

2020-07-24 Thread Steven Rostedt
On Fri, 24 Jul 2020 23:50:03 +0200 pet...@infradead.org wrote: > - if (producer_fifo < 0) > + if (producer_fifo) > + trace_printk("Running Producer at SCHED_FIFO %s\n", > + consumer_fifo == 1 ? "low" : "high"); I'm going to take cut-and-paste away from

Re: [PATCH v8 net-next] net: hyperv: dump TX indirection table to ethtool regs

2020-07-24 Thread David Miller
From: Chi Song Date: Thu, 23 Jul 2020 21:14:26 -0700 > An imbalanced TX indirection table causes netvsc to have low > performance. This table is created and managed during runtime. To help > better diagnose performance issues caused by imbalanced tables, it needs > make TX indirection tables visi

Re: [PATCH RFC V2 00/17] PKS: Add Protection Keys Supervisor (PKS) support

2020-07-24 Thread Kees Cook
On Fri, Jul 17, 2020 at 12:20:39AM -0700, ira.we...@intel.com wrote: > From: Ira Weiny > > This RFC series has been reviewed by Dave Hansen. > > Changes from RFC: > Clean up commit messages based on Peter Zijlstra's and Dave Hansen's > feedback > Fix static branch anti-

Re: [net-next v5 PATCH 0/7] Add PRP driver

2020-07-24 Thread David Miller
From: Murali Karicheri Date: Fri, 24 Jul 2020 08:27:01 -0400 > If there are no more comments, can we consider merging this to > net-next? I could re-base and repost if there is any conflict. I can't apply them until I next merge net into net-next, and I don't know exactly when that will happen y

Re: [PATCH 1/3] ARM: configs: at91: sama5: add support for KSZ ethernet switches

2020-07-24 Thread Alexandre Belloni
On Thu, 23 Jul 2020 19:24:32 +0300, Codrin Ciubotariu wrote: > Enable DSA and KSZ9477 support as modules. Ethernet switches are used by > the SAMA5D2-ICP board. Applied, thanks! [1/3] ARM: configs: at91: sama5: add support for KSZ ethernet switches commit: 6dadeab7d260eaa410649a48d8368e4d32

Re: [PATCH RFC 0/6] Add QCOM pwm-lpg and tri-led drivers

2020-07-24 Thread Martin Botka
Hi, Dalsi cech co hackuje LEDky? Nie. Slovak. Bindings should go first, they may need to be converted to yml (devicetree people will know). OK Can generic pwm driver be used here? I have not tried to do that. But considering it's custom chip from Qualcomm then it's unlikely. This is for RGB

Re: [RFC 0/7] Add support to process rx packets in thread

2020-07-24 Thread Florian Fainelli
On 7/23/20 11:20 PM, Rakesh Pillai wrote: > > >> -Original Message- >> From: Florian Fainelli >> Sent: Friday, July 24, 2020 12:33 AM >> To: Rakesh Pillai ; 'Andrew Lunn' >> >> Cc: ath...@lists.infradead.org; linux-wirel...@vger.kernel.org; linux- >> ker...@vger.kernel.org; kv...@codeau

Re: [PATCH RFC 0/6] Add QCOM pwm-lpg and tri-led drivers

2020-07-24 Thread Pavel Machek
Hi! > > Dalsi cech co hackuje LEDky? > > Nie. Slovak. Vitej do klubu :-). > > Bindings should go first, they may need to be converted to yml > > (devicetree people will know). > > OK I'm not 100% sure, please double check. > > Can generic pwm driver be used here? > > I have not tried to do

Re: [PATCH RFC 0/6] Add QCOM pwm-lpg and tri-led drivers

2020-07-24 Thread Pavel Machek
Hi! > Is this for phone, btw? If so, which one? > > Yes it is. And it's for many many phones actually. I have done this > mainly for SONY phones (Xperia 10, 10 Plus, XA2, XA2 Plus, XA2 Ultra). > All of them use these drivers for generating the PWM and controlling the LEDs. > > P.S resending bec

Re: [PATCH v1] spi: spi-topcliff-pch: use generic power management

2020-07-24 Thread Bjorn Helgaas
[+cc Rafael, in case you can clear up our wakeup confusion] original patch: https://lore.kernel.org/r/20200720155714.714114-1-vaibhavgupt...@gmail.com On Fri, Jul 24, 2020 at 11:16:55PM +0300, Andy Shevchenko wrote: > On Fri, Jul 24, 2020 at 6:17 PM Vaibhav Gupta > wrote: > > On Fri, Jul 24, 202

Re: [PATCH RFC leds + net-next v2 0/1] Add support for LEDs on Marvell PHYs

2020-07-24 Thread Pavel Machek
On Fri 2020-07-24 15:12:33, Marek Behún wrote: > On Fri, 24 Jul 2020 12:29:01 +0200 > Pavel Machek wrote: > > > In future, would you expect having software "1000/100/10/nolink" > > triggers I could activate on my scrollock LED (or on GPIO controlled > > LEDs) to indicate network activity? > > Lo

Re: [PATCH v2 0/8] kcsan: Compound read-write instrumentation

2020-07-24 Thread Paul E. McKenney
On Fri, Jul 24, 2020 at 10:39:20AM +0200, Peter Zijlstra wrote: > On Fri, Jul 24, 2020 at 09:00:00AM +0200, Marco Elver wrote: > > > Marco Elver (8): > > kcsan: Support compounded read-write instrumentation > > objtool, kcsan: Add __tsan_read_write to uaccess whitelist > > kcsan: Skew delay

Re: get rid of the address_space override in setsockopt v2

2020-07-24 Thread David Miller
From: Christoph Hellwig Date: Thu, 23 Jul 2020 08:08:42 +0200 > setsockopt is the last place in architecture-independ code that still > uses set_fs to force the uaccess routines to operate on kernel pointers. > > This series adds a new sockptr_t type that can contained either a kernel > or user

Re: [PATCH RFC 0/6] Add QCOM pwm-lpg and tri-led drivers

2020-07-24 Thread Martin Botka
> Vitej do klubu :-). Dakujem > Please double check. Actually, is the series for one chip or for two > of them? LED framework should is happy to talk to generic pwm driver... I'm not sure on that one. I will have to talk to some people about that. I will get back to you on that when i find out h

Re: [PATCH RFC 0/6] Add QCOM pwm-lpg and tri-led drivers

2020-07-24 Thread Martin Botka
> First copy was ok. Second had broken formatting. Both were plaintext > AFAICT. It's just that gmail was telling me that it didn't send it to some of the email addresses because i forgot to check the "Use plain text" in Gmail.

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

2020-07-24 Thread Stefano Stabellini
On Thu, 23 Jul 2020, Anchal Agarwal wrote: > On Wed, Jul 22, 2020 at 04:49:16PM -0700, Stefano Stabellini wrote: > > CAUTION: This email originated from outside of the organization. Do not > > click links or open attachments unless you can confirm the sender and know > > the content is safe. > >

[PATCH] scripts/kernel-doc: optionally treat warnings as errors

2020-07-24 Thread Pierre-Louis Bossart
The kbuild bot recently added the W=1 option, which triggered documentation cleanups to squelch hundreds of kernel-doc warnings. To make sure new kernel contributions don't add regressions to kernel-doc descriptors, this patch suggests an option to treat warnings as errors in CI/automated tests. A

Re: [PATCH 4/7] gpio: dwapb: Convert driver to using the GPIO-lib-based IRQ-chip

2020-07-24 Thread Serge Semin
On Thu, Jul 23, 2020 at 01:03:17PM +0300, Andy Shevchenko wrote: > On Thu, Jul 23, 2020 at 04:38:55AM +0300, Serge Semin wrote: > > GPIO-lib provides a ready-to-use interface to initialize an IRQ-chip on > > top of a GPIO chip. It's better from maintainability and readability > > point of view to u

Re: [PATCH] Drivers: hv: vmbus: Fix variable assignments in hv_ringbuffer_read()

2020-07-24 Thread Andres Beltran
On Fri, Jul 24, 2020 at 1:10 PM Stephen Hemminger wrote: > What is the rationale for this change, it may break other code. > > A common API model in Windows world where this originated > is to have a call where caller first > makes request and then if the requested buffer is not big enough the > c

Re: [RFC 2/7] ath10k: Add support to process rx packet in thread

2020-07-24 Thread Jacob Keller
On 7/23/2020 11:25 AM, Rakesh Pillai wrote: > Hi Rajkumar, > In linux, the IRQs are directed to the first core which is booted. > I see that all the IRQs are getting routed to CORE0 even if its heavily > loaded. > You should be able to configure the initial IRQ setup so that they don't all go

Re: rtsx_pci not restoring ASPM state after suspend/resume

2020-07-24 Thread Bjorn Helgaas
On Fri, Jul 24, 2020 at 07:16:26AM +, 吳昊澄 Ricky wrote: > Hi James, Bjorn, > > The Card reader(10ec:5287) is a combo chip with Ethernet(10ec:8168), > we think it is not cause by setting our device config space in idle > time. > > We dis/enable the ASPM(setting config space) at busy/idle time, i

drivers/gpu/drm/radeon/radeon_ttm.c:979:21: sparse: sparse: incorrect type in initializer (different address spaces)

2020-07-24 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f37e99aca03f63aa3f2bd13ceaf769455d12c4b0 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 5 weeks ago config: arm-randconfig-s032-20200723 (attached a

[GIT PULL] cpupower update for Linux 5.9-rc1

2020-07-24 Thread Shuah Khan
Hi Rafael, Please pull the following cpupower update for Linux 5.9-rc1. This cpupower update for Linux 5.9-rc1 consists of 2 fixes to coccicheck warnings and one change to replacing HTTP links with HTTPS ones. diff is attached. thanks, -- Shuah

Re: [PATCH v5 0/7] x86/boot: Remove run-time relocations from compressed kernel

2020-07-24 Thread Kees Cook
On Sat, Jul 18, 2020 at 08:44:50AM +0300, Ard Biesheuvel wrote: > On Fri, 17 Jul 2020 at 21:17, Nick Desaulniers > wrote: > > > > On Fri, Jul 17, 2020 at 6:46 AM Arvind Sankar wrote: > > > > > > On Tue, Jul 14, 2020 at 08:41:26PM -0400, Arvind Sankar wrote: > > > > The compressed kernel currentl

Re: [v7, PATCH 7/7] drm/mediatek: add support for mediatek SOC MT8183

2020-07-24 Thread Chun-Kuang Hu
Hi Yongqiang: Yongqiang Niu 於 2020年7月23日 週四 上午10:15寫道: > > This patch add support for mediatek SOC MT8183 > 1.ovl_2l share driver with ovl I think this is done in [1], [2], [3], this patch just add the support of mt8183-ovl and mt8183-ovl-2l. [1] https://git.kernel.org/pub/scm/linux/kernel/git

Re: [PATCH] sh: add missing EXPORT_SYMBOL() for __delay

2020-07-24 Thread Andrew Morton
On Fri, 24 Jul 2020 15:44:23 -0400 Rich Felker wrote: > Andrew, could you drop your copy of this > patch? I have done so, thanks.

Re: [RFC PATCH] mm: silence soft lockups from unlock_page

2020-07-24 Thread Linus Torvalds
On Fri, Jul 24, 2020 at 10:32 AM Linus Torvalds wrote: > Ok, that makes sense. Except you did it on top of the original patch > without the fix to set WQ_FLAG_WOKEN for the non-wakeup case. Hmm. I just realized that one thing we could do is to not even test the page bit for the shared case in th

Re: [Linux-kernel-mentees] [PATCH net] AX.25: Prevent out-of-bounds read in ax25_sendmsg()

2020-07-24 Thread David Ranch
I need to ask the following question to the Linux kernel community as the AX25 amateur radio community is already having to work around a few broken commits that were committed 4.1.22+: Is anyone actually _*testing*_ these proposed changes to make sure the AX.25 and related ecosystem still

Re: [PATCH v4 3/7] vmalloc: Add text_alloc() and text_free()

2020-07-24 Thread Jarkko Sakkinen
On Fri, Jul 24, 2020 at 01:13:02PM +0300, Mike Rapoport wrote: > On Fri, Jul 24, 2020 at 01:28:35AM +0300, Jarkko Sakkinen wrote: > > On Sat, Jul 18, 2020 at 07:23:59PM +0300, Mike Rapoport wrote: > > > On Fri, Jul 17, 2020 at 06:04:17AM +0300, Jarkko Sakkinen wrote: > > > > Introduce functions for

Re: [Softirq] a76eadba0d: WARNING:at_net/mac80211/rx.c:#ieee80211_rx_napi[mac80211]

2020-07-24 Thread Thomas Gleixner
jun qian writes: > I have two questions that need to be discussed. > > 1. If the __do_sofrirq() is executed in the ksoftirqd, we may not need > to check the timeout in the loop. > 2. Both the invoke_softirq() and run_ksoftirqd() will execute > __do_sofirq, they all execute the same code, > wh

Re: [PATCH 3/3] sparc: Drop unused MAX_PHYSADDR_BITS

2020-07-24 Thread David Miller
From: Arvind Sankar Date: Thu, 23 Jul 2020 19:15:44 -0400 > The macro is not used anywhere, so remove the definition. > > Signed-off-by: Arvind Sankar Acked-by: David S. Miller

Re: [PATCH v5 5/6] kprobes: Use text_alloc() and text_free()

2020-07-24 Thread Jarkko Sakkinen
On Fri, Jul 24, 2020 at 01:27:48PM +0300, Mike Rapoport wrote: > On Fri, Jul 24, 2020 at 08:05:52AM +0300, Jarkko Sakkinen wrote: > > Use text_alloc() and text_free() instead of module_alloc() and > > module_memfree() when an arch provides them. > > > > Cc: linux...@kvack.org > > Cc: Andi Kleen >

Re: [PATCH v4 3/7] vmalloc: Add text_alloc() and text_free()

2020-07-24 Thread Jarkko Sakkinen
On Sat, Jul 25, 2020 at 02:31:16AM +0300, Jarkko Sakkinen wrote: > On Fri, Jul 24, 2020 at 01:13:02PM +0300, Mike Rapoport wrote: > > On Fri, Jul 24, 2020 at 01:28:35AM +0300, Jarkko Sakkinen wrote: > > > On Sat, Jul 18, 2020 at 07:23:59PM +0300, Mike Rapoport wrote: > > > > On Fri, Jul 17, 2020 at

[PATCH v2 2/2] of: property: Add device link support for pinctrl-0 through pinctrl-8

2020-07-24 Thread Saravana Kannan
Add support for pinctrl-0 through pinctrl-8 explicitly instead of trying to add support for pinctrl-%d properties. Of all the pinctrl-* properties in dts files (20322), only 47% (9531) are pinctrl-%d properties. Of all the pinctrl-%d properties, 99.5% (9486) are made up of pinctrl-[0-2]. 'pinctrl-

Re: [RFC, WIP, v7 0/4] media: vidtv: implement a virtual DVB driver

2020-07-24 Thread Shuah Khan
Hi Mauro, On 6/8/20 1:13 PM, Daniel W. S. Almeida wrote: From: "Daniel W. S. Almeida" This series is work in progress. It represents the current work done on a virtual DVB driver for the Linux media subsystem. I am new to the media subsystem and to kernel development in general. This driver a

[PATCH v2 1/2] of: property: Add device link support for multiple DT bindings

2020-07-24 Thread Saravana Kannan
Add support for creating device links out of the following DT bindings: - interrupts-extended - nvmem-cells - phys - wakeup-parent Signed-off-by: Saravana Kannan --- v1->v2: No changes. Just sending again because v2 has changes in Patch 2/2. drivers/of/property.c | 9 + 1 file changed,

[PATCH] x86/split_lock: Enumerate split lock feature on Sapphire Rapids and Alder Lake

2020-07-24 Thread Fenghua Yu
Add Sapphire Rapids and Alder Lake processors to CPU list to enumerate split lock feature. Signed-off-by: Fenghua Yu Reviewed-by: Tony Luck --- This patch supersedes https://lore.kernel.org/lkml/1593208534-33721-1-git-send-email-fenghua...@intel.com/ and is applied on top of Alder Lake Intel f

Re: [PATCH 10/11] media: exynos4-is: Prevent duplicate call to media_pipeline_stop

2020-07-24 Thread Jonathan Bakker
Hi Tomasz, On 2020-07-20 6:10 a.m., Tomasz Figa wrote: > On Sat, Jul 11, 2020 at 8:17 PM Jonathan Bakker wrote: >> >> Hi Tomasz, >> >> On 2020-07-07 11:44 a.m., Tomasz Figa wrote: >>> Hi Jonathan, >>> >>> On Sat, Apr 25, 2020 at 07:26:49PM -0700, Jonathan Bakker wrote: media_pipeline_stop ca

Re: Minor RST rant

2020-07-24 Thread NeilBrown
On Fri, Jul 24 2020, Steven Rostedt wrote: > On Fri, 24 Jul 2020 11:33:25 -0600 > Jonathan Corbet wrote: > >> Give people a tool, some of them will make more use of it than you might >> like. I do my best to push back against excessive markup (which all of the >> above qualifies as, as far as I'm

Re: [PATCH] lib: kunit: Convert test_sort to KUnit test

2020-07-24 Thread kernel test robot
Hi Vitor, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on d43c7fb05765152d4d4a39a8ef957c4ea14d8847] url: https://github.com/0day-ci/linux/commits/Vitor-Massaru-Iha/lib-kunit-Convert-test_sort-to-KUnit-test/20200723-081244 base:d43c7fb05765152d4d4a39a8ef

Re: [PATCH v3 4/4] bus: mhi: clients: Add user space client interface driver

2020-07-24 Thread Hemant Kumar
Hi Mani, On 7/22/20 1:45 AM, Manivannan Sadhasivam wrote: On Mon, Jul 20, 2020 at 08:40:24PM -0700, Hemant Kumar wrote: Hi Mani, On 6/19/20 3:40 AM, Manivannan Sadhasivam wrote: On Thu, Jun 11, 2020 at 11:13:44AM -0700, Hemant Kumar wrote: This MHI client driver allows user space clients to

Re: [PATCH v5 07/10] bus: mhi: core: Introduce debugfs entries for MHI

2020-07-24 Thread kernel test robot
ttps://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Bhaumik-Bhatt/Introduce-features-and-debugfs-sysfs-entries-for-MHI/20200724-063954 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git d15be546031cf65a0fc34879beca02fd90fe7ac7 conf

Re: [PATCH v1] ata: use generic power management

2020-07-24 Thread kernel test robot
Hi Vaibhav, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on block/for-next] [also build test WARNING on v5.8-rc6 next-20200724] [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: [PATCH v6] Makefile: Add clang-tidy and static analyzer support to makefile

2020-07-24 Thread Nick Desaulniers
On Fri, Jul 24, 2020 at 12:38 PM 'Nathan Huckleberry' via Clang Built Linux wrote: > > This patch adds clang-tidy and the clang static-analyzer as make > targets. The goal of this patch is to make static analysis tools > usable and extendable by any developer or researcher who is familiar > with b

Re: [PATCH] octeontx2-af: Fix use of uninitialized pointer bmap

2020-07-24 Thread David Miller
From: Dinghao Liu Date: Fri, 24 Jul 2020 16:06:57 +0800 > If req->ctype does not match any of NIX_AQ_CTYPE_CQ, > NIX_AQ_CTYPE_SQ or NIX_AQ_CTYPE_RQ, pointer bmap will remain > uninitialized and be accessed in test_bit(), which can lead > to kernal crash. This can never happen. > Fix this by ret

Re: Minor RST rant

2020-07-24 Thread NeilBrown
On Fri, Jul 24 2020, Steven Rostedt wrote: > On Fri, 24 Jul 2020 18:41:30 +0100 > Matthew Wilcox wrote: > >> Great example. Some people definitely go too far with rst markup, and >> we generally try to discourage it. And I'm pretty sure we take patches > > I'd send patches but I suck at markup

Re: [PATCH v2] xen-netfront: fix potential deadlock in xennet_remove()

2020-07-24 Thread David Miller
From: Andrea Righi Date: Fri, 24 Jul 2020 10:59:10 +0200 > There's a potential race in xennet_remove(); this is what the driver is > doing upon unregistering a network device: > > 1. state = read bus state > 2. if state is not "Closed": > 3.request to set state to "Closing" > 4.w

RE: [Intel-wired-lan] [PATCH] ixgbe: use eth_zero_addr() to clear mac address

2020-07-24 Thread Bowers, AndrewX
> -Original Message- > From: Intel-wired-lan On Behalf Of > linmiaohe > Sent: Monday, July 20, 2020 1:28 AM > To: Kirsher, Jeffrey T ; da...@davemloft.net; > k...@kernel.org > Cc: linmia...@huawei.com; net...@vger.kernel.org; intel-wired- > l...@lists.osuosl.org; linux-kernel@vger.kernel.o

Re: [PATCH net-next v4 1/2] hinic: add support to handle hw abnormal event

2020-07-24 Thread David Miller
From: Luo bin Date: Fri, 24 Jul 2020 17:17:31 +0800 > +static int hinic_fw_reporter_dump(struct devlink_health_reporter *reporter, > + struct devlink_fmsg *fmsg, void *priv_ctx, > + struct netlink_ext_ack *extack) > +{ > + int err; >

[PATCH bpf-next 01/35] bpf: memcg-based memory accounting for bpf progs

2020-07-24 Thread Roman Gushchin
Include memory used by bpf programs into the memcg-based accounting. This includes the memory used by programs itself, auxiliary data and statistics. Signed-off-by: Roman Gushchin --- kernel/bpf/core.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/bpf/core.c

[PATCH bpf-next 33/35] bpf: selftests: don't touch RLIMIT_MEMLOCK

2020-07-24 Thread Roman Gushchin
Since bpf is not using memlock rlimit for memory accounting, there are no more reasons to bump the limit. Signed-off-by: Roman Gushchin --- tools/testing/selftests/bpf/bench.c | 16 --- .../selftests/bpf/progs/bpf_iter_bpf_map.c| 5 ++--- tools/testing/selftests/bpf/xd

[PATCH bpf-next 32/35] bpf: selftests: delete bpf_rlimit.h

2020-07-24 Thread Roman Gushchin
As rlimit-based memory accounting is not used by bpf anymore, there are no more reasons to play with memlock rlimit. Delete bpf_rlimit.h which contained a code to bump the limit. Signed-off-by: Roman Gushchin --- samples/bpf/hbm.c | 1 - tools/testing/selftests/bpf/

[PATCH bpf-next 29/35] bpf: libbpf: cleanup RLIMIT_MEMLOCK usage

2020-07-24 Thread Roman Gushchin
As bpf is not using memlock rlimit for memory accounting anymore, let's remove the related code from libbpf. Bpf operations can't fail because of exceeding the limit anymore. Signed-off-by: Roman Gushchin --- tools/lib/bpf/libbpf.c | 31 +-- tools/lib/bpf/libbpf.h |

[PATCH bpf-next 12/35] bpf: refine memcg-based memory accounting for xskmap maps

2020-07-24 Thread Roman Gushchin
Extend xskmap memory accounting to include the memory taken by the xsk_map_node structure. Signed-off-by: Roman Gushchin --- net/xdp/xskmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/xdp/xskmap.c b/net/xdp/xskmap.c index 8367adbbe9df..e574b22defe5 100644 --- a/ne

[PATCH bpf-next 34/35] bpf: samples: do not touch RLIMIT_MEMLOCK

2020-07-24 Thread Roman Gushchin
Since bpf is not using rlimit memlock for the memory accounting and control, do not change the limit in sample applications. Signed-off-by: Roman Gushchin --- samples/bpf/map_perf_test_user.c| 11 --- samples/bpf/offwaketime_user.c | 2 -- samples/bpf/sockex2_user.c |

[PATCH bpf-next 30/35] bpf: bpftool: do not touch RLIMIT_MEMLOCK

2020-07-24 Thread Roman Gushchin
Since bpf stopped using memlock rlimit to limit the memory usage, there is no more reason for bpftool to alter its own limits. Signed-off-by: Roman Gushchin --- tools/bpf/bpftool/common.c | 7 --- tools/bpf/bpftool/feature.c| 2 -- tools/bpf/bpftool/main.h | 2 -- tools/bpf/bpf

[PATCH bpf-next 31/35] bpf: runqslower: don't touch RLIMIT_MEMLOCK

2020-07-24 Thread Roman Gushchin
Since bpf is not using memlock rlimit for memory accounting, there are no more reasons to bump the limit. Signed-off-by: Roman Gushchin --- tools/bpf/runqslower/runqslower.c | 16 1 file changed, 16 deletions(-) diff --git a/tools/bpf/runqslower/runqslower.c b/tools/bpf/runqsl

[PATCH bpf-next 09/35] bpf: memcg-based memory accounting for bpf ringbuffer

2020-07-24 Thread Roman Gushchin
Enable the memcg-based memory accounting for the memory used by the bpf ringbuffer. Signed-off-by: Roman Gushchin --- kernel/bpf/ringbuf.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kernel/bpf/ringbuf.c b/kernel/bpf/ringbuf.c index 002f8a5c9e51..e8e2c39cbdc9 100

[PATCH bpf-next 21/35] bpf: eliminate rlimit-based memory accounting for reuseport_array maps

2020-07-24 Thread Roman Gushchin
Do not use rlimit-based memory accounting for reuseport_array maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/reuseport_array.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/kernel/bpf/reuseport_a

[PATCH bpf-next 17/35] bpf: eliminate rlimit-based memory accounting for devmap maps

2020-07-24 Thread Roman Gushchin
Do not use rlimit-based memory accounting for devmap maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/devmap.c | 18 ++ 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/kernel/bpf/devmap.c b/kernel/bpf/d

[PATCH bpf-next 22/35] bpf: eliminate rlimit-based memory accounting for bpf ringbuffer

2020-07-24 Thread Roman Gushchin
Do not use rlimit-based memory accounting for bpf ringbuffer. It has been replaced with the memcg-based memory accounting. bpf_ringbuf_alloc() can't return anything except ERR_PTR(-ENOMEM) and a valid pointer, so to simplify the code make it return NULL in the first case. This allows to drop a cou

[PATCH bpf-next 14/35] bpf: eliminate rlimit-based memory accounting for bpf_struct_ops maps

2020-07-24 Thread Roman Gushchin
Do not use rlimit-based memory accounting for bpf_struct_ops maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/bpf_struct_ops.c | 19 +++ 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/kernel/bpf/bpf_st

Re: [PATCH 4/7] gpio: dwapb: Convert driver to using the GPIO-lib-based IRQ-chip

2020-07-24 Thread Serge Semin
On Thu, Jul 23, 2020 at 05:08:15PM +0300, Andy Shevchenko wrote: > On Thu, Jul 23, 2020 at 04:38:55AM +0300, Serge Semin wrote: > > GPIO-lib provides a ready-to-use interface to initialize an IRQ-chip on > > top of a GPIO chip. It's better from maintainability and readability > > point of view to u

[PATCH bpf-next 15/35] bpf: eliminate rlimit-based memory accounting for cpumap maps

2020-07-24 Thread Roman Gushchin
Do not use rlimit-based memory accounting for cpumap maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/cpumap.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/kernel/bpf/cpumap.c b/kernel/bpf/cpum

[PATCH bpf-next 27/35] bpf: eliminate rlimit-based memory accounting infra for bpf maps

2020-07-24 Thread Roman Gushchin
Remove rlimit-based accounting infrastructure code, which is not used anymore. Signed-off-by: Roman Gushchin --- include/linux/bpf.h | 12 kernel/bpf/syscall.c | 64 +-- .../selftests/bpf/progs/map_ptr_kern.c| 5 --

[PATCH bpf-next 23/35] bpf: eliminate rlimit-based memory accounting for sock_map maps

2020-07-24 Thread Roman Gushchin
Do not use rlimit-based memory accounting for sock_map maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- net/core/sock_map.c | 21 ++--- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/net/core/sock_map.c b/net/cor

[PATCH bpf-next 24/35] bpf: eliminate rlimit-based memory accounting for stackmap maps

2020-07-24 Thread Roman Gushchin
Do not use rlimit-based memory accounting for stackmap maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/stackmap.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/kernel/bpf/stackmap.c b/kernel/b

[PATCH bpf-next 06/35] bpf: refine memcg-based memory accounting for devmap maps

2020-07-24 Thread Roman Gushchin
Include map metadata and the node size (struct bpf_dtab_netdev) on element update into the accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/devmap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/devmap.c b/kernel/bpf/devmap.c index 10abb06065bb..05bf

[PATCH bpf-next 10/35] bpf: memcg-based memory accounting for socket storage maps

2020-07-24 Thread Roman Gushchin
Account memory used by the socket storage. Signed-off-by: Roman Gushchin --- net/core/bpf_sk_storage.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/net/core/bpf_sk_storage.c b/net/core/bpf_sk_storage.c index eafcd15e7dfd..fbcd03cd00d3 100644 --- a/net/core/bpf

[PATCH bpf-next 26/35] bpf: eliminate rlimit-based memory accounting for xskmap maps

2020-07-24 Thread Roman Gushchin
Do not use rlimit-based memory accounting for xskmap maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- net/xdp/xskmap.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/net/xdp/xskmap.c b/net/xdp/xskmap.c index e574b

[PATCH bpf-next 28/35] bpf: eliminate rlimit-based memory accounting for bpf progs

2020-07-24 Thread Roman Gushchin
Do not use rlimit-based memory accounting for bpf progs. It has been replaced with memcg-based memory accounting. Signed-off-by: Roman Gushchin --- include/linux/bpf.h | 11 -- kernel/bpf/core.c| 12 ++- kernel/bpf/syscall.c | 86 ++-- 3 files

[PATCH bpf-next 18/35] bpf: eliminate rlimit-based memory accounting for hashtab maps

2020-07-24 Thread Roman Gushchin
Do not use rlimit-based memory accounting for hashtab maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/hashtab.c | 19 +-- 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/kernel/bpf/hashtab.c b/kernel/bp

[PATCH bpf-next 35/35] perf: don't touch RLIMIT_MEMLOCK

2020-07-24 Thread Roman Gushchin
Since bpf stopped using memlock rlimit to limit the memory usage, there is no more reason for perf to alter its own limit. Signed-off-by: Roman Gushchin --- tools/perf/builtin-trace.c | 10 -- tools/perf/tests/builtin-test.c | 6 -- tools/perf/util/Build | 1 - tools

[PATCH bpf-next 03/35] bpf: refine memcg-based memory accounting for arraymap maps

2020-07-24 Thread Roman Gushchin
Include percpu arrays and auxiliary data into the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/arraymap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/bpf/arraymap.c b/kernel/bpf/arraymap.c index 8ff419b632a6..9597fecff8da 100644

[PATCH bpf-next 08/35] bpf: memcg-based memory accounting for lpm_trie maps

2020-07-24 Thread Roman Gushchin
Include lpm trie and lpm trie node objects into the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/lpm_trie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/lpm_trie.c b/kernel/bpf/lpm_trie.c index 44474bf3ab7a..d85e0fc2cafc 100644

[PATCH bpf-next 16/35] bpf: eliminate rlimit-based memory accounting for cgroup storage maps

2020-07-24 Thread Roman Gushchin
Do not use rlimit-based memory accounting for cgroup storage maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/local_storage.c | 21 + 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/kernel/bpf/local_

[PATCH bpf-next 25/35] bpf: eliminate rlimit-based memory accounting for socket storage maps

2020-07-24 Thread Roman Gushchin
Do not use rlimit-based memory accounting for socket storage maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- net/core/bpf_sk_storage.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/net/core/bpf_sk_storage.c b/net/core/bpf_sk_

[PATCH bpf-next 19/35] bpf: eliminate rlimit-based memory accounting for lpm_trie maps

2020-07-24 Thread Roman Gushchin
Do not use rlimit-based memory accounting for lpm_trie maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/lpm_trie.c | 13 - 1 file changed, 13 deletions(-) diff --git a/kernel/bpf/lpm_trie.c b/kernel/bpf/lpm_trie.c index

[PATCH bpf-next 20/35] bpf: eliminate rlimit-based memory accounting for queue_stack_maps maps

2020-07-24 Thread Roman Gushchin
Do not use rlimit-based memory accounting for queue_stack maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/queue_stack_maps.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/kernel/bpf/queue_stac

[PATCH bpf-next 05/35] bpf: memcg-based memory accounting for cgroup storage maps

2020-07-24 Thread Roman Gushchin
Account memory used by cgroup storage maps including the percpu memory for the percpu flavor of cgroup storage and map metadata. Signed-off-by: Roman Gushchin --- kernel/bpf/local_storage.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/kernel/bpf/local_sto

[PATCH bpf-next 13/35] bpf: eliminate rlimit-based memory accounting for arraymap maps

2020-07-24 Thread Roman Gushchin
Do not use rlimit-based memory accounting for arraymap maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/arraymap.c | 24 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/kernel/bpf/arraymap.c b/

[PATCH bpf-next 11/35] bpf: refine memcg-based memory accounting for sockmap maps

2020-07-24 Thread Roman Gushchin
Include sockmap internal metadata into the memcg-based memory accounting. Also include the memory allocated on updating an element. Signed-off-by: Roman Gushchin --- net/core/sock_map.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/net/core/sock_map.c b/net/core/sock

[PATCH bpf-next 00/35] bpf: switch to memcg-based memory accounting

2020-07-24 Thread Roman Gushchin
Currently bpf is using the memlock rlimit for the memory accounting. This approach has its downsides and over time has created a significant amount of problems: 1) The limit is per-user, but because most bpf operations are performed as root, the limit has a little value. 2) It's hard to come u

[PATCH bpf-next 07/35] bpf: refine memcg-based memory accounting for hashtab maps

2020-07-24 Thread Roman Gushchin
Include percpu objects and the size of map metadata into the accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/hashtab.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/kernel/bpf/hashtab.c b/kernel/bpf/hashtab.c index 024276787055..9d0432170812 100644 -

[PATCH bpf-next 04/35] bpf: refine memcg-based memory accounting for cpumap maps

2020-07-24 Thread Roman Gushchin
Include metadata and percpu data into the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/cpumap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/cpumap.c b/kernel/bpf/cpumap.c index f1c46529929b..74ae9fcbe82e 100644 --- a/kernel/bp

[PATCH bpf-next 02/35] bpf: memcg-based memory accounting for bpf maps

2020-07-24 Thread Roman Gushchin
This patch enables memcg-based memory accounting for memory allocated by __bpf_map_area_alloc(), which is used by most map types for large allocations. Following patches in the series will refine the accounting for some map types. Signed-off-by: Roman Gushchin --- kernel/bpf/syscall.c | 2 +- 1

Re: [PATCH RFC V2 17/17] x86/entry: Preserve PKRS MSR across exceptions

2020-07-24 Thread Andy Lutomirski
On Fri, Jul 24, 2020 at 2:25 PM Thomas Gleixner wrote: > > Ira, > > Thomas Gleixner writes: > > Ira Weiny writes: > >> On Thu, Jul 23, 2020 at 09:53:20PM +0200, Thomas Gleixner wrote: > >> I think, after fixing my code (see below), using idtentry_state could still > >> work. If the per-cpu cach

Re: [PATCH][V2] sctp: remove redundant initialization of variable status

2020-07-24 Thread David Miller
From: Colin King Date: Fri, 24 Jul 2020 14:09:19 +0100 > From: Colin Ian King > > The variable status is being initialized with a value that is never read > and it is being updated later with a new value. The initialization is > redundant and can be removed. Also put the variable declarations

[PATCH v2] ARM: milbeaut: Fix possible device node reference leak

2020-07-24 Thread Yi Wang
From: Liao Pingfang The variable np in function m10v_smp_init takes the return value of of_find_compatible_node, which gets a node but does not put it. If this node is not put it may cause a memory leak. Hence put np after its life has been exhausted. Signed-off-by: Liao Pingfang Signed-off-by:

[PATCH] block: Fix reference count leak in blk_integrity_add

2020-07-24 Thread Yi Wang
From: Liao Pingfang kobject_init_and_add() takes reference even when it fails. If this function returns an error, kobject_put() must be called to properly clean up the memory associated with the object. Signed-off-by: Liao Pingfang Signed-off-by: Yi Wang --- block/blk-integrity.c | 4 +++- 1

[PATCH] sh: sh4: Fix reference count leak in sq_dev_add

2020-07-24 Thread Yi Wang
From: Liao Pingfang kobject_init_and_add() takes reference even when it fails. If this function returns an error, kobject_put() must be called to properly clean up the memory associated with the object. Signed-off-by: Liao Pingfang Signed-off-by: Yi Wang --- arch/sh/kernel/cpu/sh4/sq.c | 2 ++

Re: [PATCH v2 3/5] iio: sx9310: whoami is unsigned

2020-07-24 Thread Daniel Campello
On Fri, Jul 24, 2020 at 3:33 PM Stephen Boyd wrote: > > This is an unsigned value, actually it's a u8 but regmap doesn't handle > that easily. Let's make it unsigned throughout so that we don't need to > worry about signed vs. unsigned comparison behavior. > > Cc: Gwendal Grignou > Cc: Daniel Cam

<    9   10   11   12   13   14   15   >