Re: Re: [PATCH] arm:swiotlb:keep disabled in default configuration

2016-06-23 Thread Manjeet Pawar
> > On Jun 23, 2016 8:27 AM, "Manjeet Pawar" wrote: >> > >> > From: Rohit Thapliyal >> > >> > swiotlb implementation not required to be enabled in arm and >> > disabling it reduces uImage size by 16KB. >> > >> >> How so? There are no DMA operations on ARM? >Xen actively uses the swiotlb on ARM,

Re: [PATCH] mwifiex: Fixed endianness for event TLV type TLV_BTCOEX_WL_SCANTIME

2016-06-23 Thread Prasun Maiti
On Thu, Jun 16, 2016 at 9:49 AM, Prasun Maiti wrote: > The two members min_scan_time and max_scan_time of structure > "mwifiex_ie_types_btcoex_scan_time" are of two bytes each. The values > are assigned directtly from firmware without endian conversion handling. > So, wrong datas will get saved in

linux-next: Tree for Jun 24

2016-06-23 Thread Stephen Rothwell
Hi all, Changes since 20160623: The net-next tree gained a conflict against the net tree. The block tree gained a conflict against the btrfs-kdave tree. The crypto tree gained a build failure for which I applied a fix patch. The userns tree gained a conflict against Linus' tree. Non-

Re: [PATCH v5] leds: documentation: 'ide-disk' to 'disk-activity'

2016-06-23 Thread Jacek Anaszewski
Hi Stephan, On 06/23/2016 09:38 PM, Stephan Linz wrote: Cc: Joseph Jezak Cc: Jörg Sommer Cc: Mark Rutland Signed-off-by: Stephan Linz Acked-by: Rob Herring Signed-off-by: Jacek Anaszewski --- Changes in v5: - Keep documentation for the old 'ide-disk' device tree binding, but mark a

Re: [PATCH] pci: Add support for unbinding the generic PCI host controller

2016-06-23 Thread Will Deacon
On Fri, Jun 24, 2016 at 08:39:08AM +0200, Jan Kiszka wrote: > On 2016-06-24 08:12, Will Deacon wrote: > > On Thu, Jun 23, 2016 at 07:31:34PM +0200, Jan Kiszka wrote: > >> On 2016-06-22 08:06, Will Deacon wrote: > >>> - The probe path seems to have some stateful operations outside of PCI > >>>

Re: [PATCH] perf: symbols: dso__load(): remove check of file on uninitialized memory

2016-06-23 Thread Jiri Olsa
On Thu, Jun 23, 2016 at 04:20:21PM +0200, Marc Kleine-Budde wrote: > In commit "403567217d3f perf symbols: Do not read symbols/data from > device files" a check to uninitialzied memory was added. This leads to > the following valgrind output: > > ==24515== Syscall param stat(file_name) points to u

Re: [PATCH V3] clocksource/drivers/arc: Convert init function to return error

2016-06-23 Thread Daniel Lezcano
On 06/24/2016 06:06 AM, Vineet Gupta wrote: On Friday 17 June 2016 03:39 PM, Daniel Lezcano wrote: The init functions do not return any error. They behave as the following: - panic, thus leading to a kernel crash while another timer may work and make the system boot up correctly

Re: [PATCH] pci: Add support for unbinding the generic PCI host controller

2016-06-23 Thread Jan Kiszka
On 2016-06-24 08:12, Will Deacon wrote: > On Thu, Jun 23, 2016 at 07:31:34PM +0200, Jan Kiszka wrote: >> On 2016-06-22 08:06, Will Deacon wrote: >>> On Tue, Jun 21, 2016 at 08:07:50PM +0200, Jan Kiszka wrote: diff --git a/drivers/pci/host/pci-host-common.c b/drivers/pci/host/pci-host-com

Re: [PATCH 00/27] Move LRU page reclaim from zones to nodes v7

2016-06-23 Thread Balbir Singh
On 22/06/16 00:15, Mel Gorman wrote: > (sorry for resend, the previous attempt didn't go through fully for > some reason) > > The bulk of the updates are in response to review from Vlastimil Babka > and received a lot more testing than v6. > > Changelog since v6 > o Correct reclaim_idx when dir

Re: [RFC/PATCH] ftrace: Reduce size of function graph entries

2016-06-23 Thread Namhyung Kim
Hi Steve, On Thu, Jun 23, 2016 at 09:37:40AM -0400, Steven Rostedt wrote: > On Mon, 23 May 2016 00:26:15 +0900 > Namhyung Kim wrote: > > > Currently ftrace_graph_ent{,_entry} and ftrace_graph_ret{,_entry} struct > > can have padding bytes at the end due to alignment in 64-bit data type. > > As t

Re: Documenting ptrace access mode checking

2016-06-23 Thread Jann Horn
On Thu, Jun 23, 2016 at 09:42:09AM +0200, Michael Kerrisk (man-pages) wrote: > Hi Jann, > > Thanks for your further review. Follow-up of one point below. > > On 06/23/2016 12:44 AM, Jann Horn wrote: > >On Wed, Jun 22, 2016 at 09:21:29PM +0200, Michael Kerrisk (man-pages) wrote: > >>On 06/21/2016

RE: [PATCH 2/6] virtio-balloon: speed up inflate/deflate process

2016-06-23 Thread Li, Liang Z
Hi Michael, Thanks for your comments! > > 2<< 30 is 2G but that is not a useful comment. > pls explain what is the reason for this selection. > Will change in the next version. > > +struct balloon_bmap_hdr { > > + __virtio32 id; > > + __virtio32 page_shift; > > + __virtio64 start_pfn;

[PATCH] caif: Remove unneeded header file

2016-06-23 Thread Amitoj Kaur Chawla
Drop redundant include of moduleparam.h The Coccinelle semantic patch used to make this change is as follows: @ includesmodule @ @@ #include @ depends on includesmodule @ @@ - #include Signed-off-by: Amitoj Kaur Chawla --- net/caif/chnl_net.c | 1 - 1 file changed, 1 deletion(-) diff --gi

Re: [PATCH 10/10] mm: balance LRU lists based on relative thrashing

2016-06-23 Thread Minchan Kim
On Wed, Jun 22, 2016 at 05:56:52PM -0400, Johannes Weiner wrote: > On Mon, Jun 20, 2016 at 04:42:08PM +0900, Minchan Kim wrote: > > On Fri, Jun 17, 2016 at 01:01:29PM -0400, Johannes Weiner wrote: > > > On Fri, Jun 17, 2016 at 04:49:45PM +0900, Minchan Kim wrote: > > > > On Thu, Jun 16, 2016 at 11:

[PATCH] ASOC: wm8753: Remove unneeded header file

2016-06-23 Thread Amitoj Kaur Chawla
Drop redundant include of moduleparam.h The Coccinelle semantic patch used to make this change is as follows: @ includesmodule @ @@ #include @ depends on includesmodule @ @@ - #include Signed-off-by: Amitoj Kaur Chawla --- sound/soc/codecs/wm8753.c | 1 - 1 file changed, 1 deletion(-) dif

linux-next: build failure after merge of the crypto tree

2016-06-23 Thread Stephen Rothwell
Hi Herbert, After merging the crypto tree, today's linux-next build (powerpc allyesconfig) failed like this: net/built-in.o: In function `.ecdh_shared_secret': (.text+0x4ad8d0): multiple definition of `.ecdh_shared_secret' crypto/built-in.o:(.text+0x113f0): first defined here net/built-in.o:(.opd

[PATCH] w1: Remove unneeded header file

2016-06-23 Thread Amitoj Kaur Chawla
Drop redundant include of moduleparam.h The Coccinelle semantic patch used to make this change is as follows: @ includesmodule @ @@ #include @ depends on includesmodule @ @@ - #include Signed-off-by: Amitoj Kaur Chawla --- drivers/w1/w1.c | 1 - 1 file changed, 1 deletion(-) diff --git a/

Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-23 Thread Linus Torvalds
On Thu, Jun 23, 2016 at 12:17 PM, Linus Torvalds wrote: > > With the goal being that I'm hoping that we can then actually get rid > of this (at least on x86-64, even if we leave it in some other > architectures) in 4.8. The context here was that we could almost get rid of thread-info entirely, at

Re: [PATCH v5 2/5] ARM: davinci: da8xx: Add CFGCHIP syscon platform declaration.

2016-06-23 Thread Sekhar Nori
On Wednesday 22 June 2016 10:37 PM, David Lechner wrote: > On 05/25/2016 06:15 AM, Sekhar Nori wrote: >> On Tuesday 10 May 2016 10:14 PM, David Lechner wrote: >>> On 05/10/2016 06:26 AM, Sergei Shtylyov wrote: On 5/10/2016 2:46 AM, David Lechner wrote: [...] > +static struct platform_dev

Re: [PATCH] pci: Add support for unbinding the generic PCI host controller

2016-06-23 Thread Will Deacon
On Thu, Jun 23, 2016 at 07:31:34PM +0200, Jan Kiszka wrote: > On 2016-06-22 08:06, Will Deacon wrote: > > On Tue, Jun 21, 2016 at 08:07:50PM +0200, Jan Kiszka wrote: > >> diff --git a/drivers/pci/host/pci-host-common.c > >> b/drivers/pci/host/pci-host-common.c > >> index 8cba7ab..c0ff4b1 100644 >

Re: [PATCH v4 01/16] bluetooth: Switch SMP to crypto_cipher_encrypt_one()

2016-06-23 Thread Herbert Xu
On Thu, Jun 23, 2016 at 09:22:56PM -0700, Andy Lutomirski wrote: > SMP does ECB crypto on stack buffers. This is complicated and > fragile, and it will not work if the stack is virtually allocated. > > Switch to the crypto_cipher interface, which is simpler and safer. > > Cc: Marcel Holtmann >

Re: kernel-4.7 bug in Intel sound and/or ACPI

2016-06-23 Thread Sinan Kaya
On 6/23/2016 7:25 PM, Wim Osterholt wrote: > On Thu, Jun 23, 2016 at 11:45:47AM -0400, Sinan Kaya wrote: >>> >>> Sure, let me get a patch for you. >> >> Here it is > > http://webserver.djo.tudelft.nl/dmesg460+printpatch2 > Thanks, this was very helpful. I was able to fix the problem by using the

Re: [PATCH v8 0/6] crypto: algif - add akcipher

2016-06-23 Thread Stephan Mueller
Am Donnerstag, 23. Juni 2016, 15:55:26 schrieb Tadeusz Struk: Hi Tadeusz, > First four patches are a resend algif_akcipher from > Stephan Mueller, with minor changes after rebase on top of 4.7-rc1. The first four patches: Acked-by: Stephan Mueller Ciao Stephan

Re: [v11,3/3] Bluetooth: hci_uart: Support firmware download for Marvell

2016-06-23 Thread Jeffy Chen
On 2016-5-6 23:31, Amitkumar Karwar wrote: From: Ganapathi Bhat This patch implement firmware download feature for Marvell Bluetooth devices. If firmware is already downloaded, it will skip downloading. Signed-off-by: Ganapathi Bhat Signed-off-by: Amitkumar Karwar --- v2: Fixed compilation w

Re: [PATCH V3] ARM: dts: sun7i: Add dts file for Bananapi M1 Plus board

2016-06-23 Thread luoyi . ly
From: Luo Yi Add support for the Bananapi M1 Plus A20 development board from sinovoip.com.cn . This board is nearly a clone of the Lemaker's Bananapro, but differ with the wlan chipset connection and i2s pinout. And I also enable the integrated audio codec on default. Signed-off-by: Luo Yi ---

Re: [v11, 2/3] Bluetooth: hci_uart: check if hdev is present before using it

2016-06-23 Thread Jeffy Chen
On 2016-5-6 23:31, Amitkumar Karwar wrote: From: Ganapathi Bhat The hdev struct might not have initialized in protocol receive handler. This patch adds necessary checks. Signed-off-by: Ganapathi Bhat Signed-off-by: Amitkumar Karwar --- drivers/bluetooth/hci_ldisc.c | 6 -- 1 file chan

Re: [PATCH] net: ethernet: ti: cpdma: switch to use genalloc

2016-06-23 Thread Mugunthan V N
On Thursday 23 June 2016 06:26 PM, Ivan Khoronzhuk wrote: > > > On 23.06.16 15:36, Grygorii Strashko wrote: >> TI CPDMA currently uses a bitmap for tracking descriptors alloactions >> allocations, but The genalloc already handles the same and can be used >> as with special memory (SRAM) as with D

Crashes in -next due to 'mm, page_alloc: remove fair zone allocation policy'

2016-06-23 Thread Guenter Roeck
Hi, I see a lot of crashes with various architectures in next-20160623. I bisected mips and sh; both bisect log point to the same patch. Bisect log is attached. arm, ppc, and x86 images crash as well, but I did not confirm if the same patch is the culprit there. I tried to revert the patch, but

Re: [v11, 1/3] Bluetooth: hci_uart: add prepare callbacks to hci_uart_proto structure.

2016-06-23 Thread Jeffy Chen
On 2016-5-6 23:31, Amitkumar Karwar wrote: From: Ganapathi Bhat The new callback is used to prepare the device before HCI becomes ready. One can use this to download firmware if the download process doesn't use HCI commands. Also recv_for_prepare callback is introduced for receiving data from d

Re: [PATCH] net: ethernet: ti: cpdma: switch to use genalloc

2016-06-23 Thread Mugunthan V N
On Thursday 23 June 2016 06:06 PM, Grygorii Strashko wrote: > TI CPDMA currently uses a bitmap for tracking descriptors alloactions > allocations, but The genalloc already handles the same and can be used > as with special memory (SRAM) as with DMA cherent memory chank > (dma_alloc_coherent()). Hen

Re: [PATCH] clk: fixed-factor: add optional dt-binding clock-flags

2016-06-23 Thread kbuild test robot
Hi, [auto build test WARNING on robh/for-next] [also build test WARNING on v4.7-rc4 next-20160623] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jongsung-Kim/clk-fixed-factor-add-optional-dt

Re: [PATCH v5 2/2] [media] atmel-isc: DT binding for Image Sensor Controller driver

2016-06-23 Thread Wu, Songjun
Hi Rob, Thank you for your comments. On 6/20/2016 21:25, Rob Herring wrote: On Fri, Jun 17, 2016 at 04:57:14PM +0800, Songjun Wu wrote: DT binding documentation for ISC driver. Signed-off-by: Songjun Wu --- Changes in v5: - Add clock names. Changes in v4: - Remove the isc clock nodes. Cha

Re: [PATCH v3] Doc/memory-barriers: Add Korean translation

2016-06-23 Thread SeongJae Park
Hello, Byungchul, I guess the review is ongoing yet and maybe it requires more days. Can you let me know your estimated time for the review if it doesn't bother you? Thanks, SeongJae Park On Fri, Jun 17, 2016 at 3:24 PM, Minchan Kim wrote: > On Wed, Jun 15, 2016 at 03:47:34PM +0900, SeongJae

Re: linux-next: manual merge of the audit tree with the security tree

2016-06-23 Thread Heiko Carstens
On Thu, Jun 23, 2016 at 12:14:11PM -0400, Paul Moore wrote: > On Thu, Jun 23, 2016 at 2:01 AM, Heiko Carstens > wrote: > > On Thu, Jun 23, 2016 at 02:18:14PM +1000, Stephen Rothwell wrote: > >> Hi Paul, > >> > >> Today's linux-next merge of the audit tree got a conflict in: > >> > >> arch/s390/k

Re: [PATCH 2/6] virtio-balloon: speed up inflate/deflate process

2016-06-23 Thread Michael S. Tsirkin
On Mon, Jun 13, 2016 at 05:47:09PM +0800, Liang Li wrote: > The implementation of the current virtio-balloon is not very efficient, > Bellow is test result of time spends on inflating the balloon to 3GB of > a 4GB idle guest: > > a. allocating pages (6.5%, 103ms) > b. sending PFNs to host (68.3%,

RE: [PATCH] Maxim/driver: Add driver for maxim ds26522

2016-06-23 Thread Qiang Zhao
On Thu, 2016-06-23 at 10:59PM, David Miller wrote: > -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Thursday, June 23, 2016 10:59 PM > To: Qiang Zhao > Cc: o...@buserror.net; linux-kernel@vger.kernel.org; net...@vger.kernel.org; > Xiaobo Xie > Subject: Re: [P

[PATCH] libnvdimm, pfn, dax: fix initialization vs autodetect for mode + alignment

2016-06-23 Thread Dan Williams
The updated ndctl unit tests discovered that if a pfn configuration with a 4K alignment is read from the namespace, that alignment will be ignored in favor of the default 2M alignment. The result is that the configuration will fail initialization with a message like: dax6.1: bad offset: 0x220

Re: [v2,1/2] refactor code parsing size based on memory range

2016-06-23 Thread Michael Ellerman
On Wed, 2016-22-06 at 19:25:26 UTC, Hari Bathini wrote: > Currently, crashkernel parameter supports the below syntax to parse size > based on memory range: > > crashkernel=:[,:,...] > > While such parsing is implemented for crashkernel parameter, it applies to > other parameters with simila

[PATCH v2 5/5] dmaengine: dma: Use different channel names for each dma

2016-06-23 Thread Kedareswara rao Appana
Current driver assumes that child node channel name is either "xlnx,axi-vdma-mm2s-channel" or "xlnx,axi-vdma-s2mm-channel" which is confusing the users of AXI DMA and CDMA. This patch fixes this issue by using different channel names for the AXI DMA and AXI CDMA child nodes. Signed-off-by: Kedares

[PATCH v2 4/5] dmaengine: dma: Rename driver and config

2016-06-23 Thread Kedareswara rao Appana
In the existing vdma driver support for AXI DMA and CDMA got added so the driver is no longer VDMA specific. This patch renames the driver and DT binding doc to xilinx_dma and updates the Kconfig description for all the DMAS. Signed-off-by: Kedareswara rao Appana --- Changes for v2: ---> None.

[PATCH v2 0/5] dmaengine: vdma: AXI DMAS Enhancments

2016-06-23 Thread Kedareswara rao Appana
This patch series does the following thing. ---> Add support for AXI DMA Multi-channel DMA mode. ---> Delete AXI DMA binding doc. ---> Rename the driver and update config options. Kedareswara rao Appana (5): Documentation: DT: vdma: Update binding doc for multi-channel dma mode dmaengine:

[PATCH v2 1/5] Documentation: DT: vdma: Update binding doc for multi-channel dma mode

2016-06-23 Thread Kedareswara rao Appana
This patch updates the device-tree binding doc for AXI DMA multi channel dma mode. Acked-by: Rob Herring Signed-off-by: Kedareswara rao Appana --- Changes for v2: ---> Added Rob Acked-by. .../devicetree/bindings/dma/xilinx/xilinx_vdma.txt |4 1 files changed, 4 insertions(+), 0 deleti

[PATCH v2 2/5] dmaengine: vdma: Add support for mulit-channel dma mode

2016-06-23 Thread Kedareswara rao Appana
This patch adds support for AXI DMA multi-channel dma mode Multichannel mode enables DMA to connect to multiple masters and slaves on the streaming side. In Multichannel mode AXI DMA supports 2D transfers. Signed-off-by: Kedareswara rao Appana --- Changes for v2: ---> Removed mcdma_config as sug

[PATCH v2 3/5] Documentation: DT: dma: Delete binding doc for AXI DMA

2016-06-23 Thread Kedareswara rao Appana
The AXI DMA support is added to the existing AXI VDMA driver. Device tree binding information also updated in the VDMA binding doc. Acked-by: Rob Herring Signed-off-by: Kedareswara rao Appana --- --> Added Rob Acked-by. .../devicetree/bindings/dma/xilinx/xilinx_dma.txt | 65

Re: [PATCH] clk: fixed-factor: add optional dt-binding clock-flags

2016-06-23 Thread kbuild test robot
Hi, [auto build test ERROR on robh/for-next] [also build test ERROR on v4.7-rc4 next-20160623] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jongsung-Kim/clk-fixed-factor-add-optional-dt

RE: [PATCH] usb: ohci-at91: Suspend the ports while USB suspending

2016-06-23 Thread Yang, Wenyou
Hi Alan, Sorry for late answer. > -Original Message- > From: Alan Stern [mailto:st...@rowland.harvard.edu] > Sent: 2016年5月13日 2:11 > To: Yang, Wenyou > Cc: Greg Kroah-Hartman ; Ferre, Nicolas > ; linux-...@vger.kernel.org; linux- > ker...@vger.kernel.org; linux-arm-ker...@lists.infradead

linux-next: manual merge of the userns tree with Linus' tree

2016-06-23 Thread Stephen Rothwell
Hi Eric, Today's linux-next merge of the userns tree got a conflict in: fs/proc/root.c between commit: e54ad7f1ee26 ("proc: prevent stacking filesystems on top") from Linus' tree and commit: e94591d0d90c ("proc: Convert proc_mount to use mount_ns") from the userns tree. I fixed it up

Re: [PATCH 6/7] of_graph: add of_graph_get_top_port()

2016-06-23 Thread kbuild test robot
Hi, [auto build test WARNING on robh/for-next] [also build test WARNING on v4.7-rc4 next-20160623] [cannot apply to glikely/devicetree/next] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits

Re: [RESEND][PATCH 0/2] Add pl031 RTC support for Hi6220/HiKey

2016-06-23 Thread Rob Herring
On Thu, Jun 23, 2016 at 3:39 PM, John Stultz wrote: > This patchset enables the pl031 RTC on the Hi6220 SoC. > > I'd like to submit it for review and consideration to be merged. > (But I've not gotten much feedback on it. Do I have the right > people cc'ed?) Yes. One issue is the DT header causes

Re: mmc: dw_mmc: warning with CONFIG_DMA_API_DEBUG

2016-06-23 Thread Jaehoon Chung
On 06/24/2016 10:25 AM, Shawn Lin wrote: > Hi Jaehoon, > > On 2016/6/23 19:39, Jaehoon Chung wrote: >> Hi Shawn, >> >> On 06/21/2016 04:39 PM, Shawn Lin wrote: >>> 在 2016/6/21 13:32, Jaehoon Chung 写道: Hi guys, On 06/21/2016 11:31 AM, Shawn Lin wrote: > On 2016/6/21 10:24, Seung-

[PATCH v4 04/16] x86/cpa: In populate_pgd, don't set the pgd entry until it's populated

2016-06-23 Thread Andy Lutomirski
This avoids pointless races in which another CPU or task might see a partially populated global pgd entry. These races should normally be harmless, but, if another CPU propagates the entry via vmalloc_fault and then populate_pgd fails (due to memory allocation failure, for example), this prevents

[PATCH v4 03/16] x86/mm/hotplug: Don't remove PGD entries in remove_pagetable()

2016-06-23 Thread Andy Lutomirski
From: Ingo Molnar So when memory hotplug removes a piece of physical memory from pagetable mappings, it also frees the underlying PGD entry. This complicates PGD management, so don't do this. We can keep the PGD mapped and the PUD table all clear - it's only a single 4K page per 512 GB of memory

[PATCH v4 05/16] x86/mm: Remove kernel_unmap_pages_in_pgd() and efi_cleanup_page_tables()

2016-06-23 Thread Andy Lutomirski
kernel_unmap_pages_in_pgd() is dangerous: if a pgd entry in init_mm.pgd were to be cleared, callers would need to ensure that the pgd entry hadn't been propagated to any other pgd. Its only caller was efi_cleanup_page_tables(), and that, in turn, was unused, so just delete both functions. This le

[PATCH v4 02/16] rxrpc: Avoid using stack memory in SG lists in rxkad

2016-06-23 Thread Andy Lutomirski
From: Herbert Xu rxkad uses stack memory in SG lists which would not work if stacks were allocated from vmalloc memory. In fact, in most cases this isn't even necessary as the stack memory ends up getting copied over to kmalloc memory. This patch eliminates all the unnecessary stack memory uses

[PATCH v4 00/16] Virtually mapped stacks with guard pages (x86, core)

2016-06-23 Thread Andy Lutomirski
Since the dawn of time, a kernel stack overflow has been a real PITA to debug, has caused nondeterministic crashes some time after the actual overflow, and has generally been easy to exploit for root. With this series, arches can enable HAVE_ARCH_VMAP_STACK. Arches that enable it (just x86 for no

[PATCH v4 01/16] bluetooth: Switch SMP to crypto_cipher_encrypt_one()

2016-06-23 Thread Andy Lutomirski
SMP does ECB crypto on stack buffers. This is complicated and fragile, and it will not work if the stack is virtually allocated. Switch to the crypto_cipher interface, which is simpler and safer. Cc: Marcel Holtmann Cc: Gustavo Padovan Cc: Johan Hedberg Cc: "David S. Miller" Cc: linux-blueto

[PATCH v4 07/16] mm: Fix memcg stack accounting for sub-page stacks

2016-06-23 Thread Andy Lutomirski
We should account for stacks regardless of stack size, and we need to account in sub-page units if THREAD_SIZE < PAGE_SIZE. Change the units to kilobytes and Move it into account_kernel_stack(). Fixes: 12580e4b54ba8 ("mm: memcontrol: report kernel stack usage in cgroup2 memory.stat") Cc: Vladimi

[PATCH v4 10/16] x86/die: Don't try to recover from an OOPS on a non-default stack

2016-06-23 Thread Andy Lutomirski
It's not going to work, because the scheduler will explode if we try to schedule when running on an IST stack or similar. This will matter when we let kernel stack overflows (which are #DF) call die(). Signed-off-by: Andy Lutomirski --- arch/x86/kernel/dumpstack.c | 3 +++ 1 file changed, 3 ins

[PATCH v4 09/16] fork: Add generic vmalloced stack support

2016-06-23 Thread Andy Lutomirski
If CONFIG_VMAP_STACK is selected, kernel stacks are allocated with vmalloc_node. Signed-off-by: Andy Lutomirski --- arch/Kconfig| 29 + arch/ia64/include/asm/thread_info.h | 2 +- include/linux/sched.h | 15 +++ kernel/fork.c

[PATCH v4 14/16] x86/dumpstack/64: Handle faults when printing the "Stack:" part of an OOPS

2016-06-23 Thread Andy Lutomirski
If we overflow the stack into a guard page, we'll recursively fault when trying to dump the contents of the guard page. Use probe_kernel_address so we can recover if this happens. Signed-off-by: Andy Lutomirski --- arch/x86/kernel/dumpstack_64.c | 12 ++-- 1 file changed, 10 insertions(

[PATCH v4 13/16] x86/dumpstack: Try harder to get a call trace on stack overflow

2016-06-23 Thread Andy Lutomirski
If we overflow the stack, print_context_stack will abort. Detect this case and rewind back into the valid part of the stack so that we can trace it. Signed-off-by: Andy Lutomirski --- arch/x86/kernel/dumpstack.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/x8

[PATCH v4 15/16] x86/mm/64: Enable vmapped stacks

2016-06-23 Thread Andy Lutomirski
This allows x86_64 kernels to enable vmapped stacks. There are a couple of interesting bits. First, x86 lazily faults in top-level paging entries for the vmalloc area. This won't work if we get a page fault while trying to access the stack: the CPU will promote it to a double-fault and we'll die

[PATCH v4 12/16] x86/dumpstack: When dumping stack bytes due to OOPS, start with regs->sp

2016-06-23 Thread Andy Lutomirski
The comment suggests that show_stack(NULL, NULL) should backtrace the current context, but the code doesn't match the comment. If regs are given, start the "Stack:" hexdump at regs->sp. Signed-off-by: Andy Lutomirski --- arch/x86/kernel/dumpstack_32.c | 4 +++- arch/x86/kernel/dumpstack_64.c |

[PATCH v4 16/16] x86/mm: Improve stack-overflow #PF handling

2016-06-23 Thread Andy Lutomirski
If we get a page fault indicating kernel stack overflow, invoke handle_stack_overflow(). To prevent us from overflowing the stack again while handling the overflow (because we are likely to have very little stack space left), call handle_stack_overflow() on the double-fault stack Signed-off-by: A

[PATCH v4 11/16] x86/dumpstack: When OOPSing, rewind the stack before do_exit

2016-06-23 Thread Andy Lutomirski
If we call do_exit with a clean stack, we greatly reduce the risk of recursive oopses due to stack overflow in do_exit, and we allow do_exit to work even if we OOPS from an IST stack. The latter gives us a much better chance of surviving long enough after we detect a stack overflow to write out ou

[PATCH v4 06/16] mm: Track NR_KERNEL_STACK in KiB instead of number of stacks

2016-06-23 Thread Andy Lutomirski
Currently, NR_KERNEL_STACK tracks the number of kernel stacks in a zone. This only makes sense if each kernel stack exists entirely in one zone, and allowing vmapped stacks could break this assumption. Since frv has THREAD_SIZE < PAGE_SIZE, we need to track kernel stack allocations in a unit that

[PATCH v4 08/16] dma-api: Teach the "DMA-from-stack" check about vmapped stacks

2016-06-23 Thread Andy Lutomirski
If we're using CONFIG_VMAP_STACK and we manage to point an sg entry at the stack, then either the sg page will be in highmem or sg_virt will return the direct-map alias. In neither case will the existing check_for_stack() implementation realize that it's a stack page. Fix it by explicitly checkin

Re: [PATCH v6 2/2] mtd: nand: sunxi: add reset line support

2016-06-23 Thread Boris Brezillon
On Fri, 24 Jun 2016 07:20:38 +0800 Icenowy Zheng wrote: > In my opinion, return directly PTR_ERR(nfc->reset) is OK here. > If devm_reset_control_get_optional() return -EPROBE_DEFER, the code here will > also return it. However, if we get other error, why should it return > -EPROBE_DEFER again?

Re: [PATCH] capabilities: add capability cgroup controller

2016-06-23 Thread Andy Lutomirski
On Thu, Jun 23, 2016 at 6:14 PM, Topi Miettinen wrote: > On 06/23/16 23:46, Andrew Morton wrote: >> On Thu, 23 Jun 2016 18:07:10 +0300 Topi Miettinen wrote: >> >>> There are many basic ways to control processes, including capabilities, >>> cgroups and resource limits. However, there are far fewer

[PATCH v2] clk: fixed-factor: add optional dt-binding clock-flags

2016-06-23 Thread Jongsung Kim
There is no way to set additional flags for a DT-initialized fixed- factor-clock, and it can be problematic i.e., when the clock rate needs to be changed. [1][2] This patch introduces an optional dt-binding named "clock-flags" to be used for passing any needed flags from dts. [1] http://www.spini

RE: [PATCH v4] vfio-pci: Allow to mmap sub-page MMIO BARs if the mmio page is exclusive

2016-06-23 Thread Tian, Kevin
> From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Friday, June 24, 2016 11:37 AM > > On Fri, 24 Jun 2016 10:52:58 +0800 > Yongji Xie wrote: > > On 2016/6/24 0:12, Alex Williamson wrote: > > > On Mon, 30 May 2016 21:06:37 +0800 > > > Yongji Xie wrote: > > >> +static void vfio_pc

Re: [PATCH V3] clocksource/drivers/arc: Convert init function to return error

2016-06-23 Thread Vineet Gupta
On Friday 17 June 2016 03:39 PM, Daniel Lezcano wrote: > The init functions do not return any error. They behave as the following: > > - panic, thus leading to a kernel crash while another timer may work and >make the system boot up correctly > > or > > - print an error and let the

[PATCH] clk: fixed-factor: add optional dt-binding clock-flags

2016-06-23 Thread Jongsung Kim
There is no way to set additional flags for a DT-initialized fixed- factor-clock, and it can be problematic i.e., when the clock rate needs to be changed. [1][2] This patch introduces an optional dt-binding named "clock-flags" to be used for passing any needed flags from dts. [1] http://www.spini

Re: [PATCH 06/14] ARM: dts: sun8i: Add cpu0 label to sun8i-h3.dtsi

2016-06-23 Thread Chen-Yu Tsai
On Fri, Jun 24, 2016 at 3:20 AM, wrote: > From: Ondrej Jirman > > Add label to the first cpu so that it can be referenced > from derived dts files. > > Signed-off-by: Ondrej Jirman > --- > arch/arm/boot/dts/sun8i-h3.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/

[PATCH V3] printk: Create pr_ functions

2016-06-23 Thread Joe Perches
Using functions instead of macros can reduce overall code size by eliminating unnecessary "KERN_SOH" prefixes from format strings. defconfig x86-64: $ size vmlinux* textdata bss dec hex filename 10193570 4331464 1105920 15630954 ee826a vmlinux.new 10192623 4335560 1105920 15

Re: [PATCH 07/14] regulator: SY8106A regulator driver

2016-06-23 Thread Chen-Yu Tsai
On Fri, Jun 24, 2016 at 3:20 AM, wrote: > From: Ondrej Jirman > > SY8106A is I2C attached single output voltage regulator > made by Silergy. > > Signed-off-by: Ondrej Jirman > --- > drivers/regulator/Kconfig | 8 +- > drivers/regulator/Makefile| 2 +- > drivers/regu

[PATCH] powercap/intel_rapl: Add support for Ivy Bridge server

2016-06-23 Thread Xiaolong Wang
It's confirmed that RAPL works as expected on Ivy Bridge servers. Tested against processor: Intel(R) Xeon(R) CPU E5-2697 v2 @2.70GHz Signed-off-by: Xiaolong Wang --- drivers/powercap/intel_rapl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/powercap/intel_rapl.c b/drivers/powercap

Re: [PATCH v4] vfio-pci: Allow to mmap sub-page MMIO BARs if the mmio page is exclusive

2016-06-23 Thread Alex Williamson
On Fri, 24 Jun 2016 10:52:58 +0800 Yongji Xie wrote: > On 2016/6/24 0:12, Alex Williamson wrote: > > On Mon, 30 May 2016 21:06:37 +0800 > > Yongji Xie wrote: > >> +static void vfio_pci_probe_mmaps(struct vfio_pci_device *vdev) > >> +{ > >> + struct resource *res; > >> + int bar; > >> + struct

Re: [PATCH] powerpc/mm: update arch_{add,remove}_memory() for radix

2016-06-23 Thread Balbir Singh
On 24/06/16 03:17, Aneesh Kumar K.V wrote: > Reza Arbab writes: > >> These functions are making direct calls to the hash table APIs, >> leading to a BUG() on systems using radix. >> >> Switch them to the vmemmap_{create,remove}_mapping() wrappers, and >> move to the __meminit section. > > > T

Re: [PATCH 03/14] thermal: Add support for sun8i THS on Allwinner H3

2016-06-23 Thread Chen-Yu Tsai
Hi, On Fri, Jun 24, 2016 at 3:20 AM, wrote: > From: Ondrej Jirman > The subject could read: thermal: sun8i_ths: Add support for the thermal sensor on Allwinner H3 > This patch adds support for the sun8i thermal sensor on > Allwinner H3 SoC. > > Signed-off-by: Ondřej Jirman > --- > driver

RE: [PATCH] ACPI: Execute the _PTS method when system reboot

2016-06-23 Thread Ocean HY1 He
Regards, Ocean He SW Development Dept. Beijing Design Center Enterprise Product Group Mobile: 18911778926 E-mail: he...@lenovo.com No.6 Chuang Ye Road, Haidian District, Beijing, China 100085 > -Original Message- > From: rjwyso...@gmail.com [mailto:rjwyso...@gmail.com] On Behalf Of > R

[git pull] drm fixes

2016-06-23 Thread Dave Airlie
Hi Linus, This is the drm fixes tree for 4.7-rc5. It's a bit larger than normal, due to fixes for production AMD Polaris GPUs. We only merged support for these in 4.7-rc1 so it would be good if we got all the fixes into final. The changes don't hit any other hardware. Other than the amdgpu Polar

Re: [PATCH] arm64:swiotlb:Enable only when Input size through command line

2016-06-23 Thread Jisheng Zhang
Dear Konrad, On Thu, 23 Jun 2016 12:06:10 -0400 Konrad Rzeszutek Wilk wrote: > On June 23, 2016 10:30:34 AM EDT, Catalin Marinas > wrote: > >On Thu, Jun 23, 2016 at 05:43:40PM +0530, Manjeet Pawar wrote: > >> From: Rohit Thapliyal > >> > >> swiotlb default size of 64M is too big as > >> def

[PATCH 0/2] cgroup: pids: extend pids.events

2016-06-23 Thread Aleksa Sarai
While reading the patchset by Kenny Yu, I realised that not having a field for the "recent" number of failed forks means that userspace would have trouble accurately deciding whether or not it should increase the limits. In addition, by having hits_since, we get to maintain the on-reset-we-log-fai

[PATCH 1/2] cgroup: pids: show number of failed forks since limit reset

2016-06-23 Thread Aleksa Sarai
This allows users to dynamically adjust their limits based on how many failed forks happened since they last reset their limits, otherwise they would have to track (in a racy way) how many limit failures there were since the last limit change manually. In addition, we log the first failure since th

[PATCH 2/2] docs: cgroup/pids: update documentation to include pids.events

2016-06-23 Thread Aleksa Sarai
So that users know what the interface and meaning of the keyed values are. In addition, mention that the only time that since=0 is when the limit was changed. Signed-off-by: Aleksa Sarai --- Documentation/cgroup-v1/pids.txt | 18 ++ 1 file changed, 18 insertions(+) diff --git a/

Re: [linux-sunxi] [PATCH 13/14] ARM: dts: sun8i: Add gpio-regulator used on Orange Pi One

2016-06-23 Thread Julian Calaby
Hi Ondrej, On Fri, Jun 24, 2016 at 5:21 AM, wrote: > From: Ondrej Jirman > > Xulong Orange Pi One uses GPIO based regulator that > switches between two voltages: 1.1V and 1.3V. The > regulator is controlled from the PL6 pin. > > Signed-off-by: Ondrej Jirman > --- > arch/arm/boot/dts/sun8i-h3-

Re: [linux-sunxi] [PATCH 11/14] ARM: sun8i: clk: Add clk-factor rate application method

2016-06-23 Thread Julian Calaby
Hi Ondrej, On Fri, Jun 24, 2016 at 5:21 AM, wrote: > From: Ondrej Jirman > > PLL1 on H3 requires special factors application algorithm, > when the rate is changed. This algorithm was extracted > from the arisc code that handles frequency scaling > in the BSP kernel. > > This commit adds optiona

Re: [PATCH v4] vfio-pci: Allow to mmap sub-page MMIO BARs if the mmio page is exclusive

2016-06-23 Thread Yongji Xie
Hi, Alex On 2016/6/24 0:12, Alex Williamson wrote: On Mon, 30 May 2016 21:06:37 +0800 Yongji Xie wrote: Current vfio-pci implementation disallows to mmap sub-page(size < PAGE_SIZE) MMIO BARs because these BARs' mmio page may be shared with other BARs. This will cause some performance issues

Re: [linux-sunxi] [PATCH 13/14] ARM: dts: sun8i: Add gpio-regulator used on Orange Pi One

2016-06-23 Thread Julian Calaby
Hi Ondrej, On Fri, Jun 24, 2016 at 5:21 AM, wrote: > From: Ondrej Jirman > > Xulong Orange Pi One uses GPIO based regulator that > switches between two voltages: 1.1V and 1.3V. The > regulator is controlled from the PL6 pin. > > Signed-off-by: Ondrej Jirman > --- > arch/arm/boot/dts/sun8i-h3-

Re: [PATCH 4.6 38/81] gpio: bail out silently on NULL descriptors

2016-06-23 Thread Greg Kroah-Hartman
On Thu, Jun 23, 2016 at 09:21:02AM +0200, Linus Walleij wrote: > On Thu, Jun 23, 2016 at 12:46 AM, Greg Kroah-Hartman > wrote: > > > 4.6-stable review patch. If anyone has any objections, please let me know. > > This should ideally be paired with > commit 79bb71bd1d93197ce227fa167b450b633f30a52

Re: [v3 PATCH 3/5] phy: Add USB Type-C PHY driver for rk3399

2016-06-23 Thread Chris Zhong
Hi Guenter On 06/24/2016 10:10 AM, Guenter Roeck wrote: Hi Chris, On Thu, Jun 23, 2016 at 5:34 PM, Chris Zhong wrote: Hi Guenter On 06/24/2016 05:47 AM, Guenter Roeck wrote: Hi Chris, On Thu, Jun 23, 2016 at 5:51 AM, Chris Zhong wrote: Add a PHY provider driver for the rk3399 SoC Type-c

[PATCH 3/3] ASoC: hdmi-codec: enable multi probe for same device

2016-06-23 Thread Kuninori Morimoto
From: Kuninori Morimoto hdmi-codec driver is common HDMI sound driver, but it doesn't care about multi sound ports. For example, hdmi-codec driver is supporting 1 I2S and 1 SPDIF ports, so, we can't use this driver if HDMI has 2 or more I2S ports. And we would like to use multi detection. For e

[PATCH 1/3] drm: bridge: add DesignWare HDMI I2S audio support

2016-06-23 Thread Kuninori Morimoto
From: Kuninori Morimoto Current dw-hdmi is supporting sound via AHB bus, but it has I2S audio feature too. This patch adds I2S audio support to dw-hdmi. This HDMI I2S is supported by using ALSA SoC common HDMI encoder driver. Signed-off-by: Kuninori Morimoto --- drivers/gpu/drm/bridge/Kconfig

[PATCH 2/3] ASoC: hdmi-codec: callback function will be called with private data

2016-06-23 Thread Kuninori Morimoto
From: Kuninori Morimoto Current hdmi-codec driver is assuming that it will be registered from HDMI driver. Because of this assumption, each callback function has struct device pointer which is parent device (= HDMI). Then, it can use dev_get_drvdata() to get private data. OTOH, on some SoC/HDMI

Re: [PATCH 3.14 21/29] netfilter: x_tables: validate targets of jumps

2016-06-23 Thread Greg Kroah-Hartman
On Thu, Jun 23, 2016 at 11:13:47AM +0200, Florian Westphal wrote: > Florian Westphal wrote: > > Greg Kroah-Hartman wrote: > > > 3.14-stable review patch. If anyone has any objections, please let me > > > know. > > > > I have -- this doesn't work in 3.14 as t->entries (the ruleset blob) > > is

Re: [PATCH 04/14] dt-bindings: document sun8i_ths

2016-06-23 Thread Chen-Yu Tsai
On Fri, Jun 24, 2016 at 3:20 AM, wrote: > From: Ondrej Jirman > > This patch adds the binding documentation for the sun8i_ths driver > > Signed-off-by: Ondřej Jirman > --- > .../devicetree/bindings/thermal/sun8i-ths.txt | 31 > ++ > 1 file changed, 31 insertions(+) >

[PATCH 0/3] DesignWare HDMI I2S suport

2016-06-23 Thread Kuninori Morimoto
Hi Mark, Thierry, Russell These are DesignWare HDMI I2S support patches. It will use ALSA SoC hdmi-codec driver, but we can't use it as-is. So, 2), 3) patches modify hdmi-codec style. Kuninori Morimoto (3): 1) drm: bridge: add DesignWare HDMI I2S audio support 2) ASoC: hdmi-codec: callback f

Re: [PATCH 01/14] ARM: dts: sun8i: Add SID node

2016-06-23 Thread Chen-Yu Tsai
On Fri, Jun 24, 2016 at 3:20 AM, wrote: > From: Josef Gajdusek > > Add a node describing the Security ID memory to the Allwinner H3 .dtsi file. > > Signed-off-by: Josef Gajdusek > --- > arch/arm/boot/dts/sun8i-h3.dtsi | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/arch/arm/boo

Re: [PATCH] usb: serial: update CH34x driver in drivers/usb/serial

2016-06-23 Thread Greg KH
On Thu, Jun 23, 2016 at 06:47:54PM -0700, t...@winchiphead.com wrote: > The old driver for usb-serial chips ch34x which submitted by kernel volunteer > Frank A Kingswood is too old to use, and > the > driver has bugs when receiving chracters, thus after communicating with the > author > we deci

  1   2   3   4   5   6   7   8   9   10   >