Re: [PATCH v4 3/6] ima: refactor ima_init_policy()

2018-09-27 Thread Mimi Zohar
On Wed, 2018-09-26 at 17:52 +0530, Nayna Jain wrote: > This patch removes the code duplication in ima_init_policy() by defining > a new function named add_rules(). Thanks!  The patch looks good, but let's expand on this just a bit. Rules can be added to the initial IMA policy, the custom policy o

[PATCH] staging: rtl8188eu: remove get_right_chnl_for_iqk()

2018-09-27 Thread Michael Straube
The function get_right_chnl_for_iqk() only returns non zero values for channels > 14. According to the TODO, code valid only for 5 GHz should be removed. - find and remove remaining code valid only for 5 GHz. Most of the obvious ones have been removed, but things like channel > 14 still exist.

[PATCH][staging-next] staging: wilc1000: fix incorrect allocation size for structure

2018-09-27 Thread Colin King
From: Colin Ian King Currently the allocation for str_vals is for the sizeof the pointer rather than the size of the structure. Fix this. Detected by smatch "wilc_wlan_cfg_init() error: not allocating enough data 392 vs 8" Fixes: acceb12a9f8b ("staging: wilc1000: refactor code to avoid static

Re: [PATCH v7 02/14] sched/cpufreq: Prepare schedutil for Energy Aware Scheduling

2018-09-27 Thread Quentin Perret
Hi Rafael, Very sorry for the late reply ... On Tuesday 18 Sep 2018 at 23:33:22 (+0200), Rafael J. Wysocki wrote: [...] > The new "type" argument should be documented. > > Also IMO using the special enum for it is quite confusing, because you > ever only check one value from it directly. What w

Re: [PATCH v2] gpiolib: Show correct direction from the beginning

2018-09-27 Thread Timur Tabi
On 9/27/18 1:51 AM, Stephen Boyd wrote: Looks OK to me visually. I haven't tested it because I don't have access to the locked down hardware anymore. Same here. Please wait for Jeff Hugo to test it before applying. Thanks.

Re: [PATCH v2 4/6] drm/panel: simple: Add support for Banana Pi 7" S070WV20-CT16 panel

2018-09-27 Thread Thierry Reding
On Fri, Sep 07, 2018 at 12:19:46PM +0800, Chen-Yu Tsai wrote: > This panel is marketed as Banana Pi 7" LCD display. On the back is > a sticker denoting the model name S070WV20-CT16. > > This is a 7" 800x480 panel connected through a 24-bit RGB interface. > However the panel only does 262k colors.

[PATCH net V2] vhost-vsock: fix use after free

2018-09-27 Thread Jason Wang
The access of vsock is not protected by vhost_vsock_lock. This may lead to use after free since vhost_vsock_dev_release() may free the pointer at the same time. Fix this by holding the lock during the access. Reported-by: syzbot+e3e074963495f92a8...@syzkaller.appspotmail.com Fixes: 16320f363ae1 (

Re: [PATCH net] vhost-vsock: fix use after free

2018-09-27 Thread Jason Wang
On 2018年09月27日 17:52, Sergei Shtylyov wrote: Hello! On 9/27/2018 11:43 AM, Jason Wang wrote:    Just a couple of typos... The access of vsock is not protected by vhost_vsock_lock. This may lead use after free since vhost_vsock_dev_release() may free the   Lead to use. pointer at the sa

Re: [PATCH v5 4/4] mm: Defer ZONE_DEVICE page initialization to the point where we init pgmap

2018-09-27 Thread Oscar Salvador
On Thu, Sep 27, 2018 at 01:09:26PM +0200, Michal Hocko wrote: > > So there were a few things I wasn't sure we could pull outside of the > > hotplug lock. One specific example is the bits related to resizing the pgdat > > and zone. I wanted to avoid pulling those bits outside of the hotplug lock. >

Re: [PATCH] usb: dwc2: Fix HiKey regression caused by power_down feature

2018-09-27 Thread Artur Petrosyan
Hi John, On 9/25/2018 21:59, John Stultz wrote: > On Tue, Sep 25, 2018 at 3:04 AM, Artur Petrosyan > wrote: >> Just a clarification by this commit "[PATCH] usb: dwc2: Fix HiKey >> regression caused by power_down feature" >> https://urldefense.proofpoint.com/v2/url?u=https-3A__marc.info_-3Fl-3Dlin

Re: [PATCH v5 4/4] mm: Defer ZONE_DEVICE page initialization to the point where we init pgmap

2018-09-27 Thread Oscar Salvador
On Wed, Sep 26, 2018 at 11:25:37AM -0700, Alexander Duyck wrote: > With that said I am open to suggestions if you still feel like I need to > follow this up with some additional work. I just want to avoid introducing > any regressions in regards to functionality or performance. Hi Alexander, the

Re: [PATCH 4.18 74/88] drm/atomic: Use drm_drv_uses_atomic_modeset() for debugfs creation

2018-09-27 Thread Greg Kroah-Hartman
On Thu, Sep 27, 2018 at 12:43:33PM +0200, Holger Hoffstätte wrote: > On 09/27/18 11:03, Greg Kroah-Hartman wrote: > > 4.18-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Lyude Paul > > > > commit 3c499ea0c662e2f38aafbd4f516b08aab

[PATCH] x86/boot: Fix kexec booting failure after SEV early boot support

2018-09-27 Thread Kairui Song
Commit 1958b5fc4010 ("x86/boot: Add early boot support when running with SEV active") is causing kexec becomes sometimes unstable even if SEV is not active. kexec reboot won't start a second kernel bypassing BIOS boot process, instead, the system got reset. That's because, in get_sev_encryption_bi

Re: [PATCH 4.14 64/64] crypto: x86/aegis,morus - Do not require OSXSAVE for SSE2

2018-09-27 Thread Greg Kroah-Hartman
On Thu, Sep 27, 2018 at 12:30:04PM +0100, Sudip Mukherjee wrote: > Hi Greg, > > On Thu, Sep 27, 2018 at 10:04 AM, Greg Kroah-Hartman > wrote: > > 4.14-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Ondrej Mosnacek > > > > commit 2

Re: [PATCH 04/12] drm/sun4i: sun6i_mipi_dsi: Enable missing DSI bus clock

2018-09-27 Thread Chen-Yu Tsai
Hi, On Thu, Sep 27, 2018 at 7:49 PM Jagan Teki wrote: > > DSI bus_clk is already available in sun6i_dsi but missed to > get the clk and process for enable/disable. > > This patch add support for it. > > Signed-off-by: Jagan Teki > --- > drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 8 > 1 f

Re: POSIX violation by writeback error

2018-09-27 Thread Jeff Layton
On Tue, 2018-09-25 at 18:30 -0400, Theodore Y. Ts'o wrote: > On Tue, Sep 25, 2018 at 12:41:18PM -0400, Jeff Layton wrote: > > That's all well and good, but still doesn't quite solve the main concern > > with all of this. It's suppose we have this series of events: > > > > open file r/w > > write 1

Re: [v2 PATCH 1/2 -mm] mm: mremap: dwongrade mmap_sem to read when shrinking

2018-09-27 Thread Kirill A. Shutemov
On Thu, Sep 27, 2018 at 02:10:33AM +0800, Yang Shi wrote: > Other than munmap, mremap might be used to shrink memory mapping too. > So, it may hold write mmap_sem for long time when shrinking large > mapping, as what commit ("mm: mmap: zap pages with read mmap_sem in > munmap") described. > > The

[PATCH RFC] x86/earlyprintk: Don't fail the pciserial device with incorrect class code

2018-09-27 Thread Feng Tang
"pciserial" earlyprintk helps much on many modern x86 platforms, but unfortunately there are some platforms whose PCI UART devices have wrong PCI class code, which will be blocked by current check. So loose the class code check by giving a warning message instead. This should be fine, as a develop

Re: [v2 PATCH 2/2 -mm] mm: brk: dwongrade mmap_sem to read when shrinking

2018-09-27 Thread Kirill A. Shutemov
On Thu, Sep 27, 2018 at 02:10:34AM +0800, Yang Shi wrote: > brk might be used to shinrk memory mapping too other than munmap(). s/shinrk/shrink/ > So, it may hold write mmap_sem for long time when shrinking large > mapping, as what commit ("mm: mmap: zap pages with read mmap_sem in > munmap") des

Re: [PATCH v4] drm/panel: add Kingdisplay kd097d04 panel driver

2018-09-27 Thread Heiko Stuebner
Hi Thierry, Am Donnerstag, 27. September 2018, 14:07:21 CEST schrieb Thierry Reding: > On Fri, Aug 17, 2018 at 11:37:31AM +0200, Heiko Stuebner wrote: > > From: Nickey Yang > > > > Support Kingdisplay kd097d04 9.7" 1536x2048 TFT LCD panel, > > it is a MIPI dual-DSI panel. > > > > v4: > > - addr

Re: [PATCH V2 2/3] x86, perf: Add a separate Arch Perfmon v4 PMI handler

2018-09-27 Thread Peter Zijlstra
On Wed, Aug 08, 2018 at 12:12:07AM -0700, kan.li...@linux.intel.com wrote: > @@ -4325,6 +4428,8 @@ __init int intel_pmu_init(void) > x86_pmu.extra_regs = intel_skl_extra_regs; > x86_pmu.pebs_aliases = intel_pebs_aliases_skl; > x86_pmu.pebs_prec_dist = true;

[PATCH v1] perf record: encode -k clockid frequency into Perf trace

2018-09-27 Thread Alexey Budankov
Store -k clockid frequency into Perf trace to enable timestamps derived metrics conversion into wall clock time on reporting stage. Below is the example of perf report output: tools/perf/perf record -k raw -- ../../matrix/linux/matrix.gcc ... [ perf record: Captured and wrote 31.222 MB perf.da

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

2018-09-27 Thread Eric Dumazet
On 09/27/2018 01:10 AM, Dmitry Vyukov wrote: > > Would a stack trace for call_rcu be helpful here? I have this idea for > a long time, but never get around to implementing it: > https://bugzilla.kernel.org/show_bug.cgi?id=198437 > > Also FWIW I recently used the following hack for another net

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

2018-09-27 Thread Dmitry Vyukov
On Thu, Sep 27, 2018 at 3:00 PM, Eric Dumazet wrote: > > > On 09/27/2018 01:10 AM, Dmitry Vyukov wrote: > >> >> Would a stack trace for call_rcu be helpful here? I have this idea for >> a long time, but never get around to implementing it: >> https://bugzilla.kernel.org/show_bug.cgi?id=198437 >> >

Re: [PATCH 3/3] virtio-pmem: Add virtio pmem driver

2018-09-27 Thread Pankaj Gupta
Hello Dan, > > > + /* The request submission function */ > > > +static int virtio_pmem_flush(struct nd_region *nd_region) > > > +{ > > > + int err; [...] > > > + init_waitqueue_head(&req->host_acked); > > > + init_waitqueue_head(&req->wq_buf); > > > + > > > + spin_lock_

[PATCH] mm: don't warn about large allocations for slab

2018-09-27 Thread Dmitry Vyukov
From: Dmitry Vyukov This warning does not seem to be useful. Most of the time it fires when allocation size depends on syscall arguments. We could add __GFP_NOWARN to these allocation sites, but having a warning only to suppress it does not make lots of sense. Moreover, this warnings never fires

Re: WARNING: kmalloc bug in input_mt_init_slots

2018-09-27 Thread Dmitry Vyukov
On Tue, Sep 25, 2018 at 4:04 PM, Christopher Lameter wrote: > On Tue, 25 Sep 2018, Dmitry Vyukov wrote: > >> Assuming that the size is large enough to fail in all allocators, is >> this warning still useful? How? Should we remove it? > > Remove it. It does not make sense because we check earlier i

Re: [PATCH v14 12/19] x86/sgx: Add data structures for tracking the EPC pages

2018-09-27 Thread Jarkko Sakkinen
On Tue, Sep 25, 2018 at 01:00:42PM -0700, Randy Dunlap wrote: > On 9/25/18 6:06 AM, Jarkko Sakkinen wrote: > > Add data structures to track Enclave Page Cache (EPC) pages. EPC is > > divided into multiple banks (1-N) of which addresses and sizes can be > > enumerated with CPUID by the OS. > > > >

RE: [PATCH 00/10] GICv3 support for kexec/kdump on EFI systems

2018-09-27 Thread Zhang, Lei
Hi Marc > -Original Message- > From: linux-arm-kernel > [mailto:linux-arm-kernel-boun...@lists.infradead.org] On Behalf Of Marc > Zyngier > Sent: Saturday, September 22, 2018 5:00 AM > To: linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org > Cc: Jeffrey Hugo; Thomas Gleixne

Re: [PATCH v11 26/26] s390: doc: detailed specifications for AP virtualization

2018-09-27 Thread Tony Krowiak
On 09/27/2018 07:59 AM, Christian Borntraeger wrote: On 09/27/2018 01:51 PM, Cornelia Huck wrote: On Thu, 27 Sep 2018 13:29:43 +0200 Halil Pasic wrote: On 09/27/2018 12:42 AM, Alex Williamson wrote: On Tue, 25 Sep 2018 19:16:41 -0400 Tony Krowiak wrote: + This is how the matrix is conf

Re: [PATCH v14 11/19] x86/sgx: Add wrappers for ENCLS leaf functions

2018-09-27 Thread Jarkko Sakkinen
On Tue, Sep 25, 2018 at 01:01:47PM -0700, Randy Dunlap wrote: > Hi, > Please don't use "/**" to begin comment blocks that are not kernel-doc > notation, like the 3 below. Note: I might have seen one (or some) of > these "fixed" in other patches in this series (not sure). Thanks Randy. /Jarkko

Re: [PATCH v14 10/19] x86/sgx: Detect Intel SGX

2018-09-27 Thread Jarkko Sakkinen
On Tue, Sep 25, 2018 at 01:02:14PM -0700, Randy Dunlap wrote: > On 9/25/18 6:06 AM, Jarkko Sakkinen wrote: > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > > index 1a0be022f91d..b47e1a144409 100644 > > --- a/arch/x86/Kconfig > > +++ b/arch/x86/Kconfig > > @@ -1913,6 +1913,23 @@ config X86_INT

Re: [PATCH v5 4/4] mm: Defer ZONE_DEVICE page initialization to the point where we init pgmap

2018-09-27 Thread Michal Hocko
On Thu 27-09-18 14:25:37, Oscar Salvador wrote: > On Thu, Sep 27, 2018 at 01:09:26PM +0200, Michal Hocko wrote: > > > So there were a few things I wasn't sure we could pull outside of the > > > hotplug lock. One specific example is the bits related to resizing the > > > pgdat > > > and zone. I wan

Re: [PATCH 0/5] Add CDTech 4.3" and 7" to panel-simple

2018-09-27 Thread Giulio Benetti
Hello Thierry, Il 27/09/2018 13:59, Thierry Reding ha scritto: On Tue, Jul 31, 2018 at 01:11:12AM +0200, Giulio Benetti wrote: Add CDTech 4.3" S043WQ26H-CT7 support Add CDTech 7" S070WV95-CT16 support Giulio Benetti (5): dt-bindings: Add vendor prefix for CDTech(H.K.) Electronics Limited

Re: [PATCH v2 6/7] drivers: oprofile: Avoids building driver from direct make command

2018-09-27 Thread Rolf Eike Beer
Am 2018-09-27 13:23, schrieb Leonardo Bras: Hello Rolf, On Thu, Sep 27, 2018 at 3:34 AM, Rolf Eike Beer wrote: Am Donnerstag, 27. September 2018, 03:41:38 CEST schrieb Leonardo Brás: Creates new Makefile to avoid building driver if 'make drivers/oprofile/' is called directly. This driver is

Re: [PATCH v14 09/19] x86/mm: x86/sgx: Signal SEGV_SGXERR for #PFs w/ PF_SGX

2018-09-27 Thread Jarkko Sakkinen
On Tue, Sep 25, 2018 at 03:53:48PM -0700, Andy Lutomirski wrote: > Minor nit: > > On Tue, Sep 25, 2018 at 6:12 AM Jarkko Sakkinen > wrote: > > > > From: Sean Christopherson > > > > > by (c) as the kernel doesn't really have any other reasonable option, > > e.g. we could kill the task or panic,

Re: [PATCH v14 04/19] x86/cpufeatures: Add SGX feature bits

2018-09-27 Thread Jarkko Sakkinen
On Wed, Sep 26, 2018 at 01:36:17PM +0200, Borislav Petkov wrote: > On Wed, Sep 26, 2018 at 02:11:39PM +0300, Jarkko Sakkinen wrote: > > Thank you. I guess I understand what you want me to do i.e. > > > > + { X86_FEATURE_SGX1, CPUID_EAX, 0, 0x0012, 0 }, > > + { X86_FEAT

Re: [PATCH v3.1 1/2] device property: Add device_get_bd_address() and fwnode_get_bd_address()

2018-09-27 Thread Sakari Ailus
Hi guys, On Thu, Sep 27, 2018 at 02:38:29PM +0300, Heikki Krogerus wrote: > Hi Marcel, > > On Thu, Sep 27, 2018 at 12:24:33PM +0200, Marcel Holtmann wrote: > > > Let's not fill property.c with framework specific helper functions any > > > more! > > > > > > Those functions are completely bluetoot

Re: [PATCH] x86/boot: Fix kexec booting failure after SEV early boot support

2018-09-27 Thread Lendacky, Thomas
On 09/27/2018 07:38 AM, Kairui Song wrote: > Commit 1958b5fc4010 ("x86/boot: Add early boot support when running > with SEV active") is causing kexec becomes sometimes unstable even if > SEV is not active. kexec reboot won't start a second kernel bypassing > BIOS boot process, instead, the system g

Re: [PATCH] drm: stm: implement get_scanout_position function

2018-09-27 Thread Benjamin Gaignard
Le jeu. 27 sept. 2018 à 13:32, Yannick FERTRE a écrit : > > Reviewed-by: Yannick Fertré > Tested-by: Yannick Fertré Applied on drm-misc-next, Thanks, Benjamin > > On 09/27/2018 10:15 AM, Yannick FERTRE wrote: > > Reviewed-by/tested-by: yannick.fer...@st.com > > > > Forwarded Message -

Re: [PATCH v7 RESEND 1/4] x86/ioremap: add a function ioremap_encrypted() to remap kdump old memory

2018-09-27 Thread Borislav Petkov
On Thu, Sep 27, 2018 at 03:19:51PM +0800, Lianbo Jiang wrote: > diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h > index 6de64840dd22..f8795f9581c7 100644 > --- a/arch/x86/include/asm/io.h > +++ b/arch/x86/include/asm/io.h > @@ -192,6 +192,9 @@ extern void __iomem *ioremap_cache(r

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

2018-09-27 Thread Eric Dumazet
On 09/27/2018 06:02 AM, Dmitry Vyukov wrote: > I am not suggesting to commit this. This is just a hack for debugging. > It in fact lead to some warnings, but still allowed me to reproduce > the bug reliably. > Had you got more meaningful stack traces ? (Showing which context was actually doi

Re: [PATCH] rseq/selftests: fix parametrized test with -fpie

2018-09-27 Thread Steven Rostedt
On Tue, 25 Sep 2018 13:39:36 -0400 (EDT) Mathieu Desnoyers wrote: > - On Sep 18, 2018, at 9:53 AM, Mathieu Desnoyers > mathieu.desnoy...@efficios.com wrote: > > > On x86-64, the parametrized selftest code for rseq crashes with a > > segmentation fault when compiled with -fpie. This happens

Re: [PATCH] sched/fair: vruntime should normalize when switching from fair

2018-09-27 Thread Dietmar Eggemann
On 09/27/2018 03:19 AM, Wanpeng Li wrote: On Thu, 27 Sep 2018 at 06:38, Dietmar Eggemann wrote: Hi, On 09/26/2018 11:50 AM, Wanpeng Li wrote: Hi Dietmar, On Tue, 28 Aug 2018 at 22:55, Dietmar Eggemann wrote: On 08/27/2018 12:14 PM, Peter Zijlstra wrote: On Fri, Aug 24, 2018 at 02:24:48PM

Re: [PATCH v4 5/6] ima: add support for external setting of ima_appraise

2018-09-27 Thread Mimi Zohar
Hi Nayna, On Wed, 2018-09-26 at 17:52 +0530, Nayna Jain wrote: > The "ima_appraise" mode defaults to enforcing, unless configured to allow > the boot command line "ima_appraise" option. This patch explicitly sets the > "ima_appraise" mode for the arch specific policy setting. Eventually this patc

Re: [v2 PATCH 2/2 -mm] mm: brk: dwongrade mmap_sem to read when shrinking

2018-09-27 Thread Vlastimil Babka
On 9/27/18 2:50 PM, Kirill A. Shutemov wrote: >> diff --git a/mm/mmap.c b/mm/mmap.c >> index 017bcfa..0d2fae1 100644 >> --- a/mm/mmap.c >> +++ b/mm/mmap.c >> @@ -193,9 +193,11 @@ static int do_brk_flags(unsigned long addr, unsigned >> long request, unsigned long >> unsigned long retval; >>

Re: [PATCH 4.18 74/88] drm/atomic: Use drm_drv_uses_atomic_modeset() for debugfs creation

2018-09-27 Thread Holger Hoffstätte
On 09/27/18 14:37, Greg Kroah-Hartman wrote: On Thu, Sep 27, 2018 at 12:43:33PM +0200, Holger Hoffstätte wrote: On 09/27/18 11:03, Greg Kroah-Hartman wrote: 4.18-stable review patch. If anyone has any objections, please let me know. -- From: Lyude Paul commit 3c499ea0c662e2

Re: [PATCH net-next v6 07/23] zinc: ChaCha20 ARM and ARM64 implementations

2018-09-27 Thread Jason A. Donenfeld
Hi Thomas, I'm trying to optimize this for crypto performance while still taking into account preemption concerns. I'm having a bit of trouble figuring out a way to determine numerically what the upper bounds for this stuff looks like. I'm sure I could pick a pretty sane number that's arguably oka

Re: [PATCH v4 4/6] ima: add support for arch specific policies

2018-09-27 Thread Mimi Zohar
On Wed, 2018-09-26 at 17:52 +0530, Nayna Jain wrote: > Builtin IMA policies can be enabled on the boot command line, and replaced > with a custom policy, normally during early boot in the initramfs. Build > time IMA policy rules were recently added. These rules are automatically > enabled on boot a

[PATCH] RDMA/hns: fix spelling mistake "reseved" -> "reserved"

2018-09-27 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in dev_err error message Signed-off-by: Colin Ian King --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c b/drivers/infiniband/hw

Re: [PATCH 1/2] net: dpaa2: move DPAA2 PTP driver out of staging/

2018-09-27 Thread Andrew Lunn
On Thu, Sep 27, 2018 at 07:12:27PM +0800, Yangbo Lu wrote: > This patch is to move DPAA2 PTP driver out of staging/ > since the dpaa2-eth had been moved out. > > Signed-off-by: Yangbo Lu > --- > drivers/net/ethernet/freescale/Kconfig |9 + > drivers/net/ethernet/freescale

Re: [PATCH RFC] x86/earlyprintk: Don't fail the pciserial device with incorrect class code

2018-09-27 Thread Borislav Petkov
On Thu, Sep 27, 2018 at 08:43:20PM +0800, Feng Tang wrote: > "pciserial" earlyprintk helps much on many modern x86 platforms, > but unfortunately there are some platforms whose PCI UART devices > have wrong PCI class code, which will be blocked by current check. > > So loose the class code check b

Re: [PATCH v4 6/6] x86/ima: define arch_get_ima_policy() for x86

2018-09-27 Thread Mimi Zohar
Hi Eric, Nayna, On Wed, 2018-09-26 at 17:52 +0530, Nayna Jain wrote: > From: Eric Richter > This patch implements an example arch-specific IMA policy for x86 to > enable measurement and appraisal of any kernel image loaded for kexec, > when CONFIG_KEXEC_VERIFY_SIG is not enabled. > > For system

[PATCH v2] i2c: mux: remove duplicated i2c_algorithm

2018-09-27 Thread Luca Ceresoli
From: Luca Ceresoli i2c-mux instantiates one i2c_algorithm for each downstream adapter. However these algorithms are all identical, depending only on the parent adapter. Avoid duplication by hoisting the i2c_algorithm from the adapters to the i2c_mux_core object, and reuse it in all the adapters

Re: [PATCH v3 1/9] powerpc: build .dtb files in dts directory

2018-09-27 Thread Rob Herring
On Mon, Sep 10, 2018 at 10:04 AM Rob Herring wrote: > > Align powerpc with other architectures which build the dtb files in the > same directory as the dts files. This is also in line with most other > build targets which are located in the same directory as the source. > This move will help enabl

RE: [PATCH v2 00/22] SMMU enablement for NXP LS1043A and LS1046A

2018-09-27 Thread Madalin-cristian Bucur
> -Original Message- > From: laurentiu.tu...@nxp.com [mailto:laurentiu.tu...@nxp.com] > Sent: Wednesday, September 26, 2018 4:22 PM > To: devicet...@vger.kernel.org; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; linux-arm-ker...@lists.infradead.org > Cc: Roy Pledge ; Madalin-cris

[PATCH] Reduce boot header size with 1 byte

2018-09-27 Thread xyproto
From: Alexander F. Rødseth Only ah needs to be set to 0 before calling interrupt 0x16 for waiting for a keypress. This patch changes the line that uses xor so that it only zeroes "ah" instead of "ax". This saves a byte. Signed-off-by: Alexander F. Rødseth --- arch/x86/boot/header.S | 11

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

2018-09-27 Thread Dmitry Vyukov
On Thu, Sep 27, 2018 at 3:24 PM, Eric Dumazet wrote: > On 09/27/2018 06:02 AM, Dmitry Vyukov wrote: > >> I am not suggesting to commit this. This is just a hack for debugging. >> It in fact lead to some warnings, but still allowed me to reproduce >> the bug reliably. >> > > Had you got more meanin

Re: [PATCH v2, RESEND 0/3] tpm: retrieve digest size of unknown algorithms from TPM

2018-09-27 Thread Mimi Zohar
On Thu, 2018-09-27 at 08:50 +0200, Roberto Sassu wrote: > On 9/26/2018 8:03 PM, Mimi Zohar wrote: > > Roberto, a similar change needs to be made for tpm_pcr_extend.  Are > > you planning on posting those changes as well? > > Yes, I was planning to send the patch after this patch set is accepted.

Re: [PATCH 04/12] drm/sun4i: sun6i_mipi_dsi: Enable missing DSI bus clock

2018-09-27 Thread Jagan Teki
On Thu, Sep 27, 2018 at 6:13 PM Chen-Yu Tsai wrote: > > Hi, > > On Thu, Sep 27, 2018 at 7:49 PM Jagan Teki wrote: > > > > DSI bus_clk is already available in sun6i_dsi but missed to > > get the clk and process for enable/disable. > > > > This patch add support for it. > > > > Signed-off-by: Jagan

Re: [PATCH v2 7/9] x86/kvm/nVMX: introduce source data cache for kvm_init_shadow_ept_mmu()

2018-09-27 Thread Vitaly Kuznetsov
Vitaly Kuznetsov writes: > Sean Christopherson writes: > >> On Tue, Sep 25, 2018 at 07:58:42PM +0200, Vitaly Kuznetsov wrote: ... >>> >>> -static union kvm_mmu_page_role >>> -kvm_calc_shadow_ept_root_page_role(struct kvm_vcpu *vcpu, bool >>> accessed_dirty) >>> +static union kvm_mmu_role >>>

[PATCH] bcache: add separate workqueue for journal_write to avoid deadlock

2018-09-27 Thread guoju
After write SSD completed, bcache schedule journal_write work to system_wq, that is a public workqueue in system, without WQ_MEM_RECLAIM flag. system_wq is also a bound wq, and there may be no idle kworker on current processor. Creating a new kworker may unfortunately need to reclaim memory first,

Re: [PATCH v14 09/19] x86/mm: x86/sgx: Signal SEGV_SGXERR for #PFs w/ PF_SGX

2018-09-27 Thread Jarkko Sakkinen
On Wed, Sep 26, 2018 at 01:16:59PM -0700, Dave Hansen wrote: > On 09/26/2018 11:12 AM, Andy Lutomirski wrote: > >> e omniscient. > >> > >> How about this? With formatting changes since it's long-winded... > >> > >>/* > >> * Access is blocked by the Enclave Page Cache Map (EPCM), i.

Re: [PATCH] csky: fixups after bootmem removal

2018-09-27 Thread Guo Ren
Hi Christoph, Don't forget arch/csky for the patch: dma-mapping: merge direct and noncoherent ops. arch/csky/Kconfig - select DMA_NONCOHERENT_OPS + select DMA_DIRECT_OPS https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=bc3ec75de5452db59b683487867ba562b9

RE: [PATCH v3 4/5] KVM/x86/vPMU: Add APIs to support host save/restore the guest lbr stack

2018-09-27 Thread Wang, Wei W
On Thursday, September 20, 2018 8:32 PM, Peter Zijlstra wrote: > On Thu, Sep 20, 2018 at 06:05:58PM +0800, Wei Wang wrote: > How do you deal with that situation, where the LBR is in use by a host event? I guess you were referring to this use case: "perf record -b qemu-system-x86_64..", where the

Re: [PATCH 3/5] dma-direct: refine dma_direct_alloc zone selection

2018-09-27 Thread Christoph Hellwig
On Thu, Sep 27, 2018 at 11:45:15AM +1000, Benjamin Herrenschmidt wrote: > I'm not sure this is entirely right. > > Let's say the mask is 30 bits. You will return GFP_DMA32, which will > fail if you allocate something above 1G (which is legit for > ZONE_DMA32). And then we will try GFP_DMA further

Re: [PATCH 5/5] dma-direct: always allow dma mask <= physiscal memory size

2018-09-27 Thread Christoph Hellwig
On Thu, Sep 27, 2018 at 11:50:14AM +1000, Benjamin Herrenschmidt wrote: > > -* to be able to satisfy them - either by not supporting more physical > > -* memory, or by providing a ZONE_DMA32. If neither is the case, the > > -* architecture needs to use an IOMMU instead of the direct ma

Re: [REVIEW][PATCH 00/15] signal/arm64: siginfo cleanups

2018-09-27 Thread Catalin Marinas
On Thu, Sep 27, 2018 at 11:39:35AM +0200, Eric W. Biederman wrote: > Catalin Marinas writes: > > On Mon, Sep 24, 2018 at 11:07:05AM +0200, Eric W. Biederman wrote: > >> After these patches have had a chance to be reviewed I plan to merge > >> them by my siginfo tree. If you would rather take them

Re: [PATCH] csky: fixups after bootmem removal

2018-09-27 Thread Christoph Hellwig
On Thu, Sep 27, 2018 at 09:47:05PM +0800, Guo Ren wrote: > Hi Christoph, > > Don't forget arch/csky for the patch: > dma-mapping: merge direct and noncoherent ops. > > arch/csky/Kconfig > > - select DMA_NONCOHERENT_OPS > + select DMA_DIRECT_OPS Thanks for the reminder. I'll just try to

Re: [PATCH v2, RESEND 0/3] tpm: retrieve digest size of unknown algorithms from TPM

2018-09-27 Thread Jarkko Sakkinen
On Thu, Sep 27, 2018 at 08:50:14AM +0200, Roberto Sassu wrote: > On 9/26/2018 8:03 PM, Mimi Zohar wrote: > > On Wed, 2018-09-26 at 10:40 -0400, Mimi Zohar wrote: > > > On Mon, 2018-09-17 at 11:38 +0200, Roberto Sassu wrote: > > > > Resending to maintainer with correct mailing lists in CC. > > > >

Re: [PATCH v14 04/19] x86/cpufeatures: Add SGX feature bits

2018-09-27 Thread Borislav Petkov
On Thu, Sep 27, 2018 at 04:16:42PM +0300, Jarkko Sakkinen wrote: > Still kind of leaves me puzzled about the situation :-) Why this wasn't > used for example to replace detect_vmx_virtcap()? I don't understand - detect_vmx_virtcap() is setting X86_FEATURE bits based on MSR settings. get_scattered_

Re: [PATCH] clocksource: dw_apb: add reset control

2018-09-27 Thread Dinh Nguyen
On 09/26/2018 10:21 AM, Daniel Lezcano wrote: > On 17/09/2018 16:52, Dinh Nguyen wrote: >> Add code to retrieve the reset property for the dw-apb timers. > > The patch does more than that. Can you explain why the assert/deassert ? Can I update the commit message to this? Add code to retrieve

[PATCH] fuse: enable caching of symlinks

2018-09-27 Thread Dan Schatzberg
FUSE file reads are cached in the page cache, but symlink reads are not. This patch enables FUSE READLINK operations to be cached which can improve performance of some FUSE workloads. In particular, I'm working on a FUSE filesystem for access to source code and discovered that about a 10% improvem

Re: [PATCH 4.18 74/88] drm/atomic: Use drm_drv_uses_atomic_modeset() for debugfs creation

2018-09-27 Thread Holger Hoffstätte
On 09/27/18 15:26, Holger Hoffstätte wrote: On 09/27/18 14:37, Greg Kroah-Hartman wrote: On Thu, Sep 27, 2018 at 12:43:33PM +0200, Holger Hoffstätte wrote: On 09/27/18 11:03, Greg Kroah-Hartman wrote: 4.18-stable review patch.  If anyone has any objections, please let me know. ---

Re: [PATCH V2 2/3] x86, perf: Add a separate Arch Perfmon v4 PMI handler

2018-09-27 Thread Liang, Kan
On 9/27/2018 8:51 AM, Peter Zijlstra wrote: On Wed, Aug 08, 2018 at 12:12:07AM -0700, kan.li...@linux.intel.com wrote: @@ -4325,6 +4428,8 @@ __init int intel_pmu_init(void) x86_pmu.extra_regs = intel_skl_extra_regs; x86_pmu.pebs_aliases = intel_pebs_aliases_skl

[PATCH, RFC] unicore32: remove swiotlb support

2018-09-27 Thread Christoph Hellwig
unicore32 is a bog standard 32-bit port without larger physical address space, highmem or any other obvious addressing limitation. There should be no need to bounce buffer using swiotlb. Signed-off-by: Christoph Hellwig --- Guan, can you double check my assumptions? I really can't find a reaso

Re: [PATCH v14 09/19] x86/mm: x86/sgx: Signal SEGV_SGXERR for #PFs w/ PF_SGX

2018-09-27 Thread Jarkko Sakkinen
On Wed, Sep 26, 2018 at 02:45:17PM -0700, Dave Hansen wrote: > On 09/26/2018 02:15 PM, Andy Lutomirski wrote: > > Could we perhaps have a little vDSO entry (or syscall, I suppose) that > > runs an enclave an returns an error code, and rig up the #PF handler > > to check if the error happened in the

Re: [PATCH v11 26/26] s390: doc: detailed specifications for AP virtualization

2018-09-27 Thread Tony Krowiak
On 09/27/2018 07:29 AM, Halil Pasic wrote: On 09/27/2018 12:42 AM, Alex Williamson wrote: On Tue, 25 Sep 2018 19:16:41 -0400 Tony Krowiak wrote: From: Tony Krowiak [..] + +2. Secure the AP queues to be used by the three guests so that the host can not + access them. To secure them, the

Re: [PATCH] fuse: enable caching of symlinks

2018-09-27 Thread Miklos Szeredi
On Thu, Sep 27, 2018 at 3:52 PM, Dan Schatzberg wrote: > FUSE file reads are cached in the page cache, but symlink reads are > not. This patch enables FUSE READLINK operations to be cached which > can improve performance of some FUSE workloads. > > In particular, I'm working on a FUSE filesystem f

[PATCH v6 0/3] Renesas R9A06G032 PINCTRL Driver

2018-09-27 Thread Phil Edworthy
This implements the pinctrl driver for the RZ/N1 family of devices, including the R9A06G032 (RZ/N1D) device. This series was originally written by Michel Pollet whilst at Renesas, and I have taken over this work. Main changes: v6: - Instead of combining the pin nr and func into a single element,

[PATCH v6 1/3] dt-bindings: pinctrl: renesas,rzn1-pinctrl: documentation

2018-09-27 Thread Phil Edworthy
The Renesas RZ/N1 device family PINCTRL node description. Based on a patch originally written by Michel Pollet at Renesas. Signed-off-by: Phil Edworthy Reviewed-by: Jacopo Mondi --- v6: - Instead of combining the pin nr and func into a single element, use a pair of 8-bit elements. v5: - '

[PATCH v6 2/3] pinctrl: renesas: Renesas RZ/N1 pinctrl driver

2018-09-27 Thread Phil Edworthy
This provides a pinctrl driver for the Renesas RZ/N1 device family. Based on a patch originally written by Michel Pollet at Renesas. Signed-off-by: Phil Edworthy Reviewed-by: Jacopo Mondi --- v6: - Instead of combining the pin nr and func into a single element, use a pair of 8-bit elements.

[PATCH v6 3/3] ARM: dts: r9a06g032: Add pinctrl node

2018-09-27 Thread Phil Edworthy
This provides a pinctrl driver for the Renesas R9A06G032 SoC Based on a patch originally written by Michel Pollet at Renesas. Signed-off-by: Phil Edworthy --- v6: - No changes. v5: - No changes. v4: - No changes. v3: - No changes. v2: - Add "renesas,rzn1-pinctrl" compatible fallback str

[PATCH] HID: elan: fix spelling mistake "registred" -> "registered"

2018-09-27 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in hid_err error message Signed-off-by: Colin Ian King --- drivers/hid/hid-elan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-elan.c b/drivers/hid/hid-elan.c index 07e26c3567eb..0bfd6d1b44c1 100644 ---

Re: [PATCH v4] scsi: ufs: Make sysfs attributes writable

2018-09-27 Thread Christoph Hellwig
On Thu, Sep 27, 2018 at 06:32:47AM +, Avri Altman wrote: > Also, in this context there is the series in > https://www.spinics.net/lists/linux-scsi/msg123479.html > which allows to send UPIUs via a bsg device. > > It's not a provisioning series per-se like Evan's and Sayali's. > It covers the

Re: [PATCH 3/3] resource: Fix find_next_iomem_res() iteration issue

2018-09-27 Thread Bjorn Helgaas
On Thu, Sep 27, 2018 at 01:27:41PM +0800, lijiang wrote: > 在 2018年09月25日 06:15, Bjorn Helgaas 写道: > > From: Bjorn Helgaas > > > > Previously find_next_iomem_res() used "*res" as both an input parameter for > > the range to search and the type of resource to search for, and an output > > parameter

Re: [PATCH v2] gpiolib: Show correct direction from the beginning

2018-09-27 Thread Jeffrey Hugo
On 9/27/2018 6:19 AM, Timur Tabi wrote: On 9/27/18 1:51 AM, Stephen Boyd wrote: Looks OK to me visually. I haven't tested it because I don't have access to the locked down hardware anymore. Same here.  Please wait for Jeff Hugo to test it before applying.  Thanks. I guess its lucky I saw thi

Re: [PATCH] rseq/selftests: fix parametrized test with -fpie

2018-09-27 Thread Shuah Khan
On 09/27/2018 07:22 AM, Steven Rostedt wrote: > On Tue, 25 Sep 2018 13:39:36 -0400 (EDT) > Mathieu Desnoyers wrote: > >> - On Sep 18, 2018, at 9:53 AM, Mathieu Desnoyers >> mathieu.desnoy...@efficios.com wrote: >> >>> On x86-64, the parametrized selftest code for rseq crashes with a >>> segm

Re: [PATCH] team: set IFF_SLAVE on team ports

2018-09-27 Thread Chas Williams
On 07/10/15 02:41, Jiri Pirko wrote: Thu, Jul 09, 2015 at 05:36:55PM CEST, jblu...@infradead.org wrote: On Thu, Jul 9, 2015 at 12:07 PM, Jiri Pirko wrote: Thu, Jul 09, 2015 at 11:58:34AM CEST, jblu...@infradead.org wrote: The code in net/ipv6/addrconf.c:addrconf_notify() tests for IFF_SLAV

Re: [PATCH 4.18 74/88] drm/atomic: Use drm_drv_uses_atomic_modeset() for debugfs creation

2018-09-27 Thread Sean Paul
On Thu, Sep 27, 2018 at 03:53:26PM +0200, Holger Hoffstätte wrote: > On 09/27/18 15:26, Holger Hoffstätte wrote: > > On 09/27/18 14:37, Greg Kroah-Hartman wrote: > > > On Thu, Sep 27, 2018 at 12:43:33PM +0200, Holger Hoffstätte wrote: > > > > On 09/27/18 11:03, Greg Kroah-Hartman wrote: > > > > > 4

[PATCHv5 0/6] Add support for UHS-I on Exynos5422 odroid boards

2018-09-27 Thread Anand Moon
This is series v4 since my previous patches were incomplete with driver changes missing. v5 changes. drop the cd-gpios wp-gpio gpio pin setting, just add the pinctrl configration to support write protect. v4 changes. squash cd-gpios and wp-gpio changes into single patch. change the subject prefix

[PATCHv5 2/6] ARM: dts: exynos: fix regulator min values of LDO13 for Odroid XU3/XU4

2018-09-27 Thread Anand Moon
Looking at the schematic sd_2 min/max range from 1.8V/2.8V so fix the regulator min value to 1.8V. Without these changes sdcard will failed to detect on booting when UHS-I tuning is enabled. Signed-off-by: Anand Moon --- [0] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-October/3762

[PATCHv5 4/6] ARM: dts: exynos: Add pin configuration for SD write protect on Odroid XU3/XU4

2018-09-27 Thread Anand Moon
Add SD card write-protect pin configuration to be sure that it will be properly pulled down to indicate write access. Suggested-by: Krzysztof Kozlowski Signed-off-by: Anand Moon --- Changes since v4: 1. Remove cd-gpios and wp-gpios leaving only WP pin configuration (after Marek Szyprowski fee

[PATCHv5 3/6] ARM: dts: exynos: update maximum frequency for sdcard to 200MHz

2018-09-27 Thread Anand Moon
set the max-frequency to 200MHz for optimal performace. Signed-off-by: Anand Moon --- This patch is new to this series. microSD card. root@odroid:~# sudo cat /sys/kernel/debug/mmc1/ios clock: 2 Hz actual clock: 2 Hz vdd:16 (2.8 ~ 2.9 V) bus mode: 2 (p

[PATCHv5 5/6] ARM: dts: exynos: update maximum frequency for emmc to 200MHz

2018-09-27 Thread Anand Moon
Set the max-frequency to 200MHz for optimal performace of eMMC. Signed-off-by: Anand Moon --- eMMC root@odroid:~# sudo cat /sys/kernel/debug/mmc0/ios clock: 2 Hz actual clock: 2 Hz vdd:7 (1.65 - 1.95 V) bus mode: 2 (push-pull) chip select:0 (don't

[PATCHv5 1/6] ARM: dts: exynos: Added UHS-I bus speed support

2018-09-27 Thread Anand Moon
Added support for UHS-I bus speed tuning for SDR50, DDR50 SDR104. Signed-off-by: Anand Moon --- --- [0] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-October/376263.html Changes from above. Fix the subject and commit message. drop sd-uhs-sdr12 and sd-uhs-sdr25 as host driver is not

[PATCHv5 6/6] mmc: dw_mmc-exynos: Add tuning for sdr and ddr timing for USH-I mode

2018-09-27 Thread Anand Moon
Add tuning for sdr and ddr timing for USH-I mode sdr104/sdr50/ddr50 for host controller. Cc: Jaehoon Chung Cc: Marek Szyprowski Signed-off-by: Anand Moon --- No changes from previous patch --- drivers/mmc/host/dw_mmc-exynos.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/dri

RE: [PATCH v3 5/5] KVM/x86/lbr: lazy save the guest lbr stack

2018-09-27 Thread Wang, Wei W
On Thursday, September 20, 2018 8:08 PM, Gonglei (Arei) wrote: > > +static bool guest_access_lbr_msr(struct kvm_vcpu *vcpu, > > +struct msr_data *msr_info, > > +bool set) > > +{ > > + bool ret = false; > > + > > + if (!vcpu->kvm->arch.gues

Re: [PATCH 2/5] dma-direct: add an explicit dma_direct_get_required_mask

2018-09-27 Thread Robin Murphy
On 20/09/18 19:52, Christoph Hellwig wrote: This is somewhat modelled after the powerpc version, and differs from the legacy fallback in use fls64 instead of pointlessly splitting up the address into low and high dwords and in that it takes (__)phys_to_dma into account. Signed-off-by: Christoph

[tip:ras/core] x86/mce: Use BIT_ULL(x) for bit mask definitions

2018-09-27 Thread tip-bot for Qiuxu Zhuo
Commit-ID: 93ac57540e9129004b569beee54e50b3519b0b07 Gitweb: https://git.kernel.org/tip/93ac57540e9129004b569beee54e50b3519b0b07 Author: Qiuxu Zhuo AuthorDate: Mon, 24 Sep 2018 17:01:27 -0700 Committer: Borislav Petkov CommitDate: Thu, 27 Sep 2018 16:06:37 +0200 x86/mce: Use BIT_ULL(x)

<    1   2   3   4   5   6   7   8   9   10   >