Re: [PATCH v5 3/3] mm/page_alloc: Keep memoryless cpuless node 0 offline

2020-07-02 Thread Srikar Dronamraju
* Michal Hocko [2020-07-02 10:41:23]: > On Thu 02-07-20 12:14:08, Srikar Dronamraju wrote: > > * Michal Hocko [2020-07-01 14:21:10]: > > > > > > > The autonuma problem sounds interesting but again this patch > > > > > doesn't > > > > > really solve the underlying problem because I

[PATCH 2/2] dt-bindings: arm: fsl: Add Kontron i.MX8MM SoMs and boards

2020-07-02 Thread Schrempf Frieder
From: Frieder Schrempf Add entries for the SoMs and boards based on i.MX8MM from Kontron Electronics GmbH. Signed-off-by: Frieder Schrempf --- Documentation/devicetree/bindings/arm/fsl.yaml | 14 ++ 1 file changed, 14 insertions(+) diff --git

[kbuild] Re: [PATCH 5/5] connector: Create connector per namespace

2020-07-02 Thread Dan Carpenter
Hi Matt, url: https://github.com/0day-ci/linux/commits/Matt-Bennett/RFC-connector-Add-network-namespace-awareness/20200702-083030 base: https://git.kernel.org/pub/scm/linux/kernel/git/horms/ipvs.git master config: arm-randconfig-m031-20200701 (attached as .config) compiler: arm-linux

[PATCH 1/2] arm64: dts: Add the Kontron i.MX8M-Mini SoMs and baseboards

2020-07-02 Thread Schrempf Frieder
From: Frieder Schrempf Kontron Electronics GmbH offers small and powerful SoMs based on the i.MX8MM including PMIC, LPDDR4-RAM, eMMC and SPI NOR. The matching baseboards have the same form factor and similar interfaces as the other boards from the Kontron "Board-Line" family, including SD card,

[PATCH 0/2] Add support for Kontron i.MX8MM SoMs and boards

2020-07-02 Thread Schrempf Frieder
From: Frieder Schrempf Kontron Electronics GmbH offers small and powerful SoMs based on the i.MX8MM including PMIC, LPDDR4-RAM, eMMC and SPI NOR. Currently there are two SoM models: * SL i.MX8MM N8010 with 1GB RAM and 8 GB eMMC * SL i.MX8MM N8011 with 2GB RAM and 8 GB eMMC The matching

Re: [PATCH v3 3/7] sched/topology: Verify SD_* flags setup when sched_debug is on

2020-07-02 Thread Valentin Schneider
On 02/07/20 15:20, Peter Zijlstra wrote: > On Wed, Jul 01, 2020 at 08:06:51PM +0100, Valentin Schneider wrote: > >> @@ -29,6 +29,7 @@ static int sched_domain_debug_one(struct sched_domain *sd, >> int cpu, int level, >>struct cpumask *groupmask) >> { >>

Re: [RFC PATCH 01/10] timer: Prevent base->clk from moving backward

2020-07-02 Thread Frederic Weisbecker
On Thu, Jul 02, 2020 at 11:59:59AM +0200, Juri Lelli wrote: > On 02/07/20 01:20, Frederic Weisbecker wrote: > > On Wed, Jul 01, 2020 at 06:35:04PM +0200, Juri Lelli wrote: > > > Guess you might be faster to understand what I'm missing. :-) > > > > So, did you port only this patch or the whole set

Re: [PATCH v3 2/7] sched/topology: Define and assign sched_domain flag metadata

2020-07-02 Thread Valentin Schneider
Hi Quentin, Thanks for having a look! On 02/07/20 13:15, Quentin Perret wrote: > Hey Valentin, > > On Wednesday 01 Jul 2020 at 20:06:50 (+0100), Valentin Schneider wrote: >> +/* >> + * Domain members have different CPU capacities >> + * >> + * SHARED_PARENT: Set from the topmost domain down to

Re: [PATCH 1/2] dt-bindings: sound: fsl-asoc-card: add new compatible for I2S slave

2020-07-02 Thread Mark Brown
On Thu, Jul 02, 2020 at 04:11:14PM +0200, Arnaud Ferraris wrote: > fsl-asoc-card currently doesn't support generic codecs with the SoC > acting as I2S slave. > > This commit adds a new `fsl,imx-audio-i2s-slave` for this use-case, as > well as the following mandatory properties: Why require that

Re: [PATCH v2 6/6] hwmon: pmbus: use more devres helpers

2020-07-02 Thread Guenter Roeck
On 7/2/20 5:44 AM, Greg Kroah-Hartman wrote: > On Mon, Jun 29, 2020 at 08:50:08AM +0200, Bartosz Golaszewski wrote: >> From: Bartosz Golaszewski >> >> Shrink pmbus code by using devm_hwmon_device_register_with_groups() >> and devm_krealloc() instead of their non-managed variants. >> >>

Re: Perf: WARNING: arch/x86/entry/common.c:624 idtentry_exit_cond_rcu+0x92/0xc0

2020-07-02 Thread Naresh Kamboju
I have reported this warning on linux-next and now it is happening on linux mainline tree. May I know , are we missing a fix patch on linus 's tree ? - Naresh --- While running selftest x86 single_step_syscall_32 on i386 kernel linux 5.8.0-rc3 kernel warning noticed. steps to reproduce:

Re: [PATCH] IB/hfi1: Add explicit cast OPA_MTU_8192 to 'enum ib_mtu'

2020-07-02 Thread Jason Gunthorpe
On Mon, Jun 22, 2020 at 05:52:24PM -0700, Nathan Chancellor wrote: > Clang warns: > > drivers/infiniband/hw/hfi1/qp.c:198:9: warning: implicit conversion from > enumeration type 'enum opa_mtu' to different enumeration type 'enum > ib_mtu' [-Wenum-conversion] > mtu = OPA_MTU_8192;

Re: [PATCH net-next v2 0/5] mvpp2: XDP support

2020-07-02 Thread Matteo Croce
On Thu, Jul 2, 2020 at 4:12 PM Matteo Croce wrote: > > From: Matteo Croce > > From: Matteo Croce > DUP! Sorry. -- per aspera ad upstream

Re: [PATCH] spi: spidev: Add compatible for external SPI ports on Kontron boards

2020-07-02 Thread Mark Brown
On Thu, Jul 02, 2020 at 04:18:46PM +0200, Schrempf Frieder wrote: > From: Frieder Schrempf > > Allow external SPI ports on Kontron boards to use the spidev driver. I'd have expected this to require loading a DT overlay for whatever's attached? signature.asc Description: PGP signature

Re: [PATCH v2 06/17] irqchip/gic-v3: Configure SGIs as standard interrupts

2020-07-02 Thread Valentin Schneider
On 02/07/20 14:48, Marc Zyngier wrote: > On 2020-07-02 14:23, Valentin Schneider wrote: >> On 30/06/20 11:15, Marc Zyngier wrote: >>> On 2020-06-25 19:25, Valentin Schneider wrote: Also, while staring at this it dawned on me that IPI's don't need the eoimode=0 isb(): due to how the IPI

Re: [RFC PATCH v5 2/6] interconnect: Add generic interconnect driver for Exynos SoCs

2020-07-02 Thread Sylwester Nawrocki
On 02.07.2020 14:33, Georgi Djakov wrote: > On 7/2/20 15:01, Sylwester Nawrocki wrote: >> On 01.07.2020 14:50, Georgi Djakov wrote: >>> On 5/29/20 19:31, Sylwester Nawrocki wrote: +static int exynos_generic_icc_remove(struct platform_device *pdev) +{ + struct exynos_icc_priv *priv

[PATCH 3/4] ASoC: fsl_asrc: always use ratio for conversion

2020-07-02 Thread Arnaud Ferraris
Even when not in "Ideal Ratio" mode, ASRC can use an internally measured ratio, which greatly improves the conversion quality. This patch ensures we always use at least the internal ratio. Signed-off-by: Arnaud Ferraris --- sound/soc/fsl/fsl_asrc.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCH 1/4] dt-bindings: sound: fsl,asrc: add properties to select in/out clocks

2020-07-02 Thread Arnaud Ferraris
The ASRC peripheral accepts a wide range of input and output clocks, but no mechanism exists at the moment to define those as they are currently hardcoded in the driver. This commit adds new properties allowing selection of arbitrary input and output clocks. Signed-off-by: Arnaud Ferraris ---

[PATCH 2/4] ASoC: fsl_asrc: allow using arbitrary input and output clocks

2020-07-02 Thread Arnaud Ferraris
fsl_asrc currently uses hardcoded input and output clocks, preventing its use for anything other than S/PDIF output. This patch adds the ability to select any clock as input or output (by using new DT properties), making it possible to use this peripheral in a more advanced way. Signed-off-by:

[PATCH 4/4] ASoC: fsl_asrc: swap input and output clocks in capture mode

2020-07-02 Thread Arnaud Ferraris
The input clock is the reference clock we need to convert the stream to, which therefore has to be the clock of the origin stream/device. When the stream is bi-directional and we want ASRC to act on both directions, we need to swap the input and output clocks between the playback and capture

[PATCH 0/4] ASoC: fsl_asrc: allow selecting arbitrary clocks

2020-07-02 Thread Arnaud Ferraris
The current ASRC driver hardcodes the input and output clocks used for sample rate conversions. In order to allow greater flexibility and to cover more use cases, it would be preferable to select the clocks using device-tree properties. This series also fix register configuration and clock

[PATCH][next] xen-netfront: remove redundant assignment to variable 'act'

2020-07-02 Thread Colin King
From: Colin Ian King The variable act is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/net/xen-netfront.c | 2

[PATCH] spi: spidev: Add compatible for external SPI ports on Kontron boards

2020-07-02 Thread Schrempf Frieder
From: Frieder Schrempf Allow external SPI ports on Kontron boards to use the spidev driver. Signed-off-by: Frieder Schrempf --- drivers/spi/spidev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 59e07675ef86..058b08a3767d 100644 ---

[PATCHv3 3/6] irqchip/irq-pruss-intc: Add support for shared and invalid interrupts

2020-07-02 Thread Grzegorz Jaszczyk
From: Suman Anna The PRUSS INTC has a fixed number of output interrupt lines that are connected to a number of processors or other PRUSS instances or other devices (like DMA) on the SoC. The output interrupt lines 2 through 9 are usually connected to the main Arm host processor and are referred

Re: [PATCH v3 3/7] sched/topology: Verify SD_* flags setup when sched_debug is on

2020-07-02 Thread Peter Zijlstra
On Wed, Jul 01, 2020 at 08:06:51PM +0100, Valentin Schneider wrote: > @@ -29,6 +29,7 @@ static int sched_domain_debug_one(struct sched_domain *sd, > int cpu, int level, > struct cpumask *groupmask) > { > struct sched_group *group = sd->groups; > + int

[PATCHv3 5/6] irqchip/irq-pruss-intc: Add support for ICSSG INTC on K3 SoCs

2020-07-02 Thread Grzegorz Jaszczyk
From: Suman Anna The K3 AM65x and J721E SoCs have the next generation of the PRU-ICSS IP, commonly called ICSSG. The PRUSS INTC present within the ICSSG supports more System Events (160 vs 64), more Interrupt Channels and Host Interrupts (20 vs 10) compared to the previous generation PRUSS INTC

[PATCHv3 4/6] irqchip/irq-pruss-intc: Implement irq_{get,set}_irqchip_state ops

2020-07-02 Thread Grzegorz Jaszczyk
From: David Lechner This implements the irq_get_irqchip_state and irq_set_irqchip_state callbacks for the TI PRUSS INTC driver. The set callback can be used by drivers to "kick" a PRU by enabling a PRU system event. Example: irq_set_irqchip_state(irq, IRQCHIP_STATE_PENDING, true);

[PATCHv3 6/6] irqchip/irq-pruss-intc: Add event mapping support

2020-07-02 Thread Grzegorz Jaszczyk
The PRUSS INTC receives a number of system input interrupt source events and supports individual control configuration and hardware prioritization. These input events can be mapped to some output host interrupts through 2 levels of many-to-one mapping i.e. events to channel mapping and channels to

[PATCHv3 2/6] irqchip/irq-pruss-intc: Add a PRUSS irqchip driver for PRUSS interrupts

2020-07-02 Thread Grzegorz Jaszczyk
From: Suman Anna The Programmable Real-Time Unit Subsystem (PRUSS) contains a local interrupt controller (INTC) that can handle various system input events and post interrupts back to the device-level initiators. The INTC can support upto 64 input events with individual control configuration and

[PATCHv3 1/6] dt-bindings: irqchip: Add PRU-ICSS interrupt controller bindings

2020-07-02 Thread Grzegorz Jaszczyk
From: Suman Anna The Programmable Real-Time Unit and Industrial Communication Subsystem (PRU-ICSS or simply PRUSS) contains an interrupt controller (INTC) that can handle various system input events and post interrupts back to the device-level initiators. The INTC can support upto 64 input

[PATCHv3 0/6] Add TI PRUSS Local Interrupt Controller IRQChip driver

2020-07-02 Thread Grzegorz Jaszczyk
Hi All, The following is a v3 version of the series [1][2] that adds an IRQChip driver for the local interrupt controller present within a Programmable Real-Time Unit and Industrial Communication Subsystem (PRU-ICSS) present on a number of TI SoCs including OMAP architecture based AM335x, AM437x,

Re: [PATCH v2 5/5] firmware: QCOM_SCM: Allow qcom_scm driver to be loadable as a permenent module

2020-07-02 Thread Will Deacon
On Thu, Jun 25, 2020 at 12:10:39AM +, John Stultz wrote: > diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig > index b510f67dfa49..714893535dd2 100644 > --- a/drivers/iommu/Kconfig > +++ b/drivers/iommu/Kconfig > @@ -381,6 +381,7 @@ config SPAPR_TCE_IOMMU > config ARM_SMMU >

[PATCH net-next v2 4/5] mvpp2: XDP TX support

2020-07-02 Thread Matteo Croce
From: Matteo Croce Add the transmit part of XDP support, which includes: - support for XDP_TX in mvpp2_xdp() - .ndo_xdp_xmit hook for AF_XDP and XDP_REDIRECT with mvpp2 as destination mvpp2_xdp_submit_frame() is a generic function which is called by mvpp2_xdp_xmit_back() when doing XDP_TX, and

Re: [PATCH v8 1/6] drm/fourcc: Add modifier definitions for describing Amlogic Video Framebuffer Compression

2020-07-02 Thread Daniel Vetter
On Thu, Jul 2, 2020 at 3:34 PM Neil Armstrong wrote: > > On 02/07/2020 15:18, Daniel Vetter wrote: > > On Thu, Jul 02, 2020 at 09:23:11AM +, Simon Ser wrote: > >> On Thursday, July 2, 2020 9:47 AM, Neil Armstrong > >> wrote: > >> > >>> Finally is also adds the Scatter Memory layout, meaning

[PATCH net-next v2 5/5] mvpp2: xdp ethtool stats

2020-07-02 Thread Matteo Croce
From: Sven Auhagen Add ethtool statistics for XDP. Signed-off-by: Sven Auhagen --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h| 8 + .../net/ethernet/marvell/mvpp2/mvpp2_main.c | 158 -- 2 files changed, 148 insertions(+), 18 deletions(-) diff --git

Re: linux-next test error: KASAN: stack-out-of-bounds Read in bio_alloc_bioset

2020-07-02 Thread Qian Cai
On Thu, Jul 02, 2020 at 03:02:14AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:d37d5704 Add linux-next specific files for 20200702 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=15

[PATCH net-next v2 3/5] mvpp2: add basic XDP support

2020-07-02 Thread Matteo Croce
From: Matteo Croce Add XDP native support. By now only XDP_DROP, XDP_PASS and XDP_REDIRECT verdicts are supported. Co-developed-by: Sven Auhagen Signed-off-by: Sven Auhagen Signed-off-by: Matteo Croce --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h| 28 ++-

[PATCH net-next v2 2/5] mvpp2: use page_pool allocator

2020-07-02 Thread Matteo Croce
From: Matteo Croce Use the page_pool API for memory management. This is a prerequisite for native XDP support. Tested-by: Sven Auhagen Signed-off-by: Matteo Croce --- drivers/net/ethernet/marvell/Kconfig | 1 + drivers/net/ethernet/marvell/mvpp2/mvpp2.h| 8 +

[PATCH net-next v2 1/5] mvpp2: refactor BM pool init percpu code

2020-07-02 Thread Matteo Croce
From: Matteo Croce In mvpp2_swf_bm_pool_init_percpu(), a reference to a struct mvpp2_bm_pool is obtained traversing multiple structs, when a local variable already points to the same object. Fix it and, while at it, give the variable a meaningful name. Signed-off-by: Matteo Croce ---

[PATCH 1/2] dt-bindings: sound: fsl-asoc-card: add new compatible for I2S slave

2020-07-02 Thread Arnaud Ferraris
fsl-asoc-card currently doesn't support generic codecs with the SoC acting as I2S slave. This commit adds a new `fsl,imx-audio-i2s-slave` for this use-case, as well as the following mandatory properties: - `audio-codec-dai-name` for specifying the codec DAI to be used - `audio-slot-width`

[PATCH net-next v2 0/5] mvpp2: XDP support

2020-07-02 Thread Matteo Croce
From: Matteo Croce From: Matteo Croce Add XDP support to mvpp2. This series converts the driver to the page_pool API for RX buffer management, and adds native XDP support. XDP support comes with extack error reporting and statistics as well. These are the performance numbers, as measured by

[PATCH 2/2] ASoC: fsl-asoc-card: add support for generic I2S slave use-case

2020-07-02 Thread Arnaud Ferraris
This commit implements support for generic codecs with the SoC acting as I2S slave, by implementing the new `fsl,imx-audio-i2s-slave` compatible and related properties. This is particularly useful when using a Bluetooth controller acting as I2S master, but other simple or dummy codecs might

Re: [PATCH tip/core/rcu 03/17] rcu/tree: Skip entry into the page allocator for PREEMPT_RT

2020-07-02 Thread Sebastian Andrzej Siewior
On 2020-06-30 11:35:34 [-0700], Paul E. McKenney wrote: > > This is not going to work together with the "wait context validator" > > (CONFIG_PROVE_RAW_LOCK_NESTING). As of -rc3 it should complain about > > printk() which is why it is still disabled by default. > > Fixing that should be

[PATCH 0/2] ASoC: fsl-asoc-card: add support for generic codecs

2020-07-02 Thread Arnaud Ferraris
fsl-asoc-card currently only works with AC97 or a selection of codecs, although the hardware is capable of more. Supporting generic codecs when acting as I2S slave (codec is master) would be useful, especially when using Bluetooth audio, as these are generally simple I2S devices not controlled by

[RFC] hung_task:add detecting task in D state milliseconds timeout

2020-07-02 Thread yang che
current hung_task_check_interval_secs and hung_task_timeout_secs only supports seconds.in some cases,the TASK_UNINTERRUPTIBLE state takes less than 1 second.The task of the graphical interface, the unterruptible state lasts for hundreds of milliseconds will cause the interface to freeze echo 1 >

Re: [PATCH 18/20] block: refator submit_bio_noacct

2020-07-02 Thread Qian Cai
15][ T1373] CPU: 2 PID: 1373 Comm: mount Not tainted 5.8.0-rc3-next-20200702 #2 [ 55.598672][ T1373] Hardware name: HPE ProLiant DL385 Gen10/ProLiant DL385 Gen10, BIOS A40 07/10/2019 [ 55.607972][ T1373] Call Trace: [ 55.607980][ T1373] dump_stack+0x9d/0xe0 [ 55.607984][ T1373] ? bio_all

Re: [PATCH V3 (RESEND) 3/3] arm64/mm: Enable vmem_altmap support for vmemmap mappings

2020-07-02 Thread Catalin Marinas
On Thu, Jun 18, 2020 at 06:45:30AM +0530, Anshuman Khandual wrote: > Device memory ranges when getting hot added into ZONE_DEVICE, might require > their vmemmap mapping's backing memory to be allocated from their own range > instead of consuming system memory. This prevents large system memory

[PATCH] docs: powerpc: Clarify book3s/32 MMU families

2020-07-02 Thread Christophe Leroy
Documentation wrongly tells that book3s/32 CPU have hash MMU. 603 and e300 core only have software loaded TLB. 755, 7450 family and e600 core have both hash MMU and software loaded TLB. This can be selected by setting a bit in HID2 (755) or HID0 (others). At the time being this is not supported

Re: [RFC PATCH v2 00/18] Support for Tegra video capture from external sensor

2020-07-02 Thread Hans Verkuil
Hi Sowjanya, On 17/06/2020 03:41, Sowjanya Komatineni wrote: > This series adds support for video capture from external camera sensor to > Tegra video driver. > > Jetson TX1 has camera expansion connector and supports custom camera module > designed as per TX1 design specification. > > This

Re: [PATCH V3 (RESEND) 2/3] mm/sparsemem: Enable vmem_altmap support in vmemmap_alloc_block_buf()

2020-07-02 Thread Catalin Marinas
On Thu, Jun 18, 2020 at 06:45:29AM +0530, Anshuman Khandual wrote: > There are many instances where vmemap allocation is often switched between > regular memory and device memory just based on whether altmap is available > or not. vmemmap_alloc_block_buf() is used in various platforms to allocate

Re: [PATCH] drm/hisilicon: Use drmm_kzalloc() instead of devm_kzalloc()

2020-07-02 Thread Thomas Zimmermann
Hi Daniel Am 02.07.20 um 15:16 schrieb Daniel Vetter: > On Thu, Jul 02, 2020 at 09:21:54AM +0800, Tian Tao wrote: >> using the new API drmm_kzalloc() instead of devm_kzalloc() >> >> Signed-off-by: Tian Tao >> --- >> drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 3 ++- >> 1 file changed, 2

[PATCH] mtd: spi-nor: Add support for Macronix MX25R1635F

2020-07-02 Thread Schrempf Frieder
From: Frieder Schrempf The MX25R1635F is the smaller sibling of the MX25R3235F that is already supported. It's only half the size (16Mb). It was tested on the Kontron Electronics i.MX8MM SoM (N8010) using raw read and write from and to the mtd device and the 'flash_erase' command.

Re: [PATCH] serial: sh-sci: Initialize spinlock for uart console

2020-07-02 Thread Lad, Prabhakar
Hi Geert, On Thu, Jul 2, 2020 at 1:52 PM Geert Uytterhoeven wrote: > > Hi Prabhakar, > > On Thu, Jul 2, 2020 at 1:42 PM Lad, Prabhakar > wrote: > > On Thu, Jul 2, 2020 at 11:49 AM Lad, Prabhakar > > wrote: > > > On Thu, Jul 2, 2020 at 10:23 AM Geert Uytterhoeven > > > wrote: > > > > On Wed,

Re: [PATCH V3 (RESEND) 1/3] mm/sparsemem: Enable vmem_altmap support in vmemmap_populate_basepages()

2020-07-02 Thread Catalin Marinas
On Thu, Jun 18, 2020 at 06:45:28AM +0530, Anshuman Khandual wrote: > vmemmap_populate_basepages() is used across platforms to allocate backing > memory for vmemmap mapping. This is used as a standard default choice or > as a fallback when intended huge pages allocation fails. This just creates >

Re: [PATCH] drm/msm/dpu: fix wrong return value in dpu_encoder_init()

2020-07-02 Thread Markus Elfring
> A positive value ENOMEM is returned here. I thinr this is a typo error. > It is necessary to return a negative error value. I imagine that a small adjustment could be nice for this change description. How do you think about to follow progress for the integration of a previous patch like

Re: [RFC PATCH 01/10] timer: Prevent base->clk from moving backward

2020-07-02 Thread Frederic Weisbecker
On Thu, Jul 02, 2020 at 11:59:59AM +0200, Juri Lelli wrote: > On 02/07/20 01:20, Frederic Weisbecker wrote: > > On Wed, Jul 01, 2020 at 06:35:04PM +0200, Juri Lelli wrote: > > > Guess you might be faster to understand what I'm missing. :-) > > > > So, did you port only this patch or the whole set

Re: objtool clac/stac handling change..

2020-07-02 Thread Al Viro
On Thu, Jul 02, 2020 at 03:01:59PM +0100, Al Viro wrote: > On Thu, Jul 02, 2020 at 11:34:31PM +1000, Michael Ellerman wrote: > > > I think we can do something to make it work. > > > > We don't have an equivalent of x86's ex_handler_uaccess(), so it's not > > quite as easy as whacking a

Re: [PATCH] drm/msm/dpu: fix wrong return value in dpu_encoder_init()

2020-07-02 Thread Markus Elfring
> A positive value ENOMEM is returned here. I thinr this is a typo error. > It is necessary to return a negative error value. I imagine that a small adjustment could be nice for this change description. How do you think about to follow progress for the integration of a previous patch like

Re: objtool clac/stac handling change..

2020-07-02 Thread Al Viro
On Thu, Jul 02, 2020 at 11:34:31PM +1000, Michael Ellerman wrote: > I think we can do something to make it work. > > We don't have an equivalent of x86's ex_handler_uaccess(), so it's not > quite as easy as whacking a user_access_end() in there. > > Probably the simplest option for us is to

[PATCH 2/2] drm/amdgpu: Change type of module param `ppfeaturemask` to hex

2020-07-02 Thread Paul Menzel
The newly added hex helper is more convenient for bitmasks. Before: $ more /sys/module/amdgpu/parameters/ppfeaturemask 4294950911 After: $ more /sys/module/amdgpu/parameters/ppfeaturemask 0xbfff Cc: amd-...@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org

[PATCH 1/2] moduleparams: Add hex type parameter

2020-07-02 Thread Paul Menzel
For bitmasks printing values in hex is more convenient. Prefix with 0x (#) to make it clear, that it’s a hex value. Using the helper for `amdgpu.ppfeaturemask`, it will look like below. Before: $ more /sys/module/amdgpu/parameters/ppfeaturemask 4294950911 After: $ more

Re: [PATCH v12 00/11] Guest Last Branch Recording Enabling

2020-07-02 Thread Peter Zijlstra
On Thu, Jul 02, 2020 at 09:11:06AM -0400, Liang, Kan wrote: > On 7/2/2020 3:40 AM, Peter Zijlstra wrote: > > On Sat, Jun 13, 2020 at 04:09:45PM +0800, Like Xu wrote: > > > Like Xu (10): > > >perf/x86/core: Refactor hw->idx checks and cleanup > > >perf/x86/lbr: Add interface to get LBR

[PATCH v2 3/8] KVM: arm64: Modify stage2 young mechanism to support hw DBM

2020-07-02 Thread Keqian Zhu
Marking PTs young (set AF bit) should be atomic to avoid cover dirty status set by hardware. Signed-off-by: Keqian Zhu Signed-off-by: Peng Liang --- arch/arm64/include/asm/kvm_mmu.h | 31 ++- arch/arm64/kvm/mmu.c | 15 --- 2 files changed, 30

[PATCH v2 0/8] KVM: arm64: Support HW dirty log based on DBM

2020-07-02 Thread Keqian Zhu
This patch series add support for dirty log based on HW DBM. It works well under some migration test cases, including VM with 4K pages or 2M THP. I checked the SHA256 hash digest of all memory and they keep same for source VM and destination VM, which means no dirty pages is missed under hardware

[PATCH v2 1/8] KVM: arm64: Set DBM bit for writable PTEs

2020-07-02 Thread Keqian Zhu
DBM bit is used by MMU to differentiate a genuinely non-writable page from a page that is only temporarily non-writable in order to mark dirty. Signed-off-by: Keqian Zhu Signed-off-by: Peng Liang --- arch/arm64/include/asm/kvm_mmu.h | 4 1 file changed, 4 insertions(+) diff --git

[PATCH v2 4/8] KVM: arm64: Save stage2 PTE dirty status if it is covered

2020-07-02 Thread Keqian Zhu
kvm_set_pte is called to replace a target PTE with a desired one. We always do this without changing the desired one, but if dirty status set by hardware is covered, let caller know it. There are two types of operations will change PTE and may cover dirty status set by hardware. 1. Stage2 PTE

[PATCH v2 8/8] KVM: Omit dirty log sync in log clear if initially all set

2020-07-02 Thread Keqian Zhu
Synchronizing dirty log during log clear is useful only when the dirty bitmap of userspace contains dirty bits that memslot dirty bitmap does not contain, because we can sync new dirty bits to memslot dirty bitmap, then we can clear them by the way and avoid reporting them to userspace later.

[PATCH v2 7/8] KVM: arm64: Sync dirty log parallel

2020-07-02 Thread Keqian Zhu
Give userspace another selection to solve high-cost dirty log sync, which called multi-core offload. Usersapce can enable this policy through KVM_CAP_ARM_HW_DIRTY_LOG. Signed-off-by: Keqian Zhu Signed-off-by: Peng Liang --- arch/arm64/include/asm/kvm_host.h | 3 ++ arch/arm64/kvm/arm.c

[PATCH v2 5/8] KVM: arm64: Steply write protect page table by mask bit

2020-07-02 Thread Keqian Zhu
During dirty log clear, page table entries are write protected according to a mask. In the past we write protect all entries corresponding to the mask from ffs to fls. Though there may be zero bits between this range, we are holding the kvm mmu lock so we won't write protect entries that we don't

[PATCH v2 6/8] KVM: arm64: Add KVM_CAP_ARM_HW_DIRTY_LOG capability

2020-07-02 Thread Keqian Zhu
For that using arm64 DBM to log dirty pages has the side effect of long time dirty log sync, we should give userspace opportunity to enable or disable this feature, to realize some policy. This feature is disabled by default. Signed-off-by: Keqian Zhu Signed-off-by: Peng Liang ---

[PATCH v2 2/8] KVM: arm64: Scan PTEs to sync dirty log

2020-07-02 Thread Keqian Zhu
For hardware management of dirty state, dirty state is stored in PTEs. We have to scan all PTEs to sync dirty log to memslot dirty bitmap. Signed-off-by: Keqian Zhu Signed-off-by: Peng Liang --- arch/arm64/include/asm/kvm_host.h | 1 + arch/arm64/include/asm/kvm_mmu.h | 13 +++

Re: [RFC PATCH v2 12/18] media: tegra-video: Add support for selection ioctl ops

2020-07-02 Thread Hans Verkuil
On 17/06/2020 03:41, Sowjanya Komatineni wrote: > This patch adds selection v4l2 ioctl operations to allow configuring > a selection rectangle in the sensor through the Tegra video device > node. > > Some sensor drivers supporting crop uses try_crop rectangle from > v4l2_subdev_pad_config during

Re: Question about "xxx,yyy" style property

2020-07-02 Thread Rob Herring
On Thu, May 28, 2020 at 8:41 PM Kuninori Morimoto wrote: > > > The Subject was "Re: [PATCH] ASoC: dt-bindings: simple-card: care missing > address #address-cells" > > Hi Rob > > I'm trying to create v2 of simple-card patch, > And got issue which I can't solve by myself. > > I think "xxx,yyy" (=

Re: [PATCH v2 1/5] thermal: core: Add helpers to browse the cdev, tz and governor list

2020-07-02 Thread Zhang Rui
On Wed, 2020-07-01 at 11:50 +0200, Daniel Lezcano wrote: > On 01/07/2020 09:57, Zhang Rui wrote: > > [ ... ] > > > > Do you want to move them out? > > > > Then no. I don't have any objection of removing thermal_helper.c, > > so > > you can just leave these functions in thermal_core.c > > Shall

Re: [PATCH 2/3] arm64: arch_timer: Allow an workaround descriptor to provide vdso_clock_mode

2020-07-02 Thread Marc Zyngier
On 2020-07-02 11:28, Mark Rutland wrote: On Wed, Jul 01, 2020 at 05:18:23PM +0100, Marc Zyngier wrote: As we are about to disable the vdso for compat tasks in some circumstances, let's allow a workaround descriptor to provide the vdso_clock_mode that matches the platform. Signed-off-by: Marc

Re: [PATCH net-next v2 0/4] net: macb: few code cleanups

2020-07-02 Thread Nicolas Ferre
On 02/07/2020 at 11:05, Claudiu Beznea wrote: Hi, Patches in this series cleanup a bit macb code. Thank you, Claudiu Beznea Changes in v2: - in patch 2/4 use hweight32() instead of hweight_long() Claudiu Beznea (4): net: macb: do not set again bit 0 of queue_mask net: macb: use

Re: [PATCH 16/23] seq_file: switch over direct seq_read method calls to seq_read_iter

2020-07-02 Thread Christoph Hellwig
On Thu, Jul 02, 2020 at 11:46:17AM +0200, Miguel Ojeda wrote: > Hi Christoph, > > On Wed, Jul 1, 2020 at 10:25 PM Christoph Hellwig wrote: > > > > Switch over all instances used directly as methods using these sed > > expressions: > > > > sed -i -e

Re: [PATCH net] net: dsa: microchip: set the correct number of ports

2020-07-02 Thread Andrew Lunn
On Thu, Jul 02, 2020 at 12:44:50PM +0300, Codrin Ciubotariu wrote: > The number of ports is incorrectly set to the maximum available for a DSA > switch. Even if the extra ports are not used, this causes some functions > to be called later, like port_disable() and port_stp_state_set(). If the >

Re: [PATCH v2 06/17] irqchip/gic-v3: Configure SGIs as standard interrupts

2020-07-02 Thread Marc Zyngier
On 2020-07-02 14:23, Valentin Schneider wrote: On 30/06/20 11:15, Marc Zyngier wrote: On 2020-06-25 19:25, Valentin Schneider wrote: Also, while staring at this it dawned on me that IPI's don't need the eoimode=0 isb(): due to how the IPI flow-handler is structured, we'll get a gic_eoi_irq()

[PATCH] MAINTAINERS: Change Maintainer for some at91 drivers

2020-07-02 Thread nicolas.ferre
From: Nicolas Ferre I hand over the maintenance of these drivers to my colleagues. Claudiu, Codrin and Tudor already have experience with these controllers and sub-systems. Signed-off-by: Nicolas Ferre --- Mark, Sebastian, I kept these entries together as it may generate conflicts if handled

Re: [PATCH v6 6/6] mm/vmscan: restore active/inactive ratio for anonymous LRU

2020-07-02 Thread Vlastimil Babka
On 6/17/20 7:26 AM, js1...@gmail.com wrote: > From: Joonsoo Kim > > Now, workingset detection is implemented for anonymous LRU. > We don't have to worry about the misfound for workingset due to > the ratio of active/inactive. Let's restore the ratio. How about: Now that workingset detection is

Re: [PATCH] sched/fair: update_pick_idlest() Select group with lowest group_util when idle_cpus are equal

2020-07-02 Thread Vincent Guittot
On Thu, 2 Jul 2020 at 15:29, Mel Gorman wrote: > > On Thu, Jul 02, 2020 at 11:27:52AM +0200, Dietmar Eggemann wrote: > > On 17/06/2020 16:52, Peter Puhov wrote: > > > On Wed, 17 Jun 2020 at 06:50, Valentin Schneider > > > wrote: > > >> > > >> > > >> On 16/06/20 17:48, peter.pu...@linaro.org

[PATCH v8 2/5] driver core: add deferring probe reason to devices_deferred property

2020-07-02 Thread Andrzej Hajda
/sys/kernel/debug/devices_deferred property contains list of deferred devices. This list does not contain reason why the driver deferred probe, the patch improves it. The natural place to set the reason is dev_err_probe function introduced recently, ie. if dev_err_probe will be called with

Re: [PATCH v2 00/15] Make the user mode driver code a better citizen

2020-07-02 Thread Tetsuo Handa
On 2020/07/02 22:08, Eric W. Biederman wrote: > Tetsuo Handa writes: > >> On 2020/06/30 21:29, Eric W. Biederman wrote: >>> Hmm. The wake up happens just of tgid->wait_pidfd happens just before >>> release_task is called so there is a race. As it is possible to wake >>> up and then go back to

Re: WARNING in idr_alloc

2020-07-02 Thread syzbot
syzbot has bisected this bug to: commit e42671084361302141a09284fde9bbc14fdd16bf Author: Manivannan Sadhasivam Date: Thu May 7 12:53:06 2020 + net: qrtr: Do not depend on ARCH_QCOM bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=17325ad510 start commit: 7ae77150

Re: [net-next,PATCH 4/4] dt-bindings: mdio-ipq4019: add clock support

2020-07-02 Thread Andrew Lunn
> + clock-frequency: > +default: 1 IEEE 802.3 says the default should be 2.5MHz. Some PHYs will go faster, but 100MHz seems unlikely! Andrew

Re: [PATCH v6 5/6] mm/swap: implement workingset detection for anonymous LRU

2020-07-02 Thread Vlastimil Babka
On 6/17/20 7:26 AM, js1...@gmail.com wrote: > From: Joonsoo Kim > > This patch implements workingset detection for anonymous LRU. > All the infrastructure is implemented by the previous patches so this patch > just activates the workingset detection by installing/retrieving > the shadow entry. >

Re: [PATCH v2 14/17] arm64: Kill __smp_cross_call and co

2020-07-02 Thread Marc Zyngier
On 2020-06-25 19:25, Valentin Schneider wrote: On 24/06/20 20:58, Marc Zyngier wrote: @@ -852,8 +841,7 @@ void arch_send_wakeup_ipi_mask(const struct cpumask *mask) #ifdef CONFIG_IRQ_WORK void arch_irq_work_raise(void) { - if (__smp_cross_call) -

Re: [PATCH v3 6/7] iommu/vt-d: Warn on out-of-range invalidation address

2020-07-02 Thread Jacob Pan
Hi Eric, On Thu, 2 Jul 2020 10:47:39 +0200 Auger Eric wrote: > Hi, > > On 7/1/20 5:33 PM, Jacob Pan wrote: > > For guest requested IOTLB invalidation, address and mask are > > provided as part of the invalidation data. VT-d HW silently ignores > > any address bits below the mask. SW shall also

Re: [net-next,PATCH 3/4] net: mdio-ipq4019: add Clause 45 support

2020-07-02 Thread Andrew Lunn
On Thu, Jul 02, 2020 at 12:30:00PM +0200, Robert Marko wrote: > While up-streaming the IPQ4019 driver it was thought that the controller had > no Clause 45 support, > but it actually does and its activated by writing a bit to the mode register. > > So lets add it as newer SoC-s use the same

Re: [RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication

2020-07-02 Thread Kishon Vijay Abraham I
Hi Jason, On 7/2/2020 3:40 PM, Jason Wang wrote: > > On 2020/7/2 下午5:51, Michael S. Tsirkin wrote: >> On Thu, Jul 02, 2020 at 01:51:21PM +0530, Kishon Vijay Abraham I wrote: >>> This series enhances Linux Vhost support to enable SoC-to-SoC >>> communication over MMIO. This series enables rpmsg

Re: [PATCH v8 1/6] drm/fourcc: Add modifier definitions for describing Amlogic Video Framebuffer Compression

2020-07-02 Thread Neil Armstrong
On 02/07/2020 15:18, Daniel Vetter wrote: > On Thu, Jul 02, 2020 at 09:23:11AM +, Simon Ser wrote: >> On Thursday, July 2, 2020 9:47 AM, Neil Armstrong >> wrote: >> >>> Finally is also adds the Scatter Memory layout, meaning the header contains >>> IOMMU >>> references to the compressed

Q: Getting consistent CPU status rates from /proc/stat

2020-07-02 Thread Ulrich Windl
(Note: I'm not subscribed to the kernel list, so if you want to talk to me, keep me on CC: at least) Hi! I wrote a monitoring plugin for the current SLES12 kernel (like 4.12.14-122.26-default) that reads the numbers from /proc/stat building differences from absolute numbers, and then building

Re: [PATCH v3 3/3] printk: use the lockless ringbuffer

2020-07-02 Thread Petr Mladek
On Thu 2020-07-02 17:43:22, lijiang wrote: > 在 2020年07月02日 17:02, John Ogness 写道: > > On 2020-07-02, lijiang wrote: > >> About the VMCOREINFO part, I made some tests based on the kernel patch > >> v3, the makedumpfile and crash-utility can work as expected with your > >> patch(userspace patch),

Re: [RFC PATCH 10/10] timer: Lower base clock forwarding threshold

2020-07-02 Thread Frederic Weisbecker
On Thu, Jul 02, 2020 at 03:21:35PM +0200, Thomas Gleixner wrote: > Frederic Weisbecker writes: > > There is no apparent reason for not forwarding base->clk when it's 2 > > jiffies late, except perhaps for past optimizations. But since forwarding > > has to be done at some point now anyway, this

Re: objtool clac/stac handling change..

2020-07-02 Thread Michael Ellerman
Linus Torvalds writes: > On Wed, Jul 1, 2020 at 12:59 PM Al Viro wrote: >> On Wed, Jul 01, 2020 at 12:04:36PM -0700, Linus Torvalds wrote: >> > >> > That's actually for the access granting. Shutting the access down ends >> > up always doing the same thing anyway.. >> >> #define

Re: buffer allocation: was: [PATCH v3 3/3] printk: use the lockless ringbuffer

2020-07-02 Thread Petr Mladek
On Mon 2020-06-29 23:57:59, John Ogness wrote: > On 2020-06-29, Petr Mladek wrote: > >> @@ @@ void __init setup_log_buf(int early) > >> + prb_init(_rb_dynamic, > >> + new_log_buf, order_base_2(new_log_buf_len), > >> + new_dict_buf, order_base_2(new_log_buf_len), > >> +

Re: [net-next,PATCH 2/4] net: mdio-ipq4019: add clock support

2020-07-02 Thread Andrew Lunn
On Thu, Jul 02, 2020 at 12:29:59PM +0200, Robert Marko wrote: > Some newer SoC-s have a separate MDIO clock that needs to be enabled. > So lets add support for handling the clocks to the driver. > > Signed-off-by: Robert Marko > --- > drivers/net/phy/mdio-ipq4019.c | 28

Re: [PATCH] sched/fair: update_pick_idlest() Select group with lowest group_util when idle_cpus are equal

2020-07-02 Thread Mel Gorman
On Thu, Jul 02, 2020 at 11:27:52AM +0200, Dietmar Eggemann wrote: > On 17/06/2020 16:52, Peter Puhov wrote: > > On Wed, 17 Jun 2020 at 06:50, Valentin Schneider > > wrote: > >> > >> > >> On 16/06/20 17:48, peter.pu...@linaro.org wrote: > >>> From: Peter Puhov > >>> We tested this patch with

Re: [PATCH] sparc: sparc64_defconfig: add necessary configs for qemu

2020-07-02 Thread Julian Calaby
Hi Corentin, On Thu, Jul 2, 2020 at 11:03 PM Corentin Labbe wrote: > > The sparc64 qemu machines uses pcnet32 network hardware by default, so for > simple boot testing using qemu, having PCNET32 is useful. > Same for its storage which is a PATA_CMD64. > > Signed-off-by: Corentin Labbe > --- >

<    5   6   7   8   9   10   11   12   13   14   >