Re: [PATCH v3] regmap: regmap-irq/gpio-max77620: add level-irq support

2018-12-26 Thread Matti Vaittinen
Hello All, On Thu, Dec 27, 2018 at 09:35:31AM +0200, Matti Vaittinen wrote: > On Wed, Dec 26, 2018 at 12:39:17PM +0100, Geert Uytterhoeven wrote: > > Hi Matti, > > > > On Tue, Dec 18, 2018 at 1:00 PM Matti Vaittinen > > wrote: > > > Add level active IRQ support to regmap-irq irqchip. Change

Re: [PATCH V4 1/3] mmc: sdhci: add support for using external DMA devices

2018-12-26 Thread Adrian Hunter
On 11/12/18 11:12 AM, Chunyan Zhang wrote: > Some standard SD host controllers can support both external dma > controllers as well as ADMA/SDMA in which the SD host controller > acts as DMA master. TI's omap controller is the case as an example. > > Currently the generic SDHCI code supports

Re: [PATCH v3] regmap: regmap-irq/gpio-max77620: add level-irq support

2018-12-26 Thread Matti Vaittinen
Hello Geert, Sorry for waiting - I just opened my computer after the holidays. On Wed, Dec 26, 2018 at 12:39:17PM +0100, Geert Uytterhoeven wrote: > Hi Matti, > > On Tue, Dec 18, 2018 at 1:00 PM Matti Vaittinen > wrote: > > Add level active IRQ support to regmap-irq irqchip. Change breaks > >

[PATCH 0/4] Add MediaTek MUSB Controller Driver

2018-12-26 Thread min.guo
From: Min Guo These patches introduce the MediaTek MUSB controller driver. The driver can be configured as Dual-Role Device (DRD), Peripheral Only and Host Only modes. This has beed tested on MT2701 with a variety of devices in host mode and with the f_mass gadget driver in peripheral mode,

[PATCH 4/4] usb: musb: Add support for MediaTek musb controller

2018-12-26 Thread min.guo
From: Min Guo This adds support for MediaTek musb controller in host, peripheral and otg mode Signed-off-by: Min Guo Signed-off-by: Yonglong Wu --- drivers/usb/musb/Kconfig | 8 +- drivers/usb/musb/Makefile| 1 + drivers/usb/musb/mediatek.c | 562

[PATCH 3/4] usb: musb: Move musbhsdma macro definition to musb_dma.h

2018-12-26 Thread min.guo
From: Min Guo Because the MediaTek musb controller dose not have a separate DMA interrupt, these macros are required to access the dma registers Signed-off-by: Min Guo --- drivers/usb/musb/musb_dma.h | 6 ++ drivers/usb/musb/musbhsdma.c | 7 +-- 2 files changed, 7 insertions(+), 6

[PATCH 2/4] arm: dts: mt2701: Add usb2 device nodes

2018-12-26 Thread min.guo
From: Min Guo Add musb nodes and usb2 phy nodes for MT2701 Signed-off-by: Min Guo --- arch/arm/boot/dts/mt2701-evb.dts | 21 + arch/arm/boot/dts/mt2701.dtsi| 34 ++ 2 files changed, 55 insertions(+) diff --git

[PATCH 1/4] dt-bindings: usb: musb: Add support for MediaTek musb controller

2018-12-26 Thread min.guo
From: Min Guo This adds support for MediaTek musb controller in host, peripheral and otg mode Signed-off-by: Min Guo --- .../devicetree/bindings/usb/mediatek,musb.txt | 49 ++ 1 file changed, 49 insertions(+) create mode 100644

[PATCH] um: writev needs

2018-12-26 Thread Christoph Hellwig
vector_user.c doesn't compile without this for me. Signed-off-by: Christoph Hellwig --- arch/um/drivers/vector_user.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/um/drivers/vector_user.c b/arch/um/drivers/vector_user.c index 3d8cdbdb4e66..41eefbcdc86f 100644 ---

[PATCH v6 3/6] Bluetooth: hci_qca: Fix frame reassembly errors for wcn3990

2018-12-26 Thread Balakrishna Godavarthi
During initalization of wcn3990, we observed UART is reading some stray bytes on the Rx line. This is logging Frame reassembly errors on the serial console. This could be because of tristate of Tx line of wcn3990 during boot up. [ 176.929612] Bluetooth: hci_qca.c:qca_recv() hci0: Frame

[PATCH v6 2/6] Bluetooth: hci_qca: Deassert RTS while baudrate change command

2018-12-26 Thread Balakrishna Godavarthi
This patch will help to stop frame reassembly errors while changing the baudrate. This is because host send a change baudrate request command to the chip with 115200 bps, Whereas chip will change their UART clocks to the enable for new baudrate and sends the response for the change request command

[PATCH v6 1/6] Bluetooth: hci_qca: use wait_until_sent() for power pulses

2018-12-26 Thread Balakrishna Godavarthi
wcn3990 requires a power pulse to turn ON/OFF along with regulators. Sometimes we are observing the power pulses are sent out with some time delay, due to queuing these commands. This is causing synchronization issues with chip, which intern delay the chip setup or may end up with communication

[PATCH v6 4/6] Bluetooth: hci_qca: Disable IBS state machine and flush Tx buffer

2018-12-26 Thread Balakrishna Godavarthi
During hci down we observed IBS sleep commands are queued in the Tx buffer and hci_uart_write_work is sending data to the chip which is not required as the chip is powered off. This patch will disable IBS and flush the Tx buffer before we turn off the chip. Signed-off-by: Balakrishna Godavarthi

[PATCH v6 0/6] Bug fixes for Qualcomm BT chip wcn3990

2018-12-26 Thread Balakrishna Godavarthi
The below issues are found in the recent testing. 1. Observed device is not going into off state or not responding. As wcn3990 require a power pulses to turn on the irrespctive of igniting regulators, it was observed that power on or power off pulses are not in sync with respective to

[PATCH v6 6/6] Bluetooth: btqca: inject command complete event during fw download

2018-12-26 Thread Balakrishna Godavarthi
Latest qualcomm chips are not sending an command complete event for every firmware packet sent to chip. They only respond with a vendor specific event for the last firmware packet. This optimization will decrease the BT ON time. Due to this we are seeing a timeout error message logs on the console

[PATCH v6 5/6] Bluetooth: hci_qca: Update baudrate change wait time for wcn3990

2018-12-26 Thread Balakrishna Godavarthi
This patch will update the baudrate change request wait time from 300 ms to 100 ms. When host sends the change baudrate request to the controller, controller sets its clock and wait until the clocks settle down. Here the Wait time is required for both host and controller to be on sync.

Re: [PATCH v3 7/9] drm/komeda: Attach komeda_dev to DRM-KMS

2018-12-26 Thread james qian wang (Arm Technology China)
On Mon, Dec 24, 2018 at 08:32:14PM +0800, Liviu Dudau wrote: > On Fri, Dec 21, 2018 at 10:00:33AM +, james qian wang (Arm Technology > China) wrote: > > Add komeda_kms abstracton to attach komeda_dev to DRM-KMS > > CRTC: according to the komeda_pipeline > > PLANE: according to

Re: Fix 80d20d35af1e ("nohz: Fix local_timer_softirq_pending()") may have revealed another problem

2018-12-26 Thread Frederic Weisbecker
On Mon, Oct 15, 2018 at 10:58:54PM +0200, Heiner Kallweit wrote: > On 28.09.2018 15:18, Frederic Weisbecker wrote: > > On Thu, Sep 27, 2018 at 06:05:46PM +0200, Thomas Gleixner wrote: > >> On Tue, 28 Aug 2018, Frederic Weisbecker wrote: > >>> On Fri, Aug 24, 2018 at 07:06:32PM +0200, Heiner

Re: [PATCH v3 1/9] drm/komeda: komeda_dev/pipeline/component definition and initialzation

2018-12-26 Thread james qian wang (Arm Technology China)
On Mon, Dec 24, 2018 at 07:57:41PM +0800, Liviu Dudau wrote: > On Fri, Dec 21, 2018 at 09:58:55AM +, james qian wang (Arm Technology > China) wrote: > > 1. Added a brief definition of komeda_dev/pipeline/component, this change > >didn't add the detailed component features and

Re: [PATCH v3 2/9] dt/bindings: drm/komeda: Add DT bindings for ARM display processor D71

2018-12-26 Thread james qian wang (Arm Technology China)
On Mon, Dec 24, 2018 at 08:00:51PM +0800, Liviu Dudau wrote: > On Fri, Dec 21, 2018 at 09:59:12AM +, james qian wang (Arm Technology > China) wrote: > > Add DT bindings documentation for the ARM display processor D71 and later > > IPs. > > > > Signed-off-by: James (Qian) Wang > > > >

[PATCH v4 06/13] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2018-12-26 Thread Lokesh Vutla
Add the DT binding documentation for Interrupt router driver. Signed-off-by: Lokesh Vutla --- .../interrupt-controller/ti,sci-intr.txt | 85 +++ MAINTAINERS | 1 + 2 files changed, 86 insertions(+) create mode 100644

[RFC PATCH v4 09/13] genirq/msi: Add support for .msi_unprepare callback

2018-12-26 Thread Lokesh Vutla
Add an optional callback .msi_unprepare to struct msi_domain_ops. This is used to clear any effect that is done by .msi_prepare callback. Signed-off-by: Lokesh Vutla --- include/linux/msi.h | 3 +++ kernel/irq/msi.c| 10 ++ 2 files changed, 13 insertions(+) diff --git

[RFC PATCH v4 10/13] soc: ti: Add MSI domain support for K3 Interrupt Aggregator

2018-12-26 Thread Lokesh Vutla
With the system coprocessor managing the range allocation of the inputs to Interrupt Aggregator, it is difficult to represent the device IRQs from DT. The suggestion is to use MSI in such cases where devices wants to allocate and group interrupts dynamically. Create a MSI domain bus layer that

[RFC PATCH v4 12/13] irqchip: ti-sci-inta: Add support for Interrupt Aggregator driver

2018-12-26 Thread Lokesh Vutla
Texas Instruments' K3 generation SoCs has an IP Interrupt Aggregator which is an interrupt controller that does the following: - Converts events to interrupts that can be understood by an interrupt router. - Allows for multiplexing of events to interrupts. Configuration of the interrupt

[PATCH v4 07/13] irqchip: ti-sci-intr: Add support for Interrupt Router driver

2018-12-26 Thread Lokesh Vutla
Texas Instruments' K3 generation SoCs has an IP Interrupt Router that does allows for redirection of input interrupts to host interrupt controller. Interrupt Router inputs are either from a peripheral or from an Interrupt Aggregator which is another interrupt controller. Configuration of the

[RFC PATCH v4 11/13] dt-bindings: irqchip: Introduce TISCI Interrupt Aggregator bindings

2018-12-26 Thread Lokesh Vutla
Add the DT binding documentation for Interrupt Aggregator driver. Signed-off-by: Lokesh Vutla --- .../interrupt-controller/ti,sci-inta.txt | 74 +++ MAINTAINERS | 1 + 2 files changed, 75 insertions(+) create mode 100644

[RFC PATCH v4 13/13] soc: ti: am6: Enable interrupt controller drivers

2018-12-26 Thread Lokesh Vutla
Select all the TISCI dependent interrupt controller drivers for AM6 SoC. Suggested-by: Marc Zyngier Signed-off-by: Lokesh Vutla --- drivers/soc/ti/Kconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/soc/ti/Kconfig b/drivers/soc/ti/Kconfig index 7640490c2a6a..145b701a3d96

[RFC PATCH v4 08/13] genirq/msi: Add support for allocating single MSI for a device

2018-12-26 Thread Lokesh Vutla
Previously all msi for a device are allocated in one go by calling msi_domain_alloc_irq() from a bus layer. This might not be the case when a device is trying to allocate interrupts dynamically based on a request to it. So introduce msi_domain_alloc/free_irq() apis to allocate a single msi.

[PATCH v4 04/13] firmware: ti_sci: Add RM mapping table for am654

2018-12-26 Thread Lokesh Vutla
From: Peter Ujfalusi Add the resource mapping table for AM654 SoC as defined in http://downloads.ti.com/tisci/esd/latest/5_soc_doc/am6x/resasg_types.html Introduce a new compatible for AM654 "ti,am654-sci" for using this resource map table. Reviewed-by: Rob Herring Signed-off-by: Peter

[PATCH v4 05/13] firmware: ti_sci: Add helper apis to manage resources

2018-12-26 Thread Lokesh Vutla
Each resource with in the device can be uniquely identified by a type and subtype as defined by TISCI. Since this is generic across the devices, resource allocation also can be made generic instead of each client driver handling the resource. So add helper apis to manage the resource.

[PATCH v4 02/13] firmware: ti_sci: Add support for RM core ops

2018-12-26 Thread Lokesh Vutla
TISCI provides support for getting the resources(IRQ, RING etc..) assigned to a specific device. These resources can be handled by the client and in turn sends TISCI cmd to configure the resources. It is very important that client should keep track on usage of these resources. Add support for

[PATCH v4 01/13] firmware: ti_sci: Add support to get TISCI handle using of_phandle

2018-12-26 Thread Lokesh Vutla
From: Grygorii Strashko TISCI has been updated to have support for Resource management(likes interrupts etc..). And there can be multiple device instances of a resource type in a SoC. So every driver corresponding to a resource type should get a TISCI handle so that it can make TISCI calls. And

[PATCH v4 03/13] firmware: ti_sci: Add support for IRQ management

2018-12-26 Thread Lokesh Vutla
TISCI abstracts the handling of IRQ routes where interrupt sources are not directly connected to interrupt controller. Add support for the set of TISCI commands for requesting and releasing IRQs. Signed-off-by: Lokesh Vutla --- drivers/firmware/ti_sci.c | 446

[PATCH v4 00/13] Add support for TISCI irqchip drivers

2018-12-26 Thread Lokesh Vutla
TI AM65x SoC based on K3 architecture, introduced support for Events which are message based interrupts with minimal latency. These events are not compatible with regular interrupts and are valid only through an event transport lane. An Interrupt Aggregator(INTA) is introduced to convert these

[PATCH] arm/mm/pmsa-v8 : remove unneeded semicolon

2018-12-26 Thread Peng Hao
Remove unneeded semicolon. Signed-off-by: Peng Hao --- arch/arm/mm/pmsa-v8.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mm/pmsa-v8.c b/arch/arm/mm/pmsa-v8.c index 617a83d..0d7d5fb 100644 --- a/arch/arm/mm/pmsa-v8.c +++ b/arch/arm/mm/pmsa-v8.c @@ -165,7

[PATCH] arm/mach-iop13xx: remove duplicated argument in define

2018-12-26 Thread Peng Hao
Remove duplicated PCI_STATUS_REC_TARGET_ABORT. Signed-off-by: Peng Hao --- arch/arm/mach-iop13xx/pci.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-iop13xx/pci.h b/arch/arm/mach-iop13xx/pci.h index 736168d..c6a0678 100644 --- a/arch/arm/mach-iop13xx/pci.h +++

Re: [PATCH v1 3/8] kvm:vmx Enable loading CET state bit while guest CR4.CET is being set.

2018-12-26 Thread Yang,Weijiang
On Wed, Dec 26, 2018 at 04:52:38PM +0800, Liran Alon wrote: Thanks Liran for pointing out the issues! I'll fix them in next version. > > > > On 26 Dec 2018, at 10:15, Yang Weijiang wrote: > > > > This bit controls whether guest CET states will be loaded on guest entry. > > > > Signed-off-by:

[PATCH] kvm/eventfd : unnecessory conversion to bool

2018-12-26 Thread Peng Hao
Conversion to bool is not needed in ioeventfd_in_range. Signed-off-by: Peng Hao --- virt/kvm/eventfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c index b20b751..d4cdc9c 100644 --- a/virt/kvm/eventfd.c +++ b/virt/kvm/eventfd.c @@

Re: [PATCH 04/10] pseries: ibmebus.c: convert to use BUS_ATTR_WO

2018-12-26 Thread Michael Ellerman
Greg Kroah-Hartman writes: > We are trying to get rid of BUS_ATTR() and the usage of that in > ibmebus.c can be trivially converted to use BUS_ATTR_WO(), so use that > instead. > > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Michael Ellerman > Cc: Tyrel Datwyler > Signed-off-by:

Re: [PATCH v3 3/6] irqchip: sifive-plic: More flexible plic_irq_toggle()

2018-12-26 Thread Anup Patel
On Wed, Dec 19, 2018 at 9:58 PM Christoph Hellwig wrote: > > On Tue, Dec 18, 2018 at 02:20:10PM +0530, Anup Patel wrote: > > Actually these functions should not be inline because plic_toggle() uses > > raw_spin_lock() and plic_irq_toggle() uses for-loop. > > So? It still inlines the all of two

Re: [for-next][PATCH 09/24] seq_buf: Make seq_buf_puts() null-terminate the buffer

2018-12-26 Thread Michael Ellerman
Steven Rostedt writes: > On Fri, 21 Dec 2018 13:00:21 -0500 > Steven Rostedt wrote: > > >> > Can result in: >> > >> > Message is fooªªªªªsecret >> >> Sending this via quilt, and that we have non UTF8 characters causes >> LKML to blow up. >> >> There's a couple more patches with this

Re: [RFC][PATCH v2 01/21] e820: cheat PMEM as DRAM

2018-12-26 Thread Dan Williams
On Wed, Dec 26, 2018 at 8:11 PM Fengguang Wu wrote: > > On Wed, Dec 26, 2018 at 07:41:41PM -0800, Matthew Wilcox wrote: > >On Wed, Dec 26, 2018 at 09:14:47PM +0800, Fengguang Wu wrote: > >> From: Fan Du > >> > >> This is a hack to enumerate PMEM as NUMA nodes. > >> It's necessary for current

[PATCH] x86/kexec: fix a kexec_file_load failure

2018-12-26 Thread Dave Young
The code cleanup mentioned in Fixes tag changed the behavior of kexec_locate_mem_hole. The kexec_locate_mem_hole will try to allocate free memory only when kbuf.mem is initialized as zero. But in x86 kexec_file_load implementation there are a few places the kbuf.mem is reused like below: /*

Re: [PATCH 14/18] drm/mediatek: add connect function for ovl

2018-12-26 Thread CK Hu
Hi, Yongqiang: On Mon, 2018-12-24 at 16:08 +0800, Yongqiang Niu wrote: > This patch add connect function for ovl Could you describe more about how ovl-2l works? I guess that ovl-2l is a ovl hardware which has 3 layer, the bottom two layer is from DRAM and the top layer is from another hardware

Re: PROPOSAL: Extend inline asm syntax with size spec

2018-12-26 Thread Masahiro Yamada
Hi Peter, On Wed, Oct 31, 2018 at 9:58 PM Peter Zijlstra wrote: > > On Sat, Oct 13, 2018 at 09:33:35PM +0200, Borislav Petkov wrote: > > Ok, > > > > with Segher's help I've been playing with his patch ontop of bleeding > > edge gcc 9 and here are my observations. Please double-check me for > >

Re: [PATCH 13/18] drm/mediatek: add ddp write register common api

2018-12-26 Thread CK Hu
Hi, Yongqiang: On Mon, 2018-12-24 at 16:08 +0800, Yongqiang Niu wrote: > This patch add ddp write register common api > I could not see anywhere you use these function. If the function is useless, drop this patch. Regards, CK > Signed-off-by: Yongqiang Niu > --- >

Re: [GIT PULL] scheduler changes for v4.21

2018-12-26 Thread Olof Johansson
Hi, On Mon, Dec 24, 2018 at 2:45 PM Ingo Molnar wrote: > > Linus, > > Please pull the latest sched-core-for-linus git tree from: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > sched-core-for-linus > ># HEAD: 732cd75b8c920d3727e69957b14faa7c2d7c3b75 sched/fair: Select an

Re: [RFC][PATCH v2 01/21] e820: cheat PMEM as DRAM

2018-12-26 Thread Fengguang Wu
On Wed, Dec 26, 2018 at 07:41:41PM -0800, Matthew Wilcox wrote: On Wed, Dec 26, 2018 at 09:14:47PM +0800, Fengguang Wu wrote: From: Fan Du This is a hack to enumerate PMEM as NUMA nodes. It's necessary for current BIOS that don't yet fill ACPI HMAT table. WARNING: take care to backup. It is

[PATCH] f2fs: sanity check of xattr entry size

2018-12-26 Thread Jaegeuk Kim
There is a security report where f2fs_getxattr() has a hole to expose wrong memory region when the image is malformed like this. f2fs_getxattr: entry->e_name_len: 4, size: 12288, buffer_size: 16384, len: 4 Cc: Signed-off-by: Jaegeuk Kim --- fs/f2fs/xattr.c | 18 +- 1 file

Re: [PATCH v1] phy: qcom-ufs: Use iopoll.h readl_poll_timeout macro

2018-12-26 Thread Bjorn Andersson
On Fri 21 Dec 02:13 PST 2018, Marc Gonzalez wrote: > The private copy of readl_poll_timeout is no longer needed. > Use the implementation in iopoll.h instead. > > Signed-off-by: Marc Gonzalez Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > drivers/phy/qualcomm/phy-qcom-ufs-i.h | 19

Re: [PATCH 3/3] RISC-V: Fix non-smp kernel boot on SMP systems

2018-12-26 Thread Anup Patel
On Thu, Dec 27, 2018 at 4:39 AM Atish Patra wrote: > > In non-smp configuration, hartid can be higher that NR_CPUS. > riscv_of_processor_hartid should not be compared to hartid to > NR_CPUS in that case. Moreover, this function checks all the > DT properties of a hart node. NR_CPUS comparison

Re: [PATCH] mm: compaction.c: Propagate return value upstream

2018-12-26 Thread Matthew Wilcox
On Wed, Dec 26, 2018 at 01:42:56PM -0600, Aditya Pakki wrote: > In sysctl_extfrag_handler(), proc_dointvec_minmax() can return an > error. The fix propagates the error upstream in case of failure. Why not just ... Mel, Randy? You seem to have been the prime instigators on this. diff --git

Re: [PATCH] usb: dvb: check status of mxl111sf_read_reg

2018-12-26 Thread Michael Ira Krufky
Kangjie, On Wed, Dec 26, 2018 at 12:59 AM Kangjie Lu wrote: > > When mxl111sf_read_reg fails, we shouldn't use "mode". The fix checks > its return value using mxl_fail > > Signed-off-by: Kangjie Lu > --- > drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c | 3 ++- > 1 file changed, 2 insertions(+),

Re: [RFC][PATCH v2 01/21] e820: cheat PMEM as DRAM

2018-12-26 Thread Matthew Wilcox
On Wed, Dec 26, 2018 at 09:14:47PM +0800, Fengguang Wu wrote: > From: Fan Du > > This is a hack to enumerate PMEM as NUMA nodes. > It's necessary for current BIOS that don't yet fill ACPI HMAT table. > > WARNING: take care to backup. It is mutual exclusive with libnvdimm > subsystem and can

[PATCH] nvmem: bcm-ocotp: Add ACPI support to BCM OCOTP

2018-12-26 Thread Srinath Mannam
Add ACPI support to bcm ocotp driver This patch is based on Linux-4.20-rc7. Signed-off-by: Srinath Mannam --- drivers/nvmem/bcm-ocotp.c | 37 - 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/drivers/nvmem/bcm-ocotp.c

Re: [PATCH 2/3] RISC-V: Move cpuid to hartid mapping to SMP.

2018-12-26 Thread Anup Patel
On Thu, Dec 27, 2018 at 4:39 AM Atish Patra wrote: > > Currently, logical CPU id to physical hartid mapping is > defined for both smp and non-smp configurations. This > is not required as we need this only for smp configuration. > The mapping function can define directly boot_cpu_hartid > for

Re: [PATCH 1/3] RISC-V: Do not wait indefinitely in __cpu_up

2018-12-26 Thread Anup Patel
On Thu, Dec 27, 2018 at 4:39 AM Atish Patra wrote: > > In SMP path, __cpu_up waits for other CPU to come online > indefinitely. This is wrong as other CPU might be disabled > in machine mode and possible CPU is set to the cpus present > in DT. > > Introduce a completion variable and waits only

Re: [PATCH][next] KVM: x86: Fix bit shifting in update_intel_pt_cfg

2018-12-26 Thread Wei Yang
On Wed, Dec 26, 2018 at 02:40:59PM -0600, Gustavo A. R. Silva wrote: >ctl_bitmask in pt_desc is of type u64. When an integer like 0xf is >being left shifted more than 32 bits, the behavior is undefined. > >Fix this by adding suffix ULL to integer 0xf. > >Addresses-Coverity-ID: 1476095 ("Bad bit

Re: [GIT PULL] sound updates for 4.21

2018-12-26 Thread Linus Torvalds
On Thu, Dec 20, 2018 at 7:38 AM Takashi Iwai wrote: > > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git > tags/sound-4.21-rc1 Hmm. It turns out that commit c337104b1a16 ("ALSA: HD-Audio: SKL+: abort probe if DSP is present and Skylake driver selected") causes my laptop (XPS13

Re: [PATCH v5 1/5] Bluetooth: hci_qca: use wait_until_sent() for power pulses

2018-12-26 Thread Balakrishna Godavarthi
Hi Matthias, On 2018-12-27 03:51, Matthias Kaehlcke wrote: On Wed, Dec 26, 2018 at 12:01:51PM +0530, Balakrishna Godavarthi wrote: Hi Matthias, On 2018-12-22 07:29, Matthias Kaehlcke wrote: > On Thu, Dec 20, 2018 at 08:16:35PM +0530, Balakrishna Godavarthi wrote: > > wcn3990 requires a power

Re: [PATCH v5 2/5] Bluetooth: hci_qca: Deassert RTS while baudrate change command

2018-12-26 Thread Balakrishna Godavarthi
Hi Matthias, On 2018-12-27 01:55, Matthias Kaehlcke wrote: Hi Balakrishna, On Wed, Dec 26, 2018 at 11:15:30AM +0530, Balakrishna Godavarthi wrote: Hi Matthias, On 2018-12-22 06:01, Matthias Kaehlcke wrote: > On Thu, Dec 20, 2018 at 08:16:36PM +0530, Balakrishna Godavarthi wrote: > > This

Re: [PATCHv2] x86/kdump: bugfix, make the behavior of crashkernel=X consistent with kaslr

2018-12-26 Thread Pingfan Liu
On Wed, Dec 26, 2018 at 9:47 AM Dave Young wrote: > > On 12/14/18 at 12:07pm, Pingfan Liu wrote: > > Customer reported a bug on a high end server with many pcie devices, where > > kernel bootup with crashkernel=384M, and kaslr is enabled. Even > > though we still see much memory under 896 MB, the

[PATCH] sched: fix infinity loop in update_blocked_averages

2018-12-26 Thread Xie XiuQi
Zhepeng Xie report a bug, there is a infinity loop in update_blocked_averages(). PID: 14233 TASK: 800b2de08fc0 CPU: 1 COMMAND: "docker" #0 [2213b9d0] update_blocked_averages at 0811e4a8 #1 [2213ba60] pick_next_task_fair at 0812a3b4 #2 [2213baf0]

Re: [PATCHv2] x86/kdump: bugfix, make the behavior of crashkernel=X consistent with kaslr

2018-12-26 Thread Pingfan Liu
On Wed, Dec 26, 2018 at 9:58 AM Dave Young wrote: > > On 12/14/18 at 12:07pm, Pingfan Liu wrote: > > Customer reported a bug on a high end server with many pcie devices, where > > kernel bootup with crashkernel=384M, and kaslr is enabled. Even > > though we still see much memory under 896 MB, the

Re: [GIT PULL] x86/cleanups for v4.21

2018-12-26 Thread pr-tracker-bot
The pull request you sent on Tue, 25 Dec 2018 00:00:33 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > x86-cleanups-for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/312a466155108329c458049dc76a21ad56106960 Thank you! -- Deet-doot-dot,

Re: [GIT PULL] x86/boot changes for v4.21

2018-12-26 Thread pr-tracker-bot
The pull request you sent on Mon, 24 Dec 2018 23:55:00 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-boot-for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/9a126e788af8e0754d5d19cd98b3a2bc1711ff46 Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] x86/cpu changes for v4.21

2018-12-26 Thread pr-tracker-bot
The pull request you sent on Tue, 25 Dec 2018 00:03:57 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-cpu-for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/db2ab474c4a434872e1794c2af8b2e561caa756e Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] x86/platform change for v4.21

2018-12-26 Thread pr-tracker-bot
The pull request you sent on Tue, 25 Dec 2018 00:12:47 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > x86-platform-for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/fc2fd5f0f1aa85925be2322275ee2dc5ac3acdf4 Thank you! -- Deet-doot-dot,

Re: [GIT PULL] x86/build changes for v4.21

2018-12-26 Thread pr-tracker-bot
The pull request you sent on Mon, 24 Dec 2018 23:58:31 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-build-for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/6e54df001ac9262e3b78b34b87390fcb54677a0d Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] x86/amd-nb changes for v4.21

2018-12-26 Thread pr-tracker-bot
The pull request you sent on Mon, 24 Dec 2018 23:50:04 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-amd-nb-for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/8465625ab4700e3e1db506ed8a541f7796356d63 Thank you! -- Deet-doot-dot, I am

Re: [GIT PULL] x86/asm changes for v4.21

2018-12-26 Thread pr-tracker-bot
The pull request you sent on Mon, 24 Dec 2018 23:53:47 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-asm-for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/38fabca18fc4c832ea95e2d14fb1ecde8b7dcc56 Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] x86/mm changes for v4.21

2018-12-26 Thread pr-tracker-bot
The pull request you sent on Tue, 25 Dec 2018 00:11:06 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-mm-for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/e57d9f638af9673f38d9f09de66fa0a28303127d Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] x86/fpu changes for v4.21

2018-12-26 Thread pr-tracker-bot
The pull request you sent on Tue, 25 Dec 2018 00:07:10 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-fpu-for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d6e867a6ae13bc02cd01c535764e5b051d26cf28 Thank you! -- Deet-doot-dot, I am a

Re: [PATCH] zram: idle writeback fixes and cleanup

2018-12-26 Thread Sergey Senozhatsky
On (12/24/18 12:35), Minchan Kim wrote: [..] > @@ -645,10 +680,13 @@ static ssize_t writeback_store(struct device *dev, > bvec.bv_len = PAGE_SIZE; > bvec.bv_offset = 0; > > - if (zram->stop_writeback) { > + spin_lock(>wb_limit_lock); > +

[PATCH] gdrom: fix a memory leak bug

2018-12-26 Thread Wenwen Wang
In probe_gdrom(), the buffer pointed by 'gd.cd_info' is allocated through kzalloc() and is used to hold the information of the gdrom device. To register and unregister the device, the pointer 'gd.cd_info' is passed to the functions register_cdrom() and unregister_cdrom(), respectively. However,

[PATCH v2] net: arcnet: Fix a possible concurrency use-after-free bug in arcnet_reply_tasklet()

2018-12-26 Thread Jia-Ju Bai
In drivers/net/arcnet/arcnet.c, the functions arcnet_reply_tasklet() and arcnet_send_packet() may be concurrently executed. arcnet_reply_tasklet() line 430: dev_kfree_skb(lp->outgoing.skb); arcnet_send_packet() line 682: spin_lock_irqsave(); line 690: lp->outgoing.skb = skb; line 691:

[PATCH 2/2] blk-mq: save default hctx into ctx->hctxs for not-supported type

2018-12-26 Thread Jianchao Wang
Currently, we check whether the hctx type is supported every time in hot path. Actually, this is not necessary, we could save the default hctx into ctx->hctxs if the type is not supported when map swqueues and use it directly with ctx->hctxs[type]. We also needn't check whether the poll is

[PATCH 0/2] blk-mq: small optimization for accessing of queue map

2018-12-26 Thread Jianchao Wang
Hi Jens These two patches are small optimization for accessing the queue mapping in hot path. It saves the queue mapping results into blk_mq_ctx directly, then we needn't do the complicated bounce on queue_hw_ctx[] map[] and mq_map[]. Jianchao Wang(2) blk-mq: save queue mapping result into ctx

[PATCH 1/2] blk-mq: save queue mapping result into ctx directly

2018-12-26 Thread Jianchao Wang
Currelty, the queue mapping result is saved in a two-dimensional array. In hot path, to get a hctx, we need do following, q->queue_hw_ctx[q->tag_set->map[type].mq_map[cpu]] This looks not efficient. Actually, we could save the queue mapping result into ctx directly with different hctx type,

Re: [PATCH 11/18] drm/medaitek: add layer_nr for ovl private data

2018-12-26 Thread CK Hu
Hi, Yongqiang: On Mon, 2018-12-24 at 16:08 +0800, Yongqiang Niu wrote: > This patch add layer_nr for ovl private data > I think you do this because ovl-2l and ovl share the same driver and the ovl layer is different, so this patch is a preparation for ovl-2l and ovl share the same driver.

Re: Crypto Update for 4.21

2018-12-26 Thread Herbert Xu
On Wed, Dec 26, 2018 at 10:49:08AM -0600, Eric Biggers wrote: > On Wed, Dec 26, 2018 at 09:22:57PM +0800, Herbert Xu wrote: > > > > Please pull from > > > > git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git linus > > > > Hi Herbert, that branch is still on an old commit.

Re: [RFC PATCH] media: rcar-vin: Allow independent VIN link enablement

2018-12-26 Thread Niklas Söderlund
Hi Steve, Thanks for your patch. On 2018-12-25 15:27:25 -0800, Steve Longerbeam wrote: > There is a block of code in rvin_group_link_notify() that prevents > enabling a link to a VIN node if any entity in the media graph is > in use. This prevents enabling a VIN link even if there is an in-use >

[PATCH] kvm:arm/arm64: vgic: remove unnecessary semicolon

2018-12-26 Thread Peng Hao
Remove unnecessary semicolon in vgic_put_irq. Signed-off-by: Peng Hao --- virt/kvm/arm/vgic/vgic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt/kvm/arm/vgic/vgic.c b/virt/kvm/arm/vgic/vgic.c index 7cfdfbc..f9ff5c7 100644 --- a/virt/kvm/arm/vgic/vgic.c +++

[PATCH] kvm: arm/arm64 : vgic: remove unneeded semicolon

2018-12-26 Thread Peng Hao
Remove unneeded semicolon in kvm_vgic_hyp_init. Signed-off-by: Peng Hao --- virt/kvm/arm/vgic/vgic-init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt/kvm/arm/vgic/vgic-init.c b/virt/kvm/arm/vgic/vgic-init.c index c0c0b88..3496155 100644 ---

RE: [PATCH v2] usb: chipidea: add a check for the availability of next child

2018-12-26 Thread Peter Chen
> Signed-off-by: Kangjie Lu > --- > drivers/usb/chipidea/ci_hdrc_msm.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c > b/drivers/usb/chipidea/ci_hdrc_msm.c > index 880009987460..b7f7acef72d4 100644 > --- a/drivers/usb/chipidea/ci_hdrc_msm.c >

Re: [PATCH V2] SelfTest: KVM: Drop Asserts for madvise MADV_NOHUGEPAGE failure

2018-12-26 Thread shuah
Hi Paolo, On 12/24/18 7:56 AM, Ahmed Soliman wrote: Kind reminder to merge my patch into next thanks. I am assuming you will be picking this patch up. Please let me know if you want me to take it through kselftest tree. thanks, -- Shuah

[git pull] drm next leftovers for rc1

2018-12-26 Thread Dave Airlie
Hi Linus, Daniel collected a couple of pulls after I want on holidays, back for a couple of days, so may as well send them out. This has exynos and etnaviv work for 4.21. exynos: - plane alpha and blending configurability etnaviv: - mostly cleanups in prep for new features. Dave.

[PATCH v15] i2c: Add drivers for the AMD PCIe MP2 I2C controller

2018-12-26 Thread Elie Morisse
MP2 controllers have two separate busses, so may accommodate up to two I2C adapters. Those adapters are listed in the ACPI namespace with the "AMDI0011" HID, and probed by a platform driver. Communication with the MP2 takes place through MMIO registers, or through DMA for more than 32 bytes

[PATCH AUTOSEL 3.18 05/12] USB: hso: Fix OOB memory access in hso_probe/hso_get_config_data

2018-12-26 Thread Sasha Levin
From: Hui Peng [ Upstream commit 5146f95df782b0ac61abde36567e718692725c89 ] The function hso_probe reads if_num from the USB device (as an u8) and uses it without a length check to index an array, resulting in an OOB memory read in hso_probe or hso_get_config_data. Add a length check for both

[PATCH AUTOSEL 3.18 06/12] bnx2x: Clear fip MAC when fcoe offload support is disabled

2018-12-26 Thread Sasha Levin
From: Sudarsana Reddy Kalluru [ Upstream commit bbf666c1af916ed74795493c564df6fad462cc80 ] On some customer setups it was observed that shmem contains a non-zero fip MAC for 57711 which would lead to enabling of SW FCoE. Add a software workaround to clear the bad fip mac address if no FCoE

[PATCH AUTOSEL 3.18 02/12] checkstack.pl: fix for aarch64

2018-12-26 Thread Sasha Levin
From: Qian Cai [ Upstream commit f1733a1d3cd32a9492f4cf866be37bb46e10163d ] There is actually a space after "sp," like this, 280813c8: a9bb7bfdstp x29, x30, [sp, #-80]! Right now, checkstack.pl isn't able to print anything on aarch64, because it won't be able to

[PATCH AUTOSEL 3.18 08/12] x86/mtrr: Don't copy uninitialized gentry fields back to userspace

2018-12-26 Thread Sasha Levin
From: Colin Ian King [ Upstream commit 32043fa065b51e0b1433e48d118821c71b5cd65d ] Currently the copy_to_user of data in the gentry struct is copying uninitiaized data in field _pad from the stack to userspace. Fix this by explicitly memset'ing gentry to zero, this also will zero any compiler

[PATCH AUTOSEL 3.18 12/12] serial/sunsu: fix refcount leak

2018-12-26 Thread Sasha Levin
From: Yangtao Li [ Upstream commit d430aff8cd0c57502d873909c184e3b5753f8b88 ] The function of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. su_get_type() doesn't do that. The match node are used as an identifier to

[PATCH AUTOSEL 3.18 10/12] vxge: ensure data0 is initialized in when fetching firmware version information

2018-12-26 Thread Sasha Levin
From: Colin Ian King [ Upstream commit f7db2beb4c2c6cc8111f5ab90fc7363ca91107b6 ] Currently variable data0 is not being initialized so a garbage value is being passed to vxge_hw_vpath_fw_api and this value is being written to the rts_access_steer_data0 register. There are other occurrances

[PATCH AUTOSEL 3.18 09/12] xen/netfront: tolerate frags with no data

2018-12-26 Thread Sasha Levin
From: Juergen Gross [ Upstream commit d81c5054a5d1d4999c7cdead7636b6cd4af83d36 ] At least old Xen net backends seem to send frags with no real data sometimes. In case such a fragment happens to occur with the frag limit already reached the frontend will BUG currently even if this situation is

[PATCH AUTOSEL 3.18 07/12] w90p910_ether: remove incorrect __init annotation

2018-12-26 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 51367e423c6501a26e67d91a655d2bc892303462 ] The get_mac_address() function is normally inline, but when it is not, we get a warning that this configuration is broken: WARNING: vmlinux.o(.text+0x4aff00): Section mismatch in reference from the function

[PATCH AUTOSEL 3.18 04/12] Input: omap-keypad - fix idle configuration to not block SoC idle states

2018-12-26 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit e2ca26ec4f01486661b55b03597c13e2b9c18b73 ] With PM enabled, I noticed that pressing a key on the droid4 keyboard will block deeper idle states for the SoC. Let's fix this by using IRQF_ONESHOT and stop constantly toggling the device OMAP4_KBD_IRQENABLE

[PATCH AUTOSEL 3.18 11/12] net: netxen: fix a missing check and an uninitialized use

2018-12-26 Thread Sasha Levin
From: Kangjie Lu [ Upstream commit d134e486e831defd26130770181f01dfc6195f7d ] When netxen_rom_fast_read() fails, "bios" is left uninitialized and may contain random value, thus should not be used. The fix ensures that if netxen_rom_fast_read() fails, we return "-EIO". Signed-off-by: Kangjie

[PATCH AUTOSEL 3.18 01/12] powerpc: Fix COFF zImage booting on old powermacs

2018-12-26 Thread Sasha Levin
From: Paul Mackerras [ Upstream commit 5564597d51c8ff5b88d95c76255e18b13b760879 ] Commit 6975a783d7b4 ("powerpc/boot: Allow building the zImage wrapper as a relocatable ET_DYN", 2011-04-12) changed the procedure descriptor at the start of crt0.S to have a hard-coded start address of 0x50

[PATCH AUTOSEL 3.18 03/12] xfrm: Fix bucket count reported to userspace

2018-12-26 Thread Sasha Levin
From: Benjamin Poirier [ Upstream commit ca92e173ab34a4f7fc4128bd372bd96f1af6f507 ] sadhcnt is reported by `ip -s xfrm state count` as "buckets count", not the hash mask. Fixes: 28d8909bc790 ("[XFRM]: Export SAD info.") Signed-off-by: Benjamin Poirier Signed-off-by: Steffen Klassert

  1   2   3   4   5   6   >