[PATCH v2 1/2] arm64: defconfig: Enable I2C_GPIO

2019-01-31 Thread Jagan Teki
The GPIO-based bitbanging I2C driver is required to configure CSI data, clock pins on CSI block in Allwinner A64 SoC. Let build it as module. Signed-off-by: Jagan Teki --- Changes for v2: - rebase on master arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 2/2] arm64: defconfig: Enable SUN6I Camera sensor interface

2019-01-31 Thread Jagan Teki
Enable Camera sensor interface for Allwinner SUN6I SoC's. This support enable V4L2 platform drivers static and VIDEO_SUN6I_CSI as module. Signed-off-by: Jagan Teki --- Changes for v2: - rebase on master arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH v6 0/4] Provide core API for NMIs

2019-01-31 Thread Julien Thierry
On 31/01/2019 14:53, Julien Thierry wrote: > Hi, > > This patch series provides a way for irqchips to define some IRQs as NMIs. > > Updating this series as it is needed for the arm64 pseudo-NMI which we > are considering to merge (I'll post a new version shortly). > Latest version of the

Re: [PATCH] Drivers: hv: vmbus: Add mutex lock to channel show functions

2019-01-31 Thread Sasha Levin
On Tue, Jan 29, 2019 at 07:20:28PM +, Dexuan Cui wrote: From: Kimberly Brown > ... > But as you pointed, at least for sub-channels, channel->ringbuffer_page > can indeed disappear in vmbus_close() -> ... -> vmbus_free_ring(), and > the "attribute->show()" could crash when the race happens.

Re: [PATCH][RFC] module: Cure the MODULE_LICENSE "GPL" vs. "GPL v2" bogosity

2019-01-31 Thread Philippe Ombredanne
Thomas: On Mon, Jan 28, 2019 at 11:39 PM Thomas Gleixner wrote: [...] > As an unintended side effect this distinction causes a major headache for > license compliance, license scanners and the ongoing effort to clean up the > license mess of the kernel. Glad to be of service and sorry for having

Re: [PATCH] tty: Fix WARNING in tty_set_termios

2019-01-31 Thread Marcel Holtmann
Hi Johan, >>> On Fri, Jan 25, 2019 at 04:29:05PM -0700, Shuah Khan wrote: tty_set_termios() has the following WARMN_ON which can be triggered with a syscall to invoke TIOCGETD __NR_ioctl. > > You meant TIOCSETD here, and in fact its the call which sets the uart > protocol that triggers

Re: [PATCH 10/10] venus: dec: make decoder compliant with stateful codec API

2019-01-31 Thread Nicolas Dufresne
Le jeudi 31 janvier 2019 à 22:34 +0900, Tomasz Figa a écrit : > On Thu, Jan 31, 2019 at 9:42 PM Philipp Zabel wrote: > > Hi Nicolas, > > > > On Wed, 2019-01-30 at 10:32 -0500, Nicolas Dufresne wrote: > > > Le mercredi 30 janvier 2019 à 15:17 +0900, Tomasz Figa a écrit : > > > > > I don't

Re: [driver-core PATCH v10 0/9] Add NUMA aware async_schedule calls

2019-01-31 Thread Greg KH
On Tue, Jan 22, 2019 at 10:39:05AM -0800, Alexander Duyck wrote: > This patch set provides functionality that will help to improve the > locality of the async_schedule calls used to provide deferred > initialization. > > This patch set originally started out focused on just the one call to >

Re: [PATCH V8 2/5] i2c: tegra: Add Bus Clear Master Support

2019-01-31 Thread Dmitry Osipenko
31.01.2019 9:16, Sowjanya Komatineni пишет: > Bus clear feature of tegra i2c controller helps to recover from > bus hang when i2c master loses the bus arbitration due to the > slave device holding SDA LOW continuously for some unknown reasons. > > Per I2C specification, the device that held the

Re: [PATCH] net: check negative value for signed refcnt

2019-01-31 Thread Eric Dumazet
On 01/31/2019 05:49 AM, Kirill Tkhai wrote: > > 2)Not related to your patch -- it looks like we have problem in existing > code with this netdev_refcnt_read(). It does not imply a memory ordering > or some guarantees about reading percpu values. For example, in generic > code struct percpu_ref

Re: [PATCH] net: check negative value for signed refcnt

2019-01-31 Thread Alexandre BESNARD
Hi Kirill, and thanks for your time, On 31 Jan 19 14:49, Kirill Tkhai ktk...@virtuozzo.com wrote : > Hi, Alexandre, > On 31.01.2019 16:20, alexandre.besn...@softathome.com wrote: > > From: Alexandre Besnard > > Device remaining references counter is get as a signed integer. > > When

Re: [PATCH V8 1/5] i2c: tegra: Sort all the include headers alphabetically

2019-01-31 Thread Dmitry Osipenko
31.01.2019 9:16, Sowjanya Komatineni пишет: > This patch sorts all the include headers alphabetically for the > I2C tegra driver > > Signed-off-by: Sowjanya Komatineni > --- > [V3/V4/V5/V7/V8] : Removed unsued headers in tegra I2C > [V2] : Added this in V2 to sort the headers in tegra I2C > >

Re: [PATCH] irqchip/gic-v3-its: Lock its device list during find and create its device

2019-01-31 Thread Marc Zyngier
Hi Zeng, On 31/01/2019 14:47, Zheng Xiang wrote: > Hi Marc, > > On 2019/1/29 13:42, Zheng Xiang wrote: >> On 2019/1/28 21:51, Marc Zyngier wrote: >>> On 28/01/2019 07:13, Zheng Xiang wrote: Hi Marc, Thanks for your review. On 2019/1/26 19:38, Marc Zyngier wrote: > Hi

Re: [PATCH V8 3/5] i2c: tegra: Add DMA Support

2019-01-31 Thread Dmitry Osipenko
31.01.2019 9:16, Sowjanya Komatineni пишет: > This patch adds DMA support for Tegra I2C. > > Tegra I2C TX and RX FIFO depth is 8 words. PIO mode is used for > transfer size of the max FIFO depth and DMA mode is used for > transfer size higher than max FIFO depth to save CPU overhead. > > PIO

Re: [RFC PATCH 3/5] mm/vma: add support for peer to peer to device vma

2019-01-31 Thread Jerome Glisse
On Thu, Jan 31, 2019 at 09:05:01AM +0100, Christoph Hellwig wrote: > On Wed, Jan 30, 2019 at 08:44:20PM +, Jason Gunthorpe wrote: > > Not really, for MRs most drivers care about DMA addresses only. The > > only reason struct page ever gets involved is because it is part of > > the GUP, SGL and

Re: [PATCH] crypto: ccp: fix the SEV probe in kexec boot path

2019-01-31 Thread Lendacky, Thomas
On 1/30/19 2:57 PM, Singh, Brijesh wrote: > A kexec reboot may leave the firmware in INIT or WORKING state. > Currently, we issue PLATFORM_INIT command during the probe without > checking the current state. The PLATFORM_INIT command fails if the > FW is already in INIT state. Lets check the

Re: [RFC PATCH 3/5] mm/vma: add support for peer to peer to device vma

2019-01-31 Thread Jerome Glisse
On Thu, Jan 31, 2019 at 09:02:03AM +0100, Christoph Hellwig wrote: > On Wed, Jan 30, 2019 at 01:50:27PM -0500, Jerome Glisse wrote: > > I do not see how VMA changes are any different than using struct page > > in respect to userspace exposure. Those vma callback do not need to be > > set by

Re: [PATCH V7 3/5] i2c: tegra: Add DMA Support

2019-01-31 Thread Dmitry Osipenko
31.01.2019 17:43, Thierry Reding пишет: > On Thu, Jan 31, 2019 at 05:06:18PM +0300, Dmitry Osipenko wrote: >> 31.01.2019 15:06, Thierry Reding пишет: >>> On Thu, Jan 31, 2019 at 03:05:48AM +0300, Dmitry Osipenko wrote: 30.01.2019 19:01, Sowjanya Komatineni пишет: >>> [...] > diff --git

[PATCH] arm64: dts: imx8mq: Add RTC support

2019-01-31 Thread Abel Vesa
Add RTC support for i.MX8MQ. Signed-off-by: Abel Vesa --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index 892063a..49b14af 100644 ---

[PATCH v10 04/25] arm64: cpufeature: Add cpufeature for IRQ priority masking

2019-01-31 Thread Julien Thierry
Add a cpufeature indicating whether a cpu supports masking interrupts by priority. The feature will be properly enabled in a later patch. Signed-off-by: Julien Thierry Reviewed-by: Suzuki K Poulose Reviewed-by: Mark Rutland Acked-by: Catalin Marinas Acked-by: Marc Zyngier Cc: Catalin

[PATCH v10 13/25] arm64: daifflags: Include PMR in daifflags restore operations

2019-01-31 Thread Julien Thierry
The addition of PMR should not bypass the semantics of daifflags. When DA_F are set, I bit is also set as no interrupts (even of higher priority) is allowed. When DA_F are cleared, I bit is cleared and interrupt enabling/disabling goes through ICC_PMR_EL1. Signed-off-by: Julien Thierry

Re: [PATCH 0/4] WIP: rockchip mpp for v4l2 video decoder

2019-01-31 Thread Ayaka
Sent from my iPad > On Jan 31, 2019, at 10:03 PM, Ezequiel Garcia wrote: > > Hey Ayaka! > >> On Thu, 2019-01-31 at 11:13 +0800, ayaka wrote: >> From: Randy 'ayaka' Li >> >> Hello >> Those patches are based on the previous vendor driver I post before, >> but it can apply without the

[PATCH v10 19/25] irqchip/gic-v3: Detect if GIC can support pseudo-NMIs

2019-01-31 Thread Julien Thierry
The values non secure EL1 needs to use for PMR and RPR registers depends on the value of SCR_EL3.FIQ. The values non secure EL1 sees from the distributor and redistributor depend on whether security is enabled for the GIC or not. To avoid having to deal with two sets of values for PMR

[PATCH v10 20/25] irqchip/gic-v3: Handle pseudo-NMIs

2019-01-31 Thread Julien Thierry
Provide a higher priority to be used for pseudo-NMIs. When such an interrupt is received, keep interrupts fully disabled at CPU level to prevent receiving other pseudo-NMIs while handling the current one. Signed-off-by: Julien Thierry Acked-by: Marc Zyngier Cc: Thomas Gleixner Cc: Jason Cooper

[PATCH v10 12/25] arm64: irqflags: Use ICC_PMR_EL1 for interrupt masking

2019-01-31 Thread Julien Thierry
Instead disabling interrupts by setting the PSR.I bit, use a priority higher than the one used for interrupts to mask them via PMR. When using PMR to disable interrupts, the value of PMR will be used instead of PSR.[DAIF] for the irqflags. Signed-off-by: Julien Thierry Suggested-by: Daniel

[PATCH v10 18/25] arm64: gic-v3: Implement arch support for priority masking

2019-01-31 Thread Julien Thierry
Implement architecture specific primitive allowing the GICv3 driver to use priorities to mask interrupts. Signed-off-by: Julien Thierry Suggested-by: Daniel Thompson Acked-by: Marc Zyngier Cc: Marc Zyngier Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/include/asm/arch_gicv3.h | 8

[PATCH v10 11/25] efi: Let architectures decide the flags that should be saved/restored

2019-01-31 Thread Julien Thierry
Currently, irqflags are saved before calling runtime services and checked for mismatch on return. Provide a pair of overridable macros to save and restore (if needed) the state that need to be preserved on return from a runtime service. This allows to check for flags that are not necesarly

[PATCH v10 07/25] arm64: ptrace: Provide definitions for PMR values

2019-01-31 Thread Julien Thierry
Introduce fixed values for PMR that are going to be used to mask and unmask interrupts by priority. The current priority given to GIC interrupts is 0xa0, so clearing PMR's most significant bit is enough to mask interrupts. Signed-off-by: Julien Thierry Suggested-by: Daniel Thompson Acked-by:

[PATCH v10 08/25] arm64: Make PMR part of task context

2019-01-31 Thread Julien Thierry
In order to replace PSR.I interrupt disabling/enabling with ICC_PMR_EL1 interrupt masking, ICC_PMR_EL1 needs to be saved/restored when taking/returning from an exception. This mimics the way hardware saves and restores PSR.I bit in spsr_el1 for exceptions and ERET. Add PMR to the registers to

[PATCH] arm64: defconfig: Enable RTC_DRV_SNVS

2019-01-31 Thread Abel Vesa
i.MX8MQ needs it for RTC support. Signed-off-by: Abel Vesa --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 6e5af25..5ac64c5 100644 --- a/arch/arm64/configs/defconfig +++

[PATCH v10 09/25] arm64: Unmask PMR before going idle

2019-01-31 Thread Julien Thierry
CPU does not received signals for interrupts with a priority masked by ICC_PMR_EL1. This means the CPU might not come back from a WFI instruction. Make sure ICC_PMR_EL1 does not mask interrupts when doing a WFI. Since the logic of cpu_do_idle is becoming a bit more complex than just two

[PATCH v10 22/25] arm64: Handle serror in NMI context

2019-01-31 Thread Julien Thierry
Per definition of the daifflags, Serrors can occur during any interrupt context, that includes NMI contexts. Trying to nmi_enter in an nmi context will crash. Skip nmi_enter/nmi_exit when serror occurred during an NMI. Suggested-by: James Morse Signed-off-by: Julien Thierry Acked-by: Marc

[PATCH v10 23/25] arm64: Skip preemption when exiting an NMI

2019-01-31 Thread Julien Thierry
Handling of an NMI should not set any TIF flags. For NMIs received from EL0 the current exit path is safe to use. However, an NMI received at EL1 could have interrupted some task context that has set the TIF_NEED_RESCHED flag. Preempting a task should not happen as a result of an NMI. Skip

[PATCH v10 21/25] irqchip/gic-v3: Allow interrupts to be set as pseudo-NMI

2019-01-31 Thread Julien Thierry
Implement NMI callbacks for GICv3 irqchip. Install NMI safe handlers when setting up interrupt line as NMI. Only SPIs and PPIs are allowed to be set up as NMI. Signed-off-by: Julien Thierry Reviewed-by: Marc Zyngier Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier ---

[PATCH v10 25/25] arm64: Enable the support of pseudo-NMIs

2019-01-31 Thread Julien Thierry
Add a build option and a command line parameter to build and enable the support of pseudo-NMIs. Signed-off-by: Julien Thierry Suggested-by: Daniel Thompson Cc: Catalin Marinas Cc: Will Deacon --- Documentation/admin-guide/kernel-parameters.txt | 5 + arch/arm64/Kconfig

[PATCH v10 24/25] arm64: Skip irqflags tracing for NMI in IRQs disabled context

2019-01-31 Thread Julien Thierry
When an NMI is raised while interrupts where disabled, the IRQ tracing already is in the correct state (i.e. hardirqs_off) and should be left as such when returning to the interrupted context. Check whether PMR was masking interrupts when the NMI was raised and skip IRQ tracing if necessary.

[PATCH v10 17/25] arm64: Switch to PMR masking when starting CPUs

2019-01-31 Thread Julien Thierry
Once the boot CPU has been prepared or a new secondary CPU has been brought up, use ICC_PMR_EL1 to mask interrupts on that CPU and clear PSR.I bit. Since ICC_PMR_EL1 is initialized at CPU bringup, avoid overwriting it in the GICv3 driver. Signed-off-by: Julien Thierry Suggested-by: Daniel

[PATCH v10 14/25] arm64: alternative: Allow alternative status checking per cpufeature

2019-01-31 Thread Julien Thierry
In preparation for the application of alternatives at different points during the boot process, provide the possibility to check whether alternatives for a feature of interest was already applied instead of having a global boolean for all alternatives. Make VHE enablement code check for the VHE

[PATCH v10 10/25] arm64: kvm: Unmask PMR before entering guest

2019-01-31 Thread Julien Thierry
Interrupts masked by ICC_PMR_EL1 will not be signaled to the CPU. This means that hypervisor will not receive masked interrupts while running a guest. We need to make sure that all maskable interrupts are masked from the time we call local_irq_disable() in the main run loop, and remain so until

[PATCH v10 15/25] arm64: alternative: Apply alternatives early in boot process

2019-01-31 Thread Julien Thierry
From: Daniel Thompson Currently alternatives are applied very late in the boot process (and a long time after we enable scheduling). Some alternative sequences, such as those that alter the way CPU context is stored, must be applied much earlier in the boot sequence. Introduce

[PATCH v10 16/25] irqchip/gic-v3: Factor group0 detection into functions

2019-01-31 Thread Julien Thierry
The code to detect whether Linux has access to group0 interrupts can prove useful in other parts of the driver. Provide a separate function to do this. Signed-off-by: Julien Thierry Acked-by: Marc Zyngier Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier ---

[PATCH v10 05/25] arm/arm64: gic-v3: Add PMR and RPR accessors

2019-01-31 Thread Julien Thierry
Add helper functions to access system registers related to interrupt priorities: PMR and RPR. Signed-off-by: Julien Thierry Reviewed-by: Mark Rutland Acked-by: Catalin Marinas Reviewed-by: Marc Zyngier Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon Cc: Marc Zyngier ---

[PATCH v10 03/25] arm64: cpufeature: Set SYSREG_GIC_CPUIF as a boot system feature

2019-01-31 Thread Julien Thierry
It is not supported to have some CPUs using GICv3 sysreg CPU interface while some others do not. Once ICC_SRE_EL1.SRE is set on a CPU, the bit cannot be cleared. Since matching this feature require setting ICC_SRE_EL1.SRE, it cannot be turned off if found on a CPU. Set the feature as

[PATCH v10 06/25] irqchip/gic-v3: Switch to PMR masking before calling IRQ handler

2019-01-31 Thread Julien Thierry
Mask the IRQ priority through PMR and re-enable IRQs at CPU level, allowing only higher priority interrupts to be received during interrupt handling. Signed-off-by: Julien Thierry Acked-by: Catalin Marinas Acked-by: Marc Zyngier Cc: Catalin Marinas Cc: Will Deacon Cc: Thomas Gleixner Cc:

[PATCH v10 02/25] arm64: Remove unused daif related functions/macros

2019-01-31 Thread Julien Thierry
There are some helpers to modify PSR.[DAIF] bits that are not referenced anywhere. The less these bits are available outside of local_irq_* functions the better. Get rid of those unused helpers. Signed-off-by: Julien Thierry Reviewed-by: Mark Rutland Acked-by: Catalin Marinas Acked-by: Marc

[PATCH v10 00/25] arm64: provide pseudo NMI with GICv3

2019-01-31 Thread Julien Thierry
Hi, This series is a continuation of the work started by Daniel [1]. The goal is to use GICv3 interrupt priorities to simulate an NMI. The patches depend on the core API for NMIs patches [2]. Both series can be found on this branch: git clone http://linux-arm.org/linux-jt.git -b v5.0-pseudo-nmi

[PATCH v10 01/25] arm64: Fix HCR.TGE status for NMI contexts

2019-01-31 Thread Julien Thierry
When using VHE, the host needs to clear HCR_EL2.TGE bit in order to interact with guest TLBs, switching from EL2&0 translation regime to EL1&0. However, some non-maskable asynchronous event could happen while TGE is cleared like SDEI. Because of this address translation operations relying on

Re: [PATCH] MAINTAINERS: Update cgroup entry

2019-01-31 Thread Tejun Heo
On Thu, Jan 31, 2019 at 03:22:19PM +0100, Andrea Parri wrote: > Fix wildcard patterns and add cgroup-v2 documentation. > > Signed-off-by: Andrea Parri Applied to cgroup/for-5.0. Thanks. -- tejun

Re: [PATCH V3 01/13] perf/core, x86: Add PERF_SAMPLE_DATA_PAGE_SIZE

2019-01-31 Thread Liang, Kan
On 1/31/2019 7:37 AM, Peter Zijlstra wrote: On Wed, Jan 30, 2019 at 06:23:42AM -0800, kan.li...@linux.intel.com wrote: diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c index 374a197..03bf45d 100644 --- a/arch/x86/events/core.c +++ b/arch/x86/events/core.c @@ -2578,3 +2578,45 @@

Re: [PATCH] cgroup/pids: turn cgroup_subsys->free() into cgroup_subsys->release() to fix the accounting

2019-01-31 Thread Tejun Heo
On Mon, Jan 28, 2019 at 05:00:13PM +0100, Oleg Nesterov wrote: > The only user of cgroup_subsys->free() callback is pids_cgrp_subsys which > needs pids_free() to uncharge the pid. > > However, ->free() is called from __put_task_struct()->cgroup_free() and this > is too late. Even the trivial

Re: [PATCH RFC 1/1] iommu: set the default iommu-dma mode as non-strict

2019-01-31 Thread Jean-Philippe Brucker
Hi, On 31/01/2019 13:52, Zhen Lei wrote: > Currently, many peripherals are faster than before. For example, the top > speed of the older netcard is 10Gb/s, and now it's more than 25Gb/s. But > when iommu page-table mapping enabled, it's hard to reach the top speed > in strict mode, because of

[PATCH v6 4/4] irqdesc: Add domain handler for NMIs

2019-01-31 Thread Julien Thierry
NMI handling code should be executed between calls to nmi_enter and nmi_exit. Add a separate domain handler to properly setup NMI context when handling an interrupt requested as NMI. Signed-off-by: Julien Thierry Acked-by: Marc Zyngier Cc: Thomas Gleixner Cc: Marc Zyngier Cc: Will Deacon

[PATCH v6 3/4] genirq: Provide NMI handlers

2019-01-31 Thread Julien Thierry
Provide flow handlers that are NMI safe for interrupts and percpu_devid interrupts. Signed-off-by: Julien Thierry Acked-by: Marc Zyngier Cc: Thomas Gleixner Cc: Marc Zyngier Cc: Peter Zijlstra --- include/linux/irq.h | 3 +++ kernel/irq/chip.c | 54

[PATCH v6 0/4] Provide core API for NMIs

2019-01-31 Thread Julien Thierry
Hi, This patch series provides a way for irqchips to define some IRQs as NMIs. Updating this series as it is needed for the arm64 pseudo-NMI which we are considering to merge (I'll post a new version shortly). Changes since v5[1]: - Added Marc's Acked-by, Reviewed-by tags - Fixed locking bug in

[PATCH v6 2/4] genirq: Provide NMI management for percpu_devid interrupts

2019-01-31 Thread Julien Thierry
Add support for percpu_devid interrupts treated as NMIs. Percpu_devid NMIs need to be setup/torn down on each CPU they target. The same restrictions as for global NMIs still apply for percpu_devid NMIs. Signed-off-by: Julien Thierry Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Ingo Molnar Cc:

[PATCH v6 1/4] genirq: Provide basic NMI management for interrupt lines

2019-01-31 Thread Julien Thierry
Add functionality to allocate interrupt lines that will deliver IRQs as Non-Maskable Interrupts. These allocations are only successful if the irqchip provides the necessary support and allows NMI delivery for the interrupt line. Interrupt lines allocated for NMI delivery must be enabled/disabled

Re: [PATCH 11/22] mm, compaction: Use free lists to quickly locate a migration target

2019-01-31 Thread Vlastimil Babka
On 1/18/19 6:51 PM, Mel Gorman wrote: > Similar to the migration scanner, this patch uses the free lists to quickly > locate a migration target. The search is different in that lower orders > will be searched for a suitable high PFN if necessary but the search > is still bound. This is justified

Re: [PATCH] irqchip/gic-v3-its: Lock its device list during find and create its device

2019-01-31 Thread Zheng Xiang
Hi Marc, On 2019/1/29 13:42, Zheng Xiang wrote: > On 2019/1/28 21:51, Marc Zyngier wrote: >> On 28/01/2019 07:13, Zheng Xiang wrote: >>> Hi Marc, >>> >>> Thanks for your review. >>> >>> On 2019/1/26 19:38, Marc Zyngier wrote: Hi Zheng, On Sat, 26 Jan 2019 06:16:24 +, Zheng

[PATCH 1/2] component: Add documentation

2019-01-31 Thread Daniel Vetter
Someone owes me a beer ... While typing these I think doing an s/component_master/aggregate/ would be useful: - it's shorter :-) - I think component/aggregate is much more meaningful naming than component/puppetmaster or something like that. At least to my English ear "aggregate" emphasizes

[PATCH 2/2] components: multiple components for a device

2019-01-31 Thread Daniel Vetter
Component framework is extended to support multiple components for a struct device. These will be matched with different masters based on its sub component value. We are introducing this, as I915 needs two different components with different subcomponent value, which will be matched to two

Re: [PATCH V7 3/5] i2c: tegra: Add DMA Support

2019-01-31 Thread Thierry Reding
On Thu, Jan 31, 2019 at 05:06:18PM +0300, Dmitry Osipenko wrote: > 31.01.2019 15:06, Thierry Reding пишет: > > On Thu, Jan 31, 2019 at 03:05:48AM +0300, Dmitry Osipenko wrote: > >> 30.01.2019 19:01, Sowjanya Komatineni пишет: > > [...] > >>> diff --git a/drivers/i2c/busses/i2c-tegra.c > >>>

Re: [PATCH] dma: Uninline dma_max_mapping_size()

2019-01-31 Thread Michael S. Tsirkin
On Thu, Jan 31, 2019 at 03:37:23PM +0100, Christoph Hellwig wrote: > On Thu, Jan 31, 2019 at 02:01:27PM +0100, Joerg Roedel wrote: > > On Thu, Jan 31, 2019 at 11:41:29AM +0100, Christoph Hellwig wrote: > > > Sorry for not noticing last time, but since 5.0 we keep all non-fast > > > path DMA

Re: linux-next: manual merge of the vhost tree with the pci tree

2019-01-31 Thread Michael S. Tsirkin
On Thu, Jan 31, 2019 at 08:15:50AM -0600, Bjorn Helgaas wrote: > On Wed, Jan 30, 2019 at 8:40 PM Stephen Rothwell > wrote: > > > > Hi all, > > > > Today's linux-next merge of the vhost tree got a conflict in: > > > > drivers/pci/setup-bus.c > > > > between commit: > > > > 51c48b310183 ("PCI:

Re: [PATCH v7 12/15] KVM: s390: kvm_s390_gisa_clear() now clears the IPM only

2019-01-31 Thread Halil Pasic
On Thu, 31 Jan 2019 09:52:43 +0100 Michael Mueller wrote: > Function kvm_s390_gisa_clear() now clears the Interruption > Pending Mask of the GISA asap. If the GISA is in the alert > list at this time it stays in the list but is removed by > process_gib_alert_list(). > > Signed-off-by: Michael

Re: [PATCH] dma: Uninline dma_max_mapping_size()

2019-01-31 Thread Christoph Hellwig
On Thu, Jan 31, 2019 at 02:01:27PM +0100, Joerg Roedel wrote: > On Thu, Jan 31, 2019 at 11:41:29AM +0100, Christoph Hellwig wrote: > > Sorry for not noticing last time, but since 5.0 we keep all non-fast > > path DMA mapping interfaces out of line, so this should move to > > kernel/dma/mapping.c.

Re: [PATCH] phy: ti-pipe3: Add set_mode callback to configure usb3 phy as pcie phy

2019-01-31 Thread Roger Quadros
Kishon, On 31/01/19 13:04, Kishon Vijay Abraham I wrote: > Hi, > > On 31/01/19 4:11 PM, Roger Quadros wrote: >> >> >> On 31/01/19 08:02, Kishon Vijay Abraham I wrote: >>> Roger, >>> >>> On 30/01/19 8:28 PM, Roger Quadros wrote: Kishon, On 24/01/19 12:48, Kishon Vijay Abraham I

Re: [PATCH v3 2/2] iio:dac:dac7612: device tree bindings

2019-01-31 Thread Ricardo Ribalda Delgado
Hi Rob Thanks for your comments! On Wed, Jan 30, 2019 at 6:07 PM Rob Herring wrote: > > On Mon, Jan 28, 2019 at 10:49:31AM +0100, Ricardo Ribalda Delgado wrote: > > Bindings for dac7612. > > > > Cc: devicet...@vger.kernel.org > > Signed-off-by: Ricardo Ribalda Delgado > > --- > >

[PATCH] x86/microcode/amd: Don't attempt to load older microcode patch

2019-01-31 Thread Lendacky, Thomas
The load_microcode_amd() function searches for microcode patches and attempts to apply a microcode patch if is a different level than the currently installed level. While the processor won't actually load a level that is less than what is installed, the logic is followed as if the patch should be

Re: [PATCH v2] ALSA: hda/tegra: enable clock during probe

2019-01-31 Thread Thierry Reding
On Thu, Jan 31, 2019 at 01:10:01PM +0100, Rafael J. Wysocki wrote: > On Thu, Jan 31, 2019 at 12:59 PM Takashi Iwai wrote: > > > > On Thu, 31 Jan 2019 12:46:54 +0100, > > Rafael J. Wysocki wrote: > > > > > > On Thu, Jan 31, 2019 at 12:21 PM Takashi Iwai wrote: > > > > > > > > On Thu, 31 Jan 2019

Re: [PATCH] acpi_pm: Reduce PMTMR counter read contention

2019-01-31 Thread Thomas Gleixner
On Thu, 31 Jan 2019, Zhenzhong Duan wrote: > On 2019/1/30 16:06, Thomas Gleixner wrote: > > On Tue, 22 Jan 2019, Zhenzhong Duan wrote: > > > > > On a large system with many CPUs, using PMTMR as the clock source can > > > have a significant impact on the overall system performance because > > >

[PATCHv6 5/6] coresight: etm4x: Add ETM PIDs for SDM845 and MSM8996

2019-01-31 Thread Sai Prakash Ranjan
Instead of overriding the peripheral id(PID) check in AMBA by hardcoding them in DT, add the PIDs to the ETM4x driver. Here we use Unique Component Identifier(UCI) for MSM8996 since the ETM and CPU debug module shares the same PIDs. SDM845 does not support CPU debug module. Signed-off-by: Sai

[PATCHv6 6/6] coresight: debug: Add Unique Component Identifier (UCI) table

2019-01-31 Thread Sai Prakash Ranjan
Add UCI table for coresight CPU debug module. This patch adds the UCI entries for Kryo CPUs found on MSM8996 which shares the same PIDs as ETMs. Without this, below error is observed on MSM8996: [5.429867] OF: graph: no port node found in /soc/debug@381 [5.429938] coresight-etm4x:

[PATCHv6 4/6] coresight: etm4x: Add support to enable ETMv4.2

2019-01-31 Thread Sai Prakash Ranjan
SDM845 has ETMv4.2 and can use the existing etm4x driver. But the current etm driver checks only for ETMv4.0 and errors out for other etm4x versions. This patch adds this missing support to enable SoC's with ETMv4x to use same driver by checking only the ETM architecture major version number.

[PATCHv6 3/6] arm64: dts: qcom: msm8996: Add Coresight support

2019-01-31 Thread Sai Prakash Ranjan
From: Vivek Gautam Enable coresight support by adding device nodes for the available source, sinks and channel blocks on msm8996. This also adds coresight cpu debug nodes. Signed-off-by: Vivek Gautam Signed-off-by: Sai Prakash Ranjan --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 434

[PATCHv6 2/6] arm64: dts: qcom: msm8998: Add Coresight support

2019-01-31 Thread Sai Prakash Ranjan
Enable coresight support by adding device nodes for the available source, sinks and channel blocks on MSM8998. Signed-off-by: Sai Prakash Ranjan --- For testing, all dependent patches are in below tree: * https://github.com/saiprakash-ranjan/linux/tree/coresight-next This depends on MSM8998

[PATCH] MAINTAINERS: Update cgroup entry

2019-01-31 Thread Andrea Parri
Fix wildcard patterns and add cgroup-v2 documentation. Signed-off-by: Andrea Parri --- MAINTAINERS | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 9f64f8d3740ed..a96054c1d870a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3906,9 +3906,10

Re: [PATCH v2] ALSA: hda/tegra: enable clock during probe

2019-01-31 Thread Sameer Pujar
On 1/31/2019 5:40 PM, Rafael J. Wysocki wrote: On Thu, Jan 31, 2019 at 12:59 PM Takashi Iwai wrote: On Thu, 31 Jan 2019 12:46:54 +0100, Rafael J. Wysocki wrote: On Thu, Jan 31, 2019 at 12:21 PM Takashi Iwai wrote: On Thu, 31 Jan 2019 12:05:30 +0100, Thierry Reding wrote: On Wed, Jan 30,

Re: Yet another RX Vega hang with another kernel panic signature. WARNING: inconsistent lock state

2019-01-31 Thread Yang, Philip
I found same issue while debugging, I will submit patch to fix this shortly. Philip On 2019-01-30 10:35 p.m., Mikhail Gavrilov wrote: > Hi folks. > Yet another kernel panic happens while GPU again is hang: > > [ 1469.906798] > [ 1469.906799] WARNING:

[PATCHv6 1/6] arm64: dts: qcom: sdm845: Add Coresight support

2019-01-31 Thread Sai Prakash Ranjan
Add coresight components found on Qualcomm SDM845 SoC. Signed-off-by: Sai Prakash Ranjan --- For testing, all dependent patches are in below tree: * https://github.com/saiprakash-ranjan/linux/tree/coresight-next - Depends on AOSS QMP side channel patches by Bjorn Andersson [1] - [4]. - AMBA

[PATCHv6 0/6] Add coresight support for SDM845, MSM8998 and MSM8996

2019-01-31 Thread Sai Prakash Ranjan
This patch series adds support for coresight on SDM845, MSM8998, and MSM8996. * Patch 1 adds device tree nodes for SDM845 coresight components. * Patch 2 adds device tree nodes for MSM8998 coresight components. * Patch 3 adds device tree nodes for MSM8996 coresight components. * Patch 4

Re: [PATCH] include/linux/module.h: mark init/cleanup_module aliases as __cold

2019-01-31 Thread Jessica Yu
+++ Miguel Ojeda [23/01/19 18:37 +0100]: The upcoming GCC 9 release adds the -Wmissing-attributes warnings (enabled by -Wall), which trigger for all the init/cleanup_module aliases in the kernel (defined by the module_init/exit macros), ending up being very noisy. These aliases point to the

Re: linux-next: manual merge of the vhost tree with the pci tree

2019-01-31 Thread Bjorn Helgaas
On Wed, Jan 30, 2019 at 8:40 PM Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the vhost tree got a conflict in: > > drivers/pci/setup-bus.c > > between commit: > > 51c48b310183 ("PCI: Probe bridge window attributes once at > enumeration-time") > > from the pci tree and

Re: [PATCH 0/8] drm/meson: Add support for HDMI2.0 4k60

2019-01-31 Thread Andrzej Hajda
On 31.01.2019 14:25, Neil Armstrong wrote: > Hi Andrzej, Laurent, > > On 15/01/2019 13:33, Neil Armstrong wrote: >> This patchset aims to add support for the following HDMI2.0 4k60 modes: >> - 594Mhz TMDS frequency needing TMDS Scramling and 1/40 rate for RGB/YUV4:4:4 >> - 297MHz TMDS frequency

Re: [PATCH 09/22] mm, compaction: Use free lists to quickly locate a migration source

2019-01-31 Thread Vlastimil Babka
On 1/31/19 2:55 PM, Vlastimil Babka wrote: > On 1/18/19 6:51 PM, Mel Gorman wrote: > ... > >> +for (order = cc->order - 1; >> + order >= PAGE_ALLOC_COSTLY_ORDER && pfn == cc->migrate_pfn && >> nr_scanned < limit; >> + order--) { >> +struct free_area *area =

Re: [PATCH net-next] xprtrdma: Use struct_size() in kzalloc()

2019-01-31 Thread Chuck Lever
> On Jan 30, 2019, at 7:46 PM, Gustavo A. R. Silva > wrote: > > One of the more common cases of allocation size calculations is finding > the size of a structure that has a zero-sized array at the end, along > with memory for some number of elements for that array. For example: > > struct

[PATCH] mtd: part: fix incorrect format specifier for an unsigned long long

2019-01-31 Thread Colin King
From: Colin Ian King An unsigned long long is being formatted with %lld instead of the unsigned version %llu. Fix this. Clean up cppcheck warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. Fixes: a62c24d75529 ("mtd: part: Add sysfs

Re: [PATCH V7 3/5] i2c: tegra: Add DMA Support

2019-01-31 Thread Dmitry Osipenko
31.01.2019 15:06, Thierry Reding пишет: > On Thu, Jan 31, 2019 at 03:05:48AM +0300, Dmitry Osipenko wrote: >> 30.01.2019 19:01, Sowjanya Komatineni пишет: > [...] >>> diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c > [...] >>> + return -EIO; >>> + } >>> +

Re: [PATCH 00/11] btrfs: add zstd compression level support

2019-01-31 Thread David Sterba
On Wed, Jan 30, 2019 at 12:40:59PM -0500, Dennis Zhou wrote: > Hi David, > > On Tue, Jan 29, 2019 at 06:18:30PM +0100, David Sterba wrote: > > On Mon, Jan 28, 2019 at 04:24:26PM -0500, Dennis Zhou wrote: > > > As mentioned above, a requirement that differs zstd from zlib is that > > > higher

Re: [PATCH 2/3] HYPERV/IOMMU: Add Hyper-V stub IOMMU driver

2019-01-31 Thread Vitaly Kuznetsov
lantianyu1...@gmail.com writes: > From: Lan Tianyu > > On the bare metal, enabling X2APIC mode requires interrupt remapping > function which helps to deliver irq to cpu with 32-bit APIC ID. > Hyper-V doesn't provide interrupt remapping function so far and Hyper-V > MSI protocol already supports

Re: [PATCH 0/4] WIP: rockchip mpp for v4l2 video decoder

2019-01-31 Thread Ezequiel Garcia
Hey Ayaka! On Thu, 2019-01-31 at 11:13 +0800, ayaka wrote: > From: Randy 'ayaka' Li > > Hello > Those patches are based on the previous vendor driver I post before, > but it can apply without the previous one. > I really want to make it work before FOSDEM and I didn't. And upcoming > the

[Xen-devel] xen/mem-reservation API and out-of-tree kernel modules

2019-01-31 Thread Oleksandr Andrushchenko
Hello, I am working on porting an out-of-tree kernel driver to the kernel 5.0 and that driver uses functionality provided by drivers/xen/mem-reservation.c module.  Since commit [1] it is not possible to build a kernel module which uses mem-reservation API as xen_scrub_pages variable, which is

Re: Was Introducing.. Now: PFY O-S (Pay Fair Operating System).

2019-01-31 Thread Ywe Cærlyn
Pop-culture updates for this OS. It seems many three letter gods will more easily approve of a three-letter concept, so popculture updates for this OS initiative will be an update of name to PFY O-S "Pay Fair Operating System". And we ourselves use a zën-concept of the deity, since

Re: [PATCH 1/4] arm64: dump: no need to check return value of debugfs_create functions

2019-01-31 Thread Will Deacon
On Wed, Jan 30, 2019 at 08:33:48PM +0100, Greg Kroah-Hartman wrote: > On Wed, Jan 30, 2019 at 06:21:02PM +, Will Deacon wrote: > > Hi Greg, > > > > On Tue, Jan 22, 2019 at 03:41:11PM +0100, Greg Kroah-Hartman wrote: > > > When calling debugfs functions, there is no need to ever check the > >

Re: [PATCH 09/22] mm, compaction: Use free lists to quickly locate a migration source

2019-01-31 Thread Vlastimil Babka
On 1/18/19 6:51 PM, Mel Gorman wrote: ... > + for (order = cc->order - 1; > + order >= PAGE_ALLOC_COSTLY_ORDER && pfn == cc->migrate_pfn && > nr_scanned < limit; > + order--) { > + struct free_area *area = >zone->free_area[order]; > + struct

[PATCH RFC 1/1] iommu: set the default iommu-dma mode as non-strict

2019-01-31 Thread Zhen Lei
Currently, many peripherals are faster than before. For example, the top speed of the older netcard is 10Gb/s, and now it's more than 25Gb/s. But when iommu page-table mapping enabled, it's hard to reach the top speed in strict mode, because of frequently map and unmap operations. In order to keep

Re: linux-next: powerpc le qemu boot failure after merge of the akpm tree

2019-01-31 Thread Andrey Konovalov
On Thu, Jan 31, 2019 at 8:40 AM Mike Rapoport wrote: > > (added Andrey Konovalov) > > On Thu, Jan 31, 2019 at 07:15:26AM +0100, Christophe Leroy wrote: > > > > Le 31/01/2019 à 07:06, Stephen Rothwell a écrit : > > >Hi all, > > > > > >On Thu, 31 Jan 2019 16:38:54 +1100 Stephen Rothwell > > >

Re: [PATCH] net: check negative value for signed refcnt

2019-01-31 Thread Kirill Tkhai
Hi, Alexandre, On 31.01.2019 16:20, alexandre.besn...@softathome.com wrote: > From: Alexandre Besnard > > Device remaining references counter is get as a signed integer. > > When unregistering network devices, the loop waiting for this counter > to decrement tests the 0 strict equality. Thus

Re: [RFC PATCH] leds: multicolor: Add sysfs interface definition

2019-01-31 Thread Dan Murphy
Jacek On 1/30/19 4:14 PM, Jacek Anaszewski wrote: > Dan, > > On 1/30/19 10:07 PM, Dan Murphy wrote: >> Jacek >> >> On 1/30/19 2:20 PM, Jacek Anaszewski wrote: >>> Dan, >>> >>> On 1/30/19 8:59 PM, Dan Murphy wrote: Jacek On 1/30/19 1:37 PM, Jacek Anaszewski wrote: > Hi Dan,

Re: [PATCH v3 1/2] iio:dac:ti-dac7612: Add driver for Texas Instruments DAC7612

2019-01-31 Thread Jonathan Cameron
On Mon, 28 Jan 2019 10:49:30 +0100 Ricardo Ribalda Delgado wrote: > It is a driver for Texas Instruments Dual, 12-Bit Serial Input > Digital-to-Analog Converter. > > Datasheet of this chip: > http://www.ti.com/lit/ds/sbas106/sbas106.pdf > > Signed-off-by: Ricardo Ribalda Delgado Hi Ricardo,

Re: linux-next: build warning after merge of the wireless-drivers-next tree

2019-01-31 Thread Kalle Valo
Luca Coelho writes: > On Thu, 2019-01-31 at 10:46 +1100, Stephen Rothwell wrote: >> Hi all, >> >> After merging the wireless-drivers-next tree, today's linux-next >> build >> (x86_64 allmodconfig) produced this warning: >> >> drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c:195:13: warning: >>

<    3   4   5   6   7   8   9   10   11   12   >