Re: [PATCH v1 2/2] vfio/mdev: Removed unused and redundant API for mdev UUID

2019-08-07 Thread Cornelia Huck
On Tue, 6 Aug 2019 09:18:26 -0500 Parav Pandit wrote: > There is no single production driver who is interested in mdev device > uuid. Currently UUID is mainly used to derive a device name. > Additionally mdev device name is already available using core kernel > API dev_name(). Well, the mdev

Re: [PATCH 4/5] media/ivtv: Reduce default FIFO priority

2019-08-07 Thread Hans Verkuil
On 8/2/19 10:58 AM, Peter Zijlstra wrote: > On Thu, Aug 01, 2019 at 02:38:06PM +0200, Peter Zijlstra wrote: >> If the consumer of the data are RT tasks as well (I hadn't expected that >> from a TV capture device) then I'd propose to use FIFO-50 as default. >> >> The thing is, the moment you're

Re: [PATCH v2] bcache: fix deadlock in bcache_allocator

2019-08-07 Thread Andrea Righi
On Tue, Aug 06, 2019 at 07:36:48PM +0200, Andrea Righi wrote: > On Tue, Aug 06, 2019 at 11:18:01AM +0200, Andrea Righi wrote: > > bcache_allocator() can call the following: > > > > bch_allocator_thread() > > -> bch_prio_write() > > -> bch_bucket_alloc() > > -> wait on

Re: [PATCH] arm64: mm: add missing PTE_SPECIAL in pte_mkdevmap on arm64

2019-08-07 Thread Catalin Marinas
On Wed, Aug 07, 2019 at 10:09:29AM +0100, Will Deacon wrote: > On Wed, Aug 07, 2019 at 12:58:51PM +0800, Jia He wrote: > > diff --git a/arch/arm64/include/asm/pgtable.h > > b/arch/arm64/include/asm/pgtable.h > > index 5fdcfe237338..e09760ece844 100644 > > --- a/arch/arm64/include/asm/pgtable.h >

RE: [PATCH v2 1/5] firmware: arm_scmi: Add discovery of SCMI v2.0 performance fastchannels

2019-08-07 Thread Peng Fan
> Subject: [PATCH v2 1/5] firmware: arm_scmi: Add discovery of SCMI v2.0 > performance fastchannels > > SCMI v2.0 adds support for "FastChannel", a lightweight unidirectional > channel that is dedicated to a single SCMI message type for controlling a > specific platform resource. They do not use

Re: [PATCH -next] iwlwifi: dbg: work around clang bug by marking debug strings static

2019-08-07 Thread Joe Perches
On Tue, 2019-08-06 at 22:15 -0700, Nathan Chancellor wrote: > Just for everyone else (since I commented on our issue tracker), this is > now fixed in Linus's tree as of commit 1f6607250331 ("iwlwifi: dbg_ini: > fix compile time assert build errors"). I think this change is incomplete and suggest

Re: [PATCH V2 08/10] x86/resctrl: Support pseudo-lock regions spanning resources

2019-08-07 Thread Borislav Petkov
On Tue, Jul 30, 2019 at 10:29:42AM -0700, Reinette Chatre wrote: > Currently cache pseudo-locked regions only consider one cache level but > cache pseudo-locked regions may span multiple cache levels. > > In preparation for support of pseudo-locked regions spanning multiple > cache levels

Re: [RFC PATCH] pciehp: use completion to wait irq_thread 'pciehp_ist'

2019-08-07 Thread Lukas Wunner
On Wed, Aug 07, 2019 at 04:28:32PM +0800, Xiongfeng Wang wrote: > On 2019/8/6 15:24, Lukas Wunner wrote: > > I'd suggest something like the below instead, could you give it a whirl > > and see if it reliably fixes the issue for you? > > I tested the below patch. It can fix the issue. Thank you!

[PATCH v3] ALSA: hiface: fix multiple memory leak bugs

2019-08-07 Thread Wenwen Wang
In hiface_pcm_init(), 'rt' is firstly allocated through kzalloc(). Later on, hiface_pcm_init_urb() is invoked to initialize 'rt->out_urbs[i]'. In hiface_pcm_init_urb(), 'rt->out_urbs[i].buffer' is allocated through kzalloc(). However, if hiface_pcm_init_urb() fails, both 'rt' and

Re: [PATCH 3/8] mtd: nand: create ONFI table parsing instance

2019-08-07 Thread Miquel Raynal
Hi Shiva, shiva.linuxwo...@gmail.com wrote on Mon, 22 Jul 2019 07:56:16 +0200: > From: Shivamurthy Shastri "Create one generic ONFI table parsing instance" > > ONFI table parsing is common, as most of the variables are common > between raw and SPI NAND. The parsing function is instantiated

Re: [PATCH] arm64: mm: add missing PTE_SPECIAL in pte_mkdevmap on arm64

2019-08-07 Thread Will Deacon
On Wed, Aug 07, 2019 at 12:58:51PM +0800, Jia He wrote: > diff --git a/arch/arm64/include/asm/pgtable.h > b/arch/arm64/include/asm/pgtable.h > index 5fdcfe237338..e09760ece844 100644 > --- a/arch/arm64/include/asm/pgtable.h > +++ b/arch/arm64/include/asm/pgtable.h > @@ -209,7 +209,7 @@ static

Re: [PATCH v2 1/2] mmc: sdhci: Add PLL Enable support to internal clock setup

2019-08-07 Thread Adrian Hunter
On 26/07/19 5:07 AM, Michael K. Johnson wrote: > The GL9750 and GL9755 chipsets, and possibly others, require PLL Enable > setup as part of the internal clock setup as described in 3.2.1 Internal > Clock Setup Sequence of SD Host Controller Simplified Specification > Version 4.20. This changes

Re: [PATCH] cpufreq: mediatek-cpufreq: Add compatible for MT8516

2019-08-07 Thread Viresh Kumar
On 06-08-19, 11:50, Fabien Parent wrote: > Add the compatible for MT8516 in order to take advantage of the > MediaTek CPUFreq driver for Mediatek's MT8516 SoC. > > Signed-off-by: Fabien Parent > --- > drivers/cpufreq/mediatek-cpufreq.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git

Re: [PATCH 2/8] mtd: nand: move support functions for ONFI to nand/onfi.c

2019-08-07 Thread Miquel Raynal
Hi shiva.linuxwo...@gmail.com, shiva.linuxwo...@gmail.com wrote on Mon, 22 Jul 2019 07:56:15 +0200: > From: Shivamurthy Shastri "mtd: nand: move ONFI specific helpers to nand/onfi.c"? > > These functions are support functions for enabling ONFI standard and > common between raw NAND and SPI

Re: [PATCH v2 03/24] EDAC, ghes: Remove pvt->detail_location string

2019-08-07 Thread Robert Richter
On 02.08.19 18:04:46, James Morse wrote: > On 24/06/2019 16:08, Robert Richter wrote: > > The detail_location[] string in struct ghes_edac_pvt is complete > > useless and data is just copied around. Put everything into > > e->other_detail from the beginning. I am updating the description here to

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-08-07 Thread Dario Faggioli
Hello everyone, This is Dario, from SUSE. I'm also interesting in core-scheduling, and using it in virtualization use cases. Just for context, I'm working in virt since a few years, mostly on Xen, but I've done Linux stuff before, and I am getting back at it. For now, I've been looking at the

[PATCH 1/2] habanalabs: fix endianness handling for packets from user

2019-08-07 Thread Oded Gabbay
From: Ben Segal Packets that arrive from the user and need to be parsed by the driver are assumed to be in LE format. This patch fix all the places where the code handles these packets and use the correct endianness macros to handle them, as the driver handles the packets in CPU format (LE or

[PATCH 2/2] habanalabs: fix completion queue handling when host is BE

2019-08-07 Thread Oded Gabbay
From: Ben Segal This patch fix the CQ irq handler to work in hosts with BE architecture. It adds the correct endian-swapping macros around the relevant memory accesses. Signed-off-by: Ben Segal Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/irq.c | 27

Re: [PATCH v2 1/1] ixgbe: sync the first fragment unconditionally

2019-08-07 Thread Firo Yang
The 08/07/2019 15:56, Jacob Wen wrote: > I think the description is not correct. Consider using something like below. Thank you for comments. > > In Xen environment, due to memory fragmentation ixgbe may allocate a 'DMA' > buffer with pages that are not physically contiguous. Actually, I didn't

[PATCH v6 3/3] drm/mediatek: add mipi_tx driver for mt8183

2019-08-07 Thread Jitao Shi
This patch add mt8183 mipi_tx driver. And also support other chips that use the same binding and driver. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu/drm/mediatek/mtk_mipi_tx.c| 2 + drivers/gpu/drm/mediatek/mtk_mipi_tx.h| 1

[PATCH v3 3/3] clocksource/drivers/ostm: Use unique device name instead of ostm

2019-08-07 Thread Geert Uytterhoeven
Currently all OSTM devices are called "ostm", also in kernel messages. As there can be multiple instances in an SoC, this can confuse the user. Hence construct a unique name from the DT node name, like is done for platform devices. On RSK+RZA1, the boot log changes like: -clocksource: ostm:

[PATCH v3 2/3] clocksource/drivers/renesas-ostm: Fix probe error path

2019-08-07 Thread Geert Uytterhoeven
Fix various issues in the error path of ostm_init(): 1. Drop error message printing on of_iomap() failure, as the memory allocation core already takes of that, 2. Handle irq_of_parse_and_map() failures correctly: it returns unsigned int, hence make irq unsigned int, and zero is an

[PATCH v3 1/3] clocksource/drivers/renesas-ostm: Use DIV_ROUND_CLOSEST() helper

2019-08-07 Thread Geert Uytterhoeven
Use the DIV_ROUND_CLOSEST() helper instead of open-coding the same operation. Signed-off-by: Geert Uytterhoeven --- v3: - New. --- drivers/clocksource/renesas-ostm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/renesas-ostm.c

[PATCH v3 0/3] clocksource/drivers/ostm: Miscellaneous improvements

2019-08-07 Thread Geert Uytterhoeven
Hi all, This patch series contains various improvements for the Renesas OSTM timer driver, as used on the RZ/A1 and RZ/A2 SoCs. The last patch is v3 of a patch that was sent before to a limited audience: -

[PATCHv2] mm/migrate: clean up useless code in migrate_vma_collect_pmd()

2019-08-07 Thread Pingfan Liu
Clean up useless 'pfn' variable. Signed-off-by: Pingfan Liu Cc: "Jérôme Glisse" Cc: Andrew Morton Cc: Mel Gorman Cc: Jan Kara Cc: "Kirill A. Shutemov" Cc: Michal Hocko Cc: Mike Kravetz Cc: Andrea Arcangeli Cc: Matthew Wilcox To: linux...@kvack.org Cc: linux-kernel@vger.kernel.org ---

linux-next: Tree for Aug 7

2019-08-07 Thread Stephen Rothwell
Hi all, Changes since 20190806: The arm64 tree introduced a patch that stopped the powerpc ppc64_defconfig build from completing so I reverted that commit. The mips tree gained a conflict against Linus' tree. The crypto tree still had its build failure for which I applied a patch. The

[PATCH] net: fix semicolon.cocci warnings

2019-08-07 Thread kbuild test robot
From: kbuild test robot drivers/target/iscsi/cxgbit/cxgbit_target.c:1451:47-48: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes: d7840976e391 ("net: Use skb accessors in network drivers") CC: Matthew Wilcox (Oracle) Signed-off-by:

Re: [PATCH 1/8] mtd: nand: move ONFI related functions to onfi.h

2019-08-07 Thread Miquel Raynal
Hi Shiva, shiva.linuxwo...@gmail.com wrote on Mon, 22 Jul 2019 07:56:14 +0200: > From: Shivamurthy Shastri > > These functions will be used by both raw NAND and SPI NAND, which > supports ONFI like standards. This is not exactly what you do. Why not: mtd: nand: export ONFI related functions

Re: [RFC PATCH] pciehp: use completion to wait irq_thread 'pciehp_ist'

2019-08-07 Thread Xiongfeng Wang
Hi, Lukas On 2019/8/6 15:24, Lukas Wunner wrote: > On Thu, Jul 04, 2019 at 03:50:38PM +0800, Xiongfeng Wang wrote: >> When I use the following command to power on a slot which has been >> powered off already. >> echo 1 > /sys/bus/pci/slots/22/power >> It prints the following error: >> -bash:

[PATCH v3 03/21] ARM: dts: imx7-colibri: prepare module device tree for FlexCAN

2019-08-07 Thread Philippe Schenker
Prepare FlexCAN use on SODIMM 55/63 178/188. Those SODIMM pins are compatible for CAN bus use with several modules from the Colibri family. Add Better drivestrength and also add flexcan2. Signed-off-by: Philippe Schenker --- Changes in v3: None Changes in v2: None

[PATCH v3 04/21] ARM: dts: imx7-colibri: Add sleep mode to ethernet

2019-08-07 Thread Philippe Schenker
Add sleep pinmux to the fec so it can properly sleep. Signed-off-by: Philippe Schenker --- Changes in v3: None Changes in v2: None arch/arm/boot/dts/imx7-colibri.dtsi | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi

[PATCH v3 11/21] ARM: dts: imx6qdl-apalis: Add sleep state to can interfaces

2019-08-07 Thread Philippe Schenker
This patch prepares the devicetree for the new Ixora V1.2 where we are able to turn off the supply of the can transceiver. This implies to use a sleep state on transmission pins in order to prevent backfeeding. Signed-off-by: Philippe Schenker --- Changes in v3: None Changes in v2: - Changed

[PATCH v3 12/21] ARM: dts: imx6-apalis: Add touchscreens used on Toradex eval boards

2019-08-07 Thread Philippe Schenker
This commit adds the touchscreens from Toradex so one can enable it. Signed-off-by: Philippe Schenker --- Changes in v3: - Fix commit title to "...imx6-apalis:..." Changes in v2: - Deleted touchrevolution downstream stuff - Use generic node name - Put a better comment in there

[PATCH v3 08/21] ARM: dts: imx7-colibri: Add touch controllers

2019-08-07 Thread Philippe Schenker
Add touch controller that is connected over an I2C bus. Signed-off-by: Philippe Schenker --- Changes in v3: - Fix commit message Changes in v2: - Deleted touchrevolution downstream stuff - Use generic node name - Better comment arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 24

[PATCH v3 10/21] ARM: dts: imx6qdl-colibri: Add missing pin declaration in iomuxc

2019-08-07 Thread Philippe Schenker
This adds the muxing for the optional pins usb-oc (overcurrent) and usb-id. Signed-off-by: Philippe Schenker --- Changes in v3: None Changes in v2: None arch/arm/boot/dts/imx6qdl-colibri.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git

[PATCH v3 19/21] ARM: dts: imx6/7-colibri: switch dr_mode to otg

2019-08-07 Thread Philippe Schenker
In order for the otg ports, that these modules support, it is needed that dr_mode is on otg. Switch to use that feature. Signed-off-by: Philippe Schenker --- Changes in v3: None Changes in v2: None arch/arm/boot/dts/imx6qdl-colibri.dtsi | 2 +- arch/arm/boot/dts/imx7-colibri.dtsi| 2 +- 2

[PATCH v3 07/21] ARM: dts: imx7-colibri: fix 1.8V/UHS support

2019-08-07 Thread Philippe Schenker
From: Stefan Agner Add pinmuxing and do not specify voltage restrictions for the usdhc instance available on the modules edge connector. This allows to use SD-cards with higher transfer modes if supported by the carrier board. Signed-off-by: Stefan Agner Signed-off-by: Philippe Schenker ---

[PATCH v3 18/21] ARM: dts: imx6ull-colibri: Add general wakeup key used on Colibri

2019-08-07 Thread Philippe Schenker
This adds the possibility to wake the module with an external signal as defined in the Colibri standard Signed-off-by: Philippe Schenker --- Changes in v3: None Changes in v2: None arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git

Re: [PATCH v2 3/5] dt-bindings: arm: Extend SCMI to support new reset protocol

2019-08-07 Thread Philipp Zabel
On Tue, 2019-08-06 at 18:02 +0100, Sudeep Holla wrote: > SCMIv2.0 adds a new Reset Management Protocol to manage various reset > states a given device or domain can enter. Extend the existing SCMI > bindings to add reset protocol support by re-using the reset bindings > for bothe reset providers

[PATCH v3 16/21] ARM: dts: imx6ull-colibri: Add watchdog

2019-08-07 Thread Philippe Schenker
This patch adds the watchdog to the imx6ull-colibri devicetree Signed-off-by: Philippe Schenker --- Changes in v3: None Changes in v2: None arch/arm/boot/dts/imx6ull-colibri.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx6ull-colibri.dtsi

[PATCH v3 17/21] ARM: dts: imx6ull: improve can templates

2019-08-07 Thread Philippe Schenker
From: Max Krummenacher Add the pinmuxing and a inactive node for flexcan1 on SODIMM 55/63 and move the inactive flexcan nodes to imx6ull-colibri-eval-v3.dtsi where they belong. Note that this commit does not enable flexcan functionality, but rather eases the effort needed to do so.

[PATCH v3 20/21] ARM: dts: imx6ull-colibri: Add touchscreen used with Eval Board

2019-08-07 Thread Philippe Schenker
This adds the common touchscreen that is used with Toradex's Eval Boards. Signed-off-by: Philippe Schenker --- Changes in v3: None Changes in v2: - Removed f0710a, that is downstream only - Changed to generic node name - Better comment .../arm/boot/dts/imx6ull-colibri-eval-v3.dtsi | 24

[PATCH v3 15/21] ARM: dts: imx6ull-colibri: reduce v_batt current in power off

2019-08-07 Thread Philippe Schenker
From: Max Krummenacher Reduce the current drawn from VCC_BATT when the main power on the 3V3 pins to the module are switched off. This switches off SoC internal pull resistors which are provided on the module for TAMPER7 and TAMPER9 SoC pin and switches on a pull down instead of a pullup for

[PATCH v3 21/21] ARM: dts: imx7-colibri: Add UHS support to eval board

2019-08-07 Thread Philippe Schenker
This commit adds UHS capability to Toradex Eval Boards Signed-off-by: Philippe Schenker --- Changes in v3: - New patch to make use of ARM: dts: imx7-colibri: fix 1.8V/UHS support Changes in v2: None arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 11 +-- 1 file changed, 9

[PATCH v3 02/21] ARM: dts: imx7-colibri: disable HS400

2019-08-07 Thread Philippe Schenker
From: Stefan Agner Force HS200 by masking bit 63 of the SDHCI capability register. The i.MX ESDHC driver uses SDHCI_QUIRK2_CAPS_BIT63_FOR_HS400. With that the stack checks bit 63 to descide whether HS400 is available. Using sdhci-caps-mask allows to mask bit 63. The stack then selects HS200 as

[PATCH v3 09/21] ARM: dts: imx6qdl-colibri: add phy to fec

2019-08-07 Thread Philippe Schenker
Add the phy-node and mdio bus to the fec-node, represented as is on hardware. This commit includes micrel,led-mode that is set to the default value, prepared for someone who wants to change this. Signed-off-by: Philippe Schenker --- Changes in v3: None Changes in v2: None

[PATCH v3 14/21] ARM: dts: imx6ull-colibri: Add sleep mode to fec

2019-08-07 Thread Philippe Schenker
Do not change the clock as the power for this phy is switched with that clock. Signed-off-by: Philippe Schenker --- Changes in v3: None Changes in v2: None arch/arm/boot/dts/imx6ull-colibri.dtsi | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git

[PATCH v3 13/21] ARM: dts: imx6-colibri: Add missing pinmuxing to Toradex eval board

2019-08-07 Thread Philippe Schenker
This patch adds some missing pinmuxing that is in the colibri standard to the dts. Signed-off-by: Philippe Schenker --- Changes in v3: None Changes in v2: - Commit title arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts | 8 1 file changed, 8 insertions(+) diff --git

[PATCH v3 01/21] ARM: dts: imx7-colibri: make sure module supplies are always on

2019-08-07 Thread Philippe Schenker
From: Marcel Ziswiler Prevent regulators from being switched off. Signed-off-by: Marcel Ziswiler Signed-off-by: Philippe Schenker --- Changes in v3: None Changes in v2: None arch/arm/boot/dts/imx7-colibri.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v3 05/21] ARM: dts: add recovery for I2C for iMX7

2019-08-07 Thread Philippe Schenker
From: Oleksandr Suvorov - add recovery mode for applicable i2c buses for Colibri iMX7 module. Signed-off-by: Oleksandr Suvorov Signed-off-by: Philippe Schenker --- Changes in v3: None Changes in v2: None arch/arm/boot/dts/imx7-colibri.dtsi | 25 +++-- 1 file changed,

[PATCH v3 06/21] ARM: dts: imx7-colibri: add GPIO wakeup key

2019-08-07 Thread Philippe Schenker
From: Stefan Agner Add wakeup GPIO key which is able to wake the system from sleep modes (e.g. Suspend-to-Memory). Signed-off-by: Stefan Agner Signed-off-by: Philippe Schenker --- Changes in v3: None Changes in v2: None arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 14 ++

[PATCH v3 00/21] Common patches from downstream development

2019-08-07 Thread Philippe Schenker
This patchset holds some common changes that were never upstreamed. With latest downstream kernel upgrade, I took the aproach to select mainline devicetrees and atomically add missing stuff for downstream. These patches I send here are separated out with changes that also have a benfit for

[PATCH] rtc: mxc: use spin_lock_irqsave instead of spin_lock_irq in IRQ context

2019-08-07 Thread Fuqian Huang
As spin_unlock_irq will enable interrupts. mxc_rtc_irq_enable is called from interrupt handler mxc_rtc_interrupt. Interrupts are enabled in interrupt handler. Use spin_lock_irqsave/spin_unlock_irqrestore instead of spin_(un)lock_irq in IRQ context to avoid this. Signed-off-by: Fuqian Huang ---

Re: Odroid-XU4 sound issue after suspend-resume

2019-08-07 Thread Sylwester Nawrocki
Hi Jaafar, On 8/5/19 15:27, Jaafar Ali wrote: > Dear All, > Kernel 5.3-rc1 > OS: ubuntu 18.04 > Hardware: Odroid-XU4 > The sound of Odroid-XU4 after suspend/resume cycle is choppy and slow.  > I have found a workaround, the I2SMOD register value should be set to > zero after resume to force

Re: [PATCH 2/6] ARM: cpuidle: Remove overzealous error logging

2019-08-07 Thread Daniel Lezcano
On 22/07/2019 17:37, Lorenzo Pieralisi wrote: > CPUidle back-end operations are not implemented in some platforms > but this should not be considered an error serious enough to be > logged. Check the arm_cpuidle_init() return value to detect whether > the failure must be reported or not in the

Re: [PATCH 1/6] ARM: cpuidle: Remove useless header include

2019-08-07 Thread Daniel Lezcano
On 22/07/2019 17:37, Lorenzo Pieralisi wrote: > The generic ARM CPUidle driver includes by mistake. > > Remove the topology header include. > > Signed-off-by: Lorenzo Pieralisi > Cc: Ulf Hansson > Cc: Sudeep Holla > Cc: Daniel Lezcano > Cc: "Rafael J. Wysocki" Acked-by: Daniel Lezcano

Re: [PATCH v2 4/5] firmware: arm_scmi: Add RESET protocol in SCMI v2.0

2019-08-07 Thread Philipp Zabel
On Tue, 2019-08-06 at 18:02 +0100, Sudeep Holla wrote: > SCMIv2.0 adds a new Reset Management Protocol to manage various reset > states a given device or domain can enter. Device(s) that can be > collectively reset through a common reset signal constitute a reset > domain for the firmware. > > A

next-20190806: arm64: adv7511 3-0039: failed to find dsi host

2019-08-07 Thread Naresh Kamboju
arm64 devices dragonboard 410c (QC410E) and hi6220-hikey running Linux next-20190806 loading modules causing floods of kernel messages. We have enabled few extra kernel configs for testing. CONFIG_DRM_I2C_ADV7511=m CONFIG_DRM_I2C_ADV7511_CEC=y ... Please find below boot log and config file link.

Re: Fw: Looking for Odenix developers.

2019-08-07 Thread Ywe Cærlyn
I now also have a new mail, at my new domain OdenixDev.eu. Which we´ll see if maybe some more things get installed on the server there. Particulary something less macho than text-only mailing list.. ;) I see Thunderbird team is asking for donations aswell on their page. This is all solved

Re: [PATCH v2 5/5] reset: Add support for resets provided by SCMI

2019-08-07 Thread Philipp Zabel
On Tue, 2019-08-06 at 18:02 +0100, Sudeep Holla wrote: > On some ARM based systems, a separate Cortex-M based System Control > Processor(SCP) provides the overall power, clock, reset and system > control. System Control and Management Interface(SCMI) Message Protocol > is defined for the

[PATCH net-next v3 05/10] net: stmmac: selftests: Add RSS test

2019-08-07 Thread Jose Abreu
Add a test for RSS in the stmmac selftests. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: linux-arm-ker...@lists.infradead.org

[PATCH net-next v3 07/10] net: stmmac: selftests: Add test for VLAN and Double VLAN Filtering

2019-08-07 Thread Jose Abreu
Add a selftest for VLAN and Double VLAN Filtering in stmmac. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc:

[PATCH net-next v3 00/10] net: stmmac: Improvements for -next

2019-08-07 Thread Jose Abreu
[ This is just a rebase of v2 into latest -next in order to avoid a merge conflict ] Couple of improvements for -next tree. More info in commit logs. --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc:

[PATCH net-next v3 03/10] net: stmmac: xgmac: Implement tx_queue_prio()

2019-08-07 Thread Jose Abreu
Implement the TX Queue Priority callback in XGMAC core. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc:

Re: [PATCH v4 1/4] RISC-V: Remove per cpu clocksource

2019-08-07 Thread Daniel Lezcano
On 06/08/2019 23:37, Paul Walmsley wrote: > On Fri, 2 Aug 2019, Atish Patra wrote: > >> There is only one clocksource in RISC-V. The boot cpu initializes >> that clocksource. No need to keep a percpu data structure. >> >> Signed-off-by: Atish Patra > > Thanks, queued for v5.3-rc4. Please, in

[PATCH net-next v3 06/10] net: stmmac: Implement VLAN Hash Filtering in XGMAC

2019-08-07 Thread Jose Abreu
Implement the VLAN Hash Filtering feature in XGMAC core. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc:

[PATCH net-next v3 02/10] net: stmmac: xgmac: Implement set_mtl_tx_queue_weight()

2019-08-07 Thread Jose Abreu
Implement the TX Queue Weight callback. In order for this to be active we also need to set ETS algorithm when configuring Queue. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc:

[PATCH net-next v3 10/10] net: stmmac: selftests: Add a selftest for Flexible RX Parser

2019-08-07 Thread Jose Abreu
Add a selftest for the Flexible RX Parser feature. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc:

[PATCH net-next v3 01/10] net: stmmac: xgmac: Implement MMC counters

2019-08-07 Thread Jose Abreu
Implement the MMC counters feature in XGMAC core. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc:

[PATCH net-next v3 08/10] net: stmmac: Implement Safety Features in XGMAC core

2019-08-07 Thread Jose Abreu
XGMAC also supports Safety Features. This patch implements the configuration and handling of this feature in XGMAC core. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc:

[PATCH net-next v3 04/10] net: stmmac: Implement RSS and enable it in XGMAC core

2019-08-07 Thread Jose Abreu
Implement the RSS functionality and add the corresponding callbacks in XGMAC core. Changes from v1: - Do not use magic constants (Jakub) - Use ethtool_rxfh_indir_default() (Jakub) Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc:

[PATCH net-next v3 09/10] net: stmmac: Add Flexible RX Parser support in XGMAC

2019-08-07 Thread Jose Abreu
XGMAC cores also support the Flexible RX Parser feature. Add the support for it in the XGMAC core. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc:

Re: [PATCH 1/2] kbuild: add OBJSIZE variable for the size tool

2019-08-07 Thread Vasily Gorbik
On Wed, Aug 07, 2019 at 11:32:04AM +0900, Masahiro Yamada wrote: > Hi. > > On Tue, Aug 6, 2019 at 7:56 PM Vasily Gorbik wrote: > > > > Define and export OBJSIZE variable for "size" tool from binutils to be > > used in architecture specific Makefiles (naming the variable just "SIZE" > > would be

Re: [PATCH] tty: serial: Introduce uart_tx_stoppped_or_empty()

2019-08-07 Thread Andy Shevchenko
On Wed, Aug 7, 2019 at 4:20 AM Andrey Smirnov wrote: > On Mon, Aug 5, 2019 at 11:48 PM Andy Shevchenko > wrote: > > On Mon, Aug 5, 2019 at 10:36 PM Andrey Smirnov > > wrote: > > > The vast majority of the serial drivers check for > > > > > > uart_tx_stopped(>port) || uart_circ_empty(xmit)

Re: [PATCH 06/16] net: phy: adin: support PHY mode converters

2019-08-07 Thread Ardelean, Alexandru
On Tue, 2019-08-06 at 17:39 +0200, Andrew Lunn wrote: > [External] > > On Tue, Aug 06, 2019 at 06:47:08AM +, Ardelean, Alexandru wrote: > > On Mon, 2019-08-05 at 16:51 +0200, Andrew Lunn wrote: > > > [External] > > > > > > On Mon, Aug 05, 2019 at 07:54:43PM +0300, Alexandru Ardelean wrote: >

linux-next: build warning after merge of the akpm-current tree

2019-08-07 Thread Stephen Rothwell
Hi all, After merging the akpm-current tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from include/linux/bits.h:22, from arch/x86/include/asm/msr-index.h:5, from arch/x86/boot/cpucheck.c:28: include/linux/build_bug.h:49:

Re: Let's talk about the elephant in the room - the Linux kernel's inability to gracefully handle low memory pressure

2019-08-07 Thread Michal Hocko
On Tue 06-08-19 18:01:50, Johannes Weiner wrote: > On Tue, Aug 06, 2019 at 09:27:05AM -0700, Suren Baghdasaryan wrote: [...] > > > > I'm not sure 10s is the perfect value here, but I do think the kernel > > > > should try to get out of such a state, where interacting with the > > > > system is

Re: [LKP] [SUNRPC] 0472e47660: fsmark.app_overhead 16.0% regression

2019-08-07 Thread Xing Zhengjun
On 7/24/2019 1:17 PM, Xing Zhengjun wrote: On 7/12/2019 2:42 PM, Xing Zhengjun wrote: Hi Trond, I attached perf-profile part big changes, hope it is useful for analyzing the issue. Ping... ping... In testcase: fsmark on test machine: 40 threads Intel(R) Xeon(R) CPU E5-2690

Re: [PATCH v2 1/1] ixgbe: sync the first fragment unconditionally

2019-08-07 Thread Jacob Wen
I think the description is not correct. Consider using something like below. In Xen environment, due to memory fragmentation ixgbe may allocate a 'DMA' buffer with pages that are not physically contiguous. A NIC doesn't support directly write such buffer. So xen-swiotlb would use the pages,

Re: [PATCH 2/2] s390/build: use size command to perform empty .bss check

2019-08-07 Thread Vasily Gorbik
On Wed, Aug 07, 2019 at 11:33:40AM +0900, Masahiro Yamada wrote: > On Tue, Aug 6, 2019 at 7:56 PM Vasily Gorbik wrote: > > > > Currently empty .bss checks performed do not pay attention to "common > > objects" in object files which end up in .bss section eventually. > > > > The "size" tool is a

[PATCH v4 1/4] nvme-pci: Pass the queue to SQ_SIZE/CQ_SIZE macros

2019-08-07 Thread Benjamin Herrenschmidt
This will make it easier to handle variable queue entry sizes later. No functional change. Signed-off-by: Benjamin Herrenschmidt Reviewed-by: Christoph Hellwig Reviewed-by: Minwoo Im --- drivers/nvme/host/pci.c | 30 +++--- 1 file changed, 15 insertions(+), 15

[PATCH v4 0/4] nvme-pci: Support for Apple 201+ (T2 chip)

2019-08-07 Thread Benjamin Herrenschmidt
This series combines the original series and an updated version of the shared tags patch, and is rebased on nvme-5.4. This adds support for the controller found in recent Apple machines which is basically a SW emulated NVME controller in the T2 chip. The original reverse engineering work was

Re: [PATCH 0/4] x86/mce: protect nr_cpus from rebooting by broadcast mce

2019-08-07 Thread Pingfan Liu
On Wed, Aug 07, 2019 at 11:00:41AM +0800, Dave Young wrote: > Add Tony and Xunlei in cc. > On 08/05/19 at 04:58pm, Pingfan Liu wrote: > > This series include two related groups: > > [1-3/4]: protect nr_cpus from rebooting by broadcast mce > > [4/4]: improve "kexec -l" robustness against broadcast

Re: [PATCH 15/16] net: phy: adin: add ethtool get_stats support

2019-08-07 Thread Ardelean, Alexandru
On Tue, 2019-08-06 at 17:46 +0200, Andrew Lunn wrote: > [External] > > On Tue, Aug 06, 2019 at 07:11:57AM +, Ardelean, Alexandru wrote: > > On Mon, 2019-08-05 at 17:28 +0200, Andrew Lunn wrote: > > > [External] > > > > > > > +struct adin_hw_stat { > > > > + const char *string; > > > >

[PATCH v4 4/4] nvme-pci: Support shared tags across queues for Apple 2018 controllers

2019-08-07 Thread Benjamin Herrenschmidt
Another issue with the Apple T2 based 2018 controllers seem to be that they blow up (and shut the machine down) if there's a tag collision between the IO queue and the Admin queue. My suspicion is that they use our tags for their internal tracking and don't mix them with the queue id. They also

[PATCH v4 2/4] nvme-pci: Add support for variable IO SQ element size

2019-08-07 Thread Benjamin Herrenschmidt
The size of a submission queue element should always be 6 (64 bytes) by spec. However some controllers such as Apple's are not properly implementing the standard and require a different size. This provides the ground work for the subsequent quirks for these controllers. Signed-off-by: Benjamin

[PATCH v4 3/4] nvme-pci: Add support for Apple 2018+ models

2019-08-07 Thread Benjamin Herrenschmidt
Based on reverse engineering and original patch by Paul Pawlowski This adds support for Apple weird implementation of NVME in their 2018 or later machines. It accounts for the twice-as-big SQ entries for the IO queues, and the fact that only interrupt vector 0 appears to function properly.

Re: [PATCH] mm/mmap.c: refine data locality of find_vma_prev

2019-08-07 Thread Michal Hocko
On Wed 07-08-19 08:31:09, Wei Yang wrote: > On Tue, Aug 06, 2019 at 11:29:52AM +0200, Vlastimil Babka wrote: > >On 8/6/19 10:11 AM, Wei Yang wrote: > >> When addr is out of the range of the whole rb_tree, pprev will points to > >> the biggest node. find_vma_prev gets is by going through the right

[PATCH 1/2] riscv: Add memmove string operation.

2019-08-07 Thread Nick Hu
There are some features which need this string operation for compilation, like KASAN. So the purpose of this porting is for the features like KASAN which cannot be compiled without it. KASAN's string operations would replace the original string operations and call for the architecture defined

[PATCH 2/2] riscv: Add KASAN support

2019-08-07 Thread Nick Hu
This patch ports the feature Kernel Address SANitizer (KASAN). Note: The start address of shadow memory is at the beginning of kernel space, which is 2^64 - (2^39 / 2) in SV39. The size of the kernel space is 2^38 bytes so the size of shadow memory should be 2^38 / 8. Thus, the shadow memory

[PATCH 0/2] KASAN support for RISC-V

2019-08-07 Thread Nick Hu
KASAN is an important runtime memory debugging feature in linux kernel which can detect use-after-free and out-of- bounds problems. There are two patches in this letter: 1. Porting the memmove string operation. 2. Porting the feature KASAN. Nick Hu (2): riscv: Add memmove string operation.

Re: linux-next: manual merge of the mips tree with Linus' tree

2019-08-07 Thread Arnd Bergmann
On Wed, Aug 7, 2019 at 2:25 AM Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the mips tree got a conflict in: > > arch/mips/include/asm/vdso/vdso.h > ( arch/mips/vdso/vdso.h in Linus' tree) > > between commit: > > ee38d94a0ad8 ("page flags: prioritize kasan bits over

[PATCH] net: tundra: tsi108: use spin_lock_irqsave instead of spin_lock_irq in IRQ context

2019-08-07 Thread Fuqian Huang
As spin_unlock_irq will enable interrupts. Function tsi108_stat_carry is called from interrupt handler tsi108_irq. Interrupts are enabled in interrupt handler. Use spin_lock_irqsave/spin_unlock_irqrestore instead of spin_(un)lock_irq in IRQ context to avoid this. Signed-off-by: Fuqian Huang ---

Re: [PATCH v1] perf record: Add an option to take an AUX snapshot on exit

2019-08-07 Thread Adrian Hunter
On 6/08/19 5:41 PM, Alexander Shishkin wrote: > It is sometimes useful to generate a snapshot when perf record exits; > I've been using a wrapper script around the workload that would do a > killall -USR2 perf when the workload exits. > > This patch makes it easier and also works when perf record

net-next/master boot bisection: v5.3-rc1-460-g05bb520376af on meson-gxm-khadas-vim2

2019-08-07 Thread kernelci.org bot
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This automated bisection report was sent to you on the basis * * that you may be involved with the breaking commit it has * * found. No manual investigation has been done to verify it, * * and the root cause of the

Re: [PATCH v2] asm-generic: fix variable 'p4d' set but not used

2019-08-07 Thread Arnd Bergmann
On Wed, Aug 7, 2019 at 1:29 AM Qian Cai wrote: > > A compiler throws a warning on an arm64 system since the > commit 9849a5697d3d ("arch, mm: convert all architectures to use > 5level-fixup.h"), > > mm/kasan/init.c: In function 'kasan_free_p4d': > mm/kasan/init.c:344:9: warning: variable 'p4d'

linux-next: build failure after merge of the akpm-current tree

2019-08-07 Thread Stephen Rothwell
Hi all, After merging the akpm-current tree, today's linux-next build (arm multi_v7_defconfig) failed like this: In file included from include/linux/kernel.h:11, from kernel/events/uprobes.c:12: kernel/events/uprobes.c: In function 'uprobe_write_opcode':

Re: [PATCH v2] ALSA: pcm: fix multiple memory leak bugs

2019-08-07 Thread Wenwen Wang
On Wed, Aug 7, 2019 at 3:18 AM Takashi Iwai wrote: > > On Wed, 07 Aug 2019 09:09:59 +0200, > Wenwen Wang wrote: > > > > In hiface_pcm_init(), 'rt' is firstly allocated through kzalloc(). Later > > on, hiface_pcm_init_urb() is invoked to initialize 'rt->out_urbs[i]'. In > > hiface_pcm_init_urb(),

Re: [Intel-wired-lan] MDI errors during resume from ACPI S3 (suspend to ram)

2019-08-07 Thread Neftin, Sasha
On 8/6/2019 18:53, mario.limoncie...@dell.com wrote: -Original Message- From: Paul Menzel Sent: Tuesday, August 6, 2019 10:36 AM To: Jeff Kirsher Cc: intel-wired-...@lists.osuosl.org; Linux Kernel Mailing List; Limonciello, Mario Subject: MDI errors during resume from ACPI S3 (suspend

Re: [PATCH v2] ALSA: pcm: fix multiple memory leak bugs

2019-08-07 Thread Takashi Iwai
On Wed, 07 Aug 2019 09:09:59 +0200, Wenwen Wang wrote: > > In hiface_pcm_init(), 'rt' is firstly allocated through kzalloc(). Later > on, hiface_pcm_init_urb() is invoked to initialize 'rt->out_urbs[i]'. In > hiface_pcm_init_urb(), 'rt->out_urbs[i].buffer' is allocated through > kzalloc().

<    3   4   5   6   7   8   9   >