Re: [PATCH] [RESEND] aic7xxx: replace kmalloc/memset by kzalloc

2015-03-23 Thread Hannes Reinecke
On 03/22/2015 05:31 PM, Michael Opdenacker wrote: > This replaces kmalloc + memset by a call to kzalloc > (or kcalloc when appropriate, which zeroes memory too) > > This also fixes one checkpatch.pl issue in the process. > > This improvement was suggested by "make coccicheck" > > Signed-off-by:

Re: [PATCH v5 03/19] x86, boot: Simplify run_size calculation

2015-03-23 Thread Yinghai Lu
On Sun, Mar 22, 2015 at 8:25 PM, Baoquan He wrote: > > This may not be correct. In commit e602336 > runsize = offset(.bss) + size(.bss) + size(.brk), why this formula comes > out can be checked from discussion between Kees and Junjie: > https://lkml.org/lkml/2014/10/30/612 > > And in my one kernel

Re: [x86_64/KASan] RIP: 0010:[] [] get_node_info

2015-03-23 Thread Andrey Ryabinin
On 03/23/2015 04:25 AM, Fengguang Wu wrote: > Greetings, > > 0day kernel testing robot got the below dmesg and the first bad commit is > Could you please send me your config ? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.k

Re: [PATCHv2 01/12] usb: add bus type for USB ULPI

2015-03-23 Thread Lu, Baolu
On 03/18/2015 08:40 PM, Heikki Krogerus wrote: + +/** + * ulpi_register_driver - unregister a driver with the ULPI bus Hi Heikki, "ulpi_register_driver" should be changed to "ulpi_unregister_driver". Thanks, Baolu + * @drv: driver to unregister + * + * Unregisters a driver with the ULPI bus

[Bugfix] x86/PCI/ACPI: Fix regression caused by commit 63f1789ec716

2015-03-23 Thread Jiang Liu
Commit 63f1789ec716("Ignore resources consumed by host bridge itself") tries to ignore resources consumed by PCI host bridge itself by checking IORESOURCE_WINDOW flag, which causes regression on some platforms. For example, PC Engines APU.1C platform defines PCI MMIO resources with ACPI Memory32Fi

Re: [PATCH v2] kernel/panic/kexec: fix "crash_kexec_post_notifiers" option issue in oops path

2015-03-23 Thread Ingo Molnar
* Baoquan He wrote: > CC more people ... > > On 03/07/15 at 01:31am, "Hatayama, Daisuke/畑山 大輔" wrote: > > The commit f06e5153f4ae2e2f3b0300f0e260e40cb7fefd45 introduced > > "crash_kexec_post_notifiers" kernel boot option, which toggles > > wheather panic() calls crash_kexec() before panic_notif

Re: [RFC/PATCH] perf record: Save build-id of DSO in callchains

2015-03-23 Thread Ingo Molnar
* Namhyung Kim wrote: > Currently the build-id only recorded for sampled location, but in > order to correctly view/annotate callchains it might need the > build-id's of callchains too. I guess this choice was due to a > performance impact on the post-processing at perf record time. > > Add a

[PATCH] tty/n_gsm.c: fix a memory leak when gsmtty is removed

2015-03-23 Thread Pan Xinhui
In gsmtty_remove, we will put dlci. when dlci's ref-count is zero, tty_port_destructor will be called, and it will check if port->itty is NULL. However port->itty will be set to NULL in release_tty after gsmtty_remove. that may cause memory leak. so we use queue_work to put the dlci later. Signed

Re: [PATCH] xfs: use GFP_NOFS argument in radix_tree_preload

2015-03-23 Thread Dave Chinner
On Mon, Mar 23, 2015 at 01:37:15AM -0400, Taesoo Kim wrote: > Hi Dave, > > Thank you for letting us know. Since we are not an expert of XFS (nor > want to be), we really want to let you guys know it's potential bug > that you might miss (we are helping you!). And that's why Sanidhya > asked (rathe

Re: [PATCH RESEND v10] sched/deadline: support dl task migration during cpu hotplug

2015-03-23 Thread Ingo Molnar
* Wanpeng Li wrote: > On Tue, Mar 17, 2015 at 09:13:02AM +0100, Ingo Molnar wrote: > > > >* Wanpeng Li wrote: > > > >> Hi Ingo, > >> On Tue, Mar 17, 2015 at 09:06:13AM +0100, Ingo Molnar wrote: > >> > > >> >* Wanpeng Li wrote: > >> > > >> >> Hi Ingo, > >> >> On Mon, Mar 16, 2015 at 04:01:02PM

RE: [PATCH v2 1/2] f2fs: enable inline data by default

2015-03-23 Thread Chao Yu
Hi Wanpeng, > -Original Message- > From: Wanpeng Li [mailto:wanpeng...@linux.intel.com] > Sent: Monday, March 23, 2015 7:44 AM > To: Jaegeuk Kim > Cc: Changman Lee; Chao Yu; linux-f2fs-de...@lists.sourceforge.net; > linux-fsde...@vger.kernel.org; linux-kernel@vger.kernel.org; Wanpeng Li >

[PATCH] tty/n_gsm.c: fix a memory leak when gsmtty is removed

2015-03-23 Thread Pan Xinhui
In gsmtty_remove, we will put dlci. when dlci's ref-count is zero, tty_port_destructor will be called, and it will check if port->itty is NULL. However port->itty will be set to NULL in release_tty after gsmtty_remove. that may cause memory leak. so we use queue_work to put the dlci later. Signed

[PATCH v2] ARM: mm: Do not invoke OOM for higher order IOMMU DMA allocations

2015-03-23 Thread Tomasz Figa
IOMMU should be able to use single pages as well as bigger blocks, so if higher order allocations fail, we should not affect state of the system, with events such as OOM killer, but rather fall back to order 0 allocations. This patch changes the behavior of ARM IOMMU DMA allocator to use __GFP_NOR

Re: [PATCH v9 tip 6/9] samples: bpf: simple non-portable kprobe filter example

2015-03-23 Thread Ingo Molnar
* Alexei Starovoitov wrote: > tracex1_kern.c - C program compiled into BPF. > It attaches to kprobe:netif_receive_skb > When skb->dev->name == "lo", it prints sample debug message into trace_pipe > via bpf_trace_printk() helper function. > > tracex1_user.c - corresponding user space component t

Re: [PATCH v2 1/2] f2fs: enable inline data by default

2015-03-23 Thread Wanpeng Li
Hi Chao, On Mon, Mar 23, 2015 at 03:25:45PM +0800, Chao Yu wrote: >Hi Wanpeng, > >> -Original Message- >> From: Wanpeng Li [mailto:wanpeng...@linux.intel.com] >> Sent: Monday, March 23, 2015 7:44 AM >> To: Jaegeuk Kim >> Cc: Changman Lee; Chao Yu; linux-f2fs-de...@lists.sourceforge.net; >>

Re: [PATCH v6 0/8] Add support for Tegra Activity Monitor

2015-03-23 Thread Alexandre Courbot
On Wed, Mar 18, 2015 at 3:27 PM, Tomeu Vizoso wrote: > On 18 March 2015 at 06:10, MyungJoo Ham wrote: >>> Hello, >>> >>> something happened during the last cycle and an old version of the devfreq >>> driver was merged. >>> >>> This thread contains patches that bring it up to date to the last subm

Re: [PATCH v9 tip 6/9] samples: bpf: simple non-portable kprobe filter example

2015-03-23 Thread Ingo Molnar
* Alexei Starovoitov wrote: > +void read_trace_pipe(void) > +{ > + int trace_fd; > + > + trace_fd = open(DEBUGFS "trace_pipe", O_RDONLY, 0); > + if (trace_fd < 0) > + return; > + > + while (1) { > + static char buf[4096]; > + ssize_t sz; > + >

Re: [PATCH v9 tip 0/9] tracing: attach eBPF programs to kprobes

2015-03-23 Thread Ingo Molnar
* Steven Rostedt wrote: > On Fri, 20 Mar 2015 16:30:01 -0700 > Alexei Starovoitov wrote: > > > Hi Ingo, > > > > I think it's good to go. > > Patch 1 is already in net-next. Patch 3 depends on it. > > I'm assuming it's not going to be a problem during merge window. > > Patch 3 will have a mino

Re: [PATCH 1/4] kernel.h: Implement DIV_ROUND_CLOSEST_ULL

2015-03-23 Thread Daniel Vetter
On Fri, Mar 20, 2015 at 11:14:40AM +, Javi Merino wrote: > We have grown a number of different implementations of > DIV_ROUND_CLOSEST_ULL throughout the kernel. Move the i915 one to > kernel.h so that it can be reused. > > Cc: Daniel Vetter > Cc: Jani Nikula > Cc: David Airlie > Cc: Darric

Re: [PATCH v5 3/3] I2C: mediatek: Add driver for MediaTek MT8173 I2C controller

2015-03-23 Thread Sascha Hauer
On Sat, Mar 21, 2015 at 02:05:22PM +0800, Eddie Huang wrote: > Add mediatek MT8173 I2C controller driver. Compare to I2C controller > of earlier mediatek SoC, MT8173 fix write-then-read limitation, and > also increase message size to 64kb. > [...] > +static const struct i2c_adapter_quirks mt8173

Re: [PATCH v9 tip 8/9] samples: bpf: IO latency analysis (iosnoop/heatmap)

2015-03-23 Thread Ingo Molnar
* Alexei Starovoitov wrote: > BPF C program attaches to blk_mq_start_request/blk_update_request kprobe > events > to calculate IO latency. ... > +/* kprobe is NOT a stable ABI > + * This bpf+kprobe example can stop working any time. > + */ > +SEC("kprobe/blk_mq_start_request") > +int bpf_pro

Re: [PATCH 1/1] Add virtio-input driver.

2015-03-23 Thread Gerd Hoffmann
Hi, > > > > + if (cfg & (1 << (bit % 8))) > > > > + set_bit(bit, bits); > > > > > > what if not set? does something clear the mask? > > > > kzalloc? > > So you are really just reading in array of bytes? > All this set bit trickery is just to convert things

[PATCH 02/11] x86/xip: Update address of sections in linker script

2015-03-23 Thread Jim Kukunas
In order to update the LMA for each section, according to CONFIG_XIP_BASE, this patch uses the preprocessor to change the arguments passed to the AT keyword. Each LMA is updated to that symbol's physical address. The text section is aligned to a page so that the ELF header at the beginning of XIP_

[PATCH 05/11] x86/xip: reserve memblock for only data

2015-03-23 Thread Jim Kukunas
Nothing is loaded at the usual spot for .text, starting at CONFIG_PHYSICAL_START, so we don't reserve it. Additionally, the physical address of the _text isn't going to be physically contiguous with _data. Signed-off-by: Jim Kukunas --- arch/x86/kernel/setup.c | 5 + 1 file changed, 5 insert

[PATCH 11/11] x86/xip: update _va() and _pa() macros

2015-03-23 Thread Jim Kukunas
For obtaining the physical address, we always take the slow path of slow_virt_to_phys(). In the future, we should probably special case data addresses to avoid walking the page table. For obtaining a virtual address, this patch introduces a slow path of slow_xip_phys_to_virt(). Signed-off-by: Jim

[PATCH 04/11] x86/xip: XIP boot trampoline page tables

2015-03-23 Thread Jim Kukunas
Constructs the trampoline page tables for early XIP boot. Signed-off-by: Jim Kukunas --- arch/x86/kernel/head_32.S | 85 +++ 1 file changed, 85 insertions(+) diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S index 80f344a..642d73b 100

[PATCH 10/11] x86/xip: resolve alternative instructions at build

2015-03-23 Thread Jim Kukunas
Since the .text section can't be updated at run-time, remove the .alternatives sections and update the .text at build time. To pick the proper instructions, Kconfig options are exposed for each X86_FEATURE that needed to be resolved. Each X86_FEATURE gets a corresponding CONFIG_XIP_ENABLE_X86_FEATU

[PATCH 08/11] x86/xip: in setup_arch(), handle resource physical addr

2015-03-23 Thread Jim Kukunas
set code_resources to proper physical addr in setup_arch() Signed-off-by: Jim Kukunas --- arch/x86/kernel/setup.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 74fc6c8..f044453 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x8

[PATCH 09/11] x86/xip: snip the kernel text out of the memory mapping

2015-03-23 Thread Jim Kukunas
If the kernel tries to create an identity region for a memory range that spans the kernel text, split it into two pieces, skipping the text section. Otherwise, this will setup the standard text mapping, which will point to the normal RAM location for text instead of the XIP_BASE location. Signed-o

Re: [PATCH] x86: execve and sigreturn syscalls must return via iret

2015-03-23 Thread Ingo Molnar
* Brian Gerst wrote: > Both the execve and sigreturn family of syscalls have the ability to change > registers in ways that may not be compatabile with the syscall path they > were called from. In particular, sysret and sysexit can't handle non-default > %cs and %ss, and some bits in eflags. T

[PATCH 07/11] x86/xip: make e820_add_kernel_range() a NOP

2015-03-23 Thread Jim Kukunas
e820_add_kernel_range() checks whether the kernel text is present in the e820 map, and marked as usable RAM. If not, it modifies the e820 map accordingly. For XIP, that is unnecessary since the kernel text won't be loaded in RAM. Signed-off-by: Jim Kukunas --- arch/x86/kernel/setup.c | 6 ++

[PATCH 01/11] x86/xip: add XIP_KERNEL and XIP_BASE options

2015-03-23 Thread Jim Kukunas
The CONFIG_XIP_KERNEL Kconfig option enables eXecute-In-Place (XIP) support. When XIP_KERNEL is set, XIP_BASE points to the physical address of the vmlinux ELF file. Signed-off-by: Jim Kukunas --- arch/x86/Kconfig | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/x86/

[PATCH 06/11] x86/xip: after paging trampoline, discard PMDs above _brk

2015-03-23 Thread Jim Kukunas
In the likely case that XIP_BASE is above PAGE_OFFSET, we want to discard any early identity mappings. So rather than keeping every PMD above PAGE_OFFSET, only copy the ones from PAGE_OFFSET to the last PMD of _end. At this point, the linear address space should look normal. Signed-off-by: Jim Kuk

[RFC] x86 XIP

2015-03-23 Thread Jim Kukunas
Hi Folks, This patchset introduces eXecute-In-Place (XIP) support for x86. Right now only minimal configurations are supported (32-bit only, no SMP, no PAE, and so on). My goal is to increase the number of supported configurations in the future based on what functionality is requested. This patc

[PATCH 03/11] x86/xip: copy writable sections into RAM

2015-03-23 Thread Jim Kukunas
Loads all writable and non-zero sections into their VMA. Signed-off-by: Jim Kukunas --- arch/x86/include/asm/sections.h | 4 arch/x86/kernel/head_32.S | 22 ++ arch/x86/kernel/vmlinux.lds.S | 4 3 files changed, 30 insertions(+) diff --git a/arch/x86/incl

Re: [RFC] x86 XIP

2015-03-23 Thread Ingo Molnar
* Jim Kukunas wrote: > > Hi Folks, > > This patchset introduces eXecute-In-Place (XIP) support for x86. > [...] So we'd need a lot better high level description than this: - a bit of background description: what are the advantages of having the kernel image in non-RAM (flash), etc. - o

Re: [PATCH 11/11] x86/xip: update _va() and _pa() macros

2015-03-23 Thread Ingo Molnar
* Jim Kukunas wrote: > For obtaining the physical address, we always take the slow path > of slow_virt_to_phys(). In the future, we should probably special > case data addresses to avoid walking the page table. For obtaining > a virtual address, this patch introduces a slow path of > slow_xip_ph

Re: [PATCH net-next V2 20/23] ptp: dp83640: convert to the 64 bit get/set time methods.

2015-03-23 Thread Richard Cochran
On Sun, Mar 22, 2015 at 06:48:02PM +0100, Arnd Bergmann wrote: > Ok, got it. The code looks correct then, though I'd like to see the use > of 'timespec' pushed out as far as possible. How about changing the > type for tdr_write() as well here? > > tdr_write() itself should be fine until 2106, as i

Logitech T650 is unusable since 3.19.0

2015-03-23 Thread Лежанкин Иван
Hi, after update from 3.18.7 to 3.19.x my Logitech touchpad became almost unusable. I use OpenSUSE Thumbleweed and tried both custom and vanilla kernels. AFAIK, the problem may come with this changes: http://lkml.iu.edu/hypermail/linux/kernel/1412.1/03246.html The symptoms are as follows. 1. The

Re: [Linux v4.0-rc5] Warnings in drm_framebuffer_reference() and drm_atomic_check_only()

2015-03-23 Thread Daniel Vetter
On Mon, Mar 23, 2015 at 07:25:27AM +0100, Sedat Dilek wrote: > Hi, > > I did my weekly update of the Linux RC (here: v4.0-rc5) and fell over > some warning in the drm area. > > Please have a look... Just to confirm: Both are new in -rc5 and haven't been around in -rc4? Also can you pls give -ni

Re: [RFC/PATCH] perf record: Save build-id of DSO in callchains

2015-03-23 Thread Namhyung Kim
Hi Ingo, On Mon, Mar 23, 2015 at 08:22:14AM +0100, Ingo Molnar wrote: > > * Namhyung Kim wrote: > > > Currently the build-id only recorded for sampled location, but in > > order to correctly view/annotate callchains it might need the > > build-id's of callchains too. I guess this choice was du

[PATCH net] tcp: prevent fetching dst twice in early demux code

2015-03-23 Thread Michal Kubecek
On s390x, gcc 4.8 compiles this part of tcp_v6_early_demux() struct dst_entry *dst = sk->sk_rx_dst; if (dst) dst = dst_check(dst, inet6_sk(sk)->rx_dst_cookie); to code reading sk->sk_rx_dst twice, once for the test and once for the argument of ip6_dst_check() (dst

Re: [PATCH 1/3] thermal: hisilicon: add new hisilicon thermal sensor driver

2015-03-23 Thread kongxinwei
On 03/23/2015 12:46 PM, Leo Yan wrote: On Fri, Mar 20, 2015 at 03:55:27PM +, Mark Rutland wrote: That may be the case in the code as it stands today, but per the binding the trip points are the temperatures at which an action is to be taken. The thermal-zone has poilling-delay and polling-

Re: [PATCH 10/11] x86/xip: resolve alternative instructions at build

2015-03-23 Thread Borislav Petkov
On Mon, Mar 23, 2015 at 12:46:39AM -0700, Jim Kukunas wrote: > Since the .text section can't be updated at run-time, remove the > .alternatives sections and update the .text at build time. To pick the > proper instructions, Kconfig options are exposed for each X86_FEATURE > that needed to be resolv

linux-next: Tree for Mar 23

2015-03-23 Thread Stephen Rothwell
Hi all, Changes since 20150320: The arm-soc tree gained a conflict against the arm-perf tree. The mips tree gained a conflict against the arm-soc tree. The vfs tree still had its build failure for which I applied a patch. The net-next tree gained a conflict against the net tree. Non-merge com

RE: [PATCH v2 1/2] f2fs: enable inline data by default

2015-03-23 Thread Chao Yu
Hi Wanpeng, > -Original Message- > From: Wanpeng Li [mailto:wanpeng...@linux.intel.com] > Sent: Monday, March 23, 2015 3:15 PM > To: Chao Yu > Cc: 'Jaegeuk Kim'; 'Changman Lee'; linux-f2fs-de...@lists.sourceforge.net; > linux-fsde...@vger.kernel.org; linux-kernel@vger.kernel.org; Wanpeng L

Re: [PATCH] CHROMIUM: iommu: rockchip: Make sure that page table state is coherent

2015-03-23 Thread Tomasz Figa
Sorry, I had to dig my way out through my backlog. On Tue, Mar 3, 2015 at 10:36 PM, Joerg Roedel wrote: > On Mon, Feb 09, 2015 at 08:19:21PM +0900, Tomasz Figa wrote: >> Even though the code uses the dt_lock spin lock to serialize mapping >> operation from different threads, it does not protect f

Re: [PATCH v2 1/2] f2fs: enable inline data by default

2015-03-23 Thread Wanpeng Li
On Mon, Mar 23, 2015 at 04:36:18PM +0800, Chao Yu wrote: >> >like F2FS_MOUNT_BG_GC. >> > >> >e.g. >> >parse_options: >> >case Opt_noinline_data: >> >clear_opt(sbi, INLINE_DATA); >> >break; >> > >> >f2fs_show_options: >> >if (test_opt(sbi, INLINE_DATA)) >> >

Re: [PATCH 10/11] x86/xip: resolve alternative instructions at build

2015-03-23 Thread Borislav Petkov
On Mon, Mar 23, 2015 at 09:33:02AM +0100, Borislav Petkov wrote: > is this it? To save some memory? Probably embedded, maybe some light > bulb running linux... Yuck. Oh, one more thing: AFAICT, you're adding the whole XIP functionality with a bunch of ifdeffery in the main code paths. It might be

Re: [PATCH v5 2/3] I2C: mediatek: Add driver for MediaTek I2C controller

2015-03-23 Thread Sascha Hauer
On Sat, Mar 21, 2015 at 02:05:21PM +0800, Eddie Huang wrote: > From: Xudong Chen > > The mediatek SoCs have I2C controller that handle I2C transfer. > This patch include common I2C bus driver. > This driver is compatible with I2C controller on mt65xx/mt81xx. > > Signed-off-by: Xudong Chen > Sig

Re: [PATCH v3 03/12] irqchip: vf610-mscm: support NVIC parent

2015-03-23 Thread Stefan Agner
On 2015-03-23 01:11, Jason Cooper wrote: > Stefan, > > On Fri, Mar 13, 2015 at 12:36:11AM +0100, Stefan Agner wrote: >> Support the NVIC interrupt controller as node parent of the MSCM >> interrupt router. On the dual-core variants of Vybird (VF6xx), the >> NVIC interrupt controller is used by the

Re: [PATCH v5 1/3] dt-bindings: Add I2C bindings for mt65xx/mt81xx.

2015-03-23 Thread Sascha Hauer
On Sat, Mar 21, 2015 at 02:05:20PM +0800, Eddie Huang wrote: > From: Xudong Chen > > Add devicetree bindings for Mediatek Soc I2C driver. > > Signed-off-by: Xudong Chen > Signed-off-by: Eddie Huang > --- > .../devicetree/bindings/i2c/i2c-mt6577.txt | 41 > ++ > 1

Re: [LKP] [mm] 3484b2de949: -46.2% aim7.jobs-per-min

2015-03-23 Thread Huang Ying
On Thu, 2015-03-05 at 10:26 +, Mel Gorman wrote: > On Thu, Mar 05, 2015 at 01:34:59PM +0800, Huang Ying wrote: > > Hi, Mel, > > > > On Sat, 2015-02-28 at 15:30 +0800, Huang Ying wrote: > > > On Sat, 2015-02-28 at 01:46 +, Mel Gorman wrote: > > > > On Fri, Feb 27, 2015 at 03:21:36PM +0800,

Re: [PATCH 1/2] mm: Introducing arch_remap hook

2015-03-23 Thread Ingo Molnar
* Laurent Dufour wrote: > Some architecture would like to be triggered when a memory area is moved > through the mremap system call. > > This patch is introducing a new arch_remap mm hook which is placed in the > path of mremap, and is called before the old area is unmapped (and the > arch_unma

Re: [PATCH v3] kprobes: Disable Kprobe when ftrace arming fails

2015-03-23 Thread Ingo Molnar
* Petr Mladek wrote: > arm_kprobe_ftrace() could fail, especially after introducing ftrace > IPMODIFY flag and LifePatching. But this situation is not properly > handled. s/LifePatching/LivePatching? Why not fix live patching to still allow kprobes that worked before? Thanks, Ingo

Re: [PATCH RESEND v10] sched/deadline: support dl task migration during cpu hotplug

2015-03-23 Thread Peter Zijlstra
On Mon, Mar 23, 2015 at 08:25:04AM +0100, Ingo Molnar wrote: > > >> >> >> + if (cpu >= nr_cpu_ids) { > > >> >> >> + if (dl_bandwidth_enabled()) { > > >> >> >> + /* > > >> >> >> + * Fail to f

[V4.0-rc5 Regression] drm/intel problem

2015-03-23 Thread Jörg Otte
The display remains dark in V4.0-rc5 except of a small white line at the top of the screen so I can't see anything. RC4 was good. The latest good kernel that I know of is at least 4.0.0-rc4-00199-gb314aca. Thanks, Jörg -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in t

Re: PANIC: double fault, error_code: 0x0 in 4.0.0-rc3-2, kvm related?

2015-03-23 Thread Takashi Iwai
At Fri, 20 Mar 2015 19:16:53 +0100, Denys Vlasenko wrote: > > Hi, > > This particular crash was hard to diagnose because of two reasons: > > * CPU would happily use userspace RSP in kernel mode. > Crash comes only later, when we run off the stack. > We lose information when it started. > >

Re: [PATCH] tpm/tpm_infineon: Use struct dev_pm_ops for power management

2015-03-23 Thread Marcel Selhorst
Make the tpm_infineon driver define its PM callbacks through a struct dev_pm_ops object rather than by using legacy PM hooks in struct pnp_driver. This allows the driver to use tpm_pm_suspend() as its suspend callback directly, so we can remove the duplicated savestate code. Signed-off-by: Peter

Re: [PATCH] ARM: print cma-reserved pages from show_mem

2015-03-23 Thread Gregory Fong
Hello, On Tue, Feb 10, 2015 at 3:32 AM, Russell King - ARM Linux wrote: > On Mon, Feb 09, 2015 at 11:55:54AM -0800, Gregory Fong wrote: >> On Fri, Feb 6, 2015 at 1:41 PM, Laura Abbott wrote: >> > So it looks like the lib/show_mem.c does something different >> > #ifdef CONFIG_CMA >> > pri

Re: [PATCH 2/2] sched/deadline: always enqueue on previous rq when dl_task_timer fires

2015-03-23 Thread Kirill Tkhai
В Вт, 24/02/2015 в 09:28 +, Juri Lelli пишет: > dl_task_timer() may fire on a different rq from where a task was removed > after throttling. Since the call path is: > > dl_task_timer() -> > enqueue_task_dl() -> > enqueue_dl_entity() -> > replenish_dl_entity() > > and reple

Re: [PATCH 3/4] mmc: sdio: support switching to 1-bit before turning off clocks

2015-03-23 Thread Ulf Hansson
On 24 February 2015 at 03:42, NeilBrown wrote: > According to section 7.1.2 of > > http://www.sandisk.com/media/File/OEM/Manuals/SD_SDIO_specsv1.pdf > > In the case where the interrupt mechanism is used to wake the host while > the card is in a low power state (i.e. no clocks), Both the ca

Re: [PATCH 1/2] mm: Introducing arch_remap hook

2015-03-23 Thread Laurent Dufour
On 23/03/2015 09:52, Ingo Molnar wrote: > > * Laurent Dufour wrote: > >> Some architecture would like to be triggered when a memory area is moved >> through the mremap system call. >> >> This patch is introducing a new arch_remap mm hook which is placed in the >> path of mremap, and is called be

Re: Logitech T650 is unusable since 3.19.0

2015-03-23 Thread Borislav Petkov
CC people. On Mon, Mar 23, 2015 at 11:21:02AM +0300, Лежанкин Иван wrote: > Hi, > > after update from 3.18.7 to 3.19.x my Logitech touchpad became almost > unusable. I use OpenSUSE Thumbleweed and tried both custom and vanilla > kernels. AFAIK, the problem may come with this changes: > http://lkm

Re: [PATCH v10 10/11] sched: add SD_PREFER_SIBLING for SMT level

2015-03-23 Thread Peter Zijlstra
On Tue, Mar 03, 2015 at 09:38:11AM +0100, Vincent Guittot wrote: > > Prefer siblings logic dates back to https://lkml.org/lkml/2009/8/27/210 > > and only used in update_sd_lb_stats() where we have > > > > if (child && child->flags & SD_PREFER_SIBLING) > > prefer_sibling = 1; > > > > Howev

[PATCH] MAINTAINERS: Add myself as DMI/SMBIOS support maintainer

2015-03-23 Thread Jean Delvare
I am familiar with these drivers and I care about them so let me add myself as their maintainer. Signed-off-by: Jean Delvare Cc: Matt Fleming --- MAINTAINERS |7 +++ 1 file changed, 7 insertions(+) --- linux-4.0-rc4.orig/MAINTAINERS 2015-03-19 14:19:56.179421725 +0100 +++ linux-4.

[PATCH] sched/deadline: reduce rq lock contention by eliminating locking of non-feasible target

2015-03-23 Thread Wanpeng Li
This patch adds checks that prevents futile attempts to move dl tasks to a CPU with active tasks of equal or earlier deadline. The same behavior as commit 80e3d87b2c55 ("sched/rt: Reduce rq lock contention by eliminating locking of non-feasible target") for rt class. Signed-off-by: Wanpeng Li

Re: [PATCH RFC 1/2] dmaengine: Introduce scheduled DMA framework

2015-03-23 Thread Ludovic Desroches
On Sat, Mar 21, 2015 at 12:42:06PM -0700, Maxime Ripard wrote: [...] > +/* > + * Besoin d'une fonction pour pusher un descriptor vers un pchan > + * > + * Flow normal: > + * - Election d'un pchan (Framework) > + * - Push d'un descripteur vers le pchan (Driver) > + * - idle > + * - int

[PATCH v2] sched/deadline: reduce rq lock contention by eliminating locking of non-feasible target

2015-03-23 Thread Wanpeng Li
This patch adds checks that prevents futile attempts to move dl tasks to a CPU with active tasks of equal or earlier deadline. The same behavior as commit 80e3d87b2c55 ("sched/rt: Reduce rq lock contention by eliminating locking of non-feasible target") for rt class. Signed-off-by: Wanpeng Li ---

Re: [PATCH 0/5] Driver for pxa architectures

2015-03-23 Thread Robert Jarzmik
Arnd Bergmann writes: > On Saturday 21 March 2015, Robert Jarzmik wrote: >> It is as well one of the last steps (or so I hope) for pxa architure to be >> part >> of the multiplatform ARM architecture, and at the same time keep its legacy >> platforms operational. It will kill arch/arm/plat-pxa/d

Re: bpf+tracing next steps. Was: [PATCH v9 tip 3/9] tracing: attach BPF programs to kprobes

2015-03-23 Thread Masami Hiramatsu
(2015/03/23 13:57), Alexei Starovoitov wrote: > On 3/22/15 7:17 PM, Masami Hiramatsu wrote: >> (2015/03/23 3:03), Alexei Starovoitov wrote: >> >>> User space tools that will compile ktap/dtrace scripts into bpf might >>> use build-id for their own purpose, but that's a different discussion. >> >> A

Re: [PATCH 1/4] mmc: core: fold mmc_set_bus_width calls into sdio_enable_4bit_bus.

2015-03-23 Thread Ulf Hansson
On 24 February 2015 at 03:42, NeilBrown wrote: > Every call to sdio_enable_4bit_bus is followed (on success) but a call /s /but / by > to mmc_set_bus_width(). > > To simplify the code, include those calls directly in > sdio_enable_4bit_bus(). > > Signed-off-by: NeilBrown Nice cleanup! Applied

Re: [lttng-dev] Alternative to signals/sys_membarrier() in liburcu

2015-03-23 Thread Duncan Sands
So, given the fact that the userspace RCU library does now see some real-world use, is it now time for Mathieu to resubmit his sys_membarrier() patch? I'm using userspace RCU with success in financial software, so the LTTng project isn't the only user. It works well, but it's not as fast as I'

Re: PANIC: double fault, error_code: 0x0 in 4.0.0-rc3-2, kvm related?

2015-03-23 Thread Takashi Iwai
At Mon, 23 Mar 2015 10:02:52 +0100, Takashi Iwai wrote: > > At Fri, 20 Mar 2015 19:16:53 +0100, > Denys Vlasenko wrote: > > Takashi, are you willing to reproduce the panic one more time, > > with this patch? I would like to see whether oops messages > > are more informative with it. > > It can't

Re: [PATCH 3/3] perf, x86: Add INST_RETIRED.ALL workarounds

2015-03-23 Thread Ingo Molnar
* Andi Kleen wrote: > From: Andi Kleen > > On Broadwell INST_RETIRED.ALL cannot be used with any period > that doesn't have the lowest 6 bits cleared. And the period > should not be smaller than 128. Sloppy changelog: a most basic question is not answered by the changelog: what happens in pr

Re: A peculiarity in ptrace/waitpid behavior

2015-03-23 Thread Pavel Labath
On 21 March 2015 at 18:57, Oleg Nesterov wrote: > On 03/20, Pavel Labath wrote: >> >> One difference I see though is that in >> our test, we are not sending any additional signals to the thread in >> question (at least we shouldn't be sending them, but we are sending some >> signals to other threa

Re: [PATCH 1/3] perf, x86: Add new cache events table for Haswell

2015-03-23 Thread Ingo Molnar
* Andi Kleen wrote: > From: Andi Kleen > > Haswell offcore events are quite different from Sandy Bridge. > Add a new table to handle Haswell properly. > > Note that the offcore bits listed in the SDM are not quite correct > (this is currently being fixed). An uptodate list of bits is > in the

Re: [PATCH] ASoC:pcm512x: Make PLL lock output selectable via device tree.

2015-03-23 Thread Howard Mitchell
On 22/03/15 16:24, Mark Brown wrote: On Fri, Mar 20, 2015 at 09:22:43PM +, Howard Mitchell wrote: + if (pcm512x->pll_lock) { +if (of_property_read_u32(np, "pll-lock", &val) >= 0) { +if (val > 6) { +dev_err(dev, "I

Re: [PATCH 05/10] mfd: syscon: Add Atmel MC (Memory Controller) registers definition

2015-03-23 Thread Nicolas Ferre
Le 16/03/2015 23:44, Alexandre Belloni a écrit : > From: Boris Brezillon > > The at91rm9200 SoC embeds a Memory Controller block which is used to > configure several aspects of the platform: > - AHB/APB Bus behavior > - SDRAM Controller > - EBI (External Bus Interface) and SMC (Static Memory Cont

Re: [PATCH 2/4] mmc: core: allow non-blocking form of mmc_claim_host

2015-03-23 Thread Ulf Hansson
On 24 February 2015 at 03:42, NeilBrown wrote: > Change the handling for the 'abort' flag so that if > it is set, but we can claim the host, then do the claim, > rather than aborting. > > When the abort is async this just means that a race between aborting > an allowing a claim is resolved slightl

Re: [PATCH v10 10/11] sched: add SD_PREFER_SIBLING for SMT level

2015-03-23 Thread Preeti U Murthy
On 03/23/2015 02:41 PM, Peter Zijlstra wrote: > On Tue, Mar 03, 2015 at 09:38:11AM +0100, Vincent Guittot wrote: > >>> Prefer siblings logic dates back to https://lkml.org/lkml/2009/8/27/210 >>> and only used in update_sd_lb_stats() where we have >>> >>> if (child && child->flags & SD_PREFER_SIB

Re: [PATCH 09/10] ARM: at91: remove mach/at91_ramc.h and mach/at91rm9200_mc.h

2015-03-23 Thread Nicolas Ferre
Le 16/03/2015 23:44, Alexandre Belloni a écrit : > mach/at91_ramc.h and mach/at91rm9200_mc.h are necessary anymore, remove them. s/are/aren't/ ? > Signed-off-by: Alexandre Belloni > --- > arch/arm/mach-at91/Makefile | 3 - > arch/arm/mach-at91/include/mach/at91_ramc.h

Re: [PATCH 00/16] Sanitize usage of ->flags and ->mapping for tail pages

2015-03-23 Thread Kirill A. Shutemov
On Sun, Mar 22, 2015 at 05:28:47PM -0700, Hugh Dickins wrote: > On Thu, 19 Mar 2015, Kirill A. Shutemov wrote: > > > Currently we take naive approach to page flags on compound -- we set the > > flag on the page without consideration if the flag makes sense for tail > > page or for compound page in

Re: [PATCH 33/35 linux-next] mmc: constify of_device_id array

2015-03-23 Thread Ulf Hansson
On 21 March 2015 at 21:09, Fabian Frederick wrote: > > >> On 20 March 2015 at 09:56 Ulf Hansson wrote: >> >> >> On 17 March 2015 at 10:49, Ulf Hansson wrote: >> > On 16 March 2015 at 20:59, Fabian Frederick wrote: >> >> of_device_id is always used as const. >> >> (See driver.of_match_table and

Re: [PATCH v2 0/5] mfd: Fix platform device ids to avoid probe failure

2015-03-23 Thread Johan Hovold
On Fri, Mar 20, 2015 at 08:23:18PM +0100, Bartlomiej Zolnierkiewicz wrote: > Commit 6e3f62f0793e ("mfd: core: Fix platform-device id generation") > changed the way platform device ids are generated from mfd id base and > cell ids in mfd_add_device(). Unfortunately the change in question > breaks

Re: [PATCH 0/7] ARM: shmobile: Add IRQC clock to device tree

2015-03-23 Thread Jason Cooper
Geert, On Wed, Mar 18, 2015 at 07:55:54PM +0100, Geert Uytterhoeven wrote: > Hi, > > This patch series adds the IRQC clock to the device tree on SoCs that > have such a clock (r8a73a4 and r8a779x), and adds mininal runtime PM > support to the renesas-irqc driver, to make sure the clock is e

Re: [PATCH 03/10] ata: at91: use syscon to configure the smc

2015-03-23 Thread Nicolas Ferre
Le 16/03/2015 23:44, Alexandre Belloni a écrit : > Use syscon/regmap to configure the smc. This allows to avoid using > at91sam9_smc.h and to compile the driver in a multiplatform configuration. > > The driver will still not probe until the proper DT bindings are added. Alexandre, just for the re

Re: [PATCH v3] kprobes: Disable Kprobe when ftrace arming fails

2015-03-23 Thread Petr Mladek
On Mon 2015-03-23 09:54:26, Ingo Molnar wrote: > > * Petr Mladek wrote: > > > arm_kprobe_ftrace() could fail, especially after introducing ftrace > > IPMODIFY flag and LifePatching. But this situation is not properly > > handled. > > s/LifePatching/LivePatching? Great catch! This is well hid

Re: [PATCH v5 1/2] Input: touchscreen-iproc: Add Broadcom iProc touchscreen driver

2015-03-23 Thread Bo Shen
Hi Jonathan Richardson, On 03/21/2015 08:57 AM, Jonathan Richardson wrote: +static struct platform_driver iproc_ts_driver = { + .probe = iproc_ts_probe, Just a little curious, is the .remove function missing or it doesn't need it. Thanks. + .driver = { + .name

Re: [PATCH] irqchip: digicolor: move digicolor_set_gc to init section

2015-03-23 Thread Jason Cooper
On Sun, Mar 22, 2015 at 09:39:45AM +0200, Baruch Siach wrote: > The digicolor_set_gc() routine is only called from __init annotated > digicolor_of_init(). Annotate digicolor_set_gc() with __init as well to save a > few bytes at run time. > > Signed-off-by: Baruch Siach > --- > drivers/irqchip/ir

Re: [PATCH 00/10] ARM: at91 cleanups for 4.1 #2

2015-03-23 Thread Nicolas Ferre
Le 16/03/2015 23:44, Alexandre Belloni a écrit : > Hi, > > This patch set finishes the clean up of the mach-at91 directory. > > It fixed the remaining two drivers (at91_cf and pata_at91) so that they > compile > in a multiplatform configuration. > > Then it removes the uneeded headers. > > >

Re: [PATCH 02/10] ARM: at91/pm: move AT91_MEMCTRL_* to pm.h

2015-03-23 Thread Nicolas Ferre
Le 16/03/2015 23:44, Alexandre Belloni a écrit : > the AT91_MEMCTRL_* defines are only used by the pm code, move them to pm.h > > Signed-off-by: Alexandre Belloni Acked-by: Nicolas Ferre > --- > arch/arm/mach-at91/include/mach/at91_ramc.h | 4 > arch/arm/mach-at91/pm.h

Re: [PATCH 01/10] ARM: at91/pm: move the standby functions to pm.c

2015-03-23 Thread Nicolas Ferre
Le 16/03/2015 23:44, Alexandre Belloni a écrit : > The standby functions are now only used in pm.c, move them there. > > Also, they are not inlined as a pointer to those functions is passed to the > cpuidle driver. > > Signed-off-by: Alexandre Belloni Acked-by: Nicolas Ferre > --- > arch/arm/

Re: [PATCH net-next V2 00/23] ptp: get ready for 2038

2015-03-23 Thread Jeff Kirsher
On Sat, 2015-03-21 at 22:39 +0100, Richard Cochran wrote: > This series converts the core driver methods of the PTP Hardware Clock > (PHC) subsystem to use the 64 bit version of the timespec structure, > making the core API ready for the year 2038. > > In addition, I reviewed how each driver and d

Re: [PATCH 1/3] ARM: dts: OMAP5+: separate the cpu thermal zone definition from omap4

2015-03-23 Thread Tero Kristo
On 03/20/2015 11:54 PM, Eduardo Valentin wrote: On Fri, Mar 20, 2015 at 02:47:39PM -0500, Nishanth Menon wrote: From: Tero Kristo OMAP4 has a finer counter granularity, which allows for a delay of 1000ms in the thermal zone polling intervals. OMAP5/DRA7 have different counter mechanism, which

Re: [PATCH 3/3] perf, x86: Add INST_RETIRED.ALL workarounds

2015-03-23 Thread Peter Zijlstra
On Mon, Mar 23, 2015 at 10:38:54AM +0100, Ingo Molnar wrote: > > * Andi Kleen wrote: > > > From: Andi Kleen > > > > On Broadwell INST_RETIRED.ALL cannot be used with any period > > that doesn't have the lowest 6 bits cleared. And the period > > should not be smaller than 128. > > Sloppy chang

[PATCH 2/2] clk: tegra: Register the proper number of resets

2015-03-23 Thread Thierry Reding
From: Thierry Reding The number of resets controls is 32 times the number of peripheral register banks rather than 32 times the number of clocks. This reduces (drastically) the number of reset controls registered from 10080 (315 clocks * 32) to 224 (6 peripheral register banks * 32). This also f

[PATCH 1/2] clk: tegra: Add peripheral registers for bank Y

2015-03-23 Thread Thierry Reding
From: Thierry Reding Tegra210 has an extra bank of peripheral clock registers. Add it to the generic peripheral clock code. Cc: Peter De Schrijver Cc: Prashant Gaikwad Signed-off-by: Thierry Reding --- drivers/clk/tegra/clk.c | 14 ++ 1 file changed, 14 insertions(+) diff --git

[PATCH] irqchip: tegra: Add Tegra210 support

2015-03-23 Thread Thierry Reding
From: Thierry Reding Tegra210 uses the same legacy interrupt controller as older generations but it adds a sixth instance. Signed-off-by: Thierry Reding --- drivers/irqchip/irq-tegra.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-tegra.c b/driv

Re: [PATCH] ext3: Remove useless condition in if statement.

2015-03-23 Thread Lukáš Czerner
On Fri, 20 Mar 2015, Wei Yuan wrote: > Date: Fri, 20 Mar 2015 11:09:10 +0800 > From: Wei Yuan > To: j...@suse.cz, a...@linux-foundation.org, adilger.ker...@dilger.ca > Cc: linux-e...@vger.kernel.org, linux-kernel@vger.kernel.org, > lczer...@redhat.com, lize...@huawei.com > Subject: [PATCH] ex

  1   2   3   4   5   6   7   8   >