]> pilppa.org Git - linux-2.6-omap-h63xx.git/log
linux-2.6-omap-h63xx.git
17 years ago[IA64] pvops: documentation on ia64/pv_ops
Isaku Yamahata [Tue, 27 May 2008 22:16:47 +0000 (15:16 -0700)]
[IA64] pvops: documentation on ia64/pv_ops

Documentation on ia64/pv_ops which describes its strategy and implementation.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Cc: Gerald Pfeifer <gp@novell.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
17 years ago[IA64] pvops: add to hooks, pv_time_ops, for steal time accounting.
Isaku Yamahata [Mon, 19 May 2008 13:13:44 +0000 (22:13 +0900)]
[IA64] pvops: add to hooks, pv_time_ops, for steal time accounting.

Introduce pv_time_ops which adds hook to steal time accounting.
On virtualized environment, cpus are shared by many guests and
steal time is the time which is used for other guests.
On virtualized environtment, streal time should be accounted.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
17 years ago[IA64] pvops: add hooks, pv_irq_ops, to paravirtualized irq related operations.
Isaku Yamahata [Mon, 19 May 2008 13:13:43 +0000 (22:13 +0900)]
[IA64] pvops: add hooks, pv_irq_ops, to paravirtualized irq related operations.

introduce pv_irq_ops which adds hooks to paravirtualize irq related
operations.
On virtualized environment, interruption may be replaced by something
virtualization friendly. So the irq related operation also may need
paravirtualization.
This patch adds necessary hooks to paravirtualize irq related operations.

Signed-off-by: Yaozu (Eddie) Dong <eddie.dong@intel.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
17 years ago[IA64] pvops: add hooks, pv_iosapic_ops, to paravirtualize iosapic.
Isaku Yamahata [Mon, 19 May 2008 13:13:42 +0000 (22:13 +0900)]
[IA64] pvops: add hooks, pv_iosapic_ops, to paravirtualize iosapic.

add hooks to paravirtualize iosapic which is a real hardware resource.
On virtualized environment it may be replaced something virtualized
friendly.
Define pv_iosapic_ops and add the hooks.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
17 years ago[IA64] pvops: define initialization hooks, pv_init_ops, for paravirtualized environment.
Isaku Yamahata [Mon, 19 May 2008 13:13:41 +0000 (22:13 +0900)]
[IA64] pvops: define initialization hooks, pv_init_ops, for paravirtualized environment.

define pv_init_ops hooks which represents various initialization
hooks for paravirtualized environment. and add hooks.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
17 years ago[IA64] pvops: paravirtualize NR_IRQS
Isaku Yamahata [Mon, 19 May 2008 13:13:40 +0000 (22:13 +0900)]
[IA64] pvops: paravirtualize NR_IRQS

Make NR_IRQ overridable by each pv instances.
Pv instance may need each own number of irqs so that
NR_IRQS should be the maximum number of nr_irqs each
pv instances need.

Cc: Jes Sorensen <jes@sgi.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
17 years ago[IA64] pvops: paravirtualize entry.S
Isaku Yamahata [Tue, 27 May 2008 22:08:01 +0000 (15:08 -0700)]
[IA64] pvops: paravirtualize entry.S

paravirtualize ia64_swtich_to, ia64_leave_syscall and ia64_leave_kernel.
They include sensitive or performance critical privileged instructions
so that they need paravirtualization.
To paravirtualize them by single source and multi compile
they are converted into indirect jump. And define each pv instances.

Cc: Keith Owens <kaos@ocs.com.au>
Cc: "Dong, Eddie" <eddie.dong@intel.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
17 years ago[IA64] pvops: paravirtualize ivt.S
Isaku Yamahata [Mon, 19 May 2008 13:13:38 +0000 (22:13 +0900)]
[IA64] pvops: paravirtualize ivt.S

paravirtualize ivt.S which implements fault handler in hand written
assembly code.
They includes sensitive or performance critical privileged instructions.
So they need paravirtualization.

Cc: Keith Owens <kaos@ocs.com.au>
Cc: tgingold@free.fr
Cc: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Yaozu (Eddie) Dong <eddie.dong@intel.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
17 years ago[IA64] pvops: paravirtualize minstate.h.
Isaku Yamahata [Mon, 19 May 2008 13:13:37 +0000 (22:13 +0900)]
[IA64] pvops: paravirtualize minstate.h.

paravirtualize minstate.h which are hand written assembly code.
They include sensitive or performance critical privileged
instructions. So that they are appropriate for paravirtualization.

Cc: Keith Owens <kaos@ocs.com.au>
Cc: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Yaozu (Eddie) Dong <eddie.dong@intel.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
17 years ago[IA64] pvops: define paravirtualized instructions for native.
Isaku Yamahata [Mon, 19 May 2008 13:13:36 +0000 (22:13 +0900)]
[IA64] pvops: define paravirtualized instructions for native.

pv_cpu_asm_ops: define paravirtualized introduce for native execution
environment.

Cc: Keith Owens <kaos@ocs.com.au>
Signed-off-by: Yaozu (Eddie) Dong <eddie.dong@intel.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
17 years ago[IA64] pvops: preparation for paravirtulization of hand written assembly code.
Isaku Yamahata [Mon, 19 May 2008 13:13:35 +0000 (22:13 +0900)]
[IA64] pvops: preparation for paravirtulization of hand written assembly code.

Preparation for paravirtualization of hand written assembly code.
They are paravirtualized by single source code and compiled multi times.
To tell those files for target (including native), add one defines.

Cc: "Dong, Eddie" <eddie.dong@intel.com>
Cc: Keith Owens <kaos@ocs.com.au>
Cc: tgingold@free.fr
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
17 years ago[IA64] pvops: introduce pv_cpu_ops to paravirtualize privileged instructions.
Isaku Yamahata [Mon, 19 May 2008 13:13:34 +0000 (22:13 +0900)]
[IA64] pvops: introduce pv_cpu_ops to paravirtualize privileged instructions.

introduce pv_cpu_ops to paravirtualize privleged instructions
which are defined by ia64 intrinsics.
make them indirect C function calls by introducing function
tables, pv_cpu_ops.

Signed-off-by: Yaozu (Eddie) Dong <eddie.dong@intel.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
17 years ago[IA64] pvops: add an early setup hook for pv_ops.
Isaku Yamahata [Mon, 19 May 2008 13:13:33 +0000 (22:13 +0900)]
[IA64] pvops: add an early setup hook for pv_ops.

This patch adds a setup hook in the very early boot sequence
before start_kernel() to initialize paravirtualization stuff.
The hook will be set by each pv loader code or by using multi entry point.

Signed-off-by: Qing He <qing.he@intel.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
17 years ago[IA64] pvops: introduce pv_info which describes some random info.
Isaku Yamahata [Mon, 19 May 2008 13:13:32 +0000 (22:13 +0900)]
[IA64] pvops: introduce pv_info which describes some random info.

introduce pv_info which describes some randome info about
underlying execution environment.

Cc: Jes Sorensen <jes@sgi.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
17 years ago[IA64] pvops: preparation: introduce ia64_get_psr_i() to make kernel paravirtualizati...
Isaku Yamahata [Mon, 19 May 2008 13:13:31 +0000 (22:13 +0900)]
[IA64] pvops: preparation: introduce ia64_get_psr_i() to make kernel paravirtualization friendly.

__local_irq_save() and local_save_flags() are used to mask interruptions.
They read all psr bits that requres whole bit emulation.
On the other hand, reading only psr.i, the single bit, can be virtualized
cheaply.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
17 years ago[IA64] pvops: preparation: introduce ia64_set_rr0_to_rr4() to make kernel paravirtual...
Isaku Yamahata [Mon, 19 May 2008 13:13:30 +0000 (22:13 +0900)]
[IA64] pvops: preparation: introduce ia64_set_rr0_to_rr4() to make kernel paravirtualization friendly.

make kernel paravirtualization friendly by introducing
ia64_set_rr0_to_rr4().
ia64/Xen will replace setting rr[0-4] with single hypercall later.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
17 years ago[IA64] pvops: preparation: move the constants, LOAD_OFFSET, to a header file.
Isaku Yamahata [Mon, 19 May 2008 13:13:29 +0000 (22:13 +0900)]
[IA64] pvops: preparation: move the constants, LOAD_OFFSET, to a header file.

Move the LOAD_OFFSET definition from vmlinux.lds.S into system.h.
On paravirtualized environments, it is necessary to detect the
execution environment. One of the solutions is the multi entry point.
The multi entry point allows a boot loader to start the kernel execution
from the entry point which is different from the ELF entry point.
The non standard entry point will defined as the specialized elf note
which contains the LMA of the entry point symbol.
The constant, LOAD_OFFSET, is necessary to calculate the symbol's LMA.
Move the definition into the public header file to make it available
to the multi entry point support.

Cc: "He, Qing" <qing.he@intel.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
17 years ago[IA64] pvops: preparation: remove extern in irq_ia64.c
Isaku Yamahata [Mon, 19 May 2008 13:13:28 +0000 (22:13 +0900)]
[IA64] pvops: preparation: remove extern in irq_ia64.c

remove extern declaration of handle_IPI() in irq_ia64.c.
Instead, declare it in asm-ia64/smp.h.
Later handle_IPI() will be referenced from another file.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
17 years ago[POWERPC] pasemi: update pasemi_defconfig, enable electra_cf
Olof Johansson [Tue, 27 May 2008 21:11:13 +0000 (16:11 -0500)]
[POWERPC] pasemi: update pasemi_defconfig, enable electra_cf

Refresh pasemi_defconfig and enable ELECTRA_CF=y.

Signed-off-by: Olof Johansson <olof@lixom.net>
17 years agoelectra_cf: Add MODULE_DEVICE_TABLE()
Olof Johansson [Tue, 27 May 2008 21:07:26 +0000 (16:07 -0500)]
electra_cf: Add MODULE_DEVICE_TABLE()

Add a module device table to electra_cf so that modules can be
auto-probed/loaded.

Signed-off-by: Olof Johansson <olof@lixom.net>
17 years ago[WATCHDOG 17/57] it8712f: unlocked_ioctl
Alan Cox [Mon, 19 May 2008 13:06:19 +0000 (14:06 +0100)]
[WATCHDOG 17/57] it8712f: unlocked_ioctl

Review and switch to unlocked_ioctl

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
17 years ago[WATCHDOG 16/57] iop: watchdog switch to unlocked_ioctl
Alan Cox [Mon, 19 May 2008 13:06:14 +0000 (14:06 +0100)]
[WATCHDOG 16/57] iop: watchdog switch to unlocked_ioctl

Review and switch to unlocked_ioctl

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
17 years ago[IA64] Workaround for RSE issue
Tony Luck [Tue, 27 May 2008 20:23:16 +0000 (13:23 -0700)]
[IA64] Workaround for RSE issue

Problem: An application violating the architectural rules regarding
operation dependencies and having specific Register Stack Engine (RSE)
state at the time of the violation, may result in an illegal operation
fault and invalid RSE state.  Such faults may initiate a cascade of
repeated illegal operation faults within OS interruption handlers.
The specific behavior is OS dependent.

Implication: An application causing an illegal operation fault with
specific RSE state may result in a series of illegal operation faults
and an eventual OS stack overflow condition.

Workaround: OS interruption handlers that switch to kernel backing
store implement a check for invalid RSE state to avoid the series
of illegal operation faults.

The core of the workaround is the RSE_WORKAROUND code sequence
inserted into each invocation of the SAVE_MIN_WITH_COVER and
SAVE_MIN_WITH_COVER_R19 macros.  This sequence includes hard-coded
constants that depend on the number of stacked physical registers
being 96.  The rest of this patch consists of code to disable this
workaround should this not be the case (with the presumption that
if a future Itanium processor increases the number of registers, it
would also remove the need for this patch).

Move the start of the RBS up to a mod32 boundary to avoid some
corner cases.

The dispatch_illegal_op_fault code outgrew the spot it was
squatting in when built with this patch and CONFIG_VIRT_CPU_ACCOUNTING=y
Move it out to the end of the ivt.

Signed-off-by: Tony Luck <tony.luck@intel.com>
17 years ago[WATCHDOG 15/57] indydog: Clean up and tidy
Alan Cox [Mon, 19 May 2008 13:06:08 +0000 (14:06 +0100)]
[WATCHDOG 15/57] indydog: Clean up and tidy

Switch to unlocked_ioctl as well

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
17 years ago[WATCHDOG 14/57] ibmasr: coding style, locking verify
Alan Cox [Mon, 19 May 2008 13:06:03 +0000 (14:06 +0100)]
[WATCHDOG 14/57] ibmasr: coding style, locking verify

There is a new #if 0 section here which is a suggested fix for the horrible
PCI hack in the existing code. Would be good if someone with a box that uses
this device could test it.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
17 years agoMerge current mainline tree into linux-omap tree
Tony Lindgren [Tue, 27 May 2008 19:52:26 +0000 (12:52 -0700)]
Merge current mainline tree into linux-omap tree

Merge branches 'master' and 'linus'

Conflicts:

arch/arm/plat-omap/clock.c
include/asm-arm/arch-omap/clock.h

17 years agoLSM: remove stale web site from MAINTAINERS
Chris Wright [Mon, 19 May 2008 21:58:43 +0000 (14:58 -0700)]
LSM: remove stale web site from MAINTAINERS

Pointed out by Adrian Bunk.

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
17 years ago[WATCHDOG 13/57] i6300esb: Style, unlocked_ioctl, cleanup
Alan Cox [Mon, 19 May 2008 13:05:57 +0000 (14:05 +0100)]
[WATCHDOG 13/57] i6300esb: Style, unlocked_ioctl, cleanup

Review and switch to unlocked_ioctl

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
17 years ago[WATCHDOG 12/57] ib700wdt: clean up and switch to unlocked_ioctl
Alan Cox [Mon, 19 May 2008 13:05:52 +0000 (14:05 +0100)]
[WATCHDOG 12/57] ib700wdt: clean up and switch to unlocked_ioctl

Review and switch to unlocked_ioctl

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
17 years ago[WATCHDOG 11/57] hpwdt: couple of include cleanups
Alan Cox [Mon, 19 May 2008 13:05:46 +0000 (14:05 +0100)]
[WATCHDOG 11/57] hpwdt: couple of include cleanups

clean-up includes

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
17 years ago[SCSI] ibmvscsi: Non SCSI error status fixup
Brian King [Mon, 19 May 2008 15:27:56 +0000 (10:27 -0500)]
[SCSI] ibmvscsi: Non SCSI error status fixup

Some versions of the Virtual I/O Server on Power
return 0x99 in the non-SCSI error status field as success,
rather than 0. This fixes the ibmvscsi driver to treat this
response as success.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
17 years agox86: aperture_64.c: cleanups
Pavel Machek [Tue, 27 May 2008 16:03:56 +0000 (18:03 +0200)]
x86: aperture_64.c: cleanups

Some small cleanups for aperture_64.c; they should not really change
any code.

Signed-off-by: Pavel Machek <pavel@suse.cz>
Cc: Dave Jones <davej@codemonkey.org.uk>
Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years ago[SCSI] fusion mpt: fix target missing after resetting external raid
Michael Reed [Thu, 13 Mar 2008 19:53:56 +0000 (14:53 -0500)]
[SCSI] fusion mpt: fix target missing after resetting external raid

Following a hard reset of a SAS raid, one of the raid targets is occasionally
missing.  I tracked this down to a pretty obscure little bug.

The LSI fusion drivers for SAS and Fibre Channel both use their respective
transport layers.  Those transport layers increment the target number
assigned to new targets.

The routine __scsi_scan_target uses the "this_id" element of the Scsi_Host
structure to avoid scanning the scsi host adapter.  Both fusion drivers set
"this_id" from a value returned in a firmware PortFacts response.  For my
particular test case (SAS) the firmware id assigned to the initiator was
173.  After enough raid resets to cause the raid targets to go and come a
sufficient number of times, the id assigned by the transport to a raid
target would match the id assigned by the host adapter to the "this_id"
field, resulting in that target not being scanned.

Fix by not assigning this_id and not checking it in slave_configure.

Signed-off-by: Michael Reed <mdr@sgi.com>
Acked-by: "Moore, Eric" <Eric.Moore@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
17 years ago[WATCHDOG 10/57] eurotechwdt: unlocked_ioctl, code lock check and tidy
Alan Cox [Mon, 19 May 2008 13:05:41 +0000 (14:05 +0100)]
[WATCHDOG 10/57] eurotechwdt: unlocked_ioctl, code lock check and tidy

Review and switch to unlocked_ioctl

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
17 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/hskinnemoen/avr32-2.6
Linus Torvalds [Tue, 27 May 2008 15:27:20 +0000 (08:27 -0700)]
Merge git://git.kernel.org/pub/scm/linux/kernel/git/hskinnemoen/avr32-2.6

* git://git.kernel.org/pub/scm/linux/kernel/git/hskinnemoen/avr32-2.6:
  avr32: Fix cpufreq oops when ondemand governor is default
  avr32: Update defconfigs
  avr32: export strnlen_user
  avr32: export copy_page

17 years ago[WATCHDOG 09/57] ep93xx_wdt: unlocked_ioctl
Alan Cox [Mon, 19 May 2008 13:05:35 +0000 (14:05 +0100)]
[WATCHDOG 09/57] ep93xx_wdt: unlocked_ioctl

Review and switch to unlocked_ioctl

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
17 years ago[WATCHDOG 08/57] davinci_wdt: unlocked_ioctl and check locking
Alan Cox [Mon, 19 May 2008 13:05:30 +0000 (14:05 +0100)]
[WATCHDOG 08/57] davinci_wdt: unlocked_ioctl and check locking

Review and switch to unlocked_ioctl

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
17 years ago[WATCHDOG 07/57] cpu5_wdt: switch to unlocked_ioctl
Alan Cox [Mon, 19 May 2008 13:05:24 +0000 (14:05 +0100)]
[WATCHDOG 07/57] cpu5_wdt: switch to unlocked_ioctl

Review and switch to unlocked_ioctl

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
17 years ago[WATCHDOG 06/57] at91: watchdog to unlocked_ioctl
Alan Cox [Mon, 19 May 2008 13:05:19 +0000 (14:05 +0100)]
[WATCHDOG 06/57] at91: watchdog to unlocked_ioctl

Review and switch to unlocked_ioctl

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
17 years ago[WATCHDOG 05/57] atp watchdog
Alan Cox [Mon, 19 May 2008 13:05:13 +0000 (14:05 +0100)]
[WATCHDOG 05/57] atp watchdog

Switch to unlocked_ioctl

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
17 years ago[WATCHDOG 04/57] AR7 watchdog
Alan Cox [Mon, 19 May 2008 13:05:07 +0000 (14:05 +0100)]
[WATCHDOG 04/57] AR7 watchdog

Fix locking
Use unlocked_ioctl
Remove semaphores

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
17 years ago[WATCHDOG 03/57] ali: watchdog locking and style
Alan Cox [Mon, 19 May 2008 13:04:57 +0000 (14:04 +0100)]
[WATCHDOG 03/57] ali: watchdog locking and style

Clean up and check locking

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
17 years ago[WATCHDOG 02/57] clean up and check advantech watchdog
Alan Cox [Mon, 19 May 2008 13:04:51 +0000 (14:04 +0100)]
[WATCHDOG 02/57] clean up and check advantech watchdog

Clean up the advantech watchdog code and inspect for BKL problems

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
17 years ago[WATCHDOG 01/57] Clean acquirewdt and check for BKL dependancies
Alan Cox [Mon, 19 May 2008 13:04:46 +0000 (14:04 +0100)]
[WATCHDOG 01/57] Clean acquirewdt and check for BKL dependancies

This brings the file into line with coding style.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
17 years agock804rom: fix driver_data in probe table.
David Woodhouse [Tue, 27 May 2008 05:31:43 +0000 (06:31 +0100)]
ck804rom: fix driver_data in probe table.

There's a reason why using C99 initialisers even in the supposedly
trivial structs is a good idea.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years ago[ALSA] hda - Fix EAPD and COEF setups for realtek codecs
Kailang Yang [Tue, 27 May 2008 10:32:25 +0000 (12:32 +0200)]
[ALSA] hda - Fix EAPD and COEF setups for realtek codecs

Fixed EAPD and COEF setups for Realtek ALC662/663, 660-VD and 888 codecs.

Signed-off-by: Kailang Yang <kailang@realtek.com.tw>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] hda - show correct codec chip in PCM stream names
Kailang Yang [Tue, 27 May 2008 10:14:47 +0000 (12:14 +0200)]
[ALSA] hda - show correct codec chip in PCM stream names

Show more exact codec chip name in the PCM stream name strings.

Signed-off-by: Kailang Yang <kailang@realtek.com.tw>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] hda - Fix vref pincap check in alc882 auto-detection
Kailang Yang [Tue, 27 May 2008 10:10:25 +0000 (12:10 +0200)]
[ALSA] hda - Fix vref pincap check in alc882 auto-detection

Signed-off-by: Kailang Yang <kailang@realtek.com.tw>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] hda - Add ALC663 support
Kailang Yang [Tue, 27 May 2008 10:05:31 +0000 (12:05 +0200)]
[ALSA] hda - Add ALC663 support

Added the support of ALC663 codec, including specific models for
ASUS M51VA, ASUS G71V, ASUS H13 and ASUS G50V.

Signed-off-by: Kailang Yang <kailang@realtek.com.tw>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] hda - Add ICH9 controller support (8086:2911)
Kailang Yang [Tue, 27 May 2008 09:48:01 +0000 (11:48 +0200)]
[ALSA] hda - Add ICH9 controller support (8086:2911)

Added the missing PCI ID for ICH9 controller (8086:2911)

Signed-off-by: Kailang Yang <kailang@realtek.com.tw>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] hda - Add support of Teradici controller
Kailang Yang [Tue, 27 May 2008 09:44:55 +0000 (11:44 +0200)]
[ALSA] hda - Add support of Teradici controller

Add the new PCI ID 0x6549 0x1200 Teradici controller.

Signed-off-by: Kailang Yang <kailang@realtek.com.tw>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] Add EM-X270 ASoC driver
Mike Rapoport [Mon, 26 May 2008 09:59:16 +0000 (12:59 +0300)]
[ALSA] Add EM-X270 ASoC driver

This patch adds ASoC support for EM-X270 machine.

Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] Replace CONFIG_SND_DEBUG_DETECT with CONFIG_SND_DEBUG_VERBOSE
Takashi Iwai [Tue, 20 May 2008 10:15:15 +0000 (12:15 +0200)]
[ALSA] Replace CONFIG_SND_DEBUG_DETECT with CONFIG_SND_DEBUG_VERBOSE

Replace CONFIG_SND_DEBUG_DETECT with CONFIG_SND_DEBUG_VERBOSE to
represent its meaning more better.  This config isn't provided only
for the detection but for more verbose debug prints in general.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] Fix AC97 kconfig items
Takashi Iwai [Fri, 23 May 2008 14:11:26 +0000 (16:11 +0200)]
[ALSA] Fix AC97 kconfig items

The kconfig items related with AC97-powersave must be outside the
CONFIG_SND_PCI range.  And it'd be better together with CONFIG_SND_AC97.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years agosound: Convert to menuconfig
Takashi Iwai [Fri, 23 May 2008 14:10:37 +0000 (16:10 +0200)]
sound: Convert to menuconfig

Convert menu in sound Kconfig files to menuconfig and if.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years agosound: sound/oss/: remove CVS keywords
Adrian Bunk [Mon, 19 May 2008 21:59:35 +0000 (00:59 +0300)]
sound: sound/oss/: remove CVS keywords

This patch removes CVS keywords that weren't updated for a long time
from comments.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] remove CVS keywords
Adrian Bunk [Mon, 19 May 2008 22:06:55 +0000 (01:06 +0300)]
[ALSA] remove CVS keywords

This patch removes CVS keywords that weren't updated for a long time
from comments.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] usb-audio - Support for Roland SonicCell sound module
Chris Mennie [Mon, 19 May 2008 14:21:33 +0000 (16:21 +0200)]
[ALSA] usb-audio - Support for Roland SonicCell sound module

Added entry into usbquirks.h to recognize Roland SonicCell sound module by
mostly duplicating the entry for the Roland SH-201. USB MIDI works just fine,
though the USB audio is a little unreliable (but still works well enough).

Signed-off-by: Chris Mennie <camennie@alumni.uwaterloo.ca>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years agodccp ccid-3: Fix "t_ipi explosion" bug
Gerrit Renker [Tue, 27 May 2008 13:33:54 +0000 (06:33 -0700)]
dccp ccid-3: Fix "t_ipi explosion" bug

The identification of this bug is thanks to Cheng Wei and Tomasz
Grobelny.

To avoid divide-by-zero, the implementation previously ignored RTTs
smaller than 4 microseconds when performing integer division RTT/4.

When the RTT reached a value less than 4 microseconds (as observed on
loopback), this prevented the Window Counter CCVal value from
advancing. As a result, the receiver stopped sending feedback. This in
turn caused non-ending expiries of the nofeedback timer at the sender,
so that the sending rate was progressively reduced until reaching the
minimum of one packet per 64 seconds.

The patch fixes this bug by handling integer division more
intelligently. Due to consistent use of dccp_sample_rtt(),
divide-by-zero-RTT is avoided.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agodccp: Fix to handle short sequence numbers packet correctly
Wei Yongjun [Tue, 27 May 2008 13:22:38 +0000 (06:22 -0700)]
dccp: Fix to handle short sequence numbers packet correctly

RFC4340 said:
  8.5.  Pseudocode
       ...
       If P.type is not Data, Ack, or DataAck and P.X == 0 (the packet
             has short sequence numbers), drop packet and return

But DCCP has some mistake to handle short sequence numbers packet, now
it drop packet only if P.type is Data, Ack, or DataAck and P.X == 0.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Acked-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agox86: extend e820 ealy_res support 32bit - fix #2
Yinghai Lu [Sun, 25 May 2008 17:00:09 +0000 (10:00 -0700)]
x86: extend e820 ealy_res support 32bit - fix #2

remove extra -1 in reseve_early calling
    panic if can not find space for new RAMDISK

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen: maintain clock offset over save/restore
Jeremy Fitzhardinge [Mon, 26 May 2008 22:31:28 +0000 (23:31 +0100)]
xen: maintain clock offset over save/restore

Hook into the device model to make sure that timekeeping's resume handler
is called.  This deals with our clocksource's non-monotonicity over the
save/restore.  Explicitly call clock_has_changed() to make sure that
all the timers get retriggered properly.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen: implement save/restore
Jeremy Fitzhardinge [Mon, 26 May 2008 22:31:27 +0000 (23:31 +0100)]
xen: implement save/restore

This patch implements Xen save/restore and migration.

Saving is triggered via xenbus, which is polled in
drivers/xen/manage.c.  When a suspend request comes in, the kernel
prepares itself for saving by:

1 - Freeze all processes.  This is primarily to prevent any
    partially-completed pagetable updates from confusing the suspend
    process.  If CONFIG_PREEMPT isn't defined, then this isn't necessary.

2 - Suspend xenbus and other devices

3 - Stop_machine, to make sure all the other vcpus are quiescent.  The
    Xen tools require the domain to run its save off vcpu0.

4 - Within the stop_machine state, it pins any unpinned pgds (under
    construction or destruction), performs canonicalizes various other
    pieces of state (mostly converting mfns to pfns), and finally

5 - Suspend the domain

Restore reverses the steps used to save the domain, ending when all
the frozen processes are thawed.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxenbus: rebind irq on restore
Jeremy Fitzhardinge [Mon, 26 May 2008 22:31:26 +0000 (23:31 +0100)]
xenbus: rebind irq on restore

When restoring, rebind the existing xenbus irq to the new xenbus event
channel.  (It turns out in practice that this is always the same, and
is never updated on restore.  That's a bug, but Xeno-linux has been
like this for a long time, so it can't really be fixed.)

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen-console: add save/restore
Jeremy Fitzhardinge [Mon, 26 May 2008 22:31:25 +0000 (23:31 +0100)]
xen-console: add save/restore

Add code to:

 1. Deal with the console page being canonicalized.  During save, the
    console's mfn in the start_info structure is canonicalized to a pfn.
    In order to deal with that, we always use a copy of the pfn and
    indirect off that all the time.  However, we fall back to using the
    mfn if the pfn hasn't been initialized yet.

 2. Restore the console event channel, and rebind it to the existing irq.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen: fix unbind_from_irq()
Jeremy Fitzhardinge [Mon, 26 May 2008 22:31:24 +0000 (23:31 +0100)]
xen: fix unbind_from_irq()

Rearrange the tests in unbind_from_irq() so that we can still unbind
an irq even if the underlying event channel is bad.  This allows a
device driver to shuffle its irqs on save/restore before the
underlying event channels have been fixed up.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen: add rebind_evtchn_irq
Jeremy Fitzhardinge [Mon, 26 May 2008 22:31:23 +0000 (23:31 +0100)]
xen: add rebind_evtchn_irq

Add rebind_evtchn_irq(), which will rebind an device driver's existing
irq to a new event channel on restore.  Since the new event channel
will be masked and bound to vcpu0, we update the state accordingly and
unmask the irq once everything is set up.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen: add p2m mfn_list_list
Jeremy Fitzhardinge [Mon, 26 May 2008 22:31:22 +0000 (23:31 +0100)]
xen: add p2m mfn_list_list

When saving a domain, the Xen tools need to remap all our mfns to
portable pfns.  In order to remap our p2m table, it needs to know
where all its pages are, so maintain the references to the p2m table
for it to use.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen: make dummy_shared_info non-static
Jeremy Fitzhardinge [Mon, 26 May 2008 22:31:21 +0000 (23:31 +0100)]
xen: make dummy_shared_info non-static

Rename dummy_shared_info to xen_dummy_shared_info and make it
non-static, in anticipation of users outside of enlighten.c

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen: efficiently support a holey p2m table
Jeremy Fitzhardinge [Mon, 26 May 2008 22:31:20 +0000 (23:31 +0100)]
xen: efficiently support a holey p2m table

When using sparsemem and memory hotplug, the kernel's pseudo-physical
address space can be discontigious.  Previously this was dealt with by
having the upper parts of the radix tree stubbed off.  Unfortunately,
this is incompatible with save/restore, which requires a complete p2m
table.

The solution is to have a special distinguished all-invalid p2m leaf
page, which we can point all the hole areas at.  This allows the tools
to see a complete p2m table, but it only costs a page for all memory
holes.

It also simplifies the code since it removes a few special cases.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen: add configurable max domain size
Jeremy Fitzhardinge [Mon, 26 May 2008 22:31:19 +0000 (23:31 +0100)]
xen: add configurable max domain size

Add a config option to set the max size of a Xen domain.  This is used
to scale the size of the physical-to-machine array; it ends up using
around 1 page/GByte, so there's no reason to be very restrictive.

For a 32-bit guest, the default value of 8GB is probably sufficient;
there's not much point in giving a 32-bit machine much more memory
than that.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen: make phys_to_machine structure dynamic
Jeremy Fitzhardinge [Mon, 26 May 2008 22:31:18 +0000 (23:31 +0100)]
xen: make phys_to_machine structure dynamic

We now support the use of memory hotplug, so the physical to machine
page mapping structure must be dynamic.  This is implemented as a
two-level radix tree structure, which allows us to efficiently
incrementally allocate memory for the p2m table as new pages are
added.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen: drivers/xen/balloon.c: make a function static
Adrian Bunk [Mon, 26 May 2008 22:31:17 +0000 (23:31 +0100)]
xen: drivers/xen/balloon.c: make a function static

Make the needlessly global balloon_set_new_target() static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen: count resched interrupts properly
Jeremy Fitzhardinge [Mon, 26 May 2008 22:31:16 +0000 (23:31 +0100)]
xen: count resched interrupts properly

Make sure resched interrupts appear in /proc/interrupts in the proper
place.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen: add missing definitions in include/xen/interface/memory.h which ia64/xen needs
Isaku Yamahata [Mon, 26 May 2008 22:31:15 +0000 (23:31 +0100)]
xen: add missing definitions in include/xen/interface/memory.h which ia64/xen needs

Add xen handles realted definitions for xen memory which ia64/xen needs.
Pointer argumsnts for ia64/xen hypercall are passed in pseudo physical
address (guest physical address) so that it is required to convert
guest kernel virtual address into pseudo physical address.
The xen guest handle represents such arguments.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen: compilation fix to balloon driver for ia64 support
Isaku Yamahata [Mon, 26 May 2008 22:31:14 +0000 (23:31 +0100)]
xen: compilation fix to balloon driver for ia64 support

fix compilation error of ballon driver on ia64.
extent_start member is pointer argument. On x86 pointer argument for
xen hypercall is passed as virtual address.
On the other hand, ia64 and ppc, pointer argument is passed in pseudo
physical address. (guest physicall address.)
So they must be passed as handle and convert right before issuing hypercall.

  CC      drivers/xen/balloon.o
linux-2.6-x86/drivers/xen/balloon.c: In function 'increase_reservation':
linux-2.6-x86/drivers/xen/balloon.c:228: error: incompatible types in assignment
linux-2.6-x86/drivers/xen/balloon.c: In function 'decrease_reservation':
linux-2.6-x86/drivers/xen/balloon.c:324: error: incompatible types in assignment
linux-2.6-x86/drivers/xen/balloon.c: In function 'dealloc_pte_fn':
linux-2.6-x86/drivers/xen/balloon.c:486: error: incompatible types in assignment
linux-2.6-x86/drivers/xen/balloon.c: In function 'alloc_empty_pages_and_pagevec':
linux-2.6-x86/drivers/xen/balloon.c:522: error: incompatible types in assignment
make[2]: *** [drivers/xen/balloon.o] Error 1

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen: Move manage.c to drivers/xen for ia64/xen support
Isaku Yamahata [Mon, 26 May 2008 22:31:13 +0000 (23:31 +0100)]
xen: Move manage.c to drivers/xen for ia64/xen support

move arch/x86/xen/manage.c under drivers/xen/to share codes
with x86 and ia64.
ia64/xen also uses manage.c

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen: make earlyprintk=xen work again
Jeremy Fitzhardinge [Mon, 26 May 2008 22:31:12 +0000 (23:31 +0100)]
xen: make earlyprintk=xen work again

For some perverse reason, if you call add_preferred_console() it prevents
setup_early_printk() from successfully enabling the boot console -
unless you make it a preferred console too...

Also, make xenboot console output distinct from normal console output,
since it gets repeated when the console handover happens, and the
duplicated output is confusing without disambiguation.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Markus Armbruster <armbru@redhat.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
17 years agoxen pvfb: Dynamic mode support (screen resizing)
Markus Armbruster [Mon, 26 May 2008 22:31:11 +0000 (23:31 +0100)]
xen pvfb: Dynamic mode support (screen resizing)

The pvfb backend indicates dynamic mode support by creating node
feature_resize with a non-zero value in its xenstore directory.
xen-fbfront sends a resize notification event on mode change.  Fully
backwards compatible both ways.

Framebuffer size and initial resolution can be controlled through
kernel parameter xen_fbfront.video.  The backend enforces a separate
size limit, which it advertises in node videoram in its xenstore
directory.

xen-kbdfront gets the maximum screen resolution from nodes width and
height in the backend's xenstore directory instead of hardcoding it.

Additional goodie: support for larger framebuffers (512M on a 64-bit
system with 4K pages).

Changing the number of bits per pixels dynamically is not supported,
yet.

Ported from
http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/92f7b3144f41
http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/bfc040135633

Signed-off-by: Pat Campbell <plc@novell.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen pvfb: Zero unused bytes in events sent to backend
Markus Armbruster [Mon, 26 May 2008 22:31:10 +0000 (23:31 +0100)]
xen pvfb: Zero unused bytes in events sent to backend

This isn't a security flaw (the backend can see all our memory
anyway).  But it's the right thing to do all the same.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen pvfb: Module aliases to support module autoloading
Markus Armbruster [Mon, 26 May 2008 22:31:09 +0000 (23:31 +0100)]
xen pvfb: Module aliases to support module autoloading

These are mostly for completeness and consistency with the other
frontends, as PVFB is typically compiled in rather than a module.

Derived from
http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/5e294e29a43e

While there, add module descriptions.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen pvfb: Pointer z-axis (mouse wheel) support
Markus Armbruster [Mon, 26 May 2008 22:31:08 +0000 (23:31 +0100)]
xen pvfb: Pointer z-axis (mouse wheel) support

Add z-axis motion to pointer events.  Backward compatible, because
there's space for the z-axis in union xenkbd_in_event, and old
backends zero it.

Derived from
http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/57dfe0098000
http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/1edfea26a2a9
http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/c3ff0b26f664

Signed-off-by: Pat Campbell <plc@novell.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen: Enable console tty by default in domU if it's not a dummy
Markus Armbruster [Mon, 26 May 2008 22:31:07 +0000 (23:31 +0100)]
xen: Enable console tty by default in domU if it's not a dummy

Without console= arguments on the kernel command line, the first
console to register becomes enabled and the preferred console (the one
behind /dev/console).  This is normally tty (assuming
CONFIG_VT_CONSOLE is enabled, which it commonly is).

This is okay as long tty is a useful console.  But unless we have the
PV framebuffer, and it is enabled for this domain, tty0 in domU is
merely a dummy.  In that case, we want the preferred console to be the
Xen console hvc0, and we want it without having to fiddle with the
kernel command line.  Commit b8c2d3dfbc117dff26058fbac316b8acfc2cb5f7
did that for us.

Since we now have the PV framebuffer, we want to enable and prefer tty
again, but only when PVFB is enabled.  But even then we still want to
enable the Xen console as well.

Problem: when tty registers, we can't yet know whether the PVFB is
enabled.  By the time we can know (xenstore is up), the console setup
game is over.

Solution: enable console tty by default, but keep hvc as the preferred
console.  Change the preferred console to tty when PVFB probes
successfully, unless we've been given console kernel parameters.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agox86/paravirt: add pte_flags to just get pte flags
Jeremy Fitzhardinge [Mon, 26 May 2008 22:31:06 +0000 (23:31 +0100)]
x86/paravirt: add pte_flags to just get pte flags

Add pte_flags() to extract the flags from a pte.  This is a special
case of pte_val() which is only guaranteed to return the pte's flags
correctly; the page number may be corrupted or missing.

The intent is to allow paravirt implementations to return pte flags
without having to do any translation of the page number (most notably,
Xen).

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen: don't worry about preempt during xen_irq_enable()
Jeremy Fitzhardinge [Mon, 26 May 2008 22:31:05 +0000 (23:31 +0100)]
xen: don't worry about preempt during xen_irq_enable()

When enabling interrupts, we don't need to worry about preemption,
because we either enter with interrupts disabled - so no preemption -
or the caller is confused and is re-enabling interrupts on some
indeterminate processor.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen: allow some cr4 updates
Jeremy Fitzhardinge [Mon, 26 May 2008 22:31:04 +0000 (23:31 +0100)]
xen: allow some cr4 updates

The guest can legitimately change things like cr4.OSFXSR and
OSXMMEXCPT, so let it.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen: use new sched_op
Jeremy Fitzhardinge [Mon, 26 May 2008 22:31:02 +0000 (23:31 +0100)]
xen: use new sched_op

Use the new sched_op hypercall, mainly because xenner doesn't support
the old one.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen: use hypercall rather than clts
Jeremy Fitzhardinge [Mon, 26 May 2008 22:31:01 +0000 (23:31 +0100)]
xen: use hypercall rather than clts

Xen will trap and emulate clts, but its better to use a hypercall.
Also, xenner doesn't handle clts.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen: make early console also write to debug console
Jeremy Fitzhardinge [Mon, 26 May 2008 22:31:00 +0000 (23:31 +0100)]
xen: make early console also write to debug console

When using "earlyprintk=xen", also write the console output to the raw
debug console.  This will appear on dom0's console if the hypervisor
has been compiled to allow it.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoxen: add raw console write functions for debug
Jeremy Fitzhardinge [Mon, 26 May 2008 22:30:59 +0000 (23:30 +0100)]
xen: add raw console write functions for debug

Add a couple of functions which can write directly to the Xen console
for debugging.  This output ends up on the host's dom0 console
(assuming it allows the domain to write there).

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agox86: use symbolic constant in stts()
Jeremy Fitzhardinge [Mon, 26 May 2008 22:31:03 +0000 (23:31 +0100)]
x86: use symbolic constant in stts()

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agox86: use pteval_t for _PAGE_FOO
Jeremy Fitzhardinge [Mon, 26 May 2008 22:30:58 +0000 (23:30 +0100)]
x86: use pteval_t for _PAGE_FOO

Rather than making _PAGE_* constants signed, and then relying on
sign-extension to make sure that masks derived from them are wide
enough, just explicitly type them pteval_t.  This guarantees that they
and any derived values are the right size for the current pte format.

The reliance on sign extension is fragile, and invokes some very
subtle corners of the C type system.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 years agoavr32: Fix cpufreq oops when ondemand governor is default
Haavard Skinnemoen [Tue, 27 May 2008 07:37:42 +0000 (09:37 +0200)]
avr32: Fix cpufreq oops when ondemand governor is default

Move the AP7 cpufreq init to late_initcall() so that we don't try to
bring up cpufreq until the governor is ready. x86 also uses
late_initcall() for this.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
17 years agoInput: apanel - remove duplicate include
Huang Weiyi [Tue, 27 May 2008 05:38:45 +0000 (01:38 -0400)]
Input: apanel - remove duplicate include

Remove duplicate include file <linux/module.h>.

Signed-off-by: Huang Weiyi <weiyi.huang@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
17 years agoInput: wm9713 - support five wire panels
Mark Brown [Tue, 27 May 2008 05:37:26 +0000 (01:37 -0400)]
Input: wm9713 - support five wire panels

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
17 years agoInput: wm97xx-core - fix race on PHY init
Mark Brown [Tue, 27 May 2008 05:37:19 +0000 (01:37 -0400)]
Input: wm97xx-core - fix race on PHY init

The chip phy_init() function must be called before the dig_enable() function
but dig_enable() is called when the device is opened and we only call
phy_init() after having reigstered the device, meaning the two can race.
Fix this by doing the phy_init() before we register the input device.

Thanks to Rodolfo Giometti <giometti@enneenne.com> for the report.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
17 years agoInput: wm97xx-core - fix driver name
Mark Brown [Tue, 27 May 2008 05:37:08 +0000 (01:37 -0400)]
Input: wm97xx-core - fix driver name

Fix driver name - thanks to Guennadi Liakhovetski <g.liakhovetski@gmx.de> for
reporting this.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
17 years agoInput: wm97xx-core - report a phys for WM97xx touchscreens
Mark Brown [Tue, 27 May 2008 05:36:47 +0000 (01:36 -0400)]
Input: wm97xx-core - report a phys for WM97xx touchscreens

phys is displayed in diagnostic output like that from evbug so ensure
that it is set to something.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
17 years agoInput: i8042 - make sure Dritek quirk is invoked at resume
Bruno Prémont [Tue, 27 May 2008 05:36:04 +0000 (01:36 -0400)]
Input: i8042 - make sure Dritek quirk is invoked at resume

Also do not fail i8042 entire initialization if enabling dritek extension
fails.

Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
17 years agoMAINTAINERS: Update NetEffect (iw_nes) entry
Chien Tung [Mon, 26 May 2008 22:23:32 +0000 (15:23 -0700)]
MAINTAINERS: Update NetEffect (iw_nes) entry

Add Chien and remove Nishi from maintainers list for NetEffect.

Signed-off-by: Chien Tung <ctung@neteffect.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>