Re: Kernel 5.2.8 - au0828 - Tuner Is Busy

2019-08-19 Thread Nathan Royce
While your mention of quirks-table.h certainly had possibilities, I'm afraid adding the "AU0828_DEVICE(0x05e1, 0x0400, "Hauppauge", "Woodbury")," entry for my tuner did not make any difference regarding the "Tuner is busy. Error -19" message. I don't know if this means anything, but I see https://

[PATCH] x86/PCI: Remove surplus return from a void function

2019-08-19 Thread Krzysztof Wilczynski
Remove unnecessary empty return statement at the end of a void function in the arch/x86/kernel/quirks.c. Signed-off-by: Krzysztof Wilczynski --- arch/x86/kernel/quirks.c | 4 1 file changed, 4 deletions(-) diff --git a/arch/x86/kernel/quirks.c b/arch/x86/kernel/quirks.c index 8451f38ad399.

Re: Lay common foundation to make PVR/SGX work without hacks on OMAP34xx, OMAP36xx, AM335x and potentially OMAP4, OMAP5

2019-08-19 Thread H. Nikolaus Schaller
> Am 19.08.2019 um 21:43 schrieb Adam Ford : > >> Thanks to the help from the Pyra community, I was able to get a (binary) >> reference >> implementation using DRM that works on Pyra/OMAP5. At least the gles1test1. > > just a question, > > If DRM is working, does that mean it works without ne

Re: Let's talk about the elephant in the room - the Linux kernel's inability to gracefully handle low memory pressure

2019-08-19 Thread Daniel Drake
Hi, Artem S. Tashkinov wrote: > Once you hit a situation when opening a new tab requires more RAM than > is currently available, the system will stall hard. You will barely be > able to move the mouse pointer. Your disk LED will be flashing > incessantly (I'm not entirely sure why). You will not

Re: [PATCH V40 00/29] Add kernel lockdown functionality

2019-08-19 Thread James Morris
On Mon, 19 Aug 2019, Matthew Garrett wrote: > After chatting with James in person, I'm resending the full set with the > fixes merged in in order to avoid any bisect issues. There should be no > functional changes other than avoiding build failures with some configs, > and fixing the oops in trace

Re: [kbuild-all] [PATCH v3 4/5] arm64: perf: Enable pmu counter direct access for perf event on armv8

2019-08-19 Thread Philip Li
On Mon, Aug 19, 2019 at 08:59:33AM +0100, Raphael Gault wrote: > Hi, > > On 8/18/19 1:37 PM, kbuild test robot wrote: > > Hi Raphael, > > > > Thank you for the patch! Yet something to improve: > > > > [auto build test ERROR on linus/master] > > [cannot apply to v5.3-rc4 next-20190816] > > [if yo

[PATCH v2 6/8] arm64: dts: qcom: sm8150-mtp: Add regulators

2019-08-19 Thread Vinod Koul
Add the regulators found in the mtp platform. This platform consists of pmic PM8150, PM8150L and PM8009. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150-mtp.dts | 327 1 file changed, 327 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150-mtp.dts

[PATCH v2 8/8] arm64: dts: qcom: sm8150: Add apps shared nodes

2019-08-19 Thread Vinod Koul
Add apss_shared and apps_rsc including the rpmhcc child node, pmu, SMEM nodes Co-developed-by: Sibi Sankar Signed-off-by: Sibi Sankar Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 63 1 file changed, 63 insertions(+) diff --git a/arch/arm64/

[PATCH v2 7/8] arm64: dts: qcom: sm8150: Add reserved-memory regions

2019-08-19 Thread Vinod Koul
Add the reserved memory regions in SM8150 Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 111 +++ 1 file changed, 111 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index d9dc95f851b7..8bf4b4c

[PATCH v2 0/8] arm64: dts: qcom: sm8150: Add SM8150 DTS

2019-08-19 Thread Vinod Koul
This series adds DTS for SM8150, PMIC PM8150, PM8150B, PM8150L and the MTP for SM8150. Changes in v2: - Squash patches - Fix comments given by Stephen namely, lowercase for hext numbers, making rpmhcc have xo_board as parent, rename pon controller to power-on controller, make pmic nodes as

[PATCH v2 1/8] arm64: dts: qcom: sm8150: add base dts file

2019-08-19 Thread Vinod Koul
This add base DTS file with cpu, psci, firmware, clock, tlmm and spmi nodes which enables boot to console Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 305 +++ 1 file changed, 305 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sm8150.dt

[PATCH v2 4/8] arm64: dts: qcom: pm8150l: Add Base DTS file

2019-08-19 Thread Vinod Koul
PMIC pm8150l is a slave pmic and this adds base DTS file for pm8150l with power-on, adc and gpio nodes Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/pm8150l.dtsi | 78 +++ 1 file changed, 78 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pm8150l.dtsi

[PATCH v2 3/8] arm64: dts: qcom: pm8150b: Add Base DTS file

2019-08-19 Thread Vinod Koul
PMIC pm8150b is a slave pmic and this adds base DTS file for pm8150b with pon, adc, and gpio nodes Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/pm8150b.dtsi | 84 +++ 1 file changed, 84 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pm8150b.dtsi dif

[PATCH v2 5/8] arm64: dts: qcom: sm8150-mtp: add base dts file

2019-08-19 Thread Vinod Koul
This add base DTS file for sm8150-mtp and enables boot to console, adds tlmm reserved range, resin node, volume down key and also includes pmic file. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/sm8150-mtp.dts | 48 +++

[PATCH v2 2/8] arm64: dts: qcom: pm8150: Add Base DTS file

2019-08-19 Thread Vinod Koul
Add base DTS file for pm8150 along with GPIOs, power-on, rtc and vadc nodes Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/pm8150.dtsi | 95 1 file changed, 95 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pm8150.dtsi diff --git a/arch/arm64/boo

Re: [RT PATCH v2] net/xfrm/xfrm_ipcomp: Protect scratch buffer with local_lock

2019-08-19 Thread Juri Lelli
On 19/08/19 15:57, Steven Rostedt wrote: > On Mon, 19 Aug 2019 14:27:31 +0200 > Juri Lelli wrote: > > > The following BUG has been reported while running ipsec tests. > > Thanks! > > I'm still in the process of backporting patches to fix some bugs that > showed up with the latest merge of upstr

Re: [RT PATCH v2] net/xfrm/xfrm_ipcomp: Protect scratch buffer with local_lock

2019-08-19 Thread Juri Lelli
Hi, On 20/08/19 13:35, kbuild test robot wrote: > Hi Juri, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on linus/master] > [cannot apply to v5.3-rc5 next-20190819] > [if your patch is applied to the wrong git tree, please drop us a no

Re: [KVM] 323d73a8ec: kernel_selftests.kvm.vmx_set_nested_state_test.fail

2019-08-19 Thread Paolo Bonzini
On 20/08/19 02:52, kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-7): > > commit: 323d73a8ecad22bf3284f2a7cce576ade6af ("KVM: nVMX: Change > KVM_STATE_NESTED_EVMCS to signal vmcs12 is copied from eVMCS") > https://kernel.googlesource.com/pub/scm/linux/kernel/g

Re: [PATCH 22/22] arm64: dts: qcom: sm8150: Add APSS shared mailbox

2019-08-19 Thread Vinod Koul
On 20-08-19, 11:50, Sibi Sankar wrote: > Hey Vinod, > > There seems to be a mismatch > between the commit description > and the dt node (This is the > aoss qmp node not the APPS > shared node). Thanks for pointing, I have squashed this and other into single patch and updated the description > >

Re: [PATCH] auxdisplay: ht16k33: Make ht16k33_fb_fix and ht16k33_fb_var constant

2019-08-19 Thread Robin van der Gracht
On 2019-08-19 09:51, Nishka Dasgupta wrote: The static structures ht16k33_fb_fix and ht16k33_fb_var, of types fb_fix_screeninfo and fb_var_screeninfo respectively, are not used except to be copied into other variables. Hence make both of them constant to prevent unintended modification. Issue fou

Re: [PATCH] ASoC: uniphier: Fix double reset assersion when transitioning to suspend state

2019-08-19 Thread Uwe Kleine-König
Hello, just noticed while reading through my linux-arm-kernel folder: $Subject ~= s/assersion/assertion/ Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de/ |

[PATCH] omfs: Fix a memory leak bug

2019-08-19 Thread Wenwen Wang
In omfs_get_imap(), 'sbi->s_imap' is allocated through kcalloc(). However, it is not deallocated in the following execution if 'block' is not less than 'sbi->s_num_blocks', leading to a memory leak bug. To fix this issue, go to the 'nomem_free' label to free 'sbi->s_imap'. Signed-off-by: Wenwen Wa

Re: [PATCH 22/22] arm64: dts: qcom: sm8150: Add APSS shared mailbox

2019-08-19 Thread Sibi Sankar
Hey Vinod, There seems to be a mismatch between the commit description and the dt node (This is the aoss qmp node not the APPS shared node). On 2019-08-19 23:11, Vinod Koul wrote: On 14-08-19, 10:17, Stephen Boyd wrote: Quoting Vinod Koul (2019-08-14 05:50:12) > @@ -338,6 +339,16 @@ >

[PATCH] ASoC: uniphier: Fix double reset assersion when transitioning to suspend state

2019-08-19 Thread Kunihiko Hayashi
When transitioning to supend state, uniphier_aio_dai_suspend() is called and asserts reset lines and disables clocks. However, if there are two or more DAIs, uniphier_aio_dai_suspend() are called multiple times, and double reset assersion will cause. This patch defines the counter that has the nu

[PATCH 3/3] nvme: complete request in work queue on CPU with flooded interrupts

2019-08-19 Thread longli
From: Long Li When a NVMe hardware queue is mapped to several CPU queues, it is possible that the CPU this hardware queue is bound to is flooded by returning I/O for other CPUs. For example, consider the following scenario: 1. CPU 0, 1, 2 and 3 share the same hardware queue 2. the hardware queue

[PATCH 1/3] sched: define a function to report the number of context switches on a CPU

2019-08-19 Thread longli
From: Long Li The number of context switches on a CPU is useful to determine how busy this CPU is on processing IRQs. Export this information so it can be used by device drivers. Signed-off-by: Long Li --- include/linux/sched.h | 1 + kernel/sched/core.c | 6 ++ 2 files changed, 7 insert

[PATCH 0/3] fix interrupt swamp in NVMe

2019-08-19 Thread longli
From: Long Li This patch set tries to fix interrupt swamp in NVMe devices. On large systems with many CPUs, a number of CPUs may share one NVMe hardware queue. It may have this situation where several CPUs are issuing I/Os, and all the I/Os are returned on the CPU where the hardware queue is bou

[PATCH 2/3] sched: export idle_cpu()

2019-08-19 Thread longli
From: Long Li This function is useful for device drivers to check if this CPU has work to do in process context. Signed-off-by: Long Li --- include/linux/sched.h | 1 + kernel/sched/core.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/linux/sched.h b/include/linux/sched.h ind

Re: [PATCH v5 2/3] OPP: Add support for bandwidth OPP tables

2019-08-19 Thread Viresh Kumar
On 07-08-19, 15:31, Saravana Kannan wrote: > Not all devices quantify their performance points in terms of frequency. > Devices like interconnects quantify their performance points in terms of > bandwidth. We need a way to represent these bandwidth levels in OPP. So, > add support for parsing bandw

Re: [PATCH] FS: timerfd: Fix unexpected return value of timerfd_read function.

2019-08-19 Thread Arul Jeniston
hi Tglx Agreed. Please find the dmesg output below. We see the problem on [1456773.366951]. Let us know if you find anything suspicious. [0.00] Linux version 4.9.0-8-amd64 (debian-ker...@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP Debian 4.9.110-3+deb9

[PATCH v4] arm64: dts: ls1088a: fix gpio node

2019-08-19 Thread Hui Song
From: Song Hui add ls1088a gpio specify compatible. Signed-off-by: Song Hui --- Changes in v4: - update the patch description. Changes in v3: - delete the attribute of little-endian. Changes in v2: - update the subject. diff --git a/arch/arm64/boot/dts/freescale/fsl-l

Re: [PATCH] riscv: move sifive_l2_cache.c to drivers/soc

2019-08-19 Thread Yash Shah
On Mon, Aug 19, 2019 at 11:56 AM Christoph Hellwig wrote: > > On Mon, Aug 19, 2019 at 08:09:04AM +0200, Borislav Petkov wrote: > > On Sun, Aug 18, 2019 at 10:29:35AM +0200, Christoph Hellwig wrote: > > > The sifive_l2_cache.c is in no way related to RISC-V architecture > > > memory management. It

Re: [PATCH v4 6/10] dt-bindings: pwm: update bindings for MT7628 SoC

2019-08-19 Thread Uwe Kleine-König
On Tue, Aug 20, 2019 at 09:40:21AM +0800, Sam Shih wrote: > From: sam shih > > This updates bindings for MT7628 pwm controller. > > Signed-off-by: Sam Shih Apart from different capitalisation in Author name and S-o-B, this patch looks fine. Best regards Uwe -- Pengutronix e.K.

Re: [PATCH v4 5/10] dt-bindings: pwm: add a property "num-pwms"

2019-08-19 Thread Uwe Kleine-König
On Tue, Aug 20, 2019 at 09:40:20AM +0800, Sam Shih wrote: > From: Ryder Lee > > This adds a property "num-pwms" in example so that we could > specify the number of PWM channels via device tree. > > Signed-off-by: Ryder Lee > Signed-off-by: Sam Shih > Reviewed-by: Matthias Brugger Acked-by: U

RE: [PATCH] pwm: mxs: use devm_platform_ioremap_resource() to simplify code

2019-08-19 Thread Anson Huang
Gentle ping... > > From: anson.hu...@nxp.com > > Sent: Thursday, July 18, 2019 9:32 AM > > > > Use the new helper devm_platform_ioremap_resource() which wraps the > > platform_get_resource() and devm_ioremap_resource() together, to > > simplify the code. > > > > Signed-off-by: Anson Huang > > R

Re: [PATCH v4 4/10] pwm: mediatek: use pwm_mediatek as common prefix

2019-08-19 Thread Uwe Kleine-König
On Tue, Aug 20, 2019 at 09:40:19AM +0800, Sam Shih wrote: > From: sam shih > > Use pwm_mediatek as common prefix to match the filename. > No functional change intended. > > Signed-off-by: Ryder Lee > Signed-off-by: Sam Shih > --- > drivers/pwm/pwm-mediatek.c | 117 ++--

Re: [PATCH v4 3/10] pwm: mediatek: allocate the clks array dynamically and fix mt7628 pwm

2019-08-19 Thread Uwe Kleine-König
Hello, On Tue, Aug 20, 2019 at 09:40:18AM +0800, Sam Shih wrote: > From: Ryder Lee > > Instead of using fixed size of arrays, allocate the memory for them > based on the information we get from the chips. > > Also fix mt7628 pwm during configure from userspace. The SoC > is legacy MIPS and has

Re: [PATCH 20/21] ASoC: sun4i-i2s: Add support for TDM slots

2019-08-19 Thread Sergey Suloev
Hi, Maxime, On 8/19/19 10:25 PM, Maxime Ripard wrote: From: Maxime Ripard The i2s controller supports TDM, for up to 8 slots. Let's support the TDM API. Signed-off-by: Maxime Ripard --- sound/soc/sunxi/sun4i-i2s.c | 40 -- 1 file changed, 34 insertions(

Re: [RFC 02/11] dt-bindings: power: amlogic, meson-gx-pwrc: Add SM1 bindings

2019-08-19 Thread Martin Blumenstingl
Hi Kevin, On Tue, Aug 20, 2019 at 2:06 AM Kevin Hilman wrote: [...] > >> +ao_sysctrl: sys-ctrl@0 { > >> + compatible = "amlogic,meson-gx-ao-sysctrl", "syscon", "simple-mfd"; > >> + reg = <0x0 0x0 0x0 0x100>; > >> + > >> + pwrc: power-controller { > >> + compatible

Re: [PATCH v4 2/10] pwm: mediatek: droping the check for of_device_get_match_data

2019-08-19 Thread Uwe Kleine-König
Hello, On Tue, Aug 20, 2019 at 09:40:17AM +0800, Sam Shih wrote: > From: sam shih Your Signed-off-by and the mail's From uses capital letters. Can you please make them all match? > This patch drop the check for of_device_get_match_data. > Due to the only way call driver probe is compatible matc

Re: [PATCH v4] kasan: add memory corruption identification for software tag-based mode

2019-08-19 Thread Walter Wu
On Tue, 2019-08-06 at 13:43 +0800, Walter Wu wrote: > This patch adds memory corruption identification at bug report for > software tag-based mode, the report show whether it is "use-after-free" > or "out-of-bound" error instead of "invalid-access" error. This will make > it easier for programmers

Re: [RT PATCH v2] net/xfrm/xfrm_ipcomp: Protect scratch buffer with local_lock

2019-08-19 Thread kbuild test robot
Hi Juri, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [cannot apply to v5.3-rc5 next-20190819] [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/commits/Juri

Re: [PATCH 1/1] netfilter: nf_tables: fib: Drop IPV6 packages if IPv6 is disabled on boot

2019-08-19 Thread Florian Westphal
Leonardo Bras wrote: > If IPv6 is disabled on boot (ipv6.disable=1), but nft_fib_inet ends up > dealing with a IPv6 package, it causes a kernel panic in > fib6_node_lookup_1(), crashing in bad_page_fault. > > The panic is caused by trying to deference a very low address (0x38 > in ppc64le), due t

[PATCH] ecryptfs: fix a memory leak bug

2019-08-19 Thread Wenwen Wang
In ecryptfs_init_messaging(), if the allocation for 'ecryptfs_msg_ctx_arr' fails, the previously allocated 'ecryptfs_daemon_hash' is not deallocated, leading to a memory leak bug. To fix this issue, free 'ecryptfs_daemon_hash' before returning the error. Signed-off-by: Wenwen Wang --- fs/ecryptf

Re: [PATCH] nfc: st-nci: Fix an incorrect skb_buff size in 'st_nci_i2c_read()'

2019-08-19 Thread Christophe JAILLET
Le 12/08/2019 à 05:57, David Miller a écrit : From: Christophe JAILLET Date: Tue, 6 Aug 2019 16:16:40 +0200 In 'st_nci_i2c_read()', we allocate a sk_buff with a size of ST_NCI_I2C_MIN_SIZE + len. However, later on, we first 'skb_reserve()' ST_NCI_I2C_MIN_SIZE bytes, then we 'skb_put()' ST_NC

Re: [PATCH v4 1/10] pwm: mediatek: add a property "num-pwms"

2019-08-19 Thread Uwe Kleine-König
Hello, On Tue, Aug 20, 2019 at 09:40:16AM +0800, Sam Shih wrote: > From: Ryder Lee > > This adds a property "num-pwms" to avoid having an endless > list of compatibles with no differences for the same driver. > > Signed-off-by: Ryder Lee > Signed-off-by: Sam Shih > --- > Used: > https://patch

[PATCH] Add support for Macronix NAND randomizer

2019-08-19 Thread Mason Yang
Macronix NANDs support randomizer operation for user data scrambled, which can be enabled with a SET_FEATURE. User data written to the NAND device without randomizer is still readable after randomizer function enabled. The penalty of randomizer are NOP = 1 instead of NOP = 4 and more time period i

[PATCH] ecryptfs: fix a memory leak bug

2019-08-19 Thread Wenwen Wang
In parse_tag_1_packet(), if tag 1 packet contains a key larger than ECRYPTFS_MAX_ENCRYPTED_KEY_BYTES, no cleanup is executed, leading to a memory leak on the allocated 'auth_tok_list_item'. To fix this issue, go to the label 'out_free' to perform the cleanup work. Signed-off-by: Wenwen Wang ---

[PATCH] iio: cros_ec: set calibscale for 3d MEMS to unit vector

2019-08-19 Thread Gwendal Grignou
By default, set the calibscale vector to unit vector. It prevents sending 0 as calibscale when not initialized. Signed-off-by: Gwendal Grignou --- drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/iio/common

Re: [PATCH v1 05/10] powerpc/mm: Do early ioremaps from top to bottom on PPC64 too.

2019-08-19 Thread Christophe Leroy
Le 20/08/2019 à 02:20, Michael Ellerman a écrit : Nicholas Piggin writes: Christophe Leroy's on August 14, 2019 6:11 am: Until vmalloc system is up and running, ioremap basically allocates addresses at the border of the IOREMAP area. On PPC32, addresses are allocated down from the top of t

[PATCH v3] rtw88: pci: Move a mass of jobs in hw IRQ to soft IRQ

2019-08-19 Thread Jian-Hong Pan
There is a mass of jobs between spin lock and unlock in the hardware IRQ which will occupy much time originally. To make system work more efficiently, this patch moves the jobs to the soft IRQ (bottom half) to reduce the time in hardware IRQ. Signed-off-by: Jian-Hong Pan --- v2: Change the spin_

Re: [PATCH v2 4/4] clk: qcom: clk-rpmh: Add support for SM8150

2019-08-19 Thread Bjorn Andersson
On Mon 19 Aug 00:39 PDT 2019, Vinod Koul wrote: > Add support for rpmh clocks found in SM8150 > > Signed-off-by: Vinod Koul > --- > drivers/clk/qcom/clk-rpmh.c | 27 +++ > 1 file changed, 27 insertions(+) > > diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/c

Re: [PATCH v2 3/4] dt-bindings: clock: Document SM8150 rpmh-clock compatible

2019-08-19 Thread Bjorn Andersson
On Mon 19 Aug 00:39 PDT 2019, Vinod Koul wrote: > Document the SM8150 rpmh-clock compatible for rpmh clock controller > found on SM8150 platforms. > > Signed-off-by: Vinod Koul Reviewed-by: Bjorn Andersson > --- > Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt | 4 +++- > 1 file c

Re: [PATCH v2 2/4] clk: qcom: clk-rpmh: Convert to parent data scheme

2019-08-19 Thread Bjorn Andersson
On Mon 19 Aug 00:39 PDT 2019, Vinod Koul wrote: > Convert the rpmh clock driver to use the new parent data scheme by > specifying the parent data for board clock. > > Signed-off-by: Vinod Koul > --- > drivers/clk/qcom/clk-rpmh.c | 10 -- > 1 file changed, 8 insertions(+), 2 deletions(-)

Re: [PATCH v2 1/4] dt-bindings: clock: Document the parent clocks

2019-08-19 Thread Bjorn Andersson
On Mon 19 Aug 00:39 PDT 2019, Vinod Koul wrote: > With clock parent data scheme we must specify the parent clocks for the > rpmhcc nodes. So describe the parent clock for rpmhcc in the bindings. > Reviewed-by: Bjorn Andersson > Signed-off-by: Vinod Koul > --- > Documentation/devicetree/bindi

[PATCH] ubifs: fix a memory leak bug

2019-08-19 Thread Wenwen Wang
In ubifs_mount(), 'c' is allocated through kzalloc() in alloc_ubifs_info(). However, it is not deallocated in the following execution if ubifs_fill_super() fails, leading to a memory leak bug. To fix this issue, free 'c' before going to the 'out_deact' label. Signed-off-by: Wenwen Wang --- fs/ub

[PATCH] PCI: Add PCIE ACS quirk for IPROC PAXB

2019-08-19 Thread Srinath Mannam
From: Abhinav Ratna IPROC PAXB RC doesn't support ACS capabilities and control registers. Add quirk to have separate IOMMU groups for all EPs and functions connected to root port, by masking RR/CR/SV/UF bits. Signed-off-by: Abhinav Ratna Signed-off-by: Srinath Mannam --- drivers/pci/quirks.c

Re: [PATCH 1/4] resource: add a not device managed request_free_mem_region variant

2019-08-19 Thread Dan Williams
On Mon, Aug 19, 2019 at 7:26 PM Christoph Hellwig wrote: > > On Mon, Aug 19, 2019 at 06:28:30PM -0700, Dan Williams wrote: > > > > Previously we would loudly crash if someone passed NULL to > > devm_request_free_mem_region(), but now it will silently work and the > > result will leak. Perhaps this

Re: [RFC PATCH] powerpc: Convert ____flush_dcache_icache_phys() to C

2019-08-19 Thread Alastair D'Silva
On Fri, 2019-08-16 at 15:52 +, Christophe Leroy wrote: > Resulting code (8xx with 16 bytes per cacheline and 16k pages) > > 016c <__flush_dcache_icache_phys>: > 16c: 54 63 00 22 rlwinm r3,r3,0,0,17 > 170: 7d 20 00 a6 mfmsr r9 > 174: 39 40 04 00 li r10,1024 > 178: 55

Re: [PATCH v7 1/7] driver core: Add support for linking devices during device addition

2019-08-19 Thread Frank Rowand
On 8/19/19 5:00 PM, Saravana Kannan wrote: > On Sun, Aug 18, 2019 at 8:38 PM Frank Rowand wrote: >> >> On 8/15/19 6:50 PM, Saravana Kannan wrote: >>> On Wed, Aug 7, 2019 at 7:04 PM Frank Rowand wrote: > Date: Tue, 23 Jul 2019 17:10:54 -0700 > Subject: [PATCH v7 1/7] driver core: Add

Re: linux-next: Tree for Aug 19 (drivers/net/netdevsim/dev.o)

2019-08-19 Thread Randy Dunlap
On 8/19/19 2:18 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20190816: > on x86_64: # CONFIG_INET is not set ld: drivers/net/netdevsim/dev.o: in function `nsim_dev_trap_report_work': dev.c:(.text+0x52f): undefined reference to `ip_send_check' Full randconfig file is attached. --

[PATCH] rpmsg: glink-smem: Name the edge based on parent remoteproc

2019-08-19 Thread Bjorn Andersson
Naming the glink edge device on the parent of_node short name causes collisions when multiple remoteproc instances with only different unit address are described on the platform_bus in DeviceTree. Base the edge's name on the parent remoteproc's name instead, to ensure that it's unique. Signed-off

Re: [PATCH v3 0/3] genirq/vfio: Introduce update_irq_devid and optimize VFIO irq ops

2019-08-19 Thread luoben
在 2019/8/20 上午4:51, Alex Williamson 写道: On Thu, 15 Aug 2019 21:02:58 +0800 Ben Luo wrote: Currently, VFIO takes a lot of free-then-request-irq actions whenever a VM (with device passthru via VFIO) sets irq affinity or mask/unmask irq. Those actions only change the cookie data of irqaction or

Re: [PATCH 10/22] arm64: dts: qcom: pm8150b: Add pon and adc nodes

2019-08-19 Thread Vinod Koul
On 19-08-19, 10:56, Stephen Boyd wrote: > Quoting Vinod Koul (2019-08-19 10:43:31) > > On 14-08-19, 10:08, Stephen Boyd wrote: > > > > > > > > > > > diff --git a/arch/arm64/boot/dts/qcom/pm8150b.dtsi > > > > b/arch/arm64/boot/dts/qcom/pm8150b.dtsi > > > > index c0a678b0f159..846197bd65cd 100644

Re: [v4, 7/8] cpufreq: mediatek: add opp notification for SVS support

2019-08-19 Thread Viresh Kumar
On 13-08-19, 21:31, Andrew-sh.Cheng wrote: > From: "Andrew-sh.Cheng" > > cpufreq should listen opp notification and do proper actions > when receiving disable and voltage adjustment events, > which are triggered when SVS is enabled. > > Signed-off-by: Andrew-sh.Cheng > --- > drivers/cpufreq/me

Re: [RFC PATCH v2 00/19] RDMA/FS DAX truncate proposal V1,000,002 ;-)

2019-08-19 Thread Dave Chinner
On Mon, Aug 19, 2019 at 08:09:33PM -0700, John Hubbard wrote: > On 8/19/19 6:20 PM, Dave Chinner wrote: > > On Mon, Aug 19, 2019 at 05:05:53PM -0700, John Hubbard wrote: > > > On 8/19/19 2:24 AM, Dave Chinner wrote: > > > > On Mon, Aug 19, 2019 at 08:34:12AM +0200, Jan Kara wrote: > > > > > On Sat

[PATCH] ubifs: fix a memory leak bug

2019-08-19 Thread Wenwen Wang
In __ubifs_node_verify_hmac(), 'hmac' is allocated through kmalloc(). However, it is not deallocated in the following execution if ubifs_node_calc_hmac() fails, leading to a memory leak bug. To fix this issue, free 'hmac' before returning the error. Signed-off-by: Wenwen Wang --- fs/ubifs/auth.c

[PATCH v4 00/10] Allwinner sunxi message box support

2019-08-19 Thread Samuel Holland
This series adds support for the "hardware message box" in sun8i, sun9i, and sun50i SoCs, used for communication with the ARISC management processor (the platform's equivalent of the ARM SCP). The end goal is to use the arm_scpi driver as a client, communicating with firmware running on the AR100 C

[PATCH v4 02/10] clk: sunxi-ng: Mark AR100 clocks as critical

2019-08-19 Thread Samuel Holland
On sun8i, sun9i, and sun50i SoCs, system suspend/resume support requires firmware running on the AR100 coprocessor (the "SCP"). Such firmware can provide additional features, such as thermal monitoring and poweron/off support for boards without a PMIC. Since the AR100 may be running critical firmw

[PATCH v4 06/10] ARM: dts: sunxi: a83t: Add msgbox node

2019-08-19 Thread Samuel Holland
The A83T SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sun8i-a83t.dtsi | 10 ++ 1 file changed, 10 i

[PATCH v4 09/10] arm64: dts: allwinner: h6: Add msgbox node

2019-08-19 Thread Samuel Holland
The H6 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++ 1 file chan

[PATCH v4 05/10] ARM: dts: sunxi: a80: Add msgbox node

2019-08-19 Thread Samuel Holland
The A80 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sun9i-a80.dtsi | 10 ++ 1 file changed, 10 ins

[PATCH v4 01/10] clk: sunxi-ng: Mark msgbox clocks as critical

2019-08-19 Thread Samuel Holland
The msgbox clock is critical because the hardware it controls is shared between Linux and system firmware. The message box may be used by the EL3 secure monitor's PSCI implementation. On 64-bit sunxi SoCs, this is provided by ARM TF-A; 32-bit SoCs use a different implementation. The secure monitor

[PATCH v4 03/10] dt-bindings: mailbox: Add a sunxi message box binding

2019-08-19 Thread Samuel Holland
This mailbox hardware is present in Allwinner sun8i, sun9i, and sun50i SoCs. Add a device tree binding for it. Reviewed-by: Rob Herring Signed-off-by: Samuel Holland --- .../mailbox/allwinner,sunxi-msgbox.yaml | 79 +++ 1 file changed, 79 insertions(+) create mode 100644

[PATCH v4 10/10] [DO NOT MERGE] drivers: firmware: msgbox demo

2019-08-19 Thread Samuel Holland
This driver provides a trivial mailbox client that can be used with the mailbox-demo branch of https://github.com/crust-firmware/crust for verifying the functionality of the sunxi-msgbox driver. This is not a "real" driver, nor a "real" firmware protocol. This driver is not intended to be merged.

[PATCH v4 04/10] mailbox: sunxi-msgbox: Add a new mailbox driver

2019-08-19 Thread Samuel Holland
Allwinner sun8i, sun9i, and sun50i SoCs contain a hardware message box used for communication between the ARM CPUs and the ARISC management coprocessor. The hardware contains 8 unidirectional 4-message FIFOs. Add a driver for it, so it can be used for SCPI or other communication protocols. Signed

[PATCH v4 08/10] arm64: dts: allwinner: a64: Add msgbox node

2019-08-19 Thread Samuel Holland
The A64 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 10 ++ 1 file ch

[PATCH v4 07/10] ARM: dts: sunxi: h3/h5: Add msgbox node

2019-08-19 Thread Samuel Holland
The H3 and H5 SoCs contain a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 10 ++ 1 file changed

[PATCH] ARM: dts: vf610-zii-dev-rev-b: Drop redundant I2C properties

2019-08-19 Thread Andrey Smirnov
Drop redundant I2C properties that are already specified in vf610-zii-dev.dtsi Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Chris Healy Cc: Fabio Estevam Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm/boot/dts/vf610-zii-dev-rev-b.dts | 10 --

Re: [PATCH] Input: hyperv-keyboard: Use in-place iterator API in the channel callback

2019-08-19 Thread dmitry.torok...@gmail.com
On Tue, Aug 20, 2019 at 03:01:23AM +, Dexuan Cui wrote: > Simplify the ring buffer handling with the in-place API. > > Also avoid the dynamic allocation and the memory leak in the channel > callback function. > > Signed-off-by: Dexuan Cui > --- > > Hi Dmitry, can this patch go through Sasha

Re: [PATCH v1 1/2] dt-bindings: phy: intel-emmc-phy: Add new compatible for LGM eMMC PHY

2019-08-19 Thread Ramuthevar, Vadivel MuruganX
On 20/8/2019 3:27 AM, Rob Herring wrote: On Sun, Aug 18, 2019 at 10:44 PM Ramuthevar,Vadivel MuruganX wrote: From: Ramuthevar Vadivel Murugan Add a new compatible to use the host controller driver with the eMMC PHY on Intel's Lightning Mountain SoC. Signed-off-by: Ramuthevar Vadivel Murugan

Re: [PATCH] powerpc: Don't add -mabi= flags when building with Clang

2019-08-19 Thread Nathan Chancellor
On Mon, Aug 19, 2019 at 04:19:31AM -0500, Segher Boessenkool wrote: > On Sun, Aug 18, 2019 at 12:13:21PM -0700, Nathan Chancellor wrote: > > When building pseries_defconfig, building vdso32 errors out: > > > > error: unknown target ABI 'elfv1' > > > > Commit 4dc831aa8813 ("powerpc: Fix compilin

[PATCHv2 2/2] i915: do not leak module ref counter

2019-08-19 Thread Sergey Senozhatsky
Always put_filesystem() in i915_gemfs_init(). Signed-off-by: Sergey Senozhatsky --- - v2: rebased (i915 does not remount gemfs anymore) drivers/gpu/drm/i915/gem/i915_gemfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/gem/i915_gemfs.c b/drivers/gpu/drm/i915/gem/i9

[PATCH] vsock: Fix a lockdep warning in __vsock_release()

2019-08-19 Thread Dexuan Cui
Lockdep is unhappy if two locks from the same class are held. Fix the below warning by making __vsock_release() non-recursive -- this patch is kind of ugly, but it looks to me there is not a better way to deal with the problem here. WARNING: possible r

[PATCH] ARM: dts: vf610-zii-scu4-aib: Drop "rs485-rts-delay" property

2019-08-19 Thread Andrey Smirnov
LPUART driver does not support specifying "rs485-rts-delay" property. Drop it. Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Chris Healy Cc: Fabio Estevam Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm/boot/dts/vf610-zii-scu4-aib.dts | 2 -- 1 file ch

Re: [RFC PATCH v2 00/19] RDMA/FS DAX truncate proposal V1,000,002 ;-)

2019-08-19 Thread John Hubbard
On 8/19/19 6:20 PM, Dave Chinner wrote: On Mon, Aug 19, 2019 at 05:05:53PM -0700, John Hubbard wrote: On 8/19/19 2:24 AM, Dave Chinner wrote: On Mon, Aug 19, 2019 at 08:34:12AM +0200, Jan Kara wrote: On Sat 17-08-19 12:26:03, Dave Chinner wrote: On Fri, Aug 16, 2019 at 12:05:28PM -0700, Ira W

Re: [PATCH v1 2/2] phy: intel-lgm-emmc: Add support for eMMC PHY

2019-08-19 Thread Ramuthevar, Vadivel MuruganX
On 20/8/2019 12:06 AM, Andy Shevchenko wrote: On Mon, Aug 19, 2019 at 11:44:16AM +0800, Ramuthevar,Vadivel MuruganX wrote: From: Ramuthevar Vadivel Murugan Adds support for eMMC PHY on Intel's Lightning Mountain SoC. Adds -> Add. Thanks Andy, agreed. +/* eMMC phy register definitions */ +#d

[PATCH] ARM: dts: vf610-zii-cfu1: Slow I2C0 down to 100kHz

2019-08-19 Thread Andrey Smirnov
Fiber-optic module attached to the bus is only rated to work at 100kHz, so drop the bus frequncy to accomodate that. Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Chris Healy Cc: Fabio Estevam Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm/boot/dts/vf

[PATCH] Drivers: hv: vmbus: Remove the unused "tsc_page" from struct hv_context

2019-08-19 Thread Dexuan Cui
This field is no longer used after the commit 63ed4e0c67df ("Drivers: hv: vmbus: Consolidate all Hyper-V specific clocksource code") , because it's replaced by the global variable "struct ms_hyperv_tsc_page *tsc_pg;" (now, the variable is in drivers/clocksource/hyperv_timer.c). Fixes: 63ed4e0c67d

Re: [v2 PATCH] RISC-V: Optimize tlb flush path.

2019-08-19 Thread h...@infradead.org
On Mon, Aug 19, 2019 at 05:47:35PM -0700, Atish Patra wrote: > In RISC-V, tlb flush happens via SBI which is expensive. > If the target cpumask contains a local hartid, some cost > can be saved by issuing a local tlb flush as we do that > in OpenSBI anyways. There is also no need of SBI call if > c

[PATCH] clk: add include guard to clk-conf.h

2019-08-19 Thread Masahiro Yamada
Add a header include guard just in case. Signed-off-by: Masahiro Yamada --- include/linux/clk/clk-conf.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/clk/clk-conf.h b/include/linux/clk/clk-conf.h index 85f8cf9d1226..eae9652c70cd 100644 --- a/include/linux/clk/clk-conf.

Re: regression in ath10k dma allocation

2019-08-19 Thread Christoph Hellwig
Tobias, plase try this patch: -- >From 88c590a2ecafc8279388f25bfbe1ead8ea3507a6 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Tue, 20 Aug 2019 11:45:49 +0900 Subject: dma-direct: fix zone selection after an unaddressable CMA allocation The new dma_alloc_contiguous hides if we allocate C

Re: [PATCH v10 2/7] powerpc/mce: Fix MCE handling for huge pages

2019-08-19 Thread Nicholas Piggin
Santosh Sivaraj's on August 20, 2019 11:47 am: > Hi Nick, > > Nicholas Piggin writes: > >> Santosh Sivaraj's on August 15, 2019 10:39 am: >>> From: Balbir Singh >>> >>> The current code would fail on huge pages addresses, since the shift would >>> be incorrect. Use the correct page shift value

[PATCH] ubifs: fix a memory leak bug

2019-08-19 Thread Wenwen Wang
In read_znode(), the indexing node 'idx' is allocated by kmalloc(). However, it is not deallocated in the following execution if ubifs_node_check_hash() fails, leading to a memory leak bug. To fix this issue, free 'idx' before returning the error. Signed-off-by: Wenwen Wang --- fs/ubifs/tnc_misc

[PATCH] Input: hyperv-keyboard: Use in-place iterator API in the channel callback

2019-08-19 Thread Dexuan Cui
Simplify the ring buffer handling with the in-place API. Also avoid the dynamic allocation and the memory leak in the channel callback function. Signed-off-by: Dexuan Cui --- Hi Dmitry, can this patch go through Sasha's hyperv tree: https://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux.g

Re: [PATCH v2 0/9] Exynos Adaptive Supply Voltage support

2019-08-19 Thread Viresh Kumar
On 19-08-19, 15:39, Sylwester Nawrocki wrote: > Unfortunately not, the patch set as I see it is another way of updating > an OPP after it was parsed from DT. OPP remove/add could work equally > well in our use case. Adding OPPs dynamically has limitations, you can't set many values which are ot

Re: [PATCH 2/2 v2] mm/zsmalloc.c: Fix race condition in zs_destroy_pool

2019-08-19 Thread Sergey Senozhatsky
On (08/09/19 11:17), Henry Burns wrote: > In zs_destroy_pool() we call flush_work(&pool->free_work). However, we > have no guarantee that migration isn't happening in the background > at that time. > > Since migration can't directly free pages, it relies on free_work > being scheduled to free the

[PATCH] HID: hyperv: Use in-place iterator API in the channel callback

2019-08-19 Thread Dexuan Cui
Simplify the ring buffer handling with the in-place API. Also avoid the dynamic allocation and the memory leak in the channel callback function. Signed-off-by: Dexuan Cui --- Hi Jiri, Benjamin, can this patch go through Sasha's hyperv tree: https://git.kernel.org/pub/scm/linux/kernel/git/hyperv

Re: [PATCH 1/2 v2] mm/zsmalloc.c: Migration can leave pages in ZS_EMPTY indefinitely

2019-08-19 Thread Sergey Senozhatsky
On (08/09/19 11:17), Henry Burns wrote: > In zs_page_migrate() we call putback_zspage() after we have finished > migrating all pages in this zspage. However, the return value is ignored. > If a zs_free() races in between zs_page_isolate() and zs_page_migrate(), > freeing the last object in the zspa

Re: [PATCH v3 bpf-next 1/4] tracing/probe: Add PERF_EVENT_IOC_QUERY_PROBE ioctl

2019-08-19 Thread Alexei Starovoitov
On Mon, Aug 19, 2019 at 7:34 PM Daniel Xu wrote: > > Ah yes, sorry. Will add that. Also please fix build errors. It looks like buildbot is not happy about few things.

  1   2   3   4   5   6   7   8   9   10   >