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

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

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

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

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

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

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

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

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

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

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

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

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

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

Re: [PATCH 05/18] asm-generic/tlb: Provide generic tlb_flush

2018-09-27 Thread Will Deacon
On Wed, Sep 26, 2018 at 08:07:27PM +0200, Peter Zijlstra wrote: > --- a/include/asm-generic/tlb.h > +++ b/include/asm-generic/tlb.h > @@ -305,7 +305,8 @@ static inline void __tlb_reset_range(str > #error Default tlb_flush() relies on default tlb_start_vma() and > tlb_end_vma() > #endif > > -#d

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

2018-09-27 Thread Vlastimil Babka
On 9/26/18 8:10 PM, Yang Shi wrote: Again, "downgrade" in the subject > brk might be used to shinrk memory mapping too other than munmap(). ^ shrink > So, it may hold write mmap_sem for long time when shrinking large > mapping, as what commit ("mm: mmap: zap pages with re

RE: [RFC][PATCH 3/3] locking/qspinlock: Optimize for x86

2018-09-27 Thread David Laight
From: Peter Zijlstra > Sent: 26 September 2018 12:01 > > On x86 we cannot do fetch_or with a single instruction and end up > using a cmpxchg loop, this reduces determinism. Replace the fetch_or > with a very tricky composite xchg8 + load. > > The basic idea is that we use xchg8 to test-and-set th

Re: [PATCH] mmc: add quirk for O2 Micro dev 0x8620 rev 0x01

2018-09-27 Thread Ulf Hansson
On 27 September 2018 at 03:40, Yu Zhao wrote: > On Thu, Sep 27, 2018 at 01:48:58AM +0200, Ulf Hansson wrote: >> On 23 September 2018 at 22:39, Yu Zhao wrote: >> > This device reports SDHCI_CLOCK_INT_STABLE even though it's not >> > ready to take SDHCI_CLOCK_CARD_EN. The symptom is that reading >>

Re: [f2fs-dev] [PATCH 2/2 v3] f2fs: avoid f2fs_bug_on if f2fs_get_meta_page_nofail got EIO

2018-09-27 Thread Chao Yu
On 2018-9-21 5:48, Jaegeuk Kim wrote: > This patch avoids BUG_ON when f2fs_get_meta_page_nofail got EIO during > xfstests/generic/475. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks,

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

2018-09-27 Thread 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: > - address Philipp's comments > - real range for usleep_range and > - poweroff ordering in kingdisplay_pa

Re: [PATCH] drm/panel: p079zca: unconditionally remove the panel on removal

2018-09-27 Thread Thierry Reding
On Thu, Aug 16, 2018 at 04:09:20PM +0200, Heiko Stuebner wrote: > There is no need to check innolux->base.dev when trying to remove > the panel, as that variable is always set directly before the panel > gets added and will still be available on panel_remove. > > Signed-off-by: Heiko Stuebner > -

Re: [RFC PATCH 7/9] leds: lm3633: Introduce the lm3633 driver

2018-09-27 Thread Dan Murphy
Pavel Thanks for the review On 09/26/2018 05:36 PM, Pavel Machek wrote: > Hi! > >> Introduce the LED LM3633 driver. This LED >> driver has 9 total LED outputs with runtime >> internal ramp configurations. >> >> Data sheet: >> http://www.ti.com/lit/ds/symlink/lm3633.pdf >> >> Signed-off-by: Dan

Re: [PATCH 4.14 31/64] spi: fix IDR collision on systems with both fixed and dynamic SPI bus numbers

2018-09-27 Thread Kirill Kapranov
Hi Greg, Sudip is absolutely right, the patch he mentioned, 04b2d03a7565 ("spi: Fix double IDR allocation with DT aliases"), MUST be added too with the mine. Sudip, thank you for reminding. -- Best Regards, Kirill Hi Greg, On Thu, Sep 27, 2018 at 10:03 AM, Greg Kroah-Hartman wrote: 4.14-st

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

2018-09-27 Thread Thierry Reding
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 > drm/panel: add panel CDTech S070WV95-CT16 to panel-simpl

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

2018-09-27 Thread Christian Borntraeger
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 configured for Guest2: + +

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

2018-09-27 Thread Cornelia Huck
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 configured for Guest2: > >> + > >> + echo 5 > assign_adapter > >> + echo 0x47 > assig

Re: [PATCH v4 1/2] powerpc/32: add stack protector support

2018-09-27 Thread Christophe LEROY
Le 27/09/2018 à 09:45, Segher Boessenkool a écrit : On Thu, Sep 27, 2018 at 08:20:00AM +0200, Christophe LEROY wrote: Le 26/09/2018 à 21:16, Segher Boessenkool a écrit : On Wed, Sep 26, 2018 at 11:40:38AM +, Christophe Leroy wrote: +static __always_inline void boot_init_stack_canary(voi

[PATCH 12/12] arm64: dts: allwinner: bananapi-m64: Bananapi S070WV20-CT16 DSI panel

2018-09-27 Thread Jagan Teki
This patch add support for Bananapi S070WV20-CT16 DSI panel to BPI-M64 board. DSI panel connected via board DSI port with, - DC1SW as AVDD supply - DCDC1 as DVDD supply - PD6 gpio for reset pin - PD5 gpio for backlight enable pin - PD7 gpio for backlight vdd supply Signed-off-by: Jagan Teki ---

[PATCH 09/12] dt-bindings: panel: Add Bananapi S070WV20-CT16 MIPI-DSI panel bindings

2018-09-27 Thread Jagan Teki
Bananapi S070WV20-CT16 is 800x480, 4-lane MIPI-DSI panel, the same panel PCB comes with parallel RBG which is supported via panel-simple with "bananapi,s070wv20-ct16" compatible. Signed-off-by: Jagan Teki --- .../panel/bananapi,s070wv20-ct16-dsi.txt | 21 +++ 1 file changed,

[PATCH 10/12] drm/panel: Add Bananapi S070WV20-CT16 MIPI-DSI panel driver

2018-09-27 Thread Jagan Teki
Bananapi S070WV20-CT16 is 800x480, 4-lane MIPI-DSI panel which can be used to connect via BPI-M64 board, so add a driver for it. The same panel PCB comes with parallel RBG which is supported via panel-simple driver with "bananapi,s070wv20-ct16" compatible. Signed-off-by: Jagan Teki --- drivers/

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

2018-09-27 Thread Vlastimil Babka
On 9/26/18 8:10 PM, Yang Shi wrote: > Subject: [v2 PATCH 1/2 -mm] mm: mremap: dwongrade mmap_sem to read when shrinking "downgrade" in the subject > 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,

[PATCH 11/12] arm64: dts: allwinner: a64: Add DSI pipeline

2018-09-27 Thread Jagan Teki
The A64 has a MIPI-DSI block which is similar to A31 without mod clock. So, add dsi node with A64 compatible, dphy node with A31 compatible and finally connect dsi to tcon0 to make proper DSI pipeline. Signed-off-by: Jagan Teki --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 44

[PATCH 08/12] drm/sun4i: sun6i_mipi_dsi: Refactor vertical video start delay

2018-09-27 Thread Jagan Teki
Accordingly to BPI-M64-bsp DE DSI code Video start delay can be computed by subtracting total vertical timing with front porch timing and with adding 1 delay line for TCON. This patch simply add the start_delay logic from BPI-M64-bsp, w/o this new computation, the DSI on A64 encounter vblank time

[PATCH 07/12] drm/sun4i: sun6i_mipi_dsi: Fix TCON DRQ set bits

2018-09-27 Thread Jagan Teki
TCON DRQ set bits for non-burst DSI mode can computed via horizontal front porch instead of front porch + sync timings. Since there no documentation for TCON_DRQ_REG(0x7c) register this change is taken as reference from BPI-M64-bsp. Signed-off-by: Jagan Teki --- drivers/gpu/drm/sun4i/sun6i_mipi

[PATCH 06/12] drm/sun4i: sun6i_mipi_dsi: Fix VBP size calculation

2018-09-27 Thread Jagan Teki
According to horizontal and vertical timings are defined per the diagram from include/drm/drm_modes.h Back porch = [hv]total - [hv]sync_end So, update SUN6I_DSI_BASIC_SIZE0_VBP calculation as mode->vtotal - mode->vsync_end Signed-off-by: Jagan Teki --- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c |

[PATCH 00/12] drm/sun4i: Allwinner A64 MIPI-DSI support

2018-09-27 Thread Jagan Teki
This series add MIPI-DSI support on Allwinner A64. The same A31 controller is reused and tweaked for A64 since the register space for both SoC's look same. The current clock rate (270MHz) with nkm (5,2,11) from PLL_MIPI is unable to work with A64 DSI block. I've tested with few changes to verify

[PATCH 01/12] clk: sunxi-ng: a64: Fix gate bit of DSI DPHY

2018-09-27 Thread Jagan Teki
DSI DPHY gate bit on MIPI DSI clock register is bit 15 not bit 30. Signed-off-by: Jagan Teki --- drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-a64.c b/drivers/clk/sunxi-ng/ccu-sun50i-a64.c index 5f80eb01

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

2018-09-27 Thread Jagan Teki
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 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun6i_mip

[PATCH 05/12] drm/sun4i: sun6i_mipi_dsi: Add DSI Generic short write 2 param transfer

2018-09-27 Thread Jagan Teki
Short transfer write support for DCS and Generic transfer types share similar way to process command sequence in DSI block so add generic write 2 param transfer type macro so-that the panels which are requesting similar transfer type may process properly. Also added error check for unsupporting tr

[PATCH 03/12] dt-bindings: sun6i-dsi: Add compatible for A64 MIPI DSI

2018-09-27 Thread Jagan Teki
The MIPI DSI controller on Allwinner A64 is similar to Allwinner A31 without support of DSI mod clock. Signed-off-by: Jagan Teki --- Documentation/devicetree/bindings/display/sunxi/sun6i-dsi.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/sunxi/s

[PATCH 02/12] drm/sun4i: sun6i_mipi_dsi: Add Allwinner A64 MIPI DSI support

2018-09-27 Thread Jagan Teki
The MIPI DSI controller on Allwinner A64 is similar to Allwinner A31 without support of DSI mod clock(CLK_DSI_SCLK) So, alter has_mod_clk bool via driver data for respective SoC's compatible. Signed-off-by: Jagan Teki --- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 47 -- d

Re: [PATCH v2 0/8] gpio-addr-flash: Support for device-tree and cleanup

2018-09-27 Thread Boris Brezillon
On Wed, 5 Sep 2018 16:36:35 +0200 Ricardo Ribalda Delgado wrote: > This patch series does the following: > > 1) Fix bug regarding ioremap size > 2) Cleanup code to use new APIs > 3) Simplify numerical operations > 4) Add support for device-tree devices > > Thanks! > > Changelog v2: > > From

Re: [PATCH 4.14 31/64] spi: fix IDR collision on systems with both fixed and dynamic SPI bus numbers

2018-09-27 Thread Sudip Mukherjee
Hi Greg, On Thu, Sep 27, 2018 at 10:03 AM, Greg Kroah-Hartman wrote: > 4.14-stable review patch. If anyone has any objections, please let me know. > > -- > > From: Kirill Kapranov > > commit 1a4327fbf4554d5b78d75b19a13d40d6de220159 upstream. > > On systems where some controllers

Re: [PATCH v2 5/8] mtd: maps: gpio-addr-flash: Replace array with an integer

2018-09-27 Thread Boris Brezillon
On Wed, 5 Sep 2018 16:36:40 +0200 Ricardo Ribalda Delgado wrote: > By replacing the array with an integer we can avoid completely > the bit comparison loop if the value has not changed (by far > the most common case). > > Signed-off-by: Ricardo Ribalda Delgado > --- > drivers/mtd/maps/gpio-ad

[PATCH v3 6/7] ARM: dts: stm32: add joystick support on stm32746g-eval

2018-09-27 Thread Amelie Delaunay
The joystick (B3) on stm32746g-eval uses gpios on STMFX gpio expander. These gpios need a pin configuration (push-pull and bias-pull-up), described under stmfx_pinctrl node. Signed-off-by: Amelie Delaunay Acked-by: Linus Walleij --- arch/arm/boot/dts/stm32746g-eval.dts | 43

[PATCH v3 0/7] Introduce STMFX I2C Multi-Function eXpander

2018-09-27 Thread Amelie Delaunay
This series adds support for STMicroelectronics Multi-Function eXpander (STMFX), used on some STM32 discovery and evaluation boards. STMFX is an STM32L152 slave controller whose firmware embeds the following features: - I/O expander (16 GPIOs + 8 extra if the other features are not enabled), - res

[PATCH v3 4/7] pinctrl: Add STMFX GPIO expander Pinctrl/GPIO driver

2018-09-27 Thread Amelie Delaunay
This patch adds pinctrl/GPIO driver for STMicroelectronics Multi-Function eXpander (STMFX) GPIO expander. STMFX is an I2C slave controller, offering up to 24 GPIOs. The driver relies on generic pin config interface to configure the GPIOs. Signed-off-by: Amelie Delaunay Reviewed-by: Linus Walleij

[PATCH v3 7/7] ARM: dts: stm32: add orange and blue leds on stm32746g-eval

2018-09-27 Thread Amelie Delaunay
Orange (LD2) and blue (LD4) leds on stm32746g-eval are connected on STMFX gpio expander, offset 17 and 19. Signed-off-by: Amelie Delaunay Acked-by: Linus Walleij --- arch/arm/boot/dts/stm32746g-eval.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/stm32746g-eval.d

[PATCH v3 3/7] dt-bindings: pinctrl: document the STMFX pinctrl bindings

2018-09-27 Thread Amelie Delaunay
This patch adds documentation of device tree bindings for the STMicroelectronics Multi-Function eXpander (STMFX) GPIO expander. Signed-off-by: Amelie Delaunay Reviewed-by: Linus Walleij Reviewed-by: Rob Herring --- .../devicetree/bindings/pinctrl/pinctrl-stmfx.txt | 116 +

[PATCH v3 1/7] dt-bindings: mfd: Add ST Multi-Function eXpander (STMFX) core bindings

2018-09-27 Thread Amelie Delaunay
This patch adds documentation of device tree bindings for the STMicroelectronics Multi-Function eXpander (STMFX) MFD core. Signed-off-by: Amelie Delaunay Reviewed-by: Linus Walleij --- Documentation/devicetree/bindings/mfd/stmfx.txt | 28 + 1 file changed, 28 insertions(

[PATCH v3 2/7] mfd: Add ST Multi-Function eXpander (STMFX) core driver

2018-09-27 Thread Amelie Delaunay
STMicroelectronics Multi-Function eXpander (STMFX) is a slave controller using I2C for communication with the main MCU. Main features are: - 16 fast GPIOs individually configurable in input/output - 8 alternate GPIOs individually configurable in input/output when other STMFX functions are not used

[PATCH v3 5/7] ARM: dts: stm32: add STMFX support on stm32746g-eval

2018-09-27 Thread Amelie Delaunay
This patch adds support for STMicroelectronics Multi-Function eXpander (STMFX) on stm32746g-eval. It is connected on i2c1. Signed-off-by: Amelie Delaunay Acked-by: Linus Walleij --- arch/arm/boot/dts/stm32746g-eval.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/

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

2018-09-27 Thread Heikki Krogerus
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 bluetooth specific, so they do not > > belong here. The fact that some other framework already ma

Re: [PATCH v2 7/8] mtd: maps: gpio-addr-flash: Add support for device-tree devices

2018-09-27 Thread Boris Brezillon
On Wed, 5 Sep 2018 16:36:42 +0200 Ricardo Ribalda Delgado wrote: > +static int gpio_flash_probe_gpios(struct platform_device *pdev, > + struct async_state *state) > +{ > + struct physmap_flash_data *pdata; > + struct device_node *dn; > + struct resource

[PATCH v2 1/3] Documentation: gpio: Fix return type of gpiod_set_raw_array_value*()

2018-09-27 Thread Geert Uytterhoeven
The return type of gpiod_set_raw_array_value() and gpiod_set_raw_array_value_cansleep() was changed from void to int, but the doc update was forgotten. Fixes: 3027743f83f867d8 ("gpio: Remove VLA from gpiolib") Signed-off-by: Geert Uytterhoeven --- v2: - Rebase on top of gpio array rework. ---

<    4   5   6   7   8   9   10   11   12   13   >