Re: [PATCH 3/3] smp/ipi:Remove check around csd lock in handler for smp_call_function variants

2013-07-05 Thread Wang YanQing
On Fri, Jul 05, 2013 at 09:57:21PM +0530, Preeti U Murthy wrote: > call_single_data is always locked by all callers of > arch_send_call_function_single_ipi() or > arch_send_call_function_ipi_mask() which results in execution of > generic_call_function_interrupt() handler. > > Hence remove the

Re: [PATCH 3/3] i915: Don't provide ACPI backlight interface if firmware expects Windows 8

2013-07-05 Thread Aaron Lu
On 07/06/2013 06:23 AM, Rafael J. Wysocki wrote: > On Friday, July 05, 2013 11:40:02 PM Rafael J. Wysocki wrote: >> On Friday, July 05, 2013 10:00:55 PM Rafael J. Wysocki wrote: >>> On Friday, July 05, 2013 02:20:14 PM Rafael J. Wysocki wrote: On Sunday, June 09, 2013 07:01:39 PM Matthew

[PATCH] ARM: pxa: remove IRQF_DISABLED

2013-07-05 Thread Michael Opdenacker
This flag is a NOOP since 2.6.35 and can be removed. Signed-off-by: Michael Opdenacker --- arch/arm/mach-pxa/am200epd.c | 3 +-- arch/arm/mach-pxa/am300epd.c | 3 +-- arch/arm/mach-pxa/em-x270.c | 3 +-- arch/arm/mach-pxa/magician.c | 2 +-

Re: [PATCH 1/3] smp/ipi: Remove redundant cfd->cpumask_ipi mask

2013-07-05 Thread Preeti U Murthy
Hi Wang, On 07/06/2013 08:43 AM, Wang YanQing wrote: > On Fri, Jul 05, 2013 at 09:57:01PM +0530, Preeti U Murthy wrote: >> cfd->cpumask_ipi is used only in smp_call_function_many().The existing >> comment around it says that this additional mask is used because >> cfd->cpumask can get

[PATCH] ARM: at91: remove IRQF_DISABLED

2013-07-05 Thread Michael Opdenacker
This flag is a NOOP since 2.6.36 and can be removed. Signed-off-by: Michael Opdenacker --- arch/arm/mach-at91/at91rm9200_time.c | 2 +- arch/arm/mach-at91/at91sam926x_time.c | 2 +- arch/arm/mach-at91/at91x40_time.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 03/10] idr: Rewrite ida

2013-07-05 Thread Kent Overstreet
From: Kent Overstreet This is a new, from scratch implementation of ida that should be simpler, faster and more space efficient. Two primary reasons for the rewrite: * A future patch will reimplement idr on top of this ida implementation + radix trees. Once that's done, the end result will

[PATCH 05/10] idr: Kill old deprecated idr interfaces

2013-07-05 Thread Kent Overstreet
From: Kent Overstreet The deprecated idr interfaces don't have any in kernel users, so let's delete them as prep work for the idr rewrite. Signed-off-by: Kent Overstreet Cc: Andrew Morton Cc: Tejun Heo Signed-off-by: Kent Overstreet --- include/linux/idr.h | 63

[PATCH v3] lib/idr.c rewrite, percpu ida/tag allocator

2013-07-05 Thread Kent Overstreet
Previous posting: http://thread.gmane.org/gmane.linux.kernel/1511216 The only real change since the last version is that I've reworked the new ida implementation to not use one giant allocation - it's still logically one big arary, but it's implemented as an array of arrays. With that, it scales

[PATCH 04/10] idr: Percpu ida

2013-07-05 Thread Kent Overstreet
From: Kent Overstreet Percpu frontend for allocating ids. With percpu allocation (that works), it's impossible to guarantee it will always be possible to allocate all nr_tags - typically, some will be stuck on a remote percpu freelist where the current job can't get to them. We do guarantee

[PATCH 08/10] idr: Reimplement idr on top of ida/radix trees

2013-07-05 Thread Kent Overstreet
The old idr code was really a second radix tree implementation - we already have one in lib/radix-tree.c. This patch reimplements idr on top of our existing radix trees, using our shiny new ida implementation for allocating/freeing the ids. The old idr code was noticably slower than

[PATCH 06/10] idr: Rename idr_get_next() -> idr_find_next()

2013-07-05 Thread Kent Overstreet
From: Kent Overstreet get() implies taking a ref or sometimes an allocation, which this function definitely does not do - rename it to something more sensible. Signed-off-by: Kent Overstreet Cc: Andrew Morton Cc: Tejun Heo Signed-off-by: Kent Overstreet --- drivers/block/drbd/drbd_main.c |

Re: Why no USB id list in the kernel sources?

2013-07-05 Thread Michael Opdenacker
Hi Greg, On 07/05/2013 11:43 PM, Greg KH wrote: > On Fri, Jul 05, 2013 at 11:34:05PM +0200, Michael Opdenacker wrote: >> Hi, >> >> I'm wondering why there is no include/linux/usb_ids.h (or >> include/linux/usb/ids.h) file in the same way there is a >> include/linux/pci_ids.h for PCI. > Because

[PATCH] hashtable: add hash_for_each_possible_rcu_notrace()

2013-07-05 Thread Alexey Kardashevskiy
This adds hash_for_each_possible_rcu_notrace() which is basically a notrace clone of hash_for_each_possible_rcu() which cannot be used in real mode due to its tracing/debugging capability. Signed-off-by: Alexey Kardashevskiy --- include/linux/hashtable.h | 15 +++ 1 file changed, 15

Re: [GIT PULL for v3.11-rc1] media patches for v3.11

2013-07-05 Thread Mauro Carvalho Chehab
On Fri, 5 Jul 2013, Bjørn Mork wrote: Mauro Carvalho Chehab writes: mode change 100755 => 100644 lib/build_OID_registry mode change 100755 => 100644 scripts/Lindent mode change 100755 => 100644 scripts/bloat-o-meter mode change 100755 => 100644 scripts/checkincludes.pl mode change

Re: [PATCH 1/3] smp/ipi: Remove redundant cfd->cpumask_ipi mask

2013-07-05 Thread Wang YanQing
On Fri, Jul 05, 2013 at 09:57:01PM +0530, Preeti U Murthy wrote: > cfd->cpumask_ipi is used only in smp_call_function_many().The existing > comment around it says that this additional mask is used because > cfd->cpumask can get overwritten. > > There is no reason why the cfd->cpumask can be

[3.10] Oopses in kmem_cache_allocate() via prepare_creds()

2013-07-05 Thread Simon Kirby
We saw two Oopses overnight on two separate boxes that seem possibly related, but both are weird. These boxes typically run btrfs for rsync snapshot backups (and usually Oops in btrfs ;), but not this time! backup02 was running 3.10-rc6 plus btrfs-next at the time, and backup03 was running 3.10

Re: [PATCH] pci: Avoid unnecessary calls to work_on_cpu

2013-07-05 Thread Benjamin Herrenschmidt
On Fri, 2013-07-05 at 17:36 -0600, Bjorn Helgaas wrote: > It seems a little strange to me that this "run the driver probe method > on the correct node" code is in PCI. I would think this behavior > would be desirable for *all* bus types, not just PCI, so maybe it > would make sense to do this up

Re: [PATCH 9/9] clocksource: dw_apb_timer: special variant for rockchip rk3188 timers

2013-07-05 Thread Thomas Gleixner
On Sat, 6 Jul 2013, Heiko Stübner wrote: > + if (of_device_is_compatible(np, "rockchip,rk3188-dw-apb-timer-osc")) > + *quirks |= APBTMR_QUIRK_64BIT_COUNTER | APBTMR_QUIRK_NO_EOI | > +APBTMR_QUIRK_INVERSE_INTMASK | > +

Re: [PATCH 6/9] clocksource: dw_apb_timer: quirk for inverted int mask

2013-07-05 Thread Thomas Gleixner
On Sat, 6 Jul 2013, Heiko Stübner wrote: > Some timer variants use an inverted setting to mask the timer interrupt. > Therefore add a quirk to handle these variants. And by that add even more pointless conditionals into critical code pathes.

Re: [PATCH 5/9] clocksource: dw_apb_timer: quirk for variants without EOI register

2013-07-05 Thread Thomas Gleixner
On Sat, 6 Jul 2013, Heiko Stübner wrote: > - dw_ced->eoi = apbt_eoi; > + if (quirks & APBTMR_QUIRK_NO_EOI) > + dw_ced->eoi = apbt_eoi_int_status; > + else > + dw_ced->eoi = apbt_eoi; No again. This has nothing to do with quirks. We use quirks for workarounds

Re: [PATCH 3/9] clocksource: dw_apb_timer: quirk for variants with 64bit counter

2013-07-05 Thread Thomas Gleixner
On Sat, 6 Jul 2013, Heiko Stübner wrote: > This adds a quirk for IP variants containing two load_count and value > registers that are used to provide 64bit accuracy on 32bit systems. > > The added accuracy is currently not used, the driver is only adapted to > handle the different register

[PATCH] irqchip: gic: Don't complain in gic_get_cpumask() if UP system

2013-07-05 Thread Stephen Boyd
In a uniprocessor implementation the interrupt processor targets registers are read-as-zero/write-ignored (RAZ/WI). Unfortunately gic_get_cpumask() will print a critical message saying GIC CPU mask not found - kernel will fail to boot. if these registers all read as zero, but there won't

Re: [PATCH] pci: Avoid unnecessary calls to work_on_cpu

2013-07-05 Thread Bjorn Helgaas
[+cc Rusty] On Mon, Jun 24, 2013 at 2:05 PM, Alexander Duyck wrote: > This patch is meant to address the fact that we are making unnecessary calls > to work_on_cpu. To resolve this I have added a check to see if the current > node is the correct node for the device before we decide to assign

Re: scripts/kallsyms: Avoid ARM veneer symbols

2013-07-05 Thread Arnd Bergmann
On Friday 05 July 2013, Dave P Martin wrote: > On Fri, Jul 05, 2013 at 05:42:44PM +0100, Arnd Bergmann wrote: > > On Friday 05 July 2013, Dave P Martin wrote: > > > On Wed, Jul 03, 2013 at 06:03:04PM +0200, Arnd Bergmann wrote: > > I think there are a small number of patterns to check for. > >

Re: [patch v2] rapidio: use after free in unregister function

2013-07-05 Thread Ryan Mallon
On 06/07/13 06:39, Dan Carpenter wrote: > We're freeing the list iterator so we can't move to the next entry. > Since there is only one matching mport_id, we can just break after > finding it. > > Signed-off-by: Dan Carpenter > --- > v2: cleaner fix than v1 > > diff --git

Re: [PATCHv4 08/10] clocksource: sun4i: Remove TIMER_SCAL variable

2013-07-05 Thread Thomas Gleixner
Maxime, On Sat, 6 Jul 2013, Maxime Ripard wrote: > @@ -168,8 +166,7 @@ static void __init sun4i_timer_init(struct device_node > *node) > clocksource_mmio_init(timer_base + TIMER_CNTVAL_REG(1), node->name, > rate, 300, 32, clocksource_mmio_readl_down); > > -

[PATCH 03/15] sched: Select a preferred node with the most numa hinting faults

2013-07-05 Thread Mel Gorman
This patch selects a preferred node for a task to run on based on the NUMA hinting faults. This information is later used to migrate tasks towards the node during balancing. Signed-off-by: Mel Gorman --- include/linux/sched.h | 1 + kernel/sched/core.c | 1 + kernel/sched/fair.c | 17

[PATCH 01/15] mm: numa: Document automatic NUMA balancing sysctls

2013-07-05 Thread Mel Gorman
Signed-off-by: Mel Gorman --- Documentation/sysctl/kernel.txt | 66 + 1 file changed, 66 insertions(+) diff --git a/Documentation/sysctl/kernel.txt b/Documentation/sysctl/kernel.txt index ccd4258..0fe678c 100644 --- a/Documentation/sysctl/kernel.txt +++

[PATCH 0/15] Basic scheduler support for automatic NUMA balancing V3

2013-07-05 Thread Mel Gorman
This continues to build on the previous feedback. The results are a mix of gains and losses but when looking at the losses I think it's also important to consider the reduced overhead when the patches are applied. I still have not had the chance to closely review Peter's or Srikar's approach to

[PATCH 04/15] sched: Update NUMA hinting faults once per scan

2013-07-05 Thread Mel Gorman
NUMA hinting faults counts and placement decisions are both recorded in the same array which distorts the samples in an unpredictable fashion. The values linearly accumulate during the scan and then decay creating a sawtooth-like pattern in the per-node counts. It also means that placement

[PATCH 05/15] sched: Favour moving tasks towards the preferred node

2013-07-05 Thread Mel Gorman
This patch favours moving tasks towards the preferred NUMA node when it has just been selected. Ideally this is self-reinforcing as the longer the task runs on that node, the more faults it should incur causing task_numa_placement to keep the task running on that node. In reality a big weakness is

[PATCH 02/15] sched: Track NUMA hinting faults on per-node basis

2013-07-05 Thread Mel Gorman
This patch tracks what nodes numa hinting faults were incurred on. Greater weight is given if the pages were to be migrated on the understanding that such faults cost significantly more. If a task has paid the cost to migrating data to that node then in the future it would be preferred if the

[PATCH 09/15] sched: Check current->mm before allocating NUMA faults

2013-07-05 Thread Mel Gorman
task_numa_placement checks current->mm but after buffers for faults have already been uselessly allocated. Move the check earlier. [pet...@infradead.org: Identified the problem] Signed-off-by: Mel Gorman --- kernel/sched/fair.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff

[PATCH 06/15] sched: Reschedule task on preferred NUMA node once selected

2013-07-05 Thread Mel Gorman
A preferred node is selected based on the node the most NUMA hinting faults was incurred on. There is no guarantee that the task is running on that node at the time so this patch rescheules the task to run on the most idle CPU of the selected node when selected. This avoids waiting for the

[PATCH 08/15] sched: Increase NUMA PTE scanning when a new preferred node is selected

2013-07-05 Thread Mel Gorman
The NUMA PTE scan is reset every sysctl_numa_balancing_scan_period_reset in case of phase changes. This is crude and it is clearly visible in graphs when the PTE scanner resets even if the workload is already balanced. This patch increases the scan rate if the preferred node is updated and the

[PATCH 12/15] sched: Remove check that skips small VMAs

2013-07-05 Thread Mel Gorman
task_numa_work skips small VMAs. At the time the logic was to reduce the scanning overhead which was considerable. It is a dubious hack at best. It would make much more sense to cache where faults have been observed and only rescan those regions during subsequent PTE scans. Remove this hack as

[PATCH 11/15] mm: numa: Scan pages with elevated page_mapcount

2013-07-05 Thread Mel Gorman
Currently automatic NUMA balancing is unable to distinguish between false shared versus private pages except by ignoring pages with an elevated page_mapcount entirely. This avoids shared pages bouncing between the nodes whose task is using them but that is ignored quite a lot of data. This patch

[PATCH 07/15] sched: Add infrastructure for split shared/private accounting of NUMA hinting faults

2013-07-05 Thread Mel Gorman
Ideally it would be possible to distinguish between NUMA hinting faults that are private to a task and those that are shared. This patch prepares infrastructure for separately accounting shared and private faults by allocating the necessary buffers and passing in relevant information. For now,

[PATCH 14/15] sched: Account for the number of preferred tasks running on a node when selecting a preferred node

2013-07-05 Thread Mel Gorman
It is preferred that tasks always run local to their memory but it is not optimal if that node is compute overloaded and failing to get access to a CPU. This would compete with the load balancer trying to move tasks off and NUMA balancing moving it back. Ultimately, it will be required that the

[PATCH 15/15] sched: Favour moving tasks towards nodes that incurred more faults

2013-07-05 Thread Mel Gorman
The scheduler already favours moving tasks towards its preferred node but does nothing special if the destination node is anything else. This patch favours moving tasks towards a destination node if more NUMA hinting faults were recorded on it. Similarly if migrating to a destination node would

[PATCH 10/15] sched: Set the scan rate proportional to the size of the task being scanned

2013-07-05 Thread Mel Gorman
The NUMA PTE scan rate is controlled with a combination of the numa_balancing_scan_period_min, numa_balancing_scan_period_max and numa_balancing_scan_size. This scan rate is independent of the size of the task and as an aside it is further complicated by the fact that numa_balancing_scan_size

[PATCH 13/15] sched: Set preferred NUMA node based on number of private faults

2013-07-05 Thread Mel Gorman
Ideally it would be possible to distinguish between NUMA hinting faults that are private to a task and those that are shared. If treated identically there is a risk that shared pages bounce between nodes depending on the order they are referenced by tasks. Ultimately what is desirable is that task

Re: [PATCH 5/9] clocksource: dw_apb_timer: quirk for variants without EOI register

2013-07-05 Thread Heiko Stübner
this patch should have had a From: Ulrich Prinz sorry for the mistake Am Samstag, 6. Juli 2013, 00:54:07 schrieb Heiko Stübner: > Some variants of the dw_apb_timer don't have an eoi register but instead > expect a one to be written to the int_status register at eoi time. > > Signed-off-by:

Re: [PATCH 4/9] clocksource: dw_apb_timer: use the eoi callback to clear pending interrupts

2013-07-05 Thread Heiko Stübner
this patch should have had a From: Ulrich Prinz sorry for the mistake Am Samstag, 6. Juli 2013, 00:53:36 schrieb Heiko Stübner: > Some timer variants have different mechanisms to clear a pending timer > interrupt. Therefore don't hardcode the reading of the eoi register to > clear them, but

Re: [PATCH 6/9] clocksource: dw_apb_timer: quirk for inverted int mask

2013-07-05 Thread Heiko Stübner
this patch should have had a From: Ulrich Prinz sorry for the mistake Am Samstag, 6. Juli 2013, 00:54:35 schrieb Heiko Stübner: > Some timer variants use an inverted setting to mask the timer interrupt. > Therefore add a quirk to handle these variants. > > Signed-off-by: Ulrich Prinz > --- >

[PATCH] arm: Convert sa1111 platform and bus legacy pm_ops to dev_pm_ops

2013-07-05 Thread Shuah Khan
Convert arch/arm/common/sa platform and bus legacy pm_ops to dev_pm_ops. This change also updates the use of COMFIG_PM to CONFIG_PM_SLEEP as this platform and bus code implements PM_SLEEP ops and not the PM_RUNTIME ops. Compile tested. Signed-off-by: Shuah Khan --- arch/arm/common/sa.c

[PATCH 9/9] clocksource: dw_apb_timer: special variant for rockchip rk3188 timers

2013-07-05 Thread Heiko Stübner
The rk3188 uses a variant of the timer containing two registers for load_count and current_values. Signed-off-by: Heiko Stuebner --- .../bindings/arm/rockchip/rk3188-timer.txt | 20 drivers/clocksource/dw_apb_timer_of.c |6 ++ 2 files changed,

[PATCH 8/9] clocksource: dw_apb_timer_of: add quirk handling

2013-07-05 Thread Heiko Stübner
timer_get_base_and_rate now also can extract informations about present hardware-quirks from the devicetree node and transmit it to the clocksource / clockevent init function. Signed-off-by: Heiko Stuebner --- drivers/clocksource/dw_apb_timer_of.c | 21 +++-- 1 file changed,

[PATCH 7/9] clocksource: dw_apb_timer: quirk for inverted timer mode setting

2013-07-05 Thread Heiko Stübner
From: Ulrich Prinz Some variants of SOCs using dw_apb_timer have inverted logic for the bit that sets one-shot / periodic mode or free running timer. This commit adds the new APBTMR_QUIRK_INVERSE_PERIODIC. Signed-off-by: Ulrich Prinz --- drivers/clocksource/dw_apb_timer.c | 11 +--

[PATCH 6/9] clocksource: dw_apb_timer: quirk for inverted int mask

2013-07-05 Thread Heiko Stübner
Some timer variants use an inverted setting to mask the timer interrupt. Therefore add a quirk to handle these variants. Signed-off-by: Ulrich Prinz --- drivers/clocksource/dw_apb_timer.c | 23 ++- include/linux/dw_apb_timer.h |6 ++ 2 files changed, 24

[PATCH 5/9] clocksource: dw_apb_timer: quirk for variants without EOI register

2013-07-05 Thread Heiko Stübner
Some variants of the dw_apb_timer don't have an eoi register but instead expect a one to be written to the int_status register at eoi time. Signed-off-by: Ulrich Prinz --- drivers/clocksource/dw_apb_timer.c | 10 +- include/linux/dw_apb_timer.h |5 + 2 files changed, 14

[PATCH 4/9] clocksource: dw_apb_timer: use the eoi callback to clear pending interrupts

2013-07-05 Thread Heiko Stübner
Some timer variants have different mechanisms to clear a pending timer interrupt. Therefore don't hardcode the reading of the eoi register to clear them, but instead use the already existing eoi callback for this. Signed-off-by: Ulrich Prinz --- drivers/clocksource/dw_apb_timer.c | 11

[PATCH 3/9] clocksource: dw_apb_timer: quirk for variants with 64bit counter

2013-07-05 Thread Heiko Stübner
This adds a quirk for IP variants containing two load_count and value registers that are used to provide 64bit accuracy on 32bit systems. The added accuracy is currently not used, the driver is only adapted to handle the different register layout and make it work on affected devices.

[PATCH 1/9] clocksource: dw_apb_timer: infrastructure to handle quirks

2013-07-05 Thread Heiko Stübner
There exist variants of the timer IP with some modified properties. Therefore add infrastructure to handle hardware-quirks in the driver. Signed-off-by: Heiko Stuebner --- arch/x86/kernel/apb_timer.c |4 ++-- drivers/clocksource/dw_apb_timer.c|7 +--

[PATCH 2/9] clocksource: dw_apb_timer: flexible register addresses

2013-07-05 Thread Heiko Stübner
There exists variants of the apb-timer that use slightly different register positions. To accomodate this, add elements to the timer struct to hold the actual register offsets. Signed-off-by: Heiko Stuebner --- drivers/clocksource/dw_apb_timer.c | 83 ++--

[PATCH 0/9] clocksource: dw_apb_timer: support for timer variant used in rk3188 SoCs

2013-07-05 Thread Heiko Stübner
The Rockchip rk3188 SoCs use a variant of the timer with some slight modifications. This series implements them as quirks for the dw_apb_timer. Tested on a rk3188 for the quirk handling and on a rk3066a to check that nothing broke. Heiko Stuebner (5): clocksource: dw_apb_timer: infrastructure

Re: [PATCH] arm: Convert sa1111 platform and bus legacy pm_ops to dev_pm_ops

2013-07-05 Thread Shuah Khan
On 07/05/2013 04:45 PM, Shuah Khan wrote: > Convert arch/arm/common/sa platform and bus legacy pm_ops to dev_pm_ops. > This change also updates the use of COMFIG_PM to CONFIG_PM_SLEEP as this > platform and bus code implements PM_SLEEP ops and not the PM_RUNTIME ops. > Compile tested. > >

Re: [PATCH 0/8] perf: add ability to sample physical data addresses

2013-07-05 Thread Stephane Eranian
Peter, On Fri, Jun 28, 2013 at 11:58 AM, Peter Zijlstra wrote: > On Wed, Jun 26, 2013 at 09:10:50PM +0200, Stephane Eranian wrote: >> After more investigation with the author of the false sharing >> detection tool, I think >> that if the mapping changes, it is okay. The tool can detect this and

Re: [PATCH] arm: Convert sa1111 platform and bus legacy pm_ops to dev_pm_ops

2013-07-05 Thread Sergei Shtylyov
Hello. On 07/06/2013 02:44 AM, Shuah Khan wrote: Convert arch/arm/common/sa platform and bus legacy pm_ops to dev_pm_ops. This change also updates the use of COMFIG_PM to CONFIG_PM_SLEEP as this platform and bus code implements PM_SLEEP ops and not the PM_RUNTIME ops. Compile tested.

Re: [PATCH] arm: Convert sa1111 platform and bus legacy pm_ops to dev_pm_ops

2013-07-05 Thread Russell King - ARM Linux
On Fri, Jul 05, 2013 at 04:44:57PM -0600, Shuah Khan wrote: > Convert arch/arm/common/sa platform and bus legacy pm_ops to dev_pm_ops. > This change also updates the use of COMFIG_PM to CONFIG_PM_SLEEP as this > platform and bus code implements PM_SLEEP ops and not the PM_RUNTIME ops. >

[PATCH] arm: Convert sa1111 platform and bus legacy pm_ops to dev_pm_ops

2013-07-05 Thread Shuah Khan
Convert arch/arm/common/sa platform and bus legacy pm_ops to dev_pm_ops. This change also updates the use of COMFIG_PM to CONFIG_PM_SLEEP as this platform and bus code implements PM_SLEEP ops and not the PM_RUNTIME ops. Compile tested. Signed-off-by: Shuah Khan --- arch/arm/common/sa.c

[PATCH] arm: Convert scoop platform and bus legacy pm_ops to dev_pm_ops

2013-07-05 Thread Shuah Khan
Convert arch/arm/common/scoop platform and bus legacy pm_ops to dev_pm_ops. This change also updates the use of COMFIG_PM to CONFIG_PM_SLEEP as this platform and bus code implements PM_SLEEP ops and not the PM_RUNTIME ops. Compile tested. Signed-off-by: Shuah Khan --- arch/arm/common/scoop.c |

[PATCH] arm: Convert locomo platform and bus legacy pm_ops to dev_pm_ops

2013-07-05 Thread Shuah Khan
Convert arch/arm/common/locomo platform and bus legacy pm_ops to dev_pm_ops. This change also updates the use of COMFIG_PM to CONFIG_PM_SLEEP as this platform and bus code implements PM_SLEEP ops and not the PM_RUNTIME ops. Compile tested. Signed-off-by: Shuah Khan --- arch/arm/common/locomo.c

Re: [PATCH 1/2] list: add list_del_each_entry

2013-07-05 Thread Filipe David Manana
On Fri, Jul 5, 2013 at 9:41 PM, Jörn Engel wrote: > I have seen a lot of boilerplate code that either follows the pattern of > while (!list_empty(head)) { > pos = list_entry(head->next, struct foo, list); > list_del(pos->list); > ... >

Re: MTD EEPROM support and driver integration

2013-07-05 Thread Arnd Bergmann
On Saturday 06 July 2013, Maxime Ripard wrote: > > My first thought is that it should be more generic than that and not > > have the mac address hardcoded as the purpose. We could possibly use > > regmap as the in-kernel interface, and come up with a more generic > > way of referring to registers

Re: MTD EEPROM support and driver integration

2013-07-05 Thread Maxime Ripard
Hi Arnd, On Fri, Jul 05, 2013 at 11:02:40PM +0200, Arnd Bergmann wrote: > On Friday 05 July 2013, Maxime Ripard wrote: > > Hi everyone, > > > > In the last weeks, we've drivers coming up both about mostly some very > > simple drivers that expose to the userspace a few bytes of memory-mapped > >

RE: Yet more softlockups.

2013-07-05 Thread Thomas Gleixner
On Fri, 5 Jul 2013, Seiji Aguchi wrote: > > -Original Message- > > Hmmm... this makes me wonder if the interrupt tracepoint stuff is at > > fault here, as it changes the IDT handling for NMI context. > > This softlockup happens while disabling the interrupt tracepoints, > Because if it is

[PATCHv4 00/10] clocksource: sunxi: Timer fixes and cleanup

2013-07-05 Thread Maxime Ripard
Hi everyone, The first timer code we merged when adding support for the A13 some time back was mostly a clean up from the source drop we had, without any documentation. This happened to work, but the code merged in turned out to be far from perfect, and had several flaws. This patchset

[PATCHv4 01/10] clocksource: sun4i: Use the BIT macros where possible

2013-07-05 Thread Maxime Ripard
Signed-off-by: Maxime Ripard --- drivers/clocksource/sun4i_timer.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clocksource/sun4i_timer.c b/drivers/clocksource/sun4i_timer.c index d4674e7..bdf34d9 100644 --- a/drivers/clocksource/sun4i_timer.c +++

[PATCHv4 03/10] clocksource: sun4i: rename AUTORELOAD define to RELOAD

2013-07-05 Thread Maxime Ripard
The name AUTORELOAD was actually pretty bad since it doesn't make the register reload the previous interval when it expires, but setting this value pushes the new programmed interval to the internal timer counter. Rename it to RELOAD instead. Signed-off-by: Maxime Ripard ---

[PATCHv4 04/10] clocksource: sun4i: Add clocksource and sched clock drivers

2013-07-05 Thread Maxime Ripard
Use the second timer found on the Allwinner SoCs as a clock source and sched clock, that were both not used yet on these platforms. Signed-off-by: Maxime Ripard --- drivers/clocksource/sun4i_timer.c | 15 +++ 1 file changed, 15 insertions(+) diff --git

[PATCHv4 05/10] clocksource: sun4i: Don't forget to enable the clock we use

2013-07-05 Thread Maxime Ripard
Even if in our case, this clock was non-gatable, used as a parent clock for several IPs, it still is a good idea to enable it. Signed-off-by: Maxime Ripard --- drivers/clocksource/sun4i_timer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clocksource/sun4i_timer.c

[PATCHv4 08/10] clocksource: sun4i: Remove TIMER_SCAL variable

2013-07-05 Thread Maxime Ripard
The prescaler is only used when using the internal low frequency oscillator (at 32kHz). Since we're using the higher frequency oscillator at 24MHz, we can just remove it. Signed-off-by: Maxime Ripard --- drivers/clocksource/sun4i_timer.c | 9 +++-- 1 file changed, 3 insertions(+), 6

[PATCHv4 07/10] clocksource: sun4i: Factor out some timer code

2013-07-05 Thread Maxime Ripard
The set_next_event and set_mode callbacks share a lot of common code we can easily factor to avoid duplication and mistakes. Signed-off-by: Maxime Ripard --- drivers/clocksource/sun4i_timer.c | 48 ++- 1 file changed, 32 insertions(+), 16 deletions(-) diff

[PATCHv4 10/10] clocksource: sun4i: Fix bug when switching from periodic to oneshot modes

2013-07-05 Thread Maxime Ripard
The interval was firing at was set up at probe time, and only changed in the set_next_event, and never changed back, which is not really what is expected. When enabling the periodic mode, now set an interval to tick every jiffy. Signed-off-by: Maxime Ripard ---

[PATCHv4 09/10] clocksource: sun4i: Cleanup parent clock setup

2013-07-05 Thread Maxime Ripard
The current bring-up code for the timer was overly complicated. The only thing we need is actually which clock we want to use as source and that's pretty much all. Let's keep it that way. Signed-off-by: Maxime Ripard --- drivers/clocksource/sun4i_timer.c | 15 +-- 1 file changed, 5

Re: [URGENT rfc patch 0/3] tsc clocksource bug fix

2013-07-05 Thread Thomas Gleixner
On Fri, 5 Jul 2013, Borislav Petkov wrote: > On Fri, Jul 05, 2013 at 11:50:05PM +0200, Thomas Gleixner wrote: > > Yeah, but our well justified paranoia still prevents us from trusting > > these CPU flags. Maybe some day BIOS is going to be replaced by > > something useful. You know: Hope springs

[PATCHv4 06/10] clocksource: sun4i: Fix the next event code

2013-07-05 Thread Maxime Ripard
The next_event logic was setting the next interval to fire in the current timer value instead of the interval value register, which is obviously wrong. Plus, the logic to set the actual value was wrong as well: the interval register can only be modified when the timer is disabled, and then enable

[PATCHv4 02/10] clocksource: sun4i: Wrap macros arguments in parenthesis

2013-07-05 Thread Maxime Ripard
The macros were not using parenthesis to escape the arguments passed to them. It is pretty unsafe, so add those parenthesis. Signed-off-by: Maxime Ripard --- drivers/clocksource/sun4i_timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCHv3 08/10] clocksource: sun4i: Remove TIMER_SCAL variable

2013-07-05 Thread Maxime Ripard
On Fri, Jul 05, 2013 at 10:48:45PM +0200, Thomas Gleixner wrote: > > > On Fri, 5 Jul 2013, Maxime Ripard wrote: > > > The prescaler is only used when using the internal low frequency > > oscillator (at 32kHz). Since we're using the higher frequency oscillator > > at 24MHz, we can just remove

Re: [PATCH 3/3] i915: Don't provide ACPI backlight interface if firmware expects Windows 8

2013-07-05 Thread Rafael J. Wysocki
On Friday, July 05, 2013 11:40:02 PM Rafael J. Wysocki wrote: > On Friday, July 05, 2013 10:00:55 PM Rafael J. Wysocki wrote: > > On Friday, July 05, 2013 02:20:14 PM Rafael J. Wysocki wrote: > > > On Sunday, June 09, 2013 07:01:39 PM Matthew Garrett wrote: > > > > Windows 8 leaves backlight

[PATCH 2/2] btrfs: use list_del_each_entry

2013-07-05 Thread Jörn Engel
Signed-off-by: Joern Engel --- fs/btrfs/backref.c | 15 +++ fs/btrfs/compression.c |4 +--- fs/btrfs/disk-io.c |6 +- fs/btrfs/extent-tree.c | 17 +++-- fs/btrfs/extent_io.c|8 ++-- fs/btrfs/inode.c| 16 +++-

Re: [PATCH 0/2] introduce list_for_each_entry_del

2013-07-05 Thread Jörn Engel
On Mon, 3 June 2013 13:28:03 -0400, Joern Engel wrote: > > A purely janitorial patchset. A fairly common pattern is to take a > list, remove every object from it and do something with this object - > usually kfree() some variant. A stupid grep identified roughly 300 > instances, with many more

[PATCH 1/2] list: add list_del_each_entry

2013-07-05 Thread Jörn Engel
I have seen a lot of boilerplate code that either follows the pattern of while (!list_empty(head)) { pos = list_entry(head->next, struct foo, list); list_del(pos->list); ... } or some variant thereof. With this patch in, people can

Re: [PATCH] ASoC: Allow imx-pcm-{dma,fiq}.c to be modules

2013-07-05 Thread Arnd Bergmann
On Friday 05 July 2013, Mark Brown wrote: > On Fri, Jul 05, 2013 at 10:55:10PM +0200, Arnd Bergmann wrote: > > On Friday 05 July 2013, Mark Brown wrote: > > > > Is this actually OK with the FIQ APIs? > > > I don't know. Why wouldn't it? > > It was the only reason I could think of why that'd

Re: [URGENT rfc patch 0/3] tsc clocksource bug fix

2013-07-05 Thread Borislav Petkov
On Fri, Jul 05, 2013 at 11:50:05PM +0200, Thomas Gleixner wrote: > Yeah, but our well justified paranoia still prevents us from trusting > these CPU flags. Maybe some day BIOS is going to be replaced by > something useful. You know: Hope springs eternal Not in the next 10 yrs at least if one

Re: [URGENT rfc patch 0/3] tsc clocksource bug fix

2013-07-05 Thread Thomas Gleixner
On Fri, 5 Jul 2013, Peter Zijlstra wrote: > On Fri, Jul 05, 2013 at 05:24:09PM +0200, Thomas Gleixner wrote: > > See arch/x86/kernel/tsc.c > > > > We disable the watchdog for the TSC when tsc_clocksource_reliable is > > set. > > > > tsc_clocksource_reliable is set when: > > > > - you add

Re: Why no USB id list in the kernel sources?

2013-07-05 Thread Greg KH
On Fri, Jul 05, 2013 at 11:34:05PM +0200, Michael Opdenacker wrote: > Hi, > > I'm wondering why there is no include/linux/usb_ids.h (or > include/linux/usb/ids.h) file in the same way there is a > include/linux/pci_ids.h for PCI. Because that way lies madness, we have learned from our mistakes

Re: [PATCH V3] ARM: add missing linker section markup to head-common.S

2013-07-05 Thread Russell King - ARM Linux
On Fri, Jul 05, 2013 at 12:10:55PM -0600, Stephen Warren wrote: > From: Stephen Warren > > Macro __INIT is used to place various code in head-common.S into the init > section. This should be matched by a closing __FINIT. Also, add an > explicit ".text" to ensure subsequent code is placed into

Why no USB id list in the kernel sources?

2013-07-05 Thread Michael Opdenacker
Hi, I'm wondering why there is no include/linux/usb_ids.h (or include/linux/usb/ids.h) file in the same way there is a include/linux/pci_ids.h for PCI. I don't expect all product ids to be listed (the http://www.linux-usb.org/usb.ids list is pretty big), but if we could have at least vendor ids,

Re: [PATCH 3/3] i915: Don't provide ACPI backlight interface if firmware expects Windows 8

2013-07-05 Thread Rafael J. Wysocki
On Friday, July 05, 2013 10:00:55 PM Rafael J. Wysocki wrote: > On Friday, July 05, 2013 02:20:14 PM Rafael J. Wysocki wrote: > > On Sunday, June 09, 2013 07:01:39 PM Matthew Garrett wrote: > > > Windows 8 leaves backlight control up to individual graphics drivers > > > rather > > > than making

Re: [URGENT rfc patch 0/3] tsc clocksource bug fix

2013-07-05 Thread Peter Zijlstra
On Fri, Jul 05, 2013 at 05:24:09PM +0200, Thomas Gleixner wrote: > See arch/x86/kernel/tsc.c > > We disable the watchdog for the TSC when tsc_clocksource_reliable is > set. > > tsc_clocksource_reliable is set when: > > - you add tsc=reliable to the kernel command line Ah, I didn't know about

Re: [PATCH] ASoC: Allow imx-pcm-{dma,fiq}.c to be modules

2013-07-05 Thread Mark Brown
On Fri, Jul 05, 2013 at 10:55:10PM +0200, Arnd Bergmann wrote: > On Friday 05 July 2013, Mark Brown wrote: > > Is this actually OK with the FIQ APIs? > I don't know. Why wouldn't it? It was the only reason I could think of why that'd have been done. > Other users of the same interfaces

Re: [PATCH] clocksource/cadence_ttc: Reuse clocksource as sched_clock

2013-07-05 Thread Sören Brinkmann
On Fri, Jul 05, 2013 at 10:59:53PM +0200, Thomas Gleixner wrote: > On Fri, 5 Jul 2013, Sören Brinkmann wrote: > > On Fri, Jul 05, 2013 at 10:42:03PM +0200, Thomas Gleixner wrote: > > > We have a mechanism for that in place, if stuff goes cross trees. One > > > of the trees provides a set of commit

Re: MTD EEPROM support and driver integration

2013-07-05 Thread Arnd Bergmann
On Friday 05 July 2013, Maxime Ripard wrote: > Hi everyone, > > In the last weeks, we've drivers coming up both about mostly some very > simple drivers that expose to the userspace a few bytes of memory-mapped > IO. Both will probably live under drivers/misc/eeprom, where there's > support

Re: [PATCH RESEND v10 2/2] watchdog: Sysfs interface for MEN A21 watchdog

2013-07-05 Thread Wim Van Sebroeck
Hi Johannes, > This patch adds a sysfs interface for the watchdog > device found on MEN A21 Boards. > > The newly generated files are: > * rebootcause: > Can be one of: > Power on Reset, > CPU Reset Request, > Push Button, > FPGA Reset Request, > Watchdog, > Local Power Bad, > Invalid or > BDI >

[PATCH] Staging: csr: csr_wifi_router_sef.c: fixed a brace coding style issue

2013-07-05 Thread Aldo Iljazi
Fixed a coding style issue. Signed-off-by: Aldo Iljazi --- drivers/staging/csr/csr_wifi_router_sef.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/csr/csr_wifi_router_sef.c b/drivers/staging/csr/csr_wifi_router_sef.c index 45a10fb..bdb7d3b 100644 ---

Re: [PATCH RESEND v10 1/2] watchdog: New watchdog driver for MEN A21 watchdogs

2013-07-05 Thread Wim Van Sebroeck
Hi Johannes, > This patch adds the driver for the watchdog devices found on MEN Mikro > Elektronik A21 VMEbus CPU Carrier Boards. It has DT-support and uses the > watchdog framework. > > Signed-off-by: Johannes Thumshirn > Reviewed-by: Guenter Roeck I added this patch to linux-watchdog-next.

Re: [PATCH] clocksource/cadence_ttc: Reuse clocksource as sched_clock

2013-07-05 Thread Thomas Gleixner
On Fri, 5 Jul 2013, Sören Brinkmann wrote: > On Fri, Jul 05, 2013 at 10:42:03PM +0200, Thomas Gleixner wrote: > > We have a mechanism for that in place, if stuff goes cross trees. One > > of the trees provides a set of commit for the other tree to pull, so > > we do not end up with merge

[PATCH 1/4] PF: Add FAULT_FLAG_RETRY_NOWAIT for guest fault

2013-07-05 Thread Dominik Dingel
In case of a fault retry exit sie64() with gmap_fault indication for the running thread set. This makes it possible to handle async page faults without the need for mm notifiers. Based on a patch from Martin Schwidefsky. Signed-off-by: Dominik Dingel --- arch/s390/include/asm/pgtable.h | 2

  1   2   3   4   5   6   7   8   9   >