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 >

[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] 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] [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

[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 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 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

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. > >

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

[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

[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

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] 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: [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

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: [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: [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

[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 +---

[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 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 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 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 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 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

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

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 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] 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

[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: [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

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: [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 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: [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 17/26] vfio_pci: Loop using PCI_STD_NUM_BARS

2019-09-18 Thread Andrew Murray
On Mon, Sep 16, 2019 at 11:41:49PM +0300, Denis Efremov wrote: > Refactor loops to use idiomatic C style and avoid the fencepost error > of using "i < PCI_STD_RESOURCE_END" when "i <= PCI_STD_RESOURCE_END" > is required, e.g., commit 2f686f1d9bee ("PCI: Correct PCI_STD_RESOURCE_END > usage"). > >

Re: [PATCH 0/2] VMD fixes for v5.4

2019-09-18 Thread Lorenzo Pieralisi
On Mon, Sep 16, 2019 at 07:54:33AM -0600, Jon Derrick wrote: > Hi Lorenzo, Bjorn, Keith, > > Please consider the following patches for 5.4 inclusion. > > These will apply to 5.2 stable. 4.19 has a few feature deps so I will instead > follow-up with a backport. > > Jon Derrick (2): > PCI: vmd:

Re: [PATCH 2/4] seccomp: add two missing ptrace ifdefines

2019-09-18 Thread Tyler Hicks
On 2019-09-18 10:48:31, Christian Brauner wrote: > Add tw missing ptrace ifdefines to avoid compilation errors on systems > that do not provide PTRACE_EVENTMSG_SYSCALL_ENTRY or > PTRACE_EVENTMSG_SYSCALL_EXIT or: > > gcc -Wl,-no-as-needed -Wall seccomp_bpf.c -lpthread -o seccomp_bpf > In file incl

Re: [PATCH V7 2/3] arm64/mm: Hold memory hotplug lock while walking for kernel page table dump

2019-09-18 Thread Anshuman Khandual
On 09/15/2019 08:05 AM, Balbir Singh wrote: > > > On 3/9/19 7:45 pm, Anshuman Khandual wrote: >> The arm64 page table dump code can race with concurrent modification of the >> kernel page tables. When a leaf entries are modified concurrently, the dump >> code may log stale or inconsistent info

Re: printk meeting at LPC

2019-09-18 Thread Sergey Senozhatsky
On (09/18/19 11:05), John Ogness wrote: > On 2019-09-18, Sergey Senozhatsky wrote: > >> Each console has its own iterator. This iterators will need to > >> advance, regardless if the message was printed via write() or > >> write_atomic(). > > > > Great. > > > > ->atomic_write() path will make sure

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

2019-09-18 Thread Viresh Kumar
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 framework initcall pushed to earlier initcall levels > if required, but for ind

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

2019-09-18 Thread Peng Fan
Hi Andre, > 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 left is the "function ID passed by the client" topic. > > Have you

About getrandom(2) contract

2019-09-18 Thread Elichai Turkel
Hi, Unlike other syscalls(like `read(2)`) `getrandom(2)`'s contract doesn't define what happens if you pass `buflen=0`, does the pointer still has to be valid? (what does valid even mean?) are there any side effects? i.e. is `getrandom(0x01, 0, 0)` undefined behavior?. Thanks, Elichai. -- PGP: 5

Re: [PATCH] overlayfs: ignore empty NFSv4 ACLs in ext4 upperdir

2019-09-18 Thread Miklos Szeredi
On Fri, May 10, 2019 at 04:09:41PM -0400, J. Bruce Fields wrote: > On Tue, May 07, 2019 at 10:24:58AM +1000, NeilBrown wrote: > > Interesting perspective though doesn't NFSv4 explicitly allow > > client-side ACL enforcement in the case of delegations? > > Not really. What you're probably thi

Re: [PATCH v3 13/26] e1000: Use PCI_STD_NUM_BARS

2019-09-18 Thread Andrew Murray
On Mon, Sep 16, 2019 at 11:41:45PM +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: printk meeting at LPC

2019-09-18 Thread John Ogness
On 2019-09-18, Sergey Senozhatsky wrote: >> Each console has its own iterator. This iterators will need to >> advance, regardless if the message was printed via write() or >> write_atomic(). > > Great. > > ->atomic_write() path will make sure that kthread is parked or will > those compete for uart

Re: [PATCH] [v2] arm64: fix unreachable code issue with cmpxchg

2019-09-18 Thread Will Deacon
On Tue, Sep 17, 2019 at 01:34:25PM -0700, Nathan Chancellor wrote: > On Tue, Sep 10, 2019 at 01:56:22PM +0200, Arnd Bergmann wrote: > > On arm64 build with clang, sometimes the __cmpxchg_mb is not inlined > > when CONFIG_OPTIMIZE_INLINING is set. > > Clang then fails a compile-time assertion, becau

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

2019-09-18 Thread Peng Fan
Hi Andre, > Subject: Re: [PATCH V6 1/2] dt-bindings: mailbox: add binding doc for the > ARM SMC/HVC mailbox > > 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 to > > trigger actions in so

Re: [PATCH stable 4.4 net] net: rds: Fix NULL ptr use in rds_tcp_kill_sock

2019-09-18 Thread maowenan
On 2019/9/18 16:32, Greg KH wrote: > On Wed, Sep 18, 2019 at 04:37:33PM +0800, Mao Wenan wrote: >> After the commit c4e97b06cfdc ("net: rds: force to destroy >> connection if t_sock is NULL in rds_tcp_kill_sock()."), >> it introduced null-ptr-deref in rds_tcp_kill_sock as below: >> >> BUG: KASAN

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

2019-09-18 Thread Ju Hyung Park
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 want to make it clear on how should I. > He took the "best known at the time

Re: [PATCH v2 2/3] i2c: qup: Remove dev_err() log after platform_get_irq*() failure

2019-09-18 Thread Marc Gonzalez
On 17/09/2019 19:21, Saiyam Doshi wrote: > The debug message after platform_get_irq() failure is redundant > because platform_get_irq() already prints an error. Thus remove it. > > Generated by: scripts/coccinelle/api/platform_get_irq.cocci > > Signed-off-by: Saiyam Doshi > --- > Changes in v2:

Re: [PATCH] sched: fix an unused function "node_cpu" warning

2019-09-18 Thread Mel Gorman
On Tue, Sep 17, 2019 at 10:34:54AM -0400, Qian Cai wrote: > Clang reports a warning, > > kernel/locking/osq_lock.c:25:19: warning: unused function 'node_cpu' > [-Wunused-function] > > due to osq_lock() calls vcpu_is_preempted(node_cpu(node->prev))), but > vcpu_is_preempted() is compiled away. Fix

Re: [PATCH v3 06/26] s390/pci: Use PCI_STD_NUM_BARS

2019-09-18 Thread Andrew Murray
On Mon, Sep 16, 2019 at 11:41:38PM +0300, Denis Efremov wrote: > Remove local definition PCI_BAR_COUNT for the number of PCI BARs and use > global one PCI_STD_NUM_BARS instead. > > Acked-by: Sebastian Ott > Cc: Gerald Schaefer > Signed-off-by: Denis Efremov > --- > arch/s390/include/asm/pci.h

[PATCH] Bluetooth: btrtl: Fix an issue for the incorrect error return code.

2019-09-18 Thread max.chou
From: Max Chou It does not need the '-' for PTR_ERR(skb) because PTR_ERR(skb) will return the negative value during errors. Signed-off-by: Max Chou --- drivers/bluetooth/btrtl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bluetooth/btrtl.c b/drivers/bluetooth/bt

[PATCH 2/3] tracing/probe: Reject exactly same probe event

2019-09-18 Thread Masami Hiramatsu
Reject exactly same probe events as existing probes. Multiprobe allows user to define multiple probes on same event. If user appends a probe which exactly same definition (same probe address and same arguments) on existing event, the event will record same probe information twice. That can be conf

[PATCH 1/3] tracing/probe: Fix to allow user to enable events on unloaded modules

2019-09-18 Thread Masami Hiramatsu
Fix to allow user to enable probe events on unloaded modules. This operations was allowed before commit 60d53e2c3b75 ("tracing/probe: Split trace_event related data from trace_probe"), because if users need to probe module init functions, they have to enable those probe events before loading modul

[PATCH 3/3] selftests/ftrace: Update kprobe event error testcase

2019-09-18 Thread Masami Hiramatsu
Update kprobe event error testcase to test if it correctly finds the exact same probe event. Signed-off-by: Masami Hiramatsu --- .../ftrace/test.d/kprobe/kprobe_syntax_errors.tc |1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_syntax_e

[PATCH] leds-bcm63xx: Use devm_platform_ioremap_resource() in two functions

2019-09-18 Thread Markus Elfring
From: Markus Elfring Date: Wed, 18 Sep 2019 10:45:24 +0200 Simplify these function implementations by using a known function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/leds/leds-bcm6328.c | 7 +-- drivers/leds/leds-bcm6358.c | 7 +-

[PATCH 0/3] tracing/probe: Fix some issues on multiprobe support

2019-09-18 Thread Masami Hiramatsu
Hi Steve, Here are the patches to fix some issues on multiprobe support (and add a testcase for the fix) [1/3] Fix to allow user to enable probe events on unloaded modules. This was supported before multiprobe support. Fix it. [2/3] Reject exactly same probe event. Multiprobe accepts th

RE: [PATCH 3/3] x86/split_lock: Align the x86_capability array to size of unsigned long

2019-09-18 Thread David Laight
From: Luck, Tony > Sent: 17 September 2019 20:14 > On Tue, Sep 17, 2019 at 08:29:28AM +, David Laight wrote: > > From: Tony Luck > > > Sent: 16 September 2019 23:40 > > > From: Fenghua Yu > > > > > > The x86_capability array in cpuinfo_x86 is defined as u32 and thus is > > > naturally aligne

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

2019-09-18 Thread Peng Fan
Hi Jassi, > Subject: Re: [PATCH V6 1/2] dt-bindings: mailbox: add binding doc for the > ARM SMC/HVC mailbox > > 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/H

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

2019-09-18 Thread Sergey Senozhatsky
On (09/18/19 10:26), 'Greg KH' wrote: > On Wed, Sep 18, 2019 at 03:33:04PM +0900, Sergey Senozhatsky wrote: > > On (09/18/19 08:16), 'Greg KH' wrote: > > [..] > > > > Note, that Samsung is still improving sdfat driver. For instance, > > > > what will be realeased soon is sdfat v2.3.0, which will in

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

2019-09-18 Thread Christian Brauner
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 [-Woverflow] #define USER_NOTIF_MAGIC 116983961184613L

Re: [PATCH v2 1/7] counter: Simplify the count_read and count_write callbacks

2019-09-18 Thread Benjamin Gaignard
Le mer. 18 sept. 2019 à 09:53, William Breathitt Gray a écrit : > > The count_read and count_write callbacks are simplified to pass val as > unsigned long rather than as an opaque data structure. The opaque > counter_count_read_value and counter_count_write_value structures, > counter_count_value_

[PATCH 0/4] seccomp: continue syscall from notifier

2019-09-18 Thread Christian Brauner
Hey everyone, This is the patchset coming out of the KSummit session Kees and I gave in Lisbon last week (cf. [3] which also contains slides with more details on related things such as deep argument inspection). The simple idea is to extend the seccomp notifier to allow for the continuation of a s

[PATCH 2/4] seccomp: add two missing ptrace ifdefines

2019-09-18 Thread Christian Brauner
Add tw missing ptrace ifdefines to avoid compilation errors on systems that do not provide PTRACE_EVENTMSG_SYSCALL_ENTRY or PTRACE_EVENTMSG_SYSCALL_EXIT or: gcc -Wl,-no-as-needed -Wall seccomp_bpf.c -lpthread -o seccomp_bpf In file included from seccomp_bpf.c:52:0: seccomp_bpf.c: In function ‘tra

[PATCH 4/4] seccomp: test SECCOMP_RET_USER_NOTIF_ALLOW

2019-09-18 Thread Christian Brauner
Test whether a syscall can be performed after having been intercepted by the seccomp notifier. The test uses dup() and kcmp() since it allows us to nicely test whether the dup() syscall actually succeeded by comparing whether the fd refers to the same underlying struct file. Signed-off-by: Christi

[PATCH 1/4] seccomp: add SECCOMP_RET_USER_NOTIF_ALLOW

2019-09-18 Thread Christian Brauner
This allows the seccomp notifier to continue a syscall. A positive discussion about this feature was triggered by a post to the ksummit-discuss mailing list (cf. [3]) and took place during KSummit (cf. [1]) and again at the containers/checkpoint-restore micro-conference at Linux Plumbers. Recently

[PATCH v2] of: restore old handling of cells_name=NULL in of_*_phandle_with_args()

2019-09-18 Thread Uwe Kleine-König
Before commit e42ee61017f5 ("of: Let of_for_each_phandle fallback to non-negative cell_count") the iterator functions calling of_for_each_phandle assumed a cell count of 0 if cells_name was NULL. This corner case was missed when implementing the fallback logic in e42ee61017f5 and resulted in an end

Re: [PATCH stable 4.4 net] net: rds: Fix NULL ptr use in rds_tcp_kill_sock

2019-09-18 Thread Greg KH
On Wed, Sep 18, 2019 at 04:37:33PM +0800, Mao Wenan wrote: > After the commit c4e97b06cfdc ("net: rds: force to destroy > connection if t_sock is NULL in rds_tcp_kill_sock()."), > it introduced null-ptr-deref in rds_tcp_kill_sock as below: > > BUG: KASAN: null-ptr-deref on address 0020

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

2019-09-18 Thread 'Greg KH'
On Wed, Sep 18, 2019 at 03:33:04PM +0900, Sergey Senozhatsky wrote: > On (09/18/19 08:16), 'Greg KH' wrote: > [..] > > > Note, that Samsung is still improving sdfat driver. For instance, > > > what will be realeased soon is sdfat v2.3.0, which will include support > > > for "UtcOffset" of "File Dir

Re: [GIT PULL] LED updates for 5.4-rc1

2019-09-18 Thread Greg Kroah-Hartman
On Tue, Sep 17, 2019 at 06:13:09PM -0700, Linus Torvalds wrote: > On Mon, Sep 16, 2019 at 3:21 PM Jacek Anaszewski > wrote: > > > > There is one merge of tag with generic_lookup_helpers since > > LED class has been made using class_find_device_by_name() helper: > > > > Merge tag 'generic_looku

Re: [RFC PATCH v3 3/6] timekeeping: Expose API allowing retrival of current clocksource and counter value

2019-09-18 Thread Paolo Bonzini
On 18/09/19 10:07, Jianyong Wu wrote: > From Marc Zyngier > A number of PTP drivers (such as ptp-kvm) are assuming what the > current clock source is, which could lead to interesting effects on > systems where the clocksource can change depending on external events. > > For this purpose, add a ne

[PATCH v6] tas2770: add tas2770 smart PA kernel driver

2019-09-18 Thread shifu0704
From: Frank Shi add tas2770 smart PA kernel driver Signed-off-by: Frank Shi --- sound/soc/codecs/Kconfig | 5 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/tas2770.c | 814 + sound/soc/codecs/tas2770.h | 164 + 4 files changed, 9

[PATCH v6] dt-bindings: ASoC: Add tas2770 smart PA dt bindings

2019-09-18 Thread shifu0704
From: Frank Shi Add tas2770 smart PA dt bindings Signed-off-by: Frank Shi --- .../devicetree/bindings/sound/tas2770.txt | 37 ++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/tas2770.txt diff --git a/Documentation/dev

[PATCH v6 4/4] ASoC: rockchip_max98090: Add HDMI jack support

2019-09-18 Thread Cheng-Yi Chiang
In machine driver, create a jack and let hdmi-codec report jack status. Signed-off-by: Cheng-Yi Chiang --- sound/soc/rockchip/Kconfig | 3 ++- sound/soc/rockchip/rockchip_max98090.c | 20 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/sound/soc/r

[PATCH v6 3/4] ASoC: rockchip_max98090: Add dai_link for HDMI

2019-09-18 Thread Cheng-Yi Chiang
Use two dai_links. One for HDMI and one for max98090. With this setup, audio can play to speaker and HDMI selectively. Signed-off-by: Cheng-Yi Chiang --- sound/soc/rockchip/rockchip_max98090.c | 96 -- 1 file changed, 73 insertions(+), 23 deletions(-) diff --git a/sound/

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

2019-09-18 Thread Paolo Bonzini
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-bit seconds value between val[0] and val[1]. However, it seems to me that the new function

[PATCH stable 4.4 net] net: rds: Fix NULL ptr use in rds_tcp_kill_sock

2019-09-18 Thread Mao Wenan
After the commit c4e97b06cfdc ("net: rds: force to destroy connection if t_sock is NULL in rds_tcp_kill_sock()."), it introduced null-ptr-deref in rds_tcp_kill_sock as below: BUG: KASAN: null-ptr-deref on address 0020 Read of size 8 by task kworker/u16:10/910 CPU: 3 PID: 910 Comm: kwor

Re: [PATCH 3/3] regulator: core: make regulator_register() EPROBE_DEFER aware

2019-09-18 Thread Marco Felsch
On 19-09-17 17:57, Dmitry Torokhov wrote: > On Tue, Sep 17, 2019 at 4:42 PM Marco Felsch wrote: > > > > Sometimes it can happen that the regulator_of_get_init_data() can't > > retrieve the config due to a not probed device the regulator depends on. > > Fix that by checking the return value of of_p

[PATCH] serial: sprd: Add polling IO support

2019-09-18 Thread Lanqing Liu
In order to access the UART without the interrupts, the kernel uses the basic polling methods for IO with the device. With these methods implemented, it is now possible to enable kgdb during early boot over serial. Signed-off-by: Lanqing Liu --- drivers/tty/serial/sprd_serial.c | 22

Re: [RFC PATCH] memalloc_noio: update the comment to make it cleaner

2019-09-18 Thread Xiubo Li
On 2019/9/18 16:14, Michal Hocko wrote: On Wed 18-09-19 16:02:52, Xiubo Li wrote: On 2019/9/18 15:25, Michal Hocko wrote: On Wed 18-09-19 04:58:20, xiu...@redhat.com wrote: From: Xiubo Li The GFP_NOIO means all further allocations will implicitly drop both __GFP_IO and __GFP_FS flags and so

[PATCH] dt-bindings: net: remove un-implemented property

2019-09-18 Thread Alexandru Ardelean
The `adi,disable-energy-detect` property was implemented in an initial version of the `adin` driver series, but after a review it was discarded in favor of implementing the ETHTOOL_PHY_EDPD phy-tunable option. With the ETHTOOL_PHY_EDPD control, it's possible to disable/enable Energy-Detect-Power-D

Re: [RFC PATCH] memalloc_noio: update the comment to make it cleaner

2019-09-18 Thread Michal Hocko
On Wed 18-09-19 16:02:52, Xiubo Li wrote: > On 2019/9/18 15:25, Michal Hocko wrote: > > On Wed 18-09-19 04:58:20, xiu...@redhat.com wrote: > > > From: Xiubo Li > > > > > > The GFP_NOIO means all further allocations will implicitly drop > > > both __GFP_IO and __GFP_FS flags and so they are safe f

Re: [PATCH v2 0/7] counter: Simplify count_read/count_write/signal_read

2019-09-18 Thread William Breathitt Gray
On Wed, Sep 18, 2019 at 04:52:41PM +0900, William Breathitt Gray wrote: > Changes in v2: > - Update the rest of the drivers under drivers/counter Jonathan, The TI eQEP driver also needs a patch for these changes if this patchset is merged. How would you like to handle the merge? We have an full

Re: printk meeting at LPC

2019-09-18 Thread Sergey Senozhatsky
On (09/18/19 09:42), John Ogness wrote: > > It's going to be a bit harder when we have per-console kthread. > > Each console has its own iterator. This iterators will need to advance, > regardless if the message was printed via write() or write_atomic(). Great. ->atomic_write() path will make su

Re: printk meeting at LPC

2019-09-18 Thread Sergey Senozhatsky
On (09/18/19 09:33), John Ogness wrote: > > I expect sysrq to be the only valid use of "synchronous state" other > than oops/panic. Although I suppose PeterZ would like a boot argument to > always run the consoles in this state. Yes, there might be more cases when we need sync printk(). Like lock

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

2019-09-18 Thread Jianyong Wu
This patch is the base of ptp_kvm for arm64. ptp_kvm modules will call hvc to get this service. The service offers real time and counter cycle of host for guest. Signed-off-by: Jianyong Wu --- include/linux/arm-smccc.h | 12 virt/kvm/arm/psci.c | 17 + 2 files

<    3   4   5   6   7   8   9   >