Re: [PATCH 06/13] net: tcp_memcontrol: simplify the per-memcg limit access

2015-11-25 Thread David Miller
From: Johannes Weiner Date: Tue, 24 Nov 2015 16:51:58 -0500 > tcp_memcontrol replicates the global sysctl_mem limit array per > cgroup, but it only ever sets these entries to the value of the > memory_allocated page_counter limit. Use the latter directly. > > Signed-off-by: Johannes Weiner >

Re: [RFC PATCH V2 3/3] Ixgbevf: Add migration support for ixgbevf driver

2015-11-25 Thread Alexander Duyck
On Wed, Nov 25, 2015 at 8:02 AM, Lan, Tianyu wrote: > On 11/25/2015 8:28 PM, Michael S. Tsirkin wrote: >> >> Frankly, I don't really see what this short term hack buys us, >> and if it goes in, we'll have to maintain it forever. >> > > The framework of how to notify VF about migration status

[GIT PULL] KVM fixes for 4.4-rc3

2015-11-25 Thread Paolo Bonzini
Linus, The following changes since commit 1ec218373b8ebda821aec00bb156a9c94fad9cd4: Linux 4.4-rc2 (2015-11-22 16:45:59 -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

Releasing bus devices?

2015-11-25 Thread Andy Lutomirski
I'm writing a bus driver, and I'm confused. If I create a class and class devices, I can set a release method on the class. But if I create a bus, there's no bus_type.dev_release. Am I really supposed to manually set .release on each struct device that I enumerate? If so, why? --Andy -- Andy

Re: [RFC PATCH V2 3/3] Ixgbevf: Add migration support for ixgbevf driver

2015-11-25 Thread Michael S. Tsirkin
On Thu, Nov 26, 2015 at 12:02:33AM +0800, Lan, Tianyu wrote: > On 11/25/2015 8:28 PM, Michael S. Tsirkin wrote: > >Frankly, I don't really see what this short term hack buys us, > >and if it goes in, we'll have to maintain it forever. > > > > The framework of how to notify VF about migration

Re: [PATCH] KVM: nVMX: remove incorrect vpid check in nested invvpid emulation

2015-11-25 Thread Paolo Bonzini
On 25/11/2015 16:45, Bandan Das wrote: > Haozhong Zhang writes: > >> This patch removes the vpid check when emulating nested invvpid >> instruction of type all-contexts invalidation. The existing code is >> incorrect because: >> (1) According to Intel SDM Vol 3, Section "INVVPID - Invalidate

Re: [PATCH] KVM: nVMX: remove incorrect vpid check in nested invvpid emulation

2015-11-25 Thread Haozhong Zhang
On 11/25/15 10:45, Bandan Das wrote: > Haozhong Zhang writes: > > > This patch removes the vpid check when emulating nested invvpid > > instruction of type all-contexts invalidation. The existing code is > > incorrect because: > > (1) According to Intel SDM Vol 3, Section "INVVPID - Invalidate

Re: [PATCH 1/2] ftrace: Add separate handler for ftrace:function event

2015-11-25 Thread Steven Rostedt
On Wed, 25 Nov 2015 16:45:32 +0100 Jiri Olsa wrote: > Having following commands running concurently: > > # perf record -e ftrace:function -a -o krava.data sleep 10 > # perf record -e ftrace:function --filter 'ip == SyS_read' ls > > will endup in the latter one failing on the filter > rules

Re: [PATCH] net: usb: ch9200: use kmemdup instead of kmalloc + memcpy

2015-11-25 Thread Bjørn Mork
Anup Limbu writes: > replace kmalloc + memset with kmemdup > > Signed-off-by: Anup Limbu > --- > drivers/net/usb/ch9200.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/net/usb/ch9200.c b/drivers/net/usb/ch9200.c > index 5e151e6..8a40202 100644 > ---

Re: KASAN failures in X-Gene ethernet driver in v4.4-rc2

2015-11-25 Thread Eric Dumazet
On Wed, 2015-11-25 at 15:59 +, Mark Rutland wrote: > xgene_enet_start_xmit Please try following trivial fix diff --git a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c index 1adfe7036843..9147a0107c44 100644 ---

Re: [PATCH] coredump: Use 64bit time for unix time of coredump

2015-11-25 Thread Al Viro
On Wed, Nov 25, 2015 at 04:22:25PM +0100, Arnd Bergmann wrote: > struct timeval on 32-bit systems will have its tv_sec > value overflow in year 2038 and beyond. > Use a 64 bit value to print time of the coredump in seconds. > ktime_get_real_seconds is chosen here for efficiency reasons. > >

[PATCH 01/10] Input: s3c2410_ts: fix S3C_ADC dependency

2015-11-25 Thread Arnd Bergmann
S3C_ADC is only available on machines that don't do ARCH_MULTIPLATFORM, so changing the 'select' into 'depends on' here helps us move to ARCH_MULTIPLATFORM without introducing regressions. Signed-off-by: Arnd Bergmann Acked-by: Dmitry Torokhov --- drivers/input/touchscreen/Kconfig | 2 +- 1

[PATCH 10/10] ARM: s3c64xx: allow building without board support

2015-11-25 Thread Arnd Bergmann
Most of the code for the s3c64xx platform is only used when booting with ATAGS based board files, but not when using device-tree. This tries to identify all the s3c64xx specific code that is unneeded when CONFIG_ATAGS is not set, so we can build a smaller DT-only kernel if configured that way.

[PATCH 07/10] ARM: s3c64xx: use new adc/touchscreen driver

2015-11-25 Thread Arnd Bergmann
The old ADC and touchscreen drivers are not compatible with multiplatform support, but we can use the exynos-adc driver as a replacement. This changes the common device creation functions for s3c64xx (but not s3c24xx for now) to use the new driver. To do this, we have to pass the interrupt

[PATCH 05/10] ARM: s3c64xx: enable sparse IRQ support

2015-11-25 Thread Arnd Bergmann
This is another prerequisite for enabling multiplatform support, and it is the part I am least certain about. I assume it will cause the extra boot message "Cannot allocate irq_descs @ IRQ%d, assuming pre-allocated" to be printed, but otherwise work ok. This definitely needs to be tested on real

Re: [RESEND RFC/PATCH 3/8] media: platform: mtk-vpu: Support Mediatek VPU

2015-11-25 Thread Daniel Thompson
On 17/11/15 12:54, Tiffany Lin wrote: From: Andrew-CT Chen The VPU driver for hw video codec embedded in Mediatek's MT8173 SOCs. It is able to handle video decoding/encoding of in a range of formats. The driver provides with VPU firmware download, memory management and the communication

[for-next][PATCH 4/7] ring-buffer: Use READ_ONCE() for most tail_page access

2015-11-25 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" As cpu_buffer->tail_page may be modified by interrupts at almost any time, the flow of logic is very important. Do not let gcc get smart with re-reading cpu_buffer->tail_page by adding READ_ONCE() around most of its accesses. Signed-off-by: Steven Rostedt ---

[for-next][PATCH 7/7] tracing: Update cond flag when enabling or disabling a trigger

2015-11-25 Thread Steven Rostedt
From: Tom Zanussi When a trigger is enabled, the cond flag should be set beforehand, otherwise a trigger that's expecting to process a trace record (e.g. one with post_trigger set) could be invoked without one. Likewise a trigger's cond flag should be reset after it's disabled, not before.

[for-next][PATCH 1/7] ring-buffer: Update read stamp with first real commit on page

2015-11-25 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Do not update the read stamp after swapping out the reader page from the write buffer. If the reader page is swapped out of the buffer before an event is written to it, then the read_stamp may get an out of date timestamp, as the page timestamp is updated on the

[for-next][PATCH 5/7] ring-buffer: Remove redundant update of page timestamp

2015-11-25 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" The first commit of a buffer page updates the timestamp of that page. No need to have the update to the next page add the timestamp too. It will only be replaced by the first commit on that page anyway. Only update to a page if it contains an event.

[for-next][PATCH 3/7] ftracetest: Add instance create and delete test

2015-11-25 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Create a test to test instance creation and deletion. Several tasks are created that create 3 directories and delete them. The tasks all create the same directories. This places a stress on the code that creates and deletes instances. Signed-off-by: Steven

[for-next][PATCH 0/7] tracing: Updates for 4.5 (and some stuff going into 4.4)

2015-11-25 Thread Steven Rostedt
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next Head SHA1: ffaea3b8472da0f0e5a2b4fc9ccefb1ff460e824 Steven Rostedt (Red Hat) (6): ring-buffer: Update read stamp with first real commit on page ring-buffer: Put back the length if crossed page with

Re: [PATCH v2 19/19] irqchip/mips-gic: Add new DT property to reserve IPIs

2015-11-25 Thread Rob Herring
On Wed, Nov 25, 2015 at 12:06:57PM +, Qais Yousef wrote: > The new property will allow to specify the range of GIC hwirqs to use for > IPIs. > > This is an optinal property. We preserve the previous behaviour of allocating > the last 2 * gic_vpes if it's not specified or DT is not supported.

Re: [PATCH 0/5] ARM: orion5x/dove/mv78xx0 multiplatform

2015-11-25 Thread Andrew Lunn
On Wed, Nov 25, 2015 at 04:49:12PM +0100, Arnd Bergmann wrote: > I've posted these before and now gotten around to a rebase and > want to include them in the arm-soc next/multiplatform branch for > 4.5. > > Originally the plan for these platforms was to convert all of > them to DT and use only

[for-next][PATCH 2/7] ring-buffer: Put back the length if crossed page with add_timestamp

2015-11-25 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Commit fcc742eaad7c "ring-buffer: Add event descriptor to simplify passing data" added a descriptor that holds various data instead of passing around several variables through parameters. The problem was that one of the parameters was modified in a function and

[for-next][PATCH 6/7] ring-buffer: Process commits whenever moving to a new page.

2015-11-25 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" When crossing over to a new page, commit the current work. This will allow readers to get data with less latency, and also simplifies the work to get timestamps working for interrupted events. Signed-off-by: Steven Rostedt --- kernel/module.c| 18

[PATCH 04/10] ARM: s3c64xx: prepare initcalls for multiplatform

2015-11-25 Thread Arnd Bergmann
In a multiplatform kernel, each initcall is run regardless of the platform it is meant for, so it must not attempt to access SoC-specific registers. This adds 'if (soc_is_s3c64xx)' to all initcalls that are specific to the s3c64xx platform, to prevent them from breaking other platforms once we

[PATCH 06/10] iio: exynos-adc: add experimental touchscreen support

2015-11-25 Thread Arnd Bergmann
This adds support for the touchscreen on Samsung s3c64xx. The driver is completely untested but shows roughly how it could be done, following the example of the at91 driver. compared to the old plat-samsung/adc driver, there is no support for prioritizing ts over other clients, nor for

[PATCH 09/10] ARM: s3c64xx: multiplatform support

2015-11-25 Thread Arnd Bergmann
After all preparation work is done, we can finally move the Kconfig option for s3c64xx into ARCH_MULTIPLATFORM. This implies allowing SAMSUNG_ATAGS for multiplatform again, but now disallowing the ADC driver below it, as that still has dependencies on header files. Signed-off-by: Arnd Bergmann

[PATCH 02/10] ASoC: samsung/smartq: use dynamic registration

2015-11-25 Thread Arnd Bergmann
As a prerequisite for moving s3c64xx into multiplatform configurations, we need to change the smartq audio driver to stop using hardcoded gpio numbers from the header file, and instead pass the gpio data through platform_data. In order to do that, we also move the code to use

[PATCH 00/10] ARM: s3c64xx multiplatform

2015-11-25 Thread Arnd Bergmann
I've posted the series before and we got a few people to test it the last time, though I think the touchscreen portion is still untested. I'd really like to get this merged for 4.5 and would put it into a next/multiplatform branch unless there are any objections or concerns. Arnd Bergmann (10):

[PATCH 08/10] ARM: s3c64xx: use common debug-ll implementation

2015-11-25 Thread Arnd Bergmann
The uart on s3c64xx is essentially the same as on s3c24xx, so we can share a single assembler file. However, the addresses are different, and we need to add the respective Kconfig magic to get the right addresses. Signed-off-by: Arnd Bergmann --- arch/arm/Kconfig.debug

[PATCH 03/10] gpio: samsung: move gpio-samsung driver back to platform code

2015-11-25 Thread Arnd Bergmann
The gpio-samsung driver is special in the sense that it interacts directly in multiple ways with the legacy platform code for the s3c24xx and s3c64xx platforms. In contrast, all devicetree based machines for Samsung, including the ones on those two SoC families use a different driver. The header

[PATCH v4 2/2] clocksource/drivers/dw_apb_timer: Use {readl|writel}_relaxed in critical path

2015-11-25 Thread Jisheng Zhang
It's safe to use the relaxed version. From another side, the relaxed io accessor macros are available on all architectures now, so we can use the relaxed versions to get a trivial system performance improvement, we measured time the following functions spent on Marvell BG4CT: 4096 rounds of

[PATCH v4 0/2] clocksource/drivers/dw_apb_timer: improve performance a bit

2015-11-25 Thread Jisheng Zhang
These two patches try to improve the dw_apb_timer clocksource/clockevent performance. These patches depend on the apbt_readl return value fix patch: http://lists.infradead.org/pipermail/linux-arm-kernel/2015-November/388250.html since v3: - fix commit msg: we measured 4096 rounds of function

[PATCH v4 1/2] clocksource/drivers/dw_apb_timer: Inline apbt_readl and apbt_writel

2015-11-25 Thread Jisheng Zhang
It seems gcc can automatically inline apbt_writel() for us, but apbt_real isn't inlined. This patch makes them inline to get a trivial performance improvement: 4096 rounds of __apbt_read_clocksource() call spend time on Marvell BG4CT platform: before the patch 1275240ns on average after the

Re: [PATCH] mm/vmstat: retrieve more accurate vmstat value

2015-11-25 Thread Christoph Lameter
On Wed, 25 Nov 2015, Joonsoo Kim wrote: > I think that maintaining duplicate counter to guarantee accuracy isn't > reasonable solution. It would cause more overhead to the system. Simply remove the counter from the vmstat handling and do it differently then. > Although vmstat values aren't

Re: [RFC PATCH V2 3/3] Ixgbevf: Add migration support for ixgbevf driver

2015-11-25 Thread Lan, Tianyu
On 11/25/2015 8:28 PM, Michael S. Tsirkin wrote: Frankly, I don't really see what this short term hack buys us, and if it goes in, we'll have to maintain it forever. The framework of how to notify VF about migration status won't be changed regardless of stopping VF or not before doing

KASAN failures in X-Gene ethernet driver in v4.4-rc2

2015-11-25 Thread Mark Rutland
While testing a v4.4-rc2 defconfig + KASAN_INLINE kernel on an X-Gene platform, I spotted the KASAN warnings below. I'm using the Linaro 15.08 little-endian AArch64 GCC [1] to enable KASAN_INLINE. My rootfs is an NFS mount. Most of the time I can trigger the issue by grabbing the kernel source

[RFC PATCH] mm, oom: introduce oom reaper

2015-11-25 Thread Michal Hocko
From: Michal Hocko This is based on the idea from Mel Gorman discussed during LSFMM 2015 and independently brought up by Oleg Nesterov. The OOM killer currently allows to kill only a single task in a good hope that the task will terminate in a reasonable time and frees up its memory. Such a

Re: [PATCH 11/14] mmc: sdhci-pic32: Add PIC32 SDHC host controller driver

2015-11-25 Thread Ulf Hansson
On 21 November 2015 at 01:17, Joshua Henderson wrote: > From: Andrei Pistirica > > This driver supports the SDHCI host controller found on the PIC32 in DMA > or PIO mode. > > Signed-off-by: Andrei Pistirica > Signed-off-by: Joshua Henderson > --- > drivers/mmc/host/Kconfig | 11 ++ >

Re: [PATCH v3 0/2] clocksource/drivers/dw_apb_timer: improve performance a bit

2015-11-25 Thread Jisheng Zhang
On Wed, 25 Nov 2015 23:48:32 +0800 Jisheng Zhang wrote: > These two patches try to improve the dw_apb_timer clocksource/clockevent > performance. These patches depends on the apbt_readl return value fix patch: http://lists.infradead.org/pipermail/linux-arm-kernel/2015-November/388250.html

[PATCH v3 2/2] clocksource/drivers/dw_apb_timer: Use {readl|writel}_relaxed in critical path

2015-11-25 Thread Jisheng Zhang
It's safe to use the relaxed version. From another side, the relaxed io accessor macros are available on all architectures now, so we can use the relaxed versions to get a trivial system performance improvement, we measured time the following functions spent on Marvell BG4CT:

[PATCH v3 1/2] clocksource/drivers/dw_apb_timer: Inline apbt_readl and apbt_writel

2015-11-25 Thread Jisheng Zhang
It seems gcc can automatically inline apbt_writel() for us, but apbt_real isn't inlined. This patch makes them inline to get a trivial performance improvement: the time __apbt_read_clocksource() spends on Marvell BG4CT platform: before the patch 1275240ns on average after the patch 1263240ns on

Re: [PATCH] clk: tegra: Fix bypassing of PLLs

2015-11-25 Thread Tyler Baker
On 25 November 2015 at 07:11, Thierry Reding wrote: > On Mon, Nov 23, 2015 at 03:18:59PM -0800, Tyler Baker wrote: >> Hi Jon, >> >> On 20 November 2015 at 07:11, Jon Hunter wrote: >> > The _clk_disable_pll() function will attempt to place a PLL into bypass >> > if the TEGRA_PLL_BYPASS is

[PATCH v3 0/2] clocksource/drivers/dw_apb_timer: improve performance a bit

2015-11-25 Thread Jisheng Zhang
These two patches try to improve the dw_apb_timer clocksource/clockevent performance. since v2: - only use relaxed version in critical path - inline apbt_readl/apbt_writel - add some performance numbers since v1: - correct the wrong sentence in commit msg about writel performance on CA9

[PATCH 2/5] ARM: orion: always use MULTI_IRQ_HANDLER

2015-11-25 Thread Arnd Bergmann
As a preparation for multiplatform support, this enables the MULTI_IRQ_HANDLER code unconditionally on dove and orion5x, and introduces the respective code on mv78xx0, which did not have it so far. The classic entry-macro.S files are removed as they are now obsolete. Signed-off-by: Arnd Bergmann

[PATCH 5/5] ARM: orion: multiplatform support

2015-11-25 Thread Arnd Bergmann
All three remaining orion based platforms are now ready to be enabled for multiplatform support, this patch does the switch over by modifying the Kconfig file, the defconfig and removing the last mach/*.h header that becomes obsolete with this. Signed-off-by: Arnd Bergmann --- arch/arm/Kconfig

[PATCH 3/5] ARM: orion: use SPARSE_IRQ everywhere

2015-11-25 Thread Arnd Bergmann
As a preparation for multiplatform support, this moves all the code using plat-orion over to use sparse irq support, which is enabled implicitly for multiplatform. In particular, the hardcoded NR_IRQS macro gets replaced with a machine specific one that is set in the machine descriptor in order

[PATCH 4/5] ARM: orion: clean up mach/*.h headers

2015-11-25 Thread Arnd Bergmann
This is a simple move of all header files that are no longer included by anything else from the include/mach directory to the platform directory itself, for mv78xx0, dove, and orion5x, as preparation for multiplatform support. The mach/uncompress.h headers are left in place for now, and are

Re: [PATCH 2/7] drm/vmwgfx: fix a problematic usage of WARN_ON()

2015-11-25 Thread Sinclair Yeh
Reviewed-by: Sinclair Yeh On Wed, Nov 25, 2015 at 09:12:15PM +0800, Geliang Tang wrote: > WARN_ON() takes a condition rather than a format string. This patch > converted WARN_ON() to WARN() instead. > > Signed-off-by: Geliang Tang > --- > drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c | 2 +- > 1 file

Re: [4.3] kworker busy in pm_runtime_work

2015-11-25 Thread Alan Stern
On Wed, 25 Nov 2015, Daniel J Blueman wrote: > On 23 November 2015 at 23:52, Alan Stern wrote: > > On Sun, 22 Nov 2015, Daniel J Blueman wrote: > > > >> On 16 November 2015 at 23:22, Alan Stern wrote: > >> > On Mon, 16 Nov 2015, Daniel J Blueman wrote: > >> > > >> >> Tuning USB suspend [1] in

[PATCH 1/5] ARM: orion: move watchdog setup to mach-orion5x

2015-11-25 Thread Arnd Bergmann
The watchdog device node is created in plat-orion/common.c but depends on the bridge address that is platform specific, so as a preparation for orion multiplatform support, we should move it out of the common code into orion5x. The other two users of plat-orion currently do not support the

[PATCH 0/5] ARM: orion5x/dove/mv78xx0 multiplatform

2015-11-25 Thread Arnd Bergmann
I've posted these before and now gotten around to a rebase and want to include them in the arm-soc next/multiplatform branch for 4.5. Originally the plan for these platforms was to convert all of them to DT and use only mach-mvebu. That has not happened, so I would do it this way instead so we

[PATCH v2 1/3] PCI: rcar: Convert to DT resource parsing API

2015-11-25 Thread Phil Edworthy
The main purpose of this change is to avoid calling pci_ioremap_io() as this is not available on arm64. However, instead of doing the range passing in this driver we can utilise of_pci_get_host_bridge_resources(). This is similar to changes made to the generic PCI host driver in commit dbf9826d

[PATCH v1] usb: devio: Add ioctl to disallow detaching kernel USB drivers.

2015-11-25 Thread Emilio López
From: Reilly Grant The new USBDEVFS_DROP_PRIVILEGES ioctl allows a process to voluntarily relinquish the ability to issue other ioctls that may interfere with other processes and drivers that have claimed an interface on the device. Signed-off-by: Reilly Grant Reviewed-by: Jorge Lucangeli Obes

[PATCH v1 0/1] ioctl to disallow detaching kernel USB drivers

2015-11-25 Thread Emilio López
Hi everyone, This patch introduces a new ioctl, USBDEVFS_DROP_PRIVILEGES, to voluntarily forgo the ability to issue ioctls which may interfere with other users of the USB device. This feature allows a privileged process (in the case of Chrome OS, permission_broker) to open a USB device node and

[PATCH] clocksource/drivers/pistachio: Fix wrong calculated clocksource read value

2015-11-25 Thread Jisheng Zhang
Let's assume the counter value is 0xf00, the pistachio clocksource read cycles function would return 0x0fff, but it should return 0xfff. We fix this issue by calculating bitwise-not counter, then cast to cycle_t. Signed-off-by: Jisheng Zhang ---

Re: [PATCH v2 3/9] mm, page_owner: convert page_owner_inited to static key

2015-11-25 Thread Michal Hocko
On Wed 25-11-15 16:25:33, Peter Zijlstra wrote: > On Wed, Nov 25, 2015 at 04:08:11PM +0100, Vlastimil Babka wrote: > > Now I admit I have no idea if there are architectures that don't support > > jump > > labels *and* have an expensive atomic read, and whether we care? > > atomic_read() is

Re: [PATCH] KVM: nVMX: remove incorrect vpid check in nested invvpid emulation

2015-11-25 Thread Bandan Das
Haozhong Zhang writes: > This patch removes the vpid check when emulating nested invvpid > instruction of type all-contexts invalidation. The existing code is > incorrect because: > (1) According to Intel SDM Vol 3, Section "INVVPID - Invalidate > Translations Based on VPID", invvpid

[PATCH] clocksource/drivers/dw_apb_timer: Fix apbt_readl return types

2015-11-25 Thread Jisheng Zhang
On Marvell BG4CT platform, we observed the __apbt_read_clocksource() return wrong value: Let's assume the APBTMR_N_CURRENT_VALUE value is 0xf000, we got 0x0fff, but it should be 0xfff. This issue should be common on all 64bit platforms. We fix the issue by letting aptb_readl()

Re: [PATCH] vmscan: do not throttle kthreads due to too_many_isolated

2015-11-25 Thread Vlastimil Babka
On 11/25/2015 04:36 PM, Vladimir Davydov wrote: > Block device drivers often hand off io request processing to kernel > threads (example: device mapper). If such a thread calls kmalloc, it can > dive into direct reclaim path and end up waiting for too_many_isolated > to return false, blocking

[PATCH 1/2] ftrace: Add separate handler for ftrace:function event

2015-11-25 Thread Jiri Olsa
Having following commands running concurently: # perf record -e ftrace:function -a -o krava.data sleep 10 # perf record -e ftrace:function --filter 'ip == SyS_read' ls will endup in the latter one failing on the filter rules and store all functions (in perf.data) as instructed by the first

[PATCH 2/2] ftrace: Check sample types only for sampling events

2015-11-25 Thread Jiri Olsa
Currently we check sample type for ftrace:function event even if it's not created as sampling event. That prevents creating ftrace_function event in counting mode. Making sure we check sample types only for sampling events. Before: $ sudo perf stat -e ftrace:function ls ... Performance

Re: [PATCH] KVM: x86: Add lowest-priority support for vt-d posted-interrupts

2015-11-25 Thread Radim Krčmář
2015-11-25 15:38+0100, Paolo Bonzini: > On 25/11/2015 15:12, Radim Krcmár wrote: >> I think it's ok to pick any algorithm we like. It's unlikely that >> software would recognize and take advantage of the hardware algorithm >> without adding a special treatment for KVM. >> (I'd vote for the simple

[PATCH 0/7] ARM: mmp multiplatform support

2015-11-25 Thread Arnd Bergmann
I've posted this before, this is basically unchanged from the last time earlier this year, and I'd like to put this into the next/multiplatform branch of arm-soc for a 4.5 merge. Let me know if you have any concerns or objections. Arnd Bergmann (7): clk: mmp: stop using platform headers ARM:

[PATCH 3/7] ARM: mohawk: allow building with MMU disabled

2015-11-25 Thread Arnd Bergmann
It is in principle possible to build an MMP kernel for the mohawk CPU with the MMU code disabled, except for one simple build error: proc-mohawk.S:345: Error: invalid operands (*UND* and *UND* sections) for `|' proc-mohawk.S:345: Error: invalid operands (*ABS* and *UND* sections) for `|'

[PATCH 2/7] ARM: make xscale iwmmxt code multiplatform aware

2015-11-25 Thread Arnd Bergmann
In a multiplatform configuration, we may end up building a kernel for both Marvell PJ1 and an ARMv4 CPU implementation. In that case, the xscale-cp0 code is built with gcc -march=armv4{,t}, which results in a build error from the coprocessor instructions. Since we know this code will only have to

Re: [PATCH 2/3] lightnvm: handle targets when corresponding nvm device exit

2015-11-25 Thread Matias Bjørling
On 11/25/2015 01:42 PM, Wenwei Tao wrote: block creations of new targets, remove exiting targets when underlying device was gone. Signed-off-by: Wenwei Tao --- drivers/lightnvm/core.c | 127 ++- include/linux/lightnvm.h | 3 ++ 2 files

Re: [RFC PATCH V2 0/3] IXGBE/VFIO: Add live migration support for SRIOV NIC

2015-11-25 Thread Alexander Duyck
On Wed, Nov 25, 2015 at 12:21 AM, Lan Tianyu wrote: > On 2015年11月25日 13:30, Alexander Duyck wrote: >> No, what I am getting at is that you can't go around and modify the >> configuration space for every possible device out there. This >> solution won't scale. > > > PCI config space regs are

[PATCH v2 3/3] PCI: pcie-rcar: Add support for R-Car H3.

2015-11-25 Thread Phil Edworthy
From: Harunobu Kurokawa R-Car H3 device is r8a7795 Signed-off-by: Harunobu Kurokawa Acked-by: Wolfram Sang Tested-by: Wolfram Sang --- v2: No changes --- Documentation/devicetree/bindings/pci/rcar-pci.txt | 3 ++- drivers/pci/host/pcie-rcar.c | 1 + 2 files changed, 3

[PATCH 5/7] ARM: mmp: make plat-pxa build standalone

2015-11-25 Thread Arnd Bergmann
The ssp.c driver in plat-pxa is the only remaining file including a mach/*.h header from mmp. It actually doesn't need mach/hardware.h at all, so we can remove the #include. Signed-off-by: Arnd Bergmann --- arch/arm/plat-pxa/ssp.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH v2 2/3] Revert "PCI: rcar: Build pcie-rcar.c only on ARM"

2015-11-25 Thread Phil Edworthy
Now that we can build on arm64, revert commit 7c537c67d2e4 ("PCI: rcar: Build pcie-rcar.c only on ARM"). Signed-off-by: Phil Edworthy --- v2: No changes --- drivers/pci/host/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pci/host/Kconfig

[PATCH 1/7] clk: mmp: stop using platform headers

2015-11-25 Thread Arnd Bergmann
The mmp clock drivers currently hardcode the physical addresses for the clock registers. This is generally a bad idea, and it also gets in the way of multiplatform builds, which make the platform header files inaccessible to device drivers. To work around the header file problem, this patch

[PATCH 4/7] ARM: mmp: remove remaining legacy pxa-dma support

2015-11-25 Thread Arnd Bergmann
All drivers have stopped using this code, so we can just as well stop initializing it. Signed-off-by: Arnd Bergmann --- arch/arm/mach-mmp/include/mach/dma.h | 13 - arch/arm/mach-mmp/mmp2.c | 2 -- arch/arm/mach-mmp/pxa168.c | 2 -- arch/arm/mach-mmp/pxa910.c

[PATCH 7/7] ARM: mmp: move into ARCH_MULTIPLATFORM

2015-11-25 Thread Arnd Bergmann
With all dependencies taken care of, this enables building the Marvell mmp platform as part of ARCH_MULTIPLATFORM, along with other ARMv5 and ARMv7 platforms. Signed-off-by: Arnd Bergmann --- arch/arm/Kconfig| 16 -- arch/arm/mach-mmp/Kconfig

[PATCH 6/7] ARM: mmp: make all header files local

2015-11-25 Thread Arnd Bergmann
The mach/*.h headers are now inaccessible to any external code, so we can move them all into the mach-mmp directory itself and remove the subdirectories. A few headers are not used at all, so we remove them here. Signed-off-by: Arnd Bergmann --- arch/arm/mach-mmp/{include/mach => }/addr-map.h

use-after-free in irtty_open

2015-11-25 Thread Dmitry Vyukov
Hello, The following program causes a use-after-free in irtty_open: // autogenerated by syzkaller (http://github.com/google/syzkaller) #include #include #include #include int main() { int fd = open("/dev/ptmx", O_RDONLY|O_NOCTTY); int val = 9; ioctl(fd, TIOCSETD, );

[PATCH] vmscan: do not throttle kthreads due to too_many_isolated

2015-11-25 Thread Vladimir Davydov
Block device drivers often hand off io request processing to kernel threads (example: device mapper). If such a thread calls kmalloc, it can dive into direct reclaim path and end up waiting for too_many_isolated to return false, blocking writeback. This can lead to a dead lock if the pages were

[PATCH 2/2] perf evlist: Display WEIGHT sample type bit

2015-11-25 Thread Jiri Olsa
Adding WIEGHT bit_name call to display sample_type properly. $ perf evlist -v cpu/mem-loads/pp: ...SNIP... sample_type: IP|TID|TIME|ADDR|ID|CPU|DATA_SRC|WEIGHT ... Link: http://lkml.kernel.org/n/tip-iql3yeqtpnzv7qeptgv8w...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 1/2] perf stat: Clear sample_(type|period) for counting

2015-11-25 Thread Jiri Olsa
Clear sample_(type|period) for counting, as it only confuses debug output with unwanted sampling details: Before: $ sudo perf stat -e 'raw_syscalls:sys_enter' -vv ls perf_event_attr: type 2 size

Re: [PATCH 1/3] lightnvm: missing nvm_lock acquire

2015-11-25 Thread Matias Bjørling
On 11/25/2015 01:42 PM, Wenwei Tao wrote: To avoid race conditions, traverse dev, media manager, and targeet lists and also register, unregister entries to/from them, should be always under the nvm_lock control. Signed-off-by: Wenwei Tao --- drivers/lightnvm/core.c | 19 +--

[Resend: PATCH v2 0/3] Fix rcar-pcie for arm64

2015-11-25 Thread Phil Edworthy
The first patches fixes the build problem, and the second patch reverts the patch that removed the driver from arm64 builds. The final patch add a compat string for the r8a7795 (arm64) device. Tested on arm Koelsch board, all ok. Tested on arm64 Salvator-X board using

RE: [V5 PATCH 4/4] x86/apic: Introduce apic_extnmi boot option

2015-11-25 Thread 河合英宏 / KAWAI,HIDEHIRO
> On Fri, Nov 20, 2015 at 06:36:50PM +0900, Hidehiro Kawai wrote: > > This patch introduces new boot option, apic_extnmi: > > > > apic_extnmi={ bsp | all | none} > > > > The default value is "bsp" and this is the current behavior; only > > BSP receives external NMI. "all" allows external NMIs to

Re: [PATCH 2/2] block-rbd: One function call less in rbd_dev_probe_parent() after error detection

2015-11-25 Thread Dan Carpenter
Ah... I see now. Thanks. regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH v2 3/9] mm, page_owner: convert page_owner_inited to static key

2015-11-25 Thread Peter Zijlstra
On Wed, Nov 25, 2015 at 04:08:11PM +0100, Vlastimil Babka wrote: > Now I admit I have no idea if there are architectures that don't support jump > labels *and* have an expensive atomic read, and whether we care? atomic_read() is basically always READ_ONCE(), there's a few archs that implement it

Re: [PATCH] pwm: berlin: Add PM support

2015-11-25 Thread Thierry Reding
On Wed, Nov 25, 2015 at 04:30:19PM +0800, Jisheng Zhang wrote: > On Tue, 24 Nov 2015 17:23:06 +0100 Thierry Reding wrote: > > On Tue, Nov 24, 2015 at 01:43:05PM +0800, Jisheng Zhang wrote: > > > This patch adds S2R support for berlin pwm driver. > > > > > > Signed-off-by: Jisheng Zhang > > > ---

Re: [PATCH] drm/mm: use list_next_entry

2015-11-25 Thread Daniel Vetter
On Wed, Nov 25, 2015 at 09:23:07PM +0800, Geliang Tang wrote: > To make the intention clearer, use list_next_entry instead of list_entry. > > Signed-off-by: Geliang Tang Applied to drm-misc, thanks. -Daniel > --- > include/drm/drm_mm.h | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-)

[PATCH] coredump: Use 64bit time for unix time of coredump

2015-11-25 Thread Arnd Bergmann
struct timeval on 32-bit systems will have its tv_sec value overflow in year 2038 and beyond. Use a 64 bit value to print time of the coredump in seconds. ktime_get_real_seconds is chosen here for efficiency reasons. Suggested by: Arnd Bergmann Signed-off-by: Tina Ruchandani Signed-off-by: Arnd

Re: [RFC PATCH 02/10] clockevents/drivers: add MPS2 Timer driver

2015-11-25 Thread Vladimir Murzin
On 25/11/15 15:10, Daniel Lezcano wrote: > On 11/25/2015 03:51 PM, Vladimir Murzin wrote: >> Hi Daniel, >> >> Thanks for you review, I agree on all concerns raised and address them >> in the next version. Just some points to confirm below (I left only >> relevant parts). >> +static

Re: [PATCH v2 3/3] zram: pass gfp from zcomp frontend to backend

2015-11-25 Thread Minchan Kim
On Thu, Nov 26, 2015 at 12:04:49AM +0900, Sergey Senozhatsky wrote: > Hello, > > On (11/25/15 22:50), Minchan Kim wrote: > [..] > > > I think that applying 3/3 before 2/3 will be a simpler (and probably a > > > better) > > > thing to do. We fitst extend zcomp interface and pass flags (without

[PATCH] cpuset: Replace all instances of time_t with time64_t

2015-11-25 Thread Arnd Bergmann
The following patch replaces all instances of time_t with time64_t i.e. change the type used for representing time from 32-bit to 64-bit. All 32-bit kernels to date use a signed 32-bit time_t type, which can only represent time until January 2038. Since embedded systems running 32-bit Linux are

RE: perf test topo broken?

2015-11-25 Thread Liang, Kan
> > On Thu, Nov 19, 2015 at 02:13:53PM -0800, Sukadev Bhattiprolu wrote: > > SNIP > > > Commenting out following code seems to cause the test to pass, but are > > core_ids in general related to number of cpus online? > > > > Sukadev > > > > --- > > diff --git a/tools/perf/util/header.c

Re: [PATCH] leds/powernv : removing NULL check

2015-11-25 Thread Jacek Anaszewski
On 11/25/2015 03:44 PM, Vasant Hegde wrote: On 11/23/2015 02:58 PM, Saurabh Sengar wrote: no need to explicitly check for pointer to be null, of_prop_next_string anyways return NULL, if passed pointer is NULL and hence loop will continue Thanks! Patch looks good. -Vasant I infer that you

Re: [PATCH] arm64: restore bogomips information in /proc/cpuinfo

2015-11-25 Thread Nicolas Pitre
On Wed, 25 Nov 2015, Jon Masters wrote: > On 11/18/15, 1:15 PM, Yang Shi wrote: > > > As what Pavel Machek reported [1], some userspace applications depend on > > bogomips showed by /proc/cpuinfo. > > > > Although there is much less legacy impact on aarch64 than arm, but it does > > break

Re: [alsa-devel] [PATCH 2/2] ALSA: compress: Pass id string to snd_compress_new

2015-11-25 Thread Richard Fitzgerald
On Wed, 2015-11-25 at 08:51 -0600, Pierre-Louis Bossart wrote: > > @@ -689,7 +689,13 @@ int snd_soc_new_compress(struct snd_soc_pcm_runtime > > *rtd, int num) > > compr->ops->copy = soc_compr_copy; > > > > mutex_init(>lock); > > - ret = snd_compress_new(rtd->card->snd_card, num,

Re: [RFC PATCH v2] iommu/amd: gray the 'irq_remap_table' object for kmemleak

2015-11-25 Thread Michael Wang
On 11/25/2015 04:08 PM, Joerg Roedel wrote: > On Fri, Nov 20, 2015 at 12:33:50PM +0100, Michael Wang wrote: >> The kmemleak testing on 3.18.24 show: >> >> unreferenced object 0x880233ff9010 (size 16): >> comm "swapper/0", pid 1, jiffies 4294937440 (age 2010.490s) >> hex dump (first 16

Re: [PATCH v1] net: stmmac: Free rx_skbufs before realloc

2015-11-25 Thread Giuseppe CAVALLARO
Hello On 11/24/2015 7:09 PM, David Miller wrote: From: Shunqian Zheng Date: Sun, 22 Nov 2015 16:44:18 +0800 From: ZhengShunQian The init_dma_desc_rings() may realloc the rx_skbuff[] when suspend and resume. This patch free the rx_skbuff[] before reallocing memory. Signed-off-by:

Re: [PATCH 3/3] nvme: change the interface between nvme and lightnvm

2015-11-25 Thread Matias Bjørling
On 11/25/2015 01:42 PM, Wenwei Tao wrote: When nvme devices were removed, we need to handle the targets build upon them properly: remove the existing targets, block creations of new ones. To do this clean up job well, we need to change the interface between nvme and lightnvm. Signed-off-by:

Re: [PATCH v6 2/2] leds: rt5033: Add RT5033 Flash led device driver

2015-11-25 Thread Jacek Anaszewski
Hi Ingi, Thanks for the update. On 11/25/2015 11:22 AM, Ingi Kim wrote: This patch adds device driver of Richtek RT5033 PMIC. The RT5033 Flash LED Circuit is designed for one or two LEDs driving for torch and strobe applications, it provides an I2C software command to trigger the torch and

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