Re: [PATCH v2] objtool: move libelf detection to Kconfig from Makefile

2018-07-09 Thread Masahiro Yamada
Hi. 2018-07-10 11:29 GMT+09:00 Josh Poimboeuf : > On Tue, Jul 10, 2018 at 10:35:16AM +0900, Masahiro Yamada wrote: >> Currently, users are allowed to enable STACK_VALIDATION regardless >> of the compiler capability. The top-level Makefile warns or breaks >> the build if it turns out that the

Re: linux-next: build warnings after merge of the rdma tree

2018-07-09 Thread Stephen Rothwell
Hi Jason, On Mon, 9 Jul 2018 21:41:57 -0600 Jason Gunthorpe wrote: > > What compiler is producing these? I got nothing from 0-day build > service or my local gcc-7.. The x86 compiler is a v7.3.1 cross compiler hosted on PowerPC LE and built from sources. > They are false positives and I guess

Re: [PATCH V2] MIPS: implement smp_cond_load_acquire() for Loongson-3

2018-07-09 Thread Huacai Chen
Hi, Paul and Peter, I think we find the real root cause, READ_ONCE() doesn't need any barriers, the problematic code is queued_spin_lock_slowpath() in kernel/locking/qspinlock.c: if (old & _Q_TAIL_MASK) { prev = decode_tail(old); /* Link @node into the

Re: [PATCH v2] objtool: move libelf detection to Kconfig from Makefile

2018-07-09 Thread Josh Poimboeuf
On Tue, Jul 10, 2018 at 12:47:49PM +0900, Masahiro Yamada wrote: > Hi. > > > 2018-07-10 11:29 GMT+09:00 Josh Poimboeuf : > > On Tue, Jul 10, 2018 at 10:35:16AM +0900, Masahiro Yamada wrote: > >> Currently, users are allowed to enable STACK_VALIDATION regardless > >> of the compiler capability.

[PATCH 1/2] arm: dts: mt7623: cleanup MT7623N NAND dts file

2018-07-09 Thread Ryder Lee
Normally, we didn't release this kind of baord to user. This specific board exists only in the early stage of development inside MediaTek - and that may confuse peoples. Hence this patch removes related files accordingly. Cc: John Crispin Cc: Sean Wang Signed-off-by: Ryder Lee ---

Re: linux-next: manual merge of the rdma tree with the rdma-fixes tree

2018-07-09 Thread Leon Romanovsky
On Tue, Jul 10, 2018 at 11:17:40AM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the rdma tree got a conflict in: > > drivers/infiniband/core/uverbs_cmd.c > > between commit: > > 4fae7f170416 ("RDMA/uverbs: Fix slab-out-of-bounds in > ib_uverbs_ex_create_flow") > >

[PATCH 2/2] dt-bindings: arm: mediatek: cleanup MT7623N reference boards

2018-07-09 Thread Ryder Lee
Cleanup binding document to get rid of unsupported reference boards for MT7623N. Cc: John Crispin Cc: Sean Wang Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/arm/mediatek.txt | 3 --- 1 file changed, 3 deletions(-) diff --git

RE: [PATCH] mmc: core: improve rationality of bus width setting for HS400es

2018-07-09 Thread 方洪杰
> On 9 July 2018 at 08:47, Hongjie Fang wrote: > > mmc_select_hs400es() calls mmc_select_bus_width() which will try to > > set 4bit transfer mode if fail to set 8bit mode. The problem is that > > the bus width should not be set to 4bit in HS400es mode. > > I guess it fails because there is

Re: [PATCH v2] objtool: move libelf detection to Kconfig from Makefile

2018-07-09 Thread Ingo Molnar
* Josh Poimboeuf wrote: > Since we switched the x86_64 default to the ORC unwinder, a lot of > people have switched over. But this patch will reverse (or at least > slow down) that trend, because almost nobody has the libelf devel > packaged installed by default. So over time, it will

Re: [PATCH -mm -v4 02/21] mm, THP, swap: Make CONFIG_THP_SWAP depends on CONFIG_SWAP

2018-07-09 Thread Huang, Ying
Dave Hansen writes: > On 07/09/2018 06:19 PM, Huang, Ying wrote: >> Dave Hansen writes: >> config THP_SWAP def_bool y - depends on TRANSPARENT_HUGEPAGE && ARCH_WANTS_THP_SWAP + depends on TRANSPARENT_HUGEPAGE && ARCH_WANTS_THP_SWAP && SWAP help >>> >>> This

Re: [LKP] [lkp-robot] [brd] 316ba5736c: aim7.jobs-per-min -11.2% regression

2018-07-09 Thread kemi
Hi, SeongJae Do you have any input for this regression? thanks On 2018年06月04日 13:52, kernel test robot wrote: > > Greeting, > > FYI, we noticed a -11.2% regression of aim7.jobs-per-min due to commit: > > > commit: 316ba5736c9caa5dbcd84085989862d2df57431d ("brd: Mark as > non-rotational") >

Re: [PATCH] ib_srpt: use kvmalloc to allocate ring pointers

2018-07-09 Thread Leon Romanovsky
On Mon, Jul 09, 2018 at 04:51:08PM +0300, Jan Dakinevich wrote: > An array of pointers to SRPT contexts in ib_device is over 30KiB even > in default case, in which an amount of contexts is 4095. The patch > is intended to weed out large contigous allocation for non-DMA memory. kvmalloc* doesn't

Re: [PATCH v3] cpufreq / CPPC: Add cpuinfo_cur_freq support for CPPC

2018-07-09 Thread George Cherian
Hi Prakash, On 07/09/2018 10:12 PM, Prakash, Prashanth wrote: Hi George, On 7/9/2018 4:10 AM, George Cherian wrote: Per Section 8.4.7.1.3 of ACPI 6.2, The platform provides performance feedback via set of performance counters. To determine the actual performance level delivered over time,

Re: [PATCH v5 2/6] clk: ti: dra7: Add clkctrl clock data for the mcan clocks

2018-07-09 Thread Tony Lindgren
* Faiz Abbas [180709 16:50]: > Add clkctrl data for the m_can clocks and register it within the > clkctrl driver I'll apply patches 2 to 5 to omap-for-v4.19/ti-sysc. The clock patch is trivial enough to not have to wait for Tero to be back online. And I'll apply the dts changes into

Re: [PATCH 2/2] dt-bindings: arm: mediatek: cleanup MT7623N reference boards

2018-07-09 Thread John Crispin
On 10/07/18 07:09, Ryder Lee wrote: Cleanup binding document to get rid of unsupported reference boards for MT7623N. Cc: John Crispin Cc: Sean Wang Signed-off-by: Ryder Lee Acked-by: John Crispin --- Documentation/devicetree/bindings/arm/mediatek.txt | 3 --- 1 file changed, 3

Re: [PATCH 1/2] arm: dts: mt7623: cleanup MT7623N NAND dts file

2018-07-09 Thread John Crispin
On 10/07/18 07:09, Ryder Lee wrote: Normally, we didn't release this kind of baord to user. This specific board exists only in the early stage of development inside MediaTek - and that may confuse peoples. Hence this patch removes related files accordingly. Cc: John Crispin Cc: Sean Wang

RE: Re: devfreq relation with pm qos

2018-07-09 Thread MyungJoo Ham
> + dev freq maintainters. > > On Mon, Jul 9, 2018 at 3:37 AM, noman pouigt wrote: > > folks, > > > > I am trying to figure out the relationship between PM QOS > > with devfreq framework. I see this thread[1] where MyungJoo > > talks about QOS and devfreq but that control is through > > sysfs

Re: Kernel 4.17.4 lockup

2018-07-09 Thread Dave Hansen
On 07/09/2018 07:14 PM, H.J. Lu wrote: >> I'd really want to see this reproduced without KASLR to make the oops >> easier to read. It would also be handy to try your workload with all >> the pedantic debugging: KASAN, slab debugging, DEBUG_PAGE_ALLOC, etc... >> and see if it still triggers. > How

Re: linux-next: build warnings after merge of the rdma tree

2018-07-09 Thread Jason Gunthorpe
On Tue, Jul 10, 2018 at 02:05:12PM +1000, Stephen Rothwell wrote: > Hi Jason, > > On Mon, 9 Jul 2018 21:41:57 -0600 Jason Gunthorpe wrote: > > > > What compiler is producing these? I got nothing from 0-day build > > service or my local gcc-7.. > > The x86 compiler is a v7.3.1 cross compiler

Re: [PATCH 0/12 V2] ipc: cleanups & bugfixes, rhashtable update

2018-07-09 Thread Manfred Spraul
Hi Davidlohr, On 07/09/2018 10:09 PM, Davidlohr Bueso wrote: On Mon, 09 Jul 2018, Manfred Spraul wrote: @Davidlohr: Please double check that I have taken the correct patches, and that I didn't break anything. Everything seems ok. Patch 8 had an alternative patch that didn't change nowarn

Re: [PATCH 7/7] aio: implement io_pgetevents

2018-07-09 Thread Andrei Vagin
On Sun, Jul 08, 2018 at 10:44:00PM +0200, Christoph Hellwig wrote: > On Wed, Jul 04, 2018 at 04:21:16PM +0200, Adrian Reber wrote: > > In file included from /usr/include/linux/signal.h:5, > > from /usr/include/linux/aio_abi.h:32, > > from include.c:2: > >

Re: mm,tlb: revert 4647706ebeee?

2018-07-09 Thread Nicholas Piggin
On Mon, 9 Jul 2018 17:13:56 -0700 Andrew Morton wrote: > On Sun, 8 Jul 2018 01:25:38 +1000 Nicholas Piggin wrote: > > > On Fri, 06 Jul 2018 13:03:55 -0400 > > Rik van Riel wrote: > > > > > Hello, > > > > > > It looks like last summer, there were 2 sets of patches > > > in flight to fix

Re: [RFC] dmaengine: Add metadat_ops for dma_async_tx_descriptor

2018-07-09 Thread Vinod
Hey Peter, Sorry for late response on this.. On 01-06-18, 13:24, Peter Ujfalusi wrote: > If the DMA supports per descriptor metadata it can implement the attach, > get_ptr/set_len callbacks. > > Client drivers must only use either attach or get_ptr/set_len to avoid > miss configuration. > >

Re: [PATCH v3 0/4] clk: clk: Add functions to save/restore clock context en-masse

2018-07-09 Thread Tony Lindgren
* Keerthy [180621 01:18]: > Deep enough power saving mode can result into losing context of the clock > registers also, and they need to be restored once coming back from the power > saving mode. Hence add functions to save/restore clock context. Patches 1 to 3 look good to me: Acked-by: Tony

Re: Build/qemu test results for v4.18-rc4

2018-07-09 Thread Guenter Roeck
On Mon, Jul 09, 2018 at 08:16:04PM +0200, Christian Borntraeger wrote: > > > On 07/09/2018 08:06 PM, Kees Cook wrote: > > On Mon, Jul 9, 2018 at 10:55 AM, Guenter Roeck wrote: > >> s390:allmodconfig: > >> > >> arch/s390/kernel/als.o: In function `verify_facilities': > >>

Re: [PATCHv4 18/18] x86: Introduce CONFIG_X86_INTEL_MKTME

2018-07-09 Thread Konrad Rzeszutek Wilk
On Tue, Jun 26, 2018 at 05:22:45PM +0300, Kirill A. Shutemov wrote: > Add new config option to enabled/disable Multi-Key Total Memory > Encryption support. > > MKTME uses MEMORY_PHYSICAL_PADDING to reserve enough space in per-KeyID > direct mappings for memory hotplug. > > Signed-off-by: Kirill

Re: [PATCH v6 0/6] mtd: rawnand: support MT29F1G08ABAFAWP-ITE:F

2018-07-09 Thread Boris Brezillon
On Mon, 9 Jul 2018 18:31:24 +0200 Boris Brezillon wrote: > Hi Bean, > > On Mon, 9 Jul 2018 15:54:11 + > "Bean Huo (beanhuo)" wrote: > > > Hi, Boris and Chris > > > > >> > > >> I see 2 solutions to this problem: > > >> 1/ Bean provides us a solution to reliably detect when ECC can be >

Re: [PATCH 1/2] mm: introduce put_user_page(), placeholder version

2018-07-09 Thread John Hubbard
On 07/09/2018 03:08 AM, kbuild test robot wrote: > Hi John, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on linus/master] ... > >>> drivers/platform//goldfish/goldfish_pipe.c:334:13: error: conflicting types >>> for 'release_user_pages' > static void

[PATCH v2 1/7] mhi_bus: core: initial checkin for modem host interface bus driver

2018-07-09 Thread Sujeev Dias
This is the initial skeleton driver for mhi bus stack. MHI Host Interface is a communication protocol to be used by the host to control and communcate with modem over a high speed peripheral bus. This module will allow host to communicate with external devices that support MHI protocol.

MHI code review

2018-07-09 Thread Sujeev Dias
Hi Greg Kroah-Hartman\Arnd Bergmann and community Thank you for all the feedback, I believe I have addressed all the comments from previous patches. Also, I am excluding mhi network driver in this series. I still have some modifications to do. Please review the new patch series and share your

[PATCH v2 6/7] mhi_bus: controller: MHI support for QCOM modems

2018-07-09 Thread Sujeev Dias
QCOM PCIe based modems uses MHI as the communication protocol. MHI control driver is the bus master for such modems. As the bus master driver, it oversees power management operations such as suspend, resume, powering on and off the device. Signed-off-by: Sujeev Dias Reviewed-by: Tony Truong

Re: [patch v3] mm, oom: fix unnecessary killing of additional processes

2018-07-09 Thread David Rientjes
On Mon, 9 Jul 2018, Michal Hocko wrote: > > Blockable mmu notifiers and mlocked memory is not the extent of the > > problem, if a process has a lot of virtual memory we must wait until > > free_pgtables() completes in exit_mmap() to prevent unnecessary oom > > killing. For implementations

Re: cgroup trace events acquire sleeping locks

2018-07-09 Thread Steven Rostedt
On Mon, 9 Jul 2018 22:22:15 +0200 Sebastian Andrzej Siewior wrote: > On 2018-07-09 15:01:54 [-0400], Steven Rostedt wrote: > > > which is the trace_cgroup_rmdir() trace event in cgroup_rmdir(). The > > > trace event invokes cgroup_path() which acquires a spin_lock_t and this > > > is invoked

Re: [PATCHv4 18/18] x86: Introduce CONFIG_X86_INTEL_MKTME

2018-07-09 Thread Konrad Rzeszutek Wilk
On Mon, Jul 09, 2018 at 11:59:33AM -0700, Dave Hansen wrote: > On 07/09/2018 11:52 AM, Konrad Rzeszutek Wilk wrote: > > On Mon, Jul 09, 2018 at 11:44:33AM -0700, Dave Hansen wrote: > >> On 07/09/2018 11:36 AM, Konrad Rzeszutek Wilk wrote: > >>> On Tue, Jun 26, 2018 at 05:22:45PM +0300, Kirill A.

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-09 Thread Paul E. McKenney
On Mon, Jul 09, 2018 at 09:35:38PM +0100, David Woodhouse wrote: > > > On Mon, 2018-07-09 at 13:34 -0700, Paul E. McKenney wrote: > > > > So here are the possible code paths when .rcu_urgent_qs is set to true: > > > > 1.  A context switch will record the quiescent state and clear > >   

[PATCH] arm64: dts: rockchip: remove deprecated Type-C PHY properties on rk3399

2018-07-09 Thread Enric Balletbo i Serra
Commit 0fbc47d9e426 ("phy: rockchip-typec: deprecate some DT properties for various register fields.") deprecates some Rockchip Type-C properties. As these are now not needed, remove from the device tree file. Signed-off-by: Enric Balletbo i Serra --- arch/arm64/boot/dts/rockchip/rk3399.dtsi |

Re: [PATCH v4 4/5] x86/hyper-v: rename ipi_arg_{ex,non_ex} structures

2018-07-09 Thread Roman Kagan
On Tue, Jul 03, 2018 at 03:42:05PM +0200, Vitaly Kuznetsov wrote: > These structures are going to be used from KVM code so let's make > their names reflect their Hyper-V origin. > > Signed-off-by: Vitaly Kuznetsov > --- > arch/x86/hyperv/hv_apic.c | 12 ++-- >

Re: [PATCHv4 18/18] x86: Introduce CONFIG_X86_INTEL_MKTME

2018-07-09 Thread Konrad Rzeszutek Wilk
On Mon, Jul 09, 2018 at 11:44:33AM -0700, Dave Hansen wrote: > On 07/09/2018 11:36 AM, Konrad Rzeszutek Wilk wrote: > > On Tue, Jun 26, 2018 at 05:22:45PM +0300, Kirill A. Shutemov wrote: > > Rip out the X86? > >> + bool "Intel Multi-Key Total Memory Encryption" > >> + select

Re: [PATCH 2/2] tools/memory-model: Add write ordering by release-acquire and by locks

2018-07-09 Thread Alan Stern
On Mon, 9 Jul 2018, Daniel Lustig wrote: > On 7/9/2018 9:52 AM, Will Deacon wrote: > > On Fri, Jul 06, 2018 at 02:10:55PM -0700, Paul E. McKenney wrote: > >> On Fri, Jul 06, 2018 at 04:37:21PM -0400, Alan Stern wrote: > >>> On Thu, 5 Jul 2018, Andrea Parri wrote: > >>> > > At any rate, it

Re: [PATCH v2] IB/mlx5: fix uaccess beyond "count" in debugfs read/write handlers

2018-07-09 Thread Jason Gunthorpe
On Fri, Jul 06, 2018 at 10:48:03PM +0200, Jann Horn wrote: > In general, accessing userspace memory beyond the length of the supplied > buffer in VFS read/write handlers can lead to both kernel memory corruption > (via kernel_read()/kernel_write(), which can e.g. be triggered via > sys_splice())

Re: [PATCH 04/12] ipc: Rename ipcctl_pre_down_nolock().

2018-07-09 Thread Davidlohr Bueso
On Mon, 09 Jul 2018, Manfred Spraul wrote: Both the comment and the name of ipcctl_pre_down_nolock() are misleading: The function must be called while holdling the rw semaphore. Therefore the patch renames the function to ipcctl_obtain_check(): This name matches the other names used in util.c:

Re: [PATCH 0/2] mm/fs: put_user_page() proposal

2018-07-09 Thread Matthew Wilcox
On Mon, Jul 09, 2018 at 09:47:40PM +0200, Jan Kara wrote: > On Mon 09-07-18 10:16:51, Matthew Wilcox wrote: > > > 2) What to do when some page is pinned but we need to do e.g. > > > clear_page_dirty_for_io(). After some more thinking I agree with you that > > > just blocking waiting for page to

[PATCH v2 2/7] mhi_bus: core: add power management support

2018-07-09 Thread Sujeev Dias
Add support for MHI power management operations such as power on, off, suspend, and resume. Signed-off-by: Sujeev Dias Reviewed-by: Tony Truong Signed-off-by: Siddartha Mohanadoss --- drivers/bus/mhi/core/Makefile |2 +- drivers/bus/mhi/core/mhi_boot.c | 533 ++

[PATCH v2 3/7] mhi_bus: core: add support for data transfer

2018-07-09 Thread Sujeev Dias
Add support for transferring data between external modem and MHI host using MHI protocol. Signed-off-by: Sujeev Dias Reviewed-by: Tony Truong Signed-off-by: Siddartha Mohanadoss --- drivers/bus/mhi/core/mhi_init.c | 76 +++- drivers/bus/mhi/core/mhi_internal.h | 8 -

Re: [PATCH] ib_srpt: use kvmalloc to allocate ring pointers

2018-07-09 Thread Bart Van Assche
On Mon, 2018-07-09 at 16:51 +0300, Jan Dakinevich wrote: > An array of pointers to SRPT contexts in ib_device is over 30KiB even > in default case, in which an amount of contexts is 4095. The patch > is intended to weed out large contigous allocation for non-DMA memory. Reviewed-by: Bart Van

Re: [PATCH v2] platform/x86: intel-hid: Add support for Device Specific Methods

2018-07-09 Thread Darren Hart
On Mon, Jul 09, 2018 at 04:38:16AM +, mario.limoncie...@dell.com wrote: > > -Original Message- > > From: Srinivas Pandruvada [mailto:srinivas.pandruv...@linux.intel.com] > > Sent: Saturday, July 7, 2018 8:44 AM > > To: Darren Hart; Andy Shevchenko > > Cc: Limonciello, Mario; Alex Hung;

Re: [PATCH] x86: Avoid pr_cont() in show_opcodes()

2018-07-09 Thread Josh Poimboeuf
On Mon, Jul 09, 2018 at 10:49:53AM +0200, Peter Zijlstra wrote: > On Sat, Jul 07, 2018 at 10:54:28PM +0900, Tetsuo Handa wrote: > > >> Since syzbot is confused by concurrent printk() messages [1], > > >> this patch changes show_opcodes() to use snprintf(). > > But how big of a problem is that

Re: [PATCH 7/7] aio: implement io_pgetevents

2018-07-09 Thread Stephan Müller
Am Sonntag, 8. Juli 2018, 22:44:00 CEST schrieb Christoph Hellwig: Hi Christoph, > > diff --git a/include/uapi/linux/aio_abi.h b/include/uapi/linux/aio_abi.h > index 75846164290e..b7705ad66d78 100644 > --- a/include/uapi/linux/aio_abi.h > +++ b/include/uapi/linux/aio_abi.h > @@ -29,7 +29,11 @@ >

[PATCH for 4.18 2/6] rseq: use get_user/put_user rather than __get_user/__put_user

2018-07-09 Thread Mathieu Desnoyers
__get_user()/__put_user() is used to read values for address ranges that were already checked with access_ok() on rseq registration. It has been recognized that __get_user/__put_user are optimizing the wrong thing. Replace them by get_user/put_user across rseq instead. If those end up showing up

[PATCH] ARM: dts: sun8i: sun8i-a83t-bananapi-m3: enhance vcc-pd to 3.3v

2018-07-09 Thread Corentin Labbe
Since commit d7c5f6863550 ("ARM: dts: sun8i: a83t: bananapi-m3: Add AXP813 regulator nodes") my BPIM3 no longer works at gigabit speed. With the default setting, dldo3 is regulated at 2.9v which seems sufficient for the PHy but d7c5f6863550 drop it to 2.5 which is insufficient. Note that this

Re: a question about IP checksum helper for arm64

2018-07-09 Thread Bo Yan
Hi Robin, That UBSAN error prompted me to check the generated instructions. The error by itself doesn't make sense to me because there is no requirement for 128b alignment on ldp/stp. With 4.18-rc3, when I build for the default "defconfig" in arch/arm64/configs/, I see the disassembled code

[PATCH v2] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire

2018-07-09 Thread Alan Stern
More than one kernel developer has expressed the opinion that the LKMM should enforce ordering of writes by locking. In other words, given the following code: WRITE_ONCE(x, 1); spin_unlock(): spin_lock(); WRITE_ONCE(y, 1); the stores to x and y should be

[PATCH] Revert "arm64: Use aarch64elf and aarch64elfb emulation mode variants"

2018-07-09 Thread Laura Abbott
This reverts commit 38fc4248677552ce35efc09902fdcb06b61d7ef9. This breaks compilation with Fedora gcc-8 tool chains: CHK include/generated/compile.h LD [M] arch/arm64/crypto/sha512-ce.o aarch64-linux-gnu-ld: cannot open linker script file ldscripts/aarch64elf.xr: No such file or

Re: cgroup trace events acquire sleeping locks

2018-07-09 Thread Sebastian Andrzej Siewior
On 2018-07-09 15:01:54 [-0400], Steven Rostedt wrote: > > which is the trace_cgroup_rmdir() trace event in cgroup_rmdir(). The > > trace event invokes cgroup_path() which acquires a spin_lock_t and this > > is invoked within a preempt_disable()ed section. > > Correct. And I wish no trace event

Re: Mounting corrupted HFS+ causes kernel NULL pointer dereference

2018-07-09 Thread Ernesto A . Fernández
On Tue, Jun 12, 2018 at 09:43:26PM +0300, Anatoly Trosinenko wrote: > And when I mount hfsplus_16mb_hang and perform `echo > /mnt/xyz`, it hangs. I just sent you a patch for this final report. Let me know if it works for you.

INFO: rcu detected stall in llcp_sock_sendmsg

2018-07-09 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:1e4b044d2251 Linux 4.18-rc4 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1414c2c240 kernel config: https://syzkaller.appspot.com/x/.config?x=25856fac4e580aa7 dashboard link:

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-09 Thread David Woodhouse
On Mon, 2018-07-09 at 13:34 -0700, Paul E. McKenney wrote: > > So here are the possible code paths when .rcu_urgent_qs is set to true: > > 1.  A context switch will record the quiescent state and clear > .rcu_urgent_qs.  (The failure to do the clearing in current -rcu > for

Re: 4.18rc3 TX2 boot failure with "ACPICA: AML parser: attempt to continue loading table after error"

2018-07-09 Thread Jeremy Linton
Hi, First thanks for the patch.. On 07/08/2018 04:14 AM, Rafael J. Wysocki wrote: On Monday, July 2, 2018 11:41:42 PM CEST Jeremy Linton wrote: Hi, I'm experiencing two problems with commit 5088814a6e931 which is "ACPICA: AML parser: attempt to continue loading table after error" The first

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-09 Thread Paul E. McKenney
On Mon, Jul 09, 2018 at 09:45:45PM +0100, David Woodhouse wrote: > On Mon, 2018-07-09 at 13:42 -0700, Paul E. McKenney wrote: > > On Mon, Jul 09, 2018 at 09:35:38PM +0100, David Woodhouse wrote: > > >  > > >  > > > On Mon, 2018-07-09 at 13:34 -0700, Paul E. McKenney wrote: > > > >  > > > > So here

[PATCH v2] xfs_bmap_util: use swap macro

2018-07-09 Thread Gustavo A. R. Silva
Make use of the swap macro and remove some unnecessary variables. This makes the code easier to read and maintain. Also, reduces the stack usage. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- Changes in v2 - Use swap in a couple more of places.

Re: [PATCHv4 15/18] x86/mm: Calculate direct mapping size

2018-07-09 Thread Konrad Rzeszutek Wilk
On Tue, Jun 26, 2018 at 05:22:42PM +0300, Kirill A. Shutemov wrote: > The kernel needs to have a way to access encrypted memory. We have two > option on how approach it: > > - Create temporary mappings every time kernel needs access to encrypted >memory. That's basically brings highmem and

RE: [PATCH net] hv_netvsc: Fix napi reschedule while receive completion is busy

2018-07-09 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger > Sent: Monday, July 9, 2018 2:15 PM > To: Haiyang Zhang > Cc: Haiyang Zhang ; da...@davemloft.net; > net...@vger.kernel.org; o...@aepfle.de; Stephen Hemminger > ; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org;

Re: [PATCH] ARM: module: fix modsign build error

2018-07-09 Thread Jessica Yu
+++ Russell King - ARM Linux [06/07/18 14:00 +0100]: On Fri, Jul 06, 2018 at 02:48:47PM +0200, Arnd Bergmann wrote: The asm/module.h header file can not be included standalone, which breaks the module signing code after a recent change: In file included from kernel/module-internal.h:13,

Re: [PATCH v7 01/10] counter: Introduce the Generic Counter interface

2018-07-09 Thread William Breathitt Gray
On Mon, Jul 09, 2018 at 08:54:17PM +0200, Greg KH wrote: >On Mon, Jul 09, 2018 at 01:40:36PM -0400, William Breathitt Gray wrote: >> I'll make the updates noted in a version 8 submission, but I'll wait to >> submit it until you have a chance to review the rest of this current >> patchset. The

Re: [PATCH for 4.18 2/6] rseq: use get_user/put_user rather than __get_user/__put_user

2018-07-09 Thread Linus Torvalds
On Mon, Jul 9, 2018 at 11:19 AM Mathieu Desnoyers wrote: > > Given that this memory area has already been checked with access_ok() > on rseq registration, are you fine with leaving > __get_user/__put_user/__copy_{from,to}_user in place so we do the > minimal change at this stage of rc, or should

Re: [PATCH v2 0/7] perf: Add ioctl for PMU driver configuration

2018-07-09 Thread Mathieu Poirier
On Fri, 6 Jul 2018 at 17:38, Kim Phillips wrote: > > On Thu, 5 Jul 2018 16:13:40 -0600 > Mathieu Poirier wrote: > > > This set adds the capability to communiate event specific configuration > > to the PMU kernel driver using an ioctl(). The functionatlity is made > > generic enough for anyone

Re: [PATCH] objtool: move libelf detection to Kconfig from Makefile

2018-07-09 Thread Josh Poimboeuf
On Sun, Jul 08, 2018 at 06:59:42PM +0900, Masahiro Yamada wrote: > Currently, users are allowed to enable STACK_VALIDATION regardless > of the compiler capability. The top-level Makefile warns or breaks > the build if it turns out that the host compiler cannot link libelf. > > Move the libelf

[PATCH v2 7/7] mhi_bus: dev: uci: add user space interface driver

2018-07-09 Thread Sujeev Dias
This module allows user space clients to transfer data between external modem and host using standard file operations. Signed-off-by: Sujeev Dias Reviewed-by: Tony Truong Signed-off-by: Siddartha Mohanadoss --- arch/arm64/configs/defconfig | 1 + drivers/bus/Kconfig | 1

[PATCH v2 5/7] mhi_bus: core: add support to get external modem time

2018-07-09 Thread Sujeev Dias
For accurate synchronizations between external modem and host processor, mhi host will capture modem time relative to host time. Client may use time measurements for adjusting any drift between host and modem. Signed-off-by: Sujeev Dias Reviewed-by: Tony Truong Signed-off-by: Siddartha

[PATCH v2 4/7] mhi_bus: core: add support for handling ioctl cmds

2018-07-09 Thread Sujeev Dias
User space clients use RS232 control signaling mechanism to communicate call status between host and modem. Adding support to handle ioctl commands from user space. Signed-off-by: Sujeev Dias Reviewed-by: Tony Truong Signed-off-by: Siddartha Mohanadoss --- drivers/bus/mhi/core/Makefile |

Re: [PATCH v2 1/7] mhi_bus: core: initial checkin for modem host interface bus driver

2018-07-09 Thread Greg Kroah-Hartman
On Mon, Jul 09, 2018 at 01:08:08PM -0700, Sujeev Dias wrote: > This is the initial skeleton driver for mhi bus stack. MHI Host > Interface is a communication protocol to be used by the host to > control and communcate with modem over a high speed peripheral bus. > This module will allow host to

RE: [PATCH v2] platform/x86: intel-hid: Add support for Device Specific Methods

2018-07-09 Thread Mario.Limonciello
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Monday, July 9, 2018 4:07 PM > To: Limonciello, Mario > Cc: srinivas.pandruv...@linux.intel.com; andy.shevche...@gmail.com; > alex.h...@canonical.com; a...@infradead.org; platform-driver- > x...@vger.kernel.org;

Re: [PATCH v7 01/10] counter: Introduce the Generic Counter interface

2018-07-09 Thread Greg KH
On Mon, Jul 09, 2018 at 01:40:36PM -0400, William Breathitt Gray wrote: > I'll make the updates noted in a version 8 submission, but I'll wait to > submit it until you have a chance to review the rest of this current > patchset. The counter device drivers in this directory (104-quad-8.c, >

Re: [PATCH 0/2] mm/fs: put_user_page() proposal

2018-07-09 Thread Jan Kara
On Mon 09-07-18 10:16:51, Matthew Wilcox wrote: > On Mon, Jul 09, 2018 at 06:08:06PM +0200, Jan Kara wrote: > > On Mon 09-07-18 18:49:37, Nicholas Piggin wrote: > > > The problem with blocking in clear_page_dirty_for_io is that the fs is > > > holding the page lock (or locks) and possibly others

Re: [PATCH 0/12 V2] ipc: cleanups & bugfixes, rhashtable update

2018-07-09 Thread Davidlohr Bueso
On Mon, 09 Jul 2018, Manfred Spraul wrote: @Davidlohr: Please double check that I have taken the correct patches, and that I didn't break anything. Everything seems ok. Patch 8 had an alternative patch that didn't change nowarn semantics for the rhashtable resizing operations

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-09 Thread Paul E. McKenney
On Mon, Jul 09, 2018 at 07:50:54PM +0100, David Woodhouse wrote: > > > On Mon, 2018-07-09 at 09:34 -0700, Paul E. McKenney wrote: > > diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c > > index 51919985f6cf..33b0a1ec0536 100644 > > --- a/kernel/rcu/tree.c > > +++ b/kernel/rcu/tree.c > > @@

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-09 Thread David Woodhouse
On Mon, 2018-07-09 at 13:42 -0700, Paul E. McKenney wrote: > On Mon, Jul 09, 2018 at 09:35:38PM +0100, David Woodhouse wrote: > >  > >  > > On Mon, 2018-07-09 at 13:34 -0700, Paul E. McKenney wrote: > > >  > > > So here are the possible code paths when .rcu_urgent_qs is set to true: > > >  > > >

Re: [PATCH v2 1/7] mhi_bus: core: initial checkin for modem host interface bus driver

2018-07-09 Thread Greg Kroah-Hartman
On Mon, Jul 09, 2018 at 01:08:08PM -0700, Sujeev Dias wrote: > This is the initial skeleton driver for mhi bus stack. MHI Host > Interface is a communication protocol to be used by the host to > control and communcate with modem over a high speed peripheral bus. > This module will allow host to

[PATCH] fpga: mgr: rework fpga_mgr_get API for multiple managers

2018-07-09 Thread Alan Tull
Change fpga_mgr_get() function to take manager as the parameter instead of dev. Caller probably has a pointer to manager already anyway, so remove code that searched for manager based on dev. The rationale for this change is that cards that have more than one FPGA may have more than one manager.

Re: [PATCH 0/3] ARM64: dts: meson-axg: first round of daughter card updates

2018-07-09 Thread Kevin Hilman
Jerome Brunet writes: > This patchset adds a speaker amplifier and some leds present on daughter > cards which are connected to the s400 board. > > Kevin, please note that the bindings documentation update for the tas5707 > has been queued for next in Mark Brown's ASoC tree. Not having it won't

Re: [PATCH 1/2] Revert "tick: Prefer a lower rating device only if it's CPU local device"

2018-07-09 Thread Martin Blumenstingl
On Mon, Jul 9, 2018 at 8:24 PM Kevin Hilman wrote: > > On Mon, Jul 9, 2018 at 8:45 AM Sudeep Holla wrote: > > > > This reverts commit 1332a90558013ae4242e3dd7934bdcdeafb06c0d. > > > > The original issue was not because of incorrect checking of cpumask for > > both new and old tick device. It was

Re: [PATCH RESEND] ARM64: dts: meson-axg: add the audio clock controller

2018-07-09 Thread Kevin Hilman
Jerome Brunet writes: > Add the audio clock controller which is part of the audio bus > This controller takes 8 input plls, and the usual clock gate, from the > main clock controller. It provides the clocs for the all the devices of > the audio subsystem, such as tdms, spdif, pdm, etc. > >

linux-next: Signed-off-by missing for commit in the pinctrl tree

2018-07-09 Thread Stephen Rothwell
Hi Linus, Commit a742fcf72902 ("pinctrl: sh-pfc: r8a77990: Add USB3.0 pins, groups and functions") is missing a Signed-off-by from its author. -- Cheers, Stephen Rothwell pgpyjAjL5lt4N.pgp Description: OpenPGP digital signature

Re: [RESEND PATCH v2 3/9] asm-generic: Move some macros from linux/bitops.h to a new bits.h file

2018-07-09 Thread Andrew Morton
On Mon, 9 Jul 2018 12:32:51 +0100 Will Deacon wrote: > Hi Andrew, > > On Fri, Jul 06, 2018 at 05:30:49PM -0700, Andrew Morton wrote: > > On Tue, 19 Jun 2018 13:53:08 +0100 Will Deacon wrote: > > > > > In preparation for implementing the asm-generic atomic bitops in terms > > > of

Re: [PATCH] i2c: tegra: Fix NACK error handling

2018-07-09 Thread Wolfram Sang
On Tue, Jul 03, 2018 at 09:55:43AM +0100, Jon Hunter wrote: > On Tegra30 Cardhu the PCA9546 I2C mux is not ACK'ing I2C commands on > resume from suspend (which is caused by the reset signal for the I2C > mux not being configured correctl). However, this NACK is causing the > Tegra30 to hang on

it87 removal from github pending

2018-07-09 Thread Kash Pande
Just thought a notice would be appropriate here that groeck has decided to discontinue work on his it87 driver due to difficulties upstreaming it, which is a shame, because it is the only working version of the driver. https://github.com/groeck/it87/blob/master/README Kash Pande

Re: [PATCH v5 3/3] PCI: Introduce the disable_acs_redir parameter

2018-07-09 Thread Logan Gunthorpe
Hey Alex, On 06/07/18 04:56 PM, Alex Williamson wrote: > Maybe we track if we enabled ACS via a device specific quirk and > minimally print an incompatibility error if it's also specified for > disable_acs_redir? Thanks, Ok, I dug into this a bit and I think tracking if we enabled via a device

Re: [PATCH v3] soc: imx: gpc: Turn PU domain on/off in sleep on 6qp

2018-07-09 Thread Ulf Hansson
On 6 July 2018 at 18:46, Leonard Crestez wrote: > On imx6qp power gating on the PU domain is disabled because of errata > ERR009619. However power gating during suspend/resume can still be > performed. Sounds a bit hand wavy. Exactly why can it be done during system suspend/resume? > > Enable

Re: [RESEND PATCH v2 0/2] Add support for ZSTD-compressed kernel

2018-07-09 Thread René Rebe
Hi Nick, On 09 Jul 2018, at 20:04, Nick Terrell wrote: >> On Mar 21, 2018, at 6:29 PM, Nick Terrell wrote: >> This patch set adds support for a ZSTD-compressed kernel and ramdisk >> images in the kernel boot process. It only integrates the support with >> x86, though the first patch is generic

[PATCH v6 14/17] media: staging/imx: TODO: Remove one assumption about OF graph parsing

2018-07-09 Thread Steve Longerbeam
The move to subdev notifiers fixes one assumption of OF graph parsing. If a subdevice has non-video related ports, the subdev driver knows not to follow those ports when adding remote devices to its subdev notifier. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/TODO | 29

Re: [PATCH v11 5/8] i2c: fsi: Add transfer implementation

2018-07-09 Thread Wolfram Sang
> + cmd |= FIELD_PREP(I2C_CMD_ADDR, msg->addr >> 1); I just noticed this and wonder: Don't you need the LSB of the address? It is not the RW flag, this is encoded in msg->flags. Also, no seperate handling for 10 bit addresses? Technically, 7-bit 0x50 is different on the wire from 10-bit

Re: [RFC PATCH] perf/core: don't sample kernel regs upon skid

2018-07-09 Thread Boris Ostrovsky
On 07/02/2018 12:02 PM, Mark Rutland wrote: > On Mon, Jul 02, 2018 at 05:46:55PM +0200, Peter Zijlstra wrote: >> On Mon, Jul 02, 2018 at 04:12:50PM +0100, Mark Rutland wrote: >>> Users can request that general purpose registers, instruction pointer, >>> etc, are sampled when a perf event counter

Re: [PATCH v4 0/3] sparse_init rewrite

2018-07-09 Thread Pavel Tatashin
On Mon, Jul 9, 2018 at 5:29 PM Andrew Morton wrote: > > On Mon, 9 Jul 2018 13:53:09 -0400 Pavel Tatashin > wrote: > > > In sparse_init() we allocate two large buffers to temporary hold usemap and > > memmap for the whole machine. However, we can avoid doing that if we > > changed sparse_init()

Re: [PATCH] floppy: Do not copy a kernel pointer to user memory in FDGETPRM ioctl

2018-07-09 Thread Ben Hutchings
On Tue, 2018-05-29 at 14:27 +0100, Andy Whitcroft wrote: [...] > >From ddb8c77229a9507fa5575c910d2847e123a9c94c Mon Sep 17 00:00:00 2001 > From: Andy Whitcroft > Date: Tue, 29 May 2018 13:04:15 +0100 > Subject: [PATCH 1/1] floppy: Do not copy a kernel pointer to user memory in > FDGETPRM ioctl >

Re: [PATCH] objtool: move libelf detection to Kconfig from Makefile

2018-07-09 Thread Masahiro Yamada
2018-07-10 4:21 GMT+09:00 Josh Poimboeuf : > On Sun, Jul 08, 2018 at 06:59:42PM +0900, Masahiro Yamada wrote: >> Currently, users are allowed to enable STACK_VALIDATION regardless >> of the compiler capability. The top-level Makefile warns or breaks >> the build if it turns out that the host

Re: [PATCH 1/2] drivers: core: Don't try to use a dead glue_dir

2018-07-09 Thread Benjamin Herrenschmidt
On Sat, 2018-07-07 at 18:48 +0200, Greg Kroah-Hartman wrote: > No, kobject_get() should never happen on a 0 refcount object. That > being said, the code does allow it, so if things are messed up, it will > happen. I think that change happened when the switch to refcount_t > occured, before then

[PATCH v3 1/2] arm64: dts: qcom: pm8998: Add spmi-temp-alarm node

2018-07-09 Thread Matthias Kaehlcke
This adds the spmi-temp-alarm node to pm8998 based on the examples in the bindings. Signed-off-by: Matthias Kaehlcke --- Changes in v3: - changed node name from 'qcom,temp-alarm@2400' to 'temp-alarm@2400' - removed controller register length value from 'reg' Changes in v2: - none ---

Re: [PATCH] platform/x86/toshiba_acpi.c: fix defined but not used build warnings

2018-07-09 Thread Darren Hart
On Fri, Jul 06, 2018 at 08:53:09PM -0700, Randy Dunlap wrote: > From: Randy Dunlap > > Fix a build warning in toshiba_acpi.c when CONFIG_PROC_FS is not enabled > by marking the unused function as __maybe_unused. > > ../drivers/platform/x86/toshiba_acpi.c:1685:12: warning: 'version_proc_show' >

[PATCH v3 2/2] arm64: dts: qcom: pm8998: Add pm8998 thermal zone

2018-07-09 Thread Matthias Kaehlcke
The thermal zone uses spmi-temp-alarm as sensor. If the sensor is configured without an IIO input it always reports 37°C for temperatures below the first hardware trip point at 105°C. This hardware trip point is configured as critical trip point, to initiate a system shutdown before the

Re: [PATCH] driver core: Drop devices_kset_move_last() call from really_probe()

2018-07-09 Thread Rafael J. Wysocki
On Mon, Jul 9, 2018 at 3:57 PM, Bjorn Helgaas wrote: > On Fri, Jul 6, 2018 at 5:01 AM Rafael J. Wysocki wrote: >> >> From: Rafael J. Wysocki >> >> The devices_kset_move_last() call in really_probe() is a mistake >> as it may cause parents to follow children in the devices_kset list >> which

  1   2   3   4   5   6   7   8   9   10   >