Re: [PATCH] Avoid that check_shl_overflow() triggers a compiler warning when building with W=1

2019-03-07 Thread Rasmus Villemoes
On 08/03/2019 01.08, Bart Van Assche wrote: > On Thu, 2019-03-07 at 08:18 +0100, Rasmus Villemoes wrote: >> On 07/03/2019 03.14, Bart Van Assche wrote: >>> On 3/6/19 5:24 PM, Jason Gunthorpe wrote: > > diff --git a/include/linux/overflow.h b/include/linux/overflow.h > index

Re: [PATCH v4 16/17] kvm: x86: Add support IA32_CORE_CAPABILITY MSR

2019-03-07 Thread Paolo Bonzini
On 08/03/19 07:10, Xiaoyao Li wrote: >> so that non-virtualizable features are hidden and >> >> if (boot_cpu_has(X86_FEATURE_SPLIT_LOCK_DETECT)) >> data |= CORE_CAP_SPLIT_LOCK_DETECT; >> >> so that userspace gets "for free" the FMS list that will be added >> later to the kernel.

[PATCH] power: reset: syscon-reboot: add a mask property

2019-03-07 Thread Martin Schiller
Make the syscon-reboot driver accept value and mask instead of just value. Prior to this patch, the property name for the value was 'mask'. If only the mask property is defined on a node, maintain compatibility by using it as the value. This patch is based on commit f2c199db477e ("power: reset:

Re: Kernel bug with MPX?

2019-03-07 Thread Michal Hocko
On Fri 08-03-19 08:12:49, Michal Hocko wrote: > On Thu 07-03-19 12:38:15, Dave Hansen wrote: > > On 3/6/19 12:53 AM, Richard Biener wrote: > > > When running the gcc.target/i386/mpx/memmove-1.c testcase > > > from the GCC 8 branch on MPX capable hardware the testcase > > > faults and the kernel

Re: [PATCH v2 3/3] blkcg: implement sync() isolation

2019-03-07 Thread Andrea Righi
On Thu, Mar 07, 2019 at 05:07:01PM -0500, Josef Bacik wrote: > On Thu, Mar 07, 2019 at 07:08:34PM +0100, Andrea Righi wrote: > > Keep track of the inodes that have been dirtied by each blkcg cgroup and > > make sure that a blkcg issuing a sync() can trigger the writeback + wait > > of only those

Re: [PATCH v2 1/3] blkcg: prevent priority inversion problem during sync()

2019-03-07 Thread Andrea Righi
On Thu, Mar 07, 2019 at 05:10:53PM -0500, Josef Bacik wrote: > On Thu, Mar 07, 2019 at 07:08:32PM +0100, Andrea Righi wrote: > > Prevent priority inversion problem when a high-priority blkcg issues a > > sync() and it is forced to wait the completion of all the writeback I/O > > generated by any

Re: [PATCH v2 1/9] serial: uapi: add SER_RS485_DELAY_IN_USEC flag to struct serial_rs485

2019-03-07 Thread Martin Kepplinger
On 21.02.19 18:17, Martin Kepplinger wrote: > This extends the user interface for rs485 communication: > > We add a new flag, SER_RS485_DELAY_IN_USEC, to struct serial_rs485 that > indicates that delay_rts_before_send and delay_rts_after_send values are > interpreted in microsecond units. > > Up

Re: [PATCH] [RFC] spi: pxa2xx: Do cs if restart the SSP during pxa2xx_spi_transfer_one()

2019-03-07 Thread Xiao, Jin
Hi On 3/8/2019 12:09 AM, Mark Brown wrote: On Thu, Mar 07, 2019 at 05:26:53PM +0200, Jarkko Nikula wrote: On 3/7/19 9:24 AM, xiao jin wrote: The patch is to do cs again if spi-pxa2xx restar the SSP during pxa2xx_spi_transfer_one() Hmm.. please correct me if I'm wrong but

[PATCH] workqueue: unregister wq lockdep on error path in alloc_workqueue()

2019-03-07 Thread Kefeng Wang
syzkaller report an issue "KASAN: use-after-free Read in alloc_workqueue", alloc_workqueue - kzalloc wq - wq_init_lockdep(wq); - lockdep_register_key(>key); // add to hlist - kfree wq But forget to call wq_unregister_lockdep()->lockdep_unregister_key(), it will delete the entry from

Re: [GIT PULL] x86/kdump changes for v5.1

2019-03-07 Thread Ingo Molnar
* Linus Torvalds wrote: > On Thu, Mar 7, 2019 at 11:23 AM Ingo Molnar wrote: > > > > Please pull the latest x86-kdump-for-linus git tree from: > > Hmm. No diffstat? > > The branch is simple enough that I'll pull anyway, but I would have > wanted to see that up front.. Sorry, I must have

[PATCH][v2] ipc: prevent lockup on alloc_msg and free_msg

2019-03-07 Thread Li RongQing
From: Li Rongqing msgctl10 of ltp triggers the following lockup When CONFIG_KASAN is enabled on large memory SMP systems, the pages initialization can take a long time, if msgctl10 requests a huge block memory, and it will block rcu scheduler, so release cpu actively. After adding schedule() in

Re: Kernel bug with MPX?

2019-03-07 Thread Michal Hocko
On Thu 07-03-19 12:38:15, Dave Hansen wrote: > On 3/6/19 12:53 AM, Richard Biener wrote: > > When running the gcc.target/i386/mpx/memmove-1.c testcase > > from the GCC 8 branch on MPX capable hardware the testcase > > faults and the kernel log reports the following: > > While I don't doubt that

Re: KASAN: use-after-free Read in get_mem_cgroup_from_mm

2019-03-07 Thread zhong jiang
On 2019/3/6 10:05, Andrea Arcangeli wrote: > Hello everyone, > > [ CC'ed Mike and Peter ] > > On Tue, Mar 05, 2019 at 02:42:00PM +0800, zhong jiang wrote: >> On 2019/3/5 14:26, Dmitry Vyukov wrote: >>> On Mon, Mar 4, 2019 at 4:32 PM zhong jiang wrote: On 2019/3/4 22:11, Dmitry Vyukov wrote:

Re: [PATCH] s390/mem_detect: Use IS_ENABLED(CONFIG_BLK_DEV_INITRD)

2019-03-07 Thread Martin Schwidefsky
On Thu, 07 Mar 2019 15:51:45 -0800 Joe Perches wrote: > IS_ENABLED should generally use CONFIG_ prefaced symbols and > it doesn't appear as if there is a BLK_DEV_INITRD define. > > Signed-off-by: Joe Perches > --- > arch/s390/boot/mem_detect.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH v2] powerpc: silence unused-but-set-variable warnings

2019-03-07 Thread Christophe Leroy
Le 07/03/2019 à 15:40, Qian Cai a écrit : pte_unmap() compiles away on some powerpc platforms, so silence the warnings below by making it a static inline function. mm/memory.c: In function 'copy_pte_range': mm/memory.c:820:24: warning: variable 'orig_dst_pte' set but not used

[PATCH] powerpc/6xx: fix setup and use of SPRN_PGDIR for hash32

2019-03-07 Thread Christophe Leroy
Not only the 603 but all 6xx need SPRN_PGDIR to be initialised at startup. This patch move it from __setup_cpu_603() to start_here() and __secondary_start(), close to the initialisation of SPRN_THREAD. Previously, virt addr of PGDIR was retrieved from thread struct. Now that it is the phys addr

Re: [PATCH] Avoid that check_shl_overflow() triggers a compiler warning when building with W=1

2019-03-07 Thread Leon Romanovsky
On Thu, Mar 07, 2019 at 09:28:45PM +0100, Rasmus Villemoes wrote: > On 07/03/2019 18.12, Kees Cook wrote: > > On Thu, Mar 7, 2019 at 9:02 AM Leon Romanovsky wrote: > >> > >> On Thu, Mar 07, 2019 at 08:52:51AM -0800, Kees Cook wrote: > >>> On Thu, Mar 7, 2019 at 7:40 AM Leon Romanovsky > >>>

Re: [PATCH] Avoid that check_shl_overflow() triggers a compiler warning when building with W=1

2019-03-07 Thread Leon Romanovsky
On Thu, Mar 07, 2019 at 04:08:23PM -0800, Bart Van Assche wrote: > On Thu, 2019-03-07 at 08:18 +0100, Rasmus Villemoes wrote: > > On 07/03/2019 03.14, Bart Van Assche wrote: > > > On 3/6/19 5:24 PM, Jason Gunthorpe wrote: > > > > > > > > > > diff --git a/include/linux/overflow.h

RE: [PATCH 1/6] PCI: mobiveil: Add the EP mode support

2019-03-07 Thread Xiaowei Bao
-Original Message- From: Subrahmanya Lingappa Sent: 2019年3月8日 14:45 To: Xiaowei Bao Cc: Bjorn Helgaas ; Z.q. Hou ; robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo Li ; kis...@ti.com; Lorenzo Pieralisi ; gre...@linuxfoundation.org; a...@arndb.de; M.h. Lian ;

Re: [PATCH 3/5] usb: roles: add API to get usb_role_switch by node

2019-03-07 Thread Andy Shevchenko
On Fri, Mar 8, 2019 at 8:14 AM Chunfeng Yun wrote: > > Add usb_role_switch_get_by_node() to make easier to get > usb_role_switch by node which register it. > It's useful when there is not device_connection registered > between two drivers and only knows the node which register > usb_role_switch.

Re: [PATCH 2/2] net: bonding: fix incorrect type in assignment

2019-03-07 Thread Jay Vosburgh
Bo YU wrote: >There are some warning when: > >sudo make C=1 CF=-D__CHECK_ENDIAN__ drivers/net/bonding/ > >drivers/net/bonding/bond_main.c:2438:40: warning: incorrect type in assignment >(different base types) >drivers/net/bonding/bond_main.c:2438:40:expected restricted __be16 >[usertype]

Re: [PATCH v3] posix-cpu-timers: Avoid undefined behaviour in timespec64_to_ns()

2019-03-07 Thread Xiongfeng Wang
On 2019/3/6 18:38, Arnd Bergmann wrote: > On Wed, Mar 6, 2019 at 9:41 AM Xiongfeng Wang > wrote: >> >> >> diff --git a/kernel/time/posix-timers.c b/kernel/time/posix-timers.c >> index 0e84bb7..4b57566 100644 >> --- a/kernel/time/posix-timers.c >> +++ b/kernel/time/posix-timers.c >> @@ -856,6

[PATCH V3] bpf: fix warning about using plain integer as NULL

2019-03-07 Thread Bo YU
Sparse warning below: sudo make C=2 CF=-D__CHECK_ENDIAN__ M=net/bpf/ CHECK net/bpf//test_run.c net/bpf//test_run.c:19:77: warning: Using plain integer as NULL pointer ./include/linux/bpf-cgroup.h:295:77: warning: Using plain integer as NULL pointer Fixes: 8bad74f9840f ("bpf: extend cgroup bpf

Re: [PATCH] kbuild: add workaround for Debian make-kpkg

2019-03-07 Thread Masahiro Yamada
On Fri, Mar 8, 2019 at 6:56 AM Ben Hutchings wrote: > > On Wed, 2019-03-06 at 22:48 -0800, Manoj Srivastava wrote: > > Hi, > > > > Does this have any users? Recently, I received a regression report. So, yes. There are users. > > I can take a stand at making it work, but I am > > unsure of

Re: [PATCH v5 8/9] clk: mediatek: Add MT8183 clock support

2019-03-07 Thread Nicolas Boichat
) On Tue, Mar 5, 2019 at 1:05 PM Weiyi Lu wrote: > > Add MT8183 clock support, include topckgen, apmixedsys, > infracfg, mcucfg and subsystem clocks. > > Signed-off-by: Weiyi Lu In v1 a while back (https://patchwork.kernel.org/patch/10669765/) I was complaining about code duplication between

Re: [PATCH 1/6] PCI: mobiveil: Add the EP mode support

2019-03-07 Thread Subrahmanya Lingappa
Xiaowei, On Mon, Feb 18, 2019 at 3:22 PM Xiaowei Bao wrote: > > Add the EP mode support for Mobiveil base on endpoint framework. > > Signed-off-by: Xiaowei Bao > --- > depends on: http://patchwork.ozlabs.org/project/linux-pci/list/?series=88754 > > drivers/pci/controller/mobiveil/Kconfig

Re: [PATCH v1 0/2] Enable Bluetooth functionality for wcn3998.

2019-03-07 Thread c-hbandi
Hi Mathias, On 2019-03-08 00:48, Matthias Kaehlcke wrote: + device tree folks On Thu, Mar 07, 2019 at 05:46:50PM +0530, Harish Bandi wrote: This patch series we add support for wcn3998 BT chip set. This new chipset is based from the wcn3990 with minimal power numbers. So here in this patch

Re: [PATCH net] net: selinux: fix memory leak in selinux_netlbl_socket_post_create()

2019-03-07 Thread maowenan
On 2019/3/8 4:36, Paul Moore wrote: > On Wed, Mar 6, 2019 at 9:44 PM Mao Wenan wrote: >> >> If netlbl_sock_setattr() is failed, it directly returns rc and forgets >> to free secattr. >> >> BUG: memory leak >> unreferenced object 0x8883c3ea4200 (size 2664): >> comm "syz-executor.2", pid

Re: [PATCH RT] nvdimm: make lane acquirement RT aware

2019-03-07 Thread Pankaj Gupta
> Currently, nvdimm driver isn't RT compatible. > nd_region_acquire_lane() disables preemption with get_cpu() which > causes "scheduling while atomic" spews on RT, when using fio to test > pmem as block device. > > In this change, we replace get_cpu/put_cpu with local_lock_cpu/ >

Re: [PATCH V2] bpf: fix warning about using plain integer as NULL

2019-03-07 Thread Y Song
On Thu, Mar 7, 2019 at 10:12 PM Bo YU wrote: > > Sparse warning below: > > sudo make C=2 CF=-D__CHECK_ENDIAN__ M=net/bpf/ > CHECK net/bpf//test_run.c > net/bpf//test_run.c:19:77: warning: Using plain integer as NULL pointer > ./include/linux/bpf-cgroup.h:295:77: warning: Using plain integer as

Re: [PATCH v5 7/9] clk: mediatek: Add configurable pcw_chg_reg to mtk_pll_data

2019-03-07 Thread Nicolas Boichat
On Tue, Mar 5, 2019 at 1:05 PM Weiyi Lu wrote: > > In previous MediaTek PLL design, it assumes the pcw change control > is always on the CON1 register. > However, the pcw change bit on MT8183 was moved onto CON0 because > the the PCW length of audio PLLs are extended to 32-bit. > Add configurable

Re: [PATCH v5 3/9] clk: mediatek: Add configurable pcwibits and fmin to mtk_pll_data

2019-03-07 Thread Nicolas Boichat
On Tue, Mar 5, 2019 at 1:06 PM Weiyi Lu wrote: > > From: Owen Chen > > 1. pcwibits: The integer bits of pcw for plls is extend to 8 bits, >add a variable to indicate this change and >backward-compatible. > 2. fmin: The pll freqency lower-bound is vary from 1GMhz to Minor nit: frequency

Re: [PATCH v5 6/9] clk: mediatek: Add flags support for mtk_gate data

2019-03-07 Thread Nicolas Boichat
On Tue, Mar 5, 2019 at 1:06 PM Weiyi Lu wrote: > > On some Mediatek platforms, there are critical clocks of > clock gate type. > To register clock gate with flags CLK_IS_CRITICAL, > we need to add the flags field in mtk_gate data and register APIs. > > Signed-off-by: Weiyi Lu

Re: [PATCH v5 2/9] clk: mediatek: Add new clkmux register API

2019-03-07 Thread Nicolas Boichat
On Tue, Mar 5, 2019 at 1:06 PM Weiyi Lu wrote: > > From: Owen Chen > > On both MT8183 & MT6765, there add "set/clr" register for > each clkmux setting, and one update register to trigger value change. > It is designed to prevent read-modify-write racing issue. > The sw design need to add a new

[PATCH 1/2] regulator: gpio: Convert to devm_regulator_register

2019-03-07 Thread Axel Lin
Use devm_regulator_register to simplify the code. Signed-off-by: Axel Lin --- drivers/regulator/gpio-regulator.c | 18 -- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/drivers/regulator/gpio-regulator.c b/drivers/regulator/gpio-regulator.c index

[PATCH 2/2] regulator: gpio: Constify regulator_ops

2019-03-07 Thread Axel Lin
gpio_regulator_voltage_ops and gpio_regulator_current_ops should never change, make them const. Signed-off-by: Axel Lin --- drivers/regulator/gpio-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/gpio-regulator.c

[PATCH 5/5] usb: mtu3: register a USB Role Switch for Dual-Role mode

2019-03-07 Thread Chunfeng Yun
Due to extcon is not allowed for new bindings, and the Dual-Role switch is supported by USB Role Switch, especially for Type-C drivers, so register a USB Role Switch to support the new way Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3.h | 5 drivers/usb/mtu3/mtu3_dr.c | 50

[PATCH 4/5] usb: roles: add USB Type-B connector driver

2019-03-07 Thread Chunfeng Yun
Due to the requirement of usb-connector.txt binding, the old way using extcon to support USB Dual-Role switch is now deprecated when use Type-B connector. This patch introduce a Type-B connector driver and try to replace the function provided by extcon-usb-gpio driver Signed-off-by: Chunfeng Yun

[PATCH 3/5] usb: roles: add API to get usb_role_switch by node

2019-03-07 Thread Chunfeng Yun
Add usb_role_switch_get_by_node() to make easier to get usb_role_switch by node which register it. It's useful when there is not device_connection registered between two drivers and only knows the node which register usb_role_switch. Signed-off-by: Chunfeng Yun --- drivers/usb/roles/class.c |

[PATCH 2/5] dt-bindings: usb: mtu3: add properties about USB Role Switch

2019-03-07 Thread Chunfeng Yun
Now the USB Role Switch is supported, so add properties about it Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/usb/mediatek,mtu3.txt | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtu3.txt

[PATCH 0/5] add USB Type-B connector driver

2019-03-07 Thread Chunfeng Yun
Because the USB Connector is introduced and the requirement of usb-connector.txt binding, the old way using extcon to support USB Dual-Role switch is now deprecated, meanwhile there is no available common driver when use Type-B connector. This patch series introduce a Type-B connector driver and

[PATCH 1/5] dt-bindings: connector: add optional properties for Type-B

2019-03-07 Thread Chunfeng Yun
Add id-gpios, vbus-gpios, vbus-supply and pinctrl properties for usb-b-connector Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/connector/usb-connector.txt| 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/connector/usb-connector.txt

Re: [PATCH v4 16/17] kvm: x86: Add support IA32_CORE_CAPABILITY MSR

2019-03-07 Thread Xiaoyao Li
Hi, Paolo On Mon, 2019-03-04 at 09:42 +0100, Paolo Bonzini wrote: > On 02/03/19 03:45, Fenghua Yu wrote: > > From: Xiaoyao Li > > > > MSR IA32_CORE_CAPABILITY is a feature-enumerating MSR, bit 5 of which > > reports the capability of enabling detection of split locks (will be > > supported on

Re: [PATCH v5 1/2] media: uapi: Add H264 low-level decoder API compound controls.

2019-03-07 Thread Tomasz Figa
Hi Maxime, On Thu, Mar 7, 2019 at 10:20 PM Maxime Ripard wrote: > > From: Pawel Osciak > > Stateless video codecs will require both the H264 metadata and slices in > order to be able to decode frames. > > This introduces the definitions for a new pixel format for H264 slices that > have been

[PATCH V2] bpf: fix warning about using plain integer as NULL

2019-03-07 Thread Bo YU
Sparse warning below: sudo make C=2 CF=-D__CHECK_ENDIAN__ M=net/bpf/ CHECK net/bpf//test_run.c net/bpf//test_run.c:19:77: warning: Using plain integer as NULL pointer ./include/linux/bpf-cgroup.h:295:77: warning: Using plain integer as NULL pointer Fixes: 8bad74f9840f ("bpf: extend cgroup bpf

Re: [PATCH] pinctrl: add drive for I2C related pins on MT8183

2019-03-07 Thread Nicolas Boichat
This is a v3, I think, please make sure the update the email title, and add a changelog below ---. On Sun, Mar 3, 2019 at 9:54 AM Zhiyong Tao wrote: > > This patch provides the advanced drive for I2C used pins on MT8183. > The detail strength specification description of the I2C pin is as

[PATCH] kbuild: source include/config/auto.conf instead of ${KCONFIG_CONFIG}

2019-03-07 Thread Masahiro Yamada
As commit 423a8155facf ("kbuild: Fix reading of .config in link-vmlinux.sh") addressed, some shells fail to perform '.' if ${KCONFIG_CONFIG} does not contain a slash at all. Instead, we can source include/config/auto.conf, which obviously contain slashes, and we do not expect its file path

Re: [PATCH] bpf: fix warning about using plain integer as NULL

2019-03-07 Thread Yonghong Song
On 3/7/19 8:39 PM, Bo YU wrote: > Sparse warning below: > > sudo make C=2 CF=-D__CHECK_ENDIAN__ M=net/bpf/ > CHECK net/bpf//test_run.c > net/bpf//test_run.c:19:77: warning: Using plain integer as NULL pointer > ./include/linux/bpf-cgroup.h:295:77: warning: Using plain integer as NULL >

[PATCH 2/2] net: bonding: fix incorrect type in assignment

2019-03-07 Thread Bo YU
There are some warning when: sudo make C=1 CF=-D__CHECK_ENDIAN__ drivers/net/bonding/ drivers/net/bonding/bond_main.c:2438:40: warning: incorrect type in assignment (different base types) drivers/net/bonding/bond_main.c:2438:40:expected restricted __be16 [usertype] vlan_proto

[PATCH 0/2] net: bonding: fix sparse warning

2019-03-07 Thread Bo YU
Bo YU (2): net: bonding: fix restricted __be16 degrades to integer net: bonding: fix incorrect type in assignment drivers/net/bonding/bond_main.c| 8 drivers/net/bonding/bond_options.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) -- 2.11.0

[PATCH 1/2] net: bonding: fix restricted __be16 degrades to integer

2019-03-07 Thread Bo YU
There are some warning when: sudo make C=1 CF=-D__CHECK_ENDIAN__ drivers/net/bonding/ drivers/net/bonding/bond_main.c:2385:26: warning: restricted __be16 degrades to integer drivers/net/bonding/bond_main.c:2391:20: warning: restricted __be16 degrades to integer ...

[PATCH] unicore32: simplify linker script generation for decompressor

2019-03-07 Thread Masahiro Yamada
When I was searching for unneeded $(KCONFIG_CONFIG) usages, I noticed this strange build dependency. It can use $(call if_changed,...) in case ZTEXTADDR and ZBSSADDR are changed, but even a simpler way is to use the pattern rule in scripts/Makefile.build. This is what

Re: [PATCH v3 0/7] lib/string: Add strscpy_pad() function

2019-03-07 Thread Tobin C. Harding
On Thu, Mar 07, 2019 at 02:43:57PM -0800, Kees Cook wrote: > On Thu, Mar 7, 2019 at 1:19 PM Tobin C. Harding wrote: > > > > On Thu, Mar 07, 2019 at 08:49:34AM +1100, Tobin C. Harding wrote: > > > On Thu, Mar 07, 2019 at 08:42:19AM +1100, Tobin C. Harding wrote: > > > > Hi, > > > > > > Man, I

Re: [PATCH v1] Bluetooth: hci_qca: Give enough time to ROME controller to bootup.

2019-03-07 Thread rjliao
在 2019-03-07 00:21,Balakrishna Godavarthi 写道: This patch enables enough time to ROME controller to bootup after we bring the enable ping out of reset. Signed-off-by: Balakrishna Godavarthi --- drivers/bluetooth/hci_qca.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH v1] Bluetooth: hci_qca: Enable the ldisc for ROME for x86 platforms.

2019-03-07 Thread Balakrishna Godavarthi
Hi Matthias, On 2019-03-08 02:12, Matthias Kaehlcke wrote: Hi Balakrishna, On Thu, Mar 07, 2019 at 03:47:22PM +0530, Balakrishna Godavarthi wrote: When using btattach to setup Rome over ldisc we observed a crash in qca_setup as it will try to access the serdev which is not available in the

[PATCH] HID: Increase maximum report size allowed by hid_field_extract()

2019-03-07 Thread Kai-Heng Feng
Commit 71f6fa90a353 ("HID: increase maximum global item tag report size to 256") increases the max report size from 128 to 256. We also need to update the report size in hid_field_extract() otherwise it complains and truncates now valid report size: [ 406.165461] hid-sensor-hub

Re: [PATCH v2 06/10] soc: mediatek: cmdq: clear the event in cmdq initial flow

2019-03-07 Thread CK Hu
Hi, Bibby: On Wed, 2019-03-06 at 17:50 +0800, Bibby Hsieh wrote: > GCE hardware stored event information in own internal sysram, > if the initial value in those sysram is not zero value > it will cause a situation that gce can wait the event immediately > after client ask gce to wait event but

Re: [PATCH 6/9] docs: Use correct list markup character

2019-03-07 Thread Tobin C. Harding
On Thu, Mar 07, 2019 at 07:40:14PM -0800, Randy Dunlap wrote: > On 3/7/19 1:11 PM, Tobin C. Harding wrote: > > Sphinx uses a star not a hyphen for lists. > > > > Use correct list markup character. > > > > Signed-off-by: Tobin C. Harding > > Hi Tobin, > > The blank line insertions are all that

Re: [PATCH 8/9] docs: Fix Title underline too short warning

2019-03-07 Thread Tobin C. Harding
On Thu, Mar 07, 2019 at 07:42:03PM -0800, Randy Dunlap wrote: > On 3/7/19 1:11 PM, Tobin C. Harding wrote: > > Sphinx emits a bunch of 'Title underline too short' warnings. We can > > fix these by using the correct length underlines. > > > > Fix Title underline too short warning by amending

Re: [PATCH v9 02/11] powerpc: prepare string/mem functions for KASAN

2019-03-07 Thread Daniel Axtens
>>> +#ifdef CONFIG_KASAN >>> +#define _GLOBAL_KASAN(fn) .weak fn ; _GLOBAL(__##fn) ; _GLOBAL(fn) >>> +#define _GLOBAL_TOC_KASAN(fn) .weak fn ; _GLOBAL_TOC(__##fn) ; >>> _GLOBAL_TOC(fn) >>> +#define EXPORT_SYMBOL_KASAN(fn)EXPORT_SYMBOL(__##fn) ; >>> EXPORT_SYMBOL(fn) >> >> I'm having

Re: [RFC PATCH 2/2] spi: spi-mem: Add support for Zynq QSPI controller

2019-03-07 Thread Vignesh Raghavendra
On 01/03/19 4:32 PM, Naga Sureshkumar Relli wrote: >>> +static bool zynq_qspi_supports_op(struct spi_mem *mem, >>> + const struct spi_mem_op *op) >>> +{ >>> + int ret; >>> + >>> + ret = zynq_qspi_check_buswidth(op->cmd.buswidth); >>> + >>> + if

[PATCH] bpf: fix warning about using plain integer as NULL

2019-03-07 Thread Bo YU
Sparse warning below: sudo make C=2 CF=-D__CHECK_ENDIAN__ M=net/bpf/ CHECK net/bpf//test_run.c net/bpf//test_run.c:19:77: warning: Using plain integer as NULL pointer ./include/linux/bpf-cgroup.h:295:77: warning: Using plain integer as NULL pointer Signed-off-by: Bo YU ---

Re: [PATCH] OPP: Fix handling of multiple power domains

2019-03-07 Thread Viresh Kumar
On 06-03-19, 09:37, Rajendra Nayak wrote: > We seem to rely on the number of phandles specified in the > 'required-opps' property to identify cases where a device is > associated with multiple power domains and hence would have > multiple virtual devices that have to be dealt with. > > In cases

Re: [RFC PATCH v1 20/25] serial: 8250: implement write_atomic

2019-03-07 Thread John Ogness
On 2019-03-08, John Ogness wrote: > If the ringbuffer was fully lockless, we should be able to have > per-console CPU-reentrant spin locks as long as the ordering is > preserved, which I expect shouldn't be a problem. If any NMI context > needed a spin lock for its own purposes, it would need to

[RFC 08/15] tools/vm/slabinfo: Add defrag_used_ratio output

2019-03-07 Thread Tobin C. Harding
Add output for the newly added defrag_used_ratio sysfs knob. Signed-off-by: Tobin C. Harding --- tools/vm/slabinfo.c | 4 1 file changed, 4 insertions(+) diff --git a/tools/vm/slabinfo.c b/tools/vm/slabinfo.c index 9cdccdaca349..8cf3bbd061e2 100644 --- a/tools/vm/slabinfo.c +++

[RFC 07/15] slub: Add defrag_used_ratio field and sysfs support

2019-03-07 Thread Tobin C. Harding
In preparation for enabling defragmentation of slab pages. "defrag_used_ratio" is used to set the threshold at which defragmentation should be attempted on a slab page. "defrag_used_ratio" is a percentage in the range of 0 - 100 (inclusive). If less than that percentage of slots in a slab page

[RFC 13/15] tools/testing/slab: Add XArray movable objects tests

2019-03-07 Thread Tobin C. Harding
We just implemented movable objects for the XArray. Let's test it intree. Add test module for the XArray's movable objects implementation. Functionality of the XArray Slab Movable Object implementation can usually be seen by simply by using `slabinfo` on a running machine since the radix tree

[RFC 05/15] slub: Sort slab cache list

2019-03-07 Thread Tobin C. Harding
It is advantageous to have all defragmentable slabs together at the beginning of the list of slabs so that there is no need to scan the complete list. Put defragmentable caches first when adding a slab cache and others last. Co-developed-by: Christoph Lameter Signed-off-by: Tobin C. Harding ---

[RFC 11/15] tools/testing/slab: Add object migration test suite

2019-03-07 Thread Tobin C. Harding
We just added a module that enables testing the SLUB allocators ability to defrag/shrink caches via movable objects. Tests are better when they are automated. Add automated testing via a python script for SLUB movable objects. Example output: $ cd path/to/linux/tools/testing/slab $

[RFC 15/15] slub: Enable balancing slab objects across nodes

2019-03-07 Thread Tobin C. Harding
We have just implemented Slab Movable Objects (SMO). On NUMA systems slabs can become unbalanced i.e. many objects on one node while other nodes have few objects. Using SMO we can balance the objects across all the nodes. The algorithm used is as follows: 1. Move all objects to node 0 (this

[RFC 12/15] xarray: Implement migration function for objects

2019-03-07 Thread Tobin C. Harding
Implement functions to migrate objects. This is based on initial code by Matthew Wilcox and was modified to work with slab object migration. Co-developed-by: Christoph Lameter Signed-off-by: Tobin C. Harding --- lib/radix-tree.c | 13 + lib/xarray.c | 44

[RFC 14/15] slub: Enable move _all_ objects to node

2019-03-07 Thread Tobin C. Harding
We have just implemented Slab Movable Objects (object migration). Currently object migration is used to defrag a cache. On NUMA systems it would be nice to be able to move objects and control the source and destination nodes. Add CONFIG_SMO_NODE to guard this feature. CONFIG_SMO_NODE depends on

[RFC 02/15] slub: Add isolate() and migrate() methods

2019-03-07 Thread Tobin C. Harding
Add the two methods needed for moving objects and enable the display of the callbacks via the /sys/kernel/slab interface. Add documentation explaining the use of these methods and the prototypes for slab.h. Add functions to setup the callbacks method for a slab cache. Add empty functions for

[RFC 00/15] mm: Implement Slab Movable Objects (SMO)

2019-03-07 Thread Tobin C. Harding
Hi, Here is a patch set implementing movable objects within the SLUB allocator. This is work based on Christopher's patch set: https://lore.kernel.org/patchwork/project/lkml/list/?series=377335 The original code logic is from that set and implemented by Christopher. Clean up, refactoring,

[RFC 06/15] tools/vm/slabinfo: Add remote node defrag ratio output

2019-03-07 Thread Tobin C. Harding
Add output line for NUMA remote node defrag ratio. Signed-off-by: Tobin C. Harding --- tools/vm/slabinfo.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tools/vm/slabinfo.c b/tools/vm/slabinfo.c index 6ba8ffb4ea50..9cdccdaca349 100644 --- a/tools/vm/slabinfo.c +++

[RFC 04/15] slub: Enable Slab Movable Objects (SMO)

2019-03-07 Thread Tobin C. Harding
We have now in place a mechanism for adding callbacks to a cache in order to be able to implement object migration. Add a function __move() that implements SMO by moving all objects in a slab page using the isolate/migrate callback methods. Co-developed-by: Christoph Lameter Signed-off-by:

[RFC 09/15] slub: Enable slab defragmentation using SMO

2019-03-07 Thread Tobin C. Harding
If many objects are allocated with the slab allocator and freed in an arbitrary order then the slab caches can become internally fragmented. Now that the slab allocator supports movable objects we can defragment any cache that has this feature enabled. Slab defragmentation may occur: 1.

[RFC 10/15] tools/testing/slab: Add object migration test module

2019-03-07 Thread Tobin C. Harding
We just implemented slab movable objects for the SLUB allocator. We should test that code. In order to do so we need to be able to a number of things - Create a cache - Allocate objects to the cache - Free objects from within specific slabs of the cache - Enable Slab Movable Objects for the

[RFC 01/15] slub: Create sysfs field /sys/slab//ops

2019-03-07 Thread Tobin C. Harding
Create an ops field in /sys/slab/*/ops to contain all the callback operations defined for a slab cache. This will be used to display the additional callbacks that will be defined soon to enable movable objects. Display the existing ctor callback in the ops fields contents. Co-developed-by:

[RFC 03/15] tools/vm/slabinfo: Add support for -C and -F options

2019-03-07 Thread Tobin C. Harding
-F lists caches that support object migration. -C lists caches that use a ctor. Add command line options to show caches with a constructor and caches with that are migratable (i.e. have isolate and migrate functions). Co-developed-by: Christoph Lameter Signed-off-by: Tobin C. Harding ---

[PATCH] iommu/amd: Fix a null pointer dereference for ACPI devices

2019-03-07 Thread Chris Chiu
On ASUS laptop X512DK with the realtek USB card reader, the NULL pointer dereference happens while bringing up the rtsx_usb driver. [1.782281] BUG: unable to handle kernel NULL pointer dereference at 0090 [1.782283] PGD 0 P4D 0 [1.782285] Oops: [#1] SMP NOPTI [

Re: [RFC PATCH v1 20/25] serial: 8250: implement write_atomic

2019-03-07 Thread John Ogness
On 2019-02-27, Petr Mladek wrote: Implement a non-sleeping NMI-safe write_atomic console function in order to support emergency printk messages. >>> >>> OK, it would be safe when prb_lock() is the only lock taken >>> in the NMI handler. >> >> Which is the case. As I wrote to you

[PATCH] net: stmmac: Avoid one more sometimes uninitialized Clang warning

2019-03-07 Thread Nathan Chancellor
When building with -Wsometimes-uninitialized, Clang warns: drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c:111:2: error: variable 'ns' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c:111:2: error:

Re: [PATCH 7/9] docs: Remove unknown 'hint' directive

2019-03-07 Thread Randy Dunlap
On 3/7/19 1:11 PM, Tobin C. Harding wrote: > Current RST file contains an unknown directive causing Sphinx to emit > > ERROR: Unexpected indentation. > > Use normal language construct instead. > > Signed-off-by: Tobin C. Harding This is a good idea. My previous patch eliminated the

Re: [RFC PATCH V2 5/5] vhost: access vq metadata through kernel virtual address

2019-03-07 Thread Jerome Glisse
On Thu, Mar 07, 2019 at 10:43:12PM -0500, Michael S. Tsirkin wrote: > On Thu, Mar 07, 2019 at 10:40:53PM -0500, Jerome Glisse wrote: > > On Thu, Mar 07, 2019 at 10:16:00PM -0500, Michael S. Tsirkin wrote: > > > On Thu, Mar 07, 2019 at 09:55:39PM -0500, Jerome Glisse wrote: > > > > On Thu, Mar 07,

Re: [PATCH v9 02/11] powerpc: prepare string/mem functions for KASAN

2019-03-07 Thread Daniel Axtens
Christophe Leroy writes: > Le 04/03/2019 à 06:26, Daniel Axtens a écrit : >> Hi Christophe, >>> diff --git a/arch/powerpc/include/asm/kasan.h >>> b/arch/powerpc/include/asm/kasan.h >>> new file mode 100644 >>> index ..c3161b8fc017 >>> --- /dev/null >>> +++

Re: [RFC PATCH V2 5/5] vhost: access vq metadata through kernel virtual address

2019-03-07 Thread Michael S. Tsirkin
On Thu, Mar 07, 2019 at 10:40:53PM -0500, Jerome Glisse wrote: > On Thu, Mar 07, 2019 at 10:16:00PM -0500, Michael S. Tsirkin wrote: > > On Thu, Mar 07, 2019 at 09:55:39PM -0500, Jerome Glisse wrote: > > > On Thu, Mar 07, 2019 at 09:21:03PM -0500, Michael S. Tsirkin wrote: > > > > On Thu, Mar 07,

Re: [PATCH 9/9] docs: Add blank line after SPDX licence identifier

2019-03-07 Thread Randy Dunlap
On 3/7/19 1:11 PM, Tobin C. Harding wrote: > Sphinx emits warning > > WARNING: Explicit markup ends without a blank line; unexpected > unindent. > > This is caused by a missing line after the SPDX license identifier. > > Add blank line after SPDX licence identifier. > >

Re: [PATCH 8/9] docs: Fix Title underline too short warning

2019-03-07 Thread Randy Dunlap
On 3/7/19 1:11 PM, Tobin C. Harding wrote: > Sphinx emits a bunch of 'Title underline too short' warnings. We can > fix these by using the correct length underlines. > > Fix Title underline too short warning by amending heading underline. > > Signed-off-by: Tobin C. Harding > --- >

Re: [PATCH v2 04/10] soc: mediatek: cmdq: add mt8183 compatible name

2019-03-07 Thread CK Hu
Hi, Bibby: On Wed, 2019-03-06 at 17:50 +0800, Bibby Hsieh wrote: > add mt8183 compatible name This patch doest not just add compatible name, it let this driver support mt8183 gce function. And I think this patch should be moved after the patch 'soc: mediatek: cmdq: move the CMDQ_IRQ_MASK into

Re: [RFC PATCH V2 5/5] vhost: access vq metadata through kernel virtual address

2019-03-07 Thread Jerome Glisse
On Thu, Mar 07, 2019 at 10:16:00PM -0500, Michael S. Tsirkin wrote: > On Thu, Mar 07, 2019 at 09:55:39PM -0500, Jerome Glisse wrote: > > On Thu, Mar 07, 2019 at 09:21:03PM -0500, Michael S. Tsirkin wrote: > > > On Thu, Mar 07, 2019 at 02:17:20PM -0500, Jerome Glisse wrote: > > > > > It's because

Re: [PATCH 6/9] docs: Use correct list markup character

2019-03-07 Thread Randy Dunlap
On 3/7/19 1:11 PM, Tobin C. Harding wrote: > Sphinx uses a star not a hyphen for lists. > > Use correct list markup character. > > Signed-off-by: Tobin C. Harding Hi Tobin, The blank line insertions are all that is needed. And I have already sent a patch for that. Also, a list can begin with

Re: [PATCH 5/9] docs: Replace backtick with apostrophe.

2019-03-07 Thread Randy Dunlap
On 3/7/19 1:11 PM, Tobin C. Harding wrote: > Sphinx emits: > > WARNING: Inline interpreted text or phrase reference > start-string without end-string. > > This is caused by a spurious backtick. > > Replace backtick with apostrophe. > > Signed-off-by: Tobin C. Harding > --- >

Re: [PATCH 1/8] aio: make sure file is pinned

2019-03-07 Thread Al Viro
On Wed, Mar 06, 2019 at 05:30:21PM -0800, Linus Torvalds wrote: > On Wed, Mar 6, 2019 at 5:20 PM Al Viro wrote: > > > > I'll try to massage that series on top of your patch; I still hate the > > post-vfs_poll() logics in aio_poll() ;-/ Give me about half an hour > > and I'll have something to

Re: [RFC] Provide in-kernel headers for making it easy to extend the kernel

2019-03-07 Thread Joel Fernandes
On Thu, Mar 07, 2019 at 03:40:37PM -0800, h...@zytor.com wrote: > On March 7, 2019 3:12:07 PM PST, Joel Fernandes > wrote: > >Enrico, > > > >On Thu, Mar 07, 2019 at 11:11:22PM +0100, Enrico Weigelt, metux IT > >consult wrote: > >> On 07.03.19 21:55, Greg KH wrote: > >> > >> > Ick, no, no more

Re: [RFC PATCH V2 5/5] vhost: access vq metadata through kernel virtual address

2019-03-07 Thread Michael S. Tsirkin
On Thu, Mar 07, 2019 at 09:55:39PM -0500, Jerome Glisse wrote: > On Thu, Mar 07, 2019 at 09:21:03PM -0500, Michael S. Tsirkin wrote: > > On Thu, Mar 07, 2019 at 02:17:20PM -0500, Jerome Glisse wrote: > > > > It's because of all these issues that I preferred just accessing > > > > userspace memory

Re: [PATCH v3 1/1] mm: introduce put_user_page*(), placeholder versions

2019-03-07 Thread John Hubbard
On 3/7/19 6:58 PM, Christopher Lameter wrote: > On Wed, 6 Mar 2019, john.hubb...@gmail.com wrote: > >> Dave Chinner's description of this is very clear: >> >> "The fundamental issue is that ->page_mkwrite must be called on every >> write access to a clean file backed page, not just the

Re: [PATCH 4/4] iommu/vt-d: Remove lazy allocation of domains

2019-03-07 Thread Lu Baolu
Hi James, On 3/7/19 6:21 PM, James Sewart wrote: Hey Lu, On 7 Mar 2019, at 06:31, Lu Baolu wrote: Hi James, On 3/7/19 2:08 AM, James Sewart wrote: - /* -* For each rmrr -* for each dev attached to rmrr -* do -* locate drhd for dev, alloc

Re: [PATCH] md: Fix failed allocation of md_register_thread

2019-03-07 Thread Guoqing Jiang
On 3/5/19 6:48 AM, Aditya Pakki wrote: mddev->sync_thread can be set to NULL on kzalloc failure downstream. The patch checks for such a scenario and frees allocated resources. Signed-off-by: Aditya Pakki --- drivers/md/raid10.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v3 09/31] docs/zh_CN: rename stable_kernel_rules doc

2019-03-07 Thread Alex Shi
This patch renamed stable_kernel_rules.txt to stable-kernel-rules.rst Make it available in htmldocs making. Signed-off-by: Alex Shi Cc: Harry Wei Cc: Jonathan Corbet Cc: TripleX Chung Cc: Li Zefan Cc: Shawn Guo Cc: Fengguang Wu Cc: Coly Li --- .../process/{stable_kernel_rules.txt =>

  1   2   3   4   5   6   7   8   9   10   >