]> Git Repo - linux.git/log
linux.git
13 years agoKVM: x86 emulator: avoid using ctxt->vcpu in check_perm() callbacks
Avi Kivity [Wed, 20 Apr 2011 12:01:23 +0000 (15:01 +0300)]
KVM: x86 emulator: avoid using ctxt->vcpu in check_perm() callbacks

Unneeded for register access.

Signed-off-by: Avi Kivity <[email protected]>
13 years agoKVM: x86 emulator: drop vcpu argument from intercept callback
Avi Kivity [Wed, 20 Apr 2011 10:37:53 +0000 (13:37 +0300)]
KVM: x86 emulator: drop vcpu argument from intercept callback

Making the emulator caller agnostic.

Signed-off-by: Avi Kivity <[email protected]>
13 years agoKVM: x86 emulator: drop vcpu argument from cr/dr/cpl/msr callbacks
Avi Kivity [Wed, 20 Apr 2011 10:37:53 +0000 (13:37 +0300)]
KVM: x86 emulator: drop vcpu argument from cr/dr/cpl/msr callbacks

Making the emulator caller agnostic.

Signed-off-by: Avi Kivity <[email protected]>
13 years agoKVM: x86 emulator: drop vcpu argument from segment/gdt/idt callbacks
Avi Kivity [Wed, 20 Apr 2011 10:37:53 +0000 (13:37 +0300)]
KVM: x86 emulator: drop vcpu argument from segment/gdt/idt callbacks

Making the emulator caller agnostic.

[Takuya Yoshikawa: fix typo leading to LDT failures]

Signed-off-by: Takuya Yoshikawa <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
13 years agox86, apic: Make apic drivers static
Suresh Siddha [Sat, 21 May 2011 00:51:20 +0000 (17:51 -0700)]
x86, apic: Make apic drivers static

Apic probe now looks at the apic drivers listed in the
.apicdrivers section. Remove apic_probe[] and make each apic
driver static.

Signed-off-by: Suresh Siddha <[email protected]>
Tested-by: Cyrill Gorcunov <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
13 years agox86, apic: Clean up bigsmp apic selection code
Suresh Siddha [Sat, 21 May 2011 00:51:19 +0000 (17:51 -0700)]
x86, apic: Clean up bigsmp apic selection code

Make generic_bigsmp_probe() return struct apic *. This will
avoid exporting apic_bigsmp, which will be consistent with
others.

Signed-off-by: Suresh Siddha <[email protected]>
Tested-by: Cyrill Gorcunov <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
13 years agox86, apic: Use .apicdrivers section for the apic drivers list
Suresh Siddha [Sat, 21 May 2011 00:51:18 +0000 (17:51 -0700)]
x86, apic: Use .apicdrivers section for the apic drivers list

This will eliminate the need for apic_probe[], as the probing
now will happen based on the apic drivers order in the
.apcidrivers section.

Signed-off-by: Suresh Siddha <[email protected]>
Tested-by: Cyrill Gorcunov <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
13 years agox86, apic: Introduce .apicdrivers section to find the list of apic drivers
Suresh Siddha [Sat, 21 May 2011 00:51:17 +0000 (17:51 -0700)]
x86, apic: Introduce .apicdrivers section to find the list of apic drivers

This will pave the way for each apic driver to be self-contained
and eliminate the need for apic_probe[].

Order in which apic drivers are listed in the .apicdrivers
section is important, as this determines the apic probe order.
And this is enforced by the ordering of apic driver files in the
Makefile and the macros apic_driver()/apic_drivers().

Signed-off-by: Suresh Siddha <[email protected]>
Tested-by: Cyrill Gorcunov <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
13 years agoMerge branch 'perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic...
Ingo Molnar [Sun, 22 May 2011 08:07:37 +0000 (10:07 +0200)]
Merge branch 'perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/random-tracing into perf/urgent

Conflicts:
tools/perf/builtin-top.c

Semantic conflict:
util/include/linux/list.h        # fix prefetch.h removal fallout

Signed-off-by: Ingo Molnar <[email protected]>
13 years agoMerge branch 'topic/hda' into for-linus
Takashi Iwai [Sun, 22 May 2011 08:01:35 +0000 (10:01 +0200)]
Merge branch 'topic/hda' into for-linus

13 years agoMerge branch 'topic/asoc' into for-linus
Takashi Iwai [Sun, 22 May 2011 08:01:33 +0000 (10:01 +0200)]
Merge branch 'topic/asoc' into for-linus

13 years agoMerge branch 'topic/misc' into for-linus
Takashi Iwai [Sun, 22 May 2011 08:01:29 +0000 (10:01 +0200)]
Merge branch 'topic/misc' into for-linus

13 years agoMerge branch 'topic/lola' into for-linus
Takashi Iwai [Sun, 22 May 2011 08:01:22 +0000 (10:01 +0200)]
Merge branch 'topic/lola' into for-linus

13 years agoMerge branch 'flushing' into for-linus
James Bottomley [Sun, 22 May 2011 07:04:55 +0000 (11:04 +0400)]
Merge branch 'flushing' into for-linus

13 years agoMerge branch 'topic/asoc' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai...
Mark Brown [Sun, 22 May 2011 02:31:51 +0000 (10:31 +0800)]
Merge branch 'topic/asoc' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 into for-2.6.40

13 years agoASoC: core: Don't set "(null)" as a driver name
Jarkko Nikula [Fri, 20 May 2011 12:47:40 +0000 (15:47 +0300)]
ASoC: core: Don't set "(null)" as a driver name

Commit 22de71b ("ASoC: core - allow ASoC more flexible machine name")
writes "(null)" to driver name string in struct snd_card if card->driver_name
is NULL. This causes segmentation faults with some user space ALSA utilities
like aplay and arecord.

Fix this by using the card->name if no driver name is specified.

Signed-off-by: Jarkko Nikula <[email protected]>
Acked-by: Liam Girdwood <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
13 years agoperf tools: Propagate event parse error handling
Frederic Weisbecker [Sun, 22 May 2011 00:17:22 +0000 (02:17 +0200)]
perf tools: Propagate event parse error handling

Better handle event parsing error by propagating the details
in upper layers or by dumping some failure message. So that
the user knows he has some crazy events in the batch.

Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Stephane Eranian <[email protected]>
13 years agoperf tools: Robustify dynamic sample content fetch
Frederic Weisbecker [Sat, 21 May 2011 18:08:15 +0000 (20:08 +0200)]
perf tools: Robustify dynamic sample content fetch

Ensure the size of the dynamic fields such as callchains
or raw events don't overlap the whole event boundaries.

This prevents from dereferencing junk if the given size of
the callchain goes too eager.

Reported-by: Linus Torvalds <[email protected]>
Reported-by: Ingo Molnar <[email protected]>
Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Stephane Eranian <[email protected]>
13 years agoperf tools: Pre-check sample size before parsing
Frederic Weisbecker [Sat, 21 May 2011 17:33:04 +0000 (19:33 +0200)]
perf tools: Pre-check sample size before parsing

Check that the total size of the sample fields having a fixed
size do not exceed the one of the whole event. This robustifies
the sample parsing.

Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Stephane Eranian <[email protected]>
13 years agoperf tools: Move evlist sample helpers to evlist area
Frederic Weisbecker [Sat, 21 May 2011 15:49:00 +0000 (17:49 +0200)]
perf tools: Move evlist sample helpers to evlist area

These APIs should belong to evlist.c as they may not be
exclusively tied to the headers.

Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Stephane Eranian <[email protected]
13 years agoperf tools: Remove junk code in mmap size handling
Frederic Weisbecker [Sat, 21 May 2011 15:07:24 +0000 (17:07 +0200)]
perf tools: Remove junk code in mmap size handling

size is overriden later and used only then. Those
lines are only junk, probably a leftover.

Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Stephane Eranian <[email protected]>
13 years agoperf tools: Check we are able to read the event size on mmap
Frederic Weisbecker [Sat, 21 May 2011 15:07:24 +0000 (17:07 +0200)]
perf tools: Check we are able to read the event size on mmap

Check we have enough mmaped space to read the current event
size from its headers, otherwise we may dereference some
hell there.

Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Stephane Eranian <[email protected]>
13 years agoMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394...
Linus Torvalds [Sat, 21 May 2011 19:25:07 +0000 (12:25 -0700)]
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6:
  firewire: sbp2: parallelize login, reconnect, logout
  firewire: sbp2: octlet AT payloads can be stack-allocated
  firewire: sbp2: omit Scsi_Host lock from queuecommand
  firewire: core: use non-reentrant workqueue with rescuer
  firewire: optimize iso queueing by setting wake only after the last packet
  firewire: octlet AT payloads can be stack-allocated
  firewire: ohci: optimize find_branch_descriptor()
  firewire: ohci: avoid separate DMA mapping for small AT payloads
  firewire: ohci: do not start DMA contexts before link is enabled

13 years agoPCI: Don't use dmi_name_in_vendors in quirk
Jean Delvare [Sun, 15 May 2011 16:13:46 +0000 (18:13 +0200)]
PCI: Don't use dmi_name_in_vendors in quirk

Don't use the costly dmi_name_in_vendors() when we know the string we
are looking for can only be in the DMI board name field. This is more
robust and, more importantly, much faster.

Signed-off-by: Jean Delvare <[email protected]>
Signed-off-by: Jesse Barnes <[email protected]>
13 years agoPCI: remove unused AER functions
Chen Gong [Fri, 20 May 2011 05:36:01 +0000 (13:36 +0800)]
PCI: remove unused AER functions

In the commit 28eb5f2, aer_osc_setup is removed but corresponding
definiton information in the aerdrv.h is missed.

Acked-by: Rafael J. Wysocki <[email protected]>
Signed-off-by: Chen Gong <[email protected]>
Signed-off-by: Jesse Barnes <[email protected]>
13 years agoPCI/sysfs: move bus cpuaffinity to class dev_attrs
Yinghai Lu [Fri, 13 May 2011 00:11:40 +0000 (17:11 -0700)]
PCI/sysfs: move bus cpuaffinity to class dev_attrs

Requested by Greg KH to fix a race condition in the creating of PCI bus
cpuaffinity files.

Acked-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Yinghai Lu <[email protected]>
Signed-off-by: Jesse Barnes <[email protected]>
13 years agoPCI: add rescan to /sys/.../pci_bus/.../
Yinghai Lu [Fri, 13 May 2011 00:11:39 +0000 (17:11 -0700)]
PCI: add rescan to /sys/.../pci_bus/.../

After remove the device from /sys, we have to rescan all or
find out the bridge and access /sys../device/rescan there.

this patch add /sys/.../pci_bus/.../rescan. So user can rescan more easy.
that is more clean and easy to understand.

like after remove 0000:c4:00.0, you can rescan 0000:c4 directly.

-v2: According to Jesse, use function instead of exposing attr, so could hide
#ifdef in header file.
     also add code to remove rescan file in remove path.
-v3: GregKH pointed out that we should use dev_attrs to avoid racing.
     So add pcibus_attrs and make it to be member of pcibus_attrs.
-v4: Change name to pcibus_dev_attrs according to GregKH

Acked-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Yinghai Lu <[email protected]>
Signed-off-by: Jesse Barnes <[email protected]>
13 years agoPCI: update bridge resources to get more big ranges when allocating space (again)
Yinghai Lu [Fri, 13 May 2011 00:11:37 +0000 (17:11 -0700)]
PCI: update bridge resources to get more big ranges when allocating space (again)

With Ram's fixes, this should be safe to do again.  So let's give it
another try.

BIOS separates IO ranges between several IOHs, and on some slots, BIOS
assigns resources to a bridge, but stops assigning resources to the
device under that bridge, because the device needs a big resource.

So:
1. allocate resources and record the failed device resources
2. clear the BIOS assigned resources of the parent bridge of failing device
3. go back and call pci assign unassigned
4. if it still fails, go up the tree, clear more bridges. and try again

Now Ram's allocate requested resource already got into mainline. could
put this one again.

Reviewed-by: Ram Pai <[email protected]>
Signed-off-by: Yinghai Lu <[email protected]>
Signed-off-by: Jesse Barnes <[email protected]>
13 years agoKVM: Use pci_store/load_saved_state() around VM device usage
Alex Williamson [Tue, 10 May 2011 16:02:39 +0000 (10:02 -0600)]
KVM: Use pci_store/load_saved_state() around VM device usage

Store the device saved state so that we can reload the device back
to the original state when it's unassigned.  This has the benefit
that the state survives across pci_reset_function() calls via
the PCI sysfs reset interface while the VM is using the device.

Signed-off-by: Alex Williamson <[email protected]>
Acked-by: Avi Kivity <[email protected]>
Signed-off-by: Jesse Barnes <[email protected]>
13 years agoPCI: Add interfaces to store and load the device saved state
Alex Williamson [Tue, 10 May 2011 16:02:27 +0000 (10:02 -0600)]
PCI: Add interfaces to store and load the device saved state

For KVM device assignment, we'd like to save off the state of a device
prior to passing it to the guest and restore it later.  We also want
to allow pci_reset_funciton() to be called while the device is owned
by the guest.  This however overwrites and invalidates the struct pci_dev
buffers, so we can't just manually call save and restore.  Add generic
interfaces for the saved state to be stored and reloaded back into
struct pci_dev at a later time.

Signed-off-by: Alex Williamson <[email protected]>
Signed-off-by: Jesse Barnes <[email protected]>
13 years agoPCI: Track the size of each saved capability data area
Alex Williamson [Tue, 10 May 2011 16:02:11 +0000 (10:02 -0600)]
PCI: Track the size of each saved capability data area

This will allow us to store and load it later.

Signed-off-by: Alex Williamson <[email protected]>
Signed-off-by: Jesse Barnes <[email protected]>
13 years agoPCI/e1000e: Add and use pci_disable_link_state_locked()
Yinghai Lu [Fri, 13 May 2011 00:11:47 +0000 (17:11 -0700)]
PCI/e1000e: Add and use pci_disable_link_state_locked()

Need to use it in _e1000e_disable_aspm.  This routine is used for error
recovery, where the pci_bus_sem is already held, and we don't want
pci_disable_link_state to try to take it again.  So add a locked variant
for use in cases like this.

Found lock up:

[ 2374.654557] kworker/32:1    D ffff881027f6b0f0     0  6075      2 0x00000000
[ 2374.654816]  ffff88503f099a68 0000000000000046 ffff88503f098000 0000000000004000
[ 2374.654837]  00000000001d1ec0 ffff88503f099fd8 00000000001d1ec0 ffff88503f099fd8
[ 2374.654860]  0000000000004000 00000000001d1ec0 ffff88503dcc8000 ffff88503f090000
[ 2374.654880] Call Trace:
[ 2374.654898]  [<ffffffff810b1302>] ? __lock_acquired+0x3a/0x224
[ 2374.654914]  [<ffffffff81c2b59c>] ? _raw_spin_unlock_irq+0x30/0x36
[ 2374.654925]  [<ffffffff810b069d>] ? trace_hardirqs_on_caller+0x1f/0x178
[ 2374.654936]  [<ffffffff81c2ab24>] rwsem_down_failed_common+0xd3/0x103
[ 2374.654945]  [<ffffffff810b158f>] ? __lock_contended+0x3a/0x2a2
[ 2374.654955]  [<ffffffff81c2ab7b>] rwsem_down_read_failed+0x12/0x14
[ 2374.654967]  [<ffffffff813371e4>] call_rwsem_down_read_failed+0x14/0x30
[ 2374.654981]  [<ffffffff8135df20>] ? pci_disable_link_state+0x5f/0xf5
[ 2374.654990]  [<ffffffff81c2a0e6>] ? down_read+0x7e/0x91
[ 2374.654999]  [<ffffffff8135df20>] ? pci_disable_link_state+0x5f/0xf5
[ 2374.655008]  [<ffffffff8135df20>] pci_disable_link_state+0x5f/0xf5
[ 2374.655024]  [<ffffffff81661796>] e1000e_disable_aspm+0x55/0x5a
[ 2374.655037]  [<ffffffff816677eb>] e1000_io_slot_reset+0x59/0xea
[ 2374.655048]  [<ffffffff8135fe0d>] ? report_mmio_enabled+0x5d/0x5d
[ 2374.655057]  [<ffffffff8135fe3b>] report_slot_reset+0x2e/0x5d
[ 2374.655072]  [<ffffffff8135369e>] pci_walk_bus+0x8a/0xb7
[ 2374.655081]  [<ffffffff8135fe0d>] ? report_mmio_enabled+0x5d/0x5d
[ 2374.655091]  [<ffffffff813603be>] broadcast_error_message+0xa4/0xb2
[ 2374.655101]  [<ffffffff81352c71>] ? pci_bus_read_config_dword+0x72/0x80
[ 2374.655110]  [<ffffffff813606df>] do_recovery+0x9e/0xf9
[ 2374.655120]  [<ffffffff81360786>] handle_error_source+0x4c/0x51
[ 2374.655129]  [<ffffffff81360974>] aer_isr_one_error+0x1e9/0x21a
[ 2374.655138]  [<ffffffff81360a6c>] aer_isr+0xc7/0xcc
[ 2374.655147]  [<ffffffff813609a5>] ? aer_isr_one_error+0x21a/0x21a
[ 2374.655159]  [<ffffffff81096d9f>] process_one_work+0x237/0x3ec
[ 2374.655168]  [<ffffffff81096d10>] ? process_one_work+0x1a8/0x3ec
[ 2374.655178]  [<ffffffff8109728d>] worker_thread+0x17c/0x240
[ 2374.655186]  [<ffffffff810b0803>] ? trace_hardirqs_on+0xd/0xf
[ 2374.655196]  [<ffffffff81097111>] ? manage_workers+0xab/0xab
[ 2374.655209]  [<ffffffff8109c8ed>] kthread+0xa0/0xa8
[ 2374.655223]  [<ffffffff81c332d4>] kernel_thread_helper+0x4/0x10
[ 2374.655232]  [<ffffffff81c2b880>] ? retint_restore_args+0xe/0xe
[ 2374.655243]  [<ffffffff8109c84d>] ? __init_kthread_worker+0x5b/0x5b
[ 2374.655252]  [<ffffffff81c332d0>] ? gs_change+0xb/0xb

when aer happens,
pci_walk_bus already have down_read(&pci_bus_sem)...
then report_slot_reset
        ==> e1000_io_slot_reset
                ==> e1000e_disable_aspm
                        ==> pci_disable_link_state...

We can not use pci_disable_link_state, and it will try to hold pci_bus_sem again.

Try to have __pci_disable_link_state that will not need to hold pci_bus_sem.

-v2: change name to pci_disable_link_state_locked() according to Jesse.

[jbarnes: make sure new function is exported for modules]

Signed-off-by: Yinghai Lu <[email protected]>
Signed-off-by: Jesse Barnes <[email protected]>
13 years agoGFS2: Wait properly when flushing the ail list
Steven Whitehouse [Sat, 21 May 2011 18:21:07 +0000 (19:21 +0100)]
GFS2: Wait properly when flushing the ail list

The ail flush code has always relied upon log flushing to prevent
it from spinning needlessly. This fixes it to wait on the last
I/O request submitted (we don't need to wait for all of it)
instead of either spinning with io_schedule or sleeping.

As a result cpu usage of gfs2_logd is much reduced with certain
workloads.

Reported-by: Abhijith Das <[email protected]>
Tested-by: Abhijith Das <[email protected]>
Signed-off-by: Steven Whitehouse <[email protected]>
13 years agox86: Eliminate various 'set but not used' warnings
Gustavo F. Padovan [Fri, 20 May 2011 19:13:00 +0000 (16:13 -0300)]
x86: Eliminate various 'set but not used' warnings

Signed-off-by: Gustavo F. Padovan <[email protected]>
Cc: Joerg Roedel <[email protected]> (supporter:AMD IOMMU (AMD-VI))
Cc: [email protected] (open list:AMD IOMMU (AMD-VI))
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
13 years agox86/PCI: derive pcibios_last_bus from ACPI MCFG
Jan Beulich [Wed, 23 Feb 2011 10:08:10 +0000 (10:08 +0000)]
x86/PCI: derive pcibios_last_bus from ACPI MCFG

On various newer Intel systems the PCI bus(ses) the non-core devices
live on aren't getting announced by ACPI except through the bus range
covered by mmconfig. At least the i7core-edac driver depends on these
devices getting detected.

Mauro, could you check whether with this change the Xeon 55xx hack in
that driver can go away altogether, and with it the bogus exporting of
pcibios_scan_specific_bus()?

Signed-off-by: Jan Beulich <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: Aristeu Sergio <[email protected]>
Signed-off-by: Jesse Barnes <[email protected]>
13 years agohwmon: (coretemp) Fix checkpatch errors
Guenter Roeck [Thu, 19 May 2011 21:45:48 +0000 (14:45 -0700)]
hwmon: (coretemp) Fix checkpatch errors

Fix remaining checkpatch errors in the coretemp driver.

Signed-off-by: Guenter Roeck <[email protected]>
Cc: Fenghua Yu <[email protected]>
Cc: Durgadoss R <[email protected]>
Acked-by: Jean Delvare <[email protected]>
13 years agohwmon: Remove pkgtemp driver
Guenter Roeck [Fri, 20 May 2011 14:28:06 +0000 (07:28 -0700)]
hwmon: Remove pkgtemp driver

After the merge of pkgtemp functionality into the coretemp driver,
the pkgtemp driver is no longer necessary. Remove it.

Signed-off-by: Guenter Roeck <[email protected]>
Cc: Fenghua Yu <[email protected]>
Acked-by: Jean Delvare <[email protected]>
13 years agoGFS2: Wipe directory hash table metadata when deallocating a directory
Steven Whitehouse [Sat, 21 May 2011 13:05:58 +0000 (14:05 +0100)]
GFS2: Wipe directory hash table metadata when deallocating a directory

The deallocation code for directories in GFS2 is largely divided into
two parts. The first part deallocates any directory leaf blocks and
marks the directory as being a regular file when that is complete. The
second stage was identical to deallocating regular files.

Regular files have their data blocks in a different
address space to directories, and thus what would have been normal data
blocks in a regular file (the hash table in a GFS2 directory) were
deallocated correctly. However, a reference to these blocks was left in the
journal (assuming of course that some previous activity had resulted in
those blocks being in the journal or ail list).

This patch uses the i_depth as a test of whether the inode is an
exhash directory (we cannot test the inode type as that has already
been changed to a regular file at this stage in deallocation)

The original issue was reported by Chris Hertel as an issue he encountered
running bonnie++

Reported-by: Christopher R. Hertel <[email protected]>
Cc: Abhijith Das <[email protected]>
Signed-off-by: Steven Whitehouse <[email protected]>
13 years ago[media] gspca - sunplus: Fix some warnings and simplify code
Jean-François Moine [Tue, 17 May 2011 08:32:39 +0000 (05:32 -0300)]
[media] gspca - sunplus: Fix some warnings and simplify code

This patch removes warnings due to GSPCA_DEBUG unsetting. It implied
a simplification of the code.

Signed-off-by: Jean-François Moine <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] gspca: Fix some warnings tied to 'no debug'
Jean-François Moine [Tue, 17 May 2011 08:08:59 +0000 (05:08 -0300)]
[media] gspca: Fix some warnings tied to 'no debug'

This patch fixes the warnings raised by unsetting the option GSPCA_DEBUG.

Signed-off-by: Jean-François Moine <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] gspca: Unset debug by default
Jean-François Moine [Tue, 17 May 2011 07:37:05 +0000 (04:37 -0300)]
[media] gspca: Unset debug by default

The output of possible hardware or software errors does not depend on the
option GSPCA_DEBUG. This one is useful only when working on the main driver
or on a subdriver (bug fix, enhancement, new webcam/bridge/sensor or bug fix).
It is enabled in the gspca test version which is available from my web site.

Signed-off-by: Jean-François Moine <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] gspca - cpia1: Remove a bad conditional compilation instruction
Jean-François Moine [Tue, 17 May 2011 07:15:15 +0000 (04:15 -0300)]
[media] gspca - cpia1: Remove a bad conditional compilation instruction

This patch fixes a compilation error when GSPCA_DEBUG is not set.

Signed-off-by: Jean-François Moine <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] gspca - main: Remove USB traces
Jean-François Moine [Tue, 17 May 2011 07:10:32 +0000 (04:10 -0300)]
[media] gspca - main: Remove USB traces

The USB traces are better done by usbmon which is enabled in most Linux/GNU
distributions and which permits easier comparison with the USB exchanges of
other drivers.

Signed-off-by: Jean-François Moine <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] gspca - main: Version change to 2.13
Jean-François Moine [Tue, 17 May 2011 07:03:51 +0000 (04:03 -0300)]
[media] gspca - main: Version change to 2.13

Signed-off-by: Jean-François Moine <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] gspca - stk014 / t613: Accept the index 0 in querymenu
Jean-François Moine [Tue, 17 May 2011 06:58:57 +0000 (03:58 -0300)]
[media] gspca - stk014 / t613: Accept the index 0 in querymenu

This patch fixes the kernel bug #15122.

Signed-off-by: Jean-François Moine <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] gspca - kinect: Remove __devinitdata
Jean-François Moine [Tue, 17 May 2011 06:56:09 +0000 (03:56 -0300)]
[media] gspca - kinect: Remove __devinitdata

__devinit* must not be used in USB drivers.

Signed-off-by: Jean-François Moine <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] gspca - cpia1: Fix some warnings
Jean-François Moine [Tue, 17 May 2011 06:54:11 +0000 (03:54 -0300)]
[media] gspca - cpia1: Fix some warnings

Some variables were set but not used.

Signed-off-by: Jean-François Moine <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] video/Kconfig: Fix mis-classified devices
Mauro Carvalho Chehab [Sat, 21 May 2011 12:12:30 +0000 (09:12 -0300)]
[media] video/Kconfig: Fix mis-classified devices

The helper chips are classified by their function. Unfortunaltely,
with time, developers added their stuff into the wrong places.

Fix it by moving itens to be at the right place. Also add a new
category for sensors and for misc devices that are found only on
a certain specific board.

While here, fix two bad whitespaces at Kconfig.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years agox86, SMEP: Fix section mismatch warnings
Fenghua Yu [Fri, 20 May 2011 22:33:17 +0000 (15:33 -0700)]
x86, SMEP: Fix section mismatch warnings

Fix these kernel compilation warnings:

 WARNING: arch/x86/built-in.o(.cpuinit.text+0x1e07): Section mismatch ...
 WARNING: arch/x86/built-in.o(.cpuinit.text+0x1b10): Section mismatch ...

introduced by:

  de5397ad5b9a: x86, cpu: Enable/disable Supervisor Mode Execution Protection

Change disable_smep from __initdata to __cpuinitdata.
Change setup_smep() from __init to __cpuinit.

Reported-by: Yinghai Lu <[email protected]>
Signed-off-by: Fenghua Yu <[email protected]>
Cc: Asit K Mallick <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
13 years ago[media] support for medion dvb stick 1660:1921
Stéphane Elmaleh [Sat, 21 May 2011 10:33:38 +0000 (07:33 -0300)]
[media] support for medion dvb stick 1660:1921

[[email protected]: The same patch were sent by Alf and by Randoslaw.
I've applied the oldest version, just fixing the entry index]

Cc: Patrick Boettcher <[email protected]>
Tested-by: James Huk <[email protected]>
Tested-by: Alf Fahland <[email protected]>
Signed-off-by: Radoslaw Warowny <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] tm6000: fix uninitialized field, change prink to dprintk
Stefan Ringel [Sat, 21 May 2011 06:05:38 +0000 (03:05 -0300)]
[media] tm6000: fix uninitialized field, change prink to dprintk

fix uninitialized field, change prink to dprintk

Signed-off-by: Stefan Ringel <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years agoslub: Deal with hyperthetical case of PAGE_SIZE > 2M
Christoph Lameter [Fri, 20 May 2011 14:42:48 +0000 (09:42 -0500)]
slub: Deal with hyperthetical case of PAGE_SIZE > 2M

kmalloc_index() currently returns -1 if the PAGE_SIZE is larger than 2M
which seems to cause some concern since the callers do not check for -1.

Insert a BUG() and add a comment to the -1 explaining that the code
cannot be reached.

Signed-off-by: Christoph Lameter <[email protected]>
Signed-off-by: Pekka Enberg <[email protected]>
13 years agoslub: Remove node check in slab_free
Christoph Lameter [Tue, 17 May 2011 21:29:31 +0000 (16:29 -0500)]
slub: Remove node check in slab_free

We can set the page pointing in the percpu structure to
NULL to have the same effect as setting c->node to NUMA_NO_NODE.

Gets rid of one check in slab_free() that was only used for
forcing the slab_free to the slowpath for debugging.

We still need to set c->node to NUMA_NO_NODE to force the
slab_alloc() fastpath to the slowpath in case of debugging.

Signed-off-by: Christoph Lameter <[email protected]>
Signed-off-by: Pekka Enberg <[email protected]>
13 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
Linus Torvalds [Sat, 21 May 2011 07:13:03 +0000 (00:13 -0700)]
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6

* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
  sctp: Fix build failure.
  garp: use kfree_rcu()
  ipv6: copy prefsrc setting when copying route entry

13 years agoVFS: move BUG_ON test for symlink nd->depth after current->link_count test
Erez Zadok [Sat, 21 May 2011 05:19:59 +0000 (01:19 -0400)]
VFS: move BUG_ON test for symlink nd->depth after current->link_count test

This solves a serious VFS-level bug in nested_symlink (which was
rewritten from do_follow_link), and follows the order of depth tests
that existed before.

The bug triggers a BUG_ON in fs/namei.c:1381, when running racer with
symlink and rename ops.

Signed-off-by: Erez Zadok <[email protected]>
Acked-by: Miklos Szeredi <[email protected]>
Cc: [email protected]
Signed-off-by: Linus Torvalds <[email protected]>
13 years agosctp: Fix build failure.
David S. Miller [Sat, 21 May 2011 06:10:23 +0000 (02:10 -0400)]
sctp: Fix build failure.

Commit c182f90bc1f22ce5039b8722e45621d5f96862c2 ("SCTP: fix race
between sctp_bind_addr_free() and sctp_bind_addr_conflict()") and
commit 1231f0baa547a541a7481119323b7f964dda4788 ("net,rcu: convert
call_rcu(sctp_local_addr_free) to kfree_rcu()"), happening in
different trees, introduced a build failure.

Simply make the SCTP race fix use kfree_rcu() too.

Signed-off-by: David S. Miller <[email protected]>
13 years agogarp: use kfree_rcu()
Eric Dumazet [Fri, 20 May 2011 18:31:30 +0000 (18:31 +0000)]
garp: use kfree_rcu()

Use kfree_rcu() instead of call_rcu(), remove garp_cleanup_module()

Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
13 years agoipv6: copy prefsrc setting when copying route entry
Florian Westphal [Fri, 20 May 2011 11:27:24 +0000 (11:27 +0000)]
ipv6: copy prefsrc setting when copying route entry

commit c3968a857a6b6c3d2ef4ead35776b055fb664d74
('ipv6: RTA_PREFSRC support for ipv6 route source address selection')
added support for ipv6 prefsrc as an alternative to ipv6 addrlabels,
but it did not work because the prefsrc entry was not copied.

Cc: Daniel Walter <[email protected]>
Signed-off-by: Florian Westphal <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
13 years ago[media] cx231xx: Add support for Iconbit U100
Igor Novgorodov [Tue, 17 May 2011 16:46:36 +0000 (13:46 -0300)]
[media] cx231xx: Add support for Iconbit U100

This patch adds support for the "Iconbit Analog Stick U100 FM".
Only composite & s-video inputs, no tuner support now.

Signed-off-by: Igor Novgorodov <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Linus Torvalds [Sat, 21 May 2011 00:24:14 +0000 (17:24 -0700)]
Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6

* git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: (45 commits)
  crypto: caam - add support for sha512 variants of existing AEAD algorithms
  crypto: caam - remove unused authkeylen from caam_ctx
  crypto: caam - fix decryption shared vs. non-shared key setting
  crypto: caam - platform_bus_type migration
  crypto: aesni-intel - fix aesni build on i386
  crypto: aesni-intel - Merge with fpu.ko
  crypto: mv_cesa - make count_sgs() null-pointer proof
  crypto: mv_cesa - copy remaining bytes to SRAM only when needed
  crypto: mv_cesa - move digest state initialisation to a better place
  crypto: mv_cesa - fill inner/outer IV fields only in HMAC case
  crypto: mv_cesa - refactor copy_src_to_buf()
  crypto: mv_cesa - no need to save digest state after the last chunk
  crypto: mv_cesa - print a warning when registration of AES algos fail
  crypto: mv_cesa - drop this call to mv_hash_final from mv_hash_finup
  crypto: mv_cesa - the descriptor pointer register needs to be set just once
  crypto: mv_cesa - use ablkcipher_request_cast instead of the manual container_of
  crypto: caam - fix printk recursion for long error texts
  crypto: caam - remove unused keylen from session context
  hwrng: amd - enable AMD hw rnd driver for Maple PPC boards
  hwrng: amd - manage resource allocation
  ...

13 years ago[media] saa7134 add new TV cards
Dmitri Belimov [Tue, 17 May 2011 04:21:34 +0000 (01:21 -0300)]
[media] saa7134 add new TV cards

Add new TV cards of Beholder Company. Just for autodetect.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years agoFix for buffer overflow in ldm_frag_add not sufficient
Timo Warns [Thu, 19 May 2011 07:24:17 +0000 (09:24 +0200)]
Fix for buffer overflow in ldm_frag_add not sufficient

As Ben Hutchings discovered [1], the patch for CVE-2011-1017 (buffer
overflow in ldm_frag_add) is not sufficient.  The original patch in
commit c340b1d64000 ("fs/partitions/ldm.c: fix oops caused by corrupted
partition table") does not consider that, for subsequent fragments,
previously allocated memory is used.

[1] http://lkml.org/lkml/2011/5/6/407

Reported-by: Ben Hutchings <[email protected]>
Signed-off-by: Timo Warns <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
13 years ago[media] Use a more consistent value for RC repeat period
Mauro Carvalho Chehab [Thu, 12 May 2011 01:36:47 +0000 (22:36 -0300)]
[media] Use a more consistent value for RC repeat period

The default REP_PERIOD is 33 ms. This doesn't make sense for IR's,
as, in general, an IR repeat scancode is provided at every 110/115ms,
depending on the RC protocol. So, increase its default, to do a
better job avoiding ghost repeat events.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Acked-by: Jarod Wilson <[email protected]>
13 years agotmpfs: fix highmem swapoff crash regression
Hugh Dickins [Fri, 20 May 2011 22:47:33 +0000 (15:47 -0700)]
tmpfs: fix highmem swapoff crash regression

Commit 778dd893ae78 ("tmpfs: fix race between umount and swapoff")
forgot the new rules for strict atomic kmap nesting, causing

  WARNING: at arch/x86/mm/highmem_32.c:81

from __kunmap_atomic(), then

  BUG: unable to handle kernel paging request at fffb9000

from shmem_swp_set() when shmem_unuse_inode() is handling swapoff with
highmem in use.  My disgrace again.

See
  https://bugzilla.kernel.org/show_bug.cgi?id=35352

Reported-by: Witold Baryluk <[email protected]>
Signed-off-by: Hugh Dickins <[email protected]>
Cc: [email protected]
Signed-off-by: Linus Torvalds <[email protected]>
13 years agopowerpc: Fix 32-bit SMP build
Josh Boyer [Fri, 20 May 2011 20:22:25 +0000 (16:22 -0400)]
powerpc: Fix 32-bit SMP build

Commit 69e3cea8d5fd526 ("powerpc/smp: Make start_secondary_resume
available to all CPU variants") introduced start_secondary_resume to
misc_32.S, however it uses a 64-bit instruction which is not valid on
32-bit platforms.  Use 'stw' instead.

Reported-by: Richard Cochran <[email protected]>
Tested-by: Richard Cochran <[email protected]>
Signed-off-by: Josh Boyer <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
13 years ago[media] cx18: Move spinlock and vb_type initialisation into stream_init
Simon Farnsworth [Tue, 10 May 2011 13:49:50 +0000 (10:49 -0300)]
[media] cx18: Move spinlock and vb_type initialisation into stream_init

The initialisation of vb_type in serialized_open was preventing
REQBUFS from working reliably. Remove it, and move the spinlock into
stream_init for good measure - it's only used when we have a stream
that supports videobuf anyway.

Signed-off-by: Simon Farnsworth <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] tm6000: remove tm6010 sif audio start and stop
Stefan Ringel [Mon, 9 May 2011 19:54:04 +0000 (16:54 -0300)]
[media] tm6000: remove tm6010 sif audio start and stop

remove tm6010 sif audio start and stop

Signed-off-by: Stefan Ringel <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] tm6000: remove unused exports
Stefan Ringel [Mon, 9 May 2011 19:54:03 +0000 (16:54 -0300)]
[media] tm6000: remove unused exports

Signed-off-by: Stefan Ringel <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] tm6000: add pts logging
Stefan Ringel [Mon, 9 May 2011 19:54:02 +0000 (16:54 -0300)]
[media] tm6000: add pts logging

Signed-off-by: Stefan Ringel <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] tm6000: change from ioctl to unlocked_ioctl
Stefan Ringel [Mon, 9 May 2011 19:54:01 +0000 (16:54 -0300)]
[media] tm6000: change from ioctl to unlocked_ioctl

Signed-off-by: Stefan Ringel <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] tm6000: all audio packets must swab
Stefan Ringel [Mon, 9 May 2011 19:54:00 +0000 (16:54 -0300)]
[media] tm6000: all audio packets must swab

Signed-off-by: Stefan Ringel <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] tm6000: remove input select
Stefan Ringel [Mon, 9 May 2011 19:53:59 +0000 (16:53 -0300)]
[media] tm6000: remove input select

Signed-off-by: Stefan Ringel <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] tm6000: move from tm6000_set_reg to tm6000_set_reg_mask
Stefan Ringel [Mon, 9 May 2011 19:53:58 +0000 (16:53 -0300)]
[media] tm6000: move from tm6000_set_reg to tm6000_set_reg_mask

move from tm6000_set_reg to tm6000_set_reg_mask

Signed-off-by: Stefan Ringel <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] tm6000: remove duplicated init
Stefan Ringel [Mon, 9 May 2011 19:53:57 +0000 (16:53 -0300)]
[media] tm6000: remove duplicated init

Signed-off-by: Stefan Ringel <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] tm6000: remove old tuner params
Stefan Ringel [Mon, 9 May 2011 19:53:56 +0000 (16:53 -0300)]
[media] tm6000: remove old tuner params

Signed-off-by: Stefan Ringel <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] tm6000: remove unused capabilities
Stefan Ringel [Mon, 9 May 2011 19:53:55 +0000 (16:53 -0300)]
[media] tm6000: remove unused capabilities

Signed-off-by: Stefan Ringel <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] tm6000: add eeprom
Stefan Ringel [Mon, 9 May 2011 19:53:54 +0000 (16:53 -0300)]
[media] tm6000: add eeprom

Signed-off-by: Stefan Ringel <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] tm6000: change input control
Stefan Ringel [Mon, 9 May 2011 19:53:53 +0000 (16:53 -0300)]
[media] tm6000: change input control

change input control

Signed-off-by: Stefan Ringel <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] tm6000: vitual input enums
Stefan Ringel [Mon, 9 May 2011 19:53:52 +0000 (16:53 -0300)]
[media] tm6000: vitual input enums

vitual input enums

Signed-off-by: Stefan Ringel <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] tm6000: change to virtual inputs
Stefan Ringel [Mon, 9 May 2011 19:53:51 +0000 (16:53 -0300)]
[media] tm6000: change to virtual inputs

change to virtual inputs

Signed-off-by: Stefan Ringel <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] tm6000: add tm6010 audio mode setup
Stefan Ringel [Mon, 9 May 2011 19:53:50 +0000 (16:53 -0300)]
[media] tm6000: add tm6010 audio mode setup

add tm6010 audio mode setup

Signed-off-by: Stefan Ringel <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] tm6000: add radio capabilities
Stefan Ringel [Mon, 9 May 2011 19:53:49 +0000 (16:53 -0300)]
[media] tm6000: add radio capabilities

add radio capabilities

Signed-off-by: Stefan Ringel <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] Prevent null pointer derefernce of pdev
Huzaifa Sidhpurwala [Mon, 9 May 2011 10:32:24 +0000 (07:32 -0300)]
[media] Prevent null pointer derefernce of pdev

Make sure pdev is not dereferenced when it is null

Signed-off-by: Huzaifa Sidhpurwala <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] DVB: allow to read back of detected parameters through S2API
Andreas Oberritter [Sun, 8 May 2011 23:03:41 +0000 (20:03 -0300)]
[media] DVB: allow to read back of detected parameters through S2API

Signed-off-by: Andreas Oberritter <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] DVB: dvb_frontend: add parameters_out
Andreas Oberritter [Sun, 8 May 2011 23:03:40 +0000 (20:03 -0300)]
[media] DVB: dvb_frontend: add parameters_out

- Holds the parameters detected by the demod.
- Updated on every call to get_frontend, either through ioctl or when
  a frontend event occurs.
- Reset to input parameters after every call to set_frontend, tune or
  search/track.

Signed-off-by: Andreas Oberritter <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] DVB: dvb_frontend: use shortcut to access fe->dtv_property_cache
Andreas Oberritter [Sun, 8 May 2011 23:03:39 +0000 (20:03 -0300)]
[media] DVB: dvb_frontend: use shortcut to access fe->dtv_property_cache

Signed-off-by: Andreas Oberritter <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] DVB: dvb_frontend: remove unused assignments
Andreas Oberritter [Sun, 8 May 2011 23:03:38 +0000 (20:03 -0300)]
[media] DVB: dvb_frontend: remove unused assignments

Signed-off-by: Andreas Oberritter <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] DVB: dvb_frontend: rename parameters to parameters_in
Andreas Oberritter [Sun, 8 May 2011 23:03:37 +0000 (20:03 -0300)]
[media] DVB: dvb_frontend: rename parameters to parameters_in

- Preparation to distinguish input parameters from output parameters.

Signed-off-by: Andreas Oberritter <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] DVB: call get_property at the end of dtv_property_process_get
Andreas Oberritter [Sun, 8 May 2011 23:03:36 +0000 (20:03 -0300)]
[media] DVB: call get_property at the end of dtv_property_process_get

- Drivers should be able to override properties returned to the user.
- The default values get prefilled from the cache.

Signed-off-by: Andreas Oberritter <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] DVB: dtv_property_cache_submit shouldn't modifiy the cache
Andreas Oberritter [Sun, 8 May 2011 23:03:35 +0000 (20:03 -0300)]
[media] DVB: dtv_property_cache_submit shouldn't modifiy the cache

- Use const pointers and remove assignments.
- delivery_system already gets assigned by DTV_DELIVERY_SYSTEM
  and dtv_property_cache_sync.

Signed-off-by: Andreas Oberritter <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] cxd2820r: Update frontend capabilities to advertise QAM-256
Steve Kerrison [Sun, 8 May 2011 19:17:19 +0000 (16:17 -0300)]
[media] cxd2820r: Update frontend capabilities to advertise QAM-256

This is supported in DVB-T2 mode, so added to the T/T2 frontend.

Signed-off-by: Steve Kerrison <[email protected]>
Acked-by: Antti Palosaari <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] DocBook/dvb: Update to include DVB-T2 additions
Steve Kerrison [Sun, 8 May 2011 19:17:20 +0000 (16:17 -0300)]
[media] DocBook/dvb: Update to include DVB-T2 additions

A few new capabilities added to frontend.h for DVB-T2. Added these
to the documentation plus some notes explaining that they are
used by the T2 delivery system.

Signed-off-by: Steve Kerrison <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] DVB: mxl5005s: handle new bandwidths by returning -EINVAL
Andreas Oberritter [Fri, 8 Apr 2011 16:37:57 +0000 (13:37 -0300)]
[media] DVB: mxl5005s: handle new bandwidths by returning -EINVAL

drivers/media/common/tuners/mxl5005s.c: In function ‘mxl5005s_set_params’:
drivers/media/common/tuners/mxl5005s.c:4016: warning: enumeration value ‘BANDWIDTH_5_MHZ’ not handled in switch
drivers/media/common/tuners/mxl5005s.c:4016: warning: enumeration value ‘BANDWIDTH_10_MHZ’ not handled in switch
drivers/media/common/tuners/mxl5005s.c:4016: warning: enumeration value ‘BANDWIDTH_1_712_MHZ’ not handled in switch

Signed-off-by: Andreas Oberritter <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] DVB: drxd_hard: handle new bandwidths by returning -EINVAL
Andreas Oberritter [Fri, 20 May 2011 21:56:23 +0000 (18:56 -0300)]
[media] DVB: drxd_hard: handle new bandwidths by returning -EINVAL

drivers/media/dvb/frontends/drxd_hard.c: In function ‘DRX_Start’:
drivers/media/dvb/frontends/drxd_hard.c:2327: warning: enumeration value ‘BANDWIDTH_5_MHZ’ not handled in switch
drivers/media/dvb/frontends/drxd_hard.c:2327: warning: enumeration value ‘BANDWIDTH_10_MHZ’ not handled in switch
drivers/media/dvb/frontends/drxd_hard.c:2327: warning: enumeration value ‘BANDWIDTH_1_712_MHZ’ not handled in switch

[[email protected]: removed the status = status assignment after the switch]
Signed-off-by: Andreas Oberritter <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years ago[media] DVB: Add basic API support for DVB-T2 and bump minor version
Andreas Oberritter [Thu, 12 May 2011 21:11:06 +0000 (18:11 -0300)]
[media] DVB: Add basic API support for DVB-T2 and bump minor version

[[email protected]: Remove private definitions from cxd2820r that existed before API was defined]
Signed-off-by: Andreas Oberritter <[email protected]>
Signed-off-by: Steve Kerrison <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
13 years agoARM: 6915/1: SAMSUNG: Depend on IRQ_GENERIC_CHIP
Mark Brown [Thu, 19 May 2011 22:10:13 +0000 (23:10 +0100)]
ARM: 6915/1: SAMSUNG: Depend on IRQ_GENERIC_CHIP

The generic chip infrastructure has had a Kconfig symbol added so we need
to select that for the kernel to link now we're using the generic IRQ
chip infrastructure.

Signed-off-by: Mark Brown <[email protected]>
Signed-off-by: Russell King <[email protected]>
13 years agoARM: 6902/1: perf: Remove erroneous check on active_events
Mark Rutland [Tue, 17 May 2011 08:15:38 +0000 (09:15 +0100)]
ARM: 6902/1: perf: Remove erroneous check on active_events

When initialising a PMU, there is a check to protect against races with
other CPUs filling all of the available event slots. Since armpmu_add
checks that an event can be scheduled, we do not need to do this at
initialisation time. Furthermore the current code is broken because it
assumes that atomic_inc_not_zero will unconditionally increment
active_counts and then tries to decrement it again on failure.

This patch removes the broken, redundant code.

Signed-off-by: Mark Rutland <[email protected]>
Acked-by: Will Deacon <[email protected]>
Cc: Jamie Iles <[email protected]>
Signed-off-by: Russell King <[email protected]>
13 years agoARM: 6899/1: fix the note about dcache lazy flushing for SMP systems
saeed bishara [Mon, 16 May 2011 10:25:21 +0000 (11:25 +0100)]
ARM: 6899/1: fix the note about dcache lazy flushing for SMP systems

Acked-by: Catalin Marinas <[email protected]>
Signed-off-by: Saeed Bishara <[email protected]>
Signed-off-by: Russell King <[email protected]>
13 years agoARM: 6933/1: SPEAR6xx: Rename spear600_defconfig as spear6xx_defconfig
viresh kumar [Fri, 20 May 2011 07:34:27 +0000 (08:34 +0100)]
ARM: 6933/1: SPEAR6xx: Rename spear600_defconfig as spear6xx_defconfig

Reviewed-by: Stanley Miao <[email protected]>
Signed-off-by: Viresh Kumar <[email protected]>
Signed-off-by: Rajeev Kumar <[email protected]>
Signed-off-by: Russell King <[email protected]>
13 years agoARM: 6934/1: SPEAr6xx: Rework Kconfig for single image solution
viresh kumar [Fri, 20 May 2011 07:34:26 +0000 (08:34 +0100)]
ARM: 6934/1: SPEAr6xx: Rework Kconfig for single image solution

Reviewed-by: Stanley Miao <[email protected]>
Signed-off-by: Viresh Kumar <[email protected]>
Signed-off-by: Rajeev Kumar <[email protected]>
Signed-off-by: Russell King <[email protected]>
This page took 0.106156 seconds and 4 git commands to generate.