]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/log
linux-2.6-omap-h63xx.git
17 years agoV4L/DVB (10216): saa7127: fix broken S-Video with saa7129
Martin Dauskardt [Sat, 10 Jan 2009 13:16:16 +0000 (10:16 -0300)]
V4L/DVB (10216): saa7127: fix broken S-Video with saa7129

Register 0x2d has to be set differently in the saa7129 compared to the
saa7127. This was not done correctly, so S-Video was broken in certain
circumstances.

This fixes a regression introduced in 2.6.28.

Signed-off-by: Martin Dauskardt <martin.dauskardt@gmx.de>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (10214): Fix 'stb0899_get_srate' defined but not used warning
Hans Verkuil [Sat, 10 Jan 2009 11:31:15 +0000 (08:31 -0300)]
V4L/DVB (10214): Fix 'stb0899_get_srate' defined but not used warning

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (10212): Convert to be a pci driver
Trent Piepho [Sun, 11 Jan 2009 15:02:54 +0000 (12:02 -0300)]
V4L/DVB (10212): Convert to be a pci driver

This is a really old and crufty driver that wasn't using the long
established pci driver framework.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Acked-by: Jean Delvare <khali@linux-fr.org>
[mchehab@redhat.com: Cleaned up a few CodingStyle issues]
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (10210): Fix a bug on v4lgrab.c
Simon Harrison [Fri, 9 Jan 2009 12:07:07 +0000 (09:07 -0300)]
V4L/DVB (10210): Fix a bug on v4lgrab.c

v4lgrab  breaks the fputc macro on some systems, because of #defined
FILE.

Also, I also added comments because it was not at all clear that to get gspca
cameras to work with this application you need v4l1compat.

Signed-off-by: Simon Harrison <si1356@yahoo.co.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (10209): tveeprom: Properly initialize tuner type (BZ#11367)
Mauro Carvalho Chehab [Fri, 9 Jan 2009 11:38:47 +0000 (08:38 -0300)]
V4L/DVB (10209): tveeprom: Properly initialize tuner type (BZ#11367)

If Hauppauge eeprom is corrupted, the driver returns tuner = 0, instead
of TUNER_ABSENT.

This makes the drivers to initialize tuner, instead of handling the
manual parameter.

Since the tuner core rejects that a tuner to have their type changed,
this breaks the manual tuner override.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (10208): zoran: Re-adds udev entry removed by changeset 60b4bde4
Mauro Carvalho Chehab [Fri, 9 Jan 2009 02:27:32 +0000 (23:27 -0300)]
V4L/DVB (10208): zoran: Re-adds udev entry removed by changeset 60b4bde4

Changeset 60b4bde48b36c0315ef41fd38c339b9c7e68c46f removed an unused
struct on zoran driver, when compiled with "Y".

However, as pointed by Jean Delvare <khali@linux-fr.org>, this is
neeeded when the driver is compiled as a module, since udev relies on it
to auto-load the module.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9054): implement proper locking in the dvb ca en50221 driver
Matthias Dahl [Fri, 26 Sep 2008 09:29:03 +0000 (06:29 -0300)]
V4L/DVB (9054): implement proper locking in the dvb ca en50221 driver

Concurrent access to a single DVB CA 50221 interface slot is generally
discouraged. The underlying drivers (budget-av, budget-ci) do not implement
proper locking and thus two transactions could (and do) interfere with on
another.

This fixes the following problems seen by others and myself:

 - sudden i/o errors when writing to the ci device which usually would
   result in an undefined state of the hw and require a software restart

 - errors about the CAM trying to send a buffer larger than the agreed size
   usually also resulting in an undefined state of the hw

Due the to design of the DVB CA 50221 driver, implementing the locks in the
underlying drivers would not be enough and still leave some race conditions,
even though they were harder to trigger.

Signed-off-by: Matthias Dahl <devel@mortal-soul.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (10202): [PATCH] v4l/tvp514x: Don't write after line end
Sebastian Andrzej Siewior [Thu, 8 Jan 2009 15:49:17 +0000 (12:49 -0300)]
V4L/DVB (10202): [PATCH] v4l/tvp514x: Don't write after line end

to avoid:
| tvp514x 0-005c: No platform data
| !!<3>tvp514x 0-005d: No platform data

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (10201): Fixes cx88 compilation bug
Mauro Carvalho Chehab [Thu, 8 Jan 2009 20:13:53 +0000 (17:13 -0300)]
V4L/DVB (10201): Fixes cx88 compilation bug

Randy Dunlap <randy.dunlap@oracle.com> wrote:

> linux-next-20090108/drivers/media/video/cx88/cx88-i2c.c: In function 'cx88_call_i2c_clients':
> linux-next-20090108/drivers/media/video/cx88/cx88-i2c.c:122: error: 'struct cx88_core' has no member named 'gate_ctrl'
> linux-next-20090108/drivers/media/video/cx88/cx88-i2c.c:123: error: 'struct cx88_core' has no member named 'gate_ctrl'
> linux-next-20090108/drivers/media/video/cx88/cx88-i2c.c:127: error: 'struct cx88_core' has no member named 'gate_ctrl'
> linux-next-20090108/drivers/media/video/cx88/cx88-i2c.c:128: error: 'struct cx88_core' has no member named 'gate_ctrl'

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (10199): uvcvideo: Fix GET_DEF failure detection.
Laurent Pinchart [Sat, 3 Jan 2009 23:08:26 +0000 (20:08 -0300)]
V4L/DVB (10199): uvcvideo: Fix GET_DEF failure detection.

Commit 44f0079ec74330b457d990072c13cbe28b0f1abf erroneously considers all
GET_DEF requests as unsuccessful. Fix this by checking the request return
value.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (10198): uvcvideo: Print the UVC version number in binary-coded decimal.
Laurent Pinchart [Sat, 3 Jan 2009 22:24:38 +0000 (19:24 -0300)]
V4L/DVB (10198): uvcvideo: Print the UVC version number in binary-coded decimal.

The UVC specification release number is a binary-coded decimal number, print
it as such.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (10197): uvcvideo: Whitespace and comments cleanup, copyright updates.
Laurent Pinchart [Sat, 3 Jan 2009 22:12:40 +0000 (19:12 -0300)]
V4L/DVB (10197): uvcvideo: Whitespace and comments cleanup, copyright updates.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (10195): [PATCH] add Terratec Cinergy T Express to dibcom driver
Yusuf Altin [Thu, 8 Jan 2009 10:58:45 +0000 (07:58 -0300)]
V4L/DVB (10195): [PATCH] add Terratec Cinergy T Express to dibcom driver

This patch introduces support for dvb-t for the following dibcom based card:
Terratec Cinergy T Express (USB-ID: 0ccd:0062)

Signed-off-by: Yusuf Altin <yusuf.altin@t-online.de>
Signed-off-by: Albert Comerma <albert.comerma@gmail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (10193): removed unused #include <version.h>'s
Huang Weiyi [Wed, 7 Jan 2009 01:40:56 +0000 (22:40 -0300)]
V4L/DVB (10193): removed unused #include <version.h>'s

Removed unused #include <version.h>'s in files below,
  drivers/media/video/cs5345.c
  drivers/media/video/pwc/pwc-if.c
  drivers/media/video/saa717x.c
  drivers/media/video/upd64031a.c
  drivers/media/video/upd64083.c
  drivers/media/video/uvc/uvc_ctrl.c
  drivers/media/video/uvc/uvc_driver.c
  drivers/media/video/uvc/uvc_queue.c
  drivers/media/video/uvc/uvc_video.c
  drivers/media/video/uvc/uvc_status.c

Signed-off-by: Huang Weiyi <weiyi.huang@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (10192): em28xx: fix input selection
Mauro Carvalho Chehab [Thu, 8 Jan 2009 01:49:25 +0000 (22:49 -0300)]
V4L/DVB (10192): em28xx: fix input selection

em28xx were trying to access the third input entry, even for boards that
don't support it.

This patch reviews the input mux selection fixing this bug and a few
other troubles, like not validating the input on one userspace ioctl.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoHID: document difference between hid_blacklist and hid_ignore_list
Jiri Kosina [Wed, 28 Jan 2009 22:06:37 +0000 (23:06 +0100)]
HID: document difference between hid_blacklist and hid_ignore_list

Many people get it wrong and add device IDs into hid_blacklist instead
of hid_ignore_list. Let's put a little comment in place.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agoHID: add antec-branded soundgraph imon devices to blacklist
Jarod Wilson [Wed, 28 Jan 2009 20:22:35 +0000 (21:22 +0100)]
HID: add antec-branded soundgraph imon devices to blacklist

hid_ignore_list additions for the Antec-branded SoundGraph iMon VFD and LCD
devices (0x15c2:0x0044 and 0x0045).

These devices are driven by lirc.

Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agoHID: fix reversed logic in disconnect testing of hiddev
Oliver Neukum [Wed, 28 Jan 2009 08:36:18 +0000 (09:36 +0100)]
HID: fix reversed logic in disconnect testing of hiddev

The logic for testing for disconnection is reversed in an ioctl leading
to false reports of disconnection.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Tested-by: Folkert van Heusden <folkert@vanheusden.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agoHID: adjust report descriptor fixup for MS 1028 receiver
Jiri Kosina [Wed, 14 Jan 2009 02:03:21 +0000 (03:03 +0100)]
HID: adjust report descriptor fixup for MS 1028 receiver

Report descriptor fixup for MS 1028 receiver changes also values for
Keyboard and Consumer, which incorrectly trims the range, causing correct
events being thrown away before passing to userspace.

We need to keep the GenDesk usage fixup though, as it reports totally bogus
values about axis.

Reported-by: Lucas Gadani <lgadani@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agosh: Don't enable GENERIC_TIME for the CMT clockevent driver yet.
Paul Mundt [Thu, 29 Jan 2009 09:11:25 +0000 (18:11 +0900)]
sh: Don't enable GENERIC_TIME for the CMT clockevent driver yet.

GENERIC_TIME still depends on the clocksource bits being there, which is
presently not supported. This allows the CMT clockevent driver to be used
alongside alternate system timers that do not yet provide a clocksource
of their own (MTU2 and so on in the case of SH-2A).

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Fix up MTU2 support for SH7203.
Paul Mundt [Thu, 29 Jan 2009 09:10:13 +0000 (18:10 +0900)]
sh: Fix up MTU2 support for SH7203.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Use SYS_SUPPORTS_CMT for managing CMT timer dependencies.
Paul Mundt [Thu, 29 Jan 2009 09:08:58 +0000 (18:08 +0900)]
sh: Use SYS_SUPPORTS_CMT for managing CMT timer dependencies.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: CMT platform data for sh7723/sh7722/sh7366/sh7343
Magnus Damm [Thu, 22 Jan 2009 09:56:09 +0000 (09:56 +0000)]
sh: CMT platform data for sh7723/sh7722/sh7366/sh7343

CMT platform data for SuperH Mobile sh7723/sh7722/sh7343/sh7366.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: CMT clockevent platform driver
Magnus Damm [Thu, 22 Jan 2009 09:55:59 +0000 (09:55 +0000)]
sh: CMT clockevent platform driver

SuperH CMT clockevent driver.

Both 16-bit and 32-bit CMT versions are supported, but only 32-bit
is tested. This driver contains support for both clockevents and
clocksources, but no unregistration is supported at this point.

Works fine as clock source and/or event in periodic or oneshot mode.
Tested on sh7722 and sh7723, but should work with any cpu/architecture.

This version is lacking clocksource and early platform driver support
for now - this to minimize the amount of dependencies.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: fix no sys_timer case
Magnus Damm [Thu, 22 Jan 2009 09:55:49 +0000 (09:55 +0000)]
sh: fix no sys_timer case

Handle the case with a sys_timer set to NULL.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: tmu disable support
Magnus Damm [Thu, 22 Jan 2009 09:55:40 +0000 (09:55 +0000)]
sh: tmu disable support

Add TMU disable support so we can use other clockevents.
Also, setup the clockevent rating.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: rework clocksource and sched_clock
Magnus Damm [Thu, 22 Jan 2009 09:55:31 +0000 (09:55 +0000)]
sh: rework clocksource and sched_clock

Rework and simplify the sched_clock and clocksource code. Instead
of registering the clocksource in a shared file we move it into the
tmu driver. Also, add code to handle sched_clock in the case of no
clocksource.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agoALSA: AC97: Fix function name type in comment s/updat/update/
Thadeu Lima de Souza Cascardo [Wed, 28 Jan 2009 20:20:06 +0000 (18:20 -0200)]
ALSA: AC97: Fix function name type in comment s/updat/update/

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years agoALSA: AC97: Print AC97 flags in proc file to make debug it easier
Thadeu Lima de Souza Cascardo [Wed, 28 Jan 2009 17:39:22 +0000 (15:39 -0200)]
ALSA: AC97: Print AC97 flags in proc file to make debug it easier

While debugging some code paths in AC97 codec patches and its suspend
and resume functions, getting to know the flags has proved useful to
follow those code paths.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years agoSH: fix start_thread and user_stack_pointer macros
Roel Kluin [Thu, 22 Jan 2009 15:16:14 +0000 (15:16 +0000)]
SH: fix start_thread and user_stack_pointer macros

Fix macros start_thread and user_stack_pointer.
When these macros aren't called with a variable named regs as second
argument, this will result in a build failure.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agox86: unify asm/io.h: IO_SPACE_LIMIT
Jeremy Fitzhardinge [Wed, 28 Jan 2009 23:42:23 +0000 (15:42 -0800)]
x86: unify asm/io.h: IO_SPACE_LIMIT

Impact: Cleanup (trivial unification)

Move common define IO_SPACE_LIMIT from <asm/io_*.h> to <asm/io.h>.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
17 years agopowerpc/86xx: Extend GE Fanuc GPIO driver for the SBC310
Martyn Welch [Mon, 19 Jan 2009 11:33:34 +0000 (11:33 +0000)]
powerpc/86xx: Extend GE Fanuc GPIO driver for the SBC310

This patch adds basic support for the 6 GPIO lines found on GE Fanucs SBC310 to the GE Fanuc GPIO driver.

Signed-off-by: Martyn Welch <martyn.welch@gefanuc.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agopowerpc/86xx: Default configutation for GE Fanuc's SBC310
Martyn Welch [Mon, 19 Jan 2009 11:33:04 +0000 (11:33 +0000)]
powerpc/86xx: Default configutation for GE Fanuc's SBC310

Support for the SBC310 VPX Single Board Computer from GE Fanuc (PowerPC
MPC8641D).

This is the default config file for GE Fanuc's SBC310, a 3U single board
computer, based on Freescale's MPC8641D.

Signed-off-by: Martyn Welch <martyn.welch@gefanuc.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agopowerpc/86xx: Board support for GE Fanuc SBC310
Martyn Welch [Mon, 19 Jan 2009 11:33:24 +0000 (11:33 +0000)]
powerpc/86xx: Board support for GE Fanuc SBC310

Support for the SBC310 VPX Single Board Computer from GE Fanuc (PowerPC
MPC8641D).

This is the basic board support for GE Fanuc's SBC310, a 3U single board
computer, based on Freescale's MPC8641D.

Signed-off-by: Martyn Welch <martyn.welch@gefanuc.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agosolos: Remove debugging, commented-out test code
David Woodhouse [Thu, 29 Jan 2009 03:37:20 +0000 (14:37 +1100)]
solos: Remove debugging, commented-out test code

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
17 years agocifs: make sure we allocate enough storage for socket address
Jeff Layton [Thu, 22 Jan 2009 19:43:21 +0000 (14:43 -0500)]
cifs: make sure we allocate enough storage for socket address

The sockaddr declared on the stack in cifs_get_tcp_session is too small
for IPv6 addresses. Change it from "struct sockaddr" to "struct
sockaddr_storage" to prevent stack corruption when IPv6 is used.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
17 years ago[CIFS] Make socket retry timeouts consistent between blocking and nonblocking cases
Steve French [Mon, 19 Jan 2009 03:49:35 +0000 (03:49 +0000)]
[CIFS] Make socket retry timeouts consistent between blocking and nonblocking cases

We have used approximately 15 second timeouts on nonblocking sends in the past, and
also 15 second SMB timeout (waiting for server responses, for most request types).
Now that we can do blocking tcp sends,
make blocking send timeout approximately the same (15 seconds).

Signed-off-by: Steve French <sfrench@us.ibm.com>
17 years ago[CIFS] some cleanup to dir.c prior to addition of posix_open
Steve French [Mon, 19 Jan 2009 02:38:35 +0000 (02:38 +0000)]
[CIFS] some cleanup to dir.c prior to addition of posix_open

Signed-off-by: Steve French <sfrench@us.ibm.com>
17 years ago[CIFS] revalidate parent inode when rmdir done within that directory
Steve French [Tue, 13 Jan 2009 22:03:55 +0000 (22:03 +0000)]
[CIFS] revalidate parent inode when rmdir done within that directory

When a search is pending of a parent directory, and a child directory
within it is removed, we need to reset the parent directory's time
so that we don't reuse the (now stale) search results.

Thanks to Gunter Kukkukk for reporting this:

> got the following failure notification on irc #samba:
>
> A user was updating from subversion 1.4 to 1.5, where the
> repository is located on a samba share (independent of
> unix extensions = Yes or No).
> svn 1.4 did work, 1.5 does not.
>
> The user did a lot of stracing of subversion - and wrote a
> testapplet to simulate the failing behaviour.
> I've converted the C++ source to C and added some error cases.
>
> When using "./testdir" on a local file system, "result2"
> is always (nil) as expected - cifs vfs behaves different here!
>
>   ./testdir /mnt/cifs/mounted/share
>
> returns a (failing) valid pointer.

Acked-by: Dave Kleikamp <shaggy@us.ibm.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
17 years ago[CIFS] Rename md5 functions to avoid collision with new rt modules
Steve French [Mon, 12 Jan 2009 21:03:25 +0000 (21:03 +0000)]
[CIFS] Rename md5 functions to avoid collision with new rt modules

When rt modules were added they (each) included their own md5
with names which collided with the existing names of cifs's md5 functions.

Renaming cifs's md5 modules so we don't collide with them.

> Stephen Rothwell wrote:
> When CIFS is built-in (=y) and staging/rt28[67]0 =y, there are multiple
> definitions of:
>
> build-r8250.out:(.text+0x1d8ad0): multiple definition of `MD5Init'
> build-r8250.out:(.text+0x1dbb30): multiple definition of `MD5Update'
> build-r8250.out:(.text+0x1db9b0): multiple definition of `MD5Final'
>
> all of which need to have more unique identifiers for their global
> symbols (e.g., rt28_md5_init, cifs_md5_init, foo, blah, bar).
>

CC: Greg K-H <gregkh@suse.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>
17 years agocifs: turn smb_send into a wrapper around smb_sendv
Jeff Layton [Tue, 30 Dec 2008 17:39:16 +0000 (12:39 -0500)]
cifs: turn smb_send into a wrapper around smb_sendv

cifs: turn smb_send into a wrapper around smb_sendv

Rename smb_send2 to smb_sendv to make it consistent with kernel naming
conventions for functions that take a vector.

There's no need to have 2 functions to handle sending SMB calls. Turn
smb_send into a wrapper around smb_sendv. This also allows us to
properly mark the socket as needing to be reconnected when there's a
partial send from smb_send.

Also, in practice we always use the address and noblocksnd flag
that's attached to the TCP_Server_Info. There's no need to pass
them in as separate args to smb_sendv.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
17 years agosolos: Clean up handling of card->tx_mask a little
David Woodhouse [Thu, 29 Jan 2009 03:08:27 +0000 (14:08 +1100)]
solos: Clean up handling of card->tx_mask a little

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
17 years agosh: Use the atomic_t "counter" member
Matt Fleming [Tue, 20 Jan 2009 21:14:38 +0000 (21:14 +0000)]
sh: Use the atomic_t "counter" member

Now that atomic_t is a generic opaque type for all architectures, it is
unwise to use intimate knowledge of its internals when manipulating it.

Instead of relying on the "counter" member being at offset 0 from the
beginning of an atomic_t, explicitly reference the member. This guards
us from any changes to the layout of the beginning of the atomic_t type.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Relax inline assembly constraints
Matt Fleming [Tue, 20 Jan 2009 21:14:37 +0000 (21:14 +0000)]
sh: Relax inline assembly constraints

When dereferencing the memory address contained in a register and
modifying the value at that memory address, the register should not be
listed in the inline asm outputs. The value at the memory address is an
output (which is taken care of with the "memory" clobber), not the register.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agoMerge branch 'sh/stable-updates'
Paul Mundt [Thu, 29 Jan 2009 02:56:45 +0000 (11:56 +0900)]
Merge branch 'sh/stable-updates'

17 years agosh: Fix up T-bit error handling in SH-4A mutex fastpath.
Takashi Yoshii [Wed, 28 Jan 2009 09:29:13 +0000 (09:29 +0000)]
sh: Fix up T-bit error handling in SH-4A mutex fastpath.

This corrects a deadlock encountered on ap325 in the cases where the
mutex is contended and the slow-path needs to be fallen back upon.

Signed-off-by: Takashi YOSHII <yoshii.takashi@renesas.com>
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Fix up spurious syscall restarting.
Paul Mundt [Thu, 29 Jan 2009 02:21:38 +0000 (11:21 +0900)]
sh: Fix up spurious syscall restarting.

The T-bit manipulation for syscall error checking had the side effect of
spuriously returning ERESTART* errno values over EINTR. So, we simplify
the error checking a bit and leave the T-bit alone.

Reported-by: Kaz Kojima <kkojima@rr.iij4u.or.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: fcnvds fix with denormalized numbers on SH-4 FPU.
Carmelo AMOROSO [Wed, 15 Oct 2008 15:48:16 +0000 (16:48 +0100)]
sh: fcnvds fix with denormalized numbers on SH-4 FPU.

This fixes a bug in the FPU exception handler for the FCNVDS instruction.
To get the register number the instruction is shifted right by 9,
though it should be shifted right by 8.

More information at ST Linux bugzilla:

https://bugzilla.stlinux.com/show_bug.cgi?id=4892

Signed-off-by: Giuseppe Di Giore <giuseppe.di-giore@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Only reserve memory under CONFIG_ZERO_PAGE_OFFSET when it != 0.
Christopher SMITH [Mon, 6 Oct 2008 11:46:18 +0000 (12:46 +0100)]
sh: Only reserve memory under CONFIG_ZERO_PAGE_OFFSET when it != 0.

Signed-off-by: Chris Smith <chris.smith@st.com>
Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: Handle calling csum_partial with misaligned data
Stuart Menefy [Fri, 12 Dec 2008 18:34:38 +0000 (18:34 +0000)]
sh: Handle calling csum_partial with misaligned data

In rare circumstances csum_partial() can be called with data which is
not 16 or 32 bit aligned. This is been observed with RPC calls for NFS
file systems for example. Add support for handling this without resorting
to the misaligned fixup code (which is why this hasn't been seen as a
problem). This mimics the i386 version, which has had this support for
some time.

Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: ap325rxa: Enable ov772x in defconfig.
Kuninori Morimoto [Tue, 27 Jan 2009 02:46:12 +0000 (02:46 +0000)]
sh: ap325rxa: Enable ov772x in defconfig.

This patch updates the ap325 defconfig to include
ov772x camera driver.
Old camera is still supported.

Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: ap325rxa: Add ov772x support.
Kuninori Morimoto [Thu, 22 Jan 2009 00:38:31 +0000 (00:38 +0000)]
sh: ap325rxa: Add ov772x support.

This patch add ov772x camera settings to ap325,
Old camera is still supported. And it will be 2nd camera
if you select ov772x and soc_camera_platform in same time.

Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: ap325rxa: control camera power toggling.
Kuninori Morimoto [Thu, 22 Jan 2009 00:33:21 +0000 (00:33 +0000)]
sh: ap325rxa: control camera power toggling.

Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosh: mach-migor: Enable ov772x and tw9910 in defconfig.
Kuninori Morimoto [Thu, 22 Jan 2009 00:18:05 +0000 (00:18 +0000)]
sh: mach-migor: Enable ov772x and tw9910 in defconfig.

This patch updates the Migo-R defconfig to include
ov772x camera and tw9910 video driver

Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
17 years agosparc: Probe PMU type and record in sparc_pmu_type.
David S. Miller [Thu, 22 Jan 2009 07:16:40 +0000 (23:16 -0800)]
sparc: Probe PMU type and record in sparc_pmu_type.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosolos: Fix various bugs in status packet handling
David Woodhouse [Thu, 29 Jan 2009 01:17:09 +0000 (12:17 +1100)]
solos: Fix various bugs in status packet handling

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
17 years agosparc64: Move generic PCR support code to seperate file.
David S. Miller [Thu, 22 Jan 2009 05:30:23 +0000 (21:30 -0800)]
sparc64: Move generic PCR support code to seperate file.

It all lives in the oprofile support code currently and we will need
to share this stuff with NMI watchdog and perf_counter support.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosolos: Remove superfluous wait_queue_head_t from struct solos_param
David Woodhouse [Thu, 29 Jan 2009 00:31:28 +0000 (11:31 +1100)]
solos: Remove superfluous wait_queue_head_t from struct solos_param

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
17 years agosolos: Remove IRQF_DISABLED, don't frob IRQ enable on the FPGA in solos_irq()
David Woodhouse [Thu, 29 Jan 2009 00:29:12 +0000 (11:29 +1100)]
solos: Remove IRQF_DISABLED, don't frob IRQ enable on the FPGA in solos_irq()

Neither of these are necessary.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
17 years agopowerpc/fsl: Ensure PCI_QUIRKS are enabled for FSL_PCI
Kumar Gala [Wed, 28 Jan 2009 19:25:29 +0000 (13:25 -0600)]
powerpc/fsl: Ensure PCI_QUIRKS are enabled for FSL_PCI

The FSL PCI code depends on PCI quirks being enabled to function
properly.  We can ensure this by doing a select in Kconfig of
PCI_QUIRKS.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agopowerpc/83xx: Add i2c eeprom to dts for MPC837x RDB
Reynes Philippe [Wed, 28 Jan 2009 10:07:44 +0000 (11:07 +0100)]
powerpc/83xx: Add i2c eeprom to dts for MPC837x RDB

Signed-off-by: Philippe Reynes <philippe.reynes@isismpp.fr>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agopowerpc: convert dts-bindings/fsl/dma.txt to dts-v1 syntax
Peter Korsgaard [Wed, 14 Jan 2009 14:52:41 +0000 (15:52 +0100)]
powerpc: convert dts-bindings/fsl/dma.txt to dts-v1 syntax

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agocpm2: Round the baud-rate clock divider to the nearest integer.
Laurent Pinchart [Thu, 20 Nov 2008 12:32:23 +0000 (13:32 +0100)]
cpm2: Round the baud-rate clock divider to the nearest integer.

Instead of rounding the divider down, improve the baud-rate generators
accuracy by rounding to the nearest integer.

Signed-off-by: Laurent Pinchart <laurentp@cse-semaphore.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agopowerpc/fsl-booke: Make CAM entries used for lowmem configurable
Trent Piepho [Tue, 9 Dec 2008 03:34:58 +0000 (19:34 -0800)]
powerpc/fsl-booke: Make CAM entries used for lowmem configurable

On booke processors, the code that maps low memory only uses up to three
CAM entries, even though there are sixteen and nothing else uses them.

Make this number configurable in the advanced options menu along with max
low memory size.  If one wants 1 GB of lowmem, then it's typically
necessary to have four CAM entries.

Signed-off-by: Trent Piepho <tpiepho@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agopowerpc/fsl-booke: Allow larger CAM sizes than 256 MB
Trent Piepho [Tue, 9 Dec 2008 03:34:59 +0000 (19:34 -0800)]
powerpc/fsl-booke: Allow larger CAM sizes than 256 MB

The code that maps kernel low memory would only use page sizes up to 256
MB.  On E500v2 pages up to 4 GB are supported.

However, a page must be aligned to a multiple of the page's size.  I.e.
256 MB pages must aligned to a 256 MB boundary.  This was enforced by a
requirement that the physical and virtual addresses of the start of lowmem
be aligned to 256 MB.  Clearly requiring 1GB or 4GB alignment to allow
pages of that size isn't acceptable.

To solve this, I simply have adjust_total_lowmem() take alignment into
account when it decides what size pages to use.  Give it PAGE_OFFSET =
0x7000_0000, PHYSICAL_START = 0x3000_0000, and 2GB of RAM, and it will map
pages like this:
PA 0x3000_0000 VA 0x7000_0000 Size 256 MB
PA 0x4000_0000 VA 0x8000_0000 Size 1 GB
PA 0x8000_0000 VA 0xC000_0000 Size 256 MB
PA 0x9000_0000 VA 0xD000_0000 Size 256 MB
PA 0xA000_0000 VA 0xE000_0000 Size 256 MB

Because the lowmem mapping code now takes alignment into account,
PHYSICAL_ALIGN can be lowered from 256 MB to 64 MB.  Even lower might be
possible.  The lowmem code will work down to 4 kB but it's possible some of
the boot code will fail before then.  Poor alignment will force small pages
to be used, which combined with the limited number of TLB1 pages available,
will result in very little memory getting mapped.  So alignments less than
64 MB probably aren't very useful anyway.

Signed-off-by: Trent Piepho <tpiepho@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agopowerpc/fsl-booke: Remove code duplication in lowmem mapping
Trent Piepho [Tue, 9 Dec 2008 03:34:57 +0000 (19:34 -0800)]
powerpc/fsl-booke: Remove code duplication in lowmem mapping

The code to map lowmem uses three CAM aka TLB[1] entries to cover it.  The
size of each is stored in three globals named __cam0, __cam1, and __cam2.
All the code that uses them is duplicated three times for each of the three
variables.

We have these things called arrays and loops....

Once converted to use an array, it will be easier to make the number of
CAMs configurable.

Signed-off-by: Trent Piepho <tpiepho@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agopowerpc/fsl-booke: Cleanup init/exception setup to be runtime
Kumar Gala [Thu, 8 Jan 2009 14:31:20 +0000 (08:31 -0600)]
powerpc/fsl-booke: Cleanup init/exception setup to be runtime

We currently have a few variants of fsl-booke processors (e500v1, e500v2,
e500mc, and e200).  They all have minor differences that we had previously
been handling via ifdefs.

To move towards having this support the following changes have been made:

* PID1, PID2 only exist on e500v1 & e500v2 and should not be accessed on
  e500mc or e200.  We use MMUCFG[NPIDS] to determine which case we are
  since we only touch PID1/2 in extremely early init code.

* Not all IVORs exist on all the processors so introduce cpu_setup
  functions for each variant to setup the proper IVORs that are either
  unique or exist but have some variations between the processors

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agopowerpc/83xx: Add PCI-E support for all MPC83xx boards with PCI-E
Anton Vorontsov [Thu, 8 Jan 2009 01:31:41 +0000 (04:31 +0300)]
powerpc/83xx: Add PCI-E support for all MPC83xx boards with PCI-E

This patch adds pcie nodes to the appropriate dts files, plus adds
some probing code for the boards.

Also, remove of_device_is_avaliable() check from the mpc837x_mds.c
board file, as mpc83xx_add_bridge() has the same check now.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agopowerpc/fsl_pci: Add MPC83xx PCI-E controller RC mode support
Anton Vorontsov [Thu, 8 Jan 2009 21:55:39 +0000 (00:55 +0300)]
powerpc/fsl_pci: Add MPC83xx PCI-E controller RC mode support

This patch adds support for PCI-Express controllers as found on the
newer MPC83xx chips.

The work is loosely based on the Tony Li's patch[1], but unlike the
original patch, this patch implements sliding window for the Type 1
transactions using outbound window translations, so we don't have to
ioremap the whole PCI-E configuration space.

[1] http://ozlabs.org/pipermail/linuxppc-dev/2008-January/049028.html

Signed-off-by: Tony Li <tony.li@freescale.com>
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoACPI: remove BM_RLD access from idle entry path
Len Brown [Wed, 28 Jan 2009 23:28:09 +0000 (18:28 -0500)]
ACPI: remove BM_RLD access from idle entry path

It is true that BM_RLD needs to be set to enable
bus master activity to wake an older chipset (eg PIIX4) from C3.

This is contrary to the erroneous wording the ACPI 2.0, 3.0
specifications that suggests that BM_RLD is an indicator
rather than a control bit.

ACPI 1.0's correct wording should be restored in ACPI 4.0:
http://www.acpica.org/bugzilla/show_bug.cgi?id=689

But the kernel should not have to clear BM_RLD
when entering a non C3-type state just to set
it again when entering a C3-type C-state.

We should be able to set BM_RLD at boot time
and leave it alone -- removing the overhead of
accessing this IO register from the idle entry path.

Signed-off-by: Len Brown <len.brown@intel.com>
17 years agosolos: Remove unused loopback debug stuff
David Woodhouse [Thu, 29 Jan 2009 00:12:58 +0000 (11:12 +1100)]
solos: Remove unused loopback debug stuff

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
17 years agosolos: Tidy up tx_mask handling for ports which need TX
David Woodhouse [Thu, 29 Jan 2009 00:10:58 +0000 (11:10 +1100)]
solos: Tidy up tx_mask handling for ports which need TX

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
17 years agodriver-core: fix kernel-doc parameter name
Randy Dunlap [Wed, 21 Jan 2009 00:29:13 +0000 (16:29 -0800)]
driver-core: fix kernel-doc parameter name

Fix function parameter name in kernel-doc:

Warning(linux-next-20090120//drivers/base/core.c:1289): No description found for parameter 'dev'
Warning(linux-next-20090120//drivers/base/core.c:1289): Excess function parameter 'root' description in 'root_device_unregister'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoUIO: Add missing documentation of features added recently
Hans J. Koch [Tue, 6 Jan 2009 23:12:37 +0000 (00:12 +0100)]
UIO: Add missing documentation of features added recently

The following features were added to the UIO framework in the near past:

* Generic drivers for platform devices (uio_pdrv, uio_pdrv_genirq)
* an "offset" sysfs attribute for memory mappings

Unfortunately, all this went in without documentation (won't happen again...)

This patch updates UIO documentation.

Signed-off-by: Hans J. Koch <hjk@linutronix.de>
Acked-by: Uwe Kleine-König <ukleinek@strlen.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoSync patch for jp_JP/stable_kernel_rules.txt
Tsugikazu Shibata [Fri, 23 Jan 2009 00:59:50 +0000 (09:59 +0900)]
Sync patch for jp_JP/stable_kernel_rules.txt

Updated jp_JP/stable_kernel_rules.txt due to changes in the main version
of the file.

Also, this patch is already reviewed by Japanese translation community
called JF.

Signed-off-by: Tsugikazu Shibata <tshibata@ab.jp.nec.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agosolos: Tidy up DMA handling a little. Still untested
David Woodhouse [Wed, 28 Jan 2009 23:51:11 +0000 (10:51 +1100)]
solos: Tidy up DMA handling a little. Still untested

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
17 years agoStaging: poch: fix verification of memory area
Roel Kluin [Wed, 28 Jan 2009 21:14:17 +0000 (22:14 +0100)]
Staging: poch: fix verification of memory area

fix verification of memory area

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: usbip: usbip_start_threads(): handle kernel_thread failure
Roel Kluin [Fri, 19 Dec 2008 22:37:30 +0000 (23:37 +0100)]
Staging: usbip: usbip_start_threads(): handle kernel_thread failure

kernel_thread may fail, notice this.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agostaging: agnx: drivers/staging/agnx/agnx.h needs <linux/io.h>
Geert Uytterhoeven [Mon, 12 Jan 2009 08:19:42 +0000 (09:19 +0100)]
staging: agnx: drivers/staging/agnx/agnx.h needs <linux/io.h>

On m68k:
drivers/staging/agnx/agnx.h: In function 'agnx_read32':
drivers/staging/agnx/agnx.h:10: error: implicit declaration of function 'ioread32'
drivers/staging/agnx/agnx.h: In function 'agnx_write32':
drivers/staging/agnx/agnx.h:15: error: implicit declaration of function 'iowrite32'
drivers/staging/agnx/sta.c: In function 'get_sta_power':
drivers/staging/agnx/sta.c:94: error: implicit declaration of function 'memcpy_fromio'
drivers/staging/agnx/sta.c: In function 'set_sta_power':
drivers/staging/agnx/sta.c:103: error: implicit declaration of function 'memcpy_toio'

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: android: task_get_unused_fd_flags: fix the wrong usage of tsk->signal
Oleg Nesterov [Sun, 18 Jan 2009 17:17:20 +0000 (18:17 +0100)]
Staging: android: task_get_unused_fd_flags: fix the wrong usage of tsk->signal

Compile tested.

task_struct->signal is not protected by RCU, the code is bogus.
Change the code to take ->siglock to pin ->signal.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Arve Hjønnevåg <arve@android.com>
Cc: Brian Swetland <swetland@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: android: Add lowmemorykiller documentation.
Arve Hjønnevåg [Thu, 15 Jan 2009 00:54:16 +0000 (16:54 -0800)]
Staging: android: Add lowmemorykiller documentation.

Signed-off-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: android: fix build error on 64bit boxes
Greg Kroah-Hartman [Wed, 28 Jan 2009 23:42:43 +0000 (15:42 -0800)]
Staging: android: fix build error on 64bit boxes

ktime_t isn't ment to directly access on all arches, so use the proper
conversion functions instead to figure out what time is remaining.

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Arve Hjønnevåg <arve@android.com>
Cc: Mike Lockwood <lockwood@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: android: timed_gpio: Fix build to build on kernels after 2.6.25.
Arve Hjønnevåg [Fri, 9 Jan 2009 00:48:46 +0000 (16:48 -0800)]
Staging: android: timed_gpio: Fix build to build on kernels after 2.6.25.

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Mike Lockwood <lockwood@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: android: binder: fix arm build errors
Arve Hjønnevåg [Thu, 8 Jan 2009 23:28:50 +0000 (15:28 -0800)]
Staging: android: binder: fix arm build errors

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: meilhaus: fix Kbuild
Greg Kroah-Hartman [Sat, 17 Jan 2009 02:01:57 +0000 (18:01 -0800)]
Staging: meilhaus: fix Kbuild

The Meilhaus drivers do not like being built into the kernel right now,
so force them to be a module.

Reported-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: comedi: fix Kbuild
Greg Kroah-Hartman [Sat, 17 Jan 2009 01:59:15 +0000 (17:59 -0800)]
Staging: comedi: fix Kbuild

comedi doesn't like being built into the kernel right now, so force it
to be a module.

Reported-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoIB/mthca: Fix dispatch of IB_EVENT_LID_CHANGE event
Moni Shoua [Wed, 28 Jan 2009 23:15:56 +0000 (15:15 -0800)]
IB/mthca: Fix dispatch of IB_EVENT_LID_CHANGE event

When snooping a PortInfo MAD, its client_reregister bit is checked.
If the bit is ON then a CLIENT_REREGISTER event is dispatched,
otherwise a LID_CHANGE event is dispatched.  This way of decision
ignores the cases where the MAD changes the LID along with an
instruction to reregister (so a necessary LID_CHANGE event won't be
dispatched) or the MAD is neither of these (and an unnecessary
LID_CHANGE event will be dispatched).

This causes problems at least with IPoIB, which will do a "light"
flush on reregister, rather than the "heavy" flush required due to a
LID change.

Fix this by dispatching a CLIENT_REREGISTER event if the
client_reregister bit is set, but also compare the LID in the MAD to
the current LID.  If and only if they are not identical then a
LID_CHANGE event is dispatched.

Signed-off-by: Moni Shoua <monis@voltaire.com>
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Yossi Etigin <yosefe@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoIB/mlx4: Fix dispatch of IB_EVENT_LID_CHANGE event
Moni Shoua [Wed, 28 Jan 2009 22:54:35 +0000 (14:54 -0800)]
IB/mlx4: Fix dispatch of IB_EVENT_LID_CHANGE event

When snooping a PortInfo MAD, its client_reregister bit is checked.
If the bit is ON then a CLIENT_REREGISTER event is dispatched,
otherwise a LID_CHANGE event is dispatched.  This way of decision
ignores the cases where the MAD changes the LID along with an
instruction to reregister (so a necessary LID_CHANGE event won't be
dispatched) or the MAD is neither of these (and an unnecessary
LID_CHANGE event will be dispatched).

This causes problems at least with IPoIB, which will do a "light"
flush on reregister, rather than the "heavy" flush required due to a
LID change.

Fix this by dispatching a CLIENT_REREGISTER event if the
client_reregister bit is set, but also compare the LID in the MAD to
the current LID.  If and only if they are not identical then a
LID_CHANGE event is dispatched.

Signed-off-by: Moni Shoua <monis@voltaire.com>
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Yossi Etigin <yosefe@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agox86, summit: consolidate code
Ingo Molnar [Wed, 28 Jan 2009 17:49:31 +0000 (18:49 +0100)]
x86, summit: consolidate code

Consolidate all the Summit code into a single file:
arch/x86/kernel/summit_32.c.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86, numaq: consolidate code
Ingo Molnar [Wed, 28 Jan 2009 17:47:24 +0000 (18:47 +0100)]
x86, numaq: consolidate code

Move all the NUMAQ subarch definitions into numaq.c. With this it
ceases to depend on build-time subarch features.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86, smp: refactor ->wake_cpu
Ingo Molnar [Wed, 28 Jan 2009 16:50:18 +0000 (17:50 +0100)]
x86, smp: refactor ->wake_cpu

- remove macro wrappers

Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86: remove mach_apicdef.h
Ingo Molnar [Wed, 28 Jan 2009 16:36:56 +0000 (17:36 +0100)]
x86: remove mach_apicdef.h

Move its definitions into apic.h.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86: remove mach_mpspec.h
Ingo Molnar [Wed, 28 Jan 2009 16:36:56 +0000 (17:36 +0100)]
x86: remove mach_mpspec.h

Move its definitions into mpspec.h.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86: eliminate asm/mach-*/mach_mpparse.h
Ingo Molnar [Wed, 28 Jan 2009 16:29:27 +0000 (17:29 +0100)]
x86: eliminate asm/mach-*/mach_mpparse.h

Move the definition to mpparse.h.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86, smp: eliminate asm/mach-default/mach_wakecpu.h
Ingo Molnar [Wed, 28 Jan 2009 16:16:25 +0000 (17:16 +0100)]
x86, smp: eliminate asm/mach-default/mach_wakecpu.h

Spread mach_wakecpu.h's definitions into apic.h and genapic.h
and remove mach_wakecpu.h.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86, ES7000: consolidate the APIC code
Ingo Molnar [Wed, 28 Jan 2009 16:09:58 +0000 (17:09 +0100)]
x86, ES7000: consolidate the APIC code

Consolidate all the ES7000 APIC code into arch/x86/mach-generic/es7000.c.

With this ES7000 ceases to rely on any subarchitecture include files.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86, smp: refactor ->inquire_remote_apic() methods
Ingo Molnar [Wed, 28 Jan 2009 15:31:52 +0000 (16:31 +0100)]
x86, smp: refactor ->inquire_remote_apic() methods

Nothing exciting - a few subarches dont want APIC remote reads to
be performed - the others are content with the default method.

 - extend the generic code to handle NULL methods

 - clear out dummy methods and replace them with NULL

 - clean up: remove wrapper macros, etc.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86, smp: remove ->restore_NMI_vector()
Ingo Molnar [Wed, 28 Jan 2009 15:43:47 +0000 (16:43 +0100)]
x86, smp: remove ->restore_NMI_vector()

Nothing actually restores the NMI vector - so remove this
logic altogether.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86, smp: refactor ->store/restore_NMI_vector() methods
Ingo Molnar [Wed, 28 Jan 2009 15:31:52 +0000 (16:31 +0100)]
x86, smp: refactor ->store/restore_NMI_vector() methods

Only NUMAQ does something substantial here, because it initializes
via NMIs (not via INIT as standard SMP startup) - so it needs to
store and restore the NMI vector.

 - extend the generic code to handle NULL methods

 - clear out dummy methods and replace them with NULL

 - clean up: remove wrapper macros, etc.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86, smp: refactor ->smp_callin_clear_local_apic() methods
Ingo Molnar [Wed, 28 Jan 2009 15:31:52 +0000 (16:31 +0100)]
x86, smp: refactor ->smp_callin_clear_local_apic() methods

Only NUMAQ does something substantial here, because it initializes
via NMIs (not via INIT as standard SMP startup) - so it needs to
reset the APIC.

 - extend the generic code to handle NULL methods

 - clear out dummy methods and replace them with NULL

 - clean up: remove wrapper macros, etc.

Signed-off-by: Ingo Molnar <mingo@elte.hu>