Re: [PATCH v4 05/15] lockdep: Make check_prev_add can use a separate stack_trace

2017-01-13 Thread Byungchul Park
What do you think about the following patches doing it?

[PATCH] platform/x86: fix platform_no_drv_owner.cocci warnings

2017-01-13 Thread kbuild test robot
drivers/platform/x86/scu.c:1541:3-8: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci CC: Guenter Roeck Signed-off-by: Fengguang Wu --- scu.c |1 - 1 file c

Re: [PATCH] platform/x86: Add IMS/ZII SCU driver

2017-01-13 Thread kbuild test robot
Hi Guenter, [auto build test WARNING on platform-drivers-x86/for-next] [also build test WARNING on v4.10-rc3 next-20170113] [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/Florian-Fainelli

[PATCH 1/2] lockdep: Refactor save_trace()

2017-01-13 Thread Byungchul Park
Actually, this 1/2 patch will be useful only with combining crossrelease implementation. However, you can easily guess the way to handle stack_trace in crossrelease with these two patches. ->8- >From 8093188ebba720a1a79cd73c52e992bad7d15bfd Mon Sep 17 00:00:00 2001 From: Byungchul Park Da

Re: [PATCH 2/2] arm64: avoid increasing DMA masks above what hardware supports

2017-01-13 Thread kbuild test robot
-Yushchenko/dma-mapping-let-arch-know-origin-of-dma-range-passed-to-arch_setup_dma_ops/20170113-152733 config: arm64-defconfig (attached as .config) compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git

Re: [PATCH 3/3] mm, page_allocator: Only use per-cpu allocator for irq-safe requests

2017-01-13 Thread Mel Gorman
On Thu, Jan 12, 2017 at 06:02:38PM +0100, Vlastimil Babka wrote: > > Signed-off-by: Mel Gorman > > Acked-by: Hillf Danton > > Acked-by: Jesper Dangaard Brouer > > Very promising! But I have some worries. Should we put something like > VM_BUG_ON(in_interrupt()) into free_hot_cold_page() and rmqu

[PATCH 2/2] lockdep: Pass a callback arg to check_prev_add() to handle stack_trace

2017-01-13 Thread Byungchul Park
Currently, a separate stack_trace instance cannot be used in check_prev_add(). The simplest way to achieve it is to pass a stack_trace instance to check_prev_add() as an argument after saving it. However, unnecessary saving can happen if so implemented. The proper solution is to pass a callback fu

Re: [PATCH 1/2] mmc: mediatek: Use data tune for CMD line tune

2017-01-13 Thread Yong Mao
On Thu, 2017-01-12 at 11:39 +0100, Ulf Hansson wrote: > On 12 January 2017 at 11:04, Yong Mao wrote: > > From: yong mao > > > > CMD response CRC error may cause cannot boot up > > Change to use data tune for CMD line > > Separate cmd internal delay for HS200/HS400 mode > > Please try to work a l

Re: [PATCH v7 15/15] irqchip: mbigen: Add ACPI support

2017-01-13 Thread Lorenzo Pieralisi
On Wed, Jan 11, 2017 at 11:06:39PM +0800, Hanjun Guo wrote: > With the preparation of platform msi support and interrupt producer > in DSDT, we can add mbigen ACPI support now. > > We are using _PRS methd to indicate number of irq pins instead > of num_pins in DT to avoid _DSD usage in this case.

Re: 4.9.0 regression in pipe-backed iov_iter with systemd-nspawn

2017-01-13 Thread Al Viro
On Fri, Jan 13, 2017 at 09:54:02AM +, Alan J. Wylie wrote: > root 1669 0.0 0.0 76144 5412 ?S09:51 0:00 \_ > /usr/sbin/postdrop -r > > Another hang. > > # dmesg | tail > [ 22.352442] r8169 :03:00.0: loading > /lib/firmware/4.9.3-dirty/rtl_nic/rtl8168e-3

Re: [PATCH v7 00/15] ACPI platform MSI support and its example mbigen

2017-01-13 Thread Ming Lei
On Wed, Jan 11, 2017 at 11:06 PM, Hanjun Guo wrote: > With platform msi support landed in the kernel, and the introduction > of IORT for GICv3 ITS (PCI MSI) and SMMU, the framework for platform msi > is ready, this patch set add few patches to enable the ACPI platform > msi support. > > For platfo

Re: [PATCH v7 7/7] perf/amd/iommu: Enable support for multiple IOMMUs

2017-01-13 Thread Suravee Suthikulpanit
Boris, On 1/13/17 00:52, Borislav Petkov wrote: On Mon, Jan 09, 2017 at 09:33:47PM -0600, Suravee Suthikulpanit wrote: This patch adds multi-IOMMU support for perf by exposing an AMD IOMMU PMU for each IOMMU found in the system via: /sys/device/amd_iommu_x /* where x is the IOMMU index.

Re: [PATCH 1/3] sh/intc: Use kcalloc() in register_intc_controller()

2017-01-13 Thread Geert Uytterhoeven
Hi Markus, On Fri, Jan 13, 2017 at 10:48 AM, SF Markus Elfring wrote: > --- a/drivers/sh/intc/core.c > +++ b/drivers/sh/intc/core.c > @@ -253,7 +253,8 @@ int __init register_intc_controller(struct intc_desc > *desc) > } > > if (hw->prio_regs) { > - d->prio = kzallo

Re: [RFC 3/6] perf/core: use rb-tree to sched in event groups

2017-01-13 Thread Mark Rutland
On Fri, Jan 13, 2017 at 12:01:03AM -0800, David Carrillo-Cisneros wrote: > On Thu, Jan 12, 2017 at 4:14 AM, Mark Rutland wrote: > > On Tue, Jan 10, 2017 at 12:51:58PM -0800, David Carrillo-Cisneros wrote: > >> On Tue, Jan 10, 2017 at 8:38 AM, Mark Rutland wrote: > >> > That's a fair point. Sorti

Re: [PATCH 1/2] afs: Move UUID struct to linux/uuid.h

2017-01-13 Thread David Howells
kbuild test robot wrote: >fs/afs/cmservice.c: In function 'afs_deliver_cb_init_call_back_state3': > >> fs/afs/cmservice.c:365:34: error: invalid application of 'sizeof' to > >> incomplete type 'struct uuid_v1' > call->request = kmalloc(sizeof(struct uuid_v1), GFP_KERNEL); >

Re: 4.9.0 regression in pipe-backed iov_iter with systemd-nspawn

2017-01-13 Thread Alan J. Wylie
at 10:20 on Fri 13-Jan-2017 Al Viro (v...@zeniv.linux.org.uk) wrote: > OK, so it is iov_iter_advance() failing to free the shit allocated, either > due to some breakage in pipe_advance() or buggered 'copied'... Let's > see which one; could you apply the following and run your reproducer? The > o

Re: [PATCH] xen-netback: fix memory leaks on XenBus disconnect

2017-01-13 Thread Wei Liu
On Thu, Jan 12, 2017 at 05:51:56PM +, Igor Druzhinin wrote: > Eliminate memory leaks introduced several years ago by cleaning the queue > resources which are allocated on XenBus connection event. Namely, queue > structure array and pages used for IO rings. > vif->lock is used to protect statist

cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"

2017-01-13 Thread kbuild test robot
Hi Arnd, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 557ed56cc75e0a33c15ba438734a280bac23bd32 commit: a76bcf557ef408b368cf26f52a60865bfc27b632 Kbuild: enable -Wmaybe-uninitialized warning for "make W=1" date:

Re: [PATCH 1/2] dma-mapping: let arch know origin of dma range passed to arch_setup_dma_ops()

2017-01-13 Thread kbuild test robot
-Yushchenko/dma-mapping-let-arch-know-origin-of-dma-range-passed-to-arch_setup_dma_ops/20170113-152733 config: x86_64-randconfig-u0-01131618 (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

[PATCH 3/3] perf sched timehist: Show total wait times for summary

2017-01-13 Thread Namhyung Kim
When --state option is given, the summary will show total run, sleep, iowait, preempt and delay time instead of statistics of runtime. $ perf sched timehist -s --state Wait-time summary comm parent sched-in run-time sleep iowait preempt

[PATCH 2/3] perf sched timehist: Add --state option

2017-01-13 Thread Namhyung Kim
The --state option is to show task state when switched out. The state is printed as a single character like in the /proc but I added 'I' for idle state rather than 'R'. $ perf sched timehist --state | head Samples do not have callchains. timecpu task name

[PATCH 1/3] perf sched timehist: Account thread wait time separately

2017-01-13 Thread Namhyung Kim
Separate thread wait time into 3 parts - sleep, iowait and preempt based on the prev_state of the last event. Cc: David Ahern Signed-off-by: Namhyung Kim --- tools/perf/builtin-sched.c | 50 -- 1 file changed, 44 insertions(+), 6 deletions(-) diff --

[PATCH v3 4/8] x86: stop exporting msr-index.h to userland

2017-01-13 Thread Nicolas Dichtel
Suggested-by: Borislav Petkov Signed-off-by: Nicolas Dichtel --- arch/x86/include/uapi/asm/Kbuild | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/include/uapi/asm/Kbuild b/arch/x86/include/uapi/asm/Kbuild index 3dec769cadf7..1c532b3f18ea 100644 --- a/arch/x86/include/uapi/asm/Kbuild

[PATCH v3 5/8] Makefile.headersinst: cleanup input files

2017-01-13 Thread Nicolas Dichtel
After the last four patches, all exported headers are under uapi/, thus input-files2 are not needed anymore. The side effect is that input-files1-name is exactly header-y. Note also that input-files3-name is genhdr-y. Signed-off-by: Nicolas Dichtel --- scripts/Makefile.headersinst | 34

[PATCH v4 3/3] thermal: zx2967: add thermal driver for ZTE's zx2967 family

2017-01-13 Thread Baoyou Xie
This patch adds thermal driver for ZTE's zx2967 family. Signed-off-by: Baoyou Xie --- drivers/thermal/Kconfig | 6 + drivers/thermal/Makefile | 1 + drivers/thermal/zx2967_thermal.c | 253 +++ 3 files changed, 260 insertions(+) create mod

[PATCH v3 3/8] nios2: put setup.h in uapi

2017-01-13 Thread Nicolas Dichtel
This header file is exported, but from a userland pov, it's just a wrapper to asm-generic/setup.h. Signed-off-by: Nicolas Dichtel --- arch/nios2/include/uapi/asm/Kbuild | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/nios2/include/uapi/asm/Kbuild b/arch/nios2/include/uapi/asm/Kbuild in

[PATCH v4 2/3] MAINTAINERS: add zx2967 thermal drivers to ARM ZTE architecture

2017-01-13 Thread Baoyou Xie
Add the zx2967 thermal drivers as maintained by ARM ZTE architecture maintainers, as they're parts of the core IP. Signed-off-by: Baoyou Xie --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 64f04df..2793808 100644 --- a/MAINTAINERS +++ b/MAINT

RE: [PATCH] xen-netback: fix memory leaks on XenBus disconnect

2017-01-13 Thread Paul Durrant
> -Original Message- > From: Wei Liu [mailto:wei.l...@citrix.com] > Sent: 13 January 2017 10:38 > To: Igor Druzhinin > Cc: Wei Liu ; xen-de...@lists.xenproject.org; Paul > Durrant ; net...@vger.kernel.org; linux- > ker...@vger.kernel.org > Subject: Re: [PATCH] xen-netback: fix memory leaks

[PATCH v3 2/8] h8300: put bitsperlong.h in uapi

2017-01-13 Thread Nicolas Dichtel
This header file is exported, thus move it to uapi. Signed-off-by: Nicolas Dichtel --- arch/h8300/include/asm/bitsperlong.h | 14 -- arch/h8300/include/uapi/asm/bitsperlong.h | 14 ++ 2 files changed, 14 insertions(+), 14 deletions(-) delete mode 100644 arch/h8300/i

Re: [PATCH 4.9 003/116] rtlwifi: Fix enter/exit power_save

2017-01-13 Thread Greg Kroah-Hartman
On Fri, Jan 13, 2017 at 08:42:03AM +0200, Kalle Valo wrote: > Greg Kroah-Hartman writes: > > > On Tue, Jan 10, 2017 at 10:51:56PM +0100, Willy Tarreau wrote: > >> On Tue, Jan 10, 2017 at 03:23:27PM -0600, l...@pengaru.com wrote: > >> > On Tue, Jan 10, 2017 at 09:40:24PM +0100, Greg Kroah-Hartman

[PATCH v3 8/8] uapi: export all arch specifics directories

2017-01-13 Thread Nicolas Dichtel
This patch removes the need of subdir-y. Now all files/directories under arch//include/uapi/ are exported. The only change for userland is the layout of the command 'make headers_install_all': directories asm- are replaced by arch-/. Those new directories contains all files/directories of the spec

[PATCH v3 7/8] uapi: export all headers under uapi directories

2017-01-13 Thread Nicolas Dichtel
Regularly, when a new header is created in include/uapi/, the developer forgets to add it in the corresponding Kbuild file. This error is usually detected after the release is out. In fact, all headers under uapi directories should be exported, thus it's useless to have an exhaustive list. After

Re: [PATCH 1/2] afs: Move UUID struct to linux/uuid.h

2017-01-13 Thread kbuild test robot
Hi David, [auto build test ERROR on linus/master] [also build test ERROR on v4.10-rc3 next-20170113] [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/David-Howells/afs-Move-UUID-struct-to-linux

Re: [PATCH v7 12/15] msi: platform: make platform_msi_create_device_domain() ACPI aware

2017-01-13 Thread Lorenzo Pieralisi
On Wed, Jan 11, 2017 at 11:06:36PM +0800, Hanjun Guo wrote: > platform_msi_create_device_domain() is used to ctreate > irqdomain for the device such as irqchip mbigen generating > the MSIs, it's almost ready for ACPI use except > of_node_to_fwnode() is for dt only, make it ACPI aware then > things

[PATCH v3 6/8] Makefile.headersinst: remove destination-y option

2017-01-13 Thread Nicolas Dichtel
This option was added in commit c7bb349e7c25 ("kbuild: introduce destination-y for exported headers") but never used in-tree. Signed-off-by: Nicolas Dichtel --- Documentation/kbuild/makefiles.txt | 23 --- scripts/Makefile.headersinst | 2 +- 2 files changed, 5 inserti

[PATCH v3 0/8] uapi: export all headers under uapi directories

2017-01-13 Thread Nicolas Dichtel
Here is the v3 of this series. The first 5 patches are just cleanup: some exported headers were still under a non-uapi directory or (x86 case) were wrongly exported. The patch 6 was spotted by code review: there is no in-tree user of this functionality. Patches 7 and 8 remove the need to list expli

Re: [PATCH 1/1] iommu/arm-smmu: Fix for ThunderX erratum #27704

2017-01-13 Thread Tomasz Nowicki
On 12.01.2017 07:41, Tomasz Nowicki wrote: On 11.01.2017 13:19, Robin Murphy wrote: On 11/01/17 11:51, Tomasz Nowicki wrote: The goal of erratum #27704 workaround was to make sure that ASIDs and VMIDs are unique across all SMMU instances on affected Cavium systems. Currently, the workaround co

[PATCH v3 1/8] arm: put types.h in uapi

2017-01-13 Thread Nicolas Dichtel
This header file is exported, thus move it to uapi. Signed-off-by: Nicolas Dichtel --- arch/arm/include/asm/types.h | 40 --- arch/arm/include/uapi/asm/types.h | 40 +++ 2 files changed, 40 insertions(+), 40 deletions(-

[PATCH v4 1/3] dt: bindings: add documentation for zx2967 family thermal sensor

2017-01-13 Thread Baoyou Xie
This patch adds dt-binding documentation for zx2967 family thermal sensor. Signed-off-by: Baoyou Xie Acked-by: Rob Herring Reviewed-by: Shawn Guo --- .../devicetree/bindings/thermal/zx2967-thermal.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentati

Re: [PATCH 1/1] iommu/arm-smmu: Fix for ThunderX erratum #27704

2017-01-13 Thread Robin Murphy
On 13/01/17 10:43, Tomasz Nowicki wrote: > On 12.01.2017 07:41, Tomasz Nowicki wrote: >> On 11.01.2017 13:19, Robin Murphy wrote: >>> On 11/01/17 11:51, Tomasz Nowicki wrote: The goal of erratum #27704 workaround was to make sure that ASIDs and VMIDs are unique across all SMMU instan

Re: [PATCH v3 3/8] nios2: put setup.h in uapi

2017-01-13 Thread Tobias Klauser
On 2017-01-13 at 11:46:41 +0100, Nicolas Dichtel wrote: > This header file is exported, but from a userland pov, it's just a wrapper > to asm-generic/setup.h. > > Signed-off-by: Nicolas Dichtel Reviewed-by: Tobias Klauser

RE: [PATCH net-next v2 05/10] drivers: base: Add device_find_class()

2017-01-13 Thread David Laight
From: Florian Fainelli > Sent: 12 January 2017 22:51 > On 01/12/2017 01:21 PM, David Miller wrote: > > From: Florian Fainelli > > Date: Wed, 11 Jan 2017 19:41:16 -0800 > > > >> Add a helper function to lookup a device reference given a class name. > >> This is a preliminary patch to remove adhoc c

Re: [PATCH 4.8 50/96] firmware: fix usermode helper fallback loading

2017-01-13 Thread Greg Kroah-Hartman
On Fri, Jan 06, 2017 at 10:54:38PM +0100, Yves-Alexis Perez wrote: > On Fri, 2017-01-06 at 22:43 +0100, Greg Kroah-Hartman wrote: > > 4.8-stable review patch.  If anyone has any objections, please let me know. > > Hi Greg, > > Ben Gamari think there was a regression in that patch so I'm adding hi

Re: [RFC 1/6] perf/core: create active and inactive event groups

2017-01-13 Thread Mark Rutland
On Fri, Jan 13, 2017 at 07:20:48AM +, David Carrillo-Cisneros wrote: > On Thu, Jan 12, 2017 at 3:05 AM, Mark Rutland wrote: > > On Tue, Jan 10, 2017 at 12:45:31PM -0800, David Carrillo-Cisneros wrote: > >> >> diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h > >> >> index 47

Re: [RFC] Kernel panic down to swiotlb when doing insmod a simple driver

2017-01-13 Thread Robin Murphy
On 13/01/17 10:00, Shawn Lin wrote: > Hi, > > Sorry for sending this RFC for help as I couldn't find some useful hint > to slove my issue by git-log the swiotlb commit from kernel v4.4 to > v4.9 and I'm also not familar with these stuff. So could you kindly > point me to the right direction to deb

[PATCH 1/4] platform/x86: fujitsu-laptop: simplify acpi_bus_register_driver() error handling

2017-01-13 Thread Michał Kępień
A separate variable is not needed to handle error codes returned by acpi_bus_register_driver(). If the latter fails, just use the value it returned as the value returned by fujitsu_init(). Signed-off-by: Michał Kępień --- drivers/platform/x86/fujitsu-laptop.c | 14 +- 1 file changed

Re: [PATCH] mm/page_alloc: Wait for oom_lock before retrying.

2017-01-13 Thread Petr Mladek
On Fri 2017-01-13 11:28:43, Sergey Senozhatsky wrote: > On (01/12/17 15:18), Petr Mladek wrote: > > On Mon 2016-12-26 20:34:07, Sergey Senozhatsky wrote: > > > console_trylock() used to always forbid rescheduling; but it got changed > > > like a yaer ago. > > > > > > the other thing is... do we re

[GIT PULL] KVM changes for 4.10-rc4

2017-01-13 Thread Paolo Bonzini
Linus, The following changes since commit a121103c922847ba5010819a3f250f1f7fc84ab8: Linux 4.10-rc3 (2017-01-08 14:18:17 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus for you to fetch changes up to 33ab91103b3415e12457e3104f0e451

Re: [PATCH] usb: host: xhci: plat: check hcc_params after add hcd

2017-01-13 Thread Roger Quadros
Hi, On 13/01/17 05:18, William Wu wrote: > From: William wu > > The commit 4ac53087d6d4 ("usb: xhci: plat: Create both > HCDs before adding them") move add hcd to the end of > probe, this cause hcc_params uninitiated, because xHCI > driver sets hcc_params in xhci_gen_setup() called from > usb_ad

[PATCH 0/4] fujitsu_init() cleanup

2017-01-13 Thread Michał Kępień
These patches should make fujitsu_init() a bit more palatable. I intentionally stopped after four patches, because they should do no harm and the next steps require some discussion. The problem I have with this driver is that it is generally oblivious to the user's chosen backlight provider. It

[PATCH 4/4] platform/x86: fujitsu-laptop: cleanup error labels in fujitsu_init()

2017-01-13 Thread Michał Kępień
Error labels currently used in fujitsu_init() are really hard to follow: some (fail_hotkey) indicate which operation has failed, others (fail_sysfs_group) indicate where unrolling should start and the rest (fail_platform_driver) is simply confusing. Change them to follow the pattern used throughou

[PATCH 2/4] platform/x86: fujitsu-laptop: register backlight device in a separate function

2017-01-13 Thread Michał Kępień
Move code responsible for backlight device registration to a separate function in order to simplify error handling and decrease indentation. Simplify initialization of struct backlight_properties. Use KBUILD_MODNAME as device name to avoid repeating the same string literal throughout the module.

[PATCH 3/4] platform/x86: fujitsu-laptop: sync backlight power status in acpi_fujitsu_hotkey_add()

2017-01-13 Thread Michał Kępień
Registering an ACPI driver does not mean the device it handles has to exist. As the code which syncs backlight power status uses call_fext_func(), it needs the FUJ02E3 ACPI device to be present, so ensure that code is only run once the FUJ02E3 device is detected. Signed-off-by: Michał Kępień ---

Re: [PATCHSET v6] blk-mq scheduling framework

2017-01-13 Thread Hannes Reinecke
On 01/13/2017 09:15 AM, Hannes Reinecke wrote: > On 01/11/2017 10:39 PM, Jens Axboe wrote: >> Another year, another posting of this patchset. The previous posting >> was here: >> >> https://www.spinics.net/lists/kernel/msg2406106.html >> >> (yes, I've skipped v5, it was fixes on top of v4, not the

Re: [PATCH 0/2] HID: corsair: fix DMA to stack and info leaks

2017-01-13 Thread Jiri Kosina
On Thu, 12 Jan 2017, Johan Hovold wrote: > These patches fix DMA buffers on stack and information leaks in the > corsair HID driver. > > Note that this series has only been compile tested. Adding Clément to CC, and applying to for-4.10/upstream-fixes branch. Thanks! -- Jiri Kosina SUSE Labs

Re: [PATCH] xen-netback: fix memory leaks on XenBus disconnect

2017-01-13 Thread Igor Druzhinin
On 13/01/17 10:38, Wei Liu wrote: > On Thu, Jan 12, 2017 at 05:51:56PM +, Igor Druzhinin wrote: >> Eliminate memory leaks introduced several years ago by cleaning the queue >> resources which are allocated on XenBus connection event. Namely, queue >> structure array and pages used for IO rings.

[PATCH] iommu/dma: Add support for DMA_ATTR_FORCE_CONTIGUOUS

2017-01-13 Thread Geert Uytterhoeven
Add support for DMA_ATTR_FORCE_CONTIGUOUS to the generic IOMMU DMA code. This allows to allocate physically contiguous DMA buffers on arm64 systems with an IOMMU. Note that as this uses the CMA allocator, setting this attribute has a runtime-dependency on CONFIG_DMA_CMA, just like on arm32. For a

Re: [PATCH] fuse: clear FR_PENDING flag when moving requests out of pending queue

2017-01-13 Thread Miklos Szeredi
On Thu, Jan 12, 2017 at 9:04 PM, Tahsin Erdogan wrote: > fuse_abort_conn() moves requests from pending list to a temporary list > before canceling them. This operation races with request_wait_answer() > which also tries to remove the request after it gets a fatal signal. It > checks FR_PENDING fla

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-13 Thread Ulf Hansson
[...] >>> > >>> > In the meantime, I will follow the process of Haibo Chen's debugging >>> > around the voltage switch issue and look into what Dong's suggesting >>> > around this may be. >>> > >>> > Just to be clear, I would definitely prefer a fix in the sdhci driver, >>> >>> yup, I prefer to fi

Re: [PATCH] mm/page_alloc: Wait for oom_lock before retrying.

2017-01-13 Thread Petr Mladek
On Fri 2017-01-13 11:52:55, Sergey Senozhatsky wrote: > On (01/12/17 14:10), Petr Mladek wrote: > [..] > > > /** > > > * console_lock - lock the console system for exclusive use. > > > * > > > @@ -2316,7 +2321,7 @@ EXPORT_SYMBOL(console_unlock); > > > */ > > > void __sched console_condition

Re: [PATCH 08/10] blk-mq-sched: add framework for MQ capable IO schedulers

2017-01-13 Thread Hannes Reinecke
On 01/11/2017 10:40 PM, Jens Axboe wrote: > This adds a set of hooks that intercepts the blk-mq path of > allocating/inserting/issuing/completing requests, allowing > us to develop a scheduler within that framework. > > We reuse the existing elevator scheduler API on the registration > side, but a

Re: [PATCH] mm/page_alloc: Wait for oom_lock before retrying.

2017-01-13 Thread Petr Mladek
On Fri 2017-01-13 12:53:07, Sergey Senozhatsky wrote: > On (01/13/17 11:52), Sergey Senozhatsky wrote: > [..] > > and we really don't want to cond_resched() when we are in panic. > > that's why console_flush_on_panic() sets it to zero explicitly. > > > > console_trylock() checks oops_in_progress,

Re: kvm: WARNING in mmu_spte_clear_track_bits

2017-01-13 Thread Dmitry Vyukov
On Tue, Dec 13, 2016 at 8:50 PM, Dmitry Vyukov wrote: > Hello, > > The following program: > https://gist.githubusercontent.com/dvyukov/23d8bd622fd526d7701ac2057bbbc9c2/raw/aacd20451e6f460232f5e1da262b653fb3155613/gistfile1.txt > > leads to WARNING in mmu_spte_clear_track_bits and later to splash o

Re: 4.9.0 regression in pipe-backed iov_iter with systemd-nspawn

2017-01-13 Thread Al Viro
On Fri, Jan 13, 2017 at 10:20:19AM +, Al Viro wrote: > OK, so it is iov_iter_advance() failing to free the shit allocated, either > due to some breakage in pipe_advance() or buggered 'copied'... Let's > see which one; could you apply the following and run your reproducer? The > only differen

Re: [PATCH] arm64/mm: use phys_addr_t

2017-01-13 Thread Catalin Marinas
On Fri, Jan 13, 2017 at 01:59:35PM +0800, miles.c...@mediatek.com wrote: > From: Miles Chen > > Use phys_addr_t instead of unsigned long for the > return value of __pa(), make code easy to understand. > > Signed-off-by: Miles Chen > --- > arch/arm64/mm/mmu.c | 4 ++-- > 1 file changed, 2 inser

linux 4.9 breaks pctv452e

2017-01-13 Thread Wolfgang Rohdewald
this OOPS always happens with 4.9. up to 4.9.3 all 4.8.x versions work fine. Disabling VMAP_STACK does not fix it. [9.043616] dvb-usb: found a 'Technotrend TT Connect S2-3600' in warm state. [9.043619] pctv452e: pctv452e_power_ctrl: 1 [9.051329] BUG: unable to handle kernel NULL po

Re: [PATCH] arm64/mm: use phys_addr_t

2017-01-13 Thread Mark Rutland
On Fri, Jan 13, 2017 at 01:59:35PM +0800, miles.c...@mediatek.com wrote: > From: Miles Chen > > Use phys_addr_t instead of unsigned long for the > return value of __pa(), make code easy to understand. > > Signed-off-by: Miles Chen This looks sensible to me. It's consistent with the types these

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-13 Thread Ulf Hansson
[...] > Hi Ulf and Shawn, > > Aisheng and I debug this issue these days, and we find the root cause. There > are two things > to describe. > > 1) voltage switch issue. The properity "no-1-8-v" do not work for > MMC_TIMING_MMC_DDR52. > This is another bug, we need to fix, but has no relation wi

Re: [RFC] Kernel panic down to swiotlb when doing insmod a simple driver

2017-01-13 Thread Ard Biesheuvel
On 13 January 2017 at 11:03, Robin Murphy wrote: > On 13/01/17 10:00, Shawn Lin wrote: >> Hi, >> >> Sorry for sending this RFC for help as I couldn't find some useful hint >> to slove my issue by git-log the swiotlb commit from kernel v4.4 to >> v4.9 and I'm also not familar with these stuff. So c

Re: 4.9.0 regression in pipe-backed iov_iter with systemd-nspawn

2017-01-13 Thread Al Viro
On Fri, Jan 13, 2017 at 10:32:47AM +, Alan J. Wylie wrote: > # dmesg | tail > ... > [ 141.553455] nr: 0->16, cur: 5->5, buffers: 16->16 > [ 141.553461] copied: 0, count:2147479552, idx:5, offs:0 OK, that looks like pipe_advance() fencepost (hopefully) dealt with in the lib/iov_iter.c patch

Re: [PATCH] rcu: Narrow early boot window of illegal synchronous grace periods

2017-01-13 Thread Borislav Petkov
On Thu, Jan 12, 2017 at 06:38:07PM -0800, Paul E. McKenney wrote: > The current preemptible RCU implementation goes through three phases > during bootup. In the first phase, there is only one CPU that is running > with preemption disabled, so that a no-op is a synchronous grace period. > In the se

Re: [PATCH v4 3/5] powerpc/fadump: remove dependency with CONFIG_KEXEC

2017-01-13 Thread Mahesh Jagannath Salgaonkar
On 01/05/2017 11:02 PM, Hari Bathini wrote: > Now that crashkernel parameter parsing and vmcoreinfo related code is > moved under CONFIG_CRASH_CORE instead of CONFIG_KEXEC_CORE, remove > dependency with CONFIG_KEXEC for CONFIG_FA_DUMP. While here, get rid > of definitions of fadump_append_elf_note(

Re: [PATCH] arm64/mm: use phys_addr_t

2017-01-13 Thread Ard Biesheuvel
On 13 January 2017 at 11:22, Mark Rutland wrote: > On Fri, Jan 13, 2017 at 01:59:35PM +0800, miles.c...@mediatek.com wrote: >> From: Miles Chen >> >> Use phys_addr_t instead of unsigned long for the >> return value of __pa(), make code easy to understand. >> >> Signed-off-by: Miles Chen > > This

Re: [PATCH v2 16/26] IB/IPoIB: Inline ib_dma_map_*() functions

2017-01-13 Thread Yuval Shaia
On Thu, Jan 12, 2017 at 11:07:08AM -0800, Bart Van Assche wrote: > Signed-off-by: Bart Van Assche > Reviewed-by: Christoph Hellwig > Reviewed-by: Sagi Grimberg > --- > drivers/infiniband/ulp/ipoib/ipoib_cm.c | 34 +++--- > drivers/infiniband/ulp/ipoib/ipoib_ib.c | 42 >

Re: linux 4.9 breaks pctv452e

2017-01-13 Thread Greg KH
On Fri, Jan 13, 2017 at 12:15:05PM +0100, Wolfgang Rohdewald wrote: > this OOPS always happens with 4.9. up to 4.9.3 > > all 4.8.x versions work fine. Ick. Any chance you can use 'git bisect' to determine which commit broke this for you? thanks, greg k-h

[PATCH 4.4 01/27] netvsc: reduce maximum GSO size

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: stephen hemminger [ Upstream commit a50af86dd49ee1851d1ccf06dd0019c05b95e297 ] Hyper-V (and Azure) support using NVGRE which requires some extra space for encapsulation headers. Because of thi

[PATCH 4.4 02/27] ser_gigaset: return -ENOMEM on error instead of success

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter [ Upstream commit 93a97c50cbf1c007caf12db5cc23e0d5b9c8473c ] If we can't allocate the resources in gigaset_initdriver() then we should return -ENOMEM instead of zero. Fixes: 286

[PATCH 4.4 00/27] 4.4.43-stable review

2017-01-13 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.4.43 release. There are 27 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sun Jan 15 11:36:57 UTC 2017. Anything receive

[PATCH 4.4 16/27] gro: use min_t() in skb_gro_reset_offset()

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 7cfd5fd5a9813f1430290d20c0fead9b4582a307 ] On 32bit arches, (skb->end - skb->data) is not 'unsigned int', so we shall use min_t() instead of min() to avoid a com

[PATCH 4.4 26/27] ALSA: usb-audio: Add a quirk for Plantronics BT600

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Dennis Kadioglu commit 2e40795c3bf344cfb5220d94566205796e3ef19a upstream. Plantronics BT600 does not support reading the sample rate which leads to many lines of "cannot get freq at ep 0x1" and

[PATCH 4.4 06/27] net: stmmac: Fix race between stmmac_drv_probe and stmmac_open

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Florian Fainelli [ Upstream commit 5701659004d68085182d2fd4199c79172165fa65 ] There is currently a small window during which the network device registered by stmmac can be made visible, yet al

[PATCH 4.4 07/27] net/mlx5: Check FW limitations on log_max_qp before setting it

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Noa Osherovich [ Upstream commit 883371c453b937f9eb581fb4915210865982736f ] When setting HCA capabilities, set log_max_qp to be the minimum between the selected profile's value and the HCA lim

[PATCH 4.4 12/27] ipv4: Do not allow MAIN to be alias for new LOCAL w/ custom rules

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Duyck [ Upstream commit 5350d54f6cd12eaff623e890744c79b700bd3f17 ] In the case of custom rules being present we need to handle the case of the LOCAL table being intialized after the

[PATCH 4.4 11/27] igmp: Make igmp group member RFC 3376 compliant

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Michal Tesar [ Upstream commit 7ababb782690e03b78657e27bd051e20163af2d6 ] 5.2. Action on Reception of a Query When a system receives a Query, it does not respond immediately. Instead, it de

[PATCH 4.4 10/27] drop_monitor: consider inserted data in genlmsg_end

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Reiter Wolfgang [ Upstream commit 3b48ab2248e61408910e792fe84d6ec466084c1a ] Final nlmsg_len field update must reflect inserted net_dm_drop_point data. This patch depends on previous patch: "

[PATCH 4.4 09/27] drop_monitor: add missing call to genlmsg_end

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Reiter Wolfgang [ Upstream commit 4200462d88f47f3759bdf4705f87e207b0f5b2e4 ] Update nlmsg_len field with genlmsg_end to enable userspace processing using nlmsg_next helper. Also adds error han

[PATCH 4.4 04/27] ipv6: handle -EFAULT from skb_copy_bits

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Dave Jones [ Upstream commit a98f91758995cb59611e613188a6956b52c3 ] By setting certain socket options on ipv6 raw sockets, we can confuse the length calculation in rawv6_push_pending_frame

[PATCH 4.4 24/27] ARM: OMAP4+: Fix bad fallthrough for cpuidle

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Tony Lindgren commit cbf2642872333547b56b8c4d943f5ed04ac9a4ee upstream. We don't want to fall through to a bunch of errors for retention if PM_OMAP4_CPU_OSWR_DISABLE is not configured for a SoC

[PATCH 4.4 14/27] r8152: fix rx issue for runtime suspend

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: hayeswang [ Upstream commit 75dc692eda114cb234a46cb11893a9c3ea520934 ] Pause the rx and make sure the rx fifo is empty when the autosuspend occurs. If the rx data comes when the driver is can

[PATCH 4.4 22/27] powerpc: Fix build warning on 32-bit PPC

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Larry Finger commit 8ae679c4bc2ea2d16d92620da8e3e9332fa4039f upstream. I am getting the following warning when I build kernel 4.9-git on my PowerBook G4 with a 32-bit PPC processor: AS

[PATCH 4.4 03/27] net: vrf: Drop conntrack data after pass through VRF device on Tx

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: David Ahern [ Upstream commit eb63ecc1706b3e094d0f57438b6c2067cfc299f2 ] Locally originated traffic in a VRF fails in the presence of a POSTROUTING rule. For example, $ iptables -t nat -A

[PATCH 4.4 18/27] net: ipv4: Fix multipath selection with vrf

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: David Ahern [ Upstream commit 7a18c5b9fb31a999afc62b0e60978aa896fc89e9 ] fib_select_path does not call fib_select_multipath if oif is set in the flow struct. For VRF use cases oif is always se

[PATCH 4.4 19/27] net: vrf: do not allow table id 0

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: David Ahern [ Upstream commit 24c63bbc18e25d5d8439422aa5fd2d66390b88eb ] Frank reported that vrf devices can be created with a table id of 0. This breaks many of the run time table id checks a

[PATCH 4.4 15/27] gro: Enter slow-path if there is no tailroom

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Herbert Xu [ Upstream commit 1272ce87fa017ca4cf32920764d879656b7a005a ] The GRO path has a fast-path where we avoid calling pskb_may_pull and pskb_expand by directly accessing frag0. However,

[PATCH 4.4 17/27] gro: Disable frag0 optimization on IPv6 ext headers

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Herbert Xu [ Upstream commit 57ea52a865144aedbcd619ee0081155e658b6f7d ] The GRO fast path caches the frag0 address. This address becomes invalid if frag0 is modified by pskb_may_pull or its v

[PATCH 4.4 13/27] r8152: split rtl8152_suspend function

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: hayeswang [ Upstream commit 8fb280616878b81c0790a0c33acbeec59c5711f4 ] Split rtl8152_suspend() into rtl8152_system_suspend() and rtl8152_rumtime_suspend(). Signed-off-by: Hayes Wang Signed-o

[PATCH 4.4 27/27] mm/init: fix zone boundary creation

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Oliver O'Halloran commit 90cae1fe1c3540f791d5b8e025985fa5e699b2bb upstream. As a part of memory initialisation the architecture passes an array to free_area_init_nodes() which specifies the max

Re: [PATCH] iommu/dma: Add support for DMA_ATTR_FORCE_CONTIGUOUS

2017-01-13 Thread Robin Murphy
On 13/01/17 11:07, Geert Uytterhoeven wrote: > Add support for DMA_ATTR_FORCE_CONTIGUOUS to the generic IOMMU DMA code. > This allows to allocate physically contiguous DMA buffers on arm64 > systems with an IOMMU. Can anyone explain what this attribute is actually used for? I've never quite figure

[PATCH 4.4 21/27] ALSA: firewire-tascam: Fix to handle error from initialization of stream data

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Sakamoto commit 6a2a2f45560a9cb7bc49820883b042e44f83726c upstream. This module has a bug not to return error code in a case that data structure for transmitted packets fails to be initi

[PATCH 4.4 20/27] HID: hid-cypress: validate length of report

2017-01-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Greg Kroah-Hartman commit 1ebb71143758f45dc0fa76e2f48429e13b16d110 upstream. Make sure we have enough of a report structure to validate before looking at it. Reported-by: Benoit Camredon Test

<    1   2   3   4   5   6   7   8   9   >