Re: [PATCH v2 2/3] Broadcom USB DRD Phy driver for Northstar2

2017-01-26 Thread Kishon Vijay Abraham I
Hi, On Wednesday 18 January 2017 05:50 PM, Raviteja Garimella wrote: > This is driver for USB DRD Phy used in Broadcom's Northstar2 > SoC. The phy can be configured to be in Device mode or Host > mode based on the type of cable connected to the port. The > driver registers to extcon framework to

Re: [PATCHv6 06/37] thp: handle write-protection faults for file THP

2017-01-26 Thread Matthew Wilcox
On Thu, Jan 26, 2017 at 02:57:48PM +0300, Kirill A. Shutemov wrote: > For filesystems that wants to be write-notified (has mkwrite), we will > encount write-protection faults for huge PMDs in shared mappings. > > The easiest way to handle them is to clear the PMD and let it refault as > wriable.

Re: [PATCHv6 06/37] thp: handle write-protection faults for file THP

2017-01-26 Thread Kirill A. Shutemov
On Thu, Jan 26, 2017 at 07:44:39AM -0800, Matthew Wilcox wrote: > On Thu, Jan 26, 2017 at 02:57:48PM +0300, Kirill A. Shutemov wrote: > > For filesystems that wants to be write-notified (has mkwrite), we will > > encount write-protection faults for huge PMDs in shared mappings. > > > > The easiest

[PATCH] zswap: don't param_set_charp while holding spinlock

2017-01-26 Thread Dan Streetman
Change the zpool/compressor param callback function to release the zswap_pools_lock spinlock before calling param_set_charp, since that function may sleep when it calls kmalloc with GFP_KERNEL. While this problem has existed for a while, I wasn't able to trigger it using a tight loop changing eith

Re: [Bug fix]mips 64bits checksum error -- csum_tcpudp_nofold

2017-01-26 Thread Alexander Duyck
On Wed, Jan 25, 2017 at 6:33 PM, Mark Zhang wrote: > Hi Alex, > > Thanks for your reply. > I tested your correction. The result is correct. > The C language will cause this function(csum_tcpudp_nofold) become > 176 MIPS instructions. The assemble code is 150 MIPS instruction. > If

[PATCH] clk: gxbb: fix CLKID_ETH defined twice

2017-01-26 Thread Jerome Brunet
CLKID_ETH is define in the dt-bindings but has not be commented out in the clock driver. Just do it now. Fixes: 738f66d3211d ("clk: gxbb: add AmLogic GXBB clk controller driver") Signed-off-by: Jerome Brunet --- Patch based on khilman/linux-amlogic.git master branch Tested on the gxxb p200.

[PATCH] lightnvm: free properly on target creation error

2017-01-26 Thread Javier González
Fix a memory leak when target creation fails. More specifically, free the entire device structure given to the target (tgt_dev). Signed-off-by: Javier González --- drivers/lightnvm/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/lightnvm/core.c b/drivers/lightn

Re: [PATCH 6/8] ARM: dts: dra7x-evm: Enable dual-role mode for USB1

2017-01-26 Thread Tony Lindgren
* Roger Quadros [170123 03:21]: > USB1 port is micro-AB type and can function as peripheral > as well as host. Enable dual-role mode for USB1. Good to see this happening :) Can you please send the dts changes separately after the driver changes have gotten merged? Meanwhile I'll untag this threa

Re: [GIT PULL] soc: samsung: Drivers for v4.11

2017-01-26 Thread Linus Walleij
On Fri, Jan 20, 2017 at 7:13 PM, Krzysztof Kozlowski wrote: > The following changes since commit 0c744ea4f77d72b3dcebb7a8f2684633ec79be88: > > Linux 4.10-rc2 (2017-01-01 14:31:53 -0800) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.gi

Re: [PATCH v5 1/4] usb: dbc: early driver for xhci debug capability

2017-01-26 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Thu, Jan 26, 2017 at 08:19:37AM +0100, Ingo Molnar wrote: > > > > * Lu Baolu wrote: > > > > > Fair enough. > > > > > > USB connection is stable enough, unless the user unplugs the > > > USB cable during debugging. > > > > What does the hardware do in this case?

[PATCH v3 00/12] crypto: atmel-authenc: add support to authenc(hmac(shaX),Y(aes)) modes

2017-01-26 Thread Cyrille Pitchen
Hi all, this series of patches has been based and tested on next-20170125 with CRYPTO_MANAGER_DISABLED_TESTS not set. The series adds support to the hmac(shaX) algorithms first, then combines both the Atmel SHA and AES hardware accelerators to implement authenc(hmac(shaX),Y(aes)) algorithms as us

Re: [Bug fix]mips 64bits checksum error -- csum_tcpudp_nofold

2017-01-26 Thread Ralf Baechle
On Thu, Jan 26, 2017 at 07:57:49AM -0800, Alexander Duyck wrote: > Date: Thu, 26 Jan 2017 07:57:49 -0800 > From: Alexander Duyck > To: Mark Zhang > Cc: Ralf Baechle , David Miller , > Alexander Duyck , linux-m...@linux-mips.org, > "linux-kernel@vger.kernel.org" > Subject: Re: [Bug fix]mips 6

[PATCH v3 07/12] crypto: atmel-sha: add atmel_sha_cpu_start()

2017-01-26 Thread Cyrille Pitchen
This patch adds a simple function to perform data transfer with PIO, hence handled by the CPU. Signed-off-by: Cyrille Pitchen --- drivers/crypto/atmel-sha.c | 90 ++ 1 file changed, 90 insertions(+) diff --git a/drivers/crypto/atmel-sha.c b/drivers/cr

[PATCH v3 06/12] crypto: atmel-sha: add SHA_MR_MODE_IDATAR0

2017-01-26 Thread Cyrille Pitchen
This patch defines an alias macro to SHA_MR_MODE_PDC, which is not suited for DMA usage. Signed-off-by: Cyrille Pitchen --- drivers/crypto/atmel-sha-regs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/crypto/atmel-sha-regs.h b/drivers/crypto/atmel-sha-regs.h index deb0b0b15096..8d

[PATCH v3 03/12] crypto: atmel-sha: make atmel_sha_done_task more generic

2017-01-26 Thread Cyrille Pitchen
This patch is a transitional patch. It updates atmel_sha_done_task() to make it more generic. Indeed, it adds a new .resume() member in the atmel_sha_dev structure. This hook is called from atmel_sha_done_task() to resume processing an asynchronous request. Signed-off-by: Cyrille Pitchen --- dri

[PATCH v3 05/12] crypto: atmel-sha: add atmel_sha_wait_for_data_ready()

2017-01-26 Thread Cyrille Pitchen
This patch simply defines a helper function to test the 'Data Ready' flag of the Status Register. It also gives a chance for the crypto request to be processed synchronously if this 'Data Ready' flag is already set when polling the Status Register. Indeed, running synchronously avoid the latency of

[PATCH v3 04/12] crypto: atmel-sha: redefine SHA_FLAGS_SHA* flags to match SHA_MR_ALGO_SHA*

2017-01-26 Thread Cyrille Pitchen
This patch modifies the SHA_FLAGS_SHA* flags: those algo flags are now organized as values of a single bitfield instead of individual bits. This allows to reduce the number of bits needed to encode all possible values. Also the new values match the SHA_MR_ALGO_SHA* values hence the algorithm bitfie

[PATCH v3 12/12] crypto: atmel-sha: add verbose debug facilities to print hw register names

2017-01-26 Thread Cyrille Pitchen
When VERBOSE_DEBUG is defined and SHA_FLAGS_DUMP_REG flag is set in dd->flags, this patch prints the register names and values when performing IO accesses. Signed-off-by: Cyrille Pitchen --- drivers/crypto/atmel-sha.c | 110 - 1 file changed, 108 inser

[PATCH v3 09/12] crypto: atmel-sha: add support to hmac(shaX)

2017-01-26 Thread Cyrille Pitchen
This patch adds support to the hmac(shaX) algorithms. Signed-off-by: Cyrille Pitchen --- drivers/crypto/atmel-sha-regs.h | 4 + drivers/crypto/atmel-sha.c | 598 +++- 2 files changed, 601 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/atmel-s

[PATCH v3 11/12] crypto: atmel-authenc: add support to authenc(hmac(shaX),Y(aes)) modes

2017-01-26 Thread Cyrille Pitchen
This patchs allows to combine the AES and SHA hardware accelerators on some Atmel SoCs. Doing so, AES blocks are only written to/read from the AES hardware. Those blocks are also transferred from the AES to the SHA accelerator internally, without additionnal accesses to the system busses. Hence, t

[PATCH v3 02/12] crypto: atmel-sha: update request queue management to make it more generic

2017-01-26 Thread Cyrille Pitchen
This patch is a transitional patch. It splits the atmel_sha_handle_queue() function. Now atmel_sha_handle_queue() only manages the request queue and calls a new .start() hook from the atmel_sha_ctx structure. This hook allows to implement different kind of requests still handled by a single queue.

[PATCH v3 01/12] crypto: atmel-sha: create function to get an Atmel SHA device

2017-01-26 Thread Cyrille Pitchen
This is a transitional patch: it creates the atmel_sha_find_dev() function, which will be used in further patches to share the source code responsible for finding a Atmel SHA device. Signed-off-by: Cyrille Pitchen --- drivers/crypto/atmel-sha.c | 15 +++ 1 file changed, 11 insertions

[PATCH v3 10/12] crypto: atmel-aes: fix atmel_aes_handle_queue()

2017-01-26 Thread Cyrille Pitchen
This patch fixes the value returned by atmel_aes_handle_queue(), which could have been wrong previously when the crypto request was started synchronously but became asynchronous during the ctx->start() call. Signed-off-by: Cyrille Pitchen --- drivers/crypto/atmel-aes.c | 7 +-- 1 file change

[PATCH v3 08/12] crypto: atmel-sha: add simple DMA transfers

2017-01-26 Thread Cyrille Pitchen
This patch adds a simple function to perform data transfer with the DMA controller. Signed-off-by: Cyrille Pitchen --- drivers/crypto/atmel-sha.c | 116 + 1 file changed, 116 insertions(+) diff --git a/drivers/crypto/atmel-sha.c b/drivers/crypto/atmel

RE: [PATCH] Fix 64 bit addressing support for GEM

2017-01-26 Thread Rafal Ozieblo
-Original Message- > From: Rafal Ozieblo [mailto:raf...@cadence.com] > Sent: 26 stycznia 2017 16:01 > Subject: [PATCH] Fix 64 bit addressing support for GEM > > This patch adds support for 32 bit GEM in > 64 bit system. It checks capability at runtime > and uses appropriate buffer descrip

Re: [PATCH v6 3/3] watchdog: zx2967: add watchdog controller driver for ZTE's zx2967 family

2017-01-26 Thread Mathieu Poirier
On Thu, Jan 26, 2017 at 09:32:56AM +0800, Baoyou Xie wrote: > On 26 January 2017 at 00:23, Mathieu Poirier > wrote: > > > On Wed, Jan 25, 2017 at 10:44:49AM +0800, Baoyou Xie wrote: > > > This patch adds watchdog controller driver for ZTE's zx2967 family. > > > > > > Signed-off-by: Baoyou Xie >

[PATCH 1/2] spi: When no dma_chan map buffers with spi_master's parent

2017-01-26 Thread Daniel Kurtz
Back before commit 1dccb598df54 ("arm64: simplify dma_get_ops"), for arm64, devices for which dma_ops were not explicitly set were automatically configured to use swiotlb_dma_ops, since this was hard-coded as the global "dma_ops" in arm64_dma_init(). Now that global "dma_ops" has been removed, all

[PATCH 2/2] spi: mediatek: Only do dma for 4-byte aligned buffers

2017-01-26 Thread Daniel Kurtz
Mediatek SPI DMA only works when tx and rx buffer addresses are 4-byte aligned. Unaligned DMA transactions appeared to work previously, since we the spi core was incorrectly using the spi_master device for dma, which had a 0 dma_mask, and therefore the swiotlb dma map operations were falling back

Re: [PATCH 5/7] x86/fpu: Change fpu->fpregs_active users to fpu->fpstate_active

2017-01-26 Thread Rik van Riel
On Thu, 2017-01-26 at 16:16 +0100, Ingo Molnar wrote: > * Rik van Riel wrote: > > > On Thu, 2017-01-26 at 12:26 +0100, Ingo Molnar wrote: > > > We want to simplify the FPU state machine by eliminating fpu- > > > > fpregs_active, > > > > > > and we can do that because the two state flags (::fpreg

Re: linux-next: Tree for Jan 19

2017-01-26 Thread Paul Gortmaker
[Re: linux-next: Tree for Jan 19] On 27/01/2017 (Fri 00:08) Stafford Horne wrote: > On Thu, Jan 26, 2017 at 02:45:15PM +0900, Stafford Horne wrote: > > On Wed, Jan 25, 2017 at 11:37:11AM -0500, Paul Gortmaker wrote: > > > [Re: linux-next: Tree for Jan 19] On 23/01/2017 (Mon 23:11) Stafford > > >

Re: [PATCH 5/7] x86/fpu: Change fpu->fpregs_active users to fpu->fpstate_active

2017-01-26 Thread Ingo Molnar
* Rik van Riel wrote: > Let me go totally reimplement this whole project in a different way... Note that I can still be convinced about complicating the FPU state machine as well if that ends up being the best approach for KVM - but it appears to me (from a very superficial look) that turnin

Re: [PATCH v2] sound: pci: cs46xx: constify snd_pcm_ops structures

2017-01-26 Thread Takashi Iwai
On Thu, 26 Jan 2017 16:41:05 +0100, Bhumika Goyal wrote: > > Declare snd_pcm_ops structures as const as they are either stored in the > ops field of a snd_pcm_substream structure or passed as an argument to > the function snd_pcm_set_ops. The function argument and the ops field > are of type const

[GIT PULL] ARM: at91: dt for 4.11 #2

2017-01-26 Thread Alexandre Belloni
Hi, Two non urgent fixes for 4.11 that could hopefully be backported as far back as possible to make kernelci (and our users) happy. The following changes since commit 21dd0ece34c2a07432a1cd0bbcb4815ce2b49173: ARM: dts: at91: add devicetree for the Axentia TSE-850 (2017-01-10 16:16:33 +0100)

Re: [PATCH] spi: mediatek: Manually set dma_ops for spi_master device

2017-01-26 Thread Daniel Kurtz
Hi Robin, On Thu, Jan 26, 2017 at 1:59 AM, Robin Murphy wrote: > > On 25/01/17 10:24, Daniel Kurtz wrote: > > Hi Robin, > > > > On Tue, Jan 24, 2017 at 11:14 PM, Robin Murphy wrote: > >> Hi Dan, > > > > [snip...] > > > >>> And I really don't know why we needed to set the coherent_dma_mask to 0 t

Re: [PATCH v4 3/7] x86: put msr-index.h in uapi

2017-01-26 Thread Nicolas Dichtel
Le 23/01/2017 à 18:26, Borislav Petkov a écrit : > On Mon, Jan 23, 2017 at 09:21:03AM -0800, Christoph Hellwig wrote: >> Or keep the exported version as-is and never changed it, and use >> a different copy for the kernel itself. > > Yeah, that's a good idea, thanks Christoph. > > I guess we'll ha

Re: [PATCH 2/7] x86/fpu: Simplify fpu->fpregs_active use

2017-01-26 Thread Andy Lutomirski
On Thu, Jan 26, 2017 at 3:26 AM, Ingo Molnar wrote: > The fpregs_active() inline function is pretty pointless - in almost > all the callsites it can be replaced with a direct fpu->fpregs_active > access. > > Do so and eliminate the extra layer of obfuscation. Reviewed-by: Andy Lutomirski

Re: [PATCH] nvme: make nvmf_register_transport require a create_ctrl callback

2017-01-26 Thread Sagi Grimberg
static void __exit nvme_fc_exit_module(void) diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c index 557f29b..80f3695 100644 --- a/drivers/nvme/host/rdma.c +++ b/drivers/nvme/host/rdma.c @@ -2063,8 +2063,7 @@ static int __init nvme_rdma_init_module(void) return re

Re: [PATCH 6/8] ARM: dts: dra7x-evm: Enable dual-role mode for USB1

2017-01-26 Thread Roger Quadros
On 26/01/17 17:56, Tony Lindgren wrote: > * Roger Quadros [170123 03:21]: >> USB1 port is micro-AB type and can function as peripheral >> as well as host. Enable dual-role mode for USB1. > > Good to see this happening :) Can you please send the dts changes > separately after the driver changes ha

Re: [RFC PATCH v2 0/2] block: fix backing_dev_info lifetime

2017-01-26 Thread Dan Williams
On Thu, Jan 26, 2017 at 5:17 AM, Christoph Hellwig wrote: > On Thu, Jan 26, 2017 at 11:06:53AM +0100, Jan Kara wrote: >> Yeah, so my patches (and I suspect your as well), have a problem when the >> backing_device_info stays around because blkdev inode still exists, device >> gets removed (e.g. USB

Re: [PATCH] spi: mediatek: Manually set dma_ops for spi_master device

2017-01-26 Thread Dmitry Torokhov
On Thu, Jan 26, 2017 at 8:29 AM, Daniel Kurtz wrote: > Hi Robin, > > On Thu, Jan 26, 2017 at 1:59 AM, Robin Murphy wrote: >> >> On 25/01/17 10:24, Daniel Kurtz wrote: >> > Hi Robin, >> > >> > On Tue, Jan 24, 2017 at 11:14 PM, Robin Murphy >> > wrote: >> >> Hi Dan, >> > >> > [snip...] >> > >> >>

[PATCH] mfd: Add support for several boards to Kontron PLD driver

2017-01-26 Thread Michael Brunner
This patch adds the DMI system ID of the Kontron COMe-bBD#, COMe-bKL6, COMe-cKL6, COMe-bSL6 and COMe-cAL6 boards to the Kontron PLD driver. The list of supported products in the module description is also updated. Signed-off-by: Michael Brunner Acked-by: Christian Rauch --- drivers/mfd/Kconfig

Re: [PATCH v2 1/2] Documentation: mtk-quadspi: update DT bindings

2017-01-26 Thread Cyrille Pitchen
Le 25/01/2017 à 04:38, Guochun Mao a écrit : > Add "mediatek,mt2701-nor" for nor flash node's compatible. > > Signed-off-by: Guochun Mao > --- > .../devicetree/bindings/mtd/mtk-quadspi.txt|8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/Documentation/de

Re: [PATCH v2 0/8] Pad retentions support for Exynos5433

2017-01-26 Thread Linus Walleij
On Thu, Jan 26, 2017 at 3:32 PM, Krzysztof Kozlowski wrote: > On Thu, Jan 26, 2017 at 11:50 AM, Linus Walleij > wrote: >> On Thu, Jan 26, 2017 at 9:33 AM, Marek Szyprowski >> wrote: >> >>> Patches in this patchset depends on each other. They are order in such a >>> way to make the changes bisect

Re: [PATCH 2/2] spi: mediatek: Only do dma for 4-byte aligned buffers

2017-01-26 Thread Dmitry Torokhov
Hi Daniel, On Thu, Jan 26, 2017 at 8:21 AM, Daniel Kurtz wrote: > Mediatek SPI DMA only works when tx and rx buffer addresses are 4-byte > aligned. > > Unaligned DMA transactions appeared to work previously, since we the > spi core was incorrectly using the spi_master device for dma, which > had

Re: [PATCH 1/2] tpm2: add session handle context saving and restoring to the space code

2017-01-26 Thread James Bottomley
On Thu, 2017-01-26 at 14:51 +0200, Jarkko Sakkinen wrote: [...] > > diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h > > index c48255e..b77fc60 100644 > > --- a/drivers/char/tpm/tpm.h > > +++ b/drivers/char/tpm/tpm.h > > @@ -159,6 +159,8 @@ enum tpm2_cc_attrs { > > struct tpm_space { >

Re: [PATCH 1/7] x86/fpu: Simplify the fpu->last_cpu logic and rename it to fpu->fpregs_cached

2017-01-26 Thread Andy Lutomirski
On Thu, Jan 26, 2017 at 6:54 AM, Rik van Riel wrote: > On Thu, 2017-01-26 at 12:26 +0100, Ingo Molnar wrote: > >> index c56fb57f2991..7eb2f3041fde 100644 >> --- a/kernel/sched/core.c >> +++ b/kernel/sched/core.c >> @@ -1253,6 +1253,8 @@ void set_task_cpu(struct task_struct *p, >> unsigned int new_

Re: 4.10-rc5+ WARNING: CPU: 3 PID: 1 at ./include/drm/drm_crtc.h:857 drm_kms_helper_poll_enable.part.4+0xa8/0xc0

2017-01-26 Thread Borislav Petkov
On Thu, Jan 26, 2017 at 05:26:00PM +0200, Jani Nikula wrote: > IIUC the alt fix should be for nouveau, and just the revert should be > enough for i915. I see. /me goes and reverts 3846fd9b86001bea171943cc3bb9222cb6da6b42, builds, boots... Yap, looks good, thanks. :-) -- Regards/Gruss, Bor

Re: [PATCH v6 05/14] ARM: davinci: da850: add con_id for the SATA clock

2017-01-26 Thread Grygorii Strashko
On 01/23/2017 11:00 AM, Bartosz Golaszewski wrote: > The ahci-da850 SATA driver is now capable of retrieving clocks by > con_id. Add the connection id for the sysclk2-derived SATA clock. > > Signed-off-by: Bartosz Golaszewski > --- > arch/arm/mach-davinci/da850.c | 2 +- > 1 file changed, 1 in

Re: [PATCH 5/7] x86/fpu: Change fpu->fpregs_active users to fpu->fpstate_active

2017-01-26 Thread Andy Lutomirski
On Thu, Jan 26, 2017 at 7:53 AM, Ingo Molnar wrote: > > * Rik van Riel wrote: > >> Let me go totally reimplement this whole project in a different way... > > Note that I can still be convinced about complicating the FPU state machine as > well if that ends up being the best approach for KVM - but

Re: [PATCH RT] Align rt_mutex inlining with upstream behavior

2017-01-26 Thread Sebastian Andrzej Siewior
On 2017-01-24 18:45:50 [-0800], Alex Goins wrote: > mutex_destroy is no-op inline when DEBUG_MUTEX is not enabled. The RT Linux > patches replace mutex_destroy() with rt_mutex_destroy(). This patch aligns > rt_mutex_destroy() with mutex_destroy() by using the same no-op inline > technique. > > Sig

Re: [PATCH 2/2 v2] perf tools: Enable bpf prologue for arm64

2017-01-26 Thread Will Deacon
On Thu, Jan 26, 2017 at 10:49:16AM +0900, Masami Hiramatsu wrote: > On Wed, 25 Jan 2017 13:32:01 + > Will Deacon wrote: > > > On Wed, Jan 25, 2017 at 07:23:11AM +, He Kuang wrote: > > > Since HAVE_KPROBES can be enabled in arm64, this patch introduces > > > regs_query_register_offset() to

Re: [PATCH] spi: mediatek: Manually set dma_ops for spi_master device

2017-01-26 Thread Daniel Kurtz
On Fri, Jan 27, 2017 at 12:35 AM, Dmitry Torokhov wrote: > On Thu, Jan 26, 2017 at 8:29 AM, Daniel Kurtz wrote: >> Hi Robin, >> >> On Thu, Jan 26, 2017 at 1:59 AM, Robin Murphy wrote: >>> >>> On 25/01/17 10:24, Daniel Kurtz wrote: >>> > Hi Robin, >>> > >>> > On Tue, Jan 24, 2017 at 11:14 PM, Rob

Re: [PATCH] sound: pci: cs46xx: constify snd_pcm_ops structures

2017-01-26 Thread kbuild test robot
-snd_pcm_ops-structures/20170126-230341 base: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next config: x86_64-rhel (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=x86_64

Re: [PATCH v3 2/4] dt-bindings: Add TI SCI PM Domains

2017-01-26 Thread Rob Herring
On Thu, Jan 26, 2017 at 9:09 AM, Dave Gerlach wrote: > On 01/25/2017 04:32 PM, Rob Herring wrote: >> >> On Wed, Jan 25, 2017 at 10:59 AM, Dave Gerlach wrote: [...] >>> because genpd_xlate_simple only checks that the phandle is zero so that >>> it >>> can fail if it is not, but there's no functi

Re: [PATCH 1/5] iommu: Generalize MSM_IOMMU config to ARCH_QCOM

2017-01-26 Thread Joerg Roedel
On Wed, Jan 18, 2017 at 03:27:22PM -0800, Stephen Boyd wrote: > We want to get rid of the ARCH_MSM* configs in the future, but > this still depends on them. Generalize to the ARCH_QCOM config, > which isn't going away. > > Cc: Joerg Roedel > Signed-off-by: Stephen Boyd > --- > drivers/iommu/Kco

[PATCH] x86/microcode: Do not access the initrd after it has been freed

2017-01-26 Thread Borislav Petkov
On Wed, Jan 25, 2017 at 08:23:36PM +0100, Borislav Petkov wrote: > On Wed, Jan 25, 2017 at 10:14:50PM +0300, Andrey Ryabinin wrote: > > > Does that help? > > > > Yup. > > Tested-by: Andrey Ryabinin > > Thanks, I'll run it through the test boxes here too. Yeah, the fix isn't that simple, I had t

[PATCH v2 2/3] x86: Remap GDT tables in the Fixmap section

2017-01-26 Thread Thomas Garnier
Each processor holds a GDT in its per-cpu structure. The sgdt instruction gives the base address of the current GDT. This address can be used to bypass KASLR memory randomization. With another bug, an attacker could target other per-cpu structures or deduce the base of the main memory section (PAGE

[PATCH v2 1/3] x86/mm: Adapt MODULES_END based on Fixmap section size

2017-01-26 Thread Thomas Garnier
This patch aligns MODULES_END to the beginning of the Fixmap section. It optimizes the space available for both sections. The address is pre-computed based on the number of pages required by the Fixmap section. It will allow GDT remapping in the Fixmap section. The current MODULES_END static addre

Re: [PATCH] spi: mediatek: Manually set dma_ops for spi_master device

2017-01-26 Thread Mark Brown
On Fri, Jan 27, 2017 at 12:52:15AM +0800, Daniel Kurtz wrote: > On Fri, Jan 27, 2017 at 12:35 AM, Dmitry Torokhov wrote: > > Nobody doing DMA likes unaligned buffers. In fact, memory used for DMA > > must be cacheline aligned, or you going to have trouble. What > > component supplies unaligned bu

[PATCH v2 3/3] x86: Make the GDT remapping read-only on 64 bit

2017-01-26 Thread Thomas Garnier
This patch makes the GDT remapped pages read-only to prevent corruption. This change is done only on 64 bit. The native_load_tr_desc function was adapted to correctly handle a read-only GDT. The LTR instruction always writes to the GDT TSS entry. This generates a page fault if the GDT is read-only

Re: [v3 PATCH 05/10] x86/insn-kernel: Add support to resolve 16-bit addressing encodings

2017-01-26 Thread Andy Lutomirski
On Wed, Jan 25, 2017 at 9:50 PM, Ricardo Neri wrote: > On Wed, 2017-01-25 at 13:58 -0800, Andy Lutomirski wrote: >> On Wed, Jan 25, 2017 at 12:23 PM, Ricardo Neri >> wrote: >> > Tasks running in virtual-8086 mode will use 16-bit addressing form >> > encodings as described in the Intel 64 and IA-3

Re: [PATCH v1 2/3] x86/xen/time: setup vcpu 0 time info page

2017-01-26 Thread Andy Lutomirski
On Wed, Jan 25, 2017 at 9:33 AM, Joao Martins wrote: > In order to support pvclock vdso on xen we need to setup the time > info page for vcpu 0 and register the page with Xen using the > VCPUOP_register_vcpu_time_memory_area hypercall. This hypercall > will also forcefully update the pvti which wi

Re: [PATCH v2] drm: Clean up the 1366x768 fixup codes

2017-01-26 Thread Daniel Vetter
On Thu, Jan 26, 2017 at 04:48:45PM +0200, Ville Syrjälä wrote: > On Mon, Jan 23, 2017 at 09:23:52AM +0100, Daniel Vetter wrote: > > On Fri, Jan 20, 2017 at 09:46:17PM +0200, Ville Syrjälä wrote: > > > On Tue, Jan 17, 2017 at 05:43:29PM +0100, Takashi Iwai wrote: > > > > This is just a cleanup, no f

[PATCH] Fixed some Coding Style Issues

2017-01-26 Thread Daksh Anand
From: daksh anand Signed-off-by: daksh anand --- drivers/staging/speakup/speakup_apollo.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/staging/speakup/speakup_apollo.c b/drivers/staging/speakup/speakup_apollo.c index 3cbc8a7..3f43

[PATCH] Fixed some Coding Style Issues

2017-01-26 Thread Daksh Anand
From: daksh anand Signed-off-by: daksh anand --- drivers/staging/speakup/speakup_apollo.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/staging/speakup/speakup_apollo.c b/drivers/staging/speakup/speakup_apollo.c index 3cbc8a7..3f43

[PATCH] Corrected some Coding Style Issues

2017-01-26 Thread Daksh Anand
From: daksh anand Signed-off-by: daksh anand --- drivers/staging/speakup/i18n.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/speakup/i18n.c b/drivers/staging/speakup/i18n.c index 8960079..b8f5bed 100644 --- a/drivers/staging/speakup/i18n

Re: [PATCH] Corrected some Coding Style Issues

2017-01-26 Thread Stephen Hemminger
On Thu, 26 Jan 2017 22:54:30 +0530 Daksh Anand wrote: > - while ((next_percent != NULL) && !found) { > + while ((next_percent) && !found) { Remove unnecessary parenthesis here.

Re: [PATCH v1 1/3] x86/pvclock: add setter for pvclock_pvti_cpu0_va

2017-01-26 Thread Andy Lutomirski
On Wed, Jan 25, 2017 at 9:33 AM, Joao Martins wrote: > Right now there is only a pvclock_pvti_cpu0_va() which is defined > on kvmclock since: > > commit dac16fba6fc5 > ("x86/vdso: Get pvclock data from the vvar VMA instead of the fixmap") > > The only user of this interface was kvm. This commit mo

Re: [PATCH v1 3/3] MAINTAINERS: xen, kvm: track pvclock-abi.h changes

2017-01-26 Thread Andy Lutomirski
On Wed, Jan 25, 2017 at 9:33 AM, Joao Martins wrote: > This file defines an ABI shared between guest and hypervisor(s) > (KVM, Xen) and as such there should be an correspondent entry in > MAINTAINERS file. Notice that there's already a text notice at the > top of the header file, hence this commit

Re: [PATCH] spi: mediatek: Manually set dma_ops for spi_master device

2017-01-26 Thread Dmitry Torokhov
On Thu, Jan 26, 2017 at 9:07 AM, Mark Brown wrote: > On Fri, Jan 27, 2017 at 12:52:15AM +0800, Daniel Kurtz wrote: >> On Fri, Jan 27, 2017 at 12:35 AM, Dmitry Torokhov wrote: > >> > Nobody doing DMA likes unaligned buffers. In fact, memory used for DMA >> > must be cacheline aligned, or you going

Re: [PATCH v2 0/4] USB support for Broadcom NSP SoC

2017-01-26 Thread Florian Fainelli
On 01/26/2017 07:34 AM, Kishon Vijay Abraham I wrote: > > > On Tuesday 17 January 2017 09:44 PM, Yendapally Reddy Dhananjaya Reddy wrote: >> This patch set contains the usb support for Broadcom NSP SoC. The >> usb3 phy is internal to the SoC and is accessed through mdio interface. >> The mdio int

Re: [PATCH] sysctl: fix proc_doulongvec_ms_jiffies_minmax()

2017-01-26 Thread Linus Torvalds
On Wed, Jan 25, 2017 at 6:20 PM, Eric Dumazet wrote: > > We perform the conversion between kernel jiffies and ms only > when exporting kernel value to user space. > > We need to do the opposite operation when value is written > by user. Applied. The interface is really confusing - I had to check

[PATCH] HID: usbhid: Quirk a AMI virtual mouse and keyboard with ALWAYS_POLL

2017-01-26 Thread Colin King
From: Colin Ian King Quirking the following AMI USB device with ALWAYS_POLL fixes an AMI virtual keyboard and mouse from not responding and timing out when it is attached to a ppc64el Power 8 system and when we have some rapid open/closes on the mouse device. usb 1-3: new high-speed USB device

Re: [PATCH v5 1/4] usb: dbc: early driver for xhci debug capability

2017-01-26 Thread Peter Zijlstra
On Thu, Jan 26, 2017 at 05:01:05PM +0100, Ingo Molnar wrote: > > > > > > I.e. if there's any polling component then it would be reasonable to add > > > an error > > > component: poll the status and if it goes 'disconnected' then disable > > > early-printk > > > altogether in this case and trig

[PATCH RESEND] phy: fix rockchip-inno-usb2 build errors

2017-01-26 Thread Randy Dunlap
From: Randy Dunlap Fix build errors in phy-rockchip-inno-usb2.c. The driver uses extcon interfaces so it should depend on EXTCON. Fixes these build errors: drivers/built-in.o: In function `rockchip_usb2phy_otg_sm_work': phy-rockchip-inno-usb2.c:(.text+0x2bcb): undefined reference to `extcon_ge

Re: [PATCH v6 05/14] ARM: davinci: da850: add con_id for the SATA clock

2017-01-26 Thread Sekhar Nori
On Thursday 26 January 2017 10:26 PM, Grygorii Strashko wrote: > > > On 01/23/2017 11:00 AM, Bartosz Golaszewski wrote: >> The ahci-da850 SATA driver is now capable of retrieving clocks by >> con_id. Add the connection id for the sysclk2-derived SATA clock. >> >> Signed-off-by: Bartosz Golaszewsk

Re: [PATCH] Corrected some Coding Style Issues

2017-01-26 Thread Greg Kroah-Hartman
On Thu, Jan 26, 2017 at 10:54:30PM +0530, Daksh Anand wrote: > From: daksh anand > > Signed-off-by: daksh anand > --- > drivers/staging/speakup/i18n.c | 18 +- > 1 file changed, 9 insertions(+), 9 deletions(-) Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have

[PATCH] Corrected some Coding Style Issues V2

2017-01-26 Thread Daksh Anand
From: daksh anand Signed-off-by: daksh anand --- drivers/staging/speakup/i18n.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/speakup/i18n.c b/drivers/staging/speakup/i18n.c index b8f5bed..56ce386 100644 --- a/drivers/staging/speakup/i18n.c +++ b/drivers/st

Re: [PATCH] nvme: make nvmf_register_transport require a create_ctrl callback

2017-01-26 Thread kbuild test robot
-nvmf_register_transport-require-a-create_ctrl-callback/20170126-234702 base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next config: ia64-allmodconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 6.2.0 reproduce: wget https://git.kernel.org/cgit/linux/kernel

Re: [btrfs/rt] lockdep false positive

2017-01-26 Thread Sebastian Andrzej Siewior
On 2017-01-25 19:29:49 [+0100], Mike Galbraith wrote: > On Wed, 2017-01-25 at 18:02 +0100, Sebastian Andrzej Siewior wrote: > > > > [ 341.960794]CPU0 > > > [ 341.960795] > > > [ 341.960795] lock(btrfs-tree-00); > > > [ 341.960795] lock(btrfs-tree-00); > > > [ 341.96079

Re: [PATCH] Corrected some Coding Style Issues V2

2017-01-26 Thread Greg Kroah-Hartman
On Thu, Jan 26, 2017 at 11:09:44PM +0530, Daksh Anand wrote: > From: daksh anand > > Signed-off-by: daksh anand > --- > drivers/staging/speakup/i18n.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Please stop now. Go read the links I sent you previously, all of these are not able to

Re: [PATCH 2/5] mm: vmscan: kick flushers when we encounter dirty pages on the LRU

2017-01-26 Thread Johannes Weiner
On Thu, Jan 26, 2017 at 09:57:45AM +, Mel Gorman wrote: > On Mon, Jan 23, 2017 at 01:16:38PM -0500, Johannes Weiner wrote: > > Memory pressure can put dirty pages at the end of the LRU without > > anybody running into dirty limits. Don't start writing individual > > pages from kswapd while the

[PATCH v4] i2c: core: helper function to detect slave mode

2017-01-26 Thread Luis Oliveira
This function has the purpose of mode detection by checking the device nodes for a reg matching with the I2C_OWN_SLAVE_ADDREESS flag. Currently only checks using OF functions (ACPI slave not supported yet). Signed-off-by: Luis Oliveira Suggested-by: Andy Shevchenko Reviewed-by: Andy Shevchenko

Re: [PATCH] Fix 64 bit addressing support for GEM

2017-01-26 Thread David Miller
From: Rafal Ozieblo Date: Thu, 26 Jan 2017 15:00:37 + > This patch adds support for 32 bit GEM in > 64 bit system. It checks capability at runtime > and uses appropriate buffer descriptor. > > Signed-off-by: Rafal Ozieblo Please use a proper subsystem prefix in the Subject lines of your pa

[PATCH] Corrected some Coding Style Issues

2017-01-26 Thread Daksh Anand
From: daksh anand Signed-off-by: daksh anand --- drivers/staging/speakup/i18n.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/speakup/i18n.c b/drivers/staging/speakup/i18n.c index 8960079..b8f5bed 100644 --- a/drivers/staging/speakup/i18n

Re: [PATCH] fixup! mm, fs: reduce fault, page_mkwrite, and pfn_mkwrite to take only vmf

2017-01-26 Thread Sebastian Reichel
Hi, On Wed, Jan 25, 2017 at 11:35:05PM +0100, Arnd Bergmann wrote: > I ran into a couple of build problems on ARM, these are the changes that > should be folded into the original patch that changed all the ->fault() > prototypes > > Fixes: mmtom ("mm, fs: reduce fault, page_mkwrite, and pfn_mkwri

Re: [PATCH v4 01/15] stacktrace/x86: add function for detecting reliable stack traces

2017-01-26 Thread Josh Poimboeuf
On Thu, Jan 26, 2017 at 02:56:03PM +0100, Petr Mladek wrote: > On Thu 2017-01-19 09:46:09, Josh Poimboeuf wrote: > > For live patching and possibly other use cases, a stack trace is only > > useful if it can be assured that it's completely reliable. Add a new > > save_stack_trace_tsk_reliable() fu

Re: [PATCH 5/7] x86/fpu: Change fpu->fpregs_active users to fpu->fpstate_active

2017-01-26 Thread Rik van Riel
On Thu, 2017-01-26 at 09:00 -0800, Andy Lutomirski wrote: > On Thu, Jan 26, 2017 at 7:53 AM, Ingo Molnar > wrote: > > > > * Rik van Riel wrote: > > > > > Let me go totally reimplement this whole project in a different > > > way... > > > > Note that I can still be convinced about complicating t

Re: [PATCH RFC] tpm: define a command filter

2017-01-26 Thread Jason Gunthorpe
On Thu, Jan 26, 2017 at 01:14:03PM +0200, Jarkko Sakkinen wrote: > On Wed, Jan 25, 2017 at 03:11:36PM -0700, Jason Gunthorpe wrote: > > On Wed, Jan 25, 2017 at 10:21:37PM +0200, Jarkko Sakkinen wrote: > > > > > There should be anyway someway to limit what commands can be sent but > > > I understan

Re: [PATCH] sysctl: fix proc_doulongvec_ms_jiffies_minmax()

2017-01-26 Thread Eric Dumazet
On Thu, 2017-01-26 at 09:25 -0800, Linus Torvalds wrote: > On Wed, Jan 25, 2017 at 6:20 PM, Eric Dumazet wrote: > > > > We perform the conversion between kernel jiffies and ms only > > when exporting kernel value to user space. > > > > We need to do the opposite operation when value is written > >

[PATCH] x86/xen: Fix APIC id mismatch warning on Intel

2017-01-26 Thread Mohit Gambhir
This patch fixes the following warning message seen when booting the kernel as Dom0 with Xen on Intel machines. [0.003000] [Firmware Bug]: CPU1: APIC id mismatch. Firmware: 0 APIC: 1] The code generating the warning in validate_apic_and_package_id() matches cpu_data(cpu).apicid (initialized in i

[PATCH] net: macb: Fix 64 bit addressing support for GEM

2017-01-26 Thread Rafal Ozieblo
This patch adds support for 32 bit GEM in 64 bit system. It checks capability at runtime and uses appropriate buffer descriptor. Signed-off-by: Rafal Ozieblo --- drivers/net/ethernet/cadence/macb.c | 182 +--- drivers/net/ethernet/cadence/macb.h | 20 +++- 2 file

Re: [PATCH v4 2/4] phy: qcom-qusb2: New driver for QUSB2 PHY on Qcom chips

2017-01-26 Thread Bjorn Andersson
On Tue 24 Jan 01:19 PST 2017, Kishon Vijay Abraham I wrote: > On Monday 23 January 2017 03:43 PM, Vivek Gautam wrote: > > On Wed, Jan 18, 2017 at 11:33 PM, Bjorn Andersson [..] > > > > Yes, that's correct. The QMP and QUSB2 phy init sequences are a bunch > > of static values for a particular IP ve

Re: [PATCH 1/3] perf, pt, coresight: Clean up address filter structure

2017-01-26 Thread Mathieu Poirier
Hi Alex, On Thu, Jan 26, 2017 at 11:40:55AM +0200, Alexander Shishkin wrote: > This is a cosmetic patch that deals with the address filter structure's > ambiguous fields 'filter' and 'range'. The former stands to mean that the > filter's *action* should be to filter the traces to its address rang

Re: [PATCH] xfs: fix returnvar.cocci warnings

2017-01-26 Thread Darrick J. Wong
On Thu, Jan 26, 2017 at 10:20:58AM +0100, Julia Lawall wrote: > Remove unneeded variable used to store return value. > > Generated by: scripts/coccinelle/misc/returnvar.cocci > > Signed-off-by: Fengguang Wu > --- > > Is it correct to be returning 0 in the level == 0 case? Yes, because level ==

Re: [PATCH 2/3] perf: Do error out on a kernel filter on an exclude_filter event

2017-01-26 Thread Mathieu Poirier
On Thu, Jan 26, 2017 at 11:40:56AM +0200, Alexander Shishkin wrote: > It is currently possible to configure a kernel address filter for a > event that excludes kernel from its traces (attr.exclude_kernel==1). > > While in reality this doesn't make sense, the SET_FILTER ioctl() should > return a er

Re: [PATCH] Fix 64 bit addressing support for GEM

2017-01-26 Thread Florian Fainelli
On 01/26/2017 07:00 AM, Rafal Ozieblo wrote: > This patch adds support for 32 bit GEM in > 64 bit system. It checks capability at runtime > and uses appropriate buffer descriptor. > > Signed-off-by: Rafal Ozieblo > --- > static void *macb_rx_buffer(struct macb *bp, unsigned int index) > @@ -560,

Re: [PATCH] tpm: fix RC value check in tpm2_seal_trusted

2017-01-26 Thread Jason Gunthorpe
On Thu, Jan 26, 2017 at 01:27:14PM +0200, Jarkko Sakkinen wrote: > "The error code handling is bogus as any error code that has the bits > set that TPM_RC_HASH could pass. Implemented tpm2_rc_value() helper to > parse the error value from FMT0 and FMT1 error codes to use to check the > error so th

Re: [PATCH 2/5] mm: vmscan: kick flushers when we encounter dirty pages on the LRU

2017-01-26 Thread Mel Gorman
On Thu, Jan 26, 2017 at 12:47:39PM -0500, Johannes Weiner wrote: > On Thu, Jan 26, 2017 at 09:57:45AM +, Mel Gorman wrote: > > On Mon, Jan 23, 2017 at 01:16:38PM -0500, Johannes Weiner wrote: > > > Memory pressure can put dirty pages at the end of the LRU without > > > anybody running into dirt

Re: [RFC PATCH v1 2/6] kernel-doc: replace kernel-doc perl parser with a pure python one (WIP)

2017-01-26 Thread Jonathan Corbet
On Wed, 25 Jan 2017 20:07:47 +0100 Markus Heiser wrote: > So, what I mean is, the new parser has to generate a complete different reST > output and thats why we can't compare the perl parser with python one on a > reST > basis ... and if reST is different, HTML is different :( > > So we do not

<    1   2   3   4   5   6   7   8   >