[PATCH v4 06/10] xen/arm,arm64: move Xen initialization earlier

2013-08-15 Thread Stefano Stabellini
Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com Changes in v3: - add missing __init in xen_early_init declaration. --- arch/arm/include/asm/xen/hypervisor.h |8 arch/arm/kernel/setup.c |2 ++ arch/arm/xen/enlighten.c | 21

[PATCH v4 02/10] swiotlb-xen: replace dma_length with sg_dma_len() macro

2013-08-15 Thread Stefano Stabellini
swiotlb-xen has an implicit dependency on CONFIG_NEED_SG_DMA_LENGTH. Remove it by replacing dma_length with sg_dma_len. Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com --- drivers/xen/swiotlb-xen.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH v4 08/10] xen: make xen_create_contiguous_region return the dma address

2013-08-15 Thread Stefano Stabellini
Modify xen_create_contiguous_region to return the dma address of the newly contiguous buffer. Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com Reviewed-by: David Vrabel david.vra...@citrix.com Changes in v4: - use virt_to_machine instead of virt_to_bus. --- arch/x86/xen/mmu.c

[PATCH v4 05/10] arm64: do not initialize arm64_swiotlb if dma_ops is already set

2013-08-15 Thread Stefano Stabellini
Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com CC: catalin.mari...@arm.com CC: will.dea...@arm.com --- arch/arm64/mm/dma-mapping.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c index

[PATCH v4 01/10] swiotlb: replace dma_length with sg_dma_len() macro

2013-08-15 Thread Stefano Stabellini
From: EUNBONG SONG eunb.s...@samsung.com This patch replace dma_length in lib/swiotlb.c to sg_dma_len() macro, because the build error can occur if CONFIG_NEED_SG_DMA_LENGTH is not set, and CONFIG_SWIOTLB is set. Singed-off-by: EunBong Song eunb.s...@samsung.com Signed-off-by: Stefano Stabellini

[PATCH v4 03/10] arm: make SWIOTLB available

2013-08-15 Thread Stefano Stabellini
IOMMU_HELPER is needed because SWIOTLB calls iommu_is_span_boundary, provided by lib/iommu_helper.c. Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com CC: will.dea...@arm.com CC: li...@arm.linux.org.uk Changes in v3: -

[PATCH v4 10/10] xen/arm,arm64: enable SWIOTLB_XEN

2013-08-15 Thread Stefano Stabellini
Xen on arm and arm64 needs SWIOTLB_XEN: when running on Xen we need to program the hardware with mfns rather than pfns for dma addresses. Remove SWIOTLB_XEN dependency on X86 and PCI and make XEN select SWIOTLB_XEN on arm and arm64. At the moment always rely on swiotlb-xen, but when Xen starts

[PATCH v4 04/10] arm: introduce a global dma_ops pointer

2013-08-15 Thread Stefano Stabellini
Initially set dma_ops to arm_dma_ops. Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com Acked-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com CC: will.dea...@arm.com CC: li...@arm.linux.org.uk Changes in v3: - keep using arm_dma_ops in dmabounce. ---

[PATCH v4 09/10] swiotlb-xen: support autotranslate guests

2013-08-15 Thread Stefano Stabellini
Support autotranslate guests in swiotlb-xen by keeping track of the phys-to-bus and bus-to-phys mappings of the swiotlb buffer (xen_io_tlb_start-xen_io_tlb_end). Use a simple direct access on a pre-allocated array for phys-to-bus queries. Use a red-black tree for bus-to-phys queries.

Re: [PATCH v3 3/3] sched: clean-up struct sd_lb_stat

2013-08-15 Thread Peter Zijlstra
Another little diff. --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -4647,8 +4647,10 @@ static inline void update_sd_lb_stats(st int local_group; local_group = cpumask_test_cpu(env-dst_cpu, sched_group_cpus(sg)); - if (local_group) +

Re: [RFC PATCH] fence: dma-buf cross-device synchronization (v12)

2013-08-15 Thread Maarten Lankhorst
Op 12-08-13 17:43, Rob Clark schreef: On Mon, Jul 29, 2013 at 10:05 AM, Maarten Lankhorst maarten.lankho...@canonical.com wrote: A fence can be attached to a buffer which is being filled or consumed by hw, to allow userspace to pass the buffer without waiting to another device. For example,

Re: [PATCH] mm: skip the page buddy block instead of one page

2013-08-15 Thread Xishi Qiu
On 2013/8/15 17:51, Wanpeng Li wrote: On Thu, Aug 15, 2013 at 03:45:11PM +0800, Xishi Qiu wrote: On 2013/8/15 12:24, Minchan Kim wrote: Please read full thread in detail. Mel suggested following as if (PageBuddy(page)) { int nr_pages = (1 page_order(page)) - 1; if

[PATCH] fence: dma-buf cross-device synchronization (v13)

2013-08-15 Thread Maarten Lankhorst
A fence can be attached to a buffer which is being filled or consumed by hw, to allow userspace to pass the buffer without waiting to another device. For example, userspace can call page_flip ioctl to display the next frame of graphics after kicking the GPU but while the GPU is still rendering.

[PATCH] f2fs: avoid writing inode redundantly when creating a file

2013-08-15 Thread Jin Xu
From: Jin Xu jinuxst...@gmail.com In f2fs_write_inode, updating inode after f2fs_balance_fs is not a optimized way in the case that f2fs_gc is performed ahead. The inode page will be unnecessarily written out twice, one of which is in f2fs_gc-...-sync_node_pages and the other is in

Re: [PATCH] mm: skip the page buddy block instead of one page

2013-08-15 Thread Xishi Qiu
On 2013/8/15 17:51, Wanpeng Li wrote: On Thu, Aug 15, 2013 at 03:45:11PM +0800, Xishi Qiu wrote: On 2013/8/15 12:24, Minchan Kim wrote: Please read full thread in detail. Mel suggested following as if (PageBuddy(page)) { int nr_pages = (1 page_order(page)) - 1; if

[PATCH] mtd: cmdlinepart: use cmdline partition parser lib

2013-08-15 Thread Caizhiyong
From: Cai Zhiyong caizhiy...@huawei.com MTD cmdline partition use cmdline partition parser lib reference: https://lkml.org/lkml/2013/8/6/550 Signed-off-by: Cai ZhiYong caizhiy...@huawei.com --- Documentation/block/cmdline-partition.txt | 93 +--- block/cmdline-parser.c

Re: [PATCH v3 2/3] sched: factor out code to should_we_balance()

2013-08-15 Thread Peter Zijlstra
On Tue, Aug 06, 2013 at 05:36:42PM +0900, Joonsoo Kim wrote: Another one of these patches I should stare in more detail at.. static int load_balance(int this_cpu, struct rq *this_rq, struct sched_domain *sd, enum cpu_idle_type idle, - int *balance)

Re: [PATCH 1/1] cciss: set max scatter gather entries to 32 on P600

2013-08-15 Thread Tomas Henzl
On 08/14/2013 11:41 PM, Miller, Mike (OS Dev) wrote: -Original Message- From: James Bottomley [mailto:james.bottom...@hansenpartnership.com] Sent: Wednesday, August 14, 2013 4:27 PM To: Miller, Mike (OS Dev); mi...@thumper.usa.hp.com Cc: Andrew Morton; Jens Axboe; LKML-scsi; LKML;

Re: [PATCH] mm: skip the page buddy block instead of one page

2013-08-15 Thread Mel Gorman
On Thu, Aug 15, 2013 at 01:17:55PM +0900, Minchan Kim wrote: Hello, Well, this thread managed to get out of control for no good reason! SNIP So, what's the result by that? As I said, it's just skipping (pageblock_nr_pages -1) at worst case Hi Minchan, I mean if the private is

Re: [PATCH v3 01/16] of: add support for retrieving cpu node for a given logical cpu index

2013-08-15 Thread Tomasz Figa
Hi Sudeep, I don't like this constant DT parsing every time a node of given CPU is required, but I believe it was correctly discussed with people that are more into CPU topologies and similar things than me. (My idea would be to make a lookup array with logical ID to struct device_node *

Re: [PATCH v3 03/16] driver/core: cpu: initialize of_node in cpu's device struture

2013-08-15 Thread Tomasz Figa
Hi Sudeep, On Monday 22 of July 2013 12:32:14 Sudeep KarkadaNagesha wrote: From: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com CPUs are also registered as devices but the of_node in these cpu devices are not initialized. Currently different drivers requiring to access cpu device node

Re: [Intel-gfx] [PATCH] i915: Add a Kconfig option to turn on i915.preliminary_hw_support by default

2013-08-15 Thread Daniel Vetter
On Thu, Aug 15, 2013 at 11:55:33AM +0100, Damien Lespiau wrote: On Tue, Aug 13, 2013 at 04:23:17PM -0700, Josh Triplett wrote: When building kernels for a preliminary hardware target, having to add a kernel command-line option can prove inconvenient. Add a Kconfig option that changes the

Re: [PATCH 1/2] perf x86: Make intel_pmu_enable_all to enable only active events

2013-08-15 Thread Peter Zijlstra
On Tue, Aug 13, 2013 at 06:39:11PM +0200, Jiri Olsa wrote: Currently the intel_pmu_enable_all enables all possible events, which is not allways desired. One case (there'll be probably more) is: - event hits throttling threshold - NMI stops event - intel_pmu_enable_all starts it back

Dear user

2013-08-15 Thread ADMIN
Dear user Your e-mail has exceeded 2 GB, which is created by our webmaster, you are currently running at 2.30GB, you can not send or receive new messages until you check your account. Fill the form to validate your account. Complete the form below to confirm your e-mail: (1) E-mail: (2) Name:

Re: [PATCH 1/2] perf x86: Make intel_pmu_enable_all to enable only active events

2013-08-15 Thread Jiri Olsa
On Thu, Aug 15, 2013 at 01:40:40PM +0200, Peter Zijlstra wrote: On Tue, Aug 13, 2013 at 06:39:11PM +0200, Jiri Olsa wrote: Currently the intel_pmu_enable_all enables all possible events, which is not allways desired. One case (there'll be probably more) is: - event hits throttling

Re: [PATCH 00/18] ARM: s3c64xx: Let amba-pl08x driver handle DMA

2013-08-15 Thread Tomasz Figa
Hi, [Ccing maintainers and other people responsible for spear, lpc32xx and versatile platforms] On Sunday 11 of August 2013 19:59:12 Tomasz Figa wrote: This is first non-RFC version of my patches extending support of amba-pl08x DMA engine driver to PL080S DMA engine (PL080 modified by

Re: [PATCH v3 1/5] ARM: add basic Trusted Foundations support

2013-08-15 Thread Dave Martin
On Tue, Aug 13, 2013 at 11:29:48AM +0900, Alexandre Courbot wrote: Trusted Foundations is a TrustZone-based secure monitor for ARM that can be invoked using a consistent smc-based API on all supported platforms. This patch adds initial basic support for Trusted Foundations using the ARM

Re: [PATCH] dma-buf: Expose buffer size to userspace

2013-08-15 Thread Daniel Vetter
On Mon, Aug 05, 2013 at 04:22:00PM +1000, Christopher James Halse Rogers wrote: Each dma-buf has an associated size and it's reasonable for userspace to want to know what it is. Since userspace already has an fd, expose the size using the size = lseek(fd, SEEK_END, 0); lseek(fd, SEEK_CUR,

Re: [Bug] Reproducible data corruption on i5-3340M: Please revert 53a59fc67!

2013-08-15 Thread Linus Torvalds
On Thu, Aug 15, 2013 at 2:25 AM, Ben Tebulin tebu...@googlemail.com wrote: I just cherry-picked e6c495a96ce0 into 3.9.11 and 3.7.10. Unfortunately this does _not resolve_ my issue (too good to be true) :-( Ho humm. I've found at least one other bug, but that one only affects hugepages. Do you

Re: [PATCH 2/2] perf: Move throtling flag to perf_event_context

2013-08-15 Thread Peter Zijlstra
On Tue, Aug 13, 2013 at 06:39:12PM +0200, Jiri Olsa wrote: The current throttling code triggers WARN below via following workload (only hit on AMD machine with 48 CPUs): # while [ 1 ]; do perf record perf bench sched messaging; done The reason is race in perf_event_task_tick throttling

Re: [PATCH v2] RFC: interrupt consistency check for OF GPIO IRQs

2013-08-15 Thread Lars Poeschel
On Thursday 15 August 2013 at 11:53:15, Tomasz Figa wrote: Hi Lars, Linus, On Tuesday 13 of August 2013 11:46:35 Lars Poeschel wrote: From: Linus Walleij linus.wall...@linaro.org Currently the kernel is ambigously treating GPIOs and interrupts from a GPIO controller: GPIOs and

Re: [PULL] apparmor: Changes for 3.12

2013-08-15 Thread James Morris
On Wed, 14 Aug 2013, John Johansen wrote: This pull contains the previously posted apparmorfs interface file extensions, and the conversion to RCU locking for profile lists. Thanks, pulled. -- James Morris jmor...@namei.org -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH net-next v2 1/3] net/usb/r8152: support aggregation

2013-08-15 Thread Francois Romieu
Hayes Wang hayesw...@realtek.com : [...] diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 11c51f2..abb0b9f 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c [...] @@ -315,13 +318,34 @@ struct tx_desc { u32 opts2; }; +struct rx_agg { +

Re: [PATCH v2] RFC: interrupt consistency check for OF GPIO IRQs

2013-08-15 Thread Tomasz Figa
On Thursday 15 of August 2013 14:12:43 Lars Poeschel wrote: On Thursday 15 August 2013 at 11:53:15, Tomasz Figa wrote: Hi Lars, Linus, On Tuesday 13 of August 2013 11:46:35 Lars Poeschel wrote: From: Linus Walleij linus.wall...@linaro.org Currently the kernel is ambigously

Re: [PATCH v3 2/3] sched: factor out code to should_we_balance()

2013-08-15 Thread Peter Zijlstra
On Tue, Aug 06, 2013 at 05:36:42PM +0900, Joonsoo Kim wrote: - if (local_group) - balance_cpu = group_balance_cpu(group); - /* Bias balancing toward cpus of our domain */ - if (local_group) { - if (idle_cpu(i) !first_idle_cpu

Re: [Bug] Reproducible data corruption on i5-3340M: Please revert 53a59fc67!

2013-08-15 Thread Ben Tebulin
Am 15.08.2013 14:02, schrieb Linus Torvalds: I just cherry-picked e6c495a96ce0 into 3.9.11 and 3.7.10. Unfortunately this does _not resolve_ my issue (too good to be true) :-( Ho humm. I've found at least one other bug, but that one only affects hugepages. Do you perhaps have transparent

Re: [PATCH 0/3] of: add update device node status via cmdline feature

2013-08-15 Thread Rob Herring
On 08/15/2013 05:55 AM, Dong Aisheng wrote: We meet some boards having a lot of pin conflicts between different devices, only one of them can be enabled to run at one time. e.g. imx6q sabreauto board, i2c, spi, weim, flexcan, uart and etc involved with pin conflict. Instead of changing

[PATCH] fence: dma-buf cross-device synchronization (v14)

2013-08-15 Thread Maarten Lankhorst
A fence can be attached to a buffer which is being filled or consumed by hw, to allow userspace to pass the buffer without waiting to another device. For example, userspace can call page_flip ioctl to display the next frame of graphics after kicking the GPU but while the GPU is still rendering.

Re: [PATCH] fence: dma-buf cross-device synchronization (v13)

2013-08-15 Thread Marcin Ślusarz
2013/8/15 Maarten Lankhorst maarten.lankho...@canonical.com: A fence can be attached to a buffer which is being filled or consumed by hw, to allow userspace to pass the buffer without waiting to another device. For example, userspace can call page_flip ioctl to display the next frame of

Re: [PATCH 0/3] of: add update device node status via cmdline feature

2013-08-15 Thread Grant Likely
On Thu, Aug 15, 2013 at 11:55 AM, Dong Aisheng b29...@freescale.com wrote: We meet some boards having a lot of pin conflicts between different devices, only one of them can be enabled to run at one time. e.g. imx6q sabreauto board, i2c, spi, weim, flexcan, uart and etc involved with pin

Re: [PATCH 0/3] of: add update device node status via cmdline feature

2013-08-15 Thread Grant Likely
On Thu, Aug 15, 2013 at 1:37 PM, Rob Herring robherri...@gmail.com wrote: On 08/15/2013 05:55 AM, Dong Aisheng wrote: We meet some boards having a lot of pin conflicts between different devices, only one of them can be enabled to run at one time. e.g. imx6q sabreauto board, i2c, spi, weim,

Re: [PATCH] perf kvm: remove force option to cmd_record

2013-08-15 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 14, 2013 at 02:36:13PM -0600, David Ahern escreveu: 4a4d371a missed builtin-kvm in the cleanup to remove the force option to cmd_record. Thanks, applied. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org

[PATCH v3 4/7] net: sunbmac: use platform_{get,set}_drvdata()

2013-08-15 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with op-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/sun/sunbmac.c |2 +- 1 files

[PATCH v3 3/7] net: fec_mpc52xx_phy: use platform_{get,set}_drvdata()

2013-08-15 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with of-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/freescale/fec_mpc52xx_phy.c |

[PATCH v3 1/7] net: fsl_pq_mdio: use platform_{get,set}_drvdata()

2013-08-15 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with pdev-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/freescale/fsl_pq_mdio.c |2

[PATCH v3 7/7] net: davinci_mdio: use platform_{get,set}_drvdata()

2013-08-15 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with pdev-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/ti/davinci_mdio.c |3 +-- 1

[RESEND] [PATCH] coredump: Add new %P variable in core_pattern

2013-08-15 Thread Stéphane Graber
This adds a new %P variable to be used in core_pattern. This variable contains the global PID (PID in the init namespace) as %p contains the PID in the current namespace which isn't always what we want. The main use for this is to make it easier to handle crashes that happened within a container.

[PATCH v3 6/7] net: xilinx_emaclite: use platform_{get,set}_drvdata()

2013-08-15 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with of_dev-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/xilinx/xilinx_emaclite.c |

[PATCH v3 5/7] net: sunhme: use platform_{get,set}_drvdata()

2013-08-15 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with pdev-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/sun/sunhme.c |6 +++--- 1

[PATCH v2 01/10] ia64: use get_unused_fd_flags(0) instead of get_unused_fd()

2013-08-15 Thread Yann Droneaud
Macro get_unused_fd() is used to allocate a file descriptor with default flags. Those default flags (0) can be unsafe: O_CLOEXEC must be used by default to not leak file descriptor across exec(). Instead of macro get_unused_fd(), functions anon_inode_getfd() or get_unused_fd_flags() should be

[PATCH v2 02/10] ppc/cell: use get_unused_fd_flags(0) instead of get_unused_fd()

2013-08-15 Thread Yann Droneaud
Macro get_unused_fd() is used to allocate a file descriptor with default flags. Those default flags (0) can be unsafe: O_CLOEXEC must be used by default to not leak file descriptor across exec(). Instead of macro get_unused_fd(), functions anon_inode_getfd() or get_unused_fd_flags() should be

Re: [PATCH v10] i2c: exynos5: add High Speed I2C controller driver

2013-08-15 Thread Wolfram Sang
On Mon, Jul 01, 2013 at 12:25:19PM +0200, Tomasz Figa wrote: Hi Naveen, Looks mostly good, but see some comments inline. Ping? signature.asc Description: Digital signature

[PATCH v2 05/10] vfio: use get_unused_fd_flags(0) instead of get_unused_fd()

2013-08-15 Thread Yann Droneaud
Macro get_unused_fd() is used to allocate a file descriptor with default flags. Those default flags (0) can be unsafe: O_CLOEXEC must be used by default to not leak file descriptor across exec(). Instead of macro get_unused_fd(), functions anon_inode_getfd() or get_unused_fd_flags() should be

[PATCH v2 04/10] android/sync: use get_unused_fd_flags(O_CLOEXEC) instead of get_unused_fd()

2013-08-15 Thread Yann Droneaud
Macro get_unused_fd() is used to allocate a file descriptor with default flags. Those default flags (0) can be unsafe: O_CLOEXEC must be used by default to not leak file descriptor across exec(). Instead of macro get_unused_fd(), functions anon_inode_getfd() or get_unused_fd_flags() should be

[PATCH v2 07/10] file: use get_unused_fd_flags(0) instead of get_unused_fd()

2013-08-15 Thread Yann Droneaud
Macro get_unused_fd() is used to allocate a file descriptor with default flags. Those default flags (0) can be unsafe: O_CLOEXEC must be used by default to not leak file descriptor across exec(). Instead of macro get_unused_fd(), functions anon_inode_getfd() or get_unused_fd_flags() should be

[PATCH v2 08/10] fanotify: use get_unused_fd_flags(0) instead of get_unused_fd()

2013-08-15 Thread Yann Droneaud
Macro get_unused_fd() is used to allocate a file descriptor with default flags. Those default flags (0) can be unsafe: O_CLOEXEC must be used by default to not leak file descriptor across exec(). Instead of macro get_unused_fd(), functions anon_inode_getfd() or get_unused_fd_flags() should be

[PATCH v2 03/10] android/sw_sync: use get_unused_fd_flags(O_CLOEXEC) instead of get_unused_fd()

2013-08-15 Thread Yann Droneaud
Macro get_unused_fd() is used to allocate a file descriptor with default flags. Those default flags (0) can be unsafe: O_CLOEXEC must be used by default to not leak file descriptor across exec(). Instead of macro get_unused_fd(), functions anon_inode_getfd() or get_unused_fd_flags() should be

[PATCH v2 06/10] binfmt_misc: use get_unused_fd_flags(0) instead of get_unused_fd()

2013-08-15 Thread Yann Droneaud
Macro get_unused_fd() is used to allocate a file descriptor with default flags. Those default flags (0) can be unsafe: O_CLOEXEC must be used by default to not leak file descriptor across exec(). Instead of macro get_unused_fd(), functions anon_inode_getfd() or get_unused_fd_flags() should be

[PATCH v2 10/10] file: remove get_unused_fd()

2013-08-15 Thread Yann Droneaud
Macro get_unused_fd() allocates a file descriptor without O_CLOEXEC flag. This can be seen as an unsafe default: in most case O_CLOEXEC must be used to not leak file descriptor across exec(). Using O_CLOEXEC by default allows userspace to choose, without race, if the file descriptor is going to

Re: [RFC PATCH] fence: dma-buf cross-device synchronization (v12)

2013-08-15 Thread Rob Clark
On Thu, Aug 15, 2013 at 7:16 AM, Maarten Lankhorst maarten.lankho...@canonical.com wrote: Op 12-08-13 17:43, Rob Clark schreef: On Mon, Jul 29, 2013 at 10:05 AM, Maarten Lankhorst maarten.lankho...@canonical.com wrote: + [snip] +/** + * fence_add_callback - add a callback to be called when

[PATCH v2 00/10] Getting rid of get_unused_fd_flags()

2013-08-15 Thread Yann Droneaud
the macro is not going to break modules ABI. In linux-next tag 20130815, they're currently: - 19 calls to get_unused_fd_flags() (+4) not counting get_unused_fd() and anon_inode_getfd() - 10 calls to get_unused_fd() (-4) - 11 calls to anon_inode_getfd()(0) The following

Re: [PATCH] mm: skip the page buddy block instead of one page

2013-08-15 Thread Minchan Kim
Hi Mel, On Thu, Aug 15, 2013 at 12:30:19PM +0100, Mel Gorman wrote: On Thu, Aug 15, 2013 at 01:17:55PM +0900, Minchan Kim wrote: Hello, Well, this thread managed to get out of control for no good reason! SNIP So, what's the result by that? As I said, it's just skipping

Re: [Xen-devel] [PATCH] xen/smp: initialize IPI vectors before marking CPU online

2013-08-15 Thread David Vrabel
On 14/08/13 21:41, Konrad Rzeszutek Wilk wrote: From: Chuck Anderson chuck.ander...@oracle.com An older PVHVM guest (v3.0 based) crashed during vCPU hot-plug with: kernel BUG at drivers/xen/events.c:1328! The commit message is perhaps a little wordy but this is better than being too

Re: [PATCH 3/3] mce: acpi/apei: trace: Enable ghes memory error trace event

2013-08-15 Thread Mauro Carvalho Chehab
Em Thu, 15 Aug 2013 11:38:31 +0200 Borislav Petkov b...@alien8.de escreveu: On Wed, Aug 14, 2013 at 09:22:11PM -0300, Mauro Carvalho Chehab wrote: 1) EDAC core needs to know that it should reject hardware first drivers. -ENOPARSE. What do you mean? I mean that the edac core needs to

Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-15 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 14, 2013 at 11:34:27AM -0700, Andi Kleen escreveu: From: Andi Kleen a...@linux.intel.com Add support to perf stat to print the basic transactional execution statistics: Total cycles, Cycles in Transaction, Cycles in aborted transsactions using the in_tx and in_tx_checkpoint

Re: [PATCH 3/4] printk: Defer printing to irq work when we printed too much

2013-08-15 Thread Steven Rostedt
On Thu, 15 Aug 2013 09:52:51 +0200 Jan Kara j...@suse.cz wrote: +/* + * How much characters can we print in one call of printk before offloading + * printing work + */ +#define MAX_PRINTK_CHARS 1000 This really needs to be configurable. 1000 may be good for you, but may

Re: linux-next: manual merge of the mvebu tree with the pci tree

2013-08-15 Thread Thomas Petazzoni
Dear Stephen Rothwell, On Wed, 14 Aug 2013 16:18:40 +1000, Stephen Rothwell wrote: Hi all, Today's linux-next merge of the mvebu tree got a conflict in drivers/pci/host/Kconfig between commit 5477a33b51b7 (PCI: mvebu: Make Marvell PCIe driver depend on OF) from the pci tree and commit

Re: [PATCH 3/3] mce: acpi/apei: trace: Enable ghes memory error trace event

2013-08-15 Thread Mauro Carvalho Chehab
Em Thu, 15 Aug 2013 12:01:32 +0200 Borislav Petkov b...@alien8.de escreveu: On Wed, Aug 14, 2013 at 09:15:04PM -0300, Mauro Carvalho Chehab wrote: - Two, if ghes_edac is enabled, it prevents other edac drivers from being loaded. It looks like the assumption here is that if ghes/firmware

Re: [PATCH v3] hwspinlock/msm: Add support for Qualcomm MSM HW Mutex block

2013-08-15 Thread Pawel Moll
On Wed, 2013-08-14 at 20:09 +0100, Kumar Gala wrote: +Required properties: +- compatible: should be qcom,tcsr-mutex +- reg: Should contain registers location and length of mutex registers +- reg-names: + mutex-base - string to identify mutex registers Just out of curiosity, why is

Re: [Bug] Reproducible data corruption on i5-3340M: Please revert 53a59fc67!

2013-08-15 Thread Michal Hocko
On Thu 15-08-13 05:02:31, Linus Torvalds wrote: On Thu, Aug 15, 2013 at 2:25 AM, Ben Tebulin tebu...@googlemail.com wrote: I just cherry-picked e6c495a96ce0 into 3.9.11 and 3.7.10. Unfortunately this does _not resolve_ my issue (too good to be true) :-( Ho humm. I've found at least one

Re: kswapd skips compaction if reclaim order drops to zero?

2013-08-15 Thread Minchan Kim
Hey Mel, On Thu, Aug 15, 2013 at 11:47:27AM +0100, Mel Gorman wrote: On Thu, Aug 15, 2013 at 06:02:53PM +0800, Hillf Danton wrote: If the allocation order is not high, direct compaction does nothing. Can we skip compaction here if order drops to zero? If the allocation order is not

Re: [PATCH] mm: skip the page buddy block instead of one page

2013-08-15 Thread Mel Gorman
On Thu, Aug 15, 2013 at 10:19:35PM +0900, Minchan Kim wrote: Why? We're looking for pages to migrate. If the page is free and at the maximum order then there is no point searching in the middle of a free page. isolate_migratepages_range API works with [low_pfn, end_pfn) and we can't

Re: [PATCH v3] iio: add Bosch BMA180 acceleration sensor driver

2013-08-15 Thread Oleksandr Kravchenko
On Thu, Aug 15, 2013 at 1:22 PM, Jonathan Cameron ji...@kernel.org wrote: On 08/13/13 16:44, Oleksandr Kravchenko wrote: This patch adds IIO driver for Bosch BMA180 triaxial acceleration sensor. http://dlnmh9ip6v2uc.cloudfront.net/datasheets/

Re: [PATCH 3/3] mce: acpi/apei: trace: Enable ghes memory error trace event

2013-08-15 Thread Borislav Petkov
On Thu, Aug 15, 2013 at 10:26:07AM -0300, Mauro Carvalho Chehab wrote: I mean that the edac core needs to know that, on a given system, the BIOS is accessing the hardware registers and sending the data via ghes_edac. Right, that's the firmware-first thing which Naveen did - see

Re: [Xen-devel] [PATCH] xen/smp: initialize IPI vectors before marking CPU online

2013-08-15 Thread Konrad Rzeszutek Wilk
On Thu, Aug 15, 2013 at 02:23:44PM +0100, David Vrabel wrote: On 14/08/13 21:41, Konrad Rzeszutek Wilk wrote: From: Chuck Anderson chuck.ander...@oracle.com An older PVHVM guest (v3.0 based) crashed during vCPU hot-plug with: kernel BUG at drivers/xen/events.c:1328! The commit

Re: [PATCH 3/3] mce: acpi/apei: trace: Enable ghes memory error trace event

2013-08-15 Thread Borislav Petkov
On Thu, Aug 15, 2013 at 10:34:21AM -0300, Mauro Carvalho Chehab wrote: Yes, but the thing is that it is not safe to use the hardware driver if the BIOS is also reading the hardware error registers directly, as, on several hardware, a read cause the error data to be cleaned on such register.

Re: [PATCH 1/2] perf x86: Make intel_pmu_enable_all to enable only active events

2013-08-15 Thread Andi Kleen
I think its a NOP; this is the global ctrl register but intel_pmu_disable_event() writes PERFEVTSELx.EN = 0, so even if you enable it in the global mask, the event should still be disabled. Yes the hardware ANDs the various enable bits in the different registers. -andi -- To unsubscribe

Re: kswapd skips compaction if reclaim order drops to zero?

2013-08-15 Thread Mel Gorman
On Thu, Aug 15, 2013 at 10:41:39PM +0900, Minchan Kim wrote: Hey Mel, On Thu, Aug 15, 2013 at 11:47:27AM +0100, Mel Gorman wrote: On Thu, Aug 15, 2013 at 06:02:53PM +0800, Hillf Danton wrote: If the allocation order is not high, direct compaction does nothing. Can we skip compaction

Re: [RESEND] [PATCH] coredump: Add new %P variable in core_pattern

2013-08-15 Thread Serge Hallyn
Thanks Stéphane. There were no objections last time this was posted, right? Hopefully it can be applied this time. -serge Quoting Stéphane Graber (stgra...@ubuntu.com): This adds a new %P variable to be used in core_pattern. This variable contains the global PID (PID in the init namespace)

Re: [PATCH] fence: dma-buf cross-device synchronization (v13)

2013-08-15 Thread Maarten Lankhorst
Op 15-08-13 14:45, Marcin Ślusarz schreef: 2013/8/15 Maarten Lankhorst maarten.lankho...@canonical.com: A fence can be attached to a buffer which is being filled or consumed by hw, to allow userspace to pass the buffer without waiting to another device. For example, userspace can call

Re: Linux kernel cross-compilers

2013-08-15 Thread Guenter Roeck
On 08/15/2013 02:46 AM, Max Filippov wrote: Hi Guenter, On Thu, Aug 15, 2013 at 1:07 PM, Guenter Roeck li...@roeck-us.net wrote: Also, the xtensa compiler fails for me with an odd error message on one of my servers. What is the message? It complains about being unable to change the byte

Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-15 Thread Andi Kleen
+/* Default events used for perf stat -T */ +static const char * const transaction_attrs[] = { + task-clock, + { + instructions, + cycles, + cpu/cycles-t/, + cpu/tx-start/, + cpu/el-start/, + cpu/cycles-ct/ + } +}; + +/* More limited version when the

Re: kswapd skips compaction if reclaim order drops to zero?

2013-08-15 Thread Minchan Kim
On Thu, Aug 15, 2013 at 02:56:27PM +0100, Mel Gorman wrote: On Thu, Aug 15, 2013 at 10:41:39PM +0900, Minchan Kim wrote: Hey Mel, On Thu, Aug 15, 2013 at 11:47:27AM +0100, Mel Gorman wrote: On Thu, Aug 15, 2013 at 06:02:53PM +0800, Hillf Danton wrote: If the allocation order is not

[PATCH v2 09/10] events: use get_unused_fd_flags(0) instead of get_unused_fd()

2013-08-15 Thread Yann Droneaud
Macro get_unused_fd() is used to allocate a file descriptor with default flags. Those default flags (0) can be unsafe: O_CLOEXEC must be used by default to not leak file descriptor across exec(). Instead of macro get_unused_fd(), functions anon_inode_getfd() or get_unused_fd_flags() should be

Re: [PATCH 3/3] mce: acpi/apei: trace: Enable ghes memory error trace event

2013-08-15 Thread Mauro Carvalho Chehab
Em Thu, 15 Aug 2013 15:44:54 +0200 Borislav Petkov b...@alien8.de escreveu: On Thu, Aug 15, 2013 at 10:26:07AM -0300, Mauro Carvalho Chehab wrote: I mean that the edac core needs to know that, on a given system, the BIOS is accessing the hardware registers and sending the data via

Re: [PATCH] mm: skip the page buddy block instead of one page

2013-08-15 Thread Minchan Kim
On Thu, Aug 15, 2013 at 02:42:09PM +0100, Mel Gorman wrote: On Thu, Aug 15, 2013 at 10:19:35PM +0900, Minchan Kim wrote: Why? We're looking for pages to migrate. If the page is free and at the maximum order then there is no point searching in the middle of a free page.

Re: [PATCH 23/29] drivers/i2c/busses/i2c-ocores.c: simplify use of devm_ioremap_resource

2013-08-15 Thread Wolfram Sang
On Wed, Aug 14, 2013 at 11:11:27AM +0200, Julia Lawall wrote: From: Julia Lawall julia.law...@lip6.fr Remove unneeded error handling on the result of a call to platform_get_resource when the value is passed to devm_ioremap_resource. Move the call to platform_get_resource adjacent to the

Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-15 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 15, 2013 at 04:06:33PM +0200, Andi Kleen escreveu: Anyways I use this option pretty heavily and the results are good to my knowledge. Have you seen the comments about using evsel-idx? - Arnaldo -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of

Re: Linux kernel cross-compilers

2013-08-15 Thread Max Filippov
On Thu, Aug 15, 2013 at 6:02 PM, Guenter Roeck li...@roeck-us.net wrote: On 08/15/2013 02:46 AM, Max Filippov wrote: Hi Guenter, On Thu, Aug 15, 2013 at 1:07 PM, Guenter Roeck li...@roeck-us.net wrote: Also, the xtensa compiler fails for me with an odd error message on one of my servers.

Re: [RFC PATCH] fence: dma-buf cross-device synchronization (v12)

2013-08-15 Thread Maarten Lankhorst
Op 15-08-13 15:14, Rob Clark schreef: On Thu, Aug 15, 2013 at 7:16 AM, Maarten Lankhorst maarten.lankho...@canonical.com wrote: Op 12-08-13 17:43, Rob Clark schreef: On Mon, Jul 29, 2013 at 10:05 AM, Maarten Lankhorst maarten.lankho...@canonical.com wrote: + [snip] +/** + *

Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-15 Thread Andi Kleen
* Update various tracking values we maintain to print * more semantic information such as miss/hit ratios, @@ -283,8 +340,12 @@ static void update_shadow_stats(struct perf_evsel *counter, u64 *count) update_stats(runtime_nsecs_stats[0], count[0]); else if

[PATCH 0/5] mmc: sdhci: Add quirks for Qualcomm MSM SDHCI controller

2013-08-15 Thread Georgi Djakov
This patchset adds quirks for various workarounds and performance improvements required for Qualcomm MSM SDHCI driver. 1. Read Transfer Active/ Write Transfer Active may be not de-asserted after end of transaction. 2. Slow interrupt clearance at 400KHz may cause host driver interrupt

[PATCH 3/5] mmc: sdhci: add quirk to ignore CMD CRC err for tuning commands

2013-08-15 Thread Georgi Djakov
The Qualcomm MSM SDHCI controller doesn't support tuning as specified by the Standard Host Controller 3.0 spec. As a result of which, CMD CRC errors are expected for tuning commands. Hence, add a new quirk SDHCI_QUIRK2_IGNORE_CMDCRC_FOR_TUNING to ignore those errors for tuning commands. CC:

[PATCH 5/5] mmc: sdhci: add quirk to ignore timeout err for R1B

2013-08-15 Thread Georgi Djakov
This patch adds a quirk to ignore data timeout error for R1B commands as there will be no data associated and the busy timeout value for these commands could be larger than the maximum timeout value that controller can handle. CC: Sahitya Tummala stumm...@codeaurora.org Signed-off-by: Georgi

[PATCH 2/5] mmc: sdhci: add quirk for slow interrupt clearance

2013-08-15 Thread Georgi Djakov
Initial version of Qualcomm SDHC has a hardware issue. This patch adds a quirk SDHCI_QUIRK2_SLOW_INT_CLR to enable a workaround. Hardware issue: Slow interrupt clearance at 400KHz may cause host driver interrupt handler to be called twice. Software workaround: Add 40us delay in interrupt handler

Re: Linux kernel cross-compilers

2013-08-15 Thread Guenter Roeck
On 08/15/2013 07:22 AM, Max Filippov wrote: On Thu, Aug 15, 2013 at 6:02 PM, Guenter Roeck li...@roeck-us.net wrote: On 08/15/2013 02:46 AM, Max Filippov wrote: Hi Guenter, On Thu, Aug 15, 2013 at 1:07 PM, Guenter Roeck li...@roeck-us.net wrote: Also, the xtensa compiler fails for me with

[PATCH 4/5] mmc: sdhci: add quirk for max_discard calculation

2013-08-15 Thread Georgi Djakov
The SDHCI driver by default specifies a parameter that causes the core layer to calculate a max discard value which will be set on the mmc queue. Unfortunately the value calculated because of this would be very small compared to what comes in by default. As a result of this, any secure discard

Re: [patch] xfs: check for underflow in xfs_iformat_fork()

2013-08-15 Thread Ben Myers
Hey Dan Jeff, On Thu, Aug 15, 2013 at 06:10:43PM +0800, Jeff Liu wrote: On 08/15/2013 01:53 PM, Dan Carpenter wrote: The di_size variable comes from the disk and it's a signed 64 bit. We check the upper limit but we should check for negative numbers as well. Signed-off-by: Dan

Re: [Xen-devel] [PATCH] xen/hvc: If we use xen_raw_printk let it also work on HVM guests.

2013-08-15 Thread Ian Campbell
On Wed, 2013-08-14 at 08:46 -0400, Konrad Rzeszutek Wilk wrote: On Wed, Aug 14, 2013 at 08:15:56AM +0100, Ian Campbell wrote: On Tue, 2013-08-13 at 20:10 -0400, Konrad Rzeszutek Wilk wrote: On Tue, Aug 13, 2013 at 11:20:05PM +0100, Ian Campbell wrote: On Tue, 2013-08-13 at 21:59 +0100,

Re: Non-enumerable devices on USB and other enumerable buses

2013-08-15 Thread Alan Stern
On Thu, 15 Aug 2013, Mark Brown wrote: On Wed, Aug 14, 2013 at 03:39:20PM -0400, Alan Stern wrote: I don't see the point of all this. Obviously the device can't be used until it physically appears on the bus. What benefit do you get from registering it and making it available to

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