Re: [PATCH 5/5] cpufreq: qcom-hw: Move driver initialisation earlier

2019-09-18 Thread Sudeep Holla
On Wed, Sep 18, 2019 at 02:39:38PM +0530, Viresh Kumar wrote: > On 17-09-19, 10:34, Sudeep Holla wrote: > > On Thu, Sep 12, 2019 at 04:02:34AM +0530, Amit Kucheria wrote: > > > -device_initcall(qcom_cpufreq_hw_init); > > > +postcore_initcall(qcom_cpufreq_hw_init); > > > > I am fine with core framew

Re: [PATCH v3 04/26] PCI: endpoint: Use PCI_STD_NUM_BARS

2019-09-18 Thread Andrew Murray
On Mon, Sep 16, 2019 at 11:41:36PM +0300, Denis Efremov wrote: > To iterate through all possible BARs, loop conditions refactored to the > *number* of BARs "i < PCI_STD_NUM_BARS", instead of the index of the last > valid BAR "i <= BAR_5". This is more idiomatic C style and allows to avoid > the fen

RE: [EXT] Re: [v4 2/2] clk: ls1028a: Add clock driver for Display output interface

2019-09-18 Thread Wen He
> -Original Message- > From: Stephen Boyd > Sent: 2019年9月17日 4:27 > To: Mark Rutland ; Michael Turquette > ; Rob Herring ; Wen He > ; devicet...@vger.kernel.org; linux-...@vger.kernel.org; > linux-de...@linux.nxdi.nxp.com; linux-kernel@vger.kernel.org > Cc: Leo Li ; liviu.du...@arm.com;

Re: [PATCH v2 1/1] platform/x86/intel_cht_int33fe: Split code to USB TypeB and TypeC variants

2019-09-18 Thread Hans de Goede
Hi, On 17-09-2019 21:45, Yauhen Kharuzhy wrote: Existing intel_cht_int33fe ACPI pseudo-device driver assumes that hardware has TypeC connector and register related devices described as I2C connections in the _CRS resource. There is at least one hardware (Lenovo Yoga Book YB1-91L/F) with micro U

Re: [RFC] ARM: dts: omap36xx: Enable thermal throttling

2019-09-18 Thread Viresh Kumar
On 13-09-19, 00:33, Daniel Lezcano wrote: > > Hi Adam, > > On 12/09/2019 23:19, Adam Ford wrote: > > On Thu, Sep 12, 2019 at 4:12 PM Daniel Lezcano > > wrote: > >> > >> On 12/09/2019 20:30, Adam Ford wrote: > >>> The thermal sensor in the omap3 family isn't accurate, but it's > >>> better than n

[PATCH v2] drivers:staging:rtl8723bs: Removed unneeded variables

2019-09-18 Thread Aliasgar Surti
From: Aliasgar Surti coccicheck reported warning for unneeded variable used. This patch removes the unneeded variables. Signed-off-by: Aliasgar Surti --- v2: removed unneeded functions and replaced them with NULL in function array. --- drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 54 +++--

Re: [PATCH] staging: exfat: add exfat filesystem code to

2019-09-18 Thread Dan Carpenter
On Wed, Sep 18, 2019 at 06:01:09PM +0900, Ju Hyung Park wrote: > On Wed, Sep 18, 2019 at 5:33 PM Greg KH wrote: > > He did? I do not see a patch anywhere, what is the message-id of it? > > I'm just repeating myself at this point, but again, I'm more than > willing to work on a patch. > I just wa

Re: [PATCH V7 1/3] mm/hotplug: Reorder memblock_[free|remove]() calls in try_remove_memory()

2019-09-18 Thread Anshuman Khandual
On 09/16/2019 07:14 AM, Balbir Singh wrote: > > > On 3/9/19 7:45 pm, Anshuman Khandual wrote: >> Memory hot remove uses get_nid_for_pfn() while tearing down linked sysfs > > I could not find this path in the code, the only called for get_nid_for_pfn() > was register_mem_sect_under_node() when

[PATCH v8 0/11] Add mt7629 and fix mt7628 pwm

2019-09-18 Thread Sam Shih
Changes since v8: 1. Fix warning and build-error for patch 04/11 Changes since v7: 1. PATCH v7 10/11: Add a missed Reviewed-by tag Changes since v6: 1. Due to we can use fixed-clock in DT We removed has_clks and fixed-clock properties Changes since v5: - Follow reviewer's comments:

Re: [PATCH 5/5] cpufreq: qcom-hw: Move driver initialisation earlier

2019-09-18 Thread Viresh Kumar
On 18-09-19, 10:17, Sudeep Holla wrote: > Ah no, I am not referring to building as module. As you mention, that may > work just fine. I was referring to timing dependency during boot. The idea > is minimize the number of such initcall dependency. They should all work > fine even as modules and shou

Re: [PATCH net-next] net: ethernet: ti: use devm_platform_ioremap_resource() to simplify code

2019-09-18 Thread Grygorii Strashko
On 17/09/2019 21:35, Geert Uytterhoeven wrote: Hi YueHaibing, On Wed, Aug 21, 2019 at 2:51 PM YueHaibing wrote: Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/net/ethernet/ti

Re: [PATCH] scripts/sphinx-pre-install: add how to exit virtualenv usage message

2019-09-18 Thread Mauro Carvalho Chehab
Hi Shuah, Em Tue, 17 Sep 2019 16:48:05 -0600 Shuah Khan escreveu: > Add usage message on how to exit the virtualenv after documentation > work is done. Good idea. > > Signed-off-by: Shuah Khan > --- > scripts/sphinx-pre-install | 8 > 1 file changed, 8 insertions(+) > > diff --git

[PATCH v8 03/11] pwm: mediatek: remove a property "has-clks"

2019-09-18 Thread Sam Shih
We can use fixed-clock to repair mt7628 pwm during configure from userspace. The SoC is legacy MIPS and has no complex clock tree. Due to we can get clock frequency for period calculation from DT fixed-clock, so we can remove has-clock property, and directly use devm_clk_get and clk_get_rate. Sign

[PATCH v8 09/11] arm: dts: mt7623: add a property "num-pwms" for PWM

2019-09-18 Thread Sam Shih
From: Ryder Lee This adds a property "num-pwms" for PWM controller. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih --- arch/arm/boot/dts/mt7623.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index a79f0b6c3429..208e0d19

[PATCH v8 07/11] dt-bindings: pwm: pwm-mediatek: add a property "num-pwms"

2019-09-18 Thread Sam Shih
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: Uwe Kleine-König --- Changes since v6: Follow reviewers's comments: - The s

[PATCH v8 04/11] pwm: mediatek: allocate the clks array dynamically

2019-09-18 Thread Sam Shih
Instead of using fixed size of arrays, allocate the memory for them based on the information we get from the DT. Also remove the check for num_pwms, due to dynamically allocate pwm should not cause array index out of bound. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih Reviewed-by: Uwe Klei

[PATCH v8 01/11] pwm: mediatek: add a property "num-pwms"

2019-09-18 Thread Sam Shih
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 Reviewed-by: Uwe Kleine-König --- Changes since v6: Add a Reviewed-by tag Changes since v5: Check num-pwms

[PATCH v8 11/11] arm: dts: mediatek: add mt7629 pwm support

2019-09-18 Thread Sam Shih
This adds pwm support for MT7629. Signed-off-by: Sam Shih --- arch/arm/boot/dts/mt7629.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/mt7629.dtsi b/arch/arm/boot/dts/mt7629.dtsi index 9608bc2ccb3f..493be9a9453b 100644 --- a/arch/arm/boot/dts/mt7629.d

[PATCH v8 02/11] pwm: mediatek: droping the check for of_device_get_match_data

2019-09-18 Thread Sam Shih
This patch drop the check for of_device_get_match_data. Due to the only way call driver probe is compatible match. The .data pointer which point to the SoC specify data is directly set by driver, and it should not be NULL in our case. We can safety remove the check for of_device_get_match_data. Si

[PATCH v8 10/11] dt-bindings: pwm: update bindings for MT7629 SoC

2019-09-18 Thread Sam Shih
From: Ryder Lee This updates bindings for MT7629 pwm controller. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih Reviewed-by: Rob Herring Reviewed-by: Matthias Brugger --- Changes since v7: - add a missed Reviewed-by tag back from v1: https://patchwork.kernel.org/patch/10769381/ Changes sin

[PATCH v8 06/11] pwm: mediatek: update license and switch to SPDX tag

2019-09-18 Thread Sam Shih
Add SPDX identifiers to pwm-mediatek.c Update license to GNU General Public License v2.0 Signed-off-by: Ryder Lee Signed-off-by: Sam Shih Reviewed-by: Uwe Kleine-König --- Changes since v6: Add a Reviewed-by tag Changes since v5: - Follow reviewers's comments The license stuff is a separate ch

[PATCH v8 08/11] arm64: dts: mt7622: add a property "num-pwms" for PWM

2019-09-18 Thread Sam Shih
From: Ryder Lee This adds a property "num-pwms" for PWM controller. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622

[PATCH v8 05/11] pwm: mediatek: use pwm_mediatek as common prefix

2019-09-18 Thread 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 Acked-by: Uwe Kleine-König --- Changes since v6: Add an Acked-by tag Changes since v5: - Follow reviewers's comments The license stuff is a separate change

[PATCH] media: platform: Use devm_platform_ioremap_resource() in two functions

2019-09-18 Thread Markus Elfring
From: Markus Elfring Date: Wed, 18 Sep 2019 11:20:48 +0200 Simplify these function implementations by using a known wrapper function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c | 8 +---

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

2019-09-18 Thread Ludovic BARRE
hi Ulf Just a "gentleman ping" about this series and https://lkml.org/lkml/2019/9/4/747 Regards Ludo Le 9/5/19 à 2:21 PM, Ludovic Barre a écrit : From: Ludovic Barre This patch series adds busy detect for stm32 sdmmc variant. Some adaptations are required: -On sdmmc the data timer is started

Re: Linux 5.3-rc8

2019-09-18 Thread Rasmus Villemoes
On 17/09/2019 22.58, Linus Torvalds wrote: > Side note, and entirely unrelated to this particular problem, but > _because_ I was looking at the entropy init and sources of randomness > we have, I notice that we still don't use the ToD clock as a source. And unrelated to the non-use of the RTC (whi

Re: [PATCH net-next] net: ethernet: ti: use devm_platform_ioremap_resource() to simplify code

2019-09-18 Thread Geert Uytterhoeven
Hi Grygorii, On Wed, Sep 18, 2019 at 11:29 AM Grygorii Strashko wrote: > On 17/09/2019 21:35, Geert Uytterhoeven wrote: > > On Wed, Aug 21, 2019 at 2:51 PM YueHaibing wrote: > >> Use devm_platform_ioremap_resource() to simplify the code a bit. > >> This is detected by coccinelle. > >> > >> Repor

Re: [RFC] ARM: dts: omap36xx: Enable thermal throttling

2019-09-18 Thread H. Nikolaus Schaller
Hi, > Am 18.09.2019 um 11:24 schrieb Viresh Kumar : > > On 13-09-19, 00:33, Daniel Lezcano wrote: >> >> Hi Adam, >> >> On 12/09/2019 23:19, Adam Ford wrote: >>> On Thu, Sep 12, 2019 at 4:12 PM Daniel Lezcano >>> wrote: On 12/09/2019 20:30, Adam Ford wrote: > The thermal sensor i

Re: [RFC] ARM: dts: omap36xx: Enable thermal throttling

2019-09-18 Thread Daniel Lezcano
On 18/09/2019 11:24, Viresh Kumar wrote: > On 13-09-19, 00:33, Daniel Lezcano wrote: >> >> Hi Adam, >> >> On 12/09/2019 23:19, Adam Ford wrote: >>> On Thu, Sep 12, 2019 at 4:12 PM Daniel Lezcano >>> wrote: On 12/09/2019 20:30, Adam Ford wrote: > The thermal sensor in the omap3 family

[PATCH] ASoC: atmel_ssc_dai: Remove wrong spinlock usage

2019-09-18 Thread Gregory CLEMENT
A potential bug was reported in the email "[BUG] atmel_ssc_dai: a possible sleep-in-atomic bug in atmel_ssc_shutdown"[1] Indeed in the function atmel_ssc_shutdown() free_irq() was called in a critical section protected by spinlock. However this spinlock is only used in atmel_ssc_shutdown() and at

Re: [PATCH v2 2/3] dt-bindings: clk: qcom: Add YAML schemas for the GCC clock bindings

2019-09-18 Thread Taniya Das
Hello Rob, Thank you for your review comments. On 8/20/2019 12:44 AM, Rob Herring wrote: On Mon, Aug 19, 2019 at 11:38 AM Taniya Das wrote: The GCC clock provider have a bunch of generic properties that are needed in a device tree. Add a YAML schemas for those. Also update the compatible for

[PATCH 1/3] firmware/dmi_scan: Add dmi_save_release to save releases fields

2019-09-18 Thread Erwan Velu
In DMI type 0, there is several fields that encodes a release. The dmi_save_release() function have the logic to check if the field is valid. If so, it reports the actual value. Signed-off-by: Erwan Velu --- drivers/firmware/dmi_scan.c | 26 ++ 1 file changed, 26 insertio

Re: [PATCH V6 1/2] dt-bindings: mailbox: add binding doc for the ARM SMC/HVC mailbox

2019-09-18 Thread Andre Przywara
On Wed, 18 Sep 2019 00:27:00 -0500 Jassi Brar wrote: Hi, > On Tue, Sep 17, 2019 at 12:31 PM Andre Przywara > wrote: > > > > On Mon, 16 Sep 2019 09:44:37 + > > Peng Fan wrote: > > > > Hi, > > > > > From: Peng Fan > > > > > > The ARM SMC/HVC mailbox binding describes a firmware interface

[PATCH 3/3] firmware/dmi: Report DMI Embedded Firmware release

2019-09-18 Thread Erwan Velu
Servers that have a BMC encodes the release version of their firmware in the "Embedded Controller Firmware {Major|Minor} Release" fields of Type 0. This information is useful to know which release of the BMC is actually running. It could be used for some quirks, debugging sessions or inventory tas

[PATCH 2/3] firmware/dmi: Report DMI Bios release

2019-09-18 Thread Erwan Velu
Some vendors like HPe or Dell, encodes the release version of their BIOS in the "System BIOS {Major|Minor} Release" fields of Type 0. This information is useful to know which release of the bios is actually running. It could be used for some quirks, debugging sessions or inventory tasks. This pa

Re: [PATCH] net: sysctl: cleanup net_sysctl_init error exit paths

2019-09-18 Thread Nicolas Dichtel
Le 17/09/2019 à 17:53, George G. Davis a écrit : [snip] > Ping, "Linux 5.3" kernel has been released [1] and it appears that the > 5.4 merge window is open. The patch [2] remains unchanged since my initial > post. Please consider applying it. net-next is closed: http://vger.kernel.org/~davem/net-n

Re: [PATCH v2 3/3] clk: qcom: Add Global Clock controller (GCC) driver for SC7180

2019-09-18 Thread Taniya Das
Hi Stephen, Thanks for your review. On 8/21/2019 11:31 PM, Stephen Boyd wrote: Quoting Taniya Das (2019-08-19 09:37:48) diff --git a/drivers/clk/qcom/Kconfig b/drivers/clk/qcom/Kconfig index e1ff83cc361e..ebd4902afd9f 100644 --- a/drivers/clk/qcom/Kconfig +++ b/drivers/clk/qcom/Kconfig @@ -322

Re: [PATCH] ASoC: atmel_ssc_dai: Remove wrong spinlock usage

2019-09-18 Thread Alexandre Belloni
On 18/09/2019 11:41:14+0200, Gregory CLEMENT wrote: > A potential bug was reported in the email "[BUG] atmel_ssc_dai: a > possible sleep-in-atomic bug in atmel_ssc_shutdown"[1] > > Indeed in the function atmel_ssc_shutdown() free_irq() was called in a > critical section protected by spinlock. > >

[PATCH v3 0/3] Add Global Clock controller (GCC) driver for SC7180

2019-09-18 Thread Taniya Das
[v3] * Remove old documentation and fix comments for binding. * Cleanup few CRITICAL clocks and add comments for the CRITICAL clocks. * Add reference clocks for UFS & USB. [v2] * Update the DFS macro for RCG to reflect the hw init similar to clock name. * Update the Documentation bindin

[PATCH v3 1/3] clk: qcom: rcg: update the DFS macro for RCG

2019-09-18 Thread Taniya Das
Update the init data name for each of the dynamic frequency switch controlled clock associated with the RCG clock name, so that it can be generated as per the hardware plan. Thus update the macro accordingly. Signed-off-by: Taniya Das --- drivers/clk/qcom/clk-rcg.h| 2 +- drivers/clk/qcom/g

[PATCH v3 2/3] dt-bindings: clk: qcom: Add YAML schemas for the GCC clock bindings

2019-09-18 Thread Taniya Das
The GCC clock provider have a bunch of generic properties that are needed in a device tree. Add a YAML schemas for those. Also update the compatible for SC7180 along with example for clocks & clock-names. Signed-off-by: Taniya Das --- .../devicetree/bindings/clock/qcom,gcc.txt| 94 -

[PATCH v3] KVM: X86: Fix userspace set invalid CR4

2019-09-18 Thread Wanpeng Li
From: Wanpeng Li Reported by syzkaller: WARNING: CPU: 0 PID: 6544 at /home/kernel/data/kvm/arch/x86/kvm//vmx/vmx.c:4689 handle_desc+0x37/0x40 [kvm_intel] CPU: 0 PID: 6544 Comm: a.out Tainted: G OE 5.3.0-rc4+ #4 RIP: 0010:handle_desc+0x37/0x40 [kvm_intel]

[PATCH v3 3/3] clk: qcom: Add Global Clock controller (GCC) driver for SC7180

2019-09-18 Thread Taniya Das
Add support for the global clock controller found on SC7180 based devices. This should allow most non-multimedia device drivers to probe and control their clocks. Signed-off-by: Taniya Das --- drivers/clk/qcom/Kconfig |9 + drivers/clk/qcom/Makefile |1 + drivers/clk/qcom/gcc-sc

[PATCH] [RESEND] vmscan.c: add a sysctl entry for controlling memory reclaim IO congestion_wait length

2019-09-18 Thread Lin Feng
This sysctl is named as mm_reclaim_congestion_wait_jiffies, default to HZ/10 as unchanged to old codes. It is in jiffies unit and can be set in range between [1, 100], so refers to CONFIG_HZ before tuning. In a high-end production environment(all high iops ssds) we found that CPU iowait spikes a l

Re: [PATCH] staging: exfat: add exfat filesystem code to

2019-09-18 Thread Ju Hyung Park
Hi Dan, On Wed, Sep 18, 2019 at 6:27 PM Dan Carpenter wrote: > Put it in drivers/staging/sdfat/. It'll conflict with the current exfat staging drivers. And moreover, I don't think it makes sense to use sdfat naming in mainline. Samsung uses it since it handles all fat filesystems. >From what I

[PATCH] mfd: mt6360: add pmic mt6360 driver

2019-09-18 Thread Gene Chen
From: Gene Chen Add mfd driver for mt6360 pmic chip include Battery Charger/USB_PD/Flash LED/RGB LED/LDO/Buck Signed-off-by: Gene Chen --- drivers/mfd/Kconfig | 12 ++ drivers/mfd/Makefile | 1 + drivers/mfd/mt6360-core.c | 463 ++ 3 fi

Re: [PATCH v2 2/3] KVM: X86: Fix userspace set broken combinations of CPUID and CR4

2019-09-18 Thread Wanpeng Li
On Wed, 18 Sep 2019 at 01:32, Sean Christopherson wrote: > > On Tue, Sep 17, 2019 at 04:16:25PM +0800, Wanpeng Li wrote: > > From: Wanpeng Li > > > > Reported by syzkaller: > > > > WARNING: CPU: 0 PID: 6544 at > > /home/kernel/data/kvm/arch/x86/kvm//vmx/vmx.c:4689 handle_desc+0x37/0x40 >

RE: [RFC PATCH v3 4/6] psci: Add hvc call service for ptp_kvm.

2019-09-18 Thread Jianyong Wu (Arm Technology China)
Hi Paolo, > -Original Message- > From: Paolo Bonzini > Sent: Wednesday, September 18, 2019 4:26 PM > To: Jianyong Wu (Arm Technology China) ; > net...@vger.kernel.org; yangbo...@nxp.com; john.stu...@linaro.org; > t...@linutronix.de; sean.j.christopher...@intel.com; m...@kernel.org; > rich

Re: [PATCH v4 1/2] rcu/tree: Add basic support for kfree_rcu() batching

2019-09-18 Thread Uladzislau Rezki
> Recently a discussion about stability and performance of a system > involving a high rate of kfree_rcu() calls surfaced on the list [1] > which led to another discussion how to prepare for this situation. > > This patch adds basic batching support for kfree_rcu(). It is "basic" > because we do n

Re: [PATCH] ASoC: atmel_ssc_dai: Remove wrong spinlock usage

2019-09-18 Thread Gregory CLEMENT
Hi Alex, > On 18/09/2019 11:41:14+0200, Gregory CLEMENT wrote: >> A potential bug was reported in the email "[BUG] atmel_ssc_dai: a >> possible sleep-in-atomic bug in atmel_ssc_shutdown"[1] >> >> Indeed in the function atmel_ssc_shutdown() free_irq() was called in a >> critical section protected

Re: [PATCH V6 2/2] mailbox: introduce ARM SMC based mailbox

2019-09-18 Thread Andre Przywara
On Wed, 18 Sep 2019 09:09:25 + Peng Fan wrote: Hi, > > Subject: Re: [PATCH V6 2/2] mailbox: introduce ARM SMC based mailbox > > > > On Mon, 16 Sep 2019 09:44:41 + > > Peng Fan wrote: > > > > Hi, > > > > looks quite good now, some smaller comments below. > > I think the only thing lef

Re: [PATCH 3/4] seccomp: avoid overflow in implicit constant conversion

2019-09-18 Thread Tyler Hicks
On 2019-09-18 10:48:32, Christian Brauner wrote: > USER_NOTIF_MAGIC is assigned to int variables in this test so set it to > INT_MAX > to avoid warnings: > > seccomp_bpf.c: In function ‘user_notification_continue’: > seccomp_bpf.c:3088:26: warning: overflow in implicit constant conversion > [-Wo

Re: linux-next: Tree for Sep 16 (kernel/sched/core.c)

2019-09-18 Thread Patrick Bellasi
On Wed, Sep 18, 2019 at 07:05:53 +0100, Ingo Molnar wrote... > * Randy Dunlap wrote: > >> On 9/17/19 6:38 AM, Patrick Bellasi wrote: >> > >> > On Tue, Sep 17, 2019 at 08:52:42 +0100, Ingo Molnar wrote... >> > >> >> * Randy Dunlap wrote: >> >> >> >>> On 9/16/19 3:38 PM, Mark Brown wrote: >> >

[PATCH v2] ASoC: atmel_ssc_dai: Remove wrong spinlock usage

2019-09-18 Thread Gregory CLEMENT
A potential bug was reported in the email "[BUG] atmel_ssc_dai: a possible sleep-in-atomic bug in atmel_ssc_shutdown"[1] Indeed in the function atmel_ssc_shutdown() free_irq() was called in a critical section protected by spinlock. However this spinlock is only used in atmel_ssc_shutdown() and at

Re: [PATCH v2 1/2] dt-bindings: sound: Convert Samsung I2S controller to dt-schema

2019-09-18 Thread Maciej Falkowski
On 9/17/19 3:05 PM, Rob Herring wrote: > On Tue, Sep 17, 2019 at 7:05 AM Maciej Falkowski > wrote: >> Convert Samsung I2S controller to newer dt-schema format. >> >> Signed-off-by: Maciej Falkowski >> Signed-off-by: Marek Szyprowski >> --- >> v2: >> - Added missing Signed-off-by certificate >

Re: [PATCH] staging: exfat: add exfat filesystem code to

2019-09-18 Thread Dan Carpenter
On Wed, Sep 18, 2019 at 06:53:49PM +0900, Ju Hyung Park wrote: > Hi Dan, > > On Wed, Sep 18, 2019 at 6:27 PM Dan Carpenter > wrote: > > Put it in drivers/staging/sdfat/. > > It'll conflict with the current exfat staging drivers. Use Kconfig. > And moreover, I don't think it makes sense to use

[PATCH][next] can: fix resource leak of skb on error return paths

2019-09-18 Thread Colin King
From: Colin Ian King Currently the error return paths do not free skb and this results in a memory leak. Fix this by freeing them before the return. Addresses-Coverity: ("Resource leak") Fixes: 9d71dd0c7009 ("can: add support of SAE J1939 protocol") Signed-off-by: Colin Ian King --- net/can/j1

Re: [PATCH v3 bpf-next 07/14] samples: bpf: add makefile.target for separate CC target build

2019-09-18 Thread Ivan Khoronzhuk
On Tue, Sep 17, 2019 at 04:19:40PM -0700, Andrii Nakryiko wrote: On Mon, Sep 16, 2019 at 3:58 AM Ivan Khoronzhuk wrote: The makefile.target is added only and will be used in typo: Makefile sample/bpf/Makefile later in order to switch cross-compiling on CC on -> to from HOSTCC environme

Re: [PATCH v2] drivers:staging:rtl8723bs: Removed unneeded variables

2019-09-18 Thread Dan Carpenter
On Wed, Sep 18, 2019 at 02:55:49PM +0530, Aliasgar Surti wrote: > From: Aliasgar Surti > > coccicheck reported warning for unneeded variable used. > > This patch removes the unneeded variables. > > Signed-off-by: Aliasgar Surti > --- > v2: removed unneeded functions and replaced them with NULL

Applied "ASoC: atmel_ssc_dai: Remove wrong spinlock usage" to the asoc tree

2019-09-18 Thread Mark Brown
The patch ASoC: atmel_ssc_dai: Remove wrong spinlock usage has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) a

[PATCH] mfd: mt6360: add pmic mt6360 driver

2019-09-18 Thread Gene Chen
From: Gene Chen Add mfd driver for mt6360 pmic chip include Battery Charger/USB_PD/Flash LED/RGB LED/LDO/Buck Signed-off-by: Gene Chen +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +/* reg 0 -> 0 ~ 7 */ +#define MT6360_CHG_TREG_EVT

Re: Linux 5.3-rc8

2019-09-18 Thread Willy Tarreau
On Wed, Sep 18, 2019 at 11:33:39AM +0200, Rasmus Villemoes wrote: > On 17/09/2019 22.58, Linus Torvalds wrote: > > Side note, and entirely unrelated to this particular problem, but > > _because_ I was looking at the entropy init and sources of randomness > > we have, I notice that we still don't us

Re: net/dst_cache.c: preemption bug in net/dst_cache.c

2019-09-18 Thread Bharath Vedartham
On Mon, Sep 09, 2019 at 05:48:25PM +0800, Xin Long wrote: > On Fri, Aug 23, 2019 at 3:58 PM Bharath Vedartham > wrote: > > > > Hi all, > > > > I just want to bring attention to the syzbot bug [1] > > > > Even though syzbot claims the bug to be in net/tipc, I feel it is in > > net/dst_cache.c. Ple

Re: [PATCH v3 bpf-next 08/14] samples: bpf: makefile: base target programs rules on Makefile.target

2019-09-18 Thread Ivan Khoronzhuk
On Tue, Sep 17, 2019 at 04:28:01PM -0700, Andrii Nakryiko wrote: On Mon, Sep 16, 2019 at 3:58 AM Ivan Khoronzhuk wrote: Please don't prepend "samples: bpf: makefile:" to patches, "samples/bpf: " is a typical we've used for BPF samples changes. Ok. The main reason for that - HOSTCC and

Re: [PATCH] irqchip/gic-v3: Fix GIC_LINE_NR accessor

2019-09-18 Thread Marc Zyngier
On 18/09/2019 07:57, Zenghui Yu wrote: > As per GIC spec, ITLinesNumber indicates the maximum SPI INTID that > the GIC implementation supports. And the maximum SPI INTID an > implementation might support is 1019 (field value 1). > > max(GICD_TYPER_SPIS(...), 1020) is not what we actually want

Re: [RFC PATCH v3 4/6] psci: Add hvc call service for ptp_kvm.

2019-09-18 Thread Paolo Bonzini
On 18/09/19 11:57, Jianyong Wu (Arm Technology China) wrote: > Hi Paolo, > >> On 18/09/19 10:07, Jianyong Wu wrote: >>> + case ARM_SMCCC_VENDOR_HYP_KVM_PTP_FUNC_ID: >>> + getnstimeofday(ts); >> >> This is not Y2038-safe. Please use ktime_get_real_ts64 instead, and split >> the >> 64-

Re: Linux 5.3-rc8

2019-09-18 Thread Alexander E. Patrakov
18.09.2019 15:16, Willy Tarreau пишет: We've already discussed that point a few times. The issue is that bootloaders and/or BIOSes tend to wipe everything. Ideally we should let the boot loader collect entropy from the DDR training phase since it's a period where noise is observed. It's also the

Re: [PATCH 0/9] added helper macros to remove duplicate code from probe functions of the platform drivers

2019-09-18 Thread Vinod Koul
On 15-09-19, 12:30, Satendra Singh Thakur wrote: > 1. For most of the platform drivers's probe include following steps > > -memory allocation for driver's private structure > -getting io resources > -io remapping resources > -getting irq number > -registering irq > -setting driver's private data >

Re: [PATCH v3 bpf-next 09/14] samples: bpf: makefile: use own flags but not host when cross compile

2019-09-18 Thread Ivan Khoronzhuk
On Tue, Sep 17, 2019 at 04:42:07PM -0700, Andrii Nakryiko wrote: On Mon, Sep 16, 2019 at 3:59 AM Ivan Khoronzhuk wrote: While compile natively, the hosts cflags and ldflags are equal to ones used from HOSTCFLAGS and HOSTLDFLAGS. When cross compiling it should have own, used for target arch. Wh

[PATCH] media: rc: Use devm_platform_ioremap_resource() in tango_ir_probe()

2019-09-18 Thread Markus Elfring
From: Markus Elfring Date: Wed, 18 Sep 2019 12:30:18 +0200 Simplify this function implementation by using a known wrapper function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/rc/tango-ir.c | 14 ++ 1 file changed, 2 in

Bonjour

2019-09-18 Thread Amidal Serge
Hello I need your urgent assistance in the transfer of an abandoned funds on your account within 10-14 days if you are interested, respond to me with your information for more details. your name and surname:-. your country:-. your phone number. :- . Please respond to this email address (sergeami.

[PATCH] RISC-V: Fix building error when CONFIG_SPARSEMEM_MANUAL=y

2019-09-18 Thread greentime . hu
From: Greentime Hu To adjust the place of VMALLOC_* and FIXADDR_* defined location to let VMEMMAP_* get it. CC init/main.o In file included from ./include/linux/mm.h:99, from ./include/linux/ring_buffer.h:5, from ./include/linux/trace_events.h:6,

Re: [GIT pull] x86/pti for 5.4-rc1

2019-09-18 Thread Song Liu
> On Sep 17, 2019, at 4:35 PM, Linus Torvalds > wrote: > > On Tue, Sep 17, 2019 at 4:29 PM Song Liu wrote: >> >> How about we just do: >> >> diff --git i/arch/x86/mm/pti.c w/arch/x86/mm/pti.c >> index b196524759ec..0437f65250db 100644 >> --- i/arch/x86/mm/pti.c >> +++ w/arch/x86/mm/pti.c >

Re: Linux 5.3-rc8

2019-09-18 Thread Willy Tarreau
On Wed, Sep 18, 2019 at 03:25:51PM +0500, Alexander E. Patrakov wrote: > The results so far are: > > 1. Desktop with MSI Z87I board: works. > 2. Lenovo Yoga 2 Pro laptop: works. > 3. Server based on the Intel Corporation S1200SPL board (available from OVH > as EG-32): does not work, memory is clea

[tip: sched/urgent] sched/core: Convert vcpu_is_preempted() from macro to an inline function

2019-09-18 Thread tip-bot2 for Qian Cai
The following commit has been merged into the sched/urgent branch of tip: Commit-ID: 42fd8baab31f53bed2952485fcf0e92f244c5e55 Gitweb: https://git.kernel.org/tip/42fd8baab31f53bed2952485fcf0e92f244c5e55 Author:Qian Cai AuthorDate:Tue, 17 Sep 2019 10:34:54 -04:00 Committer:

Re: [PATCH] regulator: vexpress: Use PTR_ERR_OR_ZERO() in vexpress_regulator_probe()

2019-09-18 Thread Sudeep Holla
On Sat, Sep 07, 2019 at 01:23:08PM +0200, Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 7 Sep 2019 13:07:22 +0200 > > Simplify this function implementation by using a known function. > > Generated by: scripts/coccinelle/api/ptr_ret.cocci > Acked-by: Sudeep Holla Hi Mark, I assume y

Re: [PATCH] staging: exfat: add exfat filesystem code to

2019-09-18 Thread Ju Hyung Park
On Wed, Sep 18, 2019 at 7:09 PM Dan Carpenter wrote: > Use Kconfig. Not just that. There are a lot of non-static functions that's not marked ex/sdfat-specific. (which we would have to clean it up eventually) Even with sdFAT base, there are some non-static functions named as exfat. Figuring out

Re: [PATCH V9 5/5] mmc: host: sdhci-pci: Add Genesys Logic GL975x support

2019-09-18 Thread Michael K. Johnson
I see that the first four patches made it into Linus's kernel yesterday. Is there any chance of this final patch that actually enables the hardware making it into another pull request still intended for 5.4? Waiting on additional acked-by on Ben's work addressing all the review comments? Thanks.

Re: [PATCH] mfd: mt6360: add pmic mt6360 driver

2019-09-18 Thread Lee Jones
On Wed, 18 Sep 2019, Gene Chen wrote: > From: Gene Chen > > Add mfd driver for mt6360 pmic chip include > Battery Charger/USB_PD/Flash LED/RGB LED/LDO/Buck > > Signed-off-by: Gene Chen --- This looks different from the one you sent before, but I don't see a version bump or any changelog in th

Re: [PATCH] media: rc: Use devm_platform_ioremap_resource() in tango_ir_probe()

2019-09-18 Thread Måns Rullgård
Markus Elfring writes: > From: Markus Elfring > Date: Wed, 18 Sep 2019 12:30:18 +0200 > > Simplify this function implementation by using a known wrapper function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring Acked-by: Mans Rullgard > --- >

Re: [PATCHv8 1/7] PCI: mobiveil: Refactor Mobiveil PCIe Host Bridge IP driver

2019-09-18 Thread Andrew Murray
On Tue, Sep 17, 2019 at 12:36:37PM +0100, Andrew Murray wrote: > Hi Hou Zhiqiang, > > Apologies if I bring up any feedback that has previously been discussed as > I've only recently began reviewing controller patches. > > On Tue, Aug 13, 2019 at 11:03:57AM +, Z.q. Hou wrote: > > From: Hou Zhi

Re: KASAN: global-out-of-bounds Read in __pm_runtime_resume

2019-09-18 Thread Andrey Konovalov
On Tue, Sep 17, 2019 at 11:44 PM Rafael J. Wysocki wrote: > > On Mon, Sep 16, 2019 at 8:49 PM syzbot > wrote: > > > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:f0df5c1b usb-fuzzer: main usb gadget fuzzer driver > > git tree: https://github.com/google/kasan.

Re: [PATCH v3 bpf-next 11/14] libbpf: makefile: add C/CXX/LDFLAGS to libbpf.so and test_libpf targets

2019-09-18 Thread Ivan Khoronzhuk
On Tue, Sep 17, 2019 at 10:19:22PM -0700, Andrii Nakryiko wrote: On Mon, Sep 16, 2019 at 4:00 AM Ivan Khoronzhuk wrote: In case of LDFLAGS and EXTRA_CC/CXX flags there is no way to pass them correctly to build command, for instance when --sysroot is used or external libraries are used, like -l

Re: [PATCH] staging: exfat: add exfat filesystem code to

2019-09-18 Thread Greg KH
On Wed, Sep 18, 2019 at 07:46:25PM +0900, Ju Hyung Park wrote: > On Wed, Sep 18, 2019 at 7:09 PM Dan Carpenter > wrote: > > Use Kconfig. > > Not just that. > There are a lot of non-static functions that's not marked ex/sdfat-specific. > (which we would have to clean it up eventually) Then clean

Re: [PATCH v3 bpf-next 13/14] samples: bpf: makefile: add sysroot support

2019-09-18 Thread Ivan Khoronzhuk
On Tue, Sep 17, 2019 at 10:23:57PM -0700, Andrii Nakryiko wrote: On Mon, Sep 16, 2019 at 4:00 AM Ivan Khoronzhuk wrote: Basically it only enables that was added by previous couple fixes. Sysroot contains correct libs installed and its headers ofc. Useful Please, let's not use unnecessary abb

Re: [PATCH V9 5/5] mmc: host: sdhci-pci: Add Genesys Logic GL975x support

2019-09-18 Thread Adrian Hunter
On 18/09/19 1:47 PM, Michael K. Johnson wrote: > I see that the first four patches made it into Linus's kernel > yesterday. Is there any chance of this final patch that actually > enables the hardware making it into another pull request still > intended for 5.4? Waiting on additional acked-by on B

[PATCH v2] spi: dt-bindings: Convert spi-sifive binding to json-schema

2019-09-18 Thread Pragnesh Patel
Convert the spi-sifive binding to DT schema format. Signed-off-by: Pragnesh Patel --- Changes in v2: - Remove address-cells and size-cells property - Added valid values for sifive,fifo-depth and sifive,max-bits-per-word property .../devicetree/bindings/spi/spi-sifive.txt | 37 ---

Re: [PATCH v2 2/2] dt-bindings: sound: Convert Samsung SMDK audio complex

2019-09-18 Thread Krzysztof Kozlowski
On Tue, 17 Sep 2019 at 14:06, Maciej Falkowski wrote: > > Convert Samsung SMDK audio complex to newer dt-schema format. > > Signed-off-by: Maciej Falkowski > Signed-off-by: Marek Szyprowski > --- > v2: > - Added missing Signed-off-by certificate I understood you cannot certify that you have the

INFO: rcu detected stall in sys_exit_group

2019-09-18 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:a7f89616 Merge branch 'for-5.3-fixes' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15c3307960 kernel config: https://syzkaller.appspot.com/x/.config?x=861a6f31647968de da

Re: INFO: rcu detected stall in dummy_timer

2019-09-18 Thread Andrey Konovalov
On Mon, Sep 16, 2019 at 6:32 PM Alan Stern wrote: > > On Mon, 16 Sep 2019, Andrey Konovalov wrote: > > > On Fri, Sep 13, 2019 at 10:35 PM Alan Stern > > wrote: > > > > > > On Fri, 13 Sep 2019, syzbot wrote: > > > > > > > syzbot has found a reproducer for the following crash on: > > > > > > > > H

Re: KASAN: slab-out-of-bounds Write in ga_probe

2019-09-18 Thread Andrey Konovalov
On Tue, Sep 17, 2019 at 8:24 PM Alan Stern wrote: > > On Mon, 16 Sep 2019, syzbot wrote: > > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:f0df5c1b usb-fuzzer: main usb gadget fuzzer driver > > git tree: https://github.com/google/kasan.git usb-fuzzer > > conso

Re: [PATCH 1/2] dt-bindings: watchdog: Convert Samsung SoC watchdog bindings to json-schema

2019-09-18 Thread Krzysztof Kozlowski
On Fri, 13 Sep 2019 at 16:36, Rob Herring wrote: > > On Sat, Sep 07, 2019 at 04:45:40PM +0200, Krzysztof Kozlowski wrote: > > Convert Samsung S3C/S5P/Exynos watchdog bindings to DT schema format > > using json-schema. > > > > Signed-off-by: Krzysztof Kozlowski > > --- > > .../bindings/watchdog/s

[PATCH] memory/fsl-corenet-cf: Use devm_platform_ioremap_resource() in ccf_probe()

2019-09-18 Thread Markus Elfring
From: Markus Elfring Date: Wed, 18 Sep 2019 13:14:46 +0200 Simplify this function implementation by using a known wrapper function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/memory/fsl-corenet-cf.c | 9 + 1 file changed, 1 inse

Re: [PATCH 0/2] pseries/hotplug: Change the default behaviour of cede_offline

2019-09-18 Thread Michael Ellerman
"Naveen N. Rao" writes: > Michael Ellerman wrote: >> "Gautham R. Shenoy" writes: >>> From: "Gautham R. Shenoy" >>> >>> Currently on Pseries Linux Guests, the offlined CPU can be put to one >>> of the following two states: >>>- Long term processor cede (also called extended cede) >>>- Ret

linux-next: manual merge of the mips tree with Linus' tree

2019-09-18 Thread Mark Brown
Hi all, Today's linux-next merge of the mips tree got a conflict in: Documentation/index.rst between several commits from Linus' tree and commit: 97689a1a3fdad101d ("doc: Add doc for the Ingenic TCU hardware") from the mips tree. I fixed it up (see below) and can carry the fix as necessar

Re: [PATCH v3 1/2] selftests: watchdog: Validate optional file argument

2019-09-18 Thread Eugeniu Rosca
Hi Shuah, On Tue, Sep 17, 2019 at 08:40:22PM +0200, Eugeniu Rosca wrote: > From: "George G. Davis" > > The newly added optional file argument does not validate if the > file is indeed a watchdog, e.g.: > > ./watchdog-test -f /dev/zero > Watchdog Ticking Away! > > Fix it by confirming that the

[PATCH v3] pinctrl: at91-pio4: implement .get_multiple and .set_multiple

2019-09-18 Thread Alexandre Belloni
Implement .get_multiple and .set_multiple to allow reading or setting multiple pins simultaneously. Pins in the same bank will all be switched at the same time, improving synchronization and performances. Keep the driver future proof by allowing its use on 64bits platforms if they ever appear with

Re: [PATCH v2 1/1] platform/x86/intel_cht_int33fe: Split code to USB TypeB and TypeC variants

2019-09-18 Thread Heikki Krogerus
On Tue, Sep 17, 2019 at 10:45:07PM +0300, Yauhen Kharuzhy wrote: > Existing intel_cht_int33fe ACPI pseudo-device driver assumes that > hardware has TypeC connector and register related devices described as > I2C connections in the _CRS resource. > > There is at least one hardware (Lenovo Yoga Book

Re: [PATCH] [RFC] vmscan.c: add a sysctl entry for controlling memory reclaim IO congestion_wait length

2019-09-18 Thread Matthew Wilcox
On Wed, Sep 18, 2019 at 11:21:04AM +0800, Lin Feng wrote: > > Adding a new tunable is not the right solution. The right way is > > to make Linux auto-tune itself to avoid the problem. For example, > > bdi_writeback contains an estimated write bandwidth (calculated by the > > memory management lay

Re: [PATCH v2 1/1] platform/x86/intel_cht_int33fe: Split code to USB TypeB and TypeC variants

2019-09-18 Thread Yauhen Kharuzhy
On Wed, Sep 18, 2019 at 11:20:21AM +0200, Hans de Goede wrote: > Hi, > > On 17-09-2019 21:45, Yauhen Kharuzhy wrote: > > Existing intel_cht_int33fe ACPI pseudo-device driver assumes that > > hardware has TypeC connector and register related devices described as > > I2C connections in the _CRS reso

<    1   2   3   4   5   6   7   8   9   >