[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 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 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 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 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 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

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; >

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 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: 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] 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: [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 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 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 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] 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: 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 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

[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

[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 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

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

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 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: [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 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: [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: [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: [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: [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

[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

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

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

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: [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: [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

[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 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. > >

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 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: 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 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: [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 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 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 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: [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 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: [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: [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 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: [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

[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 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

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

[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 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

[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: [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

Re: [PATCH v2 4/5] iio: sx9310: Drop channel_users[]

2020-07-24 Thread Doug Anderson
Hi, On Fri, Jul 24, 2020 at 2:33 PM Stephen Boyd wrote: > > This struct member isn't used. Drop it. > > Cc: Gwendal Grignou > Cc: Daniel Campello > Cc: Hartmut Knaack > Cc: Lars-Peter Clausen > Cc: Peter Meerwald-Stadler > Cc: Douglas Anderson > Fixes: 72ad02b15d63 ("iio: Add SEMTECH SX9310

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

2020-07-24 Thread Doug Anderson
Hi, On Fri, Jul 24, 2020 at 2: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: Danie

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

2020-07-24 Thread peterz
Subject: sched,tracing: Convert to sched_set_fifo() From: Peter Zijlstra Date: Mon, 20 Jul 2020 23:49:18 +0200 One module user of sched_setscheduler() was overlooked and is obviously causing build failures. Convert ring_buffer_benchmark to use sched_set_fifo_low() when fifo==1 and sched_set_fi

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

2020-07-24 Thread Steven Rostedt
On Fri, 24 Jul 2020 23:39:11 +0200 pet...@infradead.org wrote: > On Mon, Jul 20, 2020 at 11:49:18PM +0200, Peter Zijlstra wrote: > > Steve, would this work for you, or would you prefer renaming the > > parameters as well? > > Steve mentioned he's like to have the parameters changes after all. >

Re: [PATCH] netlink: add buffer boundary checking

2020-07-24 Thread Mark Salyzyn
On 7/24/20 2:14 PM, Jacob Keller wrote: On 7/23/2020 12:35 PM, Eric Dumazet wrote: On 7/23/20 11:21 AM, Mark Salyzyn wrote: Many of the nla_get_* inlines fail to check attribute's length before copying the content resulting in possible out-of-boundary accesses. Adjust the inlines to perform nl

[PATCH v3 16/19] fs/kernel_file_read: Add "offset" arg for partial reads

2020-07-24 Thread Kees Cook
To perform partial reads, callers of kernel_read_file*() must have a non-NULL file_size argument and a preallocated buffer. The new "offset" argument can then be used to seek to specific locations in the file to fill the buffer to, at most, "buf_size" per call. Where possible, the LSM hooks can re

[PATCH v3 19/19] test_firmware: Test partial read support

2020-07-24 Thread Kees Cook
From: Scott Branden Add additional hooks to test_firmware to pass in support for partial file read using request_firmware_into_buf(): buf_size: size of buffer to request firmware into partial: indicates that a partial file request is being made file_offset: to indicate of

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

2020-07-24 Thread Grygorii Strashko
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 with default RGMII internal delays configuration (TX off, RX o

[PATCH v3 18/19] firmware: Add request_partial_firmware_into_buf()

2020-07-24 Thread Kees Cook
From: Scott Branden Add request_partial_firmware_into_buf() to allow for portions of a firmware file to be read into a buffer. This is needed when large firmware must be loaded in portions from a file on memory constrained systems. Signed-off-by: Scott Branden Co-developed-by: Kees Cook Signed

[PATCH v3 17/19] firmware: Store opt_flags in fw_priv

2020-07-24 Thread Kees Cook
Instead of passing opt_flags around so much, store it in the private structure so it can be examined by internals without needing to add more arguments to functions. Co-developed-by: Scott Branden Signed-off-by: Scott Branden Signed-off-by: Kees Cook --- drivers/base/firmware_loader/fallback.c

Re: [PATCH v2] soc: qcom: rpmh-rsc: Sleep waiting for tcs slots to be free

2020-07-24 Thread Doug Anderson
Hi, On Fri, Jul 24, 2020 at 2:17 PM Stephen Boyd wrote: > > From: Stephen Boyd > > The busy loop in rpmh_rsc_send_data() is written with the assumption > that the udelay will be preempted by the tcs_tx_done() irq handler when > the TCS slots are all full. This doesn't hold true when the calling

Re: [GIT PULL] MMC fixes for v5.8-rc7

2020-07-24 Thread pr-tracker-bot
The pull request you sent on Fri, 24 Jul 2020 13:09:39 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git tags/mmc-v5.8-rc5 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/b85bcb784fd84ef854f6a6d03a0c48c207d0b0ec Thank you! -- Deet-doot-dot, I am a b

Re: [GIT PULL] Please pull RDMA subsystem changes

2020-07-24 Thread pr-tracker-bot
The pull request you sent on Fri, 24 Jul 2020 14:47:39 -0300: > git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git tags/for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/fcef1046eb1b78c98105e9b68e48df6022c23a06 Thank you! -- Deet-doot-dot, I am a bot

Re: [GIT PULL] io_uring fixes for 5.8-rc7

2020-07-24 Thread pr-tracker-bot
The pull request you sent on Fri, 24 Jul 2020 10:49:14 -0600: > git://git.kernel.dk/linux-block.git tags/io_uring-5.8-2020-07-24 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/1f68f31b51507e1ad647aa3a43c295eb024490ad Thank you! -- Deet-doot-dot, I am a bot. https://

Re: [git pull] xtensa csum regression fix

2020-07-24 Thread pr-tracker-bot
The pull request you sent on Fri, 24 Jul 2020 19:16:44 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c953d60b1180c4a59a55b72fecd278d264d60f5b Thank you! -- Deet-doot-dot, I am a bot. https://

Re: [git pull] drm fixes for 5.8-rc7

2020-07-24 Thread pr-tracker-bot
The pull request you sent on Fri, 24 Jul 2020 14:56:40 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-07-24 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/88fff0b7dcc132c924d710d75d1401264b6d0ef6 Thank you! -- Deet-doot-dot, I am a bot. https://k

Re: [PULL REQUEST] i2c for v5.8

2020-07-24 Thread pr-tracker-bot
The pull request you sent on Fri, 24 Jul 2020 21:27:32 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-current has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c615035b29c3628a35ece192046e0e6658d96ab3 Thank you! -- Deet-doot-dot, I am a bo

Re: [GIT PULL] Btrfs fixes for 5.8-rc7

2020-07-24 Thread pr-tracker-bot
The pull request you sent on Fri, 24 Jul 2020 13:21:32 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-5.8-rc6-tag has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/0669704270e142483d80cfda5c526426c1a89711 Thank you! -- Deet-doot-dot, I am a

Re: [git pull] IOMMU Fix for Linux v5.8-rc6

2020-07-24 Thread pr-tracker-bot
The pull request you sent on Fri, 24 Jul 2020 20:26:44 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git > tags/iommu-fix-v5.8-rc6 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/5a0b8af0719fd0710d9d1a9ad83b7fbdf4bfca66 Thank you! -- Deet-doot-do

Re: [GIT PULL] arm64 fix for -rc7

2020-07-24 Thread pr-tracker-bot
The pull request you sent on Fri, 24 Jul 2020 12:52:36 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git tags/arm64-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c6d686047456bd3e36dce7de95375890fb8b7dd9 Thank you! -- Deet-doot-dot, I am a

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

2020-07-24 Thread peterz
On Mon, Jul 20, 2020 at 11:49:18PM +0200, Peter Zijlstra wrote: > Steve, would this work for you, or would you prefer renaming the > parameters as well? Steve mentioned he's like to have the parameters changes after all. How's this then? --- Subject: sched,tracing: Convert to sched_set_fifo() Fro

[PATCH v3 00/19] Introduce partial kernel_read_file() support

2020-07-24 Thread Kees Cook
v3: - add reviews/acks - add "IMA: Add support for file reads without contents" patch - trim CC list, in case that's why vger ignored v2 v2: [missing from lkml archives! (CC list too long?) repeating changes here] - fix issues in firmware test suite - add firmware partial read patches - various bug

[PATCH v3 04/19] fs/kernel_read_file: Remove FIRMWARE_PREALLOC_BUFFER enum

2020-07-24 Thread Kees Cook
FIRMWARE_PREALLOC_BUFFER is a "how", not a "what", and confuses the LSMs that are interested in filtering between types of things. The "how" should be an internal detail made uninteresting to the LSMs. Fixes: a098ecd2fa7d ("firmware: support loading into a pre-allocated buffer") Fixes: fd90bc559bf

[PATCH RFC 6/6] Documentation: Add binding for pwm-qti-lpg

2020-07-24 Thread Martin Botka
From: Fenglin Wu Add documentation for pwm-qti-lpg Signed-off-by: Fenglin Wu Signed-off-by: Martin Botka --- .../devicetree/bindings/pwm/pwm-qti-lpg.txt | 163 ++ 1 file changed, 163 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-qti-lpg.txt dif

[PATCH v3 09/19] fs/kernel_read_file: Switch buffer size arg to size_t

2020-07-24 Thread Kees Cook
In preparation for further refactoring of kernel_read_file*(), rename the "max_size" argument to the more accurate "buf_size", and correct its type to size_t. Add kerndoc to explain the specifics of how the arguments will be used. Note that with buf_size now size_t, it can no longer be negative (an

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

2020-07-24 Thread Martin Botka
Hello, 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. Fenglin Wu (6): pwm: Add different PWM output types support pwm: core: Add option to config PW

[PATCH RFC 4/6] leds: leds-qti-tri-led: Add LED driver for QTI TRI_LED module

2020-07-24 Thread Martin Botka
From: Fenglin Wu QTI TRI_LED module has 3 current sinks at max for LED driver and each is controlled by a PWM channel used for LED dimming or blinking. Add the driver to support it. Signed-off-by: Fenglin Wu [martin.botka1@@gmail.com: Fast-forward the driver from kernel 4.14 to 5.8] Signed-off-

[PATCH v3 10/19] fs/kernel_read_file: Add file_size output argument

2020-07-24 Thread Kees Cook
In preparation for adding partial read support, add an optional output argument to kernel_read_file*() that reports the file size so callers can reason more easily about their reading progress. Acked-by: Scott Branden Signed-off-by: Kees Cook --- drivers/base/firmware_loader/main.c | 1 + fs/k

[PATCH v3 07/19] fs/kernel_read_file: Split into separate source file

2020-07-24 Thread Kees Cook
These routines are used in places outside of exec(2), so in preparation for refactoring them, move them into a separate source file, fs/kernel_read_file.c. Acked-by: Scott Branden Signed-off-by: Kees Cook --- fs/Makefile | 3 +- fs/exec.c | 132 --

[PATCH RFC 3/6] pwm: pwm-qti-lpg: Add PWM driver for QTI LPG module

2020-07-24 Thread Martin Botka
From: Fenglin Wu Add pwm_chip to support QTI LPG module and export LPG channels as PWM devices for consumer drivers' usage. Signed-off-by: Fenglin Wu [martin.bot...@gmail.com: Fast-forward the driver from kernel 4.14 to 5.8] Signed-off-by: Martin Botka --- drivers/pwm/Kconfig | 10 +

[PATCH RFC 5/6] Documentation: Add binding for qti-tri-led

2020-07-24 Thread Martin Botka
From: Fenglin Wu Add documentation for qti-tri-led Signed-off-by: Fenglin Wu Signed-off-by: Martin Botka --- .../bindings/leds/leds-qti-tri-led.txt| 72 +++ 1 file changed, 72 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-qti-tri-led.txt

[PATCH RCC 1/6] pwm: Add different PWM output types support

2020-07-24 Thread Martin Botka
From: Fenglin Wu Normally, PWM channel has fixed output until software request to change its settings. There are some PWM devices which their outputs could be changed autonomously according to a predefined pattern programmed in hardware. Add pwm_output_type enum type to identify these two differe

[PATCH RFC 2/6] pwm: core: Add option to config PWM duty/period with u64 data length

2020-07-24 Thread Martin Botka
From: Fenglin Wu Currently, PWM core driver provides interfaces for configuring PWM period and duty length in nanoseconds with an integer data type, so the max period can be only set to ~2.147 seconds. Add interfaces which can set PWM period and duty with u64 data type to remove this limitation.

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