[PULL REQUEST] i2c-mux for 4.16-rc1

2017-12-30 Thread Peter Rosin
Hi Wolfram, A couple of patches this time. Just some more compatibles for the pca954x driver and an error handling tweak for the reg driver. Please pull! Cheers, Peter The following changes since commit ae64f9bd1d3621b5e60d7363bc20afb46aede215: Linux 4.15-rc2 (2017-12-03 11:01:47 -0500) are

Re: [PATCH v2 1/2] kbuild: Require a 'make clean' if we detect gcc changed underneath us

2017-12-30 Thread Masahiro Yamada
Hi Douglas, 2017-12-23 7:14 GMT+09:00 Douglas Anderson : > Several people reported that the commit 3298b690b21c ("kbuild: Add a > cache for generated variables") caused them problems when they updated > gcc versions. Specifically the reports all looked something similar > to this: > >> In file in

Re: `pci_apply_final_quirks()` taking half a second

2017-12-30 Thread Paul Menzel
Am 29.12.2017 um 17:14 schrieb Alan Stern: On Thu, 28 Dec 2017, Bjorn Helgaas wrote: On Tue, Dec 26, 2017 at 04:55:20PM +0100, Paul Menzel wrote: Am 08.04.2017 um 17:41 schrieb Bjorn Helgaas: On Fri, Apr 07, 2017 at 11:07:15PM +0200, Paul Menzel wrote: Measuring where time is spent durin

[PATCH] [RFC] mm: page_alloc: skip over regions of invalid pfns on UMA

2017-12-30 Thread Eugeniu Rosca
As a result of bisecting the v4.10..v4.11 commit range, it was determined that commits [1] and [2] are both responsible of a ~170ms early startup improvement on Rcar-H3-ES20 arm64 platform. Since Rcar Gen3 family is not NUMA, we don't define CONFIG_NUMA in the rcar3 defconfig, but this is how the

[GIT] Sparc

2017-12-30 Thread David Miller
Please pull to get this sparc64 bug fix. Thank you! The following changes since commit 5f520fc318764df800789edd202b5e3b55130613: Merge tag 'trace-v4.15-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace (2017-12-27 13:06:57 -0800) are available in the git repository

Re: [PATCH net] ethtool: do not print warning for applications using legacy API

2017-12-30 Thread David Decotigny
Signed-off-by: David Decotigny On Fri, Dec 29, 2017 at 10:02 AM, Stephen Hemminger wrote: > From: Stephen Hemminger > > In kernel log ths message appears on every boot: > "warning: `NetworkChangeNo' uses legacy ethtool link settings API, > link modes are only partially reported" > > When et

Re: [PATCH 2/2] clk: qcom: Configure the RCGs to a safe source as needed

2017-12-30 Thread kbuild test robot
Hi Amit, Thank you for the patch! Yet something to improve: [auto build test ERROR on clk/clk-next] [also build test ERROR on v4.15-rc5 next-20171222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/com

Re: [PATCH v3 net-next 2/5] net: tracepoint: replace tcp_set_state tracepoint with inet_sock_set_state tracepoint

2017-12-30 Thread Yafang Shao
On Sun, Dec 31, 2017 at 6:33 AM, Brendan Gregg wrote: > On Tue, Dec 19, 2017 at 7:12 PM, Yafang Shao wrote: >> As sk_state is a common field for struct sock, so the state >> transition tracepoint should not be a TCP specific feature. >> Currently it traces all AF_INET state transition, so I renam

Re: general protection fault in skb_segment

2017-12-30 Thread Marcelo Ricardo Leitner
On Sat, Dec 30, 2017 at 10:52:20PM -0200, Marcelo Ricardo Leitner wrote: > On Sat, Dec 30, 2017 at 08:42:41AM +0100, Willem de Bruijn wrote: [...] > > Somewhat tangential, but any PF_PACKET socket can set this > > magic gso_size value in its virtio_net_hdr, so if it is assumed to > > be an SCTP GSO

Re: [patch 0/3] x86/pti: Fix various fallout

2017-12-30 Thread Andy Lutomirski
> On Dec 30, 2017, at 2:06 PM, Linus Torvalds > wrote: > >> On Sat, Dec 30, 2017 at 1:35 PM, Ingo Molnar wrote: >> >> Linus, I suspect -rc6 is imminent, and it would be nice to at least have the >> LDT >> error path fix in. I'll send you these fixes tomorrow, but feel free to pick >> it up

Re: [RFC][PATCHv6 00/12] printk: introduce printing kernel thread

2017-12-30 Thread Sergey Senozhatsky
Hello, On (12/29/17 22:59), Tetsuo Handa wrote: [..] > Just an idea: Do we really need to use a semaphore for console_sem? > > Is it possible to replace it with a spinlock? Then, I feel that we can write > to consoles from non-process context (i.e. soft or hard IRQ context), with > write only one

Re: [PATCH v2] ksm: replace jhash2 with faster hash

2017-12-30 Thread Timofey Titovets
Hi, I was send v5, with minor changes, but performance numbers are valid. 2017-12-31 3:07 GMT+03:00 sioh Lee : > hello > > First, thanks for organizing all the experiments. > > and i'm sending you the results of experiments > > Test platform: openstack cloud platform (NEWTON version) > Experiment

Re: [PATCH v2 1/3] irqchip/renesas-intc-irqpin: Use WAKEUP_PATH driver PM flag

2017-12-30 Thread Rafael J. Wysocki
On Fri, Dec 29, 2017 at 2:31 PM, Ulf Hansson wrote: > From: Geert Uytterhoeven > > Since commit 705bc96c2c15313c ("irqchip: renesas-intc-irqpin: Add minimal > runtime PM support"), when an IRQ is used for wakeup, the INTC block's > module clock (if exists) is manually kept running during system s

Re: [PATCH v2 0/3] renesas: irqchip: Use WAKEUP_PATH driver PM flag

2017-12-30 Thread Rafael J. Wysocki
On Fri, Dec 29, 2017 at 2:31 PM, Ulf Hansson wrote: > From: Geert Uytterhoeven > > Changes in v2: [By Ulf Hansson] > - I have picked up the series from Geert [1] and converted it into use > the WAKEUP_PATH driver PM flag. This includes some minor changes to > each > patch

Re: general protection fault in skb_segment

2017-12-30 Thread Marcelo Ricardo Leitner
On Sat, Dec 30, 2017 at 08:42:41AM +0100, Willem de Bruijn wrote: > > syzkaller hit the following crash on > > 37759fa6d0fa9e4d6036d19ac12f555bfc0aeafd > > git://git.cmpxchg.org/linux-mmots.git/master > > compiler: gcc (GCC) 7.1.1 20170620 > > .config is attached > > Raw console output is attached.

Re: [PATCH v2] ksm: replace jhash2 with faster hash

2017-12-30 Thread sioh Lee
hello First, thanks for organizing all the experiments. and i'm sending you the results of experiments Test platform: openstack cloud platform (NEWTON version) Experiment node: openstack based cloud compute node (CPU: xeon E5-2620 v3, memory 64gb) VM: (2 VCPU, RAM 4GB, DISK 20GB) * 4 Linux kern

Re: [PATCH V5 2/2] ksm: replace jhash2 with faster hash

2017-12-30 Thread Timofey Titovets
JFYI performance on more fast/modern CPU: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz [ 172.651044] ksm: crc32c hash() 22633 MB/s [ 172.776060] ksm: xxhash hash() 10920 MB/s [ 172.776066] ksm: choice crc32c as hash function

[PATCH V5 2/2] ksm: replace jhash2 with faster hash

2017-12-30 Thread Timofey Titovets
1. Pickup, Sioh Lee crc32 patch, after some long conversation 2. Merge with my work on xxhash 3. Add autoselect code to choice fastest hash helper. Base idea are same, replace jhash2 with something faster. Perf numbers: Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHz ksm: crc32c hash() 12081 MB/s ksm

[PATCH V5 1/2] xxHash: create arch dependent 32/64-bit xxhash()

2017-12-30 Thread Timofey Titovets
xxh32() - fast on both 32/64-bit platforms xxh64() - fast only on 64-bit platform Create xxhash() which will pickup fastest version on compile time. As result depends on cpu word size, the main proporse of that - in memory hashing. Changes: v2: - Create that patch v3 -> v5: - Nothing

Re: [PATCH v1] eSPI: add Aspeed AST2500 eSPI driver to boot a host with PCH runs on eSPI

2017-12-30 Thread Arnd Bergmann
On Fri, Dec 29, 2017 at 2:53 AM, Haiyue Wang wrote: > When PCH works under eSPI mode, the PMC (Power Management Controller) in > PCH is waiting for SUS_ACK from BMC after it alerts SUS_WARN. It is in > dead loop if no SUS_ACK assert. This is the basic requirement for the BMC > works as eSPI slave.

Re: About the try to remove cross-release feature entirely by Ingo

2017-12-30 Thread Theodore Ts'o
On Sat, Dec 30, 2017 at 05:40:28PM -0500, Theodore Ts'o wrote: > On Sat, Dec 30, 2017 at 12:44:17PM -0800, Matthew Wilcox wrote: > > > > I'm not sure I agree with this part. What if we add a new TCP lock class > > for connections which are used for filesystems/network block devices/...? > > Yes,

Re: Review of KPTI patchset

2017-12-30 Thread Thomas Gleixner
On Sat, 30 Dec 2017, Thomas Gleixner wrote: > On Sat, 30 Dec 2017, Mathieu Desnoyers wrote: > The only asymetry is in the error path of write_ldt() which can leak a half > allocated page table. But, that's a nasty one because if there is an > existing LDT mapped, then the pagetable cannot be freed.

Re: About the try to remove cross-release feature entirely by Ingo

2017-12-30 Thread Theodore Ts'o
On Sat, Dec 30, 2017 at 12:44:17PM -0800, Matthew Wilcox wrote: > > I'm not sure I agree with this part. What if we add a new TCP lock class > for connections which are used for filesystems/network block devices/...? > Yes, it'll be up to each user to set the lockdep classification correctly, > b

Re: [PATCH v3 net-next 2/5] net: tracepoint: replace tcp_set_state tracepoint with inet_sock_set_state tracepoint

2017-12-30 Thread Brendan Gregg
On Tue, Dec 19, 2017 at 7:12 PM, Yafang Shao wrote: > As sk_state is a common field for struct sock, so the state > transition tracepoint should not be a TCP specific feature. > Currently it traces all AF_INET state transition, so I rename this > tracepoint to inet_sock_set_state tracepoint with s

[GIT PULL] SCSI fixes for 4.15-rc5

2017-12-30 Thread James Bottomley
Two simple fixes, both of which cause I/O hangs.  The storvsc one is from the hyper-v which can hang under certain hot add/remove conditions and the other is generally, where removing a target and a device in close proximity can result in the release method being executed twice (and subsequent list

Re: 4.14.9 doesn't boot (regression)

2017-12-30 Thread Josh Poimboeuf
On Sun, Dec 31, 2017 at 01:03:25AM +0300, Alexander Tsoy wrote: > > Turns out my previous code to print iret frames was a bit ... > > misguided, to put it nicely. Not sure what I was smoking. > > > > Hopefully the below patch should fix it (in place of the previous > > patch). Would you mind tes

Re: [patch 0/3] x86/pti: Fix various fallout

2017-12-30 Thread Linus Torvalds
On Sat, Dec 30, 2017 at 1:35 PM, Ingo Molnar wrote: > > Linus, I suspect -rc6 is imminent, and it would be nice to at least have the > LDT > error path fix in. I'll send you these fixes tomorrow, but feel free to pick > it up > from email if you wanted to release -rc6 today. I'll do rc6 tomorro

Re: 4.14.9 doesn't boot (regression)

2017-12-30 Thread Alexander Tsoy
В Sat, 30 Dec 2017 11:57:46 -0600 Josh Poimboeuf пишет: > On Sat, Dec 30, 2017 at 11:09:46AM -0600, Josh Poimboeuf wrote: > > On Sat, Dec 30, 2017 at 11:45:13AM +0300, Alexander Tsoy wrote: > > > В Пт, 29/12/2017 в 21:49 -0600, Josh Poimboeuf пишет: > > > > On Fri, Dec 29, 2017 at 05:10:35PM

Re: Review of KPTI patchset

2017-12-30 Thread Thomas Gleixner
On Sat, 30 Dec 2017, Mathieu Desnoyers wrote: > - On Dec 30, 2017, at 2:58 PM, Thomas Gleixner t...@linutronix.de wrote: > > /* > > * Called on fork from arch_dup_mmap(). Just copy the current LDT state, > > * the new task is not running, so nothing can be installed. > > */ > > int ldt_dup_c

Re: [kernel-hardening] [PATCH 0/5] RFC: Public key encryption of dmesg by the kernel

2017-12-30 Thread Jann Horn
On Sat, Dec 30, 2017 at 6:57 PM, Dan Aloni wrote: > From: Dan Aloni > > Hi All, > > There has been a lot of progress in recent times regarding the removal > of sensitive information from dmesg (pointers, etc.), so I figured - why > not encrypt it all? However, I have not found any existing discus

uaccess.h: implement unsafe_copy_{to,from}_user()?

2017-12-30 Thread Alexander Kappner
Commit 5b24a7a2aa2040c8c50c3b71122901d01661ff78 introduced the unsafe_get_user and unsafe_put_user replacement functions for batched calls to put_user and get_user. I'm trying to make the kernel smaller and reduce stac/clac overhead on x86 by substituting the new functions for such batched call

Re: [patch 0/3] x86/pti: Fix various fallout

2017-12-30 Thread Ingo Molnar
* Thomas Gleixner wrote: > The small series fixes the recent fallout of the x86/pti merge: > > - Remove the stale local_flush_tlb() invocations from the CPU hotplug code > > - Remove the stale preempt_disable/enable() pair from __native_flush_tlb() > > - Fix a bogus free in the write_l

Re: [patch 1/3] x86/ldt: Free the right LDT memory in write_ldt() error path

2017-12-30 Thread Ingo Molnar
* Thomas Gleixner wrote: > The error path in write_ldt() frees the already installed LDT memory > instead of the newly allocated which cannot be installed. s/newly allocated /newly allocated one > > Fixes: f55f0501cbf6 ("x86/pti: Put the LDT in its own PGD if PTI is on") > Reported-by: Mathi

Re: [patch 2/3] x86/smpboot: Remove stale tlb flush invocations

2017-12-30 Thread Ingo Molnar
* Thomas Gleixner wrote: > smpboot_setup_warm_reset_vector() and smpboot_restore_warm_reset_vector() > invoke local_flush_tlb() for no obvious reason. > > Digging in history revealed that the original code in the 2.1 aera added > those because the code manipulated a swapper_pg_dir pagetable ent

Re: [patch 3/3] x86/mm: Remove preempt_disable/enable() from __native_flush_tlb()

2017-12-30 Thread Ingo Molnar
The cleanup looks good to me, just a few speling nits: * Thomas Gleixner wrote: > The preempt_disable/enable() pair in __native_flush_tlb() was added in > commit 5cf0791da5c1 ("x86/mm: Disable preemption during CR3 read+write") to > protect the UP variant of flush_tlb_mm_range(). > > That pree

[PATCH] wan/fsl_ucc_hdlc: Delete an error message for a failed memory allocation in ucc_hdlc_probe()

2017-12-30 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 30 Dec 2017 22:25:44 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/net/wan/fsl_ucc_hdlc.c | 1 - 1 file changed, 1 deletion(-) d

Re: [PATCH v2] ksm: replace jhash2 with faster hash

2017-12-30 Thread Timofey Titovets
*FACEPALM*, Sorry, just forgot about numbering of old jhash2 -> xxhash conversion Also pickup patch for xxhash - arch dependent xxhash() function that will use fastest algo for current arch. So next will be v5, as that must be v4. Thanks. 2017-12-29 12:52 GMT+03:00 Timofey Titovets : > Pickup, S

[patch 1/3] x86/ldt: Free the right LDT memory in write_ldt() error path

2017-12-30 Thread Thomas Gleixner
The error path in write_ldt() frees the already installed LDT memory instead of the newly allocated which cannot be installed. Fixes: f55f0501cbf6 ("x86/pti: Put the LDT in its own PGD if PTI is on") Reported-by: Mathieu Desnoyers Signed-off-by: Thomas Gleixner --- arch/x86/kernel/ldt.c |2

[patch 3/3] x86/mm: Remove preempt_disable/enable() from __native_flush_tlb()

2017-12-30 Thread Thomas Gleixner
The preempt_disable/enable() pair in __native_flush_tlb() was added in commit 5cf0791da5c1 ("x86/mm: Disable preemption during CR3 read+write") to protect the UP variant of flush_tlb_mm_range(). That preempt_disable/enable() pair should have been added to the UP variant of flush_tlb_mm_range() ins

[patch 2/3] x86/smpboot: Remove stale tlb flush invocations

2017-12-30 Thread Thomas Gleixner
smpboot_setup_warm_reset_vector() and smpboot_restore_warm_reset_vector() invoke local_flush_tlb() for no obvious reason. Digging in history revealed that the original code in the 2.1 aera added those because the code manipulated a swapper_pg_dir pagetable entry. The pagetable manipulation was rem

[patch 0/3] x86/pti: Fix various fallout

2017-12-30 Thread Thomas Gleixner
The small series fixes the recent fallout of the x86/pti merge: - Remove the stale local_flush_tlb() invocations from the CPU hotplug code - Remove the stale preempt_disable/enable() pair from __native_flush_tlb() - Fix a bogus free in the write_ldt() error path Thanks, tglx --

[tip:core/urgent] objtool: Fix seg fault with clang-compiled objects

2017-12-30 Thread tip-bot for Simon Ser
Commit-ID: ce90aaf5cde4ce057b297bb6c955caf16ef00ee6 Gitweb: https://git.kernel.org/tip/ce90aaf5cde4ce057b297bb6c955caf16ef00ee6 Author: Simon Ser AuthorDate: Sat, 30 Dec 2017 14:43:32 -0600 Committer: Ingo Molnar CommitDate: Sat, 30 Dec 2017 22:04:17 +0100 objtool: Fix seg fault with c

[tip:core/urgent] objtool: Fix seg fault caused by missing parameter

2017-12-30 Thread tip-bot for Simon Ser
Commit-ID: d89e426499cf36b96161bd32970d6783f1fbcb0e Gitweb: https://git.kernel.org/tip/d89e426499cf36b96161bd32970d6783f1fbcb0e Author: Simon Ser AuthorDate: Sat, 30 Dec 2017 14:43:31 -0600 Committer: Ingo Molnar CommitDate: Sat, 30 Dec 2017 22:04:17 +0100 objtool: Fix seg fault caused

[PATCH 2/2] at76c50x-usb: Improve size determinations in at76_usbdfu_download()

2017-12-30 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 30 Dec 2017 21:56:56 +0100 Replace the specification of two data types by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was detect

[PATCH 1/2] at76c50x-usb: Delete an error message for a failed memory allocation in at76_submit_rx_urb()

2017-12-30 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 30 Dec 2017 21:50:12 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/net/wireless/atmel/at76c50x-usb.c | 2 -- 1 file changed, 2 de

[PATCH 0/2] at76c50x-usb: Adjustments for two function implementations

2017-12-30 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 30 Dec 2017 22:01:23 +0100 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation in at76_submit_rx_urb() Improve size determinations in at76_usbdfu_download()

[PATCH 00/11] drm/sun4i: Add A83T HDMI support

2017-12-30 Thread Jernej Skrabec
This patch series implements support for A83T DW HDMI and PHY. It is based upon Maxime Ripard's "drm/sun4i: Add A83t LVDS support" patch series which can be found here: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-December/550035.html While exactly this combination of HDMI controller

[PATCH 02/11] clk: sunxi-ng: a83t: Add M divider to TCON1 clock

2017-12-30 Thread Jernej Skrabec
TCON1 also has M divider, contrary to TCON0. Fixes: 05359be1176b ("clk: sunxi-ng: Add driver for A83T CCU") Signed-off-by: Jernej Skrabec --- drivers/clk/sunxi-ng/ccu-sun8i-a83t.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-a83t.c b/dr

[PATCH 05/11] drm/bridge/synopsys: dw-hdmi: Add deinit callback

2017-12-30 Thread Jernej Skrabec
Some SoCs, like Allwinner A83T, have to do additional cleanup when HDMI driver unloads. When using DW HDMI through DRM bridge API, there is no place to store driver's private data so it can be accessed in unbind function. Because of that, add deinit function which is called at the very end, so driv

[PATCH 03/11] drm/bridge/synopsys: dw-hdmi: Enable workaround for v1.32a

2017-12-30 Thread Jernej Skrabec
Allwinner SoCs have dw hdmi controller v1.32a which exhibits same magenta line issue as i.MX6Q and i.MX6DL. Enable workaround for it. Tests show that one iteration is enough. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 8 +--- 1 file changed, 5 insertions(+

[PATCH 07/11] drm/sun4i: Add support for A83T second TCON

2017-12-30 Thread Jernej Skrabec
This TCON doesn't have channel 0, so quirk has_channel_0 is added in the process. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 46 -- drivers/gpu/drm/sun4i/sun4i_tcon.h | 1 + 2 files changed, 35 insertions(+), 12 deletions(-) diff

[PATCH v3] gpio: winbond: add driver

2017-12-30 Thread Maciej S. Szmigiero
This commit adds GPIO driver for Winbond Super I/Os. Currently, only W83627UHG model (also known as Nuvoton NCT6627UD) is supported but in the future a support for other Winbond models, too, can be added to the driver. A module parameter "gpios" sets a bitmask of GPIO ports to enable (bit 0 is GP

[PATCH 09/11] drm/sun4i: Implement A83T HDMI driver

2017-12-30 Thread Jernej Skrabec
A83T has DW HDMI IP block with a custom PHY similar to Synopsys gen2 HDMI PHY. Only video output was tested, while HW also supports audio and CEC. Support for them will be added later. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/Kconfig | 9 + drivers/gpu/drm/sun4i/Makefil

[PATCH 08/11] drm/sun4i: Add support for A83T second DE2 mixer

2017-12-30 Thread Jernej Skrabec
It supports 1 VI and 1 UI plane and HW scaling on both planes. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_mixer.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun8i_mixer.c b/drivers/gpu/drm/sun4i/sun8i_mixer.c index 2cbb2de6d39c..9b0

[PATCH 11/11] ARM: dts: sun8i: a83t: Enable HDMI on BananaPi M3

2017-12-30 Thread Jernej Skrabec
BananaPi M3 includes HDMI connector, so add support for it. Signed-off-by: Jernej Skrabec --- arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 29 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts b/arch/arm/boot/dts/sun8i-a83

Re: [PATCH v2] gpio: winbond: add driver

2017-12-30 Thread Maciej S. Szmigiero
On 29.12.2017 17:09, William Breathitt Gray wrote: > On Fri, Dec 29, 2017 at 12:27:12PM +0200, Andy Shevchenko wrote: >> On Fri, 2017-12-29 at 00:44 +0100, Maciej S. Szmigiero wrote: >>> On 28.12.2017 16:12, Andy Shevchenko wrote: On Fri, 2017-12-22 at 19:58 +0100, Maciej S. Szmigiero wrote: >

[PATCH 10/11] ARM: dts: sun8i: a83t: Add HDMI display pipeline

2017-12-30 Thread Jernej Skrabec
This commit adds all bits necessary for HDMI on A83T - mixer1, tcon1, hdmi and hdmi pinctrl entries. Signed-off-by: Jernej Skrabec --- arch/arm/boot/dts/sun8i-a83t.dtsi | 108 +- 1 file changed, 107 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/

Re: [PATCH v2] gpio: winbond: add driver

2017-12-30 Thread Maciej S. Szmigiero
On 29.12.2017 11:27, Andy Shevchenko wrote: > On Fri, 2017-12-29 at 00:44 +0100, Maciej S. Szmigiero wrote: >> On 28.12.2017 16:12, Andy Shevchenko wrote: >>> On Fri, 2017-12-22 at 19:58 +0100, Maciej S. Szmigiero wrote: > +You will need to provide a module parameter "gpios", or

[PATCH 04/11] drm/bridge/synopsys: dw-hdmi: Export some PHY related functions

2017-12-30 Thread Jernej Skrabec
Parts of PHY code could be useful also for custom PHYs. For example, Allwinner A83T has custom PHY which is probably Synopsys gen2 PHY with few additional memory mapped registers, so most of the Synopsys PHY related code could be reused. It turns out that even completely custom HDMI PHYs, such as

[PATCH 06/11] dt-bindings: display: sun4i-drm: Add A83T HDMI pipeline

2017-12-30 Thread Jernej Skrabec
This commit adds all necessary compatibles and descriptions needed to implement A83T HDMI pipeline. Mixer is already properly described, so only compatible is added. However, A83T TCON1, which is connected to HDMI, doesn't have channel 0, contrary to all TCONs currently described. Because of that

[PATCH 01/11] clk: sunxi-ng: Don't set k if width is 0 for nkmp plls

2017-12-30 Thread Jernej Skrabec
For example, A83T have nmp plls which are modelled as nkmp plls. Since k is not specified, it has offset 0, shift 0 and lowest value 1. This means that LSB bit is always set to 1, which may change clock rate. Fix that by applying k factor only if k width is greater than 0. Signed-off-by: Jernej S

Re: x86/pti: smp_processor_id() called while preemptible in resume-from-sleep

2017-12-30 Thread Linus Torvalds
On Sat, Dec 30, 2017 at 12:47 PM, Thomas Gleixner wrote: > > The UP distinction does not exist anymore since: Heh. Crossed emails. We're very much in agreement. Linus

Re: [BUG] 4.15-rc4 'do_IRQ: 0.33 No irq handler for vector'

2017-12-30 Thread Alan Cox
On Mon, 18 Dec 2017 20:39:17 -0800 vcap...@pengaru.com wrote: > Hello everyone, > > While investigating `journalctl -k` for anything associated with broken > audio, this was found: > > Dec 18 16:09:28 iridesce kernel: do_IRQ: 0.33 No irq handler for vector That first one is a bit weird. But i

Re: x86/pti: smp_processor_id() called while preemptible in resume-from-sleep

2017-12-30 Thread Thomas Gleixner
On Sat, 30 Dec 2017, Thomas Gleixner wrote: > On Sat, 30 Dec 2017, Linus Torvalds wrote: > > On Sat, Dec 30, 2017 at 10:20 AM, Thomas Gleixner > > wrote: > > The __native_flush_tlb() function looks _very_ broken. > > > > It does: > > > > invalidate_user_asid(this_cpu_read(cpu_tlbstate.l

Re: x86/pti: smp_processor_id() called while preemptible in resume-from-sleep

2017-12-30 Thread Linus Torvalds
On Sat, Dec 30, 2017 at 12:28 PM, Thomas Gleixner wrote: > > That preempt_disable()/enable() was added with: > > commit 5cf0791da5c162ebc14b01eb01631cfa7ed4fa6e > Author: Sebastian Andrzej Siewior > Date: Fri Aug 5 15:37:39 2016 +0200 > > x86/mm: Disable preemption during CR3 read+write > >

Re: About the try to remove cross-release feature entirely by Ingo

2017-12-30 Thread Matthew Wilcox
On Sat, Dec 30, 2017 at 10:40:41AM -0500, Theodore Ts'o wrote: > On Fri, Dec 29, 2017 at 10:16:24PM -0800, Matthew Wilcox wrote: > > > The problems come from wrong classification. Waiters either classfied > > > well or invalidated properly won't bitrot. > > > > I disagree here. As Ted says, it's

[PATCH 1/2] objtool: Fix seg fault caused by missing parameter

2017-12-30 Thread Josh Poimboeuf
From: Simon Ser Fix a seg fault when no parameter is provided to 'objtool orc'. Signed-off-by: Simon Ser Signed-off-by: Josh Poimboeuf --- tools/objtool/builtin-orc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/objtool/builtin-orc.c b/tools/objtool/builtin-orc

[PATCH 0/2] objtool: two seg fault fixes

2017-12-30 Thread Josh Poimboeuf
Hi Ingo, Here are a couple of objtool seg fault fixes from Simon Ser. Simon Ser (2): objtool: Fix seg fault caused by missing parameter objtool: Fix seg fault with clang-compiled objects tools/objtool/builtin-orc.c | 4 +++- tools/objtool/orc_gen.c | 2 ++ 2 files changed, 5 insertions(

[PATCH 2/2] objtool: Fix seg fault with clang-compiled objects

2017-12-30 Thread Josh Poimboeuf
From: Simon Ser Fix a seg fault which happens when an input file provided to 'objtool orc generate' doesn't have a '.shstrtab' section (for instance, object files produced by clang don't have this section). Signed-off-by: Simon Ser Signed-off-by: Josh Poimboeuf --- tools/objtool/orc_gen.c | 2

[PATCH bpf-next v4 3/3] libbpf: add missing SPDX-License-Identifier

2017-12-30 Thread Eric Leblond
Signed-off-by: Eric Leblond Acked-by: Alexei Starovoitov --- tools/lib/bpf/bpf.c| 2 ++ tools/lib/bpf/bpf.h| 2 ++ tools/lib/bpf/libbpf.c | 2 ++ tools/lib/bpf/libbpf.h | 2 ++ 4 files changed, 8 insertions(+) diff --git a/tools/lib/bpf/bpf.c b/tools/lib/bpf/bpf.c index ceb20c5cae3b..ab

[PATCH bpf-next v4 2/3] libbpf: add error reporting in XDP

2017-12-30 Thread Eric Leblond
Parse netlink ext attribute to get the error message returned by the card. Code is partially take from libnl. Signed-off-by: Eric Leblond Acked-by: Alexei Starovoitov --- tools/lib/bpf/Build| 2 +- tools/lib/bpf/bpf.c| 10 ++- tools/lib/bpf/nlattr.c | 187

[PATCH bpf-next v4 1/3] libbpf: add function to setup XDP

2017-12-30 Thread Eric Leblond
Most of the code is taken from set_link_xdp_fd() in bpf_load.c and slightly modified to be library compliant. Signed-off-by: Eric Leblond Acked-by: Alexei Starovoitov --- tools/lib/bpf/bpf.c| 126 - tools/lib/bpf/libbpf.c | 2 + tools/lib/bp

[PATCH bpf-next v4 0/3] libbpf: add function to setup XDP

2017-12-30 Thread Eric Leblond
Hello, This updated patchset address the remarks by Toshiaki Makita and Philippe Ombredanne: - fixes on errno handling - correct usage of SPDX header Best regards, -- Eric Leblond

Re: Review of KPTI patchset

2017-12-30 Thread Mathieu Desnoyers
- On Dec 30, 2017, at 2:58 PM, Thomas Gleixner t...@linutronix.de wrote: > On Sat, 30 Dec 2017, Mathieu Desnoyers wrote: > >> Hi Thomas, >> >> Here is some feedback on the KPTI patchset. Sorry for not replying to the >> patch, I was not CC'd on the original email, and don't have it in my inb

Re: [PATCH 3/5] kernel/printk: allow kmsg to be encrypted using public key encryption

2017-12-30 Thread Randy Dunlap
On 12/30/2017 09:58 AM, Dan Aloni wrote: > From: Dan Aloni > > This commit enables the kernel to encrypt the free-form text that > is generated by printk() before it is brought up to `dmesg` in > userspace. > > The encryption is made using one of the trusted public keys which > are kept built-in

[PATCH] wireless: b43: Delete an error message for a failed memory allocation in b43_sdio_probe()

2017-12-30 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 30 Dec 2017 21:23:47 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/net/wireless/broadcom/b43/sdio.c | 1 - 1 file changed, 1 dele

Re: x86/pti: smp_processor_id() called while preemptible in resume-from-sleep

2017-12-30 Thread Thomas Gleixner
On Sat, 30 Dec 2017, Linus Torvalds wrote: > On Sat, Dec 30, 2017 at 10:20 AM, Thomas Gleixner wrote: > The __native_flush_tlb() function looks _very_ broken. > > It does: > > invalidate_user_asid(this_cpu_read(cpu_tlbstate.loaded_mm_asid)); > /* > * If current->mm == NU

Re: [PATCH 4/5] tools: add dmesg decryption program

2017-12-30 Thread Randy Dunlap
On 12/30/2017 09:58 AM, Dan Aloni wrote: > From: Dan Aloni > > Example execution: > > dmesg | dmesg-decipher > > Signed-off-by: Dan Aloni > --- > diff --git a/tools/kmsg/dmesg-decipher.c b/tools/kmsg/dmesg-decipher.c > new file mode 100644 > index ..c7149fe7dc17 > --- /dev/n

[PATCH v2] USB: host: Use zeroing memory allocator rather than allocator/memset

2017-12-30 Thread Himanshu Jha
Use dma_zalloc_coherent for allocating zeroed memory and remove unnecessary memset function. Done using Coccinelle. Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci 0-day tested with no failures. Suggested-by: Luis R. Rodriguez Signed-off-by: Himanshu Jha --- v2: -align argume

Re: [PATCH] drm/vc4: Move IRQ enable to PM path

2017-12-30 Thread Stefan Wahren
> Stefan Schake hat am 29. Dezember 2017 um 17:05 > geschrieben: > > > We were calling enable_irq on bind, where it was already enabled previously > by the IRQ helper. Additionally, dev->irq is not set correctly until after > postinstall and so was always zero here, triggering a warning in 4.1

Re: x86/pti: smp_processor_id() called while preemptible in resume-from-sleep

2017-12-30 Thread Linus Torvalds
On Sat, Dec 30, 2017 at 11:41 AM, Thomas Gleixner wrote: > > That pagetable fiddling dissappeared long ago, but the flush stayed around > forever. Yes, so it all makes sense, and those two tlb invalidates should just be removed. Good to have the reason for the left-over code understood.

Re: Review of KPTI patchset

2017-12-30 Thread Thomas Gleixner
On Sat, 30 Dec 2017, Mathieu Desnoyers wrote: > Hi Thomas, > > Here is some feedback on the KPTI patchset. Sorry for not replying to the > patch, I was not CC'd on the original email, and don't have it in my inbox. I can bounce you 196 versions if you want. > I notice that fill_ldt() sets the d

[PATCH] wireless: airo: Delete an error message for a failed memory allocation in airo_networks_allocate()

2017-12-30 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 30 Dec 2017 20:48:44 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/net/wireless/cisco/airo.c | 7 +-- 1 file changed, 1 inser

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

2017-12-30 Thread santosh.shilim...@oracle.com
On 12/30/17 1:17 AM, syzbot wrote: Hello, syzkaller hit the following crash on fba961ab29e5ffb055592442808bb0f7962e05da git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/master compiler: gcc (GCC) 7.1.1 20170620 .config is attached Raw console output is attached. Unfortunately,

Re: x86/pti: smp_processor_id() called while preemptible in resume-from-sleep

2017-12-30 Thread Thomas Gleixner
On Sat, 30 Dec 2017, Linus Torvalds wrote: > On Sat, Dec 30, 2017 at 10:20 AM, Thomas Gleixner wrote: > So I'd suggest moving the preempt_disable() up to the top of that > function, regardless of whether we could then remove that seemingly > stale TLB flush in that crazy > smpboot_setup/restore_wa

Re: [PATCH 5/5] docs: add dmesg encryption doc

2017-12-30 Thread Randy Dunlap
On 12/30/2017 09:58 AM, Dan Aloni wrote: > From: Dan Aloni > > Signed-off-by: Dan Aloni > --- > Documentation/admin-guide/dmesg-encryption.rst | 77 > ++ > 1 file changed, 77 insertions(+) > create mode 100644 Documentation/admin-guide/dmesg-encryption.rst > > diff --

[PATCH] rds: fix use-after-free read in rds_find_bound

2017-12-30 Thread Santosh Shilimkar
socket buffer can get freed as part of sock_close callback so before adding reference check underneath socket validity. Reported-by: syzbot+93a5839deb3555374...@syzkaller.appspotmail.com Signed-off-by: Santosh Shilimkar --- net/rds/bind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

Re: x86/pti: smp_processor_id() called while preemptible in resume-from-sleep

2017-12-30 Thread Andy Lutomirski
--Andy > On Dec 30, 2017, at 11:15 AM, Linus Torvalds > wrote: > > On Sat, Dec 30, 2017 at 11:03 AM, Dave Hansen > wrote: >> On 12/30/2017 10:40 AM, Linus Torvalds wrote: >>> The __native_flush_tlb() function looks _very_ broken. >> ... >>> So I'd suggest moving the preempt_disable() up to t

Re: [PATCH v2 2/2] pinctrl: Allow indicating loss of pin states during low-power

2017-12-30 Thread Florian Fainelli
Le 12/19/17 à 23:24, Linus Walleij a écrit : > On Mon, Dec 11, 2017 at 12:38 AM, Florian Fainelli > wrote: >> On 12/02/2017 04:48 AM, Linus Walleij wrote: > >>> This should solve your problem without having to alter the semantics >>> of pinctrl_select_state() for everyone. >> >> This was exactly

[PATCH] orinoco: Delete an error message for a failed memory allocation in three functions

2017-12-30 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 30 Dec 2017 20:20:56 +0100 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/net/wireless/intersil/orinoco/main.c| 10 ++

Re: [PATCH] USB: host: Use zeroing memory allocator rather than allocator/memset

2017-12-30 Thread Alan Stern
On Sat, 30 Dec 2017, Himanshu Jha wrote: > On Sat, Dec 30, 2017 at 11:41:19AM -0500, Alan Stern wrote: > > On Sat, 30 Dec 2017, Himanshu Jha wrote: > > > > > Use dma_zalloc_coherent for allocating zeroed > > > memory and remove unnecessary memset function. > > > > > > Done using Coccinelle. > >

Re: x86/pti: smp_processor_id() called while preemptible in resume-from-sleep

2017-12-30 Thread Linus Torvalds
On Sat, Dec 30, 2017 at 11:03 AM, Dave Hansen wrote: > On 12/30/2017 10:40 AM, Linus Torvalds wrote: >> The __native_flush_tlb() function looks _very_ broken. > ... >> So I'd suggest moving the preempt_disable() up to the top of that >> function, regardless of whether we could then remove that see

Re: [kernel-hardening] [PATCH 5/5] docs: add dmesg encryption doc

2017-12-30 Thread Boris Lukashev
On Sat, Dec 30, 2017 at 12:58 PM, Dan Aloni wrote: > From: Dan Aloni > > Signed-off-by: Dan Aloni > --- > Documentation/admin-guide/dmesg-encryption.rst | 77 > ++ > 1 file changed, 77 insertions(+) > create mode 100644 Documentation/admin-guide/dmesg-encryption.rst >

Re: [PATCH v2 5/9] arch: sh: migor: Use new renesas-ceu camera driver

2017-12-30 Thread kbuild test robot
-ci/linux/commits/Jacopo-Mondi/Renesas-Capture-Engine-Unit-CEU-V4L2-driver/20171230-212202 base: git://linuxtv.org/media_tree.git master config: sh-migor_defconfig (attached as .config) compiler: sh4-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com

4.15-rc5 was ath5k: WARN_ON in ieee80211_rx_napi()

2017-12-30 Thread Pavel Machek
Hi! I'm getting WARN_ON() on heavy wifi use, thinkpad T40p... Any ideas? BTW can we get rid of the ath5k: ath5k_hw_get_isr: ISR: 0x0080 IMR: 0x80081035 debugging print? Thanks, Pavel [0.00] Linux version 4.15.0

Re: x86/pti: smp_processor_id() called while preemptible in resume-from-sleep

2017-12-30 Thread Dave Hansen
On 12/30/2017 10:40 AM, Linus Torvalds wrote: > The __native_flush_tlb() function looks _very_ broken. ... > So I'd suggest moving the preempt_disable() up to the top of that > function, regardless of whether we could then remove that seemingly > stale TLB flush in that crazy > smpboot_setup/restor

Re: [PATCH 2/5] certs: allow in-kernel access of trusted keys

2017-12-30 Thread Randy Dunlap
On 12/30/2017 09:58 AM, Dan Aloni wrote: > From: Dan Aloni > > Signed-off-by: Dan Aloni > --- > certs/system_keyring.c| 56 > ++- > include/keys/system_keyring.h | 3 +++ > 2 files changed, 58 insertions(+), 1 deletion(-) > > diff --git a/certs

Re: [PATCH] b43: Replace mdelay with msleep in b43_radio_2057_init_post

2017-12-30 Thread Larry Finger
On 12/30/2017 05:08 AM, Jia-Ju Bai wrote: b43_radio_2057_init_post is not called in an interrupt handler nor holding a spinlock. The function mdelay in it can be replaced with msleep, to reduce busy wait. Signed-off-by: Jia-Ju Bai checkpatch.pl reports the following warning for this patch: W

Review of KPTI patchset

2017-12-30 Thread Mathieu Desnoyers
Hi Thomas, Here is some feedback on the KPTI patchset. Sorry for not replying to the patch, I was not CC'd on the original email, and don't have it in my inbox. I notice that fill_ldt() sets the desc->type with "|= 1", whereas all other operations on the desc type are done with a type enum based

Re: x86/pti: smp_processor_id() called while preemptible in resume-from-sleep

2017-12-30 Thread Linus Torvalds
On Sat, Dec 30, 2017 at 10:20 AM, Thomas Gleixner wrote: > On Sat, 30 Dec 2017, Dominik Brodowski wrote: >> >> native_cpu_up+0x2f0/0xa30: >> invalidate_user_asid at arch/x86/include/asm/tlbflush.h:343 > > Ah, that makes sense. Missed that in the maze. > > What makes less sense is that tlbflush its

  1   2   3   >