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

2019-09-18 Thread Zenghui Yu
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 for GIC_LINE_NR. Fix it to min(GICD_TYPER_SPIS(..

Re: [RESEND, PATCH v7 04/11] pwm: mediatek: allocate the clks array dynamically

2019-09-18 Thread kbuild test robot
to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Sam-Shih/Add-mt7629-and-fix-mt7628-pwm/20190918-140213 config: sparc64-allmodconfig (attached as .config) compiler: sparc64-linux-gcc (GCC) 7.4.0

Re: [PATCH] mm: Support memblock alloc on the exact node for sparse_buffer_init()

2019-09-18 Thread Yunfeng Ye
On 2019/9/18 14:51, Wei Yang wrote: > On Wed, Sep 18, 2019 at 12:22:29PM +0800, Yunfeng Ye wrote: >> Currently, when memblock_find_in_range_node() fail on the exact node, it >> will use %NUMA_NO_NODE to find memblock from other nodes. At present, >> the work is good, but when the large memory is

Regression in dbdda842fe96 ("printk: Add console owner and waiter logic to load balance console writes") [Was: Regression in fd5f7cde1b85 ("...")]

2019-09-18 Thread Uwe Kleine-König
Hello Sergey, On Wed, Sep 18, 2019 at 10:30:32AM +0900, Sergey Senozhatsky wrote: > On (09/17/19 16:10), Uwe Kleine-König wrote: > > Hello, > > > > Today it saw sysrq on an UART driven by drivers/tty/serial/imx.c report > > a lockdep issue. Bisecting pointed to > > > > fd5f7cde1b85 ("printk: N

Re: threads-max observe limits

2019-09-18 Thread Michal Hocko
On Tue 17-09-19 12:26:18, Eric W. Biederman wrote: > Michal Hocko writes: > > > On Tue 17-09-19 17:28:02, Heinrich Schuchardt wrote: > >> > >> On 9/17/19 12:03 PM, Michal Hocko wrote: > >> > Hi, > >> > I have just stumbled over 16db3d3f1170 ("kernel/sysctl.c: threads-max > >> > observe limits")

Re: [PATCH v2] extcon-intel-cht-wc: Don't reset USB data connection at probe

2019-09-18 Thread Andy Shevchenko
On Wed, Sep 18, 2019 at 2:04 AM Yauhen Kharuzhy wrote: > > On Tue, Sep 17, 2019 at 02:13:22PM +0300, Andy Shevchenko wrote: > > On Tue, Sep 17, 2019 at 12:15:36AM +0300, Yauhen Kharuzhy wrote: > > > Intel Cherry Trail Whiskey Cove extcon driver connect USB data lines to > > > PMIC at driver probin

SFConservancy attacks RMS. - SFConservancy: GO TO HELL

2019-09-18 Thread gameonlinux
Software Freedom Conservancy ‏>Verified account @conservancy The fight for diversity, equality and inclusion is the fight for software freedom. Our movement will only be successful if it includes everyone. RMS does not speak for these values. twitter.com/conservancy/status/1173603417769545734

Re: [PATCH] perf cgroups: Don't rotate events for cgroups unnecessarily

2019-09-18 Thread Ganapatrao Kulkarni
On Fri, Aug 23, 2019 at 6:33 PM Peter Zijlstra wrote: > > On Fri, Aug 23, 2019 at 06:26:34PM +0530, Ganapatrao Kulkarni wrote: > > On Fri, Aug 23, 2019 at 5:29 PM Peter Zijlstra wrote: > > > On Fri, Aug 23, 2019 at 04:13:46PM +0530, Ganapatrao Kulkarni wrote: > > > > > > > We are seeing regressio

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

2019-09-18 Thread Andy Shevchenko
On Wed, Sep 18, 2019 at 10:16 AM Linus Torvalds wrote: > > On Tue, Sep 17, 2019 at 6:13 PM Linus Torvalds > wrote: > > > > So this is fine and I've pulled it, > > Famous last words. I now get a new warning: > > drivers/i2c/i2c-core-acpi.c:347:12: warning: > ‘i2c_acpi_find_match_adapter’ defined b

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

2019-09-18 Thread Michal Hocko
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 for both the > IO critical section and the the critical section from the allocation > recursion point of

[PATCH] genirq: modify the comment for irq_desc

2019-09-18 Thread Yunfeng Ye
commit 0c6f8a8b917a ("genirq: Remove compat code") deleted the @status member of irq_desc, but forgot to update the comment. Signed-off-by: Yunfeng Ye --- include/linux/irqdesc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/irqdesc.h b/include/linux/irqdesc.h

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

2019-09-18 Thread Andy Shevchenko
On Wed, Sep 18, 2019 at 10:24 AM Linus Torvalds wrote: > > On Tue, Sep 17, 2019 at 6:14 PM Linus Torvalds > wrote: > > > > Famous last words. I now get a new warning: > > > > drivers/i2c/i2c-core-acpi.c:347:12: warning: > > ‘i2c_acpi_find_match_adapter’ defined but not used [-Wunused-function] >

Re: [RFC PATCH v2] mm: initialize struct pages reserved by ZONE_DEVICE driver.

2019-09-18 Thread David Hildenbrand
On 09.09.19 09:46, David Hildenbrand wrote: > On 09.09.19 07:48, Toshiki Fukasawa wrote: >> On 2019/09/06 19:35, David Hildenbrand wrote: >>> On 06.09.19 12:02, Toshiki Fukasawa wrote: Thank you for your feedback. On 2019/09/06 17:45, David Hildenbrand wrote: > On 06.09.19 10:09,

[PATCH RFC 3/3] mtd: rawnand: Add support Macronix power down mode

2019-09-18 Thread Mason Yang
Macronix AD series support using power down command to enter a minimum power consumption state. MTD default _suspend/_resume function replacement by manufacturer postponed initialization. Signed-off-by: Mason Yang --- drivers/mtd/nand/raw/nand_macronix.c | 78 +++

[PATCH RFC 1/3] mtd: rawnand: Add support manufacturer postponed initialization

2019-09-18 Thread Mason Yang
Manufacturer postponed initialization is for MTD default call-back function replacement for vendor soecific operation, i.e., _lock/_unlock, _suspend/_resume and so on. Signed-off-by: Mason Yang --- drivers/mtd/nand/raw/internals.h | 4 drivers/mtd/nand/raw/nand_base.c | 19

[PATCH RFC 2/3] mtd: rawnand: Add support Macronix Block Protection function

2019-09-18 Thread Mason Yang
Macronix AC series support using SET/GET_FEATURES to change Block Protection and Unprotection. MTD default _lock/_unlock function replacement by manufacturer postponed initialization. Signed-off-by: Mason Yang --- drivers/mtd/nand/raw/nand_macronix.c | 80 +--- 1

Re: [PATCH] mm/pgtable/debug: Fix test validating architecture page table helpers

2019-09-18 Thread Anshuman Khandual
On 09/13/2019 11:53 AM, Christophe Leroy wrote: > Fix build failure on powerpc. > > Fix preemption imbalance. > > Signed-off-by: Christophe Leroy > --- > mm/arch_pgtable_test.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/mm/arch_pgtable_test.c b/mm/arch_pgtable_test.c > inde

Re: printk meeting at LPC

2019-09-18 Thread John Ogness
On 2019-09-18, Sergey Senozhatsky wrote: 2. A kernel thread will be created for each registered console, each responsible for being the sole printers to their respective consoles. With this, console printing is _fully_ decoupled from printk() callers. >>> >>> sysrq over serial

Re: [RFC 4/4] gpio: sifive: Add GPIO driver for SiFive SoCs

2019-09-18 Thread Bin Meng
Hi, On Wed, Oct 17, 2018 at 9:01 AM Atish Patra wrote: > > On 10/10/18 5:35 AM, Linus Walleij wrote: > > Hi Atish, > > > > thanks for your patch! > > > > On Tue, Oct 9, 2018 at 8:51 PM Atish Patra wrote: > > > >> From: "Wesley W. Terpstra" > >> > >> Adds the GPIO driver for SiFive RISC-V SoCs.

Re: [PATCH] z3fold: fix memory leak in kmem cache

2019-09-18 Thread Vlastimil Babka
On 9/17/19 5:53 PM, Vitaly Wool wrote: > Currently there is a leak in init_z3fold_page() -- it allocates > handles from kmem cache even for headless pages, but then they are > never used and never freed, so eventually kmem cache may get > exhausted. This patch provides a fix for that. > > Reported

Re: [PATCH v5] gpio/mpc8xxx: change irq handler from chained to normal

2019-09-18 Thread Bartosz Golaszewski
pon., 16 wrz 2019 o 08:08 Hui Song napisał(a): > > From: Song Hui > > More than one gpio controllers can share one interrupt, change the > driver to request shared irq. > > Signed-off-by: Laurentiu Tudor > Signed-off-by: Alex Marginean > Signed-off-by: Song Hui > --- > Changes in v5: >

Re: printk meeting at LPC

2019-09-18 Thread John Ogness
On 2019-09-18, Sergey Senozhatsky wrote: >> For instance, tty/sysrq must be able to switch printk emergency >> on/off. > > How did we come up to that _sync() printk() emergency mode (when we > make sure that there is no active printing kthread)? We had a number > of cases (complaints) of lost kern

Running AF_XDP inside Docker using veth driver

2019-09-18 Thread Yu-han Lin
Hello, I wrote a test case handling network traffic in user-space inside a Docker network by using an XDP socket with libbpf. You can find the code in https://github.com/glasnostic/af_xdp_test My kernel version is 5.1 with XDP_SOCK enabled. In this example, I have an unstable result while getti

Re: [PATCH] arch/microblaze: support get_user() of size 8 bytes

2019-09-18 Thread Michal Simek
On 17. 09. 19 3:39, Randy Dunlap wrote: > From: Randy Dunlap > > arch/microblaze/ is missing support for get_user() of size 8 bytes, > so add it by using __copy_from_user(). > > While there, also drop a lot of the code duplication. > > Fixes these build errors: >drivers/infiniband/core/uver

Re: Regression in dbdda842fe96 ("printk: Add console owner and waiter logic to load balance console writes") [Was: Regression in fd5f7cde1b85 ("...")]

2019-09-18 Thread Sergey Senozhatsky
On (09/18/19 09:11), Uwe Kleine-König wrote: > I rechecked and indeed fd5f7cde1b85's parent has the problem, too, so I > did a mistake during my bisection :-| > > Redoing the bisection (a bit quicker this time) points to > > dbdda842fe96 ("printk: Add console owner and waiter logic to load balanc

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

2019-09-18 Thread William Breathitt Gray
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_type enum, and relevant counter_count_read_value_set and counter_count_writ

[PATCH v2 2/7] counter: Simplify the signal_read callback

2019-09-18 Thread William Breathitt Gray
The signal_read callback is simplified to pass val as a counter_signal_val enum rather than as an opaque data structure. The opaque counter_signal_read_value structure and relevant counter_signal_read_value_set function are removed as they are no longer used. In addition, the counter_signal_level e

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

2019-09-18 Thread William Breathitt Gray
Changes in v2: - Update the rest of the drivers under drivers/counter The changes in this patchset will not affect the userspace interface. Rather, these changes are intended to simplify the kernelspace Counter callbacks for counter device driver authors. The following main changes are proposed:

[PATCH v2 3/7] docs: driver-api: generic-counter: Update Count and Signal data types

2019-09-18 Thread William Breathitt Gray
Count data is now always represented as an unsigned integer, while Signal data is either SIGNAL_LOW or SIGNAL_HIGH. Signed-off-by: William Breathitt Gray --- Documentation/driver-api/generic-counter.rst | 22 +++- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/Doc

[PATCH v2 4/7] counter: 104-quad-8: Update count_read/count_write/signal_read callbacks

2019-09-18 Thread William Breathitt Gray
The count_read and count_write callbacks pass unsigned long now, while the signal_read callback passes an enum counter_signal_value. Signed-off-by: William Breathitt Gray --- drivers/counter/104-quad-8.c | 33 ++--- 1 file changed, 10 insertions(+), 23 deletions(-) d

[PATCH v2 5/7] counter: ftm-quaddec: Update count_read and count_write callbacks

2019-09-18 Thread William Breathitt Gray
The count_read and count_write callbacks pass unsigned long now. Cc: Patrick Havelange Signed-off-by: William Breathitt Gray --- drivers/counter/ftm-quaddec.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/counter/ftm-quaddec.c b/drivers/counter/ftm-

[PATCH v2 6/7] counter: stm32-lptimer-cnt: Update count_read callback

2019-09-18 Thread William Breathitt Gray
The count_read callback passes unsigned long now. Cc: Fabrice Gasnier Signed-off-by: William Breathitt Gray --- drivers/counter/stm32-lptimer-cnt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/counter/stm32-lptimer-cnt.c b/drivers/counter/stm32-lptimer-cnt.c

[PATCH v2 7/7] counter: stm32-timer-cnt: Update count_read and count_write callbacks

2019-09-18 Thread William Breathitt Gray
The count_read and count_write callbacks pass unsigned long now. Cc: Fabrice Gasnier Signed-off-by: William Breathitt Gray --- drivers/counter/stm32-timer-cnt.c | 17 + 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/drivers/counter/stm32-timer-cnt.c b/drivers/co

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

2019-09-18 Thread Peter Rosin
On 2019-09-18 08:38, Uwe Kleine-König wrote: > From: 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

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

2019-09-18 Thread Xiubo Li
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 for both the IO critical section and the the critical section from the

[PATCH v2 1/4] dt: spi: Add Renesas RZ/N1 binding documentation

2019-09-18 Thread Gareth Williams
From: Phil Edworthy The Renesas RZ/N1 SPI Controller is based on the Synopsys DW SSI, but has additional registers for software CS control and DMA. This patch does not address the changes required for DMA support, it simply adds the compatible string. The CS functionality is not very useful and a

KASAN: use-after-free Read in key_put

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=175eae1160 kernel config: https://syzkaller.appspot.com/x/.config?x=861a6f31647968de da

[PATCH v2 2/4] dt-bindings: snps,dw-apb-ssi: Add optional clock domain information

2019-09-18 Thread Gareth Williams
Note in the bindings documentation that pclk should be renamed if a clock domain is used to enable the optional bus clock. Signed-off-by: Gareth Williams --- v2: Introduced this patch. --- Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.txt | 3 ++- 1 file changed, 2 insertions(+), 1 delet

[PATCH v2 0/4] spi: dw: Add basic runtime PM support

2019-09-18 Thread Gareth Williams
The Renesas RZ/N1 SPI Controller is based on the Synopsys DW SSI. This series enables power mode in the driver so the clock domain will enable the bus clock, adds the compatible string and updates the associated bindings documentation. v2: - Note that pclk should be renamed when using a clock dom

[PATCH v2 4/4] spi: dw: Add compatible string for Renesas RZ/N1 SPI Controller

2019-09-18 Thread Gareth Williams
From: Phil Edworthy The Renesas RZ/N1 SPI Controller is based on the Synopsys DW SSI, but has additional registers for software CS control and DMA. This patch does not address the changes required for DMA support, it simply adds the compatible string. The CS registers are not needed as Linux can

[PATCH v2 3/4] spi: dw: Add basic runtime PM support

2019-09-18 Thread Gareth Williams
From: Phil Edworthy Enable runtime PM so that the clock used to access the registers in the peripheral is turned on using a clock domain. Signed-off-by: Phil Edworthy Signed-off-by: Gareth Williams --- v2: - set spi_controller.auto_runtime_pm instead of using pm_runtime_get_sync. - Added

[RFC PATCH v3 0/6] Enable ptp_kvm for arm64

2019-09-18 Thread Jianyong Wu
kvm ptp targets to provide high precision time sync between guest and host in virtualization environment. This patch enable kvm ptp for arm64. This patch set base on [1][2][3] change log: from v2 to v3: (1) fix some issues in commit log. (2) add some receivers in send list. from v1

[RFC PATCH v3 1/6] psci: Export psci_ops.conduit symbol as modules will use it.

2019-09-18 Thread Jianyong Wu
If arm_smccc_1_1_invoke used in modules, psci_ops.conduit should be export. Signed-off-by: Jianyong Wu --- drivers/firmware/psci/psci.c | 6 ++ include/linux/arm-smccc.h| 2 +- include/linux/psci.h | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/firmw

[RFC PATCH v3 5/6] ptp: arm64: Enable ptp_kvm for arm64

2019-09-18 Thread Jianyong Wu
Currently in arm64 virtualization environment, there is no mechanism to keep time sync between guest and host. Time in guest will drift compared with host after boot up as they may both use third party time sources to correct their time respectively. The time deviation will be in order of milliseco

[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

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

2019-09-18 Thread Jianyong Wu
>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 new API that retrives both the current monotonic cl

[RFC PATCH v3 6/6] kvm: arm64: Add capability check extension for ptp_kvm

2019-09-18 Thread Jianyong Wu
Let userspace check if there is kvm ptp service in host. before VMs migrate to a another host, VMM may check if this cap is available to determine the migration behaviour. Signed-off-by: Jianyong Wu Suggested-by: Marc Zyngier --- include/uapi/linux/kvm.h | 1 + virt/kvm/arm/arm.c | 1 + 2

[RFC PATCH v3 2/6] ptp: Reorganize ptp_kvm modules to make it arch-independent.

2019-09-18 Thread Jianyong Wu
Currently, ptp_kvm modules implementation is only for x86 which includs large part of arch-specific code. This patch move all of those code into sole arch related file in the same directory. Signed-off-by: Jianyong Wu --- drivers/ptp/Makefile | 1 + drivers/ptp/{ptp_kvm.c => kv

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

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

[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

[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

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

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

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

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

[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

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

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

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

[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

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

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

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

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

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: 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 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: [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 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 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"). > >

  1   2   3   4   5   6   7   8   9   >