[PATCH] genirq: Make sure the affinity to be set is not empty

2018-12-20 Thread Srinivas Ramana
If the default_affinity is managed/initialized by a system and all the cpus present in irq_default_affinity are hotplugged out we may end up passing a cpumask of 0 to irq_do_set_affinity(). Fix this by falling back to cpu_online_mask in case the calculated affinity becomes zero. Signed-off-by:

[PATCH 0/2] arm64: dts: qcom: sdm845: add support for ADSP PIL

2018-12-20 Thread Rohit kumar
add remoteproc and child device nodes for adsp pil for sdm845. This depends on below upstream patches: 1) lpasscc dt node : https://lore.kernel.org/patchwork/patch/1021267/ 2) pdc sync reset dt node : https://lore.kernel.org/patchwork/patch/1003795/ 3) dt-binding: Remove lpass_aon clock from adsp

[PATCH 1/2] arm64: dts: qcom: sdm845: Add ADSP reserve-memory nodes

2018-12-20 Thread Rohit kumar
Add memory nodes required for remoteproc q6v5_adsp pil. Signed-off-by: Rohit kumar --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 23a253b..c0a012f 100644 ---

[PATCH 2/2] arm64: dts: qcom: sdm845: Add Q6V5 ADSP node

2018-12-20 Thread Rohit kumar
This patch adds Q6V5 ADSP remoteproc node for SDM845 SoCs. Signed-off-by: Rohit kumar --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 96 +++- 1 file changed, 95 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi

[PATCH] x86/intel_rdt: use rdmsr_safe() to workaround AWS host issue

2018-12-20 Thread Vitaly Kuznetsov
It was found that AWS x1 instances (Xen-based) lack xen.git commit 1f1d183d4900 (x86/HVM: don't give the wrong impression of WRMSR succeeding) and because of that the wrmsr_safe() check in cache_alloc_hsw_probe() doesn't help: the consequent rdmsr() blows up with unchecked MSR access error:

Re: [PATCH v2] mm, page_alloc: Fix has_unmovable_pages for HugePages

2018-12-20 Thread Oscar Salvador
On Thu, Dec 20, 2018 at 02:06:06PM +0100, Michal Hocko wrote: > On Thu 20-12-18 13:49:28, Oscar Salvador wrote: > > On Thu, Dec 20, 2018 at 10:12:28AM +0100, Michal Hocko wrote: > > > > <-- > > > > skip_pages = (1 << compound_order(head)) - (page - head); > > > > iter = skip_pages - 1; > > > > --

[BUG] usb: serial: garmin_gps: A possible concurrency use-after-free bug

2018-12-20 Thread Jia-Ju Bai
In drivers/usb/serial/garmin_gps.c, the functions garmin_read_bulk_callback() and garmin_write_bulk_callback() may be concurrently executed. In garmin_write_bulk_callback() on line 969: kfree(urb->transfer_buffer); In garmin_read_bulk_callback() on line 1165: unsigned char *data =

Re: [PATCH v4 1/3] dt-bindings: mtd: stm32_fmc2: add STM32 FMC2 NAND controller documentation

2018-12-20 Thread Boris Brezillon
On Fri, 14 Dec 2018 10:58:06 +0100 Christophe Kerello wrote: > This patch adds the documentation of the device tree bindings for the STM32 > FMC2 NAND controller. > > Signed-off-by: Christophe Kerello Reviewed-by: Boris Brezillon > --- > .../devicetree/bindings/mtd/stm32-fmc2-nand.txt|

Re: [PATCH v2] hpet: Fix missing '=' character in the __setup() code of hpet_mmap_enable

2018-12-20 Thread Buland Singh
On 12/20/18 5:59 PM, Greg KH wrote: On Thu, Dec 20, 2018 at 05:35:24PM +0530, Buland Singh wrote: Commit '3d035f580699 ("drivers/char/hpet.c: allow user controlled mmap for user processes")' introduced a new kernel command line parameter hpet_mmap, that is required to expose the memory map of

Re: [PATCH v4 2/3] mtd: rawnand: stm32_fmc2: add STM32 FMC2 NAND flash controller driver

2018-12-20 Thread Boris Brezillon
On Fri, 14 Dec 2018 10:58:07 +0100 Christophe Kerello wrote: > The driver adds the support for the STMicroelectronics FMC2 NAND > Controller found on STM32MP SOCs. > > This patch is based on FMC2 command sequencer. > The purpose of the command sequencer is to facilitate the programming > and

Re: [PATCH v4 3/3] mtd: rawnand: stm32_fmc2: add polling mode

2018-12-20 Thread Boris Brezillon
On Fri, 14 Dec 2018 10:58:08 +0100 Christophe Kerello wrote: > This patch adds the polling mode, a basic mode that do not need > any DMA channels. This mode is also useful for debug purpose. > > Signed-off-by: Christophe Kerello Reviewed-by: Boris Brezillon

Re: [BUG] usb: serial: garmin_gps: A possible concurrency use-after-free bug

2018-12-20 Thread Johan Hovold
On Thu, Dec 20, 2018 at 09:41:16PM +0800, Jia-Ju Bai wrote: > In drivers/usb/serial/garmin_gps.c, > the functions garmin_read_bulk_callback() and garmin_write_bulk_callback() > may be concurrently executed. > > In garmin_write_bulk_callback() on line 969: > kfree(urb->transfer_buffer); > In

Re: [PATCH] media: si2165: fix a missing check of return value

2018-12-20 Thread Matthias Schwarzott
Am 20.12.18 um 09:12 schrieb Kangjie Lu: > si2165_readreg8() may fail. Looking into si2165_readreg8(), we will find > that "val_tmp" will be an uninitialized value when regmap_read() fails. > "val_tmp" is then assigned to "val". So if si2165_readreg8() fails, > "val" will be a random value.

Re: [BUG] usb: serial: garmin_gps: A possible concurrency use-after-free bug

2018-12-20 Thread Jia-Ju Bai
On 2018/12/20 21:46, Johan Hovold wrote: On Thu, Dec 20, 2018 at 09:41:16PM +0800, Jia-Ju Bai wrote: In drivers/usb/serial/garmin_gps.c, the functions garmin_read_bulk_callback() and garmin_write_bulk_callback() may be concurrently executed. In garmin_write_bulk_callback() on line 969:

Re: [PATCH v1 01/12] dt-bindings: usb: add support for dwc3 controller on HiSilicon SoCs

2018-12-20 Thread Rob Herring
On Thu, Dec 20, 2018 at 12:46 AM Felipe Balbi wrote: > > > Hi, > > Rob Herring writes: > >> +Example: > >> +usb3: hisi_dwc3 { > >> +compatible = "hisilicon,hi3660-dwc3"; > >> +#address-cells = <2>; > >> +#size-cells = <2>; > >> +

Re: [PATCH v2] mm, page_alloc: Fix has_unmovable_pages for HugePages

2018-12-20 Thread Oscar Salvador
On Thu, Dec 20, 2018 at 01:08:57PM +, Wei Yang wrote: > This complicated the calculation. > > The original code is correct. > > iter = round_up(iter + 1, 1<

Re: [PATCH v3 3/3] PCI: imx6: Add support for i.MX8MQ

2018-12-20 Thread Leonard Crestez
On 12/20/2018 3:22 AM, Trent Piepho wrote: > On Wed, 2018-12-19 at 16:47 -0800, Andrey Smirnov wrote: This series initially added explicit offsets but I suggested a single "controller-id" because: * There are multiple bit and byte offsets * Other imx8 SOCs also have 2x

[GIT PULL] STi SoC update for v4.21 round 1

2018-12-20 Thread Patrice CHOTARD
Hi Arnd, Olof, Kevin Please find STi SoC update for v4.21 round 1: The following changes since commit 651022382c7f8da46cb4872a545ee1da6d097d2a: Linux 4.20-rc1 (2018-11-04 15:37:52 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/pchotard/sti.git

Re: [PATCH 2/2] leds: lp5024: Add the LP5024/18 RGB LED driver

2018-12-20 Thread Dan Murphy
Vesa On 12/20/2018 06:40 AM, Vesa Jääskeläinen wrote: > Hi All, > > On 19/12/2018 23.50, Dan Murphy wrote: >> On 12/19/2018 03:36 PM, Jacek Anaszewski wrote: >>> Hi Dan and Pavel, >>> Some time ago we had discussion with Vesa Jääskeläinen about possible >>> approaches to RGB LEDs [0]. What

Re: [RFC][PATCH] printk: increase devkmsg write() ratelimit

2018-12-20 Thread Steven Rostedt
On Thu, 20 Dec 2018 20:35:37 +0900 Sergey Senozhatsky wrote: > On (12/18/18 12:37), Steven Rostedt wrote: > > > > > > Again, complain to system-doofus for printing so much crap to somewhere > > > it should not print to begin with. > > > > I've been saying that it would be good to make the

Re: [PATCH 1/3] mtd: rawnand: Support bad block markers in first, second or last page

2018-12-20 Thread Boris Brezillon
On Mon, 17 Dec 2018 15:49:07 + Schrempf Frieder wrote: > From: Frieder Schrempf > > Currently supported bad block marker positions within the block are: > * in first page only > * in last page only > * in first or second page > > Some ESMT NANDs are known to have been shipped by the

Re: Easy Kernel Patch

2018-12-20 Thread Jonathan Corbet
On Wed, 19 Dec 2018 22:47:18 -0800 Hunter Lannon wrote: > This is my first patch submitted. I hope I can finally say I have a > commit in the Linux source code :) I expect you'll get there, but this patch won't be the one that crosses the bar for you. Here's some suggestions for how to do it

Re: [PATCH 2/2] leds: lp5024: Add the LP5024/18 RGB LED driver

2018-12-20 Thread Dan Murphy
On 12/20/2018 03:06 AM, Pavel Machek wrote: > Hi! > >>> Anyway, if your 36 channels can be set independently, I believe you >>> just want them to export as 36 LEDs. >> >> I am not sure that is what the "customers" would want to have to set 36 >> different nodes or even declare those 36 nodes. >>

Re: [PATCH] clk: mediatek: Mark bus and DRAM related clocks as critical

2018-12-20 Thread kbuild test robot
Hi Jasper, Thank you for the patch! Yet something to improve: [auto build test ERROR on clk/clk-next] [also build test ERROR on v4.20-rc7 next-20181220] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: 4.20-rc6: WARNING: CPU: 30 PID: 197360 at net/core/flow_dissector.c:764 __skb_flow_dissect

2018-12-20 Thread Willem de Bruijn
On Thu, Dec 20, 2018 at 6:15 AM Ido Schimmel wrote: > > +Willem > > On Thu, Dec 20, 2018 at 08:45:40AM +0100, Christian Borntraeger wrote: > > Folks, > > > > I got this warning today. I cant tell when and why this happened, so I do > > not know yet how to reproduce. > > Maybe someone has a quick

Re: [PATCH 1/3] mtd: rawnand: Support bad block markers in first, second or last page

2018-12-20 Thread Boris Brezillon
On Thu, 20 Dec 2018 14:59:54 +0100 Boris Brezillon wrote: > > > > /** > > + * nand_bbm_page_offset - Get the page offsets for bad block markers > > + * @chip: NAND chip object > > + * @index: Index for the page offset > > Hm, the meaning of index is far from obvious. How about passing the

Re: [PATCH v10 16/27] drivers: firmware: psci: Prepare to use OS initiated suspend mode

2018-12-20 Thread Daniel Lezcano
On 29/11/2018 18:46, Ulf Hansson wrote: > To enable the OS initiated mode, the CPU topology needs to be described > using the hierarchical model in DT. When used, the idle state bits for the > CPU are created by ORing the bits for PM domain's idle state. > > Let's prepare the PSCI driver to deal

Re: 4.20-rc6: WARNING: CPU: 30 PID: 197360 at net/core/flow_dissector.c:764 __skb_flow_dissect

2018-12-20 Thread Christian Borntraeger
On 20.12.2018 10:12, Ido Schimmel wrote: > +Willem > > On Thu, Dec 20, 2018 at 08:45:40AM +0100, Christian Borntraeger wrote: >> Folks, >> >> I got this warning today. I cant tell when and why this happened, so I do >> not know yet how to reproduce. >> Maybe someone has a quick idea. >> >>

Re: [PATCH v2] hpet: Fix missing '=' character in the __setup() code of hpet_mmap_enable

2018-12-20 Thread Greg KH
On Thu, Dec 20, 2018 at 07:12:55PM +0530, Buland Singh wrote: > On 12/20/18 5:59 PM, Greg KH wrote: > > On Thu, Dec 20, 2018 at 05:35:24PM +0530, Buland Singh wrote: > > > Commit '3d035f580699 ("drivers/char/hpet.c: allow user controlled mmap for > > > user processes")' introduced a new kernel

Re: 4.20-rc6: WARNING: CPU: 30 PID: 197360 at net/core/flow_dissector.c:764 __skb_flow_dissect

2018-12-20 Thread Ido Schimmel
On Thu, Dec 20, 2018 at 09:04:25AM -0500, Willem de Bruijn wrote: > On Thu, Dec 20, 2018 at 6:15 AM Ido Schimmel wrote: > > > > +Willem > > > > On Thu, Dec 20, 2018 at 08:45:40AM +0100, Christian Borntraeger wrote: > > > Folks, > > > > > > I got this warning today. I cant tell when and why this

[PATCH v4 1/3] PM/runtime: Add a new interface to get accounted time

2018-12-20 Thread Vincent Guittot
Some drivers (like i915/drm) needs to get the accounted suspended time. pm_runtime_suspended_time() will return the suspended accounted time in ns unit. Signed-off-by: Vincent Guittot --- drivers/base/power/runtime.c | 16 include/linux/pm_runtime.h | 2 ++ 2 files changed,

[PATCH v4 0/3] Move pm_runtime accounted time to raw nsec

2018-12-20 Thread Vincent Guittot
Move pm_runtime accounted time to raw nsec. The subject of the patchset has changed as the 1st patch of the previous version has been queued by Rafael. Patch 1 adds a new pm_runtime interface to get accounted suspended time Patch 2 moves drm/i915 driver on the new interface and removes access to

[PATCH v4 2/3] drm/i915: Move on the new pm runtime interface

2018-12-20 Thread Vincent Guittot
Use the new pm runtime interface to get the accounted suspended time: pm_runtime_accounted_time_get() Signed-off-by: Vincent Guittot --- drivers/gpu/drm/i915/i915_pmu.c | 16 ++-- drivers/gpu/drm/i915/i915_pmu.h | 4 ++-- 2 files changed, 8 insertions(+), 12 deletions(-) diff

[PATCH v4 3/3] PM/runtime:Replace jiffies based accounting with ktime based accounting

2018-12-20 Thread Vincent Guittot
From: Thara Gopinath This patch replaces jiffies based accounting for runtime_active_time and runtime_suspended_time with ktime base accounting. This makes the runtime debug counters inline with genpd and other pm subsytems which uses ktime based accounting. Signed-off-by: Thara Gopinath [move

Re: 4.20-rc6: WARNING: CPU: 30 PID: 197360 at net/core/flow_dissector.c:764 __skb_flow_dissect

2018-12-20 Thread Ido Schimmel
On Thu, Dec 20, 2018 at 03:09:22PM +0100, Christian Borntraeger wrote: > On 20.12.2018 10:12, Ido Schimmel wrote: > > +Willem > > > > On Thu, Dec 20, 2018 at 08:45:40AM +0100, Christian Borntraeger wrote: > >> Folks, > >> > >> I got this warning today. I cant tell when and why this happened, so I

Re: [PATCH v10 17/27] drivers: firmware: psci: Prepare to support PM domains

2018-12-20 Thread Daniel Lezcano
On 29/11/2018 18:46, Ulf Hansson wrote: > Following changes are about to implement support for PM domains to PSCI. > Those changes are mainly going to be implemented in a new separate file, > hence a couple of the internal PSCI functions needs to be shared to be > accessible. So, let's do that via

Re: [PATCH v2] mm, page_alloc: Fix has_unmovable_pages for HugePages

2018-12-20 Thread Oscar Salvador
On Thu, Dec 20, 2018 at 02:41:32PM +0100, Oscar Salvador wrote: > On Thu, Dec 20, 2018 at 02:06:06PM +0100, Michal Hocko wrote: > > You did want iter += skip_pages - 1 here right? > > Bleh, yeah. > I am taking vacation today so my brain has left me hours ago, sorry. > Should be: > > diff --git

Re: [PATCH v3 1/3] sched/fair: fix rounding issue for asym packing

2018-12-20 Thread Vincent Guittot
On Thu, 20 Dec 2018 at 12:16, Valentin Schneider wrote: > > On 20/12/2018 07:55, Vincent Guittot wrote: > > When check_asym_packing() is triggered, the imbalance is set to : > > busiest_stat.avg_load * busiest_stat.group_capacity / SCHED_CAPACITY_SCALE > > But busiest_stat.avg_load equals > >

USB drives and with your logo

2018-12-20 Thread Lilly
Hi, I didn’t know if you had received my email from last week? Can you direct me to the person that handles your company marketing and promo items? Do you have any upcoming events, tradeshows or promotional needs? We manufacture ALL custom LOGO and branded products. The most asked about product

Re: [PATCH v5 10/15] KVM: s390: add functions to (un)register GISC with GISA

2018-12-20 Thread Michael Mueller
On 19.12.18 20:17, Michael Mueller wrote: Add the IAM (Interruption Alert Mask) to the architecture specific kvm struct. This mask in the GISA is used to define for which ISC a GIB alert can be issued. The functions kvm_s390_gisc_register() and kvm_s390_gisc_unregister() are used to

Re: ensure dma_alloc_coherent always returns zeroed memory

2018-12-20 Thread Eugeniy Paltsev
Hi Christoph, I test kernel from your 'dma-alloc-always-zero' branch, and as I can see we have DMA peripherals (like USB) broken. There are the errors example I got during USB initializing: -->8 usb 1-1: device descriptor read/64, error

Re: [PATCH] tracing: make function ‘ftrace_exports’ static

2018-12-20 Thread Steven Rostedt
Cleaning out my INBOX, I stumbled on this patch that slipped through the cracks. Applied to my local queue. Thanks, and sorry for the delay. -- Steve On Wed, 16 May 2018 21:30:12 +0200 Mathieu Malaterre wrote: > In commit 478409dd683d ("tracing: Add hook to function tracing for other >

Re: ensure dma_alloc_coherent always returns zeroed memory

2018-12-20 Thread h...@lst.de
On Thu, Dec 20, 2018 at 02:32:52PM +, Eugeniy Paltsev wrote: > Hi Christoph, > > I test kernel from your 'dma-alloc-always-zero' branch, and as > I can see we have DMA peripherals (like USB) broken. I would be really surprised if that is caused by the patch to add the zeroing. Can you check

Re: [PATCH 2/3] sched/fair: trigger asym_packing during idle load balance

2018-12-20 Thread Vincent Guittot
On Thu, 20 Dec 2018 at 12:19, Valentin Schneider wrote: > > On 20/12/2018 07:55, Vincent Guittot wrote: > > newly idle load balance is not always triggered when a cpu becomes idle. > > This prevent the scheduler to get a chance to migrate task for asym packing. > > Enable active migration because

Re: 4.20-rc6: WARNING: CPU: 30 PID: 197360 at net/core/flow_dissector.c:764 __skb_flow_dissect

2018-12-20 Thread Willem de Bruijn
On Thu, Dec 20, 2018 at 9:16 AM Ido Schimmel wrote: > > On Thu, Dec 20, 2018 at 09:04:25AM -0500, Willem de Bruijn wrote: > > On Thu, Dec 20, 2018 at 6:15 AM Ido Schimmel wrote: > > > > > > +Willem > > > > > > On Thu, Dec 20, 2018 at 08:45:40AM +0100, Christian Borntraeger wrote: > > > > Folks,

Re: [PATCH 1/3] mtd: rawnand: Support bad block markers in first, second or last page

2018-12-20 Thread Schrempf Frieder
On 20.12.18 14:59, Boris Brezillon wrote: > On Mon, 17 Dec 2018 15:49:07 + > Schrempf Frieder wrote: > >> From: Frieder Schrempf >> >> Currently supported bad block marker positions within the block are: >> * in first page only >> * in last page only >> * in first or second page >> >> Some

[PATCH] ACPI / scan: Create platform device for BSG2150 ACPI nodes

2018-12-20 Thread Hans de Goede
The Point of View TAB-P1006W-232-3G tablet has an ACPI firmware node with a HID of BSG2150 describing the 2 Bosch sensors used in the device a BMC150 compatible accelerometer and a BMC150 compatible magnetometer. The ACPI firmware node actually contains 3 I2cSerialBusV2 resources, but this seems

[PATCH 0/1] ACPI / scan: Create platform device for BSG2150 ACPI nodes

2018-12-20 Thread Hans de Goede
Hi All, This patch adds support for another ACPI HID which describes multiple i2c-clients in a single node. As such this applies on top of the recent patch from Andy making a similar change for INT3515 nodes: Commit a3dd034a1707 ("ACPI / scan: Create platform device for INT3515 ACPI nodes"),

Re: [PATCH v10 18/27] drivers: firmware: psci: Add support for PM domains using genpd

2018-12-20 Thread Daniel Lezcano
On 29/11/2018 18:46, Ulf Hansson wrote: > When the hierarchical CPU topology layout is used in DT, we need to setup > the corresponding PM domain data structures, as to allow a CPU and a group > of CPUs to be power managed accordingly. Let's enable this by deploying > support through the genpd

Re: [PATCH v5 06/15] KVM: s390: remove prefix kvm_s390_gisa_ from static inline functions

2018-12-20 Thread Michael Mueller
On 20.12.18 13:24, Cornelia Huck wrote: On Wed, 19 Dec 2018 20:17:47 +0100 Michael Mueller wrote: This will shorten the length of code lines. All GISA related static inline functions are local to interrupt.c Signed-off-by: Michael Mueller --- arch/s390/kvm/interrupt.c | 26

Re: ensure dma_alloc_coherent always returns zeroed memory

2018-12-20 Thread Eugeniy Paltsev
On Thu, 2018-12-20 at 15:34 +0100, h...@lst.de wrote: > On Thu, Dec 20, 2018 at 02:32:52PM +, Eugeniy Paltsev wrote: > > Hi Christoph, > > > > I test kernel from your 'dma-alloc-always-zero' branch, and as > > I can see we have DMA peripherals (like USB) broken. > > I would be really

Re: [PATCH v2] mm, page_alloc: Fix has_unmovable_pages for HugePages

2018-12-20 Thread Michal Hocko
On Thu 20-12-18 15:21:27, Oscar Salvador wrote: > On Thu, Dec 20, 2018 at 02:41:32PM +0100, Oscar Salvador wrote: > > On Thu, Dec 20, 2018 at 02:06:06PM +0100, Michal Hocko wrote: > > > You did want iter += skip_pages - 1 here right? > > > > Bleh, yeah. > > I am taking vacation today so my brain

Re: 4.20-rc6: WARNING: CPU: 30 PID: 197360 at net/core/flow_dissector.c:764 __skb_flow_dissect

2018-12-20 Thread Willem de Bruijn
On Thu, Dec 20, 2018 at 9:34 AM Willem de Bruijn wrote: > > On Thu, Dec 20, 2018 at 9:16 AM Ido Schimmel wrote: > > > > On Thu, Dec 20, 2018 at 09:04:25AM -0500, Willem de Bruijn wrote: > > > On Thu, Dec 20, 2018 at 6:15 AM Ido Schimmel wrote: > > > > > > > > +Willem > > > > > > > > On Thu, Dec

Re: [PATCH] KVM: MMU: Introduce single thread to zap collapsible sptes

2018-12-20 Thread Radim Krčmář
2018-12-06 15:58+0800, Wanpeng Li: > From: Wanpeng Li > > Last year guys from huawei reported that the call of > memory_global_dirty_log_start/stop() > takes 13s for 4T memory and cause guest freeze too long which increases the > unacceptable > migration downtime. [1] [2] > > Guangrong

[PATCH v2] pinctrl: ocelot: add MSCC Jaguar2 support

2018-12-20 Thread Alexandre Belloni
Jaguar2 has the same register layout as Ocelot but it has 64 pins, meaning that there are 2 registers instead of one. Signed-off-by: Alexandre Belloni --- Changes in v2: - select OF_GPIO to avoid build issues .../bindings/pinctrl/mscc,ocelot-pinctrl.txt | 3 +- drivers/pinctrl/Kconfig

Re: ensure dma_alloc_coherent always returns zeroed memory

2018-12-20 Thread h...@lst.de
On Thu, Dec 20, 2018 at 02:39:20PM +, Eugeniy Paltsev wrote: > > I would be really surprised if that is caused by the patch to add > > the zeroing. > Me too :) > > > Can you check which commit caused the issue by bisecting > > from a known good baseline? > > Yep. At least kernel build from

Re: [PATCH] kbuild: use -flive-patching when CONFIG_LIVEPATCH is enabled

2018-12-20 Thread Josh Poimboeuf
On Thu, Dec 20, 2018 at 09:33:05AM +0100, Miroslav Benes wrote: > > > Though, upstream, almost everybody seems to use kpatch-build, for which > > > this patch doesn't help. And people will continue to do so until we > > > have decent source-based tooling. Will the klp-convert patches be > > >

[PATCH v5 0/5] Bug fixes for Qualcomm BT chip wcn3990

2018-12-20 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 v5 1/5] Bluetooth: hci_qca: use wait_until_sent() for power pulses

2018-12-20 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 v5 2/5] Bluetooth: hci_qca: Deassert RTS while baudrate change command

2018-12-20 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 v5 3/5] Bluetooth: hci_qca: Fix frame reassembly errors for wcn3990

2018-12-20 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 v5 4/5] Bluetooth: hci_qca: Disable IBS state machine and flush Tx buffer

2018-12-20 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 v5 5/5] Bluetooth: btqca: inject command complete event during fw download

2018-12-20 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

Re: [v5] PCI: imx: make msi work without CONFIG_PCIEPORTBUS=y

2018-12-20 Thread Lorenzo Pieralisi
On Wed, Dec 19, 2018 at 04:45:04AM +, Richard Zhu wrote: > Assertion of the MSI Enable bit of RC's MSI CAP is mandatory required to > trigger MSI on i.MX6 PCIe. > This bit would be asserted when CONFIG_PCIEPORTBUS=y. > Thus, the MSI works fine on i.MX6 PCIe before the commit "f3fdfc4". > >

Re: [PATCH 3/3] sched/fair: fix unnecessary increase of balance interval

2018-12-20 Thread Vincent Guittot
On Thu, 20 Dec 2018 at 12:22, Valentin Schneider wrote: > > On 20/12/2018 07:55, Vincent Guittot wrote: > > In case of active balance, we increase the balance interval to cover > > pinned tasks cases not covered by all_pinned logic. Neverthless, the > > active migration triggered by asym packing

Re: [PATCH] clk: mediatek: Mark bus and DRAM related clocks as critical

2018-12-20 Thread kbuild test robot
Hi Jasper, Thank you for the patch! Yet something to improve: [auto build test ERROR on clk/clk-next] [also build test ERROR on v4.20-rc7 next-20181220] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

[PATCH v4 1/3] sched/fair: fix rounding issue for asym packing

2018-12-20 Thread Vincent Guittot
When check_asym_packing() is triggered, the imbalance is set to : busiest_stat.avg_load * busiest_stat.group_capacity / SCHED_CAPACITY_SCALE But busiest_stat.avg_load equals : sgs->group_load *SCHED_CAPACITY_SCALE / sgs->group_capacity These divisions can generate a rounding that will make

Re: [PATCH v7 1/5] tpm: dynamically allocate the allocated_banks array

2018-12-20 Thread Jarkko Sakkinen
On Thu, Dec 13, 2018 at 11:29:41AM +0100, Roberto Sassu wrote: > This patch renames active_banks (member of tpm_chip) to allocated_banks, > stores the number of allocated PCR banks in nr_allocated_banks (new member > of tpm_chip), and replaces the static array with a pointer to a dynamically >

Re: [PATCH v3 3/3] PCI: imx6: Add support for i.MX8MQ

2018-12-20 Thread Rob Herring
On Wed, Dec 19, 2018 at 7:22 PM Trent Piepho wrote: > > On Wed, 2018-12-19 at 16:47 -0800, Andrey Smirnov wrote: > > > > > > This series initially added explicit offsets but I suggested a single > > > > "controller-id" because: > > > > * There are multiple bit and byte offsets > > > > * Other

Re: [PATCH 4.9 00/61] 4.9.147-stable review

2018-12-20 Thread Naresh Kamboju
On Thu, 20 Dec 2018 at 14:53, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.147 release. > There are 61 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH 4.19 00/67] 4.19.12-stable review

2018-12-20 Thread Naresh Kamboju
On Thu, 20 Dec 2018 at 14:59, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.12 release. > There are 67 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH v3 3/3] PCI: imx6: Add support for i.MX8MQ

2018-12-20 Thread Rob Herring
On Tue, Dec 18, 2018 at 12:09 PM Leonard Crestez wrote: > > On 12/18/2018 5:15 PM, Rob Herring wrote: > > On Mon, Dec 17, 2018 at 08:07:02PM -0800, Andrey Smirnov wrote: > >> Add code needed to support i.MX8MQ variant. > >> > >> Signed-off-by: Andrey Smirnov > >> Reviewed-by: Lucas Stach > > >>

Re: [PATCH 2/3] ASoC: xlnx: add pcm formatter platform driver

2018-12-20 Thread Mark Brown
On Wed, Dec 19, 2018 at 10:49:08PM +0530, Maruthi Srinivas Bayyavarapu wrote: This looks mostly good, a few small things but all pretty trivial: > + switch (bits_per_sample) { > + case 8: > + val |= (BIT_DEPTH_8 << AUD_CTRL_DATA_WIDTH_SHIFT); > + break; > +

Re: [PATCH 2/2] ACPI / scan: Refactor _CCA enforcement

2018-12-20 Thread Bjorn Helgaas
On Fri, Dec 07, 2018 at 04:31:35PM +, Robin Murphy wrote: > Rather than checking the DMA attribute at each callsite, just pass it > through for acpi_dma_configure() to handle directly. That can then deal > with the relatively exceptional DEV_DMA_NOT_SUPPORTED case by explicitly > installing

[git pull] m68k fixes for 4.20

2018-12-20 Thread Geert Uytterhoeven
Hi Linus, The following changes since commit 58c116fb7dc6703a557fe79c6e6ebab1450082b3: m68k/sun3: Remove is_medusa and m68k_pgtable_cachemode (2018-08-31 09:30:42 +0200) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git

[git pull] m68k updates for 4.21

2018-12-20 Thread Geert Uytterhoeven
Hi Linus, The following changes since commit 651022382c7f8da46cb4872a545ee1da6d097d2a: Linux 4.20-rc1 (2018-11-04 15:37:52 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git tags/m68k-for-v4.21-tag1 for you to fetch

Re: [PATCH] serial: 8250: Default SERIAL_OF_PLATFORM to SERIAL_8250

2018-12-20 Thread Greg Kroah-Hartman
On Wed, Nov 14, 2018 at 05:11:25PM -0800, Guenter Roeck wrote: > On Thu, Nov 01, 2018 at 11:26:06AM -0700, Florian Fainelli wrote: > > It is way too easy to miss enabling SERIAL_OF_PLATFORM which would > > result in the inability for the kernel to have a valid console device, > > which can be seen

Re: [PATCH v7 5/5] tpm: pass an array of tpm_extend_digest structures to tpm_pcr_extend()

2018-12-20 Thread Jarkko Sakkinen
On Thu, Dec 13, 2018 at 11:29:45AM +0100, Roberto Sassu wrote: > Currently, tpm_pcr_extend() accepts as an input only a SHA1 digest. > > This patch modifies the definition of tpm_pcr_extend() to allow other > kernel subsystems to pass a digest for each algorithm supported by the TPM. > All

Re: [GIT PULL] Please pull NFS client bugfixes

2018-12-20 Thread Geert Uytterhoeven
On Wed, Dec 19, 2018 at 9:28 PM Trond Myklebust wrote: > The following 3 patches fix a regression in the NFS/RPC TPC re- > connection code which can cause the RPC transmission to hang. The issue > was discovered by Dave Wysochanski last week. > > With this pull, we still have one more regression

Re: [PATCH 0/1] RFC: Revamp admin-guide/tainted-kernels.rst to make it more comprehensible

2018-12-20 Thread Thorsten Leemhuis
Hi! Am 17.12.18 um 22:06 schrieb Randy Dunlap: > On 12/17/18 10:24 AM, Jonathan Corbet wrote: >> Here's an idea if you feel like improving this: rather than putting an >> inscrutable program inline, add a taint_status script to scripts/ that >> prints out the status in fully human-readable form,

[BUG] dev_pm_opp refcount issue on Arm Juno r0

2018-12-20 Thread Valentin Schneider
Hi, While running some hotplug torture test [1] on my Juno r0 I came across the follow splat: [ 716.561862] [ cut here ] [ 716.566451] refcount_t: underflow; use-after-free. [ 716.571240] WARNING: CPU: 2 PID: 18 at lib/refcount.c:280 refcount_dec_not_one+0x9c/0xc0 [

Re: [PATCH 0/1] RFC: Revamp admin-guide/tainted-kernels.rst to make it more comprehensible

2018-12-20 Thread Jonathan Corbet
On Thu, 20 Dec 2018 16:23:38 +0100 Thorsten Leemhuis wrote: > While at it: Jonathan, you mentioned putting the script in scripts/, but > according to the Makefile in that directory it is "for various helper > programs used throughout the kernel for the build process". That's one > reason why it

Re: [PATCH] Revert "arm64: defconfig: Enable FSL_MC_BUS and FSL_MC_DPIO"

2018-12-20 Thread Arnd Bergmann
On Wed, Dec 19, 2018 at 11:18 AM Horia Geantă wrote: > > This reverts commit d9678adbe733a770428a98651beaa2817d503ed3. > > Received below report from Stefan. > Revert the commit until CAAM driver dependency cycles are fixed. > > this patch in next-20181214 breaks "make modules_install" for >

[PATCH] crypto: caam/qi2 - add a CRYPTO_DEV_FSL_CAAM dependency

2018-12-20 Thread Arnd Bergmann
My previous bugfix was incomplete, we still have a broken kernel with CRYPTO_DEV_FSL_CAAM=m and CRYPTO_DEV_FSL_DPAA2_CAAM=y: drivers/crypto/caam/caamalg_desc.o: In function `cnstr_shdsc_aead_null_encap': caamalg_desc.c:(.text+0x14): undefined reference to `caam_little_end'

Re: [driver-core PATCH v9 1/9] driver core: Establish order of operations for device_add and device_del via bitflag

2018-12-20 Thread Greg Kroah-Hartman
On Wed, Dec 19, 2018 at 03:27:48PM +0100, Rafael J. Wysocki wrote: > On Thu, Dec 13, 2018 at 1:45 AM Alexander Duyck > wrote: > > > > Add an additional bit flag to the device struct named "dead". > > > > This additional flag provides a guarantee that when a device_del is > > executed on a given

Re: [PATCH v5 5/6] net: maclorawan: Implement maclorawan class module

2018-12-20 Thread Andreas Färber
Am 20.12.18 um 11:19 schrieb Ben Whitten: The hard-MAC implementations will be on my plate mostly, as both SX1276 and SX1301 need the soft-MAC. >>> >>> On the SX1301 side of things, the ability to send messages as a LoRaWAN >>> node device is a niche use case, the majority if not all

Re: [PATCH v2] mm, page_alloc: Fix has_unmovable_pages for HugePages

2018-12-20 Thread Wei Yang
On Thu, Dec 20, 2018 at 03:21:27PM +0100, Oscar Salvador wrote: >On Thu, Dec 20, 2018 at 02:41:32PM +0100, Oscar Salvador wrote: >> On Thu, Dec 20, 2018 at 02:06:06PM +0100, Michal Hocko wrote: >> > You did want iter += skip_pages - 1 here right? >> >> Bleh, yeah. >> I am taking vacation today so

Re: [PATCH 0/2] docs/mm-api: link kernel-doc comments from slab_common.c

2018-12-20 Thread Jonathan Corbet
On Thu, 20 Dec 2018 09:59:13 +0200 Mike Rapoport wrote: > ping? Sorry, been traveling, and I still don't really know what to do with patches that are more mm/ than Documentation/. I've just applied these, though. Thanks, jon

Re: [PATCH 31/41] scsi: mpt3sas: mpt3sas_scsih: Mark expected switch fall-through

2018-12-20 Thread Gustavo A. R. Silva
Hi Suganath, On 12/19/18 10:19 PM, Suganath Prabu Subramani wrote: Hi Gustavo, This patch may not apply smoothly over 4.21/scsi-queue. Our previous patch for Aero had some changes in this switch case. Can you resend this patch with latest code base ? Okay. I'll send a separate patch.

Re: [PATCH] drm/xen-front: Make shmem backed display buffer coherent

2018-12-20 Thread Christoph Hellwig
On Tue, Dec 18, 2018 at 08:20:22PM +0100, Noralf Trønnes wrote: > > + if (!dma_map_sg(dev->dev, xen_obj->sgt->sgl, xen_obj->sgt->nents, > > + DMA_BIDIRECTIONAL)) { > > > Are you using the DMA streaming API as a way to flush the caches? This looks rather broken. Please send

[PATCH 1/2] ASoC: rockchip: support ACODEC for rk3328

2018-12-20 Thread Katsuhiro Suzuki
This patch adds support for audio CODEC core of rk3328. Rockchip does not publish detail specification of this core but driver source code is opened on their GitHub repository. https://github.com/rockchip-linux/kernel So I ported this code to linux-next and added some trivial fixes.

[PATCH 2/2] ASoC: rockchip: add workaround for silence of rk3288 ACODEC

2018-12-20 Thread Katsuhiro Suzuki
This patch adds reset and precharge in shutdown of PCM device. ACODEC goes to silence if we change Fs to 44.1kHz from 48kHz. This workaround seems to work but I don't know this workaround is correct sequence or not for ACODEC. Signed-off-by: Katsuhiro Suzuki --- sound/soc/codecs/rk3328_codec.c

Re: [PATCH] drm/xen-front: Make shmem backed display buffer coherent

2018-12-20 Thread Christoph Hellwig
On Wed, Dec 19, 2018 at 02:14:52PM +0100, Gerd Hoffmann wrote: > > > > > +    if (!dma_map_sg(dev->dev, xen_obj->sgt->sgl, xen_obj->sgt->nents, > > > > +    DMA_BIDIRECTIONAL)) { > > > > > > > > > Are you using the DMA streaming API as a way to flush the caches? > > Yes > > > Does this

Re: general protection fault in put_pid

2018-12-20 Thread Dmitry Vyukov
On Wed, Dec 19, 2018 at 10:04 AM Manfred Spraul wrote: > > Hello Dmitry, > > On 12/12/18 11:55 AM, Dmitry Vyukov wrote: > > On Tue, Dec 11, 2018 at 9:23 PM syzbot > > wrote: > >> Hello, > >> > >> syzbot found the following crash on: > >> > >> HEAD commit:f5d582777bcb Merge branch 'for-linus'

Re: [PATCH v2] mm, page_alloc: Fix has_unmovable_pages for HugePages

2018-12-20 Thread Oscar Salvador
On Thu, Dec 20, 2018 at 03:39:39PM +0100, Michal Hocko wrote: > Yes, you are missing that this code should be as sane as possible ;) You > are right that we are only processing one pageorder worth of pfns and > that the page order is bound to HUGETLB_PAGE_ORDER _right_now_. But > there is

[GIT PULL] sound updates for 4.21

2018-12-20 Thread Takashi Iwai
Linus, please pull sound updates for v4.21 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.21-rc1 The topmost commit is d82b51c855a20eb456ac09f2f40ea98312373263 sound updates for 4.21 There

Re: [PATCH 4.14 29/72] locking/qspinlock, x86: Provide liveness guarantee

2018-12-20 Thread Greg Kroah-Hartman
On Thu, Dec 20, 2018 at 12:14:00PM +, Sudip Mukherjee wrote: > Hi Greg, > > On Thu, Dec 20, 2018 at 9:28 AM Greg Kroah-Hartman > wrote: > > > > 4.14-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > commit

Re: [PATCH 4.14 21/72] locking/qspinlock: Ensure node is initialised before updating prev->next

2018-12-20 Thread Greg Kroah-Hartman
On Thu, Dec 20, 2018 at 12:19:04PM +, Sudip Mukherjee wrote: > Hi Greg, > > On Thu, Dec 20, 2018 at 9:27 AM Greg Kroah-Hartman > wrote: > > > > 4.14-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > commit

Re: [PATCH] configfs: fix wrong name of struct in documentation

2018-12-20 Thread Jonathan Corbet
On Fri, 7 Dec 2018 17:11:58 -0200 Helen Koike wrote: > The name of the struct is configfs_bin_attribute instead of > configfs_attribute > > Signed-off-by: Helen Koike > > --- > > Documentation/filesystems/configfs/configfs.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

Re: [PATCH 1/3] mtd: rawnand: Support bad block markers in first, second or last page

2018-12-20 Thread Boris Brezillon
Hi Frieder, On Thu, 20 Dec 2018 14:35:05 + Schrempf Frieder wrote: > On 20.12.18 14:59, Boris Brezillon wrote: > > On Mon, 17 Dec 2018 15:49:07 + > > Schrempf Frieder wrote: > > > >> From: Frieder Schrempf > >> > >> Currently supported bad block marker positions within the block

<    1   2   3   4   5   6   7   8   9   10   >