Re: [RESEND][PATCH 2/2] regulator: da9062: Simplify da9062_buck_set_mode for BUCK_MODE_MANUAL case

2019-10-08 Thread Axel Lin
Mark Brown 於 2019年10月8日 週二 下午6:44寫道: > > On Tue, Oct 08, 2019 at 06:41:21PM +0800, Axel Lin wrote: > > > I'm wondering if any issue with this patch? > > Note, this patch is for da9062 (not for da9063 which is already applied). > > It doesn't seem to apply against current code. I just test apply

Re: [PATCH v6 00/10] s390: vfio-ap: dynamic configuration support

2019-10-08 Thread Halil Pasic
On Fri, 13 Sep 2019 17:26:48 -0400 Tony Krowiak wrote: > The current design for AP pass-through does not support making dynamic > changes to the AP matrix of a running guest resulting in three deficiencies > this patch series is intended to mitigate: > > 1. Adapters, domains and control domains

[PATCH] PM: sleep: include for pm_wq

2019-10-08 Thread Ben Dooks
Include the for the definition of pm_wq to avoid the following warning: kernel/power/main.c:890:25: warning: symbol 'pm_wq' was not declared. Should it be static? Signed-off-by: Ben Dooks --- kernel/power/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/power/main.c

Re: [RESEND][PATCH 2/2] regulator: da9062: Simplify da9062_buck_set_mode for BUCK_MODE_MANUAL case

2019-10-08 Thread Mark Brown
On Tue, Oct 08, 2019 at 06:41:21PM +0800, Axel Lin wrote: > I'm wondering if any issue with this patch? > Note, this patch is for da9062 (not for da9063 which is already applied). It doesn't seem to apply against current code. signature.asc Description: PGP signature

Re: [PATCH v2 for 5.4 2/4] media: hantro: Fix H264 max frmsize supported on RK3288

2019-10-08 Thread Tomasz Figa
On Tue, Oct 8, 2019 at 3:31 PM Jonas Karlman wrote: > > On 2019-10-08 07:27, Tomasz Figa wrote: > > Hi Ezequiel, Jonas, > > > > On Tue, Oct 8, 2019 at 2:46 AM Ezequiel Garcia > > wrote: > >> From: Jonas Karlman > >> > >> TRM specify supported image size 48x48 to 4096x2304 at step size 16

Re: [RESEND][PATCH 2/2] regulator: da9062: Simplify da9062_buck_set_mode for BUCK_MODE_MANUAL case

2019-10-08 Thread Axel Lin
Axel Lin 於 2019年10月7日 週一 下午7:50寫道: > > The sleep flag bit decides the mode for BUCK_MODE_MANUAL case, simplify > the logic as the result is the same. > > Signed-off-by: Axel Lin > Reviewed-by: Adam Thomson Hi Mark, I'm wondering if any issue with this patch? Note, this patch is for da9062 (not

Re: [PATCH v2] mm/page_isolation: fix a deadlock with printk()

2019-10-08 Thread Michal Hocko
On Tue 08-10-19 06:04:32, Qian Cai wrote: > > > > On Oct 8, 2019, at 4:40 AM, Michal Hocko wrote: > > > > Does this tip point to a real deadlock or merely a class of lockdep > > false dependencies? > > I lean towards it is a real deadlock given how trivial to generate those lock > orders

[PATCH 06/10] dt-bindings: usb: renesas_usb3: Document r8a774b1 support

2019-10-08 Thread Fabrizio Castro
Document RZ/G2N (R8A774B1) SoC bindings. Signed-off-by: Fabrizio Castro --- Documentation/devicetree/bindings/usb/renesas,usb3-peri.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/renesas,usb3-peri.txt

[PATCH 08/10] arm64: dts: renesas: r8a774b1: Add USB-DMAC and HSUSB device nodes

2019-10-08 Thread Fabrizio Castro
Add usb dmac and hsusb device nodes to the RZ/G2N SoC dtsi. Signed-off-by: Fabrizio Castro --- arch/arm64/boot/dts/renesas/r8a774b1.dtsi | 42 ++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/renesas/r8a774b1.dtsi

[PATCH 09/10] arm64: dts: renesas: r8a774b1: Add USB3.0 device nodes

2019-10-08 Thread Fabrizio Castro
Add usb3.0 phy, host and function device nodes on RZ/G2N SoC dtsi. Signed-off-by: Fabrizio Castro --- arch/arm64/boot/dts/renesas/r8a774b1.dtsi | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r8a774b1.dtsi

[PATCH 07/10] arm64: dts: renesas: r8a774b1: Add USB2.0 phy and host (EHCI/OHCI) device nodes

2019-10-08 Thread Fabrizio Castro
Add USB2.0 phy and host (EHCI/OHCI) device nodes on RZ/G2N SoC dtsi. Signed-off-by: Fabrizio Castro --- arch/arm64/boot/dts/renesas/r8a774b1.dtsi | 55 +++ 1 file changed, 49 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r8a774b1.dtsi

[PATCH 02/10] dt-bindings: dmaengine: usb-dmac: Add binding for r8a774b1

2019-10-08 Thread Fabrizio Castro
This patch adds the binding for r8a774b1 SoC (RZ/G2N). Signed-off-by: Fabrizio Castro --- Documentation/devicetree/bindings/dma/renesas,usb-dmac.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/renesas,usb-dmac.txt

[PATCH 10/10] arm64: dts: renesas: r8a774b1: Add INTC-EX device node

2019-10-08 Thread Fabrizio Castro
Add support for the Interrupt Controller for External Devices (INTC-EX) on RZ/G2N. Signed-off-by: Fabrizio Castro --- arch/arm64/boot/dts/renesas/r8a774b1.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a774b1.dtsi

[PATCH] PCI/MSI: Enable PCI_MSI_IRQ_DOMAIN support for Microblaze

2019-10-08 Thread Michal Simek
From: Kuldeep Dave Add Microblaze as an arch that supports PCI_MSI_IRQ_DOMAIN. Enabling msi.h generation is done by separate patch. Similar change was done by commit 2a9af0273c1c ("PCI/MSI: Enable PCI_MSI_IRQ_DOMAIN support for RISC-V") Signed-off-by: Kuldeep Dave Signed-off-by: Bharat Kumar

[PATCH 01/10] dt-bindings: rcar-gen3-phy-usb2: Add r8a774b1 support

2019-10-08 Thread Fabrizio Castro
Document RZ/G2N (R8A774B1) SoC bindings. Signed-off-by: Fabrizio Castro --- Documentation/devicetree/bindings/phy/rcar-gen3-phy-usb2.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/rcar-gen3-phy-usb2.txt

[PATCH 05/10] dt-bindings: usb-xhci: Add r8a774b1 support

2019-10-08 Thread Fabrizio Castro
Document RZ/G2N (R8A774B1) SoC bindings. Signed-off-by: Fabrizio Castro --- Documentation/devicetree/bindings/usb/usb-xhci.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/usb-xhci.txt b/Documentation/devicetree/bindings/usb/usb-xhci.txt index

[PATCH 03/10] dt-bindings: usb: renesas_usbhs: Add r8a774b1 support

2019-10-08 Thread Fabrizio Castro
Document RZ/G2N (R8A774B1) SoC bindings. Signed-off-by: Fabrizio Castro --- Documentation/devicetree/bindings/usb/renesas,usbhs.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/renesas,usbhs.txt

[PATCH 04/10] dt-bindings: rcar-gen3-phy-usb3: Add r8a774b1 support

2019-10-08 Thread Fabrizio Castro
Document RZ/G2N (R8A774B1) SoC bindings. Signed-off-by: Fabrizio Castro --- Documentation/devicetree/bindings/phy/rcar-gen3-phy-usb3.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/rcar-gen3-phy-usb3.txt

[PATCH 00/10] Add USB2/USB3/INTC-EX support to RZ/G2N

2019-10-08 Thread Fabrizio Castro
Dear All, this series adds USB 2.0, USB 3.0, and INTC-EX support to the RZ/G2N SoC specfic dtsi. This series depends on the following patches: * https://patchwork.kernel.org/cover/11166155/ * https://patchwork.kernel.org/cover/11157129/ * https://patchwork.kernel.org/cover/11158259/ *

[PATCH] microblaze: Include generic support for MSI irqdomains

2019-10-08 Thread Michal Simek
From: Kuldeep Dave Enable msi.h generation for pci/pcie irq domain support. The same change has been done by commit 251a44888183 ("riscv: include generic support for MSI irqdomains"). Signed-off-by: Kuldeep Dave Signed-off-by: Bharat Kumar Gogada Signed-off-by: Michal Simek ---

Re: [REPOST][RFC][PATCH] sysctl: Remove the sysctl system call

2019-10-08 Thread Michael Kerrisk (man-pages)
On 10/3/19 11:05 PM, Kees Cook wrote: > On Thu, Oct 03, 2019 at 03:44:32PM -0500, Eric W. Biederman wrote: >> >> This system call has been deprecated almost since it was introduced, and none >> of the common distributions enable it. The only indication that I can find >> that >> anyone might

Re: [PATCH] drm/komeda: Set output color depth for output

2019-10-08 Thread Lowry Li (Arm Technology China)
Hi Brian, On Tue, Oct 08, 2019 at 09:36:09AM +, Brian Starkey wrote: > Hi Lowry, > > On Tue, Oct 08, 2019 at 09:17:52AM +, Lowry Li (Arm Technology China) > wrote: > > Set color_depth according to connector->bpc. > > > > Signed-off-by: Lowry Li (Arm Technology China) > > --- > >

Re: [PATCH v2] kheaders: making headers archive reproducible

2019-10-08 Thread Masahiro Yamada
On Tue, Oct 8, 2019 at 6:54 PM Dmitry Goldin wrote: > > ‐‐‐ Original Message ‐‐‐ > On Tuesday, October 8, 2019 10:14 AM, Masahiro Yamada > wrote: > > > On Tue, Oct 8, 2019 at 5:07 PM Dmitry Goldin dgol...@protonmail.ch wrote: > > > > > Hmm. --sort was introduced in 1.28 in 2014. Do you

Re: [PATCH v2 for 5.4 3/4] media: hantro: Fix motion vectors usage condition

2019-10-08 Thread Tomasz Figa
On Tue, Oct 8, 2019 at 3:23 PM Jonas Karlman wrote: > > On 2019-10-08 05:29, Tomasz Figa wrote: > > Hi Jonas, > > > > On Tue, Oct 8, 2019 at 3:33 AM Jonas Karlman wrote: > >> On 2019-10-07 19:45, Ezequiel Garcia wrote: > >>> From: Francois Buergisser > >>> > >>> The setting of the motion

Re: [PATCH v2] arm64: armv8_deprecated: Checking return value for memory allocation

2019-10-08 Thread Will Deacon
On Tue, Oct 08, 2019 at 10:33:17AM +0800, Yunfeng Ye wrote: > On 2019/10/7 23:37, Will Deacon wrote: > > On Mon, Oct 07, 2019 at 06:06:35PM +0800, Yunfeng Ye wrote: > >> @@ -617,25 +624,47 @@ static int t16_setend_handler(struct pt_regs *regs, > >> u32 instr) > >> */ > >> static int __init

[PATCH] microblaze: Increase max dtb size to 64K from 32K

2019-10-08 Thread Michal Simek
From: Siva Durga Prasad Paladugu This patch increases max dtb size to 64K from 32K. This fixes the issue of kernel hang with larger dtb of size greater than 32KB. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- arch/microblaze/kernel/head.S| 2 +-

[PATCH] microblaze: Enable SPARSE_IRQ

2019-10-08 Thread Michal Simek
Enabling SPARSE_IRQ to use dynamically allocated irq descriptors. Signed-off-by: Mubin Sayyed Signed-off-by: Michal Simek --- arch/microblaze/Kconfig | 1 + arch/microblaze/include/asm/irq.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/microblaze/Kconfig

[PATCH] mm: include for generic_file_vm_ops definition

2019-10-08 Thread Ben Dooks
The generic_file_vm_ops is defined in so include it to fix the following warning: mm/filemap.c:2717:35: warning: symbol 'generic_file_vm_ops' was not declared. Should it be static? Signed-off0-by: Ben Dooks --- mm/filemap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/filemap.c

Re: krzysztof/for-next boot bisection: v5.4-rc1-48-g0bc9c79979ea on peach-pi

2019-10-08 Thread Marek Szyprowski
Hi Krzysztof, On 07.10.2019 19:09, Krzysztof Kozlowski wrote: > On Mon, 7 Oct 2019 at 02:43, kernelci.org bot wrote: >> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * >> * This automated bisection report was sent to you on the basis * >> * that you may be involved with the

[PATCH] regulator: core: Skip balancing of the enabled regulators in regulator_enable()

2019-10-08 Thread Marek Szyprowski
Commit f8702f9e4aa7 ("regulator: core: Use ww_mutex for regulators locking"), regardless of the subject, added additional call to regulator_balance_voltage() during regulator_enable(). This is basically a good idea, however it causes some issue for the regulators which are already enabled at boot

[PATCH v2] firmware: vpd: Add an interface to read VPD value

2019-10-08 Thread Cheng-Yi Chiang
Add an interface for other driver to query VPD value. This will be used for ASoC machine driver to query calibration data stored in VPD for smart amplifier speaker resistor calibration. The example usage in ASoC machine driver is like: #define DSM_CALIB_KEY "dsm_calib" static int

Re: [PATCH v3 00/14] dmaengine/soc: Add Texas Instruments UDMA support

2019-10-08 Thread Peter Ujfalusi
Hi Santosh, On 04/10/2019 19.35, santosh.shilim...@oracle.com wrote: > On 9/30/19 11:16 PM, Peter Ujfalusi wrote: >> Hi, >> >> Changes since v2 >> )https://patchwork.kernel.org/project/linux-dmaengine/list/?series=152609=*) >> >> - Based on 5.4-rc1 >> - Support for Flow only data transfer for the

Re: [PATCH v2] mm/page_isolation: fix a deadlock with printk()

2019-10-08 Thread Qian Cai
> On Oct 8, 2019, at 4:40 AM, Michal Hocko wrote: > > Does this tip point to a real deadlock or merely a class of lockdep > false dependencies? I lean towards it is a real deadlock given how trivial to generate those lock orders everywhere. On the other hand, it make a little different to

[PATCH] microblaze: defconfig: Enable devtmps and tmpfs

2019-10-08 Thread Michal Simek
From: Manjukumar Matha Currently dropbear does not run in background because devtmps and tmpfs is not enabled by default. Enable devtmps and tmpfs to fix this issue. Signed-off-by: Manjukumar Matha Signed-off-by: Michal Simek --- arch/microblaze/configs/mmu_defconfig | 3 +++ 1 file

Re: [RFC PATCH] drm/virtio: Export resource handles via DMA-buf API

2019-10-08 Thread Daniel Vetter
On Sat, Oct 05, 2019 at 02:41:54PM +0900, Tomasz Figa wrote: > Hi Daniel, Gerd, > > On Tue, Sep 17, 2019 at 10:23 PM Daniel Vetter wrote: > > > > On Thu, Sep 12, 2019 at 06:41:21PM +0900, Tomasz Figa wrote: > > > This patch is an early RFC to judge the direction we are following in > > > our

Re: [PATCH] sunrpc: fix crash when cache_head become valid before update

2019-10-08 Thread Pavel Tikhomirov
Add Neil to CC, sorry, had lost it somehow... On 10/1/19 11:03 AM, Pavel Tikhomirov wrote: > I was investigating a crash in our Virtuozzo7 kernel which happened in > in svcauth_unix_set_client. I found out that we access m_client field > in ip_map structure, which was received from

[tip: x86/urgent] x86/cpu/vmware: Use the full form of inl in VMWARE_PORT

2019-10-08 Thread tip-bot2 for Sami Tolvanen
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: b547c1fa97b030ac50586e8b187571b4a83d154c Gitweb: https://git.kernel.org/tip/b547c1fa97b030ac50586e8b187571b4a83d154c Author:Sami Tolvanen AuthorDate:Mon, 07 Oct 2019 12:21:29 -07:00

[tip: x86/urgent] x86/cpu/vmware: Use the full form of inl in VMWARE_PORT

2019-10-08 Thread tip-bot2 for Sami Tolvanen
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: b547c1fa97b030ac50586e8b187571b4a83d154c Gitweb: https://git.kernel.org/tip/b547c1fa97b030ac50586e8b187571b4a83d154c Author:Sami Tolvanen AuthorDate:Mon, 07 Oct 2019 12:21:29 -07:00

RE: [PATCH] Convert filldir[64]() from __put_user() to unsafe_put_user()

2019-10-08 Thread David Laight
From: Linus Torvalds > Sent: 07 October 2019 19:11 ... > I've been very close to just removing __get_user/__put_user several > times, exactly because people do completely the wrong thing with them > - not speeding code up, but making it unsafe and buggy. They could do the very simple check that

Kernel config for fuzz testing.

2019-10-08 Thread Tetsuo Handa
On 2019/08/23 17:17, Tetsuo Handa wrote: > On 2019/08/23 8:59, Dmitry Vyukov wrote: >>> Can't we introduce a kernel config which selectively blocks specific >>> actions? >>> If we don't need to worry about bypassing blacklist checks, we will be able >>> to >>> enable syz_execute_func() again. >>

[PATCH] ip6erspan: remove the incorrect mtu limit for ip6erspan

2019-10-08 Thread Haishuang Yan
ip6erspan driver calls ether_setup(), after commit 61e84623ace3 ("net: centralize net_device min/max MTU checking"), the range of mtu is [min_mtu, max_mtu], which is [68, 1500] by default. It causes the dev mtu of the erspan device to not be greater than 1500, this limit value is not correct for

[PATCH V7 3/3] mmc: mmci: sdmmc: add busy_complete callback

2019-10-08 Thread Ludovic Barre
From: Ludovic Barre This patch adds a specific busy_complete callback for sdmmc variant. sdmmc has 2 status flags: -busyd0: This is a hardware status flag (inverted value of d0 line). it does not generate an interrupt. -busyd0end: This indicates only end of busy following a CMD response. On

Re: [PATCH 0/3] ARM: dts: SDRAM and L2 cache EDAC for Armada SoCs

2019-10-08 Thread Gregory CLEMENT
Hi Chris, > This series was waiting for the armada_xp edac driver to be accepted. > Now that it has the relevant nodes can be added to the Armada SoCs. So > that boards can use the EDAC driver if they have the hardware support. > > The db-xc3-24g4xg.dts board doesn't have an ECC chip for it's DDR

[PATCH V7 2/3] mmc: mmci: add busy_complete callback

2019-10-08 Thread Ludovic Barre
From: Ludovic Barre This patch adds busy_completion callback at mmci_host_ops to allow to define a specific busy completion by variant. The legacy code corresponding to busy completion used by ux500 variants is moved to ux500_busy_complete function. Signed-off-by: Ludovic Barre ---

[PATCH V7 0/3] mmc: mmci: add busy detect for stm32 sdmmc variant

2019-10-08 Thread Ludovic Barre
From: Ludovic Barre This patch series adds busy detect for stm32 sdmmc variant. Some adaptations are required: -On sdmmc the data timer is started on data transfert and busy state, so we must add hardware busy timeout support. -Add busy_complete callback at mmci_host_ops to allow to define a

[PATCH V7 1/3] mmc: mmci: add hardware busy timeout feature

2019-10-08 Thread Ludovic Barre
From: Ludovic Barre In the stm32_sdmmc variant, the datatimer is active not only during data transfers with the DPSM, but also while waiting for the busyend IRQs from commands having the MMC_RSP_BUSY flag set. This leads to an incorrect IRQ being raised to signal MCI_DATATIMEOUT error, which

Re: KMSAN: uninit-value in read_sensor_register

2019-10-08 Thread Alexander Potapenko
On Sat, Jun 8, 2019 at 7:49 AM Hillf Danton wrote: > > > Hi > > On Fri, 07 Jun 2019 14:53:05 -0700 (PDT) syzbot wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:f75e4cfe kmsan: use kmsan_handle_urb() in urb.c > > git tree: kmsan > > console output:

Re: [PATCH RESEND v4] fs/epoll: Remove unnecessary wakeups of nested epoll that in ET mode

2019-10-08 Thread Roman Penyaev
On 2019-10-07 20:43, Jason Baron wrote: [...] But what if to make this wakeup explicit if we have more events to process? (nothing is tested, just a guess) @@ -255,6 +255,7 @@ struct ep_pqueue {  struct ep_send_events_data {     int maxevents;     struct epoll_event __user *events; + 

Re: [PATCH] drm: atomic helper: fix W=1 warnings

2019-10-08 Thread Daniel Vetter
On Thu, Oct 03, 2019 at 05:37:15PM +0200, Benjamin Gaignard wrote: > Le jeu. 3 oct. 2019 à 17:05, Ville Syrjälä > a écrit : > > > > On Thu, Oct 03, 2019 at 04:46:54PM +0200, Benjamin Gaignard wrote: > > > Le jeu. 3 oct. 2019 à 16:27, Ville Syrjälä > > > a écrit : > > > > > > > > On Mon, Sep 09,

Attention Your Information!!

2019-10-08 Thread BONI Morga
Good Day, Date:08/10/2019 I am sending this E-mail to you base on your Information I got from the Foreign Affairs for Financial Business Transaction that may Benefits both of us,the funds worth the sum of $9.7 Million USD. I believe that you will be in a good position to assist me to transfer the

Re: [PATCH v2] kheaders: making headers archive reproducible

2019-10-08 Thread Dmitry Goldin
‐‐‐ Original Message ‐‐‐ On Tuesday, October 8, 2019 10:14 AM, Masahiro Yamada wrote: > On Tue, Oct 8, 2019 at 5:07 PM Dmitry Goldin dgol...@protonmail.ch wrote: > > > Hmm. --sort was introduced in 1.28 in 2014. Do you think it would warrant > > some sort of version check and fallback

Re: [RFC/RFT][PATCH v8] cpuidle: New timer events oriented governor for tickless systems

2019-10-08 Thread Rafael J. Wysocki
On Tue, Oct 8, 2019 at 8:20 AM Doug Smythies wrote: > > On 2019.10.06 08:34 Rafael J. Wysocki wrote: > > On Sun, Oct 6, 2019 at 4:46 PM Doug Smythies wrote: > >> On 2019.10.01 02:32 Rafael J. Wysocki wrote: > >>> On Sun, Sep 29, 2019 at 6:05 PM Doug Smythies wrote: > On 2019.09.26 09:32

Re: [PATCH 4.19 012/106] ipmi_si: Only schedule continuously in the thread in maintenance mode

2019-10-08 Thread Pavel Machek
Hi! > @@ -1013,11 +1016,20 @@ static int ipmi_thread(void *data) > spin_unlock_irqrestore(&(smi_info->si_lock), flags); > busy_wait = ipmi_thread_busy_wait(smi_result, smi_info, > _until); > - if (smi_result

Re: [PATCH] kasan: fix the missing underflow in memmove and memcpy with CONFIG_KASAN_GENERIC=y

2019-10-08 Thread Qian Cai
> On Oct 8, 2019, at 2:16 AM, Walter Wu wrote: > > It is an undefined behavior to pass a negative numbers to >memset()/memcpy()/memmove(), so need to be detected by KASAN. Why can’t this be detected by UBSAN?

Re: [PATCH 4.19 011/106] PCI: rpaphp: Avoid a sometimes-uninitialized warning

2019-10-08 Thread Pavel Machek
Hi! > From: Nathan Chancellor > > [ Upstream commit 0df3e42167caaf9f8c7b64de3da40a459979afe8 ] > > When building with -Wsometimes-uninitialized, clang warns: > > drivers/pci/hotplug/rpaphp_core.c:243:14: warning: variable 'fndit' is > used uninitialized whenever 'for' loop exits because its

Re: [PATCH v3 05/10] ARM: dts: dove: Rename "sa-sram" node to "sram"

2019-10-08 Thread Gregory CLEMENT
Hi Krzysztof Kozlowski, > The device node name should reflect generic class of a device so rename > the "sa-sram" node to "sram". This will be also in sync with upcoming DT > schema. No functional change. > > Signed-off-by: Krzysztof Kozlowski Applied on mvebu/dt Thanks, Gregory > --- >

Re: [PATCH] ARM: dts: kirkwood: synology: Fix rs5c372 RTC entry

2019-10-08 Thread Gregory CLEMENT
Hi Walter, > In the rtc-rs5c372.c driver the compatible entry has been renamed > from rs5c372 to rs5c372a. Most dts files have been adapted. > This patch completes the change. > > Signed-off-by: Walter Schweizer Applied on mvebu/dt Thanks, Gregory > --- >

Re: [PATCH v2] rtc: Fix the AltCentury value on AMD/Hygon platform

2019-10-08 Thread Alexandre Belloni
On 08/10/2019 17:37:12+0800, Jinke Fan wrote: > When using following operations: > date -s "21190910 19:20:00" > hwclock -w > to change date from 2019 to 2119 for test, it will fail on Hygon > Dhyana and AMD Zen CPUs, while the same operations run ok on Intel i7 > platform. > > MC146818 driver

[PATCH 6/7] staging: wfx: drop calls to BUG_ON()

2019-10-08 Thread Jerome Pouiller
From: Jérôme Pouiller Most of calls to BUG_ON() could replaced by WARN(). By the way, this patch also try to favor WARN() (that include a comment about the problem) instead of WARN_ON(). Reported-by: Andrew Lunn Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/bh.c | 4 ++--

[PATCH 7/7] staging: wfx: avoid namespace contamination

2019-10-08 Thread Jerome Pouiller
From: Jérôme Pouiller tx_policy_init() was already defined in driver cw1200. So, compilation failed when wfx and cw1200 were both built-in. In order to keep a coherent naming scheme, this patch prefixes all "tx_policy_*" functions with "wfx_". Fixes: 9bca45f3d692 ("staging: wfx: allow to send

Re: [PATCH] usb:cdns3: Fix for CV CH9 running with g_zero driver.

2019-10-08 Thread Roger Quadros
Peter, On 08/10/2019 11:44, Peter Chen wrote: Endpoint can defer transition to Halted state if endpoint has pending requests. The implementation of halt handling is a little complicated, you may consider return -EAGAIN for functional stall through usb_ep_set_halt >from function driver if

[PATCH 3/7] staging: wfx: le16_to_cpus() takes a reference as parameter

2019-10-08 Thread Jerome Pouiller
From: Jérôme Pouiller Original code caused an (100% reproducible) invalid memory access on big-endian targets. Fixes: b0998f0c040d "staging: wfx: add IRQ handling" Reported-by: kbuild test robot Reported-by: Stephen Rothwell Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/bh.c | 4

[PATCH 0/7] Fix various compilation issues with wfx driver

2019-10-08 Thread Jerome Pouiller
From: Jérôme Pouiller Most of problems are related to big-endian architectures. Jérôme Pouiller (7): staging: wfx: simplify memory allocation in wfx_update_filtering() staging: wfx: remove misused call to cpu_to_le16() staging: wfx: le16_to_cpus() takes a reference as parameter staging:

[PATCH 2/7] staging: wfx: remove misused call to cpu_to_le16()

2019-10-08 Thread Jerome Pouiller
From: Jérôme Pouiller Indeed, hif_msg->id is a uint8_t, so use of cpu_to_le16() is a madness. Fixes: 9bca45f3d692 ("staging: wfx: allow to send 802.11 frames") Reported-by: kbuild test robot Reported-by: Stephen Rothwell Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/data_tx.c | 2

[PATCH 1/7] staging: wfx: simplify memory allocation in wfx_update_filtering()

2019-10-08 Thread Jerome Pouiller
From: Jérôme Pouiller Original code did not handle case where kmalloc failed. By the way, it is more convenient to allocate and build HIF message in hif_set_beacon_filter_table() instead of to ask to caller function to build it. Fixes: 40115bbc40e2 ("staging: wfx: implement the rest of mac80211

[PATCH 4/7] staging: wfx: correctly cast data on big-endian targets

2019-10-08 Thread Jerome Pouiller
From: Jérôme Pouiller When built for a big-endian target, original code caused error: include/uapi/linux/swab.h:242:29: note: expected '__u32 * {aka unsigned int *}' but argument is of type 'struct hif_mib_protected_mgmt_policy *' Fixes: f95a29d40782 ("staging: wfx: add HIF commands

[PATCH 5/7] staging: wfx: fix copy_{to,from}_user() usage

2019-10-08 Thread Jerome Pouiller
From: Jérôme Pouiller On error, copy_to_user() returns number of bytes remaining. Driver should return -EFAULT. Fixes: 4f8b7fabb15d ("staging: wfx: allow to send commands to chip") Reported-by: kbuild test robot Reported-by: Dan Carpenter Signed-off-by: Jérôme Pouiller ---

Re: [PATCH v4 1/3] selftests: netfilter: add ipvs test script

2019-10-08 Thread Simon Horman
On Sat, Oct 05, 2019 at 10:37:43PM +0800, Haishuang Yan wrote: > Test virutal server via directing routing for IPv4. > > Tested: > > # selftests: netfilter: ipvs.sh > # Testing DR mode... > # ipvs.sh: PASS > ok 6 selftests: netfilter: ipvs.sh > > Signed-off-by: Haishuang Yan > --- > v4: use

Re: [PATCH 4.19 002/106] tpm: Fix TPM 1.2 Shutdown sequence to prevent future TPM operations

2019-10-08 Thread Pavel Machek
Hi! > From: Vadim Sukhomlinov > > commit db4d8cb9c9f2af71c4d087817160d866ed572cc9 upstream > > TPM 2.0 Shutdown involve sending TPM2_Shutdown to TPM chip and disabling > future TPM operations. TPM 1.2 behavior was different, future TPM > operations weren't disabled, causing rare issues. This

'unable to handle page fault' in pstore

2019-10-08 Thread Luis Henriques
Hi, Maybe this is a known issue with pstore, I didn't investigate, but it's pretty easy to reproduce: I've efi-pstore loaded, with a bunch of files in /sys/fs/pstore. If I unload my backend driver (efi-pstore) and try to remove a file from /sys/fs/pstore I'll see the following spat: BUG:

Re: [RFC PATCH v1 2/3] usb: chipidea: set mode for usb phy driver

2019-10-08 Thread Igor Opaniuk
Hi Peter, On Tue, Oct 8, 2019 at 6:23 AM Peter Chen wrote: > > On 19-10-07 15:46:06, Igor Opaniuk wrote: > > From: Igor Opaniuk > > > > After enters one specific role, notify usb phy driver. > > > > Signed-off-by: Li Jun > > Signed-off-by: Igor Opaniuk > > --- > > > >

[PATCH] checkpatch: use patch subject when reading from stdin

2019-10-08 Thread Geert Uytterhoeven
When reading a patch file from standard input, checkpatch calls it "Your patch", and reports its state as: Your patch has style problems, please review. or: Your patch has no obvious style problems and is ready for submission. Hence when checking multiple patches by piping them to

[PATCH] perf jvmti: Link against tools/lib/ctype.h to have weak strlcpy()

2019-10-08 Thread Thomas Richter
The build of file libperf-jvmti.so succeeds but the resulting object fails to load: # ~/linux/tools/perf/perf record -k mono -- java \ -XX:+PreserveFramePointer \ -agentpath:/root/linux/tools/perf/libperf-jvmti.so \ hog 10 123450 Error occurred during initialization of

[PATCH v2] rtc: Fix the AltCentury value on AMD/Hygon platform

2019-10-08 Thread Jinke Fan
When using following operations: date -s "21190910 19:20:00" hwclock -w to change date from 2019 to 2119 for test, it will fail on Hygon Dhyana and AMD Zen CPUs, while the same operations run ok on Intel i7 platform. MC146818 driver use function mc146818_set_time() to set register

[RFC PATCH] mm: Fix a huge pud insertion race during faulting

2019-10-08 Thread VMware
From: Thomas Hellstrom A huge pud page can theoretically be faulted in racing with pmd_alloc() in __handle_mm_fault(). That will lead to pmd_alloc() returning an invalid pmd pointer. Fix this by adding a pud_trans_unstable() function similar to pmd_trans_unstable() and check whether the pud is

Re: [PATCH] perf/core: fix corner case in perf_rotate_context()

2019-10-08 Thread Peter Zijlstra
On Wed, Oct 02, 2019 at 11:43:17PM -0700, Song Liu wrote: > This is a rare corner case, but it does happen: > > In perf_rotate_context(), when the first cpu flexible event fail to > schedule, cpu_rotate is 1, while cpu_event is NULL. You're failing to explain how we get here in the first place.

Re: [PATCH v2 1/2] x86,sched: Add support for frequency invariance

2019-10-08 Thread Rafael J. Wysocki
On Tue, Oct 8, 2019 at 9:43 AM Giovanni Gherdovich wrote: > > On Thu, 2019-10-03 at 19:53 +0200, Rafael J. Wysocki wrote: > > On Thursday, October 3, 2019 2:15:37 PM CEST Peter Zijlstra wrote: > > > On Thu, Oct 03, 2019 at 12:27:52PM +0200, Rafael J. Wysocki wrote: > > > > On Wednesday, October

Re: [PATCH v2] mm/page_isolation: fix a deadlock with printk()

2019-10-08 Thread Qian Cai
> On Oct 8, 2019, at 4:15 AM, Petr Mladek wrote: > > I am curious about CPU2. Does scheduler need to allocate memory? It happens before with debug objects. It might not 100% necessary but it could easily end up with this way in the current code. Moreover, this is just an example of how

Re: [PATCH 1/3] dt-bindings: sdhci-of-at91: new compatible string and update properties

2019-10-08 Thread Ludovic Desroches
On Mon, Sep 30, 2019 at 09:56:13AM -0500, Rob Herring wrote: > On Thu, Sep 12, 2019 at 10:09:06PM +0200, Ludovic Desroches wrote: > > There is a new compatible string for the SAM9X60 sdhci device. It involves > > an update of the properties about the clocks stuff. > > > > Signed-off-by: Ludovic

Re: [PATCH v3 1/2] PCI: PCIe: ASPM: Introduce pcie_aspm_enabled()

2019-10-08 Thread Rafael J. Wysocki
On Tue, Oct 8, 2019 at 12:34 AM Bjorn Helgaas wrote: > > [+cc Heiner] > > On Thu, Aug 08, 2019 at 11:55:07PM +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Add a function checking whether or not PCIe ASPM has been enabled for > > a given device. > > > > It will be used by

Re: [RESEND PATCH RFC] rtc: Fix the AltCentury value on AMD/Hygon platform

2019-10-08 Thread Alexandre Belloni
On 08/10/2019 09:20:02+, Jinke Fan wrote: > On 2019/10/4 4:01, Alexandre Belloni wrote: > > On 24/09/2019 10:41:08+0800, Jinke Fan wrote: > >> Signed-off-by: Jinke Fan > >> --- > >> drivers/rtc/rtc-mc146818-lib.c | 9 +++-- > >> include/linux/mc146818rtc.h| 2 ++ > >> 2 files

Re: [PATCH 2/3] mmc: sdhci-of-at91: rework clocks management to support SAM9x60 device

2019-10-08 Thread Ludovic Desroches
On Fri, Sep 20, 2019 at 11:34:50AM +0200, Eugen Hristev - M18282 wrote: > > > On 12.09.2019 23:09, Ludovic Desroches wrote: > > > > > In the SAM9x60 SoC, there are only two clocks instead of three for the > > SDHCI device. The base clk is no longer provided, it is generated > > internally from

Re: [RESEND PATCH RFC] rtc: Fix the AltCentury value on AMD/Hygon platform

2019-10-08 Thread Jinke Fan
On 2019/10/4 4:01, Alexandre Belloni wrote: > On 24/09/2019 10:41:08+0800, Jinke Fan wrote: >> Signed-off-by: Jinke Fan >> --- >> drivers/rtc/rtc-mc146818-lib.c | 9 +++-- >> include/linux/mc146818rtc.h| 2 ++ >> 2 files changed, 9 insertions(+), 2 deletions(-) >> > Applied, thanks.

Re: [PATCH v6 14/14] riscv: Make mmap allocation top-down by default

2019-10-08 Thread Alex Ghiti
On 10/7/19 5:11 AM, Alex Ghiti wrote: On 10/4/19 10:12 PM, Atish Patra wrote: On Thu, 2019-08-08 at 02:17 -0400, Alexandre Ghiti wrote: In order to avoid wasting user address space by using bottom-up mmap allocation scheme, prefer top-down scheme when possible. Before: root@qemuriscv64:~# cat

Re: [PATCH v2] mfd: intel-lpss: use devm_ioremap_uc for MMIO

2019-10-08 Thread Mika Westerberg
On Mon, Oct 07, 2019 at 12:42:31PM -0600, Tuowen Zhao wrote: > Some BIOS erroneously specifies write-combining BAR for intel-lpss-pci > in MTRR. This will cause the system to hang during boot. If possible, > this bug could be corrected with a firmware update. > > This patch adds devm_ioremap_uc

[PATCH v4 4/9] mm: Add a walk_page_mapping() function to the pagewalk code

2019-10-08 Thread VMware
From: Thomas Hellstrom For users that want to travers all page table entries pointing into a region of a struct address_space mapping, introduce a walk_page_mapping() function. The walk_page_mapping() function will be initially be used for dirty- tracking in virtual graphics drivers. Cc:

[PATCH v4 3/9] mm: pagewalk: Don't split transhuge pmds when a pmd_entry is present

2019-10-08 Thread VMware
From: Thomas Hellstrom The pagewalk code was unconditionally splitting transhuge pmds when a pte_entry was present. However ideally we'd want to handle transhuge pmds in the pmd_entry function and ptes in pte_entry function. So don't split huge pmds when there is a pmd_entry function present,

[PATCH v4 7/9] drm/vmwgfx: Use an RBtree instead of linked list for MOB resources

2019-10-08 Thread VMware
From: Thomas Hellstrom With emulated coherent memory we need to be able to quickly look up a resource from the MOB offset. Instead of traversing a linked list with O(n) worst case, use an RBtree with O(log n) worst case complexity. Cc: Andrew Morton Cc: Matthew Wilcox Cc: Will Deacon Cc:

[PATCH v4 9/9] drm/vmwgfx: Add surface dirty-tracking callbacks

2019-10-08 Thread VMware
From: Thomas Hellstrom Add the callbacks necessary to implement emulated coherent memory for surfaces. Add a flag to the gb_surface_create ioctl to indicate that surface memory should be coherent. Also bump the drm minor version to signal the availability of coherent surfaces. Cc: Andrew Morton

Re: [PATCH 0/3] thunderbolt: Fixes for few reported issues

2019-10-08 Thread Mika Westerberg
On Tue, Oct 01, 2019 at 01:29:02PM +0300, Mika Westerberg wrote: > Mika Westerberg (3): > thunderbolt: Read DP IN adapter first two dwords in one go > thunderbolt: Fix lockdep circular locking depedency warning > thunderbolt: Drop unnecessary read when writing LC command in Ice Lake Applied

[PATCH v4 2/9] mm: pagewalk: Take the pagetable lock in walk_pte_range()

2019-10-08 Thread VMware
From: Thomas Hellstrom Without the lock, anybody modifying a pte from within this function might have it concurrently modified by someone else. Cc: Matthew Wilcox Cc: Will Deacon Cc: Peter Zijlstra Cc: Rik van Riel Cc: Minchan Kim Cc: Michal Hocko Cc: Huang Ying Cc: Jérôme Glisse Cc:

[PATCH v4 5/9] mm: Add write-protect and clean utilities for address space ranges

2019-10-08 Thread VMware
From: Thomas Hellstrom Add two utilities to 1) write-protect and 2) clean all ptes pointing into a range of an address space. The utilities are intended to aid in tracking dirty pages (either driver-allocated system memory or pci device memory). The write-protect utility should be used in

[PATCH v4 8/9] drm/vmwgfx: Implement an infrastructure for read-coherent resources

2019-10-08 Thread VMware
From: Thomas Hellstrom Similar to write-coherent resources, make sure that from the user-space point of view, GPU rendered contents is automatically available for reading by the CPU. Cc: Andrew Morton Cc: Matthew Wilcox Cc: Will Deacon Cc: Peter Zijlstra Cc: Rik van Riel Cc: Minchan Kim

[PATCH v4 6/9] drm/vmwgfx: Implement an infrastructure for write-coherent resources

2019-10-08 Thread VMware
From: Thomas Hellstrom This infrastructure will, for coherent resources, make sure that from the user-space point of view, data written by the CPU is immediately automatically available to the GPU at resource validation time. Cc: Andrew Morton Cc: Matthew Wilcox Cc: Will Deacon Cc: Peter

[PATCH v4 0/9] Emulated coherent graphics memory take 2

2019-10-08 Thread VMware
From: Thomas Hellström Graphics APIs like OpenGL 4.4 and Vulkan require the graphics driver to provide coherent graphics memory, meaning that the GPU sees any content written to the coherent memory on the next GPU operation that touches that memory, and the CPU sees any content written by the

[PATCH v4 1/9] mm: Remove BUG_ON mmap_sem not held from xxx_trans_huge_lock()

2019-10-08 Thread VMware
From: Thomas Hellstrom The caller needs to make sure that the vma is not torn down during the lock operation and can also use the i_mmap_rwsem for file-backed vmas. Remove the BUG_ON. We could, as an alternative, add a test that either vma->vm_mm->mmap_sem or

Re: [PATCH v22 09/24] x86/sgx: Add functions to allocate and free EPC pages

2019-10-08 Thread Borislav Petkov
On Mon, Oct 07, 2019 at 07:50:11AM -0700, Sean Christopherson wrote: > The caller is responsible for ensuring EREMOVE can be safely executed, > e.g. by holding the enclave's lock. lockdep_assert_held() here maybe? > For many ENCLS leafs, EREMOVE included, the CPU requires exclusive access > to

Re: [PATCH v5 0/6] arm64: vdso32: Address various issues

2019-10-08 Thread Will Deacon
On Mon, Oct 07, 2019 at 06:48:00PM +0100, Vincenzo Frascino wrote: > On 07/10/2019 15:37, Vincenzo Frascino wrote: > > On 07/10/2019 15:15, Will Deacon wrote: > >> On Mon, Oct 07, 2019 at 02:54:29PM +0100, Vincenzo Frascino wrote: > >>> On 07/10/2019 14:31, Will Deacon wrote: > I've queued

Re: [PATCH v2 0/2] PCI: Add missing link delays

2019-10-08 Thread Mika Westerberg
On Mon, Oct 07, 2019 at 05:15:24PM +0200, Matthias Andree wrote: > Am 07.10.19 um 11:32 schrieb Mika Westerberg: > > On Sat, Oct 05, 2019 at 09:34:41AM +0200, Matthias Andree wrote: > >> Am 04.10.19 um 15:06 schrieb Mika Westerberg: > >>> On Fri, Oct 04, 2019 at 02:57:21PM +0200, Matthias Andree

[PATCH v5 2/5] x86/kvm: Change print code to use pr_*() format

2019-10-08 Thread Zhenzhong Duan
pr_*() is preferred than printk(KERN_* ...), after change all the print in arch/x86/kernel/kvm.c will have "kvm_guest: xxx" style. No functional change. Signed-off-by: Zhenzhong Duan Cc: Paolo Bonzini Cc: Radim Krcmar Cc: Sean Christopherson Cc: Vitaly Kuznetsov Cc: Wanpeng Li Cc: Jim

<    3   4   5   6   7   8   9   10   >