anon_vma accumulating for certain load still not addressed

2014-11-14 Thread Michal Hocko
Hi, back in 2012 [1] there was a discussion about a forking load which accumulates anon_vmas. There was a trivial test case which triggers this and can potentially deplete the memory by local user. We have a report for an older enterprise distribution where nsd is suffering from this issue most

Re: [PATCH vfs 1/2] lib: implement ptrset

2014-11-14 Thread Tejun Heo
Hello, Andrew. On Thu, Nov 13, 2014 at 02:40:41PM -0800, Andrew Morton wrote: In that case tjpointer_add() would need to do a kmalloc() for each inode which is added to the bdev/cdev, just as ptrset_add() is doing. That might require a nasty preload thing. But really, for just two known

Re: [PATCH 09/16] percpu: Replace smp_read_barrier_depends() with lockless_dereference()

2014-11-14 Thread Tejun Heo
On Thu, Nov 13, 2014 at 02:24:15PM -0500, Pranith Kumar wrote: Recently lockless_dereference() was added which can be used in place of hard-coding smp_read_barrier_depends(). The following PATCH makes the change. Signed-off-by: Pranith Kumar bobby.pr...@gmail.com How should this be routed?

Re: [RFC][PATCH 12/23 v4] tracing: Remove return values of most trace_seq_*() functions

2014-11-14 Thread Petr Mladek
On Thu 2014-11-13 20:12:56, Steven Rostedt wrote: From: Steven Rostedt (Red Hat) rost...@goodmis.org The trace_seq_printf() and friends are used to store strings into a buffer that can be passed around from function to function. If the trace_seq buffer fills up, it will not print any more.

Re: [PATCH] mmc: dw_mmc: add quirk for data over interrupt timeout

2014-11-14 Thread Jaehoon Chung
Hi, Addy. Did you use the DW_MCI_QUIRK_IDMAC_DTO? I'm not sure, but i wonder if you get what result when you use above quirk. And i will check more this patch at next week. Thanks for your efforts. Best Regards, Jaehoon Chung On 11/14/2014 10:05 PM, Addy Ke wrote: From: Addy

Re: [PATCH v4] ALSA: ice1712: consider error value

2014-11-14 Thread Takashi Iwai
At Fri, 14 Nov 2014 18:12:21 +0530, Sudip Mukherjee wrote: earlier we were ignoring the return value of snd_ak4114_create and always returning 0. now we are returning the actual status. revo_init is calling this function, and revo_init is checking the return value. Signed-off-by: Sudip

Re: [PATCH v2] virtio_balloon: Convert vballon kthread into a workqueue

2014-11-14 Thread Tejun Heo
Hello, Michael, Petr. On Wed, Nov 12, 2014 at 03:32:04PM +0200, Michael S. Tsirkin wrote: + /* The workqueue servicing the balloon. */ + struct workqueue_struct *wq; + struct work_struct wq_work; We could use system_freezable_wq instead. I do agree a dedicated wq is better since

[PATCH] x86, ia64: Do not lose track of the EFI default VGA device

2014-11-14 Thread Henrik Rydberg
Since commit 20cde694027e (x86, ia64: Move EFI_FB vga_default_device() initialization to pci_vga_fixup()) in the 3.17 merge window, the EFI framebuffer depends on the VGA arbitration layer. However, the configuration does not reflect this, which leads to a hard-to-find bug when FB_EFI is

Re: read performance is too low compared to write - /dev/sda1

2014-11-14 Thread Roger Heflin
If you are robocoping small files you will hit other limits. Best I have seen with small files is around 30 files/second, and that involves multiple copies going on. Remember with a small files there are several reads and writes that need to be done to complete a create of a small file and each

Re: [PATCH v4] mmc: dw_mmc: add support for the other bit of sdio interrupt

2014-11-14 Thread Jaehoon Chung
On 11/14/2014 03:58 AM, Doug Anderson wrote: Addy, On Tue, Nov 4, 2014 at 6:03 AM, Addy Ke addy...@rock-chips.com wrote: The bit of sdio interrupt is 16 in designware implementation, but it is 24 on Rockchip SoCs.This patch add sdio_id0 for the number of slot0 in the SDIO interrupt

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

2014-11-14 Thread Miroslav Benes
On Thu, 13 Nov 2014, Seth Jennings wrote: On Thu, Nov 13, 2014 at 11:16:00AM +0100, Miroslav Benes wrote: Hi, thank you for the first version of the united live patching core. The patch below implements some of our review objections. Changes are described in the commit log. It

Re: [PATCH v12 5/6] dmaengine: pl330: Add PM sleep support

2014-11-14 Thread Ulf Hansson
On 14 November 2014 09:50, Krzysztof Kozlowski k.kozlow...@samsung.com wrote: Add system suspend/resume capabilities to the pl330 driver so the amba bus clock could be also unprepared to conserve energy. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- drivers/dma/pl330.c | 41

Re: [PATCH] audit: convert status version to a feature bitmap

2014-11-14 Thread Paul Moore
My apologies, yes I was concerned about LATEST. Try the test that Steve described and if that works I'm happy. -- paul moore www.paul-moore.com On November 13, 2014 8:09:11 PM Richard Guy Briggs r...@redhat.com wrote: On 14/11/13, Paul Moore wrote: On Thursday, November 13, 2014 03:29:10

[PATCH 6/7] x86: mm: Restore original pte_special check

2014-11-14 Thread Mel Gorman
Commit b38af4721f59 (x86,mm: fix pte_special versus pte_numa) adjusted the pte_special check to take into account that a special pte had SPECIAL and neither PRESENT nor PROTNONE. Now that NUMA hinting PTEs are no longer modifying _PAGE_PRESENT it should be safe to restore the original pte_special

[PATCH 7/7] mm: numa: Add paranoid check around pte_protnone_numa

2014-11-14 Thread Mel Gorman
pte_protnone_numa is only safe to use after VMA checks for PROT_NONE are complete. Treating a real PROT_NONE PTE as a NUMA hinting fault is going to result in strangeness so add a check for it. BUG_ON looks like overkill but if this is hit then it's a serious bug that could result in corruption so

[PATCH 1/7] mm: Add p[te|md] protnone helpers for use by NUMA balancing

2014-11-14 Thread Mel Gorman
This is a preparatory patch that introduces protnone helpers for automatic NUMA balancing. Needs-signed-off: Aneesh Kumar aneesh.ku...@linux.vnet.ibm.com Needs-signed-off: Linus Torvalds torva...@linux-foundation.org Signed-off-by: Mel Gorman mgor...@suse.de ---

[RFC PATCH 0/7] Replace _PAGE_NUMA with PAGE_NONE protections

2014-11-14 Thread Mel Gorman
This is follow up from the pipe/page fault oddness thread. Automatic NUMA balancing depends on being able to protect PTEs to trap a fault and gather reference locality information. Very broadly speaking it would mark PTEs as not present and use another bit to distinguish between NUMA hinting

[PATCH 3/7] mm: Convert p[te|md]_mknonnuma and remaining page table manipulations

2014-11-14 Thread Mel Gorman
With PROT_NONE, the traditional page table manipulation functions are sufficient. Needs-signed-off: Aneesh Kumar aneesh.ku...@linux.vnet.ibm.com Needs-signed-off: Linus Torvalds torva...@linux-foundation.org Signed-off-by: Mel Gorman mgor...@suse.de --- include/linux/huge_mm.h | 3 +--

[PATCH 5/7] mm: numa: Do not trap faults on the huge zero page

2014-11-14 Thread Mel Gorman
Faults on the huge zero page are pointless and there is a BUG_ON to catch them during fault time. This patch reintroduces a check that avoids marking the zero page PAGE_NONE. Signed-off-by: Mel Gorman mgor...@suse.de --- include/linux/huge_mm.h | 3 ++- mm/huge_memory.c| 13

Re: [PATCH v2 13/14] ARM: STi: DT: STiH410: Add usb2 picophy dt nodes

2014-11-14 Thread Peter Griffin
Hi Arnd, Thanks for taking the time to explain this. On Fri, 14 Nov 2014, Arnd Bergmann wrote: snip address of the device's resources within the address space defined by its parent bus). You will also have to add an appropriate 'ranges' property then. Or maybe you meant, if I want to

Re: [PATCH 1/3] kvm: memslots: track id_to_index changes during the insertion sort

2014-11-14 Thread Radim Krčmář
2014-11-14 12:12+0100, Paolo Bonzini: This completes the optimization from the previous patch, by removing the KVM_MEM_SLOTS_NUM-iteration loop from insert_memslot. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- virt/kvm/kvm_main.c | 39 +++ 1

[PATCH 4/7] mm: Remove remaining references to NUMA hinting bits and helpers

2014-11-14 Thread Mel Gorman
This patch removes the NUMA PTE bits and associated helpers. As a side-effect it increases the maximum possible swap space on x86-64. One potential source of problems is races between the marking of PTEs PROT_NONE, NUMA hinting faults and migration. It must be guaranteed that a PTE being

Re: [PATCH 1/3] kvm: memslots: track id_to_index changes during the insertion sort

2014-11-14 Thread Igor Mammedov
On Fri, 14 Nov 2014 12:12:00 +0100 Paolo Bonzini pbonz...@redhat.com wrote: This completes the optimization from the previous patch, by removing the KVM_MEM_SLOTS_NUM-iteration loop from insert_memslot. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- virt/kvm/kvm_main.c | 39

Re: read performance is too low compared to write - /dev/sda1

2014-11-14 Thread Jagan Teki
On 14 November 2014 18:50, Roger Heflin rogerhef...@gmail.com wrote: If you are robocoping small files you will hit other limits. Best I have seen with small files is around 30 files/second, and that involves multiple copies going on. Remember with a small files there are several reads and

[PATCH 2/7] mm: Convert p[te|md]_numa users to p[te|md]_protnone_numa

2014-11-14 Thread Mel Gorman
Convert existing users of pte_numa and friends to the new helper. Note that the kernel is broken after this patch is applied until the other page table modifiers are also altered. This patch layout is to make review easier. Needs-signed-off: Aneesh Kumar aneesh.ku...@linux.vnet.ibm.com

[PATCH v11 0/12] dw-hdmi: convert imx hdmi to bridge/dw_hdmi

2014-11-14 Thread Andy Yan
We found Freescale imx6 and Rockchip rk3288 and Ingenic JZ4780 (Xburst/MIPS) use the interface compatible Designware HDMI IP, but they also have some lightly differences, such as phy pll configuration, register width(imx hdmi register is one byte, but rk3288 is 4 bytes width and can only be

[PATCH v11 01/12] staging: imx-drm: imx-hdmi: make checkpatch happy

2014-11-14 Thread Andy Yan
CHECK: Alignment should match open parenthesis + if ((hdmi-vic == 10) || (hdmi-vic == 11) || + (hdmi-vic == 12) || (hdmi-vic == 13) || CHECK: braces {} should be used on all arms of this statement + if (hdmi-hdmi_data.video_mode.mdvi) [...] + else { [...]

[PATCH v11 02/12] staging: imx-drm: imx-hdmi: return defer if can't get ddc i2c adapter

2014-11-14 Thread Andy Yan
drm driver may probe before the i2c bus, so the driver should defer probing until it is available Signed-off-by: Andy Yan andy@rock-chips.com --- Changes in v11: None Changes in v10: None Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None

Re: [PATCH v2 1/2] spi: add support for DLN-2 USB-SPI adapter

2014-11-14 Thread Mark Brown
On Thu, Nov 13, 2014 at 01:27:28PM +0100, Johan Havold wrote: On Wed, Nov 12, 2014 at 03:38:09PM +0200, Laurentiu Palcu wrote: This adds support for Diolan DLN2 USB-SPI adapter. Information about the USB protocol interface can be found in the Programmer's Reference Manual [1], see

[PATCH v11 03/12] staging: imx-drm: imx-hdmi: split imx soc specific code from imx-hdmi

2014-11-14 Thread Andy Yan
IMX6 and Rockchip RK3288 and JZ4780 (Ingenic Xburst/MIPS) use the interface compatible Designware HDMI IP, but they also have some lightly differences, such as phy pll configuration, register width, 4K support, clk useage, and the crtc mux configuration is also platform specific. To reuse the imx

[PATCH v11 04/12] staging: imx-drm: imx-hdmi: move imx-hdmi to bridge/dw_hdmi

2014-11-14 Thread Andy Yan
the original imx hdmi driver is under staging/imx-drm, which depends on imx-drm, so move the imx hdmi driver out to drm/bridge and rename imx-hdmi to dw_hdmi Signed-off-by: Andy Yan andy@rock-chips.com --- Changes in v11: None Changes in v10: None Changes in v9: None Changes in v8: None

[PATCH v11 05/12] drm: bridge/dw_hdmi: convert dw-hdmi to drm_bridge mode

2014-11-14 Thread Andy Yan
From: Yakir Yang y...@rock-chips.com keep the connector birdge in dw_hdmi.c, handle encoder in dw_hdmi-imx.c, as most of the encoder operation are platform specific such as crtc select and panel format set Signed-off-by: Andy Yan andy@rock-chips.com Signed-off-by: Yakir Yang

[PATCH v11 06/12] dt-bindings: add document for dw_hdmi

2014-11-14 Thread Andy Yan
Signed-off-by: Andy Yan andy@rock-chips.com --- Changes in v11: None Changes in v10: None Changes in v9: None Changes in v8: - correct some spelling mistake - modify ddc-i2c-bus and interrupt description Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes

Re: [PATCH v2] kernel: use the gnu89 standard explicitly

2014-11-14 Thread Andrey Ryabinin
2014-10-20 5:40 GMT+03:00 Sasha Levin sasha.le...@oracle.com: gcc5 changes the default standard to c11, which makes kernel build unhappy. Explicitly define the kernel standard to be gnu89 which should keep everything working exactly like it was before gcc5. Ping. -- To unsubscribe from this

[PATCH v8 00/14] perf: Add infrastructure and support for Intel PT

2014-11-14 Thread Alexander Shishkin
Hi Peter and all, Since there weren't too many review comments on the two previous versions, here's another one with a couple more fixes. [full description below the changelog] Changes since v7: * fixed a bug in aux allocation logic that caused more than requested pages to be allocated,

[PATCH v8 01/14] perf: Add data_{offset,size} to user_page

2014-11-14 Thread Alexander Shishkin
Currently, the actual perf ring buffer is one page into the mmap area, following the user page and the userspace follows this convention. This patch adds data_{offset,size} fields to user_page that can be used by userspace instead for locating perf data in the mmap area. This is also helpful when

[PATCH v11 07/12] drm: bridge/dw_hdmi: add support for multi-byte register width access

2014-11-14 Thread Andy Yan
On rockchip rk3288, only word(32-bit) accesses are permitted for hdmi registers. Byte width accesses (writeb, readb) generate an imprecise external abort. Signed-off-by: Andy Yan andy@rock-chips.com --- Changes in v11: None Changes in v10: None Changes in v9: None Changes in v8: None

[PATCH v8 05/14] perf: Add a pmu capability for exclusive events

2014-11-14 Thread Alexander Shishkin
Usually, pmus that do, for example, instruction tracing, would only ever be able to have one event per task per cpu (or per perf_context). For such pmus it makes sense to disallow creating conflicting events early on, so as to provide consistent behavior for the user. This patch adds a pmu

[PATCH v8 03/14] perf: Support high-order allocations for AUX space

2014-11-14 Thread Alexander Shishkin
Some pmus (such as BTS or Intel PT without multiple-entry ToPA capability) don't support scatter-gather and will prefer larger contiguous areas for their output regions. This patch adds a new pmu capability to request higher order allocations. Signed-off-by: Alexander Shishkin

[PATCH v8 06/14] perf: Add AUX record

2014-11-14 Thread Alexander Shishkin
When there's new data in the AUX space, output a record indicating its offset and size and a set of flags, such as PERF_AUX_FLAG_TRUNCATED, to mean the described data was truncated to fit in the ring buffer. Signed-off-by: Alexander Shishkin alexander.shish...@linux.intel.com Cc: Arnaldo Carvalho

[PATCH v8 08/14] perf: Support overwrite mode for AUX area

2014-11-14 Thread Alexander Shishkin
This adds support for overwrite mode in the AUX area, which means keep collecting data till you're stopped, turning AUX area into a circular buffer, where new data overwrites old data. It does not depend on data buffer's overwrite mode, so that it doesn't lose sideband data that is instrumental

[PATCH v11 08/12] drm: bridge/dw_hdmi: add mode_valid support

2014-11-14 Thread Andy Yan
some platform may not support all the display mode, add mode_valid interface check it Signed-off-by: Andy Yan andy@rock-chips.com --- Changes in v11: None Changes in v10: None Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4:

[PATCH v8 11/14] x86: perf: Intel PT and LBR/BTS are mutually exclusive

2014-11-14 Thread Alexander Shishkin
Intel PT cannot be used at the same time as LBR or BTS and will cause a general protection fault if they are used together. In order to avoid fixing up GPs in the fast path, instead we disallow creating LBR/BTS events when PT events are present and vice versa. Signed-off-by: Alexander Shishkin

[PATCH v8 02/14] perf: Add AUX area to ring buffer for raw data streams

2014-11-14 Thread Alexander Shishkin
From: Peter Zijlstra pet...@infradead.org This patch introduces AUX space in the perf mmap buffer, intended for exporting high bandwidth data streams to userspace, such as instruction flow traces. AUX space is a ring buffer, defined by aux_{offset,size} fields in the user_page structure, and

[PATCH v11 10/12] drm: bridge/dw_hdmi: add function dw_hdmi_phy_enable_spare

2014-11-14 Thread Andy Yan
RK3288 HDMI will not work without the spare bit of HDMI_PHY_CONF0 enable Signed-off-by: Andy Yan andy@rock-chips.com --- Changes in v11: - split from patch dw_hdmi: add rk3288 support Changes in v10: None Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None

Re: [PATCH v4] ALSA: ice1712: consider error value

2014-11-14 Thread Takashi Iwai
At Fri, 14 Nov 2014 19:15:02 +0530, Sudip Mukherjee wrote: On Fri, Nov 14, 2014 at 02:18:31PM +0100, Takashi Iwai wrote: At Fri, 14 Nov 2014 18:12:21 +0530, Sudip Mukherjee wrote: earlier we were ignoring the return value of snd_ak4114_create and always returning 0. now we are

[PATCH v8 13/14] x86: perf: intel_bts: Add BTS PMU driver

2014-11-14 Thread Alexander Shishkin
Add support for Branch Trace Store (BTS) via kernel perf event infrastructure. The difference with the existing implementation of BTS support is that this one is a separate PMU that exports events' trace buffers to userspace by means of AUX area of the perf buffer, which is zero-copy mapped into

[PATCH v8 14/14] perf: add ITRACE_START record to indicate that tracing has started

2014-11-14 Thread Alexander Shishkin
For counters that generate AUX data that is bound to the context of a running task, such as instruction tracing, the decoder needs to know exactly which task is running when the event is first scheduled in, before the first sched_switch. The decoder's need to know this stems from the fact that

[PATCH v11 09/12] drm: bridge/dw_hdmi: clear i2cmphy_stat0 reg in hdmi_phy_wait_i2c_done

2014-11-14 Thread Andy Yan
HDMI_IH_I2CMPHY_STAT0 is a clear on write register, which indicates i2cm operation status(i2c transfer done or error), every hdmi phy register configuration must check this register to make sure the configuration has complete. But the indication bit should be cleared after check, otherwise the

Re: [PATCH v12 5/6] dmaengine: pl330: Add PM sleep support

2014-11-14 Thread Krzysztof Kozlowski
On pią, 2014-11-14 at 14:31 +0100, Ulf Hansson wrote: On 14 November 2014 09:50, Krzysztof Kozlowski k.kozlow...@samsung.com wrote: Add system suspend/resume capabilities to the pl330 driver so the amba bus clock could be also unprepared to conserve energy. Signed-off-by: Krzysztof

[PATCH v11 11/12] dt-bindings: Add documentation for rockchip dw hdmi

2014-11-14 Thread Andy Yan
Signed-off-by: Andy Yan andy@rock-chips.com --- Changes in v11: None Changes in v10: None Changes in v9: None Changes in v8: - Add documentation for rockchip dw hdmi Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None

[PATCH v8 04/14] perf: Add a capability for AUX_NO_SG pmus to do software double buffering

2014-11-14 Thread Alexander Shishkin
For pmus that don't support scatter-gather for AUX data in hardware, it might still make sense to implement software double buffering to avoid losing data while the user is reading data out. For this purpose, add a pmu capability that guarantees multiple high-order chunks for AUX buffer, so that

Re: [PATCH v4] ALSA: ice1712: consider error value

2014-11-14 Thread Sudip Mukherjee
On Fri, Nov 14, 2014 at 02:18:31PM +0100, Takashi Iwai wrote: At Fri, 14 Nov 2014 18:12:21 +0530, Sudip Mukherjee wrote: earlier we were ignoring the return value of snd_ak4114_create and always returning 0. now we are returning the actual status. revo_init is calling this function,

[PATCH v8 07/14] perf: Add api for pmus to write to AUX area

2014-11-14 Thread Alexander Shishkin
For pmus that wish to write data to ring buffer's AUX area, provide perf_aux_output_{begin,end}() calls to initiate/commit data writes, similarly to perf_output_{begin,end}. These also use the same output handle structure. Also, similarly to software counterparts, these will direct inherited

[PATCH v11 12/12] drm: bridge/dw_hdmi: add rockchip rk3288 support

2014-11-14 Thread Andy Yan
Rockchip RK3288 hdmi is compatible with dw_hdmi Signed-off-by: Andy Yan andy@rock-chips.com --- Changes in v11: None Changes in v10: - add more display mode support mpll configuration for rk3288 Changes in v9: - move some phy configuration to platform driver Changes in v8: None Changes in

[PATCH v8 12/14] x86: perf: intel_pt: Intel PT PMU driver

2014-11-14 Thread Alexander Shishkin
Add support for Intel Processor Trace (PT) to kernel's perf events. PT is an extension of Intel Architecture that collects information about software execuction such as control flow, execution modes and timings and formats it into highly compressed binary packets. Even being compressed, these

[PATCH v8 09/14] perf: Add wakeup watermark control to AUX area

2014-11-14 Thread Alexander Shishkin
When AUX area gets a certain amount of new data, we want to wake up userspace to collect it. This adds a new control to specify how much data will cause a wakeup. This is then passed down to pmu drivers via output handle's wakeup field, so that the driver can find the nearest point where it can

[PATCH v8 10/14] x86: Add Intel Processor Trace (INTEL_PT) cpu feature detection

2014-11-14 Thread Alexander Shishkin
Intel Processor Trace is an architecture extension that allows for program flow tracing. Signed-off-by: Alexander Shishkin alexander.shish...@linux.intel.com --- arch/x86/include/asm/cpufeature.h | 1 + arch/x86/kernel/cpu/scattered.c | 1 + 2 files changed, 2 insertions(+) diff --git

Re: read performance is too low compared to write - /dev/sda1

2014-11-14 Thread Roger Heflin
What kind of underlying disk is it? On Fri, Nov 14, 2014 at 7:36 AM, Jagan Teki jagannadh.t...@gmail.com wrote: On 14 November 2014 18:50, Roger Heflin rogerhef...@gmail.com wrote: If you are robocoping small files you will hit other limits. Best I have seen with small files is around 30

[PATCH V3 0/3] perf tool: Haswell LBR call stack support (user)

2014-11-14 Thread kan . liang
From: Kan Liang kan.li...@intel.com This is the user space patch for Haswell LBR call stack support. For many profiling tasks we need the callgraph. For example we often need to see the caller of a lock or the caller of a memcpy or other library function to actually tune the program. Frame

[PATCH V3 3/3] perf tools: Construct LBR call chain

2014-11-14 Thread kan . liang
From: Kan Liang kan.li...@intel.com LBR call stack only has user callchain. It is output as PERF_SAMPLE_BRANCH_STACK data format. For the kernel callchain, it's still from PERF_SAMPLE_CALLCHAIN. The perf tool has to handle both data sources to construct a complete callstack. For perf report -D

[PATCH V3 1/3] perf tools: enable LBR call stack support

2014-11-14 Thread kan . liang
From: Kan Liang kan.li...@intel.com Currently, there are two call chain recording options, fp and dwarf. Haswell has a new feature that utilizes the existing LBR facility to record call chains. So it provides the third options to record call chain. This patch enables the lbr call stack support.

[PATCH V3 2/3] perf tool: Move cpumode resolve code to add_callchain_ip

2014-11-14 Thread kan . liang
From: Kan Liang kan.li...@intel.com Move the cpumode resolve code to add_callchain_ip function. No change in behavior. Signed-off-by: Kan Liang kan.li...@intel.com --- tools/perf/util/machine.c | 62 ++- 1 file changed, 29 insertions(+), 33

Re: [PATCH] virt: kvm: arm: vgic: Process the failure case when kvm_register_device_ops() fails

2014-11-14 Thread Chen Gang
On 11/13/2014 11:30 PM, Marc Zyngier wrote: On 13/11/14 15:04, Chen Gang wrote: When kvm_register_device_ops() fails, also need call free_percpu_irq() just like others have down within kvm_vgic_hyp_init(). Signed-off-by: Chen Gang gang.chen.5...@gmail.com --- virt/kvm/arm/vgic.c | 10

Re: [PATCH v4] ALSA: ice1712: consider error value

2014-11-14 Thread Sudip Mukherjee
On Fri, Nov 14, 2014 at 02:46:43PM +0100, Takashi Iwai wrote: At Fri, 14 Nov 2014 19:15:02 +0530, Sudip Mukherjee wrote: On Fri, Nov 14, 2014 at 02:18:31PM +0100, Takashi Iwai wrote: At Fri, 14 Nov 2014 18:12:21 +0530, Sudip Mukherjee wrote: earlier we were ignoring the

Re: [PATCH] virt: kvm: arm: vgic: Process the failure case when kvm_register_device_ops() fails

2014-11-14 Thread Chen Gang
On 11/13/2014 11:30 PM, Marc Zyngier wrote: On 13/11/14 15:04, Chen Gang wrote: When kvm_register_device_ops() fails, also need call free_percpu_irq() just like others have down within kvm_vgic_hyp_init(). Signed-off-by: Chen Gang gang.chen.5...@gmail.com --- virt/kvm/arm/vgic.c | 10

Re: [PATCH] [media] Add RGB444_1X12 and RGB565_1X16 media bus formats

2014-11-14 Thread Sakari Ailus
Hi Boris, On Fri, Nov 14, 2014 at 11:36:00AM +0100, Boris Brezillon wrote: Add RGB444_1X12 and RGB565_1X16 format definitions and update the documentation. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com Acked-by: Mauro Carvalho Chehab mche...@osg.samsung.com ---

Re: [PATCH v4] bitops: Fix shift overflow in GENMASK macros

2014-11-14 Thread Maxime Coquelin
On 11/13/2014 11:09 PM, Andrew Morton wrote: On Thu, 6 Nov 2014 10:54:19 +0100 Maxime COQUELIN maxime.coque...@st.com wrote: On some 32 bits architectures, including x86, GENMASK(31, 0) returns 0 instead of the expected ~0UL. This is the same on some 64 bits architectures with

Re: [PATCH] virt: kvm: arm: vgic: Process the failure case when kvm_register_device_ops() fails

2014-11-14 Thread Marc Zyngier
On 14/11/14 14:05, Chen Gang wrote: On 11/13/2014 11:30 PM, Marc Zyngier wrote: On 13/11/14 15:04, Chen Gang wrote: When kvm_register_device_ops() fails, also need call free_percpu_irq() just like others have down within kvm_vgic_hyp_init(). Signed-off-by: Chen Gang gang.chen.5...@gmail.com

Re: [RFC PATCH 4/4] arm64, acpi, pci: Provide arch-specific calls for PCI host bridge dirver (PNP0A03).

2014-11-14 Thread Tomasz Nowicki
On 07.11.2014 15:24, Arnd Bergmann wrote: On Friday 07 November 2014 14:27:56 Tomasz Nowicki wrote: #ifdef CONFIG_PCI +struct pci_controller { + struct acpi_device *companion; + int segment; + int node; /* nearest node with memory or NUMA_NO_NODE for global

Re: [PATCH] kvm: x86: increase user memory slots to 509

2014-11-14 Thread Igor Mammedov
On Thu, 06 Nov 2014 17:23:58 +0100 Paolo Bonzini pbonz...@redhat.com wrote: On 06/11/2014 16:52, Igor Mammedov wrote: With the 3 private slots, this gives us 512 slots total. Motivation for this is in addition to assigned devices support more memory hotplug slots, where 1 slot is

Re: [Patch V1 0/6] Refine generic/PCI MSI irqodmian interfaces

2014-11-14 Thread Yijing Wang
在 2014/11/14 9:39, Jiang Liu 写道: On 2014/11/14 9:31, Thomas Gleixner wrote: On Fri, 14 Nov 2014, Yijing Wang wrote: Could you please use a mail client which does proper line wraps or configure yours to do so? Associate the irq domain and PCI bus is not necessary, because all PCI buses under

Re: [PATCH v8 0/7] Enable L2 cache support on Exynos4210/4x12 SoCs

2014-11-14 Thread Marek Szyprowski
Hello, On 2014-11-13 14:18, Marek Szyprowski wrote: This is an updated patchset, which intends to add support for L2 cache on Exynos4 SoCs on boards running under secure firmware, which requires certain initialization steps to be done with help of firmware, as selected registers are writable

Re: [PATCHv4 2/6] phy: improved lookup method

2014-11-14 Thread Heikki Krogerus
Hi Vivek, On Thu, Nov 13, 2014 at 07:03:01PM +0530, Vivek Gautam wrote: Hi Heikki, Kishon, How about adding the change in attached patch [1] on top of this patch. Just introduced the phy pointer in phy_lookup structure, and modified phy_find() accordingly. [1] Attachment:

Re: [PATCH 1/3] kvm: memslots: track id_to_index changes during the insertion sort

2014-11-14 Thread Igor Mammedov
On Fri, 14 Nov 2014 14:35:00 +0100 Radim Krčmář rkrc...@redhat.com wrote: 2014-11-14 12:12+0100, Paolo Bonzini: This completes the optimization from the previous patch, by removing the KVM_MEM_SLOTS_NUM-iteration loop from insert_memslot. Signed-off-by: Paolo Bonzini pbonz...@redhat.com

Re: [PATCH 2/3] kvm: commonize allocation of the new memory slots

2014-11-14 Thread Igor Mammedov
On Fri, 14 Nov 2014 12:12:01 +0100 Paolo Bonzini pbonz...@redhat.com wrote: The two kmemdup invocations can be unified. I find that the new placement of the comment makes it easier to see what happens. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- virt/kvm/kvm_main.c | 28

Re: [PATCH v12 5/6] dmaengine: pl330: Add PM sleep support

2014-11-14 Thread Ulf Hansson
On 14 November 2014 14:47, Krzysztof Kozlowski k.kozlow...@samsung.com wrote: On pią, 2014-11-14 at 14:31 +0100, Ulf Hansson wrote: On 14 November 2014 09:50, Krzysztof Kozlowski k.kozlow...@samsung.com wrote: Add system suspend/resume capabilities to the pl330 driver so the amba bus clock

Re: SystemD fanboi Erich Schubert claims others have done no contributions to opensource software. (information within)

2014-11-14 Thread Cecil Westerhof
Op Friday 14 Nov 2014 07:54 CET schreef George Malone: I expect this post to be censored, it is par for the course for people like you. Could you stop flaming? I have seen this at least ten times. This does beg the question: could the problem be with you? -- Cecil Westerhof Senior Software

Re: [PATCH 3/3] kvm: simplify update_memslots invocation

2014-11-14 Thread Igor Mammedov
On Fri, 14 Nov 2014 12:12:02 +0100 Paolo Bonzini pbonz...@redhat.com wrote: The update_memslots invocation is only needed in one case. Make the code clearer by moving it to __kvm_set_memory_region, and removing the wrapper around insert_memslot. Signed-off-by: Paolo Bonzini

Re: [Patch V1 0/6] Refine generic/PCI MSI irqodmian interfaces

2014-11-14 Thread Jiang Liu
On 2014/11/14 22:11, Yijing Wang wrote: 在 2014/11/14 9:39, Jiang Liu 写道: On 2014/11/14 9:31, Thomas Gleixner wrote: On Fri, 14 Nov 2014, Yijing Wang wrote: Hi Thomas, So we need something like: struct msi_chip *pci_get_msi_chip(struct pci_dev *); or: struct irq_domain

Re: [PATCH] virt: kvm: arm: vgic: Process the failure case when kvm_register_device_ops() fails

2014-11-14 Thread Chen Gang
On 11/14/2014 10:09 PM, Marc Zyngier wrote: On 14/11/14 14:05, Chen Gang wrote: On 11/13/2014 11:30 PM, Marc Zyngier wrote: On 13/11/14 15:04, Chen Gang wrote: When kvm_register_device_ops() fails, also need call free_percpu_irq() just like others have down within kvm_vgic_hyp_init().

[PATCH] serial: 8250_dw: Use 64-bit access for OCTEON.

2014-11-14 Thread Aleksey Makarov
From: David Daney david.da...@cavium.com Although the existing code appears to work on most hardware, the hardware designers tell us that 8-bit access to the registers is not guaranteed to be reliable. Also the OCTEON simulation environments prohibit 8-bit accesses. For these reasons, we use

Re: [PATCH 1/3] kvm: memslots: track id_to_index changes during the insertion sort

2014-11-14 Thread Paolo Bonzini
On 14/11/2014 14:35, Radim Krčmář wrote: We are replacing in a sorted array, so the the direction of our traversal doesn't change, (and we could lose one tab level here,) if (new-npages mslots[i].npages) { while (i (KVM_MEM_SLOTS_NUM - 1)

Re: [PATCH 4/4] arm: dts: omap3-gta04: Add static configuration for devconf1 register

2014-11-14 Thread Grazvydas Ignotas
On Fri, Nov 14, 2014 at 1:58 AM, Tony Lindgren t...@atomide.com wrote: * Paul Walmsley p...@pwsan.com [141113 15:01]: Hi On Thu, 13 Nov 2014, Tony Lindgren wrote: * Tomi Valkeinen tomi.valkei...@ti.com [141113 03:33]: On 12/11/14 17:02, Tony Lindgren wrote: And, with a quick grep,

Re: mm: shmem: freeing mlocked page

2014-11-14 Thread Sasha Levin
On 11/06/2014 11:27 PM, Sasha Levin wrote: Hi all, While fuzzing with trinity inside a KVM tools guest running the latest -next kernel, I've stumbled on the following spew: [ 1441.564471] BUG: Bad page state in process trinity-c612 pfn:12593a [ 1441.564476] page:ea0006e175c0 count:0

Re: [PATCH 1/3] kvm: memslots: track id_to_index changes during the insertion sort

2014-11-14 Thread Radim Krčmář
2014-11-14 15:17+0100, Igor Mammedov: (We'll have to change it into an interval tree, or something, if the number of slots rises anyway.) Only if it rises to huge amount, I've played with proposed 512 memslots and it takes ~1 cycles which is 5% of current heapsort overhead. Taking in

[PATCH] i2c: Add parameters to sysfs-added i2c devices

2014-11-14 Thread minyard
From: Corey Minyard cminy...@mvista.com Some devices might need parameters to control their operation, add the ability to pass these parameters to the client. This also makes the parsing of sysfs-added I2C devices a little more flexible, allowing tabs and arbitrary numbers of spaces.

[PATCH 1/1] drivers: net: cpsw: Fix TX_IN_SEL offset

2014-11-14 Thread John Ogness
The TX_IN_SEL offset for the CPSW_PORT/TX_IN_CTL register was incorrect. This caused the Dual MAC mode to never get set when it should. It also caused possible unintentional setting of a bit in the CPSW_PORT/TX_BLKS_REM register. The purpose of setting the Dual MAC mode for this register is to:

[GIT PULL] at91: drivers for 3.19 #1

2014-11-14 Thread Nicolas Ferre
Arnd, Olof, Kevin, This is a pull-request about AT91-related drivers that are easier to take via arm-soc. There is a little merge conflict with the cleanup branch because of removal of at91sam9g45 and at91sam9rl legacy code. The resolution is pretty simple but you can have a look at the

Re: [PATCH 1/3] kvm: memslots: track id_to_index changes during the insertion sort

2014-11-14 Thread Paolo Bonzini
On 14/11/2014 15:41, Radim Krčmář wrote: Yes, your improvement is great and would work even for higher amounts. I meant that our lookup is currently pretty sad -- O(N) that is presumably optimized by looking at the largest regions first. Yes, that's the optimization. Maybe we would

Re: [PATCH 1/3] kvm: memslots: track id_to_index changes during the insertion sort

2014-11-14 Thread Radim Krčmář
2014-11-14 15:29+0100, Paolo Bonzini: On 14/11/2014 14:35, Radim Krčmář wrote: We are replacing in a sorted array, so the the direction of our traversal doesn't change, (and we could lose one tab level here,) if (new-npages mslots[i].npages) { while (i

Re: [PATCH v12 5/6] dmaengine: pl330: Add PM sleep support

2014-11-14 Thread Krzysztof Kozlowski
On pią, 2014-11-14 at 15:22 +0100, Ulf Hansson wrote: On 14 November 2014 14:47, Krzysztof Kozlowski k.kozlow...@samsung.com wrote: On pią, 2014-11-14 at 14:31 +0100, Ulf Hansson wrote: On 14 November 2014 09:50, Krzysztof Kozlowski k.kozlow...@samsung.com wrote: Add system

Re: [PATCH v8 0/7] Enable L2 cache support on Exynos4210/4x12 SoCs

2014-11-14 Thread Arnd Bergmann
On Friday 14 November 2014 15:11:58 Marek Szyprowski wrote: I assume that after all comments from previous versions, no more changes are needed to this patchset and I would really like to have it queued to v3.19. Arnd, Olof: could you take this patchset thought arm-soc tree? It already

Re: [RFC][PATCH 07/23 v4] kprobes/tracing: Use trace_seq_has_overflowed() for overflow checks

2014-11-14 Thread Masami Hiramatsu
(2014/11/14 10:12), Steven Rostedt wrote: From: Steven Rostedt (Red Hat) rost...@goodmis.org Instead of checking the return value of trace_seq_printf() and friends for overflowing of the buffer, use the trace_seq_has_overflowed() helper function. This cleans up the code quite a bit and

Re: [RFC][PATCH 12/23 v4] tracing: Remove return values of most trace_seq_*() functions

2014-11-14 Thread Steven Rostedt
On Fri, 14 Nov 2014 14:17:28 +0100 Petr Mladek pmla...@suse.cz wrote: -int trace_seq_putmem_hex(struct trace_seq *s, const void *mem, +void trace_seq_putmem_hex(struct trace_seq *s, const void *mem, unsigned int len) { unsigned char hex[HEX_CHARS]; const

Re: [PATCH] kvm: x86: increase user memory slots to 509

2014-11-14 Thread Paolo Bonzini
On 14/11/2014 15:10, Igor Mammedov wrote: On Thu, 06 Nov 2014 17:23:58 +0100 Paolo Bonzini pbonz...@redhat.com wrote: It would use more memory, and some loops are now becoming more expensive. In general adding a memory slot to a VM is not cheap, and I question the wisdom of having 256 hotplug

Re: [PATCH] x86, ia64: Do not lose track of the EFI default VGA device

2014-11-14 Thread Bruno Prémont
On Fri, 14 Nov 2014 13:53:30 +0100 Henrik Rydberg wrote: Since commit 20cde694027e (x86, ia64: Move EFI_FB vga_default_device() initialization to pci_vga_fixup()) in the 3.17 merge window, the EFI framebuffer depends on the VGA arbitration layer. However, the configuration does not reflect

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

2014-11-14 Thread Petr Mladek
On Fri 2014-11-14 14:30:30, Miroslav Benes wrote: On Thu, 13 Nov 2014, Seth Jennings wrote: On Thu, Nov 13, 2014 at 11:16:00AM +0100, Miroslav Benes wrote: Hi, thank you for the first version of the united live patching core. The patch below implements some of our review

Re: [Linaro-acpi] [RFC PATCH 4/4] arm64, acpi, pci: Provide arch-specific calls for PCI host bridge dirver (PNP0A03).

2014-11-14 Thread Arnd Bergmann
On Friday 14 November 2014 15:10:12 Tomasz Nowicki wrote: On 07.11.2014 15:24, Arnd Bergmann wrote: On Friday 07 November 2014 14:27:56 Tomasz Nowicki wrote: #ifdef CONFIG_PCI +struct pci_controller { + struct acpi_device *companion; + int segment; + int node; /*

Re: [PATCH] virt: kvm: arm: vgic: Process the failure case when kvm_register_device_ops() fails

2014-11-14 Thread Marc Zyngier
On 14/11/14 14:27, Chen Gang wrote: On 11/14/2014 10:09 PM, Marc Zyngier wrote: On 14/11/14 14:05, Chen Gang wrote: On 11/13/2014 11:30 PM, Marc Zyngier wrote: On 13/11/14 15:04, Chen Gang wrote: When kvm_register_device_ops() fails, also need call free_percpu_irq() just like others have

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