[PATCH] KVM: VMX: add encapsulation kvm_vcpu_pi_need_handle

2017-09-21 Thread Peng Hao
use kvm_vcpu_pi_need_handle encapsulation simply coede Signed-off-by: Peng Hao --- arch/x86/kvm/vmx.c | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 4253ade..26b99f4 100644 --- a/arch/x86/kvm/vmx.c +

Re: [PATCH] staging:rtl8188eu:hal Fix wrong comparison to False

2017-09-21 Thread Dan Carpenter
On Thu, Sep 21, 2017 at 11:09:55AM +0530, Janani Sankara Babu wrote: > This patch solves the warning "Using comparison to false is error prone" Out of curiosity, which tool complains about that? regards, dan carpenter

[PATCH] tee: ACPI support for optee driver

2017-09-21 Thread Mayuresh Chitale
This patch modifies the optee driver to add support for parsing the conduit method from an ACPI node. Signed-off-by: Mayuresh Chitale --- drivers/tee/optee/core.c | 112 --- 1 file changed, 77 insertions(+), 35 deletions(-) diff --git a/drivers/tee/op

Re: [PATCH] staging:rtl8188eu Remove unnecessary {} braces in

2017-09-21 Thread Dan Carpenter
On Thu, Sep 21, 2017 at 12:18:04PM +0530, Janani Sankara Babu wrote: > --- a/drivers/staging/rtl8188eu/hal/phy.c > +++ b/drivers/staging/rtl8188eu/hal/phy.c > @@ -728,9 +728,9 @@ static void patha_fill_iqk(struct adapter *adapt, bool > iqkok, s32 result[][8], > u32 oldval_0, x, tx0_a, reg; >

Re: [PATCH -next v2] mtd: nand: Add support for Toshiba BENAND (Built-in ECC NAND)

2017-09-21 Thread Boris Brezillon
On Thu, 21 Sep 2017 14:32:02 +0900 KOBAYASHI Yoshitake wrote: > This patch enables support for Toshiba BENAND. > The current implementation does not support vondor specific command ^ vendor > TOSHIBA_NAND_CMD_ECC_STATUS. I would like to add the com

Re: [PATCH 1/2] uio: dt-bindings: document binding for uio-pdrv-genirq

2017-09-21 Thread Greg KH
On Thu, Sep 21, 2017 at 12:53:25PM +1200, Chris Packham wrote: > Signed-off-by: Chris Packham I can't take patches without any changelog text, sorry. thanks, greg k-h

Re: I/O hangs after resuming from suspend-to-ram

2017-09-21 Thread Martin Steigerwald
Ming Lei - 21.09.17, 06:20: > On Mon, Aug 28, 2017 at 03:10:35PM +0200, Martin Steigerwald wrote: > > Ming Lei - 28.08.17, 20:58: > > > On Sun, Aug 27, 2017 at 09:43:52AM +0200, Oleksandr Natalenko wrote: > > > > Hi. > > > > > > > > Here is disk setup for QEMU VM: > > > > > > > > === > > > > [roo

Re: usb/core: slab-out-of-bounds read in cdc_parse_cdc_header

2017-09-21 Thread Greg Kroah-Hartman
On Wed, Sep 20, 2017 at 04:45:08PM +0200, Andrey Konovalov wrote: > Hi! > > I've got the following crash while fuzzing the kernel with syzkaller. > > On commit ebb2c2437d8008d46796902ff390653822af6cc4 (Sep 18). > > It looks like cdc_parse_cdc_header() doesn't validate buflen before > accessing b

Re: I/O hangs after resuming from suspend-to-ram

2017-09-21 Thread Martin Steigerwald
Martin Steigerwald - 21.09.17, 09:30: > Ming Lei - 21.09.17, 06:20: > > On Mon, Aug 28, 2017 at 03:10:35PM +0200, Martin Steigerwald wrote: > > > Ming Lei - 28.08.17, 20:58: > > > > On Sun, Aug 27, 2017 at 09:43:52AM +0200, Oleksandr Natalenko wrote: > > > > > Hi. > > > > > > > > > > Here is disk

Re: [PATCH v2 18/31] scsi/aic7xxx: Clean up timer usage

2017-09-21 Thread Hannes Reinecke
On 09/21/2017 01:27 AM, Kees Cook wrote: > stat_timer only ever assigns the same function and data, so consolidate to > a setup_timer() call and drop everything else used to pass things around. > > reset_timer is unused; remove it. > > Cc: Hannes Reinecke > Cc: "James E.J. Bottomley" > Cc: "Mar

Re: [PATCH v3 03/10] kexec_file: factor out arch_kexec_kernel_*() from x86, powerpc

2017-09-21 Thread Dave Young
Hi AKASHI, On 09/15/17 at 07:59pm, AKASHI Takahiro wrote: > arch_kexec_kernel_*() and arch_kimage_file_post_load_cleanup can now be > duplicated among some architectures, so let's factor them out. > > Signed-off-by: AKASHI Takahiro > Cc: Dave Young > Cc: Vivek Goyal > Cc: Baoquan He > Cc: Mich

[PATCH] i2c: piix4: Disable completely the IMC during SMBUS_BLOCK_DATA

2017-09-21 Thread Ricardo Ribalda Delgado
SMBUS_BLOCK_DATA transactions might fail due to a race condition with the IMC, even when the IMC semaphore is used. This bug has been reported and confirmed by AMD, who suggested as a solution an IMC firmware upgrade (obtained via BIOS update) and disabling the IMC during SMBUS_BLOCK_DATA transact

Re: [RFC][PATCH v2 7/7] checkpatch: add pF/pf deprecation warning

2017-09-21 Thread Sergey Senozhatsky
On (09/20/17 11:24), Joe Perches wrote: > On Wed, 2017-09-20 at 19:53 +0200, Helge Deller wrote: [..] > > Is it worth to mention, that it's still needed in older kernels? > > Just in case some patch get's backported. good question. > I think probably not. > > There are relatively few references

Re: [PATCH] android: binder: fix type mismatch warning

2017-09-21 Thread Greg Kroah-Hartman
On Wed, Sep 20, 2017 at 01:37:45PM +, Arnd Bergmann wrote: > On Wed, Sep 20, 2017 at 12:24 PM, Martijn Coenen wrote: > > On Wed, Sep 20, 2017 at 11:58 AM, Arnd Bergmann wrote: > >> > >> - Since you say there are existing users of recent 32-bit Android > >> including Oreo, I also think that

Re: [PATCH] tee: ACPI support for optee driver

2017-09-21 Thread Hanjun Guo
On 2017/9/21 15:12, Mayuresh Chitale wrote: > This patch modifies the optee driver to add support for parsing > the conduit method from an ACPI node. Sorry I didn't involve this earlier, but I think this is a wrong approach, in ACPI 5.1+ spec, there is a bit in FADT table which indicates PSCI usin

Re: [PATCH 2/2] uio: add default compatible string to uio_pdrv_genirq

2017-09-21 Thread Andy Shevchenko
On Thu, Sep 21, 2017 at 3:53 AM, Chris Packham wrote: > -module_param_string(of_id, uio_of_genirq_match[0].compatible, 128, 0); > +module_param_string(of_id, uio_of_genirq_match[1].compatible, 128, ); 0 -> looks like bogus checkpatch warning. -- With Best Regards, Andy Shevchenko

Re: Possible gcc 4.8.5 bug about RELOC_HIDE marcro

2017-09-21 Thread Mikael Pettersson
Jia He writes: > I tried to build kernel 4.14-rc1 on a arm64 server in distro centos 7.3. > The gcc version is 4.8.5 I have no input on the specifics of the issue, but please note that gcc-4.8 is no longer supported or maintained by upstream. Even gcc-4.9 is EOL, and gcc-5 will be EOL:d inn a

[PATCH 0/3] EDAC: Handle return value of kasprintf

2017-09-21 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Arvind Yadav (3): [PATCH 1/3] EDAC: i7core: Handle return value of kasprintf [PATCH 2/3] EDAC: sb_edac: Handle return value of kasprintf [PATCH 3/3] EDAC: skx_edac: Handle return value of kasprintf drivers/edac/i7core_edac.c | 6

[PATCH 3/3] EDAC: skx_edac: Handle return value of kasprintf

2017-09-21 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/edac/skx_edac.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/edac/skx_edac.c b/drivers/edac/skx_edac.c index 16dea97..a7b25bb 100644 --- a/drivers/edac/skx_edac.c +++ b/driv

[PATCH 2/3] EDAC: sb_edac: Handle return value of kasprintf

2017-09-21 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/edac/sb_edac.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c index dc05916..2b9e831 100644 --- a/drivers/edac/sb_edac.c +++ b/drivers/ed

[PATCH 1/3] EDAC: i7core: Handle return value of kasprintf

2017-09-21 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/edac/i7core_edac.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c index c16c3b9..054f361 100644 --- a/drivers/edac/i7core_edac.

Re: [PATCH] tee: ACPI support for optee driver

2017-09-21 Thread Mayuresh Chitale
On Thu, Sep 21, 2017 at 1:15 PM, Hanjun Guo wrote: > On 2017/9/21 15:12, Mayuresh Chitale wrote: >> This patch modifies the optee driver to add support for parsing >> the conduit method from an ACPI node. > > Sorry I didn't involve this earlier, but I think this is a wrong > approach, in ACPI 5.1+

Re: [PATCH v6 6/7] KVM: arm64: allow get exception information from userspace

2017-09-21 Thread gengdongjiu
Hi James On 2017/9/14 21:00, James Morse wrote: > Hi gengdongjiu, > user-space can choose whether to use SEA or SEI, it doesn't have to choose the > same notification type that firmware used, which in turn doesn't have to be > the > same as that used by the CPU to notify firmware. > > The choic

Re: [PATCH 4/4] ALSA: emu10k1: Cocci spatch "alloc_cast"

2017-09-21 Thread Takashi Iwai
On Thu, 21 Sep 2017 08:33:46 +0200, Thomas Meyer wrote: > > Remove casting the values returned by memory allocation functions like > kmalloc, kzalloc, kmem_cache_alloc, kmem_cache_zalloc etc." > Found by coccinelle spatch "api/alloc/alloc_cast.cocci" > > Signed-off-by: Thomas Meyer No, this cas

Re: [PATCH v4 0/4] Add STM32 DMAMUX support

2017-09-21 Thread Pierre Yves MORDRET
Hello Gentle ping for driver review since DT Bindings have been acked by Rob Herring. Thanks Py On 09/07/2017 01:52 PM, Pierre-Yves MORDRET wrote: > This patchset adds support for the STM32 DMA multiplexer. > It allows to map any peripheral DMA request to any channel of the product > DMAs. > Thi

[PATCH] xen: support 52 bit physical addresses in pv guests

2017-09-21 Thread Juergen Gross
Physical addresses on processors supporting 5 level paging can be up to 52 bits wide. For a Xen pv guest running on such a machine those physical addresses have to be supported in order to be able to use any memory on the machine even if the guest itself does not support 5 level paging. So when re

Re: [PATCH v4 0/4] Add STM32 MDMA driver

2017-09-21 Thread Pierre Yves MORDRET
Hello, Gentle ping for driver review submitted on August 25th. Thanks Regards On 08/25/2017 04:31 PM, Pierre-Yves MORDRET wrote: > This patchset adds support for the STM32 MDMA controller. > The Master Direct memory access (MDMA) provides high-speed data transfer > between memory and memory or b

Re: usb/core: slab-out-of-bounds read in cdc_parse_cdc_header

2017-09-21 Thread Greg Kroah-Hartman
On Thu, Sep 21, 2017 at 09:31:54AM +0200, Greg Kroah-Hartman wrote: > On Wed, Sep 20, 2017 at 04:45:08PM +0200, Andrey Konovalov wrote: > > Hi! > > > > I've got the following crash while fuzzing the kernel with syzkaller. > > > > On commit ebb2c2437d8008d46796902ff390653822af6cc4 (Sep 18). > > >

Re: [PATCH v2 00/12] x86/crypto: Fix RBP usage in several crypto .S files

2017-09-21 Thread Herbert Xu
On Mon, Sep 18, 2017 at 02:41:59PM -0500, Josh Poimboeuf wrote: > v2: > - fix performance issues in sha256-avx2-asm.S and sha512-avx2-asm.S > (Eric) > > Many of the x86 crypto functions use RBP as a temporary register. This > breaks frame pointer convention, and breaks stack traces when unwindi

Re: [PATCH] crypto: talitos - fix hashing

2017-09-21 Thread Herbert Xu
On Wed, Sep 13, 2017 at 12:44:57PM +0200, Christophe Leroy wrote: > md5sum on some files gives wrong result > > Exemple: > > With the md5sum from libkcapi: > c15115c05bad51113f81bdaee735dd09 test > > With the original md5sum: > bbdf41d80ba7e8b2b7be3a0772be76cb test > > This patch fixes this i

Re: [PATCH] crypto: inside-secure - fix gcc-4.9 warnings

2017-09-21 Thread Herbert Xu
On Tue, Sep 12, 2017 at 12:12:16PM +0200, Arnd Bergmann wrote: > All older compiler versions up to gcc-4.9 produce these > harmless warnings: > > drivers/crypto/inside-secure/safexcel_cipher.c:389:9: warning: missing braces > around initializer [-Wmissing-braces] > drivers/crypto/inside-secure/sa

Re: [v4,0/3] Workaround for bus/slot reset on Cavium cn8xxx root ports

2017-09-21 Thread Jan Glauber
On Wed, Sep 20, 2017 at 12:09:12PM -0600, Alex Williamson wrote: > On Tue, 12 Sep 2017 02:40:49 -0700 > Vadim Lomovtsev wrote: > > > Hi all, > > > > Are there any updates on this ? > > Comments/objections/acks/nacks ? > > > > WBBR, > > Vadim > > > > On Fri, Sep 08, 2017 at 10:10:30AM +0200, Ja

Re: [PATCH] crypto: talitos - Don't provide setkey for non hmac hashing algs.

2017-09-21 Thread Herbert Xu
On Tue, Sep 12, 2017 at 11:03:39AM +0200, Christophe Leroy wrote: > Today, md5sum fails with error -ENOKEY because a setkey > function is set for non hmac hashing algs, see strace output below: > > mmap(NULL, 378880, PROT_READ, MAP_SHARED, 6, 0) = 0x77f5 > accept(3, 0, NULL)

Re: [PATCH] crypto: talitos - fix sha224

2017-09-21 Thread Herbert Xu
On Wed, Sep 13, 2017 at 12:44:51PM +0200, Christophe Leroy wrote: > Kernel crypto tests report the following error at startup > > [2.752626] alg: hash: Test 4 failed for sha224-talitos > [2.757907] : 30 e2 86 e2 e7 8a dd 0d d7 eb 9f d5 83 fe f1 b0 > 0010: 2d 5a 6c a5 f9 55 ea f

[git pull] drm fixes for v4.14-rc2

2017-09-21 Thread Dave Airlie
Hi Linus, I've ended up on unplanned + planned leave this week, but there were some fixes I decided to dequeue, some amdkfd bits missed the next pull but they are pretty trivial, so I included them. I'm not sure I'll see much else for rc2, lots of people are at XDC. Dave. The following changes

Re: [PATCH 2/2] x86/asm: Fix inline asm call constraints for clang

2017-09-21 Thread Dmitry Vyukov
On Wed, Sep 20, 2017 at 11:19 PM, Andy Lutomirski wrote: >>> On Wed, Sep 20, 2017 at 08:01:02PM +0200, Dmitry Vyukov wrote: On Wed, Sep 20, 2017 at 7:46 PM, H. Peter Anvin wrote: > On 09/20/17 10:38, Dmitry Vyukov wrote: > > I think we need just the frame itself and RSP pointing

Re: [media] s2255drv: Adjust 13 checks for null pointers

2017-09-21 Thread SF Markus Elfring
>> MIME-Version: 1.0 >> Content-Type: text/plain; charset=UTF-8 >> Content-Transfer-Encoding: 8bit >> > > You've been told several times that this stuff doesn't work. This functionality might not exactly work in the way that you expect so far. > Try applying this patch with `git am` and you'll

Re: [PATCH 02/16] hyper-v: trace vmbus_on_message()

2017-09-21 Thread Vitaly Kuznetsov
Steven Rostedt writes: > On Wed, 20 Sep 2017 19:21:53 +0200 > Vitaly Kuznetsov wrote: > >> diff --git a/drivers/hv/hv_trace.h b/drivers/hv/hv_trace.h >> index 9a29ef55477d..72911dfc9682 100644 >> --- a/drivers/hv/hv_trace.h >> +++ b/drivers/hv/hv_trace.h >> @@ -14,6 +14,14 @@ TRACE_EVENT(vmbus_o

[GIT PULL] mtd: Fixes for 4.14-rc2

2017-09-21 Thread Boris Brezillon
Hello Linus, Here is my fixes PR for 4.14-rc2. Regards, Boris The following changes since commit 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e: Linux 4.14-rc1 (2017-09-16 15:47:51 -0700) are available in the git repository at: git://git.infradead.org/linux-mtd.git tags/mtd/fixes-for-4.14-rc2

Re: [PATCH] KVM: VMX: add encapsulation kvm_vcpu_pi_need_handle

2017-09-21 Thread Longpeng (Mike)
Hi Peng, There are two bugs in current code and Paolo already fixed them, please see: https://www.spinics.net/lists/kvm/msg150896.html -- Regards, Longpeng(Mike) On 2017/9/21 23:14, Peng Hao wrote: > use kvm_vcpu_pi_need_handle encapsulation simply coede > > Signed-off-by: Peng Hao > --- >

Re: [PATCH 2/2] mm: oom: show unreclaimable slab info when kernel panic

2017-09-21 Thread David Rientjes
On Thu, 21 Sep 2017, Yang Shi wrote: > Kernel may panic when oom happens without killable process sometimes it > is caused by huge unreclaimable slabs used by kernel. > > Although kdump could help debug such problem, however, kdump is not > available on all architectures and it might be malfuncti

Re: [PATCH 9/9 v2] usb: usb251xb: Use GPIO descriptor consumer interface

2017-09-21 Thread Greg KH
On Sat, Sep 16, 2017 at 01:42:20PM +0300, Serge Semin wrote: > diff --git a/drivers/usb/misc/usb251xb.c b/drivers/usb/misc/usb251xb.c > index 71994b883..c2dd9742f 100644 > --- a/drivers/usb/misc/usb251xb.c > +++ b/drivers/usb/misc/usb251xb.c > @@ -3,6 +3,7 @@ > * Configuration via SMBus. > * >

[RFC] [Resend] Another Para-Virtualization page recycler -- Code details, Trap-less way to return free pages to kernel

2017-09-21 Thread XaviLi
We raised a topic about PPR (Per Page Recycler) and thank to Jan Kiszka for advises. We are here to break up patch codes and explain the code in detail. There are too many things to explain in one topic. We would like to do it part by part. Content of original mails and patches can be found belo

Re: [PATCH CFT 0/4] VT-d PI fixes

2017-09-21 Thread Longpeng (Mike)
Hi Paolo, We have backported the first three patches and have tested for about 20 days, it works fine. So could you consider to merge this series ? -- Regards, Longpeng(Mike) On 2017/7/11 17:16, Gonglei (Arei) wrote: > > >> -Original Message- >> From: kvm-ow...@vger.kernel.org [mail

[PATCH v4 5/7] soc: mediatek: pwrap: add MediaTek MT6380 as one slave of pwrap

2017-09-21 Thread sean.wang
From: Sean Wang Add MediaTek MT6380 regulator becoming one of PMIC wrapper slave and also add extra new regmap_config of 32-bit mode for MT6380 since old regmap_config of 16-bit mode can't be fit into the need. Signed-off-by: Chenglin Xu Signed-off-by: Chen Zhong Signed-off-by: Sean Wang ---

[PATCH v4 7/7] soc: mediatek: pwrap: fixup warnings from coding style

2017-09-21 Thread sean.wang
From: Sean Wang fixup those warnings such as lines over 80 words and parenthesis alignment which would be complained by checkpatch.pl. Signed-off-by: Sean Wang --- drivers/soc/mediatek/mtk-pmic-wrap.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/dri

[PATCH v4 0/7] Add PMIC support to MediaTek MT7622 SoC

2017-09-21 Thread sean.wang
From: Sean Wang Changes since v3 - rebase into Linux 4.14-rc1 - removed those patches already applied Changes since v2: - for patch 1/2, enhance the document as the suggestions from v2. - for patch 3, constify the table with struct regulator_ops, also fix that regulator doesn't have modesetting

[PATCH v4 2/7] soc: mediatek: pwrap: add pwrap_read32 for reading in 32-bit mode

2017-09-21 Thread sean.wang
From: Sean Wang Some regulators such as MediaTek MT6380 has to be read in 32-bit mode. So the patch adds pwrap_read32, rename old pwrap_read into pwrap_read16 and one function pointer is introduced for increasing flexibility allowing the determination which mode is used by the pwrap slave detecti

[PATCH v4 6/7] soc: mediatek: pwrap: add support for MT7622 SoC

2017-09-21 Thread sean.wang
From: Chenglin Xu Add the registers, callbacks and data structures required to make the PMIC wrapper work on MT7622. Signed-off-by: Chenglin Xu Signed-off-by: Chen Zhong Signed-off-by: Sean Wang --- drivers/soc/mediatek/mtk-pmic-wrap.c | 180 +++ 1 file change

Re: [v8 0/4] cgroup-aware OOM killer

2017-09-21 Thread David Rientjes
On Wed, 20 Sep 2017, Roman Gushchin wrote: > > It's actually much more complex because in our environment we'd need an > > "activity manager" with CAP_SYS_RESOURCE to control oom priorities of user > > subcontainers when today it need only be concerned with top-level memory > > cgroups. Users

[PATCH v4 4/7] soc: mediatek: pwrap: update pwrap_init without slave programming

2017-09-21 Thread sean.wang
From: Sean Wang pwrap initialization is highly associated with the base SoC, so update here for allowing pwrap_init without slave program which would be used to those PMICs without extra encryption on bus such as MT6380. Signed-off-by: Chenglin Xu Signed-off-by: Chen Zhong Signed-off-by: Sean

[PATCH v4 1/7] dt-bindings: arm: mediatek: add MT7622 string to the PMIC wrapper doc

2017-09-21 Thread sean.wang
From: Sean Wang Signed-off-by: Chenglin Xu Signed-off-by: Sean Wang Acked-by: Rob Herring --- Documentation/devicetree/bindings/soc/mediatek/pwrap.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/soc/mediatek/pwrap.txt b/Documentation/devicetree/bindi

[PATCH v4 3/7] soc: mediatek: pwrap: add pwrap_write32 for writing in 32-bit mode

2017-09-21 Thread sean.wang
From: Sean Wang Some regulators such as MediaTek MT6380 also has to be written in 32-bit mode. So the patch adds pwrap_write32, rename old pwrap_write into pwrap_write16 and one additional function pointer is introduced for increasing flexibility allowing the determination which mode is used by t

Re: [v8 0/4] cgroup-aware OOM killer

2017-09-21 Thread David Rientjes
On Mon, 18 Sep 2017, Roman Gushchin wrote: > > As said in other email. We can make priorities hierarchical (in the same > > sense as hard limit or others) so that children cannot override their > > parent. > > You mean they can set the knob to any value, but parent's value is enforced, > if it's

Re: Possible gcc 4.8.5 bug about RELOC_HIDE marcro

2017-09-21 Thread Jia He
Thanks Mikael It is a known gcc bug, please see https://gcc.gnu.org/ml/gcc-patches/2017-03/msg00790.html Cheers, Jusitn(Jia He) 在 9/21/2017 3:53 PM, Mikael Pettersson Wrote: Jia He writes: > I tried to build kernel 4.14-rc1 on a arm64 server in distro centos 7.3. > The gcc version is

Re: usb/media/cx231xx: null-ptr-deref in cx231xx_usb_probe

2017-09-21 Thread Johan Hovold
On Wed, Sep 20, 2017 at 08:54:08PM +0200, Andrey Konovalov wrote: > Hi! > > I've got the following report while fuzzing the kernel with syzkaller. > > On commit ebb2c2437d8008d46796902ff390653822af6cc4 (Sep 18). > > The null-ptr-deref happens on assoc_desc->bFirstInterface, where > assoc_desc =

Re: [PATCH v4] PCI: quirks: update Cavium ThunderX ACS quirk implementation

2017-09-21 Thread Vadim Lomovtsev
On Wed, Sep 20, 2017 at 10:31:51AM -0600, Alex Williamson wrote: > On Mon, 18 Sep 2017 01:48:01 -0700 > Vadim Lomovtsev wrote: > > > This commit makes Cavium PCI ACS quirk applicable only to Cavium > > ThunderX (CN81/83/88XX) PCIE Root Ports which has limited PCI capabilities > > in terms of no A

[PATCH] [media] cx231xx-cards: fix NULL-deref on missing association descriptor

2017-09-21 Thread Johan Hovold
Make sure to check that we actually have an Interface Association Descriptor before dereferencing it during probe to avoid dereferencing a NULL-pointer. Fixes: e0d3bafd0258 ("V4L/DVB (10954): Add cx231xx USB driver") Cc: stable # 2.6.30 Cc: Sri Deevi Reported-by: Andrey Konovalov Signed-off

Re: [PATCH 2/2] mfd: intel-lpss: switch to suspend_late()/resume_early()

2017-09-21 Thread Lee Jones
On Thu, 21 Sep 2017, Rafael J. Wysocki wrote: > On Thu, Sep 21, 2017 at 12:31 AM, Rajat Jain wrote: > > Ref: https://lkml.org/lkml/2017/9/19/649 > > > > The intel-lpss hosts the designware i2c controller device, which > > needs to be up and running until all its i2c child devices have > > suspend

[PATCH] soc: mediatek: place Kconfig for all SoC driver under menu

2017-09-21 Thread sean.wang
From: Sean Wang Add cleanup for placing all Kconfig for all MediaTek SoC drivers under the independent menu as other SoCs vendor usually did. Signed-off-by: Sean Wang --- drivers/soc/mediatek/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/drivers/soc/mediatek/Kconfig b/drivers

Re: shared/298 lockdep splat?

2017-09-21 Thread Byungchul Park
On Thu, Sep 21, 2017 at 08:22:56AM +1000, Dave Chinner wrote: > > == > > WARNING: possible circular locking dependency detected > > 4.14.0-rc1-fixes #1 Tainted: GW > > -- > > loop0/

Re: [PATCH 3/3] pinctrl: add mt2712 pinctrl driver

2017-09-21 Thread Zhiyong Tao
On Thu, 2017-08-03 at 10:00 +0800, Yingjoe Chen wrote: > On Wed, 2017-08-02 at 14:03 +0800, Zhiyong Tao wrote: > > On Tue, 2017-08-01 at 17:14 +0800, Yingjoe Chen wrote: > > > > > > Hi Zhiyong, > > > > > > > > > > > > On Mon, 2017-07-31 at 16:22 +0800, Zhiyong Tao wrote: > > > <...> > > > > 3)A

Re: [PATCH V5 1/4] soc: brcmstb: Add Product ID and Family ID helper functions

2017-09-21 Thread Kishon Vijay Abraham I
Hi, On Saturday 02 September 2017 07:45 AM, Florian Fainelli wrote: > > > On 08/25/2017 10:51 AM, Al Cooper wrote: >> Signed-off-by: Al Cooper > > Acked-by: Florian Fainelli I get the following checkpatch warning CHECK: Macro argument reuse 'reg' - possible side-effects? #110: FILE: include/

Re: [PATCH] rtc: interface: set the next alarm event appropriately

2017-09-21 Thread Alexandre Belloni
Hi, On 21/09/2017 at 14:45:17 +0800, YiPing Xu wrote: > > > On 2017/9/20 17:16, Alexandre Belloni wrote: > > Hi, > > > > On 20/09/2017 at 11:22:31 +0800, Xu Yiping wrote: > > > From: Xu YiPing > > > > > > After commit 2b2f5ff00f63 ("rtc: interface: ignore expired timers when > > > enqueuing

[PATCH 0/4] numa, iommu/smmu: IOMMU/SMMU driver optimization for NUMA systems

2017-09-21 Thread Ganapatrao Kulkarni
Adding numa aware memory allocations used for iommu dma allocation and memory allocated for SMMU stream tables, page walk tables and command queues. With this patch, iperf testing on ThunderX2, with 40G NIC card on NODE 1 PCI shown same performance(around 30% improvement) as NODE 0. Ganapatrao Ku

[PATCH 2/4] numa, iommu/io-pgtable-arm: Use NUMA aware memory allocation for smmu translation tables

2017-09-21 Thread Ganapatrao Kulkarni
function __arm_lpae_alloc_pages is used to allcoated memory for smmu translation tables. updating function to allocate memory/pages from the proximity domain of SMMU device. Signed-off-by: Ganapatrao Kulkarni --- drivers/iommu/io-pgtable-arm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletio

[PATCH 1/4] mm: move function alloc_pages_exact_nid out of __meminit

2017-09-21 Thread Ganapatrao Kulkarni
This function can be used on NUMA systems in place of alloc_pages_exact Adding code to export and to remove __meminit section tagging. Signed-off-by: Ganapatrao Kulkarni --- include/linux/gfp.h | 2 +- mm/page_alloc.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/in

[PATCH 4/4] iommu/dma, numa: Use NUMA aware memory allocations in __iommu_dma_alloc_pages

2017-09-21 Thread Ganapatrao Kulkarni
Change function __iommu_dma_alloc_pages to allocate memory/pages for dma from respective device numa node. Signed-off-by: Ganapatrao Kulkarni --- drivers/iommu/dma-iommu.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/iommu/dma-iommu.c b/drivers/i

[PATCH] soc: mediatek: turn MTK_PMIC_WRAP into visible symbols

2017-09-21 Thread sean.wang
From: Sean Wang MTK_PMIC_WRAP is the basic and required configuration for those various MediaTek PMICs, so turning MTK_PMIC_WRAP into visible symbols easily allows users tending to have the enablement for those PMICs. Signed-off-by: Sean Wang --- drivers/soc/mediatek/Kconfig | 2 +- 1 file cha

[PATCH 3/4] iommu/arm-smmu-v3: Use NUMA memory allocations for stream tables and comamnd queues

2017-09-21 Thread Ganapatrao Kulkarni
Introduce smmu_alloc_coherent and smmu_free_coherent functions to allocate/free dma coherent memory from NUMA node associated with SMMU. Replace all calls of dmam_alloc_coherent with smmu_alloc_coherent for SMMU stream tables and command queues. Signed-off-by: Ganapatrao Kulkarni --- drivers/iom

Re: [PATCH V8 00/14] mmc: Add Command Queue support

2017-09-21 Thread Ulf Hansson
On 13 September 2017 at 13:40, Adrian Hunter wrote: > Hi > > Here is V8 of the hardware command queue patches without the software > command queue patches, now using blk-mq and now with blk-mq support for > non-CQE I/O. > > After the unacceptable debacle of the last release cycle, I expect an > im

[PATCH BUGFIX/IMPROVEMENT 0/4] block, bfq: series of fixes of bugs affecting service guarantees

2017-09-21 Thread Paolo Valente
Hi, the first patch in this series fixes a bug that causes bfq to fail to guarantee a high responsiveness on some drives, if there is heavy random read+write I/O in the background. More precisely, such a failure allowed this bug to be found [1], but the bug may well cause other yet unreported anoma

[PATCH BUGFIX/IMPROVEMENT 3/4] block, bfq: let early-merged queues be weight-raised on split too

2017-09-21 Thread Paolo Valente
A just-created bfq_queue, say Q, may happen to be merged with another bfq_queue on the very first invocation of the function __bfq_insert_request. In such a case, even if Q would clearly deserve interactive weight raising (as it has just been created), the function bfq_add_request does not make it

[PATCH BUGFIX/IMPROVEMENT 4/4] block, bfq: decrease burst size when queues in burst exit

2017-09-21 Thread Paolo Valente
If many queues belonging to the same group happen to be created shortly after each other, then the concurrent processes associated with these queues have typically a common goal, and they get it done as soon as possible if not hampered by device idling. Examples are processes spawned by git grep,

[PATCH BUGFIX/IMPROVEMENT 1/4] block, bfq: fix wrong init of saved start time for weight raising

2017-09-21 Thread Paolo Valente
This commit fixes a bug that causes bfq to fail to guarantee a high responsiveness on some drives, if there is heavy random read+write I/O in the background. More precisely, such a failure allowed this bug to be found [1], but the bug may well cause other yet unreported anomalies. BFQ raises the w

[PATCH BUGFIX/IMPROVEMENT 2/4] block, bfq: check and switch back to interactive wr also on queue split

2017-09-21 Thread Paolo Valente
As already explained in the message of commit "block, bfq: fix wrong init of saved start time for weight raising", if a soft real-time weight-raising period happens to be nested in a larger interactive weight-raising period, then BFQ restores the interactive weight raising at the end of the soft re

Product Enquiry

2017-09-21 Thread Carol Merck
Dear Sir, We recently visited your website and we are interested in your models, We will like to make an order from your list of products. However, we would like to see your company's latest catalogs with the; minimum order quantity, delivery time/FOB, payment terms etc. Official order placemen

Re: [PATCH v2 5/9] mtd: nand: atmel: Report PMECC failures as errors

2017-09-21 Thread Romain Izard
2017-09-18 12:00 GMT+02:00 Boris Brezillon : > Hi Romain, > > On Fri, 15 Sep 2017 16:04:07 +0200 > Romain Izard wrote: > >> It is not normal for the PMECC to fail when trying to fix ECC errors. >> Report these cases as errors. > > I'm not sure we want to have ECC error messages at this level. ECC

Re: [media] s2255drv: Adjust 13 checks for null pointers

2017-09-21 Thread Dan Carpenter
On Thu, Sep 21, 2017 at 10:12:56AM +0200, SF Markus Elfring wrote: > >> MIME-Version: 1.0 > >> Content-Type: text/plain; charset=UTF-8 > >> Content-Transfer-Encoding: 8bit > >> > > > > You've been told several times that this stuff doesn't work. > > This functionality might not exactly work in th

[patch v9 0/4] JTAG driver introduction

2017-09-21 Thread Oleksandr Shamray
When a need raise up to use JTAG interface for system's devices programming or CPU debugging, usually the user layer application implements jtag protocol by bit-bang or using a proprietary connection to vendor hardware. This method can be slow and not generic. We propose to implement general JTA

[patch v9 1/4] drivers: jtag: Add JTAG core driver

2017-09-21 Thread Oleksandr Shamray
Initial patch for JTAG driver JTAG class driver provide infrastructure to support hardware/software JTAG platform drivers. It provide user layer API interface for flashing and debugging external devices which equipped with JTAG interface using standard transactions. Driver exposes set of IOCTL to

[patch v9 2/4] drivers: jtag: Add Aspeed SoC 24xx and 25xx families JTAG master driver

2017-09-21 Thread Oleksandr Shamray
Driver adds support of Aspeed 2500/2400 series SOC JTAG master controller. Driver implements the following jtag ops: - freq_get; - freq_set; - status_get; - idle; - xfer; It has been tested on Mellanox system with BMC equipped with Aspeed 2520 SoC for programming CPLD devices. Signed-off-by: Ole

[patch v9 3/4] Documentation: jtag: Add bindings for Aspeed SoC 24xx and 25xx families JTAG master driver

2017-09-21 Thread Oleksandr Shamray
It has been tested on Mellanox system with BMC equipped with Aspeed 2520 SoC for programming CPLD devices. Signed-off-by: Oleksandr Shamray Signed-off-by: Jiri Pirko Acked-by: Rob Herring --- v8->v9 v7->v8 Comments pointed by pointed by Joel Stanley - Change compatible string to ast2400 and as

[patch v9 4/4] Documentation: jtag: Add ABI documentation

2017-09-21 Thread Oleksandr Shamray
Added document that describe the ABI for JTAG class drivrer Signed-off-by: Oleksandr Shamray --- v8->v9 v7->v8 v6->v7 Comments pointed by Pavel Machek - Added jtag-cdev documentation to Documentation/ABI/testing folder --- Documentation/ABI/testing/jatg-cdev | 27 +++

Re: [PATCH] PM: Document rules on using pm_runtime_resume() in system suspend callbacks

2017-09-21 Thread Johannes Stezenbach
On Thu, Sep 21, 2017 at 02:39:30AM +0200, Rafael J. Wysocki wrote: > On Wed, Sep 20, 2017 at 6:27 PM, Johannes Stezenbach wrote: > > > > E.g. an audio codec could keep running > > while the i2c bus used to program its registers can be runtime suspended. > > If this is correct I think it would be

Re: [PATCH v3 10/31] befs: Define usercopy region in befs_inode_cache slab cache

2017-09-21 Thread Luis de Bethencourt
On 09/20/2017 09:45 PM, Kees Cook wrote: From: David Windsor befs symlink pathnames, stored in struct befs_inode_info.i_data.symlink and therefore contained in the befs_inode_cache slab cache, need to be copied to/from userspace. cache object allocation: fs/befs/linuxvfs.c: befs_

[PATCH] mm: fix RODATA_TEST failure "rodata_test: test data was not read only"

2017-09-21 Thread Christophe Leroy
On powerpc, RODATA_TEST fails with message the following messages: [6.199505] Freeing unused kernel memory: 528K [6.203935] rodata_test: test data was not read only This is because GCC allocates it to .data section: c0695034 g O .data 0004 rodata_test_data Since commit 056b9d8a

Re: [RFC][PATCH v2 6/7] symbol lookup: use new kernel and module dereference functions

2017-09-21 Thread Sergey Senozhatsky
On (09/21/17 01:29), Sergey Senozhatsky wrote: [..] > + %pS versatile_init+0x0/0x110 > + %ps versatile_init > %pF versatile_init+0x0/0x110 > %pf versatile_init > - %pS versatile_init+0x0/0x110 > %pSRversatile_init+0x9/0x110 > (with

Re: [RESEND RFC PATCH 0/7] sun8i H3 HDMI glue driver for DW HDMI

2017-09-21 Thread Jose Abreu
Hi Jernej, On 20-09-2017 21:01, Jernej Skrabec wrote: > [added media mailing list due to CEC question] > > This patch series adds a HDMI glue driver for Allwinner H3 SoC. For now, only > video and CEC functionality is supported. Audio needs more tweaks. > > Series is based on the H3 DE2 patch seri

[PATCH net-next 1/2] net: dsa: lan9303: Move tag setup to new lan9303_setup_tagging

2017-09-21 Thread Egil Hjelmeland
Prepare for next patch: Move tag setup from lan9303_separate_ports() to new function lan9303_setup_tagging() Signed-off-by: Egil Hjelmeland --- drivers/net/dsa/lan9303-core.c | 42 +- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/drivers/

[PATCH net-next 0/2] lan9303: Add basic offloading of unicast traffic

2017-09-21 Thread Egil Hjelmeland
This series add basic offloading of unicast traffic to the lan9303 DSA driver. Comments welcome! Egil Hjelmeland (2): net: dsa: lan9303: Move tag setup to new lan9303_setup_tagging net: dsa: lan9303: Add basic offloading of unicast traffic drivers/net/dsa/lan9303-core.c | 130 ++

Re: [PATCH V5 0/4] Add Broadcom STB USB phy driver

2017-09-21 Thread Kishon Vijay Abraham I
Hi Florian, On Thursday 21 September 2017 04:07 AM, Florian Fainelli wrote: > Hi Kishon, > > On 09/15/2017 04:49 PM, Florian Fainelli wrote: >> On September 4, 2017 11:11:47 PM PDT, Kishon Vijay Abraham I >> wrote: >>> Florian, >>> >>> On Saturday 02 September 2017 07:46 AM, Florian Fainelli wr

Re: MADV_FREE is broken

2017-09-21 Thread Artem Savkov
On Wed, Sep 20, 2017 at 03:37:33PM -0700, Shaohua Li wrote: > On Wed, Sep 20, 2017 at 11:01:47AM +0200, Artem Savkov wrote: > > Hi All, > > > > We recently started noticing madvise09[1] test from ltp failing strangely. > > The > > test does the following: maps 32 pages, sets MADV_FREE for the ran

Re: [RESEND PATCH v5 10/16] ARM: dts: zynq: Add generic compatible string for I2C EEPROM

2017-09-21 Thread Javier Martinez Canillas
Hello Michal, On Thu, Aug 24, 2017 at 3:44 PM, Michal Simek wrote: [snip] > > Ok. Applied to > https://github.com/Xilinx/linux-xlnx/commits/zynq/dt > > Will wait if something else pop up. > I see the patch applied to that repository but I don't see it in neither mainline nor linux-next. > Arn

[PATCH net-next 2/2] net: dsa: lan9303: Add basic offloading of unicast traffic

2017-09-21 Thread Egil Hjelmeland
When both user ports are joined to the same bridge, the normal HW MAC learning is enabled. This means that unicast traffic is forwarded in HW. If one of the user ports leave the bridge, the ports goes back to the initial separated operation. Port separation relies on disabled HW MAC learning. Hen

Re: [PATCH] bitfield.h: remove 32bit from FIELD_GET comment block

2017-09-21 Thread Jakub Kicinski
On Thu, 21 Sep 2017 00:39:35 +0900, Masahiro Yamada wrote: > I do not see anything that restricts this macro to 32 bit width. > > Signed-off-by: Masahiro Yamada Acked-by: Jakub Kicinski Looks like a leftover from v1 of the code, thanks for cleaning it up!

Re: [PATCH CFT 0/4] VT-d PI fixes

2017-09-21 Thread Paolo Bonzini
On 21/09/2017 10:23, Longpeng (Mike) wrote: > Hi Paolo, > > We have backported the first three patches and have tested for about 20 days, > it > works fine. > > So could you consider to merge this series ? Yes, thanks very much!! Paolo

Re: [PATCH V8 08/14] mmc: core: Add parameter use_blk_mq

2017-09-21 Thread Ulf Hansson
On 13 September 2017 at 13:40, Adrian Hunter wrote: > Until mmc has blk-mq support fully implemented and tested, add a > parameter use_blk_mq, default to false unless config option MMC_MQ_DEFAULT > is selected. > > Signed-off-by: Adrian Hunter > --- > drivers/mmc/Kconfig | 11 +++ >

Re: [PATCH v1 3/4] arm: dts: mt7623: add display related nodes

2017-09-21 Thread Ryder Lee
On Tue, 2017-09-19 at 23:26 +0800, CK Hu wrote: > Hi, Ryder: > > Some comment inline. > > On Tue, 2017-09-19 at 14:27 +0800, Ryder Lee wrote: > > This patch adds the device nodes for the display function block. > > Also, we add some missing pin macros in mt7623-pinfunc.h. > > > > Signed-off-by:

Re: [PATCH V8 00/14] mmc: Add Command Queue support

2017-09-21 Thread Adrian Hunter
On 21/09/17 12:01, Ulf Hansson wrote: > On 13 September 2017 at 13:40, Adrian Hunter wrote: >> Hi >> >> Here is V8 of the hardware command queue patches without the software >> command queue patches, now using blk-mq and now with blk-mq support for >> non-CQE I/O. >> >> After the unacceptable deba

  1   2   3   4   5   6   7   8   9   >