Re: [PATCH 6/8] block: add scalable completion tracking of requests

2016-11-08 Thread Jan Kara
On Tue 01-11-16 15:08:49, Jens Axboe wrote: > For legacy block, we simply track them in the request queue. For > blk-mq, we track them on a per-sw queue basis, which we can then > sum up through the hardware queues and finally to a per device > state. > > The stats are tracked in, roughly, 0.1s in

Re: [PATCH] net: mii: report 0 for unknown lp_advertising

2016-11-08 Thread Arnd Bergmann
On Tuesday, November 8, 2016 2:31:38 PM CET Arnd Bergmann wrote: > The newly introduced mii_ethtool_get_link_ksettings function sets > lp_advertising to an uninitialized value when BMCR_ANENABLE is not > set: > > drivers/net/mii.c: In function 'mii_ethtool_get_link_ksettings': > drivers/net/mii.c:

Re: [alsa-devel] [PATCH 2/9] ALSA: ac97: add an ac97 bus

2016-11-08 Thread Lars-Peter Clausen
On 10/26/2016 09:41 PM, Robert Jarzmik wrote: > AC97 is a bus for sound usage. It enables for a AC97 AC-Link to link one > controller to 0 to 4 AC97 codecs. > > The goal of this new implementation is to implement a device/driver > model for AC97, with an automatic scan of the bus and automatic > d

[PATCH] ASoC: lpass-platform: initialize dma channel number

2016-11-08 Thread Arnd Bergmann
A bugfix accidentally removed the implicit initialization of the dma channel number, causing undefined behavior when v->alloc_dma_channel is NULL: sound/soc/qcom/lpass-platform.c: In function ‘lpass_platform_pcmops_open’: sound/soc/qcom/lpass-platform.c:83:29: error: ‘dma_ch’ may be used uninitia

Re: [PATCH 7/8] blk-wbt: add general throttling mechanism

2016-11-08 Thread Jan Kara
On Tue 01-11-16 15:08:50, Jens Axboe wrote: > We can hook this up to the block layer, to help throttle buffered > writes. > > wbt registers a few trace points that can be used to track what is > happening in the system: > > wbt_lat: 259:0: latency 2446318 > wbt_stat: 259:0: rmean=2446318, rmin=24

[net-next PATCH] amd-xgbe: use __maybe_unused to hide pm functions

2016-11-08 Thread Arnd Bergmann
The amd-xgbe ethernet driver hides its suspend/resume functions in #ifdef CONFIG_PM, but uses SIMPLE_DEV_PM_OPS() to make the reference conditional on CONFIG_PM_SLEEP, which results in a warning when PM_SLEEP is not set but PM is: drivers/net/ethernet/amd/xgbe/xgbe-platform.c:553:12: error: 'xgbe

RE: [Xen PATCH] xen-netback: fix error handling output

2016-11-08 Thread Paul Durrant
> -Original Message- > From: Arnd Bergmann [mailto:a...@arndb.de] > Sent: 08 November 2016 13:35 > To: David Vrabel > Cc: Arnd Bergmann ; Wei Liu ; Paul > Durrant ; David S. Miller > ; Juergen Gross ; Filipe Manco > ; xen-de...@lists.xenproject.org; > net...@vger.kernel.org; linux-kernel@v

Re: [PATCH 8/8] block: hook up writeback throttling

2016-11-08 Thread Jan Kara
On Tue 01-11-16 15:08:51, Jens Axboe wrote: > Enable throttling of buffered writeback to make it a lot > more smooth, and has way less impact on other system activity. > Background writeback should be, by definition, background > activity. The fact that we flush huge bundles of it at the time > mea

Re: -fno-PIE, take #3

2016-11-08 Thread Borislav Petkov
On Fri, Nov 04, 2016 at 07:39:37PM +0100, Sebastian Andrzej Siewior wrote: > Debian gcc's is nowdays compiled with --enable-default-pie which means it does Ho humm, there it is: $ gcc -### /usr/include/stdlib.h 2>&1 | grep -o -- "--enable-default-pie" --enable-default-pie For all three: Tested-

[PATCH] drm: mali-dp: Add support for setting plane's rotation property from userspace.

2016-11-08 Thread Liviu Dudau
In order to support DRM_IOCTL_MODE_OBJ_SETPROPERTY for the rotation property we need to have a ->set_property hook defined for the planes. Set the plane's ->set_property hook to drm_atomic_helper_plane_set_property() Signed-off-by: Liviu Dudau --- drivers/gpu/drm/arm/malidp_planes.c | 1 + 1 fil

[PATCH] ACPI / gpio: avoid warning for gpio hogging code

2016-11-08 Thread Arnd Bergmann
The newly added acpi_gpiochip_scan_gpios function produces a few harmless warnings: drivers/gpio/gpiolib-acpi.c: In function ‘acpi_gpiochip_add’: drivers/gpio/gpiolib-acpi.c:925:7: error: ‘dflags’ may be used uninitialized in this function [-Werror=maybe-uninitialized] drivers/gpio/gpiolib-acpi.c

Re: [PATCH 0/4] perf tools: Assorted fixes for hierarchy mode

2016-11-08 Thread Markus Trippelsdorf
On 2016.11.08 at 22:08 +0900, Namhyung Kim wrote: > > This patches fix problems in hierarchy output Markus reported some > time ago. The code is available on the 'perf/hierarchy-fix-v1' branch > in my tree: > > git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git > > Any feed

[PATCH] x86/intel_rdt: fix rdt_mount error handling

2016-11-08 Thread Arnd Bergmann
The newly introduced rdt_mount function returns an unintialized pointer if rdtgroup_create_info_dir() fails: arch/x86/kernel/cpu/intel_rdt_rdtgroup.c: In function ‘rdt_mount’: arch/x86/kernel/cpu/intel_rdt_rdtgroup.c:710:9: error: ‘dentry’ may be used uninitialized in this function [-Werror=maybe

[PATCH] spi: rspi: avoid uninitialized variable access

2016-11-08 Thread Arnd Bergmann
The newly introduced rspi_pio_transfer_in_or_our() function must take either a valid 'rx' or 'tx' pointer, and has undefined behavior if both are NULL, as found by 'gcc -Wmaybe-unintialized': drivers/spi/spi-rspi.c: In function 'rspi_pio_transfer_in_or_our': drivers/spi/spi-rspi.c:558:5: error: 'l

Re: [PATCH v1 03/11] drivers: soc: hisi: Add support for Hisilicon Djtag driver

2016-11-08 Thread Anurup M
On Tuesday 08 November 2016 05:13 PM, Arnd Bergmann wrote: On Tuesday, November 8, 2016 1:08:31 PM CET Anurup M wrote: On Tuesday 08 November 2016 12:32 PM, Tan Xiaojun wrote: On 2016/11/7 21:26, Arnd Bergmann wrote: On Wednesday, November 2, 2016 11:42:46 AM CET Anurup M wrote: From: Ta

Re: [PATCH] ceph: fix printing wrong return variable in ceph_direct_read_write()

2016-11-08 Thread Ilya Dryomov
On Tue, Nov 8, 2016 at 10:16 AM, Zhi Zhang wrote: > Fix printing wrong return variable for invalidate_inode_pages2_range > in ceph_direct_read_write(). > > Signed-off-by: Zhi Zhang > --- > fs/ceph/file.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/ceph/file.c b/fs

[PATCH] dmaengine: qcom_hidma: hide MSI handler when unused

2016-11-08 Thread Arnd Bergmann
The newly added MSI support causes a harmless warning when MSI is disabled: drivers/dma/qcom/hidma.c:558:20: error: 'hidma_chirq_handler_msi' defined but not used [-Werror=unused-function] This adds another #ifdef to match that around the users of the function. Fixes: 1c0e3e82a7fb ("dmaengine:

[PATCH] bus: tegra-gmi: fix build error

2016-11-08 Thread Arnd Bergmann
The newly added driver fails to build right away: drivers/bus/tegra-gmi.c: In function 'tegra_gmi_parse_dt': drivers/bus/tegra-gmi.c:97:11: error: 'dev' undeclared (first use in this function) I guess a last-minute change removed a local variable, this adds the obvious definiton. Fixes: 4f95e6a

Re: [PATCH 2/2] pinctrl: tegra: Add driver to configure voltage and power of io pads

2016-11-08 Thread Laxman Dewangan
On Tuesday 08 November 2016 06:59 PM, Linus Walleij wrote: On Tue, Nov 8, 2016 at 11:20 AM, Laxman Dewangan wrote: On Tuesday 08 November 2016 03:45 PM, Linus Walleij wrote: If you can *actually* change the volatage, it needs to be modeled as a (fixed voltage?) regulator, not as a custom prop

[PATCH] drm/amdgpu/powerplay/smu7: fix unintialized data usage

2016-11-08 Thread Arnd Bergmann
A recent bugfix replaced an out-of-bounds access with direct use of unintialized data: drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c: In function 'smu7_patch_limits_vddc': drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c:2033:6: error: 'vddc' may be used uninitialized in this function [-Werro

Re: [PATCH] iommu/dma-iommu: properly respect configured address space size

2016-11-08 Thread Marek Szyprowski
Hi Robin, On 2016-11-08 12:37, Robin Murphy wrote: On 07/11/16 13:06, Marek Szyprowski wrote: When one called iommu_dma_init_domain() with size smaller than device's DMA mask, the alloc_iova() will not respect it and always assume that all IOVA addresses will be allocated from the the (base ..

Re: [PATCH] drbd: Fix kernel_sendmsg() usage

2016-11-08 Thread Richard Weinberger
Lars, On 08.11.2016 14:43, Lars Ellenberg wrote: > From 3a5859e696178e31a25e65de58c461046fc52beb Mon Sep 17 00:00:00 2001 > From: Richard Weinberger > Date: Tue, 8 Nov 2016 11:43:09 +0100 > Subject: [PATCH] drbd: Fix kernel_sendmsg() usage - potential NULL deref > drbd: Fix kernel_sendmsg() usage

Re: [PATCH v11 05/22] vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_ops

2016-11-08 Thread Kirti Wankhede
On 11/8/2016 1:06 AM, Alex Williamson wrote: > On Sat, 5 Nov 2016 02:40:39 +0530 > Kirti Wankhede wrote: > ... >> +int vfio_pin_pages(struct device *dev, unsigned long *user_pfn, >> + int npage, int prot, unsigned long *phys_pfn) >> +{ >> +struct vfio_container *container; >>

Re: [PATCH v1 03/11] drivers: soc: hisi: Add support for Hisilicon Djtag driver

2016-11-08 Thread John Garry
On 08/11/2016 11:45, Arnd Bergmann wrote: On Tuesday, November 8, 2016 11:23:35 AM CET John Garry wrote: On 07/11/2016 20:08, Arnd Bergmann wrote: On Monday, November 7, 2016 2:15:10 PM CET John Garry wrote: Hi Arnd, The new bus type tries to model the djtag in a similar way to I2C/USB drive

Re: [PATCH 00/32] Create an User's manual and improve development-process book

2016-11-08 Thread Daniel Vetter
On Thu, Oct 27, 2016 at 08:40:56PM -0200, Mauro Carvalho Chehab wrote: > Em Thu, 27 Oct 2016 14:36:07 -0600 > Jonathan Corbet escreveu: > > > On Thu, 27 Oct 2016 13:17:33 -0700 > > Andrew Morton wrote: > > > > > > This patch series continues the efforts of converting the Linux Kernel > > > > do

Re:

2016-11-08 Thread vaserman
-- I need your help

[PATCH v3 2/2] arm64: Support systems without FP/ASIMD

2016-11-08 Thread Suzuki K Poulose
The arm64 kernel assumes that FP/ASIMD units are always present and accesses the FP/ASIMD specific registers unconditionally. This could cause problems when they are absent. This patch adds the support for kernel handling systems without FP/ASIMD by skipping the register access within the kernel. F

[PATCH v3 1/2] arm64: Add hypervisor safe helper for checking constant capabilities

2016-11-08 Thread Suzuki K Poulose
The hypervisor may not have full access to the kernel data structures and hence cannot safely use cpus_have_cap() helper for checking the system capability. Add a safe helper for hypervisors to check a constant system capability, which *doesn't* fall back to checking the bitmap maintained by the ke

[PATCH] drm/nouveau: fix LEDS_CLASS=m configuration

2016-11-08 Thread Arnd Bergmann
The newly introduced LED handling for nouveau fails to link when the driver is built-in but the LED subsystem is a loadable module: drivers/gpu/drm/nouveau/nouveau.o: In function `nouveau_do_suspend': tvnv17.c:(.text.nouveau_do_suspend+0x10): undefined reference to `nouveau_led_suspend' drivers/g

[PATCH v3 0/2] arm64: Support systems without FP/ASIMD

2016-11-08 Thread Suzuki K Poulose
This series adds supports to the kernel and KVM hyp to handle systems without FP/ASIMD properly. At the moment the kernel doesn't check if the FP unit is available before accessing the registers (e.g during context switch). Also for KVM, we trap the FP/ASIMD accesses and handle it by injecting an u

Re: [PATCH v2 2/2] cpufreq: powernv: Use PMCR to verify global and local pstate

2016-11-08 Thread Akshay Adiga
Thanks gautham for the review. Good point, I have made the macros more generic in the next version as you have mentioned. I will post a separate patch to set pstates using these macros. :) On 11/08/2016 09:10 AM, Gautham R Shenoy wrote: On Mon, Nov 07, 2016 at 01:09:09PM +0530, Akshay Adiga

Re: [PATCH v2] led: core: Use atomic bit-field for the blink-flags

2016-11-08 Thread Jacek Anaszewski
On 11/08/2016 02:58 PM, Jacek Anaszewski wrote: From: Hans de Goede All the LED_BLINK* flags are accessed read-modify-write from e.g. led_set_brightness and led_blink_set_oneshot while both set_brightness_work and the blink_timer may be running. If these race then the modify step done by one o

[PATCH v2] led: core: Use atomic bit-field for the blink-flags

2016-11-08 Thread Jacek Anaszewski
From: Hans de Goede All the LED_BLINK* flags are accessed read-modify-write from e.g. led_set_brightness and led_blink_set_oneshot while both set_brightness_work and the blink_timer may be running. If these race then the modify step done by one of them may be lost, switch the LED_BLINK* flags to

[PATCH 1/2] iio: gyro: mpu3050: remove duplicate initializer

2016-11-08 Thread Arnd Bergmann
The newly added mpu3050 driver has two initializations for the module owner, which causes a warning for 'make W=1': include/linux/export.h:37:21: error: initialized field overwritten [-Werror=override-init] drivers/iio/gyro/mpu3050-core.c:749:19: note: in expansion of macro 'THIS_MODULE' This r

[PATCH] drm/i915: avoid harmless empty-body warning

2016-11-08 Thread Arnd Bergmann
The newly added assert_kernel_context_is_current introduces a warning when built with W=1: drivers/gpu/drm/i915/i915_gem.c: In function ‘assert_kernel_context_is_current’: drivers/gpu/drm/i915/i915_gem.c:4417:63: error: suggest braces around empty body in an ‘else’ statement [-Werror=empty-body]

[PATCH 2/2] iio: gyro: mpu3050: add I2C dependency

2016-11-08 Thread Arnd Bergmann
The new mpu3050 driver fails to build if I2C is disabled: drivers/iio/built-in.o: In function `mpu3050_i2c_driver_exit': mpu3050-i2c.c:(.exit.text+0x17f): undefined reference to `i2c_del_driver' drivers/iio/built-in.o: In function `mpu3050_i2c_driver_init': mpu3050-i2c.c:(.init.text+0x215): undefi

[PATCH] staging: iio: tsl2583: fix unused function warning

2016-11-08 Thread Arnd Bergmann
Removing a call to the taos_chip_off() makes it unused when CONFIG_PM is disabled: drivers/staging/iio/light/tsl2583.c:438:12: error: ‘taos_chip_off’ defined but not used [-Werror=unused-function] This removes all the #ifdef in this file, and marks the PM functions as __maybe_unused instead, whi

[PATCH] MAINTAINERS: Claim atomic*_t maintainership

2016-11-08 Thread Peter Zijlstra
Since Will and me have rewritten and heavily extended the atomic*_t infrastructure over the past few years, claim ownership of it. We would also like to add Boqun as he helped out with PowerPC and has shown good understanding of these bits. We would still defer to architecture maintainers on imp

Re: [PATCH] sched/rt: RT_RUNTIME_GREED sched feature

2016-11-08 Thread Steven Rostedt
On Tue, 8 Nov 2016 12:59:58 +0100 Peter Zijlstra wrote: > No, none of this stands a chance of being accepted. > > This is making bad code worse. Peter, Instead of a flat out rejection, can you please provide some constructive criticism to let those that are working on this know what would be a

Re: [PATCH v2] ARC: [plat-eznps] set default baud for early console

2016-11-08 Thread Alexey Brodkin
Hi Noam, On Tue, 2016-11-08 at 15:20 +0200, Noam Camus wrote: > From: Noam Camus > > For CONFIG_SERIAL_EARLYCON we need 800MHz for NPS SoC > The early console driver uses BASE_BAUD and not using dtb. > > The default of 50MHz is NOT good for NPS SoC. > > Signed-off-by: Noam Camus Could you pl

Re: [PATCH] drbd: Fix kernel_sendmsg() usage

2016-11-08 Thread Christoph Lechleitner
Am 2016-11-08 um 14:43 schrieb Lars Ellenberg: > From 3a5859e696178e31a25e65de58c461046fc52beb Mon Sep 17 00:00:00 2001 > From: Richard Weinberger > Date: Tue, 8 Nov 2016 11:43:09 +0100 > Subject: [PATCH] drbd: Fix kernel_sendmsg() usage - potential NULL deref > drbd: Fix kernel_sendmsg() usage -

Re: [PATCH v2 0/2] arm64: fix the bugs found in the hugetlb test

2016-11-08 Thread Catalin Marinas
On Tue, Nov 08, 2016 at 01:44:37PM +0800, Huang Shijie wrote: > (3) The test result in the Softiron and Juno-r1 boards: > >This detail test result shows below (both the "make func" & "make stress"): > > 4KB granule: > > 1.1) PTE + Contiguous bit : 4K x 16 = 64K (per huge page siz

[PATCH] staging: iio: ad9832: allocate data before using

2016-11-08 Thread Arnd Bergmann
The regulator changes assigned data to an uninitialized pointer: drivers/staging/iio/frequency/ad9832.c: In function 'ad9832_probe': drivers/staging/iio/frequency/ad9832.c:214:11: error: 'st' may be used uninitialized in this function [-Werror=maybe-uninitialized] This moves the allocation of th

Re: [PATCH] ACPI / gpio: avoid warning for gpio hogging code

2016-11-08 Thread Mika Westerberg
On Tue, Nov 08, 2016 at 02:40:06PM +0100, Arnd Bergmann wrote: > The newly added acpi_gpiochip_scan_gpios function produces a few harmless > warnings: > > drivers/gpio/gpiolib-acpi.c: In function ‘acpi_gpiochip_add’: > drivers/gpio/gpiolib-acpi.c:925:7: error: ‘dflags’ may be used uninitialized >

Re: [PATCH] Doc: update kselftest.txt with details on how to run tests after install

2016-11-08 Thread Daniel Vetter
On Mon, Nov 07, 2016 at 01:24:14PM -0700, Shuah Khan wrote: > Update kselftest.txt with details on how to run tests after install. > > Signed-off-by: Shuah Khan > --- > Documentation/kselftest.txt | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git a/Documentation/kselftest.txt

Re: [PATCH] USB: serial: fix invalid user-pointer checks

2016-11-08 Thread Oliver Neukum
On Tue, 2016-11-08 at 13:26 +0100, Johan Hovold wrote: > Drop invalid user-pointer checks from ioctl handlers. > > A NULL-pointer can be valid in user space and copy_to_user() takes > care > of sanity checking. Shouldn't we bail out early in these cases? Regards Oliver

Re: [PATCH v2] ARC: [plat-eznps] set default baud for early console

2016-11-08 Thread Alexey Brodkin
Hi Noam, On Tue, 2016-11-08 at 14:13 +, Noam Camus wrote: > > > > From: Alexey Brodkin [mailto:alexey.brod...@synopsys.com]  > > Sent: Tuesday, November 8, 2016 4:08 PM > > > > > Could you please provide a changelog (v1 -> v2) so reviewers may have a > > hint about changes you made if any.

Re: [PATCH v11 09/22] vfio iommu type1: Add task structure to vfio_dma

2016-11-08 Thread Kirti Wankhede
On 11/8/2016 2:33 AM, Alex Williamson wrote: > On Sat, 5 Nov 2016 02:40:43 +0530 > Kirti Wankhede wrote: > ... >> static int vfio_dma_do_map(struct vfio_iommu *iommu, >> struct vfio_iommu_type1_dma_map *map) >> { >> dma_addr_t iova = map->iova; >> unsigned

Re: [PATCH v2 3/4] Device bindings documentation updated ACPI-enabled platforms not currently supported

2016-11-08 Thread Luis Oliveira
Hi, As you suggested I will split the drivers. I am thinking of doing 5 patches: - factor out master() parts - separate Master part to i2c-designware-master.c (changes in i2c-designware-core.c) - enable Slave part to i2c-designware-slave (changes in i2c-designware-core.c) - glue drivers and

crash in invalidate_mapping_pages codepath during fadvise

2016-11-08 Thread Jeff Layton
We hit the following panic while running some (userland) ceph testing: [ 3643.590247] [ cut here ] [ 3643.594883] kernel BUG at /srv/autobuild-ceph/gitbuilder.git/build/include/linux/swap.h:276! [ 3643.603346] invalid opcode: [#1] SMP [ 3643.607369] Modules linked in:

Re: [RFC PATCH] perf/x86/intel/rapl: avoid access unallocate memory

2016-11-08 Thread Charles (Chas) Williams
On 11/07/2016 03:20 PM, Thomas Gleixner wrote: On Mon, 7 Nov 2016, Charles (Chas) Williams wrote: On 11/07/2016 11:19 AM, Thomas Gleixner wrote: On Wed, 2 Nov 2016, Charles (Chas) Williams wrote: I don't know why the CPU's phys_proc_id is 2. max_physical_pkg_id gets initialized via: cpu

Re: [PATCH] ceph: fix printing wrong return variable in ceph_direct_read_write()

2016-11-08 Thread Yan, Zheng
> On 8 Nov 2016, at 17:16, Zhi Zhang wrote: > > Fix printing wrong return variable for invalidate_inode_pages2_range > in ceph_direct_read_write(). > > Signed-off-by: Zhi Zhang > --- > fs/ceph/file.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/ceph/file.c b/fs/c

[tip:irq/urgent] genirq: Use irq type from irqdata instead of irqdesc

2016-11-08 Thread tip-bot for Thomas Gleixner
Commit-ID: 7ee7e87dfb158e79019ea1d5ea1b0e6f2bc93ee4 Gitweb: http://git.kernel.org/tip/7ee7e87dfb158e79019ea1d5ea1b0e6f2bc93ee4 Author: Thomas Gleixner AuthorDate: Mon, 7 Nov 2016 19:57:00 +0100 Committer: Thomas Gleixner CommitDate: Tue, 8 Nov 2016 15:15:19 +0100 genirq: Use irq type f

Re: Summary of LPC guest MSI discussion in Santa Fe

2016-11-08 Thread Auger Eric
Hi Will, On 08/11/2016 03:45, Will Deacon wrote: > Hi all, > > I figured this was a reasonable post to piggy-back on for the LPC minutes > relating to guest MSIs on arm64. > > On Thu, Nov 03, 2016 at 10:02:05PM -0600, Alex Williamson wrote: >> We can always have QEMU reject hot-adding the device

RE: [PATCH v2] ARC: [plat-eznps] set default baud for early console

2016-11-08 Thread Noam Camus
> From: Alexey Brodkin [mailto:alexey.brod...@synopsys.com] > Sent: Tuesday, November 8, 2016 4:08 PM >Could you please provide a changelog (v1 -> v2) so reviewers may have a hint >about changes you made if any. ... Just fix some typos in log This line somehow was removed from patch while sendin

Re: [PATCH 2/6] mm: mark all calls into the vmalloc subsystem as potentially sleeping

2016-11-08 Thread Andrey Ryabinin
On 11/08/2016 04:24 PM, Joel Fernandes wrote: > On Wed, Oct 19, 2016 at 4:15 AM, Chris Wilson > wrote: >> On Tue, Oct 18, 2016 at 08:56:07AM +0200, Christoph Hellwig wrote: >>> This is how everyone seems to already use them, but let's make that >>> explicit. >> >> Ah, found an exception, vmappe

Re: [RFC PATCH] perf/x86/intel/rapl: avoid access unallocate memory

2016-11-08 Thread Thomas Gleixner
On Tue, 8 Nov 2016, Charles (Chas) Williams wrote: > [0.016335] topology_update_package_map: apicid 0 pkg 0 cpu 0 > [0.016398] smpboot: APIC(0) Converting physical 0 to logical > package 0, cpu 0 (88023fc0a040) > [0.016399] topology_update_package_map: apicid 1

Re: [PATCH v5 6/8] Documentation: bindings: add compatible specific to legacy SCPI protocol

2016-11-08 Thread Sudeep Holla
Hi Rob, On 03/11/16 04:52, Sudeep Holla wrote: This patch adds specific compatible to support legacy SCPI protocol. Sorry for messing it up before, I think this version is much better. Only this patch introduces new compatible, while 5,7,8/8 are just reorganization to move the platform speci

Re: [PATCH 2/2] pinctrl: tegra: Add driver to configure voltage and power of io pads

2016-11-08 Thread Thierry Reding
On Tue, Nov 08, 2016 at 07:05:26PM +0530, Laxman Dewangan wrote: > > On Tuesday 08 November 2016 06:59 PM, Linus Walleij wrote: > > On Tue, Nov 8, 2016 at 11:20 AM, Laxman Dewangan > > wrote: > > > On Tuesday 08 November 2016 03:45 PM, Linus Walleij wrote: > > > > If you can *actually* change th

Re: [PATCH 2/7] genirq/affinity: Handle pre/post vectors in irq_calc_affinity_vectors()

2016-11-08 Thread Thomas Gleixner
On Tue, 8 Nov 2016, Hannes Reinecke wrote: > Shouldn't you check for NULL affd here? No. The introduction of the default affinity struct should happen in that patch and it should be handed down instead of NULL. Ditto for the next patch. Thanks, tglx

Re: [PATCH] iommu/dma-iommu: properly respect configured address space size

2016-11-08 Thread Robin Murphy
On 08/11/16 13:41, Marek Szyprowski wrote: > Hi Robin, > > > On 2016-11-08 12:37, Robin Murphy wrote: >> On 07/11/16 13:06, Marek Szyprowski wrote: >>> When one called iommu_dma_init_domain() with size smaller than device's >>> DMA mask, the alloc_iova() will not respect it and always assume that

Re: [PATCH 1/4] pinctrl: Introduce generic #pinctrl-cells and pinctrl_parse_index_with_args

2016-11-08 Thread Tony Lindgren
* Linus Walleij [161108 03:32]: > On Mon, Nov 7, 2016 at 4:26 PM, Tony Lindgren wrote: > > * Linus Walleij [161104 14:50]: > > >> +struct of_phandle_args; > >> + > >> #ifdef CONFIG_OF > >> > >> Let's see if it works! > > > > OK so do we know now? It seems there was one more email > > about it

Re: [PATCH] dmaengine: qcom_hidma: hide MSI handler when unused

2016-11-08 Thread Sinan Kaya
On 11/8/2016 8:48 AM, Arnd Bergmann wrote: > The newly added MSI support causes a harmless warning when MSI > is disabled: > > drivers/dma/qcom/hidma.c:558:20: error: 'hidma_chirq_handler_msi' defined but > not used [-Werror=unused-function] > > This adds another #ifdef to match that around the

[PATCH net-next v4] cadence: Add LSO support.

2016-11-08 Thread Rafal Ozieblo
New Cadence GEM hardware support Large Segment Offload (LSO): TCP segmentation offload (TSO) as well as UDP fragmentation offload (UFO). Support for those features was added to the driver. Signed-off-by: Rafal Ozieblo --- Changed in v2: macb_lso_check_compatibility() changed to macb_features_chec

Re: [RFC PATCH] pci: add pci_irq_get_affinity_vector()

2016-11-08 Thread Thomas Gleixner
On Tue, 8 Nov 2016, Hannes Reinecke wrote: > Add a reverse-mapping function to return the interrupt vector for > any CPU if interrupt affinity is enabled. > > Signed-off-by: Hannes Reinecke > --- > drivers/pci/msi.c | 36 > include/linux/pci.h | 1 + > 2

[PATCH 2/2] clk: pxa: fix pxa2xx_determine_rate return

2016-11-08 Thread Arnd Bergmann
The new pxa2xx_determine_rate() function seems lacking in a few regards: - For an exact match or no match at all, the rate is uninitialized as reported by gcc -Wmaybe-unintialized: drivers/clk/pxa/clk-pxa.c: In function 'pxa2xx_determine_rate': drivers/clk/pxa/clk-pxa.c:243:5: error: 'rate

[PATCH 1/2] clk: pxa mark dummy helper as 'inline'

2016-11-08 Thread Arnd Bergmann
The dummy_clk_set_parent function is marked as 'static' but is no longer referenced from the pxa25x clk driver after the last use of the RATE_RO_OPS() macro is gone from this file, causing a harmless build warning: In file included from drivers/clk/pxa/clk-pxa25x.c:24:0: drivers/clk/pxa/clk-pxa.h:

[PATCH 2/2] serial: pxa2xx: mark PM functions as __maybe_unused

2016-11-08 Thread Arnd Bergmann
The fresh new serial driver for pxa produces warnings when CONFIG_PM_SLEEP is disabled: drivers/tty/serial/8250/8250_pxa.c:50:12: error: 'serial_pxa_resume' defined but not used [-Werror=unused-function] drivers/tty/serial/8250/8250_pxa.c:41:12: error: 'serial_pxa_suspend' defined but not used [

Re: [PATCH v2 0/5] ARM: da850: new drivers for better LCDC support

2016-11-08 Thread Sekhar Nori
+ Arnd, Olof On Monday 31 October 2016 08:15 PM, Bartosz Golaszewski wrote: > This series adds two new drivers in order to better support the LCDC > rev1 present on the da850 boards. > > The first patch adds a new memory driver which allows to write to the > DDR2/mDDR memory controller present on

Re: [PATCH 0/8] firmware: arm_scpi: add support for legacy SCPI protocol

2016-11-08 Thread Russell King - ARM Linux
On Wed, Nov 02, 2016 at 10:52:03PM -0600, Sudeep Holla wrote: > This is minor rework of the series[1] from Neil Armstrong's to support > legacy SCPI protocol to make DT bindings more generic and move out all > the platform specific bindings out of the generic binding document. Is this what would b

[PATCH 1/2] serial: pxa2xx: remove __deprecated annotation

2016-11-08 Thread Arnd Bergmann
An otherwise very nice cleanup of the pxa2xx uart support marked the init function of this driver as __deprecated: drivers/tty/serial/pxa.c:944:1: error: 'serial_pxa_init' is deprecated [-Werror=deprecated-declarations] This seems unhelpful to me, as we now warn for every allmodconfig build, whi

Re: [PATCH] iommu/dma-iommu: properly respect configured address space size

2016-11-08 Thread Marek Szyprowski
Hi Robin, On 2016-11-08 15:44, Robin Murphy wrote: On 08/11/16 13:41, Marek Szyprowski wrote: On 2016-11-08 12:37, Robin Murphy wrote: On 07/11/16 13:06, Marek Szyprowski wrote: When one called iommu_dma_init_domain() with size smaller than device's DMA mask, the alloc_iova() will not respec

Re: crash in invalidate_mapping_pages codepath during fadvise

2016-11-08 Thread Ilya Dryomov
On Tue, Nov 8, 2016 at 3:21 PM, Jeff Layton wrote: > We hit the following panic while running some (userland) ceph testing: > > [ 3643.590247] [ cut here ] > [ 3643.594883] kernel BUG at > /srv/autobuild-ceph/gitbuilder.git/build/include/linux/swap.h:276! > [ 3643.603346]

Re: [PATCH] x86/intel_rdt: fix rdt_mount error handling

2016-11-08 Thread Thomas Gleixner
On Tue, 8 Nov 2016, Arnd Bergmann wrote: > The newly introduced rdt_mount function returns an unintialized > pointer if rdtgroup_create_info_dir() fails: http://git.kernel.org/cgit/linux/kernel/git/tip/tip.git/commit/?h=x86/cache&id=7bff0af51012500718971f9cc3485f67252353eb

Re: [PATCH v3 1/2] x86/AMD: Fix cpu_llc_id for AMD Fam17h systems

2016-11-08 Thread Ingo Molnar
* Borislav Petkov wrote: > On Tue, Nov 08, 2016 at 11:29:09AM +0100, Ingo Molnar wrote: > > Looks good to me! Please also update the second patch with meta > > information and I can apply them. > > What exactly do you want to have there? I think the commit message is > pretty explanatory. This

Re: [PATCH 3/7] genirq/affinity: Handle pre/post vectors in irq_create_affinity_masks()

2016-11-08 Thread Christoph Hellwig
[please trim the f***king context in your replies, thanks..] On Tue, Nov 08, 2016 at 09:15:27AM +0100, Hannes Reinecke wrote: >> +irq_create_affinity_masks(int nvecs, const struct irq_affinity *affd) >> { >> -int n, nodes, vecs_per_node, cpus_per_vec, extra_vecs, curvec = 0; >> +int n, no

Re: [RFC PATCH] pci: add pci_irq_get_affinity_vector()

2016-11-08 Thread Christoph Hellwig
On Tue, Nov 08, 2016 at 08:47:21AM +0100, Hannes Reinecke wrote: > Add a reverse-mapping function to return the interrupt vector for > any CPU if interrupt affinity is enabled. What's the use case of it? Also as-is this won't work due to the non-affinity vectors that have the affinity set to all

Re: [RFC PATCH] perf/x86/intel/rapl: avoid access unallocate memory

2016-11-08 Thread Charles (Chas) Williams
On 11/08/2016 09:31 AM, Thomas Gleixner wrote: On Tue, 8 Nov 2016, Charles (Chas) Williams wrote: [0.016335] topology_update_package_map: apicid 0 pkg 0 cpu 0 [0.016398] smpboot: APIC(0) Converting physical 0 to logical package 0, cpu 0 (88023fc0a040) [

Re: crash in invalidate_mapping_pages codepath during fadvise

2016-11-08 Thread Jeff Layton
On Tue, 2016-11-08 at 15:52 +0100, Ilya Dryomov wrote: > On Tue, Nov 8, 2016 at 3:21 PM, Jeff Layton wrote: > > > > We hit the following panic while running some (userland) ceph testing: > > > > [ 3643.590247] [ cut here ] > > [ 3643.594883] kernel BUG at > > /srv/autobu

Re: [PATCH] gpio: davinci: Use unique labels for each gpio chip

2016-11-08 Thread Sekhar Nori
On Tuesday 08 November 2016 07:01 PM, Linus Walleij wrote: > On Thu, Nov 3, 2016 at 12:34 PM, Axel Haslam wrote: > >> The gpiod framework uses the chip label to match a specific chip. >> The davinci gpio driver, creates several chips using always the same >> label, which is not compatible with gp

Re: [PATCH 0/4] perf tools: Assorted fixes for hierarchy mode

2016-11-08 Thread Namhyung Kim
Hello, On Tue, Nov 8, 2016 at 10:43 PM, Markus Trippelsdorf wrote: > On 2016.11.08 at 22:08 +0900, Namhyung Kim wrote: >> >> This patches fix problems in hierarchy output Markus reported some >> time ago. The code is available on the 'perf/hierarchy-fix-v1' branch >> in my tree: >> >> git://gi

Re: [PATCH] drm/i915: avoid harmless empty-body warning

2016-11-08 Thread Chris Wilson
On Tue, Nov 08, 2016 at 02:58:17PM +0100, Arnd Bergmann wrote: > The newly added assert_kernel_context_is_current introduces a warning > when built with W=1: > > drivers/gpu/drm/i915/i915_gem.c: In function > ‘assert_kernel_context_is_current’: > drivers/gpu/drm/i915/i915_gem.c:4417:63: error: su

[watchdog] watchdog: mei_wdt: request stop on reboot to prevent false positive event

2016-11-08 Thread Tomas Winkler
From: Alexander Usyskin Systemd on reboot enables shutdown watchdog that leaves the watchdog device open to ensure that even if power down process get stuck the platform reboots nonetheless. The iamt_wdt is an alarm-only watchdog and can't reboot system, but the FW will generate an alarm event re

Re: btrfs btree_ctree_super fault

2016-11-08 Thread Dave Jones
On Sun, Nov 06, 2016 at 11:55:39AM -0500, Dave Jones wrote: > > > On Mon, Oct 31, 2016 at 01:44:55PM -0600, Chris Mason wrote: > > On Mon, Oct 31, 2016 at 12:35:16PM -0700, Linus Torvalds wrote: > > >On Mon, Oct 31, 2016 at 11:55 AM, Dave Jones > wrote: > > >> > > >> BUG: Bad page s

Re: [PATCH 3/7] genirq/affinity: Handle pre/post vectors in irq_create_affinity_masks()

2016-11-08 Thread Christoph Hellwig
On Tue, Nov 08, 2016 at 03:59:16PM +0100, Hannes Reinecke wrote: > > Which you don't in this patch: True. We will always in the end, but the split isn't right, we'll need to pass the non-NULL argument starting in this patch.

Re: [PATCH/RFC v2] z3fold: use per-page read/write lock

2016-11-08 Thread Andi Kleen
On Tue, Nov 08, 2016 at 01:58:34PM +0100, Vitaly Wool wrote: > Most of z3fold operations are in-page, such as modifying z3fold > page header or moving z3fold objects within a page. Taking > per-pool spinlock to protect per-page objects is therefore > suboptimal, and the idea of having a per-page sp

Re: [PATCH 3/7] genirq/affinity: Handle pre/post vectors in irq_create_affinity_masks()

2016-11-08 Thread Hannes Reinecke
On 11/08/2016 03:55 PM, Christoph Hellwig wrote: [please trim the f***king context in your replies, thanks..] On Tue, Nov 08, 2016 at 09:15:27AM +0100, Hannes Reinecke wrote: +irq_create_affinity_masks(int nvecs, const struct irq_affinity *affd) { - int n, nodes, vecs_per_node, cpus_per_

Re: [PATCH v11 10/22] vfio iommu type1: Add support for mediated devices

2016-11-08 Thread Kirti Wankhede
On 11/8/2016 4:46 AM, Alex Williamson wrote: > On Sat, 5 Nov 2016 02:40:44 +0530 > Kirti Wankhede wrote: > ... >> -static void vfio_unmap_unpin(struct vfio_iommu *iommu, struct vfio_dma *dma) >> +static int __vfio_pin_page_external(struct vfio_dma *dma, unsigned long >> vaddr, >> +

Re: [RFC PATCH] pci: add pci_irq_get_affinity_vector()

2016-11-08 Thread Hannes Reinecke
On 11/08/2016 03:56 PM, Christoph Hellwig wrote: On Tue, Nov 08, 2016 at 08:47:21AM +0100, Hannes Reinecke wrote: Add a reverse-mapping function to return the interrupt vector for any CPU if interrupt affinity is enabled. What's the use case of it? Also as-is this won't work due to the non-af

Re: btrfs btree_ctree_super fault

2016-11-08 Thread Chris Mason
On 11/08/2016 09:59 AM, Dave Jones wrote: On Sun, Nov 06, 2016 at 11:55:39AM -0500, Dave Jones wrote: > > > On Mon, Oct 31, 2016 at 01:44:55PM -0600, Chris Mason wrote: > > On Mon, Oct 31, 2016 at 12:35:16PM -0700, Linus Torvalds wrote: > > >On Mon, Oct 31, 2016 at 11:55 AM, Dave Jones

Re: [PATCH v3 00/18] Synaptics RMI4 and SMBus implementation

2016-11-08 Thread Benjamin Tissoires
Hi Nick, On Nov 07 2016 or thereabouts, Nick Dyer wrote: > On Fri, Nov 04, 2016 at 09:23:48AM +0100, Benjamin Tissoires wrote: > > On Thu, Oct 13, 2016 at 5:50 PM, Benjamin Tissoires > > wrote: > > > Hi guys, > > > > > > This is the third submission of this series, with some addition of RMI4 > >

Re: [PATCH 0/4] perf tools: Assorted fixes for hierarchy mode

2016-11-08 Thread Markus Trippelsdorf
On 2016.11.09 at 00:05 +0900, Namhyung Kim wrote: > Hello, > > On Tue, Nov 8, 2016 at 10:43 PM, Markus Trippelsdorf > wrote: > > On 2016.11.08 at 22:08 +0900, Namhyung Kim wrote: > >> > >> This patches fix problems in hierarchy output Markus reported some > >> time ago. The code is available on

Re: [PATCH v1 03/11] drivers: soc: hisi: Add support for Hisilicon Djtag driver

2016-11-08 Thread Arnd Bergmann
On Tuesday, November 8, 2016 7:16:30 PM CET Anurup M wrote: > If these are backwards compatible, just mark them as compatible in DT, > e.g. hip06 can use > > compatible = "hisilicon,hip06-cpu-djtag-v1", > "hisilicon,hip05-cpu-djtag-v1"; > > so you can tell the

Re: [PATCH] perf/x86: Fix overlap counter scheduling bug

2016-11-08 Thread Andi Kleen
Adding Kan who actually maintains the uncore drivers these days. > Which is two distinct groups, only one of which has overlap. And the one > with overlap only has 2 overlapping masks, giving a max reties of 1. Looks reasonable to limit the mask. Are we sure this problem isn't in the other 0xc m

Re: [PATCH 0/8] firmware: arm_scpi: add support for legacy SCPI protocol

2016-11-08 Thread Sudeep Holla
On 08/11/16 14:51, Russell King - ARM Linux wrote: On Wed, Nov 02, 2016 at 10:52:03PM -0600, Sudeep Holla wrote: This is minor rework of the series[1] from Neil Armstrong's to support legacy SCPI protocol to make DT bindings more generic and move out all the platform specific bindings out of t

Re: [PATCH v1 03/11] drivers: soc: hisi: Add support for Hisilicon Djtag driver

2016-11-08 Thread Arnd Bergmann
On Tuesday, November 8, 2016 1:49:43 PM CET John Garry wrote: > > Hi Arnd, > > Thanks for the reference. > > I think the i2c interface doesn't fully satisfy our requirements as we > need more than just a slave bus address when accessing the slave device > (which I think is what i2c uses). We a

Re: [Intel-gfx] [REGRESSION] Linux 4.9-rc4: gfx glitches on Intel Sandybridge (was: Re: Linux 4.9-rc4)

2016-11-08 Thread Martin Steigerwald
Am Montag, 7. November 2016, 19:09:36 CET schrieb Jani Nikula: > On Mon, 07 Nov 2016, Martin Steigerwald wrote: > > It is also the same kind of corruptions as shown in > > > > [Bug 177701] warning in intel_dp_aux_transfer > > https://bugzilla.kernel.org/show_bug.cgi?id=177701 > > > > Just compar

Re: [RFC PATCH] pci: add pci_irq_get_affinity_vector()

2016-11-08 Thread Christoph Hellwig
On Tue, Nov 08, 2016 at 04:08:51PM +0100, Hannes Reinecke wrote: > The use-case here is that one needs to feed the MSI-X index into the driver > command structure. While we can extract that number trivially with scsi-mq, > but for scsi-sq we don't have such means. > The main impetus of this RFC

Re: [PATCH v4 1/2] cpuid: Add a helper in scattered.c to return cpuid leaf info

2016-11-08 Thread Thomas Gleixner
On Tue, 8 Nov 2016, Borislav Petkov wrote: > On Tue, Nov 08, 2016 at 04:52:27PM +0800, He Chen wrote: > > +struct cpuid_regs { > > + u32 eax, ebx, ecx, edx; > > +}; > > Why do you export this? It is used in cpuid.c only. Because I asked for it. We should have this stuff in one place to avoid th

Re: [PATCH 8/8] block: hook up writeback throttling

2016-11-08 Thread Jens Axboe
On 11/08/2016 06:42 AM, Jan Kara wrote: On Tue 01-11-16 15:08:51, Jens Axboe wrote: Enable throttling of buffered writeback to make it a lot more smooth, and has way less impact on other system activity. Background writeback should be, by definition, background activity. The fact that we flush h

<    1   2   3   4   5   6   7   8   9   10   >