Re: [RFC v3 09/10] iommu/arm-smmu: Implement reserved region get/put callbacks

2016-12-06 Thread Robin Murphy
On 15/11/16 13:09, Eric Auger wrote: > The get() populates the list with the PCI host bridge windows > and the MSI IOVA range. > > At the moment an arbitray MSI IOVA window is set at 0x800 > of size 1MB. This will allow to report those info in iommu-group > sysfs? > > Signed-off-by: Eric Auge

Re: [PATCH] overlayfs: ignore empty NFSv4 ACLs in ext4 upperdir

2016-12-06 Thread J. Bruce Fields
On Tue, Dec 06, 2016 at 02:18:31PM +0100, Andreas Gruenbacher wrote: > On Tue, Dec 6, 2016 at 11:08 AM, Miklos Szeredi wrote: > > On Tue, Dec 6, 2016 at 12:24 AM, Andreas Grünbacher > > wrote: > >> 2016-12-06 0:19 GMT+01:00 Andreas Grünbacher > >> : > > > >>> It's not hard to come up with a heur

Re: [PATCHv4 10/10] arm64: Add support for CONFIG_DEBUG_VIRTUAL

2016-12-06 Thread Mark Rutland
On Tue, Nov 29, 2016 at 10:55:29AM -0800, Laura Abbott wrote: > > + WARN(!__is_lm_address(x), > + "virt_to_phys used for non-linear address :%pK\n", (void *)x); Nit: s/ :/: / It might be worth adding %pS too; i.e. WARN(!__is_lm_address(x), "virt_to_phys used fo

Re: [RFC PATCH 00/23] arm: defconfigs: use kconfig fragments

2016-12-06 Thread Olof Johansson
On Tue, Dec 6, 2016 at 4:38 AM, Bartlomiej Zolnierkiewicz wrote: > Hi, > > This RFC patchset starts convertion of ARM defconfigs to use kconfig > fragments and dynamically generate defconfigs. The goals of this > work are to: You don't provide any motivation as to why this is better. As far as I

Re: i8042 error at booting an Intel Cherry Trail-based device

2016-12-06 Thread Takashi Iwai
On Tue, 06 Dec 2016 18:07:05 +0100, Dmitry Torokhov wrote: > > Hi Takashi, > > On Tue, Dec 06, 2016 at 11:36:09AM +0100, Takashi Iwai wrote: > > On Tue, 06 Dec 2016 07:07:54 +0100, > > Dmitry Torokhov wrote: > > > > > > On December 5, 2016 4:56:05 PM PST, Marcos Paulo de Souza > > > wrote: > >

Re: [PATCH v6 3/3] sound/usb: Use Media Controller API to share media resources

2016-12-06 Thread Takashi Iwai
On Tue, 06 Dec 2016 19:41:37 +0100, Shuah Khan wrote: > > Hi Takashi, > > On 12/05/2016 11:50 PM, Takashi Iwai wrote: > > On Wed, 30 Nov 2016 23:01:16 +0100, > > Shuah Khan wrote: > >> > >> --- a/sound/usb/card.c > >> +++ b/sound/usb/card.c > > (snip) > >> @@ -616,6 +617,11 @@ static int usb_audi

Re: [PATCH 3/5] arm64: dts: exynos5433: Add PPMU dt node

2016-12-06 Thread Krzysztof Kozlowski
On Fri, Dec 02, 2016 at 04:18:05PM +0900, Chanwoo Choi wrote: > This patch adds PPMU (Platform Performance Monitoring Unit) Device-tree node > to measure the utilization of each IP in Exynos SoC. > > - PPMU_D{0|1}_CPU are used to measure the utilization of MIF (Memory > Interface) > block with

Re: [PATCH v2 02/11] locking/ww_mutex: Re-check ww->ctx in the inner optimistic spin loop

2016-12-06 Thread Peter Zijlstra
On Tue, Dec 06, 2016 at 11:03:28AM -0500, Waiman Long wrote: > > The mutex_spin_on_owner() function was originally marked noinline > because it could be a major consumer of CPU cycles in a contended lock. > Having it shown separately in the perf output will help the users have a > better understan

Re: [PATCH 1/1] mtd: spi-nor: remove WARN_ONCE() message in spi_nor_write()

2016-12-06 Thread Marek Vasut
On 12/06/2016 06:14 PM, Cyrille Pitchen wrote: > This patch removes the WARN_ONCE() test in spi_nor_write(). > This macro triggers the display of a warning message almost every time we > use a UBI file-system because a write operation is performed at offset 64, > which is in the middle of the SPI N

Re: [PATCH 1/1] mtd: spi-nor: improve macronix_quad_enable()

2016-12-06 Thread Marek Vasut
On 12/06/2016 05:01 PM, Cyrille Pitchen wrote: > The patch checks whether the Quad Enable bit is already set in the Status > Register. If so, the function exits immediately with a successful return > code. Performance optimization I presume ? Acked-by: Marek Vasut > Signed-off-by: Cyrille Pitch

Re: Avoid deadlock situation due to use of xmit_lock

2016-12-06 Thread Lino Sanfilippo
Hi, On 06.12.2016 16:06, David Miller wrote: > From: Lino Sanfilippo > Date: Sat, 3 Dec 2016 00:06:04 +0100 > >> after stumbling over a potential deadlock situation in the altera driver >> (see http://marc.info/?l=linux-netdev&m=148054615230447&w=2), I checked >> all other ethernet drivers for

Re: [PATCHv4 05/10] arm64: Use __pa_symbol for kernel symbols

2016-12-06 Thread Laura Abbott
On 12/06/2016 09:02 AM, Mark Rutland wrote: > Hi, > > As a heads-up, it looks like this got mangled somewhere. In the hunk at > arch/arm64/mm/kasan_init.c:68, 'do' in the context became 'edo'. > Deleting the 'e' makes it apply. > Argh, this must have come in while editing the .patch before e-mai

Re: Gigabit ethernet driver for Alacritechs SLIC devices (v4)

2016-12-06 Thread Lino Sanfilippo
On 06.12.2016 17:30, David Miller wrote: > From: Lino Sanfilippo > Date: Mon, 5 Dec 2016 23:07:15 +0100 > >> this is the forth version of the slicoss gigabit ethernet driver (which is a >> rework of the driver from Alacritech which can currently be found under >> drivers/staging/slicoss). The dr

Re: [RESEND PATCH V6 0/6] Add support for privileged mappings

2016-12-06 Thread Robin Murphy
On 04/12/16 07:48, Sricharan wrote: > Hi Robin, > >> Hi Sricharan, >> >> On 02/12/16 14:55, Sricharan R wrote: >>> This series is a resend of the V5 that Mitch sent sometime back [2] >>> All the patches are the same and i have just rebased. Not sure why this >>> finally did not make it last time.

[PATCH-tip] locking/pvqspinlock: Relax cmpxchg's to improve performance on some archs

2016-12-06 Thread Waiman Long
A number of cmpxchg calls in qspinlock_paravirt.h were replaced by more relaxed versions to improve performance on architectures that use LL/SC. Signed-off-by: Waiman Long --- kernel/locking/qspinlock_paravirt.h | 36 +++- 1 file changed, 19 insertions(+), 17 dele

Re: [PATCHv4 08/10] mm/kasan: Switch to using __pa_symbol and lm_alias

2016-12-06 Thread Mark Rutland
On Tue, Nov 29, 2016 at 10:55:27AM -0800, Laura Abbott wrote: > @@ -94,7 +94,7 @@ static void __init zero_pud_populate(pgd_t *pgd, unsigned > long addr, > > pud_populate(&init_mm, pud, kasan_zero_pmd); We also need to lm_alias()-ify kasan_zero_pmd here, or we'll get a stre

Re: [PATCH 1/1 linux-next] sunrpc: use DEFINE_SPINLOCK()

2016-12-06 Thread J. Bruce Fields
Thanks, applying for 4.10.--b. On Sun, Dec 04, 2016 at 01:45:28PM +0100, Fabian Frederick wrote: > Signed-off-by: Fabian Frederick > --- > net/sunrpc/svcauth.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/net/sunrpc/svcauth.c b/net/sunrpc/svcauth.c > index 69841db.

[PATCH 1/4] efi: Make EFI_MEMORY_ATTRIBUTES_TABLE initialization common across all architectures

2016-12-06 Thread Sai Praneeth Prakhya
From: Sai Praneeth Since EFI_PROPERTIES_TABLE and EFI_MEMORY_ATTRIBUTES_TABLE deal with updating memory region attributes, it makes sense to call EFI_MEMORY_ATTRIBUTES_TABLE initialization function from the same place as EFI_PROPERTIES_TABLE. This also moves the EFI_MEMORY_ATTRIBUTES_TABLE initia

Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2016-12-06 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 05, 2016 at 08:51:01AM -0800, Alexei Starovoitov escreveu: > On Fri, Dec 02, 2016 at 01:44:40PM -0200, Arnaldo Carvalho de Melo wrote: > > Em Sat, Nov 26, 2016 at 07:03:34AM +, Wang Nan escreveu: > > > Add basic clang support in clang.cpp and test__clang() testcase. The > > > first

[PATCH 0/4] UEFI: EFI_MEMORY_ATTRIBUTES_TABLE support for x86

2016-12-06 Thread Sai Praneeth Prakhya
From: Sai Praneeth UEFI v2.6 introduces EFI_MEMORY_ATTRIBUTES_TABLE which describes memory protections that may be applied to EFI Runtime code and data regions by kernel. This helps kernel to map efi runtime regions more strictly and hence allowing only appropriate accesses to these regions. P

[PATCH 4/4] efi: Skip parsing of EFI_PROPERTIES_TABLE if EFI_MEMORY_ATTRIBUTES_TABLE is detected

2016-12-06 Thread Sai Praneeth Prakhya
From: Sai Praneeth UEFI specification v2.6 recommends not to use "EFI_PROPERTIES_RUNTIME_MEMORY_PROTECTION_NON_EXECUTABLE_PE_DATA" attribute of EFI_PROPERTIES_TABLE. Presently, this is the *only* bit defined in EFI_PROPERTIES_TABLE. This bit implies that EFI Runtime code and data regions of an ex

[PATCH 3/4] x86/efi: Add support for EFI_MEMORY_ATTRIBUTES_TABLE

2016-12-06 Thread Sai Praneeth Prakhya
From: Sai Praneeth UEFI v2.6 introduces EFI_MEMORY_ATTRIBUTES_TABLE which describes memory protections that may be applied to EFI Runtime code and data regions by kernel. This enables kernel to map these regions more strictly thereby increasing security. Presently, the only valid bits for attribu

[PATCH 2/4] efi: Introduce EFI_MEM_ATTR bit and set it from memory attributes table

2016-12-06 Thread Sai Praneeth Prakhya
From: Sai Praneeth UEFI v2.6 introduces a configuration table called EFI_MEMORY_ATTRIBUTES_TABLE which provides additional information about efi runtime regions. Currently this table describes memory protections that may be applied to EFI Runtime code and data regions by kernel. Allocate a EFI_XX

Re: [PATCH 4/5] arm64: dts: exynos5433: Add bus dt node using VDD_INT for Exynos5433

2016-12-06 Thread Krzysztof Kozlowski
On Fri, Dec 02, 2016 at 04:18:06PM +0900, Chanwoo Choi wrote: > This patch adds the bus nodes using VDD_INT for Exynos5433 SoC. > Exynos5433 has the following AMBA AXI buses to translate data > between DRAM and sub-blocks. > > Following list specify the detailed correlation between sub-block and c

[PATCH v2 0/2] register atmel-ssc as sound DAI w/o platform driver

2016-12-06 Thread Peter Rosin
Hi! v1 -> v2 changes - add ack from Rob Herring on patch 1/2. - add reasons why breaking compatibility is ok for patch 2/2 (requested by Rob). - add #sound-dai-cells to the ssc0 node in the devcietree example. The Atmel SSC is currently not usable as an audio DAI unless someone registers it wit

Re: [PATCH 2/2] mm, oom: do not enfore OOM killer for __GFP_NOFAIL automatically

2016-12-06 Thread Michal Hocko
On Tue 06-12-16 19:38:38, Tetsuo Handa wrote: > Michal Hocko wrote: > > On Mon 05-12-16 22:45:19, Tetsuo Handa wrote: > > > Michal Hocko wrote: > > > > __alloc_pages_may_oom makes sure to skip the OOM killer depending on > > > > the allocation request. This includes lowmem requests, costly high > >

Re: [PATCH 5/5] arm64: dts: exynos5433: Add support of bus frequency using VDD_INT on TM2

2016-12-06 Thread Krzysztof Kozlowski
On Fri, Dec 02, 2016 at 04:18:07PM +0900, Chanwoo Choi wrote: > This patch adds the bus Device-tree nodes for INT (Internal) block > to enable the bus frequency scaling. > > Signed-off-by: Chanwoo Choi > --- > arch/arm64/boot/dts/exynos/exynos5433-tm2.dts | 72 > +++ > 1

Re: [PATCH 2/2] mm, oom: do not enfore OOM killer for __GFP_NOFAIL automatically

2016-12-06 Thread Michal Hocko
On Tue 06-12-16 12:03:02, Vlastimil Babka wrote: > On 12/06/2016 11:38 AM, Tetsuo Handa wrote: > >> > >> So we are somewhere in the middle between pre-mature and pointless > >> system disruption (GFP_NOFS with a lots of metadata or lowmem request) > >> where the OOM killer even might not help and p

Re: [PATCH] drivers: net: cpsw-phy-sel: Clear RGMII_IDMODE on "rgmii" links

2016-12-06 Thread Alex
On 12/06/2016 08:36 AM, David Miller wrote: From: Alexandru Gagniuc Date: Mon, 5 Dec 2016 17:33:53 -0800 Support for setting the RGMII_IDMODE bit was added in commit: "drivers: net: cpsw-phy-sel: add support to configure rgmii internal delay" However, that commit did not add the symmetrical

[PATCH v2] drivers: net: cpsw-phy-sel: Clear RGMII_IDMODE on "rgmii" links

2016-12-06 Thread Alexandru Gagniuc
Support for setting the RGMII_IDMODE bit was added in the commit referenced below. However, that commit did not add the symmetrical clearing of the bit by way of setting it in "mask". Add it here. Note that the documentation marks clearing this bit as "reserved", however, according to TI, support

Re: [PATCH] exynos-gsc: Clean up file handle in open() error path.

2016-12-06 Thread Krzysztof Kozlowski
On Fri, Dec 02, 2016 at 10:15:27AM +0530, Shailendra Verma wrote: > The File handle is not yet added in the vfd list.So no need to call > v4l2_fh_del(&ctx->fh) if it fails to create control. > > Signed-off-by: Shailendra Verma > --- > drivers/media/platform/exynos-gsc/gsc-m2m.c |2 +- > 1 fi

Re: [PATCH 2/2] arm64: dts: NS2: add support for XMC form factor

2016-12-06 Thread Jon Mason
; > url: > https://github.com/0day-ci/linux/commits/Jon-Mason/arm64-dts-NS2-reserve-memory-for-Nitro-firmware/20161206-125631 > base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git > for-next > config: arm64-allmodconfig (attached as .config) > compiler: aarch64-linux-

Re: [Xen-devel] [PATCH v3 4/4] x86/asm: Rewrite sync_core() to use IRET-to-self

2016-12-06 Thread H. Peter Anvin
On 12/06/16 00:46, Jan Beulich wrote: >> + >> +#ifdef CONFIG_X86_32 >> +asm volatile ( >> +"pushfl\n\t" >> +"pushl %%cs\n\t" >> +"pushl $1f\n\t" >> +"iret\n\t" >> +"1:" >> +: "+r" (__sp) : : "cc", "memory"); > > I don't th

Re: [PATCH] perf annotate: check that objdump correctly works

2016-12-06 Thread Arnaldo Carvalho de Melo
Em Thu, Dec 01, 2016 at 01:04:36AM +0100, Alexis Berlemont escreveu: > Before disassembling, the tool objdump is called just to be sure: > * objdump is available in the path; > * objdump is an executable binary; > * objdump has no dependency issue or anything else. > > This objdump "pre-"command i

Re: [PATCH 2/6] net: ethernet: ti: cpts: add support for ext rftclk selection

2016-12-06 Thread Grygorii Strashko
On 11/30/2016 11:35 AM, Grygorii Strashko wrote: > > > On 11/30/2016 03:56 AM, Richard Cochran wrote: >> On Mon, Nov 28, 2016 at 05:04:24PM -0600, Grygorii Strashko wrote: >>> Some CPTS instances, which can be found on KeyStone 2 1/10G Ethernet >>> Switch Subsystems, can control an external multi

Re: [PATCH v9 1/2] usb: dwc2: assert phy reset when waking up in rk3288 platform

2016-12-06 Thread John Youn
On 12/6/2016 4:00 AM, Ayaka wrote: > Hello John > I still waiting them be merged, but I still can't find it at next-20161206. > Can you resubmit this fixing the checkpatch issues? You can add my ack: Acked-by: John Youn Regards, John > 從我的 iPad 傳送 > >> John You

Re: [PATCH v2 1/2] vfio iommu type1: Fix size argument to vfio_find_dma() during DMA UNMAP.

2016-12-06 Thread Alex Williamson
On Tue, 6 Dec 2016 23:56:54 +0530 Kirti Wankhede wrote: > Passing zero for the size to vfio_find_dma() isn't compatible with > matching the start address of an existing vfio_dma. Doing so triggers a > corner case. In vfio_find_dma(), when the start address is equal to > dma->iova and size is 0, c

Re: [PATCHSET 00/10] perf sched timehist: Introduce --idle-hist option (v1)

2016-12-06 Thread Arnaldo Carvalho de Melo
Em Tue, Dec 06, 2016 at 12:40:00PM +0900, Namhyung Kim escreveu: > Hi, > > This patchset implements the idle hist feature which analyze reason of system > idle. Sometimes I need to investigate what makes CPUs to go idle even though > I have jobs to do. It may be due to I/O, waiting on lock or wh

Re: [PATCH] perf tools: Explicitly document that --children is enabled by default

2016-12-06 Thread Arnaldo Carvalho de Melo
Em Fri, Dec 02, 2016 at 11:07:32AM -0500, Yannick Brosseau escreveu: > The fact that the --children option is enabled by default is buried deep > at the end of the help page, in the overhead calculation section. This > make it explicit right where the option is listed, following the same > way othe

[PULL] bcache: based on for-4.10/block, multiple updates

2016-12-06 Thread Eric Wheeler
Hello Jens, Please pull for 4.10: Thank you! This pull request is based on the git.kernel.dk for-4.10/block branch: The following changes since commit 333ba053d145d6f9152f6b0311a345b876f0fed1: lightnvm: transform target get/set bad block (2016-11-29 12:12:51 -0700) are available in the git

Re: [RFC PATCH 23/23] arm: use kconfig fragments for tegra_defconfig/multi_v7_defconfig

2016-12-06 Thread Olof Johansson
On Tue, Dec 6, 2016 at 4:38 AM, Bartlomiej Zolnierkiewicz wrote: > Replace [tegra,multi_v7]_defconfig-s with > a Makefile target using merge_config. > > The patch was verified with doing: > > $ make [tegra,multi_v7]_defconfig > $ make savedefconfig > > and comparing resulting defconfig fil

[PATCH 3/3] ARM: Add support for CONFIG_DEBUG_VIRTUAL

2016-12-06 Thread Florian Fainelli
x86 has an option: CONFIG_DEBUG_VIRTUAL to do additional checks on virt_to_phys calls. The goal is to catch users who are calling virt_to_phys on non-linear addresses immediately. This includes caller using __virt_to_phys() on image addresses instead of __pa_symbol(). This is a generally useful deb

[PATCH 2/3] ARM: Utilize __pa_symbol in lieu of __pa

2016-12-06 Thread Florian Fainelli
Unfold pmd_populate_kernel() to make us use __pa_symbol() instead of __pa(), pre-requisite to turning on CONFIG_DEBUG_VIRTUAL. Signed-off-by: Florian Fainelli --- arch/arm/mm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 18e

[PATCH 0/3] ARM: Add support for CONFIG_DEBUG_VIRTUAL

2016-12-06 Thread Florian Fainelli
Hi all, This patch series builds on top of Laura's [PATCHv4 00/10] CONFIG_DEBUG_VIRTUAL for arm64 to add support for CONFIG_DEBUG_VIRTUAL for ARM. This was tested on a Brahma B15 platform (ARMv7 + HIGHMEM + LPAE). There are a number of possible follow up/cleanup patches: - all SMP implements t

Re: [PATCH v3] PCI/ACPI: xgene: Add ECAM quirk for X-Gene PCIe controller

2016-12-06 Thread Jon Masters
On 12/05/2016 04:21 PM, Bjorn Helgaas wrote: > On Fri, Dec 02, 2016 at 07:33:46PM -0500, Jon Masters wrote: >>> Even without this patch, I don't think it's a show-stopper to have >>> Linux mistakenly thinking this region is routed to PCI, because the >>> driver does reserve it and the PCI core wil

[PATCH 1/3] ARM: Define KERNEL_START and KERNEL_END

2016-12-06 Thread Florian Fainelli
In preparation for adding CONFIG_DEBUG_VIRTUAL support, define a set of common constants: KERNEL_START and KERNEL_END which abstract CONFIG_XIP_KERNEL vs. !CONFIG_XIP_KERNEL. Update the code where relevant. Signed-off-by: Florian Fainelli --- arch/arm/include/asm/memory.h | 7 +++ arch/arm/m

Re: [PATCH 3/5] ARM: BCM5301X: Set GPIO enabling USB power on Netgear R7000

2016-12-06 Thread Jon Mason
On Tue, Dec 06, 2016 at 06:17:12PM +0100, Rafał Miłecki wrote: > There is one GPIO controlling power for both USB ports. > > Signed-off-by: Rafał Miłecki > Signed-off-by: Rafał Miłecki Was the double Signed-off-by intentional? > --- > arch/arm/boot/dts/bcm4709-netgear-r7000.dts | 8 >

[PATCH v2] x86/irq: Add additional unhandled IRQ debug information

2016-12-06 Thread Prarit Bhargava
The current unhandled IRQ warning doesn't output enough information on x86 to determine which device issued an interrupt. For example, irq 16: nobody cared (try booting with the "irqpoll" option) CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.9.0-rc6+ #19 Hardware name: Hewlett-Packard HP Z820 Works

Re: [PATCH v1 1/4] perf report: Find the inline stack for a given address

2016-12-06 Thread Arnaldo Carvalho de Melo
Em Tue, Nov 29, 2016 at 10:55:41PM +0800, Jin Yao escreveu: > It would be useful for perf to support a mode to query the > inline stack for a given callgraph address. This would simplify > finding the right code in code that does a lot of inlining. > > The srcline.c has contained the code which su

Re: [PATCH 4/5] ARM: BCM5301X: Specify all RAM by including extra block

2016-12-06 Thread Jon Mason
On Tue, Dec 06, 2016 at 06:17:13PM +0100, Rafał Miłecki wrote: > From: Rafał Miłecki > > So far we were specifying only the first block which is always limited > up to 128 MiB. There are many devices with 256 MiB and few with 512 MiB. Assuming that NS is like NSP (and I'm pretty sure it is), the

Re: [PATCHv4 09/10] mm/usercopy: Switch to using lm_alias

2016-12-06 Thread Kees Cook
On Tue, Dec 6, 2016 at 10:18 AM, Mark Rutland wrote: > On Tue, Nov 29, 2016 at 11:39:44AM -0800, Kees Cook wrote: >> On Tue, Nov 29, 2016 at 10:55 AM, Laura Abbott wrote: >> > >> > The usercopy checking code currently calls __va(__pa(...)) to check for >> > aliases on symbols. Switch to using lm_

Re: [PATCH v27 03/21] vfs: Add MAY_DELETE_SELF and MAY_DELETE_CHILD permission flags

2016-12-06 Thread J. Bruce Fields
On Fri, Dec 02, 2016 at 10:57:42AM +0100, Miklos Szeredi wrote: > On Tue, Oct 11, 2016 at 2:50 PM, Andreas Gruenbacher > wrote: > > Normally, deleting a file requires MAY_WRITE access to the parent > > directory. With richacls, a file may be deleted with MAY_DELETE_CHILD > > access > > to the pa

Re: [PATCH v3] PCI/ACPI: xgene: Add ECAM quirk for X-Gene PCIe controller

2016-12-06 Thread Bjorn Helgaas
On Tue, Dec 06, 2016 at 02:46:00PM -0500, Jon Masters wrote: > On 12/05/2016 04:21 PM, Bjorn Helgaas wrote: > > On Fri, Dec 02, 2016 at 07:33:46PM -0500, Jon Masters wrote: > > >>> Even without this patch, I don't think it's a show-stopper to have > >>> Linux mistakenly thinking this region is rou

[PATCH] sign-file: Fix inplace signing when src and dst names are both specified

2016-12-06 Thread Alex Yashchenko
When src and dst both are specified and they point to the same file the sign-file utility will write only signature to the dst file and the module (.ko file) body will not be written. That happens because we open the same file with "rb" and "wb" flags, from fopen man: w Truncate file to zero

Re: [PATCH 2/6] net: ethernet: ti: cpts: add support for ext rftclk selection

2016-12-06 Thread Richard Cochran
On Tue, Dec 06, 2016 at 01:39:40PM -0600, Grygorii Strashko wrote: > I come with below RFC patch. if no objection I'll move forward with it. Thanks for following through with this! The am335x will also need the MUX in its clock tree, won't it? Thanks, Richard

Re: [PATCH v3] PCI/ACPI: xgene: Add ECAM quirk for X-Gene PCIe controller

2016-12-06 Thread Jon Masters
On 12/06/2016 03:18 PM, Bjorn Helgaas wrote: > On Tue, Dec 06, 2016 at 02:46:00PM -0500, Jon Masters wrote: >> On 12/05/2016 04:21 PM, Bjorn Helgaas wrote: >>> On Fri, Dec 02, 2016 at 07:33:46PM -0500, Jon Masters wrote: >> > Even without this patch, I don't think it's a show-stopper to have >>

Re: net/gadget: slab-out-of-bounds write in dev_config

2016-12-06 Thread Andrey Konovalov
On Tue, Dec 6, 2016 at 4:30 PM, Alan Stern wrote: > On Tue, 6 Dec 2016, Andrey Konovalov wrote: > >> Hi! >> >> I've got the following error report while running the syzkaller fuzzer. >> >> ep0_write() doesn't check the length, so a user can cause an >> out-of-bounds with both size and data control

Re: [PATCH 2/6] net: ethernet: ti: cpts: add support for ext rftclk selection

2016-12-06 Thread Grygorii Strashko
On 12/06/2016 02:25 PM, Richard Cochran wrote: > On Tue, Dec 06, 2016 at 01:39:40PM -0600, Grygorii Strashko wrote: >> I come with below RFC patch. if no objection I'll move forward with it. > > Thanks for following through with this! > > The am335x will also need the MUX in its clock tree, won

Re: [PATCH 3/3] powerpc: enable support for GCC plugins

2016-12-06 Thread Kees Cook
On Mon, Dec 5, 2016 at 10:28 PM, Andrew Donnellan wrote: > Enable support for GCC plugins on powerpc. > > Add an additional version check in gcc-plugins-check to advise users to > upgrade to gcc 5.2+ on powerpc to avoid issues with header files (gcc <= > 4.6) or missing copies of rs6000-cpus.def (

Re: [PATCH 3/3] ARM: Add support for CONFIG_DEBUG_VIRTUAL

2016-12-06 Thread Florian Fainelli
On 12/06/2016 11:53 AM, Florian Fainelli wrote: > x86 has an option: CONFIG_DEBUG_VIRTUAL to do additional checks on > virt_to_phys calls. The goal is to catch users who are calling > virt_to_phys on non-linear addresses immediately. This includes caller > using __virt_to_phys() on image addresses

extrusion products

2016-12-06 Thread Joanna
Hi, Dong Guan RiTeng Industrial Co.,Ltd. a large plastic extrusion / co-extrusion profiles/ pipes manufacturer in China. Our product range includes PC/PMMA/PP/PS/PE/PVC/ABS plastic extrusion/co-extrusion profiles/pipes, extrusion production line. And we have a corresponding plastic extrusion m

[PATCH v2 2/2] ASoC: atmel: tse850: rely on the ssc to register as a cpu dai by itself

2016-12-06 Thread Peter Rosin
This breaks devicetree compatibility, but in this case that is ok. All affected units are either on my desk, or running an even older version of the driver that is not compatible with the upstreamed version anyway (and when these other units are eventually updated, they will get a fresh dtb as well

Re: [PATCH v3 33/33] Reimplement IDR and IDA using the radix tree

2016-12-06 Thread Andrew Morton
On Mon, 28 Nov 2016 13:50:37 -0800 Matthew Wilcox wrote: > The IDR is very similar to the radix tree. It has some functionality > that the radix tree did not have (alloc next free, cyclic allocation, > a callback-based for_each, destroy tree), which is readily implementable > on top of the radi

[PATCH] i2c-hid: Disable IRQ before freeing buffers

2016-12-06 Thread João Paulo Rechi Vita
The HID report buffers that are initially allocated on i2c_hid_probe() might not be big enough to hold the HID reports from a specific device, in which case they will be freed and new ones will be allocated in i2c_hid_start(), at point which the device's report size is known. But at this point ihid

Re: [PATCH 4/5] ARM: BCM5301X: Specify all RAM by including extra block

2016-12-06 Thread Rafał Miłecki
On 6 December 2016 at 21:06, Jon Mason wrote: > On Tue, Dec 06, 2016 at 06:17:13PM +0100, Rafał Miłecki wrote: >> From: Rafał Miłecki >> >> So far we were specifying only the first block which is always limited >> up to 128 MiB. There are many devices with 256 MiB and few with 512 MiB. > > Assumi

Re: [PATCH RFC] drm/sun4i: rgb: Add 5% tolerance to dot clock frequency check

2016-12-06 Thread Maxime Ripard
On Thu, Nov 24, 2016 at 07:22:31PM +0800, Chen-Yu Tsai wrote: > The panels shipped with Allwinner devices are very "generic", i.e. > they do not have model numbers or reliable sources of information > for the timings (that we know of) other than the fex files shipped > on them. The dot clock freque

Re: [RFC v2 3/4] ACPI: DBG2: add 16550 UART with 32-bit access

2016-12-06 Thread Rafael J. Wysocki
On Tue, Dec 6, 2016 at 6:58 PM, Aleksey Makarov wrote: > It was suggested to add a new Microsoft Debug Port Table 2 > (DBG2) (the table used to enumerate the various subtypes of serial > port covered by the SPCR) 16550 UART subtype that may be needed for > some additional platforms, such as those

Re: [PATCH] i2c-hid: Disable IRQ before freeing buffers

2016-12-06 Thread Benjamin Tissoires
On Dec 06 2016 or thereabouts, João Paulo Rechi Vita wrote: > The HID report buffers that are initially allocated on i2c_hid_probe() > might not be big enough to hold the HID reports from a specific device, > in which case they will be freed and new ones will be allocated in > i2c_hid_start(), at p

Re: [PATCH 1/1] cpufreq: Fix NULL pointer comparison warning

2016-12-06 Thread Rafael J. Wysocki
On Tue, Dec 6, 2016 at 11:17 AM, Mohamed Wasif wrote: > Replace direct comparisons to NULL > This problem was detected by checkpatch. > > Signed-off-by: Mohamed Wasif > --- > drivers/cpufreq/cpufreq.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/cpufreq

Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2016-12-06 Thread Arnaldo Carvalho de Melo
Em Tue, Dec 06, 2016 at 04:19:34PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Mon, Dec 05, 2016 at 08:51:01AM -0800, Alexei Starovoitov escreveu: > > On Fri, Dec 02, 2016 at 01:44:40PM -0200, Arnaldo Carvalho de Melo wrote: > > > make LIBCLANGLLVM=1 O=/tmp/build/perf -C tools/perf install-bin

Re: [RFC v2 3/4] ACPI: DBG2: add 16550 UART with 32-bit access

2016-12-06 Thread Jon Masters
Quick note - specifically, Rafael, this is not currently part of the SPCR specification and should not be considered for inclusion in Linux until that is decided. Once it is determined what the fix for SPCR is, that should then be driven into the component architecture and proposed here. -- Co

Re: [Question] New mmap64 syscall?

2016-12-06 Thread Arnd Bergmann
On Wednesday, December 7, 2016 12:24:40 AM CET Yury Norov wrote: > I see 3 solutions for my problem: > 1. Reuse aarch64/lp64 mmap code for ilp32 in glibc, but wrap offset with > SYSCALL_LL64() macro - which converts offset to the pair for 32-bit > ports. This is simple but local solution. And most

Re: [PATCH v3 33/33] Reimplement IDR and IDA using the radix tree

2016-12-06 Thread Andrew Morton
On Tue, 6 Dec 2016 21:17:52 + Matthew Wilcox wrote: > From: Andrew Morton [mailto:a...@linux-foundation.org] > > On Mon, 28 Nov 2016 13:50:37 -0800 Matthew Wilcox > > wrote: > > > include/linux/idr.h | 132 ++-- > > > include/linux/radix-tree.h |5 +- >

Re: [PATCH v27 03/21] vfs: Add MAY_DELETE_SELF and MAY_DELETE_CHILD permission flags

2016-12-06 Thread Miklos Szeredi
On Tue, Dec 6, 2016 at 10:13 PM, Jeremy Allison wrote: > On Tue, Dec 06, 2016 at 03:15:29PM -0500, J. Bruce Fields wrote: >> On Fri, Dec 02, 2016 at 10:57:42AM +0100, Miklos Szeredi wrote: >> > On Tue, Oct 11, 2016 at 2:50 PM, Andreas Gruenbacher >> > wrote: >> > > Normally, deleting a file requi

[PATCH v2 1/4] sched: move IO scheduling accounting from io_schedule_timeout() to __schedule()

2016-12-06 Thread Tejun Heo
For an interface to support blocking for IOs, it must call io_schedule() instead of schedule(). This makes it tedious to add IO blocking to existing interfaces as the switching between schedule() and io_schedule() is often buried deep. As we already have a way to mark the task as IO scheduling, t

Re: [PATCH v27 03/21] vfs: Add MAY_DELETE_SELF and MAY_DELETE_CHILD permission flags

2016-12-06 Thread Jeremy Allison
On Tue, Dec 06, 2016 at 03:15:29PM -0500, J. Bruce Fields wrote: > On Fri, Dec 02, 2016 at 10:57:42AM +0100, Miklos Szeredi wrote: > > On Tue, Oct 11, 2016 at 2:50 PM, Andreas Gruenbacher > > wrote: > > > Normally, deleting a file requires MAY_WRITE access to the parent > > > directory. With rich

Re: linux-next: build failure after merge of the pinctrl tree

2016-12-06 Thread Stephen Rothwell
Hi Linus, On Mon, 5 Dec 2016 10:00:38 +1100 Stephen Rothwell wrote: > > After merging the pinctrl tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > drivers/gpio/gpio-pl061.c: In function 'pl061_irq_set_wake': > drivers/gpio/gpio-pl061.c:280:28: error: 'struct gpio_

Re: [PATCH 1/4] sched: move IO scheduling accounting from io_schedule_timeout() to __schedule()

2016-12-06 Thread Tejun Heo
Hello, On Mon, Oct 31, 2016 at 10:45:56AM -0600, Tejun Heo wrote: > Tracking the owners of mutexes and rwsems does help quite a bit. I > don't think it's as simple as inheriting io sleep state from the > current owner tho. The owner might be running or in a non-IO sleep > when others try to grab

Re: [RFC v2 3/4] ACPI: DBG2: add 16550 UART with 32-bit access

2016-12-06 Thread Rafael J. Wysocki
On Tue, Dec 6, 2016 at 10:15 PM, Jon Masters wrote: > Quick note - specifically, Rafael, this is not currently part of the SPCR > specification and > should not be considered for inclusion in Linux until that is decided. Once > it is determined > what the fix for SPCR is, that should then be dri

Re: [PATCH v27 03/21] vfs: Add MAY_DELETE_SELF and MAY_DELETE_CHILD permission flags

2016-12-06 Thread Jeremy Allison
On Tue, Dec 06, 2016 at 10:25:22PM +0100, Miklos Szeredi wrote: > On Tue, Dec 6, 2016 at 10:13 PM, Jeremy Allison wrote: > > On Tue, Dec 06, 2016 at 03:15:29PM -0500, J. Bruce Fields wrote: > >> On Fri, Dec 02, 2016 at 10:57:42AM +0100, Miklos Szeredi wrote: > >> > On Tue, Oct 11, 2016 at 2:50 PM,

Re: [PATCH 3/3] powerpc: enable support for GCC plugins

2016-12-06 Thread Emese Revfy
On Tue, 6 Dec 2016 17:28:00 +1100 Andrew Donnellan wrote: > + # Various gccs between 4.5 and 5.1 have bugs on powerpc due to missing > + # header files. gcc <= 4.6 doesn't work at all, gccs from 4.8 to 5.1 > have > + # issues with 64-bit targets. > + ifeq ($(ARCH),powerpc) >

Re: Enabling peer to peer device transactions for PCIe devices

2016-12-06 Thread Logan Gunthorpe
Hey, > Okay, so clearly this needs a kernel side NVMe specific allocator > and locking so users don't step on each other.. Yup, ideally. That's why device dax isn't ideal for this application: it doesn't provide any way to prevent users from stepping on each other. > Or as Christoph says some ki

Re: [PATCHSET 00/10] perf sched timehist: Introduce --idle-hist option (v1)

2016-12-06 Thread David Ahern
On 12/6/16 11:44 AM, Arnaldo Carvalho de Melo wrote: > Em Tue, Dec 06, 2016 at 12:40:00PM +0900, Namhyung Kim escreveu: >> Hi, >> >> This patchset implements the idle hist feature which analyze reason of system >> idle. Sometimes I need to investigate what makes CPUs to go idle even though >> I ha

RE: [PATCH v3 33/33] Reimplement IDR and IDA using the radix tree

2016-12-06 Thread Matthew Wilcox
From: Andrew Morton [mailto:a...@linux-foundation.org] > On Mon, 28 Nov 2016 13:50:37 -0800 Matthew Wilcox > wrote: > > include/linux/idr.h | 132 ++-- > > include/linux/radix-tree.h |5 +- > > init/main.c |3 +- > > lib/idr.c

Re: Questions on the task isolation patches

2016-12-06 Thread yunhong jiang
On Fri, 2 Dec 2016 13:58:08 -0500 Chris Metcalf wrote: > On 12/1/2016 5:28 PM, yunhong jiang wrote: > > Hi, Chris > > I noticed your task isolation patch set at > > https://lkml.org/lkml/2016/8/9/759 . Thanks a lot for the great > > effort. > > > > I checked the patch and have some ques

[PATCH] usb: gadget: udc: atmel: Fix check in usba_ep_enable()

2016-12-06 Thread Boris Brezillon
desc->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK is not necessarily equal to ep->index and that's perfectly fine. The usba endpoint index is just an internal identifier used by the driver to know which registers to use for a USB endpoint. Enforcing this constraint is not only useless, but can als

Re: Enabling peer to peer device transactions for PCIe devices

2016-12-06 Thread Dan Williams
On Tue, Dec 6, 2016 at 1:47 PM, Logan Gunthorpe wrote: > Hey, > >> Okay, so clearly this needs a kernel side NVMe specific allocator >> and locking so users don't step on each other.. > > Yup, ideally. That's why device dax isn't ideal for this application: it > doesn't provide any way to prevent

Re: [PATCH] usb: gadget: udc: atmel: Fix check in usba_ep_enable()

2016-12-06 Thread Boris Brezillon
Hi Felipe, I realize I sent this patch to your old @ti.com email address. Do you want me to resend it? Regards, Boris On Tue, 6 Dec 2016 22:59:43 +0100 Boris Brezillon wrote: > desc->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK is not necessarily > equal to ep->index and that's perfectly fine

Re: [PATCH 0/5] MIPS: Add per-cpu IRQ stack

2016-12-06 Thread Jason A. Donenfeld
Hi Matt, Thanks for submitting this. A happy OpenWRT/WireGuard user has reported to me that this patch set frees ~1300 bytes of stack on a small MIPS router. This kind of savings should allow me to reintroduce my crypto operations to be on the stack, rather than the conditional MIPS kmallocing, wh

Re: [PATCH 1/5] MIPS: Introduce irq_stack

2016-12-06 Thread Jason A. Donenfeld
On Fri, Dec 2, 2016 at 2:39 PM, Matt Redfearn wrote: > +void *irq_stack[NR_CPUS]; I'm curious why you implemented it this way rather than using DEFINE_PER_CPU and the related percpu helper functions.

Re: [PATCH] MAINTAINERS: clarify that "B:" is the URI where to file bugs

2016-12-06 Thread Rafael J. Wysocki
On Monday, December 05, 2016 02:03:59 PM Jani Nikula wrote: > Different subsystems and drivers have different preferences for where to > file bugs and what information to include. 686564434e88 ("MAINTAINERS: > Add bug tracking system location entry type") added "B:" entry for this. > > Clarify tha

Re: [PATCH] fuse: freezing abort when use wait_event_killable{,_exclusive}().

2016-12-06 Thread Rafael J. Wysocki
On Monday, December 05, 2016 11:19:45 AM cuilifei wrote: > Freezing process can abort when a client is waiting uninterruptibly > for a response. Add new macro wait_fatal_freezable to try to fix it. > > Signed-off-by: cuilifei I'm not a big fan of this to be honest. Do we really want to suspend

Re: [PATCH 4/5] ARM: BCM5301X: Specify all RAM by including extra block

2016-12-06 Thread Jon Mason
On Tue, Dec 06, 2016 at 09:57:31PM +0100, Rafał Miłecki wrote: > On 6 December 2016 at 21:06, Jon Mason wrote: > > On Tue, Dec 06, 2016 at 06:17:13PM +0100, Rafał Miłecki wrote: > >> From: Rafał Miłecki > >> > >> So far we were specifying only the first block which is always limited > >> up to 12

[PATCH v1 1/1] serial: 8250_dw: Allow hardware flow control to be used

2016-12-06 Thread Jason Uy
In the most common use case, the Synopsys DW UART driver does not set the set_termios callback function. This prevents UPSTAT_AUTOCTS from being set when the UART flag CRTSCTS is set. As a result, the driver will use software flow control as opposed to hardware flow control. To fix the problem,

[PATCH v1 0/1] serial: 8250_dw: Allow hardware flow control to be used

2016-12-06 Thread Jason Uy
This patchset contains changes to allow AUTOCTS to be set for the Synopsys DW UART driver. There is currently no way to set AUTOCTS unless the platform adds a quirk entry and sets the termios callback function. There was a discussion about a similar proposed patch change. It was mentioned i

Re: [PATCH 4/6] net: ethernet: ti: cpts: add ptp pps support

2016-12-06 Thread Grygorii Strashko
On 12/06/2016 12:08 PM, Richard Cochran wrote: On Wed, Nov 30, 2016 at 11:05:19AM +0100, Richard Cochran wrote: Can you adjust the frequency of the keystone devices in hardware? If so, then please implement it, and just disable PPS for the CPSW. The only reason I used the timecounter for fre

RE: [PATCH v3] iommu/vt-d: Flush old iommu caches for kdump when the device gets context mapped

2016-12-06 Thread Don Brace
> -Original Message- > From: Xunlei Pang [mailto:xlp...@redhat.com] > Sent: Monday, December 05, 2016 6:09 AM > To: Joerg Roedel; David Woodhouse > Cc: io...@lists.linux-foundation.org; linux-kernel@vger.kernel.org; Xunlei > Pang; Myron Stowe; Joseph Szczypek; Don Brace; Baoquan He; Dave Yo

Re: linux-next: build warning after merge of the btrfs-kdave tree

2016-12-06 Thread Stephen Rothwell
Hi David, On Mon, 28 Nov 2016 11:02:30 +1100 Stephen Rothwell wrote: > > After merging the btrfs-kdave tree, today's linux-next build (powerpc > ppc64_defconfig) produced this warning: > > fs/btrfs/inode.c: In function 'run_delalloc_range': > fs/btrfs/inode.c:1219:9: warning: 'cur_end' may be u

RE: [PATCH 1/3] ARM: Define KERNEL_START and KERNEL_END

2016-12-06 Thread Chris Brandt
On 12/6/2016, Florian Fainelli wrote: > diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c > index 4001dd15818d..18ef688a796e 100644 > --- a/arch/arm/mm/mmu.c > +++ b/arch/arm/mm/mmu.c > @@ -1437,12 +1437,8 @@ static void __init kmap_init(void) > static void __init map_lowmem(void) > { > st

Re: linux-next: build failure after merge of the pinctrl tree

2016-12-06 Thread Stephen Rothwell
Hi Peter, On Tue, 6 Dec 2016 23:27:48 +0100 Peter Rosin wrote: > > The bug you are referring to is in the gpio tree, not pinctrl. > That had me confused for a while, and is the reason I'm writing > this. Maybe the next person need not be confused... Part of the gpio tree has been merged into the

<    1   2   3   4   5   6   7   8   9   >