Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-19 Thread Konstantin Khlebnikov
On Wed, Nov 19, 2014 at 7:09 PM, Vlastimil Babka wrote: > On 11/19/2014 03:36 PM, Konstantin Khlebnikov wrote: >> On Wed, Nov 19, 2014 at 2:50 AM, Vlastimil Babka wrote: >>> On 11/19/2014 12:02 AM, Konstantin Khlebnikov wrote: On Wed, Nov 19, 2014 at 1:15 AM, Konstantin Khlebnikov

Re: Looking for good references for ARM driver development

2014-11-19 Thread Victor Ascroft
On 11/19/2014 06:20 PM, Mason wrote: > Hello everyone, > > I've been using several Linux distributions, and writing user-space programs, > for 15 years. > I recently seized an opportunity to move into kernel development, mainly > writing drivers > for an ARM SoC, and I'm finding the transition

Re: [PATCH 1/2] tracing: Clean up tracing_fill_pipe_page()

2014-11-19 Thread Petr Mladek
On Wed 2014-11-19 11:17:18, Steven Rostedt wrote: > On Tue, 18 Nov 2014 17:15:46 +0100 > Petr Mladek wrote: > > > On Mon 2014-11-17 14:11:08, Steven Rostedt wrote: > > > > > > > > I don't like the fact that I did a code structure change with this > > > > patch. This patch should be just a

Re: [PATCH RFC] ARM: option for loading modules into vmalloc area

2014-11-19 Thread Nicolas Pitre
On Wed, 19 Nov 2014, Russell King - ARM Linux wrote: > On Wed, Nov 19, 2014 at 11:37:47AM -0500, Nicolas Pitre wrote: > > On Wed, 19 Nov 2014, Russell King - ARM Linux wrote: > > > Which is not a good idea either, because the compiler needs to know how > > > far away its own manually generated

[PATCH 1/1] DRM-vmwgfx: Deletion of an unnecessary check before the function call "vfree"

2014-11-19 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 19 Nov 2014 17:50:19 +0100 The vfree() function performes also input parameter validation. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

Re: [PATCH RFC] ARM: option for loading modules into vmalloc area

2014-11-19 Thread Russell King - ARM Linux
On Wed, Nov 19, 2014 at 05:38:57PM +0100, Ard Biesheuvel wrote: > Numbers are disambiguated by the f and b suffixes, so they can be > reused in the same .s file. So as long as you use a strictly numerical > prefix, you can deal correctly with the case where, for instance, > do_div() is called

[GIT PULL] at91: dt for 3.19 #2

2014-11-19 Thread Nicolas Ferre
Arnd, Olof, Kevin, Another DT pull-request for 3.19. For this one, I had to pull one Vinod's topic branch to be able to include the XDMA DT properties. This branch is stable and based on 3.18-rc3 (Cf. http://lists.infradead.org/pipermail/linux-arm-kernel/2014-November/304041.html). Note that my

Re: [PATCH 1/3] mfd: arizona: Add support for CS47L24

2014-11-19 Thread Lee Jones
On Tue, 11 Nov 2014, Richard Fitzgerald wrote: > Signed-off-by: Richard Fitzgerald > --- > drivers/mfd/Kconfig |6 + > drivers/mfd/Makefile |3 + > drivers/mfd/arizona-core.c | 91 ++- > drivers/mfd/arizona-irq.c| 42 +- >

Re: [PATCH 1/3] tun: move internal flag defines out of uapi

2014-11-19 Thread Michael S. Tsirkin
On Wed, Nov 19, 2014 at 10:47:14AM -0600, Dan Williams wrote: > On Wed, 2014-11-19 at 18:18 +0200, Michael S. Tsirkin wrote: > > TUN_ flags are internal and never exposed > > to userspace. Any application using it is almost > > certainly buggy. > > Except for TUN_TUN_DEV and TUN_TAP_DEV and

Re: [PATCH RFC] ARM: option for loading modules into vmalloc area

2014-11-19 Thread Russell King - ARM Linux
On Wed, Nov 19, 2014 at 11:37:47AM -0500, Nicolas Pitre wrote: > On Wed, 19 Nov 2014, Russell King - ARM Linux wrote: > > Which is not a good idea either, because the compiler needs to know how > > far away its own manually generated literal pool is from the instructions > > which reference it.

Re: [PATCH 1/1] net: sched: Deletion of an unnecessary check before the function call "kfree"

2014-11-19 Thread John Fastabend
On 11/18/2014 12:26 PM, SF Markus Elfring wrote: From: Markus Elfring Date: Tue, 18 Nov 2014 21:21:16 +0100 The kfree() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle

Re: [PATCH 1/3] tun: move internal flag defines out of uapi

2014-11-19 Thread Dan Williams
On Wed, 2014-11-19 at 18:18 +0200, Michael S. Tsirkin wrote: > TUN_ flags are internal and never exposed > to userspace. Any application using it is almost > certainly buggy. Except for TUN_TUN_DEV and TUN_TAP_DEV and TUN_TYPE_MASK... which we're using (for some reason) in NetworkManager, though

[PATCH V2] HID: i2c-hid: fix race condition reading reports

2014-11-19 Thread Antonio Borneo
From: Jean-Baptiste Maneyrol Current driver uses a common buffer for reading reports either synchronously in i2c_hid_get_raw_report() and asynchronously in the interrupt handler. There is race condition if an interrupt arrives immediately after the report is received in i2c_hid_get_raw_report();

Re: [PATCH 2/2] tracing: Use trace_seq_used() and seq_buf_used() instead of len

2014-11-19 Thread Petr Mladek
On Wed 2014-11-19 11:00:37, Steven Rostedt wrote: > On Wed, 19 Nov 2014 15:40:05 +0100 > Petr Mladek wrote: > > > > Regardless of overflow or not (or even if trace_seq is full), that if > > > statement will prevent this from doing any buffer overflows. > > > > > > s->seq.len will never be more

Re: [PATCH] driver: input: touchscreen: add Raydium i2c touchscreen driver

2014-11-19 Thread Daniel Mack
On 11/19/2014 04:30 PM, jeffrey.lin wrote: > From: "jeffrey.lin" > > this patch is porting Raydium I2C touch driver. Developer can enable > raydium touch driver by modifying define "CONFIG_TOUCHSCREEN_RM_TS". > > BUG: None > TEST: built and test with peppy > > Signed-off-by:

Re: [PATCHv2 3/5] clk: s2mps11: Add the support for S2MPS13 PMIC clock

2014-11-19 Thread Lee Jones
On Tue, 18 Nov 2014, Mike Turquette wrote: > Quoting Chanwoo Choi (2014-11-18 00:59:41) > > This patch adds the support for S2MPS13 PMIC clock which is same with > > existing > > S2MPS14 RTC IP. But, S2MPS13 uses all of clocks (32khz_{ap|bt|cp}). > > > > Cc: Mike Turquette > > Signed-off-by:

Re: [PATCH RFC] ARM: option for loading modules into vmalloc area

2014-11-19 Thread Russell King - ARM Linux
On Wed, Nov 19, 2014 at 05:25:41PM +0100, Ard Biesheuvel wrote: > On 19 November 2014 17:07, Russell King - ARM Linux > wrote: > > On Wed, Nov 19, 2014 at 05:02:40PM +0100, Ard Biesheuvel wrote: > > Which is not a good idea either, because the compiler needs to know how > > far away its own

Re: [RFC PATCH 08/16] PCI: Introduce pci_scan_host_bridge() and pci_host_info

2014-11-19 Thread Liviu Dudau
On Wed, Nov 19, 2014 at 02:09:12AM +, Yijing Wang wrote: > >> struct pci_host_bridge *pci_create_host_bridge( > >> - struct device *parent, u32 db, > >> - struct pci_ops *ops, void *sysdata, > >> - struct list_head *resources) > >> + struct device

Re: [PATCH RFC] ARM: option for loading modules into vmalloc area

2014-11-19 Thread Ard Biesheuvel
On 19 November 2014 17:37, Nicolas Pitre wrote: > On Wed, 19 Nov 2014, Russell King - ARM Linux wrote: > >> On Wed, Nov 19, 2014 at 05:02:40PM +0100, Ard Biesheuvel wrote: >> > On 19 November 2014 16:52, Konstantin Khlebnikov wrote: >> > > Do you mean ldr pc, =symbol ? >> > > >> > > In this case

Re: [PATCH 1/1] EDAC: Deletion of unnecessary checks before the function call "pci_dev_put"

2014-11-19 Thread Borislav Petkov
On Wed, Nov 19, 2014 at 04:06:53PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 19 Nov 2014 16:00:13 +0100 > > The pci_dev_put() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was

Re: [PATCH] thermal: sti: Ignore suspend/resume functions when !PM

2014-11-19 Thread Lee Jones
On Wed, 19 Nov 2014, Fabio Estevam wrote: > On Wed, Nov 19, 2014 at 1:50 PM, Lee Jones wrote: > > Prevents build warning: > > > > st_thermal.c:278:12: > > warning: ‘st_thermal_suspend’ defined but not used [-Wunused-function] > > st_thermal.c:286:12: > > warning: ‘st_thermal_resume’

Re: [PATCH RFC] ARM: option for loading modules into vmalloc area

2014-11-19 Thread Ard Biesheuvel
On 19 November 2014 17:32, Konstantin Khlebnikov wrote: > On Wed, Nov 19, 2014 at 7:25 PM, Ard Biesheuvel > wrote: >> On 19 November 2014 17:07, Russell King - ARM Linux >> wrote: >>> On Wed, Nov 19, 2014 at 05:02:40PM +0100, Ard Biesheuvel wrote: On 19 November 2014 16:52, Konstantin

[PATCH 1/1] DRM-UDL: Deletion of an unnecessary check before the function call "vunmap"

2014-11-19 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 19 Nov 2014 17:33:32 +0100 The vunmap() function performes also input parameter validation. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/gpu/drm/udl/udl_gem.c |

Re: [PATCH RFC] ARM: option for loading modules into vmalloc area

2014-11-19 Thread Nicolas Pitre
On Wed, 19 Nov 2014, Russell King - ARM Linux wrote: > On Wed, Nov 19, 2014 at 05:02:40PM +0100, Ard Biesheuvel wrote: > > On 19 November 2014 16:52, Konstantin Khlebnikov wrote: > > > Do you mean ldr pc, =symbol ? > > > > > > In this case I get this error: > > > > > > /tmp/ccAHtONU.s: Assembler

Re: [PATCH] HID: i2c-hid: fix race condition reading reports

2014-11-19 Thread Antonio Borneo
Hi Benjamin, On Tue, Nov 18, 2014 at 5:43 AM, Benjamin Tissoires wrote: > Hey Antonio, > > On Nov 16 2014 or thereabouts, Antonio Borneo wrote: >> From: Jean-Baptiste Maneyrol >> >> From: Jean-Baptiste Maneyrol >> >> Current driver uses a common buffer for reading reports either >>

Re: [RFC PATCH 07/16] PCI: Separate pci_host_bridge creation out of pci_create_root_bus()

2014-11-19 Thread Liviu Dudau
On Wed, Nov 19, 2014 at 10:24:52AM +0800, Yijing Wang wrote: > >> We need, some platforms pass NULL pointer as host bridge parent. > > > > Yijing, > > > > May I suggest a different approach here? Rather than having to pass an > > opaque > > pointer that gets converted by the host bridge driver

Re: [RFC PATCH 07/16] PCI: Separate pci_host_bridge creation out of pci_create_root_bus()

2014-11-19 Thread Liviu Dudau
On Wed, Nov 19, 2014 at 01:42:52AM +, Yijing Wang wrote: > On 2014/11/18 23:30, Liviu Dudau wrote: > > On Mon, Nov 17, 2014 at 10:21:41AM +, Yijing Wang wrote: > >> There are some common PCI infos like domain, msi_controller, these > >> infos are saved in arch PCI sysdata, and lots arch

Re: [PATCH v5 1/4] mfd: rt5033: Add Richtek RT5033 driver core.

2014-11-19 Thread Lee Jones
On Wed, 19 Nov 2014, Beomho Seo wrote: > This patch adds a new driver for Richtek RT5033 driver. > RT5033 is a Multifunction device which includes battery charger, fuel gauge, > flash LED current source, LDO and synchronous Buck converter. It is interfaced > to host controller using I2C

Re: [PATCH 1/3] usb: phy: introduce usb_phy_set_event interface

2014-11-19 Thread Todd Poynor
On Wed, Nov 19, 2014 at 2:43 AM, Kiran Kumar Raparthy wrote: > From: Todd Poynor > > usb: phy: introduce usb_phy_set_event interface Hi Kiran, this is new stuff that is all your own work and you deserve the credit. Thanks for working to get this feature in shape for mainline! Todd -- To

Re: [PATCH RFC] ARM: option for loading modules into vmalloc area

2014-11-19 Thread Konstantin Khlebnikov
On Wed, Nov 19, 2014 at 7:25 PM, Ard Biesheuvel wrote: > On 19 November 2014 17:07, Russell King - ARM Linux > wrote: >> On Wed, Nov 19, 2014 at 05:02:40PM +0100, Ard Biesheuvel wrote: >>> On 19 November 2014 16:52, Konstantin Khlebnikov wrote: >>> > Do you mean ldr pc, =symbol ? >>> > >>> > In

Re: [PATCH 18/26 v5] seq_buf: Create seq_buf_used() to find out how much was written

2014-11-19 Thread Petr Mladek
On Wed 2014-11-19 10:49:56, Steven Rostedt wrote: > On Tue, 18 Nov 2014 16:02:04 +0100 > Petr Mladek wrote: > > > On Fri 2014-11-14 23:59:05, Steven Rostedt wrote: > > > From: "Steven Rostedt (Red Hat)" > > > > > > Add a helper function seq_buf_used() that replaces the SEQ_BUF_USED() > > >

Re: [PATCH v2 4/4] sched/deadline: change cpudl_find() to return bool instead of best_cpu

2014-11-19 Thread Steven Rostedt
On Wed, 19 Nov 2014 23:46:22 +0800 "pang.xunlei" wrote: > cpudl_find() is not a good place to select the best cpu, so leave > this role to its call site, currently it is find_later_rq() where > we can do the election of the best cpu according to sd topology. > > Signed-off-by: pang.xunlei >

Re: [PATCH] drivers/core/of: Add symlink to device-tree from devices with an OF node

2014-11-19 Thread Grant Likely
On Wed, Nov 19, 2014 at 3:39 PM, Rob Herring wrote: > On Wed, Nov 19, 2014 at 8:49 AM, Arnd Bergmann wrote: >> On Wednesday 19 November 2014 08:45:58 Rob Herring wrote: >>> > static inline struct device_node *dev_of_node(struct device *of_node) >>> > { >>> > if (!IS_ENABLED(CONFIG_OF))

Re: [PATCH v3 2/2] mfd: dln2: add support for USB-SPI module

2014-11-19 Thread Lee Jones
On Tue, 18 Nov 2014, Laurentiu Palcu wrote: > Signed-off-by: Laurentiu Palcu > --- > drivers/mfd/dln2.c | 12 > 1 file changed, 12 insertions(+) For my own reference: Acked-by: Lee Jones So what's the plan for this set? > diff --git a/drivers/mfd/dln2.c b/drivers/mfd/dln2.c >

Re: frequent lockups in 3.18rc4

2014-11-19 Thread Vivek Goyal
On Wed, Nov 19, 2014 at 10:38:52AM -0500, Dave Jones wrote: > On Wed, Nov 19, 2014 at 10:03:33AM -0500, Vivek Goyal wrote: > > > Not being able to capture the dump I can understand but having wedged > > the machine so that it does not reboot after dump failure sounds bad. > > So you could not

Re: [PATCH] ACPI: Add _DEP(Operation Region Dependencies) support to fix battery issue on the Asus T100TA

2014-11-19 Thread Mika Westerberg
On Wed, Nov 19, 2014 at 11:20:41PM +0800, Lan Tianyu wrote: > ACPI 5.0 introduces _DEP to designate device objects that OSPM should > assign a higher priority in start ordering due to future operation region > accesses. > > On Asus T100TA, ACPI battery info are read from a I2C slave device via >

Re: [PATCH v3] x86, kaslr: Prevent .bss from overlaping initrd

2014-11-19 Thread H. Peter Anvin
On 11/17/2014 06:23 PM, Greg Thelen wrote: > > On Mon, Nov 17 2014, Greg Thelen wrote: > [...] >> Given that bss and brk are nobits (i.e. only ALLOC) sections, does >> file_offset make sense as a load address. This fails with gold: >> It really doesn't. We have that information elsewhere.

Re: [PATCH RFC] ARM: option for loading modules into vmalloc area

2014-11-19 Thread Ard Biesheuvel
On 19 November 2014 17:07, Russell King - ARM Linux wrote: > On Wed, Nov 19, 2014 at 05:02:40PM +0100, Ard Biesheuvel wrote: >> On 19 November 2014 16:52, Konstantin Khlebnikov wrote: >> > Do you mean ldr pc, =symbol ? >> > >> > In this case I get this error: >> > >> > /tmp/ccAHtONU.s: Assembler

[PATCH 0/3] tun: flag cleanup

2014-11-19 Thread Michael S. Tsirkin
this patchset cleans up flag handling in tun. It logically belongs to net tree, but I'm basing support for new virtio header on top of it. Similar situation will take place with vhost patches. Rusty, Dave, what's your take? Merge this patch through virtio tree? Merge both this patch and virtio

Re: [PATCH v2 3/4] sched/deadline: add the "set_flag" argument to cpudl_find()

2014-11-19 Thread Steven Rostedt
On Wed, 19 Nov 2014 23:46:21 +0800 "pang.xunlei" wrote: > The call site of cpudl_find() in check_preempt_equal_dl() doesn't > use later_mask, so add this extra argument to distinquish the case. > > Signed-off-by: pang.xunlei > --- > kernel/sched/cpudeadline.c |6 -- >

Payment

2014-11-19 Thread Finance Department
Dear Recipient, You have been awarded the sum of 8,000,000.00 (Eight Million Pounds sterling) with reference number 77100146 by office of the ministry of finance UK.Send us your personal details to deliver your funds. Gloria Peter -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH 6/6] pci, acpi: Share ACPI PCI config space accessors.

2014-11-19 Thread Tomasz Nowicki
On 19.11.2014 17:19, Arnd Bergmann wrote: On Wednesday 19 November 2014 17:04:51 Tomasz Nowicki wrote: +/* + * raw_pci_read/write - ACPI PCI config space accessors. + * + * ACPI spec defines MMCFG as the way we can access PCI config space, + * so let MMCFG be default (__weak). + * + * If

Re: [PATCH 6/6] pci, acpi: Share ACPI PCI config space accessors.

2014-11-19 Thread Arnd Bergmann
On Wednesday 19 November 2014 17:04:51 Tomasz Nowicki wrote: > +/* > + * raw_pci_read/write - ACPI PCI config space accessors. > + * > + * ACPI spec defines MMCFG as the way we can access PCI config space, > + * so let MMCFG be default (__weak). > + * > + * If platform needs more fancy stuff,

[PATCH 1/3] tun: move internal flag defines out of uapi

2014-11-19 Thread Michael S. Tsirkin
TUN_ flags are internal and never exposed to userspace. Any application using it is almost certainly buggy. Move them out to tun.c, we'll remove them in follow-up patches. Signed-off-by: Michael S. Tsirkin --- include/uapi/linux/if_tun.h | 14 -- drivers/net/tun.c | 14

[PATCH 3/3] tun: drop most type defines

2014-11-19 Thread Michael S. Tsirkin
It's just as easy to use IFF_ flags directly, there's no point in adding our own defines. Signed-off-by: Michael S. Tsirkin --- drivers/net/tun.c | 64 --- 1 file changed, 28 insertions(+), 36 deletions(-) diff --git a/drivers/net/tun.c

[PATCH 2/3] tun: reuse IFF_ flags internally

2014-11-19 Thread Michael S. Tsirkin
By reusing IFF_ flags for internal tun device flags, we can get rid of a bunch of code translating back and forth. This cleanup exposes a bug: TUNGETFEATURES reports IFF_TUN and IFF_TAP which aren't legal for TUNSETFEATURES (but, correctly, doesn't report IFF_PERSIST which also isn't legal

Re: [PATCH 1/2] tracing: Clean up tracing_fill_pipe_page()

2014-11-19 Thread Steven Rostedt
On Tue, 18 Nov 2014 17:15:46 +0100 Petr Mladek wrote: > On Mon 2014-11-17 14:11:08, Steven Rostedt wrote: > > > > > > I don't like the fact that I did a code structure change with this > > > patch. This patch should be just a simple conversion of len to > > > seq_buf_used(). I'm going to strip

Re: [PATCH 11/16] perf hists: Fix up srcline histogram key formatting

2014-11-19 Thread Andi Kleen
On Wed, Nov 19, 2014 at 01:03:31PM -0300, Arnaldo Carvalho de Melo wrote: > From: Arnaldo Carvalho de Melo > > Problem introduced in: > > commit 5b5916696051 "perf report: Honor column width setting" Thanks! I'll also check what happens with --gtk. -Andi -- To unsubscribe from this list:

[PATCH 1/1] DRM-tilcdc: Deletion of an unnecessary check before the function call "drm_fbdev_cma_hotplug_event"

2014-11-19 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 19 Nov 2014 17:05:20 +0100 The drm_fbdev_cma_hotplug_event() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus

Re: [PATCH v2 07/19] selftests/firmware: add install target to enable installing test

2014-11-19 Thread Shuah Khan
On 11/11/2014 06:06 PM, Shuah Khan wrote: > On 11/11/2014 02:29 PM, Kees Cook wrote: >> Hi, >> >> Sorry, I still really don't like this approach. While it is all in one >> place (thank you for that), I think it isn't a form that is very >> workable for the people maintaining the self tests. How

Re: [PATCH] ACPI: Add _DEP(Operation Region Dependencies) support to fix battery issue on the Asus T100TA

2014-11-19 Thread Wolfram Sang
On Wed, Nov 19, 2014 at 11:20:41PM +0800, Lan Tianyu wrote: > ACPI 5.0 introduces _DEP to designate device objects that OSPM should > assign a higher priority in start ordering due to future operation region > accesses. > > On Asus T100TA, ACPI battery info are read from a I2C slave device via >

[PATCH 11/16] perf hists: Fix up srcline histogram key formatting

2014-11-19 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Problem introduced in: commit 5b5916696051 "perf report: Honor column width setting" Where the left justification signal was after the width, which ended up, when the width was, say, 11, always printing: %11.11-s Instead of src:line left justified and

[PATCH 04/16] perf test: fix typo in python test

2014-11-19 Thread Arnaldo Carvalho de Melo
From: WANG Chao Library loading in python syntax should be 'import perf', not 'use perf'. Signed-off-by: WANG Chao Cc: Adrian Hunter Cc: Ingo Molnar Cc: Jean Pihet Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Link:

[PATCH 05/16] perf tools: Fix annotation with kcore

2014-11-19 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Patch "perf tools: Fix build-id matching on vmlinux" breaks annotation with kcore. The problem is that symbol__annotate() first gets the filename based on the build-id which was previously not set. This patch provides a quick fix, however there should probably be only one

[PATCH 10/16] perf annotate: Support source line numbers in annotate

2014-11-19 Thread Arnaldo Carvalho de Melo
From: Andi Kleen With srcline key/sort'ing it's useful to have line numbers in the annotate window. This patch implements this. Use objdump -l to request the line numbers and save them in the line structure. Then the browser displays them for source lines. The line numbers are not displayed by

[PATCH 08/16] perf callchain: Use a common function to resolve symbol or name

2014-11-19 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Refactor the duplicated code to resolve the symbol name or the address of a symbol into a single function. Used in next patch to add common functionality. Signed-off-by: Andi Kleen Cc: Jiri Olsa Cc: Namhyung Kim Link:

Re: [PATCH] thermal: sti: Ignore suspend/resume functions when !PM

2014-11-19 Thread Fabio Estevam
On Wed, Nov 19, 2014 at 1:50 PM, Lee Jones wrote: > Prevents build warning: > > st_thermal.c:278:12: > warning: ‘st_thermal_suspend’ defined but not used [-Wunused-function] > st_thermal.c:286:12: > warning: ‘st_thermal_resume’ defined but not used [-Wunused-function] > > Signed-off-by:

Re: [PATCH RFC] ARM: option for loading modules into vmalloc area

2014-11-19 Thread Russell King - ARM Linux
On Wed, Nov 19, 2014 at 05:02:40PM +0100, Ard Biesheuvel wrote: > On 19 November 2014 16:52, Konstantin Khlebnikov wrote: > > Do you mean ldr pc, =symbol ? > > > > In this case I get this error: > > > > /tmp/ccAHtONU.s: Assembler messages: > > /tmp/ccAHtONU.s:220: Error: invalid literal constant:

[PATCH 1/6] x86, acpi, pci: Reorder logic of pci_mmconfig_insert() function

2014-11-19 Thread Tomasz Nowicki
This patch is the first step of MMCONFIG refactoring process. Code that uses pci_mmcfg_lock will be moved to common file and become accessible for all architectures. pci_mmconfig_insert() cannot be moved so easily since it is mixing generic mmcfg code with x86 specific logic inside of mutual

Re: Looking for good references for ARM driver development

2014-11-19 Thread Mason
Hello Andreas, On 19/11/2014 16:02, Andreas Färber wrote: Am 19.11.2014 um 13:50 schrieb Mason: [...] I'm writing a driver for a temperature sensor, which is supposed to work within the hwmon/lm-sensors framework. The sensor's API consists of 3 memory-mapped registers, which are accessible

Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-19 Thread Vlastimil Babka
On 11/19/2014 03:36 PM, Konstantin Khlebnikov wrote: > On Wed, Nov 19, 2014 at 2:50 AM, Vlastimil Babka wrote: >> On 11/19/2014 12:02 AM, Konstantin Khlebnikov wrote: >>> On Wed, Nov 19, 2014 at 1:15 AM, Konstantin Khlebnikov >>> wrote: On Tue, Nov 18, 2014 at 11:19 PM, Andrew Morton

[PATCH 16/16] perf tools: Only override the default :tid comm entry

2014-11-19 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Events may still be ordered even if there are no timestamps e.g. if the data is recorded per-thread. Also synthesized COMM events have a timestamp of zero. Consequently it is better to keep comm entries even if they have a timestamp of zero. However, when a struct thread

[PATCH 4/6] x86, acpi, pci: mmconfig_{32,64}.c code refactoring - remove code duplication.

2014-11-19 Thread Tomasz Nowicki
mmconfig_64.c version is going to be default implementation for arch agnostic low-level direct PCI config space accessors via MMCONFIG. However, now it initialize raw_pci_ext_ops pointer which is used in x86 specific code only. Moreover, mmconfig_32.c is doing the same thing at the same time.

Re: [PATCH v2] usb: dwc2: resume root hub when device detect with suspend state

2014-11-19 Thread Mathias Nyman
On 18.11.2014 18:41, Felipe Balbi wrote: > On Tue, Nov 18, 2014 at 11:07:34AM -0500, Alan Stern wrote: >> On Tue, 18 Nov 2014, Kever Yang wrote: >> >>> After we implement the bus_suspend/resume, auto suspend id enabled. >>> The root hub will be auto suspend if there is no device connected, >>> we

[PATCH 6/6] pci, acpi: Share ACPI PCI config space accessors.

2014-11-19 Thread Tomasz Nowicki
MMCFG can be used perfectly for all architectures which support ACPI. ACPI mandates MMCFG to describe PCI config space ranges which means we should use MMCONFIG accessors by default. Signed-off-by: Tomasz Nowicki Tested-by: Hanjun Guo --- drivers/acpi/mmconfig.c | 20 1

[PATCH 3/6] x86, acpi, pci: Move PCI config space accessors.

2014-11-19 Thread Tomasz Nowicki
We are going to use mmio_config_{} name convention across all architectures. Currently it belongs to asm/pci_x86.h header which should be included only for x86 specific files. From now on, those accessors are in asm/pci.h header which can be included in non-architecture code much easier.

Re: [PATCHv2 2/3] kernel: add support for live patching

2014-11-19 Thread Seth Jennings
On Wed, Nov 19, 2014 at 04:27:39PM +0100, Miroslav Benes wrote: > > Hi, > > during rewriting our code I came across few more things. See below. > > On Sun, 16 Nov 2014, Seth Jennings wrote: > > [...] > > > +/** > > + * module notifier > > +

[PATCH 09/16] perf tools: Only print base source file for srcline

2014-11-19 Thread Arnaldo Carvalho de Melo
From: Andi Kleen For perf report with --sort srcline only print the base source file name. This makes the results generally fit much better to the screen. The path is usually not that useful anyways because it is often from different systems. Signed-off-by: Andi Kleen Cc: Jiri Olsa Cc:

[PATCH 02/16] perf tools: Clean up libelf feature support code

2014-11-19 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim Current EXTLIBS contains -lelf by default and removes it when libelf is not detected. This is little bit confusing since we can now build perf without libelf so there's no need to handle it differently than other libraries. Signed-off-by: Namhyung Kim Cc: Adrian Hunter Cc:

[GIT PULL 00/16] perf/core improvements and fixes

2014-11-19 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling, - Arnaldo The following changes since commit 2565711fb7d7c28e0cd93c8971b520d1b10b857c: perf: Improve the perf_sample_data struct layout (2014-11-16 11:42:04 +0100) are available in the git repository at:

[PATCH 13/16] perf evsel: Fix ftrace:function event recording

2014-11-19 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Following patch fails (-EINVAL) ftrace:function with enabled user space callchains: cfa77bc4af2c perf: Disallow user-space callchains for function trace events We need to follow in perf tool itself and explicitly set the perf_event_attr::exclude_callchain_user flag for

[PATCH 15/16] perf tools: Add perf-read-vdso32 and perf-read-vdsox32 to .gitignore

2014-11-19 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Recently added executables Add perf-read-vdso32 and perf-read-vdsox32 need to be added to .gitignore. Signed-off-by: Adrian Hunter Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Link:

[PATCH 06/16] perf callchain: Factor out adding new call chain entries

2014-11-19 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Move the code to resolve and add a new callchain entry into a new add_callchain_ip function. This will be used in the next patches to add LBRs too. No change in behavior. Signed-off-by: Andi Kleen Cc: Jiri Olsa Cc: Namhyung Kim Link:

[PATCH 01/16] perf build-id: Move disable_buildid_cache() to util/build-id.c

2014-11-19 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim Also move static variable no_buildid_cache and check it in the perf_session_cache_build_ids(). Signed-off-by: Namhyung Kim Cc: Aravinda Prasad Cc: Brendan Gregg Cc: Hemant Kumar Cc: Ingo Molnar Cc: Masami Hiramatsu Cc: Oleg Nesterov Cc: Pekka Enberg Cc: Peter Zijlstra

[PATCH 12/16] perf diff: Add missing handler for PERF_RECORD_MMAP2 events

2014-11-19 Thread Arnaldo Carvalho de Melo
From: Kan Liang Without mmap2, perf diff fails to find the symbol name. The default symbol sort key doesn't work well. Signed-off-by: Kan Liang Acked-by: Namhyung Kim Cc: Andi Kleen Cc: Jiri Olsa Cc: Namhyung Kim Link:

[PATCH 14/16] perf evlist: Do not poll events that use the system_wide flag

2014-11-19 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter The system_wide flag causes a selected event to be opened always without a pid. Consequently it will never get a POLLHUP, but it is used for tracking in combination with other events, so it should not need to be polled anyway. Therefore don't add it for polling.

[PATCH 2/6] x86, acpi, pci: Move arch-agnostic MMCFG code out of arch/x86/ directory

2014-11-19 Thread Tomasz Nowicki
MMCFG table seems to be architecture independent and it makes sense to share common code across all architectures. The ones that may need architectural specific actions have default prototype (__weak). Signed-off-by: Tomasz Nowicki Tested-by: Hanjun Guo --- arch/x86/include/asm/pci_x86.h | 29

Re: Implement lbr-as-callgraph v10

2014-11-19 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 19, 2014 at 11:10:27AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Nov 19, 2014 at 11:54:50AM +0100, Jiri Olsa escreveu: > > > > BUILD_BUG_ON then? > > > > > > sounds gut > > > > hum, acme/perf/core changed and so has the compile error ;-) > > we dont overload the , so the

[PATCH 0/6] PCI: MMCONFIG clean up

2014-11-19 Thread Tomasz Nowicki
MMCFG ACPI table has no arch dependencies so it can be used across all architectures. Currently MMCONFIG related code resides in arch/x86 directories. This patch set is goint to isolate non-architecure specific code and make it accessible from drivers/pci/ directory. Tomasz Nowicki (6): x86,

[PATCH 5/6] x86, acpi, pci: mmconfig_64.c becomes default implementation for arch agnostic low-level direct PCI config space accessors via MMCONFIG.

2014-11-19 Thread Tomasz Nowicki
Note that x86 32bits machines still have its own low-level direct PCI config space accessors. Signed-off-by: Tomasz Nowicki --- arch/x86/pci/Makefile | 5 +- arch/x86/pci/mmconfig_64.c | 152 - drivers/acpi/mmconfig.c| 134

[PATCH 07/16] perf callchain: Use al.addr to set up call chain

2014-11-19 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Use the relative address, this makes get_srcline work correctly in the end. Signed-off-by: Andi Kleen Cc: Jiri Olsa Cc: Namhyung Kim Link: http://lkml.kernel.org/r/1415844328-4884-4-git-send-email-a...@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo ---

[PATCH 03/16] perf symbols: Fallback to kallsyms when using the minimal 'ELF' loader

2014-11-19 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The minimal ELF loader should not return 1 when it manages to read the vmlinux build-id, it should instead return 0, meaning that it hasn't loaded any symbols, since it doesn't parses ELF at all. That way, the main symbol.c routines will understand that it is

[PATCH 3/4] x86: allow dma_get_required_mask() to be overridden

2014-11-19 Thread David Vrabel
Use dma_ops->get_required_mask() if provided, defaulting to dma_get_requried_mask_from_max_pfn(). This is needed on systems (such as Xen PV guests) where the DMA address and the physical address are not equal. ARCH_HAS_DMA_GET_REQUIRED_MASK is defined in asm/device.h instead of asm/dma-mapping.h

Re: [PATCH RFC] ARM: option for loading modules into vmalloc area

2014-11-19 Thread Ard Biesheuvel
On 19 November 2014 16:52, Konstantin Khlebnikov wrote: > On Wed, Nov 19, 2014 at 5:54 PM, Ard Biesheuvel > wrote: >> On 19 November 2014 14:40, Arnd Bergmann wrote: >>> On Tuesday 18 November 2014 21:13:56 Konstantin Khlebnikov wrote: On 2014-11-18 20:34, Russell King - ARM Linux wrote:

[PATCH 2/4] ia64: use common dma_get_required_mask_from_pfn()

2014-11-19 Thread David Vrabel
Signed-off-by: David Vrabel Cc: Tony Luck Cc: Fenghua Yu Cc: linux-i...@vger.kernel.org --- arch/ia64/include/asm/machvec.h |2 +- arch/ia64/include/asm/machvec_init.h |1 - arch/ia64/pci/pci.c | 20 3 files changed, 1 insertion(+), 22

[PATCHv3 0/4]: dma, x86, xen: reduce SWIOTLB usage in Xen guests

2014-11-19 Thread David Vrabel
On systems where DMA addresses and physical addresses are not 1:1 (such as Xen PV guests), the generic dma_get_required_mask() will not return the correct mask (since it uses max_pfn). Some device drivers (such as mptsas, mpt2sas) use dma_get_required_mask() to set the device's DMA mask to allow

[PATCH 4/4] x86/xen: use the maximum MFN to calculate the required DMA mask

2014-11-19 Thread David Vrabel
On a Xen PV guest the DMA addresses and physical addresses are not 1:1 (such as Xen PV guests) and the generic dma_get_required_mask() does not return the correct mask (since it uses max_pfn). Some device drivers (such as mptsas, mpt2sas) use dma_get_required_mask() to set the device's DMA mask

[PATCH 1/4] dma: add dma_get_required_mask_from_max_pfn()

2014-11-19 Thread David Vrabel
A generic dma_get_required_mask() is useful even for architectures (such as ia64) that define ARCH_HAS_GET_REQUIRED_MASK. Signed-off-by: David Vrabel Reviewed-by: Stefano Stabellini --- drivers/base/platform.c | 10 -- include/linux/dma-mapping.h |1 + 2 files changed, 9

[PATCH 5/7] [RFC] ARM: shmobile: sh73a0 dtsi: Add PM domain support

2014-11-19 Thread Geert Uytterhoeven
Add a device node for the System Controller, with subnodes that represent the hardware power area hierarchy. Hook up all devices to their respective PM domains. Add memory-controller nodes for the SDRAM Bus State Controllers (SBSC1 and SBSC2), which lie in the A4BC0 resp. A4BC1 PM domains, to

Re: [PATCH 2/2] tracing: Use trace_seq_used() and seq_buf_used() instead of len

2014-11-19 Thread Steven Rostedt
On Wed, 19 Nov 2014 15:40:05 +0100 Petr Mladek wrote: > > Regardless of overflow or not (or even if trace_seq is full), that if > > statement will prevent this from doing any buffer overflows. > > > > s->seq.len will never be more than s->seq.size after the test against > > TRACE_MAX_PRINT. So

Re: [PATCH v2] usb: dwc2: resume root hub when device detect with suspend state

2014-11-19 Thread Alan Stern
On Tue, 18 Nov 2014, Julius Werner wrote: > >> You should be aware that it's not safe to use hcd->state for anything > >> in a host controller driver. That field is owned by usbcore, not by > >> the HCD, and it is not protected by any locks. > >> > >> Thus, for example, hcd->state does not get

[PATCH 1/7] PM / Domains: Document SH-Mobile AG5 (sh73a0) binding

2014-11-19 Thread Geert Uytterhoeven
SH-Mobile AG5 (sh73a0) can be handled by the existing bindings. Signed-off-by: Geert Uytterhoeven --- Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt

Re: [PATCH v2 02/19] kbuild: kselftest_install - add a new make target to install selftests

2014-11-19 Thread Shuah Khan
On 11/11/2014 01:27 PM, Shuah Khan wrote: > Add a new make target to install to install kernel selftests. > This new target will build and install selftests. kselftest > target now depends on kselftest_install and runs the generated > kselftest script to reduce duplicate work and for common look >

[PATCH 2/7] ARM: shmobile: R-Mobile: Consolidate rmobile_pd_suspend_*()

2014-11-19 Thread Geert Uytterhoeven
Consolidate the identical rmobile_pd_suspend_*() routines that just return -EBUSY to prevent a PM domain from being powered down into a single rmobile_pd_suspend_busy(). Signed-off-by: Geert Uytterhoeven --- arch/arm/mach-shmobile/pm-rmobile.c | 28 +--- 1 file changed,

[PATCH 6/7] drivers: sh: Disable PM runtime for multi-platform sh73a0 with genpd

2014-11-19 Thread Geert Uytterhoeven
If the default PM domain using PM_CLK is used for PM runtime, the real PM domain(s) cannot be registered from DT later. Hence do not enable it when running a multi-platform kernel with genpd support on an sh73a0. The R-Mobile PM domain driver will take care of PM runtime management of the module

[PATCH 3/7] ARM: shmobile: R-Mobile: Generalize adding/looking up special PM domains

2014-11-19 Thread Geert Uytterhoeven
Make adding special PM domains to an array, and looking them up later, more generic, so it can be used for all special hardware blocks. The type of PM domain is also stored, so rmobile_setup_pm_domain() can use a switch() statement instead of a chain of if/else statements. Signed-off-by: Geert

[PATCH 4/7] ARM: shmobile: R-Mobile: Special-case PM domains containing SBSCs

2014-11-19 Thread Geert Uytterhoeven
Add a special case for PM domains containing a memory controller like the SDRAM Bus State Controller (SBSC). Such a PM domain must not be turned off if SDRAM is in use. On sh73a0 PM domains A4BC0 and A4BC1 each contain an SDRAM Bus State Controller (SBSC1 resp. SBSC2). On r8a73a4 PM domain A3BC

Re: [PATCH 5/6] ARM: at91/dt: add trng node

2014-11-19 Thread Nicolas Ferre
On 30/09/2014 18:19, Boris Brezillon : > Add a DT node for the TRNG (True Random Number Generator) block. > > Keep this block enabled as it does not depend on any external connection, > and thus should be available on all boards. > > Signed-off-by: Boris Brezillon For patches 2 to 5, you can

[PATCH RFC 0/7] ARM: shmobile: sh73a0: DT PM domain support

2014-11-19 Thread Geert Uytterhoeven
Hi Simon, Magnus, This patch series enables DT support for PM domains on the Renesas SH-Mobile AG5 (sh73a0) SoC. It is marked "RFC" due to the addition of memory-controllers nodes without bindings in patch [5/7] and [7/7]. This series builds further on the series "[PATCH v5 0/8] ARM:

[PATCH 7/7] [RFC] ARM: shmobile: r8a7740 dtsi: Add missing memory-controller node

2014-11-19 Thread Geert Uytterhoeven
Add a memory-controller node for the DDR3 Bus State Controller (DBSC3), which lies in the A4S PM domain. There are no documented bindings for the DBSC3 yet (so far there's still no need for a driver), but all of its properties follow the standard conventions. This has no visible effect for now,

<    4   5   6   7   8   9   10   11   12   13   >