Re: [PATCH 0/7] sunxi: Remove the calls to dma_direct_set_offset

2020-11-19 Thread Christoph Hellwig
On Mon, Nov 09, 2020 at 10:43:03AM +0100, Maxime Ripard wrote: > Hi Christoph, Chen-Yu, Hans, > > On Fri, Nov 06, 2020 at 05:07:37PM +0100, Christoph Hellwig wrote: > > Thanks, > > > > this looks good to me: > > > > Reviewed-by: Christoph Hellwig > > > > Can you include this patch at the end

[PATCH] media: fsl-viu: Use proper check for presence of {out,in}_be32()

2020-11-19 Thread Geert Uytterhoeven
When compile-testing on m68k/randconfig: drivers/media/platform/fsl-viu.c: In function 'viu_start_dma': drivers/media/platform/fsl-viu.c:253:2: error: implicit declaration of function 'out_be32' [-Werror=implicit-function-declaration] drivers/media/platform/fsl-viu.c: In function

[PATCH v9 0/4] Add support for mv88e6393x family of Marvell

2020-11-19 Thread Pavana Sharma
Thanks for the review. Here's updated patchset. All possible checkpatch 'checks' are attended. Pavana Sharma (4): dt-bindings: net: Add 5GBASER phy interface mode net: phy: Add 5GBASER interface mode net: dsa: mv88e6xxx: Change serdes lane parameter from u8 type to int net: dsa:

[PATCH v9 1/4] dt-bindings: net: Add 5GBASER phy interface mode

2020-11-19 Thread Pavana Sharma
Add 5gbase-r PHY interface mode. Signed-off-by: Pavana Sharma --- Documentation/devicetree/bindings/net/ethernet-controller.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml

Re: [RFC -V5] autonuma: Migrate on fault among multiple bound nodes

2020-11-19 Thread Huang, Ying
Mel Gorman writes: > On Thu, Nov 19, 2020 at 02:17:21PM +0800, Huang, Ying wrote: >> >> Various page placement optimization based on the NUMA balancing can be >> >> done with these flags. As the first step, in this patch, if the >> >> memory of the application is bound to multiple nodes

[PATCH v9 2/4] net: phy: Add 5GBASER interface mode

2020-11-19 Thread Pavana Sharma
Add 5GBASE-R phy interface mode Signed-off-by: Pavana Sharma --- include/linux/phy.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/phy.h b/include/linux/phy.h index eb3cb1a98b45..71e280059ec5 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -106,6 +106,7 @@

[PATCH v9 3/4] net: dsa: mv88e6xxx: Change serdes lane parameter from u8 type to int

2020-11-19 Thread Pavana Sharma
Returning 0 is no more an error case with MV88E6393 family which has serdes lane numbers 0, 9 or 10. So with this change .serdes_get_lane will return lane number or -errno (-ENODEV or -EOPNOTSUPP). Signed-off-by: Pavana Sharma --- drivers/net/dsa/mv88e6xxx/chip.c | 28 ++--

[PATCH v9 4/4] net: dsa: mv88e6xxx: Add support for mv88e6393x family of Marvell

2020-11-19 Thread Pavana Sharma
The Marvell 88E6393X device is a single-chip integration of a 11-port Ethernet switch with eight integrated Gigabit Ethernet (GbE) transceivers and three 10-Gigabit interfaces. This patch adds functionalities specific to mv88e6393x family (88E6393X, 88E6193X and 88E6191X) Co-developed-by: Ashkan

Re: [RFC][PATCH v2 12/21] x86/pti: Use PTI stack instead of trampoline stack

2020-11-19 Thread Alexandre Chartre
On 11/19/20 2:49 AM, Andy Lutomirski wrote: On Tue, Nov 17, 2020 at 8:59 AM Alexandre Chartre wrote: On 11/17/20 4:52 PM, Andy Lutomirski wrote: On Tue, Nov 17, 2020 at 7:07 AM Alexandre Chartre wrote: On 11/16/20 7:34 PM, Andy Lutomirski wrote: On Mon, Nov 16, 2020 at 10:10 AM

Re: [PATCH 3/3] MIPS: KASLR: Make relocation_address can be configured

2020-11-19 Thread Sergei Shtylyov
Hello! On 19.11.2020 5:29, Jinyang He wrote: When CONFIG_RANDOMIZE_BASE is not set, determine_relocation_address() always returns a constant. It is not friendly to users if the address cannot be used. Make it can be configured at Kconfig. Make it configurable? Signed-off-by: Jinyang He

Re: [PATCH v2 0/2] arm: sti: LL_UART updates & STiH418 addition

2020-11-19 Thread Patrice CHOTARD
Hi Russell Is there any reason for this series not being merged ? Thanks Patrice On 8/30/20 9:57 PM, Alain Volmat wrote: > This serie update the STi Platform LL_UART code to rely on > DEBUG_UART_PHYS & DEBUG_UART_VIRT and add the STiH418 SoC support. > > Alain Volmat (2): > arm: use

RE: [PATCH] Input: adp5589-keys - mark suspend and resume methods as __maybe_unused

2020-11-19 Thread Ardelean, Alexandru
> -Original Message- > From: Dmitry Torokhov > Sent: Thursday, November 19, 2020 9:24 AM > To: linux-in...@vger.kernel.org > Cc: Ardelean, Alexandru ; linux- > ker...@vger.kernel.org > Subject: [PATCH] Input: adp5589-keys - mark suspend and resume methods as > __maybe_unused > >

Re: [PATCH v3 2/4] platform/chrome: cros_ec_typec: Use Thunderbolt 3 cable discover mode VDO in USB4 mode

2020-11-19 Thread Prashant Malani
Hi Utkarsh, On Wed, Nov 18, 2020 at 10:32:09PM -0800, Utkarsh Patel wrote: > Configure Thunderbolt 3 cable generation value by filling Thunderbolt 3 > cable discover mode VDO to support rounded Thunderbolt 3 cables. > While we are here use Thunderbolt 3 cable discover mode VDO to fill active >

Re: [PATCH net-next v3 0/6] net/x25: netdev event handling

2020-11-19 Thread Xie He
On Wed, Nov 18, 2020 at 11:02 PM Martin Schiller wrote: > > On 2020-11-18 15:47, Xie He wrote: > > > > But... Won't it be better to handle L2 connections in L2 code? > > > > For example, if we are running X.25 over XOT, we can decide in the XOT > > layer whether and when we reconnect in case the

Re: [PATCH 4.19 00/71] 4.19.156-rc1 review

2020-11-19 Thread Pavel Machek
Hi! > This is the start of the stable review cycle for the 4.19.156 release. > There are 71 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses should be made by Wed, 11 Nov 2020 12:50:04

[PATCH] coredump: fix core_pattern parse error

2020-11-19 Thread menglong8 . dong
From: Menglong Dong 'format_corename()' will splite 'core_pattern' on spaces when it is in pipe mode, and take helper_argv[0] as the path to usermode executable. It works fine in most cases. However, if there is a space between '|' and '/file/path', such as '| /usr/lib/systemd/systemd-coredump

Re: [PATCH 1/6] relay: allow the use of const callback structs

2020-11-19 Thread Christoph Hellwig
> +/* > + * rchan_callback wrappers. Call the callbacks if available, otherwise fall > back > + * to default behaviour. > + */ This adds an overly long line. That being said this behavior is pretty normal for kernel APIs, so I'm not even sure we need it at all. > + > +/* > + * subbuf_start()

Re: [PATCH 1/6] relay: allow the use of const callback structs

2020-11-19 Thread Christoph Hellwig
On Thu, Nov 19, 2020 at 08:11:20AM +, Christoph Hellwig wrote: > Please also add a patch to mark all rchan_callbacks instances const > while you're at it. Oops, I just noticed you actually sent that one.

[PATCH] misc/sgi-xp: Replace in_interrupt() usage

2020-11-19 Thread Sebastian Andrzej Siewior
From: Thomas Gleixner The usage of in_interrupt() in xpc_partition_disengaged() is clearly intended to avoid canceling the timeout timer when the function is invoked from the timer callback. While in_interrupt() is deprecated and ill defined as it does not provide what the name suggests it

Re: [PATCH RFC tip/core/rcu 1/5] srcu: Make Tiny SRCU use multi-bit grace-period counter

2020-11-19 Thread Neeraj Upadhyay
Hi Paul, On 11/17/2020 6:10 AM, paul...@kernel.org wrote: From: "Paul E. McKenney" There is a need for a polling interface for SRCU grace periods. This polling needs to distinguish between an SRCU instance being idle on the one hand or in the middle of a grace period on the other. This

Re: [MPTCP] WARNING: net/mptcp/protocol.c:719 mptcp_reset_timer+0x40/0x50

2020-11-19 Thread Matthieu Baerts
Hi Naresh, On 19/11/2020 08:04, Naresh Kamboju wrote: While running kselftest net/mptcp: mptcp_join.sh on x86_64 device running linux next 20201118 tag the following warning was noticed. Thank you for testing MPTCP and having reported this bug! It looks like it is similar to what syzbot

Re: [RFC PATCH v4] sched/fair: select idle cpu from idle cpumask for task wakeup

2020-11-19 Thread Vincent Guittot
On Thu, 19 Nov 2020 at 02:34, Li, Aubrey wrote: > > Hi Vincent, > > On 2020/11/18 21:36, Vincent Guittot wrote: > > On Wed, 18 Nov 2020 at 04:48, Aubrey Li wrote: > >> > >> From: Aubrey Li > >> > >> Add idle cpumask to track idle cpus in sched domain. When a CPU > >> enters idle, if the idle

[PATCH] media: rc: add keymap for KHAMSIN remote

2020-11-19 Thread Christian Hewitt
This remote ships with the Amlogic SML-5442TW IPTV/VOD Set-tob Box [0] used by O2.cz. This keymap adds support for the default IR controls. Signed-off-by: Christian Hewitt --- drivers/media/rc/keymaps/Makefile | 1 + drivers/media/rc/keymaps/rc-khamsin.c | 75 +++

Re: violating function pointer signature

2020-11-19 Thread Peter Zijlstra
On Wed, Nov 18, 2020 at 01:48:37PM -0600, Segher Boessenkool wrote: > If you have at most four or so args, what you wnat to do will work on > all systems the kernel currently supports, as far as I can tell. It > is not valid C, and none of the compilers have an extension for this > either. But

[PATCH] drivers: fpga: Specify HAS_IOMEM dependency for FPGA_DFL

2020-11-19 Thread David Gow
Because dfl.c uses the 'devm_ioremap', 'devm_iounmap', 'devm_ioremap_resource', and 'devm_platform_ioremap_resource' functions, it should depend on HAS_IOMEM. This fixes make allyesconfig under UML (ARCH=um), which doesn't provide HAS_IOMEM. Signed-off-by: David Gow --- drivers/fpga/Kconfig |

Re: [PATCH] phy: phy-bcm-ns-usb3: drop support for deprecated DT binding

2020-11-19 Thread Rafał Miłecki
On Thu, 19 Nov 2020 at 07:27, Vinod Koul wrote: > > On 13-11-20, 12:34, Rafał Miłecki wrote: > > From: Rafał Miłecki > > > > Initially this PHY driver was implementing MDIO access on its own. It > > was caused by lack of proper hardware design understanding. > > > > It has been changed back in

Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-11-19 Thread Fox Chen
On Fri, Nov 13, 2020 at 2:15 PM Brice Goglin wrote: > > > Le 12/11/2020 à 11:49, Greg Kroah-Hartman a écrit : > > On Thu, Nov 12, 2020 at 10:10:57AM +0100, Brice Goglin wrote: > > Le 12/11/2020 à 07:42, Greg Kroah-Hartman a écrit : > > On Thu, Nov 12, 2020 at 07:19:48AM +0100, Brice Goglin wrote:

Re: [PATCH v2 0/2] arm: sti: LL_UART updates & STiH418 addition

2020-11-19 Thread Linus Walleij
On Thu, Nov 19, 2020 at 9:08 AM Patrice CHOTARD wrote: > Is there any reason for this series not being merged ? Did you put them into Russell's patch tracker as I asked? I haven't seen them there. https://www.armlinux.org.uk/developer/patches/ Yours, Linus Walleij

net/mptcp/options.c:203:3: warning: Assignment of function parameter has no effect outside the function.

2020-11-19 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: c2e7554e1b85935d962127efa3c2a76483b0b3b6 commit: 6d0060f600adfddaa43fefb96b6b12643331961e mptcp: Write MPTCP DSS headers to outgoing data packets compiler: h8300-linux-gcc (GCC) 9.3.0 If you fix the issue,

RE: [PATCH] Input: adp5589-keys - use BIT()

2020-11-19 Thread Ardelean, Alexandru
> -Original Message- > From: Dmitry Torokhov > Sent: Thursday, November 19, 2020 9:25 AM > To: linux-in...@vger.kernel.org > Cc: Ardelean, Alexandru ; linux- > ker...@vger.kernel.org > Subject: [PATCH] Input: adp5589-keys - use BIT() > > [External] > > Let's use BIT() macro instead

[PATCH] staging: hikey9xx: Specify HAS_IOMEM dependency for MFD_HI6421_SPMI

2020-11-19 Thread David Gow
MFD_CORE is selected by MFD_HI6421_SPMI, and MFD_CORE depends on HAS_IOMEM. If HAS_IOMEM is not set, this can cause a conflict in Kconfig resolution, yielding the following error: WARNING: unmet direct dependencies detected for MFD_CORE Depends on [n]: HAS_IOMEM [=n] Selected by [y]: -

Re: [PATCH v2] iio: ad_sigma_delta: Don't put SPI transfer buffer on the stack

2020-11-19 Thread Alexandru Ardelean
On Sat, Nov 14, 2020 at 6:20 PM Jonathan Cameron wrote: > > On Fri, 13 Nov 2020 11:40:59 +0200 > Alexandru Ardelean wrote: > > > From: Lars-Peter Clausen > > > > Use a heap allocated memory for the SPI transfer buffer. Using stack memory > > can corrupt stack memory when using DMA on some

[PATCH v2 0/4] Revisit NUMA imbalance tolerance and fork balancing

2020-11-19 Thread Mel Gorman
Changelog since v1 o Split out patch that moves imbalance calculation o Strongly connect fork imbalance considerations with adjust_numa_imbalance When NUMA and CPU balancing were reconciled, there was an attempt to allow a degree of imbalance but it caused more problems than it solved. Instead,

[PATCH 3/4] sched/numa: Allow a floating imbalance between NUMA nodes

2020-11-19 Thread Mel Gorman
Currently, an imbalance is only allowed when a destination node is almost completely idle. This solved one basic class of problems and was the cautious approach. This patch revisits the possibility that NUMA nodes can be imbalanced until 25% of the CPUs are occupied. The reasoning behind 25% is

[PATCH 1/4] sched/numa: Rename nr_running and break out the magic number

2020-11-19 Thread Mel Gorman
This is simply a preparation patch to make the following patches easier to read. No functional change. Signed-off-by: Mel Gorman --- kernel/sched/fair.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index

[PATCH 4/4] sched: Limit the amount of NUMA imbalance that can exist at fork time

2020-11-19 Thread Mel Gorman
At fork time currently, a local node can be allowed to fill completely and allow the periodic load balancer to fix the problem. This can be problematic in cases where a task creates lots of threads that idle until woken as part of a worker poll causing a memory bandwidth problem. However, a

[PATCH 2/4] sched: Avoid unnecessary calculation of load imbalance at clone time

2020-11-19 Thread Mel Gorman
In find_idlest_group(), the load imbalance is only relevant when the group is either overloaded or fully busy but it is calculated unconditionally. This patch moves the imbalance calculation to the context it is required. Technically, it is a micro-optimisation but really the benefit is avoiding

Re: [PATCH v2] mfd: syscon: Add syscon_regmap_lookup_by_phandle_optional() function.

2020-11-19 Thread Lee Jones
On Wed, 18 Nov 2020, Matthias Brugger wrote: > > > On 17/11/2020 17:40, Arnd Bergmann wrote: > > On Tue, Nov 17, 2020 at 5:07 PM Lee Jones wrote: > > > On Tue, 17 Nov 2020, Matthias Brugger wrote: > > > > On 17/11/2020 13:37, Lee Jones wrote: > > > > > On Tue, 17 Nov 2020, Matthias Brugger

Re: [PATCH] arm64: vmlinux.lds.S: Drop redundant *.init.rodata.*

2020-11-19 Thread Youling Tang
Hi, Ard On 11/19/2020 03:18 PM, Ard Biesheuvel wrote: On Thu, 19 Nov 2020 at 02:45, Youling Tang wrote: We currently try to emit *.init.rodata.* twice, once in INIT_DATA, and once in the line immediately following it. As the two section definitions are identical, the latter is redundant and

Re: [PATCH v3 0/5] console: Miscellaneous clean-ups, do not use FNTCHARCNT() in fbcon.c

2020-11-19 Thread Peilin Ye
On Sat, Nov 14, 2020 at 01:22:22PM +0100, Greg Kroah-Hartman wrote: > Ah, here's a hint: > https://wiki.archlinux.org/index.php/Linux_console#Fonts > > The setfont tool should help you out here. setfont seems to work fine, I tried Georgian-Fixed16 (256 chars) and Uni2-VGA16 (512 chars)

[GIT PULL] Immutable branch between MFD and MediaTek due for the v5.11 merge window

2020-11-19 Thread Lee Jones
Enjoy! The following changes since commit 3650b228f83adda7e5ee532e2b90429c03f7b9ec: Linux 5.10-rc1 (2020-10-25 15:14:11 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git ib-mfd-mediatek-v5.11 for you to fetch changes up to

[PATCH v1] ARM: dts: add Nuvoton NPCM730 device tree

2020-11-19 Thread Tomer Maimon
Add Nuvoton NPCM730 SoC device tree. The Nuvoton NPCN730 SoC is a part of the Nuvoton NPCM7xx SoCs family. Signed-off-by: Tomer Maimon --- arch/arm/boot/dts/nuvoton-npcm730.dtsi | 44 ++ 1 file changed, 44 insertions(+) create mode 100644

Re: violating function pointer signature

2020-11-19 Thread Peter Zijlstra
On Wed, Nov 18, 2020 at 01:11:27PM -0600, Segher Boessenkool wrote: > Calling this via a different declared function type is undefined > behaviour, but that is independent of how the function is *defined*. > Your program can make ducks appear from your nose even if that function > is never called,

Re: [PATCH v2 0/6] drm/panel: mantix and st7703 fixes and additions

2020-11-19 Thread Linus Walleij
On Wed, Nov 18, 2020 at 9:29 AM Guido Günther wrote: > This adds new panel type to the mantix driver as found on the Librem 5 and > fixes a glitch in the init sequence (affecting both panels). The fix is at the > start of the series to make backporting simpler. > It also adds a patch to make

Re: [PATCH v3] sched/fair: fix unthrottle_cfs_rq for leaf_cfs_rq list

2020-11-19 Thread Vincent Guittot
On Thu, 19 Nov 2020 at 01:36, Tao Zhou wrote: > > On Thu, Nov 19, 2020 at 07:50:15AM +0800, Tao Zhou wrote: > > On Wed, Nov 18, 2020 at 07:56:38PM -0300, Guilherme G. Piccoli wrote: > > > Hi Vincent (and all CCed), I'm sorry to ping about such "old" patch, but > > > we experienced a similar

RE: [PATCH] arm64: mm: add support for memmap kernel parameters

2020-11-19 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Mike Rapoport [mailto:r...@kernel.org] > Sent: Thursday, November 19, 2020 8:57 PM > To: Song Bao Hua (Barry Song) > Cc: Ard Biesheuvel ; Will Deacon ; > anshuman.khand...@arm.com; catalin.mari...@arm.com; Linuxarm > ; linux-kernel@vger.kernel.org; >

Re: [PATCH v7 2/5] dt-bindings: leds: Add LED_COLOR_ID_MOONLIGHT definitions

2020-11-19 Thread Pavel Machek
Hi! > > > Moonlight has more current level(150mA) from general RGB LED (24mA). > > > It can be used as night-light and usually use color AMBER. > > > Camera flashes are usually use two flash LED. One is YELLOW, and one > > >is WHITE. > > > > From what I seen, night-lights are usually differetent

Re: [PATCH 0/7] sunxi: Remove the calls to dma_direct_set_offset

2020-11-19 Thread Maxime Ripard
Hi Christoph, On Thu, Nov 19, 2020 at 08:59:59AM +0100, Christoph Hellwig wrote: > On Mon, Nov 09, 2020 at 10:43:03AM +0100, Maxime Ripard wrote: > > Hi Christoph, Chen-Yu, Hans, > > > > On Fri, Nov 06, 2020 at 05:07:37PM +0100, Christoph Hellwig wrote: > > > Thanks, > > > > > > this looks good

Re: [PATCH] misc/sgi-xp: Replace in_interrupt() usage

2020-11-19 Thread Greg Kroah-Hartman
On Thu, Nov 19, 2020 at 09:13:54AM +0100, Sebastian Andrzej Siewior wrote: > From: Thomas Gleixner > > The usage of in_interrupt() in xpc_partition_disengaged() is clearly > intended to avoid canceling the timeout timer when the function is invoked > from the timer callback. > > While

Re: [patch V4 2/8] mm/highmem: Provide CONFIG_DEBUG_KMAP_LOCAL_FORCE_MAP

2020-11-19 Thread Mel Gorman
On Wed, Nov 18, 2020 at 01:13:57PM -0800, Linus Torvalds wrote: > On Wed, Nov 18, 2020 at 12:58 PM Thomas Gleixner wrote: > > > > Provide CONFIG_DEBUG_KMAP_LOCAL_FORCE_MAP which forces the temporary > > mapping even for lowmem pages. This needs to be a seperate config switch > > because this only

[PATCH for 4.14] powerpc/8xx: Always fault when _PAGE_ACCESSED is not set

2020-11-19 Thread Christophe Leroy
[This is backport for 4.14 of 29daf869cbab69088fe1755d9dd224e99ba78b56] The kernel expects pte_young() to work regardless of CONFIG_SWAP. Make sure a minor fault is taken to set _PAGE_ACCESSED when it is not already set, regardless of the selection of CONFIG_SWAP. This adds at least 3

[PATCH for 4.4] powerpc/8xx: Always fault when _PAGE_ACCESSED is not set

2020-11-19 Thread Christophe Leroy
[This is backport for 4.4 of 29daf869cbab69088fe1755d9dd224e99ba78b56] The kernel expects pte_young() to work regardless of CONFIG_SWAP. Make sure a minor fault is taken to set _PAGE_ACCESSED when it is not already set, regardless of the selection of CONFIG_SWAP. This adds at least 3

[PATCH for 4.19] powerpc/8xx: Always fault when _PAGE_ACCESSED is not set

2020-11-19 Thread Christophe Leroy
[This is backport for 4.19 of 29daf869cbab69088fe1755d9dd224e99ba78b56] The kernel expects pte_young() to work regardless of CONFIG_SWAP. Make sure a minor fault is taken to set _PAGE_ACCESSED when it is not already set, regardless of the selection of CONFIG_SWAP. This adds at least 3

[PATCH for 5.4] powerpc/8xx: Always fault when _PAGE_ACCESSED is not set

2020-11-19 Thread Christophe Leroy
[This is backport for 5.4 of 29daf869cbab69088fe1755d9dd224e99ba78b56] The kernel expects pte_young() to work regardless of CONFIG_SWAP. Make sure a minor fault is taken to set _PAGE_ACCESSED when it is not already set, regardless of the selection of CONFIG_SWAP. This adds at least 3

Re: [PATCH] crypto: hisilicon/zip - add a work_queue for zip irq

2020-11-19 Thread Zhou Wang
On 2020/11/13 17:32, Yang Shen wrote: > The patch 'irqchip/gic-v3-its: Balance initial LPI affinity across CPUs' > set the IRQ to an uncentain CPU. If an IRQ is bound to the CPU used by the > thread which is sending request, the throughput will be just half. > > So allocate a 'work_queue' and set

[PATCH for 4.9] powerpc/8xx: Always fault when _PAGE_ACCESSED is not set

2020-11-19 Thread Christophe Leroy
[This is backport for 4.9 of 29daf869cbab69088fe1755d9dd224e99ba78b56] The kernel expects pte_young() to work regardless of CONFIG_SWAP. Make sure a minor fault is taken to set _PAGE_ACCESSED when it is not already set, regardless of the selection of CONFIG_SWAP. This adds at least 3

Re: next/master bisection: baseline.dmesg.emerg on meson-gxbb-p200

2020-11-19 Thread Guillaume Tucker
are still present in next-20201119. Details for this regression: https://kernelci.org/test/case/id/5fb6196bfd0127fd68d8d902/ The first error is: [ 14.757489] Internal error: synchronous external abort: 96000210 [#1] PREEMPT SMP Full log: https://storage.kernelci.org/next/master/next-20201119

[RFC PATCH] bpf: preload: Fix build error when O= is set

2020-11-19 Thread David Gow
If BPF_PRELOAD is enabled, and an out-of-tree build is requested with make O=, compilation seems to fail with: tools/scripts/Makefile.include:4: *** O=.kunit does not exist. Stop. make[4]: *** [../kernel/bpf/preload/Makefile:8: kernel/bpf/preload/libbpf.a] Error 2 make[3]: ***

[PATCH v5 00/16] Tegra XHCI controller ELPG support

2020-11-19 Thread JC Kuo
Tegra XHCI controler can be placed in ELPG (Engine Level PowerGated) state for power saving when all of the connected USB devices are in suspended state. This patch series includes clk, phy and pmc changes that are required for properly place controller in ELPG and bring controller out of ELPG.

[PATCH v5 01/16] clk: tegra: Add PLLE HW power sequencer control

2020-11-19 Thread JC Kuo
PLLE has a hardware power sequencer logic which is a state machine that can power on/off PLLE without any software intervention. The sequencer has two inputs, one from XUSB UPHY PLL and the other from SATA UPHY PLL. PLLE provides reference clock to XUSB and SATA UPHY PLLs. When both of the

[PATCH v5 04/16] phy: tegra: xusb: tegra210: Do not reset UPHY PLL

2020-11-19 Thread JC Kuo
Once UPHY PLL hardware power sequencer is enabled, do not assert reset to PEX/SATA PLLs, otherwise UPHY PLL operation will be broken. This commit removes reset_control_assert(pcie->rst) and reset_control_assert(sata->rst) from PEX/SATA UPHY disable procedure. Signed-off-by: JC Kuo --- v5: no

[PATCH v5 05/16] phy: tegra: xusb: Rearrange UPHY init on Tegra210

2020-11-19 Thread JC Kuo
This commit is a preparation for enabling XUSB SC7 support. It rearranges Tegra210 XUSB PADCTL UPHY initialization sequence, for the following reasons: 1. PLLE hardware power sequencer has to be enabled only after both PEX UPHY PLL and SATA UPHY PLL are initialized. tegra210_uphy_init() ->

[PATCH v5 06/16] phy: tegra: xusb: Add Tegra210 lane_iddq operation

2020-11-19 Thread JC Kuo
As per Tegra210 TRM, before changing lane assignments, driver should keep lanes in IDDQ and sleep state; after changing lane assignments, driver should bring lanes out of IDDQ. This commit implements the required operations. Signed-off-by: JC Kuo Acked-by: Thierry Reding --- v5: no change

[PATCH v5 08/16] soc/tegra: pmc: Provide USB sleepwalk register map

2020-11-19 Thread JC Kuo
This commit implements a register map which grants USB (UTMI and HSIC) sleepwalk registers access to USB PHY drivers. The USB sleepwalk logic is in PMC hardware block but USB PHY drivers have the best knowledge of proper programming sequence. Signed-off-by: JC Kuo Acked-by: Thierry Reding ---

[PATCH v5 10/16] dt-bindings: phy: tegra-xusb: Add nvidia,pmc prop

2020-11-19 Thread JC Kuo
This commit describes the "nvidia,pmc" property for Tegra210 tegra-xusb PHY driver. It is a phandle and specifier referring to the Tegra210 pmc@7000e400 node. Signed-off-by: JC Kuo --- v5: replace "pmc@7000e400 node" -> with "PMC node" v4: new change to document "nvidia,pmc" prop

[PATCH v5 09/16] arm64: tegra210: XUSB PADCTL add "nvidia,pmc" prop

2020-11-19 Thread JC Kuo
PMC driver provides USB sleepwalk registers access to XUSB PADCTL driver. This commit adds a "nvidia,pmc" property which points to PMC node to XUSB PADCTL device node. Signed-off-by: JC Kuo --- v5: no change v4: no change v3: no change arch/arm64/boot/dts/nvidia/tegra210.dtsi | 1 + 1

[PATCH v5 12/16] phy: tegra: xusb: Tegra210 host mode VBUS control

2020-11-19 Thread JC Kuo
To support XUSB host controller ELPG, this commit moves VBUS control .phy_power_on()/.phy_power_off() to .phy_init()/.phy_exit(). When XUSB host controller enters ELPG, host driver invokes .phy_power_off(), VBUS should remain ON so that USB devices will not disconnect. VBUS can be turned OFF when

[PATCH v5 11/16] phy: tegra: xusb: Add wake/sleepwalk for Tegra210

2020-11-19 Thread JC Kuo
This commit implements Tegra210 XUSB PADCTL wake and sleepwalk routines. Sleepwalk logic is in PMC (always-on) hardware block. PMC driver provides managed access to the sleepwalk registers via regmap framework. Signed-off-by: JC Kuo --- v5: no change v4: move sleepwalk/wake stubs from

[PATCH v5 13/16] phy: tegra: xusb: Add wake/sleepwalk for Tegra186

2020-11-19 Thread JC Kuo
This commit implements Tegra186/Tegra194 XUSB PADCTL/AO wake and sleepwalk operations. Signed-off-by: JC Kuo --- v5: no change v4: move sleepwalk/wake stubs from 'struct tegra_xusb_padctl_ops' to 'struct tegra_xusb_lane_ops' v3: move 'ao_regs' to the top of 'struct

[PATCH v5 15/16] usb: host: xhci-tegra: Unlink power domain devices

2020-11-19 Thread JC Kuo
This commit unlinks xhci-tegra platform device with SS/host power domain devices. Reasons for this change is - at ELPG entry, PHY sleepwalk and wake configuration need to be done before powering down SS/host partitions, and PHY need be powered off after powering down SS/host partitions. Sequence

[PATCH v5 07/16] phy: tegra: xusb: Add sleepwalk and suspend/resume

2020-11-19 Thread JC Kuo
This commit adds sleepwalk/wake and suspend/resume interfaces to Tegra XUSB PHY driver. Tegra XUSB host controller driver makes use of sleepwalk functions to enable/disable sleepwalk circuit which is in always-on partition and can respond to USB resume signals when controller is not powered.

[PATCH v5 16/16] xhci: tegra: Enable ELPG for runtime/system PM

2020-11-19 Thread JC Kuo
This commit implements the complete programming sequence for ELPG entry and exit. 1. At ELPG entry, invokes tegra_xusb_padctl_enable_phy_sleepwalk() and tegra_xusb_padctl_enable_phy_wake() to configure XUSB PADCTL sleepwalk and wake detection circuits to maintain USB lines level and

[PATCH v5 14/16] arm64: tegra210/tegra186/tegra194: XUSB PADCTL irq

2020-11-19 Thread JC Kuo
This commit adds "interrupts" property to Tegra210/Tegra186/Tegra194 XUSB PADCTL node. XUSB PADCTL interrupt will be raised when USB wake event happens. This is required for supporting XUSB host controller ELPG. Signed-off-by: JC Kuo --- v5: no change v4: no change v3: no change

[PATCH v5 03/16] phy: tegra: xusb: Move usb3 port init for Tegra210

2020-11-19 Thread JC Kuo
The programming sequence in tegra210_usb3_port_enable() is required for both cold boot and SC7 exit, and must be performed only after PEX/SATA UPHY is initialized. Therefore, this commit moves the programming sequence to tegra210_usb3_phy_power_on(). PCIE/SATA phy .power_on() stub will invoke

[PATCH v5 02/16] clk: tegra: Don't enable PLLE HW sequencer at init

2020-11-19 Thread JC Kuo
PLLE hardware power sequencer references PEX/SATA UPHY PLL hardware power sequencers' output to enable/disable PLLE. PLLE hardware power sequencer has to be enabled only after PEX/SATA UPHY PLL's sequencers are enabled. Signed-off-by: JC Kuo Acked-by: Thierry Reding --- v5: no change v4:

Re: [RFC net-next 1/2] ethtool: add support for controling the type of adaptive coalescing

2020-11-19 Thread tanhuazhong
On 2020/11/19 12:15, Andrew Lunn wrote: diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h index 9ca87bc..afd8de2 100644 --- a/include/uapi/linux/ethtool.h +++ b/include/uapi/linux/ethtool.h @@ -433,6 +433,7 @@ struct ethtool_modinfo { *a TX interrupt, when the

[PATCH] tty: serial: replace spin_lock_irqsave by spin_lock in hard IRQ

2020-11-19 Thread Tian Tao
The code has been in a irq-disabled context since it is hard IRQ. There is no necessity to do it again. Signed-off-by: Tian Tao --- drivers/tty/serial/owl-uart.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/owl-uart.c

Re: [PATCH] tty: serial: replace spin_lock_irqsave by spin_lock in hard IRQ

2020-11-19 Thread Jiri Slaby
On 19. 11. 20, 10:01, Tian Tao wrote: The code has been in a irq-disabled context since it is hard IRQ. There is no necessity to do it again. Signed-off-by: Tian Tao Reviewed-by: Jiri Slaby --- drivers/tty/serial/owl-uart.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)

Re: [PATCH] arm64: vmlinux.lds.S: Drop redundant *.init.rodata.*

2020-11-19 Thread Will Deacon
On Thu, Nov 19, 2020 at 04:32:48PM +0800, Youling Tang wrote: > On 11/19/2020 03:18 PM, Ard Biesheuvel wrote: > > On Thu, 19 Nov 2020 at 02:45, Youling Tang wrote: > > > We currently try to emit *.init.rodata.* twice, once in INIT_DATA, and > > > once > > > in the line immediately following it.

Re: [PATCH] arm64: vmlinux.lds.S: Drop redundant *.init.rodata.*

2020-11-19 Thread Will Deacon
On Thu, Nov 19, 2020 at 09:45:40AM +0800, Youling Tang wrote: > We currently try to emit *.init.rodata.* twice, once in INIT_DATA, and once > in the line immediately following it. As the two section definitions are > identical, the latter is redundant and can be dropped. > > This patch drops the

Re: [PATCH v5 1/6] ASoC: dt-bindings: tegra: Add graph bindings

2020-11-19 Thread Sameer Pujar
Hi Rob, Add device tree binding properties of generic graph to ASoC component devices. This allows to define audio ports out of these components or DAIs and audio graph based sound card can be realised with this. This is all dependent on graph.yaml being applied which hasn't happened yet. I

Re: [PATCH 05/15] input: touchscreen: imx6ul_tsc: Remove set but unused variable 'value'

2020-11-19 Thread Lee Jones
On Thu, 12 Nov 2020, Dmitry Torokhov wrote: > On Thu, Nov 12, 2020 at 11:01:54AM +, Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > > > drivers/input/touchscreen/imx6ul_tsc.c: In function ‘adc_irq_fn’: > > drivers/input/touchscreen/imx6ul_tsc.c:307:6: warning:

Re: [PATCH] PCI: Decode PCIe 64 GT/s link speed

2020-11-19 Thread Krzysztof Wilczyński
Hi Gustavo, > PCIe r6.0, sec 7.5.3.18, defines a new 64.0 GT/s bit in the Supported > Link Speeds Vector of Link Capabilities 2. 64 GT/s already, nice. > This does not affect the speed of the link, which should be negotiated > automatically by the hardware; it only adds decoding when showing

Re: [PATCH v2 01/23] mtd: mtdpart: Fix misdocumented function parameter 'mtd'

2020-11-19 Thread Lee Jones
On Fri, 06 Nov 2020, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/mtd/mtdpart.c:300: warning: Function parameter or member 'mtd' not > described in '__mtd_del_partition' > drivers/mtd/mtdpart.c:300: warning: Excess function parameter 'priv' > description in

Re: [PATCH v4] mm: Optional full ASLR for mmap() and mremap()

2020-11-19 Thread Topi Miettinen
On 19.11.2020 0.42, Jann Horn wrote: On Tue, Nov 17, 2020 at 5:55 PM Matthew Wilcox wrote: On Mon, Oct 26, 2020 at 06:05:18PM +0200, Topi Miettinen wrote: Writing a new value of 3 to /proc/sys/kernel/randomize_va_space enables full randomization of memory mappings created with mmap(NULL,

Re: [PATCH] bus: ti-sysc: suppress err msg for timers used as clockevent/source

2020-11-19 Thread Tony Lindgren
* Grygorii Strashko [201118 14:19]: > GP Timers used as clockevent/source are not available for ti-sysc bus and > handled by Kernel timekeeping core. Now ti-sysc produces error message > every time such timer is detected: > > "ti-sysc: probe of 4804.target-module failed with error -16" > >

Re: [PATCH v3 07/14] sched: Introduce restrict_cpus_allowed_ptr() to limit task CPU affinity

2020-11-19 Thread Quentin Perret
Hey Will, On Friday 13 Nov 2020 at 09:37:12 (+), Will Deacon wrote: > -static int __set_cpus_allowed_ptr(struct task_struct *p, > - const struct cpumask *new_mask, bool check) > +static int __set_cpus_allowed_ptr_locked(struct task_struct *p, > +

回复:[PATCH] mm: hugetlb: fix type of delta parameter in gather_surplus_pages()

2020-11-19 Thread liu xiang
Thanks for your advice. I will send a v2 patch. -- 发件人:Mike Kravetz 发送时间:2020年11月19日(星期四) 02:44 收件人:liu xiang ; linux-mm 抄 送:akpm ; linux-kernel ; liuxiang_1999 ; pan jiagen 主 题:Re: [PATCH] mm: hugetlb: fix type of delta

Re: [RFC PATCH v3] tools/x86: add kcpuid tool to show raw CPU features

2020-11-19 Thread Borislav Petkov
On Thu, Nov 19, 2020 at 03:20:55PM +0800, Feng Tang wrote: > I just tried the patch on one Debian 9 and 2 Ubuntus (16.04 & 20.10) with > different gcc versions, and haven't reproduced it yet. That's because you're testing in VMs and they have CPUID(4) which baremetal - where I am testing -

Re: [PATCH] gpio: omap: handle deferred probe with dev_err_probe() for gpiochip_add_data()

2020-11-19 Thread Tony Lindgren
* Grygorii Strashko [201118 14:33]: > The gpiochip_add_data() may return -EPROBE_DEFER which is not handled > properly by TI GPIO driver and causes unnecessary boot log messages. > > Hence, add proper deferred probe handling with new dev_err_probe() API. > > Signed-off-by: Grygorii Strashko

Re: [PATCH net-next] net: add in_softirq() debug checking in napi_consume_skb()

2020-11-19 Thread Yunsheng Lin
On 2020/11/19 0:26, Jakub Kicinski wrote: > On Wed, 18 Nov 2020 16:57:57 +0100 Peter Zijlstra wrote: >> On Wed, Nov 18, 2020 at 07:43:48AM -0800, Jakub Kicinski wrote: >> >>> TBH the last sentence I wrote isn't clear even to me at this point ;D >>> >>> Maybe using just the macros from preempt.h -

[PATCH v3 0/5] misc: Add Add Synopsys DesignWare xData IP driver

2020-11-19 Thread Gustavo Pimentel
This patch series adds a new driver called xData-pcie for the Synopsys DesignWare PCIe prototype. The driver configures and enables the Synopsys DesignWare PCIe traffic generator IP inside of prototype Endpoint which will generate upstream and downstream PCIe traffic. This allows to quickly test

[PATCH v3 1/5] misc: Add Synopsys DesignWare xData IP driver

2020-11-19 Thread Gustavo Pimentel
Add Synopsys DesignWare xData IP driver. This driver enables/disables the PCI traffic generator module pertain to the Synopsys DesignWare prototype. Signed-off-by: Gustavo Pimentel --- drivers/misc/dw-xdata-pcie.c | 379 +++ 1 file changed, 379

[PATCH v3 2/5] misc: Add Synopsys DesignWare xData IP driver to Makefile

2020-11-19 Thread Gustavo Pimentel
Add Synopsys DesignWare xData IP driver to Makefile. This driver enables/disables the PCIe traffic generator module pertain to the Synopsys DesignWare prototype. Signed-off-by: Gustavo Pimentel --- drivers/misc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/Makefile

[PATCH v3 3/5] misc: Add Synopsys DesignWare xData IP driver to Kconfig

2020-11-19 Thread Gustavo Pimentel
Add Synopsys DesignWare xData IP driver to Kconfig. This driver enables/disables the PCIe traffic generator module pertain to the Synopsys DesignWare prototype. Signed-off-by: Gustavo Pimentel --- drivers/misc/Kconfig | 11 +++ 1 file changed, 11 insertions(+) diff --git

[PATCH v3 5/5] MAINTAINERS: Add Synopsys xData IP driver maintainer

2020-11-19 Thread Gustavo Pimentel
Add Synopsys xData IP driver maintainer. This driver aims to support Synopsys xData IP and is normally distributed along with Synopsys PCIe EndPoint IP as a PCIe traffic generator (depends of the use and licensing agreement). Signed-off-by: Gustavo Pimentel --- MAINTAINERS | 7 +++ 1 file

[PATCH v3 4/5] Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver

2020-11-19 Thread Gustavo Pimentel
Add Documentation for dw-xdata-pcie driver. Signed-off-by: Gustavo Pimentel --- Documentation/misc-devices/dw-xdata-pcie.rst | 40 1 file changed, 40 insertions(+) create mode 100644 Documentation/misc-devices/dw-xdata-pcie.rst diff --git

Re: [PATCH v3 08/14] arm64: exec: Adjust affinity for compat tasks with mismatched 32-bit EL0

2020-11-19 Thread Quentin Perret
On Friday 13 Nov 2020 at 09:37:13 (+), Will Deacon wrote: > When exec'ing a 32-bit task on a system with mismatched support for > 32-bit EL0, try to ensure that it starts life on a CPU that can actually > run it. > > Signed-off-by: Will Deacon > --- > arch/arm64/kernel/process.c | 12

[RFC PATCH 1/2] KVM: X86: Add support for the emulation of DR6_BUS_LOCK bit

2020-11-19 Thread Chenyi Qiang
To avoid breaking the CPUs without bus lock detection, activate the DR6_BUS_LOCK bit (bit 11) conditionally in DR6_FIXED_1 bits. The set/clear of DR6_BUS_LOCK is similar to the DR6_RTM in DR6 register. The processor clears DR6_BUS_LOCK when bus lock debug exception is generated. (For all other

[RFC PATCH 0/2] Add KVM support for bus lock debug exception

2020-11-19 Thread Chenyi Qiang
A bus lock is acquired either through split locked access to writeback (WB) memory or by using locks to uncacheable (UC) memory. This is typically > 1000 cycles slower than atomic opertaion within a cache line. It also disrupts performance on other cores. Bus lock debug exception is a sub-feature

  1   2   3   4   5   6   7   8   9   10   >