Re: [PATCH 09/10] platform/x86: intel_pmc_core: Add Package cstates residency info

2019-02-11 Thread Anshuman Gupta
On Fri, Feb 01, 2019 at 01:02:33PM +0530, Rajneesh Bhardwaj wrote: > This patch introduces a new debugfs entry to read current Package > cstate residency counters. A similar variant of this patch was discussed > earlier "https://patchwork.kernel.org/patch/9908563/; but didn't make it > into

Re: [PATCH 1/2] dma-mapping: add a kconfig symbol for arch_setup_dma_ops availability

2019-02-11 Thread Vineet Gupta
+CC Eugeniy As resident ARC DMA expert can you please this a quick spin. -Vineet On 2/4/19 12:14 AM, Christoph Hellwig wrote: > Signed-off-by: Christoph Hellwig > --- > arch/arc/Kconfig | 1 + > arch/arc/include/asm/Kbuild | 1 + >

[PATCH] clk: imx5: Fix i.MX50 clock registers

2019-02-11 Thread Jonathan Neuschäfer
There are a few differences between the i.MX50 clock tree and those of i.MX51 and i.MX53 that are not yet handled in clk-imx51-imx53.c. This patch handles the following differences: - i.MX50 does not have a periph_apm clock. Instead, the main bus clock (a.k.a. periph_clk) comes directly from a

Re: [PATCH] staging: android: vsoc: Remove VSOC_WAIT_FOR_INCOMING_INTERRUPT

2019-02-11 Thread Souptick Joarder
On Mon, Feb 11, 2019 at 9:27 PM Greg KH wrote: > > On Mon, Feb 11, 2019 at 09:21:19PM +0530, Souptick Joarder wrote: > > On Mon, Feb 11, 2019 at 9:10 PM Greg KH wrote: > > > > > > On Mon, Feb 11, 2019 at 08:56:02PM +0530, Souptick Joarder wrote: > > > > As mentioned in TODO list, Removed

Re: bpf: test_tunnel.sh: BUG: unable to handle kernel NULL pointer dereference

2019-02-11 Thread Alan Maguire
On Fri, 1 Feb 2019, Naresh Kamboju wrote: > Kernel panic while running bpf: test_tunnel.sh on linux -next > 5.0.0-rc4-next-20190129. > > selftests: bpf: test_tunnel.sh > [ 273.997647] IPv6: ADDRCONF(NETDEV_CHANGE): veth1: link becomes ready > [ 274.054068] ip (11458) used greatest stack depth:

Re: [PATCH 16/19] dma-iommu: don't depend on CONFIG_DMA_DIRECT_REMAP

2019-02-11 Thread Christoph Hellwig
On Wed, Feb 06, 2019 at 11:55:49AM +, Robin Murphy wrote: > On 14/01/2019 09:41, Christoph Hellwig wrote: >> For entirely dma coherent architectures there is no good reason to ever >> remap dma coherent allocation. > > Yes there is, namely assembling large buffers without the need for massive

Re: [PATCH 1/2] xsk: do not use mmap_sem

2019-02-11 Thread Dan Williams
[ add Ira ] On Mon, Feb 11, 2019 at 7:33 AM Daniel Borkmann wrote: > > [ +Dan ] > > On 02/07/2019 08:43 AM, Björn Töpel wrote: > > Den tors 7 feb. 2019 kl 06:38 skrev Davidlohr Bueso : > >> > >> Holding mmap_sem exclusively for a gup() is an overkill. > >> Lets replace the call for gup_fast()

Re: [PATCH] arm64/io: Don't use WZR in writel

2019-02-11 Thread Robin Murphy
On 11/02/2019 14:59, Marc Zyngier wrote: On 11/02/2019 14:29, AngeloGioacchino Del Regno wrote: [...] Also, just one more thing: yes this thing is going ARM64-wide and - from my findings - it's targeting certain Qualcomm SoCs, but... I'm not sure that only QC is affected by that, others may

Re: [PATCH] locking/rwsem: Remove arch specific rwsem files

2019-02-11 Thread Waiman Long
On 02/11/2019 06:58 AM, Peter Zijlstra wrote: > Which is clearly worse. Now we can write that as: > > int __down_read_trylock2(unsigned long *l) > { > long tmp = READ_ONCE(*l); > > while (tmp >= 0) { > if (try_cmpxchg(l, , tmp + 1)) >

Re: [PATCH v2 2/3] mfd: syscon: Add optional clock support

2019-02-11 Thread Fabrice Gasnier
On 1/28/19 2:20 PM, Fabrice Gasnier wrote: > On 1/16/19 4:11 PM, Arnd Bergmann wrote: >> On Wed, Jan 16, 2019 at 3:10 PM Fabrice Gasnier >> wrote: >>> >>> On 1/16/19 1:14 PM, Arnd Bergmann wrote: (sorry for the late reply, I just realized that I had never sent out the mail after Lee

Re: [RFC PATCH 3/4] kvm: Add guest side support for free memory hints

2019-02-11 Thread Alexander Duyck
On Sat, 2019-02-09 at 19:49 -0500, Michael S. Tsirkin wrote: > On Mon, Feb 04, 2019 at 10:15:52AM -0800, Alexander Duyck wrote: > > From: Alexander Duyck > > > > Add guest support for providing free memory hints to the KVM hypervisor for > > freed pages huge TLB size or larger. I am restricting

Re: [5.0-rc5 regression] "scsi: kill off the legacy IO path" causes 5 minute delay during boot on Sun Blade 2500

2019-02-11 Thread Jens Axboe
On 2/11/19 9:28 AM, James Bottomley wrote: > On Mon, 2019-02-11 at 08:46 -0700, Jens Axboe wrote: >> On 2/11/19 8:42 AM, James Bottomley wrote: >>> On Mon, 2019-02-11 at 08:28 -0700, Jens Axboe wrote: On 2/11/19 8:25 AM, James Bottomley wrote: > On Sun, 2019-02-10 at 09:35 -0700, Jens

Re: [5.0-rc5 regression] "scsi: kill off the legacy IO path" causes 5 minute delay during boot on Sun Blade 2500

2019-02-11 Thread James Bottomley
On Mon, 2019-02-11 at 08:46 -0700, Jens Axboe wrote: > On 2/11/19 8:42 AM, James Bottomley wrote: > > On Mon, 2019-02-11 at 08:28 -0700, Jens Axboe wrote: > > > On 2/11/19 8:25 AM, James Bottomley wrote: > > > > On Sun, 2019-02-10 at 09:35 -0700, Jens Axboe wrote: > > > > > On 2/10/19 9:25 AM,

Re: [PATCH v4 3/3] powerpc/32: Add KASAN support

2019-02-11 Thread Andrey Ryabinin
On 2/11/19 3:25 PM, Andrey Konovalov wrote: > On Sat, Feb 9, 2019 at 12:55 PM christophe leroy > wrote: >> >> Hi Andrey, >> >> Le 08/02/2019 à 18:40, Andrey Konovalov a écrit : >>> On Fri, Feb 8, 2019 at 6:17 PM Christophe Leroy >>> wrote: Hi Daniel, Le 08/02/2019 à

RE: [PATCH V18 4/6] i2c: tegra: Add DMA support

2019-02-11 Thread Sowjanya Komatineni
> > > I am not sure if you are aware of this document, so I mention it: > > > > > > Documentation/i2c/DMA-considerations > > > > > > I am not pushing you to use the i2c_get_dma_safe_msg_buf() helpers, > > > just wanted to make sure you know about them. I am also fine with an > > > incremental

Re: [RFC PATCH 4/4] mm: Add merge page notifier

2019-02-11 Thread Nitesh Narayan Lal
On 2/11/19 9:17 AM, Michael S. Tsirkin wrote: > On Mon, Feb 11, 2019 at 08:30:03AM -0500, Nitesh Narayan Lal wrote: >> On 2/9/19 7:57 PM, Michael S. Tsirkin wrote: >>> On Mon, Feb 04, 2019 at 10:15:58AM -0800, Alexander Duyck wrote: From: Alexander Duyck Because the implementation

RE: [PATCH V18 6/6] i2c: tegra: add i2c interface timing support

2019-02-11 Thread Sowjanya Komatineni
> On Fri, Feb 08, 2019 at 10:59:42AM -0800, Sowjanya Komatineni wrote: > > This patch adds I2C interface timing registers support for proper bus > > rate configuration along with meeting the I2C spec setup and hold > > times based on the tuning performed on Tegra210, > > Tegra186 and Tegra194

Re: [PATCH v2] xsk: share the mmap_sem for page pinning

2019-02-11 Thread Björn Töpel
Den mån 11 feb. 2019 kl 17:15 skrev Davidlohr Bueso : > > Holding mmap_sem exclusively for a gup() is an overkill. > Lets share the lock and replace the gup call for gup_longterm(), > as it is better suited for the lifetime of the pinning. > Thanks for the cleanup! Acked-by: Björn Töpel > Cc:

Re: [PATCH 0/3] Clean the new GCC 9 -Wmissing-attributes warnings

2019-02-11 Thread Martin Sebor
On 2/9/19 5:31 AM, Miguel Ojeda wrote: On Sat, Feb 9, 2019 at 12:26 PM Ard Biesheuvel wrote: On Sat, 9 Feb 2019 at 12:19, Miguel Ojeda wrote: It also affects the optimizer in two different ways AFAIK: * For the function itself, it gets optimized for size instead of speed. * For

Re: [PATCH] drivers: base: add support to skip power management in device/driver model

2019-02-11 Thread Ulf Hansson
On Thu, 7 Feb 2019 at 16:29, Sudeep Holla wrote: > > On Thu, Feb 07, 2019 at 04:18:57PM +0100, Ulf Hansson wrote: > > On Thu, 7 Feb 2019 at 16:06, Sudeep Holla wrote: > > [...] > > > > Indeed, I was ignoring knowing that it's harmless. But more people > > > started to complain, and Rafael

Re: [PATCH v5 5/5] i2c:ocores: checkpatch fixes

2019-02-11 Thread Wolfram Sang
> > - oc_setreg(i2c, OCI2C_CONTROL, ctrl & ~(OCI2C_CTRL_EN|OCI2C_CTRL_IEN)); > > + ctrl = oc_getreg(i2c, OCI2C_CONTROL); > > There's a pointless double oc_getreg(i2c, OCI2C_CONTROL). In case you need to resend, please update $subject of all patches to have a space after "i2c:"

Re: [PATCH] x86/ima: require signed kernel modules

2019-02-11 Thread Mimi Zohar
On Mon, 2019-02-11 at 16:56 +0100, Jessica Yu wrote: > +++ Mimi Zohar [31/01/19 14:18 -0500]: > >Require signed kernel modules on systems with secure boot mode enabled. > > > >To coordinate between appended kernel module signatures and IMA > >signatures, only define an IMA MODULE_CHECK policy rule

Re: [PATCH] PCI: endpoint: functions: use memcpy_fromio()/memcpy_toio()

2019-02-11 Thread Lorenzo Pieralisi
On Mon, Feb 11, 2019 at 05:04:00PM +0800, Wen Yang wrote: > Use the IO memcpy() functions when copying from/to IO memory. > These locations were found via sparse. > > Signed-off-by: Wen Yang > Suggested-by: Kishon Vijay Abraham I > CC: Lorenzo Pieralisi > CC: Bjorn Helgaas > CC: Gustavo

Re: [PATCH v5 5/5] i2c:ocores: checkpatch fixes

2019-02-11 Thread Federico Vaga
On Monday, February 11, 2019 5:12:23 PM CET Peter Rosin wrote: > On 2019-02-11 17:05, Federico Vaga wrote: > > > Miscellaneous style fixes from checkpatch > > > > Signed-off-by: Federico Vaga > > --- > > > > drivers/i2c/busses/i2c-ocores.c | 30 +++--- > > 1 file

[PATCH v2] xsk: share the mmap_sem for page pinning

2019-02-11 Thread Davidlohr Bueso
Holding mmap_sem exclusively for a gup() is an overkill. Lets share the lock and replace the gup call for gup_longterm(), as it is better suited for the lifetime of the pinning. Cc: David S. Miller Cc: Bjorn Topel Cc: Magnus Karlsson CC: net...@vger.kernel.org Signed-off-by: Davidlohr Bueso

Re: [PATCH] arm64/io: Don't use WZR in writel

2019-02-11 Thread AngeloGioacchino Del Regno
Il giorno lun, 11/02/2019 alle 14.59 +, Marc Zyngier ha scritto: > On 11/02/2019 14:29, AngeloGioacchino Del Regno wrote: > > [...] > > > Also, just one more thing: yes this thing is going ARM64-wide and > > - from my findings - it's targeting certain Qualcomm SoCs, but... > > I'm not sure

[PATCH 4.20 003/352] staging: iio: adc: ad7280a: handle error from __ad7280_read32()

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 0559ef7fde67bc6c83c6eb6329dbd6649528263e ] Inside __ad7280_read32(), the spi_sync_transfer() can fail with negative error code. This change will ensure that this error is being

[PATCH V4 3/3] MAINTAINERS: Add Hyper-V IOMMU driver into Hyper-V CORE AND DRIVERS scope

2019-02-11 Thread lantianyu1986
From: Lan Tianyu This patch is to add Hyper-V IOMMU driver file into Hyper-V CORE and DRIVERS scope. Signed-off-by: Lan Tianyu --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9f64f8d..5fb6306 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@

[PATCH 4.20 009/352] drm/sun4i: Initialize registers in tcon-top driver

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit c96d62215fb540e2ae61de44cb7caf4db50958e3 ] It turns out that TCON TOP registers in H6 SoC have non-zero reset value. This may cause issues if bits are not changed during

[PATCH 4.20 023/352] clk: boston: fix possible memory leak in clk_boston_setup()

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 46fda5b5067a391912cf73bf3d32c26b6a22ad09 ] Smatch report warnings: drivers/clk/imgtec/clk-boston.c:76 clk_boston_setup() warn: possible memory leak of 'onecell'

[PATCH 4.20 021/352] scsi: lpfc: Fix LOGO/PLOGI handling when triggerd by ABTS Timeout event

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 30e196cacefdd9a38c857caed23cefc9621bc5c1 ] After a LOGO in response to an ABTS timeout, a PLOGI wasn't issued to re-establish the login. An nlp_type check in the LOGO completion

[PATCH 4.20 024/352] dlm: Dont swamp the CPU with callbacks queued during recovery

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 216f0efd19b9cc32207934fd1b87a45f2c4c593e ] Before this patch, recovery would cause all callbacks to be delayed, put on a queue, and afterward they were all queued to the callback

[PATCH 4.20 002/352] drm/v3d: Fix a use-after-free race accessing the schedulers fences.

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 34c2c4f632f232ed2fdb66d4e42cc72d322273fe ] Once we push the job, the scheduler could run it and free it. So, if we want to reference their fences, we need to grab them before then.

[PATCH 4.20 027/352] bpftool: Improve handling of ENOENT on map dumps

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit bf598a8f0f771302d4ecb0ef0003c54732221597 ] bpftool output is not user friendly when dumping a map with only a few populated entries: $ bpftool map 1: devmap name tx_devmap

[PATCH 4.20 033/352] MIPS: Boston: Disable EG20T prefetch

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 5ec17af7ead09701e23d2065e16db6ce4e137289 ] The Intel EG20T Platform Controller Hub used on the MIPS Boston development board supports prefetching memory to optimize DMA transfers.

[PATCH 4.20 014/352] nds32: Fix gcc 8.0 compiler option incompatible.

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 4c3d6174e0e17599549f636ec48ddf78627a17fe ] When the kernel configs of ftrace and frame pointer options are choosed, the compiler option of kernel will incompatible. Error

Re: [PATCH v2 1/4] perf-security: document perf_events/Perf resource control

2019-02-11 Thread Alexey Budankov
On 11.02.2019 17:15, Thomas Gleixner wrote: > On Mon, 11 Feb 2019, Alexey Budankov wrote: >> On 11.02.2019 1:34, Thomas Gleixner wrote: >>> On Thu, 7 Feb 2019, Alexey Budankov wrote: >>> >>> General note: Please stay in the 80 char limit for all of the text. >> >> Yes, sure. [PATCH v2 4/4]

[PATCH 4.20 040/352] vbox: fix link error with gcc -Og

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit b8ae30a7020d61e0504529adf45abb08fa5c59f5 ] With the new CONFIG_CC_OPTIMIZE_FOR_DEBUGGING option, we get a link error in the vboxguest driver, when that fails to optimize out the

[PATCH v2 2/3] pwm: stm32-lp: Add power management support

2019-02-11 Thread Fabrice Gasnier
Add suspend/resume PM sleep ops. When going to low power, enforce the PWM channel isn't active. Let the PWM consumers disable it during their own suspend sequence. Only perform a check here, and handle the pinctrl states. See [1]. [1] https://lkml.org/lkml/2019/2/5/770 Signed-off-by: Fabrice

[PATCH 4.20 041/352] platform/chrome: dont report EC_MKBP_EVENT_SENSOR_FIFO as wakeup

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 6ad16b78a039b45294b1ad5d69c14ac57b2fe706 ] EC_MKBP_EVENT_SENSOR_FIFO events can be triggered for a variety of reasons, and there are very few cases in which they should be treated

[PATCH v2 0/3] Add PM support to STM32 LP Timer drivers

2019-02-11 Thread Fabrice Gasnier
This patch series adds power management support for STM32 LP Timer: - PWM driver - Document the pinctrl states for sleep mode It also adds device link between the PWM consumer and the PWM provider. This allows proper sequencing for suspend/resume (e.g. user will likely do a pwm_disable() before

[PATCH v2 3/3] pwm: core: add consumer device link

2019-02-11 Thread Fabrice Gasnier
Add a device link between the PWM consumer and the PWM provider. This enforces the PWM user to get suspended before the PWM provider. It allows proper synchronization of suspend/resume sequences: the PWM user is responsible for properly stopping PWM, before the provider gets suspended: see [1].

[PATCH 4.20 016/352] wil6210: fix memory leak in wil_find_tx_bcast_2

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 664497400c89a4d40aee51bcf48bbd2e4dc71104 ] A successful call to wil_tx_ring takes skb reference so it will only be freed in wil_tx_complete. Consume the skb in wil_find_tx_bcast_2

[PATCH v2] dma-mapping: Move debug configuration options to kernel/dma

2019-02-11 Thread Andy Shevchenko
This is a follow up to the commit cf65a0f6f6ff ("dma-mapping: move all DMA mapping code to kernel/dma") which moved source code of DMA API to kernel/dma folder. Since there is no file left in the lib that require DMA API debugging options move the latter to kernel/dma as well. Cc: Christoph

[PATCH 4.20 011/352] genirq/affinity: Spread IRQs to all available NUMA nodes

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit b82592199032bf7c778f861b936287e37ebc9f62 ] If the number of NUMA nodes exceeds the number of MSI/MSI-X interrupts which are allocated for a device, the interrupt affinity spreading

[PATCH v2 1/3] dt-bindings: pwm-stm32-lp: document pinctrl sleep state

2019-02-11 Thread Fabrice Gasnier
Add documentation for pinctrl sleep state on STM32 LPTimer PWM. Signed-off-by: Fabrice Gasnier --- Documentation/devicetree/bindings/pwm/pwm-stm32-lp.txt | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pwm/pwm-stm32-lp.txt

[PATCH 4.20 044/352] scsi: hisi_sas: change the time of SAS SSP connection

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 15bc43f31a074076f114e0b87931e3b220b7bff1 ] Currently the time of SAS SSP connection is 1ms, which means the link connection will fail if no IO response after this period. For some

Re: [PATCH v5 5/5] i2c:ocores: checkpatch fixes

2019-02-11 Thread Peter Rosin
On 2019-02-11 17:05, Federico Vaga wrote: > Miscellaneous style fixes from checkpatch > > Signed-off-by: Federico Vaga > --- > drivers/i2c/busses/i2c-ocores.c | 30 +++--- > 1 file changed, 19 insertions(+), 11 deletions(-) > > diff --git

[PATCH 4.20 063/352] media: vivid: fill in media_device bus_info

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit e10b40f3304360d3a2d07d690ff12197f828f2c8 ] If you create multiple vivid instances, each with their own media device, then there was no way to tell them apart. Fill in the bus_info

[PATCH 4.20 056/352] soc/tegra: Dont leak device tree node reference

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 9eb40fa2cd2d1f6829e7b49bb22692f754b9cfe0 ] of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller.

[PATCH 4.20 057/352] media: rc: ensure close() is called on rc_unregister_device

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 8e782fcf78275f505194e767c515202d4fd274bc ] If userspace has an open file descriptor on the rc input device or lirc device when rc_unregister_device() is called, then the rc close()

[PATCH 4.20 045/352] staging: iio: ad7780: update voltage on read

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 336650c785b62c3bea7c8cf6061c933a90241f67 ] The ad7780 driver previously did not read the correct device output, as it read an outdated value set at initialization. It now updates

[PATCH 4.20 071/352] dmaengine: xilinx_dma: Remove __aligned attribute on zynqmp_dma_desc_ll

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit aeaebcc17cdf37065d2693865eeb1ff1c7dc5bf3 ] Clang warns: drivers/dma/xilinx/zynqmp_dma.c:166:4: warning: attribute 'aligned' is ignored, place it after "struct" to apply attribute

[PATCH 4.20 067/352] clk: meson: meson8b: do not use cpu_div3 for cpu_scale_out_sel

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit a5ac1ead32c9aac285f6436e09b4f6111996e9b8 ] The cpu_div3 clock (cpu_in divided by 3) generates a signal with a duty cycle of 33%. The CPU clock however requires a clock signal with a

[PATCH 4.20 073/352] iio: adc: meson-saradc: check for devm_kasprintf failure

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit aad172b017617994343e36d8659c69e14cd694fd ] devm_kasprintf() may return NULL on failure of internal allocation thus the assignments to init.name are not safe if not checked. On

[PATCH 4.20 047/352] drm/rockchip: fix for mailbox read size

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit fa68d4f8476bea4cdf441062b614b41bb85ef1da ] Some of the functions (like cdn_dp_dpcd_read, cdn_dp_get_edid_block) allow to read 64KiB, but the cdn_dp_mailbox_read_receive, that is

[PATCH 4.20 075/352] iio: accel: kxcjk1013: Add KIOX010A ACPI Hardware-ID

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 7f6232e69539971cf9eaed07a6c14ab4a2361133 ] Various 2-in-1's use KIOX010A and KIOX020A as HIDs for 2 KXCJ91008 accelerometers. The KIOX010A HID is for the one in the base and the

[PATCH net-next 2/4] net: phy: Move of_set_phy_eee_broken to phy-core.c

2019-02-11 Thread Maxime Chevallier
Since of_set_phy_supported was moved to phy-core.c, we can also move of_set_phy_eee_broken to the same location, so that we have all OF functions in the same place. This patch doesn't intend to introduce any change in behaviour. Signed-off-by: Maxime Chevallier Reviewed-by: Andrew Lunn ---

[PATCH net-next 1/4] net: phy: Mask-out non-compatible modes when setting the max-speed

2019-02-11 Thread Maxime Chevallier
When setting a PHY's max speed using either the max-speed DT property or ethtool, we should mask-out all non-compatible modes according to the settings table, instead of just the 10/100BASET modes. Signed-off-by: Maxime Chevallier Suggested-by: Russell King Reviewed-by: Andrew Lunn ---

[PATCH 4.20 049/352] drm/amd/display: fix gamma not being applied correctly

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 8ce504b9389be846bcdf512ed5be8f661b3bf097 ] [why] Gamma was always being set as identity on SDR monitor, leading to no changes in gamma. This caused nightlight to not apply

[PATCH 4.20 108/352] smack: fix access permissions for keyring

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 5b841bfab695e3b8ae793172a9ff7990f99cc3e2 ] Function smack_key_permission() only issues smack requests for the following operations: - KEY_NEED_READ (issues MAY_READ) -

[PATCH 4.20 050/352] drm/amd/display: calculate stream->phy_pix_clk before clock mapping

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 08e1c28dd521c7b08d1b0af0bae9fb22ccc012a4 ] [why] phy_pix_clk is one of the variable used to check if one PLL can be shared with displays having common mode set configuration. As of

[PATCH 4.20 043/352] i40e: prevent overlapping tx_timeout recover

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit d5585b7b6846a6d0f9517afe57be3843150719da ] If a TX hang occurs, we attempt to recover by incrementally resetting. If we're starved for CPU time, it's possible the reset doesn't

Re: [PATCH v2] i2c: core-smbus: don't trace smbus_reply data on errors

2019-02-11 Thread Steven Rostedt
On Sun, 10 Feb 2019 19:40:21 -0800 John Sperbeck wrote: > If an smbus transfer fails, there's no guarantee that the output > buffer was written. So, avoid trying to show the output buffer when > tracing after an error. This was 'mostly harmless', but would trip > up kasan checking if left-over

[PATCH 4.20 087/352] sunvdc: Do not spin in an infinite loop when vio_ldc_send() returns EAGAIN

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit a11f6ca9aef989b56cd31ff4ee2af4fb31a172ec ] __vdc_tx_trigger should only loop on EAGAIN a finite number of times. See commit adddc32d6fde ("sunvnet: Do not spin in an infinite loop

[PATCH 4.20 089/352] nfsd4: fix crash on writing v4_end_grace before nfsd startup

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 62a063b8e7d1db684db3f207261a466fa3194e72 ] Anatoly Trosinenko reports that this: 1) Checkout fresh master Linux branch (tested with commit e195ca6cb) 2) Copy x84_64-config-4.14 to

[PATCH 4.20 093/352] Thermal: do not clear passive state during system sleep

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 964f4843a455d2ffb199512b08be8d5f077c4cac ] commit ff140fea847e ("Thermal: handle thermal zone device properly during system sleep") added PM hook to call thermal zone reset during

[PATCH 4.20 096/352] s390/zcrypt: improve special ap message cmd handling

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit be534791011100d204602e2e0496e9e6ce8edf63 ] There exist very few ap messages which need to have the 'special' flag enabled. This flag tells the firmware layer to do some pre- and

[PATCH 4.20 099/352] drm/v3d: Fix prime imports of buffers from other drivers.

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 62d1a752874962f072de8a779e960fcd2ab4847b ] v3d_bo_get_pages() checks this to decide to map the imported buffer instead of the backing shmem file. The caller was about to set this

[PATCH 4.20 098/352] arm64: ftrace: dont adjust the LR value

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 6e803e2e6e367db9a0d6ecae1bd24bb5752011bd ] The core ftrace code requires that when it is handed the PC of an instrumented function, this PC is the address of the instrumented

[PATCH 4.20 102/352] ARM: dts: aspeed: add missing memory unit-address

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 8ef86955fe59f7912a40d57ae4c6d511f0187b4d ] The base aspeed-g5.dtsi already defines a '/memory@8000' node, so '/memory' in the board files create a duplicate node. We're probably

[PATCH 4.20 101/352] ARM: mmp/mmp2: dt: enable the clock

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit f36797ee43802b367e59f0f9a9805304a4ff0c98 ] The device-tree booted MMP2 needs to enable the timer clock, otherwise it would stop ticking when the boot finishes. It can also use the

Re: [PATCH 2/9] clk: Introduce get_parent_hw clk op

2019-02-11 Thread Jeffrey Hugo
On 1/28/2019 11:10 PM, Stephen Boyd wrote: The clk_ops::get_parent function is limited in ability to return errors because it returns a u8. A "workaround" to return an error is to return a number >= the number of parents of a clk. This will in turn cause the framework to "orphan" the clk and

[PATCH 4.20 106/352] media: DaVinci-VPBE: fix error handling in vpbe_initialize()

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit aa35dc3c71950e3fec3e230c06c27c0fbd0067f8 ] If vpbe_set_default_output() or vpbe_set_default_mode() fails, vpbe_initialize() returns error code without releasing resources. The

[PATCH 4.20 107/352] platform/x86: Fix config space access for intel_atomisp2_pm

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 6a31061833a52a79c99221b6251db08cf377470e ] We lose even config space access when we power gate the ISP via the PUNIT. That makes lspci & co. produce gibberish. To fix that let's

[PATCH 4.20 079/352] f2fs: avoid GC causing encrypted file corrupted

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 9bf1a3f73927492c8be127b642197125e9d52be8 ] The encrypted file may be corrupted by GC in following case: Time 1: | segment 1 blkaddr = A | GC -> | segment 2 blkaddr = B | Encrypted

Re: [PATCH v1] dma-mapping: Move debug configuration options to kernel/dma

2019-02-11 Thread Andy Shevchenko
On Mon, Feb 11, 2019 at 04:54:50PM +0100, Christoph Hellwig wrote: > On Mon, Feb 11, 2019 at 05:54:09PM +0200, Andy Shevchenko wrote: > > This is a follow up to the commit cf65a0f6f6ff > > > > ("dma-mapping: move all DMA mapping code to kernel/dma") > > > > which moved source code of DMA API

[PATCH net-next 3/4] net: phy: Extract genphy_c45_pma_read_abilities from marvell10g

2019-02-11 Thread Maxime Chevallier
Marvell 10G PHY driver has a generic way of initializing the supported link modes by reading the PHY's C45 PMA abilities. This can be made generic, since these registers are part of the 802.3 specifications. This commit extracts the config_init link_mode initialization code from marvell10g and

[PATCH 4.20 082/352] f2fs: fix race between write_checkpoint and write_begin

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 2866fb16d67992195b0526d19e65acb6640fb87f ] The following race could lead to inconsistent SIT bitmap: Task A Task B == ==

[PATCH 4.20 083/352] f2fs: fix wrong return value of f2fs_acl_create

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit f6176473a0c7472380eef72ebeb330cf9485bf0a ] When call f2fs_acl_create_masq() failed, the caller f2fs_acl_create() should return -EIO instead of -ENOMEM, this patch makes it

[PATCH 4.20 076/352] media: adv*/tc358743/ths8200: fill in min width/height/pixelclock

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 2912289a518077ddb8214e05336700148e97e235 ] The v4l2_dv_timings_cap struct is used to do sanity checks when setting and enumerating DV timings, ensuring that only valid timings as

Re: [PATCH v3 2/2] drm/panel: Add driver for Samsung S6E63M0 panel

2019-02-11 Thread Paweł Chmiel
On poniedziałek, 11 lutego 2019 16:35:19 CET Andrzej Hajda wrote: > On 02.02.2019 15:27, Paweł Chmiel wrote: > > This patch adds Samsung S6E63M0 AMOLED LCD panel driver, connected over > > spi. It's based on already removed, non dt s6e63m0 driver and > > panel-samsung-ld9040. It can be found for

[PATCH 4.20 125/352] IB/hfi1: Unreserve a reserved request when it is completed

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit ca95f802ef5139722acc8d30aeaab6fe5bbe939e ] Currently, When a reserved operation is completed, its entry in the send queue will not be unreserved, which leads to the miscalculation

[PATCH 4.20 121/352] tipc: fix node keep alive interval calculation

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit f5d6c3e5a359c0507800e7ac68d565c21de9b5a1 ] When setting LINK tolerance, node timer interval will be calculated base on the LINK with lowest tolerance. But when calculated, the old

[PATCH 4.20 120/352] drm/amdgpu/powerplay: fix clock stretcher limits on polaris (v2)

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit de4aaab5cc9770a8c4dc13d9bfb6a83b06bba57e ] Adjust limits for newer polaris variants. v2: fix polaris11 kicker (Jerry) Reviewed-by: Junwei Zhang Signed-off-by: Alex Deucher

[PATCH 4.20 110/352] usb: dwc3: Correct the logic for checking TRB full in __dwc3_prepare_one_trb()

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit b7a4fbe2300a8965ea760c7e871507b84aea17f6 ] Availability of TRB's is calculated using dwc3_calc_trbs_left(), which determines total available TRB's based on the HWO bit set in a TRB.

[PATCH 4.20 111/352] dmaengine: sprd: Support DMA link-list cyclic callback

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 97dbd6ea02beb3a7027c158e0a110b5095268d59 ] The Spreadtrum DMA link-list mode is always one cyclic transfer, so we should clear the SPRD_DMA_LLIST_END flag for the link-list

[PATCH 4.20 134/352] mips: bpf: fix encoding bug for mm_srlv32_op

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 17f6c83fb5ebf7db4fcc94a5be4c22d5a7bfe428 ] For micro-mips, srlv inside POOL32A encoding space should use 0x50 sub-opcode, NOT 0x90. Some early version ISA doc describes the

[PATCH 4.20 135/352] media: coda: fix H.264 deblocking filter controls

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 75fa6e4f83a0923fe753827d354998d448b4fd6a ] Add support for the third loop filter mode V4L2_MPEG_VIDEO_H264_LOOP_FILTER_MODE_DISABLED_AT_SLICE_BOUNDARY, and fix

[PATCH 4.20 138/352] tracing: Have trace_stack nr_entries compare not be so subtle

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit ca16b0fbb05242f18da9d810c07d3882ffed831c ] Dan Carpenter reviewed the trace_stack.c code and figured he found an off by one bug. "From reviewing the code, it seems possible for

[PATCH 4.20 137/352] ARM: dts: Fix up the D-Link DIR-685 MTD partition info

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 738a05e673435afb986b53da43befd83ad87ec3b ] The vendor firmware was analyzed to get the right idea about this flash layout. /proc/mtd contains: dev:size erasesize name mtd0:

[PATCH v5 0/5] i2c:ocores: improvements

2019-02-11 Thread Federico Vaga
This patch set provides improvements to the i2c-ocore driver. [V4 -> V5] - deterministic status of IEN bit in register "CONTROL" at the end of ocores_init() - more style fixes [V3 -> V4] - add reviews-by/tested-by - add comment to justify the formula in udelay((8 * 1000) /

[PATCH v5 1/5] i2c:ocores: stop transfer on timeout

2019-02-11 Thread Federico Vaga
Detecting a timeout is ok, but we also need to assert a STOP command on the bus in order to prevent it from generating interrupts when there are no on going transfers. Example: very long transmission. 1. ocores_xfer: START a transfer 2. ocores_isr : handle byte by byte the transfer 3.

[PATCH v5 3/5] i2c:ocores: add polling interface

2019-02-11 Thread Federico Vaga
This driver assumes that an interrupt line is always available for the I2C master. This is not always the case and this patch adds support for a polling version. Report from Andrew Lunn: I did some timing tests for this. On my box, we request a udelay of 80uS. The kernel actually delays for

[PATCH v5 4/5] i2c:ocores: add SPDX tag

2019-02-11 Thread Federico Vaga
It adds the SPDX tag and it removes the old text about the GPLv2. Signed-off-by: Federico Vaga --- drivers/i2c/busses/i2c-ocores.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c index 5dea7b9..78085a8

[PATCH v5 2/5] i2c:ocores: do not handle IRQ if IF is not set

2019-02-11 Thread Federico Vaga
If the Interrupt Flag (IF) is not set, we should not handle the IRQ: - the line can be shared with other devices - it can be a spurious interrupt To avoid reading twice the status register, the ocores_process() function expects it to be read by the caller. Signed-off-by: Federico Vaga Acked-by:

[PATCH 4.20 141/352] usb: dwc3: gadget: Disable CSP for stream OUT ep

2019-02-11 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 244add8ebfb231c39db9e33b204bd0ce8f24f782 ] In stream mode, when fast-forwarding TRBs, the stream number is not cleared causing the new stream to not get assigned. So we don't want

[PATCH v5 5/5] i2c:ocores: checkpatch fixes

2019-02-11 Thread Federico Vaga
Miscellaneous style fixes from checkpatch Signed-off-by: Federico Vaga --- drivers/i2c/busses/i2c-ocores.c | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c index

Re: [PATCH 3/4] Makefile: lld: tell clang to use lld

2019-02-11 Thread Sedat Dilek
On Mon, Feb 11, 2019 at 4:33 PM Masahiro Yamada wrote: [ ... ] > > > > Link: https://github.com/ClangBuiltLinux/linux/issues/342 > > > > Suggested-by: Nathan Chancellor > > > > Signed-off-by: Nick Desaulniers > > > > --- > > > > Makefile | 3 +++ > > > > 1 file changed, 3 insertions(+) > > > >

Re: [PATCH v2 4/4] arm64: kprobes: Use arch_populate_kprobe_blacklist()

2019-02-11 Thread Marc Zyngier
On 11/02/2019 15:58, Will Deacon wrote: > [+Marc] > > On Mon, Feb 11, 2019 at 10:10:23PM +0900, Masami Hiramatsu wrote: >> On Fri, 8 Feb 2019 09:15:19 + >> Will Deacon wrote: >>> Did you send a new version of this series? I can't seem to spot it in my >>> inbox. >> >> Ah, OK. I just waited

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