Re: [PATCH v3 net] ptp: clockmatrix: bug fix for idtcm_strverscmp

2020-11-25 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Tue, 24 Nov 2020 21:58:35 -0500 you wrote: > From: Min Li > > Feed kstrtou8 with NULL terminated string. > > Changes since v1: > -Use sscanf to get rid of adhoc string parse. > Changes since v2: > -Check if sscanf returns

Re: [RFC 0/4] net: l2switch: Provide support for L2 switch on i.MX28 SoC

2020-11-25 Thread Florian Fainelli
On 11/25/2020 4:00 PM, Andrew Lunn wrote: > On Thu, Nov 26, 2020 at 12:24:55AM +0100, Lukasz Majewski wrote: >> This is the first attempt to add support for L2 switch available on some NXP >> devices - i.e. iMX287 or VF610. This patch set uses common FEC and DSA code. > > Interesting. I need

Re: [PATCH v4] hwmon: Add driver for STMicroelectronics PM6764 Voltage Regulator

2020-11-25 Thread Guenter Roeck
On Thu, Nov 26, 2020 at 08:50:37AM +0800, Charles wrote: > On 22/11/2020 下午11:36, Guenter Roeck wrote: > > On Wed, Nov 11, 2020 at 03:10:08PM +0800, Charles wrote: > > > Add the pmbus driver for the STMicroelectronics pm6764 voltage regulator. > > > > > > the output voltage use the MFR_READ_VOUT

Re: [PATCH] scsi: zfcp: fix use-after-free in zfcp_unit_remove

2020-11-25 Thread Qinglang Miao
在 2020/11/26 1:06, Benjamin Block 写道: On Fri, Nov 20, 2020 at 03:48:54PM +0800, Qinglang Miao wrote: kfree(port) is called in put_device(>dev) so that following use would cause use-after-free bug. The former put_device is redundant for device_unregister contains put_device already. So just

[PATCH v2] acpi: Fix use-after-free in acpi_ipmi.c

2020-11-25 Thread Youling Tang
kfree() has been called inside put_device so anther kfree would cause a use-after-free bug. Signed-off-by: Youling Tang --- drivers/acpi/acpi_ipmi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/acpi/acpi_ipmi.c b/drivers/acpi/acpi_ipmi.c index 9d6c0fc..18edf8b 100644 ---

Re: [PATCH v2 1/2] scsi: ufs: Refector ufshcd_setup_clocks() to remove skip_ref_clk

2020-11-25 Thread Can Guo
On 2020-11-26 08:58, Stanley Chu wrote: Hi Can, "Refector" in title shall be "Refactor"? On Mon, 2020-11-23 at 23:28 -0800, Can Guo wrote: Remove the param skip_ref_clk from __ufshcd_setup_clocks(), but keep a flag in struct ufs_clk_info to tell whether a clock can be disabled or not while

Re: [PATCH] x86/PCI: Convert force_disable_hpet() to standard quirk

2020-11-25 Thread Feng Tang
Hi Thomas, On Wed, Nov 25, 2020 at 01:46:23PM +0100, Thomas Gleixner wrote: > On Thu, Nov 19 2020 at 12:19, Bjorn Helgaas wrote: > > 62187910b0fc ("x86/intel: Add quirk to disable HPET for the Baytrail > > platform") implemented force_disable_hpet() as a special early quirk. > > These run before

Re: [PATCH] MAINTAINERS: Adding help for coresight subsystem

2020-11-25 Thread Leo Yan
On Wed, Nov 25, 2020 at 03:35:19PM -0700, Mathieu Poirier wrote: > With the steady stream of new features coming into the subsystem > it has been clear for some time now that help is needed. > > Suzuki and Leo have worked extensively on various parts of the > project and have agreed to help. > >

Re: [PATCH] xfs: check the return value of krealloc() in xfs_uuid_mount

2020-11-25 Thread Qinglang Miao
在 2020/11/25 23:55, Eric Sandeen 写道: On 11/25/20 12:50 AM, Qinglang Miao wrote: krealloc() may fail to expand the memory space. Even with __GFP_NOFAIL? * ``GFP_KERNEL | __GFP_NOFAIL`` - overrides the default allocator behavior and all allocation requests will loop endlessly until

[PATCH 4/5] PCI/ACPI: Centralize pcie_ports_native checking

2020-11-25 Thread Bjorn Helgaas
From: Kuppuswamy Sathyanarayanan If the user booted with "pcie_ports=native", we take control of the PCIe features unconditionally, regardless of what _OSC says. Centralize the testing of pcie_ports_native in acpi_pci_root_create(), where we interpret the _OSC results, so other places only have

[PATCH 5/5] PCI/ACPI: Centralize pci_aer_available() checking

2020-11-25 Thread Bjorn Helgaas
From: Bjorn Helgaas Check pci_aer_available() in acpi_pci_root_create() when we're interpreting _OSC results so host_bridge->native_aer becomes the single way to determine whether we control AER capabilities. Signed-off-by: Bjorn Helgaas --- drivers/acpi/pci_root.c | 3 +++

[PATCH 3/5] PCI/ACPI: Tidy _OSC control bit checking

2020-11-25 Thread Bjorn Helgaas
From: Kuppuswamy Sathyanarayanan Add OSC_OWNER() helper to prettify checking the _OSC control bits to learn whether the platform has granted us control of PCI features. No functional change intended. [bhelgaas: split to separate patch, commit log] Signed-off-by: Kuppuswamy Sathyanarayanan

[PATCH 2/5] PCI: Assume control of portdrv-related features only when portdrv enabled

2020-11-25 Thread Bjorn Helgaas
From: Kuppuswamy Sathyanarayanan Native control of PME, AER, DPC, and PCIe hotplug depends on the portdrv, so default to native handling of them only when CONFIG_PCIEPORTBUS is enabled. Native control LTR and SHPC hotplug does not depend on portdrv, so we can always take control of them unless

[PATCH 1/5] PCI/DPC: Ignore devices with no AER Capability

2020-11-25 Thread Bjorn Helgaas
From: Bjorn Helgaas Downstream Ports may support DPC regardless of whether they support AER (see PCIe r5.0, sec 6.2.10.2). Previously, if the user booted with "pcie_ports=dpc-native", it was possible for dpc_probe() to succeed even if the device had no AER Capability, but

[PATCH v12 0/5] Simplify PCIe native ownership

2020-11-25 Thread Bjorn Helgaas
From: Bjorn Helgaas This is Sathy's work with a few tweaks on top. I dropped the DPC pcie_ports_dpc_native changes for now just because I haven't had time to understand it all. We currently ignore the OSC_PCI_EXPRESS_DPC_CONTROL bit, which seems wrong. We might want to start looking at it,

Re: [PATCH] fpga: dfl: add missing platform_device_put in build_info_create_dev

2020-11-25 Thread Qinglang Miao
在 2020/11/25 18:06, Wu, Hao 写道: Subject: [PATCH] fpga: dfl: add missing platform_device_put in build_info_create_dev platform_device_put is missing when it fails to set fdev->id. Set a temp value to do sanity check. will this case be covered already by build_info_free()? Hao Yes, you're

arch/arm/mach-footbridge/include/mach/memory.h:50:2: error: "Undefined footbridge mode"

2020-11-25 Thread kernel test robot
Hi Fangrui, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fa02fcd94b0c8dff6cc65714510cf25ad194b90d commit: ca9b31f6bb9c6aa9b4e5f0792f39a97bbffb8c51 Makefile: Fix GCC_TOOLCHAIN_DIR prefix for Clang cross

Re: [PATCH] acpi: Fix use-after-free in acpi_ipmi.c

2020-11-25 Thread Youling Tang
Hi, On 11/25/2020 11:53 PM, Rafael J. Wysocki wrote: On Tue, Nov 24, 2020 at 1:51 PM Youling Tang wrote: kfree() has been called inside put_device so anther kfree would cause a use-after-free bug. Signed-off-by: Youling Tang --- drivers/acpi/acpi_ipmi.c | 2 -- 1 file changed, 2

[PATCH v2] cpufreq: Fix error return code in cpufreq_online()

2020-11-25 Thread Wang ShaoBo
Fix to return proper error code instead of 0 in cpufreq_online(), as done elsewhere in this function. Signed-off-by: Wang ShaoBo --- drivers/cpufreq/cpufreq.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index

Re: [PATCH v3 net-next] net: phy: realtek: read actual speed on rtl8211f to detect downshift

2020-11-25 Thread Yonglong Liu
Hi, Russell:     I found this message in kernel log, thanks! On 2020/11/26 1:07, Russell King - ARM Linux admin wrote: On Thu, Nov 26, 2020 at 12:57:37AM +0800, Yonglong Liu wrote: Hi, Antonio:     Could you help to provide a downshift warning message when this happen?     It's a little

Re: [PATCH] scsi: ufs: Remove unnecessary if condition in ufshcd_suspend()

2020-11-25 Thread Stanley Chu
On Wed, 2020-11-25 at 19:53 +0100, Bean Huo wrote: > From: Bean Huo > > In the case that auto_bkops_enable is false, which means auto bkops > has been disabled, so no need to call ufshcd_disable_auto_bkops(). > > Signed-off-by: Bean Huo Reviewed-by: Stanley Chu

Re: [Intel-gfx] [RFC v2 3/8] drm/i915: Keep track of pwm-related backlight hooks separately

2020-11-25 Thread Dave Airlie
On Thu, 17 Sept 2020 at 03:19, Lyude Paul wrote: > > Currently, every different type of backlight hook that i915 supports is > pretty straight forward - you have a backlight, probably through PWM > (but maybe DPCD), with a single set of platform-specific hooks that are > used for controlling it.

drivers/memstick/host/r592.c:83:9: sparse: sparse: incorrect type in assignment (different base types)

2020-11-25 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fa02fcd94b0c8dff6cc65714510cf25ad194b90d commit: d4aa8affa1e9e51c237a1ec47a97e96dce76c98c m68knommu: fix use of cpu_to_le() on IO access date: 4 months ago config: m68k-randconfig-s032-20201126 (attached

Re: [PATCH v2 1/2] scsi: ufs: Refector ufshcd_setup_clocks() to remove skip_ref_clk

2020-11-25 Thread Stanley Chu
Hi Can, "Refector" in title shall be "Refactor"? On Mon, 2020-11-23 at 23:28 -0800, Can Guo wrote: > Remove the param skip_ref_clk from __ufshcd_setup_clocks(), but keep a flag > in struct ufs_clk_info to tell whether a clock can be disabled or not while > the link is active. > > Signed-off-by:

Re: [PATCH] drivers: clocksource: timer-riscv: Depend on the SBI

2020-11-25 Thread Kefeng Wang
Hi Palmer,  I send a same patch and have been acked from you : ) https://patchwork.kernel.org/project/linux-riscv/patch/20201028131230.72907-1-wangkefeng.w...@huawei.com/ On 2020/11/26 3:58, Palmer Dabbelt wrote: From: Palmer Dabbelt Fundamentally this is an SBI timer driver, so it cannot be

Re: [PATCH v11 2/5] ACPI/PCI: Ignore _OSC negotiation result if pcie_ports_native is set.

2020-11-25 Thread Kuppuswamy, Sathyanarayanan
On 11/25/20 12:28 PM, Bjorn Helgaas wrote: On Mon, Oct 26, 2020 at 07:57:05PM -0700, Kuppuswamy Sathyanarayanan wrote: pcie_ports_native is set only if user requests native handling of PCIe capabilities via pcie_port_setup command line option. User input takes precedence over _OSC based

[PATCH 2/2] mm: memcontrol: account pagetables per node

2020-11-25 Thread Shakeel Butt
For many workloads, pagetable consumption is significant and it makes sense to expose it in the memory.stat for the memory cgroups. However at the moment, the pagetables are accounted per-zone. Converting them to per-node and using the right interface will correctly account for the memory cgroups

[PATCH 0/2] memcg: add pagetable comsumption to memory.stat

2020-11-25 Thread Shakeel Butt
Many workloads consumes significant amount of memory in pagetables. This patch series exposes the pagetable comsumption for each memory cgroup. Shakeel Butt (2): mm: move lruvec stats update functions to vmstat.h mm: memcontrol: account pagetables per node

[PATCH 1/2] mm: move lruvec stats update functions to vmstat.h

2020-11-25 Thread Shakeel Butt
This patch does not change any functionality and only move the functions which update the lruvec stats to vmstat.h from memcontrol.h. The main reason for this patch is to be able to use these functions in the page table contructor function which is defined in mm.h and we can not include the

[PATCH] regmap: sdw: add required header files

2020-11-25 Thread Bard Liao
From: Pierre-Louis Bossart Explicitly add header files used by regmap SoundWire support. Suggested-by: Guennadi Liakhovetski Reviewed-by: Rander Wang Reviewed-by: Guennadi Liakhovetski Reviewed-by: Kai Vehmanen Signed-off-by: Pierre-Louis Bossart Signed-off-by: Bard Liao ---

Re: [PATCH v4] hwmon: Add driver for STMicroelectronics PM6764 Voltage Regulator

2020-11-25 Thread Charles
On 22/11/2020 下午11:36, Guenter Roeck wrote: On Wed, Nov 11, 2020 at 03:10:08PM +0800, Charles wrote: Add the pmbus driver for the STMicroelectronics pm6764 voltage regulator. the output voltage use the MFR_READ_VOUT 0xD4 vout value returned is linear11 Signed-off-by: Charles Hsu Please fix

Re: [PATCH] x86/PCI: Convert force_disable_hpet() to standard quirk

2020-11-25 Thread Thomas Gleixner
On Wed, Nov 25 2020 at 13:13, Bjorn Helgaas wrote: > On Wed, Nov 25, 2020 at 01:46:23PM +0100, Thomas Gleixner wrote: >> Now the more interesting question is why this needs to be a PCI quirk in >> the first place. Can't we just disable the HPET based on family/model >> quirks? > > You mean like a

[PATCH] sparc64: only select COMPAT_BINFMT_ELF if BINFMT_ELF is set

2020-11-25 Thread Randy Dunlap
Currently COMPAT on SPARC64 selects COMPAT_BINFMT_ELF unconditionally, even when BINFMT_ELF is not enabled. This causes a kconfig warning. Instead, just select COMPAT_BINFMT_ELF if BINFMT_ELF is enabled. This builds cleanly with no kconfig warnings. WARNING: unmet direct dependencies detected

[PATCH] fbdev: aty: SPARC64 requires FB_ATY_CT

2020-11-25 Thread Randy Dunlap
It looks like SPARC64 requires FB_ATY_CT to build without errors, so adjust the Kconfig entry of FB_ATY_CT so that it is always 'y' for SPARC64 && PCI by disabling the prompt for SPARC64 && PCI. As it currently is, FB_ATY_CT can be disabled, resulting in build errors: ERROR: modpost:

Re: [PATCH -tip 04/32] sched: Core-wide rq->lock

2020-11-25 Thread Balbir Singh
On Tue, Nov 24, 2020 at 09:16:17AM +0100, Peter Zijlstra wrote: > On Sun, Nov 22, 2020 at 08:11:52PM +1100, Balbir Singh wrote: > > On Tue, Nov 17, 2020 at 06:19:34PM -0500, Joel Fernandes (Google) wrote: > > > From: Peter Zijlstra > > > > > > Introduce the basic infrastructure to have a core

Re: [Intel-wired-lan] [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-25 Thread Finn Thain
On Wed, 25 Nov 2020, Nick Desaulniers wrote: > On Wed, Nov 25, 2020 at 1:33 PM Finn Thain wrote: > > > > Or do you think that a codebase can somehow satisfy multiple checkers > > and their divergent interpretations of the language spec? > > Have we found any cases yet that are divergent? I

Re: possible deadlock in _destroy_id

2020-11-25 Thread Jason Gunthorpe
On Wed, Nov 25, 2020 at 08:48:32AM +0200, Leon Romanovsky wrote: > > commit c80a0c52d85c49a910d0dc0e342e8d8898677dc0 > > Author: Leon Romanovsky > > Date: Wed Nov 4 16:40:07 2020 +0200 > > > > RDMA/cma: Add missing error handling of listen_id > > > > Don't silently continue if

Re: [PATCH bpf-next v8 06/34] bpf: prepare for memcg-based memory accounting for bpf maps

2020-11-25 Thread Daniel Borkmann
On 11/25/20 4:00 AM, Roman Gushchin wrote: In the absolute majority of cases if a process is making a kernel allocation, it's memory cgroup is getting charged. Bpf maps can be updated from an interrupt context and in such case there is no process which can be charged. It makes the memory

Re: [BUG] perf probe can't remove probes

2020-11-25 Thread Masami Hiramatsu
Hi Arnaldo, On Wed, 25 Nov 2020 14:27:55 -0300 Arnaldo Carvalho de Melo wrote: > > Masami, have you stumbled on this already? > > [root@seventh ~]# perf probe security_locked_down%return 'ret=$retval' > Added new event: > probe:security_locked_down__return (on security_locked_down%return

Re: [net-next v3 0/8] seg6: add support for SRv6 End.DT4/DT6 behavior

2020-11-25 Thread Andrea Mayer
Hi Jakub, On Tue, 24 Nov 2020 15:49:04 -0800 Jakub Kicinski wrote: > LGTM! Please address the nit and repost without the iproute2 patch. Thanks for the review of the patchset. > Mixing the iproute2 patch in has confused patchwork: > >

Re: [RFC PATCH 03/67] x86/cpu: Move get_builtin_firmware() common code (from microcode only)

2020-11-25 Thread Sean Christopherson
On Wed, Nov 25, 2020, Borislav Petkov wrote: > On Mon, Nov 16, 2020 at 10:25:48AM -0800, isaku.yamah...@intel.com wrote: > > From: Zhang Chen > > > > Move get_builtin_firmware() to common.c so that it can be used to get > > non-ucode firmware, e.g. Intel's SEAM modules, even if MICROCODE=n. > >

Re: [Y2038][time namespaces] Question regarding CLOCK_REALTIME support plans in Linux time namespaces

2020-11-25 Thread Thomas Gleixner
Carlos, Petr, On Wed, Nov 25 2020 at 15:37, Carlos O'Donell wrote: > On 11/19/20 7:14 PM, Thomas Gleixner wrote: >> So from my point of view asking for distorted time still _is_ a request >> for ponies. > > I'm happy if you say it's more work than the value it provides. Thinking more about it.

Re: [PATCH v4 00/16] Overhaul multi-page lookups for THP

2020-11-25 Thread Hugh Dickins
On Wed, Nov 25, 2020 at 3:09 PM Andrew Morton wrote: > > On Wed, 25 Nov 2020 02:32:34 + Matthew Wilcox wrote: > > > On Tue, Nov 17, 2020 at 11:43:02PM +, Matthew Wilcox wrote: > > > On Tue, Nov 17, 2020 at 07:15:13PM +, Matthew Wilcox wrote: > > > > I find both of these functions

Re: [PATCH -tip 31/32] sched: Add a coresched command line option

2020-11-25 Thread Balbir Singh
On Wed, Nov 25, 2020 at 02:45:37PM +0100, Peter Zijlstra wrote: > On Tue, Nov 17, 2020 at 06:20:01PM -0500, Joel Fernandes (Google) wrote: > > Some hardware such as certain AMD variants don't have cross-HT MDS/L1TF > > issues. Detect this and don't enable core scheduling as it can > > needlessly

Re: [PATCH net-next v6 2/5] net/lapb: support netdev events

2020-11-25 Thread Xie He
Hi Martin, Since we are going to assume lapb->state would remain in LAPB_STATE_0 when the carrier is down (as understood by me. Right?), could we add a check in lapb_connect_request to reject the upper layer's "connect" instruction when the carrier is down? Like this: diff --git

Re: [PATCH v3 0/5] Improve kernel section protections

2020-11-25 Thread Palmer Dabbelt
On Mon, 23 Nov 2020 23:21:08 PST (-0800), greentime...@sifive.com wrote: Atish Patra 於 2020年11月5日 週四 上午8:05寫道: This series aims at improving kernel permissions by doing following things. 1. Protect kernel sections early instead of after /init. 2. Protect .init.text & .init.data sections with

Re: [RFC PATCH v3.1 00/27] Add support UHS-II for GL9755

2020-11-25 Thread AKASHI Takahiro
On Wed, Nov 25, 2020 at 11:43:18AM +0100, Ulf Hansson wrote: > On Wed, 25 Nov 2020 at 08:41, AKASHI Takahiro > wrote: > > > > Gentle ping; > > > > On Fri, Nov 06, 2020 at 11:26:59AM +0900, AKASHI Takahiro wrote: > > > This is an interim snapshot of our next version, v4, for enabling > > > UHS-II

Re: [PATCH] kvm/x86/mmu: use the correct inherited permissions to get shadow page

2020-11-25 Thread Sean Christopherson
On Fri, Nov 20, 2020, Lai Jiangshan wrote: > From: Lai Jiangshan > > Commit 41074d07c78b ("KVM: MMU: Fix inherited permissions for emulated > guest pte updates") said role.access is common access permissions for > all ptes in this shadow page, which is the inherited permissions from > the parent

Re: [RFC 0/4] net: l2switch: Provide support for L2 switch on i.MX28 SoC

2020-11-25 Thread Andrew Lunn
On Thu, Nov 26, 2020 at 12:24:55AM +0100, Lukasz Majewski wrote: > This is the first attempt to add support for L2 switch available on some NXP > devices - i.e. iMX287 or VF610. This patch set uses common FEC and DSA code. Interesting. I need to take another look at the Vybrid manual. Last time i

Re: [PATCH] drm/ttm: don't set page->mapping

2020-11-25 Thread Jason Gunthorpe
On Wed, Nov 25, 2020 at 06:11:29PM +, Christoph Hellwig wrote: > On Wed, Nov 25, 2020 at 02:06:06PM -0400, Jason Gunthorpe wrote: > > It uses a empty 'cover-letter' commit and automatically transforms it > > into exactly the right stuff. Keeps track of everything you send in > > git, and there

Re: [PATCH AUTOSEL 5.9 33/33] xfs: don't allow NOWAIT DIO across extent boundaries

2020-11-25 Thread Sasha Levin
On Thu, Nov 26, 2020 at 08:52:47AM +1100, Dave Chinner wrote: We've already had one XFS upstream kernel regression in this -rc cycle propagated to the stable kernels in 5.9.9 because the stable process picked up a bunch of random XFS fixes within hours of them being merged by Linus. One of those

Re: [PATCH next] mm/vmscan: __isolate_lru_page_prepare clean up

2020-11-25 Thread Andrew Morton
On Tue, 24 Nov 2020 12:21:28 +0100 Vlastimil Babka wrote: > On 11/22/20 3:00 PM, Alex Shi wrote: > > Thanks a lot for all comments, I picked all up and here is the v3: > > > > From 167131dd106a96fd08af725df850e0da6ec899af Mon Sep 17 00:00:00 2001 > > From: Alex Shi > > Date: Fri, 20 Nov 2020

Re: [PATCH 1/2] mm/madvise: allow process_madvise operations on entire memory range

2020-11-25 Thread Minchan Kim
On Wed, Nov 25, 2020 at 03:23:40PM -0800, Suren Baghdasaryan wrote: > On Wed, Nov 25, 2020 at 3:13 PM Minchan Kim wrote: > > > > On Mon, Nov 23, 2020 at 09:39:42PM -0800, Suren Baghdasaryan wrote: > > > process_madvise requires a vector of address ranges to be provided for > > > its operations.

RE: [PATCH 1/2] x86/kexec: Use up-to-dated screen_info copy to fill boot params

2020-11-25 Thread Dexuan Cui
> From: Dexuan Cui > Sent: Monday, November 16, 2020 7:40 PM > > diff --git a/arch/x86/kernel/kexec-bzimage64.c > > b/arch/x86/kernel/kexec-bzimage64.c > > index 57c2ecf43134..ce831f9448e7 100644 > > --- a/arch/x86/kernel/kexec-bzimage64.c > > +++ b/arch/x86/kernel/kexec-bzimage64.c > > @@ -200,8

[RFC 4/4] ARM: dts: imx28: Add description for L2 switch on XEA board

2020-11-25 Thread Lukasz Majewski
The 'eth_switch' node is now used to enable support for L2 switch. Moreover, a separate 'switch' node was introduced to keep the code more clean. Signed-off-by: Lukasz Majewski --- arch/arm/boot/dts/imx28-xea.dts | 55 + 1 file changed, 55 insertions(+) diff

[RFC 3/4] net: imx: l2switch: Adjust fec_main.c to provide support for L2 switch

2020-11-25 Thread Lukasz Majewski
This patch provides the code for re-using generic FEC i.MX code for L2 switch. The trick here is to set eth0 controller as a "fixed-link" and then use DSA subsystem to create lan{12} network devices for ports. The internal connection diagram can be found here [0]. This code has been developed on

[RFC 1/4] net: fec: Move some defines to ./drivers/net/ethernet/freescale/fec.h header

2020-11-25 Thread Lukasz Majewski
After this change ECR (control register) defines are moved to fec.h, so they can be reused by L2 switch code. Signed-off-by: Lukasz Majewski --- drivers/net/ethernet/freescale/fec.h | 3 +++ drivers/net/ethernet/freescale/fec_main.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-)

[RFC 2/4] net: dsa: Provide DSA driver for NXP's More Than IP L2 switch

2020-11-25 Thread Lukasz Majewski
This change provides driver for DSA (Distributed Switch Architecture) subsystem for i.MX28 SoC (imx287 to be precise). This code just is responsible for configuring this device as L2 bridge (no vlan, port separation supported). This driver shall be regarded as a complementary one for NXP's FEC

[RFC 0/4] net: l2switch: Provide support for L2 switch on i.MX28 SoC

2020-11-25 Thread Lukasz Majewski
This is the first attempt to add support for L2 switch available on some NXP devices - i.e. iMX287 or VF610. This patch set uses common FEC and DSA code. This code provides _very_ basic switch functionality (packets are passed between lan1 and lan2 ports and it is possible to send packets via

Re: [PATCH v2 0/3] x86/intel_rdt: task_work vs task_struct rmid/closid write race

2020-11-25 Thread Valentin Schneider
On 25/11/20 19:06, Reinette Chatre wrote: > Hi Valentin, > > On 11/25/2020 10:39 AM, Valentin Schneider wrote: >> The (default) TWA_RESUME ensures the targeted (userspace) task gets kicked >> if it is currently running, and doesn't perturb any CPU otherwise; >> see set_notify_resume() +

Re: [PATCH 1/2] mm/madvise: allow process_madvise operations on entire memory range

2020-11-25 Thread Suren Baghdasaryan
On Wed, Nov 25, 2020 at 3:13 PM Minchan Kim wrote: > > On Mon, Nov 23, 2020 at 09:39:42PM -0800, Suren Baghdasaryan wrote: > > process_madvise requires a vector of address ranges to be provided for > > its operations. When an advice should be applied to the entire process, > > the caller process

Re: [Intel-wired-lan] [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-25 Thread Finn Thain
On Wed, 25 Nov 2020, Nick Desaulniers wrote: > On Wed, Nov 25, 2020 at 1:33 PM Finn Thain > wrote: > > > > Or do you think that a codebase can somehow satisfy multiple checkers > > and their divergent interpretations of the language spec? > > Have we found any cases yet that are divergent? I

Re: [PATCH -tip 02/32] sched: Introduce sched_class::pick_task()

2020-11-25 Thread Balbir Singh
On Fri, Nov 20, 2020 at 11:58:54AM -0500, Joel Fernandes wrote: > On Fri, Nov 20, 2020 at 10:56:09AM +1100, Singh, Balbir wrote: > [..] > > > +#ifdef CONFIG_SMP > > > +static struct task_struct *pick_task_fair(struct rq *rq) > > > +{ > > > + struct cfs_rq *cfs_rq = >cfs; > > > + struct

Re: [PATCH -tip 09/32] sched/fair: Snapshot the min_vruntime of CPUs on force idle

2020-11-25 Thread Balbir Singh
On Tue, Nov 24, 2020 at 10:09:55AM +0100, Peter Zijlstra wrote: > On Tue, Nov 24, 2020 at 10:31:49AM +1100, Balbir Singh wrote: > > On Mon, Nov 23, 2020 at 07:31:31AM -0500, Vineeth Pillai wrote: > > > Hi Balbir, > > > > > > On 11/22/20 6:44 AM, Balbir Singh wrote: > > > > > > > > This seems

Re: [PATCH 0/5] [RFC] MUSE: Userspace backed MTD

2020-11-25 Thread Richard Weinberger
- Ursprüngliche Mail - > When working with flash devices a common task is emulating them to run various > tests or inspect dumps from real hardware. To achieve that we have plenty of > emulators in the mtd subsystem: mtdram, block2mtd, nandsim. > > Each of them implements a adhoc MTD and

Re: [PATCH 1/2] mm/madvise: allow process_madvise operations on entire memory range

2020-11-25 Thread Minchan Kim
On Mon, Nov 23, 2020 at 09:39:42PM -0800, Suren Baghdasaryan wrote: > process_madvise requires a vector of address ranges to be provided for > its operations. When an advice should be applied to the entire process, > the caller process has to obtain the list of VMAs of the target process > by

Re: [PATCH net-next v3 1/2] lockdep: Introduce in_softirq lockdep assert

2020-11-25 Thread Jakub Kicinski
On Tue, 24 Nov 2020 18:49:28 +0800 Yunsheng Lin wrote: > The current semantic for napi_consume_skb() is that caller need > to provide non-zero budget when calling from NAPI context, and > breaking this semantic will cause hard to debug problem, because > _kfree_skb_defer() need to run in atomic

Re: [PATCH bpf-next v3 0/3] Implement bpf_ima_inode_hash

2020-11-25 Thread patchwork-bot+netdevbpf
Hello: This series was applied to bpf/bpf-next.git (refs/heads/master): On Tue, 24 Nov 2020 15:12:07 + you wrote: > From: KP Singh > > # v2 -> v3 > > - Fixed an issue pointed out by Alexei, the helper should only be > exposed to sleepable hooks. > - Update the selftests to constrain the

Re: [PATCH v4 00/16] Overhaul multi-page lookups for THP

2020-11-25 Thread Andrew Morton
On Wed, 25 Nov 2020 02:32:34 + Matthew Wilcox wrote: > On Tue, Nov 17, 2020 at 11:43:02PM +, Matthew Wilcox wrote: > > On Tue, Nov 17, 2020 at 07:15:13PM +, Matthew Wilcox wrote: > > > I find both of these functions exceptionally confusing. Does this > > > make it easier to

Re: [PATCH -tip 10/32] sched: Fix priority inversion of cookied task with sibling

2020-11-25 Thread Balbir Singh
On Tue, Nov 24, 2020 at 01:30:38PM -0500, Joel Fernandes wrote: > On Mon, Nov 23, 2020 at 09:41:23AM +1100, Balbir Singh wrote: > > On Tue, Nov 17, 2020 at 06:19:40PM -0500, Joel Fernandes (Google) wrote: > > > From: Peter Zijlstra > > > > > > The rationale is as follows. In the core-wide pick

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-25 Thread Edward Cree
On 24/11/2020 21:25, Kees Cook wrote: > I still think this isn't right -- it's a case statement that runs off > the end without an explicit flow control determination. Proves too much — for instance case foo: case bar: thing; break; doesn't require a fallthrough; after

Re: [PATCH -tip 14/32] sched: migration changes for core scheduling

2020-11-25 Thread Balbir Singh
On Wed, Nov 25, 2020 at 11:12:53AM +0800, Li, Aubrey wrote: > On 2020/11/24 23:42, Peter Zijlstra wrote: > > On Mon, Nov 23, 2020 at 12:36:10PM +0800, Li, Aubrey wrote: > +#ifdef CONFIG_SCHED_CORE > +/* > + * Skip this cpu if source task's cookie does

[PATCH] tracing: Fix align of static buffer

2020-11-25 Thread Minchan Kim
With 5.9 kernel on ARM64, I found ftrace_dump output was broken but it had no problem with normal output "cat /sys/kernel/debug/tracing/trace". With investigation, it seems coping the data into temporal buffer seems to break the align binary printf expects if the static buffer is not aligned with

Re: [PATCH v3 1/3] mmc: sdhci-of-aspeed: Expose phase delay tuning

2020-11-25 Thread Andrew Jeffery
On Wed, 25 Nov 2020, at 00:42, Ulf Hansson wrote: > On Mon, 23 Nov 2020 at 07:30, Andrew Jeffery wrote: > > > > The Aspeed SD/eMMC controllers feature up to two SDHCIs alongside a > > a set of "global" configuration registers. The global configuration > > registers house controller-specific

Re: [PATCH 4/6] mm: proc: Invalidate TLB after clearing soft-dirty page state

2020-11-25 Thread Minchan Kim
On Mon, Nov 23, 2020 at 06:41:14PM +, Will Deacon wrote: > On Fri, Nov 20, 2020 at 07:55:14AM -0800, Minchan Kim wrote: > > On Fri, Nov 20, 2020 at 04:00:23PM +0100, Peter Zijlstra wrote: > > > On Fri, Nov 20, 2020 at 02:35:55PM +, Will Deacon wrote: > > > > Since commit 0758cd830494

Re: [PATCH net-next 1/2] soc: qcom: ipa: Constify static qmi structs

2020-11-25 Thread Jakub Kicinski
On Wed, 25 Nov 2020 15:45:05 -0600 Alex Elder wrote: > On 11/22/20 5:40 PM, Rikard Falkeborn wrote: > > These are only used as input arguments to qmi_handle_init() which > > accepts const pointers to both qmi_ops and qmi_msg_handler. Make them > > const to allow the compiler to put them in

[PATCH net-next v2] net: switch to storing KCOV handle directly in sk_buff

2020-11-25 Thread Marco Elver
It turns out that usage of skb extensions can cause memory leaks. Ido Schimmel reported: "[...] there are instances that blindly overwrite 'skb->extensions' by invoking skb_copy_header() after __alloc_skb()." Therefore, give up on using skb extensions for KCOV handle, and instead directly store

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-25 Thread Edward Cree
On 25/11/2020 00:32, Miguel Ojeda wrote: > I have said *authoring* lines of *this* kind takes a minute per line. > Specifically: lines fixing the fallthrough warning mechanically and > repeatedly where the compiler tells you to, and doing so full-time for > a month. > It is useful since it makes

Re: [PATCH net-next] net: switch to storing KCOV handle directly in sk_buff

2020-11-25 Thread Marco Elver
On Wed, 25 Nov 2020 at 21:43, Jakub Kicinski wrote: > > On Wed, 25 Nov 2020 18:34:36 +0100 Marco Elver wrote: > > diff --git a/net/core/skbuff.c b/net/core/skbuff.c > > index ffe3dcc0ebea..070b1077d976 100644 > > --- a/net/core/skbuff.c > > +++ b/net/core/skbuff.c > > @@ -233,6 +233,7 @@ struct

Re: [Patch v2 1/1] PCI: pciehp: Add support for handling MRL events

2020-11-25 Thread Raj, Ashok
Hi Lukas On Sun, Nov 22, 2020 at 10:08:52AM +0100, Lukas Wunner wrote: > On Sat, Nov 21, 2020 at 05:42:03PM -0800, Ashok Raj wrote: > > --- a/drivers/pci/hotplug/pciehp_ctrl.c > > +++ b/drivers/pci/hotplug/pciehp_ctrl.c > > void pciehp_handle_presence_or_link_change(struct controller *ctrl, u32

Re: [PATCH] MAINTAINERS: Adding help for coresight subsystem

2020-11-25 Thread Suzuki K Poulose
On 11/25/20 10:35 PM, Mathieu Poirier wrote: With the steady stream of new features coming into the subsystem it has been clear for some time now that help is needed. Suzuki and Leo have worked extensively on various parts of the project and have agreed to help. While at it add the new

Re: [PATCH v11 2/5] ACPI/PCI: Ignore _OSC negotiation result if pcie_ports_native is set.

2020-11-25 Thread Kuppuswamy, Sathyanarayanan
On 11/25/20 2:25 PM, Bjorn Helgaas wrote: I've been fiddling with this, so let me post a v12 tonight and you can see what you think. Ok. I will wait for your update. -- Sathyanarayanan Kuppuswamy Linux Kernel Developer

[PATCH] MAINTAINERS: Adding help for coresight subsystem

2020-11-25 Thread Mathieu Poirier
With the steady stream of new features coming into the subsystem it has been clear for some time now that help is needed. Suzuki and Leo have worked extensively on various parts of the project and have agreed to help. While at it add the new location for the coresight git tree. Signed-off-by:

{standard input}:6641: Error: Unable to parse register name $fp

2020-11-25 Thread kernel test robot
-20201125 (attached as .config) compiler: mips64el-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git

Re: [PATCH] mm/memcg: warn on missing memcg on mem_cgroup_page_lruvec()

2020-11-25 Thread Stephen Rothwell
Hi all, On Wed, 25 Nov 2020 20:15:11 +0800 Alex Shi wrote: > > Acked-by: Alex Shi > > > 在 2020/11/25 下午7:22, Lorenzo Stoakes 写道: > > Move memcg check to mem_cgroup_page_lruvec() as there are callers which > > may invoke this with !memcg in mem_cgroup_lruvec(), whereas they should > > not in

Re: [PATCH v11 2/5] ACPI/PCI: Ignore _OSC negotiation result if pcie_ports_native is set.

2020-11-25 Thread Bjorn Helgaas
On Wed, Nov 25, 2020 at 02:21:49PM -0800, Kuppuswamy, Sathyanarayanan wrote: > Hi Bjorn, > > Thanks for the review. > > On 11/25/20 12:12 PM, Bjorn Helgaas wrote: > > On Mon, Oct 26, 2020 at 07:57:05PM -0700, Kuppuswamy Sathyanarayanan wrote: > > > pcie_ports_native is set only if user requests

Re: [PATCH] RISC-V: Define get_cycles64() regardless of M-mode

2020-11-25 Thread Atish Patra
On Wed, Nov 25, 2020 at 11:58 AM Palmer Dabbelt wrote: > > From: Palmer Dabbelt > > The timer driver uses get_cycles64() unconditionally to obtain the current > time. A recent refactoring lost the common definition for some configs, which > is now the only one we need. > > Fixes: d5be89a8d118

Re: [PATCH v11 2/5] ACPI/PCI: Ignore _OSC negotiation result if pcie_ports_native is set.

2020-11-25 Thread Kuppuswamy, Sathyanarayanan
Hi Bjorn, Thanks for the review. On 11/25/20 12:12 PM, Bjorn Helgaas wrote: On Mon, Oct 26, 2020 at 07:57:05PM -0700, Kuppuswamy Sathyanarayanan wrote: pcie_ports_native is set only if user requests native handling of PCIe capabilities via pcie_port_setup command line option. User input takes

[PATCH v3 5/6] media: uvcvideo: Use dma_alloc_noncontiguos API

2020-11-25 Thread Ricardo Ribalda
On architectures where the is no coherent caching such as ARM use the dma_alloc_noncontiguos API and handle manually the cache flushing using dma_sync_sgtable(). With this patch on the affected architectures we can measure up to 20x performance improvement in uvc_video_copy_data_work().

Re: [PATCH v7 1/8] block: ensure bios are not split in middle of crypto data unit

2020-11-25 Thread Eric Biggers
On Tue, Nov 17, 2020 at 02:07:01PM +, Satya Tangirala wrote: > @@ -275,11 +331,24 @@ static struct bio *blk_bio_segment_split(struct > request_queue *q, > bvprvp = > } > > + /* > + * The input bio's number of sectors is assumed to be aligned to > + *

Re: [PATCH] thermal: amlogic_thermal: Add hwmon support

2020-11-25 Thread Daniel Lezcano
Hi Thanks for your patch but exactly the same patch was submitted and merged [1] -- Daniel [1] https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git/commit/?h=thermal/next=cb68a8580e2086fad38597af4c60d39de8df0cde On 25/11/2020 17:24, Dongjin Kim wrote: > Expose Amlogic thermal as

Re: [PATCH v7 1/8] block: ensure bios are not split in middle of crypto data unit

2020-11-25 Thread Eric Biggers
On Wed, Nov 18, 2020 at 12:38:15AM +, Satya Tangirala wrote: > > > +/** > > > + * update_aligned_sectors_and_segs() - Ensures that *@aligned_sectors is > > > aligned > > > + * to @bio_sectors_alignment, and > > > that > > > + *

Re: [RFC PATCH 03/67] x86/cpu: Move get_builtin_firmware() common code (from microcode only)

2020-11-25 Thread Borislav Petkov
On Mon, Nov 16, 2020 at 10:25:48AM -0800, isaku.yamah...@intel.com wrote: > From: Zhang Chen > > Move get_builtin_firmware() to common.c so that it can be used to get > non-ucode firmware, e.g. Intel's SEAM modules, even if MICROCODE=n. What for? This is used for microcode built in the kernel

Re: [Intel-wired-lan] [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-25 Thread Nick Desaulniers
On Wed, Nov 25, 2020 at 1:33 PM Finn Thain wrote: > > Or do you think that a codebase can somehow satisfy multiple checkers and > their divergent interpretations of the language spec? Have we found any cases yet that are divergent? I don't think so. It sounds to me like GCC's cases it warns for

Re: [Intel-wired-lan] [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-25 Thread Nick Desaulniers
On Wed, Nov 25, 2020 at 8:24 AM Jakub Kicinski wrote: > > Applying a real patch set and then getting a few follow ups the next day > for trivial coding things like fallthrough missing or static missing, > just because I didn't have the full range of compilers to check with > before applying makes

[ANNOUNCE] 4.19.160-rt69

2020-11-25 Thread Tom Zanussi
Hello RT Folks! I'm pleased to announce the 4.19.160-rt69 stable release. This release is just an update to the new stable 4.19.160 version and no RT specific changes have been made. You can get this release via the git tree at:

Re: [PATCH 6/6] mm: proc: Avoid fullmm flush for young/dirty bit toggling

2020-11-25 Thread Minchan Kim
On Mon, Nov 23, 2020 at 06:13:34PM -0700, Yu Zhao wrote: > On Mon, Nov 23, 2020 at 09:17:51PM +, Will Deacon wrote: > > On Mon, Nov 23, 2020 at 01:04:03PM -0700, Yu Zhao wrote: > > > On Mon, Nov 23, 2020 at 06:35:55PM +, Will Deacon wrote: > > > > On Fri, Nov 20, 2020 at 01:40:05PM -0700,

Re: kernel BUG at fs/ext4/inode.c:LINE!

2020-11-25 Thread Linus Torvalds
On Wed, Nov 25, 2020 at 1:30 PM Linus Torvalds wrote: > > I'm not sure I'm willing to write and test the real patch, but it > doesn't look _too_ nasty from just looking at the code. The bookmark > thing makes it important to only actually clear the bit at the end (as > does the handoff case

Re: [RFC] openprom: Fix 'opiocnextprop'; ensure integer conversions; use string size

2020-11-25 Thread Randy Dunlap
On 9/4/20 12:40 PM, Michael Witten wrote: The following patch improves the quality and correctness of the openprom code. I have neither a machine to test the result nor a toolchain to compile it, and that is why it is listed currently as an "RFC". Nonetheless, I believe those who do have these

Re: [PATCH AUTOSEL 5.9 33/33] xfs: don't allow NOWAIT DIO across extent boundaries

2020-11-25 Thread Dave Chinner
On Wed, Nov 25, 2020 at 10:35:50AM -0500, Sasha Levin wrote: > From: Dave Chinner > > [ Upstream commit 883a790a84401f6f55992887fd7263d808d4d05d ] > > Jens has reported a situation where partial direct IOs can be issued > and completed yet still return -EAGAIN. We don't want this to report > a

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