development kernel tree: Changes to 'debug-tracking'
git at git.openmoko.org
git at git.openmoko.org
Sun Aug 3 22:05:14 CEST 2008
Rebased ref, commits from common ancestor:
commit 9595ffa2adec1dc5b67e244702f93318f063edd8
Author: Mike Westerhof <mwester at dls.net>
Date: Sun Aug 3 21:04:50 2008 +0100
clean-gsm-flow-control.patch
Signed-off-by: Mike Westerhof <mwester at dls.net>
arch/arm/plat-s3c24xx/neo1973_pm_gsm.c | 52 +-------
drivers/serial/s3c2410.c | 204 +++-----------------------------
2 files changed, 24 insertions(+), 232 deletions(-)
commit 1fb6328a20cb24607c9f4df2a69f21c2850e23cf
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 21:04:50 2008 +0100
mw09_style_fixes.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit e135b42c9a57363d0f3fc733fe242e46e4ee0f5b
Author: Mike Westerhof <mwester at dls.net>
Date: Sun Aug 3 21:04:50 2008 +0100
mw09f_gsm_interrupt_handling_4.patch
Signed-off-by: Mike Westerhof <mwester at dls.net>
commit d8faf60e886dd0e13c126aedcfde71e34c627e28
Author: Mike Westerhof <mwester at dls.net>
Date: Sun Aug 3 21:04:50 2008 +0100
mw09f_gsm_interrupt_handling_3.patch
Signed-off-by: Mike Westerhof <mwester at dls.net>
commit f5a842770ad86b63eda468464c476665a7cc6a35
Author: Mike Westerhof <mwester at dls.net>
Date: Sun Aug 3 21:04:50 2008 +0100
mw09f_gsm_interrupt_handling_2.patch
Signed-off-by: Mike Westerhof <mwester at dls.net>
commit e60b812ec67906b9ad82d01d4c2ee76d02352f08
Author: Mike Westerhof <mwester at dls.net>
Date: Sun Aug 3 21:04:49 2008 +0100
mw09f_gsm_interrupt_handling_1.patch
Signed-off-by: Mike Westerhof <mwester at dls.net>
commit 6aadd85dbc79bbc8a4050301f67d25ce26ecef9e
Author: Mike Westerhof <mwester at dls.net>
Date: Sun Aug 3 21:04:49 2008 +0100
mw09e_gsm_serial_mctrl.patch
Signed-off-by: Mike Westerhof <mwester at dls.net>
commit 3694bb7b82e47ee8577d3e2aea214e4db6175b66
Author: Mike Westerhof <mwester at dls.net>
Date: Sun Aug 3 21:04:49 2008 +0100
mw09d_gta01_serial_readhack_1.patch
Signed-off-by: Mike Westerhof <mwester at dls.net>
commit f9365a95cbc3431f3ca7081e58822bbddb7ad433
Author: Mike Westerhof <mwester at dls.net>
Date: Sun Aug 3 21:04:39 2008 +0100
mw09c_gsm_flowcontrol.patch
Signed-off-by: Mike Westerhof <mwester at dls.net>
commit 31b049122fb46b11f31cbd5c600e4b280f37e893
Author: Mike Westerhof <mwester at dls.net>
Date: Sun Aug 3 21:04:04 2008 +0100
mw09a_log_serial_errors.patch
Signed-off-by: Mike Westerhof <mwester at dls.net>
commit 3dfcc36b72be2fc5f236de71e987c549df7ebb97
Author: Mike Westerhof <mwester at dls.net>
Date: Sun Aug 3 21:04:03 2008 +0100
mw09a_gta01_UART_threshold.patch
Signed-off-by: Mike Westerhof <mwester at dls.net>
commit 0df3eb29e772b807a0393b541c95e2010d0cf0d6
Author: Mike Westerhof <mwester at dls.net>
Date: Sun Aug 3 21:04:03 2008 +0100
mw09a_gta01_console_disable_2.patch
Signed-off-by: Mike Westerhof <mwester at dls.net>
commit 2cdfaa9d3607e8e9bfa2923efa3bc45ac9fa62d0
Author: Mike Westerhof <mwester at dls.net>
Date: Sun Aug 3 21:04:03 2008 +0100
mw09a_gta01_console_disable_1.patch
Signed-off-by: Mike Westerhof <mwester at dls.net>
commit c1e28ea6216408d38337f9b5c0fd2497a9625ecd
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 21:01:25 2008 +0100
remove-s3c24xx-serial-resume-dep-gsm-pm.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit a7839954acb31e2cd93cd8d616f09f88a2c3f382
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:57:03 2008 +0100
tracking-2.6.27-rc1-snd_soc_dapm_sync_endpoints.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit d5ac1b8d6c0f831203720bec3e09bc28a2ccb254
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:38:57 2008 +0100
tracking-2.6.27-rc1-snd_soc_dapm_set_endpoint.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit 7c733627ccf53b336d2eec80af4350bcca94b520
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:38:55 2008 +0100
tracking-2.6.27-rc1-broken-cfg-uninit-nand.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit b6741dc3d1493b3c5238241a2832edc78ef07356
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:06 2008 +0100
tracking-2.6.27-rc1-s3c_lookup_cpu-mismatch.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit ca8ab7babd0d4d2b9cb168e65f12a40e4613a332
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:06 2008 +0100
tracking-2.6.27-rc1-gpio-redef.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit d01e67992e4ccf2efd130b9ed1da7452a8f6f35b
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:05 2008 +0100
tracking-2.6.27-rc1-debug-section-mismatch-build.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit f1893aa198e2ad434705b0a3096899286b57878b
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:05 2008 +0100
tracking-2.6.27-rc1-ar6000.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit dc12b5c5b4255699aa262392896146dbf822212e
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:05 2008 +0100
tracking-2.6.27-rc1-last-2400-ordering.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit a81e9bc70ee35867bb6418a2004eef89396956c8
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:05 2008 +0100
tracking-2.6.27-rc1-borked-eth-gadget.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit 5e3f12ef11bceedcfe7bc662f9471e6eae09ab55
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:05 2008 +0100
tracking-2.6.27-rc1-tty-not-in-uart_port.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit 8c2b82d8ccd92ff76f8bae2d38f32c356f4b1cc0
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:04 2008 +0100
tracking-2.6.27-rc1-asm-semaphore-gone.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit ecc44617e9bc82e0904bcd515b24cc874a679014
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:04 2008 +0100
tracking-2.6.27-mmc-ultiwrite-gone.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit 51d677ac27f40d82e34152c9d292a030c4ef353a
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:04 2008 +0100
tracking-2.6.27-rc1-irqtype-falling-glamo.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit 4926b94ce8874207d07d3ca541270b2f3fcec77f
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:04 2008 +0100
fix-backlight-def-pcf50633.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit bd4cce646f315b298dbcf64d8550e79fa71fb911
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:04 2008 +0100
tracking-2.6.27-rc1-pcf50306-defs.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit 3f87160aae277c8fddba6a4b8648dc9cfec88758
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:04 2008 +0100
tracking-2.6.27-gpio-redef-clean.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit 9a3631993ddaf986061c18090587e6235466c13c
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:04 2008 +0100
tracking-2.6.27-irqtype-rename.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit 9a9340c5f0b3c6748f047db1d03a004b5374e7be
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:03 2008 +0100
config-add-defconfig-2.6.27
Signed-off-by: Andy Green <andy at openmoko.com>
commit 58d61e1350148af861324fa32f917428a701c98f
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:03 2008 +0100
config-usb-over-ethernet-modul
Signed-off-by: Andy Green <andy at openmoko.com>
commit 187446cdab7d4501b0b716268274e02bea2cde2f
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:03 2008 +0100
fix-add-missing-include.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit bb3182411d71f8f439a0a8f0d53ace93ec899d19
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:03 2008 +0100
use-gta02-glamo-mci-sd-dynamic-clock.patch
This patch uses the new glamo-mci slow clock ratio
patch in order to dynamically reduce SD Card clock
rate when the GPS unit is powered on GTA02.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 8af2116976aa19e1da345b9f24dc2dc8a3873ff9
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:03 2008 +0100
add-glamo-mci-slower-clocking-dynamic-switching.patch
This patch gives glamo-mci a concept of a platform-defined
dynamic clock slowing callback. It means that platform code
can associate some completely external state to decide if
we run the SD clock at normal rate or a rate divided by a
module parameter "sd_slow_ratio", which you can set on
kernel commandline like this:
glamo_mci.sd_slow_ratio=8
you can also change it at runtime by
echo 8 > /sys/module/glamo_mci/parameters/sd_slow_ratio
If no platform callback is defined, then no slow mode
is used. If it is defined, then the default division
action is / 8, eg, 16MHz normal -> 2MHz slow mode.
Signed-off-by: Andy Green <andy at openmoko.com>
commit e028a77b983770fb4157fc58879f0a612435cf1d
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:02 2008 +0100
fix-glamo-mci-dont-filter-voltage-change.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit a6764e60abae97fa9fcea3c52fbfd90e8536d875
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:02 2008 +0100
fix-allow-full-sd-voltage-range-selection.patch
Until now we just drove the SD Card at 3.3V all the time. But in
fact we can do better, and use a voltage negotiated with the
SD Card itself.
With the shipping 512MB Sandisk SD Card, 2.7V is negotiated which
gives 1.7dBm reduction in power on all the SD Card lines and should
further reduce GPS perturbation during SD Card usage.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 9742a7c881d6862be370ade1c503676cb49a4ec9
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:02 2008 +0100
tracking-2.6.26-rc9-dai-alsa.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit 678c04455be3795f74392b3453f4185b7c75d92f
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:02 2008 +0100
fix-glamo-mci-ensure-more-than-74-clocks-after-power.patch
We are meant to run SD_CLK a little while after power-on for the SD
Card, but with the no idle clock changes we didn't take care about it.
This makes us sleep a little bit before disabling clock if we just
powered up the SD Card.
Signed-off-by: Andy Green <andy at openmoko.com>
commit b88cc632f6a477fe8effd544c26c9e7ea8b09e9b
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:02 2008 +0100
fix-glamo-mci-possible-timeout-overflow.patch
The MMC stack hands us a timeout calibrated in SD_CLK clocks, but the
Glamo can only deal with up to 65520 clocks of timeout. If the stack
handed us a request bigger than this, it would just wrap and the
timeout we actually used would be way too short.
With this patch if that happens, we use the longest timeout we can,
65520 clocks and give it our best shot.
Signed-off-by: Andy Green <andy at openmoko.com>
commit d15669f4e6439428316de81418798e6a16c8e250
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:02 2008 +0100
fix-pcf50633-only-do-platform-callback-once-per-event.patch
Reported-by: Holger Freyther <zecke at openmoko.org>
We harmlessly repeated PMU platform callbacks about charging state twice.
Clean it up and leave it to pcf50633_charge_enable() to report once.
Also tidies the sequencing so we set current limit before we enable
charger now.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 9daf467481145ad2d3c23acb154414de4963aad1
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:01 2008 +0100
fix-pcf50633-remove-charger-curlim-and-enable-apis-from-export.patch
Setting the current limit directly and enabling the charger
isn't anyone's business except pcf50633 driver itself, so these
two functions should not be exported and become static.
Signed-off-by: Andy Green <andy at openmoko.com>
commit ef13d13b74990ea866f97521c96d303c299d2047
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:01 2008 +0100
fix-glamo-mci-set-default-drive-level-0.patch
Tests on access to SD Card with Glamo drive level "0" show
that it reduces SD_CLK energy at 1.5GHz by 24dBm compared to
drive level 3. This puts it only 6dB above the background
noise floor compared to 30dB and should make a solution for
GPS trouble with SD Card in.
SD card communication seems unaffected so far on the Sandisk
512MB card we ship.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 447dc8f3ded1dbddc4b76af2c2040a3059e71950
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:01 2008 +0100
fix-bq27000-charger-state-tracking.patch
Charger trigger stuff goes and asks for POWER_SUPPLY_PROP_STATUS
to figure out what the charger state is. But until now, we only
reported there what we found out from HDQ, and the HDQ registers
are not updated very often in the coulomb counter, it can be 4
or more second lag before it tells us about what it experiences.
When we react to USB insertion and only after 500ms debounce tell
power_supply stuff that something changed, it most times will
see old pre-USB-insertion state from bq27000 over HDQ at that time
and will report it ain't charging, buggering up the LED trigger
tracking.
This patch maintains distance between bq27000 and pcf50633 by
having platform callbacks in bq27000 that it can use to ask about
definitive charger "online" presence and "activity", whether the
charger says it is charging. If these callbacks are implemented
(and we implement them in this patch up in mach_gta02.c) then
this information is used in preference to what is found from
HDQ.
Result is if you set the LED trigger like this:
echo bat-charging > /sys/devices/platform/gta02-led.0/leds/gta02-aux:red/trigger
then it lights up properly on USB insertion now, goes away on
removal properly, as as far as I saw, when charging stops too.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 70a2a166e61049f17060fdc3503d4ef0e4a86983
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:00 2008 +0100
debug-add-glamo-drive-strength-module-param.patch
Suggested-by: Werner Almesberger <werner at openmoko.org>
This patch allows users to control two additional settings
in Glamo MCI driver from kernel commandline or module
parameters.
First is Glamo drive strength on SD IOs including CLK.
This ranges from 0 (weakest) to 3 (strongest).
echo 0 > /sys/module/glamo_mci/parameters/sd_drive
(Changes to this take effect on next SD Card transaction)
or, from kernel commandline
glamo_mci.sd_drive=0
On tests here with 0 strength, communication to SD card
(shipped 512MB Sandisk) seemed fine, and a dd of 10MB
urandom had the same md5 when written to cache as after
a reboot. I set the default to 2.
Second is whether we allow SD_CLK when the SD interface
is idle.
# stop the clock when we are idle (default)
echo 0 > /sys/module/glamo_mci/parameters/sd_idleclk
# run the SD clock all the time
echo 1 > /sys/module/glamo_mci/parameters/sd_idleclk
(changes take effect on next SD Card transaction)
From kernel commandline, eg:
glamo_mci.sd_idleclk=1
Normally you don't want to run the SD Clock all the time.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 456a5f0880e8c99957a85be11489ce8706ea0675
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:00 2008 +0100
debug-move-dev-info-to-dbg.patch
Suggested-by: Sean McNeil <sean at mcneil.com>
To see if some subtle race is involved, Sean has tried
removing syslog traffic during resume and found he was
not seeing the resume crash any more. We're giving it
a try to see if it changes the behaviour for anyone
else. It would mean we have a pretty fine race in there
somewhere.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 4d78573b2a54a153d54acaf692ae058ed1b7f97a
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:00 2008 +0100
fix-scard-stop-on-resume.patch
Reported-by: Ville-Pekka Vainio <vpivaini at cs.helsinki.fi>
The reporter noticed SD Card clock is running again after resume. After
looking at the code I saw I missed two tricks, this will force it off
after resume and will do better generally depending on what the last SD Card
packet was.
Since bulk read packet is normally last action (which set the clock off even
without this) the old patch worked for normal cases. But after resume, the last
packet on the wire was not a bulk transfer and we didn't take care about the
clock then.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 98ce0248c258b7186c46a3c0cd75fb9ec30f4c2a
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:26:00 2008 +0100
add-limit-sdcard-clk-cmdline.patch
This patch allows you to control the maximum clock rate that will
be selected for SD Card access, from the kernel commandline using
glamo_mci.sd_max_clk=10000000
and also from
echo 10000000 > /sys/module/glamo_mci/parameters/sd_max_clk
although you have to suspend and resume to make the limit operational
on the actual SD_CLK line.
Clocks that are possible are divided down from ~50MHz, so 25000000,
16666666, 12500000, 10000000, etc. With Freerunner A5 revision that
has 100R series resistors in SD Card signals, I didn't get reliable
operation above 16MHz. With A6 revision the series resistors went
down to 75R, maybe it can work at 25MHz.
Reducing the clock rate is something to try if you find that your
SD Card is not communicating properly with the default speed.
Signed-off-by: Andy Green <andy at openmoko.com>
commit f0656b2470c7b9808dc13bb00037d2e1875c8030
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:59 2008 +0100
fix-force-sdcard-clk-off-when-idle.patch
Existing Glamo bit for stopping SD Card Clock when there is no
transfer taking place does not work. This patch adds stuff around
the transfer code to force the SD clock up when something is going on
and down when it is idle. This'll save a little power and noise ;-)
I tested it briefly and was able to SD Boot normally on Sandisk 512M.
Wider testing is appreciated.
Signed-off-by: Andy Green <andy at openmoko.com>
commit a22a4b7ce565ebe28d9cf6a568bb0d6ce84ace4f
Author: Jason Uhlenkott <jasonuhl at jasonuhl.org>
Date: Sun Aug 3 20:25:59 2008 +0100
sdio: use interruptible sleep in kthread main loops
My FreeRunner's load average was leveling off at 2.00 as a result of
these two kernel threads:
SDIO Helper D c02b4500 0 255 2
[<c02b4298>] (schedule+0x0/0x2d4) from [<c02b4040>] (__down+0x100/0x158)
[<c02b3f40>] (__down+0x0/0x158) from [<c02b3e2c>] (__down_failed+0xc/0x20)
r7:00000000 r6:c01fbd64 r5:c7cb7134 r4:c7d58000
[<c01fa6fc>] (CardDetectHelperFunction+0x0/0x1ac) from [<c01fbd80>] (HelperLaunch+0x1c/0x28)
r5:c7cb7134 r4:c7cb7134
[<c01fbd64>] (HelperLaunch+0x0/0x28) from [<c005bbd0>] (kthread+0x60/0x94)
r4:c7d58000
[<c005bb70>] (kthread+0x0/0x94) from [<c0048f7c>] (do_exit+0x0/0x744)
r6:00000000 r5:00000000 r4:00000000
SDIO Helper D c02b4500 0 259 2
[<c02b4298>] (schedule+0x0/0x2d4) from [<c02b4040>] (__down+0x100/0x158)
[<c02b3f40>] (__down+0x0/0x158) from [<c02b3e2c>] (__down_failed+0xc/0x20)
r7:c0382bb4 r6:c0382b34 r5:c7d5a000 r4:00000001
[<c01f9104>] (SDIOIrqHelperFunction+0x0/0x29c) from [<c01fbd80>] (HelperLaunch+0x1c/0x28)
r8:00000000 r7:00000000 r6:c01fbd64 r5:c0382bb4 r4:c0382bb4
[<c01fbd64>] (HelperLaunch+0x0/0x28) from [<c005bbd0>] (kthread+0x60/0x94)
r4:c7d5a000
[<c005bb70>] (kthread+0x0/0x94) from [<c0048f7c>] (do_exit+0x0/0x744)
r6:00000000 r5:00000000 r4:00000000
This fixes them to use interruptible sleep primitives while waiting in
their main loops, as is conventional for kernel threads. They can't
actually be interrupted since kernel threads ignore all signals, but
by sleeping this way they get classified as long term waiters, and
don't get counted as running for purposes of load average calculation.
This is intended as a minimal fix. In the longer term, it'd probably
make sense to replace the semaphores with completions or something,
and to do away with some of these StudlyCapped wrapper functions.
Signed-off-by: Jason Uhlenkott <jasonuhl at jasonuhl.org>
--
This is untested, but what could possibly go wrong? ;)
commit 977e7a53345b7849f4f584d5042813587175810d
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:59 2008 +0100
introduce-BANKCON-meddling-sysfs.patch
A few questions have been flying around about how optimal
our waitstates are for various things including Glamo.
This patch introduces new sysfs nodes
/sys/devices/platform/neo1973-memconfig.0/BANKCON0
...
/sys/devices/platform/neo1973-memconfig.0/BANKCON7
If you cat them you get translated info about bus speed on
that chip select, eg,
# cat /sys/devices/platform/neo1973-memconfig.0/BANKCON1
BANKCON1 = 0x00000A40
Type = ROM / SRAM
PMC = normal (1 data)
Tacp = 2 clocks
Tcah = 0 clocks
Tcoh = 1 clock
Tacc = 3 clocks
Tcos = 1 clock
Tacs = 0 clocks
You can write them in hex too
# echo 0x200 > /sys/devices/platform/neo1973-memconfig.0/BANKCON1
The write format for BANKCON0 - 5 looks like this
b1..b0 PMC Page Mode Config
b3..b2 Tacp Page Mode Access Cycle
b5..b4 Tcah Address hold after CS deasserted
b7..b6 Tcoh CS hold after OE deasserted
b10..b8 Tacc Access Cycle Period
b12..b11 Tcos CS setup before OE asserted
b14..b13 Tacs Address setup before CS asserted
BANKCON 6 and 7 have two extra bits
b16..b15 MT Memory type (00=ROM/SRAM, 11=DRAM)
If it's ROM/SRAM, the rest of the bits are as described above.
For DRAM
b1..b0 SCAN Column address number
b3..b2 RAS to CAS delay
The patch is intended to let people experiement on their own. But
of course you will crash things for sure if the timing is wrong, and
you can also trash SD Card data if you make Glamo unstable, so remove
it or remount ro first. Other horrible things are possible, but
because the settings aren't sticky, you should always be able to
recover by either normal reboot usually or at worst NOR boot and then
dfu. Most likely you will just crash your session and have to reboot
if your settings are bad, but consider yourself warned bad things are
possible. :-)
Signed-off-by: Andy Green <andy at openmoko.com>
commit e3df0e199e5ee647178c8e81298afd1e97a137a4
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:59 2008 +0100
change-backlight-level-not-forced-up-on-resume.patch
We at least always enabled backlight on resume, this patch
changes us to set backlight back to last requested backlight
brightness level on resume. Note it means that you can
resume with screen blanked, but it should come back if that
happened with touchscreen action as usual.
/sys/class/backlight/pcf50633-bl/actual_brightness
and
/sys/class/backlight/pcf50633-bl/brightness
seem to agree after resume when reportedly they didn't before.
Signed-off-by: Andy Green <andy at openmoko.com>
commit db08c8cdcff92b0428ac325dfe7caa8687d923bb
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:59 2008 +0100
fix-no-uart-leak-when-gps-off.patch
During the suspend current reduction campaign on suspend I
forced the GPS UART to be GPIO and to drive 0 into the GPS
unit so we would not burn current there. On resume it lets
the pins act as UARTs again. But really, we should do this
all the time that the GPS unit is off, lest we leak it
enough power to hold internal state and make trouble.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 3184328b2fa682d2c432a91972c68b82fc12a49d
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:59 2008 +0100
add-pcf50633-allow-force-charger-type.patch
This patch adds a sysfs node:
/sys/class/i2c-adapter/i2c-0/0-0073/force_usb_limit_dangerous
it allows to force the charging limit regardless of the one chosen
by pcf50633 kernel driver. As such, if you write a charging limit
here that is not suitable for the power source, and the power source
is not current limited on its side, it could draw more current than
your power source can handle, burn down you house, etc.
If you're certain that your power supply can handle it, you can use
this on your own responsibility to make the amount drawn by the
PMU match what you believed your power supply could handle.
Example usage, in case where you have a dumb 500mA USB charger that
does not have the ID resistor:
# cat /sys/class/i2c-adapter/i2c-0/0-0073/charger_type
host/500mA usb mode 100mA <=== dumb charger does not ennumerate us
# echo 500 > /sys/class/i2c-adapter/i2c-0/0-0073/force_usb_limit_dangerous
# cat /sys/class/i2c-adapter/i2c-0/0-0073/charger_type
host/500mA usb mode 500mA
Signed-off-by: Andy Green <andy at openmoko.com>
commit 17ba988f4d70f38a3acb1aa251fce55ef5591c20
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:59 2008 +0100
fix-aux-key-level-by-gtaxx.patch
Reported-by: Mickey Lauer <mickey at openmoko.org>
AUX level detection is inverted based on GTA01 or 02
Signed-off-by: Andy Green <andy at openmoko.com>
commit 6a4741d29fd6eecb6cf576b8bb716e20526d6ab3
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:58 2008 +0100
fix-pcf50633-mask-second-on-resume.patch
We leave SECOND unmasked on resume, it's like the
situation at probe() time, but there it makes us
turn SECOND off after coldplug action. So we need
to act like after that has happened, not exactly
like what we do at probe / init time.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 95941d5960fd10a7751e57fa5c494708e28d4ce1
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:58 2008 +0100
From 3a32be40f78404d5f1185f0b3d6b5632381cb33f Mon Sep 17 00:00:00 2001
Subject: [PATCH] [neo1973 leds] Move from mutex to spinlock because we may not use mutexes
The led triggers may call set_brightness from atomic contexts. As
mutex_lock calls might_sleep and sleeping is not allowed in atomic contexts
we have to switch to spinlocks here.
Signed-Off-By: Holger Freyther <zecke at openmoko.org>
commit ef1c7d7188bbe408c982ccd34384e55e7a564fa7
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:58 2008 +0100
From cede5c6c9b06ecbb0f7f2df7b7070092b87ddaf8 Mon Sep 17 00:00:00 2001
Subject: [PATCH] [pcf50633] Avoid ooops on start with inserted usb cable
The pcf50633_global might not be initialized when we get the first
usb interrupt. We would oops inside the dev_err because we made up
a struct device.
Signed-Off-By: Holger Freyther <zecke at openmoko.org>
commit 3f85c445fc807ddbdeba624e3adf9a03b036b3d7
Author: Mike Westerhof <mwester at dls.net>
Date: Sun Aug 3 20:25:58 2008 +0100
commit 5f42e24d361cd83178fe8da9d68efbf41a011483
Add missing initialization for the touchscreen driver for the
gta01 platform.
Signed-off-by: Mike Westerhof <mwester at dls.net>
commit 6ee3400a2878355575c5f9b8e6fb4f18fee9f1d4
Author: Mike Westerhof <mwester at dls.net>
Date: Sun Aug 3 20:25:58 2008 +0100
Remove some bits of nspy + GSM flow control patches that leaked into stable
Signed-off-by: Mike Westerhof <mwester at dls.net>
commit 421b822adadbcb1596e64e091c9a2b83afa33f28
Author: Matt <matt_hsu at openmoko.org>
Date: Sun Aug 3 20:25:58 2008 +0100
add-ar6k-wake-interrupt.patch
Signed-off-by: Matt Hsu <matt_hsu at openmoko.org>
- add an interrupt for ar6k wifi module
commit 4cdda326089d9cb4b8ca144155a64a9a977628bb
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:58 2008 +0100
change-remove-kernel-charging-led-drive.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit d124d2628e40f0b24033a758bc4033344504d086
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:57 2008 +0100
From c221bb27c8e22daa451e26353140777223d397d2 Mon Sep 17 00:00:00 2001
Subject: [PATCH] [pcf50633] Report more events to userspace using the default callback
Signed-Off-By: Holger Freyther <zecke at openmoko.org>
commit 8b76e28dcccd01af1902b0da17e56bd32b2c2392
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:57 2008 +0100
From 5718bde77ed1a75e0fd2cdf5e099e66121d10c0a Mon Sep 17 00:00:00 2001
Subject: [PATCH] [battery] Make the bq27000 send an uevent when the charging state possible changed
Remove the todo entries from the pcf50633, make the mach-gta02
call the bq27000 driver from the pmu callback.
commit 5fa234932638c53f002639f08992aa0cd0d4b171
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:57 2008 +0100
From 000450f1ad2c713d2345a872fdf44f5dd3702e1b Mon Sep 17 00:00:00 2001
Subject: [PATCH] [janitor] make checkpatch.pl happy
commit a045bbac825d6e73672ed294e8ed804b1519a47e
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:57 2008 +0100
From 683ef8067815f6ba0ede73fa71973823726213a3 Mon Sep 17 00:00:00 2001
Subject: [PATCH] [janitor] Make checkpatch happy on the header files
commit 58f6035670ce52732429e88b6fa69f47cc0217de
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:57 2008 +0100
From ae3f72fc608fcd0a98a980a335ac4dc7ad95b221 Mon Sep 17 00:00:00 2001
Subject: [PATCH] [bq27000] Make the checkpatch.pl happy
commit 102e6f513f86a0b989ac4da8b3b9c689fccee7d2
Author: Andrzej Zaborowski <balrog at zabor.org>
Date: Sun Aug 3 20:25:57 2008 +0100
From 119f4e02ba81cffe4dbc88d8ff667048ad28d925 Mon Sep 17 00:00:00 2001
Subject: [PATCH] Hacky CONFIG_NO_IDLE_HZ (dyn-tick) support for S3C24xx.
commit 66954cb9ca437f50768a9aec3d5231bfbcf8ed73
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:57 2008 +0100
tracking-2.6.26-rc7-repeat-cdev-removal-pcf50633.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit ed844242536ebcfc94a47c0ae5580488d384c5f2
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:56 2008 +0100
tracking-defconfig-2.6.26-rc7.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit 5a1d30fb0e2626698c218d994583f4b62ffb300e
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:56 2008 +0100
introduce-resume-exception-capture.patch
This patch introduces a new resume debugging concept: if we
get an OOPS inbetween starting suspend and finishing resume, it
uses a new "emergency spew" device similar to BUT NOT REQUIRING
CONFIG_DEBUG_LL to dump the syslog buffer and then the OOPS
on the debug device defined by the existing CONFIG_DEBUG_S3C_UART
index. But neither CONFIG_DEBUG_LL nor the S3C low level configs
are needed to use this feature.
Another difference between this feature and CONFIG_DEBUG_LL is that
it does not affect resume timing, ordering or UART traffic UNLESS
there is an OOPS during resume.
The patch adds three global exports, one to say if we are inside
suspend / resume, and two callbacks for printk() to use to init
and dump the emergency data. The callbacks are set in s3c serial
device init, but the whole structure is arch independent.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 8c5148dc98fb6f1a5cd2d074aeff221b34332dbf
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:56 2008 +0100
fix-gsm-resume-problems.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit 034566bb81a07bfda60c85f0e0365f1714149a43
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:55 2008 +0100
fix-lis302dl-resume-and-init-reload-boot-coefficients.patch
Reported-by: John Lee <john_lee at openmoko.com>
We don't reset the devices either at init or resume, where init
means use the BOOT bit to reload device calibration coefficients
from internal EEPROM. John Lee saw brain-damaged behaviour after
resume and sometimes after boot (since it may not have lost power
to force a BOOT itself that makes sense).
This patch
- adds a diagnostic dump feature down /sys
- forces BOOT action on init and resume, and waits for
completion
- makes sure XYZ capture is enabled on resume
- adds some constants in the .h and removes some magic numbers
in the code by using them
Signed-off-by: Andy Green <andy at openmoko.com>
commit 7399543886d0c45af7694a96115bdcbe1408bba0
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:55 2008 +0100
fix-touchscreen-meddling-divde.patch
Reported-by: Holger Freyther <zecke at openmoko.org>
length can be zero... blowing a divide by zero exception...
which somehow I don't get (?) Anyway the code is wrong and
this should fix it.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 9a296c63b92952cb51f3dafbc88ae2d9495080d7
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:55 2008 +0100
touchscreen-meddling.patch
Touchscreen on GTA01-02 experiences noise on the channel that serves the
"tall axis" of the LCM. The sample quality of the other axis is good.
The bad samples have a characteristic of one shot excursions that can
reach +/- 20% or more of the sample average.
Previously, we had a simple averaging scheme going in the touchscreen
driver that summed up 32 x and ys and then divided it by 32. This patch
first tidies up the existing code for style, then adds a new "running
average" concept with a FIFO. The running average is separate from the
summing average mentioned above, and is accurate for the last n samples
sample-by-sample, where n is set by 1 << excursion_filter_len_bits in the
machine / platform stuff.
The heuristic the patch implements for the filtering is to accept all
samples, but tag the *previous* sample with a flag if it differed from
the running average by more than reject_threshold_vs_avg in either
axis. The next sample time, a beauty contest is held if the flag was
set to decide if we think the previous sample was a one-shot excursion
(detected by the new sample being closer to the average than to the
flagged previous sample), or if we believe we are moving (detected by
the new sample being closer to the flagged previous sample than the
average. In the case that we believe the previous sample was an
excursion, we simply overwrite it with the new data and adjust the
summing average to use the new data instead of the excursion data.
I only tested this by eyeballing the output of ts_print_raw, but it
seemed to be quite a bit better. Gross movement appeared to be
tracked fine too. If folks want to try different heuristics on top
of this patch, be my guest; either way feedback on what it looks like
with a graphical app would be good.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 7459e64fe6814bd9e98bc5507c341322b99e2f47
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:55 2008 +0100
introduce-panic-blink-led-not-using-userspace-omfg.patch
A panic is silent on GTA02, it would be good if we got a little hint
if we are crashing (eg, in suspend / resume) from a panic instead of
a deadlock, etc. On a normal PC i8042 blinks the keyboard lights if
we panic, this patch causes AUX to flash at 5Hz in event of a panic.
Tested by giving kernel fake root= that didn't exist.
Signed-off-by: Andy Green <andy at openmoko.com>
commit a667777ef24fd9df514a87654927668030b24863
Author: Andrzej Zaborowski <balrog at zabor.org>
Date: Sun Aug 3 20:25:54 2008 +0100
Subject: [PATCH] glamo: Don't disable hwcursor for blinking and use vsync-wait.
commit fdeba4cec12b92f4b1b951dab531783059927cac
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:54 2008 +0100
Subject: [PATCH] [a6k] Everyone calls SET_NET_DEV and hald needs that too,
make it happy
Call SET_NET_DEV to set a parent device. All other net drivers
are doing this and hald needs a parent to add the network device.
commit f27a0e0f52eb55e9a7b08fca619e5315d78e956e
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:54 2008 +0100
workaround-s3c24xx-i2s-stop-live-stream-stall-on-resume.patch
Reported-by: Graeme Gregory <graeme at openmoko.org>
Basically-solved-by: Graeme Gregory <graeme at openmoko.org>
Graeme found a while back that on resume, IISCON register in
s3c2442 does not show LRCK toggling in LRINDEX bit any more,
causing s3c24xx_snd_lrsync() to timeout and return an error,
aborting restart of any live stream that was playing at
suspend.
I confirmed it was true, meddled around for a bit looking
for some magic to restart LRCK or at least the reporting of
it, and in the end worked around it using the method noted
by Graeme: just ignore LRCK sync if it timed out. The worst
that could happen would be L and R swap for the duration of
stream that was suspended into but probably not even that.
Signed-off-by: Andy Green <andy at openmoko.com>
commit c15fb32e35f23a83931d78627a216d1a3a8c9881
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:54 2008 +0100
fix-pcf50633-use-pcf-not-data-in-probe-for-context.patch
Everywhere in the sources except the probe function the context
pointer is called "pcf"... in there it's called "data" for some
reason. This stops confusion by changing it to be "pcf" in there
as well.
Signed-off-by: Andy Green <andy at openmoko.com>
commit e2d1715afd55998ea28e5e240050bc83718579f3
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:54 2008 +0100
fix-pcf50633-migrate-gta02-peripherals-out.patch
pcf50633.c shouldn't know GTAxx at all. Move to using a
platform callback to allow definition of platform devices
with pcf50633 as parent device (good for enforcing suspend /
resume ordering). Remove all code references to GTAxx from
the sources (one string left for compatability).
Signed-off-by: Andy Green <andy at openmoko.com>
commit ea26d103be980d1f2296b21ec474d3d6317bf62c
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:54 2008 +0100
fix-pcf50633-platform-backlight-resume-ramp-setting.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit 006b17f799b5f468b76ff0830c021c9a4910f201
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:54 2008 +0100
fix-glamo-suspend-resume-dram-and-engines.patch
Two issues... we never took care to take down engines in suspend
and bring them back in resume. This was part of the display
corruption that could be seen briefly on resume. The other issue
that made the "noise" corruption was bad ordering of resume steps.
This patch simplifies (removing needless re-init) resume actions
and makes explicit the suspend and resume steps. It also adds
code to track which engines are up and push them down in suspend
and bring them back in resume.
The result is no more corruption of display buffer in suspend, it
comes back completely clean.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 440ef0e6ff9090a77adae34bc68464eb2354267d
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:53 2008 +0100
fix-pcf50633-really-defer-backlight-on-resume.patch
Backlight wasn't off by default on resume, so it was never really
deferred (until LCM is initialized). This fixes that and so removes
the brief white screen between pcf50633 resume and LCM init.
Signed-off-by: Andy Green <andy at openmoko.com>
commit dbc422c219968b8647475b21c01be5f699903972
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:53 2008 +0100
debug-backtrace-not-choke-on-null-dev_blah.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit 4b9e43cabf55f077adfb77ee565dd910eb4077f4
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:53 2008 +0100
fix-pcf50633-disable-irq-from-suspend-until-resume.patch
Disable pcf interrupt (not for wake, just as interrupt) in
suspend, re-enable it again just before we force-call the
workqueue function at end of pcf resume, which leads to
pcf interrupt source registers getting cleared so it can
signal an interrupt normally again.
This change ends the uncontrolled appearance of pcf interrupts
during resume time which previously caused the work to attempt
to use the I2C stuff before i2c host device had itself resumed.
Now the isr work is only queued, and the isr work function called,
definitively after pcf resume completes.
In suspend time, the work function may have been queued some
time before and be pending, and it could still show up at a
bad time. Therefore if the work function sees that it is
coming since the start of pcf50633 suspend function, it
aborts without attempting to read the pcf interrupt regs,
leaving them for resume to take care of.
USB current limit and no battery work functions are also made
aware of suspend state and act accordingly.
Lastly I noticed that in early resume, i2c_get_clientdata(&pcf->client)
returns NULL, presumably because i2c device is still suspended. This
could easily make trouble for async events like interrupt work,
since pcf pointer is the client data. Disabling appearance of the
work until after pcf50633 resume will also avoid that.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 68b5078c0d0fd09d5bcf14f8db858acce4a8faf3
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:53 2008 +0100
fix-pcf50633-suspend-state-as-enum.patch
Use an enum to define pcf50633 suspend / resume state.
Add PCF50633_SS_RESUMING_BUT_NOT_US_YET to be the state
early in resume: add platform driver resume function just
to set this state so we can differentiate between early
resume and late suspend.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 1aacd36cc4121e848d79cef574f1acea3b6cca65
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:53 2008 +0100
debug-i2c-s3c2410-dump-stack-on-suspended-tranfer.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit f35caf2d2016bf4fc6d4fdc4c7c8d46cbfad3762
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:53 2008 +0100
fix-allow-core-1v3-to-go-down.patch
Whoops left it up in suspend
Signed-off-by: Andy Green <andy at openmoko.com>
commit bc72f163abc9b535ecd2d84fb0dc5e7cc770c4b9
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:53 2008 +0100
fix-pcf50633-kill-white-splash-of-death-on-suspend.patch
mach-gta02 meddles with the regulator platform struct after
it is defined, leading to LCM power getting lost in suspend
despite I set it to be left up. Fixing this finally removes
the incredibly stubborn white LCM on suspend "flash".
This is also going to be implicated in Sean McNeil's
experience of monochromatic LCM after resume, which was
previously attacked by resetting and re-initing the LCM
from scratch.
In addition, I realized that we take down core_1v3 in
pcf50633 suspend action, this is happening near the
start of suspend, so we are in a meta-race to finish
suspend in a controlled way before the caps on core_1v3
run out (I only saw 23.3uF total). If it's true, this
is where the weirdo sensitivity to timing during
suspend is coming from.
Therefore in this patch we also remove sleeps and
dev_info() etc (which have to flush on serial console)
from the pc50633 isr workqueue if we are in pcf50633
driver suspend state 1, ie, suspending... because we
don't have time for it.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 4a6bbb380e54f43fe8e2a4ddd9f5cd276df864ea
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:53 2008 +0100
fix-pcf50633-add-back-gratuitous-isr-work-call-in-resume.patch
Sean McNeil reports that he doesn't get pcf50633 interrupts any
more after resume. This adds back the call to ISR work in
the resume, removal of which is probably to do with it.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 9ffe4209615ce53d534008043f2398102fc6b308
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:52 2008 +0100
fix-pcf50633-require-resume-level-3-for-irq-work.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit 71c46b222c204d10ba992beaea87853966096c9f
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:52 2008 +0100
add-remote-install-sdcard-script.patch
If you boot from SDCARD, this helper script for the build host
mounts SD card part 1, copies the new uImage.bin, umounts it and
then remounts SD card part 2 as ro, before doing a reboot all
in one step. Read the instructions inside the script for adding
your public key to the GTAxx rootfs for really really simple and
nice automatic update and reboot action.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 6f711ef047b5bfd7abd8636054286b99e5efec8e
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:52 2008 +0100
fix-gta02-mach-remove-gta01-lcd-reset.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit 0c6116f68fbcaf6ff98f0040b8f25fb6d0ab228d
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:52 2008 +0100
change-lcm-keep-power-faster-resume.patch
The LCM spins for 100ms during resume for not much reason. Leave it powered
(it is meant to pull uA when suspended) and get nice fast resume to video.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 450615d5212716112295722a5f6cb06dad0e5b5d
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:52 2008 +0100
fix-pcf50633-usb-curlim-workqueue-migration.patch
pcf50633 needs to take responsibility for managing current limit
changes asycnhrnously, ie, from USB stack enumeration. It's a feature of
pcf50633 not mach-gta02.c, and we can do better with taking care about
keeping it from firing at a bad time in there too.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 4fe5033b87562a28a65dc3a7a3d9613965094b8e
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:52 2008 +0100
fix-pcf50633-use-i2c-bulk-autoincrement.patch
Simplify and speed up bulk sequential I2C actions in pcf50633
the time savings are pretty considerable and so is the simplification
Signed-off-by: Andy Green <andy at openmoko.com>
commit 59cedd3d6915cdc9707a101947841ac4a52379ed
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:51 2008 +0100
fix-pcf50633-rtc-i2c-bulk-autoincrement-simplify.patch
More pcf50633 major time saving by using i2c bulk autoincrement. Code
reduction too by using array for time elements.
Signed-off-by: Andy Green <andy at openmoko.com>
commit d9922a319ab4ea97a1c867351048f69834f936e9
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:51 2008 +0100
fix-pcf50633-interrupt-work-enforce-wait-on-resume-completion.patch
Improve pcf50633 interrupt service scheduling to enforce only servicing
when resume action is completed
Signed-off-by: Andy Green <andy at openmoko.com>
commit d3621b9c5b6724869352761b90a8b70ac1c98fef
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:51 2008 +0100
fix-glamo-mci-resume-dependency-on-pcf50633.patch
Glamo MCI has a resume order dependncy on pcf50633, it has to be able to
power the SD slot via it.
Signed-off-by: Andy Green <andy at openmoko.com>
commit d2c0fe213c4274ec0dceb10095a4103d2246a93d
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:50 2008 +0100
fix-glamo-mci-power-setting-timeout-waiting-for-pcf50633.patch
Glamo MCI power setting stuff spins on pcf50633
but it won't hurt if it gives up after a second or
two instead of stalling the resume silently.
Signed-off-by: Andy Green <andy at openmoko.com>
commit b967efa9a25a55b3a082d3384720511d646fd224
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:50 2008 +0100
fix-jbt6k74-force-reset-suspend.patch
Sean McNeil reports that without the reset for LCM in suspend, he
gets a monochromatic mode on it somehow.
Signed-off-by: Andy Green <andy at openmoko.com>
commit ba670f6a663c884bd45f80b8c00a583deded5762
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:50 2008 +0100
fix-glamo-mci-relationship-with-pcf50633-suspend-resume.patch
After protecting pcf50633 read and write primitives against
operation after suspend or before resume (by blowing a
stack_trace()) I saw glamo-mci was trying to use pcf50633
at these bad times on its own suspend and resume. Since that
part was already done via platform callback, I added an
export in pcf50633 that tells you if it is ready or busy,
and used it to defer (resume power on case) or ignore
(suspend power off case, since pcf50633 already did it)
the mci power call.
Signed-off-by: Andy Green <andy at openmoko.com>
commit eefd5359db61437469761d5fa47e7858d464b683
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:50 2008 +0100
fix-pcf50633-suspend-resume-onehit-i2c-other-meddling.patch
- speed up suspend and resume by using one hit i2c bulk transactions
- don't bother storing int mask set on suspend, the default one is
what we use anyway
- put stack_trace() on pcf50633 low level access that fire if we
try to touch them before we resumed
- cosmetic source cleanup
- reduces resume time for pcf50633 from 450ms to 255ms
Signed-off-by: Andy Green <andy at openmoko.com>
commit 5af8126772c16a8d903712bbba294169572fa585
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:49 2008 +0100
debug-codec-register-setting-sysfs.patch
Allow direct setting of codec registers for super mega meddling power
Signed-off-by: Andy Green <andy at openmoko.com>
commit e6fb194fe8b8996581fec2a394c807ae5d85b4fe
Author: Sean McNeil <sean at mcneil.com>
Date: Sun Aug 3 20:25:49 2008 +0100
The following is a minor cleanup of backlight resume:
commit 13d58a9ea54ee946b9fb9c5df7713aef661d5f85
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:49 2008 +0100
add-use-pcf50633-resume-callback-jbt6k74.patch
Adds the resume callback stuff to glamo, then changes
jbt6k74 to no longer use a sleeping workqueue, but to
make its resume actions dependent on pcf50633 and
glamo resume (for backlight and communication to LCM
respectively)
Signed-off-by: Andy Green <andy at openmoko.com>
commit be980893b95fd1c1597883b59033174f9c34e275
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:49 2008 +0100
introduce-pcf50633-resume-dependency-list.patch
Adds resume dependency support to pcf50633
Signed-off-by: Andy Green <andy at openmoko.com>
commit 7632d2b49f3f34a565d3554a1ba4ca00a39f285f
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:49 2008 +0100
introduce-resume-dependency.patch
Defines a way for drivers to defer execution of resume callbacks
until one or more other driver they are dependent on has itself
resumed.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 2a2a969cdcf3ab4bc392ad3643d401417bb203cc
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:49 2008 +0100
introduce-charging-led-behaviour.patch
Creates a new behaviour requested by Will that the red LED on GTA02
is lit during battery charging.and goes out when the battery is full.
This is done by leveraging the PMU interrupts, but in one scenario
there is no interrupt that occurs, when the battery is replaced after
being removed with the USB power in all the while. So a sleepy work
function is started under those circumstances to watch for battery
reinsertion or USB cable pull.
100mA limit was not being observed under some conditions so this was
fixed and tested with a USB cable with D+/D- disconnected. 1A
charger behaviour was also tested.
Showing the charging action exposes some inconsistency in pcf50633
charging action. If your battery is nearly full, it will keep
charging it at decreasing current even after it thinks it is at
100% capacity for a long while. But if you pull that same battery
and re-insert it, the charger state machine in pcf50633 believe it is
full and won't charge it.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 34d3bb31e3b39ade2f87ca015712622137896b7e
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:48 2008 +0100
Subject: config-defconfig-2.6.26.patch
X-Git-Url: http://git.openmoko.org/?p=kernel.git;a=commitdiff_plain;h=7f52bae9664cbf006fe026d4dbbd5988137bd1cc
config-defconfig-2.6.26.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit 4b8c5ac33a0c810be9aad8bfd303ec1883d80e7b
Author: Andrzej Zaborowski <balrog at zabor.org>
Date: Sun Aug 3 20:25:48 2008 +0100
Subject: [PATCH] Hardware glamo-fb cursor, some clean-up.
commit 2bf8f0c5f2d52142b1b030132d572d5799a0f3f6
Author: Andrzej Zaborowski <balrog at zabor.org>
Date: Sun Aug 3 20:25:48 2008 +0100
Subject: [PATCH] Build fixes.
commit 2a7fddca3183729649c811f34bdb77eb75e97e4b
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:46 2008 +0100
Make ar6k not print soooo much to my console
From 4cb4c308fde9c1f3598046ff98191d14b62bc609 Mon Sep 17 00:00:00 2001
From: Holger Freyther <zecke at openmoko.org>
Date: Thu, 29 May 2008 00:09:32 +0200
Subject: [PATCH] [ar6k] silent++, removing -DDEBUG from the Makefile does not
work
commit 71b5ca137ab3d6e0e682f0db6031cc5debc6381b
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:46 2008 +0100
Fix possible null pointer dereference in s3c24xx_i2c_resume
From 0b9bae6aed5268707b348e48a01411ba420844e1 Mon Sep 17 00:00:00 2001
From: Holger Freyther <zecke at openmoko.org>
Date: Tue, 27 May 2008 14:41:35 +0200
Subject: [PATCH] [janitor] Fix possible null pointer dereference
Judging by the control flow of the resume method i2c->suspended++ could
lead to a null pointer dereference.
commit a57f6a4194e1b40a484b7851fbe17fe17578de77
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:46 2008 +0100
fix-remove-unused-model-name-bq27000.patch
Model name isn't in the bq27000 register set, remove the
claim that we can deliver it
Signed-off-by: Andy Green <andy at openmoko.com>
commit 5e3ecb04e57997cb20a0ab9d46cab0d1700066bc
Author: Andy Green <andy at opennoko.com>
Date: Sun Aug 3 20:25:45 2008 +0100
uplevel-samsung-camera-unit.patch
Update this old code to clk API, I2C changes, official GPIO API
various struct changes, explicit readl() writel(), DMA API changes.
Still not ready for actual use (eg, I2C) but a LOT closer.
Compiles on 2.6.24 without errors or warnings now.
Use CONFIG_S3C2440_CAMERA=y in .config
Signed-off-by: Andy Green <andy at openmoko.com>
commit fa7655a0ea8bbd563b0003d6ebf710dc14eae972
Author: SW.LEE <hitchcar at samsung.com>
Date: Sun Aug 3 20:25:45 2008 +0100
introduce-samsung-camera-unit-driver.patch
This is the kernel side of an old (2004) samsung camera driver for 2440
It doesn't compile on modern kernel yet, this patch introduces it into the
kernel tree without gross mods, so it is broken code we can start to work on
commit 051625cd1b6680f0f8295f93e3411cf01ab6f332
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:45 2008 +0100
add-gta01-resume-sysfs.patch
Adds the somewhat simpler resume source support for GTA01
since PMU is not a wake source
Signed-off-by: Andy Green <andy at openmoko.com>
commit 38586858e9b602c454320cb13531fb9bb6137bc8
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:45 2008 +0100
fix-reduce-wake-reasons-in-pcf50633.patch
Currently we are willing to wake from sleep from
pcf50633 interrupts we don't actually do anything about
even when we wake (somewhat puzzled).
Let's disable some of these wake sources.
Signed-off-by: Andy Green <andy at openmoko.com>
commit d5de536d868aa9bed183aca61082016319f27e6d
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:44 2008 +0100
add-resume-reason-sysfs.patch
If you have U-Boot with uboot-add-find-wake-reason.patch, this
patch will get you a wake reason report from
cat /sys/devices/platform/neo1973-resume.0/resume_reason
it looks like this:
EINT00_ACCEL1
EINT01_GSM
EINT02_BLUETOOTH
EINT03_DEBUGBRD
EINT04_JACK
EINT05_WLAN
EINT06_AUXKEY
EINT07_HOLDKEY
EINT08_ACCEL2
* EINT09_PMU
adpins
adprem
usbins
usbrem
rtcalarm
second
onkeyr
onkeyf
exton1r
exton1f
exton2r
exton2f
exton3r
exton3f
* batfull
chghalt
thlimon
thlimoff
usblimon
usblimoff
adcrdy
onkey1s
lowsys
lowbat
hightmp
autopwrfail
dwn1pwrfail
dwn2pwrfail
ledpwrfail
ledovp
ldo1pwrfail
ldo2pwrfail
ldo3pwrfail
ldo4pwrfail
ldo5pwrfail
ldo6pwrfail
hcidopwrfail
hcidoovl
EINT10_NULL
EINT11_NULL
EINT12_GLAMO
EINT13_NULL
EINT14_NULL
EINT15_NULL
This shows a problem, false wake from suspend due to battery full
Signed-off-by: Andy Green <andy at openmoko.com>
commit b8b39d6ced4f7cb411793fceda5bac35c2c8f165
Author: Andy Green <agreen at localhost.localdomain>
Date: Sun Aug 3 20:25:44 2008 +0100
fix-motion-sensor-corruption.patch
commit 4f847d6ce4e59bffe324a8903533552956a4a6f8
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:44 2008 +0100
Fixup hang on resume caused by the s3c2410 touch screen driver
From dc6d335b467646d802a21ea6b925ee97e83e07be Mon Sep 17 00:00:00 2001
From: Holger Freyther <zecke at openmoko.org>
Date: Thu, 15 May 2008 01:16:23 +0200
Subject: [PATCH] Do not use msleep in the resume path of s3c2410_ts as it
might lockup
For some reason msleep might set the only task running into a suspended
state and no timer will ever wake it up. Use mdelay to avoid this. I was not
able to understand the reasoning of sleeping after enabling the clock. So we
might just remove the msleep/mdelay at all and be fine.
Signed-Off-By: Holger Freyther <zecke at openmoko.org>
commit 70c4ac475e31df5919eecd887714d5f733737bf7
Author: Sean McNeil <sean at mcneil.com>
Date: Sun Aug 3 20:25:44 2008 +0100
fix-wep-needs-keys-before-ap.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit 232c0ee79c3fd268e18b866c141a00b6c01c2006
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:44 2008 +0100
fix-suspend-backlight-timing-pm-debug.patch
This patch improves the smoothness of suspend and resume action.
Taking out CONFIG_PM_DEBUG allows much more rapid resume (the low level
serial traffic appears to be synchronous)
Added a platform callback in jbt driver and support in pcf50633 so we
can defer bringing up the backlight until the LCM is able to process
video again (which must happen after the glamo is up and producing
video beacuse the LCM is hooked to glamo SPI)
GTA01 should not be affected by all this as the callback will default
to null and it is on pcf50606
Signed-off-by: Andy Green <andy at openmoko.com>
commit 1b5c7a68f452a613fd7f7fb02baec953c46fed7b
Author: matt_hsu <matt_hsu at openmoko.org>
Date: Sun Aug 3 20:25:44 2008 +0100
s3c24xx-pwm-platform-driver.patch
This patch is to register pwm as platform driver to keep the PWM-related
config when system is in suspend/resume. This could fix the following
issue after resume:
- HDQ read timeout
- LEDs blinked abnormally(if LEDs is driven by PWM)
Signed-off-by: Matt Hsu <matt_hsu at openmoko.org>
commit 2628658b187496917bf341201a255d6855acacc6
Author: Sean McNeil <sean at mcneil.com>
Date: Sun Aug 3 20:25:44 2008 +0100
fix-KEY_PHONE-up-down-inversion.patch
the KEY_PHONE is backwards. It returns up when pushed and down when
released. The following change fixes it:
Signed-off-by: Sean McNeil <sean at mcneil.com>
commit 2f5026808b54c14c57abf5cba56ed5b741704d4e
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:43 2008 +0100
tracking-2.6.26-rc1-sdio-pnp-changes.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit 31ad52a8a936eaf8cfbde988f15ae969e642c519
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:43 2008 +0100
tracking-2.6.26-rc1-remove-dupe-s3c2410_nand_update_chip.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit f810c9ff739f2ed04da01f4ee74ace692d412c81
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:43 2008 +0100
tracking-2.6.26-rc1-remove-input-dev-private-member.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit f5929e66d5460b812a6d27d58cbf8e716b9d01be
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:43 2008 +0100
config-update-2.6.21-rc1.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit 2ee3ee57d3ef1c565343f08454c91904bd823e3a
Author: Andy Green <agreen at localhost.localdomain>
Date: Sun Aug 3 20:25:43 2008 +0100
clean-sdio-hcd-suspend.patch
fix trailing whitespace and function args for suspend.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 81fcf0455b3a858da4c80b84f8a6dac43982998d
Author: Matt Hsu <matt_hsu at openmoko.org>
Date: Sun Aug 3 20:25:43 2008 +0100
From cc08b5986dfd8d971ee46ce7045fb7863f99a92a Mon Sep 17 00:00:00 2001
Subject: [PATCH] - add suspend/resume function of s3c24xx_hcd driver
Signed-off-by: Matt Hsu <matt_hsu at openmoko.org>
commit 46c620ec64b3fd68bd0141f0ca94d09e737a0dd0
Author: Reddog <reddog at mastersword.de>
Date: Sun Aug 3 20:25:43 2008 +0100
gta01-fix-resume-redo-par.patch
--> (http://bugzilla.openmoko.org/cgi-bin/bugzilla/attachment.cgi?id=595&action=view)
fix resume of fbdev BZ#79
I played a bit with the fbdev resume. With this patch the neo doesn't get this
white screen on resume from console and from X.
Signed-off-by: Reddog <reddog at mastersword.de>
commit 4908d613213b9ee9f84f46d04a73d65863abc343
Author: Mike Westerhof <mwester at dls.net>
Date: Sun Aug 3 20:25:42 2008 +0100
gta01-fix-jbt-platform-missing-members.patch
Created an attachment (id=594) / BZ#79
Add missing platform_data that caused the GTA01 to crash on suspend/resume
The interface to the jbt6k74 driver changed slightly; this patch adds the
missing platform_data for the GTA01. This prevents a crash while suspending.
This patch also makes some minor changes to cleanup and clarify some debug
messages.
Signed-off-by: Mike Westerhof <mwester at dls.net>
commit 73ae7b20c31654f9605cc602575e9d1d83c4d889
Author: Mike Westerhof <mwester at dls.net>
Date: Sun Aug 3 20:25:42 2008 +0100
gta01-gps-power-state-resume-preserve.patch
Created an attachment (id=593) / from BZ#79
Updated patch to preserve the power state of the GPS on the GTA01
Currently the GPS is powered up after a suspend/resume occurs. This patch will
only power the GPS back up if it was powered up when the GTA01 suspended.
Signed-off-by: Mike Westerhof <mwester at dls.net>
commit ab7873193b1fb6d1bfc4a217a16bddfd2057f8e2
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:42 2008 +0100
tracking-2.6.25-changed-s3c2410_dma_request-reurn.patch
s3c2410_dma_request used to return 0 for OK and something else
for error, now it returns -ve error code or +ve dma channel index + flag
Signed-off-by: Andy Green <andy at openmoko.com>
commit 58f9e997d388b197a96cb1827faf9d45d0496a34
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:42 2008 +0100
tracking-2.6.25-deprecated-includefile-wm8753.patch
<linux/driver.h> is just empty and is deprecated now
Signed-off-by: Andy Green <andy at openmoko.com>
commit 16657d6dde8ac3490a936b01d718a315bd8c655d
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:42 2008 +0100
tracking-2.6.25-upstream-s3c2410_gpio_irq2pin.patch
Holger got beaten to it on mainline, they provide a
s3c2410_gpio_irq2pin() instead of the name he used.
Signed-off-by: Andy Green <andy at openmoko.com>
commit d845c7aa52b0b7a4cf7bbb06f953e6f90a35c085
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:42 2008 +0100
tracking-2.6.25-struct-bus-type-loses-devices-member.patch
I don't know what device the symlink should be linked
against on GTA01, somebody that does know needs to edit
it in where it says "FIXME"... I think the supplied method
can work OK otherwise.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 5c1fb373a612bea4ccf5c8dac75deb9955c32011
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:42 2008 +0100
tracking-2.6.25-input_dev-cdev-union-removed.patch
struct input_dev in include/linux/input.h used to have a union
cdev which contained the associated device struct pointer. This
got simplified out in 2.6.25, so this patch removes cdev from
our drivers that used it before.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 6e630a0cae412a9531bc3887a35ea7cb590748c7
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:41 2008 +0100
add-defconfig-2.6.25
mostly built-in defconfig for 2.6.25
Signed-off-by: Andy Green <andy at openmoko.com>
commit 5bfe662d59871e86bec33bdbe48e90aeaf223ecf
Author: Mike Wester <mwester at dis.net>
Date: Sun Aug 3 20:25:41 2008 +0100
fix-gta01-pmu-irq-edge-lost-on-resume.patch
GTA01 -only
Restore power button functionality after resume operation
Per Werner's suggestion, run the PMU interrupt handler immediately after resume
to clear/handle any pending interrupts from that device. This appears to
resolve the dead-powerbutton-after-resume problem. This is not well-tested;
need feedback to see if there are any side-effects or other problems.
From BZ 1313
Signed-off-by: Mike Wester <mwester at dis.net>
commit b6c9ce96e7747f5453f797e2a1102c5073762c9c
Author: Mike Wester <mwester at dis.net>
Date: Sun Aug 3 20:25:41 2008 +0100
fix-gta01-spi-resume-patch
Patch to register the SPI device and thus the save/resume for the display
This patch does *NOT* resolve this problem, but it does make things a bit
better. The SPI device name changed with 2.6.24, and the change was made for
the gta02 but never propagated to the gta01. With this change, you'll now see
the entries for the spi bus and the display controller in /sys; and the display
controller suspend/resume functions will be called.
(via BZ 79)
Signed-off-by: Mike Wester <mwester at dis.net>
commit 9f429287fb25a14b66787d396b762fbe93758f9c
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:40 2008 +0100
fix-jack-interrupt-debounce-loss-window.patch
Make sure we can't lose a jack interrupt in debounce, despite it is
a one-in-a-million thing that just needs replug to clear
Signed-off-by: Andy Green <andy at openmoko.com>
commit b714d3a10149e285efa3bc3652fa8030f377aca4
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:40 2008 +0100
[neo] Every access to GPIO bank B has to go through the shadow code
- Any setting of any PIN on bank B will undo the LED setting.
Introduce neo1973_gpb_set_pin to set the PIN in a way not losing
the LED or any other shadowed setting.
- Update users of GPBXY for gta01 and gta02.
Signed-Off-By: Holger Freyther <zecke at openmoko.org>
commit b8e360d20c2ccef651bd8b1dd8b26f5364a58bbf
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:39 2008 +0100
[neo bluetooth] GTA01_GPIO_MODEM_RST != GTA02_GPIO_MODEM_RST
The bluetooth enable and modem reset switched the order in
gta02. Do not poke the bluetooth dongle when we want to reset
the modem.
Signed-Off-By: Holger Freyther <zecke at openmoko.org>
commit 3dcb3f82c1193bf50dc5b357a76232928bd5fe52
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:39 2008 +0100
[led] Misc fixes in the driver code
to_bundle returned the wrong data. The platform_device is the
parent of the class_device used by the LED device class. Return
the correct class.
num_leds was not set to the correct number of registered LEDs. All
loops using num_leds (e.g. module unloading) were not executed at
all.
On removal of the module disable all LEDs.
Signed-Off-By: Holger Freyther <zecke at openmoko.org>
commit 4d0d40d7522558d925466ce8112638022834e476
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:39 2008 +0100
[leds] We would enable PWM for all four timers, disable it for all four as well
Currently we do not use the PWM code to drive the LEDS. We have enabled the PWM
for four timer sources but disable it only for three, fix that up.
Signed-Off-By: Holger Freyther <zecke at openmoko.org>
commit ddc3f01a8f5c4a73291c9f0451191a0f2f630972
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:39 2008 +0100
Remove not needed #ifdef as machine_is_ is always defined.
If we build a kernel without gta01/gta02 the
machine_is_ macro will expand to (0) and the compiler will
optimize the if (0) {} away.
Signed-Off-By: Holger Freyther <zecke at openmoko.org>
commit 3af19c2b459c5dd046a8568321b4ede0dee50180
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:39 2008 +0100
OpenMoko => Openmoko
Signed-Off-By: Holger Freyther <zecke at openmoko.org>
commit f1c7b3f9c9b887f51517c8a4cb0734b874fca20a
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:39 2008 +0100
fix-jack-debounce.patch
Headphone jack detection is bouncy, it can trigger multiple interrupts
on insertion or removal. This patch adds a workqueue that waits out the
interrupt spew in 100ms units, and if it sees no more interrupts for 100ms
only then samples and reports the jack state. I was unable to get a bounce
after 20 or so tries after this.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 90f49f9b15f258d261e606a478b4eed6c8014c54
Author: warmcat <andy at warmcat.com>
Date: Sun Aug 3 20:25:39 2008 +0100
debug-glamo-add-lcd-regs-to-dump.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit 05cfecbe4875e89fa5791e9c481518183e636c3a
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:38 2008 +0100
fix-glamofb-cmd-mode-locking.patch
Glamo "cmd mode" is modal, but nothing took care about locking.
Also cmd mode was entered recursively in rotate_lcd().
Signed-off-by: Andy Green <andy at openmoko.com>
commit c55169a7ae31566a79e00cfb5e579a199330768c
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:38 2008 +0100
fix-glamofb-cmdqueue-timeout.patch
loglevl=9 can cause failure to init glamo-fb
problem seems to be too low timeout when text scrolling can
delay commandqueue going empty
Signed-off-by: Andy Green <andy at openmoko.com>
commit d615e51f981ca52ce69bf3a4d6ee8a2f5c735992
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:38 2008 +0100
fix-gsm-download-irq-balance-issue.patch
Only enable or disable the interrupt if we see we are in the opposing state.
Also force that damn GSM download signal deasserted on probe at the time we
set the logical state for it to deasserted.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 288b35b6bae4d843784574a36a1a73092bcdbd82
Author: warmcat <andy at warmcat.com>
Date: Sun Aug 3 20:25:38 2008 +0100
defconfig-audio.patch
Add in some audio config needed
Signed-off-by: Andy Green <andy at openmoko.com>
commit 236152e6a7db598cd701ff65e5fced10289aab15
Author: Sameo <sameo at openedhand.com>
Date: Sun Aug 3 20:25:38 2008 +0100
fix-wlan-disable.patch
see
http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=1288
commit 65bd3be71ca2647a88093881c949c35256748357
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:38 2008 +0100
Enable GPS only if it was powered on before suspending the device
Similar to the neo1974_pm_gsm.c keep a static struct around. On suspend
we will save the current power state, on resume we will use this
information to enable power of the GPS only when it was powered on before.
This is passing basic tests with screen /dev/ttySAC1 on suspend and resume.
Only do this for the GTA02 as I don't have a gllin setup for the GTA01
I wonder why the suspend and resume code is not using gps_pwron_set and why
for the GTA02 we need to keep the state of the GPIOs, this should be done
by the s3c code.
Signed-Off-by: Holger Frether <zecke at openmoko.org>
commit 576c3ae69c6672c6ecda4d584550578d09ba7a4c
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:38 2008 +0100
Fix the firing of "Jack"-Interrupts after resume when the modem is powered on.
GTA02_GPIO_nDL_GSM defaults to high/1. On resume do not enable the DL_GSM if
it was not enabled before. This is stopping the storm of interrupts.
Fix the logic in the download file handling. Downloads are disabled (0) when
the GTA02_GPIO_nDL_GSM is high (1). To enable downloading set
GTA02_GPIO_nDL_GSM to low (0, !on). Disable the jack interrupt while download
the is active. When disabling download we will get a couple of jack interrupts
but this is hardly avoidable.
Avoid reading the GPIO value if we do not even have a console set.
Signed-Off-by: Holger Freyther <zecke at openmoko.org>
commit 96f42941ecd06c572c3c8775ed5648aaa1a39836
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:37 2008 +0100
Fix spelling. flaoting => floating
Signed-Off-by: Holger Freyther <zecke at openmoko.org>
commit 6486b46f232e0054ef7477986c868e6979031b8f
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:37 2008 +0100
This is gta02 and not gta01. Do not call the vibrator led.
Signed-Off-by: Holger Freyther <zecke at openmoko.org>
commit 0256b9e41d1fbe4c53187db40d92c62b474281e3
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:37 2008 +0100
Add GPIO -> IRQ for the s3c2410 and add irq_to_gpio to the gpio.h of the Samsung SoC
Use this irq_to_gpio in the neo1973 keyboard driver
commit b2f92717dccade5917bffb6d81e5755d1384eb37
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:37 2008 +0100
Convert the driver to the generic GPIO framework
Signed-Off-by: Holger Freyther <zecke at openmoko.org>
commit 51b735329b45d409f8315a10b0ec96556a00e0fb
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:37 2008 +0100
Fix the FIXME, store the GPIO value for now
Signed-Off-by: Holger Freyther <zecke at openmoko.org>
commit 180ff20b27bbd6c0c69a3cfa31d5cd551b7f980c
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:37 2008 +0100
Remove dead code
Signed-Off-by: Holger Freyther <zecke at openmoko.org>
commit de427e2db647a3016dbb8d0b55f0e9b9e5206edd
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:37 2008 +0100
Simplify the code, there is no need for a branch. The code for
GTA01_GPIO_AUX_KEY looks odd.
Signed-Off-by: Holger Freyther <zecke at openmoko.org>
commit 817a4d45ffcdbca77e10f1f07d4f67035b23ed92
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:36 2008 +0100
add-pcb-rev-sysfs.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit 888091e5429598e844820c98905a55b11fd0067c
Author: warmcat <andy at warmcat.com>
Date: Sun Aug 3 20:25:36 2008 +0100
debug-glamo-dump-regs.patch
From: Andy Green <andy at openmoko.com>
Sigend-off-by: Andy Green <andy at openmoko.com>
commit e592c0b245153bc3cedcdc9f3e14cccf4094c4b2
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:36 2008 +0100
add-gta02-pcb-revision-detect.patch
Add function
int gta02_get_pcb_revision(void)
which returns state of GTA02 PCB revision pins. It is also called
and logged during boot with KERN_INFO. The results look like:
b9 b8 b2 b1 b0
GPD4 GPD3 GPD0 GPC15 GPC13
GTA02 A5 and before: 0x000
GTA02 A6 : 0x001
Signed-off-by: Andy Green <andy at openmoko.com>
commit 24d69458e1e6bad685a53e61997b5be4bb736f30
Author: Holger Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:36 2008 +0100
Do not send low level debugging to the modem
Hey,
I see no reason to send LL debugging messages to the modem. This can happen if
we compile the Samsung SoC with PM debugging as in andy's git branch.
From 452c17990dfeb9c2eb2ffa7ded4d24ddb1bcd4b2 Mon Sep 17 00:00:00 2001
From: Holger Freyther <zecke at openmoko.org>
Date: Sun, 23 Mar 2008 00:57:28 +0100
Subject: [PATCH] Never ever send debug messages to the modem. The serial
console is
on UART2, send the messages for decompressing and low level debugging
there.
Signed-Off-by: Holger Freyther <zecke at openmoko.org>
commit 571c015ee61515a001fa705bec21f54797aa7312
Author: warmcat <andy at warmcat.com>
Date: Sun Aug 3 20:25:36 2008 +0100
fix-suspend-gps-tx-level.patch
We used to drive output high into GPS unit in suspend
Signed-off-by: Andy Green <andy at openmoko.com>
commit b44dc41158de69f63cdfc8cd9e55b685f8ec3fb3
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:35 2008 +0100
fix-lis302dl-suspend-gpio.patch
Add platform stuff to deal with going in and out of suspend
so the motion sensor IO is not driving high into unpowered sensors
Signed-off-by: Andy Green <andy at openmoko.com>
commit 2605fba3861b95a7ea4536155815171d84f6bb3b
Author: Holger Hans Peter Freyther <zecke at openmoko.org>
Date: Sun Aug 3 20:25:35 2008 +0100
add-pcf50633-06-RTC_AIE-ioctl
Hey,
the legacy application 'atd' from Russ Nelson/Nils Faerber, used by Qtopia, to
schedule alarms currently fails to start as the the above ioctl is failing.
The other drivers in drivers/rtc implement the above ioctl and we can
implement it too.
The code to mask/unmask the RTC alarm is copied from the set_alarm routine and
adapted to use the reg_set_bit_mask and reg_set_clear_mask.
It is compiling, so it must work. Please welcome me the lkml way ;)
Signed-Off-by: Holger Hans Peter Freyther <zecke at openmoko.org>
commit a49095f79bf0eb5b8279406cda9983888cd1ab61
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:35 2008 +0100
fix-charging-deassert-host-power-1a-detect.patch
We don't take care to stop driving generated USB host power even
when we have a 1A charger connected on the same pins.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 29bb939d596502a071c836f251d4180f9e011557
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:34 2008 +0100
introduce-usb-host-power-control.patch
Unless I really really missed the point, there is no support for enabling
USB Host power for USB host mode. This patch adds a /sys node for GTA02
that allows control of the charge pump for 5V out on the USB mini connector
It doesn't change any logical mode in the CPU, just enables (1) and disables
(0) USB host power.
# cat /sys/devices/platform/neo1973-pm-host.0/hostmode
0
# echo 1 > /sys/devices/platform/neo1973-pm-host.0/hostmode
Signed-off-by: Andy Green <andy at openmoko.com>
commit 7e8be5190ecaaa9832eaafeb03b568232e79b329
Author: warmcat <andy at warmcat.com>
Date: Sun Aug 3 20:25:34 2008 +0100
fix-gpio-led-patch-still-pwm-t3.patch
Starting up all the PWMs seems to be needed for PWM3 operation
and FIQ / HDQ / VIB operation. But after starting, turn the
LEDs to GPIO-only.
Applies on top of Willie's patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit 4285ed271d7a0ff05b32978142a2992499f5c90e
Author: Willie <willie_chen at openmoko.com>
Date: Sun Aug 3 20:25:34 2008 +0100
use gpio control leds
commit 687831c11125b9ecdc4114cde127e38878a80c40
Author: warmcat <andy at warmcat.com>
Date: Sun Aug 3 20:25:34 2008 +0100
fix-glamo-mci-fake-reset-opcode-in-suspend.patch
commit 0c9ae8421bd25858f883f766978d1aeba4809145
Author: warmcat <andy at warmcat.com>
Date: Sun Aug 3 20:25:34 2008 +0100
fix-lcm-reinit-post-resume.patch
commit 27f0c94484f9029e299150a315f58c7ca11e9e14
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:34 2008 +0100
fix-glamo-mci-defeat-ops-during-suspend.patch
We need to be able to use the config option CONFIG_MMC_UNSAFE_RESUME that allows the rootfs
to live on SD. But when we use this, it tries to send a reset command to the SD card during
suspend -- and unfortunately many things like Power have suspended by then.
This patch again rejects IO on the MMC device during suspend of the MMC device, and it
gives the result the rootfs on SD card works okay.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 59c8522feccca7fab693be6ab8917cec0d9d1245
Author: warmcat <andy at warmcat.com>
Date: Sun Aug 3 20:25:33 2008 +0100
config-add-alsa.patch
commit 35f4c6eed680001786edf6e4a2ab36b4c1e81ccf
Author: warmcat <andy at warmcat.com>
Date: Sun Aug 3 20:25:33 2008 +0100
fix-s3c2410_timer_setup-resume-BUG.patch
commit 449317c386969e00a5fe21bdaac3c16df648845b
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:33 2008 +0100
debug-suspend-dump-gpio-states-add-GPA.patch
Add support for GPA[] GPIO bus since we have some NCs
but they seem to output-only IO cells so no matter
Signed-off-by: Andy Green <andy at openmoko.com>
commit 77bf29a97a497be996fc08fd3e9534641d4962e7
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:33 2008 +0100
introduce-bq27000-battery-driver.patch
This is a driver for the bq27000 found in the Highcell A5
battery, and the platform device stuff for it for GTA02. It
is a Power Supply Class battery device.
The driver doesn't contain an HDQ engine but accepts pointers
from the platform data to the HDQ action routines; our
platform data plugs it into the FIQ HDQ engine stuff.
The Power Supply class exposes the battery down /sys so you
can find out battery status by doing the equivalent of this
bash command
for i in capacity charge_full current_now present status technology temp time_to_empty_now time_to_full_now type voltage_now ; do echo -n "$i " ; cat /sys/devices/platform/bq27000-battery.0/power_supply/bat/$i ; done
Here is the kind of result you get from a battery discharging
capacity 0
charge_full 1215585
current_now 183375
present 1
status Discharging
technology Li-ion
temp 276
time_to_empty_now 0
time_to_full_now 3932100
type Battery
voltage_now 2761000
Note that temp is in 1/10 degrees C, other values are in uV,
uA, uW. The time_to_* reported are bogus, but that is what
the battery actually reports.
We can make more mappings to entries in power_supply class
but this is enough to get started with.
Signed-off-by: Andy Green <andy at openmoko.com>
commit f6409c2cdf0ce992960e11a087f9358024b02e6e
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:25:33 2008 +0100
introduce-fiq-hdq.patch
This adds a platform driver and device which performs HDQ
battery protocol using a single GPIO pin which is set
through platform data.
HDQ has some hard latency requirements which can't
be met if interrupts are enabled, so normally using
a GPIO for this will require blocking out all other
interrupts and processes for several milliseconds
per register being read or written.
This HDQ protocol engine is a FSM implemented inside the
the FIQ ISR and regulated by timer interrupts happening
at 20us intervals. The path through the FSM on any
"clock" is very short and should be over with in ~
1us. Because FIQ has guaranteed latencies of <1us,
it means we can service the HDQ protocol without
blocking interrupts or any other process other than
the caller that is waiting for the result. It's pretty
cool performance from 1 GPIO ;-)
Due to it being hard to do locking from the FIQ ISR
the code simply sleeps 10ms or whatever the scheduler
gives it and checks if the transfer took place yet.
This platform driver doesn't have any knowledge about
the device it is talking to, it just knows it is a
HDQ device. It exports three functions for read, write
and confirming HDQ is initialized. It also exports two
/sys nodes that are usable by humans, one dumps the whole
127 register HDQ register space
# cat /sys/devices/platform/gta02-hdq.0/hdq/dump
00 44 55 00 00 00 ba 04 a2 0d 50 00 00 00 00 00
00 00 9a 1a 00 00 ff ff ff ff 29 00 00 00 80 2b
00 00 00 00 00 00 ff ff 00 00 00 00 00 32 af 06
a0 d8 37 4e 00 00 00 00 00 00 00 34 2e 03 b4 e7
00 00 06 00 41 00 4c 02 00 00 00 00 00 00 00 00
83 02 00 00 94 09 59 b9 a5 0d 7f 21 00 00 7a ff
df ff 62 ff a7 04 2e 05 00 00 00 01 00 07 00 00
2a 78 36 67 7b b5 1b a9 af 19 38 89 63 57 42 7c
#
and the other allows to set one register
# echo 2 170 > /sys/devices/platform/gta02-hdq.0/hdq/write
writes 0xAA into register 2.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 237f0cad6896b9decd5f3aeaf7896ab24a151a50
Author: warmcat <andy at openmoko.com>
Date: Sun Aug 3 20:25:33 2008 +0100
clean-snip-gpio-reinit.patch
These are initialized already
Signed-off-by: Andy Green <andy at openmoko.com>
commit cd5ade6e92617193165c0f01e1fae7395ed64c70
Author: warmcat <andy at openmoko.com>
Date: Sun Aug 3 20:25:33 2008 +0100
bugfix-deglitch-gpio-output-enable.patch
commit bb19155ca43a1520791f0da17078fd44dcc74b5c
Author: Mike Montour <mail at mmontour.net>
Date: Sun Aug 3 20:25:32 2008 +0100
contrib-fix-chgstate-array-bloat.patch
--- linux-2.6.22/drivers/i2c/chips/pcf50606.c.orig 2008-01-17 22:30:16.000000000 -0800
+++ linux-2.6.22/drivers/i2c/chips/pcf50606.c 2008-01-17 22:31:43.000000000 -0800
@@ -71,12 +71,19 @@
I2C_CLIENT_INSMOD_1(pcf50606);
-#define PCF50606_F_CHG_FAST 0x00000001 /* Charger Fast allowed */
-#define PCF50606_F_CHG_PRESENT 0x00000002 /* Charger present */
-#define PCF50606_F_CHG_FOK 0x00000004 /* Fast OK for battery */
-#define PCF50606_F_CHG_ERR 0x00000008 /* Charger Error */
-#define PCF50606_F_CHG_PROT 0x00000010 /* Charger Protection */
-#define PCF50606_F_CHG_READY 0x00000020 /* Charging completed */
+#define PCF50606_B_CHG_FAST 0 /* Charger Fast allowed */
+#define PCF50606_B_CHG_PRESENT 1 /* Charger present */
+#define PCF50606_B_CHG_FOK 2 /* Fast OK for battery */
+#define PCF50606_B_CHG_ERR 3 /* Charger Error */
+#define PCF50606_B_CHG_PROT 4 /* Charger Protection */
+#define PCF50606_B_CHG_READY 5 /* Charging completed */
+
+#define PCF50606_F_CHG_FAST (1<<PCF50606_B_CHG_FAST) /* Charger Fast allowed */
+#define PCF50606_F_CHG_PRESENT (1<<PCF50606_B_CHG_PRESENT) /* Charger present */
+#define PCF50606_F_CHG_FOK (1<<PCF50606_B_CHG_FOK) /* Fast OK for battery */
+#define PCF50606_F_CHG_ERR (1<<PCF50606_B_CHG_ERR) /* Charger Error */
+#define PCF50606_F_CHG_PROT (1<<PCF50606_B_CHG_PROT) /* Charger Protection */
+#define PCF50606_F_CHG_READY (1<<PCF50606_B_CHG_READY) /* Charging completed */
#define PCF50606_F_CHG_MASK 0x000000fc
#define PCF50606_F_PWR_PRESSED 0x00000100
@@ -1026,12 +1033,12 @@
static DEVICE_ATTR(chgmode, S_IRUGO | S_IWUSR, show_chgmode, set_chgmode);
static const char *chgstate_names[] = {
- [PCF50606_F_CHG_FAST] = "fast_enabled",
- [PCF50606_F_CHG_PRESENT] = "present",
- [PCF50606_F_CHG_FOK] = "fast_ok",
- [PCF50606_F_CHG_ERR] = "error",
- [PCF50606_F_CHG_PROT] = "protection",
- [PCF50606_F_CHG_READY] = "ready",
+ [PCF50606_B_CHG_FAST] = "fast_enabled",
+ [PCF50606_B_CHG_PRESENT] = "present",
+ [PCF50606_B_CHG_FOK] = "fast_ok",
+ [PCF50606_B_CHG_ERR] = "error",
+ [PCF50606_B_CHG_PROT] = "protection",
+ [PCF50606_B_CHG_READY] = "ready",
};
static ssize_t show_chgstate(struct device *dev, struct device_attribute *attr,
commit 069d1061028e81837baec037c78a43cb0e84178b
Author: warmcat <andy at warmcat.com>
Date: Sun Aug 3 20:25:32 2008 +0100
local-config-ext2.patch
commit debab2685c5ecfc8c4406d6cecec95a27a1d523f
Author: warmcat <andy at warmcat.com>
Date: Sun Aug 3 20:25:32 2008 +0100
local-config-pmu.patch
commit aa53da13b12b5e2a7523f270688ec4af0bbb9484
Author: warmcat <andy at openmoko.com>
Date: Sun Aug 3 20:25:32 2008 +0100
local-config-defconfig-motion-sensor-gpio.patch
commit e6127c209cb4f47aeb032a5282edc69bc5d804da
Author: warmcat <andy at warmcat.com>
Date: Sun Aug 3 20:25:32 2008 +0100
local-config-wlan-config-changes.patch
commit d2cd3102d43c893d4288686345005acdbecd0c59
Author: warmcat <andy at openmoko.com>
Date: Sun Aug 3 20:25:32 2008 +0100
local-config-add-bluetooth-monolithic.patch
Add Bluetooth in monolithic kernel
commit b6c3070425a50c2351089d7c27a802325c99c729
Author: warmcat <andy at warmcat.com>
Date: Sun Aug 3 20:25:32 2008 +0100
local-config-add-vfat-nls-to-kern.patch
SD Card / VFAT in monolithic kernel
Signed-off-by: Andy Green <andy at openmoko.com>
commit 99596e8fc77df24e253d45d2f03512422ec50a98
Author: warmcat <andy at warmcat.com>
Date: Sun Aug 3 20:25:31 2008 +0100
local-update-defconfig-for-2.6-dev.patch
Make a defconfig for 2.6.24 out of the current 2.6.22.5 one
From: warmcat <andy at warmcat.com>
commit 11a2d493044432e114ab6becdfab730ad19adb1a
Author: warmcat <andy at warmcat.com>
Date: Sun Aug 3 20:25:31 2008 +0100
local-build-new-dfu-vid.patch
Update to new DFU VID for A5
Signed-off-by: Andy Green <andy at openmoko.com>
commit cd6a016f5d62a8b15d8f1ea3ba1b42151b4ddcca
Author: warmcat <andy at warmcat.com>
Date: Sun Aug 3 20:25:31 2008 +0100
local-build-scripts.patch
Add a couple of handy scripts to crossmake and send over dfu
From: warmcat <andy at warmcat.com>
commit 59a9b075b0aaf4cc181df8d3ff1cbbf2213ec993
Author: warmcat <andy at warmcat.com>
Date: Sun Aug 3 20:25:30 2008 +0100
local-add-defconfig.patch
Adds svn defconfig
From: warmcat <andy at warmcat.com>
commit f1d6cf628bcdc76a55d95675556ea20645d4108a
Author: Andy Green <andy at openmoko.com>
Date: Sun Aug 3 20:24:34 2008 +0100
fix-wm8753-DBG.patch
Signed-off-by: Andy Green <andy at openmoko.com>
commit df0ddcb9c5be91c9db848763a8b401be9c5919ab
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:33 2008 +0100
glamo-cmdqueue-bandaid.patch
[ Stop kernel from hanging every once in a while during Glamo
initialization. ]
debug-glamo-fb-cmdqueue-wait-timeout.patch
From: warmcat <andy at warmcat.com>
commit ef5137a8b9500aa8dc9bcb121475f4f96554f15f
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:33 2008 +0100
gta02-sound-bandaid.patch
http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=1172
This patch seems to alleviate the symptoms but doesn't cure them.
Keep it to keep development going, until we have a proper solution.
commit 6f63c67a4fdafca37dc386a1c8bc9cc730279507
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:32 2008 +0100
suspend-prelim1.patch
commit 1c9f8f831b5cf3aa7a45322a660c394a1cd3f15a
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:31 2008 +0100
gta01-dehang-printk.patch
This is a temporary work-around Mike Westerhof for this bug:
http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=788
See also
http://lists.openmoko.org/pipermail/openmoko-kernel/2008-February/000804.html
(It's the 2nd option.)
We may settle on a different solution in the future, depending on
feedback from upstream.
commit 9eb46ddda94cbe1a60ac64c994b371349fa6aa5c
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:31 2008 +0100
fix-pcf50633-LOWBAT-kill-init.patch
commit 0fca57b3a4e5fbbadefdff0ffc7735eaeb83c0d2
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:31 2008 +0100
fix-pcf50606-LOWBAT-kill-init.patch
commit e8aca99336e4d975b3b2c1e98f8b84ebf65296d2
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:31 2008 +0100
fix-hwecc-2410.patch
S3C24xx ECC mis-calculates the bit to flip:
http://lists.infradead.org/pipermail/linux-mtd/2007-October/019586.html
If the error couldn't be corrected, we returned "no problem" :-(
http://lists.infradead.org/pipermail/linux-mtd/2007-October/019615.html
Signed-off-by: Werner Almesberger <werner at openmoko.org>
commit 82368bf18ef33bfaa43f9bb319fc4f04bf192f3b
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:29 2008 +0100
atheros_2_0_sdio_stack.patch
commit 0057260f24c782e253193bfaba5061e0da9bed23
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:29 2008 +0100
atheros_2_0_hcd.patch
commit 5642721135a834d99d68ad0ac5baa90564bb07e1
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:29 2008 +0100
atheros_2_0_function.patch
commit 0453cd716bad1ef6f93079bdfb972f2d0a046fb7
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:29 2008 +0100
pnp_fixes.patch
commit cba4c16ad382ee1f566560a20185c22b243f0d1d
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:28 2008 +0100
s3c2410-usb-switch.patch
commit f51327d156b69a7a5e6c2a5c08df698fcc1151c0
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:28 2008 +0100
fix-EVIOCGRAB-semantics.patch
commit a47fa22a94d9514f5071e6ad01ee78256512eeeb
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:28 2008 +0100
bq27000-battery-driver.patch
commit cac0d500a655fe9bba8eaf4597b6b435198beaba
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:27 2008 +0100
fiq-hdq.patch
commit 9c75e2203981fc0391bc5122d375f900606f9c62
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:26 2008 +0100
introduce-fiq-migrate-vibrator-gta02-only.patch
On GTA02 we use FIQ to manage the vibrator IO now. That
is necessary because we stole timer3 from doing hw pwm
for vibrator. This keeps the same UI in /sys but does
"bitbang pwm" on the same vibrator GPIO
From: Andy Green <andy at openmoko.com>
Signed-off-by: Andy Green <andy at openmoko.com>
commit e4f40c324728d139629dfd07dc80ee25d5fd786a
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:26 2008 +0100
introduce-fiq-use-timer3-as-source.patch
This makes the FIQ stuff specific to one of the timers on the
s3c244x and adds the platform stuff for fiq in the gta02 init
Currently one sysfs node is exposed, a count of FIQ events
cat /sys/devices/platform/sc32440_fiq.0/fiq/count
From: Andy Green <andy at openmoko.com>
Signed-off-by: Andy Green <andy at openmoko.com>
commit b4f2e8333885bed2fcbe37381031b2d20302f1a0
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:26 2008 +0100
introduce-fiq-basis.patch
Adds a C-based FIQ ISR which is very convenient (and unusual --
normally you have to do FIQ ISR in assembler only).
Based on my article:
http://warmcat.com/_wp/2007/09/17/at91rm9200-fiq-faq-and-simple-example-code-patch/
Implemented as a platform device and driver.
Suspend / resume is tested and works.
Signed-off-by: Andy Green <andy at warmcat.com>
commit ab11ca83876501c18c3009f75aaba06bf4f44322
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:26 2008 +0100
fail-unless-uimage.patch
Fail the build noisily if "mkimage" can't be found, e.g., if we forgot to add
the u-boot directory to PATH.
commit c5fc2243e60d34da5924d4eb9516ead2d17e784c
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:24 2008 +0100
s3c2410-qt2410-buttons.patch
commit 7f8d728ed0e670c1313777a50675d73be0e1d6a4
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:24 2008 +0100
qt2410-cs8900.patch
commit 89b963aa329ba19107b472da4060b582ab9c9439
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:24 2008 +0100
s3c2440-nand-disable-hwecc.patch
Disable the hardware ECC checking on S3C2440 based platforms (HXD8, SMDK2440,
GTA02) for the time being, since our u-boot doesn't yet support it for 2k page
size NAND
commit 643a1cd4b3e9c7f2f2d02bfd15a99e74ab3b6d93
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:24 2008 +0100
input-nots-mousedev.patch
This patch disables the reporting of touchscreen-like devices via
/dev/input/mice. In the Neo1973 (much like other handheld devices),
we need this to distinguish between the touchscreen (which uses tslib)
and optional additional usb/bluetooth mice that might be attached.
Signed-off-by: Harald Welte <laforge at openmoko.org>
commit 71eddb29b70a8d10b928624461534c3cd125d32f
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:24 2008 +0100
s3c2410_serial-nodebug.patch
commit d7f4b99b44f63b3a739f4fc0416c346f26143b27
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:24 2008 +0100
pm-debug_less_verbose.patch
commit afbe6d8af40e380ca8861746e7cd9416eb6b71a5
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:23 2008 +0100
config-nr-tty-devices.patch
commit f9c27b5dea7fa4510a5bbab74b3c75a0a8c6eaa5
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:23 2008 +0100
openmoko-logo.patch
commit d7aeaf172cb002f2860feedef160de9d38d82fd0
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:23 2008 +0100
gta02-bt-fixes.patch
Modify GTA02 power manager for bluetooth.
1. Default power value isn't correct. Now we set pcf50633 LDO4 to 3.2 voltage.
2. Separate GTA01 and GTA02 source code.
3. Add pcf50633 API for enable register.
commit c9d7dbe2e8f9d7562f8a97ffa23780fa2a0b2858
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:23 2008 +0100
pcf506xx.patch
Moved shared PMU code from pcf50606.h and pcf50633.h (which prevented inclusion
of both at the same time) to pcf506xx.h
- include/linux/pcf50606.h (struct pmu_voltage_rail, enum pmu_event, pmu_cb):
moved to pcf506xx.h
- include/linux/pcf50633.h (struct pmu_voltage_rail, enum pmu_event, pmu_cb):
moved to pcf506xx.h
Signed off-by: Werner Almesberger <werner at openmoko.org>
commit b5c010dc3e36c0358f037031ea63dd77a25e496e
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:22 2008 +0100
gta02-acc.patch
commit 76e26de507f8a49fb363f327ad986890cf38a5c7
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:22 2008 +0100
gta02-leds.patch
commit f4ded935c1e77d0adb4a6e97da556c03750e67f6
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:22 2008 +0100
lis302dl.patch
This is a Linux driver for the STmicro LIS302DL 3-axis accelerometer.
Signed-off-by: Harald Welte <laforge at openmoko.org>
commit 0086a0dea82fb96d2f79fa58db54eabdf88074cd
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:22 2008 +0100
gta02-sound.patch
commit 37a53ee28312259cf0b363adbba1fe4bffed3fad
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:21 2008 +0100
gta02-power_control.patch
commit 499886622d90afc78b54563bac6ba5b120ddde3f
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:21 2008 +0100
gta02-core.patch
commit 6b456161384181f9c657bbbaf8ae45ccbbb3a4d4
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:21 2008 +0100
glamo-mmc.patch
commit 6a930ca1843630f13fcdf75724db2bb84b23b7c8
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:21 2008 +0100
smedia-glamo.patch
[ FIXME:
include/asm-arm/arch-s3c2410/irqs.h shouldn't contain device-specific
changes. ]
This is a Linux kernel driver for the Smedia Glamo336x / Glamo337x
multi-function peripheral device.
Signed-off-by: Harald Welte <laforge at openmoko.org>
commit 5a56cd9a437330d6aa30fc316fe3d2ee1852bca7
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:20 2008 +0100
pcf50633-suspend-hacks.patch
commit eb102226ae5b57f2a704335305dc5ee8753fb0bf
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:19 2008 +0100
pcf50633.patch
commit 1f2de9e10daa65911c57dae314d5a18f14e0ad1e
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:19 2008 +0100
s3c2442b-cpuid.patch
Add the Samsung S3C2442B CPU idcode to the samsung s3c24xx platform code
and fix a Kconfig typo related tot the 2442.
commit 6a9056d5bffb2174543666d4c46a40cf47dcf1c5
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:19 2008 +0100
s3c2410_udc-2440_dual_packet-workaround.patch
This is a patch that seems to make the USB hangs on the S3C2440 go away. At
least a good amount of ping torture didn't make them come back so far.
The issue is that, if there are several back-to-back packets,
sometimes no interrupt is generated for one of them. This
seems to be caused by the mysterious dual packet mode, which
the USB hardware enters automatically if the endpoint size is
half that of the FIFO. (On the 2440, this is the normal
situation for bulk data endpoints.)
There is also a timing factor in this. I think what happens is
that the USB hardware automatically sends an acknowledgement
if there is only one packet in the FIFO (the FIFO has space
for two). If another packet arrives before the host has
retrieved and acknowledged the previous one, no interrupt is
generated for that second one.
However, there may be an indication. There is one undocumented
bit (none of the 244x manuals document it), OUT_CRS1_REG[1],
that seems to be set suspiciously often when this condition
occurs. There is also CLR_DATA_TOGGLE, OUT_CRS1_REG[7], which
may have a function related to this. (The Samsung manual is
rather terse on that, as usual.)
This needs to be examined further. For now, the patch seems to do the
trick.
Note that this is not a clean solution by any means, because we
might potentially get stuck in that interrupt for quite a while.
commit 9d5f67cd8fa46ad81783df7554e1deaaa241e525
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:19 2008 +0100
s3c24xx-nand-largepage.patch
MTD: S3C24XX large page NAND support
This adds support for using large page NAND devices
with the S3C24XX NAND controller. This also adds the
file Documentation/arm/Samsung-S3C24XX/NAND.txt to
describe the differences.
Signed-off-by: Ben Dooks <ben-linux at fluff.org>
commit e893ea4d96b4a12bee0d686a6ffe190841a11c41
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:19 2008 +0100
s3c_mci-gta01.patch
commit 97dea51aae603b6b6810124c54efa1d1958b0b97
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:18 2008 +0100
s3c_mci.patch
This is a MMC/SD driver for the Samsung S3C24xx SD/MMC controller, originally
developed years ago by Thomas Kleffel <tk at maintech.de>.
Due to time restraints, he had no time to further maintain the driver and
follow the mainline Linux changes in the SD/MMC stack.
With his authorization, I have taken over the task of making it compliant to
the current mainline SD/MMC API and take care of the mainline kernel merge.
After a potential kernel inclusion, we would co-maintain the driver.
Acked-by: Thomas Kleffel <tk at maintech.de>
Signed-off-by: Harald Welte <laforge at gnumonks.org>
commit d245b2c56b6f9ea8d2ec641a03c3e2ca5c393790
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:18 2008 +0100
g_ether-vendor_product.patch
Use FIC's own USB Vendor ID rather than NetChip's
Yes, we could solve this by some modprobe.conf parameters, but I'd like to
rather not rely on this.
commit a554d58e559d5b8f763155e313c5cba6f2e63bf6
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:18 2008 +0100
g_ether-highpower.patch
commit 6b558eeff5fb9f7718831f5fc736368af3c89e4d
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:18 2008 +0100
i2c-permit_invalid_addrs.patch
We need this stupid workaround since our amplifier chip uses a 'reserved' I2C
address
Signed-off-by: Harald Welte <laforge at openmoko.org>
commit db6f1e4d44793c59e1dd19548769e3072e605614
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:18 2008 +0100
s3c2410_ts-gta01.patch
commit 805f3582946c21866297afd00b3ce5bebdab6656
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:17 2008 +0100
s3c2410_touchscreen.patch
commit ce6fb8269ebb85b28ac60ce34766069e1c1c9de5
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:17 2008 +0100
gta01-backlight.patch
This is a backlight driver for the FIC/OpenMoko Neo1973 GTA01 GSM Phone
Signed-off-by: Harald Welte <laforge at openmoko.org>
commit 8939e7598c241d1d4f63b8092a27bc5770af1dba
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:17 2008 +0100
gta01-vibrator.patch
This patch adds driver support for the vibator device of the FIC/OpenMoko
Neo1973 GSM phone. The driver uses the existing LED class driver framework,
since there's a lot of similarity between the LED and the vibrator function.
Signed-off-by: Harald Welte <laforge at openmoko.org>
commit def7d6c393cc91ea9ca276c55f9769596c944b0f
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:17 2008 +0100
s3c2410-pwm.patch
This patch adds a PWM api abstraction for the S3C2410 SoC
Signed-off-by: Javi Roman <javiroman at kernel-labs.org>
Signed-off-by: Harald Welte <laforge at openmoko.org>
commit d8e84cc22f717b7589a503dc3a2b9c5d537d0561
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:17 2008 +0100
gta01-power_control.patch
[PATCH] Neo1973 GPS / GSM / Bluetooth power control via sysfs
Signed-off-by: Harald Welte <laforge at openmoko.org>
commit 9e59a0870b3f2781f6bcc8b42a987d0ddb5e0495
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:16 2008 +0100
gta01-inputdevice.patch
This provides support for the GTA01 keyboard
Signed-off-by: Harald Welte <laforge at openmoko.org>
commit bca8d4821eeb09a292bfa454fe56d51fb5525666
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:16 2008 +0100
gta01-jbt6k74.patch
This driver adds support for the SPI-based control interface of the LCM (LCD
Panel) found on the FIC GTA01 hardware.
The specific panel in this hardware is a TPO TD028TTEC1, but the driver should
be able to drive any other diplay based on the JBT6K74-AS controller ASIC.
Signed-off-by: Harald Welte <laforge at openmoko.org>
commit d5eddf0cffb2c007020a0f58e10e90318165970f
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:16 2008 +0100
gta01-core.patch
This patch adds support for the FIC Neo1973 GTA01 machine type to the ARM port
of the Linux kernel.
Signed-off-by: Harald Welte <laforge at openmoko.org>
commit 3435a2e96d6da3af6af2187fa5a7f26b045fd665
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:16 2008 +0100
gta01-pcf50606.patch
This is a NXP PCF50606 power management unit driver.
The PCF50606 is used in the FIC/OpenMoko Neo1973 GTA01 GSM phone.
Signed-off-by: Harald Welte <laforge at openmoko.org>
commit e6b5edf3c11b8375ec57c0e1974cfeba7c206493
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:15 2008 +0100
s3c2410-bbt.patch
[PATCH] Add Kconfig option to enable NAND bad-block-table support for s3c2410
This patch adds a new CONFIG_MTD_NAND_S3C2410_BBT which, if enabled,
asks the mtd NAND core to use a bad-block table.
Signed-off-by: Harald Welte <laforge at openmoko.org>
commit 6bf29d025de08a1941c5266ae7cde33ecc87309e
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:14 2008 +0100
resume-timers-wq.patch
The initialization of clocks uses mutexes, but we execute the resume in
an interrupt context. We therefore have to hand this task to a non-interrupt.
Adapted from a patch by Andy Green.
commit caa2fe133907ef33822f8e889eb9a9c32a85d89f
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:14 2008 +0100
fix-i2c-s3c2410-resume-race.patch
fix-i2c-s3c2410-resume-race.patch
There is a nasty race between i2c-s3c2410 resume and resume of I2C
driver and the client drivers -- the watchdog device actually gets to
use the dead I2C bus before it is reinitialized by the I2C driver
resume! This patch makes sure any customers get turned away until
the shopkeeper has woken up.
Signed-off-by: Andy Green <andy at openmoko.com>
commit 3d8158cf6f5931dde1837f38fce65d67d0a66fc7
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:14 2008 +0100
gta01-no_nand_partitions.patch
[PATCH] support mtd NAND commandline partitions for S3C2410
This patch adds support for the mtd NAND core standard method of passing
partition table information from the bootloader into the kernel by using
the kernel commandline.
The board specific code can still manually override and provide a fixed
partition table, so this patch will behave backwards compatible.
Signed-off-by: Harald Welte <laforge at openmoko.org>
Acked-byt: Ben Dooks <ben-linux at fluff.org>
commit fd9515c7bf3d3e67892450022fa67af0be14e218
Author: mokopatches <mokopatches at openmoko.org>
Date: Sun Aug 3 20:24:14 2008 +0100
explicitly-link-notes-section.patch
Since 2.6.23 kbuild produces a 3GB arch/arm/boot/Image because it includes a
.note.gnu.build-id section at address 0 which is followed by 3GB of 0x00.
The --build-id option is set in the toplevel Makefile.
This patch explicitly puts the notes section after the TEXT section.
commit 2b12a4c524812fb3f6ee590a02e65b95c8c32229
Merge: 4744b43431e8613f920c5cba88346756f53c5165 7f30491ccd28627742e37899453ae20e3da8e18f
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 14:59:11 2008 -0700
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6:
[IA64] Move include/asm-ia64 to arch/ia64/include/asm
commit 4744b43431e8613f920c5cba88346756f53c5165
Author: Tim Bird <tim.bird at am.sony.com>
Date: Fri Aug 1 14:05:50 2008 -0700
embedded: fix vc_translate operator precedence
This fixes a bug in operator precedence in the newly introduced vc_translate
macro. Without this fix, the translation of some characters on the
kernel console is garbled.
This patch was copied to the e-mail list previously for testing. Now,
all reports confirm that it works, so this is an official post for
application.
Signed-off-by: Tim Bird <tim.bird at am.sony.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
commit 3669bc143fb3d389918379547f4a6b28a757b7fe
Author: Jack Steiner <steiner at sgi.com>
Date: Fri Aug 1 15:08:15 2008 -0500
Remove EXPORTS of follow_page & zap_page_range
Delete 2 EXPORTs that were accidentally sent upstream.
Signed-off-by: Jack Steiner <steiner at sgi.com>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit a97762a77f927577525868e39661084170ce3605
Author: Steven Rostedt <rostedt at goodmis.org>
Date: Thu Jul 31 12:40:52 2008 -0400
dual license ftrace.txt
I asked legal about the licensing of ftrace.txt, and they told me that,
unless the Documentation directory is specifically set up to handle non
GPL licenses (which it does not appear to be), then it would be best to
put ftrace.txt under the GPL.
This patch adds a dual license to ftrace.txt such that it is under both
the FDL and the GPL.
Signed-off-by: Steven Rostedt <srostedt at redhat.com>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 784dd7b64ca661722f539db906d56ce54906f2fb
Author: David Howells <dhowells at redhat.com>
Date: Thu Jul 31 13:46:33 2008 +0100
FRV: Wire up new system calls
Wire up for FRV the system calls that were added in the last merge window.
Signed-off-by: David Howells <dhowells at redhat.com>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 02c363808981b67e631fe71cc7e952497f761bef
Author: David Howells <dhowells at redhat.com>
Date: Thu Jul 31 13:01:30 2008 +0100
MN10300: Wire up new system calls
Wire up system calls added in the last merge window for the MN10300 arch.
Signed-off-by: David Howells <dhowells at redhat.com>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 3ab36ab68531ad90648fdeedcaf437f121572ede
Author: Eugeniy Meshcheryakov <eugen at debian.org>
Date: Thu Jul 31 10:03:19 2008 +0100
try harder to load tty ldisc driver
Currently function tty_ldisc_get() tries to load an ldisc driver module
only when tty_ldisc_try_get() returns -EAGAIN. This happens only if
module is being unloaded. If ldisc module is not loaded
tty_ldisc_try_get() returns -EINVAL and this case is not handled in
tty_ldisc_get(), so request_module() is not called.
Attached patch fixes this by calling request_module() if
tty_ldisc_try_get() returned any error code.
I discovered this when my UMTS modem stopped working with 2.6.27-rc1
because module ppp_async was not loaded.
Signed-off-by: Eugeniy Meshcheryakov <eugen at debian.org>
Signed-off-by: Alan Cox <alan at redhat.com>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 84ff7a001270258f71d6ab0d164f351e32c9718a
Merge: 478735e42bfa047384afa72dceb408035532db20 1f4170e12db06fdde5279d665a7e6e2976b2b623
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 12:48:16 2008 -0700
Merge branch 'kvm-updates-2.6.27' of git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm
* 'kvm-updates-2.6.27' of git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm:
KVM: s390: Fix kvm on IBM System z10
KVM: Advertise synchronized mmu support to userspace
KVM: Synchronize guest physical memory map to host virtual memory map
KVM: Allow browsing memslots with mmu_lock
KVM: Allow reading aliases with mmu_lock
commit 478735e42bfa047384afa72dceb408035532db20
Merge: 0ef89d25d3e390dfa7c46772907951744a4067dc 6f5fd8e9b98423add5f67b964e7cc8733dd73460
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 12:47:53 2008 -0700
Merge branch 'zero-len' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/misc-2.6
* 'zero-len' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/misc-2.6:
drivers/media, include/media: delete zero-length files
commit 0ef89d25d3e390dfa7c46772907951744a4067dc
Author: Benjamin Herrenschmidt <benh at kernel.crashing.org>
Date: Thu Jul 31 00:07:30 2008 -0700
mm/hugetlb: don't crash when HPAGE_SHIFT is 0
Some platform decide whether they support huge pages at boot time. On
these, such as powerpc, HPAGE_SHIFT is a variable, not a constant, and is
set to 0 when there is no such support.
The patches to introduce multiple huge pages support broke that causing
the kernel to crash at boot time on machines such as POWER3 which lack
support for multiple page sizes.
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit c6de002617c199f80f9a2a713dffc263bdc69b81
Author: Yoshinori Sato <ysato at users.sourceforge.jp>
Date: Thu Jul 31 00:07:29 2008 -0700
Missing symbol prefix on vmlinux.lds.h
ARCH=h8300:
init/main.c:781: undefined reference to `___early_initcall_end'
Same problem have
__start___bug_table
__stop___bug_table
__tracedata_start
__tracedata_end
__per_cpu_start
__per_cpu_end
When defining a symbol in vmlinux.lds, use the VMLINUX_SYMBOL macro.
VMLINUX_SYMBOL adds a prefix charactor.
You can't just use straight symbol names in common header files as they
dont take into consideration weird arch-specific ABI conventions. in the
case of Blackfin/h8300, the ABI dictates that any C-visible symbols have
an underscore prefixed to them. Thus all symbols in vmlinux.lds.h need to
be wrapped in VMLINUX_SYMBOL() so that each arch can put hide this magic
in their own files.
[akpm at linux-foundation.org: coding-style fixes]
Signed-off-by: Yoshinori Sato <ysato at users.sourceforge.jp>
Cc: Jeremy Fitzhardinge <jeremy at goop.org>
Cc: "Mike Frysinger" <vapier.adi at gmail.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit ea44c1d60df3640bd956a67c392865c44fe9bc45
Author: Bjorn Helgaas <bjorn.helgaas at hp.com>
Date: Thu Jul 31 00:07:27 2008 -0700
PNP: fix formatting of dbg_pnp_show_resources() output
Each resource should be printed on its own line, so start snprintf'ing
at the beginning of the buffer every time through the loop.
Also, use scnprintf() rather than snprintf() when building up the
buffer to print. scnprintf() returns the number of characters actually
written into the buffer (not including the trailing NULL).
snprintf() returns the number of characters that *would be* written,
assuming everything would fit in the buffer. That's nice if we want to
resize the buffer to make sure everything fits, but in this case, I
just want to keep from overflowing the buffer, and it's OK if the
output is truncated.
Using snprintf() meant that my "len" could grow to be more than the
the buffer size, which makes "sizeof(buf) - len" negative, which causes
this alarming WARN_ON:
http://marc.info/?l=linux-kernel&m=121736480005656&w=2
More useful snprintf/scnprintf discussion:
http://lwn.net/Articles/69419/
Signed-off-by: Bjorn Helgaas <bjorn.helgaas at hp.com>
Reported-by: Pete Clements <clem at clem.clem-digital.net>
Cc: Rene Herman <rene.herman at keyaccess.nl>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 61a2d07d3fb1ac34d142b9b62d4cd60a0f8c229e
Author: Niels de Vos <niels at nixpanic.net>
Date: Thu Jul 31 00:07:23 2008 -0700
Remove newline from the description of module parameters
Some module parameters with only one line have the '\n' at the end of the
description. This is not needed nor wanted as after the description the
type (i.e. int) is followed by a newline.
Some modules contain a multi-line description, these are not affected
by this patch.
Signed-off-by: Niels de Vos <niels.devos at wincor-nixdorf.com>
Acked-by: Randy Dunlap <randy.dunlap at oracle.com>
Cc: John W. Linville <linville at tuxdriver.com>
Cc: Ed L. Cashin <ecashin at coraid.com>
Cc: Dave Airlie <airlied at linux.ie>
Cc: Roland Dreier <rolandd at cisco.com>
Acked-by: Mauro Carvalho Chehab <mchehab at infradead.org>
Cc: Jeff Garzik <jeff at garzik.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 3a4b7886ee59e122d359e1714ed89585a06645ad
Merge: b8a327be3fbf05b5d3a935b4c03a3dcdb6db833e 963e4975c6f93c148ca809d986d412201df9af89
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 12:41:29 2008 -0700
Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev
* 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev:
pata_it821x: Driver updates and reworking
libata.h: replace __FUNCTION__ with __func__
ata_piix: subsys 106b:00a3 is apple ich8m too
libata-core: make sure that ata_force_tbl is freed in case of an error
libata: update atapi disable handling
pata_via: add VX800 flag; add function for fixing h/w bugs
pata_ali: misplaced pci_dev_put()
commit b8a327be3fbf05b5d3a935b4c03a3dcdb6db833e
Merge: 46bd58eab21650fe820e4e3a27a6a134892cc2eb f13fae2d2a9372a5155d20bc9da4c14f02193277
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 12:39:09 2008 -0700
Merge branch 'for-linus' of git://oss.sgi.com:8090/xfs/xfs-pull
* 'for-linus' of git://oss.sgi.com:8090/xfs/xfs-pull: (64 commits)
[XFS] Remove vn_revalidate calls in xfs.
[XFS] Now that xfs_setattr is only used for attributes set from ->setattr
[XFS] xfs_setattr currently doesn't just handle the attributes set through
[XFS] fix use after free with external logs or real-time devices
[XFS] A bug was found in xfs_bmap_add_extent_unwritten_real(). In a
[XFS] fix compilation without CONFIG_PROC_FS
[XFS] s/XFS_PURGE_INODE/IRELE/g s/VN_HOLD(XFS_ITOV())/IHOLD()/
[XFS] fix mount option parsing in remount
[XFS] Disable queue flag test in barrier check.
[XFS] streamline init/exit path
[XFS] Fix up problem when CONFIG_XFS_POSIX_ACL is not set and yet we still
[XFS] Don't assert if trying to mount with blocksize > pagesize
[XFS] Don't update mtime on rename source
[XFS] Allow xfs_bmbt_split() to fallback to the lowspace allocator
[XFS] Restore the lowspace extent allocator algorithm
[XFS] use minleft when allocating in xfs_bmbt_split()
[XFS] attrmulti cleanup
[XFS] Check for invalid flags in xfs_attrlist_by_handle.
[XFS] Fix CI lookup in leaf-form directories
[XFS] Use the generic xattr methods.
...
commit 46bd58eab21650fe820e4e3a27a6a134892cc2eb
Author: Dean Nelson <dcn at sgi.com>
Date: Fri Aug 1 09:55:26 2008 -0500
add reverse dependency of CONFIG_SGI_XP upon CONFIG_SGI_GRU
Add a reverse dependency of CONFIG_SGI_XP upon CONFIG_SGI_GRU to Kconfig.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 3b0de7b364c8b8a975f201fdae2fb394c876eb56
Author: Dean Nelson <dcn at sgi.com>
Date: Fri Aug 1 14:19:08 2008 -0500
add dependency of CONFIG_SGI_XP upon CONFIG_NET
Add a dependency of CONFIG_SGI_XP upon CONFIG_NET to Kconfig.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 5c7edcd7ee6b77b88252fe4096dce1a46a60c829
Author: Roland McGrath <roland at redhat.com>
Date: Thu Jul 31 02:04:09 2008 -0700
tracehook: fix exit_signal=0 case
My commit 2b2a1ff64afbadac842bbc58c5166962cf4f7664 introduced a regression
(sorry about that) for the odd case of exit_signal=0 (e.g. clone_flags=0).
This is not a normal use, but it's used by a case in the glibc test suite.
Dying with exit_signal=0 sends no signal, but it's supposed to wake up a
parent's blocked wait*() calls (unlike the delayed_group_leader case).
This fixes tracehook_notify_death() and its caller to distinguish a
"signal 0" wakeup from the delayed_group_leader case (with no wakeup).
Signed-off-by: Roland McGrath <roland at redhat.com>
Tested-by: Serge Hallyn <serue at us.ibm.com>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 1e24b15b267293567a8d752721c7ae63f281325a
Merge: 63a16f90167850010864a9e8ebb71d216983090f 388667bed591b2359713bb17d5de0cf56e961447
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 11:56:07 2008 -0700
Merge branch 'for-linus' of git://neil.brown.name/md
* 'for-linus' of git://neil.brown.name/md:
md: raid10: wake up frozen array
md: do not count blocked devices as spares
md: do not progress the resync process if the stripe was blocked
md: delay notification of 'active_idle' to the recovery thread
md: fix merge error
md: move async_tx_issue_pending_all outside spin_lock_irq
commit 63a16f90167850010864a9e8ebb71d216983090f
Merge: 5adf2b03d97111c8955495ba11e8b7db27df8695 c259ae52e204d42f8b2d484c85517a4c367030e1
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 11:54:05 2008 -0700
Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2
* 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2:
[PATCH] ocfs2: Release mutex in error handling code
[PATCH] ocfs2: Fix oops when racing files truncates with writes into an mmap region
[PATCH 2/2] ocfs2: Fix race between mount and recovery
[PATCH 1/2] ocfs2: Add counter in struct ocfs2_dinode to track journal replays
[PATCH] configfs: Convenience macros for attribute definition.
[PATCH] configfs: Pin configfs subsystems separately from new config_items.
[PATCH] configfs: Fix open directory making rmdir() fail
[PATCH] configfs: Lock new directory inodes before removing on cleanup after failure
[PATCH] configfs: Prevent userspace from creating new entries under attaching directories
[PATCH] configfs: Fix failing symlink() making rmdir() fail
[PATCH] configfs: Fix symlink() to a removing item
[PATCH] configfs: Include linux/err.h in linux/configfs.h
commit 5adf2b03d97111c8955495ba11e8b7db27df8695
Merge: e811603feb198079bcdb3f75f72cbf9681de2062 0e241ffd306c0896bb9959be7faa4d4cfcb706d9
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 11:52:39 2008 -0700
Merge branch 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
locking: fix mutex @key parameter kernel-doc notation
commit e811603feb198079bcdb3f75f72cbf9681de2062
Merge: b17b3d479c4c43c3a980ee553c3be3ca456523de 48a61569bb5396415c5dad0e81e1cfeb87c0aca3
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 11:50:21 2008 -0700
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes
* git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes:
kbuild: scripts/ver_linux: don't set PATH
Kconfig/init: change help text to match default value
kbuild: genksyms: Include extern information in dumps
kbuild: genksyms parser: fix the __attribute__ rule
kbuild: scripts/genksyms/lex.l: add %option noinput
kconfig: scripts/kconfig/zconf.l: add %option noinput
kbuild: fix O=... build of um
commit b17b3d479c4c43c3a980ee553c3be3ca456523de
Merge: 31582b094d640fdab3fd29237b348a4c7c8646fb 93769f58078e2a066b56217cae1e343ac5a6b78c
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 11:46:00 2008 -0700
Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block
* 'for-linus' of git://git.kernel.dk/linux-2.6-block:
md: the bitmap code needs to use blk_plug_device_unlocked()
block: add a blk_plug_device_unlocked() that grabs the queue lock
commit 31582b094d640fdab3fd29237b348a4c7c8646fb
Merge: df1efe6f871e2d3f83e6ad7b7a1d2b728b478fc2 25fc999913839a45cbb48ac7872e67f7521e7ed9
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 11:45:09 2008 -0700
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb
* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb:
kgdb: fix gdb serial thread queries
kgdb: fix kgdb_validate_break_address to perform a mem write
kgdb: remove the requirement for CONFIG_FRAME_POINTER
commit df1efe6f871e2d3f83e6ad7b7a1d2b728b478fc2
Merge: 9a5467fd600669cda488771dac3e951034fe2b08 11589418a1c4cf68be9367f802898d35e07809c4
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 11:44:24 2008 -0700
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
ALSA: ASoC: Export dapm_reg_event() fully
ALSA: ASoC: Update Poodle to current ASoC API
ALSA: asoc: restrict sample rate and size in Freescale MPC8610 sound drivers
ALSA: sound/soc/pxa/tosa.c: removed duplicated include
commit 9a5467fd600669cda488771dac3e951034fe2b08
Merge: 676056132425ac425d7215cdaa8bd25582e07966 00b1304c4ca81dd893973cc620b87a5c3ff3f660
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 11:35:16 2008 -0700
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (46 commits)
tcp: MD5: Fix IPv6 signatures
skbuff: add missing kernel-doc for do_not_encrypt
net/ipv4/route.c: fix build error
tcp: MD5: Fix MD5 signatures on certain ACK packets
ipv6: Fix ip6_xmit to send fragments if ipfragok is true
ipvs: Move userspace definitions to include/linux/ip_vs.h
netdev: Fix lockdep warnings in multiqueue configurations.
netfilter: xt_hashlimit: fix race between htable_destroy and htable_gc
netfilter: ipt_recent: fix race between recent_mt_destroy and proc manipulations
netfilter: nf_conntrack_tcp: decrease timeouts while data in unacknowledged
irda: replace __FUNCTION__ with __func__
nsc-ircc: default to dongle type 9 on IBM hardware
bluetooth: add quirks for a few hci_usb devices
hysdn: remove the packed attribute from PofTimStamp_tag
isdn: use the common ascii hex helpers
tg3: adapt tg3 to use reworked PCI PM code
atm: fix direct casts of pointers to u32 in the InterPhase driver
atm: fix const assignment/discard warnings in the ATM networking driver
net: use the common ascii hex helpers
random32: seeding improvement
...
commit 676056132425ac425d7215cdaa8bd25582e07966
Merge: 623fa579e61f250c1913c70257ef3a753820bb68 47d715af0761012ab074a12b5b5959f0179eaa09
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 11:33:19 2008 -0700
Merge branch 'release' of git://lm-sensors.org/kernel/mhoffman/hwmon-2.6
* 'release' of git://lm-sensors.org/kernel/mhoffman/hwmon-2.6:
hwmon: needs new maintainer
hwmon: (lm85) Simplify device initialization function
hwmon: (lm85) Misc cleanups
hwmon: (lm85) Don't write back cached values
hwmon: (lm85) Drop dead code
hwmon: (lm85) Coding-style cleanups
hwmon: (lm75) add new-style driver binding
hwmon: (lm75) cleanup/reorg
hwmon: (adt7473) clarify an awkward bit of code
hwmon: (adt7473) Remove unused defines
hwmon: (dme1737) fix voltage scaling
hwmon: (dme1737) probe all addresses
hwmon: (dme1737) demacrofy for readability
commit 93769f58078e2a066b56217cae1e343ac5a6b78c
Author: Jens Axboe <jens.axboe at oracle.com>
Date: Fri Aug 1 20:32:31 2008 +0200
md: the bitmap code needs to use blk_plug_device_unlocked()
It doesn't hold the queue lock, so it's both racey on the queue flags
and thus spews a warning.
Signed-off-by: Jens Axboe <jens.axboe at oracle.com>
commit 6c5e0c4d518a37e1d5d794c14433e80284415079
Author: Jens Axboe <jens.axboe at oracle.com>
Date: Fri Aug 1 20:31:32 2008 +0200
block: add a blk_plug_device_unlocked() that grabs the queue lock
blk_plug_device() must be called with the queue lock held, so callers
often just grab and release the lock for that purpose. Add a helper
that does just that.
Signed-off-by: Jens Axboe <jens.axboe at oracle.com>
commit 623fa579e61f250c1913c70257ef3a753820bb68
Merge: d65f5c5803d9cd6fa0b540a0dddf956be671bc36 e4c094a595ba8ea402e6b2153f7bbf6ef039eea0
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 11:29:54 2008 -0700
Merge git://git.infradead.org/mtd-2.6
* git://git.infradead.org/mtd-2.6:
[MTD] [NAND] drivers/mtd/nand/nandsim.c: fix printk warnings
[MTD] [NAND] Blackfin NFC Driver: Cleanup the error exit path of bf5xx_nand_probe function
[MTD] [NAND] Blackfin NFC Driver: use standard dev_err() rather than printk()
[MTD] [NAND] Blackfin NFC Driver: enable Blackfin nand HWECC support by default
[MTD] [NAND] Blackfin NFC Driver: add proper devinit/devexit markings to probe/remove functions
[MTD] [NAND] Blackfin NFC Driver: add support for the ECC layout the Blackfin bootrom uses
[MTD] [NAND] Blackfin NFC Driver: fix bug - hw ecc calc by making sure we extract 11 bits from each register instead of 10
[MTD] [NAND] Blackfin NFC Driver: fix bug - do not clobber the status from the first 256 bytes if operating on 512 pages
[MTD] [NAND] diskonchip.c fix sparse endian warnings
[MTD] [NAND] drivers/mtd/nand/nandsim.c needs div64.h
[JFFS2] Fix allocation of summary buffer
Fix rename of at91_nand -> atmel_nand
[MTD] [NOR] drivers/mtd/chips/jedec_probe.c: fix Am29DL800BB device ID
[MTD] MTD_DEBUG always does compile-time typechecks
[MTD] DataFlash: bugfix, binary page sizes now handled
[MTD] [NAND] fsl_elbc_nand.c: fix printk warning
[MTD] [NAND] nandsim: support random page read command
[MTD] [NAND] fix subpage read for small page NAND
commit d65f5c5803d9cd6fa0b540a0dddf956be671bc36
Merge: a8086ad803fc4d251edb9a49838bf99c7fdfb44f 8d66bf5481002b0960aa49aed0987c73f5d7816c
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 11:26:51 2008 -0700
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6:
[PATCH] pass struct path * to do_add_mount()
[PATCH] switch mtd and dm-table to lookup_bdev()
[patch 3/4] vfs: remove unused nameidata argument of may_create()
[PATCH] devpts: switch to IDA
[PATCH 2/2] proc: switch inode number allocation to IDA
[PATCH 1/2] proc: fix inode number bogorithmetic
[PATCH] fix bdev leak in block_dev.c do_open()
[PATCH] fix races and leaks in vfs_quota_on() users
[PATCH] clean dup2() up a bit
[PATCH] merge locate_fd() and get_unused_fd()
[PATCH] ipv4_static_sysctl_init() should be under CONFIG_SYSCTL
Re: BUG at security/selinux/avc.c:883 (was: Re: linux-next: Tree
commit a8086ad803fc4d251edb9a49838bf99c7fdfb44f
Merge: b2bbf43e60073f70a3c8663513710fa8d03a33f8 20c6aaa39ab735c7ed78e4e5a214d250efae0a6e
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 11:23:09 2008 -0700
Merge branch 'audit.b54' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit-current
* 'audit.b54' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit-current:
[PATCH] Fix the bug of using AUDIT_STATUS_RATE_LIMIT when set fail, no error output.
[PATCH] Fix the kernel panic of audit_filter_task when key field is set
Re: [PATCH] the loginuid field should be output in all AUDIT_CONFIG_CHANGE audit messages
kernel/audit.c control character detection is off-by-one
[PATCH] Audit: Collect signal info when SIGUSR2 is sent to auditd
commit b2bbf43e60073f70a3c8663513710fa8d03a33f8
Merge: 561b35b341b1aeeab486affe1ede0ee6640ce33b e491d230fd398bb730e3c2dd734c5447463b9d38
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 11:22:45 2008 -0700
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc:
au1xmmc: raise segment size limit.
mmc_block: use proper sg iterators
mmc: properly iterate over sg list in debug check
mmc_test: Revert "mmc_test: test oversized sg lists"
sdhci: check correct return value
sdhci: disable DMA for req, not completely
sdhci: handle bug in JMB38x for sizes < 4 bytes
commit 561b35b341b1aeeab486affe1ede0ee6640ce33b
Merge: a7c2a10dab4e5122cbcfa3d5e9d589a52ccc2287 0eb5d5ab3ec99bfd22ff16797d95835369ffb25b
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 10:56:40 2008 -0700
Merge branch 'reg-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/voltage-2.6
* 'reg-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/voltage-2.6:
regulator: TI bq24022 Li-Ion Charger driver
regulator: maintainers - add maintainers for regulator framework.
regulator: documentation - ABI
regulator: documentation - machine
regulator: documentation - regulator driver
regulator: documentation - consumer interface
regulator: documentation - overview
regulator: core kbuild files
regulator: regulator test harness
regulator: add support for fixed regulators.
regulator: regulator framework core
regulator: fixed regulator interface
regulator: machine driver interface
regulator: regulator driver interface
regulator: consumer device interface
commit a7c2a10dab4e5122cbcfa3d5e9d589a52ccc2287
Merge: b14f7fb5aa2f4289e3a9fa8d7d92417ec8607498 383795c206946777d87ed5f6d61d6659110f9344
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 10:55:57 2008 -0700
Merge branch 'hotfixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6
* 'hotfixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6:
SELinux: /proc/mounts should show what it can
commit b14f7fb5aa2f4289e3a9fa8d7d92417ec8607498
Merge: 00e9028a95fb8a4d79f2fb695a853f33ea7d3b57 9fec6060d9e48ed7db0dac0e16d0f0f0e615b7f6
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 10:55:07 2008 -0700
Merge git://git.infradead.org/battery-2.6
* git://git.infradead.org/battery-2.6:
power_supply: Sharp SL-6000 (tosa) batteries support
power_supply: fix up CHARGE_COUNTER output to be more precise
power_supply: add CHARGE_COUNTER property and olpc_battery support for it
power_supply: bump EC version check that we refuse to run with in olpc_battery
power_supply: cleanup of the OLPC battery driver
power_supply: add eeprom dump file to olpc_battery's sysfs
power_supply: Support serial number in olpc_battery
commit 00e9028a95fb8a4d79f2fb695a853f33ea7d3b57
Merge: 57b1494d2ba544c62673234da6115c21fac27ffc 7cb93181629c613ee2b8f4ffe3446f8003074842
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 10:53:43 2008 -0700
Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (28 commits)
mm/hugetlb.c must #include <asm/io.h>
video: Fix up hp6xx driver build regressions.
sh: defconfig updates.
sh: Kill off stray mach-rsk7203 reference.
serial: sh-sci: Fix up SH7760/SH7780/SH7785 early printk regression.
sh: Move out individual boards without mach groups.
sh: Make sure AT_SYSINFO_EHDR is exposed to userspace in asm/auxvec.h.
sh: Allow SH-3 and SH-5 to use common headers.
sh: Provide common CPU headers, prune the SH-2 and SH-2A directories.
sh/maple: clean maple bus code
sh: More header path fixups for mach dir refactoring.
sh: Move out the solution engine headers to arch/sh/include/mach-se/
sh: I2C fix for AP325RXA and Migo-R
sh: Shuffle the board directories in to mach groups.
sh: dma-sh: Fix up dreamcast dma.h mach path.
sh: Switch KBUILD_DEFCONFIG to shx3_defconfig.
sh: Add ARCH_DEFCONFIG entries for sh and sh64.
sh: Fix compile error of Solution Engine
sh: Proper __put_user_asm() size mismatch fix.
sh: Stub in a dummy ENTRY_OFFSET for uImage offset calculation.
...
commit 57b1494d2ba544c62673234da6115c21fac27ffc
Merge: 9fe3b64be3dc8313e9fa87255f169c608d074cbd 8978b74253280d59e97cf49a3ec2c0cbccd5b801
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 10:28:17 2008 -0700
Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
generic, x86: fix add iommu_num_pages helper function
x86: remove stray <6> in BogoMIPS printk
x86: move dma32_reserve_bootmem() after reserve_crashkernel()
commit 9fe3b64be3dc8313e9fa87255f169c608d074cbd
Merge: 8b6d8c592fa7b8bfb1218447a273314c13a67e8a ab4227cb2d936886069ef1056c02500d05beb15d
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Fri Aug 1 10:27:10 2008 -0700
Merge branch 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6
* 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6:
[S390] qeth: avoid use of include/asm-s390
[S390] dont use kthread for smp_rescan_cpus().
[S390] virtio console: fix section mismatch warning.
[S390] cio: Include linux/string.h in schid.h.
[S390] qdio: fix section mismatch bug.
[S390] stp: fix section mismatch warning.
[S390] Remove diag 0x260 call from memory detection.
[S390] qdio: make sure qdr is aligned to page size
[S390] Add support for memory hot-remove.
[S390] Wire up new syscalls.
[S390] cio: Memory allocation for idset changed.
[S390] qeth: preallocated qeth header for hiper socket
[S390] Optimize storage key operations for anon pages
[S390] nohz/sclp: disable timer on synchronous waits.
[S390] ipl: Reboot from alternate device does not work when booting from file
[S390] dasd: Add support for enhanced VM UID
[S390] Remove last P390 trace.
commit 7f30491ccd28627742e37899453ae20e3da8e18f
Author: Tony Luck <tony.luck at intel.com>
Date: Fri Aug 1 10:13:32 2008 -0700
[IA64] Move include/asm-ia64 to arch/ia64/include/asm
After moving the the include files there were a few clean-ups:
1) Some files used #include <asm-ia64/xyz.h>, changed to <asm/xyz.h>
2) Some comments alerted maintainers to look at various header files to
make matching updates if certain code were to be changed. Updated these
comments to use the new include paths.
3) Some header files mentioned their own names in initial comments. Just
deleted these self references.
Signed-off-by: Tony Luck <tony.luck at intel.com>
commit e491d230fd398bb730e3c2dd734c5447463b9d38
Author: Manuel Lauss <mano at roarinelk.homelinux.net>
Date: Tue Jul 29 10:10:49 2008 +0200
au1xmmc: raise segment size limit.
Raise the DMA block size limit from 2048 bytes to the maximum supported
by the DMA controllers on the chip (64KB on Au1100, 4MB on Au1200).
This gives a very small performance boost and apparently fixes an oops
when MMC-DMA and network traffic are active at the same time.
Signed-off-by: Manuel Lauss <mano at roarinelk.homelinux.net>
Signed-off-by: Pierre Ossman <drzeus at drzeus.cx>
commit b41e9c7b8e14ea57aa0fc05fd63a0de0e935d58d
Author: Pierre Ossman <drzeus at drzeus.cx>
Date: Tue Jul 29 01:23:24 2008 +0200
mmc_block: use proper sg iterators
Signed-off-by: Pierre Ossman <drzeus at drzeus.cx>
commit a84756c5735f28bf000617f18734a9e94426386a
Author: Pierre Ossman <drzeus at drzeus.cx>
Date: Tue Jul 29 01:09:37 2008 +0200
mmc: properly iterate over sg list in debug check
Signed-off-by: Pierre Ossman <drzeus at drzeus.cx>
commit b7ac2cf1cdf346b34cbc2104d386a9d29d12aa4c
Author: Pierre Ossman <drzeus at drzeus.cx>
Date: Tue Jul 29 01:05:22 2008 +0200
mmc_test: Revert "mmc_test: test oversized sg lists"
This reverts commit 48b5352ea1891455eb8e824cf7d92f66931a090f. Oversized
sg lists are not allowed anymore, and the core even checks for them in
debug mode, so this test is entirely incorrect.
Signed-off-by: Pierre Ossman <drzeus at drzeus.cx>
commit 980167b7fb20fb181766218b4771fc7420a7bbb4
Author: Pierre Ossman <drzeus at drzeus.cx>
Date: Tue Jul 29 00:53:20 2008 +0200
sdhci: check correct return value
Fix a copy-and-paste error.
Signed-off-by: Pierre Ossman <drzeus at drzeus.cx>
commit ebd6d357848edb8709dd9bed4b93834d1b4d7044
Author: Pierre Ossman <drzeus at drzeus.cx>
Date: Tue Jul 29 00:45:51 2008 +0200
sdhci: disable DMA for req, not completely
The wrong flag was manipulated when an invalid sg list was given, turning
off DMA on the next (and all subsequent) request instead of the current
one.
Signed-off-by: Pierre Ossman <drzeus at drzeus.cx>
commit 4a3cba32cb514168bb2516c045b178e6660421d1
Author: Pierre Ossman <drzeus at drzeus.cx>
Date: Tue Jul 29 00:11:16 2008 +0200
sdhci: handle bug in JMB38x for sizes < 4 bytes
Signed-off-by: Pierre Ossman <drzeus at drzeus.cx>
commit 20c6aaa39ab735c7ed78e4e5a214d250efae0a6e
Author: zhangxiliang <zhangxiliang at cn.fujitsu.com>
Date: Thu Jul 31 10:11:19 2008 +0800
[PATCH] Fix the bug of using AUDIT_STATUS_RATE_LIMIT when set fail, no error output.
When the "status_get->mask" is "AUDIT_STATUS_RATE_LIMIT || AUDIT_STATUS_BACKLOG_LIMIT".
If "audit_set_rate_limit" fails and "audit_set_backlog_limit" succeeds, the "err" value
will be greater than or equal to 0. It will miss the failure of rate set.
Signed-off-by: Zhang Xiliang <zhangxiliang at cn.fujitsu.com>
Acked-by: Eric Paris <eparis at redhat.com>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 980dfb0db340b95094732d78b55311f2c539c1af
Author: zhangxiliang <zhangxiliang at cn.fujitsu.com>
Date: Fri Aug 1 19:15:47 2008 +0800
[PATCH] Fix the kernel panic of audit_filter_task when key field is set
When calling audit_filter_task(), it calls audit_filter_rules() with audit_context is NULL.
If the key field is set, the result in audit_filter_rules() will be set to 1 and
ctx->filterkey will be set to key.
But the ctx is NULL in this condition, so kernel will panic.
Signed-off-by: Zhang Xiliang <zhangxiliang at cn.fujitsu.com>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 036bbf76ad9f83781590623111b80ba0b82930ac
Author: zhangxiliang <zhangxiliang at cn.fujitsu.com>
Date: Fri Aug 1 09:47:01 2008 +0800
Re: [PATCH] the loginuid field should be output in all AUDIT_CONFIG_CHANGE audit messages
> shouldn't these be using the "audit_get_loginuid(current)" and if we
> are going to output loginuid we also should be outputting sessionid
Thanks for your detailed explanation.
I have made a new patch for outputing "loginuid" and "sessionid" by audit_get_loginuid(current) and audit_get_sessionid(current).
If there are some deficiencies, please give me your indication.
Signed-off-by: Zhang Xiliang <zhangxiliang at cn.fujitsu.com>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 1d6c9649e236caa2e93e3647256216e57172b011
Author: Vesa-Matti J Kari <vmkari at cc.helsinki.fi>
Date: Wed Jul 23 00:06:13 2008 +0300
kernel/audit.c control character detection is off-by-one
Hello,
According to my understanding there is an off-by-one bug in the
function:
audit_string_contains_control()
in:
kernel/audit.c
Patch is included.
I do not know from how many places the function is called from, but for
example, SELinux Access Vector Cache tries to log untrusted filenames via
call path:
avc_audit()
audit_log_untrustedstring()
audit_log_n_untrustedstring()
audit_string_contains_control()
If audit_string_contains_control() detects control characters, then the
string is hex-encoded. But the hex=0x7f dec=127, DEL-character, is not
detected.
I guess this could have at least some minor security implications, since a
user can create a filename with 0x7f in it, causing logged filename to
possibly look different when someone reads it on the terminal.
Signed-off-by: Vesa-Matti Kari <vmkari at cc.helsinki.fi>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit ee1d315663ee0b494898f813a266d6244b263b4f
Author: Eric Paris <eparis at redhat.com>
Date: Mon Jul 7 10:49:45 2008 -0400
[PATCH] Audit: Collect signal info when SIGUSR2 is sent to auditd
Makes the kernel audit subsystem collect information about the sending
process when that process sends SIGUSR2 to the userspace audit daemon.
SIGUSR2 is a new interesting signal to auditd telling auditd that it
should try to start logging to disk again and the error condition which
caused it to stop logging to disk (usually out of space) has been
rectified.
Signed-off-by: Eric Paris <eparis at redhat.com>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 8d66bf5481002b0960aa49aed0987c73f5d7816c
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Fri Aug 1 09:05:54 2008 -0400
[PATCH] pass struct path * to do_add_mount()
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit d5686b444ff3f72808d2b3fbd58672a86cdf38e7
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Fri Aug 1 05:00:11 2008 -0400
[PATCH] switch mtd and dm-table to lookup_bdev()
No need to open-code it...
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit a95164d979c5ca061f15bcaadc829c146693d4d9
Author: Miklos Szeredi <mszeredi at suse.cz>
Date: Wed Jul 30 15:08:48 2008 +0200
[patch 3/4] vfs: remove unused nameidata argument of may_create()
Signed-off-by: Miklos Szeredi <mszeredi at suse.cz>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 7ee7c12b7121cd49d528de219e4ffd5459657998
Author: Alexey Dobriyan <adobriyan at gmail.com>
Date: Sat Jul 26 11:42:16 2008 +0400
[PATCH] devpts: switch to IDA
Devpts code wants just numbers for tty indexes.
Signed-off-by: Alexey Dobriyan <adobriyan at gmail.com>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 9a18540915faaaadd7f71c16fa877a0c19675923
Author: Alexey Dobriyan <adobriyan at gmail.com>
Date: Sat Jul 26 11:21:37 2008 +0400
[PATCH 2/2] proc: switch inode number allocation to IDA
proc doesn't use "associate pointer with id" feature of IDR, so switch
to IDA.
NOTE, NOTE, NOTE:
Do not apply if release_inode_number() still mantions MAX_ID_MASK!
Signed-off-by: Alexey Dobriyan <adobriyan at gmail.com>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 67935df49dae836fa86621861979fafdfd37ae59
Author: Alexey Dobriyan <adobriyan at gmail.com>
Date: Sat Jul 26 11:18:28 2008 +0400
[PATCH 1/2] proc: fix inode number bogorithmetic
Id which proc gets from IDR for inode number and id which proc removes
from IDR do not match. E.g. 0x11a transforms into 0x8000011a.
Which stayed unnoticed for a long time because, surprise, idr_remove()
masks out that high bit before doing anything.
All of this due to "| ~MAX_ID_MASK" in release_inode_number().
I still don't understand how it's supposed to work, because "| ~MASK"
is not an inversion for "& MAX" operation.
So, use just one nice, working addition. Make start offset unsigned int,
while I'm at it. It's longness is not used anywhere.
Signed-off-by: Alexey Dobriyan <adobriyan at gmail.com>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 8266602033d6adc6d10cb8811c1fd694767909b0
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Fri Aug 1 05:32:04 2008 -0400
[PATCH] fix bdev leak in block_dev.c do_open()
Callers expect it to drop reference to bdev on all failure exits.
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 77e69dac3cefacee939cb107ae9cd520a62338e0
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Fri Aug 1 04:29:18 2008 -0400
[PATCH] fix races and leaks in vfs_quota_on() users
* new helper: vfs_quota_on_path(); equivalent of vfs_quota_on() sans the
pathname resolution.
* callers of vfs_quota_on() that do their own pathname resolution and
checks based on it are switched to vfs_quota_on_path(); that way we
avoid the races.
* reiserfs leaked dentry/vfsmount references on several failure exits.
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 1b7e190b4764ea3ca1080404dd593eae5230d2b3
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Wed Jul 30 06:18:03 2008 -0400
[PATCH] clean dup2() up a bit
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 1027abe8827b47f7e9c4ed6514fde3d44f79963c
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Wed Jul 30 04:13:04 2008 -0400
[PATCH] merge locate_fd() and get_unused_fd()
New primitive: alloc_fd(start, flags). get_unused_fd() and
get_unused_fd_flags() become wrappers on top of it.
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit a1bc6eb4b499ae67ada9a01660010580b6569403
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Wed Jul 30 06:32:52 2008 -0400
[PATCH] ipv4_static_sysctl_init() should be under CONFIG_SYSCTL
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit f418b006079ce537daf9436215f1d2a47e451602
Author: Stephen Smalley <sds at tycho.nsa.gov>
Date: Mon Jul 28 13:32:38 2008 -0400
Re: BUG at security/selinux/avc.c:883 (was: Re: linux-next: Tree
for July 17: early crash on x86-64)
SELinux needs MAY_APPEND to be passed down to the security hook.
Otherwise, we get permission denials when only append permission is
granted by policy even if the opening process specified O_APPEND.
Shows up as a regression in the ltp selinux testsuite, fixed by
this patch.
Signed-off-by: Stephen Smalley <sds at tycho.nsa.gov>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit e4c094a595ba8ea402e6b2153f7bbf6ef039eea0
Author: Andrew Morton <akpm at linux-foundation.org>
Date: Wed Jul 30 12:35:04 2008 -0700
[MTD] [NAND] drivers/mtd/nand/nandsim.c: fix printk warnings
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
commit 4f0ca70e52b67f41287d853f0d572dafa875e485
Author: Bryan Wu <cooloney at kernel.org>
Date: Wed Jul 30 12:35:04 2008 -0700
[MTD] [NAND] Blackfin NFC Driver: Cleanup the error exit path of bf5xx_nand_probe function
Signed-off-by: Bryan Wu <cooloney at kernel.org>
Cc: Mike Frysinger <vapier.adi at gmail.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
commit 0ee002b041cb45ab3cc5384b86271d41ccf90fe1
Author: Mike Frysinger <vapier.adi at gmail.com>
Date: Wed Jul 30 12:35:03 2008 -0700
[MTD] [NAND] Blackfin NFC Driver: use standard dev_err() rather than printk()
Signed-off-by: Mike Frysinger <vapier.adi at gmail.com>
Signed-off-by: Bryan Wu <cooloney at kernel.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
commit a0dd20184becf5c90996d9ee0bb69426fe63581a
Author: Mike Frysinger <vapier.adi at gmail.com>
Date: Wed Jul 30 12:35:02 2008 -0700
[MTD] [NAND] Blackfin NFC Driver: enable Blackfin nand HWECC support by default
Signed-off-by: Mike Frysinger <vapier.adi at gmail.com>
Signed-off-by: Bryan Wu <cooloney at kernel.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
commit 2445af3853928bf3ee7960e09f548a1b07924091
Author: Mike Frysinger <vapier.adi at gmail.com>
Date: Wed Jul 30 12:35:02 2008 -0700
[MTD] [NAND] Blackfin NFC Driver: add proper devinit/devexit markings to probe/remove functions
Signed-off-by: Mike Frysinger <vapier.adi at gmail.com>
Signed-off-by: Bryan Wu <cooloney at kernel.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
commit fcb90ba7e9ba9a17ca5103be3f3ae3a446dadc14
Author: Mike Frysinger <vapier.adi at gmail.com>
Date: Wed Jul 30 12:35:01 2008 -0700
[MTD] [NAND] Blackfin NFC Driver: add support for the ECC layout the Blackfin bootrom uses
Signed-off-by: Mike Frysinger <vapier.adi at gmail.com>
Signed-off-by: Bryan Wu <cooloney at kernel.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
commit cf840392e83914b9fcdbce8a8a2bc17a84cf0353
Author: Mike Frysinger <vapier.adi at gmail.com>
Date: Wed Jul 30 12:35:00 2008 -0700
[MTD] [NAND] Blackfin NFC Driver: fix bug - hw ecc calc by making sure we extract 11 bits from each register instead of 10
Signed-off-by: Mike Frysinger <vapier.adi at gmail.com>
Signed-off-by: Bryan Wu <cooloney at kernel.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
commit e274f025e2caaadc1a6dd41adc9c9a19be075110
Author: Mike Frysinger <vapier.adi at gmail.com>
Date: Wed Jul 30 12:34:59 2008 -0700
[MTD] [NAND] Blackfin NFC Driver: fix bug - do not clobber the status from the first 256 bytes if operating on 512 pages
Singed-off-by: Mike Frysinger <vapier.adi at gmail.com>
Signed-off-by: Bryan Wu <cooloney at kernel.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
commit ab4227cb2d936886069ef1056c02500d05beb15d
Author: Martin Schwidefsky <schwidefsky at de.ibm.com>
Date: Fri Aug 1 16:39:24 2008 +0200
[S390] qeth: avoid use of include/asm-s390
The planned move of include/asm-s390 to arch/s390/include/asm
requires that all includes for asm headers use include/asm and
not include/asm-s390.
Signed-off-by: Martin Schwidefsky <schwidefsky at de.ibm.com>
commit fc7e1e4b1ca69109d0f694e47ef2328dcb0ebe6e
Author: Heiko Carstens <heiko.carstens at de.ibm.com>
Date: Fri Aug 1 16:39:23 2008 +0200
[S390] dont use kthread for smp_rescan_cpus().
Since git commit 3da1c84c00c7e5fa8348336bd8c342f9128b0f14
"workqueues: make get_online_cpus() useable for work->func()"
it is safe to call get_online_cpus() from workqueue context.
So remove the kthread workaround again.
Signed-off-by: Heiko Carstens <heiko.carstens at de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky at de.ibm.com>
commit 26f746f3e3bb44b37a894318aa8e808b914ad663
Author: Heiko Carstens <heiko.carstens at de.ibm.com>
Date: Fri Aug 1 16:39:22 2008 +0200
[S390] virtio console: fix section mismatch warning.
Fix these two false positive warnings:
WARNING: vmlinux.o(.text+0x2e1cc4): Section mismatch in reference from the function s390_virtio_console_init() to the function .init.text:early_put_chars()
The function s390_virtio_console_init() references
the function __init early_put_chars().
This is often because s390_virtio_console_init lacks a __init
annotation or the annotation of early_put_chars is wrong.
WARNING: vmlinux.o(.text+0x2e1cd0): Section mismatch in reference from the function s390_virtio_console_init() to the function .init.text:virtio_cons_early_init()
The function s390_virtio_console_init() references
the function __init virtio_cons_early_init().
This is often because s390_virtio_console_init lacks a __init
annotation or the annotation of virtio_cons_early_init is wrong.
Cc: Christian Borntraeger <borntraeger at de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens at de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky at de.ibm.com>
commit 1378ee9b67298176edbcec0ab87b38e913d76ab9
Author: Cornelia Huck <cornelia.huck at de.ibm.com>
Date: Fri Aug 1 16:39:21 2008 +0200
[S390] cio: Include linux/string.h in schid.h.
schid.h needs string.h for memset and memcmp.
Signed-off-by: Cornelia Huck <cornelia.huck at de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky at de.ibm.com>
commit 3f1934bc1a0dcc2b7c31c8fd4f41ea2dd6522c3e
Author: Heiko Carstens <heiko.carstens at de.ibm.com>
Date: Fri Aug 1 16:39:20 2008 +0200
[S390] qdio: fix section mismatch bug.
Fix the two section mismatch warnings below.
This fixes two real bugs since the code which has __exit annotations
may already be gone when it is called.
WARNING: vmlinux.o(.init.text+0x1cc4a): Section mismatch in reference from the function init_QDIO() to the function .exit.text:qdio_setup_exit()
The function __init init_QDIO() references
a function __exit qdio_setup_exit().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __exit annotation of
qdio_setup_exit() so it may be used outside an exit section.
WARNING: vmlinux.o(.init.text+0x1cc7a): Section mismatch in reference from the function init_QDIO() to the function .exit.text:qdio_remove_perf_stats()
The function __init init_QDIO() references
a function __exit qdio_remove_perf_stats().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __exit annotation of
qdio_remove_perf_stats() so it may be used outside an exit section.
Signed-off-by: Heiko Carstens <heiko.carstens at de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky at de.ibm.com>
commit 8f8470032570988af2eeff520ca01a32fd908b2b
Author: Heiko Carstens <heiko.carstens at de.ibm.com>
Date: Fri Aug 1 16:39:19 2008 +0200
[S390] stp: fix section mismatch warning.
Fix these two (false positive) warnings by adding an __init annoation:
WARNING: vmlinux.o(.text+0x7e6a): Section mismatch in reference from the function stp_reset() to the function .init.text:__alloc_bootmem()
The function stp_reset() references
the function __init __alloc_bootmem().
This is often because stp_reset lacks a __init
annotation or the annotation of __alloc_bootmem is wrong.
WARNING: vmlinux.o(.text+0x7ece): Section mismatch in reference from the function stp_reset() to the function .init.text:free_bootmem()
The function stp_reset() references
the function __init free_bootmem().
This is often because stp_reset lacks a __init
annotation or the annotation of free_bootmem is wrong.
Signed-off-by: Heiko Carstens <heiko.carstens at de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky at de.ibm.com>
commit d918fe2bd72830dfbe8ca2bb30d49930d1356e6d
Author: Heiko Carstens <heiko.carstens at de.ibm.com>
Date: Fri Aug 1 16:39:18 2008 +0200
[S390] Remove diag 0x260 call from memory detection.
The result of the diag 0x260 call is not always what one would expect.
So just remove it.
Signed-off-by: Heiko Carstens <heiko.carstens at de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky at de.ibm.com>
commit 3b8e3004aea95c687e8991583e7b150ec1416ff3
Author: Jan Glauber <jang at linux.vnet.ibm.com>
Date: Fri Aug 1 16:39:17 2008 +0200
[S390] qdio: make sure qdr is aligned to page size
kzalloc does not guarantee the required alignment of qdr to page size,
use get_zeroed_page instead.
Signed-off-by: Jan Glauber <jang at linux.vnet.ibm.com>
commit 7e9238fbc10373effc2c3b0b516b0bdc8fefc27b
Author: Gerald Schaefer <gerald.schaefer at de.ibm.com>
Date: Fri Aug 1 16:39:16 2008 +0200
[S390] Add support for memory hot-remove.
This patch enables memory hot-remove on s390.
Signed-off-by: Gerald Schaefer <gerald.schaefer at de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens at de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky at de.ibm.com>
commit 519620cc3d723d41522191ebd150fba4a3790296
Author: Heiko Carstens <heiko.carstens at de.ibm.com>
Date: Fri Aug 1 16:39:15 2008 +0200
[S390] Wire up new syscalls.
Signed-off-by: Heiko Carstens <heiko.carstens at de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky at de.ibm.com>
commit 883e512c99fc398d1b2b5e8e92b6bacff2551756
Author: Michael Ernst <mernst at de.ibm.com>
Date: Fri Aug 1 16:39:14 2008 +0200
[S390] cio: Memory allocation for idset changed.
Memory allocation for the quite huge idset changed from
kzalloc to vmalloc.
Signed-off-by: Michael Ernst <mernst at de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky at de.ibm.com>
commit 683d718a893575a88c551ad71ea2c382eedbf67e
Author: Frank Blaschka <frank.blaschka at de.ibm.com>
Date: Fri Aug 1 16:39:13 2008 +0200
[S390] qeth: preallocated qeth header for hiper socket
For hiper socket devices this patch will economize the reallocation
of the tx skb data segment by allocating separate memory for the qdio
transport information (qeth header).
Signed-off-by: Frank Blaschka <frank.blaschka at de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky at de.ibm.com>
commit a4b526b3ba6353cd89a38e41da48ed83b0ead16f
Author: Martin Schwidefsky <schwidefsky at de.ibm.com>
Date: Fri Aug 1 16:39:12 2008 +0200
[S390] Optimize storage key operations for anon pages
For anonymous pages without a swap cache backing the check in
page_remove_rmap for the physical dirty bit in page_remove_rmap is
unnecessary. The instructions that are used to check and reset the dirty
bit are expensive. Removing the check noticably speeds up process exit.
In addition the clearing of the dirty bit in __SetPageUptodate is
pointless as well. With these two changes there is no storage key
operation for an anonymous page anymore if it does not hit the swap
space.
The micro benchmark which repeatedly executes an empty shell script
gets about 5% faster.
Signed-off-by: Martin Schwidefsky <schwidefsky at de.ibm.com>
commit 934b2857cc576ae53c92a66e63fce7ddcfa74691
Author: Heiko Carstens <heiko.carstens at de.ibm.com>
Date: Fri Aug 1 16:39:11 2008 +0200
[S390] nohz/sclp: disable timer on synchronous waits.
sclp_sync_wait wait synchronously for an sclp interrupt and disables
timer interrupts. However on the irq enter paths there is an extra
check if a timer interrupt would be due and calls the timer callback.
This would schedule softirqs in the wrong context.
So introduce local_tick_enable/disable which prevents this.
Signed-off-by: Heiko Carstens <heiko.carstens at de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky at de.ibm.com>
commit 3a95e8eb34f595a0144adb6e5513d456319bd8a5
Author: Michael Holzheu <holzheu at linux.vnet.ibm.com>
Date: Fri Aug 1 16:39:10 2008 +0200
[S390] ipl: Reboot from alternate device does not work when booting from file
During startup we check if diag308 works using diag 308 subcode 6,
which stores the actual ipl information. This fails with rc = 0x102, if
the system has been ipled from the HMC using load from CD or load from file.
In the case of rc = 0x102 we have to assume that diag 308 is working,
since it still can be used to ipl from an alternative device.
Signed-off-by: Michael Holzheu <holzheu at linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky at de.ibm.com>
commit 4abb08c24b5fa7b6ad0807c07077f0f216f6788b
Author: Stefan Weinhuber <wein at de.ibm.com>
Date: Fri Aug 1 16:39:09 2008 +0200
[S390] dasd: Add support for enhanced VM UID
When z/VM provides two virtual devices (minidisks) that reside on the
same real device, both will receive the configuration data from the
real device and thus get the same uid. To fix this problem, z/VM
provides an additional configuration data record that allows to
distinguish between minidisks.
z/VM APAR VM64273 needs be installed so this fix has an effect.
Signed-off-by: Stefan Weinhuber <wein at de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky at de.ibm.com>
commit c2bb4e5d497823437f0a11d342024ccdc6ff5b0d
Author: Heiko Carstens <heiko.carstens at de.ibm.com>
Date: Fri Aug 1 16:39:08 2008 +0200
[S390] Remove last P390 trace.
Seems like I forgot this hunk...
Signed-off-by: Heiko Carstens <heiko.carstens at de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky at de.ibm.com>
commit 963724462a11668185dc67879ea8fe7590973322
Author: Harvey Harrison <harvey.harrison at gmail.com>
Date: Wed Jul 30 12:34:57 2008 -0700
[MTD] [NAND] diskonchip.c fix sparse endian warnings
Signed-off-by: Harvey Harrison <harvey.harrison at gmail.com>
Cc: Al Viro <viro at zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
commit fc1f397b2c7ef1c9bad58778e4041dfabf20c71c
Author: Andrew Morton <akpm at linux-foundation.org>
Date: Wed Jul 30 12:34:56 2008 -0700
[MTD] [NAND] drivers/mtd/nand/nandsim.c needs div64.h
drivers/mtd/nand/nandsim.c: In function 'divide':
drivers/mtd/nand/nandsim.c:462: error: implicit declaration of function 'do_div'
Cc: Stephen Rothwell <sfr at canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
commit 25fc999913839a45cbb48ac7872e67f7521e7ed9
Author: Jason Wessel <jason.wessel at windriver.com>
Date: Fri Aug 1 08:39:35 2008 -0500
kgdb: fix gdb serial thread queries
The command "info threads" did not work correctly with kgdb. It would
result in a silent kernel hang if used.
This patach addresses several problems.
- Fix use of deprecated NR_CPUS
- Fix kgdb to not walk linearly through the pid space
- Correctly implement shadow pids
- Change the threads per query to a #define
- Fix kgdb_hex2long to work with negated values
The threads 0 and -1 are reserved to represent the current task. That
means that CPU 0 will start with a shadow thread id of -2, and CPU 1
will have a shadow thread id of -3, etc...
From the debugger you can switch to a shadow thread to see what one of
the other cpus was doing, however it is not possible to execute run
control operations on any other cpu execept the cpu executing the
kgdb_handle_exception().
Signed-off-by: Jason Wessel <jason.wessel at windriver.com>
commit a9b60bf4c29e07a5a2f26a6f74937972fee9b58b
Author: Jason Wessel <jason.wessel at windriver.com>
Date: Fri Aug 1 08:39:34 2008 -0500
kgdb: fix kgdb_validate_break_address to perform a mem write
A regression to the kgdb core was found in the case of using the
CONFIG_DEBUG_RODATA kernel option. When this option is on, a breakpoint
cannot be written into any readonly memory page. When an external
debugger requests a breakpoint to get set, the
kgdb_validate_break_address() was only checking to see if the address
to place the breakpoint was readable and lacked a write check.
This patch changes the validate routine to try reading (via the
breakpoint set request) and also to try immediately writing the break
point. If either fails, an error is correctly returned and the
debugger behaves correctly. Then an end user can make the
descision to use hardware breakpoints.
Also update the documentation to reflect that using
CONFIG_DEBUG_RODATA will inhibit the use of software breakpoints.
Signed-off-by: Jason Wessel <jason.wessel at windriver.com>
commit 5f5ddfb3605d2a4f555a7ff034859e623eafcd27
Author: Jason Wessel <jason.wessel at windriver.com>
Date: Fri Aug 1 08:39:34 2008 -0500
kgdb: remove the requirement for CONFIG_FRAME_POINTER
There is no technical reason that the kgdb core requires frame
pointers. It is up to the end user of KGDB to decide if they need
them or not.
[ anemo at mba.ocn.ne.jp: removed frame pointers on mips ]
Signed-off-by: Jason Wessel <jason.wessel at windriver.com>
commit b7600dba6d4fbf3897e517b322d006986cce831a
Author: David Woodhouse <David.Woodhouse at intel.com>
Date: Fri Aug 1 10:07:51 2008 +0100
[JFFS2] Fix allocation of summary buffer
We can't use vmalloc for the buffer we use for writing summaries,
because some drivers may want to DMA from it. So limit the size to 64KiB
and use kmalloc for it instead.
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
commit f6ed6f78d46b43b6d908b39ed3322f7cda23f4a8
Author: Pieter du Preez <pdupreez at gmail.com>
Date: Fri Aug 1 10:06:40 2008 +0100
Fix rename of at91_nand -> atmel_nand
Structs called at91_nand_data where renamed to atmel_nand_data
and configs called *MTD_NAND_AT91* where renamed to
*MTD_NAND_ATMEL*. This was unfortunately not done consistently,
causing NAND chips not being initialised on several ARM boards.
I am aware that the author of the original change did not rename
MTD_NAND_AT91_BUSWIDTH to MTD_NAND_ATMEL_BUSWIDTH, for example.
All *MTD_NAND_AT91* where renamed to *MTD_NAND_ATMEL* in order
to keep naming consistency.
This patch was only tested on a MACH_SAM9_L9260, as this is the
only ARM board I have to my disposal.
Before this patch:
$ git-ls-files |xargs grep atmel_nand |wc -l
105
$ git-ls-files |xargs grep at91_nand |wc -l
4
$ git-ls-files |xargs grep MTD_NAND_ATMEL |wc -l
8
$ git-ls-files |xargs grep MTD_NAND_AT91 |wc -l
47
After this patch:
$ git-ls-files |xargs grep atmel_nand |wc -l
109
$ git-ls-files |xargs grep at91_nand |wc -l
0
$ git-ls-files |xargs grep MTD_NAND_ATMEL |wc -l
55
$ git-ls-files |xargs grep MTD_NAND_AT91 |wc -l
0
Signed-off-by: Pieter du Preez <pdupreez at gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
commit 00b1304c4ca81dd893973cc620b87a5c3ff3f660
Author: Adam Langley <agl at imperialviolet.org>
Date: Thu Jul 31 21:36:07 2008 -0700
tcp: MD5: Fix IPv6 signatures
Reported by Stefanos Harhalakis; although 2.6.27-rc1 talks to itself using IPv6
TCP MD5 packets just fine, Stefanos noted that tcpdump claimed that the
signatures were invalid.
I broke this in 49a72dfb8814c2d65bd9f8c9c6daf6395a1ec58d ("tcp: Fix MD5
signatures for non-linear skbs"), it was just a typo.
Note that tcpdump will still sometimes claim that the signatures are incorrect.
A patch to tcpdump has been submitted for this[1].
[1] http://tinyurl.com/6a4fl2
Signed-off-by: Adam Langley <agl at imperialviolet.org>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 4a7b61d23505854dff7d04cc11944566cffdd0ee
Author: Randy Dunlap <randy.dunlap at oracle.com>
Date: Thu Jul 31 20:52:08 2008 -0700
skbuff: add missing kernel-doc for do_not_encrypt
Add missing kernel-doc notation to sk_buff:
Warning(linux-2.6.27-rc1-git2//include/linux/skbuff.h:345): No description found for parameter 'do_not_encrypt'
Signed-off-by: Randy Dunlap <randy.dunlap at oracle.com>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 8a9204db665365354b349ed5b0bc054f0433a2a4
Author: Ingo Molnar <mingo at elte.hu>
Date: Thu Jul 31 20:51:22 2008 -0700
net/ipv4/route.c: fix build error
fix:
net/ipv4/route.c: In function 'ip_static_sysctl_init':
net/ipv4/route.c:3225: error: 'ipv4_route_path' undeclared (first use in this function)
net/ipv4/route.c:3225: error: (Each undeclared identifier is reported only once
net/ipv4/route.c:3225: error: for each function it appears in.)
net/ipv4/route.c:3225: error: 'ipv4_route_table' undeclared (first use in this function)
Signed-off-by: Ingo Molnar <mingo at elte.hu>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 47d715af0761012ab074a12b5b5959f0179eaa09
Author: Mark M. Hoffman <mhoffman at lightlink.com>
Date: Thu Jul 31 23:48:25 2008 -0400
hwmon: needs new maintainer
Signed-off-by: Mark M. Hoffman <mhoffman at lightlink.com>
commit 90b7e1120bb43ffaabb88d28f80a0c2e13167b15
Author: Adam Langley <agl at imperialviolet.org>
Date: Thu Jul 31 20:49:48 2008 -0700
tcp: MD5: Fix MD5 signatures on certain ACK packets
I noticed, looking at tcpdumps, that timewait ACKs were getting sent
with an incorrect MD5 signature when signatures were enabled.
I broke this in 49a72dfb8814c2d65bd9f8c9c6daf6395a1ec58d ("tcp: Fix
MD5 signatures for non-linear skbs"). I didn't take into account that
the skb passed to tcp_*_send_ack was the inbound packet, thus the
source and dest addresses need to be swapped when calculating the MD5
pseudoheader.
Signed-off-by: Adam Langley <agl at imperialviolet.org>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 77e2f14f71d68d05945f1d30ca55b5194d6ab1ce
Author: Wei Yongjun <yjwei at cn.fujitsu.com>
Date: Thu Jul 31 20:46:47 2008 -0700
ipv6: Fix ip6_xmit to send fragments if ipfragok is true
SCTP used ip6_xmit() to send fragments after received ICMP packet too
big message. But while send packet used ip6_xmit, the skb->local_df is
not initialized. So when skb if enter ip6_fragment(), the following
code will discard the skb.
ip6_fragment(...)
{
if (!skb->local_df) {
...
return -EMSGSIZE;
}
...
}
SCTP do the following step:
1. send packet ip6_xmit(skb, ipfragok=0)
2. received ICMP packet too big message
3. if PMTUD_ENABLE: ip6_xmit(skb, ipfragok=1)
This patch fixed the problem by set local_df if ipfragok is true.
Signed-off-by: Wei Yongjun <yjwei at cn.fujitsu.com>
Acked-by: Herbert Xu <herbert at gondor.apana.org.au>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit bc4768eb081a67642c0c44c34ea597c273bdedcb
Author: Julius Volz <juliusv at google.com>
Date: Thu Jul 31 20:45:24 2008 -0700
ipvs: Move userspace definitions to include/linux/ip_vs.h
Current versions of ipvsadm include "/usr/src/linux/include/net/ip_vs.h"
directly. This file also contains kernel-only definitions. Normally, public
definitions should live in include/linux, so this patch moves the
definitions shared with userspace to a new file, "include/linux/ip_vs.h".
This also removes the unused NFC_IPVS_PROPERTY bitmask, which was once
used to point into skb->nfcache.
To make old ipvsadms still compile with this, the old header file includes
the new one.
Thanks to Dave Miller and Horms for noting/adding the missing Kbuild entry
for the new header file.
Signed-off-by: Julius Volz <juliusv at google.com>
Acked-by: Simon Horman <horms at verge.net.au>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 5f44759470f7248f74947a39cba339009d62052c
Author: Jean Delvare <khali at linux-fr.org>
Date: Wed Jun 25 09:10:30 2008 -0400
hwmon: (lm85) Simplify device initialization function
Clean up and simplify the device initialization function:
* Degrade error messages to warnings - what they really are.
* Stop warning about VxI mode, we don't really care.
* Drop comment about lack of limit initialization - that's the standard
way, all hardware monitoring drivers do that.
* Only read the configuration register once.
* Only write back to the configuration register if needed.
* Don't attempt to clear the lock bit, it locks itself to 1.
* Move the function to before it's called, so that we no longer need to
forware declare it.
Signed-off-by: Jean Delvare <khali at linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman at lightlink.com>
commit e89e22b23bceb3fbbcfb931ad17a564b7c1eaa55
Author: Jean Delvare <khali at linux-fr.org>
Date: Wed Jun 25 08:47:35 2008 -0400
hwmon: (lm85) Misc cleanups
Misc cleanups to the lm85 hardware monitoring driver:
* Mark constant arrays as const.
* Remove useless masks.
* Have lm85_write_value return void - nobody is checking the returned
value anyway and in some cases it was plain wrong.
* Remove useless initializations.
* Rename new_client to client in lm85_detect.
* Replace cascaded if/else with a switch/case in lm85_detect.
* Group similar loops in lm85_update_device.
* Remove legacy comments.
Signed-off-by: Jean Delvare <khali at linux-fr.org>
Acked-by: Juerg Haefliger <juergh at gmail.com>
Signed-off-by: Mark M. Hoffman <mhoffman at lightlink.com>
commit 7133e56f29030b13601d3399e20050053e560860
Author: Jean Delvare <khali at linux-fr.org>
Date: Sat Apr 12 19:56:35 2008 +0200
hwmon: (lm85) Don't write back cached values
In set_pwm_auto_pwm_minctl, we write cached register bits back to the
chip. This is a bad idea as we have no guarantee that the cache is
up-to-date. Better read a fresh register value from the chip, it's
safer and in fact it is also more simple.
Signed-off-by: Jean Delvare <khali at linux-fr.org>
Acked-by: Juerg Haefliger <juergh at gmail.com>
Signed-off-by: Mark M. Hoffman <mhoffman at lightlink.com>
commit dd1ac5384a08946a99e974bf5749d382e92ed3c0
Author: Jean Delvare <khali at linux-fr.org>
Date: Thu May 1 08:47:33 2008 +0200
hwmon: (lm85) Drop dead code
Drop a lot of useless register defines, conversion macros, data structure
members and update code. All these register values were read from the
device but nothing is done out of them, so this is all dead code in
practice.
Signed-off-by: Jean Delvare <khali at linux-fr.org>
Acked-by: Juerg Haefliger <juergh at gmail.com>
Signed-off-by: Mark M. Hoffman <mhoffman at lightlink.com>
commit 1f44809ac3d7a3fc977684dc3a95fa221f33fc15
Author: Jean Delvare <khali at linux-fr.org>
Date: Tue Apr 29 14:03:37 2008 +0200
hwmon: (lm85) Coding-style cleanups
Fix most style issues reported by checkpatch, including:
* Trailing, missing and extra whitespace
* Extra parentheses, curly braces and semi-colons
* Broken indentation
* Lines too long
I verified that the generated code is the same before and after
these changes.
Signed-off-by: Jean Delvare <khali at linux-fr.org>
Acked-by: Juerg Haefliger <juergh at gmail.com>
Signed-off-by: Mark M. Hoffman <mhoffman at lightlink.com>
commit 9ebd3d822efeca2e73565516a80373c76ce3fa12
Author: David Brownell <david-b at pacbell.net>
Date: Sat May 3 19:33:15 2008 -0700
hwmon: (lm75) add new-style driver binding
More LM75 updates:
- Teach the LM75 driver to use new-style driver binding:
* Create a second driver struct, using new-style driver binding
methods cribbed from the legacy code.
* Add a MODULE_DEVICE_TABLE (for "newER-style binding")
* The legacy probe logic delegates its work to this new code.
* The legacy driver now uses the name "lm75_legacy".
- More careful initialization. Chips are put into 9-bit mode so
the current interconversion routines will never fail.
- Save the original chip configuration, and restore it on exit.
(Among other things, this normally turns off the mode where
the chip is constantly sampling ... and thus saves power.)
So the new-style code should catch all chips that boards declare,
while the legacy code catches others. This particular coexistence
strategy may need some work yet ... legacy modes might best be set
up explicitly by some tool not unlike "sensors-detect". (Or else
completely eradicated...)
Signed-off-by: David Brownell <dbrownell at users.sourceforge.net>
Acked-by: Jean Delvare <khali at linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman at lightlink.com>
commit 01a52397e95a8532c59506691759dba9262d6be7
Author: David Brownell <david-b at pacbell.net>
Date: Mon Apr 21 12:10:53 2008 -0700
hwmon: (lm75) cleanup/reorg
Minor cleanup and reorg of the lm75 code.
- Kconfig provides a larger list of lm75-compatible chips
- A top comment now says what the driver does (!) ... as in, just
what sort of sensor is this??
- Section comments now delineate the various sections of the driver:
hwmon attributes, driver binding, register access, module glue.
One driver binding function moved out of the attribute section,
as did the driver struct itself.
- Minor tweaks to legacy probe logic: correct a comment, and
remove a pointless variable.
- Whitespace, linelength, and comment fixes.
This patch should include no functional changes. It's preparation
for adding new-style (driver model) I2C driver binding.
Signed-off-by: David Brownell <dbrownell at users.sourceforge.net>
Acked-by: Jean Delvare <khali at linux-fr.org>
Acked-by: Laurent Pinchart <laurentp at cse-semaphore.com>
Signed-off-by: Mark M. Hoffman <mhoffman at lightlink.com>
commit 321c4138573da888ca30a387e9973f690c217e9e
Author: Mark M. Hoffman <mhoffman at lightlink.com>
Date: Mon May 26 15:09:36 2008 -0400
hwmon: (adt7473) clarify an awkward bit of code
Signed-off-by: Mark M. Hoffman <mhoffman at lightlink.com>
Acked-by: Jean Delvare <khali at linux-fr.org>
commit 9d3e19afd35907bf58b205096cd33e97df8fb6a5
Author: Jean Delvare <khali at linux-fr.org>
Date: Sat Apr 26 16:28:27 2008 +0200
hwmon: (adt7473) Remove unused defines
All the *_MAX_ADDR defines are never used, so remove them. The number
of registers of each type is already expressed by the *_COUNT defines.
Signed-off-by: Jean Delvare <khali at linux-fr.org>
Acked-by: Darrick J. Wong <djwong at us.ibm.com>
Signed-off-by: Mark M. Hoffman <mhoffman at lightlink.com>
commit f994fb23d3c63dffc8127f227f3e0c530e3e4fd6
Author: Juerg Haefliger <juergh at gmail.com>
Date: Tue Mar 25 21:49:15 2008 -0700
hwmon: (dme1737) fix voltage scaling
This patch fixes a voltage scaling issue for the sch311x device.
Signed-Off-By: Juerg Haefliger <juergh at gmail.com>
Acked-by: Jean Delvare <khali at linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman at lightlink.com>
commit 92430b6feb19aba043171ff3094535b598052901
Author: Juerg Haefliger <juergh at gmail.com>
Date: Thu Apr 3 21:34:19 2008 -0700
hwmon: (dme1737) probe all addresses
This patch adds a module load parameter to enable probing of
non-standard LPC addresses 0x162e and 0x164e when scanning for supported
ISA chips.
Signed-Off-By: Juerg Haefliger <juergh at gmail.com>
Acked-by: Jean Delvare <khali at linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman at lightlink.com>
commit 9b257714a3f6f5c3ea133c44d3442e2340734b65
Author: Juerg Haefliger <juergh at gmail.com>
Date: Tue Mar 25 21:49:02 2008 -0700
hwmon: (dme1737) demacrofy for readability
This patch gets rid of a couple of macros previously used for sysfs attribute
generation and manipulation. This makes the source a little bigger but a lot
more readable and maintainable. It also fixes an issue with pwm5 & pwm6
attributes not being created read-only initially.
Signed-Off-By: Juerg Haefliger <juergh at gmail.com>
Acked-by: Jean Delvare <khali at linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman at lightlink.com>
commit 388667bed591b2359713bb17d5de0cf56e961447
Author: Arthur Jones <ajones at riverbed.com>
Date: Fri Jul 25 12:03:38 2008 -0700
md: raid10: wake up frozen array
When rescheduling a bio in raid10, we wake up
the md thread, but if the array is frozen, this
will have no effect. This causes the array to
remain frozen for eternity. We add a wake_up
to allow the array to de-freeze. This code is
nearly identical to the raid1 code, which has
this fix already.
Signed-off-by: Arthur Jones <ajones at riverbed.com>
Signed-off-by: NeilBrown <neilb at suse.de>
commit c3f26a269c2421f97f10cf8ed05d5099b573af4d
Author: David S. Miller <davem at davemloft.net>
Date: Thu Jul 31 16:58:50 2008 -0700
netdev: Fix lockdep warnings in multiqueue configurations.
When support for multiple TX queues were added, the
netif_tx_lock() routines we converted to iterate over
all TX queues and grab each queue's spinlock.
This causes heartburn for lockdep and it's not a healthy
thing to do with lots of TX queues anyways.
So modify this to use a top-level lock and a "frozen"
state for the individual TX queues.
Signed-off-by: David S. Miller <davem at davemloft.net>
commit c259ae52e204d42f8b2d484c85517a4c367030e1
Author: Julia Lawall <julia at diku.dk>
Date: Mon Jul 21 09:59:15 2008 +0200
[PATCH] ocfs2: Release mutex in error handling code
The mutex is released on a successful return, so it would seem that it
should be released on an error return as well.
The semantic patch finds this problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)
// <smpl>
@@
expression l;
@@
mutex_lock(l);
... when != mutex_unlock(l)
when any
when strict
(
if (...) { ... when != mutex_unlock(l)
+ mutex_unlock(l);
return ...;
}
|
mutex_unlock(l);
)
// </smpl>
Signed-off-by: Julia Lawall <julia at diku.dk>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 961cecbee6786f4b1f1b8f695e87045b583f9f49
Author: Sunil Mushran <sunil.mushran at oracle.com>
Date: Wed Jul 16 17:22:22 2008 -0700
[PATCH] ocfs2: Fix oops when racing files truncates with writes into an mmap region
This patch fixes an oops that is reproduced when one races writes to a mmap-ed
region with another process truncating the file.
Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 539d8264093560b917ee3afe4c7f74e5da09d6a5
Author: Sunil Mushran <sunil.mushran at oracle.com>
Date: Mon Jul 14 17:31:10 2008 -0700
[PATCH 2/2] ocfs2: Fix race between mount and recovery
As the fs recovery is asynchronous, there is a small chance that another
node can mount (and thus recover) the slot before the recovery thread
gets to it.
If this happens, the recovery thread will block indefinitely on the
journal/slot lock as that lock will be held for the duration of the mount
(by design) by the node assigned to that slot.
The solution implemented is to keep track of the journal replays using
a recovery generation in the journal inode, which will be incremented by the
thread replaying that journal. The recovery thread, before attempting the
blocking lock on the journal/slot lock, will compare the generation on disk
with what it has cached and skip recovery if it does not match.
This bug appears to have been inadvertently introduced during the mount/umount
vote removal by mainline commit 34d024f84345807bf44163fac84e921513dde323. In the
mount voting scheme, the messaging would indirectly indicate that the slot
was being recovered.
Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit c69991aac71a8beb57c11d651c7fd4b24c32aa8b
Author: Sunil Mushran <sunil.mushran at oracle.com>
Date: Mon Jul 14 17:31:09 2008 -0700
[PATCH 1/2] ocfs2: Add counter in struct ocfs2_dinode to track journal replays
This patch renames the ij_pad to ij_recovery_generation in struct ocfs2_dinode.
This will be used to keep count of journal replays after an unclean shutdown.
Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit ecb3d28c7edd58b54f16838c434b342ba9195bec
Author: Joel Becker <joel.becker at oracle.com>
Date: Wed Jun 18 19:29:05 2008 -0700
[PATCH] configfs: Convenience macros for attribute definition.
Sysfs has the _ATTR() and _ATTR_RO() macros to make defining extended
form attributes easier. configfs should have something similiar.
- _CONFIGFS_ATTR() and _CONFIGFS_ATTR_RO() are the counterparts to the
sysfs macros.
- CONFIGFS_ATTR_STRUCT() creates the extended form attribute structure.
- CONFIGFS_ATTR_OPS() defines the show_attribute()/store_attribute()
operations that call the show()/store() operations of the extended
form configfs_attributes.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 70526b67443a980d5029d9cf06903bef731a4e96
Author: Joel Becker <joel.becker at oracle.com>
Date: Tue Jun 17 15:34:32 2008 -0700
[PATCH] configfs: Pin configfs subsystems separately from new config_items.
configfs_mkdir() creates a new item by calling its parent's
->make_item/group() functions. Once that object is created,
configfs_mkdir() calls try_module_get() on the new item's module. If it
succeeds, the module owning the new item cannot be unloaded, and
configfs is safe to reference the item.
If the item and the subsystem it belongs to are part of the same module,
the subsystem is also pinned. This is the common case.
However, if the subsystem is made up of multiple modules, this may not
pin the subsystem. Thus, it would be possible to unload the toplevel
subsystem module while there is still a child item. Thus, we now
try_module_get() the subsystem's module. This only really affects
children of the toplevel subsystem group. Deeper children already have
their parents pinned.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 99cefda42ac550863b5ae1df9e60322e377decf9
Author: Louis Rilling <louis.rilling at kerlabs.com>
Date: Fri Jun 27 13:10:25 2008 +0200
[PATCH] configfs: Fix open directory making rmdir() fail
When checking for user-created elements under an item to be removed by rmdir(),
configfs_detach_prep() counts fake configfs_dirents created by dir_open() as
user-created and fails when finding one. It is however perfectly valid to remove
a directory that is open.
Simply make configfs_detach_prep() skip fake configfs_dirent, like it already
does for attributes, and like detach_groups() does.
Signed-off-by: Louis Rilling <louis.rilling at kerlabs.com>
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 2e2ce171c3ba6f2753fb1fd2706b63683394da2d
Author: Louis Rilling <louis.rilling at kerlabs.com>
Date: Fri Jul 4 16:56:06 2008 +0200
[PATCH] configfs: Lock new directory inodes before removing on cleanup after failure
Once a new configfs directory is created by configfs_attach_item() or
configfs_attach_group(), a failure in the remaining initialization steps leads
to removing a directory which inode the VFS may have already accessed.
This commit adds the necessary inode locking to safely remove configfs
directories while cleaning up after a failure. As an advantage, the locking
rules of populate_groups() and detach_groups() become the same: the caller must
have the group's inode mutex locked.
Signed-off-by: Louis Rilling <louis.rilling at kerlabs.com>
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 2a109f2a4155f168047aa2f5b3a170e279bef89a
Author: Louis Rilling <louis.rilling at kerlabs.com>
Date: Fri Jul 4 16:56:05 2008 +0200
[PATCH] configfs: Prevent userspace from creating new entries under attaching directories
process 1: process 2:
configfs_mkdir("A")
attach_group("A")
attach_item("A")
d_instantiate("A")
populate_groups("A")
mutex_lock("A")
attach_group("A/B")
attach_item("A")
d_instantiate("A/B")
mkdir("A/B/C")
do_path_lookup("A/B/C", LOOKUP_PARENT)
ok
lookup_create("A/B/C")
mutex_lock("A/B")
ok
configfs_mkdir("A/B/C")
ok
attach_group("A/C")
attach_item("A/C")
d_instantiate("A/C")
populate_groups("A/C")
mutex_lock("A/C")
attach_group("A/C/D")
attach_item("A/C/D")
failure
mutex_unlock("A/C")
detach_groups("A/C")
nothing to do
mkdir("A/C/E")
do_path_lookup("A/C/E", LOOKUP_PARENT)
ok
lookup_create("A/C/E")
mutex_lock("A/C")
ok
configfs_mkdir("A/C/E")
ok
detach_item("A/C")
d_delete("A/C")
mutex_unlock("A")
detach_groups("A")
mutex_lock("A/B")
detach_group("A/B")
detach_groups("A/B")
nothing since no _default_ group
detach_item("A/B")
mutex_unlock("A/B")
d_delete("A/B")
detach_item("A")
d_delete("A")
Two bugs:
1/ "A/B/C" and "A/C/E" are created, but never removed while their parent are
removed in the end. The same could happen with symlink() instead of mkdir().
2/ "A" and "A/C" inodes are not locked while detach_item() is called on them,
which may probably confuse VFS.
This commit fixes 1/, tagging new directories with CONFIGFS_USET_CREATING before
building the inode and instantiating the dentry, and validating the whole
group+default groups hierarchy in a second pass by clearing
CONFIGFS_USET_CREATING.
mkdir(), symlink(), lookup(), and dir_open() simply return -ENOENT if
called in (or linking to) a directory tagged with CONFIGFS_USET_CREATING. This
does not prevent userspace from calling stat() successfuly on such directories,
but this prevents userspace from adding (children to | symlinking from/to |
read/write attributes of | listing the contents of) not validated items. In
other words, userspace will not interact with the subsystem on a new item until
the new item creation completes correctly.
It was first proposed to re-use CONFIGFS_USET_IN_MKDIR instead of a new
flag CONFIGFS_USET_CREATING, but this generated conflicts when checking the
target of a new symlink: a valid target directory in the middle of attaching
a new user-created child item could be wrongly detected as being attached.
2/ is fixed by next commit.
Signed-off-by: Louis Rilling <louis.rilling at kerlabs.com>
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 9a73d78cda750f12e25eb811878f2d9dbab1bc6e
Author: Louis Rilling <louis.rilling at kerlabs.com>
Date: Fri Jun 20 14:09:22 2008 +0200
[PATCH] configfs: Fix failing symlink() making rmdir() fail
On a similar pattern as mkdir() vs rmdir(), a failing symlink() may make rmdir()
fail for the symlink's parent and the symlink's target as well.
failing symlink() making target's rmdir() fail:
process 1: process 2:
symlink("A/S" -> "B")
allow_link()
create_link()
attach to "B" links list
rmdir("B")
detach_prep("B")
error because of new link
configfs_create_link("A", "S")
error (eg -ENOMEM)
failing symlink() making parent's rmdir() fail:
process 1: process 2:
symlink("A/D/S" -> "B")
allow_link()
create_link()
attach to "B" links list
configfs_create_link("A/D", "S")
make_dirent("A/D", "S")
rmdir("A")
detach_prep("A")
detach_prep("A/D")
error because of "S"
create("S")
error (eg -ENOMEM)
We cannot use the same solution as for mkdir() vs rmdir(), since rmdir() on the
target cannot wait on the i_mutex of the new symlink's parent without risking a
deadlock (with other symlink() or sys_rename()). Instead we define a global
mutex protecting all configfs symlinks attachment, so that rmdir() can avoid the
races above.
Signed-off-by: Louis Rilling <louis.rilling at kerlabs.com>
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 4768e9b18dc63719209c68920d4ae52dc49b6161
Author: Louis Rilling <louis.rilling at kerlabs.com>
Date: Mon Jun 23 14:16:17 2008 +0200
[PATCH] configfs: Fix symlink() to a removing item
The rule for configfs symlinks is that symlinks always point to valid
config_items, and prevent the target from being removed. However,
configfs_symlink() only checks that it can grab a reference on the target item,
without ensuring that it remains alive until the symlink is correctly attached.
This patch makes configfs_symlink() fail whenever the target is being removed,
using the CONFIGFS_USET_DROPPING flag set by configfs_detach_prep() and
protected by configfs_dirent_lock.
This patch introduces a similar (weird?) behavior as with mkdir failures making
rmdir fail: if symlink() races with rmdir() of the parent directory (or its
youngest user-created ancestor if parent is a default group) or rmdir() of the
target directory, and then fails in configfs_create(), this can make the racing
rmdir() fail despite the concerned directory having no user-created entry (resp.
no symlink pointing to it or one of its default groups) in the end.
This behavior is fixed in later patches.
Signed-off-by: Louis Rilling <louis.rilling at kerlabs.com>
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit dacdd0e04768da1fd2b24a6ee274c582b40d0c5b
Author: Joel Becker <joel.becker at oracle.com>
Date: Thu Jul 17 16:54:19 2008 -0700
[PATCH] configfs: Include linux/err.h in linux/configfs.h
We now use PTR_ERR() in the ->make_item() and ->make_group() operations.
Folks including configfs.h need err.h.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 48a61569bb5396415c5dad0e81e1cfeb87c0aca3
Author: Adrian Bunk <bunk at kernel.org>
Date: Wed Jul 23 22:50:45 2008 +0300
kbuild: scripts/ver_linux: don't set PATH
It would have saved both a bug submitter and me a few hours if
scripts/ver_linux had picked the same gcc as the build.
Since I can't see any reason why it fiddles with PATH at all this patch
therefore removes the PATH setting.
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Sam Ravnborg <sam at ravnborg.org>
commit 775a7229ac862ea93924672e7e331edf8475415c
Author: jkacur <jkacur at gmail.com>
Date: Wed Jul 16 00:31:16 2008 +0200
Kconfig/init: change help text to match default value
Change the "If unsure" message to match the default value.
Signed-off-by: John Kacur <jkacur at gmail dot com>
Signed-off-by: Sam Ravnborg <sam at ravnborg.org>
commit 3b40d38120c32798a4be8d8052f028deeca9d581
Author: Andreas Gruenbacher <agruen at suse.de>
Date: Mon Jul 21 04:28:25 2008 +0200
kbuild: genksyms: Include extern information in dumps
The extern flag currently is not included in type dump files
(genksyms --dump-types). Include that flag there for completeness.
Signed-off-by: Andreas Gruenbacher <agruen at suse.de>
Signed-off-by: Sam Ravnborg <sam at ravnborg.org>
commit 94aa3d716ee0244cc5b9f2ab3745aed5fdfa30e0
Author: Andreas Gruenbacher <agruen at suse.de>
Date: Thu Jul 31 00:03:49 2008 +0200
kbuild: genksyms parser: fix the __attribute__ rule
We are having two kinds of problems with genksyms today: fake checksum
changes without actual ABI changes, and changes which we would rather like
to ignore (such as an additional field at the end of a structure that
modules are not supposed to touch, for example).
I have thought about ways to improve genksyms and compute checksums
differently to avoid those problems, but in the end I don't see a
fundamentally better way. So here are some genksyms patches for at least
making the checksums more easily manageable, if we cannot fully fix them.
In addition to the bugfixes (the first two patches), this allows genksyms
to track checksum changes and report why a checksum changed (third patch),
and to selectively ignore changes (fourth patch).
This patch:
Gcc __attribute__ definitions may occur repeatedly, e.g.,
static int foo __attribute__((__used__))
__attribute__((aligned (16)));
The genksyms parser does not understand this, and generates a syntax error.
Fix this case.
Signed-off-by: Andreas Gruenbacher <agruen at suse.de>
Cc: Randy Dunlap <randy.dunlap at oracle.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Sam Ravnborg <sam at ravnborg.org>
commit 1f4170e12db06fdde5279d665a7e6e2976b2b623
Author: Christian Borntraeger <borntraeger at de.ibm.com>
Date: Tue Jul 29 23:48:42 2008 +0200
KVM: s390: Fix kvm on IBM System z10
The z10 system supports large pages, kvm-s390 doesnt.
Make sure that we dont advertise large pages to avoid the guest crashing as
soon as the guest kernel activates DAT.
Signed-off-by: Christian Borntraeger <borntraeger at de.ibm.com>
Signed-off-by: Avi Kivity <avi at qumranet.com>
commit 6f5fd8e9b98423add5f67b964e7cc8733dd73460
Author: Jeff Garzik <jeff at garzik.org>
Date: Thu Jul 31 03:46:30 2008 -0400
drivers/media, include/media: delete zero-length files
Signed-off-by: Jeff Garzik <jgarzik at redhat.com>
commit 967ab999a090b1a4e7d3c7febfd6d89b42fb4cf4
Author: Pavel Emelyanov <xemul at openvz.org>
Date: Thu Jul 31 00:38:52 2008 -0700
netfilter: xt_hashlimit: fix race between htable_destroy and htable_gc
Deleting a timer with del_timer doesn't guarantee, that the
timer function is not running at the moment of deletion. Thus
in the xt_hashlimit case we can get into a ticklish situation
when the htable_gc rearms the timer back and we'll actually
delete an entry with a pending timer.
Fix it with using del_timer_sync().
AFAIK del_timer_sync checks for the timer to be pending by
itself, so I remove the check.
Signed-off-by: Pavel Emelyanov <xemul at openvz.org>
Signed-off-by: Patrick McHardy <kaber at trash.net>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit a8ddc9163c6a16cd62531dba1ec5020484e33b02
Author: Pavel Emelyanov <xemul at openvz.org>
Date: Thu Jul 31 00:38:31 2008 -0700
netfilter: ipt_recent: fix race between recent_mt_destroy and proc manipulations
The thing is that recent_mt_destroy first flushes the entries
from table with the recent_table_flush and only *after* this
removes the proc file, corresponding to that table.
Thus, if we manage to write to this file the '+XXX' command we
will leak some entries. If we manage to write there a 'clean'
command we'll race in two recent_table_flush flows, since the
recent_mt_destroy calls this outside the recent_lock.
The proper solution as I see it is to remove the proc file first
and then go on with flushing the table. This flushing becomes
safe w/o the lock, since the table is already inaccessible from
the outside.
Signed-off-by: Pavel Emelyanov <xemul at openvz.org>
Signed-off-by: Patrick McHardy <kaber at trash.net>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit ae375044d31075a31de5a839e07ded7f67b660aa
Author: Patrick McHardy <kaber at trash.net>
Date: Thu Jul 31 00:38:01 2008 -0700
netfilter: nf_conntrack_tcp: decrease timeouts while data in unacknowledged
In order to time out dead connections quicker, keep track of outstanding data
and cap the timeout.
Suggested by Herbert Xu.
Signed-off-by: Patrick McHardy <kaber at trash.net>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 4a22442faeb33bdf34016a7b1f6b3d6ecd4e33e5
Author: Jerry Hicks <hickswgjr at gmail.com>
Date: Wed Jul 30 12:49:59 2008 -0700
[MTD] [NOR] drivers/mtd/chips/jedec_probe.c: fix Am29DL800BB device ID
The device id for Am29DL800BB in jedec_probe.c is wrong.
Reference: http://www.spansion.com/datasheets/21519c4.pdf
I discovered this while working with u-boot.
The u-boot folks mentioned Linux as an upstream reference, thought I'd
post a heads-up here too.
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
commit 963e4975c6f93c148ca809d986d412201df9af89
Author: Alan Cox <alan at lxorguk.ukuu.org.uk>
Date: Thu Jul 24 17:16:06 2008 +0100
pata_it821x: Driver updates and reworking
- Add support for the RDC 1010 variant
- Rework the core library to have a read_id method. This allows the hacky
bits of it821x to go and prepares us for pata_hd
- Switch from WARN to BUG in ata_id_string as it will reboot if you get
it wrong so WARN won't be seen
- Allow the issue of command 0xFC on the 821x. This is needed to query
rebuild status.
- Tidy up printk formatting
- Do more ident rewriting on RAID volumes to handle firmware provided
ident data which is rather wonky
- Report the firmware revision and device layout in RAID mode
- Don't try and disable raid on the 8211 or RDC - they don't have the
relevant bits
Signed-off-by: Alan Cox <alan at redhat.com>
Signed-off-by: Jeff Garzik <jgarzik at redhat.com>
commit 1f938d060a7bc01b5f82d46db3e38cd501b445a6
Author: Alexander Beregalov <a.beregalov at gmail.com>
Date: Mon Jul 21 00:06:19 2008 +0400
libata.h: replace __FUNCTION__ with __func__
Signed-off-by: Alexander Beregalov <a.beregalov at gmail.com>
Signed-off-by: Jeff Garzik <jgarzik at redhat.com>
commit 487eff68e42287fd45cf178063f1ce1bad23c612
Author: Tejun Heo <htejun at gmail.com>
Date: Tue Jul 29 15:06:26 2008 +0900
ata_piix: subsys 106b:00a3 is apple ich8m too
Subsys 106b:00a3 also is the weird apple ich8m which chokes when the
latter two ports are accessed, add it. Reported by Felipe Sere.
Signed-off-by: Tejun Heo <tj at kernel.org>
Cc: Felipe Sere <dodofxp at gmail.com>
Signed-off-by: Jeff Garzik <jgarzik at redhat.com>
commit 49ea3b04971ece6a5efe5d7b763ad9d2f169d441
Author: Elias Oltmanns <eo at nebensachen.de>
Date: Wed Jul 30 12:32:39 2008 -0700
libata-core: make sure that ata_force_tbl is freed in case of an error
Fix a potential memory leak when ata_init() encounters an error.
Signed-off-by: Elias Oltmanns <eo at nebensachen.de>
Cc: Tejun Heo <tj at kernel.org>
Cc: Alan Cox <alan at lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik at redhat.com>
commit 2486fa561a3192bbbec39c7feef87a1e07bd6342
Author: Tejun Heo <tj at kernel.org>
Date: Thu Jul 31 07:52:40 2008 +0900
libata: update atapi disable handling
Global and per-LLD ATAPI disable checks were done in the command issue
path probably because it was left out during EH conversion. On
affected machines, this can cause lots of warning messages. Move them
to where they belong - the probing path.
Reported by Chunbo Luo.
Signed-off-by: Tejun Heo <tj at kernel.org>
Cc: Chunbo Luo <chunbo.luo at windriver.com>
Signed-off-by: Jeff Garzik <jgarzik at redhat.com>
commit bfce5e0179ad059035df28558724ff60af708e09
Author: JosephChan at via.com.tw <JosephChan at via.com.tw>
Date: Wed Jul 30 12:32:48 2008 -0700
pata_via: add VX800 flag; add function for fixing h/w bugs
Add flag VIA_SATA_PATA for vx800, VX800 uses the same
chipset(0x0581/0x5324) as CX700, which has 1 PATA channel(Master/Slave)
and 1 SATA channel(Master/Slave) Add function <via_ata_tf_load>. This is
to fix the internal bug of VIA chipsets, which will reset the device
register after changing the IEN bit in CTL register
Signed-off-by: Joseph Chan <josephchan at via.com.tw>
Cc: Tejun Heo <tj at kernel.org>
Cc: Alan Cox <alan at lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik at redhat.com>
commit e8389f0c44652ee63d95bc0a7f8d565ac25dac77
Author: Ben Dooks <ben-linux at fluff.org>
Date: Thu Jul 24 16:38:06 2008 +0100
pata_ali: misplaced pci_dev_put()
The ali_init_one() function does a search for an isa_bridge,
but then fails to release it if the revision information was
not correctly found.
the problem comes from:
isa_bridge = pci_get_device(...);
if (isa_bridge && ...) {
pci_dev_put(isa_bridge);
}
where the pci_dev_put() is never called if isa_bridge
was valid but the extra checks on the chip-revision
fail to match.
Signed-off-by: Ben Dooks <ben-linux at fluff.org>
Signed-off-by: Jeff Garzik <jgarzik at redhat.com>
commit a97a6f10771b90235b33c13a6db9279237a08422
Author: Harvey Harrison <harvey.harrison at gmail.com>
Date: Wed Jul 30 17:20:18 2008 -0700
irda: replace __FUNCTION__ with __func__
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison <harvey.harrison at gmail.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 1fa98174ba980b2826edd1e4632a17916dfdb4fa
Author: Matthew Garrett <mjg59 at srcf.ucam.org>
Date: Wed Jul 30 17:00:38 2008 -0700
nsc-ircc: default to dongle type 9 on IBM hardware
This is necessary to set the dongle type on the nsc driver in order to get
it to work correctly. Thinkpads all appear to use dongle type 9. This
patch defaults nsc devices with an IBM PnP descriptor to use type 9.
Signed-off-by: Matthew Garrett <mjg59 at srcf.ucam.org>
Signed-off-by: Ben Collins <ben.collins at canonical.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
commit 5aa10cad69d282acfaf89d3c16ee07f9b279dbd2
Author: Michael Frey <michael.frey at canonical.com>
Date: Wed Jul 30 16:59:15 2008 -0700
bluetooth: add quirks for a few hci_usb devices
Preface: The "Broadcom" device is on unreleased hardware, so I can't
disclose the actual model.
When the Dell 370 and 410 BT adapters are put into BT radio mode, they
need to be prepared like many other Broadcom adapters.
Also, add quirk Broadcom 2046 devices with HCI_RESET. Reference for this
bug: https://launchpad.net/bugs/249448
Signed-off-by: Michael Frey <michael.frey at canonical.com>
Signed-off-by: Mario Limonciello <Mario_Limonciello at Dell.com>
Signed-off-by: Tim Gardner <tim.gardner at canonical.com>
Signed-off-by: Ben Collins <ben.collins at canonical.com>
Acked-by: Marcel Holtmann <marcel at holtmann.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit a7403e807d5f6431a09abb13a00f8170dac1da29
Author: David Howells <dhowells at redhat.com>
Date: Wed Jul 30 16:48:05 2008 -0700
hysdn: remove the packed attribute from PofTimStamp_tag
Remove the packed attribute from PofTimStamp_tag in the hysdn driver as the
thing being packed is just an array of chars and so is unpackable.
This deals with a compiler warning:
In file included from drivers/isdn/hysdn/hysdn_boot.c:19:
drivers/isdn/hysdn/hysdn_pof.h:63: warning: 'packed' attribute ignored for field of type 'unsigned char[40]'
Signed-off-by: David Howells <dhowells at redhat.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 02137f2e80a4fb1481b2b1663d3d3795e705c5bc
Author: Harvey Harrison <harvey.harrison at gmail.com>
Date: Wed Jul 30 16:40:22 2008 -0700
isdn: use the common ascii hex helpers
Signed-off-by: Harvey Harrison <harvey.harrison at gmail.com>
Acked-by: Karsten Keil <kkeil at suse.de>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 12dac0756d357325b107fe6ec24921ec38661839
Author: Rafael J. Wysocki <rjw at sisk.pl>
Date: Wed Jul 30 16:37:33 2008 -0700
tg3: adapt tg3 to use reworked PCI PM code
Adapt the tg3 driver to use the reworked PCI PM and make it use the
exported PCI PM core functions instead of accessing the PCI PM registers
directly by itself.
Signed-off-by: Rafael J. Wysocki <rjw at sisk.pl>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 849e8caa477d72cf153e5c0b6ce0c00b89738abb
Author: David Howells <dhowells at redhat.com>
Date: Wed Jul 30 16:33:05 2008 -0700
atm: fix direct casts of pointers to u32 in the InterPhase driver
Fix direct casts of pointers to u32 in the InterPhase ATM driver. These are
all arguments being passed to printk() calls. So drop the cast and change the
%x to a %p.
Signed-off-by: David Howells <dhowells at redhat.com>
Acked-by: Chas Williams <chas at cmf.nrl.navy.mil>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit cba5cbd1559f49bec76e54de6ed21b7df3742ada
Author: David Howells <dhowells at redhat.com>
Date: Wed Jul 30 16:31:46 2008 -0700
atm: fix const assignment/discard warnings in the ATM networking driver
Fix const assignment/discard warnings in the ATM networking driver.
The lane2_assoc_ind() function needed its arguments changing to match changes
in the lane2_ops struct (patch 61c33e012964ce358b42d2a1e9cd309af5dab02b
"atm: use const where reasonable").
Signed-off-by: David Howells <dhowells at redhat.com>
Acked-by: Chas Williams <chas at cmf.nrl.navy.mil>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 6a8341b68b5269de71c32c6df91f4b0298da031d
Author: Harvey Harrison <harvey.harrison at gmail.com>
Date: Wed Jul 30 16:30:15 2008 -0700
net: use the common ascii hex helpers
Signed-off-by: Harvey Harrison <harvey.harrison at gmail.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 697f8d0348a652593d195a13dd1067d9df911a82
Author: Stephen Hemminger <shemminger at vyatta.com>
Date: Wed Jul 30 16:29:19 2008 -0700
random32: seeding improvement
The rationale is:
* use u32 consistently
* no need to do LCG on values from (better) get_random_bytes
* use more data from get_random_bytes for secondary seeding
* don't reduce state space on srandom32()
* enforce state variable initialization restrictions
Note: the second paper has a version of random32() with even longer period
and a version of random64() if needed.
Signed-off-by: Stephen Hemminger <shemminger at vyatta.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
commit 4adf0af6818f3ea52421dc0bae836cfaf20ef72a
Author: Simon Wunderlich <siwu at hrz.tu-chemnitz.de>
Date: Wed Jul 30 16:27:55 2008 -0700
bridge: send correct MTU value in PMTU (revised)
When bridging interfaces with different MTUs, the bridge correctly chooses
the minimum of the MTUs of the physical devices as the bridges MTU. But
when a frame is passed which fits through the incoming, but not through
the outgoing interface, a "Fragmentation Needed" packet is generated.
However, the propagated MTU is hardcoded to 1500, which is wrong in this
situation. The sender will repeat the packet again with the same frame
size, and the same problem will occur again.
Instead of sending 1500, the (correct) MTU value of the bridge is now sent
via PMTU. To achieve this, the corresponding rtable structure is stored
in its net_bridge structure.
Modified to get rid of fake_net_device as well.
Signed-off-by: Simon Wunderlich <siwu at hrz.tu-chemnitz.de>
Signed-off-by: Stephen Hemminger <shemminger at linux-foundation.org>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit e62112c53acfefc67ccfbdc1895eebccf866bc1b
Merge: 031cf19e6f63941506c9baf76ac7adac06edcf08 68905eb4dc9c691ba09df767ac0641395025cef6
Author: David S. Miller <davem at davemloft.net>
Date: Wed Jul 30 15:44:30 2008 -0700
Merge branch 'upstream-davem' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
commit 8b6d8c592fa7b8bfb1218447a273314c13a67e8a
Merge: 94ad374a0751f40d25e22e036c37f7263569d24c de1d7bb63893b4246ce60797aa554341e908f034
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Wed Jul 30 15:14:56 2008 -0700
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
[MIPS] Cobalt: update defconfig
[MIPS] kgdb: add arch support for the kernel's kgdb core
[MIPS] kgdb: Remove existing implementation
[MIPS] TXx9: Kconfig cleanup
[MIPS] TXx9: Kill unused txx927.h
[MIPS] TXx9: Support early_printk
[MIPS] TXx9: Unify serial_txx9 setup
[MIPS] TXx9: Random cleanup
[MIPS] TXx9: Make tx4938-specific code more independent
[MIPS] TXx9: Make tx3927-specific code more independent
[MIPS] TXx9: Cleanup watchdog
[MIPS] TXx9: Cleanup restart/halt/power_off
[MIPS] TXx9: PCI error handling
[MIPS] TXx9: Add some pci options
[MIPS] Introduce pcibios_plat_setup
[MIPS] TXx9: PCI fixes for tx3927/tx4927
[MIPS] TXx9: Fix JMR3927 irq numbers
[MIPS] RB532: Flags are unsigned long
[MIPS] Initialization of Alchemy boards
[MIPS] tlb-r4k: Nuke broken paranoia error test.
commit 94ad374a0751f40d25e22e036c37f7263569d24c
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Wed Jul 30 14:45:12 2008 -0700
Fix off-by-one error in iov_iter_advance()
The iov_iter_advance() function would look at the iov->iov_len entry
even though it might have iterated over the whole array, and iov was
pointing past the end. This would cause DEBUG_PAGEALLOC to trigger a
kernel page fault if the allocation was at the end of a page, and the
next page was unallocated.
The quick fix is to just change the order of the tests: check that there
is any iovec data left before we check the iov entry itself.
Thanks to Alexey Dobriyan for finding this case, and testing the fix.
Reported-and-tested-by: Alexey Dobriyan <adobriyan at gmail.com>
Cc: Nick Piggin <npiggin at suse.de>
Cc: Andrew Morton <akpm at linux-foundation.org>
Cc: <stable at kernel.org> [2.6.25.x, 2.6.26.x]
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 0056e65f9e28d83ee1a3fb4f7d0041e838f03c34
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Wed Jul 30 14:26:25 2008 -0700
romfs_readpage: don't report errors for pages beyond i_size
We zero-fill them like we are supposed to, and that's all fine. It's
only an error if the 'romfs_copyfrom()' routine isn't able to fill the
data that is supposed to be there.
Most of the patch is really just re-organizing the code a bit, and using
separate variables for the error value and for how much of the page we
actually filled from the filesystem.
Reported-and-tested-by: Chris Fester <cfester at wms.com>
Cc: Alexander Viro <viro at zeniv.linux.org.uk>
Cc: Matt Waddel <matt.waddel at freescale.com>
Cc: Greg Ungerer <gerg at snapgear.com>
Signed-of-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 68905eb4dc9c691ba09df767ac0641395025cef6
Author: Julia Lawall <julia at diku.dk>
Date: Mon Jul 21 09:57:26 2008 +0200
drivers/net/ehea/ehea_main.c: Release mutex in error handling code
The mutex is released on a successful return, so it would seem that it
should be released on an error return as well.
The semantic patch finds this problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)
// <smpl>
@@
expression l;
@@
mutex_lock(l);
... when != mutex_unlock(l)
when any
when strict
(
if (...) { ... when != mutex_unlock(l)
+ mutex_unlock(l);
return ...;
}
|
mutex_unlock(l);
)
// </smpl>
Signed-off-by: Julia Lawall <julia at diku.dk>
Signed-off-by: Jeff Garzik <jgarzik at redhat.com>
commit b0ca2a21f769ae255bd6821cbc5af8af797f1da7
Author: Nobuhiro Iwamatsu <iwamatsu.nobuhiro at renesas.com>
Date: Mon Jun 30 11:08:17 2008 +0900
sh_eth: Add support of SH7763 to sh_eth
SH7763 has Ethernet core same as SH7710/SH7712.
Positions of some registry are different, but the basic part is the same.
I add support of ethernet of sh7763 to sh_eth.
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro at renesas.com>
Signed-off-by: Jeff Garzik <jgarzik at redhat.com>
commit d02a4e31ed0385eb34fe49f19d69a860a020ca3c
Author: Mikael Pettersson <mikpe at it.uu.se>
Date: Wed Jul 30 13:44:55 2008 +0200
fix NE2000 linkage error
Trying to build with CONFIG_NE2000=m fails with:
scripts/mod/modpost -o /tmp/tmp/linux-2.6.27-rc1/Module.symvers -S -s
ERROR: "NS8390_init" [drivers/net/ne.ko] undefined!
This is because the split of 8390 into pausing and non-pausing
versions was incompletely propagated to ne.c. This fixes it.
Signed-off-by: Mikael Pettersson <mikpe at it.uu.se>
Signed-off-by: Jeff Garzik <jgarzik at redhat.com>
commit de1d7bb63893b4246ce60797aa554341e908f034
Author: Yoichi Yuasa <yoichi_yuasa at tripeaks.co.jp>
Date: Sat Jul 26 01:34:52 2008 +0900
[MIPS] Cobalt: update defconfig
Select new LCD framebuffer driver.
Signed-off-by: Yoichi Yuasa <yoichi_yuasa at tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
commit 8854700115ecf8aa6f087aa915b7b6cf18090d39
Author: Jason Wessel <jason.wessel at windriver.com>
Date: Tue Jul 29 15:58:53 2008 -0500
[MIPS] kgdb: add arch support for the kernel's kgdb core
The new kgdb architecture specific handler registers and unregisters
dynamically for exceptions depending on when you configure a kgdb I/O
driver.
Aside from initializing the exceptions earlier in the boot process,
kgdb should have no impact on a device when it is compiled in so long
as an I/O module is not configured for use.
There have been quite a number of contributors during the existence of
this patch (see arch/mips/kernel/kgdb.c). Most recently Jason
re-wrote the mips kgdb logic to use the die notification handlers.
Signed-off-by: Jason Wessel <jason.wessel at windriver.com>
Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
commit 8d60a903d986ffa26c41f0092320a3b9da20bfaf
Author: Jason Wessel <jason.wessel at windriver.com>
Date: Tue Jul 29 15:58:52 2008 -0500
[MIPS] kgdb: Remove existing implementation
This patch explicitly removes the kgdb implementation, for mips which
is intended to be followed by a patch that adds a kgdb implementation
for MIPS that makes use of the kgdb core in the kernel.
Signed-off-by: Jason Wessel <jason.wessel at windriver.com>
Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
commit 8f8da9adebdf04bfb3b812a7de8706fbf179fd2c
Author: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Date: Tue Jul 29 22:11:33 2008 +0900
[MIPS] TXx9: Kconfig cleanup
Unify some entries in txx9/Kconfig.
Signed-off-by: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
commit 872bfdd9e61d7dacf011046b02442215a2757026
Author: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Date: Tue Jul 29 22:10:47 2008 +0900
[MIPS] TXx9: Kill unused txx927.h
include/asm-mips/txx9/txx927.h is no longer used.
Signed-off-by: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
commit e352953ce00bb870124e9054dbbbda2262f9269c
Author: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Date: Tue Jul 29 22:10:08 2008 +0900
[MIPS] TXx9: Support early_printk
Kill jmr3927-specific prom_putchar and add txx9-generic prom_putchar
to support early_printk.
Signed-off-by: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
commit 7779a5e07d33fe316fe468e7afe7975fb686a831
Author: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Date: Fri Jul 25 23:08:06 2008 +0900
[MIPS] TXx9: Unify serial_txx9 setup
* Unify calling of early_serial_txx9_setup.
* Use dedicated serial clock on RBTX4938.
Signed-off-by: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
commit bb72f1f729dcbd6a6a93c74479eeaa19deebfb47
Author: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Date: Thu Jul 24 00:25:21 2008 +0900
[MIPS] TXx9: Random cleanup
* Random cleanups spotted by checkpatch script.
* Do not initialize panic_timeout. "panic=" kernel parameter can be used.
* Do not add "ip=any" or "ip=bootp". This options is not board specific.
* Do not add "root=/dev/nfs". This is default on CONFIG_ROOT_NFS.
* Kill unused error checking.
* Fix IRQ comment to match current code.
* Kill some unneeded includes
* ST0_ERL is already cleared in generic code.
* conswitchp is initialized generic code.
* __init is not needed in prototype.
Signed-off-by: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
commit c49f91f51e3cca796494f69fd967a7f72df5d457
Author: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Date: Thu Jul 24 00:25:20 2008 +0900
[MIPS] TXx9: Make tx4938-specific code more independent
Make some TX4938 SoC specific code independent from board specific code.
Signed-off-by: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
commit f6727fb889c664be094fa041a0fdf0f1a1caefb6
Author: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Date: Thu Jul 24 00:25:19 2008 +0900
[MIPS] TXx9: Make tx3927-specific code more independent
Make some TX3927 SoC specific code independent from board specific code.
Signed-off-by: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
commit 683147254ef7e69ebbbe55280ba6a3c5ae2325d8
Author: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Date: Thu Jul 24 00:25:18 2008 +0900
[MIPS] TXx9: Cleanup watchdog
Unify registration of txx9wdt platform device.
Signed-off-by: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
commit a49297e8fc8a9a835ac4ec124aa83028abdcc7d5
Author: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Date: Thu Jul 24 00:25:17 2008 +0900
[MIPS] TXx9: Cleanup restart/halt/power_off
Unify machine_restart/machine_halt/pm_power_off and add fallback
machine_halt routine.
Signed-off-by: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
commit 455cc256eb23915100e203fb33ee143afd127954
Author: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Date: Fri Jul 25 23:01:35 2008 +0900
[MIPS] TXx9: PCI error handling
From: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Date: Thu, 24 Jul 2008 00:25:16 +0900
Subject: [PATCH] txx9: PCI error handling
Add more control and detailed report on PCI error interrupt.
Signed-off-by: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
commit 07517529225ae4ce770271f83d8cd1004733a01d
Author: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Date: Thu Jul 24 00:25:15 2008 +0900
[MIPS] TXx9: Add some pci options
Add pci options for backplane type, clock selection, error handling,
timeout values.
Signed-off-by: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
commit 47a5c976486e407fc0d0bc8fa165132b6f9bec26
Author: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Date: Thu Jul 24 00:25:14 2008 +0900
[MIPS] Introduce pcibios_plat_setup
Introduce pcibios_plat_setup for platform-specific pcibios_setup.
Signed-off-by: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
commit 32d00d0f933ea5d21c3cd0809461ebbf7ab89cef
Author: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Date: Thu Jul 24 00:25:13 2008 +0900
[MIPS] TXx9: PCI fixes for tx3927/tx4927
* Fix tx3927 pci ops for Type-1 configuration
* Fix abort checking of tx3927 pci ops
* Flush write buffer to avoid spurious PCI error interrupt
* Add a quirk for FPCIB backplane
Signed-off-by: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
commit a0e31fb09056224c5d6fef09d25cb96b6149aa7c
Author: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Date: Thu Jul 24 00:25:12 2008 +0900
[MIPS] TXx9: Fix JMR3927 irq numbers
* Fix wrong txx9_clockevent interrupt number
* Fix TXX9_IRQ_BASE for JMR3927+FPCIB case
Signed-off-by: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
commit 8b32d6d00ca890ebb204da1260247c11bba042b3
Author: Adrian Bunk <bunk at kernel.org>
Date: Tue Jul 29 09:46:34 2008 +0300
[MIPS] RB532: Flags are unsigned long
A recent generic change now catches such bugs:
<-- snip -->
...
CC arch/mips/rb532/time.o
cc1: warnings being treated as errors
/home/bunk/linux/kernel-2.6/git/linux-2.6/arch/mips/rb532/time.c: In function 'plat_time_init':
/home/bunk/linux/kernel-2.6/git/linux-2.6/arch/mips/rb532/time.c:55: error: comparison of distinct pointer types lacks a cast
/home/bunk/linux/kernel-2.6/git/linux-2.6/arch/mips/rb532/time.c:66: error: comparison of distinct pointer types lacks a cast
make[2]: *** [arch/mips/rb532/time.o] Error 1
<-- snip -->
Reported-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
commit fd7ccfa7ac64156a5c1c906e0986b73d481b6dfc
Author: Kevin Hickey <khickey at rmicorp.com>
Date: Mon Jul 28 13:09:26 2008 -0500
[MIPS] Initialization of Alchemy boards
An earlier update changed some calls from simple_strotl to strict_strtol but
did not account for the differences in the syntax between the calls.
simple_strotl returns the integer; strict_strtol returns an error code and
takes a pointer to the result. As it was, NULL was being passed in place of
the result, which led to failures during kernel initialization when using
YAMON.
Signed-off-by: Kevin Hickey <khickey at rmicorp.com>
Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
commit af6dc22b03a95c31b690f299b2fd7acb279fe7f5
Author: Ralf Baechle <ralf at linux-mips.org>
Date: Tue Jul 22 18:04:38 2008 +0100
[MIPS] tlb-r4k: Nuke broken paranoia error test.
Bug originally found and reported by Julia Lawall <julia at diku.dk>. I
decieded that the whole error check was mostly useless paranoia and should
be discarded. It would only ever trigger if r3k_have_wired_reg has a wrong
value.
Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
commit 11ddad396086f8d1dfcb0056dc9d65d228f755c1
Author: Adrian Bunk <bunk at kernel.org>
Date: Thu Jul 17 02:08:12 2008 +0300
kbuild: scripts/genksyms/lex.l: add %option noinput
gcc 4.3 correctly determines that input() is unused and gives the
following warning:
<-- snip -->
...
HOSTCC scripts/genksyms/lex.o
scripts/genksyms/lex.c:1487: warning: âinputâ defined but not used
...
<-- snip -->
Fix it by adding %option noinput to scripts/genksyms/lex.l and
regeneration of scripts/genksyms/lex.c_shipped.
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Sam Ravnborg <sam at ravnborg.org>
commit be2be1d59035a28debb22555f103e676a8f74186
Author: Adrian Bunk <bunk at kernel.org>
Date: Thu Jul 17 02:07:59 2008 +0300
kconfig: scripts/kconfig/zconf.l: add %option noinput
gcc 4.3 correctly determines that input() is unused and gives the
following warning:
<-- snip -->
...
HOSTCC scripts/kconfig/zconf.tab.o
scripts/kconfig/lex.zconf.c:1628: warning: âinputâ defined but not used
...
<-- snip -->
Fix it by adding %option noinput to scripts/kconfig/zconf.l and
regeneration of scripts/kconfig/lex.zconf.c_shipped.
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Cc: Roman Zippel <zippel at linux-m68k.org>
Signed-off-by: Sam Ravnborg <sam at ravnborg.org>
commit ea35455e0dc17d732436a5b98bd511cab64eb10e
Author: Sam Ravnborg <sam at ravnborg.org>
Date: Wed Jul 30 22:21:20 2008 +0200
kbuild: fix O=... build of um
We used include/asm-$ARCH/system.h to check if
we should create a symlink in include2 directory with
make O=... builds.
But um does not have such a file thus build filed.
Let's try anohter filename:
$ ls -d include/asm-* | wc -l
21
$ ls -d include/asm-*/errno.h | wc -l
21
Signed-off-by: Sam Ravnborg <sam at ravnborg.org>
Cc: Jeff Dike <jdike at addtoit.com>
commit 660fc1f4d88b0f5e4bb936e4a5a9b95b70df9e58
Merge: 3dd730f2b49f101b90d283c3efc4e6cd826dd8f6 ce0ad7f0952581ba75ab6aee55bb1ed9bb22cf4f
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Wed Jul 30 10:43:56 2008 -0700
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc:
powerpc/mm: Lockless get_user_pages_fast() for 64-bit (v3)
powerpc: Don't use the wrong thread_struct for ptrace get/set VSX regs
powerpc: Fix ptrace buffer size for VSX
powerpc: Correctly hookup PTRACE_GET/SETVSRREGS for 32 bit processes
ide/powermac: Fix use of uninitialized pointer on media-bay
powerpc: Allow non-hcall return values for lparcfg writes
ipmi/powerpc: Use linux/of_{device,platform}.h instead of asm
powerpc/fsl: proliferate simple-bus compatibility to soc nodes
Documentation: remove old sbc8260 board specific information
cpm2: Rework baud rate generators configuration to support external clocks.
powerpc: rtc_cmos_setup: assign interrupts only if there is i8259 PIC
cpm_uart: Add generic clock API support to set baudrates
cpm_uart: Modem control lines support
powerpc: implement GPIO LIB API on CPM1 Freescale SoC.
cpm2: Implement GPIO LIB API on CPM2 Freescale SoC.
powerpc: Fix 8xx build failure
powerpc: clean up the Book-E HW watchpoint support
commit 3dd730f2b49f101b90d283c3efc4e6cd826dd8f6
Author: Stephen Rothwell <sfr at canb.auug.org.au>
Date: Tue Jul 29 16:07:37 2008 +1000
cpumask: statement expressions confuse some versions of gcc
when you take the address of the result. Noticed on a sparc64 compile
using a version 3.4.5 cross compiler.
kernel/time/tick-common.c: In function `tick_check_new_device':
kernel/time/tick-common.c:210: error: invalid lvalue in unary `&'
...
Just make it a regular expression.
Signed-off-by: Stephen Rothwell <sfr at canb.auug.org.au>
Acked-by: Ingo Molnar <mingo at elte.hu>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit a4319d9fa02fb3f032596d18c6fcc8b05d01a3a5
Merge: afd962a9e8708c571c5c0c4a6d098f931742c229 031cf19e6f63941506c9baf76ac7adac06edcf08
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Wed Jul 30 10:13:37 2008 -0700
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (47 commits)
net: Make "networking" one-click deselectable.
ipv6: Fix useless proc net sockstat6 removal
tcp: MD5: Use MIB counter instead of warning for MD5 mismatch.
pkt_sched: Fix OOPS on ingress qdisc add.
niu: Fix error checking in niu_ethflow_to_class.
IPv6: datagram_send_ctl() should exit immediately when an error occured
mac80211: fix mesh beaconing
PS3: gelic: use unsigned long for irqflags
mac80211: fix cfg80211 hooks for master interface
nl80211: fix dump callbacks
mac80211: partially fix skb->cb use
rtl8187: Improve wireless statistics for RTL8187B
rtl8187: Fix for TX sequence number problem
mac80211: append CONFIG_ to MAC80211_VERBOSE_PS_DEBUG in net/mac80211/tx.c.
mac80211: fix sparse integer as NULL pointer warning
drivers/net/wireless/iwlwifi/iwl-led.c: printk fix
mac80211: return correct error return from ieee80211_wep_init
mac80211: tx, use dev_kfree_skb_any for beacon_get
rt2x00: Clear queue entry flags during initialization
rt2x00: Force full register config after start()
...
commit afd962a9e8708c571c5c0c4a6d098f931742c229
Author: Vitaly Mayatskikh <v.mayatskih at gmail.com>
Date: Wed Jul 30 13:30:14 2008 +0200
x86: wrong register was used in align macro
New ALIGN_DESTINATION macro has sad typo: r8d register was used instead
of ecx in fixup section. This can be considered as a regression.
Register ecx was also wrongly loaded with value in r8d in
copy_user_nocache routine.
Signed-off-by: Vitaly Mayatskikh <v.mayatskih at gmail.com>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit bd3e64c1759e4930315ebf022611468ee9621486
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:19 2008 -0700
sgi-xp: setup the notify GRU message queue
Setup the notify GRU message queue that is used for sending user messages
on UV systems.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Cc: Jack Steiner <steiner at sgi.com>
Cc: "Luck, Tony" <tony.luck at intel.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 5b8669dfd110a62a74eea525a009342f73987ea0
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:18 2008 -0700
sgi-xp: setup the activate GRU message queue
Setup the activate GRU message queue that is used for partition activation
and channel connection on UV systems.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Cc: Jack Steiner <steiner at sgi.com>
Cc: "Luck, Tony" <tony.luck at intel.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 83469b5525b4a35be40b17cb41d64118d84d9f80
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:18 2008 -0700
sgi-xp: cleanup naming of partition defines
Cleanup naming of partition defines.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Cc: Jack Steiner <steiner at sgi.com>
Cc: "Luck, Tony" <tony.luck at intel.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 61deb86e98f51151b225f7563ee1cf2b50857d10
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:17 2008 -0700
sgi-xp: move xpc_check_remote_hb() to support both SN2 and UV
Move xpc_check_remote_hb() so it can support both SN2 and UV.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Cc: Jack Steiner <steiner at sgi.com>
Cc: "Luck, Tony" <tony.luck at intel.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit a812dcc3a298eef650c381e094e2cf41a4ecc9ad
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:16 2008 -0700
sgi-xp: add usage of GRU driver by xpc_remote_memcpy()
Add UV support to xpc_remote_memcpy(), which involves interfacing to the
GRU driver.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Cc: Jack Steiner <steiner at sgi.com>
Cc: "Luck, Tony" <tony.luck at intel.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 261f3b4979db88d29fc86aad9f76fbc0c2c6d21a
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:16 2008 -0700
sgi-xp: enable building of XPC/XPNET on x86_64
Get XPC/XPNET to build on x86_64. Trying to modprobe them up on a non-UV
or sn2 system will result in a -ENODEV.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Cc: Jack Steiner <steiner at sgi.com>
Cc: "Luck, Tony" <tony.luck at intel.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 81fe7883d2c8a80a7145ad22f8cd8514d05412b9
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:15 2008 -0700
sgi-xp: add 'jiffies' to reserved page's timestamp name
Rename XPC's reserved page's timestamp member to reflect the units of time
involved.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 04de741885bc7565a28150e82c56a56e544440e6
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:14 2008 -0700
sgi-xp: use standard bitops macros and functions
Change sgi-xp to use the standard bitops macros and functions instead of
trying to invent its own mechanism.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit ea57f80c8c0e59cfc5095f7e856ce7c8e6ac2984
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:14 2008 -0700
sgi-xp: eliminate '>>>' in comments
Comments in /drivers/misc/sgi-xp has been using '>>>' as a means to draw
attention to something that needs to be done or considered. To avoid
colliding with git rejects, '>>>' will now be replaced by '!!!' to
indicate something to do, and by '???' to indicate something to be
considered.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 8e85c23ef04fe0d8414e0b1dc04543095282a27a
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:13 2008 -0700
sgi-xp: add _sn2 suffix to a few variables
Add an '_sn2' suffix to some variables found in xpc_sn2.c.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit ee6665e3b6e1283c30ae240732af1345bc02154e
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:13 2008 -0700
sgi-xp: isolate remote copy buffer to sn2 only
Make the remote copy buffer an sn2 only item.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit a7b4d509205db5e9cd3ffc77b306d7b10fe6a34d
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:12 2008 -0700
sgi-xp: enable XPNET to handle more than 64 partitions
Enable XPNET to support more than 64 partitions.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 185c3a1b4bb4353529257f97caaeaac6c695e77d
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:11 2008 -0700
sgi-xp: isolate allocation of XPC's msgqueues to sn2 only
Move the allocation of XPC's msgqueues to xpc_sn2.c.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit c39838ce21ca8e05857ed7f4be5d289011561905
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:11 2008 -0700
sgi-xp: replace AMO_t typedef by struct amo
Replace the AMO_t typedef by a direct reference to 'struct amo'.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 7fb5e59d63deda89a8eefdbd5b3c8d622076afd4
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:10 2008 -0700
sgi-xp: separate chctl_flags from XPC's notify IRQ
Tie current IPI references to either XPC's notify IRQ or channel control
flags.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit a47d5dac9d8481766382f8cf1483dd581df38b99
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:09 2008 -0700
sgi-xp: isolate additional sn2 specific code
Move additional sn2 specific code into xpc_sn2.c.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 6e41017aad9ed175ca51e4828eabc8c5cf5910be
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:09 2008 -0700
sgi-xp: isolate activate IRQ's hardware specific components
Isolate architecture specific code related to XPC's activate IRQ.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 97bf1aa1e1bb18de9bb1987c6eb9ad751bf08aab
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:08 2008 -0700
sgi-xp: move xpc_allocate() into xpc_send()/xpc_send_notify()
Move xpc_allocate() functionality into xpc_send()/xpc_send_notify() so
xpc_allocate() no longer needs to be called by XPNET.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit aaa3cd694c0c4ae534e8aafdf4227e395c57d6bd
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:07 2008 -0700
sgi-xp: base xpc_rsvd_page's timestamp on jiffies
Change XPC's reserved page timestamp to be based on jiffies.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 33ba3c7724be79f7cdbfc611335572c056d9a05a
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:07 2008 -0700
sgi-xp: isolate xpc_vars structure to sn2 only
Isolate the xpc_vars structure of XPC's reserved page to sn2 only.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit e17d416b1bc947df68499863f13b401fb42b48f6
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:06 2008 -0700
sgi-xp: isolate xpc_vars_part structure to sn2 only
Isolate the xpc_vars_part structure of XPC's reserved page to sn2 only.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 94bd2708d4a95d7da5a1c7c28a063eccd127fb69
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:05 2008 -0700
sgi-xp: prepare xpc_rsvd_page to work on either sn2 or uv hardware
Prepare XPC's reserved page header to work for either sn2 or uv.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 908787db9b95f548270af18d83d62b9d2020ca10
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:05 2008 -0700
sgi-xp: create a common xp_remote_memcpy() function
Create a common remote memcpy function that maps to what the hardware
booted supports.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit bc63d387e4f5dbbe4ea0c5ade862c38073fd7fa3
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:04 2008 -0700
sgi-xp: support runtime selection of xp_max_npartitions
Support runtime selection of the max number of partitions based on the
hardware being run on.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 78ce1bbe446e9b46dcd6c1e60a4768448a8ce355
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:03 2008 -0700
sgi-xp: define BYTES_PER_WORD
Add a BYTES_PER_WORD #define.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit da9705259848b968cdf6151b977334fe7b5b0461
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:03 2008 -0700
sgi-xp: define xpSalError reason code
Define xpSalError reason code.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 355c54d2e70093f09910d2ecf343023aefc219e1
Author: Dean Nelson <dcn at sgi.com>
Date: Tue Jul 29 22:34:02 2008 -0700
sgi-xp: define is_shub() and is_uv() macros
Define the is_shub()/is_uv() macros if they've not already been defined.
Signed-off-by: Dean Nelson <dcn at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 9ca8e40c130c906c1060d105e63628410c860261
Author: Jack Steiner <steiner at sgi.com>
Date: Tue Jul 29 22:34:02 2008 -0700
GRU Driver V3: fixes to resolve code review comments
Fixes problems identified in a code review:
- add comment with high level dscription of the GRU
- prepend "gru_" to all global names
- delete unused function
- couple of trivial bug fixes
[akpm at linux-foundation.org: coding-style fixes]
Signed-off-by: Jack Steiner <steiner at sgi.com>
Cc: Nick Piggin <nickpiggin at yahoo.com.au>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 3d919e5f6b440bb0cc7996eb7628b29be09e6343
Author: Jack Steiner <steiner at sgi.com>
Date: Tue Jul 29 22:34:01 2008 -0700
GRU Driver: driver/misc Makefile & Kconfig changes
Driver/misc changes for the GRU driver
Signed-off-by: Jack Steiner <steiner at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 0d39741a27d86d305cc75ba626392be410dcbab9
Author: Jack Steiner <steiner at sgi.com>
Date: Tue Jul 29 22:34:01 2008 -0700
GRU Driver: export is_uv_system(), zap_page_range() & follow_page()
Exports needed by the GRU driver.
Signed-off-by: Jack Steiner <steiner at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 3c45f6928322773b1810fbec1ece77056f914114
Author: Jack Steiner <steiner at sgi.com>
Date: Tue Jul 29 22:34:00 2008 -0700
GRU Driver: driver makefile
This patch adds the GRU driver makefile
Signed-off-by: Jack Steiner <steiner at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit ee5b8feca3af01400e26637209a72fbf137c82ff
Author: Jack Steiner <steiner at sgi.com>
Date: Tue Jul 29 22:33:59 2008 -0700
GRU Driver: TLB flushing, MMUOPS callouts
This file contains the functions for handlinf GRU TLB flushing, This
includes functions to handle the MMUOPS callouts.
Signed-off-by: Jack Steiner <steiner at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 1d09d737ab017ff7a9745962e19909713ac89b37
Author: Jack Steiner <steiner at sgi.com>
Date: Tue Jul 29 22:33:59 2008 -0700
GRU Driver: /proc interfaces
This file externalizes some GRU state & statistics to the user using the
/proc file system.
Signed-off-by: Jack Steiner <steiner at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 9a0deecc90de62c91d7107611446c0c950091851
Author: Jack Steiner <steiner at sgi.com>
Date: Tue Jul 29 22:33:58 2008 -0700
GRU Driver: resource management
This file contains functions realted to managing GRU resources provided to
the user. Examples include GRU context assignment, load, unload,
migration, etc..
Signed-off-by: Jack Steiner <steiner at sgi.com>
Cc: Nick Piggin <nickpiggin at yahoo.com.au>
Cc: Hugh Dickins <hugh at veritas.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 28bffaf094a6d0992c85e1b01f04c9b0f56c9d62
Author: Jack Steiner <steiner at sgi.com>
Date: Tue Jul 29 22:33:57 2008 -0700
GRU Driver: kernel services provide by driver
This file contains functions for handling services provided to other
kernel modules that use the GRU.
Signed-off-by: Jack Steiner <steiner at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 142586409c8be7dc071bb94d7cd2d69ccfd99b6b
Author: Jack Steiner <steiner at sgi.com>
Date: Tue Jul 29 22:33:57 2008 -0700
GRU Driver: page faults & exceptions
This file contains the functions that manage GRU page faults and
exceptions.
Signed-off-by: Jack Steiner <steiner at sgi.com>
Cc: Christoph Hellwig <hch at lst.de>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 78cf1de49b11c0e2edb35cce91ac6c279cc852b3
Author: Jack Steiner <steiner at sgi.com>
Date: Tue Jul 29 22:33:56 2008 -0700
GRU Driver: driver initialization, file & vma ops
This file contains the functions for initializing the driver, handling
file & vma operations and for processing IOCTL requests from the user.
Signed-off-by: Jack Steiner <steiner at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit b2fb06fcb6d6c9912b43e61394891e3994d4b613
Author: Jack Steiner <steiner at sgi.com>
Date: Tue Jul 29 22:33:56 2008 -0700
GRU Driver: kernel services header files
This patch contains the header file used to export GRU services to other
kernel drivers such as XPMEM or XPNET.
Signed-off-by: Jack Steiner <steiner at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 13d19498b0446cad2c394f9fbec8149b44a60c6e
Author: Jack Steiner <steiner at sgi.com>
Date: Tue Jul 29 22:33:55 2008 -0700
GRU Driver: driver internal header files
This patch contains header files internal to the GRU driver.
Signed-off-by: Jack Steiner <steiner at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 4c921d4d8aa74140597fd8736261837f73ca6e7a
Author: Jack Steiner <steiner at sgi.com>
Date: Tue Jul 29 22:33:54 2008 -0700
GRU Driver: GRU instructions & macros
This patchs contains macros & inline functions used to issue instructions
to the GRU.
Signed-off-by: Jack Steiner <steiner at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 34d8a380d784d1fbea941a68beebdd7f9a3bebdf
Author: Jack Steiner <steiner at sgi.com>
Date: Tue Jul 29 22:33:54 2008 -0700
GRU Driver: hardware data structures
This series of patches adds a driver for the SGI UV GRU. The driver is
still in development but it currently compiles for both x86_64 & IA64.
All simple regression tests pass on IA64. Although features remain to be
added, I'd like to start the process of getting the driver into the
kernel. Additional kernel drivers will depend on services provide by the
GRU driver.
The GRU is a hardware resource located in the system chipset. The GRU
contains memory that is mmaped into the user address space. This memory
is used to communicate with the GRU to perform functions such as
load/store, scatter/gather, bcopy, AMOs, etc. The GRU is directly
accessed by user instructions using user virtual addresses. GRU
instructions (ex., bcopy) use user virtual addresses for operands.
The GRU contains a large TLB that is functionally very similar to
processor TLBs. Because the external contains a TLB with user virtual
address, it requires callouts from the core VM system when certain types
of changes are made to the process page tables. There are several MMUOPS
patches currently being discussed but none has been accepted into the
kernel. The GRU driver is built using version V18 from Andrea Arcangeli.
This patch:
Contains the definitions of the hardware GRU data structures that are used
by the driver to manage the GRU.
[akpm at linux-foundation;org: export hpage_shift]
Signed-off-by: Jack Steiner <steiner at sgi.com>
Cc: "Luck, Tony" <tony.luck at intel.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit c627f9cc046c7cd93b4525d89377fb409e170a18
Author: Jack Steiner <steiner at sgi.com>
Date: Tue Jul 29 22:33:53 2008 -0700
mm: add zap_vma_ptes(): a library function to unmap driver ptes
zap_vma_ptes() is intended to be used by drivers to unmap ptes assigned to the
driver private vmas. This interface is similar to zap_page_range() but is
less general & less likely to be abused.
Needed by the GRU driver.
Signed-off-by: Jack Steiner <steiner at sgi.com>
Cc: Nick Piggin <nickpiggin at yahoo.com.au>
Cc: Hugh Dickins <hugh at veritas.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit f718cd4add5aea9d379faff92f162571e356cc5f
Author: Andi Kleen <andi at firstfloor.org>
Date: Tue Jul 29 22:33:52 2008 -0700
sched: make scheduler sysfs attributes sysdev class devices
They are really class devices, but were incorrectly declared. This
leads to crashes with the recent changes that makes non normal sysdevs
use a different prototype.
[akpm at linux-foundation.org: coding-style fixes]
Signed-off-by: Andi Kleen <ak at linux.intel.com>
Cc: Ingo Molnar <mingo at elte.hu>
Cc: Pierre Ossman <drzeus-list at drzeus.cx>
Cc: Greg Kroah-Hartman <gregkh at suse.de>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 5cdc98b8f51310f7cca05ad780f18f80dd9571de
Author: Tomas Janousek <tomi at nomi.cz>
Date: Tue Jul 29 22:33:51 2008 -0700
rtc-dev: stop periodic interrupts on device release
Solves http://bugzilla.kernel.org/show_bug.cgi?id=11127
The old rtc.c driver did it and some drivers (like rtc-sh) do it in their
release function, though they should not -- because they should provide
the irq_set_state op and the rtc framework itself should care about it.
This patch makes it do so.
I am aware that some drivers, like rtc-sh, handle userspace PIE sets in
their ioctl op (instead of having the framework call the op), exporting
the irq_set_state op at the same time. The logic in rtc_irq_set_state
should make sure it doesn't matter and the driver should not need to care
stopping periodic interrupts in its release routine any more.
The correct way, in my opinion, should be this:
1) The driver provides the irq_set_state op and does not care closing the
interrupts in its release op.
2) If the driver does not provide the op and handles PIE in the ioctl op, it's
reponsible for closing them in its release op.
3) Something similar for other IRQs, like UIE -- if there's no in-kernel API
like irq_set_state, handle it in ioctl and release ops. The framework will
be responsible either for everything or for nothing. (This will probably
change later.)
Signed-off-by: Tomas Janousek <tomi at nomi.cz>
Acked-by: David Brownell <dbrownell at users.sourceforge.net>
Acked-by: Alessandro Zummo <a.zummo at towertech.it>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 8d0b1c51eb8375f88c0886d2e9f71881e19d42a7
Author: Thomas Bogendoerfer <tsbogend at alpha.franken.de>
Date: Tue Jul 29 22:33:49 2008 -0700
gbefb: cmap FIFO timeout
Writes to the cmap fifo while the display is blanked caused cmap FIFO
timeout messages and a wrong colormap. To avoid this the driver now
maintains a colormap in memory and updates the colormap after the display
is unblanked.
Signed-off-by: Thomas Bogendoerfer <tsbogend at alpha.franken.de>
Cc: Krzysztof Helt <krzysztof.h1 at poczta.fm>
Cc: "Antonino A. Daplas" <adaplas at pol.net>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 6af8bf3d86d55c98af6e453cb920ddc30867e5c7
Author: Oleg Nesterov <oleg at tv-sign.ru>
Date: Tue Jul 29 22:33:49 2008 -0700
workqueues: add comments to __create_workqueue_key()
Dmitry Adamushko pointed out that the error handling in
__create_workqueue_key() is not clear, add the comment.
Signed-off-by: Oleg Nesterov <oleg at tv-sign.ru>
Cc: Dmitry Adamushko <dmitry.adamushko at gmail.com>
Cc: Ingo Molnar <mingo at elte.hu>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit dbacefc9c4f6bd365243db379473ab7041656d90
Author: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Date: Tue Jul 29 22:33:47 2008 -0700
fs/buffer.c: uninline __remove_assoc_queue()
Uninline the __remove_assoc_queue() function in fs/buffer.c, called at too
many places and too long to really be inlined. Size results:
text data bss dec hex filename
1134606 118840 212992 1466438 166046 vmlinux.old
1134303 118840 212992 1466135 165f17 vmlinux
-303 0 0 -303 -12F +/-
This patch is part of the Linux Tiny project and has been originally
written by Matt Mackall <mpm at selenic.com>.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Cc: Matt Mackall <mpm at selenic.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit d406f66ddb0d7491ddd53e4600c425d76a8a245f
Author: Harvey Harrison <harvey.harrison at gmail.com>
Date: Tue Jul 29 22:33:46 2008 -0700
omfs: sparse annotations
Missing cpu_to_be64 on some constant assignments.
fs/omfs/dir.c:107:16: warning: incorrect type in assignment (different base types)
fs/omfs/dir.c:107:16: expected restricted __be64 [usertype] i_sibling
fs/omfs/dir.c:107:16: got unsigned long long
fs/omfs/file.c:33:13: warning: incorrect type in assignment (different base types)
fs/omfs/file.c:33:13: expected restricted __be64 [usertype] e_next
fs/omfs/file.c:33:13: got unsigned long long
fs/omfs/file.c:36:24: warning: incorrect type in assignment (different base types)
fs/omfs/file.c:36:24: expected restricted __be64 [usertype] e_cluster
fs/omfs/file.c:36:24: got unsigned long long
fs/omfs/file.c:37:23: warning: incorrect type in assignment (different base types)
fs/omfs/file.c:37:23: expected restricted __be64 [usertype] e_blocks
fs/omfs/file.c:37:23: got unsigned long long
fs/omfs/bitmap.c:74:18: warning: incorrect type in argument 2 (different signedness)
fs/omfs/bitmap.c:74:18: expected unsigned long volatile *addr
fs/omfs/bitmap.c:74:18: got long *<noident>
fs/omfs/bitmap.c:77:20: warning: incorrect type in argument 2 (different signedness)
fs/omfs/bitmap.c:77:20: expected unsigned long volatile *addr
fs/omfs/bitmap.c:77:20: got long *<noident>
fs/omfs/bitmap.c:112:17: warning: incorrect type in argument 2 (different signedness)
fs/omfs/bitmap.c:112:17: expected unsigned long volatile *addr
fs/omfs/bitmap.c:112:17: got long *<noident>
Signed-off-by: Harvey Harrison <harvey.harrison at gmail.com>
Acked-by: Bob Copeland <me at bobcopeland.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 32be1d22327743134974c7b2ec1e2a143b6b6f86
Author: Ben Dooks <ben-linux at fluff.org>
Date: Tue Jul 29 22:33:44 2008 -0700
scripts/mod/modpost.c: fix spelling of module and happens
Spelling fixes in scripts/mod/modpost.c
Signed-off-by: Ben Dooks <ben-linux at fluff.org>
Cc: Rusty Russell <rusty at rustcorp.com.au>
Cc: Sam Ravnborg <sam at ravnborg.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 07a887d399b84668bc26cd040d699b26ec3086c2
Author: Adrian Bunk <bunk at kernel.org>
Date: Tue Jul 29 22:33:44 2008 -0700
remove drivers/serial/v850e_uart.c
The removal of drivers/serial/v850e_uart.c originally was in my v850
removal patch, but it seems it got lost somewhere.
Reported-by: Robert P. J. Day <rpjday at crashcourse.ca>
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Acked-by: Alan Cox <alan at redhat.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 836e4b14b41d19d17341a2dd2c49af8dd54e3aac
Author: Paul Mundt <lethal at linux-sh.org>
Date: Tue Jul 29 22:33:43 2008 -0700
USB: m66592-udc: Fix up dev_set_name() badness.
Commit 0031a06e2f07ab0d1bc98c31dbb6801f95f4bf01 converted all of the USB
drivers to use dev_set_name(), though there was a typo on the m66592-udc
conversion that handed off the wrong pointer (we want the struct device
here obviously, not the struct usb_gadget).
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
Cc: Kay Sievers <kay.sievers at vrfy.org>
Cc: Greg Kroah-Hartman <gregkh at suse.de>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 204b885e7322656284626949e51f292fe61313fa
Author: Joerg Roedel <joerg.roedel at amd.com>
Date: Tue Jul 29 22:33:42 2008 -0700
introduce lower_32_bits() macro
The file kernel.h contains the upper_32_bits macro. This patch adds the
other part, the lower_32_bits macro. Its first use will be in the driver
for AMD IOMMU.
Cc: H. Peter Anvin <hpa at zytor.com>
Signed-off-by: Joerg Roedel <joerg.roedel at amd.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 87547ee95d81ec0ee1503fcaf9c9594469bc2510
Author: Fernando Luis Vazquez Cao <fernando at oss.ntt.co.jp>
Date: Tue Jul 29 22:33:42 2008 -0700
do_try_to_free_page: update comments related to vmscan functions
Signed-off-by: Fernando Luis Vazquez Cao <fernando at oss.ntt.co.jp>
Cc: Hugh Dickins <hugh at veritas.com>
Cc: Nick Piggin <nickpiggin at yahoo.com.au>
Cc: Rik van Riel <riel at redhat.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 7d03431cf98aaed635524024273668bb8cedadda
Author: Fernando Luis Vazquez Cao <fernando at oss.ntt.co.jp>
Date: Tue Jul 29 22:33:41 2008 -0700
swapfile/vmscan: update comments related to vmscan functions
Signed-off-by: Fernando Luis Vazquez Cao <fernando at oss.ntt.co.jp>
Cc: Hugh Dickins <hugh at veritas.com>
Cc: Nick Piggin <nickpiggin at yahoo.com.au>
Cc: Rik van Riel <riel at redhat.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit ab33dc09a5c0d2bd6757afa1c2f804c9657daec0
Author: Fernando Luis Vazquez Cao <fernando at oss.ntt.co.jp>
Date: Tue Jul 29 22:33:40 2008 -0700
swap: update function comment of release_pages
Signed-off-by: Fernando Luis Vazquez Cao <fernando at oss.ntt.co.jp>
Cc: Hugh Dickins <hugh at veritas.com>
Cc: Nick Piggin <nickpiggin at yahoo.com.au>
Cc: Rik van Riel <riel at redhat.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 7e6cbea39aaa32480145915751119227f29f6f7b
Author: Fernando Luis Vazquez Cao <fernando at oss.ntt.co.jp>
Date: Tue Jul 29 22:33:39 2008 -0700
madvise: update function comment of madvise_dontneed
Signed-off-by: Fernando Luis Vazquez Cao <fernando at oss.ntt.co.jp>
Cc: Hugh Dickins <hugh at veritas.com>
Cc: Nick Piggin <nickpiggin at yahoo.com.au>
Cc: Rik van Riel <riel at redhat.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 641de9d8f505db055d451b50e6e38117f84e79bb
Author: Uwe Kleine-König <Uwe.Kleine-Koenig at digi.com>
Date: Tue Jul 29 22:33:38 2008 -0700
printk: fix comment for printk ratelimiting
The comment assumed the burst to be one and the ratelimit used to be named
printk_ratelimit_jiffies.
Signed-off-by: Uwe Kleine-König <Uwe.Kleine-Koenig at digi.com>
Cc: Dave Young <hidave.darkstar at gmail.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 8f3d137e0d6cd470a4e404cbc67480a0febdb0b1
Author: Jiri Slaby <jirislaby at gmail.com>
Date: Tue Jul 29 22:33:38 2008 -0700
Char: mxser, ratelimit ioctl warning
The GET_MAJOR ioctl prints out a warning, make it ratelimited.
Signed-off-by: Jiri Slaby <jirislaby at gmail.com>
Acked-by: Alan Cox <alan at lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit bd673c7c3b1681dbfabab0062e67398dadf806af
Author: Geert Uytterhoeven <geert at linux-m68k.org>
Date: Tue Jul 29 22:33:36 2008 -0700
initrd: cast `initrd_start' to `void *'
commit fb6624ebd912e3d6907ca6490248e73368223da9 (initrd: Fix virtual/physical
mix-up in overwrite test) introduced the compiler warning below on mips,
as its virt_to_page() doesn't cast the passed address to unsigned long
internally, unlike on most other architectures:
init/main.c: In function `start_kernel':
init/main.c:633: warning: passing argument 1 of `virt_to_phys' makes pointer from integer without a cast
init/main.c:636: warning: passing argument 1 of `virt_to_phys' makes pointer from integer without a cast
For now, kill the warning by explicitly casting initrd_start to `void *', as
that's the type it should really be.
Reported-by: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Signed-off-by: Geert Uytterhoeven <geert at linux-m68k.org>
Cc: Ralf Baechle <ralf at linux-mips.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 06ac667903ebea8191d4f7e7fa4e0936161e25fe
Author: WANG Cong <xiyou.wangcong at gmail.com>
Date: Tue Jul 29 22:33:34 2008 -0700
uml: fix tty-related build error
/home/wangcong/Projects/linux-2.6/arch/um/drivers/line.c: In function `line_write_interrupt':
/home/wangcong/Projects/linux-2.6/arch/um/drivers/line.c:366: error: `struct tty_ldisc' has no member named `write_wakeup'
/home/wangcong/Projects/linux-2.6/arch/um/drivers/line.c:367: error: `struct tty_ldisc' has no member named `write_wakeup'
Signed-off-by: WANG Cong <wangcong at zeuux.org>
Cc: Jeff Dike <jdike at addtoit.com>
Acked-by: Alan Cox <alan at redhat.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 2c203003f64de5fe55ae35712942100d270667fa
Author: Jerome Arbez-Gindre <jeromearbezgindre at gmail.com>
Date: Tue Jul 29 22:33:33 2008 -0700
connector: add a BlackBoard user to connector
Add a BlackBoard user to connector. BlackBoard is part of the TSP GPL
sampling framework (http://savannah.nongnu.org/p/tsp)
[akpm at linux-foundation.org: add comment]
Signed-off-by: Jerome Arbez-Gindre <jeromearbezgindre at gmail.com>
Acked-by: Evgeniy Polyakov <johnpol at 2ka.mipt.ru>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 3f1712bac586069d6c891a8201457283b27e8abe
Author: Vegard Nossum <vegard.nossum at gmail.com>
Date: Tue Jul 29 22:33:32 2008 -0700
print_ip_sym(): use %pS
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit c389d27b5e643d745f55ffb939b1426060ba63d4
Author: Borislav Petkov <petkovbb at googlemail.com>
Date: Tue Jul 29 22:33:32 2008 -0700
8250.c: port.lock is irq-safe
serial8250_startup() doesn't disable interrupts while taking the &up->port.lock
which might race against the interrupt handler serial8250_interrupt(), which
when entered, will deadlock waiting for the lock to be released.
Signed-off-by: Borislav Petkov <petkovbb at gmail.com>
Tested-by: Ingo Molnar <mingo at elte.hu>
Cc: Alan Cox <alan at lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 5def9a3a22e09c99717f41ab7f07ec9e1a1f3ec8
Author: Mathieu Desnoyers <mathieu.desnoyers at polymtl.ca>
Date: Tue Jul 29 22:33:31 2008 -0700
markers: fix markers read barrier for multiple probes
Paul pointed out two incorrect read barriers in the marker handler code in
the path where multiple probes are connected. Those are ordering reads of
"ptype" (single or multi probe marker), "multi" array pointer, and "multi"
array data access.
It should be ordered like this :
read ptype
smp_rmb()
read multi array pointer
smp_read_barrier_depends()
access data referenced by multi array pointer
The code with a single probe connected (optimized case, does not have to
allocate an array) has correct memory ordering.
It applies to kernel 2.6.26.x, 2.6.25.x and linux-next.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at polymtl.ca>
Cc: "Paul E. McKenney" <paulmck at linux.vnet.ibm.com>
Cc: <stable at kernel.org> [2.6.25.x, 2.6.26.x]
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit b68bb2632453a9ca7d10a00d79adf60968cb4c05
Author: David Brownell <dbrownell at users.sourceforge.net>
Date: Tue Jul 29 22:33:30 2008 -0700
rtc: don't return -EBUSY when mutex_lock_interruptible() fails
It was pointed out that the RTC framework handles its mutex locks oddly
... returning -EBUSY when interrupted. This fixes that by returning the
value of mutex_lock_interruptible() (i.e. -EINTR).
Signed-off-by: David Brownell <dbrownell at users.sourceforge.net>
Acked-by: Alessandro Zummo <a.zummo at towertech.it>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 950d442ad053e660538cdaa6efc0e060c2a65062
Author: Julia Lawall <julia at diku.dk>
Date: Tue Jul 29 22:33:28 2008 -0700
drivers/video: release mutex in error handling code
The mutex is released on a successful return, so it would seem that it
should be released on an error return as well.
The semantic patch finds this problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)
// <smpl>
@@
expression l;
@@
mutex_lock(l);
... when != mutex_unlock(l)
when any
when strict
(
if (...) { ... when != mutex_unlock(l)
+ mutex_unlock(l);
return ...;
}
|
mutex_unlock(l);
)
// </smpl>
Signed-off-by: Julia Lawall <julia at diku.dk>
Acked-by: Krzysztof Helt <krzysztof.h1 at wp.pl>
Acked-by: Ondrej Zajicek <santiago at crfreenet.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit d667b6ddbcdc036a27407c8b2c1243f1dfd69e26
Author: Alexey Dobriyan <adobriyan at gmail.com>
Date: Tue Jul 29 22:33:26 2008 -0700
hpwdt: don't use static flags
Static (read: global) is potential problem. Two threads can corrupt each
other's interrupt status, better avoid this.
Signed-off-by: Alexey Dobriyan <adobriyan at gmail.com>
Cc: Wim Van Sebroeck <wim at iguana.be>
Cc: Thomas Mingarelli <thomas.mingarelli at hp.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 26c131c71e31973e273adde4027e6a80bde164dc
Author: Jan Beulich <jbeulich at novell.com>
Date: Tue Jul 29 22:33:25 2008 -0700
iscsi_ibft_find: fix modpost warning
Exporting __init functions is wrong.
Signed-off-by: Jan Beulich <jbeulich at novell.com>
Acked-by: Konrad Rzeszutek <konradr at linux.vnet.ibm.com>
Cc: Ingo Molnar <mingo at elte.hu>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 126ed36d0edee41c0775906a164ad7e8bef55864
Author: Ben Dooks <ben-linux at fluff.org>
Date: Tue Jul 29 22:33:25 2008 -0700
backlight: ensure platform_lcd on by default
It seems that we need to ensure that the lcd is powered up at start,
otherwise we do not see a display.
Signed-off-by: Ben Dooks <ben-linux at fluff.org>
Cc: Richard Purdie <rpurdie at rpsys.net>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit aeed682421a5ebfbf46940e30c3d1caf3bc64304
Author: Li Zefan <lizf at cn.fujitsu.com>
Date: Tue Jul 29 22:33:24 2008 -0700
cpuset: clean up cpuset hierarchy traversal code
Use cpuset.stack_list rather than kfifo, so we avoid memory allocation
for kfifo.
Signed-off-by: Li Zefan <lizf at cn.fujitsu.com>
Signed-off-by: Lai Jiangshan <laijs at cn.fujitsu.com>
Cc: Paul Menage <menage at google.com>
Cc: Cedric Le Goater <clg at fr.ibm.com>
Cc: Balbir Singh <balbir at in.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu at jp.fujitsu.com>
Cc: Paul Jackson <pj at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 93a6557558a13f9ff35213efeca483f353c39dd3
Author: Li Zefan <lizf at cn.fujitsu.com>
Date: Tue Jul 29 22:33:23 2008 -0700
cpuset: fix wrong calculation of relax domain level
When multiple cpusets are overlapping in their 'cpus' and hence they
form a single sched domain, the largest sched_relax_domain_level among
those should be used. But when top_cpuset's sched_load_balance is
set, its sched_relax_domain_level is used regardless other sub-cpusets'.
This patch fixes it by walking the cpuset hierarchy to find the largest
sched_relax_domain_level.
Signed-off-by: Lai Jiangshan <laijs at cn.fujitsu.com>
Signed-off-by: Li Zefan <lizf at cn.fujitsu.com>
Cc: Paul Menage <menage at google.com>
Cc: Cedric Le Goater <clg at fr.ibm.com>
Cc: Balbir Singh <balbir at in.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu at jp.fujitsu.com>
Reviewed-by: Paul Jackson <pj at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit f5393693e96393131a4a2e2743f883986d508503
Author: Lai Jiangshan <laijs at cn.fujitsu.com>
Date: Tue Jul 29 22:33:22 2008 -0700
cpuset: speed up sched domain partition
All child cpusets contain a subset of the parent's cpus, so we can skip
them when partitioning sched domains. This decreases 'csa' greately for
cpusets with multi-level hierarchy.
Signed-off-by: Lai Jiangshan <laijs at cn.fujitsu.com>
Signed-off-by: Li Zefan <lizf at cn.fujitsu.com>
Cc: Paul Menage <menage at google.com>
Cc: Cedric Le Goater <clg at fr.ibm.com>
Cc: Balbir Singh <balbir at in.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu at jp.fujitsu.com>
Reviewed-by: Paul Jackson <pj at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 8d1e6266f512b3a94ef6d33528ff385f1aea0392
Author: Li Zefan <lizf at cn.fujitsu.com>
Date: Tue Jul 29 22:33:21 2008 -0700
cpuset: a bit cleanup for scan_for_empty_cpusets()
clean up hierarchy traversal code
Signed-off-by: Li Zefan <lizf at cn.fujitsu.com>
Cc: Paul Menage <menage at google.com>
Cc: Cedric Le Goater <clg at fr.ibm.com>
Cc: Balbir Singh <balbir at in.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu at jp.fujitsu.com>
Cc: Paul Jackson <pj at sgi.com>
Cc: Cliff Wickman <cpw at sgi.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 4ef1b0fd61333b3b81ebe29283898c6c84b15c9f
Author: Li Zefan <lizf at cn.fujitsu.com>
Date: Tue Jul 29 22:33:20 2008 -0700
memcg: remove redundant check in move_task()
It's guaranteed by cgroup that old_cgrp != cgrp.
Signed-off-by: Li Zefan <lizf at cn.fujitsu.com>
Cc: Paul Menage <menage at google.com>
Cc: Cedric Le Goater <clg at fr.ibm.com>
Cc: Balbir Singh <balbir at in.ibm.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu at jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 55b6fd0162ace1e0f1b52c8c092565c115127ef6
Author: Li Zefan <lizf at cn.fujitsu.com>
Date: Tue Jul 29 22:33:20 2008 -0700
cgroup: uninline cgroup_has_css_refs()
It's not small enough, and has 2 call sites.
text data bss dec hex filename
12813 1676 4832 19321 4b79 cgroup.o.orig
12775 1676 4832 19283 4b53 cgroup.o
Signed-off-by: Li Zefan <lizf at cn.fujitsu.com>
Cc: Paul Menage <menage at google.com>
Cc: Cedric Le Goater <clg at fr.ibm.com>
Cc: Balbir Singh <balbir at in.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu at jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 36553434f475a84b653e25e74490ee8df43b86d5
Author: Li Zefan <lizf at cn.fujitsu.com>
Date: Tue Jul 29 22:33:19 2008 -0700
cgroup: remove duplicate code in allocate_cg_link()
- just call free_cg_links() in allocate_cg_links()
- the list will get initialized in allocate_cg_links(), so don't init
it twice
Signed-off-by: Li Zefan <lizf at cn.fujitsu.com>
Cc: Paul Menage <menage at google.com>
Cc: Cedric Le Goater <clg at fr.ibm.com>
Cc: Balbir Singh <balbir at in.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu at jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 5a3eb9f6b7c598529f832b8baa6458ab1cbab2c6
Author: Li Zefan <lizf at cn.fujitsu.com>
Date: Tue Jul 29 22:33:18 2008 -0700
cgroup: fix possible memory leak
There's a leak if copy_from_user() returns failure.
Signed-off-by: Li Zefan <lizf at cn.fujitsu.com>
Cc: Paul Menage <menage at google.com>
Cc: Cedric Le Goater <clg at fr.ibm.com>
Cc: Balbir Singh <balbir at in.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu at jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 1d1958f05095a7e9ecbba86235122784a3d1b561
Author: Yinghai Lu <yhlu.kernel at gmail.com>
Date: Tue Jul 29 22:33:16 2008 -0700
mm: remove find_max_pfn_with_active_regions
It has no user now
Also print out info about adding/removing active regions.
Signed-off-by: Yinghai Lu <yhlu.kernel at gmail.com>
Acked-by: Mel Gorman <mel at csn.ul.ie>
Acked-by: Ingo Molnar <mingo at elte.hu>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 3971e1a917548977cff71418a7c3575ffbc9571f
Author: Alex Nixon <alex.nixon at citrix.com>
Date: Tue Jul 29 22:33:03 2008 -0700
VFS: increase pseudo-filesystem block size to PAGE_SIZE
This commit:
commit ba52de123d454b57369f291348266d86f4b35070
Author: Theodore Ts'o <tytso at mit.edu>
Date: Wed Sep 27 01:50:49 2006 -0700
[PATCH] inode-diet: Eliminate i_blksize from the inode structure
caused the block size used by pseudo-filesystems to decrease from
PAGE_SIZE to 1024 leading to a doubling of the number of context switches
during a kernbench run.
Signed-off-by: Alex Nixon <Alex.Nixon at citrix.com>
Cc: Andi Kleen <andi at firstfloor.org>
Cc: Jeremy Fitzhardinge <jeremy at goop.org>
Cc: Peter Zijlstra <peterz at infradead.org>
Cc: Ingo Molnar <mingo at elte.hu>
Cc: Ian Campbell <Ian.Campbell at eu.citrix.com>
Cc: "Theodore Ts'o" <tytso at mit.edu>
Cc: Alexander Viro <viro at zeniv.linux.org.uk>
Cc: Hugh Dickins <hugh at veritas.com>
Cc: Jens Axboe <jens.axboe at oracle.com>
Cc: <stable at kernel.org> [2.6.25.x, 2.6.26.x]
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit fdac4e69a1fc181652b37ce6a32ab8a56b0f3bcf
Author: Helge Deller <deller at gmx.de>
Date: Tue Jul 29 22:33:01 2008 -0700
sticore: don't activate unsupported GSC STI cards on HPPA
On HPPA there exists some older GSC graphics cards, which need special
graphic-card-BIOS patching to become supported. Since we don't have yet
implemented the patching, it's better to detect such cards in advance,
inform to the user that there are known problems and to not activate the
card.
Problematic GSC cards and BIOS versions are:
* Hyperdrive/Hyperbowl (A4071A) graphics card series:
* ID = 0x2BCB015A (Version 8.04/8)
* ID = 0x2BCB015A (Version 8.04/11)
* Thunder 1 VISUALIZE 48 card:
* ID = 0x2F23E5FC (Version 8.05/9)
* Thunder 2 VISUALIZE 48 XP card:
* ID = 0x2F8D570E (Version 8.05/12)
* Some Hyperion and ThunderHawk GSC cards
Further details are described here:
http://parisc-linux.org/faq/graphics-howto.html
Signed-off-by: Helge Deller <deller at gmx.de>
Cc: Kyle McMartin <kyle at mcmartin.ca>
Cc: Krzysztof Helt <krzysztof.h1 at poczta.fm>
Cc: "Antonino A. Daplas" <adaplas at pol.net>
Cc: Grant Grundler <grundler at parisc-linux.org>
Cc: Matthew Wilcox <matthew at wil.cx>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 9b67c5d48f104aae6118bbb052dd79a15ab9794b
Author: Thomas Renninger <trenn at suse.de>
Date: Tue Jul 29 22:32:59 2008 -0700
acpi cpufreq cleanup: move bailing out of function before locking the mutex
Signed-off-by: Thomas Renninger <trenn at suse.de>
Cc: Andi Kleen <andi at firstfloor.org>
Cc: Len Brown <lenb at kernel.org>
Cc: Dave Jones <davej at codemonkey.org.uk>
Cc: Ingo Molnar <mingo at elte.hu>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi at intel.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit a1531acd43310a7e4571d52e8846640667f4c74b
Author: Thomas Renninger <trenn at suse.de>
Date: Tue Jul 29 22:32:58 2008 -0700
cpufreq acpi: only call _PPC after cpufreq ACPI init funcs got called already
Ingo Molnar provided a fix to not call _PPC at processor driver
initialization time in "[PATCH] ACPI: fix cpufreq regression" (git
commit e4233dec749a3519069d9390561b5636a75c7579)
But it can still happen that _PPC is called at processor driver
initialization time.
This patch should make sure that this is not possible anymore.
Signed-off-by: Thomas Renninger <trenn at suse.de>
Cc: Andi Kleen <andi at firstfloor.org>
Cc: Len Brown <lenb at kernel.org>
Cc: Dave Jones <davej at codemonkey.org.uk>
Cc: Ingo Molnar <mingo at elte.hu>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi at intel.com>
Cc: <stable at kernel.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 1a4e564b7db999fbe5d88318c96ac8747699d417
Author: Magnus Damm <damm at igel.co.jp>
Date: Tue Jul 29 22:32:57 2008 -0700
resource: add resource_size()
Avoid one-off errors by introducing a resource_size() function.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Cc: Ben Dooks <ben-linux at fluff.org>
Cc: Jean Delvare <khali at linux-fr.org>
Cc: Paul Mundt <lethal at linux-sh.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit e958d3ace7791f33518f0259cd3cf229408b135c
Author: Ben Dooks <ben-linux at fluff.org>
Date: Tue Jul 29 22:32:56 2008 -0700
backlight: give platform_lcd the same name as the platform device.
When registering an platform_lcd, use the name of the platform device
specified in case there are more than one platform_lcd backlights
registered.
Signed-off-by: Ben Dooks <ben-linux at fluff.org>
Cc: Richard Purdie <rpurdie at rpsys.net>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 95b1bc20532c18e3f19cd460c8350350c84ffbb2
Author: David Brownell <dbrownell at users.sourceforge.net>
Date: Tue Jul 29 22:28:12 2008 -0700
[MTD] MTD_DEBUG always does compile-time typechecks
The current style for debug messages is to ensure they're always
parsed by the compiler and then subjected to dead code removal.
That way builds won't break only when debug options get enabled,
which is common when they are stripped out early by CPP.
This patch makes CONFIG_MTD_DEBUG adopt that convention.
Signed-off-by: David Brownell <dbrownell at users.sourceforge.net>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
commit 771999b65f79264acde4b855e5d35696eca5e80c
Author: akpm at linux-foundation.org <akpm at linux-foundation.org>
Date: Tue Jul 29 22:22:40 2008 -0700
[MTD] DataFlash: bugfix, binary page sizes now handled
The wrong version of the "teach dataflash about binary density" patch
just got merged (v2 not v3) ... this restores the missing updates:
* Fix the cmdlinepart *regression* that caused testing failures (!!)
by restoring the original part labels in relevant cases.
* Don't reference things that don't exist (!)
- An opcode that doesn't even exist for DataFlash
- The part is "at45db642" not "at45db641"
- ID zero in this JEDEC table
* Make the JEDEC probe routine report and handle errors better:
- If the SPI calls fail, return the error codes.
- Don't depend on ordering of table entries.
- Unrecognized ids are different from parts that have no ID.
We won't actually know how to handle them correctly; display
the ID and ignore the chip.
* Move the original block comment about the "legacy" chip ID scheme
back next to the code to which it applies ... not next to the new
JEDEC query code, which uses an entirely different strategy.
* Don't print a guessed erasesize; /proc/mtd has the real value.
And add a few more comments.
Signed-off-by: David Brownell <dbrownell at users.sourceforge.net>
Cc: Bryan Wu <cooloney at kernel.org>
Cc: Michael Hennerich <michael.hennerich at analog.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
commit 650da9d0b7c401619c1df2953e975606b8d5dcbb
Author: akpm at linux-foundation.org <akpm at linux-foundation.org>
Date: Tue Jul 29 21:27:14 2008 -0700
[MTD] [NAND] fsl_elbc_nand.c: fix printk warning
drivers/mtd/nand/fsl_elbc_nand.c:890: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t'
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
commit 74216be41a61a809ad17b091068307e3d89f4a2f
Author: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
Date: Wed Jul 30 11:18:42 2008 +0300
[MTD] [NAND] nandsim: support random page read command
Commit 3d45955962496879dead8d4dd70bb9a23b07154b ("subpage read feature
as a way to improve performance") broke nandsim because nandsim does not
support the "random page read" NAND command. This patch adds
corresponding support.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
commit 96d8b647cfff90c8ff07863866aacdcd9d13cead
Author: Alexey Korolev <akorolev at infradead.org>
Date: Tue Jul 29 13:54:11 2008 +0100
[MTD] [NAND] fix subpage read for small page NAND
Current implementation of subpage read feature for NAND has issues with
small page devices. Small page NAND do not support RNDOUT command.
So subpage feature is not applicable for them.
This patch disables support of subpage for small page NAND.
The code is verified on nandsim(SP NAND simulation) and on LP NAND
devices.
Thanks a lot to Artem for finding this issue.
Signed-off-by: Alexey Korolev <akorolev at infradead.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
commit 031cf19e6f63941506c9baf76ac7adac06edcf08
Author: Robert P. J. Day <rpjday at crashcourse.ca>
Date: Wed Jul 30 03:14:01 2008 -0700
net: Make "networking" one-click deselectable.
Use a menuconfig directive to make all of networking support one-click
deselectable from the top-level menu.
Signed-off-by: Robert P. J. Day <rpjday at crashcourse.ca>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 17ef51fce03758736e9051c4360eca237dd0aaeb
Author: Daniel Lezcano <dlezcano at fr.ibm.com>
Date: Wed Jul 30 03:12:31 2008 -0700
ipv6: Fix useless proc net sockstat6 removal
This call is no longer needed, sockstat6 is per namespace so it is
removed at the namespace subsystem destruction.
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 785957d3e8c6fb37b18bf671923a76dbd8240025
Author: David S. Miller <davem at davemloft.net>
Date: Wed Jul 30 03:03:15 2008 -0700
tcp: MD5: Use MIB counter instead of warning for MD5 mismatch.
From a report by Matti Aarnio, and preliminary patch by Adam Langley.
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 8d50b53d66a8a6ae41bafbdcabe401467803f33a
Author: David S. Miller <davem at davemloft.net>
Date: Wed Jul 30 02:37:46 2008 -0700
pkt_sched: Fix OOPS on ingress qdisc add.
Bug report from Steven Jan Springl:
Issuing the following command causes a kernel oops:
tc qdisc add dev eth0 handle ffff: ingress
The problem mostly stems from all of the special case handling of
ingress qdiscs.
So, to fix this, do the grafting operation the same way we do for TX
qdiscs. Which means that dev_activate() and dev_deactivate() now do
the "qdisc_sleeping <--> qdisc" transitions on dev->rx_queue too.
Future simplifications are possible now, mainly because it is
impossible for dev_queue->{qdisc,qdisc_sleeping} to be NULL. There
are NULL checks all over to handle the ingress qdisc special case
that used to exist before this commit.
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 0eb5d5ab3ec99bfd22ff16797d95835369ffb25b
Author: Philipp Zabel <philipp.zabel at gmail.com>
Date: Fri Jul 11 17:28:06 2008 +0200
regulator: TI bq24022 Li-Ion Charger driver
This adds a regulator driver for the TI bq24022 Single-Chip
Li-Ion Charger with its nCE and ISET2 pins connected to GPIOs.
Signed-off-by: Philipp Zabel <philipp.zabel at gmail.com>
Signed-off-by: Liam Girdwood <lg at opensource.wolfsonmicro.com>
commit e53e86c7ae123b11c269b0835c04e1b42ca4baed
Author: Liam Girdwood <lg at opensource.wolfsonmicro.com>
Date: Thu Jul 10 15:48:00 2008 +0100
regulator: maintainers - add maintainers for regulator framework.
Adds Liam Girdwood and Mark Brown as regulator framework maintainers.
Signed-off-by: Liam Girdwood <lg at opensource.wolfsonmicro.com>
commit e941d0ce532daf8d8610b2495c06f787fd587b85
Author: Liam Girdwood <lg at opensource.wolfsonmicro.com>
Date: Wed Apr 30 17:23:59 2008 +0100
regulator: documentation - ABI
This adds documentation describing the sysfs ABI used by the regulator
framework.
Signed-off-by: Liam Girdwood <lg at opensource.wolfsonmicro.com>
commit e7d0fe340557b202dc00135ab3cc877db794a01f
Author: Liam Girdwood <lg at opensource.wolfsonmicro.com>
Date: Wed Apr 30 17:22:50 2008 +0100
regulator: documentation - machine
This adds documenation describing the regulator machine interface.
Signed-off-by: Liam Girdwood <lg at opensource.wolfsonmicro.com>
commit e8695ebe5568921c41c269f4434e17590735865c
Author: Liam Girdwood <lg at opensource.wolfsonmicro.com>
Date: Wed Apr 30 17:20:11 2008 +0100
regulator: documentation - regulator driver
This adds documentation describing the regulator driver interface.
Signed-off-by: Liam Girdwood <lg at opensource.wolfsonmicro.com>
commit 6392776d262fcd290616ff5e4246ee95b22c13f0
Author: Liam Girdwood <lg at opensource.wolfsonmicro.com>
Date: Wed Apr 30 17:19:02 2008 +0100
regulator: documentation - consumer interface
This adds documentation describing the consumer device interface.
Signed-off-by: Liam Girdwood <lg at opensource.wolfsonmicro.com>
commit 8e6f0848be83c5c406ed73a6d7b4bfbf87880eec
Author: Liam Girdwood <lg at opensource.wolfsonmicro.com>
Date: Wed Apr 30 17:16:51 2008 +0100
regulator: documentation - overview
This adds overview documentation describing the regulator framework and
nomenclature used in the interface specific documentation and code.
Signed-off-by: Liam Girdwood <lg at opensource.wolfsonmicro.com>
commit ba7e4763437561763b6cca14a41f1d2a7def23e2
Author: Liam Girdwood <lg at opensource.wolfsonmicro.com>
Date: Wed Apr 30 17:13:42 2008 +0100
regulator: core kbuild files
This patch adds kernel build support for the regulator core.
Signed-off-by: Philipp Zabel <philipp.zabel at gmail.com>
Signed-off-by: Liam Girdwood <lg at opensource.wolfsonmicro.com>
commit c080909eef2b3e7fba70f57cde3264fba95bdf09
Author: Mark Brown <broonie at opensource.wolfsonmicro.com>
Date: Wed Apr 30 17:05:33 2008 +0100
regulator: regulator test harness
This provides a virtual regulator test harness which exposes a sysfs
interface for setting power requirements, intended for test purposes only.
Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
Signed-off-by: Philipp Zabel <philipp.zabel at gmail.com>
Signed-off-by: Liam Girdwood <lg at opensource.wolfsonmicro.com>
commit 4b74ff6512492dedea353f89d9b56cb715df0d7f
Author: Mark Brown <broonie at opensource.wolfsonmicro.com>
Date: Wed Apr 30 16:27:12 2008 +0100
regulator: add support for fixed regulators.
This adds supports for regulator that are not software controlable. It allows
them to coexist in systems with mixed supplies.
Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
Signed-off-by: Mike Rapoport <mike at compulab.co.il>
Signed-off-by: Liam Girdwood <lg at opensource.wolfsonmicro.com>
commit 414c70cb91c445ec813b61e16fe4882807e40240
Author: Liam Girdwood <lg at opensource.wolfsonmicro.com>
Date: Wed Apr 30 15:59:04 2008 +0100
regulator: regulator framework core
This adds the regulator framework core.
This framework is designed to provide a generic interface to voltage
and current regulators within the Linux kernel. It's intended to
provide voltage and current control to client or consumer drivers and
also provide status information to user space applications through a
sysfs interface.
The intention is to allow systems to dynamically control regulator
output in order to save power and prolong battery life. This applies
to both voltage regulators (where voltage output is controllable) and
current sinks (where current output is controllable).
This framework safely compiles out if not selected so that client
drivers can still be used in systems with no software controllable
regulators.
Signed-off-by: Liam Girdwood <lg at opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <greg at kroah.com>
Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
commit 48d335ba3164ce99cb8847513d0e3b6ee604eb20
Author: Mark Brown <broonie at opensource.wolfsonmicro.com>
Date: Wed Apr 30 15:50:21 2008 +0100
regulator: fixed regulator interface
This patch adds support for fixed regulators. This class of regulator is
not software controllable but can coexist on machines with software
controlable regulators.
Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lg at opensource.wolfsonmicro.com>
commit 4c1184e85cb381121a5273ea20ad31ca3faa0a4f
Author: Liam Girdwood <lg at opensource.wolfsonmicro.com>
Date: Wed Apr 30 15:46:09 2008 +0100
regulator: machine driver interface
This interface is for machine specific code and allows the creation of
voltage/current domains (with constraints) for each regulator. It can
provide regulator constraints that will prevent device damage through
overvoltage or over current caused by buggy client drivers. It also
allows the creation of a regulator tree whereby some regulators are
supplied by others (similar to a clock tree).
Signed-off-by: Liam Girdwood <lg at opensource.wolfsonmicro.com>
Signed-off-by: Philipp Zabel <philipp.zabel at gmail.com>
Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
commit 571a354b1542a274d88617e1f6703f3fe7a517f1
Author: Liam Girdwood <lg at opensource.wolfsonmicro.com>
Date: Wed Apr 30 15:42:28 2008 +0100
regulator: regulator driver interface
This allows regulator drivers to register their regulators and provide
operations to the core. It also has a notifier call chain for propagating
regulator events to clients.
Signed-off-by: Liam Girdwood <lg at opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
commit e2ce4eaa76214f65a3f328ec5b45c30248115768
Author: Liam Girdwood <lg at opensource.wolfsonmicro.com>
Date: Wed Apr 30 15:10:07 2008 +0100
regulator: consumer device interface
Add support to allow consumer device drivers to control their regulator
power supply.
This uses a similar API to the kernel clock interface in that consumer
drivers can get and put a regulator (like they can with clocks atm) and
get/set voltage, current limit, mode, enable and disable. This should
allow consumers complete control over their supply voltage and current
limit. This also compiles out if not in use so drivers can be reused in
systems with no regulator based power control.
Signed-off-by: Liam Girdwood <lg at opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
commit 4e891910f5fc7b94c720f587686636a88447c5e4
Author: Alan Cox <alan at lxorguk.ukuu.org.uk>
Date: Tue Jul 8 19:35:13 2008 +0100
[netdrvr] wd: fix build breakage with new NS8390p API
From: Alan Cox <alan at redhat.com>
Signed-off-by: Jeff Garzik <jgarzik at redhat.com>
commit 16d78bc255a55d16c0888dde336978d633e80b01
Author: Peter Korsgaard <jacmet at sunsite.dk>
Date: Mon Jul 14 09:07:32 2008 +0200
dm9601: don't do usb transfers of data on stack
dm_{read,write}() were doing USB transfers of data on stack, which isn't
allowed. Fix it by kmalloc'ing a temporary buffer.
Clean up the error handling for short transfers while we're at it.
Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
Acked-by: David Brownell <dbrownell at users.sourceforge.net>
Signed-off-by: Jeff Garzik <jgarzik at redhat.com>
commit 38c080ffa9c1b840390832b42ce8621464ab9f97
Author: Andreas Schwab <schwab at suse.de>
Date: Tue Jul 29 23:59:20 2008 -0700
niu: Fix error checking in niu_ethflow_to_class.
The callers of niu_ethflow_to_class expect zero as error, but it returns
-1 instead.
Signed-off-by: Andreas Schwab <schwab at suse.de>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 4a36702e016947a0ce6c0c024673bb5b16d3f618
Author: Miao Xie <miaox at cn.fujitsu.com>
Date: Tue Jul 29 23:57:58 2008 -0700
IPv6: datagram_send_ctl() should exit immediately when an error occured
When an error occured, datagram_send_ctl() should exit immediately rather than
continue to run the for loop. Otherwise, the variable err might be changed and
the error might be hidden.
Fix this bug by using "goto" instead of "break".
Signed-off-by: Miao Xie <miaox at cn.fujitsu.com>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit ce0ad7f0952581ba75ab6aee55bb1ed9bb22cf4f
Author: Nick Piggin <npiggin at suse.de>
Date: Wed Jul 30 15:23:13 2008 +1000
powerpc/mm: Lockless get_user_pages_fast() for 64-bit (v3)
Implement lockless get_user_pages_fast for 64-bit powerpc.
Page table existence is guaranteed with RCU, and speculative page references
are used to take a reference to the pages without having a prior existence
guarantee on them.
Signed-off-by: Nick Piggin <npiggin at suse.de>
Signed-off-by: Dave Kleikamp <shaggy at linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit 7d2a175b9bf6e9422bebe95130a3c79a25ff4602
Author: Michael Neuling <mikey at neuling.org>
Date: Tue Jul 29 01:13:14 2008 +1000
powerpc: Don't use the wrong thread_struct for ptrace get/set VSX regs
In PTRACE_GET/SETVSRREGS, we should be using the thread we are
ptracing rather than current.
Signed-off-by: Michael Neuling <mikey at neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit 1ac42ef844d7c0996f15c6f94f463ac94cb80818
Author: Michael Neuling <mikey at neuling.org>
Date: Tue Jul 29 01:13:14 2008 +1000
powerpc: Fix ptrace buffer size for VSX
Fix cut-and-paste error in the size setting for ptrace buffers for VSX.
Signed-off-by: Michael Neuling <mikey at neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit 33b3f03dccc26c377e9689790ecc41079a0c9ca7
Author: Michael Neuling <mikey at neuling.org>
Date: Tue Jul 29 01:13:14 2008 +1000
powerpc: Correctly hookup PTRACE_GET/SETVSRREGS for 32 bit processes
Fix bug where PTRACE_GET/SETVSRREGS are not connected for 32 bit processes.
Signed-off-by: Michael Neuling <mikey at neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit 9842727da7d95d8249087148048cc571f967c023
Author: Benjamin Herrenschmidt <benh at kernel.crashing.org>
Date: Mon Jul 28 11:29:56 2008 +1000
ide/powermac: Fix use of uninitialized pointer on media-bay
The current ide-pmac calls media_bay_set_ide_infos() with an
uninitialized "hwif" argument. The proper fix is to split the
allocation of the hwif from its registration in order to properly
setup the mediabay informations before registration.
Acked-by: Bartlomiej Zolnierkiewicz <bzolnier at gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit 9ee07f91a1fab61ff0d8d25be43351a049c0a821
Author: Nathan Fontenot <nfont at austin.ibm.com>
Date: Sat Jul 26 04:27:06 2008 +1000
powerpc: Allow non-hcall return values for lparcfg writes
The code to handle writes to /proc/ppc64/lparcfg incorrectly
assumes that the return code from the helper routines to update
processor or memory entitlement return a hcall return value. It
then assumes any non-hcall return value is bad and sets the return
code for the write to be -EIO.
The update_[mp]pp routines can return values other than a hcall
return value. This patch removes the automatic setting of any
return code that is not an hcall return value from these routines
to -EIO.
Signed-off-by: Nathan Fontenot <nfont at austin.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit 11c675cef2fbe471dc6103a89b156e65c3630f3a
Author: Stephen Rothwell <sfr at canb.auug.org.au>
Date: Fri May 23 16:22:42 2008 +1000
ipmi/powerpc: Use linux/of_{device,platform}.h instead of asm
Drivers should not include the asm variants anymore
Signed-off-by: Stephen Rothwell <sfr at canb.auug.org.au>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit e93dc4891df93d7efa59d861fdcbb529a1819343
Merge: 6e86841d05f371b5b9b86ce76c02aaee83352298 56a6d13dfd49d90d72a1a962246206719dd9d143
Author: David S. Miller <davem at davemloft.net>
Date: Tue Jul 29 21:51:00 2008 -0700
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
commit 3a1a8acf690873f0ee2d8a648c2ec185f4294bd2
Merge: 6e86841d05f371b5b9b86ce76c02aaee83352298 cf0d19fb3032ebf2cf8e5217da00f51dc025aa8e
Author: Benjamin Herrenschmidt <benh at kernel.crashing.org>
Date: Wed Jul 30 14:36:03 2008 +1000
Merge commit 'kumar/kumar-next'
commit cf0d19fb3032ebf2cf8e5217da00f51dc025aa8e
Author: Kim Phillips <kim.phillips at freescale.com>
Date: Tue Jul 29 15:29:24 2008 -0500
powerpc/fsl: proliferate simple-bus compatibility to soc nodes
add simple-bus compatible property to soc nodes for 83xx/85xx platforms
that were missing them. Add same to platform probe code.
This fixes SoC device drivers (such as talitos) to succeed in matching
devices present in the soc node.
also update mpc836x_rdk dts to new SEC bindings (overlooked in commit
3fd4473: powerpc/fsl: update crypto node definition and device tree
instances).
Signed-off-by: Kim Phillips <kim.phillips at freescale.com>
Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
commit 383795c206946777d87ed5f6d61d6659110f9344
Author: Eric Paris <eparis at redhat.com>
Date: Tue Jul 29 17:07:26 2008 -0400
SELinux: /proc/mounts should show what it can
Given a hosed SELinux config in which a system never loads policy or
disables SELinux we currently just return -EINVAL for anyone trying to
read /proc/mounts. This is a configuration problem but we can certainly
be more graceful. This patch just ignores -EINVAL when displaying LSM
options and causes /proc/mounts display everything else it can. If
policy isn't loaded the obviously there are no options, so we aren't
really loosing any information here.
This is safe as the only other return of EINVAL comes from
security_sid_to_context_core() in the case of an invalid sid. Even if a
FS was mounted with a now invalidated context that sid should have been
remapped to unlabeled and so we won't hit the EINVAL and will work like
we should. (yes, I tested to make sure it worked like I thought)
Signed-off-by: Eric Paris <eparis at redhat.com>
Tested-by: Marc Dionne <marc.c.dionne at gmail.com>
Signed-off-by: James Morris <jmorris at namei.org>
commit dc56e634c807c6be69be8af919f20a746197b87d
Author: Breno Leitao <leitao at linux.vnet.ibm.com>
Date: Tue Jul 22 16:27:20 2008 -0300
S2io: fix statistics flush after a MTU change
On s2io driver, when you change the interface MTU, it invokes a card
reset, which flush some statistics. This patch solves this problem, and
also set the net_device->stats as the default statistics structure,
instead of s2io_nic->stats.
To do that, s2io_nic->stats turned into a staging area, where is saved
statistics of the last hardware statistics query. So, the difference
between the current hardware statistics and s2io_nic->stats, is the
value that should be summed up, in order to get the correct statistics
value, even after a reset.
Signed-off-by: Breno Leitao <leitao at linux.vnet.ibm.com>
Signed-off-by: Jay Vosburgh <fubar at us.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik at redhat.com>
commit c7b7b042068cd12b8b155722d24686f70b88ced1
Author: David Brownell <dbrownell at users.sourceforge.net>
Date: Thu Jul 24 17:47:56 2008 -0700
enc28j60: don't specify (wrong) IRQ type
Recent changes to the IRQ framework have made passing the wrong
trigger type to request_irq() become a fatal error. In the case
of the enc28j60 driver, it stopped working in my test harness.
(Specifically: the signal detects "pin change" events, both edges,
not just falling edges. Similarly, other boards might route it
through an inverter. Trigger type are board-specific.)
This fixes that problem by the usual fix of expecting board setup
code to have set up the correct IRQ trigger type. The best known
example of that being x86 setup.
Signed-off-by: David Brownell <dbrownell at users.sourceforge.net>
Signed-off-by: Jeff Garzik <jgarzik at redhat.com>
commit 74dfd9fb0ae390027cb5a908ab065a21158105d5
Author: Stephen Hemminger <shemminger at vyatta.com>
Date: Fri Jul 25 11:46:46 2008 -0700
blackfin_mac: unneeded assignment
skb->dev is set by eth_type_trans already.
Signed-off-by: Stephen Hemminger <shemminger at vyatta.com>
Signed-off-by: Jeff Garzik <jgarzik at redhat.com>
commit 16b237dc44c716dbd9aeee4ab8aa9c33a62d5998
Merge: 8051367586314ab005dacead790a3b2e4e3dcc58 ac0a2d0c8ab18045ab217339a71e76c76e186ede
Author: Jeff Garzik <jeff at garzik.org>
Date: Tue Jul 29 18:23:13 2008 -0400
Merge branch 'for-2.6.27' of git://git.marvell.com/mv643xx_eth into upstream-fixes
commit 9fec6060d9e48ed7db0dac0e16d0f0f0e615b7f6
Merge: fece418418f51e92dd7e67e17c5e3fe5a28d3279 6e86841d05f371b5b9b86ce76c02aaee83352298
Author: Anton Vorontsov <cbouatmailru at gmail.com>
Date: Wed Jul 30 02:05:23 2008 +0400
Merge branch 'master' of /home/cbou/linux-2.6
Conflicts:
drivers/power/Kconfig
drivers/power/Makefile
commit 8051367586314ab005dacead790a3b2e4e3dcc58
Author: Steve Wise <swise at opengridcomputing.com>
Date: Sat Jul 26 15:40:56 2008 -0500
cxgb3: Allow 64KB firmware images.
Starting with FW version 7.0, the driver needs to allow larger images.
Signed-off-by: Steve Wise <swise at opengridcomputing.com>
Signed-off-by: Jeff Garzik <jgarzik at redhat.com>
commit ee02fee8f698aee72f43b3ee5fd818393b110402
Author: Michael Hennerich <michael.hennerich at analog.com>
Date: Sun Jul 27 22:45:05 2008 +0800
Blackfin EMAC Driver: Functional power management support
Reprogram MAC address after resume from Suspend Mem
(Blackfin Hibernate looses all CORE and SYSTEM register content)
Signed-off-by: Michael Hennerich <michael.hennerich at analog.com>
Signed-off-by: Bryan Wu <cooloney at kernel.org>
Signed-off-by: Jeff Garzik <jgarzik at redhat.com>
commit a50c0c05c3bdead1ac405ca8cefd8dc290043933
Author: Bryan Wu <cooloney at kernel.org>
Date: Sun Jul 27 22:45:04 2008 +0800
Blackfin EMAC Driver: enable TXDWA new feature for new silicon (rev > 0.2)
Signed-off-by: Bryan Wu <cooloney at kernel.org>
Signed-off-by: Jeff Garzik <jgarzik at redhat.com>
commit d7b843d393cec677583e1aa971df09b140dcfd5e
Author: Mike Frysinger <vapier.adi at gmail.com>
Date: Sun Jul 27 22:45:03 2008 +0800
Blackfin EMAC Driver: add proper __devinit/__devexit markings
Signed-off-by: Mike Frysinger <vapier.adi at gmail.com>
Signed-off-by: Bryan Wu <cooloney at kernel.org>
Signed-off-by: Jeff Garzik <jgarzik at redhat.com>
commit 22ae03a190011fa2241e68a6c51369d78039348e
Author: Ayaz Abdulla <aabdulla at nvidia.com>
Date: Fri Jul 25 15:31:29 2008 -0400
forcedeth bug fix: realtek phy 8211c errata
This patch adds support for the realtek 8211c phy. The driver must
perform a hardware reset of the phy due to an errata where the phy could
not detect the link.
Signed-off-by: Ayaz Abdulla <aabdulla at nvidia.com>
Signed-off-by: Jeff Garzik <jgarzik at redhat.com>
commit 56a6d13dfd49d90d72a1a962246206719dd9d143
Author: Luis Carlos Cobo <luisca at cozybit.com>
Date: Tue Jul 29 19:59:31 2008 +0200
mac80211: fix mesh beaconing
This patch fixes mesh beaconing, which was broken by "mac80211: revamp
beacon configuration".
Signed-off-by: Luis Carlos Cobo <luisca at cozybit.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 77bbadd5ea893f364a0d1879723037678a03725c
Author: Vegard Nossum <vegard.nossum at gmail.com>
Date: Tue Jul 29 13:31:47 2008 +0200
PS3: gelic: use unsigned long for irqflags
The semantic patch I used was this:
@@
expression lock;
identifier flags;
expression subclass;
@@
- unsigned int flags;
+ unsigned long flags;
...
<+...
(
spin_lock_irqsave(lock, flags)
|
_spin_lock_irqsave(lock)
|
spin_unlock_irqrestore(lock, flags)
|
_spin_unlock_irqrestore(lock, flags)
|
read_lock_irqsave(lock, flags)
|
_read_lock_irqsave(lock)
|
read_unlock_irqrestore(lock, flags)
|
_read_unlock_irqrestore(lock, flags)
|
write_lock_irqsave(lock, flags)
|
_write_lock_irqsave(lock)
|
write_unlock_irqrestore(lock, flags)
|
_write_unlock_irqrestore(lock, flags)
|
spin_lock_irqsave_nested(lock, flags, subclass)
|
_spin_lock_irqsave_nested(lock, subclass)
|
spin_unlock_irqrestore(lock, flags)
|
_spin_unlock_irqrestore(lock, flags)
|
_raw_spin_lock_flags(lock, flags)
|
__raw_spin_lock_flags(lock, flags)
)
...+>
This patch was generated using the Coccinelle framework.
Cc: Masakazu Mokuno <mokuno at sm.sony.co.jp>
Cc: Julia Lawall <julia at diku.dk>
Cc: Alexey Dobriyan <adobriyan at gmail.com>
Signed-off-by: Vegard Nossum <vegard.nossum at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 14db74bcc3f7a779cf395a47e26b06a28207571a
Author: Johannes Berg <johannes at sipsolutions.net>
Date: Tue Jul 29 13:22:52 2008 +0200
mac80211: fix cfg80211 hooks for master interface
The master interface is a virtual interface that is registered
to mac80211, changing that does not seem like a good idea at
the moment. However, since it has no sdata, we cannot accept
any configuration for it. This patch makes the cfg80211 hooks
reject any such attempt.
Signed-off-by: Johannes Berg <johannes at sipsolutions.net>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit bba95fefb8e31f4799652666d05a4a9aad56e492
Author: Johannes Berg <johannes at sipsolutions.net>
Date: Tue Jul 29 13:22:51 2008 +0200
nl80211: fix dump callbacks
Julius Volz pointed out that the dump callbacks in nl80211 were
broken and fixed one of them. This patch fixes the other three
and also addresses the TODOs there.
Signed-off-by: Johannes Berg <johannes at sipsolutions.net>
Cc: Julius Volz <juliusv at google.com>
Cc: Thomas Graf <tgraf at suug.ch>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit d0f09804144fd9471a13cf4d80e66842c7fa114f
Author: Johannes Berg <johannes at sipsolutions.net>
Date: Tue Jul 29 11:32:07 2008 +0200
mac80211: partially fix skb->cb use
This patch fixes mac80211 to not use the skb->cb over the queue step
from virtual interfaces to the master. The patch also, for now,
disables aggregation because that would still require requeuing,
will fix that in a separate patch. There are two other places (software
requeue and powersaving stations) where requeue can happen, but that is
not currently used by any drivers/not possible to use respectively.
Signed-off-by: Johannes Berg <johannes at sipsolutions.net>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 0ccd58fc03f40529f66190b1a41e92a732d2bda8
Author: Larry Finger <Larry.Finger at lwfinger.net>
Date: Mon Jul 28 22:25:08 2008 -0500
rtl8187: Improve wireless statistics for RTL8187B
Wireless statistics produced by the RTL8187B driver are not particularly
informative about the strength of the received signal. From the data sheet
provided by Realtek, I discovered that certain parts of the RX header
should have the information necessary to calculate signal quality and
strength. With testing, it became clear that most of these quantities were
very jittery - only the AGC correlated with the signals expected from nearby
AP's. As a result, the quality and strength are derived from the agc value.
The scaling has been determined so that the numbers are close to those
obtained by b43 under the same conditions. The results are qualitatively
correct.
Statistics derived for the RTL8187 have not been changed.
The RX header variables have been renamed to match the quantites described
in the Realtek data sheet.
Signed-off-by: Larry Finger <Larry.Finger at lwfinger.net>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 1f690d7b549ef9c7424536475501885dd5b54930
Author: Larry Finger <Larry.Finger at lwfinger.net>
Date: Mon Jul 28 22:08:18 2008 -0500
rtl8187: Fix for TX sequence number problem
"mac80211: fix TX sequence numbers" broke rtl8187. This
patch makes the same kind of fix that was done for rt2x00. Note that
this code will have to be reworked for proper sequence numbers on beacons.
In addition, the sequence number has been placed in the hardware state,
not the vif state.
Signed-off-by: Larry Finger <Larry.Finger at lwfinger.net>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 5422399518e8142198df888aab00acdac251f754
Author: Rami Rosen <ramirose at gmail.com>
Date: Thu Jul 24 10:40:37 2008 +0300
mac80211: append CONFIG_ to MAC80211_VERBOSE_PS_DEBUG in net/mac80211/tx.c.
In net/mac80211/tx.c, there are some #ifdef which checks
MAC80211_VERBOSE_PS_DEBUG
(which in fact is never set) instead of
CONFIG_MAC80211_VERBOSE_PS_DEBUG, as should be.
This patch replaces MAC80211_VERBOSE_PS_DEBUG with
CONFIG_MAC80211_VERBOSE_PS_DEBUG in these #ifdef commands in
net/mac80211/tx.c.
Signed-off-by: Rami Rosen <ramirose at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 0b06b2ae0e474fc6378117c832bcd94785a9e975
Author: Harvey Harrison <harvey.harrison at gmail.com>
Date: Wed Jul 23 18:36:38 2008 -0700
mac80211: fix sparse integer as NULL pointer warning
drivers/net/wireless/mac80211_hwsim.c:503:20: warning: Using plain integer as NULL pointer
Signed-off-by: Harvey Harrison <harvey.harrison at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 031211049b71619f7e776521963c082ca453d9fd
Author: Andrew Morton <akpm at linux-foundation.org>
Date: Tue Jul 22 23:50:04 2008 -0700
drivers/net/wireless/iwlwifi/iwl-led.c: printk fix
ia64:
drivers/net/wireless/iwlwifi/iwl-led.c: In function `iwl_get_blink_rate':
drivers/net/wireless/iwlwifi/iwl-led.c:271: warning: long long int format, s64 arg (arg 6)
drivers/net/wireless/iwlwifi/iwl-led.c:271: warning: long long int format, u64 arg (arg 7)
We do not know what type the architecture uses to impement u64 and s64,
hence we must cast the variables for printing.
Cc: Tomas Winkler <tomas.winkler at intel.com>
Cc: John W. Linville <linville at tuxdriver.com>
Cc: Zhu Yi <yi.zhu at intel.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 023a04bebe7030c1e6d5347bd3f27a3e49a1f222
Author: Jeremy Fitzhardinge <jeremy at goop.org>
Date: Mon Jul 14 12:52:08 2008 -0700
mac80211: return correct error return from ieee80211_wep_init
Return the proper error code rather than a hard-coded ENOMEM from
ieee80211_wep_init. Also, print the error code on failure.
Signed-off-by: Jeremy Fitzhardinge <jeremy at goop.org>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 1b0241656b658522a15e7aad570cb8ea6b255a2a
Author: Jiri Slaby <jirislaby at gmail.com>
Date: Mon Jul 14 12:43:23 2008 +0200
mac80211: tx, use dev_kfree_skb_any for beacon_get
Use dev_kfree_skb_any(); instead of dev_kfree_skb();, since
ieee80211_beacon_get function might be called from atomic.
(It's in a fail path.)
Signed-off-by: Jiri Slaby <jirislaby at gmail.com>
Cc: Johannes Berg <johannes at sipsolutions.net>
Cc: Michael Wu <flamingice at sourmilk.net>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 9c0ab712c7e40b61063431cae74a3e763535a4e7
Author: Ivo van Doorn <ivdoorn at gmail.com>
Date: Mon Jul 21 19:06:02 2008 +0200
rt2x00: Clear queue entry flags during initialization
When the queues are being initialized the entry flags fields must be
reset to 0. When this does not happen some entries might still be
marked as "occupied" after an ifdown & ifup cycle which would trigger
errors when the entry is being accessed:
phy0 -> rt2x00queue_write_tx_frame: Error - Arrived at non-free entry in the non-full queue 0.
Please file bug report to http://rt2x00.serialmonkey.com.
This also fixes the mac80211 warning:
------------[ cut here ]------------
WARNING: at net/mac80211/tx.c:1238 ieee80211_master_start_xmit+0x30a/0x350 [mac80211]()
which was triggered by the queue error.
Signed-off-by: Ivo van Doorn <IvDoorn at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 74c0ee9b59bdaa81a666d5d58022f847390e4b0c
Author: Ivo van Doorn <ivdoorn at gmail.com>
Date: Mon Jul 21 11:52:44 2008 +0200
rt2x00: Force full register config after start()
rt2x00 will only perform configuration changes from
mac80211 when the configuration option has changed.
This means it keeps track of the current active configuration
and will check these values when the config() callback function
is used.
However this causes breakage when the interface has been
brought down and up again, since all stored active values
aren't reset while the registers might have.
This is for example the case with rt61pci antenna registers which
will jump to invalid values when the interface has been started.
To make sure a full configuration takes place after the start()
callback function, a new flag is added which will be checked
during config() and skips the "what's changed" phase.
Signed-off-by: Ivo van Doorn <IvDoorn at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 4104863fb4a724723d1d5f3cba9d3c5084087e45
Author: Julia Lawall <julia at diku.dk>
Date: Mon Jul 21 11:29:34 2008 +0200
b43legacy: Release mutex in error handling code
The mutex is released on a successful return, so it would seem that it
should be released on an error return as well.
The semantic patch finds this problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)
// <smpl>
@@
expression l;
@@
mutex_lock(l);
... when != mutex_unlock(l)
when any
when strict
(
if (...) { ... when != mutex_unlock(l)
+ mutex_unlock(l);
return ...;
}
|
mutex_unlock(l);
)
// </smpl>
Signed-off-by: Julia Lawall <julia at diku.dk>
Signed-off-by: Michael Buesch <mb at bu3sch.de>
Cc: stable <stable at kernel.org>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 80c42affad970c8ebc5ebec4681aef8dadf21c32
Author: Julia Lawall <julia at diku.dk>
Date: Mon Jul 21 09:58:11 2008 +0200
drivers/net/wireless/ipw2100.c: Release mutex in error handling code
The mutex is released on a successful return, so it would seem that it
should be released on an error return as well.
The semantic patch finds this problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)
// <smpl>
@@
expression l;
@@
mutex_lock(l);
... when != mutex_unlock(l)
when any
when strict
(
if (...) { ... when != mutex_unlock(l)
+ mutex_unlock(l);
return ...;
}
|
mutex_unlock(l);
)
// </smpl>
Signed-off-by: Julia Lawall <julia at diku.dk>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit e7087a828f8714e464fff18d93618727530dfd89
Author: Ivo van Doorn <ivdoorn at gmail.com>
Date: Sun Jul 20 18:03:58 2008 +0200
rt2x00: Fix memleak when RTS/CTS fails
When sending the RTS/CTS frame fails, we should
free the skb buffer which was created.
Signed-off-by: Ivo van Doorn <IvDoorn at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 5adf6d63c1697ce1835daf2b5393488a71ee0dca
Author: Ivo van Doorn <ivdoorn at gmail.com>
Date: Sun Jul 20 18:03:38 2008 +0200
rt2x00: Fix QOS sequence counting
When IEEE80211_TX_CTL_ASSIGN_SEQ is not set,
the driver should disable hardware sequence counting
to make sure the mac80211 provided counter is used.
This fixes QOS sequence counting, since that is one
of the cases where mac80211 provides a seperate
sequence counter.
By moving the sequence counting code to rt2x00queue
we make sure that _all_ frames get the sequence counter,
including RTS/CTS and Beacon frames.
Signed-off-by: Ivo van Doorn <IvDoorn at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit b93ce437eba7e0232683326f30d9d1167a872fad
Author: Iwo Mergler <iwo at call-direct.com.au>
Date: Sat Jul 19 16:17:40 2008 +0200
rt2x00: Fix the beacon length bug
When setting up a beacon template, the length of the beacon is
calculated with the assumption that the SKB already contains
the Tx descriptor. In the case of beacons it doesn't.
This patch undoes the damage by adding the Tx descriptor length
to the beacon length. This is safe, because the shortest possible
beacon is longer than the Tx header.
Signed-off-by: Iwo Mergler <Iwo at call-direct.com.au>
Signed-off-by: Ivo van Doorn <IvDoorn at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 3e0c1abe748a30bc705a55f71bca8e04a83820f1
Author: Iwo Mergler <iwo at call-direct.com.au>
Date: Sat Jul 19 16:17:16 2008 +0200
rt2x00: Large vendor requests for rt73usb firmware upload and beacons
Switches rt73usb to use large vendor requests for firmware
and beacons. This also fixes the garbled beacon bug.
Signed-off-by: Iwo Mergler <Iwo at call-direct.com.au>
Signed-off-by: Ivo van Doorn <IvDoorn at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit ed0dbeeb92bdb1030bcec67e20b294bd2020cb31
Author: Iwo Mergler <iwo at call-direct.com.au>
Date: Sat Jul 19 16:16:54 2008 +0200
rt2x00: Support for large vendor requests
Adds an extra rt2x00 vendor request function to support register
transfers beyond the CSR_CACHE_SIZE / USB packet size limit. This
is useful for firmware uploads, beacon templates and keys, all
of which are to large to do with a single USB request.
Signed-off-by: Iwo Mergler <Iwo at call-direct.com.au>
Signed-off-by: Ivo van Doorn <IvDoorn at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit f2fdbc4847e0d3991474949f21aa439c361391db
Author: Ivo van Doorn <ivdoorn at gmail.com>
Date: Sat Jul 19 16:16:12 2008 +0200
rt2x00: Fix EIFS timing value
Olivier reported a difference between the EIFS
values used in the legacy driver and the one in
the rt2x00 drivers.
In rt2x00 the value was
( SIFS + (8 * (IEEE80211_HEADER + ACK_SIZE)) )
which comes down to 314us while the legacy driver uses the value 364us
This was caused because EIFS is: SIFS + DIFS + AckTime
This patch will fix this by adding the DIFS by the above value,
and creating a SHORT_EIFS define which uses the SHORT_DIFS.
Reported-by: Olivier Cornu <o.cornu at gmail.com>
Signed-off-by: Ivo van Doorn <IvDoorn at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit ed06387b44f0501f7298b559dc8ddfcd410c8fa0
Author: Ivo van Doorn <ivdoorn at gmail.com>
Date: Sat Jul 19 16:15:42 2008 +0200
rt2x00: Remove duplicate declaration
rt2x00queue_free_skb() was declared twice.
Signed-off-by: Ivo van Doorn <IvDoorn at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 256b152b005e319f985f50f2a910a75ba0def74f
Author: Pavel Roskin <proski at gnu.org>
Date: Fri Jul 18 12:56:59 2008 -0400
ath5k: don't enable MSI, we cannot handle it yet
MSI is a nice thing, but we cannot enable it without changing the
interrupt handler. If we do it, we break MSI capable hardware,
specifically AR5006 chipset.
Signed-off-by: Pavel Roskin <proski at gnu.org>
Acked-by: Nick Kossifidis <mickflemm at gmail.com>
Cc: stable <stable at kernel.org>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit bc05116ab33d30342e2b4b1bcc6d6e1184e9df97
Author: Bob Copeland <me at bobcopeland.com>
Date: Fri Jul 18 11:11:21 2008 -0400
ath5k: fix recursive locking in ath5k_beacon_update
ath5k_beacon_update takes sc->lock upon entry. However, it is only
called from within ath5k_config_interface, which already holds the lock.
Remove the unnecessary locking from ath5k_beacon_update.
Signed-off-by: Bob Copeland <me at bobcopeland.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit cb9289cb798502a5010c8f1d8d003842cd1449a4
Author: Denis V. Lunev <den at openvz.org>
Date: Fri Jul 18 10:56:12 2008 +0400
iwlwifi: small compile warnings without CONFIG_IWLWIFI_DEBUG
CC [M] drivers/net/wireless/iwlwifi/iwl-scan.o
drivers/net/wireless/iwlwifi/iwl-scan.c: In function 'iwl_rx_scan_complete_notif':
drivers/net/wireless/iwlwifi/iwl-scan.c:274: warning: unused variable 'scan_notif'
Signed-off-by: Denis V. Lunev <den at openvz.org>
Acked-by: Tomas Winkler <tomasw at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit c0b6a1c9be3acac0f600072ebc2bc6ad3d8c8f76
Author: Denis V. Lunev <den at openvz.org>
Date: Thu Jul 17 13:19:24 2008 +0400
iwlwifi: compilation error when CONFIG_IWLWIFI_DEBUG is not set
CC [M] drivers/net/wireless/iwlwifi/iwl-rfkill.o
drivers/net/wireless/iwlwifi/iwl-led.c: In function 'iwl_led_brightness_set':
drivers/net/wireless/iwlwifi/iwl-led.c:198: error: 'led_type_str' undeclared (first use in this function)
drivers/net/wireless/iwlwifi/iwl-led.c:198: error: (Each undeclared identifier is reported only once
drivers/net/wireless/iwlwifi/iwl-led.c:198: error: for each function it appears in.)
The problem is that led_type_str is defined under CONFIG_IWLWIFI_DEBUG
while IWL_DEBUG is a static inline function in this case. Replace it
with macro.
Signed-off-by: Denis V. Lunev <den at openvz.org>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit fb904907fb1a02a64af9f2d1fb1ef35d963231f9
Author: Brian Cavagnolo <brian at cozybit.com>
Date: Wed Jul 16 12:15:26 2008 -0700
libertas: check bounds and only use decimal for sysfs persistent features.
Some persistent settings were using hex and others decimal. In some cases,
values were set in hex but reported in decimal. Confusing.
Signed-off-by: Brian Cavagnolo <brian at cozybit.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 699669f331a9e459713e4327a468db8fbb8cd60f
Author: Rami Rosen <ramirose at gmail.com>
Date: Wed Jul 16 16:39:56 2008 +0300
iwl-3945: add #ifdef CONFIG_IWL3945_LEDS to avoid compile warning.
When building the wireless-next-2.6 tree with CONFIG_IWL3945 (for building
iwl-3945 driver) and where CONFIG_IWL3945_LEDS is not set,
we get this warning:
drivers/net/wireless/iwlwifi/iwl-3945.c: In function
'iwl3945_pass_packet_to_mac80211':
drivers/net/wireless/iwlwifi/iwl-3945.c:633: warning: unused variable 'hdr'
This patch adds #ifdef to iwl3945_pass_packet_to_mac80211() to avoid this
warning. (The variable 'hdr' is used only if CONFIG_IWL3945_LEDS is set)
Signed-off-by: Rami Rosen <ramirose at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 435307a365ceedc4f4e1813e405f583f434d98e4
Author: Henrique de Moraes Holschuh <hmh at hmh.eng.br>
Date: Mon Jul 21 21:18:22 2008 -0300
rfkill: yet more minor kernel-doc fixes
For some stupid reason, I sent and old version of the patch minor kernel
doc-fix patch, and it got merged before I noticed the problem. This is an
incremental fix on top.
Signed-off-by: Henrique de Moraes Holschuh <hmh at hmh.eng.br>
Acked-by: Ivo van Doorn <IvDoorn at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 064af1117b4aa64a0e52f6b741df7356ef055142
Author: Henrique de Moraes Holschuh <hmh at hmh.eng.br>
Date: Mon Jul 21 21:18:20 2008 -0300
rfkill: mutex fixes
There are two mutexes in rfkill:
rfkill->mutex, which protects some of the fields of a rfkill struct, and is
also used for callback serialization.
rfkill_mutex, which protects the global state, the list of registered
rfkill structs and rfkill->claim.
Make sure to use the correct mutex, and to not miss locking rfkill->mutex
even when we already took rfkill_mutex.
Signed-off-by: Henrique de Moraes Holschuh <hmh at hmh.eng.br>
Acked-by: Ivo van Doorn <IvDoorn at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit f1b23361a0f15497d4c6795a2935b2e98064ddfb
Author: Henrique de Moraes Holschuh <hmh at hmh.eng.br>
Date: Mon Jul 21 21:18:19 2008 -0300
rfkill: document the rfkill struct locking (v2)
Reorder fields in struct rfkill and add comments to make it clear
which fields are protected by rfkill->mutex.
Signed-off-by: Henrique de Moraes Holschuh <hmh at hmh.eng.br>
Acked-by: Ivo van Doorn <IvDoorn at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 37f55e9d78d1b63047b1b7ae175cdce650547ba8
Author: Henrique de Moraes Holschuh <hmh at hmh.eng.br>
Date: Mon Jul 21 21:18:18 2008 -0300
rfkill: fix led-trigger unregister order in error unwind
rfkill needs to unregister the led trigger AFTER a call to
rfkill_remove_switch(), otherwise it will not update the LED state,
possibly leaving it ON when it should be OFF.
To make led-trigger unregistering safer, guard against unregistering a
trigger twice, and also against issuing trigger events to a led trigger
that was unregistered. This makes the error unwind paths more resilient.
Refer to "rfkill: Register LED triggers before registering switch".
Signed-off-by: Henrique de Moraes Holschuh <hmh at hmh.eng.br>
Acked-by: Ivo van Doorn <IvDoorn at gmail.com>
Cc: Michael Buesch <mb at bu3sch.de>
Cc: Dmitry Baryshkov <dbaryshkov at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 2fd9b2212e25e6411b6f309707f4e2683d164250
Author: Henrique de Moraes Holschuh <hmh at hmh.eng.br>
Date: Mon Jul 21 21:18:17 2008 -0300
rfkill: document rfkill_force_state as required (v2)
While the rfkill class does work with just get_state(), it doesn't work
well on devices that are subject to external events that cause rfkill state
changes.
Document that rfkill_force_state() is required in those cases.
Signed-off-by: Henrique de Moraes Holschuh <hmh at hmh.eng.br>
Acked-by: Ivo van Doorn <IvDoorn at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 734b5aa911dc65f4563048f069dfc631c9aa7de7
Author: Bob Copeland <me at bobcopeland.com>
Date: Tue Jul 15 13:07:16 2008 -0400
ath5k: use positive logic for HP laptop LEDs
Helge Deller reports that HP laptops (NC4010 and NC6000) use active-
high signals to turn on the LEDs. Previous code used active-low for
all devices.
Signed-off-by: Bob Copeland <me at bobcopeland.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 3e4242b99ce46fed82aa7f40ad5a1817a2b3bd45
Author: Jiri Slaby <jirislaby at gmail.com>
Date: Tue Jul 15 17:44:21 2008 +0200
Ath5k: suspend/resume fixes
- free and re-request irq since it might have changed during suspend
- disable and enable msi
- don't set D0 state of the device, it's already done by the PCI layer
- do restore_state before enable_device, it's safer
- check ath5k_init return value
Signed-off-by: Jiri Slaby <jirislaby at gmail.com>
Acked-by: Nick Kossifidis <mickflemm at gmail.com>
Cc: Luis R. Rodriguez <mcgrof at gmail.com>
Cc: Jesse Barnes <jbarnes at virtuousgeek.org>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit e86600c7b4e9b9b22ba51620613d6159bf5cf504
Author: Jiri Slaby <jirislaby at gmail.com>
Date: Tue Jul 15 17:44:43 2008 +0200
Ath5k: fix dma operation
Don't sync
- coherent mapping (descriptors)
- before unmap, it's useless
- (wrongly anyway -- for_cpu) beacon skb, it's just mapped,
so by the device yet
Signed-off-by: Jiri Slaby <jirislaby at gmail.com>
Acked-by: Nick Kossifidis <mickflemm at gmail.com>
Cc: Luis R. Rodriguez <mcgrof at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 274c7c3638cd027b46f76d0caef96c1bad8b6701
Author: Jiri Slaby <jirislaby at gmail.com>
Date: Tue Jul 15 17:44:20 2008 +0200
Ath5k: flush work
Make sure that the irq is not in progress after stop. This means
two things:
- ensure the intr setting register is set by flushing posted values
- call synchronize_irq() after that
Also flush stop tx write, inform callers of the tx stop about still
pending transfers (unsuccessful stop) and finally don't wait another
3ms in ath5k_rx_stop, since ath5k_hw_stop_rx_dma ensures transfer to
be finished.
Make sure all writes will be ordered in respect to locks by mmiowb().
Signed-off-by: Jiri Slaby <jirislaby at gmail.com>
Acked-by: Nick Kossifidis <mickflemm at gmail.com>
Cc: Luis R. Rodriguez <mcgrof at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 10488f8ad62be3b860bad74e60b4fe6ab87aece3
Author: Jiri Slaby <jirislaby at gmail.com>
Date: Tue Jul 15 17:44:19 2008 +0200
Ath5k: kill tasklets on shutdown
Don't forget to kill tasklets on stop to not panic if they
fire after freeing some structures.
Signed-off-by: Jiri Slaby <jirislaby at gmail.com>
Acked-by: Nick Kossifidis <mickflemm at gmail.com>
Cc: Luis R. Rodriguez <mcgrof at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 3a0f2c871849f23c1070965bf94dec3f9c0b479d
Author: Jiri Slaby <jirislaby at gmail.com>
Date: Tue Jul 15 17:44:18 2008 +0200
Ath5k: fix memory corruption
When signal is noisy, hardware can use all RX buffers and since the last
entry in the list is self-linked, it overwrites the entry until we link
new buffers.
Ensure that we don't free this last one until we are 100% sure that it
is not used by the hardware anymore to not cause memory curruption as
can be seen below.
This is done by checking next buffer in the list. Even after that we
know that the hardware refetched the new link and proceeded further
(the next buffer is ready) we can finally free the overwritten buffer.
We discard it since the status in its descriptor is overwritten (OR-ed
by new status) too.
=============================================================================
BUG kmalloc-4096: Poison overwritten
-----------------------------------------------------------------------------
INFO: 0xffff810067419060-0xffff810067419667. First byte 0x8 instead of 0x6b
INFO: Allocated in dev_alloc_skb+0x18/0x30 age=1118 cpu=1 pid=0
INFO: Freed in skb_release_data+0x85/0xd0 age=1105 cpu=1 pid=3718
INFO: Slab 0xffffe200019d0600 objects=7 used=0 fp=0xffff810067419048 flags=0x40000000000020c3
INFO: Object 0xffff810067419048 @offset=4168 fp=0xffff81006741c120
Bytes b4 0xffff810067419038: 4f 0b 02 00 01 00 00 00 5a 5a 5a 5a 5a 5a 5a 5a O.......ZZZZZZZZ
Object 0xffff810067419048: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b kkkkkkkkkkkkkkkk
Object 0xffff810067419058: 6b 6b 6b 6b 6b 6b 6b 6b 08 42 30 00 00 0b 6b 80 kkkkkkkk.B0...k.
Object 0xffff810067419068: f0 5d 00 4f 62 08 a3 64 00 0c 42 16 52 e4 f0 5a 360].Ob.243d..B.R344360Z
Object 0xffff810067419078: 68 81 00 00 7b a5 b4 be 7d 3b 8f 53 cd d5 de 12 h...{245264276};.S315325336.
Object 0xffff810067419088: 96 10 0b 89 48 54 23 41 0f 4e 2d b9 37 c3 cb 29 ....HT#A.N-2717303313)
Object 0xffff810067419098: d1 e0 de 14 8a 57 2a cc 3b 44 0d 78 7a 19 12 15 321340336..W*314;D.xz...
Object 0xffff8100674190a8: a9 ec d4 35 a8 10 ec 8c 40 a7 06 0a 51 a7 48 bb 2513543245250.354. at 247..Q247H273
Object 0xffff8100674190b8: 3e cf a1 c7 38 60 63 3f 51 15 c7 20 eb ba 65 30 >ϡ3078`c?Q.307.353272e0
Redzone 0xffff81006741a048: bb bb bb bb bb bb bb bb 273273273273273273273273
Padding 0xffff81006741a088: 5a 5a 5a 5a 5a 5a 5a 5a ZZZZZZZZ
Pid: 3297, comm: ath5k_pci Not tainted 2.6.26-rc8-mm1_64 #427
Call Trace:
[<ffffffff802a7306>] print_trailer+0xf6/0x150
[<ffffffff802a7485>] check_bytes_and_report+0x125/0x180
[<ffffffff802a75dc>] check_object+0xac/0x260
[<ffffffff802a9308>] __slab_alloc+0x368/0x6d0
[<ffffffff80544f82>] ? wireless_send_event+0x142/0x310
[<ffffffff804b1bd4>] ? __alloc_skb+0x44/0x150
[<ffffffff80544f82>] ? wireless_send_event+0x142/0x310
[<ffffffff802aa853>] __kmalloc_track_caller+0xc3/0xf0
[<ffffffff804b1bfe>] __alloc_skb+0x6e/0x150
[... stack snipped]
FIX kmalloc-4096: Restoring 0xffff810067419060-0xffff810067419667=0x6b
FIX kmalloc-4096: Marking all objects used
Signed-off-by: Jiri Slaby <jirislaby at gmail.com>
Acked-by: Nick Kossifidis <mickflemm at gmail.com>
Cc: Luis R. Rodriguez <mcgrof at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 605a0bd66d9d55e9ba46da1a9e5140c68bdf6d85
Author: Johannes Berg <johannes at sipsolutions.net>
Date: Tue Jul 15 10:10:01 2008 +0200
mac80211: remove IEEE80211_HW_HOST_GEN_BEACON_TEMPLATE flag
I forgot this in the previous patch that made it unused.
Signed-off-by: Johannes Berg <johannes at sipsolutions.net>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
commit 7cb93181629c613ee2b8f4ffe3446f8003074842
Author: Adrian Bunk <bunk at kernel.org>
Date: Wed Jul 30 02:18:26 2008 +0900
mm/hugetlb.c must #include <asm/io.h>
This patch fixes the following build error on sh caused by
commit aa888a74977a8f2120ae9332376e179c39a6b07d
(hugetlb: support larger than MAX_ORDER):
<-- snip -->
...
CC mm/hugetlb.o
/home/bunk/linux/kernel-2.6/git/linux-2.6/mm/hugetlb.c: In function 'alloc_bootmem_huge_page':
/home/bunk/linux/kernel-2.6/git/linux-2.6/mm/hugetlb.c:958: error: implicit declaration of function 'virt_to_phys'
make[2]: *** [mm/hugetlb.o] Error 1
<-- snip -->
Reported-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 193f3c2f1531ec9755a87a33038fba3ee29f6ca5
Author: Paul Mundt <lethal at linux-sh.org>
Date: Wed Jul 30 02:16:12 2008 +0900
video: Fix up hp6xx driver build regressions.
This is some more fallout from the header reorganization, fix up the
paths accordingly.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit cc8dccdc74c06ea91e6979130b742fef44e4b0c4
Author: Paul Mundt <lethal at linux-sh.org>
Date: Wed Jul 30 02:15:20 2008 +0900
sh: defconfig updates.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 9b4d10ff247a440d3d4ec130866f7f5b7d1c7c14
Author: Paul Mundt <lethal at linux-sh.org>
Date: Wed Jul 30 01:01:08 2008 +0900
sh: Kill off stray mach-rsk7203 reference.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit c2697968c012cfdba2d92fa6e27e3e34f918af2f
Author: Paul Mundt <lethal at linux-sh.org>
Date: Wed Jul 30 00:56:39 2008 +0900
serial: sh-sci: Fix up SH7760/SH7780/SH7785 early printk regression.
As noted by Manuel:
Commit c63847a3621d2bac054f5709783860ecabd0ee7e ("sh: Add
SCIF2 support for SH7763.") broke build with CONFIG_EARLY_PRINTK
enabled for me (SH7760):
CC arch/sh/kernel/early_printk.o
/mnt/work/sh7760/kernel/linux-2.6.git/arch/sh/kernel/early_printk.c: In function 'scif_sercon_putc':
/mnt/work/sh7760/kernel/linux-2.6.git/arch/sh/kernel/early_printk.c:84: error: implicit declaration of function 'sci_SCFDR_in'
Move the SH7763 definitions out on their own, so they don't create additional
confusion within the SH7760/SH7780/SH7785 block. Restore the deleted
SCFDR definition for these parts.
Reported-by: Manuel Lauss <mano at roarinelk.homelinux.net>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit c8b5d9dcbc94ae5e7d9ed647246df4454d25332e
Author: Paul Mundt <lethal at linux-sh.org>
Date: Wed Jul 30 00:13:39 2008 +0900
sh: Move out individual boards without mach groups.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit c170f86e31410cc38971c1dedd8b25885e6e43b6
Author: Paul Mundt <lethal at linux-sh.org>
Date: Tue Jul 29 23:12:25 2008 +0900
sh: Make sure AT_SYSINFO_EHDR is exposed to userspace in asm/auxvec.h.
Presently this is protected by a CONFIG_VSYSCALL ifdef so we don't
inadvertently trigger the creation of the gate VMA on CPUs where we don't
enable the vDSO, which is obviously not visible to userspace. Fix this up
by adding in an ifndef __KERNEL__ check at the same time.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 11589418a1c4cf68be9367f802898d35e07809c4
Author: Mark Brown <broonie at opensource.wolfsonmicro.com>
Date: Tue Jul 29 11:42:23 2008 +0100
ALSA: ASoC: Export dapm_reg_event() fully
dapm_reg_event() is used by devices using SND_SOC_DAPM_REG() so needs to
be exported to support building them as modules and prototyped to avoid
sparse warnings and potential build issues.
Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
commit 51f3547d619956e9b428bfff17004d8f4d259a02
Author: Paul Mundt <lethal at linux-sh.org>
Date: Tue Jul 29 22:52:49 2008 +0900
sh: Allow SH-3 and SH-5 to use common headers.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 93dc544cf4892b9188d7d0d4946b0394020b4551
Author: Paul Mundt <lethal at linux-sh.org>
Date: Tue Jul 29 22:46:55 2008 +0900
sh: Provide common CPU headers, prune the SH-2 and SH-2A directories.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 1795cf48b322b4d19230a40dbe7181acedd34a94
Author: Adrian McMenamin <adrian at mcmen.demon.co.uk>
Date: Tue Jul 29 22:10:56 2008 +0900
sh/maple: clean maple bus code
This patch cleans up the handling of the maple bus queue to remove
the risk of races when adding packets. It also removes references to the
redundant connect and disconnect functions.
Signed-off-by: Adrian McMenamin <adrian at mcmen.demon.co.uk>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 0764bff445bb13cd17e41b6ab196ef83c23c6c17
Author: Paul Mundt <lethal at linux-sh.org>
Date: Tue Jul 29 22:10:01 2008 +0900
sh: More header path fixups for mach dir refactoring.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 939a24a6df24649cea9fd0ff54fe71ee0dc1d61e
Author: Paul Mundt <lethal at linux-sh.org>
Date: Tue Jul 29 21:41:37 2008 +0900
sh: Move out the solution engine headers to arch/sh/include/mach-se/
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit e565b518ec3a62aebf54da31c65bb6036bb5a276
Author: Magnus Damm <damm at igel.co.jp>
Date: Tue Jul 29 20:57:38 2008 +0900
sh: I2C fix for AP325RXA and Migo-R
Fix recently introduced I2C build breakage on AP325RXA and Migo-R.
Reported-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit da2014a2b080e7f3024a4eb6917d47069ad9620b
Author: Paul Mundt <lethal at linux-sh.org>
Date: Tue Jul 29 21:01:19 2008 +0900
sh: Shuffle the board directories in to mach groups.
This flattens out the board directories in to individual mach groups,
we will use this for getting rid of unneeded directories, simplifying
the build system, and becoming more coherent with the refactored
arch/sh/include topology.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 71b8064e7df5698520d73b4c1566a3dbc98eb9ef
Author: Paul Mundt <lethal at linux-sh.org>
Date: Tue Jul 29 20:20:36 2008 +0900
sh: dma-sh: Fix up dreamcast dma.h mach path.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit cfb81f361a3e73bb4eb7207a88f720e2f652dd63
Author: Paul Mundt <lethal at linux-sh.org>
Date: Tue Jul 29 20:19:43 2008 +0900
sh: Switch KBUILD_DEFCONFIG to shx3_defconfig.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit f42b7e3dbe1e2c004a47aa89f09137ee5f04499d
Author: Paul Mundt <lethal at linux-sh.org>
Date: Tue Jul 29 20:12:51 2008 +0900
sh: Add ARCH_DEFCONFIG entries for sh and sh64.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 877db3c1af24a65f78ae865b1fb642165e065a8b
Author: Dmitry Baryshkov <dbaryshkov at gmail.com>
Date: Tue Jul 29 11:42:22 2008 +0100
ALSA: ASoC: Update Poodle to current ASoC API
Signed-off-by: Dmitry Baryshkov <dbaryshkov at gmail.com>
Cc: Richard Purdie <rpurdie at rpsys.net>
Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
commit be41e941d5f1a48bde7f44d09d56e8d2605f98e1
Author: Timur Tabi <timur at freescale.com>
Date: Mon Jul 28 17:04:39 2008 -0500
ALSA: asoc: restrict sample rate and size in Freescale MPC8610 sound drivers
The Freescale MPC8610 SSI device has the option of using one clock for both
transmit and receive (synchronous mode), or independent clocks (asynchronous).
The SSI driver, however, programs the SSI into synchronous mode and then
tries to program the clock registers independently. The result is that the wrong
sample size is usually generated during recording.
This patch fixes the discrepancy by restricting the sample rate and sample size
of the playback and capture streams. The SSI driver remembers which stream
is opened first. When a second stream is opened, that stream is constrained
to the same sample rate and size as the first stream.
A future version of this driver will lift the sample size restriction.
Supporting independent sample rates is more difficult, because only certain
codecs provide dual independent clocks.
Signed-off-by: Timur Tabi <timur at freescale.com>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
commit a7b815169aae65072017efb1fba9dcecc82ba7c1
Author: Huang Weiyi <weiyi.huang at gmail.com>
Date: Sat Jul 26 20:43:01 2008 +0800
ALSA: sound/soc/pxa/tosa.c: removed duplicated include
Removed duplicated include <asm/arch/tosa.h> in
sound/soc/pxa/tosa.c.
Signed-off-by: Huang Weiyi <weiyi.huang at gmail.com>
Acked-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
commit 8978b74253280d59e97cf49a3ec2c0cbccd5b801
Author: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
Date: Tue Jul 29 13:38:53 2008 +0900
generic, x86: fix add iommu_num_pages helper function
This IOMMU helper function doesn't work for some architectures:
http://marc.info/?l=linux-kernel&m=121699304403202&w=2
It also breaks POWER and SPARC builds:
http://marc.info/?l=linux-kernel&m=121730388001890&w=2
Currently, only x86 IOMMUs use this so let's move it to x86 for
now.
Reported-by: Stephen Rothwell <sfr at canb.auug.org.au>
Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo at elte.hu>
commit 35780c8ea7ad5c6d5483244d5f5bf37176fda86a
Merge: 6ce37a58e334ef773f88283939afc9f4965c7697 6e86841d05f371b5b9b86ce76c02aaee83352298
Author: Ingo Molnar <mingo at elte.hu>
Date: Tue Jul 29 12:10:50 2008 +0200
Merge commit 'v2.6.27-rc1' into x86/urgent
commit ed8486243379ef3e6c61363df915882945c0eaec
Author: Avi Kivity <avi at qumranet.com>
Date: Tue Jul 29 11:30:57 2008 +0300
KVM: Advertise synchronized mmu support to userspace
Signed-off-by: Avi Kivity <avi at qumranet.com>
commit e930bffe95e1e886a1ede80726ea38df5838d067
Author: Andrea Arcangeli <andrea at qumranet.com>
Date: Fri Jul 25 16:24:52 2008 +0200
KVM: Synchronize guest physical memory map to host virtual memory map
Synchronize changes to host virtual addresses which are part of
a KVM memory slot to the KVM shadow mmu. This allows pte operations
like swapping, page migration, and madvise() to transparently work
with KVM.
Signed-off-by: Andrea Arcangeli <andrea at qumranet.com>
Signed-off-by: Avi Kivity <avi at qumranet.com>
commit 604b38ac0369bd50fcbb33344aa5553c071009f7
Author: Andrea Arcangeli <andrea at qumranet.com>
Date: Fri Jul 25 16:32:03 2008 +0200
KVM: Allow browsing memslots with mmu_lock
This allows reading memslots with only the mmu_lock hold for mmu
notifiers that runs in atomic context and with mmu_lock held.
Signed-off-by: Andrea Arcangeli <andrea at qumranet.com>
Signed-off-by: Avi Kivity <avi at qumranet.com>
commit a1708ce8a362c4999f1201237ae7b77c4d13af82
Author: Andrea Arcangeli <andrea at qumranet.com>
Date: Fri Jul 25 16:26:39 2008 +0200
KVM: Allow reading aliases with mmu_lock
This allows the mmu notifier code to run unalias_gfn with only the
mmu_lock held. Only alias writes need the mmu_lock held. Readers will
either take the slots_lock in read mode or the mmu_lock.
Signed-off-by: Andrea Arcangeli <andrea at qumranet.com>
Signed-off-by: Avi Kivity <avi at qumranet.com>
commit 4864841a34ad77a5054f20d18453ae38a926afd8
Author: Nobuhiro Iwamatsu <iwamatsu.nobuhiro at renesas.com>
Date: Tue Jul 29 14:37:25 2008 +0900
sh: Fix compile error of Solution Engine
When I compiled Solution Engine, this become compile error
because plaform device of sh_eth device becomes enable.
When sh7710/sh7712 which could use sh_eth was chosen,
revised it so that platform device of sh_eth device became enable.
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro at renesas.com>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 6e86841d05f371b5b9b86ce76c02aaee83352298
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Mon Jul 28 19:40:31 2008 -0700
Linux 2.6.27-rc1
commit 7874d35173d549c1a2b2f77c4b1f94379fa65698
Merge: 5dfb66ba8c4a96eb732942c9f78629e4db1a51d4 8c79873da0d2bedf4ad6b868c54e426bb0a2fe38
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Mon Jul 28 18:16:26 2008 -0700
Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus
* git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus:
lguest: turn Waker into a thread, not a process
lguest: Enlarge virtio rings
lguest: Use GSO/IFF_VNET_HDR extensions on tun/tap
lguest: Remove 'network: no dma buffer!' warning
lguest: Adaptive timeout
lguest: Tell Guest net not to notify us on every packet xmit
lguest: net block unneeded receive queue update notifications
lguest: wrap last_avail accesses.
lguest: use cpu capability accessors
lguest: virtio-rng support
lguest: Support assigning a MAC address
lguest: Don't leak /dev/zero fd
lguest: fix verbose printing of device features.
lguest: fix switcher_page leak on unload
lguest: Guest int3 fix
lguest: set max_pfn_mapped, growl loudly at Yinghai Lu
commit 5dfb66ba8c4a96eb732942c9f78629e4db1a51d4
Merge: 1d9b9f6a53d77ed801ba875f937d6dabbfc381ce 424f525a1241351da947fb48a938128ddd774511
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Mon Jul 28 18:15:41 2008 -0700
Merge branch 'for-linus' of git://git.o-hand.com/linux-mfd
* 'for-linus' of git://git.o-hand.com/linux-mfd:
mfd: accept pure device as a parent, not only platform_device
mfd: add platform_data to mfd_cell
mfd: Coding style fixes
mfd: Use to_platform_device instead of container_of
commit 1d9b9f6a53d77ed801ba875f937d6dabbfc381ce
Merge: a3ad7f128c637b7612ebeacb1f85fec933bb1195 12c0b20fa4afb5c8a377d6987fb2dcf353e1dce1
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Mon Jul 28 18:14:24 2008 -0700
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6: (21 commits)
x86/PCI: use dev_printk when possible
PCI: add D3 power state avoidance quirk
PCI: fix bogus "'device' may be used uninitialized" warning in pci_slot
PCI: add an option to allow ASPM enabled forcibly
PCI: disable ASPM on pre-1.1 PCIe devices
PCI: disable ASPM per ACPI FADT setting
PCI MSI: Don't disable MSIs if the mask bit isn't supported
PCI: handle 64-bit resources better on 32-bit machines
PCI: rewrite PCI BAR reading code
PCI: document pci_target_state
PCI hotplug: fix typo in pcie hotplug output
x86 gart: replace to_pages macro with iommu_num_pages
x86, AMD IOMMU: replace to_pages macro with iommu_num_pages
iommu: add iommu_num_pages helper function
dma-coherent: add documentation to new interfaces
Cris: convert to using generic dma-coherent mem allocator
Sh: use generic per-device coherent dma allocator
ARM: support generic per-device coherent dma mem
Generic dma-coherent: fix DMA_MEMORY_EXCLUSIVE
x86: use generic per-device dma coherent allocator
...
commit a3ad7f128c637b7612ebeacb1f85fec933bb1195
Merge: 9b79022ca909b66e2cd0cfd9248f832fc165f77f 00eabe7c4478f38b42d632763c4878ced5a1f25c
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Mon Jul 28 18:13:48 2008 -0700
Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6:
[SCSI] qla2xxx: fix msleep compile error
commit 9b79022ca909b66e2cd0cfd9248f832fc165f77f
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Mon Jul 28 17:54:21 2008 -0700
Fix 'get_user_pages_fast()' with non-page-aligned start address
Alexey Dobriyan reported trouble with LTP with the new fast-gup code,
and Johannes Weiner debugged it to non-page-aligned addresses, where the
new get_user_pages_fast() code would do all the wrong things, including
just traversing past the end of the requested area due to 'addr' never
matching 'end' exactly.
This is not a pretty fix, and we may actually want to move the alignment
into generic code, leaving just the core code per-arch, but Alexey
verified that the vmsplice01 LTP test doesn't crash with this.
Reported-and-tested-by: Alexey Dobriyan <adobriyan at gmail.com>
Debugged-by: Johannes Weiner <hannes at saeurebad.de>
Cc: Nick Piggin <npiggin at suse.de>
Cc: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit e542713529e323ff09d7aeb5806cf29f6f160f53
Author: Dan Williams <dan.j.williams at intel.com>
Date: Mon Jul 28 23:28:06 2008 -0700
md: do not count blocked devices as spares
remove_and_add_spares() assumes that failed devices have been hot-removed
from the array. Removal is skipped in the 'blocked' case so do not count a
device in this state as 'spare'.
Signed-off-by: Dan Williams <dan.j.williams at intel.com>
commit df10cfbc4d7ab93260d997df754219d390d62a9d
Author: Dan Williams <dan.j.williams at intel.com>
Date: Mon Jul 28 23:10:39 2008 -0700
md: do not progress the resync process if the stripe was blocked
handle_stripe will take no action on a stripe when waiting for userspace
to unblock the array, so do not report completed sectors.
Signed-off-by: Dan Williams <dan.j.williams at intel.com>
commit 6de9c6481d47c6da5f8b81f75a5c24c69c366f37
Author: OGAWA Hirofumi <hirofumi at mail.parknet.co.jp>
Date: Tue Jul 29 09:16:33 2008 +0900
sh: Proper __put_user_asm() size mismatch fix.
This fixes up the workaround in 2b4b2bb42137c779ef0084de5df66ff21b4cd86e
and cleans up __put_user_asm() to get the sizing right from the onset.
Signed-off-by: OGAWA Hirofumi <hirofumi at mail.parknet.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit d27e0854d5773fffe1a1d475032b715d124325ae
Author: Paul Mundt <lethal at linux-sh.org>
Date: Tue Jul 29 09:15:01 2008 +0900
sh: Stub in a dummy ENTRY_OFFSET for uImage offset calculation.
If none is defined, provide a sane default, as we do for the other
options.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 8c79873da0d2bedf4ad6b868c54e426bb0a2fe38
Author: Rusty Russell <rusty at rustcorp.com.au>
Date: Tue Jul 29 09:58:38 2008 -0500
lguest: turn Waker into a thread, not a process
lguest uses a Waker process to break it out of the kernel (ie.
actually running the guest) when file descriptor needs attention.
Changing this from a process to a thread somewhat simplifies things:
it can directly access the fd_set of things to watch. More
importantly, it means that the Waker can see Guest memory correctly,
so /dev/vring file descriptors will work as anticipated (the
alternative is to actually mmap MAP_SHARED, but you can't do that with
/dev/zero).
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
commit 0f0c4fab8284f3b886b2e1e0e317e3bb8de176b3
Author: Rusty Russell <rusty at rustcorp.com.au>
Date: Tue Jul 29 09:58:37 2008 -0500
lguest: Enlarge virtio rings
With big packets, 128 entries is a little small.
Guest -> Host 1GB TCP:
Before: 8.43625 seconds xmit 95640 recv 198266 timeout 49771 usec 1252
After: 8.01099 seconds xmit 49200 recv 102263 timeout 26014 usec 2118
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
commit 398f187d74b89d5ab198fcf9b8d86edbefecec4d
Author: Rusty Russell <rusty at rustcorp.com.au>
Date: Tue Jul 29 09:58:37 2008 -0500
lguest: Use GSO/IFF_VNET_HDR extensions on tun/tap
Guest -> Host 1GB TCP:
Before 20.1974 seconds xmit 214510 recv 5 timeout 214491 usec 278
After 8.43625 seconds xmit 95640 recv 198266 timeout 49771 usec 1252
Host -> Guest 1GB TCP:
Before: Seconds 9.98854 xmit 172166 recv 5344 timeout 172157 usec 251
After: Seconds 5.72803 xmit 244322 recv 9919 timeout 244302 usec 156
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
commit 9254926f85466979ef5f0e16386c294bf0973a90
Author: Rusty Russell <rusty at rustcorp.com.au>
Date: Tue Jul 29 09:58:36 2008 -0500
lguest: Remove 'network: no dma buffer!' warning
This warning can happen a lot under load, and it should be warnx not
warn anwyay.
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
commit aa1249840bfc8d62431eed5796bf99887b963ab6
Author: Rusty Russell <rusty at rustcorp.com.au>
Date: Tue Jul 29 09:58:36 2008 -0500
lguest: Adaptive timeout
Since the correct timeout value varies, use a heuristic which adjusts
the timeout depending on how many packets we've seen. This gives
slightly worse results, but doesn't need tweaking when GSO is
introduced.
500 usec 19.1887 xmit 561141 recv 1 timeout 559657
Dynamic (278) 20.1974 xmit 214510 recv 5 timeout 214491 usec 278
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
commit a161883a29bf6100efe7b5346bec274e5023c29c
Author: Rusty Russell <rusty at rustcorp.com.au>
Date: Tue Jul 29 09:58:35 2008 -0500
lguest: Tell Guest net not to notify us on every packet xmit
virtio_ring has the ability to suppress notifications. This prevents
a guest exit for every packet, but we need to set a timer on packet
receipt to re-check if there were any remaining packets.
Here are the times for 1G TCP Guest->Host with different timeout
settings (it matters because the TCP window doesn't grow big enough to
fill the entire buffer):
Timeout value Seconds Xmit/Recv/Timeout
None (before) 25.3784 xmit 7750233 recv 1
2500 usec 62.5119 xmit 207020 recv 2 timeout 207020
1000 usec 34.5379 xmit 207003 recv 2 timeout 207003
750 usec 29.2305 xmit 207002 recv 1 timeout 207002
500 usec 19.1887 xmit 561141 recv 1 timeout 559657
250 usec 20.0465 xmit 214128 recv 2 timeout 214110
100 usec 19.2583 xmit 561621 recv 1 timeout 560153
(Note that these values are sensitive to the GSO patches which come
later, and probably other traffic-related variables, so take with a
large grain of salt).
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
commit 5dae785a82c1a8c05b5b4f9709bd9ce658dcf1b6
Author: Rusty Russell <rusty at rustcorp.com.au>
Date: Tue Jul 29 09:58:35 2008 -0500
lguest: net block unneeded receive queue update notifications
Number of exits transmitting 10GB Guest->Host before:
network xmit 7858610 recv 118136
After:
network xmit 7750233 recv 1
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
commit b5111790fa6695b1502d4f5d389f6b22b9de10c3
Author: Rusty Russell <rusty at rustcorp.com.au>
Date: Tue Jul 29 09:58:34 2008 -0500
lguest: wrap last_avail accesses.
To simplify the transition to when we publish indices in the ring
(and make shuffling my patch queue easier), wrap them in a lg_last_avail()
macro.
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
commit cf485e566bc4a8098680162e1cc2ac1dfbef8a3c
Author: Andrew Morton <akpm at linux-foundation.org>
Date: Mon Jun 9 16:22:48 2008 -0700
lguest: use cpu capability accessors
To support my little make-x86-bitops-use-proper-typechecking projectlet.
Cc: Thomas Gleixner <tglx at linutronix.de>
Cc: Andrea Arcangeli <andrea at qumranet.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Acked-by: Ingo Molnar <mingo at elte.hu>
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
commit 28fd6d7f953711fbf67496701be05513052d967d
Author: Rusty Russell <rusty at rustcorp.com.au>
Date: Tue Jul 29 09:58:33 2008 -0500
lguest: virtio-rng support
This is a simple patch to add support for the virtio "hardware random
generator" to lguest. It gets about 1.2 MB/sec reading from /dev/hwrng
in the guest.
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
commit dec6a2be085f046d42eb0bdce95ecb73de526429
Author: Mark McLoughlin <markmc at redhat.com>
Date: Tue Jul 29 09:58:33 2008 -0500
lguest: Support assigning a MAC address
If you've got a nice DHCP configuration which maps MAC
addresses to specific IP addresses, then you're going to
want to start your guest with one of those MAC addresses.
Also, in Fedora, we have persistent network interface naming
based on the MAC address, so with randomly assigned
addresses you're soon going to hit eth13. Who knows what
will happen then!
Allow assigning a MAC address to the network interface with
e.g.
--tunnet=bridge:eth0:00:FF:95:6B:DA:3D
or:
--tunnet=192.168.121.1:00:FF:95:6B:DA:3D
which is pretty unintelligable, but ...
(includes Rusty's minor rework)
Signed-off-by: Mark McLoughlin <markmc at redhat.com>
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
commit 34bdaab44dd5dac861b0d23bc29b147b569e5783
Author: Mark McLoughlin <markmc at redhat.com>
Date: Fri Jun 13 14:04:58 2008 +0100
lguest: Don't leak /dev/zero fd
Signed-off-by: Mark McLoughlin <markmc at redhat.com>
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
commit 32c68e5c569fdf016b494ce2fc8eecf59b6881bd
Author: Rusty Russell <rusty at rustcorp.com.au>
Date: Tue Jul 29 09:58:32 2008 -0500
lguest: fix verbose printing of device features.
%02x is more appropriate for bytes than %08x.
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
commit 0a707210aa1b8ac40fe781b2a9d0b203b6ebb921
Author: Johannes Weiner <hannes at saeurebad.de>
Date: Tue Jul 8 10:29:42 2008 +0200
lguest: fix switcher_page leak on unload
map_switcher allocates the array, unmap_switcher has to free it
accordingly.
Signed-off-by: Johannes Weiner <hannes at saeurebad.de>
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
commit 0c12091d82e48dc423fb1f51eb0062c557a084af
Author: Rusty Russell <rusty at rustcorp.com.au>
Date: Tue Jul 29 09:58:31 2008 -0500
lguest: Guest int3 fix
Ron Minnich noticed that guest userspace gets a GPF when it tries to int3:
we need to copy the privilege level from the guest-supplied IDT to the real
IDT. int3 is the only common case where guest userspace expects to invoke
an interrupt, so that's the symptom of failing to do this.
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
commit 5d006d8d09e82f086ca0baf79a2907f2c1e25af7
Author: Rusty Russell <rusty at rustcorp.com.au>
Date: Tue Jul 29 09:58:29 2008 -0500
lguest: set max_pfn_mapped, growl loudly at Yinghai Lu
6af61a7614a306fe882a0c2b4ddc63b65aa66efc 'x86: clean up max_pfn_mapped
usage - 32-bit' makes the following comment:
XEN PV and lguest may need to assign max_pfn_mapped too.
But no CC. Yinghai, wasting fellow developers' time is a VERY bad
habit. If you do it again, I will hunt you down and try to extract
the three hours of my life I just lost :)
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
Cc: Yinghai Lu <yhlu.kernel at gmail.com>
commit 424f525a1241351da947fb48a938128ddd774511
Author: Dmitry Baryshkov <dbaryshkov at gmail.com>
Date: Tue Jul 29 01:30:26 2008 +0200
mfd: accept pure device as a parent, not only platform_device
Signed-off-by: Dmitry Baryshkov <dbaryshkov at gmail.com>
Signed-off-by: Samuel Ortiz <sameo at openedhand.com>
commit 34ee55014283a60efa3534c06e010579ffdd3756
Author: Andrew Morton <akpm at linux-foundation.org>
Date: Mon Jul 28 15:46:40 2008 -0700
include/asm-generic/pgtable-nopmd.h: macros are noxious, reason #435
arch/x86/mm/pgtable.c: In function 'pgd_mop_up_pmds':
arch/x86/mm/pgtable.c:194: warning: unused variable 'pmd'
Cc: Ingo Molnar <mingo at elte.hu>
Cc: Thomas Gleixner <tglx at linutronix.de>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit c27ef92d8e0c29a9e8b8ee1b04f3d2cace482d92
Author: Manuel Lauss <mano at roarinelk.homelinux.net>
Date: Mon Jul 28 15:46:39 2008 -0700
sh7760fb: write colormap value to hardware
The computed color value is never actually written to hardware
colormap register.
Signed-off-by: Manuel Lauss <mano at roarinelk.homelinux.net>
Cc: Nobuhiro Iwamatsu <iwamatsu.nobuhiro at renesas.com>
Cc: Munakata Hisao <munakata.hisao at renesas.com>
Cc: Paul Mundt <lethal at linux-sh.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 7fcba054373d5dfc43d26e243a5c9b92069972ee
Author: Eric Sandeen <sandeen at redhat.com>
Date: Mon Jul 28 15:46:39 2008 -0700
eCryptfs: use page_alloc not kmalloc to get a page of memory
With SLUB debugging turned on in 2.6.26, I was getting memory corruption
when testing eCryptfs. The root cause turned out to be that eCryptfs was
doing kmalloc(PAGE_CACHE_SIZE); virt_to_page() and treating that as a nice
page-aligned chunk of memory. But at least with SLUB debugging on, this
is not always true, and the page we get from virt_to_page does not
necessarily match the PAGE_CACHE_SIZE worth of memory we got from kmalloc.
My simple testcase was 2 loops doing "rm -f fileX; cp /tmp/fileX ." for 2
different multi-megabyte files. With this change I no longer see the
corruption.
Signed-off-by: Eric Sandeen <sandeen at redhat.com>
Acked-by: Michael Halcrow <mhalcrow at us.ibm.com>
Acked-by: Rik van Riel <riel at redhat.com>
Cc: <stable at kernel.org> [2.6.25.x, 2.6.26.x]
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 25947d5ac56004378d8c2d31ebf22600d5bc0c02
Author: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Date: Mon Jul 28 15:46:38 2008 -0700
gpio: fix build on CONFIG_GPIO_SYSFS=n
If CONFIG_GENERIC_GPIO=y && CONFIG_GPIO_SYSFS=n, gpio_export() in
asm-generic/gpio.h refers -ENOSYS and causes build error.
Signed-off-by: Atsushi Nemoto <anemo at mba.ocn.ne.jp>
Acked-by: David Brownell <dbrownell at users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit e3b6e806cf7e45ac5e6ac0625cebafa4de3394aa
Author: Yoichi Yuasa <yoichi_yuasa at tripeaks.co.jp>
Date: Mon Jul 28 15:46:37 2008 -0700
bio-integrity: remove EXPORT_SYMBOL for bio_integrity_init_slab()
I got section mismatch message about bio_integrity_init_slab().
WARNING: fs/built-in.o(__ksymtab+0xb60): Section mismatch in reference from the variable __ksymtab_bio_integrity_init_slab to the function .init.text:bio_integrity_init_slab()
The symbol bio_integrity_init_slab is exported and annotated __init Fix
this by removing the __init annotation of bio_integrity_init_slab or drop
the export.
It only call from init_bio(). The EXPORT_SYMBOL() can be removed.
Signed-off-by: Yoichi Yuasa <yoichi_yuasa at tripeaks.co.jp>
Cc: "Martin K. Petersen" <martin.petersen at oracle.com>
Cc: Jens Axboe <jens.axboe at oracle.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 8ab22b9abb5c55413802e4adc9aa6223324547c3
Author: Hisashi Hifumi <hifumi.hisashi at oss.ntt.co.jp>
Date: Mon Jul 28 15:46:36 2008 -0700
vfs: pagecache usage optimization for pagesize!=blocksize
When we read some part of a file through pagecache, if there is a
pagecache of corresponding index but this page is not uptodate, read IO
is issued and this page will be uptodate.
I think this is good for pagesize == blocksize environment but there is
room for improvement on pagesize != blocksize environment. Because in
this case a page can have multiple buffers and even if a page is not
uptodate, some buffers can be uptodate.
So I suggest that when all buffers which correspond to a part of a file
that we want to read are uptodate, use this pagecache and copy data from
this pagecache to user buffer even if a page is not uptodate. This can
reduce read IO and improve system throughput.
I wrote a benchmark program and got result number with this program.
This benchmark do:
1: mount and open a test file.
2: create a 512MB file.
3: close a file and umount.
4: mount and again open a test file.
5: pwrite randomly 300000 times on a test file. offset is aligned
by IO size(1024bytes).
6: measure time of preading randomly 100000 times on a test file.
The result was:
2.6.26
330 sec
2.6.26-patched
226 sec
Arch:i386
Filesystem:ext3
Blocksize:1024 bytes
Memory: 1GB
On ext3/4, a file is written through buffer/block. So random read/write
mixed workloads or random read after random write workloads are optimized
with this patch under pagesize != blocksize environment. This test result
showed this.
The benchmark program is as follows:
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <time.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mount.h>
#define LEN 1024
#define LOOP 1024*512 /* 512MB */
main(void)
{
unsigned long i, offset, filesize;
int fd;
char buf[LEN];
time_t t1, t2;
if (mount("/dev/sda1", "/root/test1/", "ext3", 0, 0) < 0) {
perror("cannot mount\n");
exit(1);
}
memset(buf, 0, LEN);
fd = open("/root/test1/testfile", O_CREAT|O_RDWR|O_TRUNC);
if (fd < 0) {
perror("cannot open file\n");
exit(1);
}
for (i = 0; i < LOOP; i++)
write(fd, buf, LEN);
close(fd);
if (umount("/root/test1/") < 0) {
perror("cannot umount\n");
exit(1);
}
if (mount("/dev/sda1", "/root/test1/", "ext3", 0, 0) < 0) {
perror("cannot mount\n");
exit(1);
}
fd = open("/root/test1/testfile", O_RDWR);
if (fd < 0) {
perror("cannot open file\n");
exit(1);
}
filesize = LEN * LOOP;
for (i = 0; i < 300000; i++){
offset = (random() % filesize) & (~(LEN - 1));
pwrite(fd, buf, LEN, offset);
}
printf("start test\n");
time(&t1);
for (i = 0; i < 100000; i++){
offset = (random() % filesize) & (~(LEN - 1));
pread(fd, buf, LEN, offset);
}
time(&t2);
printf("%ld sec\n", t2-t1);
close(fd);
if (umount("/root/test1/") < 0) {
perror("cannot umount\n");
exit(1);
}
}
Signed-off-by: Hisashi Hifumi <hifumi.hisashi at oss.ntt.co.jp>
Cc: Nick Piggin <nickpiggin at yahoo.com.au>
Cc: Christoph Hellwig <hch at infradead.org>
Cc: Jan Kara <jack at ucw.cz>
Cc: <linux-ext4 at vger.kernel.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit d84a52f62f6a396ed77aa0052da74ca9e760b28a
Author: Simon Horman <horms at verge.net.au>
Date: Mon Jul 28 15:46:34 2008 -0700
kdump: update kdump documentation as kexec-tools-resting has been renamed kexec-tools
Signed-off-by: Simon Horman <horms at verge.net.au>
Acked-by: Vivek Goyal <vgoyal at redhat.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit cb1d0a7a5d2e537f2f6ada22883abee1762e94b2
Author: Ben Dooks <ben-linux at fluff.org>
Date: Mon Jul 28 15:46:33 2008 -0700
spi_s3c24xx: really assign busnum
The original "Pass the bus number we expect the S3C24XX SPI driver to
attach to via the platform data." [1] patch was mis-sent, and missed two
important parts of the diff, which was to actually set the bus_num field
and add the relevant field to the platform data.
The previous commit 50f426b55d919dd017af35bb6a08753d1f262920 promised to
add a bus_num field, but failed to include the two hunks that added this
field to include/asm-arm/arch-s3c2410/spi.h and then pass it to the spi
core when creating the new master field in drivers/spi/spi_s3c24xx.c.
[1] git commit 50f426b55d919dd017af35bb6a08753d1f262920
Signed-off-by: Ben Dooks <ben-linux at fluff.org>
Signed-off-by: David Brownell <dbrownell at users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 9a7867e1b34c3575e7e76a05c0c54c6edbdae2a4
Author: Luotao Fu <l.fu at pengutronix.de>
Date: Mon Jul 28 15:46:32 2008 -0700
mpc52xx_psc_spi: fix block transfer
The block transfer routine in the mpc52xx psc spi driver misinterpret
the datasheet. According to the processor datasheet the chipselect is
held as long as the EOF is not written.
Theoretically blocks of any sizes can be transferred in this way. The
old routine however writes an EOF after every word, which has the size
of size_of_word. This makes the transfer slow.
Also fixed some duplicate code.
Signed-off-by: Luotao Fu <l.fu at pengutronix.de>
Signed-off-by: David Brownell <dbrownell at users.sourceforge.net>
Cc: <stable at kernel.org> [2.6.25.x, 2.6.26.x]
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 78a34ae29bf1c9df62a5bd0f0798b6c62a54d520
Author: Adrian Bunk <bunk at kernel.org>
Date: Mon Jul 28 15:46:30 2008 -0700
mm/hugetlb.c must #include <asm/io.h>
This patch fixes the following build error on sh caused by commit
aa888a74977a8f2120ae9332376e179c39a6b07d ("hugetlb: support larger than
MAX_ORDER"):
mm/hugetlb.c: In function 'alloc_bootmem_huge_page':
mm/hugetlb.c:958: error: implicit declaration of function 'virt_to_phys'
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Cc: Hirokazu Takata <takata at linux-m32r.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit cddb8a5c14aa89810b40495d94d3d2a0faee6619
Author: Andrea Arcangeli <andrea at qumranet.com>
Date: Mon Jul 28 15:46:29 2008 -0700
mmu-notifiers: core
With KVM/GFP/XPMEM there isn't just the primary CPU MMU pointing to pages.
There are secondary MMUs (with secondary sptes and secondary tlbs) too.
sptes in the kvm case are shadow pagetables, but when I say spte in
mmu-notifier context, I mean "secondary pte". In GRU case there's no
actual secondary pte and there's only a secondary tlb because the GRU
secondary MMU has no knowledge about sptes and every secondary tlb miss
event in the MMU always generates a page fault that has to be resolved by
the CPU (this is not the case of KVM where the a secondary tlb miss will
walk sptes in hardware and it will refill the secondary tlb transparently
to software if the corresponding spte is present). The same way
zap_page_range has to invalidate the pte before freeing the page, the spte
(and secondary tlb) must also be invalidated before any page is freed and
reused.
Currently we take a page_count pin on every page mapped by sptes, but that
means the pages can't be swapped whenever they're mapped by any spte
because they're part of the guest working set. Furthermore a spte unmap
event can immediately lead to a page to be freed when the pin is released
(so requiring the same complex and relatively slow tlb_gather smp safe
logic we have in zap_page_range and that can be avoided completely if the
spte unmap event doesn't require an unpin of the page previously mapped in
the secondary MMU).
The mmu notifiers allow kvm/GRU/XPMEM to attach to the tsk->mm and know
when the VM is swapping or freeing or doing anything on the primary MMU so
that the secondary MMU code can drop sptes before the pages are freed,
avoiding all page pinning and allowing 100% reliable swapping of guest
physical address space. Furthermore it avoids the code that teardown the
mappings of the secondary MMU, to implement a logic like tlb_gather in
zap_page_range that would require many IPI to flush other cpu tlbs, for
each fixed number of spte unmapped.
To make an example: if what happens on the primary MMU is a protection
downgrade (from writeable to wrprotect) the secondary MMU mappings will be
invalidated, and the next secondary-mmu-page-fault will call
get_user_pages and trigger a do_wp_page through get_user_pages if it
called get_user_pages with write=1, and it'll re-establishing an updated
spte or secondary-tlb-mapping on the copied page. Or it will setup a
readonly spte or readonly tlb mapping if it's a guest-read, if it calls
get_user_pages with write=0. This is just an example.
This allows to map any page pointed by any pte (and in turn visible in the
primary CPU MMU), into a secondary MMU (be it a pure tlb like GRU, or an
full MMU with both sptes and secondary-tlb like the shadow-pagetable layer
with kvm), or a remote DMA in software like XPMEM (hence needing of
schedule in XPMEM code to send the invalidate to the remote node, while no
need to schedule in kvm/gru as it's an immediate event like invalidating
primary-mmu pte).
At least for KVM without this patch it's impossible to swap guests
reliably. And having this feature and removing the page pin allows
several other optimizations that simplify life considerably.
Dependencies:
1) mm_take_all_locks() to register the mmu notifier when the whole VM
isn't doing anything with "mm". This allows mmu notifier users to keep
track if the VM is in the middle of the invalidate_range_begin/end
critical section with an atomic counter incraese in range_begin and
decreased in range_end. No secondary MMU page fault is allowed to map
any spte or secondary tlb reference, while the VM is in the middle of
range_begin/end as any page returned by get_user_pages in that critical
section could later immediately be freed without any further
->invalidate_page notification (invalidate_range_begin/end works on
ranges and ->invalidate_page isn't called immediately before freeing
the page). To stop all page freeing and pagetable overwrites the
mmap_sem must be taken in write mode and all other anon_vma/i_mmap
locks must be taken too.
2) It'd be a waste to add branches in the VM if nobody could possibly
run KVM/GRU/XPMEM on the kernel, so mmu notifiers will only enabled if
CONFIG_KVM=m/y. In the current kernel kvm won't yet take advantage of
mmu notifiers, but this already allows to compile a KVM external module
against a kernel with mmu notifiers enabled and from the next pull from
kvm.git we'll start using them. And GRU/XPMEM will also be able to
continue the development by enabling KVM=m in their config, until they
submit all GRU/XPMEM GPLv2 code to the mainline kernel. Then they can
also enable MMU_NOTIFIERS in the same way KVM does it (even if KVM=n).
This guarantees nobody selects MMU_NOTIFIER=y if KVM and GRU and XPMEM
are all =n.
The mmu_notifier_register call can fail because mm_take_all_locks may be
interrupted by a signal and return -EINTR. Because mmu_notifier_reigster
is used when a driver startup, a failure can be gracefully handled. Here
an example of the change applied to kvm to register the mmu notifiers.
Usually when a driver startups other allocations are required anyway and
-ENOMEM failure paths exists already.
struct kvm *kvm_arch_create_vm(void)
{
struct kvm *kvm = kzalloc(sizeof(struct kvm), GFP_KERNEL);
+ int err;
if (!kvm)
return ERR_PTR(-ENOMEM);
INIT_LIST_HEAD(&kvm->arch.active_mmu_pages);
+ kvm->arch.mmu_notifier.ops = &kvm_mmu_notifier_ops;
+ err = mmu_notifier_register(&kvm->arch.mmu_notifier, current->mm);
+ if (err) {
+ kfree(kvm);
+ return ERR_PTR(err);
+ }
+
return kvm;
}
mmu_notifier_unregister returns void and it's reliable.
The patch also adds a few needed but missing includes that would prevent
kernel to compile after these changes on non-x86 archs (x86 didn't need
them by luck).
[akpm at linux-foundation.org: coding-style fixes]
[akpm at linux-foundation.org: fix mm/filemap_xip.c build]
[akpm at linux-foundation.org: fix mm/mmu_notifier.c build]
Signed-off-by: Andrea Arcangeli <andrea at qumranet.com>
Signed-off-by: Nick Piggin <npiggin at suse.de>
Signed-off-by: Christoph Lameter <cl at linux-foundation.org>
Cc: Jack Steiner <steiner at sgi.com>
Cc: Robin Holt <holt at sgi.com>
Cc: Nick Piggin <npiggin at suse.de>
Cc: Peter Zijlstra <a.p.zijlstra at chello.nl>
Cc: Kanoj Sarcar <kanojsarcar at yahoo.com>
Cc: Roland Dreier <rdreier at cisco.com>
Cc: Steve Wise <swise at opengridcomputing.com>
Cc: Avi Kivity <avi at qumranet.com>
Cc: Hugh Dickins <hugh at veritas.com>
Cc: Rusty Russell <rusty at rustcorp.com.au>
Cc: Anthony Liguori <aliguori at us.ibm.com>
Cc: Chris Wright <chrisw at redhat.com>
Cc: Marcelo Tosatti <marcelo at kvack.org>
Cc: Eric Dumazet <dada1 at cosmosbay.com>
Cc: "Paul E. McKenney" <paulmck at us.ibm.com>
Cc: Izik Eidus <izike at qumranet.com>
Cc: Anthony Liguori <aliguori at us.ibm.com>
Cc: Rik van Riel <riel at redhat.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 7906d00cd1f687268f0a3599442d113767795ae6
Author: Andrea Arcangeli <andrea at qumranet.com>
Date: Mon Jul 28 15:46:26 2008 -0700
mmu-notifiers: add mm_take_all_locks() operation
mm_take_all_locks holds off reclaim from an entire mm_struct. This allows
mmu notifiers to register into the mm at any time with the guarantee that
no mmu operation is in progress on the mm.
This operation locks against the VM for all pte/vma/mm related operations
that could ever happen on a certain mm. This includes vmtruncate,
try_to_unmap, and all page faults.
The caller must take the mmap_sem in write mode before calling
mm_take_all_locks(). The caller isn't allowed to release the mmap_sem
until mm_drop_all_locks() returns.
mmap_sem in write mode is required in order to block all operations that
could modify pagetables and free pages without need of altering the vma
layout (for example populate_range() with nonlinear vmas). It's also
needed in write mode to avoid new anon_vmas to be associated with existing
vmas.
A single task can't take more than one mm_take_all_locks() in a row or it
would deadlock.
mm_take_all_locks() and mm_drop_all_locks are expensive operations that
may have to take thousand of locks.
mm_take_all_locks() can fail if it's interrupted by signals.
When mmu_notifier_register returns, we must be sure that the driver is
notified if some task is in the middle of a vmtruncate for the 'mm' where
the mmu notifier was registered (mmu_notifier_invalidate_range_start/end
is run around the vmtruncation but mmu_notifier_register can run after
mmu_notifier_invalidate_range_start and before
mmu_notifier_invalidate_range_end). Same problem for rmap paths. And
we've to remove page pinning to avoid replicating the tlb_gather logic
inside KVM (and GRU doesn't work well with page pinning regardless of
needing tlb_gather), so without mm_take_all_locks when vmtruncate frees
the page, kvm would have no way to notice that it mapped into sptes a page
that is going into the freelist without a chance of any further
mmu_notifier notification.
[akpm at linux-foundation.org: coding-style fixes]
Signed-off-by: Andrea Arcangeli <andrea at qumranet.com>
Acked-by: Linus Torvalds <torvalds at linux-foundation.org>
Cc: Christoph Lameter <cl at linux-foundation.org>
Cc: Jack Steiner <steiner at sgi.com>
Cc: Robin Holt <holt at sgi.com>
Cc: Nick Piggin <npiggin at suse.de>
Cc: Peter Zijlstra <a.p.zijlstra at chello.nl>
Cc: Kanoj Sarcar <kanojsarcar at yahoo.com>
Cc: Roland Dreier <rdreier at cisco.com>
Cc: Steve Wise <swise at opengridcomputing.com>
Cc: Avi Kivity <avi at qumranet.com>
Cc: Hugh Dickins <hugh at veritas.com>
Cc: Rusty Russell <rusty at rustcorp.com.au>
Cc: Anthony Liguori <aliguori at us.ibm.com>
Cc: Chris Wright <chrisw at redhat.com>
Cc: Marcelo Tosatti <marcelo at kvack.org>
Cc: Eric Dumazet <dada1 at cosmosbay.com>
Cc: "Paul E. McKenney" <paulmck at us.ibm.com>
Cc: Izik Eidus <izike at qumranet.com>
Cc: Anthony Liguori <aliguori at us.ibm.com>
Cc: Rik van Riel <riel at redhat.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 6beeac76f5f96590fb751af5e138fbc3f62e8460
Author: Andrea Arcangeli <andrea at qumranet.com>
Date: Mon Jul 28 15:46:22 2008 -0700
mmu-notifiers: add list_del_init_rcu()
Introduce list_del_init_rcu() and document it.
Signed-off-by: Andrea Arcangeli <andrea at qumranet.com>
Acked-by: Linus Torvalds <torvalds at linux-foundation.org>
Cc: "Paul E. McKenney" <paulmck at us.ibm.com>
Cc: Ingo Molnar <mingo at elte.hu>
Cc: Christoph Lameter <cl at linux-foundation.org>
Cc: Jack Steiner <steiner at sgi.com>
Cc: Robin Holt <holt at sgi.com>
Cc: Nick Piggin <npiggin at suse.de>
Cc: Peter Zijlstra <a.p.zijlstra at chello.nl>
Cc: Kanoj Sarcar <kanojsarcar at yahoo.com>
Cc: Roland Dreier <rdreier at cisco.com>
Cc: Steve Wise <swise at opengridcomputing.com>
Cc: Avi Kivity <avi at qumranet.com>
Cc: Hugh Dickins <hugh at veritas.com>
Cc: Rusty Russell <rusty at rustcorp.com.au>
Cc: Anthony Liguori <aliguori at us.ibm.com>
Cc: Chris Wright <chrisw at redhat.com>
Cc: Marcelo Tosatti <marcelo at kvack.org>
Cc: Eric Dumazet <dada1 at cosmosbay.com>
Cc: "Paul E. McKenney" <paulmck at us.ibm.com>
Cc: Izik Eidus <izike at qumranet.com>
Cc: Anthony Liguori <aliguori at us.ibm.com>
Cc: Rik van Riel <riel at redhat.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 93686ae8357c1b1e37e8dfc96547f807e7a93b4b
Author: David Brownell <dbrownell at users.sourceforge.net>
Date: Mon Jul 28 15:46:22 2008 -0700
arm: fix HAVE_CLK merge goof
This fixes a merge goof whereby ARCH_EP93XX got the "select HAVE_CLK" line
which belongs instead with ARCH_AT91.
Signed-off-by: David Brownell <dbrownell at users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 4d9c377c81d37740b25cacf025f95c084eafabbb
Author: Alexey Dobriyan <adobriyan at gmail.com>
Date: Mon Jul 28 15:46:21 2008 -0700
__ratelimit() cpu flags can't be static
Signed-off-by: Alexey Dobriyan <adobriyan at gmail.com>
Cc: Dave Young <hidave.darkstar at gmail.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 14fcc23fdc78e9d32372553ccf21758a9bd56fa1
Author: Hugh Dickins <hugh at veritas.com>
Date: Mon Jul 28 15:46:19 2008 -0700
tmpfs: fix kernel BUG in shmem_delete_inode
SuSE's insserve initscript ordering program hits kernel BUG at mm/shmem.c:814
on 2.6.26. It's using posix_fadvise on directories, and the shmem_readpage
method added in 2.6.23 is letting POSIX_FADV_WILLNEED allocate useless pages
to a tmpfs directory, incrementing i_blocks count but never decrementing it.
Fix this by assigning shmem_aops (pointing to readpage and writepage and
set_page_dirty) only when it's needed, on a regular file or a long symlink.
Many thanks to Kel for outstanding bugreport and steps to reproduce it.
Reported-by: Kel Modderman <kel at otaku42.de>
Tested-by: Kel Modderman <kel at otaku42.de>
Signed-off-by: Hugh Dickins <hugh at veritas.com>
Cc: <stable at kernel.org> [2.6.25.x, 2.6.26.x]
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit ca5b172bd2b2fe489e7ba11cedd46ddf772d132f
Author: Hugh Dickins <hugh at veritas.com>
Date: Mon Jul 28 15:46:18 2008 -0700
exec: include pagemap.h again to fix build
Fix compilation errors on avr32 and without CONFIG_SWAP, introduced by
ba92a43dbaee339cf5915ef766d3d3ffbaaf103c ("exec: remove some includes")
In file included from include/asm/tlb.h:24,
from fs/exec.c:55:
include/asm-generic/tlb.h: In function 'tlb_flush_mmu':
include/asm-generic/tlb.h:76: error: implicit declaration of function 'release_pages'
include/asm-generic/tlb.h: In function 'tlb_remove_page':
include/asm-generic/tlb.h:105: error: implicit declaration of function 'page_cache_release'
make[1]: *** [fs/exec.o] Error 1
This straightforward part-revert is nobody's favourite patch to address
the underlying tlb.h needs swap.h needs pagemap.h (but sparc won't like
that) mess; but appropriate to fix the build now before any overhaul.
Reported-by: Yoichi Yuasa <yoichi_yuasa at tripeaks.co.jp>
Reported-by: Haavard Skinnemoen <haavard.skinnemoen at atmel.com>
Signed-off-by: Hugh Dickins <hugh at veritas.com>
Tested-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit b9edb17cc268bc4c6f344264fb9af73f646a02c1
Author: Paul Mundt <lethal at linux-sh.org>
Date: Tue Jul 29 08:29:32 2008 +0900
sh: Add an arch/sh/kernel/.gitignore
Ignore vmlinux.lds.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit cc64f7f70033d6cf18f716c885a7df858ad51766
Author: Paul Mundt <lethal at linux-sh.org>
Date: Tue Jul 29 08:24:50 2008 +0900
sh: dreamcast: fix build failure from header reorg.
Oops, machvec.h is in asm/, it was previously removed due to overzealous
trimming. Fix up the path again.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 56edb58be157a06dc147a988af3588059556d392
Author: Mike Rapoport <mike at compulab.co.il>
Date: Tue Jul 29 01:23:32 2008 +0200
mfd: add platform_data to mfd_cell
Adding platform_data to mfd_cell allows passing of platform data directly
to the platform_device created for each cell and thus reuse of existing
drivers.
On the other side it can be used as a hook to mfd_cell itself
removing the need in mfd_get_cell method.
Signed-off-by: Mike Rapoport <mike at compulab.co.il>
Acked-by: Dmitry Baryshkov <dbaryshkov at gmail.com>
Signed-off-by: Samuel Ortiz <sameo at openedhand.com>
commit f15cbe6f1a4b4d9df59142fc8e4abb973302cf44
Author: Paul Mundt <lethal at linux-sh.org>
Date: Tue Jul 29 08:09:44 2008 +0900
sh: migrate to arch/sh/include/
This follows the sparc changes a439fe51a1f8eb087c22dd24d69cebae4a3addac.
Most of the moving about was done with Sam's directions at:
http://marc.info/?l=linux-sh&m=121724823706062&w=2
with subsequent hacking and fixups entirely my fault.
Signed-off-by: Sam Ravnborg <sam at ravnborg.org>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 12c0b20fa4afb5c8a377d6987fb2dcf353e1dce1
Author: Bjorn Helgaas <bjorn.helgaas at hp.com>
Date: Wed Jul 23 17:00:13 2008 -0600
x86/PCI: use dev_printk when possible
Convert printks to use dev_printk().
I converted DBG() to dev_dbg(). This DBG() is from arch/x86/pci/pci.h and
requires source-code modification to enable, so dev_dbg() seems roughly
equivalent.
Signed-off-by: Bjorn Helgaas <bjorn.helgaas at hp.com>
Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
commit 756f7bc6683916177e8176f8d3fa5f4c11c88afc
Merge: 979b1791e5b8f8b556faeec4c48339e7ed63af9f cb28a1bbdb4790378e7366d6c9ee1d2340b84f92
Author: Jesse Barnes <jbarnes at hobbes.lan>
Date: Mon Jul 28 15:15:46 2008 -0700
Merge branch 'core/generic-dma-coherent' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip into for-linus
commit 63add2f2072e69c1eb7a5f6ca8f415122da889b9
Merge: 3684a601e4273692b6c80b86e55c728aef675660 9e3ee1c39c0cc71222f9980ccbf87fe072897eef
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Mon Jul 28 15:13:42 2008 -0700
Merge branch 'cpus4096-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'cpus4096-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
cpu masks: optimize and clean up cpumask_of_cpu()
cpumask: export cpumask_of_cpu_map
cpumask: change cpumask_of_cpu_ptr to use new cpumask_of_cpu
cpumask: put cpumask_of_cpu_map in the initdata section
cpumask: make cpumask_of_cpu_map generic
commit 3684a601e4273692b6c80b86e55c728aef675660
Author: James Bottomley <James.Bottomley at HansenPartnership.com>
Date: Mon Jul 28 17:11:44 2008 -0500
ipwireless: fix compile failure
There's a brown paper bag compile failure introduced by this patch
commit a01386924874c4d6d67f8a34e66f04452c2abb69
Author: David Sterba <dsterba at suse.cz>
Date: Mon Jul 28 16:53:32 2008 +0200
ipwireless: Preallocate received packet buffers with MRU size
Really, it can't ever have been even compile tested. It looks like the
closing bracket is in the wrong place, so this is the fix.
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 979b1791e5b8f8b556faeec4c48339e7ed63af9f
Author: Alan Cox <alan at lxorguk.ukuu.org.uk>
Date: Thu Jul 24 17:18:38 2008 +0100
PCI: add D3 power state avoidance quirk
Libata has some hacks to deal with certain controllers going silly in D3
state. The right way to handle this is to keep a PCI device flag for
such devices. That can then be generalised for no ATA devices with power
problems.
Signed-off-by: Alan Cox <alan at redhat.com>
Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
commit cb28a1bbdb4790378e7366d6c9ee1d2340b84f92
Merge: b6d4f7e3ef25beb8c658c97867d98883e69dc544 f934fb19ef34730263e6afc01e8ec27a8a71470f
Author: Ingo Molnar <mingo at elte.hu>
Date: Tue Jul 29 00:07:55 2008 +0200
Merge branch 'linus' into core/generic-dma-coherent
Conflicts:
arch/x86/Kconfig
Signed-off-by: Ingo Molnar <mingo at elte.hu>
commit 362b7077a5546b42131af15ba4776f30c9a72d0c
Author: Matthew Wilcox <matthew at wil.cx>
Date: Tue Jul 22 12:37:17 2008 -0600
PCI: fix bogus "'device' may be used uninitialized" warning in pci_slot
I get warnings about 'device' possibly being used uninitialised. While
I can deduce this is not true, it seems that GCC can't. This patch
changes `check_slot' to return device on success and -1 on error, which
shuts GCC up.
Acked-by: Alex Chiang <achiang at hp.com>
Signed-off-by: Matthew Wilcox <willy at linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
commit d6d385743463f38a0da899cd4607e526ad9a049f
Author: Shaohua Li <shaohua.li at intel.com>
Date: Wed Jul 23 10:32:42 2008 +0800
PCI: add an option to allow ASPM enabled forcibly
A new option, pcie_aspm=force, will force ASPM to be enabled, even on system
with PCIe 1.0 devices.
Signed-off-by: Shaohua Li <shaohua.li at intel.com>
Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
commit 149e16372a2066c5474d8a8db9b252afd57eb427
Author: Shaohua Li <shaohua.li at intel.com>
Date: Wed Jul 23 10:32:31 2008 +0800
PCI: disable ASPM on pre-1.1 PCIe devices
Disable ASPM on pre-1.1 PCIe devices, as many of them don't implement it
correctly.
Tested-by: Jack Howarth <howarth at bromo.msbb.uc.edu>
Signed-off-by: Shaohua Li <shaohua.li at intel.com>
Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
commit 5fde244d39b88625ac578d83e6625138714de031
Author: Shaohua Li <shaohua.li at intel.com>
Date: Wed Jul 23 10:32:24 2008 +0800
PCI: disable ASPM per ACPI FADT setting
The ACPI FADT table includes an ASPM control bit. If the bit is set, do
not enable ASPM since it may indicate that the platform doesn't actually
support the feature.
Tested-by: Jack Howarth <howarth at bromo.msbb.uc.edu>
Signed-off-by: Shaohua Li <shaohua.li at intel.com>
Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
commit ce6fce4295ba727b36fdc73040e444bd1aae64cd
Author: Matthew Wilcox <matthew at wil.cx>
Date: Fri Jul 25 15:42:58 2008 -0600
PCI MSI: Don't disable MSIs if the mask bit isn't supported
David Vrabel has a device which generates an interrupt storm on the INTx
pin if we disable MSI interrupts altogether. Masking interrupts is only
a performance optimisation, so we can ignore the request to mask the
interrupt.
Signed-off-by: Matthew Wilcox <willy at linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
commit 25326277d8d1393d1c66240e6255aca780f9e3eb
Author: Paul Mundt <lethal at linux-sh.org>
Date: Tue Jul 29 06:39:26 2008 +0900
video: Kill off leaked CONFIG_FB_SH7343VOU reference.
This came in with the SH-Mobile LCDC changes in commit
cfb4f5d1750e05f43902197713c50c29e7dfbc99, kill it off.
Reported-by: Robert P. J. Day <rpjday at crashcourse.ca>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 5c806b208b390969a6051543e96bb4eae40554ac
Author: Paul Mundt <lethal at linux-sh.org>
Date: Tue Jul 29 06:34:01 2008 +0900
MAINTAINERS: Switch SUPERH to Supported.
Apparently the SH entry ought to be Supported instead of Maintained,
given the suble difference in terminology. Though it's been this way
for years now, thanks to Renesas.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 103340cc36384c1afee4453b65a784d8b20d9d8d
Author: Paul Mundt <lethal at linux-sh.org>
Date: Mon Jul 28 22:32:03 2008 +0900
sh: Fix up unaligned current_text_addr().
As noted by Adrian:
Commit 3ab83521378268044a448113c6aa9a9e245f4d2f (kexec jump)
causes the following build error on sh:
<-- snip -->
...
CC kernel/kexec.o
{standard input}: Assembler messages:
{standard input}:1518: Error: offset to unaligned destination
make[2]: *** [kernel/kexec.o] Error 1
<-- snip -->
If I understand the assembler correctly it fails at
include/asm-sh/kexec.h:59
The issue here is that the mova reference lacks an explicit alignment,
and previous code paths would end up with this on a 16-bit boundary,
so we make the alignment explicit.
Reported-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 11325f035edba6ba4bc005d2cdebea19d7d8f388
Author: Paul Mundt <lethal at linux-sh.org>
Date: Mon Jul 28 22:31:43 2008 +0900
sh: rsk7203: update defconfig.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 6d0b365731682857ecc754163e7c5cb9edaae846
Author: Paul Mundt <lethal at linux-sh.org>
Date: Mon Jul 28 22:31:02 2008 +0900
sh: rsk7203: Add smc911x platform data.
This hooks up platform data for the SMC9118 on the RSK+7203.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 9e3ee1c39c0cc71222f9980ccbf87fe072897eef
Merge: e56b3bc7942982ac2589c942fb345e38bc7a341a f934fb19ef34730263e6afc01e8ec27a8a71470f
Author: Ingo Molnar <mingo at elte.hu>
Date: Mon Jul 28 23:32:00 2008 +0200
Merge branch 'linus' into cpus4096
Conflicts:
kernel/stop_machine.c
Signed-off-by: Ingo Molnar <mingo at elte.hu>
commit 29111f579f4f3f2a07385f931854ab0527ae7ea5
Merge: cc5499c3a607a392e8a7adb934aaf14b2c6a3519 87e39ea5714dd59ba31e36c25833d2b20255a29d
Author: Jesse Barnes <jbarnes at hobbes.lan>
Date: Mon Jul 28 14:31:10 2008 -0700
Merge branch 'x86/iommu' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip into for-linus
commit cc5499c3a607a392e8a7adb934aaf14b2c6a3519
Author: Matthew Wilcox <matthew at wil.cx>
Date: Mon Jul 28 13:39:00 2008 -0400
PCI: handle 64-bit resources better on 32-bit machines
If the kernel is configured to support 64-bit resources on a 32-bit
machine, we can support 64-bit BARs properly. Just change the condition
to check sizeof(resource_size_t) instead of BITS_PER_LONG.
Signed-off-by: Matthew Wilcox <willy at linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
commit 6ac665c63dcac8fcec534a1d224ecbb8b867ad59
Author: Matthew Wilcox <matthew at wil.cx>
Date: Mon Jul 28 13:38:59 2008 -0400
PCI: rewrite PCI BAR reading code
Factor out the code to read one BAR from the loop in pci_read_bases into
a new function, __pci_read_base. The new code is slightly more
readable, better commented and removes the ifdef.
Signed-off-by: Matthew Wilcox <willy at linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
commit e56b3bc7942982ac2589c942fb345e38bc7a341a
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Mon Jul 28 11:32:33 2008 -0700
cpu masks: optimize and clean up cpumask_of_cpu()
Clean up and optimize cpumask_of_cpu(), by sharing all the zero words.
Instead of stupidly generating all possible i=0...NR_CPUS 2^i patterns
creating a huge array of constant bitmasks, realize that the zero words
can be shared.
In other words, on a 64-bit architecture, we only ever need 64 of these
arrays - with a different bit set in one single world (with enough zero
words around it so that we can create any bitmask by just offsetting in
that big array). And then we just put enough zeroes around it that we
can point every single cpumask to be one of those things.
So when we have 4k CPU's, instead of having 4k arrays (of 4k bits each,
with one bit set in each array - 2MB memory total), we have exactly 64
arrays instead, each 8k bits in size (64kB total).
And then we just point cpumask(n) to the right position (which we can
calculate dynamically). Once we have the right arrays, getting
"cpumask(n)" ends up being:
static inline const cpumask_t *get_cpu_mask(unsigned int cpu)
{
const unsigned long *p = cpu_bit_bitmap[1 + cpu % BITS_PER_LONG];
p -= cpu / BITS_PER_LONG;
return (const cpumask_t *)p;
}
This brings other advantages and simplifications as well:
- we are not wasting memory that is just filled with a single bit in
various different places
- we don't need all those games to re-create the arrays in some dense
format, because they're already going to be dense enough.
if we compile a kernel for up to 4k CPU's, "wasting" that 64kB of memory
is a non-issue (especially since by doing this "overlapping" trick we
probably get better cache behaviour anyway).
[ mingo at elte.hu:
Converted Linus's mails into a commit. See:
http://lkml.org/lkml/2008/7/27/156
http://lkml.org/lkml/2008/7/28/320
Also applied a family filter - which also has the side-effect of leaving
out the bits where Linus calls me an idio... Oh, never mind ;-)
]
Signed-off-by: Ingo Molnar <mingo at elte.hu>
Cc: Rusty Russell <rusty at rustcorp.com.au>
Cc: Andrew Morton <akpm at linux-foundation.org>
Cc: Al Viro <viro at ZenIV.linux.org.uk>
Cc: Mike Travis <travis at sgi.com>
Signed-off-by: Ingo Molnar <mingo at elte.hu>
commit 74deace2f952f7a28d2c516facc9954199881937
Author: Paul Gortmaker <paul.gortmaker at windriver.com>
Date: Mon Jul 28 14:50:31 2008 -0400
Documentation: remove old sbc8260 board specific information
This file contains 8 yr. old board specific information that was for
the now gone ppc implementation, and it pre-dates widespread u-boot
support. Any of the technical details of the board memory map would be
more appropriately captured in a dts if I revive it as powerpc anyway.
Signed-off-by: Paul Gortmaker <paul.gortmaker at windriver.com>
Acked-by: Jason Wessel <jason.wessel at windriver.com>
Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
commit 414f746d232d41ed6ae8632c4495ae795373c44b
Merge: 5a7a201c51c324876d00a54e7208af6af12d1ca4 c9272c4f9fbe2087beb3392f526dc5b19efaa56b
Author: Ingo Molnar <mingo at elte.hu>
Date: Mon Jul 28 21:14:43 2008 +0200
Merge branch 'linus' into cpus4096
commit 37139074233a5bbec54ae01ab580e5788a248cc3
Author: Jesse Barnes <jbarnes at hobbes.lan>
Date: Mon Jul 28 11:49:26 2008 -0700
PCI: document pci_target_state
The empty kdoc was causing warnings, so provide some actual documentation.
Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
commit 56adc59d81b01ac5924f7eba6e22adc762a1e2c6
Author: Jesse Barnes <jbarnes at hobbes.lan>
Date: Thu Jul 24 16:43:43 2008 -0700
PCI hotplug: fix typo in pcie hotplug output
Comamnd->Command
Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
commit f934fb19ef34730263e6afc01e8ec27a8a71470f
Merge: 3988ba0708e98b4bafc9034aa476775520bee708 72d18a7b9e1a3a9511bae78fc7f0932ae01d5d73
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Mon Jul 28 09:59:26 2008 -0700
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
Input: add driver for Atmel integrated touchscreen controller
Input: ads7846 - optimize order of calculating Rt in ads7846_rx()
Input: ads7846 - fix sparse endian warnings
Input: uinput - remove duplicate include
Input: serio - offload resume to kseriod
Input: serio - mark serio_register_driver() __must_check
commit 3988ba0708e98b4bafc9034aa476775520bee708
Merge: d9089c296bdd82e6c1b7f82d04c11b5decde75e7 18c60c0a3b16fc7d6a55497a228602ad8509f838
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Mon Jul 28 09:46:00 2008 -0700
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/dlm
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/dlm:
dlm: fix uninitialized variable for search_rsb_list callers
dlm: release socket on error
dlm: fix basts for granted CW waiting PR/CW
dlm: check for null in device_write
commit 7f71ac9374fec066e428892a68db158946cee1fb
Author: Ben Dooks <ben-linux at fluff.org>
Date: Mon Jul 28 18:29:09 2008 +0200
mfd: Coding style fixes
Fix some coding style fixes in the mfd core driver.
Signed-off-by: Ben Dooks <ben-linux at fluff.org>
Signed-off-by: Samuel Ortiz <sameo at openedhand.com>
commit 96ee41993b5b25ee0fbde2d4dcaac1f8c5ef5cc4
Author: Ben Dooks <ben-linux at fluff.org>
Date: Mon Jul 28 18:26:42 2008 +0200
mfd: Use to_platform_device instead of container_of
Convert mfd_remove_devices_fn() to use to_platform_device()
instead of doing container_of().
Signed-off-by: Ben Dooks <ben-linux at fluff.org>
Acked-by: Dmitry Baryshkov <dbaryshkov at gmail.com>
Signed-off-by: Samuel Ortiz <sameo at openedhand.com>
commit 0e241ffd306c0896bb9959be7faa4d4cfcb706d9
Author: Randy Dunlap <randy.dunlap at oracle.com>
Date: Thu Jul 24 16:58:42 2008 -0700
locking: fix mutex @key parameter kernel-doc notation
Fix @key parameter to mutex_init() and one of its callers.
Warning(linux-2.6.26-git11//drivers/base/class.c:210): No description found for parameter 'key'
Signed-off-by: Randy Dunlap <randy.dunlap at oracle.com>
Acked-by: Greg Kroah-Hartman <gregkh at suse.de>
Signed-off-by: Ingo Molnar <mingo at elte.hu>
commit d9089c296bdd82e6c1b7f82d04c11b5decde75e7
Merge: bda426f5310ffddcd463fe20f352609e84989514 00df438e89a9003895948170e1abf64dd4665872
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Mon Jul 28 09:05:35 2008 -0700
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (25 commits)
powerpc: Disable 64K hugetlb support when doing 64K SPU mappings
powerpc/powermac: Fixup default serial port device for pmac_zilog
powerpc/powermac: Use sane default baudrate for SCC debugging
powerpc/mm: Implement _PAGE_SPECIAL & pte_special() for 64-bit
powerpc: Show processor cache information in sysfs
powerpc: Make core id information available to userspace
powerpc: Make core sibling information available to userspace
powerpc/vio: More fallout from dma_mapping_error API change
ibmveth: Fix multiple errors with dma_mapping_error conversion
powerpc/pseries: Fix CMO sysdev attribute API change fallout
powerpc: Enable tracehook for the architecture
powerpc: Add TIF_NOTIFY_RESUME support for tracehook
powerpc: Add asm/syscall.h with the tracehook entry points
powerpc: Make syscall tracing use tracehook.h helpers
powerpc: Call tracehook_signal_handler() when setting up signal frames
powerpc: Update cpu_sibling_maps dynamically
powerpc: register_cpu_online should be __cpuinit
powerpc: kill useless SMT code in prom_hold_cpus
powerpc: Fix 8xx build failure
powerpc: Fix vio build warnings
...
commit bda426f5310ffddcd463fe20f352609e84989514
Merge: b10a8b7238d7b034f28d32a85bb05c48475f132a 7878ac81e69c5b3ccad59808da06edf16455a57a
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Mon Jul 28 08:41:56 2008 -0700
Merge git://git.kernel.org/pub/scm/linux/kernel/git/kkeil/ISDN-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/kkeil/ISDN-2.6:
Remove deprecated virt_to_bus()
commit b10a8b7238d7b034f28d32a85bb05c48475f132a
Merge: 37eaf8c7463e53cf1acf025fb566fb6c4573297f 8b2224dc6a5b46cfa1d54ab1fe82107351c66443
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Mon Jul 28 08:41:13 2008 -0700
Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (72 commits)
sh: SuperH Mobile CEU and camera platform data for AP325RXA
sh: Update smc911x platform data for AP325RXA
sh: SuperH Mobile LCDC platform data for AP325RXA
sh: Add SuperH Mobile CEU platform data for Migo-R
sh: Add SuperH Mobile LCDC platform data for Migo-R
sh: Move asid_cache() out of ifdef to fix SH-3/4 nommu build.
sh: Workaround for __put_user_asm() bug with gcc 4.x on big-endian.
sh: Wire up new syscalls.
sh: fix uImage Entry Point
sh_keysc: remove request_mem_region() and release_mem_region()
sh: Don't miss pending signals returning to user mode after signal processing
sh: Use clk_always_enable() on sh7366
sh: Use clk_always_enable() on sh7343 / SE77343
sh: Use clk_always_enable() on sh7722 / Migo-R / SE7722
sh: Use clk_always_enable() on sh7723 / ap325rxa
sh: Introduce clk_always_enable() function
sh: Show all clocks and their state in /proc/clocks
sh: Merge sh7343 and sh7722 clock code
sh: Add SuperH Mobile MSTPCR bits to clock framework
sh: Use arch_flags to simplify sh7722 siu clock code
...
commit 37eaf8c7463e53cf1acf025fb566fb6c4573297f
Merge: 58f250714f2bfa3514798fde8b9d38a15e4a9836 784e2d76007f90d69341b95967160c4fb7829299
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Mon Jul 28 08:37:46 2008 -0700
Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus
* git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus:
stop_machine: fix up ftrace.c
stop_machine: Wean existing callers off stop_machine_run()
stop_machine(): stop_machine_run() changed to use cpu mask
Hotplug CPU: don't check cpu_online after take_cpu_down
Simplify stop_machine
stop_machine: add ALL_CPUS option
module: fix build warning with !CONFIG_KALLSYMS
commit 58f250714f2bfa3514798fde8b9d38a15e4a9836
Merge: c32f1a34ff1097110469a240ea4539dc9c101e96 c2f90e9536887fb76fb6a2aa239a70fc49beda10
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Mon Jul 28 08:35:40 2008 -0700
Merge git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb
* git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb: (98 commits)
V4L/DVB (8549): mxl5007: Fix an error at include file
V4L/DVB (8548): pwc: Fix compilation
V4L/DVB (8546): add tuner-3036 and dpc7146 drivers to feature-removal-schedule.txt
V4L/DVB (8546): saa7146: fix read from uninitialized memory
V4L/DVB (8544): gspca: probe/open race.
V4L/DVB (8543): em28xx: Rename #define for Compro VideoMate ForYou/Stereo
V4L/DVB (8542): em28xx: AMD ATI TV Wonder HD 600 entry at cards struct is duplicated
V4L/DVB (8541): em28xx: HVR-950 entry is duplicated.
V4L/DVB (8540): em28xx-cards: Add Compro VideoMate ForYou/Stereo model
V4L/DVB (8539): em28xx-cards: New supported IDs for analog models
V4L/DVB (8538): em28xx-cards: Add GrabBeeX+ USB2800 model
V4L/DVB (8534): remove select's of FW_LOADER
V4L/DVB (8522): videodev2: Fix merge conflict
V4L/DVB (8532): mxl5007t: remove excessive locks
V4L/DVB (8531): mxl5007t: move i2c gate handling outside of mutex protected code blocks
V4L/DVB (8530): au0828: add support for new revision of HVR950Q
V4L/DVB (8529): mxl5007t: enable _init and _sleep power management functionality
V4L/DVB (8528): add support for MaxLinear MxL5007T silicon tuner
V4L/DVB (8526): saa7146: fix VIDIOC_ENUM_FMT
V4L/DVB (8525): fix a few assorted spelling mistakes.
...
commit c32f1a34ff1097110469a240ea4539dc9c101e96
Merge: 4f31f3080943c7e3541f07df326f06d598a067d0 04d91cb8163f7f946e348b2362a6e5dfa5f06b13
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Mon Jul 28 08:33:25 2008 -0700
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
sparc: Set CONFIG_HAVE_ARCH_TRACEHOOK
sparc: Add task_pt_regs().
sparc: Add call to tracehook_signal_handler().
sparc: Create and use TIF_NOTIFY_RESUME.
sparc: Use tracehook routines in syscall_trace().
sparc64: tracehook: CONFIG_HAVE_ARCH_TRACEHOOK
sparc: Add user_stack_pointer().
sparc64: tracehook_signal_handler
sparc64: tracehook: TIF_NOTIFY_RESUME
sparc: Add asm/syscall.h
sparc64: tracehook syscall
sparc: enable headers_export again
sparc, sparc64: use arch/sparc/include
commit 4f31f3080943c7e3541f07df326f06d598a067d0
Merge: 1486361777b3ce5ead414d9b2d9fc46f9cd86e0b 281c7413ed914623d3245299a4761b6b27ab9fdb
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Mon Jul 28 08:32:25 2008 -0700
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
net: missing bits of net-namespace / sysctl
ipcomp: Fix warnings after ipcomp consolidation.
dccp: Add check for truncated ICMPv6 DCCP error packets
dccp: Fix incorrect length check for ICMPv4 packets
dccp: Add check for sequence number in ICMPv6 message
dccp: Fix sequence number check for ICMPv4 packets
dccp: Bug-Fix - AWL was never updated
dccp: Allow to distinguish original and retransmitted packets
commit 1486361777b3ce5ead414d9b2d9fc46f9cd86e0b
Author: Randy Dunlap <randy.dunlap at oracle.com>
Date: Sun Jul 27 20:44:24 2008 -0700
SubmittingPatches: add git pull & diffstat format info
Add git pull command info and diffstat summary info so that we don't
have to search email archives for it repeatedly.
Signed-off-by: Randy Dunlap <randy.dunlap at oracle.com>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 1f07be1c31cf898e5e3708d52e38db0803c62924
Author: Stephen Rothwell <sfr at canb.auug.org.au>
Date: Mon Jul 28 11:05:04 2008 +1000
more sysdev API change fallout - drivers/base/memory.c
Noticed because of this warning:
drivers/base/memory.c:279: warning: initialization from incompatible pointer type
Signed-off-by: Stephen Rothwell <sfr at canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit b032bf70df2e43149ce2b4e9a865b076c6140753
Author: Thomas Gleixner <tglx at linutronix.de>
Date: Sun Jul 27 23:47:12 2008 +0200
ACPI/CPUIDLE: prevent setting pm_idle to NULL
pm_idle_save resp. pm_idle_old can be NULL when the restore code in
acpi_processor_cst_has_changed() resp. cpuidle_uninstall_idle_handler()
is called. This can set pm_idle unconditinally to NULL, which causes the
kernel to panic when calling pm_idle in the x86 idle code. This was
covered by an extra check for !pm_idle in the x86 idle code, which was
removed during the x86 idle code refactoring.
Instead of restoring the pm_idle check in the x86 code prevent the
acpi/cpuidle code to set pm_idle to NULL.
Reported by: Dhaval Giani http://lkml.org/lkml/2008/7/2/309
Based on a debug patch from Ingo Molnar
Signed-off-by: Thomas Gleixner <tglx at linutronix.de>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 9ffc1699e36abd5baee188c8e36b1bb27d0d4278
Merge: a01386924874c4d6d67f8a34e66f04452c2abb69 958585f58f675a3c2855c7d91b6fdd2875552d0b
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Mon Jul 28 08:28:50 2008 -0700
Merge branch 'i2c-for-linus' of git://aeryn.fluff.org.uk/bjdooks/linux
* 'i2c-for-linus' of git://aeryn.fluff.org.uk/bjdooks/linux:
i2c: Blackfin I2C Driver: Functional power management support
i2c: Documentation: upgrading clients HOWTO
i2c: S3C24XX I2C frequency scaling support.
i2c: i2c_gpio: keep probe resident for hotplugged devices.
i2c: S3C2410: Pass the I2C bus number via drivers platform data
commit a01386924874c4d6d67f8a34e66f04452c2abb69
Author: David Sterba <dsterba at suse.cz>
Date: Mon Jul 28 16:53:32 2008 +0200
ipwireless: Preallocate received packet buffers with MRU size
ipwireless: Preallocate received packet buffers with MRU size
Packets are assembled from link size (~300 bytes) up to PPP MRU
(1500 by default). Try to preallocate full size rather than
repeatedly advance buffer size by 256 bytes.
Signed-off-by: David Sterba <dsterba at suse.cz>
Signed-off-by: Jiri Kosina <jkosina at suse.cz>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 0f38c47a545d36da4038fec0708e6e3fbdb160b1
Author: David Sterba <dsterba at suse.cz>
Date: Mon Jul 28 16:53:27 2008 +0200
ipwireless: Put packets to pool start
ipwireless: Put packets to pool start
Put packets to pool start, try to reuse cached memory.
Signed-off-by: David Sterba <dsterba at suse.cz>
Signed-off-by: Jiri Kosina <jkosina at suse.cz>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit bee9c7c0773517c9f1d7931144fc8dec12233bd7
Author: David Sterba <dsterba at suse.cz>
Date: Mon Jul 28 16:53:21 2008 +0200
ipwireless: Increase PPP outgoing queue size
ipwireless: Increase PPP outgoing queue size
Increase default size of PPP outgoing queue. Currently set to 1, which
means that a packet quickly following another pushed by PPP must wait
until hardware actually sends the previous and PPP has to be waken up
by ppp_wakeup(). This slows down upstream.
Now PPP can push more packets at once which get buffered inside driver
and pushed immediatelly to hardware when previous packet is out.
Experiments show that size = 10 is quite good for all connection types
(GPRS/EDGE/UMTS) and gains 4 KB/sec of upload for UMTS for batch uploads.
Need for higher queue size than 10 occures in only < 0.1 % of cases.
Signed-off-by: David Sterba <dsterba at suse.cz>
Signed-off-by: Jiri Kosina <jkosina at suse.cz>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 09e491e9a780433f8734eb6efb7293b2da690131
Author: David Sterba <dsterba at suse.cz>
Date: Mon Jul 28 16:53:16 2008 +0200
ipwireless: Explicitly request io and mem regions
ipwireless: Explicitly request io and mem regions
Documentation/pcmcia/driver-changes.txt says, that driver should call request_region
for used memory/io regions since PCMCIA does not do this (since 2.6.8).
Signed-off-by: David Sterba <dsterba at suse.cz>
Signed-off-by: Jiri Kosina <jkosina at suse.cz>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit ff3e990e61a5a9124687a01a025c43b3564f82ab
Author: David Sterba <dsterba at suse.cz>
Date: Mon Jul 28 16:53:11 2008 +0200
ipwireless: Constify buffer variables
ipwireless: Constify buffer variables
Signed-off-by: David Sterba <dsterba at suse.cz>
Signed-off-by: Jiri Kosina <jkosina at suse.cz>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 93110f698fe92fc4dfd86c78783aedf522c69eb9
Author: David Sterba <dsterba at suse.cz>
Date: Mon Jul 28 16:53:05 2008 +0200
ipwireless: Do not return value from sending funcs
ipwireless: Do not return value from sending funcs
Do not return value from do_send_fragment and do_send_packet, it's not used.
The packet size checks are not useful too:
* zero length packet will never be sent, caller always passes packet_header
size which is either 1 or 3
* MTU check is done in caller, no need to repeat
Signed-off-by: David Sterba <dsterba at suse.cz>
Signed-off-by: Jiri Kosina <jkosina at suse.cz>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit d54c2752f6bb6cc53359dcdf6ed4fb6e5fb6440a
Author: David Sterba <dsterba at suse.cz>
Date: Mon Jul 28 16:53:00 2008 +0200
ipwireless: Remove endian-dependent bitfields
ipwireless: Remove endian-dependent bitfields
Remove endian-dependent bitfields and use bitmasks to transform
packet header bitfields from/to machine order.
Signed-off-by: David Sterba <dsterba at suse.cz>
Signed-off-by: Jiri Kosina <jkosina at suse.cz>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 622e713e8e207a99aad956bf0ebe435420fb3742
Author: David Sterba <dsterba at suse.cz>
Date: Mon Jul 28 16:52:55 2008 +0200
ipwireless: Glue splitted printk strings back
ipwireless: Glue splitted printk strings back
Signed-off-by: David Sterba <dsterba at suse.cz>
Signed-off-by: Jiri Kosina <jkosina at suse.cz>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 2fc5577e1729ac303ad8b9547f8ccdb057076998
Author: David Sterba <dsterba at suse.cz>
Date: Mon Jul 28 16:52:49 2008 +0200
ipwireless: Remove pt_regs from interrupt handler
ipwireless: Remove pt_regs from interrupt handler
Signed-off-by: David Sterba <dsterba at suse.cz>
Signed-off-by: Jiri Kosina <jkosina at suse.cz>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 63c4dbd1023b9acd516d71635b06741962cc8a0f
Author: David Sterba <dsterba at suse.cz>
Date: Mon Jul 28 16:52:44 2008 +0200
ipwireless: Rename spinlock variables to lock
ipwireless: Rename spinlock variables to lock
Signed-off-by: David Sterba <dsterba at suse.cz>
Signed-off-by: Jiri Kosina <jkosina at suse.cz>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 2e713165f892c833d240cb265ab35490a7ef456f
Author: David Sterba <dsterba at suse.cz>
Date: Mon Jul 28 16:52:39 2008 +0200
ipwireless: Remove unused defines
ipwireless: Remove unused defines
Remove unused defines, defines hiding variables, defines hiding 0.
Signed-off-by: David Sterba <dsterba at suse.cz>
Signed-off-by: Jiri Kosina <jkosina at suse.cz>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit d4c0deb7009217d5cf7d0fe89255d64ecfad932b
Author: David Sterba <dsterba at suse.cz>
Date: Mon Jul 28 16:52:33 2008 +0200
ipwireless: Misc cleanups
ipwireless: Misc cleanups
- remove likely() and some extra () in ifs
- use unsigned in for loops
- remove useless typecasts
- remove obvious comments
- add () around ?:
Signed-off-by: David Sterba <dsterba at suse.cz>
Signed-off-by: Jiri Kosina <jkosina at suse.cz>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 6ce37a58e334ef773f88283939afc9f4965c7697
Merge: d7ba11d01cfedf63b50391fbe4a05274b6992b43 91467bdf6e53058af13fd255375d6634ba0c70e0
Author: Ingo Molnar <mingo at elte.hu>
Date: Mon Jul 28 17:19:02 2008 +0200
Merge branch 'x86/crashdump' into x86/urgent
commit 00eabe7c4478f38b42d632763c4878ced5a1f25c
Author: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
Date: Mon Jul 28 11:59:20 2008 +0900
[SCSI] qla2xxx: fix msleep compile error
drivers/scsi/qla2xxx/qla_attr.c: In function 'qla24xx_vport_delete':
drivers/scsi/qla2xxx/qla_attr.c:1184: error: implicit declaration of function 'msleep'
make[3]: *** [drivers/scsi/qla2xxx/qla_attr.o] Error 1
make[3]: *** Waiting for unfinished jobs....
Reported-by: David Miller <davem at davemloft.net>
Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
Acked-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit dddb8d311157d054da5441385f681b8cc0e5a94b
Author: Laurent Pinchart <laurentp at cse-semaphore.com>
Date: Tue Jul 22 18:00:43 2008 +0200
cpm2: Rework baud rate generators configuration to support external clocks.
The CPM2 BRG setup functions cpm_setbrg and cpm2_fastbrg don't support
external clocks. This patch adds a new exported __cpm2_setbrg function
that takes the clock rate and clock source as extra parameters, and moves
cpm_setbrg and cpm2_fastbrg to include/asm-powerpc/cpm2.h where they
become inline wrappers around __cpm2_setbrg.
Signed-off-by: Laurent Pinchart <laurentp at cse-semaphore.com>
Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
commit e517881e427757afc3cce6d76173b1d898b30ab3
Author: Anton Vorontsov <avorontsov at ru.mvista.com>
Date: Thu Jun 12 03:04:31 2008 +0400
powerpc: rtc_cmos_setup: assign interrupts only if there is i8259 PIC
i8259 PIC is disabled on MPC8610HPCD boards, thus currently rtc-cmos
driver fails to probe.
To fix the issue, we lookup the device tree for "chrp,iic" and
"pnpPNP,000" compatible devices, and if not found we do not assign RTC
IRQ and assuming that i8259 was disabled.
Though this patch fixes RTC on some boards (and surely should not break
any other), the whole approach is still broken. We can't easily fix this
though, because old device trees do not specify i8259 interrupts for the
cmos rtc node.
Signed-off-by: Anton Vorontsov <avorontsov at ru.mvista.com>
Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
commit 80776554b6c93cf828ddc702010c6a189aa0d0e9
Author: Laurent Pinchart <laurentp at cse-semaphore.com>
Date: Mon Jul 28 10:42:16 2008 +0200
cpm_uart: Add generic clock API support to set baudrates
This patch introduces baudrate setting support via the generic clock API.
When present the optional device tree clock property is used instead of
fsl-cpm-brg. Platforms can then define complex clock schemes, to output
the serial clock on an external pin for instance.
Signed-off-by: Laurent Pinchart <laurentp at cse-semaphore.com>
Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
commit 7485d26b7e13ee8ff82adb271ac90a996c1fe830
Author: Laurent Pinchart <laurentp at cse-semaphore.com>
Date: Thu Jul 24 18:36:37 2008 +0200
cpm_uart: Modem control lines support
This patch replaces the get_mctrl/set_mctrl stubs with modem control line
read/write access through the GPIO lib.
Available modem control lines are described in the device tree using GPIO
bindings. The driver expect a GPIO pin for each of the CTS, RTS, DCD, DSR,
DTR and RI signals. Unused control lines can be left out.
Signed-off-by: Laurent Pinchart <laurentp at cse-semaphore.com>
Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
commit dc2380ec8572fcd7f7e9579afc9fb223300d922f
Author: Jochen Friedrich <jochen at scram.de>
Date: Thu Jul 3 02:18:23 2008 +1000
powerpc: implement GPIO LIB API on CPM1 Freescale SoC.
This patch implement GPIO LIB support for the CPM1 GPIOs.
Signed-off-by: Jochen Friedrich <jochen at scram.de>
Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
commit e193325e3e3de188ae2aa5207adc7129aacc5c9d
Author: Laurent Pinchart <laurentp at cse-semaphore.com>
Date: Mon Jul 28 10:43:22 2008 +0200
cpm2: Implement GPIO LIB API on CPM2 Freescale SoC.
This patch implement GPIO LIB support for the CPM2 GPIOs. The code can
also be used for CPM1 GPIO port E, as both cores are compatible at the
register level.
Based on earlier work by Laurent Pinchart.
Signed-off-by: Jochen Friedrich <jochen at scram.de>
Cc: Laurent Pinchart <laurentp at cse-semaphore.com>
Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
commit d7ba11d01cfedf63b50391fbe4a05274b6992b43
Author: Joe Perches <joe at perches.com>
Date: Sun Jul 27 12:02:04 2008 -0700
x86: remove stray <6> in BogoMIPS printk
Rabin Vincent noticed that there's a stray <6> in BogoMIPS printk:
> Remove the extra KERN_INFO which causes this:
> Calibrating delay loop... <6>179.40 BogoMIPS (lpj=897024)
> - printk(KERN_INFO "%lu.%02lu BogoMIPS (lpj=%lu)\n",
> - loops_per_jiffy/(500000/HZ),
> - (loops_per_jiffy/(5000/HZ)) % 100, loops_per_jiffy);
> + printk("%lu.%02lu BogoMIPS (lpj=%lu)\n",
> + loops_per_jiffy/(500000/HZ),
> + (loops_per_jiffy/(5000/HZ)) % 100, loops_per_jiffy);
> }
How about just using KERN_CONT and leaving the whitespace
for a patch that does the entire file?
Reported-by: Rabin Vincent <rabin at rab.in>
commit 958585f58f675a3c2855c7d91b6fdd2875552d0b
Author: Michael Hennerich <michael.hennerich at analog.com>
Date: Sun Jul 27 14:41:54 2008 +0800
i2c: Blackfin I2C Driver: Functional power management support
PM_SUSPEND_MEM: Blackfin does not maintain register state through
Hibernate. Save and restore peripheral base initialization during
PM transitions.
Signed-off-by: Michael Hennerich <michael.hennerich at analog.com>
Signed-off-by: Bryan Wu <cooloney at kernel.org>
Signed-off-by: Ben Dooks <ben-linux at fluff.org>
commit 31321b76e1a2c70f4eb4c0e19f9f860dcd0ef2ce
Author: Ben Dooks <ben-linux at fluff.org>
Date: Mon Jul 28 12:04:08 2008 +0100
i2c: Documentation: upgrading clients HOWTO
Add a document describing how i2c clients on Linux 2.6 can be
moved from the old to the new driver model.
Signed-off-by: Ben Dooks <ben-linux at fluff.org>
commit 61c7cff89224fc5651b5ba5ff2185d19304b2484
Author: Ben Dooks <ben-linux at fluff.org>
Date: Mon Jul 28 12:04:07 2008 +0100
i2c: S3C24XX I2C frequency scaling support.
Add support for CPU frequency scaling to the S3C24XX I2C driver.
Signed-off-by: Ben Dooks <ben-linux at fluff.org>
commit 1efe7c55d2c4acc6c1d1c1a68bd9070f13815272
Author: Ben Dooks <ben-linux at fluff.org>
Date: Mon Jul 28 12:04:09 2008 +0100
i2c: i2c_gpio: keep probe resident for hotplugged devices.
Change the i2c_gpio driver to use platform_driver_register()
instead of platform_driver_probe() to ensure that is can
attach to any devices that may be loaded after it has initialised.
Acked-by: Haavard Skinnemoen <haavard.skinnemoen at atmel.com>
Signed-off-by: Ben Dooks <ben-linux at fluff.org>
commit 399dee2371787825a1845de87c0cbee7b7c30ad6
Author: Ben Dooks <ben-linux at fluff.org>
Date: Mon Jul 28 12:04:06 2008 +0100
i2c: S3C2410: Pass the I2C bus number via drivers platform data
Allow the platform data to specify the bus bumber that the
new I2C bus will be given. This is to allow the use of the
board registration mechanism to specify the new style of
I2C device registration which allows boards to provide a
list of attached devices.
Note, as discussed on the mailing list, we have dropped
backwards compatibility of adding an dynamic bus number
as it should not affect most boards to have the bus pinned
to 0 if they have either not specified platform data for
driver. Any board supplying platform data will automatically
have the bus_num field set to 0, and anyone who needs the
driver on a different bus number can supply platform data
to set bus_num.
Signed-off-by: Ben Dooks <ben-linux at fluff.org>
commit 7878ac81e69c5b3ccad59808da06edf16455a57a
Author: Karsten Keil <kkeil at suse.de>
Date: Mon Jul 28 12:21:25 2008 +0200
Remove deprecated virt_to_bus()
Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/kkeil/ISDN-2.6.git master
This was a forgotten item in a printk from the old driver,
the DMA allocation use already the new interface.
Signed-off-by: Karsten Keil <kkeil at suse.de>
commit 8b2224dc6a5b46cfa1d54ab1fe82107351c66443
Author: Magnus Damm <damm at igel.co.jp>
Date: Mon Jul 28 19:14:35 2008 +0900
sh: SuperH Mobile CEU and camera platform data for AP325RXA
Add AP325RXA specific platform data for on-chip sh7723 CEU and ncm03j camera.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 4875ea224af0215635f18c2c1b060fb023c7602f
Author: Magnus Damm <damm at igel.co.jp>
Date: Mon Jul 28 19:11:07 2008 +0900
sh: Update smc911x platform data for AP325RXA
Pass board specific smc911x parameters using struct smc911x_platdata.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 6968980a1bc0ba56dd8ef21c14577af3f2f9992b
Author: Magnus Damm <damm at igel.co.jp>
Date: Mon Jul 28 19:07:04 2008 +0900
sh: SuperH Mobile LCDC platform data for AP325RXA
Add LCD panel platform data for the AP325RXA board.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 1765534c23596794385f309609c09642f33846e4
Author: Magnus Damm <damm at igel.co.jp>
Date: Mon Jul 28 18:51:01 2008 +0900
sh: Add SuperH Mobile CEU platform data for Migo-R
Add Migo-R specific platform data for on-chip sh7722 CEU and ov772x camera.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 8b1285f1c192e7e84ba28cc25eb0e9bcf2dadb17
Author: Magnus Damm <damm at igel.co.jp>
Date: Mon Jul 28 18:47:30 2008 +0900
sh: Add SuperH Mobile LCDC platform data for Migo-R
Add WVGA and QVGA LCD panel support to Migo-R.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 761656e6beecb38c723f207d7408c753d3103ba8
Author: Paul Mundt <lethal at linux-sh.org>
Date: Mon Jul 28 18:39:25 2008 +0900
sh: Move asid_cache() out of ifdef to fix SH-3/4 nommu build.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 2b4b2bb42137c779ef0084de5df66ff21b4cd86e
Author: Yoshinori Sato <ysato at users.sourceforge.jp>
Date: Mon Jul 28 18:36:13 2008 +0900
sh: Workaround for __put_user_asm() bug with gcc 4.x on big-endian.
I think this problem is GCC(4.1.2) bug.
Syscall "getdents" returned "dirent->d_off" is always 0.
I think other EB enviroment have same problem.
Problem code
0c03c954 <filldir>:
:
c03c97a: 58 f7 mov.l @(28,r15),r8 !-> offset (high)
c03c97c: 59 f8 mov.l @(32,r15),r9 !-> offset (low)
c03c97e: 53 f9 mov.l @(36,r15),r3
c03c980: 54 fa mov.l @(40,r15),r4
:
c03c9a0: 21 82 mov.l r8, at r1 !offset(high) -> dirent->d_off
It's workaround patch.
Signed-off-by: Yoshinori Sato <ysato at users.sourceforge.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 44f95989525c48f6c79fe1c6ad07860765f987cd
Author: Paul Mundt <lethal at linux-sh.org>
Date: Mon Jul 28 18:34:45 2008 +0900
sh: Wire up new syscalls.
This wires up the signalfd4, eventfd2, epoll_create1, dup3, pipe2, and
inotify_init1 syscalls.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 82cb1f6fb3f69518eaa4ab9c0fa7eabc253ad26f
Author: Yoshihiro Shimoda <shimoda.yoshihiro at renesas.com>
Date: Wed Jul 23 16:49:06 2008 +0900
sh: fix uImage Entry Point
fix the problem that cannot boot using uImage when PAGE_SIZE is
8kbyte or 64kbyte.
Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro at renesas.com>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit d3aa43a9db3b18e65f91985b5b91f2450d8b4048
Author: Tetsuya Mukawa <mukawa at igel.co.jp>
Date: Sat Jul 19 07:46:53 2008 +0900
sh_keysc: remove request_mem_region() and release_mem_region()
Remove request_mem_region() and release_mem_region() from sh_keysc driver.
Those functions can find resource conflict, but it is already checked in
platform_device_add().
Signed-off-by: Tetsuya Mukawa <mukawa at igel.co.jp>
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Cc: Dmitry Torokhov <dtor at mail.ru>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 0b1689cfbbc5e81a121f550782a201962c1e0ce0
Author: Stuart MENEFY <stuart.menefy at st.com>
Date: Thu Jul 17 13:08:40 2008 +0100
sh: Don't miss pending signals returning to user mode after signal processing
Without this patch, signals sent during architecture specific signal
handling (typically as a result of the user's stack being inaccessible)
are ignored.
This is the SH version of commit c3ff8ec31c1249d268cd11390649768a12bec1b9
which was for the i386.
Signed-off-by: Stuart Menefy <stuart.menefy at st.com>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit d7f1a9adc0e34ad4aa4fe246b264add4646ae064
Author: Magnus Damm <damm at igel.co.jp>
Date: Thu Jul 17 19:20:11 2008 +0900
sh: Use clk_always_enable() on sh7366
Use clk_always_enable() in the sh7366 processor code.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 8fa509ab915f668093c270151f884220232bfb25
Author: Magnus Damm <damm at igel.co.jp>
Date: Thu Jul 17 19:18:24 2008 +0900
sh: Use clk_always_enable() on sh7343 / SE77343
Use clk_always_enable() on the sh7343 processor and in the board code
for Solution Engine 7343. Remove duplicate MSTPCR register definitions.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 6c7d826cf6ff05264f9af04410aee82a08edfb9f
Author: Magnus Damm <damm at igel.co.jp>
Date: Thu Jul 17 19:16:11 2008 +0900
sh: Use clk_always_enable() on sh7722 / Migo-R / SE7722
Use clk_always_enable() on the sh7722 processor and in the board code
for Migo-R and Solution Engine 7722. Remove duplicate MSTPCR register
definitions.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 9ca6ecac505002d0c34b47b394f39aa14b0e6fb6
Author: Magnus Damm <damm at igel.co.jp>
Date: Thu Jul 17 19:13:34 2008 +0900
sh: Use clk_always_enable() on sh7723 / ap325rxa
Use clk_always_enable() on the sh7723 processor and in the ap325rxa
board code. Remove duplicate MSTPCR register definitions.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit de9254263b8c8b1809520a1009dd516e41976519
Author: Magnus Damm <damm at igel.co.jp>
Date: Thu Jul 17 19:09:51 2008 +0900
sh: Introduce clk_always_enable() function
Add SuperH specific funcion clk_always_enable(), useful to enable MSTPCR
bits in processor or board specific code.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 152fe36ebee82b63a9c6e510c52aaa82f4b1940d
Author: Magnus Damm <damm at igel.co.jp>
Date: Thu Jul 17 19:05:54 2008 +0900
sh: Show all clocks and their state in /proc/clocks
Show all clocks in /proc/clocks, and also show if they are enabled or
disabled. This is useful to show MSTPCR bits on SuperH Mobile processors.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 1312994c8008d66806d9452c15d50df86a031437
Author: Magnus Damm <damm at igel.co.jp>
Date: Thu Jul 17 19:02:23 2008 +0900
sh: Merge sh7343 and sh7722 clock code
This code makes sh7343 share the sh7722 clock code. Instead of just using
the good and very old sh7343 clock implmentation, switch to the new MSTPCR
enabled clock code. SIU clocks are disabled on sh7343 for now.
With this change all SuperH Mobile devices now use the same clock code.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit aea167cbb5c9056295109e5e171d27e30e2be5bc
Author: Magnus Damm <damm at igel.co.jp>
Date: Thu Jul 17 18:56:15 2008 +0900
sh: Add SuperH Mobile MSTPCR bits to clock framework
Handle module stop clock bits in MSTPCRn through the clock framework.
The clocks are named after the bits in the data sheet. The association
between bit number and hardware block is processor specific.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 3fec18bd603c3a55aeb325121a3e752f647641be
Author: Magnus Damm <damm at igel.co.jp>
Date: Thu Jul 17 18:52:19 2008 +0900
sh: Use arch_flags to simplify sh7722 siu clock code
Make use of arch_flags to simplify the SIU clock code.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 5c8f9d94fea98596db255a579f5d02a0195abda7
Author: Magnus Damm <damm at igel.co.jp>
Date: Thu Jul 17 18:48:57 2008 +0900
sh: Add arch_flags to struct clk
Add arch_flags to struct clk so we can keep per-clock private data
somewhere and share code between multiple clocks.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit c46acb8e2093779bda393f028099477f98cfef3c
Author: Adrian Bunk <bunk at kernel.org>
Date: Wed Jul 16 19:45:40 2008 +0300
fix sh ptep_get_and_clear breakage
Commit 1ea0704e0da65b2b46f9142ff1391163aac24060
(mm: add a ptep_modify_prot transaction abstraction)
triggered on sh build errors like the following:
<-- snip -->
...
CC arch/sh/mm/pg-sh4.o
cc1: warnings being treated as errors
include2/asm/pgtable.h:139: error: 'ptep_get_and_clear' declared inline after being called
include2/asm/pgtable.h:139: error: previous declaration of 'ptep_get_and_clear' was here
make[2]: *** [arch/sh/mm/pg-sh4.o] Error 1
<-- snip -->
Since there's no good reason for marking these global functions as
"inline" this patch therefore removes the inline's.
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit cbe9da029d9cc4fff59d559789885079a84a0af8
Author: Yoshihiro Shimoda <shimoda.yoshihiro at renesas.com>
Date: Wed Jul 16 20:21:09 2008 +0900
sh: Renesas R0P7785LC0011RL board support
This adds initial support for the Renesas R0P7785LC0011RL board.
This patch supports 29bit address mode only.
Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro at renesas.com>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 1eca5c92729a83f64826d15a9ecb1652dda54bcb
Author: Magnus Damm <damm at igel.co.jp>
Date: Wed Jul 16 19:02:54 2008 +0900
sh: Add memory chunks to SH-Mobile UIO devices
This patch adds physically contiguous memory chunks to the UIO devices.
The same strategy can be used in the future for the CEU as well.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 714750dd5c6aef8e204d35ba28c1be9641418671
Author: Magnus Damm <damm at igel.co.jp>
Date: Tue Jul 15 21:55:03 2008 +0900
sh: Export sh7366 VPU, VEU(1), VEU(2) using uio_pdrv_genirq
This patch exports the VPU, VEU(1) and VEU(2) blocks of the sh7366
to user space using the uio_pdrv_genirq platform driver.
While at it, fix up the VEU(2) interrupt vector.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 6874548c69d02fabb8bea12d8c0f5600c1176769
Author: Magnus Damm <damm at igel.co.jp>
Date: Tue Jul 15 21:53:33 2008 +0900
sh: Export sh7723 VPU, VEU2H0, VEU2H1 using uio_pdrv_genirq
This patch exports the VPU, VEU2H0 and VEU2H1 blocks of the sh7723
to user space using the uio_pdrv_genirq platform driver.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit a55f6d2567008699d705a006f2432bf3e872b743
Author: Magnus Damm <damm at igel.co.jp>
Date: Tue Jul 15 21:52:19 2008 +0900
sh: Export sh7722 VPU and VEU using uio_pdrv_genirq
This patch exports the VPU and VEU blocks of the sh7722 to user space
using the uio_pdrv_genirq platform driver.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit c901c96cc25f6143a7d2fb59c3287f868e84a69e
Author: Magnus Damm <damm at igel.co.jp>
Date: Tue Jul 15 21:51:39 2008 +0900
sh: Export sh7343 VPU and VEU using uio_pdrv_genirq
This patch exports the VPU and VEU blocks of the sh7343 to user space
using the uio_pdrv_genirq platform driver.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 6e80f5e8c4c685eb7bc34c3916e3d986b03f9981
Author: Yoshinori Sato <ysato at users.sourceforge.jp>
Date: Thu Jul 10 01:20:03 2008 +0900
sh2(A) exception handler update
This patch is
By sh2
- Remove duplicate code
- Reduce stack usage
- Cleanup and little optimize
By sh2a
- Add missing handler(256 to 511)
- Use sh2a instructions handler
Signed-off-by: Yoshinori Sato <ysato at users.sourceforge.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit cafd63b0076b78bc8f114abbeb724c7e5f5bfe5d
Author: Yoshihiro Shimoda <shimoda.yoshihiro at renesas.com>
Date: Mon Jul 7 21:11:54 2008 +0900
sh: update Solution Engine 7343
updated the following codes for Solution Endine 7343:
- fix compile error in arch/sh/boards/se/7343/irq.c
- add nor flash physmaps
- update defconfig
Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro at renesas.com>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit a4e1d08491b06b17eb77c92caacd40b330ca8146
Author: Yoshihiro Shimoda <shimoda.yoshihiro at renesas.com>
Date: Mon Jul 7 21:11:51 2008 +0900
sh: update sh7343 code
updated the following codes for SH7343:
- add register_intc_controller()
- add EARLY_SCIF_CONSOLE_PORT
- add define of CPG register
Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro at renesas.com>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 73382f710b83b84b3cffb1f4850f5292c12edfd2
Author: Magnus Damm <magnus.damm at gmail.com>
Date: Sat Jul 5 12:33:30 2008 +0900
sh: fix pg-sh4.c build breakage in linux-next
Remove inline from ptep_get_and_clean() to match with header file prototype.
Makes linux-next build.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 026953db56e6244c8c80be8e211e244ff6015992
Author: Magnus Damm <magnus.damm at gmail.com>
Date: Sat Jul 5 12:32:44 2008 +0900
sh: enable I2C on the ap325rxa board
This patch enables I2C on the sh7723-based ap325rxa board.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 0fff76f2da9dd0cd1918822cdc99d0191f9b78cf
Author: Magnus Damm <magnus.damm at gmail.com>
Date: Sat Jul 5 12:32:23 2008 +0900
sh: add SuperH Mobile I2C platform data to sh7366
This patch adds platform data for the single I2C channel on sh7366.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit da7d3029d1bbcd3d6489f4524056598ec030d3b0
Author: Magnus Damm <magnus.damm at gmail.com>
Date: Sat Jul 5 12:32:06 2008 +0900
sh: add SuperH Mobile I2C platform data to sh7723
This patch adds platform data for the single I2C channel on sh7723.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 7549079d846651ee24150a24f9bb3b6e06ae67db
Author: Magnus Damm <magnus.damm at gmail.com>
Date: Sat Jul 5 12:31:46 2008 +0900
sh: add SuperH Mobile I2C platform data to sh7343
This patch adds platform data for two I2C channels to the sh7343.
Signed-off-by: Magnus Damm <damm at igel.co.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 6bdfb22a8e1ffa37ae4ad35b87cb02958d1901e5
Author: Yoshihiro Shimoda <shimoda.yoshihiro at renesas.com>
Date: Fri Jul 4 12:37:12 2008 +0900
sh: add interrupt ack code to sh4a
This patch is based on interrupt acknowledge code for external
interrupt sources on sh3 processors and adds on sh4a processors.
Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro at renesas.com>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit f12ae6bc4ad0054386b380dbf90e63617cd5ab92
Author: Yoshinori Sato <ysato at users.sourceforge.jp>
Date: Fri Jul 4 12:54:51 2008 +0900
sh: Fix up link error on SH-2 zImage with older binutils.
Signed-off-by: Yoshinori Sato <ysato at users.sourceforge.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit f2fb4e4f647dabf1177d3ce164988e73482d76b1
Author: Stuart Menefy <stuart.menefy at st.com>
Date: Wed Jul 2 17:51:23 2008 +0900
sh: Conditionally re-enable IRQs in fault path.
The current kernel behaviour is to reenable interrupts unconditionally
when taking a page fault. This patch changes this to only enable them
if interrupts were previously enabled.
It also fixes a problem seen with this fix in place: the kernel previously
flushed the vsyscall page when handling a signal, which is not only
unncessary, but caused a possible sleep with interrupts disabled.
Signed-off-by: Stuart Menefy <stuart.menefy at st.com>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 068f59143d821553e7a55cdbd69142b05e245d47
Author: Paul Mundt <lethal at linux-sh.org>
Date: Wed Jul 2 17:46:40 2008 +0900
sh: Record the major cut revision for probed SH-4A parts.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 09b5a10c1944214a6008712bfa92b29f00b84a1a
Author: Chris Smith <chris.smith at st.com>
Date: Wed Jul 2 15:17:11 2008 +0900
sh: Optimized flush_icache_range() implementation.
Add implementation of flush_icache_range() suitable for signal handler
and kprobes. Remove flush_cache_sigtramp() and change signal.c to use
flush_icache_range().
Signed-off-by: Chris Smith <chris.smith at st.com>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 3611ee7acc113e5e482b7d20d5133935226f3129
Author: Stuart Menefy <stuart.menefy at st.com>
Date: Wed Jul 2 15:15:09 2008 +0900
sh: Stub in silicon cut in CPU info.
Signed-off-by: Stuart Menefy <stuart.menefy at st.com>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit ef9247ef89be79ffbd9faaf722e05b7bed14fc1e
Author: Paul Mundt <lethal at linux-sh.org>
Date: Wed Jul 2 13:58:38 2008 +0900
sh: Tidy up the SH-3 exception vector table.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit d88a3ea6fa4c98d482240a6a85945ed448b7671d
Author: Yoshinori Sato <ysato at users.sourceforge.jp>
Date: Tue Jul 1 22:20:24 2008 -0400
SH7619 add ethernet controler support
- Add EtherC + PHY resource define.
Signed-off-by: Yoshinori Sato <ysato at users.sourceforge.jp>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit fafb7a97de73a917a875048801bd81cf64f79e4a
Author: Nobuhiro Iwamatsu <iwamatsu.nobuhiro at renesas.com>
Date: Tue Jun 24 13:00:52 2008 +0900
sh: Remove sh_pcic_io_xxx function from Solution Engine IO code
sh_pcic_io_xxx function are very old.
In linux-2.4, mrshpc_ss socket driver used this function.
But there is not this driver to the present kernel.
I deleted these cords and checked operation.
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro at renesas.com>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 7c93d87d09813e32724b572530abe5b5405ab1d1
Author: Nobuhiro Iwamatsu <iwamatsu.nobuhiro at renesas.com>
Date: Thu Jun 19 19:27:55 2008 +0900
sh: Fix Kconfig of AP-325RXA
The CPU of AP-325RXA is SH7723, but a CPU becomes selectable.
This patch fixes this problem.
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro at renesas.com>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 787d9d7e89c3952db12d9e4bb02ba5c5a85f6b7f
Author: Nobuhiro Iwamatsu <iwamatsu.nobuhiro at renesas.com>
Date: Wed Jun 18 18:32:03 2008 +0900
sh: Clean up code of Solution Engine 770x
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro at renesas.com>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit b2e4c109a8a49d1df37572a12e3261e9c7361cc7
Author: Nobuhiro Iwamatsu <iwamatsu.nobuhiro at renesas.com>
Date: Wed Jun 18 18:31:46 2008 +0900
sh: Update Solution Enginge 7712 defconfig
Enable SH-Ether support and NFS userland support.
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro at renesas.com>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit ffb91ad2751723bcc9925cd38e37013e2169e256
Author: Nobuhiro Iwamatsu <iwamatsu.nobuhiro at renesas.com>
Date: Wed Jun 18 18:29:06 2008 +0900
sh: Solution Enginge 7710/7712 SH-Ether support
Add support SH-Ether for Hitachi Solution Engine.
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro at renesas.com>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 4c1cfab1e0f9a41246cfdcca78f3700fb67f0a5c
Author: Adrian Bunk <bunk at kernel.org>
Date: Wed Jun 18 03:36:50 2008 +0300
sh/kernel/ cleanups
This patch contains the following cleanups:
- make the following needlessly global code static:
- cf-enabler.c: cf_init()
- cpu/clock.c: __clk_enable()
- cpu/clock.c: __clk_disable()
- process_32.c: default_idle()
- time_32.c: struct clocksource_sh
- timers/timer-tmu.c: struct tmu_timer_ops
- remove the following unused functions (no CONFIG_BLK_DEV_FD on sh):
- process_{32,64}.c: disable_hlt()
- process_{32,64}.c: enable_hlt()
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 62410034e79d9249647d1fe6f6f35a06b3747e68
Author: Adrian Bunk <bunk at kernel.org>
Date: Wed Jun 18 01:33:40 2008 +0300
sh: make pcibios_max_latency static
This patch makes the needlessly global pcibios_max_latency static.
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 175fb09f4a770fd542947e8c3f4e6dbf07debea9
Author: Adrian Bunk <bunk at kernel.org>
Date: Wed Jun 18 01:31:03 2008 +0300
sh: make EARLY_PCI_OP's static
This patch makes the needlessly global EARLY_PCI_OP's static.
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 2b7bf930ae762d3124317e36f26a7567dc04e835
Author: Adrian Bunk <bunk at kernel.org>
Date: Wed Jun 18 01:30:57 2008 +0300
sh/boards/dreamcast/rtc.c: make 2 functions static
This patch makes the needlessly global aica_rtc_{get,set}timeofday()
static.
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 306cfd630a4d121cf4e08b894d8b4c4cf106e57e
Author: Adrian McMenamin <adrian at newgolddream.dyndns.info>
Date: Sun Jun 15 20:48:09 2008 +0100
maple: tidy maple_driver code by removing redundant connect/disconnect
The connect and disconnect functions are unnecessary - everything they do can be
accomplished in the initial probe - so remove them.
Signed-off-by: Adrian McMenamin <adrian at mcmen.demon.co.uk>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 4cec1a37ba7d9dce6ed5d8259b95272100a98b1f
Author: Nobuhiro Iwamatsu <iwamatsu.nobuhiro at renesas.com>
Date: Fri Jun 6 17:04:56 2008 +0900
sh: Renesas Solutions SH7763RDP board support
This patch adds basic support for the SH7763RDP board.
This supports a basic stuff provided in SH7763, like SCIF,
NOR Flash and USB host.
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro at renesas.com>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit c63847a3621d2bac054f5709783860ecabd0ee7e
Author: Nobuhiro Iwamatsu <iwamatsu.nobuhiro at renesas.com>
Date: Fri Jun 6 17:04:08 2008 +0900
sh: Add SCIF2 support for SH7763.
SH7763 has 3 SCIF device. Current code supports SCIF0 and 1.
SCIF0 and 1 are same register constitution, but only SCIF2 is different.
I added support of SCIF2.
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro at renesas.com>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 04e917b606ffe6ec10fb75c21447162cba31f6b6
Author: Yusuke Goda <goda.yusuke at renesas.com>
Date: Fri Jun 6 17:03:23 2008 +0900
sh: Add support Renesas Solutions AP-325RXA board
This board is SH7723 base board.
This has SCIF, LCDC, USB Host controler, NOR/NAND Flash, Sound,
Ether and other.
This patch supports SCIF, NOR Flash.
Signed-off-by: Yusuke Goda <goda.yusuke at renesas.com>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 42fd3b142d8867f5b58d6fb75592cd20fd654c1b
Author: Paul Mundt <lethal at linux-sh.org>
Date: Tue Jun 3 20:05:39 2008 +0900
sh: Initial consolidation of the _32/_64 uaccess split.
This consolidates everything but the bare assembly routines, which we
will sync up in a follow-up patch.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 31f6a11fe764dc580b645d7aa878854fa9e85a06
Author: Paul Mundt <lethal at linux-sh.org>
Date: Tue Jun 3 19:38:22 2008 +0900
sh: Consolidate addr/access_ok across mmu/nommu on 32bit.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 85247285ea6f6e2087193b2a720404690e9cb1b3
Author: Paul Mundt <lethal at linux-sh.org>
Date: Tue Jun 3 19:37:35 2008 +0900
sh: Use the common segment definitions for the _64 uaccess routines.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 66dfe18114839a7297f56f43f03125f4121de79b
Author: Paul Mundt <lethal at linux-sh.org>
Date: Tue Jun 3 18:54:02 2008 +0900
sh: Add support for 16kB PAGE_SIZE.
16kB is a useful size on nommu, while 64kB still tends to be too big to
be useful. Newer MMUs are likely to support this as well, so plug it
in in anticipation of those, too.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 74fcc77982e703fe85d8bd5437130fd94c61daee
Author: Paul Mundt <lethal at linux-sh.org>
Date: Tue Jun 3 18:52:11 2008 +0900
sh: Support variable page sizes on nommu.
PAGE_SIZE doesn't need to be fixed at 4096 on nommu, so stub in a !MMU
case for the various PAGE_SIZE Kconfig options.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 02f7e627f9248a478cf790112a07ae2c612b895a
Author: Paul Mundt <lethal at linux-sh.org>
Date: Tue Jun 3 18:48:54 2008 +0900
sh: Consolidate segment modifiers across mmu/nommu systems.
This moves get_fs/set_fs() and friends in to asm/segment.h. The
mm_segment_t definition is likewise consolidated from the _32/_64 split.
This is prepatory groundwork for using the generic address space limit
and verification routines across mmu/nommu configs.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 3787aa112c653b34b6f901b2eaae2b62f9582569
Author: Paul Mundt <lethal at linux-sh.org>
Date: Mon May 19 16:47:56 2008 +0900
sh: RSK+ 7203 board support.
This adds initial support for the RTE RSK+ SH7203 board.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 2cd1e31859837155033b4b731de61066d5da50ab
Author: Paul Mundt <lethal at linux-sh.org>
Date: Mon May 19 14:00:44 2008 +0900
sh: Make dump_task dependent on ELF core.
Currently this is only linked in for CONFIG_BINFMT_ELF, make it dependent
on CONFIG_ELF_CORE, so it's both selectable there and also linked in for
CONFIG_BINFMT_ELF_FDPIC.
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 3bc24a1a5441ef621daf737ec93b0a10e8999d59
Author: Paul Mundt <lethal at linux-sh.org>
Date: Mon May 19 13:40:12 2008 +0900
sh: Initial ELF FDPIC support.
This adds initial support for ELF FDPIC on MMU-less SH, as per version
0.2 of the ABI definition at:
http://www.codesourcery.com/public/docs/sh-fdpic/sh-fdpic-abi.txt
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 9b14ec35f03d89c88cba225add8b6eca15203964
Author: Paul Mundt <lethal at linux-sh.org>
Date: Mon May 19 13:34:45 2008 +0900
binfmt_elf_fdpic: Magical stack pointer index, for NEW_AUX_ENT compat.
While implementing binfmt_elf_fdpic on SH it quickly became apparent
that SH was the first platform to support both binfmt_elf_fdpic and
binfmt_elf, as well as the only of the FDPIC platforms to make use of the
auxvt.
Currently binfmt_elf_fdpic uses a special version of NEW_AUX_ENT() where
the first argument is the entry displacement after csp has been adjusted,
being reset after each adjustment. As we have no ability to sort this out
through the platform's ARCH_DLINFO, this index needs to be managed
entirely in create_elf_fdpic_tables(). Presently none of the platforms
that set their own auxvt entries are able to do so through their
respective ARCH_DLINFOs when using binfmt_elf_fdpic.
In addition to this, binfmt_elf_fdpic has been looking at
DLINFO_ARCH_ITEMS for the number of architecture-specific entries in the
auxvt. This is legacy cruft, and is not defined by any platforms in-tree,
even those that make heavy use of the auxvt. AT_VECTOR_SIZE_ARCH is
always available, and contains the number that is of interest here, so we
switch to using that unconditionally as well.
As this has direct bearing on how much stack is used, platforms that have
configurable (or dynamically adjustable) NEW_AUX_ENT calls need to either
make AT_VECTOR_SIZE_ARCH more fine-grained, or leave it as a worst-case
and live with some lost stack space if those entries aren't pushed (some
platforms may also need to purposely sacrifice some space here for
alignment considerations, as noted in the code -- although not an issue
for any FDPIC-capable platform today).
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
Acked-by: David Howells <dhowells at redhat.com>
commit e3b08600902e119b34ca03c4aaf99bde4b173dde
Author: Adrian Bunk <bunk at kernel.org>
Date: Wed Jun 18 01:30:53 2008 +0300
move arch/sh/lib/io.o to obj-y
EXPORT_SYMBOL's in lib-y considered harmful:
<-- snip -->
...
MODPOST 1837 modules
ERROR: "__raw_readsl" [drivers/ssb/ssb.ko] undefined!
ERROR: "__raw_writesl" [drivers/ssb/ssb.ko] undefined!
ERROR: "__raw_writesl" [drivers/net/smc91x.ko] undefined!
ERROR: "__raw_readsl" [drivers/net/smc91x.ko] undefined!
ERROR: "__raw_writesl" [drivers/net/3c59x.ko] undefined!
ERROR: "__raw_readsl" [drivers/net/3c59x.ko] undefined!
...
make[2]: *** [__modpost] Error 1
<-- snip -->
Reported-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 7223ce29e8ca7313a75e8b902718c867d5997bb7
Author: Adrian Bunk <bunk at kernel.org>
Date: Wed Jun 18 01:30:40 2008 +0300
sh dreamcast: export board_pci_channels
This patch fixes the following build error:
<-- snip -->
...
MODPOST 1837 modules
ERROR: "board_pci_channels" [drivers/pcmcia/yenta_socket.ko] undefined!
...
make[2]: *** [__modpost] Error 1
<-- snip -->
I freely admit that it's a pathological configuration, but as long as
it is allowed it should build.
Reported-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit b19a33cabafbac56ba581e2a77ea6476db9118ab
Author: Adrian Bunk <bunk at kernel.org>
Date: Wed Jun 18 01:30:24 2008 +0300
sh: export get_cpu_subtype
This patch fixes the following build error:
<-- snip -->
...
MODPOST 1837 modules
ERROR: "get_cpu_subtype" [arch/sh/oprofile/oprofile.ko] undefined!
...
make[2]: *** [__modpost] Error 1
<-- snip -->
Reported-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 82706b8f7bd1365e50478d3d0f6090f22e4571c7
Author: Khem Raj <raj.khem at gmail.com>
Date: Thu Jul 3 19:02:41 2008 +0900
sh: Prevent leaking of CONFIG_SUPERH32 to userspace in asm/unistd.h.
CONFIG_SUPERH32 is currently trickling into userspace unistd.h. Attached
patch uses __SH5__ define in userspace.
Signed-off-by: Khem Raj <raj.khem at gmail.com>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit 45dabf1427a0a876f733b07239ade1bdb0e06010
Author: Li Zefan <lizf at cn.fujitsu.com>
Date: Tue Jun 24 13:30:23 2008 +0800
sh: fix seq_file memory leak
When using single_open(), single_release() should be used instead
of seq_release(), otherwise there is a memory leak.
Signed-off-by: Li Zefan <lizf at cn.fujitsu.com>
Signed-off-by: Paul Mundt <lethal at linux-sh.org>
commit f13fae2d2a9372a5155d20bc9da4c14f02193277
Author: Christoph Hellwig <hch at infradead.org>
Date: Mon Jul 21 16:16:15 2008 +1000
[XFS] Remove vn_revalidate calls in xfs.
These days most of the attributes in struct inode are properly kept in
sync by XFS. This patch removes the need for vn_revalidate completely by:
- keeping inode.i_flags uptodate after any flags are updated in
xfs_ioctl_setattr
- keeping i_mode, i_uid and i_gid uptodate in xfs_setattr
SGI-PV: 984566
SGI-Modid: xfs-linux-melb:xfs-kern:31679a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: Tim Shimmin <tes at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 0f285c8a1c4cacfd9f2aec077b06e2b537ee57ab
Author: Christoph Hellwig <hch at infradead.org>
Date: Fri Jul 18 17:13:28 2008 +1000
[XFS] Now that xfs_setattr is only used for attributes set from ->setattr
it can be switched to take struct iattr directly and thus simplify the
implementation greatly. Also rename the ATTR_ flags to XFS_ATTR_ to not
conflict with the ATTR_ flags used by the VFS.
SGI-PV: 984565
SGI-Modid: xfs-linux-melb:xfs-kern:31678a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: Tim Shimmin <tes at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 25fe55e814a2964c7e16d16a5d08cae6e9313a3a
Author: Christoph Hellwig <hch at infradead.org>
Date: Fri Jul 18 17:13:20 2008 +1000
[XFS] xfs_setattr currently doesn't just handle the attributes set through
->setattr but also addition XFS-specific attributes: project id, inode
flags and extent size hint. Having these in a single function makes it
more complicated and forces to have us a bhv_vattr intermediate structure
eating up stackspace.
This patch adds a new xfs_ioctl_setattr helper for the XFS ioctls that set
these attributes and remove the code to set them through xfs_setattr.
SGI-PV: 984564
SGI-Modid: xfs-linux-melb:xfs-kern:31677a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: Tim Shimmin <tes at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit c032bfcf468013643e05c8274824af10dd7cbb61
Author: Lachlan McIlroy <lachlan at sgi.com>
Date: Fri Jul 18 17:13:12 2008 +1000
[XFS] fix use after free with external logs or real-time devices
SGI-PV: 983806
SGI-Modid: xfs-linux-melb:xfs-kern:31666a
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
Signed-off-by: Christoph Hellwig <hch at infradead.org>
commit 6a617dd22bdbf5a4c9828db98c1a8b076c9e95c8
Author: Tim Shimmin <tes at sgi.com>
Date: Fri Jul 18 17:13:04 2008 +1000
[XFS] A bug was found in xfs_bmap_add_extent_unwritten_real(). In a
particular case, the delta param which is supposed to describe the region
where extents have changed was not updated appropriately.
SGI-PV: 984030
SGI-Modid: xfs-linux-melb:xfs-kern:31663a
Signed-off-by: Tim Shimmin <tes at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
Signed-off-by: Olaf Weber <olaf at sgi.com>
commit 766b0925c07cd363c17ff54ebf59b6d34d8042d5
Author: Christoph Hellwig <hch at infradead.org>
Date: Fri Jul 18 17:12:50 2008 +1000
[XFS] fix compilation without CONFIG_PROC_FS
SGI-PV: 984019
SGI-Modid: xfs-linux-melb:xfs-kern:31408a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: Tim Shimmin <tes at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 26cc0021805e66daa6342174fb5a8c1c862f7c8e
Author: Christoph Hellwig <hch at infradead.org>
Date: Fri Jul 18 17:12:43 2008 +1000
[XFS] s/XFS_PURGE_INODE/IRELE/g s/VN_HOLD(XFS_ITOV())/IHOLD()/
SGI-PV: 981498
SGI-Modid: xfs-linux-melb:xfs-kern:31405a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: Tim Shimmin <tes at sgi.com>
Signed-off-by: David Chinner <dgc at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 62a877e35d5085c65936ed3194d1bbaf84f419e1
Author: Christoph Hellwig <hch at infradead.org>
Date: Fri Jul 18 17:12:36 2008 +1000
[XFS] fix mount option parsing in remount
Remount currently happily accept any option thrown at it, although the
only filesystem specific option it actually handles is barrier/nobarrier.
And it actually doesn't handle these correctly either because it only uses
the value it parsed when we're doing a ro->rw transition. In addition to
that there's also a bad bug in xfs_parseargs which doesn't touch the
actual option in the mount point except for a single one,
XFS_MOUNT_SMALL_INUMS and thus forced any filesystem that's every
remounted in some way to not support 64bit inodes with no way to recover
unless unmounted.
This patch changes xfs_fs_remount to use it's own linux/parser.h based
options parse instead of xfs_parseargs and reject all options except for
barrier/nobarrier and to the right thing in general. Eventually I'd like
to have a single big option table used for mount aswell but that can wait
for a while.
SGI-PV: 983964
SGI-Modid: xfs-linux-melb:xfs-kern:31382a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: Tim Shimmin <tes at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit deeb5912db12e8b7ccf3f4b1afaad60bc29abed9
Author: Eric Sandeen <sandeen at sandeen.net>
Date: Fri Jul 18 17:12:18 2008 +1000
[XFS] Disable queue flag test in barrier check.
md raid1 can pass down barriers, but does not set an ordered flag on the
queue, so xfs does not even attempt a barrier write, and will never use
barriers on these block devices.
Remove the flag check and just let the barrier write test determine
barrier support.
A possible risk here is that if something does not set an ordered flag and
also does not properly return an error on a barrier write... but if it's
any consolation jbd/ext3/reiserfs never test the flag, and don't even do a
test write, they just disable barriers the first time an actual journal
barrier write fails.
SGI-PV: 983924
SGI-Modid: xfs-linux-melb:xfs-kern:31377a
Signed-off-by: Eric Sandeen <sandeen at sandeen.net>
Signed-off-by: Tim Shimmin <tes at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 9f8868ffb39c2f80ba69df4552cb530b6634f646
Author: Christoph Hellwig <hch at infradead.org>
Date: Fri Jul 18 17:11:46 2008 +1000
[XFS] streamline init/exit path
Currently the xfs module init/exit code is a mess. It's farmed out over a
lot of function with very little error checking. This patch makes sure we
propagate all initialization failures properly and clean up after them.
Various runtime initializations are replaced with compile-time
initializations where possible to make this easier. The exit path is
similarly consolidated.
There's now split out function to create/destroy the kmem zones and
alloc/free the trace buffers. I've also changed the ktrace allocations to
KM_MAYFAIL and handled errors resulting from that.
And yes, we really should replace the XFS_*_TRACE ifdefs with a single
XFS_TRACE..
SGI-PV: 976035
SGI-Modid: xfs-linux-melb:xfs-kern:31354a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: Niv Sardi <xaiki at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 136f8f21b6d564f553abe6130127d16fb50432d3
Author: Tim Shimmin <tes at sgi.com>
Date: Fri Jun 27 13:34:42 2008 +1000
[XFS] Fix up problem when CONFIG_XFS_POSIX_ACL is not set and yet we still
can use the _ACL_TYPE_* definitions in linux-2.6/xfs_xattr.c. The
forthcoming generic acl code will also fix this problem.
SGI-PV: 982343
SGI-Modid: xfs-linux-melb:xfs-kern:31369a
Signed-off-by: Tim Shimmin <tes at sgi.com>
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 2edbddd5f46cc123b68c11179115041c54759fa2
Author: Lachlan McIlroy <lachlan at sgi.com>
Date: Fri Jun 27 13:34:34 2008 +1000
[XFS] Don't assert if trying to mount with blocksize > pagesize
If we don't do the blocksize/PAGESIZE check before calling
xfs_sb_validate_fsb_count() we can assert if we try to mount with a
blocksize > pagesize. The assert is valid so leave it and just move the
blocksize/pagesize check earlier.
SGI-PV: 983734
SGI-Modid: xfs-linux-melb:xfs-kern:31365a
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
Signed-off-by: David Chinner <dgc at sgi.com>
commit 8f8670bb1cfa177d35c54e4cc96152dc425a7ab3
Author: Christoph Hellwig <hch at infradead.org>
Date: Fri Jun 27 13:34:26 2008 +1000
[XFS] Don't update mtime on rename source
As reported by Michael-John Turner XFS updates the mtime on the source
inode of a rename call in case it's a directory and changes the parent.
This doesn't make any sense, is not mentioned in the standards and not
performed by any other Linux filesystems so remove it.
SGI-PV: 983684
SGI-Modid: xfs-linux-melb:xfs-kern:31364a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: Barry Naujok <bnaujok at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 313b5c767a044c7a0db5e773cb7aea70383b2627
Author: Lachlan McIlroy <lachlan at sgi.com>
Date: Fri Jun 27 13:33:11 2008 +1000
[XFS] Allow xfs_bmbt_split() to fallback to the lowspace allocator
algorithm
If xfs_bmbt_split() cannot find an AG with sufficient free space to
satisfy a full extent btree split then fall back to the lowspace allocator
algorithm.
SGI-PV: 983338
SGI-Modid: xfs-linux-melb:xfs-kern:31359a
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
Signed-off-by: David Chinner <dgc at sgi.com>
commit b877e3d37dda0154868a3c78f02f38a1ec14ce79
Author: Lachlan McIlroy <lachlan at sgi.com>
Date: Fri Jun 27 13:33:03 2008 +1000
[XFS] Restore the lowspace extent allocator algorithm
When free space is running low the extent allocator may choose to allocate
an extent from an AG without leaving sufficient space for a btree split
when inserting the new extent (see where xfs_bmap_btalloc() sets minleft
to 0). In this case the allocator will enable the lowspace algorithm which
is supposed to allow further allocations (such as btree splits and
newroots) to allocate from sequential AGs. This algorithm has been broken
for a long time and this patch restores its behaviour.
SGI-PV: 983338
SGI-Modid: xfs-linux-melb:xfs-kern:31358a
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
Signed-off-by: David Chinner <dgc at sgi.com>
commit 4ddd8bb1d25f9cbb345e1f64a56c0f641a787ede
Author: Lachlan McIlroy <lachlan at sgi.com>
Date: Fri Jun 27 13:32:53 2008 +1000
[XFS] use minleft when allocating in xfs_bmbt_split()
The bmap btree split code relies on a previous data extent allocation
(from xfs_bmap_btalloc()) to find an AG that has sufficient space to
perform a full btree split, when inserting the extent. When converting
unwritten extents we don't allocate a data extent so a btree split will be
the first allocation. In this case we need to set minleft so the allocator
will pick an AG that has space to complete the split(s).
SGI-PV: 983338
SGI-Modid: xfs-linux-melb:xfs-kern:31357a
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
Signed-off-by: David Chinner <dgc at sgi.com>
commit e182f57ac019b034b40d16f3c6d8e86826aecd56
Author: Christoph Hellwig <hch at infradead.org>
Date: Fri Jun 27 13:32:31 2008 +1000
[XFS] attrmulti cleanup
xfs_attrmulti_by_handle currently request the size based on
sizeof(attr_multiop_t) but should be using sizeof(xfs_attr_multiop_t)
because that is what it is dealing with. Despite beeing wrong this
actually harmless in practice because both structures are the same size on
all platforms.
But this sizeof was the only user of struct attr_multiop so we can just
kill it. Also move the ATTR_OP_* defines xfs_attr.h into the struct
xfs_attr_multiop defintion in xfs_fs.h because they are only used with
that structure, and are part of the user ABI for the
XFS_IOC_ATTRMULTI_BY_HANDLE ioctl.
SGI-PV: 983508
SGI-Modid: xfs-linux-melb:xfs-kern:31352a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: Tim Shimmin <tes at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 90ad58a83accbeb8de09de4a55d3e6b429767eae
Author: Christoph Hellwig <hch at infradead.org>
Date: Fri Jun 27 13:32:19 2008 +1000
[XFS] Check for invalid flags in xfs_attrlist_by_handle.
xfs_attrlist_by_handle should only take the ATTR_ flags for the root
namespaces. The ATTR_KERN* flags may change at anytime and expect special
preconditions that can't be guaranteed for userspace-originating requests.
For example passing down ATTR_KERNNOVAL through xfs_attrlist_by_handle
will hit an assert in debug builds currently.
SGI-PV: 983677
SGI-Modid: xfs-linux-melb:xfs-kern:31351a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: Tim Shimmin <tes at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 07fe4dd48d046feeff8705a2a224a8fba050b1c6
Author: Barry Naujok <bnaujok at sgi.com>
Date: Fri Jun 27 13:32:11 2008 +1000
[XFS] Fix CI lookup in leaf-form directories
Instead of comparing buffer pointers, compare buffer block numbers and
don't keep buff
SGI-PV: 983564
SGI-Modid: xfs-linux-melb:xfs-kern:31346a
Signed-off-by: Barry Naujok <bnaujok at sgi.com>
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit f9e09f095f323948b26ba09638d2eb3b0578d094
Author: Lachlan McIlroy <lachlan at redback.melbourne.sgi.com>
Date: Mon Jun 23 13:34:09 2008 +1000
[XFS] Use the generic xattr methods.
Add missing file fs/xfs/linux-2.6/xfs_xattr.c
SGI-PV: 982343
SGI-Modid: xfs-linux-melb:xfs-kern:31234a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: Tim Shimmin <tes at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit ddea2d5246b4ffbe49bbfb700aa3dbe717eb0915
Author: Lachlan McIlroy <lachlan at sgi.com>
Date: Mon Jun 23 13:25:53 2008 +1000
[XFS] Always reset btree cursor after an insert
After a btree insert operation a cursor can be invalid due to block splits
and a maybe a new root block. We reset the cursor in xfs_bmbt_insert() in
the cases where we think we need to but it isn't enough as we still see
assertions. Just do what we do elsewhere and reset the cursor
unconditionally. Also remove the fix to revalidate the original cursor in
xfs_bmbt_insert().
SGI-PV: 983336
SGI-Modid: xfs-linux-melb:xfs-kern:31342a
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
Signed-off-by: David Chinner <dgc at sgi.com>
commit 6bd8fc8a55cba263bab0b1c24786e95c5a2dc720
Author: Lachlan McIlroy <lachlan at sgi.com>
Date: Mon Jun 23 13:25:46 2008 +1000
[XFS] Convert ASSERTs to XFS_WANT_CORRUPTED_GOTOs
ASSERTs are no good to us on a non-debug build so use
XFS_WANT_CORRUPTED_GOTOs to report extent btree corruption ASAP.
SGI-PV: 983500
SGI-Modid: xfs-linux-melb:xfs-kern:31338a
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
Signed-off-by: Christoph Hellwig <hch at infradead.org>
commit 90bb7ab077a63facbe3aa0b9e3763a0cb956a4c1
Author: Barry Naujok <bnaujok at sgi.com>
Date: Mon Jun 23 13:25:38 2008 +1000
[XFS] Fix returning case-preserved name with CI node form directories
xfs_dir2_node_lookup() calls xfs_da_node_lookup_int() which iterates
through leaf blocks containing the matching hash value for the name being
looked up. Inside xfs_da_node_lookup_int(), it calls the
xfs_dir2_leafn_lookup_for_entry() for each leaf block.
xfs_dir2_leafn_lookup_for_entry() iterates through each matching
hash/offset pair doing a name comparison to find the matching dirent.
For CI mode, the state->extrablk retains the details of the block that has
the CI match so xfs_dir2_node_lookup() can return the case-preserved name.
The original implementation didn't retain the xfs_da_buf_t properly, so
the lookup was returning a bogus name to be stored in the dentry.
In the case of unlink, the bad name was passed and in debug mode, ASSERTed
when it can't find the entry.
SGI-PV: 983284
SGI-Modid: xfs-linux-melb:xfs-kern:31337a
Signed-off-by: Barry Naujok <bnaujok at sgi.com>
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit e5700704b2b0853c059e424284cceeff3032ea28
Author: Christoph Hellwig <hch at infradead.org>
Date: Mon Jun 23 13:25:25 2008 +1000
[XFS] Don't update i_size for directories and special files
The core kernel uses vfs_getattr to look at the inode size and similar
attributes, so there is no need to keep i_size uptodate for directories or
special files. This means we can remove xfs_validate_fields because the
I/O path already keeps i_size uptodate for regular files.
SGI-PV: 981498
SGI-Modid: xfs-linux-melb:xfs-kern:31336a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: Barry Naujok <bnaujok at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 8f112e3bc3508afc8d1612868d178359446c08fd
Author: Christoph Hellwig <hch at infradead.org>
Date: Mon Jun 23 13:25:17 2008 +1000
[XFS] Merge xfs_rmdir into xfs_remove
xfs_remove and xfs_rmdir are almost the same with a little more work
performed in xfs_rmdir due to the . and .. entries. This patch merges
xfs_rmdir into xfs_remove and performs these actions conditionally.
Also clean up the error handling which was a nightmare in both versions
before.
SGI-PV: 981498
SGI-Modid: xfs-linux-melb:xfs-kern:31335a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: Barry Naujok <bnaujok at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 61f10fad1947116055c694321d9d8f21152c0582
Author: Tim Shimmin <tes at sgi.com>
Date: Mon Jun 23 13:25:09 2008 +1000
[XFS] Fix up warning for xfs_vn_listxatt's call of list_one_attr() with
context count of ssize_t versus int. Change context count to be ssize_t.
SGI-PV: 983395
SGI-Modid: xfs-linux-melb:xfs-kern:31333a
Signed-off-by: Tim Shimmin <tes at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 6278debdf95b100a516b803f90d6f11b41c34171
Author: Lachlan McIlroy <lachlan at sgi.com>
Date: Mon Jun 23 13:25:02 2008 +1000
[XFS] fix extent corruption in xfs_iext_irec_compact_full()
This function is used to compact the indirect extent list by moving
extents from one page to the previous to fill them up. After we move some
extents to an earlier page we need to shuffle the remaining extents to the
start of the page. The actual bug here is the second argument to memmove()
needs to index past the extents, that were copied to the previous page,
and move the remaining extents. For pages that are already full (ie
ext_avail == 0) the compaction code has no net effect so don't do it.
SGI-PV: 983337
SGI-Modid: xfs-linux-melb:xfs-kern:31332a
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
Signed-off-by: Christoph Hellwig <hch at infradead.org>
commit 7f871d5d1b9b126c1a0cece737a37c6980c988e3
Author: Lachlan McIlroy <lachlan at sgi.com>
Date: Mon Jun 23 13:23:57 2008 +1000
[XFS] make inode reclaim wait for log I/O to complete
During a forced shutdown a xfs inode can be destroyed before log I/O
involving that inode is complete. We need to wait for the inode to be
unpinned before tearing it down. Version 2 cleans up the code a bit by
relying on xfs_iflush() to do the unpinning and forced shutdown check.
SGI-PV: 981240
SGI-Modid: xfs-linux-melb:xfs-kern:31326a
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
Signed-off-by: David Chinner <dgc at sgi.com>
commit ad9b463aa206b8c8f0bab378cf7c090c1a9a8e34
Author: Christoph Hellwig <hch at infradead.org>
Date: Mon Jun 23 13:23:48 2008 +1000
[XFS] Switches xfs_vn_listxattr to set it's put_listent callback directly
and not go through xfs_attr_list.
SGI-PV: 983395
SGI-Modid: xfs-linux-melb:xfs-kern:31324a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: Tim Shimmin <tes at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit caf8aabdbc6849de772850d26d3dbe35e8f63bff
Author: Christoph Hellwig <hch at infradead.org>
Date: Mon Jun 23 13:23:41 2008 +1000
[XFS] Factor out code for whether inode has attributes or not.
SGI-PV: 983394
SGI-Modid: xfs-linux-melb:xfs-kern:31323a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: Tim Shimmin <tes at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit ae23a5e87dbbf4657a82e1ff8ebc52ab50361c14
Author: Eric Sandeen <sandeen at sandeen.net>
Date: Mon Jun 23 13:23:32 2008 +1000
[XFS] Pack some shortform dir2 structures for the ARM old ABI
architecture.
This should fix the longstanding issues with xfs and old ABI arm boxes,
which lead to various asserts and xfs shutdowns, and for which an
(incorrect) patch has been floating around for years.
I've verified this patch by comparing the on-disk structure layouts using
pahole from the dwarves package, as well as running through a bit of xfsqa
under qemu-arm, modified so that the check/repair phase after each test
actually executes check/repair from the x86 host, on the filesystem
populated by the arm emulator. Thus far it all looks good.
There are 2 other structures with extra padding at the end, but they don't
seem to cause trouble. I suppose they could be packed as well:
xfs_dir2_data_unused_t and xfs_dir2_sf_t.
Note that userspace needs a similar treatment, and any filesystems which
were running with the previous rogue "fix" will now see corruption (either
in the kernel, or during xfs_repair) with this fix properly in place; it
may be worth teaching xfs_repair to identify and fix that specific issue.
SGI-PV: 982930
SGI-Modid: xfs-linux-melb:xfs-kern:31280a
Signed-off-by: Eric Sandeen <sandeen at sandeen.net>
Signed-off-by: Tim Shimmin <tes at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 0ec585163ac81e329bde25fb6311a043a1c63952
Author: Lachlan McIlroy <lachlan at redback.melbourne.sgi.com>
Date: Mon Jun 23 13:23:01 2008 +1000
[XFS] Use the generic xattr methods.
Use the generic set, get and removexattr methods and supply the s_xattr
array with fine-grained handlers. All XFS/Linux highlevel attr handling is
rewritten from scratch and placed into fs/xfs/linux-2.6/xfs_xattr.c so
that it's separated from the generic low-level code.
SGI-PV: 982343
SGI-Modid: xfs-linux-melb:xfs-kern:31234a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: Tim Shimmin <tes at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit d532506cd8b59543b376e155508f88a03a81dad1
Author: Barry Naujok <bnaujok at sgi.com>
Date: Mon Jun 16 12:07:41 2008 +1000
[XFS] Invalidate dentry in unlink/rmdir if in case-insensitive mode
The vfs_unlink/d_delete functionality in the Linux VFS make the
dentry negative if it is the only inode being referenced. Case-insensitive
mode doesn't work with negative dentries, so if using CI-mode, invalidate
the dentry on unlink/rmdir.
SGI-PV: 983102
SGI-Modid: xfs-linux-melb:xfs-kern:31308a
Signed-off-by: Barry Naujok <bnaujok at sgi.com>
Signed-off-by: Christoph Hellwig <hch at infradead.org>
commit 87affd08bc9c741b99053cabb908cf54a135a0fa
Author: Barry Naujok <bnaujok at sgi.com>
Date: Tue Jun 3 11:59:18 2008 +1000
[XFS] Zero uninitialised xfs_da_args structure in xfs_dir2.c
Fixes a problem in the xfs_dir2_remove and xfs_dir2_replace paths which
intenally call directory format specific lookup funtions that assume
args->cmpresult is zeroed.
SGI-PV: 982606
SGI-Modid: xfs-linux-melb:xfs-kern:31268a
Signed-off-by: Barry Naujok <bnaujok at sgi.com>
Signed-off-by: Christoph Hellwig <hch at infradead.org>
commit 866d5dc974682c6247d5fde94dbc6545f864e7d7
Author: Barry Naujok <bnaujok at sgi.com>
Date: Thu May 22 17:21:40 2008 +1000
[XFS] Remove d_add call for an ENOENT lookup return code
SGI-PV: 981521
SGI-Modid: xfs-linux-melb:xfs-kern:31214a
Signed-off-by: Barry Naujok <bnaujok at sgi.com>
Signed-off-by: David Chinner <dgc at sgi.com>
commit d3689d7687dbbc46c5004557d53349f6952fbc93
Author: Barry Naujok <bnaujok at sgi.com>
Date: Wed May 21 18:38:40 2008 +1000
[XFS] kmem_free and kmem_realloc to use const void *
SGI-PV: 981498
SGI-Modid: xfs-linux-melb:xfs-kern:31212a
Signed-off-by: Barry Naujok <bnaujok at sgi.com>
Signed-off-by: Christoph Hellwig <hch at infradead.org>
commit 189f4bf22bdc3c2402b038016d11fd3cb1c89f07
Author: Barry Naujok <bnaujok at sgi.com>
Date: Wed May 21 16:58:55 2008 +1000
[XFS] XFS: ASCII case-insensitive support
Implement ASCII case-insensitive support. It's primary purpose is for
supporting existing filesystems that already use this case-insensitive
mode migrated from IRIX. But, if you only need ASCII-only case-insensitive
support (ie. English only) and will never use another language, then this
mode is perfectly adequate.
ASCII-CI is implemented by generating hashes based on lower-case letters
and doing lower-case compares. It implements a new xfs_nameops vector for
doing the hashes and comparisons for all filename operations.
To create a filesystem with this CI mode, use: # mkfs.xfs -n version=ci
<device>
SGI-PV: 981516
SGI-Modid: xfs-linux-melb:xfs-kern:31209a
Signed-off-by: Barry Naujok <bnaujok at sgi.com>
Signed-off-by: Christoph Hellwig <hch at infradead.org>
commit 384f3ced07efdddf6838f6527366089d37843c94
Author: Barry Naujok <bnaujok at sgi.com>
Date: Wed May 21 16:58:22 2008 +1000
[XFS] Return case-insensitive match for dentry cache
This implements the code to store the actual filename found during a
lookup in the dentry cache and to avoid multiple entries in the dcache
pointing to the same inode.
To avoid polluting the dcache, we implement a new directory inode
operations for lookup. xfs_vn_ci_lookup() stores the correct case name in
the dcache.
The "actual name" is only allocated and returned for a case- insensitive
match and not an actual match.
Another unusual interaction with the dcache is not storing negative
dentries like other filesystems doing a d_add(dentry, NULL) when an ENOENT
is returned. During the VFS lookup, if a dentry returned has no inode,
dput is called and ENOENT is returned. By not doing a d_add, this actually
removes it completely from the dcache to be reused. create/rename have to
be modified to support unhashed dentries being passed in.
SGI-PV: 981521
SGI-Modid: xfs-linux-melb:xfs-kern:31208a
Signed-off-by: Barry Naujok <bnaujok at sgi.com>
Signed-off-by: Christoph Hellwig <hch at infradead.org>
commit 9403540c0653122ca34884a180439ddbfcbcb524
Author: Barry Naujok <bnaujok at sgi.com>
Date: Wed May 21 16:50:46 2008 +1000
dcache: Add case-insensitive support d_ci_add() routine
This add a dcache entry to the dcache for lookup, but changing the name
that is associated with the entry rather than the one passed in to the
lookup routine.
First, it sees if the case-exact match already exists in the dcache and
uses it if one exists. Otherwise, it allocates a new node with the new
name and splices it into the dcache.
Original code from ntfs_lookup in fs/ntfs/namei.c by Anton Altaparmakov.
Signed-off-by: Barry Naujok <bnaujok at sgi.com>
Signed-off-by: Anton Altaparmakov <aia21 at cantab.net>
Acked-by: Christoph Hellwig <hch at infradead.org>
commit 6a178100abf01282eb697ab62b6086b2886dfc00
Author: Barry Naujok <bnaujok at sgi.com>
Date: Wed May 21 16:42:05 2008 +1000
[XFS] Add op_flags field and helpers to xfs_da_args
The end of the xfs_da_args structure has 4 unsigned char fields for
true/false information on directory and attr operations using the
xfs_da_args structure.
The following converts these 4 into a op_flags field that uses the first 4
bits for these fields and allows expansion for future operation
information (eg. case-insensitive lookup request).
SGI-PV: 981520
SGI-Modid: xfs-linux-melb:xfs-kern:31206a
Signed-off-by: Barry Naujok <bnaujok at sgi.com>
Signed-off-by: Christoph Hellwig <hch at infradead.org>
commit 5163f95a08cbf058ae16452c2242c5600fedc32e
Author: Barry Naujok <bnaujok at sgi.com>
Date: Wed May 21 16:41:01 2008 +1000
[XFS] Name operation vector for hash and compare
Adds two pieces of functionality for the basis of case-insensitive support
in XFS:
1. A comparison result enumerated type: xfs_dacmp. It represents an
exact match, case-insensitive match or no match at all. This patch
only implements different and exact results.
2. xfs_nameops vector for specifying how to perform the hash generation
of filenames and comparision methods. In this patch the hash vector
points to the existing xfs_da_hashname function and the comparison
method does a length compare, and if the same, does a memcmp and
return the xfs_dacmp result.
All filename functions that use the hash (create, lookup remove, rename,
etc) now use the xfs_nameops.hashname function and all directory lookup
functions also use the xfs_nameops.compname function.
The lookup functions also handle case-insensitive results even though the
default comparison function cannot return that. And important aspect of
the lookup functions is that an exact match always has precedence over a
case-insensitive. So while a case-insensitive match is found, we have to
keep looking just in case there is an exact match. In the meantime, the
info for the first case-insensitive match is retained if no exact match is
found.
SGI-PV: 981519
SGI-Modid: xfs-linux-melb:xfs-kern:31205a
Signed-off-by: Barry Naujok <bnaujok at sgi.com>
Signed-off-by: Christoph Hellwig <hch at infradead.org>
commit 68f34d5107dbace3d14a1c2f060fc8941894879c
Author: Eric Sandeen <sandeen at sandeen.net>
Date: Tue May 20 15:11:17 2008 +1000
[XFS]
de-duplicate calls to xfs_attr_trace_enter
Every call to xfs_attr_trace_enter() shares the exact same 16 args in the
middle... just send in the context pointer and let the next level down
split it into the ktrace.
Compile tested only.
SGI-PV: 976035
SGI-Modid: xfs-linux-melb:xfs-kern:31200a
Signed-off-by: Eric Sandeen <sandeen at sandeen.net>
Signed-off-by: Niv Sardi <xaiki at sgi.com>
Signed-off-by: Josef 'Jeff' Sipek <jeffpc at josefsipek.net>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 120226c11a6277d3e761393f0995c55218fabebb
Author: Christoph Hellwig <hch at infradead.org>
Date: Tue May 20 15:11:11 2008 +1000
[XFS] add missing call to xfs_filestream_unmount on xfs_mountfs failure
SGI-PV: 981951
SGI-Modid: xfs-linux-melb:xfs-kern:31199a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: David Chinner <dgc at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit effa2eda3ab9c013585349b8afd305dc5decf771
Author: Christoph Hellwig <hch at infradead.org>
Date: Tue May 20 15:11:05 2008 +1000
[XFS] rename error2 goto label in xfs_fs_fill_super
SGI-PV: 981951
SGI-Modid: xfs-linux-melb:xfs-kern:31198a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: David Chinner <dgc at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 95db4e21b72603217f0bcafa4da9ee01fc1d2389
Author: Christoph Hellwig <hch at infradead.org>
Date: Tue May 20 15:10:58 2008 +1000
[XFS] kill calls to xfs_binval in the mount error path
xfs_binval aka xfs_flush_buftarg is the first thing done in
xfs_free_buftarg, so there is no need to have duplicated calls just before
xfs_free_buftarg in the mount failure path.
SGI-PV: 981951
SGI-Modid: xfs-linux-melb:xfs-kern:31197a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: David Chinner <dgc at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit c962fb7902669a48a2c613649c1f03865c0ffd1e
Author: Christoph Hellwig <hch at infradead.org>
Date: Tue May 20 15:10:52 2008 +1000
[XFS] kill xfs_mount_init
xfs_mount_init is inlined into xfs_fs_fill_super and allocation switched
to kzalloc. Plug a leak of the mount structure for most early mount
failures. Move xfs_icsb_init_counters to as late as possible in the mount
path and make sure to undo it so that no stale hotplug cpu notifiers are
left around on mount failures.
SGI-PV: 981951
SGI-Modid: xfs-linux-melb:xfs-kern:31196a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: David Chinner <dgc at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit bdd907bab78419f34113c51470192945741b839e
Author: Christoph Hellwig <hch at infradead.org>
Date: Tue May 20 15:10:44 2008 +1000
[XFS] allow xfs_args_allocate to fail
Switch xfs_args_allocate to kzalloc and handle failures.
SGI-PV: 981951
SGI-Modid: xfs-linux-melb:xfs-kern:31195a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: David Chinner <dgc at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit e34b562c6bbffc3c466251ffa1d2adaf163db566
Author: Christoph Hellwig <hch at infradead.org>
Date: Tue May 20 15:10:36 2008 +1000
[XFS] add xfs_setup_devices helper
Split setting the block and sector size out of xfs_fs_fill_super into a
small helper to make xfs_fs_fill_super more readable.
SGI-PV: 981951
SGI-Modid: xfs-linux-melb:xfs-kern:31194a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: David Chinner <dgc at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 19f354d4c3f4c48bf6b2a86227d8e3050e5f7d50
Author: Christoph Hellwig <hch at infradead.org>
Date: Tue May 20 11:31:13 2008 +1000
[XFS] sort out opening and closing of the block devices
Currently closing the rt/log block device is done in the wrong spot, and
far too early. So revampt it:
- xfs_blkdev_put moved out of xfs_free_buftarg into the caller so that
it is done after tearing down the buftarg completely.
- call to xfs_unmountfs_close moved from xfs_mountfs into caller so
that it's done after tearing down the filesystem completely.
- xfs_unmountfs_close is renamed to xfs_close_devices and made static
in xfs_super.c
- opening of the block devices is split into a helper xfs_open_devices
that is symetric in use to xfs_close_devices
- xfs_unmountfs can now lose struct cred
- error handling around device opening sanitized in xfs_fs_fill_super
SGI-PV: 981951
SGI-Modid: xfs-linux-melb:xfs-kern:31193a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: David Chinner <dgc at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit af15b8953a60d336aade96a2c162abffdba75ec9
Author: Christoph Hellwig <hch at infradead.org>
Date: Tue May 20 11:31:05 2008 +1000
[XFS] don't call xfs_freesb from xfs_mountfs failure case
Freeing of the superblock is already handled in the caller, and that is
more symmetric with the mount path, too.
SGI-PV: 981951
SGI-Modid: xfs-linux-melb:xfs-kern:31192a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: David Chinner <dgc at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit f8f15e42b408edce6ca9e9d8bd0d0e2078a39efd
Author: Christoph Hellwig <hch at infradead.org>
Date: Tue May 20 11:30:59 2008 +1000
[XFS] merge xfs_mount into xfs_fs_fill_super
xfs_mount is already pretty linux-specific so merge it into
xfs_fs_fill_super to allow for a more structured mount code in the next
patches. xfs_start_flags and xfs_finish_flags also move to xfs_super.c.
SGI-PV: 981951
SGI-Modid: xfs-linux-melb:xfs-kern:31189a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: David Chinner <dgc at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit e48ad3160e5c5f5b952c7a7ed814f6f289a60100
Author: Christoph Hellwig <hch at infradead.org>
Date: Tue May 20 11:30:52 2008 +1000
[XFS] merge xfs_unmount into xfs_fs_put_super / xfs_fs_fill_super
xfs_unmount is small and already pretty Linux specific, so merge it into
the callers. The real unmount path is simplified a little by doing a
WARN_ON on the xfs_unmount_flush retval directly instead of propagating
the error back to the caller, and the mout failure case in simplified
significantly by removing the forced shutdown case and all the dmapi
events that shouldn't be sent because the dmapi mount event hasn't been
sent by that time either.
SGI-PV: 981951
SGI-Modid: xfs-linux-melb:xfs-kern:31188a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: David Chinner <dgc at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 61436febae29085bffc7c291db03cbd709dc68a3
Author: Christoph Hellwig <hch at infradead.org>
Date: Tue May 20 11:30:46 2008 +1000
[XFS] kill xfs_igrow_start and xfs_igrow_finish
xfs_igrow_start just expands to xfs_zero_eof with two asserts that are
useless in the context of the only caller and some rather confusing
comments.
xfs_igrow_finish is just a few lines of code decorated again with useless
asserts and confusing comments.
Just kill those two and merge them into xfs_setattr.
SGI-PV: 981498
SGI-Modid: xfs-linux-melb:xfs-kern:31186a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: David Chinner <dgc at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 48b62a1a97f118a5a71ae9222bc6d3481d6b757b
Author: Christoph Hellwig <hch at infradead.org>
Date: Tue May 20 11:30:39 2008 +1000
[XFS] merge xfs_mntupdate into xfs_fs_remount
xfs_mntupdate already is completely Linux specific due to the VFS flags
passed in, so it might aswell be merged into xfs_fs_remount.
SGI-PV: 981498
SGI-Modid: xfs-linux-melb:xfs-kern:31185a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: David Chinner <dgc at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit fa6adbe08825274a3803abb9aef365f939be7da5
Author: Christoph Hellwig <hch at infradead.org>
Date: Tue May 20 11:30:33 2008 +1000
[XFS] kill xfs_uuid_unmount
Quite useless wrapper that doesn't help making the code more readable.
SGI-PV: 981498
SGI-Modid: xfs-linux-melb:xfs-kern:31184a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: David Chinner <dgc at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 4b166de0a061e4e89d0741a5d080b141f11e2c9b
Author: David Chinner <dgc at sgi.com>
Date: Tue May 20 11:30:27 2008 +1000
[XFS] Update valid fields in xfs_mount_log_sb()
Recent changes to update the version number during mount (attr2 stuff)
failed to change the assert that checked for calid flags being changed on
mount. Clearly this path hasn't been exercised by the test code....
SGI-PV: 981950
SGI-Modid: xfs-linux-melb:xfs-kern:31183a
Signed-off-by: David Chinner <dgc at sgi.com>
Signed-off-by: Eric Sandeen <sandeen at sandeen.net>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 911ee3de3d1cb6620e2ac4e0678ff434867e2644
Author: Christoph Hellwig <hch at infradead.org>
Date: Mon May 19 16:34:34 2008 +1000
[XFS] Kill attr_capable checks as already done in xattr_permission.
No need for addition permission checks in the xattr handler,
fs/xattr.c:xattr_permission() already does them, and in fact slightly more
strict then what was in the attr_capable handlers.
SGI-PV: 981809
SGI-Modid: xfs-linux-melb:xfs-kern:31164a
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: Tim Shimmin <tes at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit d748c62367eb630cc30b91d561a5362f597a0892
Author: Matthew Wilcox <willy at linux.intel.com>
Date: Mon May 19 16:34:27 2008 +1000
[XFS] Convert l_flushsema to a sv_t
The l_flushsema doesn't exactly have completion semantics, nor mutex
semantics. It's used as a list of tasks which are waiting to be notified
that a flush has completed. It was also being used in a way that was
potentially racy, depending on the semaphore implementation.
By using a sv_t instead of a semaphore we avoid the need for a separate
counter, since we know we just need to wake everything on the queue.
Original waitqueue implementation from Matthew Wilcox. Cleanup and
conversion to sv_t by Christoph Hellwig.
SGI-PV: 981507
SGI-Modid: xfs-linux-melb:xfs-kern:31059a
Signed-off-by: Matthew Wilcox <willy at linux.intel.com>
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: David Chinner <dgc at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit d729eae8933cb3eb8edf1446532c178b66b293a9
Author: Michael Nishimoto <miken at agami.com>
Date: Mon May 19 16:34:20 2008 +1000
[XFS] Ensure that 2 GiB xfs logs work properly.
We found this while experimenting with 2GiB xfs logs. The previous code
never assumed that xfs logs would ever get so large.
SGI-PV: 981502
SGI-Modid: xfs-linux-melb:xfs-kern:31058a
Signed-off-by: Michael Nishimoto <miken at agami.com>
Signed-off-by: David Chinner <dgc at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit b41759cf11c84ad0d569c0ef200c449ad2cc24e3
Author: Denys Vlasenko <vda.linux at googlemail.com>
Date: Mon May 19 16:34:11 2008 +1000
[XFS] Remove unused wbc parameter from xfs_start_page_writeback()
SGI-PV: 981498
SGI-Modid: xfs-linux-melb:xfs-kern:31057a
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
Signed-off-by: David Chinner <dgc at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 4f0e8a9816e78306bb821018613dbd2513184d8a
Author: Denys Vlasenko <vda.linux at googlemail.com>
Date: Mon May 19 16:34:04 2008 +1000
[XFS] Remove unused Falgs parameter from xfs_qm_dqpurge()
SGI-PV: 981498
SGI-Modid: xfs-linux-melb:xfs-kern:31056a
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
Signed-off-by: David Chinner <dgc at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit f0e2d93c29dc39ffd24cac180a19d48f700c0706
Author: Denys Vlasenko <vda.linux at googlemail.com>
Date: Mon May 19 16:31:57 2008 +1000
[XFS] Remove unused arg from kmem_free()
kmem_free() function takes (ptr, size) arguments but doesn't actually use
second one.
This patch removes size argument from all callsites.
SGI-PV: 981498
SGI-Modid: xfs-linux-melb:xfs-kern:31050a
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
Signed-off-by: David Chinner <dgc at sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 7c12f296500e1157872ef45b3f3bb06b4b73f1c1
Author: Tim Shimmin <tes at sgi.com>
Date: Wed Apr 30 18:15:28 2008 +1000
[XFS] Fix up noattr2 so that it will properly update the versionnum and
features2 fields.
Previously, mounting with noattr2 failed to achieve anything because
although it cleared the attr2 mount flag, it would set it again as soon as
it processed the superblock fields. The fix now has an explicit noattr2
flag and uses it later to fix up the versionnum and features2 fields.
SGI-PV: 980021
SGI-Modid: xfs-linux-melb:xfs-kern:31003a
Signed-off-by: Tim Shimmin <tes at sgi.com>
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit f9f6dce01905179d9a209cc1e69fe9047736c112
Author: Barry Naujok <bnaujok at sgi.com>
Date: Thu Apr 17 16:49:43 2008 +1000
[XFS] Split xfs_dir2_leafn_lookup_int into its two pieces of functionality
SGI-PV: 976035
SGI-Modid: xfs-linux-melb:xfs-kern:30834a
Signed-off-by: Barry Naujok <bnaujok at sgi.com>
Signed-off-by: Christoph Hellwig <hch at infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan at sgi.com>
commit 00df438e89a9003895948170e1abf64dd4665872
Author: Benjamin Herrenschmidt <benh at kernel.crashing.org>
Date: Mon Jul 28 16:13:18 2008 +1000
powerpc: Disable 64K hugetlb support when doing 64K SPU mappings
The 64K SPU local store mapping feature is incompatible with the
64K huge pages support due to the inability of some parts of
the memory management to differenciate between them while they
use a different page table format.
For now, disable 64K huge pages when CONFIG_SPU_FS_64K_LS,
in the long run, this can be fixed by making this feature use
the hugetlb page table format.
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit 025d7917a5ede982a5669c6735ef73a227b9827e
Author: Benjamin Herrenschmidt <benh at kernel.crashing.org>
Date: Mon Jul 28 13:49:15 2008 +1000
powerpc/powermac: Fixup default serial port device for pmac_zilog
This removes the non-working code in legacy_serial that tried to handle
the powermac SCC ports, and instead add a (now working) function to the
powermac platform code to find the default serial console if any.
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit f023bf0f91f1f1b926ec8f5cf0ee24be134bf024
Author: Benjamin Herrenschmidt <benh at kernel.crashing.org>
Date: Mon Jul 28 12:06:19 2008 +1000
powerpc/powermac: Use sane default baudrate for SCC debugging
When using the "sccdbg" option to route early kernel messages and
xmon to the SCC serial port on PowerMacs, when this wasn't the
configured output port of Open Firmware, we initialize the baudrate
to 57600bps. This isn't a very good default on some powermacs where
both the FW and pmac_zilog will default to 38400. This fixes it to
use the same logic as pmac_zilog to pick a default speed.
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit 83ac6a1ed40bfbe185cf2bac5505d8d97aad8b1d
Author: Nick Piggin <npiggin at suse.de>
Date: Sun Jul 27 20:28:03 2008 -0700
powerpc/mm: Implement _PAGE_SPECIAL & pte_special() for 64-bit
Implement _PAGE_SPECIAL and pte_special() for 64-bit powerpc. This bit will
be used by the fast get_user_pages() to differenciate PTEs that correspond
to a valid struct page from special mappings that don't such as IO mappings
obtained via io_remap_pfn_ranges().
Signed-off-by: Nick Piggin <npiggin at suse.de>
Acked-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
Cc: Paul Mackerras <paulus at samba.org>
Cc: Hugh Dickins <hugh at veritas.com>
Cc: "Paul E. McKenney" <paulmck at us.ibm.com>
Reviewed-by: Peter Zijlstra <a.p.zijlstra at chello.nl>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit 124c27d375f72dd857eac27f2932f9f01df76bf4
Author: Nathan Lynch <ntl at pobox.com>
Date: Sun Jul 27 15:24:55 2008 +1000
powerpc: Show processor cache information in sysfs
Collect cache information from the OF device tree and display it in
the cpu hierarchy in sysfs. This is intended to be compatible at the
userspace level with x86's implementation[1], hence some of the funny
attribute names. The arrangement of cache info is not immediately
intuitive, but (again) it's for compatibility's sake.
The cache attributes exposed are:
type (Data, Instruction, or Unified)
level (1, 2, 3...)
size
coherency_line_size
number_of_sets
ways_of_associativity
All of these can be derived on platforms that follow the OF PowerPC
Processor binding. The code "publishes" only those attributes for
which it is able to determine values; attributes for values which
cannot be determined are not created at all.
[1] arch/x86/kernel/cpu/intel_cacheinfo.c
BenH: Turned some printk's into pr_debug, added better NULL checking
in a couple of places.
Signed-off-by: Nathan Lynch <ntl at pobox.com>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit e9efed3b80a83e44b98fc626f3268ae072550b84
Author: Nathan Lynch <ntl at pobox.com>
Date: Sun Jul 27 15:24:54 2008 +1000
powerpc: Make core id information available to userspace
Existing Open Firmware practice is to report each processor core as a
separate node in the device tree. Report the value of the "reg" OF
property corresponding to a logical CPU's device node as the core_id
attribute in /sys/devices/system/cpu/cpu*/topology/core_id.
Signed-off-by: Nathan Lynch <ntl at pobox.com>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit 440a0857e32a05979fb01fc59ea454a723e80e4b
Author: Nathan Lynch <ntl at pobox.com>
Date: Sun Jul 27 15:24:53 2008 +1000
powerpc: Make core sibling information available to userspace
Implement the notion of "core siblings" for powerpc. This makes
/sys/devices/system/cpu/cpu*/topology/core_siblings present sensible
values, indicating online CPUs which share an L2 cache.
BenH: Made cpu_to_l2cache() use of_find_node_by_phandle() instead
of IBM-specific open coded search
Signed-off-by: Nathan Lynch <ntl at pobox.com>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit 0764bf63da5466474eebf7d21994cf6b106265a3
Author: Stephen Rothwell <sfr at canb.auug.org.au>
Date: Mon Jul 28 02:22:14 2008 +1000
powerpc/vio: More fallout from dma_mapping_error API change
arch/powerpc/kernel/vio.c:533: error: too few arguments to function 'dma_mapping_error'
Signed-off-by: Stephen Rothwell <sfr at canb.auug.org.au>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit c713e7cbfa529f87e18bb2eacb2ccdd4ee0ef7d3
Author: Stephen Rothwell <sfr at canb.auug.org.au>
Date: Mon Jul 28 02:14:24 2008 +1000
ibmveth: Fix multiple errors with dma_mapping_error conversion
The addition of an argument to dma_mapping_error() in commit
8d8bb39b9eba32dd70e87fd5ad5c5dd4ba118e06 "dma-mapping: add the device
argument to dma_mapping_error()" left a bit of fallout:
drivers/net/ibmveth.c:263: error: too few arguments to function 'dma_mapping_error'
drivers/net/ibmveth.c:264: error: expected ')' before 'goto'
drivers/net/ibmveth.c:284: error: expected expression before '}' token
drivers/net/ibmveth.c:297: error: too few arguments to function 'dma_mapping_error'
drivers/net/ibmveth.c:298: error: expected ')' before 'dma_unmap_single'
drivers/net/ibmveth.c:306: error: expected expression before '}' token
drivers/net/ibmveth.c:491: error: too few arguments to function 'dma_mapping_error'
drivers/net/ibmveth.c:927: error: too few arguments to function 'dma_mapping_error'
drivers/net/ibmveth.c:927: error: expected ')' before '{' token
drivers/net/ibmveth.c:974: error: expected expression before '}' token
drivers/net/ibmveth.c:914: error: label 'out' used but not defined m
Signed-off-by: Stephen Rothwell <sfr at canb.auug.org.au>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit 3cee67f77922721e90c1573d84c07e18c5508713
Author: Stephen Rothwell <sfr at canb.auug.org.au>
Date: Mon Jul 28 00:51:02 2008 +1000
powerpc/pseries: Fix CMO sysdev attribute API change fallout
Noticed due to these wanings:
arch/powerpc/platforms/pseries/cmm.c:298: warning: initialization from incompatible pointer type
arch/powerpc/platforms/pseries/cmm.c:299: warning: initialization from incompatible pointer type
arch/powerpc/platforms/pseries/cmm.c:320: warning: initialization from incompatible pointer type
arch/powerpc/platforms/pseries/cmm.c:320: warning: initialization from incompatible pointer type
Signed-off-by: Stephen Rothwell <sfr at canb.auug.org.au>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit dec2b0d0cc64e495a3c9c5700fa7a3b397b5e855
Author: Roland McGrath <roland at redhat.com>
Date: Sun Jul 27 16:53:20 2008 +1000
powerpc: Enable tracehook for the architecture
The powerpc arch code has all the prerequisites, so set HAVE_ARCH_TRACEHOOK.
Signed-off-by: Roland McGrath <roland at redhat.com>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit 7d6d637dac2050f30a1b57b0a3dc5de4a10616ba
Author: Roland McGrath <roland at redhat.com>
Date: Sun Jul 27 16:52:52 2008 +1000
powerpc: Add TIF_NOTIFY_RESUME support for tracehook
This adds TIF_NOTIFY_RESUME support for powerpc. When set,
we call tracehook_notify_resume() on the way to user mode.
This overloads do_signal() to do the work, but changes its
arguments to it has the TIF_* bits handy in a register and
drops the useless first argument that was always zero.
Signed-off-by: Roland McGrath <roland at redhat.com>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit f1ba12856b7a7d43e495e216bc91e6bbf7aac383
Author: Roland McGrath <roland at redhat.com>
Date: Sun Jul 27 16:51:35 2008 +1000
powerpc: Add asm/syscall.h with the tracehook entry points
Add asm/syscall.h for powerpc with all the required entry points.
This will allow arch-independent tracing code for system calls.
BenH: Fixed up use of regs->trap to properly mask low bit
Signed-off-by: Roland McGrath <roland at redhat.com>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit 4f72c4279eab1e5f3ed1ac4e55d4527617582392
Author: Roland McGrath <roland at redhat.com>
Date: Sun Jul 27 16:51:03 2008 +1000
powerpc: Make syscall tracing use tracehook.h helpers
This changes powerpc syscall tracing to use the new tracehook.h entry
points. There is no change, only cleanup.
In addition, the assembly changes allow do_syscall_trace_enter() to
abort the syscall without losing the information about the original
r0 value.
Signed-off-by: Roland McGrath <roland at redhat.com>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit 6558ba2b5cc3a2f22039db30616fcd07c1b28ac8
Author: Roland McGrath <roland at redhat.com>
Date: Sun Jul 27 16:49:50 2008 +1000
powerpc: Call tracehook_signal_handler() when setting up signal frames
This makes the powerpc signal handling code call tracehook_signal_handler()
after a handler is set up. This means that using PTRACE_SINGLESTEP to
enter a signal handler will report to ptrace on the first instruction of
the handler, instead of the second. This is consistent with what x86 and
other machines do, and what users and debuggers want.
BenH: Fixed up the test for the trap value.
Signed-off-by: Roland McGrath <roland at redhat.com>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit e2075f79a99b45a6cc10de021c93f07212098a84
Author: Nathan Lynch <ntl at pobox.com>
Date: Sun Jul 27 15:24:52 2008 +1000
powerpc: Update cpu_sibling_maps dynamically
Rather doing one initialization pass over all the per-cpu
cpu_sibling_maps at boot, update the maps at cpu online/offline time.
This is a behavior change -- the thread_siblings attribute now
reflects only online siblings, whereas it would display offline
siblings before. The new behavior matches that of x86, and is
arguably more useful.
Signed-off-by: Nathan Lynch <ntl at pobox.com>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit 9ba1984ead5d25c93d241e0ee43f8f6a252f60d9
Author: Nathan Lynch <ntl at pobox.com>
Date: Sun Jul 27 15:24:51 2008 +1000
powerpc: register_cpu_online should be __cpuinit
It is called only in cpu online paths.
(caught by CONFIG_DEBUG_SECTION_MISMATCH=y)
Signed-off-by: Nathan Lynch <ntl at pobox.com>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit 7d2f6075f992d33c7be829c3638b8cb72b782b19
Author: Nathan Lynch <ntl at pobox.com>
Date: Sun Jul 27 15:24:50 2008 +1000
powerpc: kill useless SMT code in prom_hold_cpus
This piece of code is broken for >2 threads, and possibly in some
other subtle ways (such as comparing a value obtained from an
"ibm,ppc-interrupt-server#s" property to a value obtained from a
"reg" property) and doesn't seem to have any useful purpose in the
first place other than a dubious warning in case NR_CPUS is too
small, which probably isn't the right place to do so.
Signed-off-by: Nathan Lynch <ntl at pobox.com>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit ff8dc7698c904f2a911e89b3d54e7c4a74f5575d
Author: Kumar Gala <galak at kernel.crashing.org>
Date: Sun Jul 27 03:57:30 2008 +1000
powerpc: Fix 8xx build failure
The 'powerpc ioremap_prot' broke 8xx builds:
include2/asm/pgtable-ppc32.h:555: error: '_PAGE_WRITETHRU' undeclared (first use in this function)
include2/asm/pgtable-ppc32.h:555: error: (Each undeclared identifier is reported only once
include2/asm/pgtable-ppc32.h:555: error: for each function it appears in.)
Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit b9fa49a9a908407d9366b0e1e7222aee81a2df5b
Author: Nathan Lynch <ntl at pobox.com>
Date: Sat Jul 26 09:06:17 2008 +1000
powerpc: Fix vio build warnings
arch/powerpc/kernel/vio.c:1034: warning: function declaration isnâÂÂt a prototype
arch/powerpc/kernel/vio.c:1035: warning: function declaration isnâÂÂt a prototype
Signed-off-by: Nathan Lynch <ntl at pobox.com>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit 2325f0a0c3d76bb515f3312ab2b16afdbffcc594
Author: Kumar Gala <galak at kernel.crashing.org>
Date: Sat Jul 26 05:27:33 2008 +1000
powerpc/booke: Clean up the hardware watchpoint support
* CONFIG_BOOKE is selected by CONFIG_44x so we dont need both
* Fixed a few comments
* Go back to only using DBCR0_IDM to determine if we are using
debug resources.
Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit d3b060231b2e1eb7e7e9680ff93326a4ae576720
Author: Huang Weiyi <weiyi.huang at gmail.com>
Date: Thu Jul 24 00:44:51 2008 +1000
powerpc: Removed duplicated include in stacktrace.c
Removed duplicated include file <linux/module.h> in
arch/powerpc/kernel/stacktrace.c.
Signed-off-by: Huang Weiyi <weiyi.huang at gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
commit d65d830ca06040ffe6a35ce7cb06ee642ddbd6a8
Merge: 837b41b5de356aa67abb2cadb5eef3efc7776f91 284b01897340974000bcc84de87a4e1becc8a83d
Author: Benjamin Herrenschmidt <benh at kernel.crashing.org>
Date: Mon Jul 28 16:30:40 2008 +1000
Merge commit 'gcl/gcl-next'
commit 784e2d76007f90d69341b95967160c4fb7829299
Author: Rusty Russell <rusty at rustcorp.com.au>
Date: Mon Jul 28 12:16:31 2008 -0500
stop_machine: fix up ftrace.c
Simple conversion.
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
Cc: Abhishek Sagar <sagar.abhishek at gmail.com>
Cc: Ingo Molnar <mingo at elte.hu>
Cc: Steven Rostedt <rostedt at goodmis.org>
commit 9b1a4d38373a5581a4e01032a3ccdd94cd93477b
Author: Rusty Russell <rusty at rustcorp.com.au>
Date: Mon Jul 28 12:16:30 2008 -0500
stop_machine: Wean existing callers off stop_machine_run()
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
commit eeec4fad963490821348a331cca6102ae1c4a7a3
Author: Rusty Russell <rusty at rustcorp.com.au>
Date: Mon Jul 28 12:16:30 2008 -0500
stop_machine(): stop_machine_run() changed to use cpu mask
Instead of a "cpu" arg with magic values NR_CPUS (any cpu) and ~0 (all
cpus), pass a cpumask_t. Allow NULL for the common case (where we
don't care which CPU the function is run on): temporary cpumask_t's
are usually considered bad for stack space.
This deprecates stop_machine_run, to be removed soon when all the
callers are dead.
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
commit 04321587584272f4e8b9818f319f40caf8eeee13
Author: Rusty Russell <rusty at rustcorp.com.au>
Date: Mon Jul 28 12:16:29 2008 -0500
Hotplug CPU: don't check cpu_online after take_cpu_down
Akinobu points out that if take_cpu_down() succeeds, the cpu must be offline.
Remove the cpu_online() check, and put a BUG_ON().
Quoting Akinobu Mita:
Actually the cpu_online() check was necessary before appling this
stop_machine: simplify patch.
With old __stop_machine_run(), __stop_machine_run() could succeed
(return !IS_ERR(p) value) even if take_cpu_down() returned non-zero value.
The return value of take_cpu_down() was obtained through kthread_stop()..
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
Cc: "Akinobu Mita" <akinobu.mita at gmail.com>
commit ffdb5976c47609c862917d4c186ecbb5706d2dda
Author: Rusty Russell <rusty at rustcorp.com.au>
Date: Mon Jul 28 12:16:28 2008 -0500
Simplify stop_machine
stop_machine creates a kthread which creates kernel threads. We can
create those threads directly and simplify things a little. Some care
must be taken with CPU hotunplug, which has special needs, but that code
seems more robust than it was in the past.
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
Acked-by: Christian Borntraeger <borntraeger at de.ibm.com>
commit 5c2aed622571ac7c3c6ec182d6d3c318e4b45c8b
Author: Jason Baron <jbaron at redhat.com>
Date: Thu Feb 28 11:33:03 2008 -0500
stop_machine: add ALL_CPUS option
-allow stop_mahcine_run() to call a function on all cpus. Calling
stop_machine_run() with a 'ALL_CPUS' invokes this new behavior.
stop_machine_run() proceeds as normal until the calling cpu has
invoked 'fn'. Then, we tell all the other cpus to call 'fn'.
Signed-off-by: Jason Baron <jbaron at redhat.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at polymtl.ca>
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
CC: Adrian Bunk <bunk at stusta.de>
CC: Andi Kleen <andi at firstfloor.org>
CC: Alexey Dobriyan <adobriyan at gmail.com>
CC: Christoph Hellwig <hch at infradead.org>
CC: mingo at elte.hu
CC: akpm at osdl.org
commit 15bba37d62351749c3915add81f673b256952ee1
Author: WANG Cong <xiyou.wangcong at gmail.com>
Date: Thu Jul 24 15:41:48 2008 +0100
module: fix build warning with !CONFIG_KALLSYMS
This patch fixed the warning:
CC kernel/module.o
/home/wangcong/Projects/linux-2.6/kernel/module.c:332: warning:
âlookup_symbolâ defined but not used
Signed-off-by: WANG Cong <wangcong at zeuux.org>
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
commit c2f90e9536887fb76fb6a2aa239a70fc49beda10
Merge: f3409f71a76838b1bc985f753eed787a3f17bc2c c9272c4f9fbe2087beb3392f526dc5b19efaa56b
Author: Mauro Carvalho Chehab <mchehab at infradead.org>
Date: Sun Jul 27 22:23:18 2008 -0300
Merge ../linux-2.6
commit 04d91cb8163f7f946e348b2362a6e5dfa5f06b13
Author: David S. Miller <davem at davemloft.net>
Date: Sun Jul 27 03:53:32 2008 -0700
sparc: Set CONFIG_HAVE_ARCH_TRACEHOOK
Signed-off-by: David S. Miller <davem at davemloft.net>
commit ebd3c003335c3af1e3cb43a5955ba02e7ed2984c
Author: David S. Miller <davem at davemloft.net>
Date: Sun Jul 27 03:43:51 2008 -0700
sparc: Add task_pt_regs().
Signed-off-by: David S. Miller <davem at davemloft.net>
commit b8b751bedcd00985550d84901c07eda427413e7b
Author: David S. Miller <davem at davemloft.net>
Date: Sun Jul 27 03:40:53 2008 -0700
sparc: Add call to tracehook_signal_handler().
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 5a157d5bf8288eaa86ec269a966559594ddd542e
Author: David S. Miller <davem at davemloft.net>
Date: Sun Jul 27 03:38:53 2008 -0700
sparc: Create and use TIF_NOTIFY_RESUME.
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 1c133b4b3d58bf88293eeea0d9d090777333bf48
Author: David S. Miller <davem at davemloft.net>
Date: Sun Jul 27 03:13:13 2008 -0700
sparc: Use tracehook routines in syscall_trace().
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 768225868c16d882f7a38a11027945284dc9f49e
Author: Roland McGrath <roland at redhat.com>
Date: Sun Apr 20 17:42:22 2008 -0700
sparc64: tracehook: CONFIG_HAVE_ARCH_TRACEHOOK
The sparc64 arch code has all the prerequisites, so set HAVE_ARCH_TRACEHOOK.
Signed-off-by: Roland McGrath <roland at redhat.com>
commit ac76cfd0881b5dc45a9301e3a4f73ff9ccc2d2f2
Author: David S. Miller <davem at davemloft.net>
Date: Sun Jul 27 01:59:21 2008 -0700
sparc: Add user_stack_pointer().
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 95698466cf50b707d8a55af87e4dbec56b1533cb
Author: Roland McGrath <roland at redhat.com>
Date: Sun Jul 27 01:08:02 2008 -0700
sparc64: tracehook_signal_handler
Call the standard hook after setting up signal handlers.
Signed-off-by: Roland McGrath <roland at redhat.com>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit e35a8925e0e7af8b26161a2c161ea31be0296b80
Author: Roland McGrath <roland at redhat.com>
Date: Sun Apr 20 15:06:49 2008 -0700
sparc64: tracehook: TIF_NOTIFY_RESUME
This adds TIF_NOTIFY_RESUME support for sparc64.
When set, we call tracehook_notify_resume() on the way to user mode.
Signed-off-by: Roland McGrath <roland at redhat.com>
commit badcbf0e8654c4a4ca51fe46c75a70376e83c1ef
Author: David S. Miller <davem at davemloft.net>
Date: Sun Jul 27 00:53:10 2008 -0700
sparc: Add asm/syscall.h
Based upon a patch by Roland McGrath.
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 73ccefab8a6590bb3d5b44c046010139108ab7ca
Author: Roland McGrath <roland at redhat.com>
Date: Sun Jul 27 00:30:50 2008 -0700
sparc64: tracehook syscall
This changes sparc64 syscall tracing to use the new tracehook.h entry
points.
[ Add assembly changes to force an immediate -ENOSYS return from
the system call when syscall_trace() returns non-zero at syscall
entry. -DaveM ]
Signed-off-by: Roland McGrath <roland at redhat.com>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 5cfc17766685c79d1a348bce24af9c9dbc0d8d67
Merge: c9272c4f9fbe2087beb3392f526dc5b19efaa56b a1bd021e56fff91cc9354ffb232fd9f0f577099c
Author: David S. Miller <davem at davemloft.net>
Date: Sun Jul 27 17:09:02 2008 -0700
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/sam/sparc
commit 281c7413ed914623d3245299a4761b6b27ab9fdb
Merge: 2ab61b01110aa04cd853c619a74881e3225a5e24 c9272c4f9fbe2087beb3392f526dc5b19efaa56b
Author: David S. Miller <davem at davemloft.net>
Date: Sun Jul 27 16:51:21 2008 -0700
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6
commit c9272c4f9fbe2087beb3392f526dc5b19efaa56b
Merge: fb4284b2b7cfaf3b89557667587cca90bddccc59 744d18dbfae07482ea461701b0aaec3a75ec9224
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sun Jul 27 16:47:55 2008 -0700
Merge branch 'hotfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6
* 'hotfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6:
NFS: Ensure we call nfs_sb_deactive() after releasing the directory inode
nfs_remount oops when rebooting + possible fix
commit fb4284b2b7cfaf3b89557667587cca90bddccc59
Merge: 3e318b5b55fafebd3a6e4dd3a00b79bfc0668675 583323b9d2f624884a8c9563fb5a4d795f39ab07
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sun Jul 27 16:46:51 2008 -0700
Merge branch 'x86/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-tip
* 'x86/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-tip:
x86: fix cpu hotplug on 32bit
commit 3e318b5b55fafebd3a6e4dd3a00b79bfc0668675
Merge: 940389b8afad6495211614c13eb91ef7001773ec 53cdb27a933e4032934cbda0b447cfc9943c0eac
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sun Jul 27 16:46:08 2008 -0700
Merge master.kernel.org:/home/rmk/linux-2.6-arm
* master.kernel.org:/home/rmk/linux-2.6-arm:
[ARM] Fix shared mmap when more than two maps of the same file exist
[ARM] fix VIPT/VIVT macro optimisations, add comments
[ARM] 5179/1: Replace obsolete IRQT_* and __IRQT_* values with IRQ_TYPE_*
[ARM] update defconfig for eseries.
[ARM] PXA: squash warning in pxafb
[ARM] pxa: PXA25x UDC - Fix warning during build
[ARM] fix nwflash.c: 6ee8928d94841aa764aeaf645ad16daff811dc26
[ARM] fix IOP32x, IOP33x, MXC and Samsung builds
[ARM] pci: provide dummy pci_get_legacy_ide_irq()
[ARM] fix fls() for 64-bit arguments
[ARM] fix mode for board-yl-9200.c
[ARM] 5176/1: arm/Makefile: fix: ARM946T -> ARM946E
commit 940389b8afad6495211614c13eb91ef7001773ec
Author: Andrea Righi <righi.andrea at gmail.com>
Date: Mon Jul 28 00:48:12 2008 +0200
task IO accounting: move all IO statistics in struct task_io_accounting
Simplify the code of include/linux/task_io_accounting.h.
It is also more reasonable to have all the task i/o-related statistics in a
single struct (task_io_accounting).
Signed-off-by: Andrea Righi <righi.andrea at gmail.com>
Signed-off-by: Oleg Nesterov <oleg at tv-sign.ru>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit f3409f71a76838b1bc985f753eed787a3f17bc2c
Author: Mauro Carvalho Chehab <mchehab at infradead.org>
Date: Sun Jul 27 19:30:46 2008 -0300
V4L/DVB (8549): mxl5007: Fix an error at include file
mxl5007 was forcing for its compilation:
In file included from drivers/media/common/tuners/mxl5007t.c:25:drivers/media/common/tuners/mxl5007t.h:80:1: warning: "CONFIG_MEDIA_TUNER_MXL5007T" redefined
In file included from <command-line>:0:
./include/linux/autoconf.h:2782:1: warning: this is the location of the previous definition
Probably, some temporary hack for testing.
Cc: Michael Krufky <mkrufky at linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit 744d18dbfae07482ea461701b0aaec3a75ec9224
Author: Trond Myklebust <Trond.Myklebust at netapp.com>
Date: Sun Jul 27 18:03:19 2008 -0400
NFS: Ensure we call nfs_sb_deactive() after releasing the directory inode
In order to avoid the "Busy inodes after unmount" error message, we need to
ensure that nfs_async_unlink_release() releases the super block after the
call to nfs_free_unlinkdata().
Signed-off-by: Trond Myklebust <Trond.Myklebust at netapp.com>
commit 31c9446993f412ecb7875e30bba4bc7f216ae016
Author: Marc Zyngier <maz at misterjones.org>
Date: Thu Jul 17 13:21:55 2008 +0200
nfs_remount oops when rebooting + possible fix
Jeff, Trond,
The commit
48b605f83c920d8daa50e43fc2c7f718e04c7bfa (NFS: implement option checking
when remounting NFS filesystems (resend))
generate an Oops on my platform when rebooting while its root FS on
an NFS share (NFSv3, TCP) :
Unmounting local filesystems...done.
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c3d00000
[00000000] *pgd=a3d72031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1]
Modules linked in: cpufreq_powersave cpufreq_ondemand cpufreq_userspace cpufreq_conservative ext3 jbd sd_mod pata_pcmcia libata scsi_mod pcmcia loop firmware_class pxafb cfbcopyarea cfbimgblt cfbfillrect pxa2xx_cs pxa2xx_core pcmcia_core snd_pxa2xx_ac97 snd_ac97_codec ac97_bus snd_pxa2xx_pcm snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd isp116x_hcd soundcore rtc_sa1100 snd_page_alloc pxa25x_udc usbcore rtc_ds1307 rtc_core
CPU: 0 Not tainted (2.6.26-03414-g33af79d-dirty #15)
PC is at nfs_remount+0x40/0x264
LR is at do_remount_sb+0x158/0x194
pc : [<c00bbf54>] lr : [<c0076c40>] psr: 60000013
sp : c2dd1e70 ip : c2dd1e98 fp : c2dd1e94
r10: 00000040 r9 : c3d17000 r8 : c3c3fc40
r7 : 00000000 r6 : 00000000 r5 : c3d2b200 r4 : 00000000
r3 : 00000003 r2 : 00000000 r1 : c2dd1e9c r0 : c3c3fc00
Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 0000397f Table: a3d00000 DAC: 00000015
Process mount (pid: 1462, stack limit = 0xc2dd0270)
Stack: (0xc2dd1e70 to 0xc2dd2000)
1e60: 00000000 c3c3fc00 00000000 00000000
1e80: c3c3fc40 c3d17000 c2dd1ebc c2dd1e98 c0076c40 c00bbf20 c01c61e4 00000001
1ea0: c2dd1ebc 00000001 c3c3fc00 c2dd1ef0 c2dd1ee4 c2dd1ec0 c008c6d8 c0076af4
1ec0: 00000021 00000040 c2dd1ef0 c3d77000 c3eaa000 00000000 c2dd1f6c c2dd1ee8
1ee0: c008d1bc c008c5f8 00000000 c2dd0000 c3c0c320 c3805b38 c002064c 0001f820
1f00: 0001f810 00000001 00000001 00000000 c2dd0000 00000000 c2dd1f34 c2dd1f28
1f20: c005ead8 c005e6f8 c2dd1f44 c2dd1f38 c005eaf8 c005ead0 c2dd1f6c c2dd1f48
1f40: c008ae3c 00000000 c3d77000 0001f810 c0ed0021 c0020ca8 c2dd0000 00000000
1f60: c2dd1fa4 c2dd1f70 c008d2d4 c008d0bc 00000000 0001f810 c2dd1f9c c3eaa000
1f80: c3d17000 00000000 00000000 be8b6aa8 be8b6ad0 00000015 00000000 c2dd1fa8
1fa0: c0020b00 c008d254 00000000 be8b6aa8 0001f810 0001f820 0001f830 c0ed0021
1fc0: 00000000 be8b6aa8 be8b6ad0 00000015 00000000 be8b6ad0 0001f810 be8b6aa8
1fe0: 0001f810 be8b6964 0000aab8 40125124 60000010 0001f810 00000000 00000000
Backtrace:
[<c00bbf14>] (nfs_remount+0x0/0x264) from [<c0076c40>] (do_remount_sb+0x158/0x194)
r9:c3d17000 r8:c3c3fc40 r7:00000000 r6:00000000 r5:c3c3fc00
r4:00000000
[<c0076ae8>] (do_remount_sb+0x0/0x194) from [<c008c6d8>] (do_remount+0xec/0x118)
r6:c2dd1ef0 r5:c3c3fc00 r4:00000001
[<c008c5ec>] (do_remount+0x0/0x118) from [<c008d1bc>] (do_mount+0x10c/0x198)
[<c008d0b0>] (do_mount+0x0/0x198) from [<c008d2d4>] (sys_mount+0x8c/0xd4)
[<c008d248>] (sys_mount+0x0/0xd4) from [<c0020b00>] (ret_fast_syscall+0x0/0x2c)
r7:00000015 r6:be8b6ad0 r5:be8b6aa8 r4:00000000
Code: 0a000086 ea000006 e3530003 8a000004 (e5923000)
---[ end trace 55e1b689cf8c8a6a ]---
------------[ cut here ]------------
WARNING: at kernel/exit.c:966 do_exit+0x3c/0x628()
Modules linked in: cpufreq_powersave cpufreq_ondemand cpufreq_userspace cpufreq_conservative ext3 jbd sd_mod pata_pcmcia libata scsi_mod pcmcia loop firmware_class pxafb cfbcopyarea cfbimgblt cfbfillrect pxa2xx_cs pxa2xx_core pcmcia_core snd_pxa2xx_ac97 snd_ac97_codec ac97_bus snd_pxa2xx_pcm snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd isp116x_hcd soundcore rtc_sa1100 snd_page_alloc pxa25x_udc usbcore rtc_ds1307 rtc_core
[<c0025168>] (dump_stack+0x0/0x14) from [<c0032154>] (warn_on_slowpath+0x4c/0x68)
[<c0032108>] (warn_on_slowpath+0x0/0x68) from [<c003531c>] (do_exit+0x3c/0x628)
r6:0000000b r5:c3c3dc80 r4:c2dd0000
[<c00352e0>] (do_exit+0x0/0x628) from [<c0025004>] (die+0x2b0/0x30c)
[<c0024d54>] (die+0x0/0x30c) from [<c00270bc>] (__do_kernel_fault+0x6c/0x80)
[<c0027050>] (__do_kernel_fault+0x0/0x80) from [<c00272e0>] (do_page_fault+0x210/0x230)
r7:c3fa7118 r6:c3c3dc80 r5:c3d166a8 r4:00010000
[<c00270d0>] (do_page_fault+0x0/0x230) from [<c00201ec>] (do_DataAbort+0x3c/0xa0)
[<c00201b0>] (do_DataAbort+0x0/0xa0) from [<c002064c>] (__dabt_svc+0x4c/0x60)
Exception stack(0xc2dd1e28 to 0xc2dd1e70)
1e20: c3c3fc00 c2dd1e9c 00000000 00000003 00000000 c3d2b200
1e40: 00000000 00000000 c3c3fc40 c3d17000 00000040 c2dd1e94 c2dd1e98 c2dd1e70
1e60: c0076c40 c00bbf54 60000013 ffffffff
r8:c3c3fc40 r7:00000000 r6:00000000 r5:c2dd1e5c r4:ffffffff
[<c00bbf14>] (nfs_remount+0x0/0x264) from [<c0076c40>] (do_remount_sb+0x158/0x194)
r9:c3d17000 r8:c3c3fc40 r7:00000000 r6:00000000 r5:c3c3fc00
r4:00000000
[<c0076ae8>] (do_remount_sb+0x0/0x194) from [<c008c6d8>] (do_remount+0xec/0x118)
r6:c2dd1ef0 r5:c3c3fc00 r4:00000001
[<c008c5ec>] (do_remount+0x0/0x118) from [<c008d1bc>] (do_mount+0x10c/0x198)
[<c008d0b0>] (do_mount+0x0/0x198) from [<c008d2d4>] (sys_mount+0x8c/0xd4)
[<c008d248>] (sys_mount+0x0/0xd4) from [<c0020b00>] (ret_fast_syscall+0x0/0x2c)
r7:00000015 r6:be8b6ad0 r5:be8b6aa8 r4:00000000
---[ end trace 55e1b689cf8c8a6a ]---
/etc/rc6.d/S60umountroot: line 17: 1462 Segmentation fault mount $MOUNT_FORCE_OPT -n -o remount,ro -t dummytype dummydev / 2> /dev/null
The new super.c:nfs_remount function doesn't check the validity of the
options/options4 pointers. Unfortunately, this seems to happend.
The obvious patch seems to check the pointers, and not to do anything if
the happend to be NULL.
Tested on an XScale PXA255 system, latest git.
Regards,
M.
Signed-off-by: Marc Zyngier <marc.zyngier at altran.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust at netapp.com>
commit 38413fd2d82b0e75ae0492518f1b80a5cfd81956
Author: Mauro Carvalho Chehab <mchehab at infradead.org>
Date: Sun Jul 27 19:02:30 2008 -0300
V4L/DVB (8548): pwc: Fix compilation
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit 051a4ac5df06bcc6add77059328e8827c7959709
Author: Hans Verkuil <hverkuil at xs4all.nl>
Date: Sun Jul 27 14:08:54 2008 -0300
V4L/DVB (8546): add tuner-3036 and dpc7146 drivers to feature-removal-schedule.txt
Signed-off-by: Hans Verkuil <hverkuil at xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit eb703027ac4ed563823e4d7824f68afed637d89a
Merge: 429e90893c9ad2c266d541c94d6ca69a34a7701d 837b41b5de356aa67abb2cadb5eef3efc7776f91
Author: Mauro Carvalho Chehab <mchehab at infradead.org>
Date: Sun Jul 27 18:11:53 2008 -0300
Merge ../linux-2.6
commit 429e90893c9ad2c266d541c94d6ca69a34a7701d
Author: Hans Verkuil <hverkuil at xs4all.nl>
Date: Sun Jul 27 14:08:54 2008 -0300
V4L/DVB (8546): saa7146: fix read from uninitialized memory
The offset field of the scatterlist entry *after* the last valid scatterlist
entry was used instead of the first scatterlist entry (as was the intention
of this code).
This worked fine until the kzalloc of the sglist was replaced with kmalloc
and sg_init_table only zeroed the exact needed length. Apparently kzalloc
zeroes a bit more than is strictly necessary so the offset field was
always 0 in the past.
But now the offset field was suddenly random and this led to broken captures.
Signed-off-by: Hans Verkuil <hverkuil at xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit ee56a4d3e39c2baafd06aaf26d975a7c9b05e3a2
Author: Oliver Neukum <oneukum at suse.de>
Date: Sun Jul 27 14:01:59 2008 -0300
V4L/DVB (8544): gspca: probe/open race.
The device is flagged present after it is registered. During that window calls
to open() that should work fail with -ENODEV. Reversing the order fixes
the race.
Signed-off-by: Oliver Neukum <oneukum at suse.de>
Acked-by: Hans de Goede <j.w.r.degoede at hhs.nl>
Signed-off-by: Jean-Francois Moine <moinejf at free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit ee281b856d4e4921da24387ab116bb0855c2efaa
Author: Mauro Carvalho Chehab <mchehab at infradead.org>
Date: Sun Jul 27 16:58:04 2008 -0300
V4L/DVB (8543): em28xx: Rename #define for Compro VideoMate ForYou/Stereo
There are two videomate boards supporded by em28xx. The names are almost
identical.
This patch renames one of such entries to something else.
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit fe43ef894c282dbfa963872eef577bab46a178fb
Author: Mauro Carvalho Chehab <mchehab at infradead.org>
Date: Sun Jul 27 15:00:23 2008 -0300
V4L/DVB (8542): em28xx: AMD ATI TV Wonder HD 600 entry at cards struct is duplicated
Thanks to "Devin Heitmueller" <devin.heitmueller at gmail.com> for pointing this
issue.
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit 10ac6603613d46a43a4544fbbe9581e50879bd45
Author: Mauro Carvalho Chehab <mchehab at infradead.org>
Date: Sun Jul 27 14:58:58 2008 -0300
V4L/DVB (8541): em28xx: HVR-950 entry is duplicated.
Thanks to "Devin Heitmueller" <devin.heitmueller at gmail.com> for pointing this
issue.
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit a1bd021e56fff91cc9354ffb232fd9f0f577099c
Author: Sam Ravnborg <sam at ravnborg.org>
Date: Sat Jul 26 23:20:48 2008 +0200
sparc: enable headers_export again
Update include/asm/Kbuild so we export
all relvant headers for sparc.
Signed-off-by: Sam Ravnborg <sam at ravnborg.org>
commit a439fe51a1f8eb087c22dd24d69cebae4a3addac
Author: Sam Ravnborg <sam at ravnborg.org>
Date: Sun Jul 27 23:00:59 2008 +0200
sparc, sparc64: use arch/sparc/include
The majority of this patch was created by the following script:
***
ASM=arch/sparc/include/asm
mkdir -p $ASM
git mv include/asm-sparc64/ftrace.h $ASM
git rm include/asm-sparc64/*
git mv include/asm-sparc/* $ASM
sed -ie 's/asm-sparc64/asm/g' $ASM/*
sed -ie 's/asm-sparc/asm/g' $ASM/*
***
The rest was an update of the top-level Makefile to use sparc
for header files when sparc64 is being build.
And a small fixlet to pick up the correct unistd.h from
sparc64 code.
Signed-off-by: Sam Ravnborg <sam at ravnborg.org>
commit 583323b9d2f624884a8c9563fb5a4d795f39ab07
Author: Thomas Gleixner <tglx at linutronix.de>
Date: Sun Jul 27 21:43:11 2008 +0200
x86: fix cpu hotplug on 32bit
commit 3e9704739daf46a8ba6593d749c67b5f7cd633d2 ("x86: boot secondary
cpus through initial_code") causes the kernel to crash when a CPU is
brought online after the read only sections have been write
protected. The write to initial_code in do_boot_cpu() fails.
Move inital_code to .cpuinit.data section.
Signed-off-by: Thomas Gleixner <tglx at linutronix.de>
Acked-by: H. Peter Anvin <hpa at zytor.com>
commit 837b41b5de356aa67abb2cadb5eef3efc7776f91
Merge: 211c8d4942edf2f3337820dda101da6b13c8a19a f05e21b39f7dddcebab03ff329fef5783fea58d4
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sun Jul 27 10:24:06 2008 -0700
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6:
firewire: state userland requirements in Kconfig help
firewire: avoid memleak after phy config transmit failure
firewire: fw-ohci: TSB43AB22/A dualbuffer workaround
firewire: queue the right number of data
firewire: warn on unfinished transactions during card removal
firewire: small fw_fill_request cleanup
firewire: fully initialize fw_transaction before marking it pending
firewire: fix race of bus reset with request transmission
commit d3603341e2f3c39f017f8df4b1cd734aeb0d453b
Author: Vitaly Wool <vital at embeddedalley.com>
Date: Sun Jul 27 14:10:11 2008 -0300
V4L/DVB (8540): em28xx-cards: Add Compro VideoMate ForYou/Stereo model
Added Compro VideoMate ForYou/Stereo model (analog only)
Signed-off-by: Vitaly Wool <vital at embeddedalley.com>
[dougsland at gmail.com: Solved conflicts with v4l-dvb devel tree]
Signed-off-by: Douglas Schilling Landgraf <dougsland at gmail.com>
[mchehab at infradead.org: Need to fix some merge conflicts]
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit 95b86a9a9020da22e7c25abc77aae4dc8f02ab55
Author: Douglas Schilling Landgraf <dougsland at gmail.com>
Date: Sun Jul 27 14:03:32 2008 -0300
V4L/DVB (8539): em28xx-cards: New supported IDs for analog models
- New supported IDs for analog models
(Based on Markus Rechberger <mrechberger at gmail.com> version of em28xx driver)
- Validation field for new em28xx boards.
Signed-off-by: Douglas Schilling Landgraf <dougsland at gmail.com>
[mchehab at infradead.org: Need to fix some merge conflicts]
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit 59d07f1b705c466ea4eaca9c43d46be6d6a065a4
Author: Aron Szabo <aron at aron.ws>
Date: Sun Jul 27 13:47:52 2008 -0300
V4L/DVB (8538): em28xx-cards: Add GrabBeeX+ USB2800 model
Added GrabBeeX+ USB2800 model (analog only)
[mchehab at infradead.org: Need to fix some merge conflicts]
Signed-off-by: Aron Szabo <aron at aron.ws>
Signed-off-by: Douglas Schilling Landgraf <dougsland at gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit 211c8d4942edf2f3337820dda101da6b13c8a19a
Merge: 7a82323da3d21ea59a0509569fc5c7bc5aa7eed7 cadbd4a5e36dde7e6c49b587b2c419103c0b7218
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sun Jul 27 10:04:52 2008 -0700
Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (59 commits)
[SCSI] replace __FUNCTION__ with __func__
[SCSI] extend the last_sector_bug flag to cover more sectors
[SCSI] qla2xxx: Update version number to 8.02.01-k6.
[SCSI] qla2xxx: Additional NPIV corrections.
[SCSI] qla2xxx: suppress uninitialized-var warning
[SCSI] qla2xxx: use memory_read_from_buffer()
[SCSI] qla2xxx: Issue proper ISP callbacks during stop-firmware.
[SCSI] ch: fix ch_remove oops
[SCSI] 3w-9xxx: add MSI support and misc fixes
[SCSI] scsi_lib: use blk_rq_tagged in scsi_request_fn
[SCSI] ibmvfc: Update driver version to 1.0.1
[SCSI] ibmvfc: Add ADISC support
[SCSI] ibmvfc: Miscellaneous fixes
[SCSI] ibmvfc: Fix hang on module removal
[SCSI] ibmvfc: Target refcounting fixes
[SCSI] ibmvfc: Reduce unnecessary log noise
[SCSI] sym53c8xx: free luntbl in sym_hcb_free
[SCSI] scsi_scan.c: Release mutex in error handling code
[SCSI] scsi_eh_prep_cmnd should save scmd->underflow
[SCSI] sd: Support for SCSI disk (SBC) Data Integrity Field
...
commit 7a82323da3d21ea59a0509569fc5c7bc5aa7eed7
Merge: b0d8aa081bcb2d396a257ae5b3be8c1b3006bfa4 3c26e17032e42cfbe606882288223ad6146e4c38
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sun Jul 27 10:03:00 2008 -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: some mmc/sd cleanups
include/video/atmel_lcdc.h must #include <linux/workqueue.h>
avr32: allow system timer to share interrupt to make OProfile work
drivers/misc/atmel-ssc.c: Removed duplicated include
avr32: Add platform data for AC97C platform device
avr32: clean up mci platform code
fix avr32 build errors
commit b0d8aa081bcb2d396a257ae5b3be8c1b3006bfa4
Merge: 6948385cbd83201fb933125c1a578b29b456605d cc04454fa81e93b5f1b5133950331639d2f59f85
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sun Jul 27 10:00:23 2008 -0700
Merge branch 'kvm-updates-2.6.27' of git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm
* 'kvm-updates-2.6.27' of git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm:
KVM: ppc: fix invalidation of large guest pages
KVM: s390: Fix possible host kernel bug on lctl(g) handling
KVM: s390: Fix instruction naming for lctlg
KVM: s390: Fix program check on interrupt delivery handling
KVM: s390: Change guestaddr type in gaccess
KVM: s390: Fix guest kconfig
KVM: s390: Advertise KVM_CAP_USER_MEMORY
KVM: ia64: Fix irq disabling leak in error handling code
KVM: VMX: Fix undefined beaviour of EPT after reload kvm-intel.ko
KVM: VMX: Fix bypass_guest_pf enabling when disable EPT in module parameter
KVM: task switch: translate guest segment limit to virt-extension byte granular field
KVM: Avoid instruction emulation when event delivery is pending
KVM: task switch: use seg regs provided by subarch instead of reading from GDT
KVM: task switch: segment base is linear address
KVM: SVM: allow enabling/disabling NPT by reloading only the architecture module
commit 6948385cbd83201fb933125c1a578b29b456605d
Merge: 7a76d89232f20411f32e7a79ccc1e2f95e9f826b 56b2f0706d82535fd8d85503f2dcc0be40c8e55d
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sun Jul 27 09:59:59 2008 -0700
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-next
* git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-next: (25 commits)
setlocalversion: do not describe if there is nothing to describe
kconfig: fix typos: "Suport" -> "Support"
kconfig: make defconfig is no longer chatty
kconfig: make oldconfig is now less chatty
kconfig: speed up all*config + randconfig
kconfig: set all new symbols automatically
kconfig: add diffconfig utility
kbuild: remove Module.markers during mrproper
kbuild: sparse needs CF not CHECKFLAGS
kernel-doc: handle/strip __init
vmlinux.lds: move __attribute__((__cold__)) functions back into final .text section
init: fix URL of "The GNU Accounting Utilities"
kbuild: add arch/$ARCH/include to search path
kbuild: asm symlink support for arch/$ARCH/include
kbuild: support arch/$ARCH/include for tags, cscope
kbuild: prepare headers_* for arch/$ARCH/include
kbuild: install all headers when arch is changed
kbuild: make clean removes *.o.* as well
kbuild: optimize headers_* targets
kbuild: only one call for include/ in make headers_*
...
commit 7a76d89232f20411f32e7a79ccc1e2f95e9f826b
Merge: f631a78445e94b8a9ae23980d00a5cb2d9c3d0c7 c0e741d47859fcabb84a37589a4f49801ca8590a
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sun Jul 27 09:59:24 2008 -0700
Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
crypto: talitos - sparse fix
crypto: talitos - Stop leaking memory in error path
crypto: talitos - Fix GFP flag usage
crypto: talitos - Preempt overflow interrupts
crypto: talitos - Correct dst != src case handling
crypto: talitos - Remove calls to of_node_put
commit f631a78445e94b8a9ae23980d00a5cb2d9c3d0c7
Merge: 13ffc32eaf0b75a19bd8c3a8702faedde28853fe c5b61d59a685b1227b8a994b52a9b0bd68dc8da8
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sun Jul 27 09:58:59 2008 -0700
Merge git://git.kernel.org/pub/scm/linux/kernel/git/kkeil/ISDN-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/kkeil/ISDN-2.6:
Fix namespace issue with Hisax
commit 13ffc32eaf0b75a19bd8c3a8702faedde28853fe
Author: Stephen Rothwell <sfr at canb.auug.org.au>
Date: Mon Jul 28 02:37:32 2008 +1000
isdn: mISDN HFC PCI support depends on virt_to_bus()
On powerpc (allyesconfig build) we get this error:
drivers/isdn/hardware/mISDN/hfcpci.c:1991: error: implicit declaration of function 'virt_to_bus'
Signed-off-by: Stephen Rothwell <sfr at canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 5995477ab7f3522c497c9c4a1c55373e9d655574
Author: Andrea Righi <righi.andrea at gmail.com>
Date: Sun Jul 27 17:29:15 2008 +0200
task IO accounting: improve code readability
Put all i/o statistics in struct proc_io_accounting and use inline functions to
initialize and increment statistics, removing a lot of single variable
assignments.
This also reduces the kernel size as following (with CONFIG_TASK_XACCT=y and
CONFIG_TASK_IO_ACCOUNTING=y).
text data bss dec hex filename
11651 0 0 11651 2d83 kernel/exit.o.before
11619 0 0 11619 2d63 kernel/exit.o.after
10886 132 136 11154 2b92 kernel/fork.o.before
10758 132 136 11026 2b12 kernel/fork.o.after
3082029 807968 4818600 8708597 84e1f5 vmlinux.o.before
3081869 807968 4818600 8708437 84e155 vmlinux.o.after
Signed-off-by: Andrea Righi <righi.andrea at gmail.com>
Acked-by: Oleg Nesterov <oleg at tv-sign.ru>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 605ccb73f6a1c891a16268b3a2923208fc637958
Author: Andrea Righi <righi.andrea at gmail.com>
Date: Sun Jul 27 13:39:03 2008 +0200
tracing: remove unused variable
Remove the following warning with CONFIG_TRACING=y:
kernel/trace/trace.c: In function âs_nextâ:
kernel/trace/trace.c:1186: warning: unused variable âlast_entâ
Signed-off-by: Andrea Righi <righi.andrea at gmail.com>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 375614422509c98a1f3dbef410206bf81775169b
Merge: eeb61f719c00c626115852bbc91189dc3011a844 536319afd1f25383009c0c88f6fb00104f49c178
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sun Jul 27 09:45:59 2008 -0700
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
ALSA: Allow to force model to intel-mac-v3 in snd_hda_intel (sigmatel).
ALSA: cs4232: fix crash during chip PNP detection
ALSA: hda - Add automatic model setting for the Acer Aspire 5920G laptop
ALSA: make snd_ac97_add_vmaster() static
ALSA: sound/pci/azt3328.h: no variables for enums
ALSA: soc - wm9712 mono mixer
ALSA: hda - Add support of ASUS Eeepc P90*
ALSA: opti9xx: no isapnp param for !CONFIG_PNP
ALSA: opti93x - Fix NULL dereference
ALSA: hda - Added support for Asus V1Sn
ALSA: ASoC: Factor PGA DAPM handling into main
ALSA: ASoC: Refactor DAPM event handler
ALSA: ALSA: ens1370: communicate PCI device to AC97
ALSA: ens1370: SRC stands for Sample Rate Converter
ALSA: hda - Align BDL position adjustment parameter
ALSA: Au1xpsc: psc not disabled when TX is idle
ALSA: add TriTech 28023 AC97 codec ID and Wolfson 9701 name.
commit eeb61f719c00c626115852bbc91189dc3011a844
Author: Al Viro <viro at ZenIV.linux.org.uk>
Date: Sun Jul 27 08:59:33 2008 +0100
missing bits of net-namespace / sysctl
Piss-poor sysctl registration API strikes again, film at 11...
What we really need is _pathname_ required to be present in already
registered table, so that kernel could warn about bad order. That's the
next target for sysctl stuff (and generally saner and more explicit
order of initialization of ipv[46] internals wouldn't hurt either).
For the time being, here are full fixups required by ..._rotable()
stuff; we make per-net sysctl sets descendents of "ro" one and make sure
that sufficient skeleton is there before we start registering per-net
sysctls.
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit bfbcf034798b2ca45338cee5049b5694b7ddc865
Author: Al Viro <viro at ZenIV.linux.org.uk>
Date: Sun Jul 27 06:31:22 2008 +0100
lost sysctl fix
try_attach() should walk into the matching subdirectory, not the first one...
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
Tested-by: Valdis.Kletnieks at vt.edu
Tested-by: Ingo Molnar <mingo at elte.hu>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit c5b61d59a685b1227b8a994b52a9b0bd68dc8da8
Author: Karsten Keil <kkeil at suse.de>
Date: Sun Jul 27 18:32:50 2008 +0200
Fix namespace issue with Hisax
you can pull this git://git./linux/kernel/git/kkeil/ISDN-2.6 master
rename release_tei() to TEIrelease() because release_tei() was
already exported bei the old HiSax driver.
Signed-off-by: Karsten Keil <kkeil at suse.de>
commit 50cb993ea6cd187bfed085cb3e0747066edeb02f
Merge: 445c2714cf72817ab1ad3ca894c6d9b2047b3a3e 8be1a6d6c77ab4532e4476fdb8177030ef48b52c
Author: Mauro Carvalho Chehab <mchehab at infradead.org>
Date: Sun Jul 27 12:25:57 2008 -0300
Merge ../linux-2.6
commit 445c2714cf72817ab1ad3ca894c6d9b2047b3a3e
Author: Adrian Bunk <bunk at kernel.org>
Date: Sun Jul 27 10:04:55 2008 -0300
V4L/DVB (8534): remove select's of FW_LOADER
After commit d9b19199e4894089456aaad295023263b5225c1a
(always enable FW_LOADER unless EMBEDDED=y) we can remove
the FW_LOADER select's and corresponding dependencies
on HOTPLUG.
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit 9fa0f6db3a201bef49f28e69f80802559a38586b
Author: Mauro Carvalho Chehab <mchehab at infradead.org>
Date: Sun Jul 27 08:55:17 2008 -0300
V4L/DVB (8522): videodev2: Fix merge conflict
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit cadbd4a5e36dde7e6c49b587b2c419103c0b7218
Author: Harvey Harrison <harvey.harrison at gmail.com>
Date: Thu Jul 3 23:47:27 2008 -0700
[SCSI] replace __FUNCTION__ with __func__
[jejb: fixed up a ton of missed conversions.
All of you are on notice this has happened, driver trees will now
need to be rebased]
Signed-off-by: Harvey Harrison <harvey.harrison at gmail.com>
Cc: SCSI List <linux-scsi at vger.kernel.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 2b142900784c6e38c8d39fa57d5f95ef08e735d8
Author: Alan Jenkins <alan-jenkins at tuffmail.co.uk>
Date: Sun Jul 27 09:38:42 2008 +0100
[SCSI] extend the last_sector_bug flag to cover more sectors
The last_sector_bug flag was added to work around a bug in certain usb
cardreaders, where they would crash if a multiple sector read included the
last sector. The original implementation avoids this by e.g. splitting an 8
sector read which includes the last sector into a 7 sector read, and a single
sector read for the last sector. The flag is enabled for all USB devices.
This revealed a second bug in other usb cardreaders, which crash when they
get a multiple sector read which stops 1 sector short of the last sector.
Affected hardware includes the Kingston "MobileLite" external USB cardreader
and the internal USB cardreader on the Asus EeePC.
Extend the last_sector_bug workaround to ensure that any access which touches
the last 8 hardware sectors of the device is a single sector long. Requests
are shrunk as necessary to meet this constraint.
This gives us a safety margin against potential unknown or future bugs
affecting multi-sector access to the end of the device. The two known bugs
only affect the last 2 sectors. However, they suggest that these devices
are prone to fencepost errors and that multi-sector access to the end of the
device is not well tested. Popular OS's use multi-sector accesses, but they
rarely read the last few sectors. Linux (with udev & vol_id) automatically
reads sectors from the end of the device on insertion. It is assumed that
single sector accesses are more thoroughly tested during development.
Signed-off-by: Alan Jenkins <alan-jenkins at tuffmail.co.uk>
Tested-by: Alan Jenkins <alan-jenkins at tuffmail.co.uk>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 74b9ef21162fd81d9de87319c4373f523e2869cd
Author: Michael Krufky <mkrufky at linuxtv.org>
Date: Sat Jul 26 15:43:17 2008 -0300
V4L/DVB (8532): mxl5007t: remove excessive locks
The use of mutex locking is overly paranoid in this driver.
The only locks we need are around the manipulation of the
register arrays. The other locks are not needed - remove them.
Thanks to Steven Toth for pointing this out.
Signed-off-by: Michael Krufky <mkrufky at linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit c39c1fd29373d204b11b71946d0f4c97e4974dd9
Author: Michael Krufky <mkrufky at linuxtv.org>
Date: Sat Jul 26 12:06:57 2008 -0300
V4L/DVB (8531): mxl5007t: move i2c gate handling outside of mutex protected code blocks
There is no reason to protect the i2c gate handling within the mxl5007t
state mutex.
Thanks to Steven Toth for pointing this out.
Signed-off-by: Michael Krufky <mkrufky at linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit 59d27521c0f50fadf3382e2b325a7e8a04d9a770
Author: Michael Krufky <mkrufky at linuxtv.org>
Date: Wed Jul 9 00:23:08 2008 -0300
V4L/DVB (8530): au0828: add support for new revision of HVR950Q
Signed-off-by: Michael Krufky <mkrufky at linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit 452a53a247d9181bb0ec07ce1def51769619e9d2
Author: Michael Krufky <mkrufky at linuxtv.org>
Date: Sat Jul 12 18:22:38 2008 -0300
V4L/DVB (8529): mxl5007t: enable _init and _sleep power management functionality
Signed-off-by: Michael Krufky <mkrufky at linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit 2a83e4d5e40fd8eda3c04a5847f0876a4be9d45b
Author: Michael Krufky <mkrufky at linuxtv.org>
Date: Mon Jul 7 18:20:58 2008 -0300
V4L/DVB (8528): add support for MaxLinear MxL5007T silicon tuner
Signed-off-by: Michael Krufky <mkrufky at linuxtv.org>
Signed-off-by: Asaf Fishov <afishov at maxlinear.com>
Signed-off-by: Charles Kim <ckim at maxlinear.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit f796804f01429b832e1e734c54f0f535b322c665
Author: Hans Verkuil <hverkuil at xs4all.nl>
Date: Sat Jul 26 09:16:29 2008 -0300
V4L/DVB (8526): saa7146: fix VIDIOC_ENUM_FMT
VIDIOC_ENUM_FMT should keep the index and type fields. Instead,
type was zeroed.
Signed-off-by: Hans Verkuil <hverkuil at xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit de1e575db21a341b77b296af7dd87f163ebf6020
Author: Hans Verkuil <hverkuil at xs4all.nl>
Date: Sat Jul 26 08:37:58 2008 -0300
V4L/DVB (8525): fix a few assorted spelling mistakes.
Signed-off-by: Hans Verkuil <hverkuil at xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit c1d7f4f1648cb8efd87f1b9560c40af2297e7c05
Author: Hans Verkuil <hverkuil at xs4all.nl>
Date: Sat Jul 26 08:33:47 2008 -0300
V4L/DVB (8524): videodev: copy the VID_TYPE defines to videodev.h
The VID_TYPE defines are V4L1 specific, so copy them back to videodev.h.
In videodev2.h ensure that they are not used in the kernel (you need
to include videodev.h instead) and mark them are deprecated.
Signed-off-by: Hans Verkuil <hverkuil at xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit 0ea6bc8d43c9ee3c5384bea184eab020927a5b2c
Author: Hans Verkuil <hverkuil at xs4all.nl>
Date: Sat Jul 26 08:26:43 2008 -0300
V4L/DVB (8523): v4l2-dev: remove unused type and type2 field from video_device
The type and type2 fields were unused and so could be removed.
Instead add a vfl_type field that contains the type of the video
device.
Signed-off-by: Hans Verkuil <hverkuil at xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit c52e4f5836cff0a70a25665f475cf5294c9fe5eb
Author: Jean-Francois Moine <moinejf at free.fr>
Date: Sun Jul 27 02:56:33 2008 -0300
V4L/DVB (8521): gspca: Webcams with Sonix bridge and sensor ov7630 are VGA.
This fixes a bug introduced in c503a6f8332a (thanks to Hans de Goede).
Signed-off-by: Jean-Francois Moine <moinejf at free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit 87581aa5f10959224fc7e1a30ac9af53949d0ef2
Author: Jean-Francois Moine <moinejf at free.fr>
Date: Sat Jul 26 14:30:01 2008 -0300
V4L/DVB (8520): gspca: Bad webcam information in some modules since 28b8203a830e.
Signed-off-by: Jean-Francois Moine <moinejf at free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit 5da162e7e2246851b6d5899688bba5b25a7fea3e
Author: Jean-Francois Moine <moinejf at free.fr>
Date: Sat Jul 26 14:17:23 2008 -0300
V4L/DVB (8519): gspca: Set the specific per webcam information in driver_info for sonixb.
Signed-off-by: Jean-Francois Moine <moinejf at free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit 1250ac6d4ab716dafe0ac245fd31cd3a7cbc0a98
Author: Jean-Francois Moine <moinejf at free.fr>
Date: Sat Jul 26 08:02:47 2008 -0300
V4L/DVB (8518): gspca: Remove the remaining frame decoding functions from the subdrivers.
SPCA505 and SPCA508 added in the pixel formats.
Decode functions and associated resources removed in spca505, 506 and 508.
The decode routines are now found in the V4L library.
Signed-off-by: Jean-Francois Moine <moinejf at free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit 496cd7e977c73df2c287eaf6d612fc49d6f83dd7
Author: Jean-Francois Moine <moinejf at free.fr>
Date: Sat Jul 26 07:49:55 2008 -0300
V4L/DVB (8517): gspca: Bad sensor for some webcams in zc3xx since 28b8203a830e.
'.driver_info = ' forgotten in usb device id table.
Signed-off-by: Jean-Francois Moine <moinejf at free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit e546f4bb6d3b320d60c33025597bc8fc31532394
Author: Jean-Francois Moine <moinejf at free.fr>
Date: Sat Jul 26 03:43:59 2008 -0300
V4L/DVB (8515): gspca: Webcam 0c45:6143 added in sonixj.
It is an other Pccam168. The .inf says SN9C120B + SP80708, but it should
work as SN9C120 + MI0360.
Signed-off-by: Jean-Francois Moine <moinejf at free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit 9d64fdb15b1b9ce9144cfde4001e9194ccde42d1
Author: Jean-Francois Moine <moinejf at free.fr>
Date: Fri Jul 25 08:53:03 2008 -0300
V4L/DVB (8513): gspca: Set the specific per webcam information in driver_info.
This patch removes a big part of the code run at probe time.
Signed-off-by: Jean-Francois Moine <moinejf at free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit 07767ebda385956bd2b193f9820de719475bfe6e
Author: Jean-Francois Moine <moinejf at free.fr>
Date: Wed Jul 23 03:39:42 2008 -0300
V4L/DVB (8512): gspca: Do not use the driver_info field of usb_device_id.
The field driver_info will be used to handle the specific per webcam
information.
Signed-off-by: Jean-Francois Moine <moinejf at free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit c6edaf1674d3c17770b1c9966306b802adb21a2b
Author: Jean-Francois Moine <moinejf at free.fr>
Date: Wed Jul 23 03:24:06 2008 -0300
V4L/DVB (8511): gspca: Get the card name of QUERYCAP from the usb product name.
This is a preliminary for using the driver_info of the struct
usb_device_id to handle the specific per webcam information.
Signed-off-by: Jean-Francois Moine <moinejf at free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit 353facd4ab5acc6e9d83985eec9ca17e5d0cb470
Author: Michael Krufky <mkrufky at linuxtv.org>
Date: Sat Jul 26 18:28:26 2008 -0300
V4L/DVB (8509): pvrusb2: fix device descriptions for HVR-1900 & HVR-1950
Acked-by: Mike Isely <isely at pobox.com>
Signed-off-by: Michael Krufky <mkrufky at linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit 531d83a3d39280d191e2b1f0b540dbad22731579
Author: Hans Verkuil <hverkuil at xs4all.nl>
Date: Sat Jul 26 09:04:06 2008 -0300
V4L/DVB (8506): empress: fix control handling oops
Signed-off-by: Hans Verkuil <hverkuil at xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit 1052efe0fc69130d9d6a44bc9ceecd229221d9a1
Author: Hans Verkuil <hverkuil at xs4all.nl>
Date: Sat Jul 26 09:01:24 2008 -0300
V4L/DVB (8505): saa7134-empress.c: fix deadlock
ts_release() locked a mutex that videobuf_stop() also tried to obtain.
But ts_release() shouldn't hold that mutex at all.
Make empress_users atomic as well to prevent possible race condition.
Signed-off-by: Hans Verkuil <hverkuil at xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit feb75f07102a85026d41e2c4e4113c34dd035c30
Author: Hans Verkuil <hverkuil at xs4all.nl>
Date: Sun Jul 27 06:30:21 2008 -0300
V4L/DVB (8504): s2255drv: add missing header
Signed-off-by: Hans Verkuil <hverkuil at xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit 9993e51c0c47ec69dce1f26c2321af6bb9165e9e
Author: Mauro Carvalho Chehab <mchehab at infradead.org>
Date: Sat Jul 26 13:53:46 2008 -0300
V4L/DVB (8502): videodev2.h: CodingStyle cleanups
Signed-off-by: Mauro Carvalho Chehab <mchehab at infradead.org>
commit 2ab61b01110aa04cd853c619a74881e3225a5e24
Merge: 6f9f489a4eeaa3c8a8618e078a5270d2c4872b67 860239c56bbc7c830bdbcec93b140f22a5a5219b
Author: David S. Miller <davem at davemloft.net>
Date: Sun Jul 27 05:00:25 2008 -0700
Merge branch 'master' of git://eden-feed.erg.abdn.ac.uk/net-2.6
commit 3c26e17032e42cfbe606882288223ad6146e4c38
Author: David Brownell <dbrownell at users.sourceforge.net>
Date: Sun Jul 27 02:34:45 2008 -0700
avr32: some mmc/sd cleanups
Minor cleanups for the MMC/SD support on avr32:
- Make at32_add_device_mci() properly initialize "missing"
platform data ... so boards like STK1002 won't try GPIO 0.
- Switch over to gpio_is_valid() instead of testing for only
one designated value.
- Provide STK1002 platform data for the unlikely case that
switches are set so first Ethernet controller isn't in use.
(That's the only way to get card detect and writeprotect
switch sensing on the STK1000.)
And get rid of one "unused variable" warning.
Signed-off-by: David Brownell <dbrownell at users.sourceforge.net>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen at atmel.com>
commit eda3d8f5604860aae1bb9996bb5efc4213778369
Merge: 87a9f704658a40940e740b1d73d861667e9164d3 8be1a6d6c77ab4532e4476fdb8177030ef48b52c
Author: Haavard Skinnemoen <haavard.skinnemoen at atmel.com>
Date: Sun Jul 27 13:54:08 2008 +0200
Merge commit 'upstream/master'
commit 6f9f489a4eeaa3c8a8618e078a5270d2c4872b67
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Sun Jul 27 04:40:51 2008 -0700
net: missing bits of net-namespace / sysctl
Piss-poor sysctl registration API strikes again, film at 11...
What we really need is _pathname_ required to be present in
already registered table, so that kernel could warn about bad
order. That's the next target for sysctl stuff (and generally
saner and more explicit order of initialization of ipv[46]
internals wouldn't hurt either).
For the time being, here are full fixups required by ..._rotable()
stuff; we make per-net sysctl sets descendents of "ro" one and
make sure that sufficient skeleton is there before we start registering
per-net sysctls.
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 15d3b4a26291c170563e2b25ded5de1324f93959
Merge: 2c3abab7c95295f319dc8899b74cbd60140fcdfb 8be1a6d6c77ab4532e4476fdb8177030ef48b52c
Author: David S. Miller <davem at davemloft.net>
Date: Sun Jul 27 04:40:08 2008 -0700
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6
commit 2c3abab7c95295f319dc8899b74cbd60140fcdfb
Author: David S. Miller <davem at davemloft.net>
Date: Sun Jul 27 03:59:24 2008 -0700
ipcomp: Fix warnings after ipcomp consolidation.
net/ipv4/ipcomp.c: In function âipcomp4_init_stateâ:
net/ipv4/ipcomp.c:109: warning: unused variable âcalg_descâ
net/ipv4/ipcomp.c:108: warning: unused variable âipcdâ
net/ipv4/ipcomp.c:107: warning: âerrâ may be used uninitialized in this function
net/ipv6/ipcomp6.c: In function âipcomp6_init_stateâ:
net/ipv6/ipcomp6.c:139: warning: unused variable âcalg_descâ
net/ipv6/ipcomp6.c:138: warning: unused variable âipcdâ
net/ipv6/ipcomp6.c:137: warning: âerrâ may be used uninitialized in this function
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 53cdb27a933e4032934cbda0b447cfc9943c0eac
Author: Russell King <rmk at dyn-67.arm.linux.org.uk>
Date: Sun Jul 27 10:35:54 2008 +0100
[ARM] Fix shared mmap when more than two maps of the same file exist
The shared mmap code works fine for the test case, which only checked
for two shared maps of the same file. However, three shared maps
result in one mapping remaining cached, resulting in stale data being
visible via that mapping. Fix this.
Signed-off-by: Russell King <rmk+kernel at arm.linux.org.uk>
commit daf93dd55c48b65ab2f1907e0fc5ef994896c787
Author: Russell King <rmk at dyn-67.arm.linux.org.uk>
Date: Sun Jul 27 10:10:58 2008 +0100
[ARM] fix VIPT/VIVT macro optimisations, add comments
cacheflush.h was doing:
... VIVT only stuff
... VIPT only stuff
... VIVT or VIPT stuff
which is clearly bogus - we would only ever use the "VIVT or VIPT" case
when both VIVT and VIPT are not selected. Fix this.
Add comments to each case, including noting the impossibility of
correctly detecting the cache type of ARM926 and ARMv6 cores from
the cache type register in the "VIVT or VIPT" case.
Signed-off-by: Russell King <rmk+kernel at arm.linux.org.uk>
commit cc04454fa81e93b5f1b5133950331639d2f59f85
Author: Hollis Blanchard <hollisb at us.ibm.com>
Date: Fri Jul 25 13:54:50 2008 -0500
KVM: ppc: fix invalidation of large guest pages
When guest invalidates a large tlb map, there may be more than one
corresponding shadow tlb maps that need to be invalidated. Use eaddr and eend
to find these shadow tlb maps.
Signed-off-by: Liu Yu <yu.liu at freescale.com>
Signed-off-by: Hollis Blanchard <hollisb at us.ibm.com>
Signed-off-by: Avi Kivity <avi at qumranet.com>
commit 6cab48602996cdbcb277375a8107d53e21e8c9b9
Author: Dmitry Baryshkov <dbaryshkov at gmail.com>
Date: Sun Jul 27 04:23:31 2008 +0100
[ARM] 5179/1: Replace obsolete IRQT_* and __IRQT_* values with IRQ_TYPE_*
IRQT_* and __IRQT_* were obsoleted long ago by patch [3692/1].
Remove them completely. Sed script for the reference:
s/__IRQT_RISEDGE/IRQ_TYPE_EDGE_RISING/g
s/__IRQT_FALEDGE/IRQ_TYPE_EDGE_FALLING/g
s/__IRQT_LOWLVL/IRQ_TYPE_LEVEL_LOW/g
s/__IRQT_HIGHLVL/IRQ_TYPE_LEVEL_HIGH/g
s/IRQT_RISING/IRQ_TYPE_EDGE_RISING/g
s/IRQT_FALLING/IRQ_TYPE_EDGE_FALLING/g
s/IRQT_BOTHEDGE/IRQ_TYPE_EDGE_BOTH/g
s/IRQT_LOW/IRQ_TYPE_LEVEL_LOW/g
s/IRQT_HIGH/IRQ_TYPE_LEVEL_HIGH/g
s/IRQT_PROBE/IRQ_TYPE_PROBE/g
s/IRQT_NOEDGE/IRQ_TYPE_NONE/g
Signed-off-by: Dmitry Baryshkov <dbaryshkov at gmail.com>
Signed-off-by: Russell King <rmk+kernel at arm.linux.org.uk>
commit 5a00a5e7a3e013b2323f87c1b69ff9557eae5ec9
Author: Christian Borntraeger <borntraeger at de.ibm.com>
Date: Fri Jul 25 15:53:12 2008 +0200
KVM: s390: Fix possible host kernel bug on lctl(g) handling
The lctl(g) instructions require a specific alignment for the parameters.
The architecture requires a specification program check if these alignments
are not used. Enforcing this alignment also removes a possible host BUG,
since the get_guest functions check for proper alignment and emits a BUG.
Signed-off-by: Christian Borntraeger <borntraeger at de.ibm.com>
Signed-off-by: Avi Kivity <avi at qumranet.com>
commit f5e10b09a5f8fc40666c95fe0cd6bcc2b8f11437
Author: Christian Borntraeger <borntraeger at de.ibm.com>
Date: Fri Jul 25 15:52:44 2008 +0200
KVM: s390: Fix instruction naming for lctlg
Lets fix the name for the lctlg instruction...
Signed-off-by: Christian Borntraeger <borntraeger at de.ibm.com>
Signed-off-by: Avi Kivity <avi at qumranet.com>
commit 3cd612998f17d5b3588be7f4937720411d247ff6
Author: Christian Borntraeger <borntraeger at de.ibm.com>
Date: Fri Jul 25 15:51:54 2008 +0200
KVM: s390: Fix program check on interrupt delivery handling
The current interrupt handling on s390 misbehaves on an error case. On s390
each cpu has the prefix area (lowcore) for interrupt delivery. This memory
must always be available. If we fail to access the prefix area for a guest
on interrupt delivery the configuration is completely unusable. There is no
point in sending another program interrupt to an inaccessible lowcore.
Furthermore, we should not bug the host kernel, because this can be triggered
by userspace. I think the guest kernel itself can not trigger the problem, as
SET PREFIX and SIGNAL PROCESSOR SET PREFIX both check that the memory is
available and sane. As this is a userspace bug (e.g. setting the wrong guest
offset, unmapping guest memory) we should kill the userspace process instead
of BUGing the host kernel.
In the long term we probably should notify the userspace process about this
problem.
Signed-off-by: Christian Borntraeger <borntraeger at de.ibm.com>
Signed-off-by: Avi Kivity <avi at qumranet.com>
commit 0096369daa9eaaef1a309e5d8167b023af3f998d
Author: Martin Schwidefsky <schwidefsky at de.ibm.com>
Date: Fri Jul 25 15:51:00 2008 +0200
KVM: s390: Change guestaddr type in gaccess
All registers are unsigned long types. This patch changes all occurences
of guestaddr in gaccess from u64 to unsigned long.
Signed-off-by: Martin Schwidefsky <schwidefsky at de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger at de.ibm.com>
Signed-off-by: Avi Kivity <avi at qumranet.com>
commit 99e65c92f2bbf84f43766a8bf701e36817d62822
Author: Christian Borntraeger <borntraeger at de.ibm.com>
Date: Fri Jul 25 15:50:04 2008 +0200
KVM: s390: Fix guest kconfig
Cornelia Huck noticed that a modular virtio without kvm guest support
leads to a build error in the s390 virtio transport:
CONFIG_VIRTIO=m leads to
ERROR: "vmem_add_mapping" [drivers/s390/kvm/kvm_virtio.ko] undefined!
ERROR: "max_pfn" [drivers/s390/kvm/kvm_virtio.ko] undefined!
ERROR: "vmem_remove_mapping" [drivers/s390/kvm/kvm_virtio.ko] undefined!
The virtio transport only works with kvm guest support and only as a
builtin. Lets change the build process of drivers/s390/kvm/kvm_virtio.c
to depend on kvm guest support, which is also a bool.
CONFIG_S390_GUEST already selects CONFIG_VIRTIO, that should prevent
CONFIG_S390_GUEST=y CONFIG_VIRTIO=n situations.
CC: Cornelia Huck <cornelia.huck at de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger at de.ibm.com>
Signed-off-by: Avi Kivity <avi at qumranet.com>
commit 2bd0ac4eb469ef58c3b1746fccd15da871fc55c4
Author: Carsten Otte <cotte at de.ibm.com>
Date: Fri Jul 25 15:49:13 2008 +0200
KVM: s390: Advertise KVM_CAP_USER_MEMORY
KVM_CAP_USER_MEMORY is used by s390, therefore, we should advertise it.
Signed-off-by: Carsten Otte <cotte at de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger at de.ibm.com>
Signed-off-by: Avi Kivity <avi at qumranet.com>
commit cab7a1eeeb007be309cd99cf14407261a72d2418
Author: Julia Lawall <julia at diku.dk>
Date: Tue Jul 22 21:38:18 2008 +0200
KVM: ia64: Fix irq disabling leak in error handling code
There is a call to local_irq_restore in the normal exit case, so it would
seem that there should be one on an error return as well.
The semantic patch that finds this problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)
// <smpl>
@@
expression l;
expression E,E1,E2;
@@
local_irq_save(l);
... when != local_irq_restore(l)
when != spin_unlock_irqrestore(E,l)
when any
when strict
(
if (...) { ... when != local_irq_restore(l)
when != spin_unlock_irqrestore(E1,l)
+ local_irq_restore(l);
return ...;
}
|
if (...)
+ {local_irq_restore(l);
return ...;
+ }
|
spin_unlock_irqrestore(E2,l);
|
local_irq_restore(l);
)
// </smpl>
Signed-off-by: Julia Lawall <julia at diku.dk>
Signed-off-by: Avi Kivity <avi at qumranet.com>
commit 5fdbcb9dd16f1e89ead127d3ee1a38e3a00cf1ea
Author: Sheng Yang <sheng.yang at intel.com>
Date: Wed Jul 16 09:25:40 2008 +0800
KVM: VMX: Fix undefined beaviour of EPT after reload kvm-intel.ko
As well as move set base/mask ptes to vmx_init().
Signed-off-by: Sheng Yang <sheng.yang at intel.com>
Signed-off-by: Avi Kivity <avi at qumranet.com>
commit 5ec5726a16245138f5d5305b00a752acb5730076
Author: Sheng Yang <sheng.yang at intel.com>
Date: Wed Jul 16 09:21:22 2008 +0800
KVM: VMX: Fix bypass_guest_pf enabling when disable EPT in module parameter
Signed-off-by: Sheng Yang <sheng.yang at intel.com>
Signed-off-by: Avi Kivity <avi at qumranet.com>
commit c93cd3a58845012df2d658fecd0ac99f7008d753
Author: Marcelo Tosatti <mtosatti at redhat.com>
Date: Sat Jul 19 19:08:07 2008 -0300
KVM: task switch: translate guest segment limit to virt-extension byte granular field
If 'g' is one then limit is 4kb granular.
Signed-off-by: Marcelo Tosatti <mtosatti at redhat.com>
Signed-off-by: Avi Kivity <avi at qumranet.com>
commit 577bdc496614ced56d999bbb425e85adf2386490
Author: Avi Kivity <avi at qumranet.com>
Date: Sat Jul 19 08:57:05 2008 +0300
KVM: Avoid instruction emulation when event delivery is pending
When an event (such as an interrupt) is injected, and the stack is
shadowed (and therefore write protected), the guest will exit. The
current code will see that the stack is shadowed and emulate a few
instructions, each time postponing the injection. Eventually the
injection may succeed, but at that time the guest may be unwilling
to accept the interrupt (for example, the TPR may have changed).
This occurs every once in a while during a Windows 2008 boot.
Fix by unshadowing the fault address if the fault was due to an event
injection.
Signed-off-by: Avi Kivity <avi at qumranet.com>
commit 34198bf8426276a2ce1e97056a0f02d43637e5ae
Author: Marcelo Tosatti <mtosatti at redhat.com>
Date: Wed Jul 16 19:07:11 2008 -0300
KVM: task switch: use seg regs provided by subarch instead of reading from GDT
There is no guarantee that the old TSS descriptor in the GDT contains
the proper base address. This is the case for Windows installation's
reboot-via-triplefault.
Use guest registers instead. Also translate the address properly.
Signed-off-by: Marcelo Tosatti <mtosatti at redhat.com>
Signed-off-by: Avi Kivity <avi at qumranet.com>
commit 98899aa0e0bf5de05850082be0eb837058c09ea5
Author: Marcelo Tosatti <mtosatti at redhat.com>
Date: Wed Jul 16 19:07:10 2008 -0300
KVM: task switch: segment base is linear address
The segment base is always a linear address, so translate before
accessing guest memory.
Signed-off-by: Marcelo Tosatti <mtosatti at redhat.com>
Signed-off-by: Avi Kivity <avi at qumranet.com>
commit 5f4cb662a0a2533b45656607471571460310a5ca
Author: Joerg Roedel <joerg.roedel at amd.com>
Date: Mon Jul 14 20:36:36 2008 +0200
KVM: SVM: allow enabling/disabling NPT by reloading only the architecture module
If NPT is enabled after loading both KVM modules on AMD and it should be
disabled, both KVM modules must be reloaded. If only the architecture module is
reloaded the behavior is undefined. With this patch it is possible to disable
NPT only by reloading the kvm_amd module.
Signed-off-by: Joerg Roedel <joerg.roedel at amd.com>
Signed-off-by: Avi Kivity <avi at qumranet.com>
commit 536319afd1f25383009c0c88f6fb00104f49c178
Author: Nicolas Boichat <nicolas at boichat.ch>
Date: Mon Jul 21 22:18:01 2008 +0800
ALSA: Allow to force model to intel-mac-v3 in snd_hda_intel (sigmatel).
Currently, even if you pass model=intel-mac-v3 as a module parameter to
snd_hda_intel, the function patch_stac922x (patch_sigmatel.c) will still
try to auto-detect the model type. This is a problem on my MacBook Pro 1st
generation, which needs intel-mac-v3, but sometimes incorrectly reports
0x00000100 as subsystem id, which causes the switch in patch_stac922x to
select intel-mac-v4.
To fix this, I added a new model called intel-mac-auto, so in case no
module parameter is passed, and an Intel Mac board is detected, the
model will be automatically detected, while no detection will be done
if the model is forced to intel-mac-v3.
This problem has been around for quite a while, and I used to fix it
by moving the case statement for 0x00000100 in patch_stac922x so that
intel-mac-v3 is chosen.
Another way to fix the problem would be to check if a module parameter
was set directly in patch_stac922x, using something like this:
if (spec->board_config == STAC_INTEL_MAC_V3 &&
!codec->bus->modelname) {
But I think it is less elegant (if you prefer that way, I can prepare a
patch).
Signed-off-by: Nicolas Boichat <nicolas at boichat.ch>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
commit b15ebe2616289da258f85b3ff142fca237ef9f59
Author: Krzysztof Helt <krzysztof.h1 at wp.pl>
Date: Wed Jul 23 07:48:49 2008 +0200
ALSA: cs4232: fix crash during chip PNP detection
The acard->wss pointer is uninitialized in this function
which leads to crash during chip PNP detection.
Signed-off-by: Krzysztof Helt <krzysztof.h1 at wp.pl>
Acked-by: Rene Herman <rene.herman at gmail.com>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
commit fe7e873f52f17ad9b8ee9e2c70acaddcae22443b
Author: Travis Place <wishie at wishie.net>
Date: Sun Jul 27 10:13:26 2008 +0200
ALSA: hda - Add automatic model setting for the Acer Aspire 5920G laptop
Make the Acer Aspire 5920G (1025:0121) select ALC883_ACER_ASPIRE
by default.
Signed-off-by: Travis Place <wishie at wishie.net>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
commit 13c2108de4437771a77f775fe33e9a33c53a8a14
Author: Adrian Bunk <bunk at kernel.org>
Date: Tue Jul 22 20:21:32 2008 +0300
ALSA: make snd_ac97_add_vmaster() static
This patch makes the needlessly global snd_ac97_add_vmaster() static.
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
commit 6aa1e464453e398e4ab12558777fb10cff8a284d
Author: Adrian Bunk <bunk at kernel.org>
Date: Tue Jul 22 20:21:28 2008 +0300
ALSA: sound/pci/azt3328.h: no variables for enums
AZF_FREQUENCIES and AZF_GAME_CONFIGS were variables, and this doesn't
seem to have been intended.
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Acked-by: Andreas Mohr <andi at lisas.de>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
commit 8be1a6d6c77ab4532e4476fdb8177030ef48b52c
Merge: 852fef69c0d9510a28a70221cfddd004efa02552 cc9969c96765476db5e30c9e074a57838604c1d1
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sat Jul 26 20:40:36 2008 -0700
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
mlx4: Update/add Mellanox Technologies copyright lines to mlx4 driver files
mlx4_core: Add VLAN tag field to WQE control segment struct
RDMA/nes: CM connection setup/teardown rework
IPoIB: Correct help text for INFINIBAND_IPOIB_DEBUG
IPoIB/cm: Connected mode is no longer EXPERIMENTAL
RDMA/ucm: BKL is not needed for ib_ucm_open()
RDMA/ucma: BKL is not needed for ucma_open()
commit 852fef69c0d9510a28a70221cfddd004efa02552
Author: Oliver Neukum <oliver at neukum.org>
Date: Sat Jul 26 22:42:42 2008 +0200
fix for a memory leak in an error case introduced by fix for double free
The fix NULLed a pointer without freeing it.
Signed-off-by: Oliver Neukum <oneukum at suse.de>
Reported-by: Juha Motorsportcom <juha_motorsportcom at luukku.com>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 9ee08c2df47c10ba624ff05a6c0f2500748bcb69
Merge: eaf0ba5ef69538b6913525294a3a0fcb0e0992e0 3d45955962496879dead8d4dd70bb9a23b07154b
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sat Jul 26 20:30:56 2008 -0700
Merge git://git.infradead.org/mtd-2.6
* git://git.infradead.org/mtd-2.6: (57 commits)
[MTD] [NAND] subpage read feature as a way to increase performance.
CPUFREQ: S3C24XX NAND driver frequency scaling support.
[MTD][NAND] au1550nd: remove unused variable
[MTD] jedec_probe: Fix SST 16-bit chip detection
[MTD][MTDPART] Fix a division by zero bug
[MTD][MTDPART] Cleanup and document the erase region handling
[MTD][MTDPART] Handle most checkpatch findings
[MTD][MTDPART] Seperate main loop from per-partition code in add_mtd_partition
[MTD] physmap: resume already suspended chips on failure to suspend
[MTD] physmap: Fix suspend/resume/shutdown bugs.
[MTD] [NOR] Fix -ETIMEO errors in CFI driver
[MTD] [NAND] fsl_elbc_nand: fix section mismatch with CONFIG_MTD_OF_PARTS=y
[JFFS2] Use .unlocked_ioctl
[MTD] Fix const assignment in the MTD command line partitioning driver
[MTD] [NOR] gen_probe: No debug message when debugging is disabled
[MTD] [NAND] remove __PPC__ hardcoded address from DiskOnChip drivers
[MTD] [MAPS] Remove the bast-flash driver.
[MTD] [NAND] fsl_elbc_nand: ecclayout cleanups
[MTD] [NAND] fsl_elbc_nand: implement support for flash-based BBT
[MTD] [NAND] fsl_elbc_nand: fix OOB workability for large page NAND chips
...
commit eaf0ba5ef69538b6913525294a3a0fcb0e0992e0
Merge: 732730d48dc777f6577a6e0fece42b860324998e a9906a19193db69ad0158f289f839edf8aaf103f
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sat Jul 26 20:29:39 2008 -0700
Merge branch 'tracehook' of git://git.kernel.org/pub/scm/linux/kernel/git/frob/linux-2.6-utrace
* 'tracehook' of git://git.kernel.org/pub/scm/linux/kernel/git/frob/linux-2.6-utrace:
tracehook: comment fixes
commit 732730d48dc777f6577a6e0fece42b860324998e
Author: Geert Uytterhoeven <geert at linux-m68k.org>
Date: Sun Jul 27 01:39:52 2008 +0200
m68k: gs: use tty_port fixes
commit b5391e29f428d11755ca2c91074c6db6f5c69d7c ("gs: use tty_port")
forgot to update the m68k gs serial drivers.
Signed-off-by: Geert Uytterhoeven <geert at linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit bdee6ac7d1c9a4a9b65db1753b0bfa0b61361dde
Merge: 4836e3007882984279ca63d3c42bf0b14616eb78 deec9ae31e6079551ce9260d29a4cf83e5b19a83
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sat Jul 26 20:27:31 2008 -0700
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc:
atmel-mci: debugfs support
mmc: Add per-card debugfs support
mmc: Export internal host state through debugfs
imxmmc: fix crash when no platform data is provided
imxmmc: fix platform resources
imxmmc: remove DEBUG definition
mmc_spi: put signals to low power off fix
commit 4836e3007882984279ca63d3c42bf0b14616eb78
Merge: 5c7c204aeca51ccfad63caab4fcdc5d8026c0fd8 4e1e018ecc6f7bfd10fc75b3ff9715cc8164e0a2
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sat Jul 26 20:23:44 2008 -0700
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6: (39 commits)
[PATCH] fix RLIM_NOFILE handling
[PATCH] get rid of corner case in dup3() entirely
[PATCH] remove remaining namei_{32,64}.h crap
[PATCH] get rid of indirect users of namei.h
[PATCH] get rid of __user_path_lookup_open
[PATCH] f_count may wrap around
[PATCH] dup3 fix
[PATCH] don't pass nameidata to __ncp_lookup_validate()
[PATCH] don't pass nameidata to gfs2_lookupi()
[PATCH] new (local) helper: user_path_parent()
[PATCH] sanitize __user_walk_fd() et.al.
[PATCH] preparation to __user_walk_fd cleanup
[PATCH] kill nameidata passing to permission(), rename to inode_permission()
[PATCH] take noexec checks to very few callers that care
Re: [PATCH 3/6] vfs: open_exec cleanup
[patch 4/4] vfs: immutable inode checking cleanup
[patch 3/4] fat: dont call notify_change
[patch 2/4] vfs: utimes cleanup
[patch 1/4] vfs: utimes: move owner check into inode_change_ok()
[PATCH] vfs: use kstrdup() and check failing allocation
...
commit 5c7c204aeca51ccfad63caab4fcdc5d8026c0fd8
Merge: 228428428138e231a155464239880201e5cc8b44 3712b42d4b1bec29a4232a6673bf2e6dcc5faa68
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sat Jul 26 20:19:41 2008 -0700
Merge git://git.kernel.org/pub/scm/linux/kernel/git/kkeil/ISDN-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/kkeil/ISDN-2.6:
Add layer1 over IP support
Add mISDN HFC multiport driver
Add mISDN HFC PCI driver
Add mISDN DSP
Add mISDN core files
Define AF_ISDN and PF_ISDN
Add mISDN driver
commit 228428428138e231a155464239880201e5cc8b44
Merge: 78681ac08a611313595d13cafabae1183b71ef48 6c3b8fc618905d7599dcc514c99ce4293d476f39
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sat Jul 26 20:17:56 2008 -0700
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
netns: fix ip_rt_frag_needed rt_is_expired
netfilter: nf_conntrack_extend: avoid unnecessary "ct->ext" dereferences
netfilter: fix double-free and use-after free
netfilter: arptables in netns for real
netfilter: ip{,6}tables_security: fix future section mismatch
selinux: use nf_register_hooks()
netfilter: ebtables: use nf_register_hooks()
Revert "pkt_sched: sch_sfq: dump a real number of flows"
qeth: use dev->ml_priv instead of dev->priv
syncookies: Make sure ECN is disabled
net: drop unused BUG_TRAP()
net: convert BUG_TRAP to generic WARN_ON
drivers/net: convert BUG_TRAP to generic WARN_ON
commit 78681ac08a611313595d13cafabae1183b71ef48
Author: Randy Dunlap <randy.dunlap at oracle.com>
Date: Sat Jul 26 15:22:28 2008 -0700
firmware: fix memmap printk format warnings
Fix firmware/memmap printk format warnings:
drivers/firmware/memmap.c:156: warning: format '%llx' expects type 'long long unsigned int', but argument 4 has type 'resource_size_t'
drivers/firmware/memmap.c:161: warning: format '%llx' expects type 'long long unsigned int', but argument 4 has type 'resource_size_t'
Signed-off-by: Randy Dunlap <randy.dunlap at oracle.com>
Cc: Bernhard Walle <bwalle at suse.de>
Cc: Ingo Molnar <mingo at elte.hu>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 3b8f14b41026fb7d7e9a4af2a4128a702d07ad26
Author: Adrian Bunk <bunk at kernel.org>
Date: Sat Jul 26 15:22:28 2008 -0700
mm/util.c must #include <linux/sched.h>
mm/util.c: In function 'arch_pick_mmap_layout':
mm/util.c:144: error: dereferencing pointer to incomplete type
mm/util.c:145: error: 'arch_get_unmapped_area' undeclared (first use in this function)
mm/util.c:145: error: (Each undeclared identifier is reported only once
mm/util.c:145: error: for each function it appears in.)
mm/util.c:146: error: 'arch_unmap_area' undeclared (first use in this function)
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 510a35d4a47802f4a0028aa6bd2ca2170da5e32f
Author: Andrea Righi <righi.andrea at gmail.com>
Date: Sat Jul 26 15:22:27 2008 -0700
hugetlb: remove unused variable warning
Remove the following warning when CONFIG_HUGETLB_PAGE is not set:
ipc/shm.c: In function `shm_get_stat':
ipc/shm.c:565: warning: unused variable `h'
[akpm at linux-foundation.org: use tabs, not spaces]
Signed-off-by: Andrea Righi <righi.andrea at gmail.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit b2d002dba5a8a4c0c3ec96fd1ff3c9def6bd71a1
Author: Andrea Righi <righi.andrea at gmail.com>
Date: Sat Jul 26 15:22:27 2008 -0700
task IO accounting: correctly account threads IO statistics
Oleg Nesterov points out that we should check that the task is still alive
before we iterate over the threads. This patch includes a fixup for this.
Also simplify do_io_accounting() implementation.
Signed-off-by: Andrea Righi <righi.andrea at gmail.com>
Signed-off-by: Oleg Nesterov <oleg at tv-sign.ru>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 6a9436d0c3cbe8941b1acd5b0736d355295cad98
Author: Michael Buesch <mb at bu3sch.de>
Date: Sat Jul 26 15:22:26 2008 -0700
gpiolib: fix typo in comment
This fixes an off-by-one error in a comment.
Signed-off-by: Michael Buesch <mb at bu3sch.de>
Cc: David Brownell <david-b at pacbell.net>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 4e1e018ecc6f7bfd10fc75b3ff9715cc8164e0a2
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Sat Jul 26 16:01:20 2008 -0400
[PATCH] fix RLIM_NOFILE handling
* dup2() should return -EBADF on exceeded sysctl_nr_open
* dup() should *not* return -EINVAL even if you have rlimit set to 0;
it should get -EMFILE instead.
Check for orig_start exceeding rlimit taken to sys_fcntl().
Failing expand_files() in dup{2,3}() now gets -EMFILE remapped to -EBADF.
Consequently, remaining checks for rlimit are taken to expand_files().
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 6c5d0512a091480c9f981162227fdb1c9d70e555
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Sat Jul 26 13:38:19 2008 -0400
[PATCH] get rid of corner case in dup3() entirely
Since Ulrich is OK with getting rid of dup3(fd, fd, flags) completely,
to hell the damn thing goes. Corner case for dup2() is handled in
sys_dup2() (complete with -EBADF if dup2(fd, fd) is called with fd
that is not open), the rest is done in dup3().
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 4cc38a1b383f0c6c65a3fef4ff8144e8000e4ec3
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Sat Jul 26 03:48:26 2008 -0400
[PATCH] remove remaining namei_{32,64}.h crap
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 3f8206d496e9e9495afb1d4e70d29712b4d403c9
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Sat Jul 26 03:46:43 2008 -0400
[PATCH] get rid of indirect users of namei.h
fs.h needs path.h, not namei.h; nfs_fs.h doesn't need it at all.
Several places in the tree needed direct include.
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 964bd183624c03680796b63b4ab97ee3905a806a
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Sat Jul 26 03:33:14 2008 -0400
[PATCH] get rid of __user_path_lookup_open
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 516e0cc5646f377ab80fcc2ee639892eccb99853
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Sat Jul 26 00:39:17 2008 -0400
[PATCH] f_count may wrap around
make it atomic_long_t; while we are at it, get rid of useless checks in affs,
hfs and hpfs - ->open() always has it equal to 1, ->release() - to 0.
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 3c333937ee3be114b181c4861188cfe8f6a59697
Author: Ulrich Drepper <drepper at redhat.com>
Date: Fri Jul 25 22:32:13 2008 -0400
[PATCH] dup3 fix
Al Viro notice one cornercase that the new dup3() code. The dup2()
function, as a special case, handles dup-ing to the same file
descriptor. In this case the current dup3() code does nothing at
all. I.e., it ingnores the flags parameter. This shouldn't happen,
the close-on-exec flag should be set if requested.
In case the O_CLOEXEC bit in the flags parameter is not set the
dup3() function should behave in this respect identical to dup2().
This means dup3(fd, fd, 0) should not actively reset the c-o-e
flag.
The patch below implements this minor change.
[AV: credits to Artur Grabowski for bringing that up as potential subtle point
in dup2() behaviour]
Signed-off-by: Ulrich Drepper <drepper at redhat.com>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 58ec42b061bf5dad8fa0370a19966cfd96eaf80c
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Wed Jul 23 14:45:55 2008 -0400
[PATCH] don't pass nameidata to __ncp_lookup_validate()
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit a569c711f63995ad80c23918525111e0cdb0bc73
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Wed Jul 23 14:42:05 2008 -0400
[PATCH] don't pass nameidata to gfs2_lookupi()
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 2ad94ae654f5eb72fd3260b706aea645cf4a7791
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Mon Jul 21 09:32:51 2008 -0400
[PATCH] new (local) helper: user_path_parent()
Preparation to untangling intents mess: reduce the number of do_path_lookup()
callers.
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 2d8f30380ab8c706f4e0a8f1aaa22b5886e9ac8a
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Tue Jul 22 09:59:21 2008 -0400
[PATCH] sanitize __user_walk_fd() et.al.
* do not pass nameidata; struct path is all the callers want.
* switch to new helpers:
user_path_at(dfd, pathname, flags, &path)
user_path(pathname, &path)
user_lpath(pathname, &path)
user_path_dir(pathname, &path) (fail if not a directory)
The last 3 are trivial macro wrappers for the first one.
* remove nameidata in callers.
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 256984a83880ff7ac78055cb87baea48137f0b77
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Tue Jul 22 08:09:30 2008 -0400
[PATCH] preparation to __user_walk_fd cleanup
Almost all users __user_walk_fd() and friends care only about struct path.
Get rid of the few that do not.
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit f419a2e3b64def707e1384ee38abb77f99af5f6d
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Tue Jul 22 00:07:17 2008 -0400
[PATCH] kill nameidata passing to permission(), rename to inode_permission()
Incidentally, the name that gives hundreds of false positives on grep
is not a good idea...
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 30524472c2f728c20d6bf35191042a5d455c0a64
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Tue Jul 22 00:02:33 2008 -0400
[PATCH] take noexec checks to very few callers that care
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit e56b6a5dda1a36ffaa532df6f975ea324298fa4d
Author: Christoph Hellwig <hch at lst.de>
Date: Mon May 19 07:53:34 2008 +0200
Re: [PATCH 3/6] vfs: open_exec cleanup
On Mon, May 19, 2008 at 12:01:49AM +0200, Marcin Slusarz wrote:
> open_exec is needlessly indented, calls ERR_PTR with 0 argument
> (which is not valid errno) and jumps into middle of function
> just to return value.
> So clean it up a bit.
Still looks rather messy. See below for a better version.
Signed-off-by: Christoph Hellwig <hch at lst.de>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit beb29e058c35ab69e96e455a12ccf7505f6de425
Author: Miklos Szeredi <mszeredi at suse.cz>
Date: Tue Jul 1 15:01:29 2008 +0200
[patch 4/4] vfs: immutable inode checking cleanup
Move the immutable and append-only checks from chmod, chown and utimes
into notify_change(). Checks for immutable and append-only files are
always performed by the VFS and not by the filesystem (see
permission() and may_...() in namei.c), so these belong in
notify_change(), and not in inode_change_ok().
This should be completely equivalent.
CC: Ulrich Drepper <drepper at redhat.com>
CC: Michael Kerrisk <mtk.manpages at gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi at suse.cz>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit b1da47e29e467f1ec36dc78d009bfb109fd533c7
Author: Miklos Szeredi <mszeredi at suse.cz>
Date: Tue Jul 1 15:01:28 2008 +0200
[patch 3/4] fat: dont call notify_change
The FAT_IOCTL_SET_ATTRIBUTES ioctl() calls notify_change() to change
the file mode before changing the inode attributes. Replace with
explicit calls to security_inode_setattr(), fat_setattr() and
fsnotify_change().
This is equivalent to the original. The reason it is needed, is that
later in the series we move the immutable check into notify_change().
That would break the FAT_IOCTL_SET_ATTRIBUTES ioctl, as it needs to
perform the mode change regardless of the immutability of the file.
[Fix error if fat is built as a module. Thanks to OGAWA Hirofumi for
noticing.]
Signed-off-by: Miklos Szeredi <mszeredi at suse.cz>
Acked-by: OGAWA Hirofumi <hirofumi at mail.parknet.co.jp>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit e9b76fedc61235da80b6b7f81dfd67ec224dfb49
Author: Miklos Szeredi <mszeredi at suse.cz>
Date: Tue Jul 1 15:01:27 2008 +0200
[patch 2/4] vfs: utimes cleanup
Untange the mess that is do_utimes(). Add kerneldoc comment to
do_utimes().
CC: Ulrich Drepper <drepper at redhat.com>
CC: Michael Kerrisk <mtk.manpages at gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi at suse.cz>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 9767d74957450da6365c363d69e3d02d605d7375
Author: Miklos Szeredi <mszeredi at suse.cz>
Date: Tue Jul 1 15:01:26 2008 +0200
[patch 1/4] vfs: utimes: move owner check into inode_change_ok()
Add a new ia_valid flag: ATTR_TIMES_SET, to handle the
UTIMES_OMIT/UTIMES_NOW and UTIMES_NOW/UTIMES_OMIT cases. In these
cases neither ATTR_MTIME_SET nor ATTR_ATIME_SET is in the flags, yet
the POSIX draft specifies that permission checking is performed the
same way as if one or both of the times was explicitly set to a
timestamp.
See the path "vfs: utimensat(): fix error checking for
{UTIME_NOW,UTIME_OMIT} case" by Michael Kerrisk for the patch
introducing this behavior.
This is a cleanup, as well as allowing filesystems (NFS/fuse/...) to
perform their own permission checking instead of the default.
CC: Ulrich Drepper <drepper at redhat.com>
CC: Michael Kerrisk <mtk.manpages at gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi at suse.cz>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 88b387824fdaecb6ba0f471acf0aadf7d24739fd
Author: Li Zefan <lizf at cn.fujitsu.com>
Date: Mon Jul 21 18:06:36 2008 +0800
[PATCH] vfs: use kstrdup() and check failing allocation
- use kstrdup() instead of kmalloc() + memcpy()
- return NULL if allocating ->mnt_devname failed
- mnt_devname should be const
Signed-off-by: Li Zefan <lizf at cn.fujitsu.com>
Acked-by: Cyrill Gorcunov <gorcunov at gmail.com>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 672b16b2f66c149888bd876a4f92342112205fe1
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Thu Jul 17 09:45:01 2008 -0400
[PATCH] more nameidata removal: exec_permission_lite() doesn't need it
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit b77b0646ef4efe31a7449bb3d9360fd00f95433d
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Thu Jul 17 09:37:02 2008 -0400
[PATCH] pass MAY_OPEN to vfs_permission() explicitly
... and get rid of the last "let's deduce mask from nameidata->flags"
bit.
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit a110343f0d6d41f68b7cf8c00b57a3172c67f816
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Thu Jul 17 09:19:08 2008 -0400
[PATCH] fix MAY_CHDIR/MAY_ACCESS/LOOKUP_ACCESS mess
* MAY_CHDIR is redundant - it's an equivalent of MAY_ACCESS
* MAY_ACCESS on fuse should affect only the last step of pathname resolution
* fchdir() and chroot() should pass MAY_ACCESS, for the same reason why
chdir() needs that.
* now that we pass MAY_ACCESS explicitly in all cases, LOOKUP_ACCESS can be
removed; it has no business being in nameidata.
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 7f2da1e7d0330395e5e9e350b879b98a1ea495df
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Sat May 10 20:44:54 2008 -0400
[PATCH] kill altroot
long overdue...
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 8bb79224b87aab92071e94d46e70bd160d89bf34
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Wed Jul 16 09:51:03 2008 -0400
[PATCH] permission checks for chdir need special treatment only on the last step
... so we ought to pass MAY_CHDIR to vfs_permission() instead of having
it triggered on every step of preceding pathname resolution. LOOKUP_CHDIR
is killed by that.
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit db2e747b14991a4c6a5c98b0e5f552a193237c03
Author: Miklos Szeredi <mszeredi at suse.cz>
Date: Tue Jun 24 16:50:16 2008 +0200
[patch 5/5] vfs: remove mode parameter from vfs_symlink()
Remove the unused mode parameter from vfs_symlink and callers.
Thanks to Tetsuo Handa for noticing.
CC: Tetsuo Handa <penguin-kernel at I-love.SAKURA.ne.jp>
Signed-off-by: Miklos Szeredi <mszeredi at suse.cz>
commit 7e79eedb3b22200cc8b774baea3a7bf28d766101
Author: Tetsuo Handa <penguin-kernel at i-love.sakura.ne.jp>
Date: Tue Jun 24 16:50:15 2008 +0200
[patch 4/5] vfs: reuse local variable in vfs_link()
Why not reuse "inode" which is assigned as
struct inode *inode = old_dentry->d_inode;
in the beginning of vfs_link() ?
Signed-off-by: Tetsuo Handa <penguin-kernel at I-love.SAKURA.ne.jp>
Signed-off-by: Miklos Szeredi <mszeredi at suse.cz>
commit 2f1936b87783a3a56c9441b27b9ba7a747f11e8e
Author: Miklos Szeredi <mszeredi at suse.cz>
Date: Tue Jun 24 16:50:14 2008 +0200
[patch 3/5] vfs: change remove_suid() to file_remove_suid()
All calls to remove_suid() are made with a file pointer, because
(similarly to file_update_time) it is called when the file is written.
Clean up callers by passing in a file instead of a dentry.
Signed-off-by: Miklos Szeredi <mszeredi at suse.cz>
commit c82e42da8a6b2f3a85dc4d4278cb8238702f8f64
Author: Miklos Szeredi <mszeredi at suse.cz>
Date: Tue Jun 24 16:50:12 2008 +0200
[patch 1/5] vfs: truncate: dont check immutable twice
vfs_permission(MAY_WRITE) already checked for the inode being
immutable, so no need to repeat it.
Signed-off-by: Miklos Szeredi <mszeredi at suse.cz>
Acked-by: Christoph Hellwig <hch at infradead.org>
commit e6305c43eda10ebfd2ad9e35d6e172ccc7bb3695
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Tue Jul 15 21:03:57 2008 -0400
[PATCH] sanitize ->permission() prototype
* kill nameidata * argument; map the 3 bits in ->flags anybody cares
about to new MAY_... ones and pass with the mask.
* kill redundant gfs2_iop_permission()
* sanitize ecryptfs_permission()
* fix remaining places where ->permission() instances might barf on new
MAY_... found in mask.
The obvious next target in that direction is permission(9)
folded fix for nfs_permission() breakage from Miklos Szeredi <mszeredi at suse.cz>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 1bd5191d9f5d1928c4efdf604c4164b04bb88dbe
Author: Miklos Szeredi <mszeredi at suse.cz>
Date: Wed May 21 19:15:03 2008 +0200
[patch 05/14] hpfs: dont call permission()
hpfs_unlink() calls permission() prior to truncating the file. HPFS
doesn't define a .permission method, so replace with explicit call to
generic_permission().
This is equivalent, except that devcgroup_inode_permission() and
security_inode_permission() are not called.
The truncation is just an implementation detail of the unlink, so
these security checks are unnecessary.
I suspect that even calling generic_permission() is unnecessary, since
we shouldn't mind if the file isn't writable. But I leave that to the
maintainer to decide.
Signed-off-by: Miklos Szeredi <mszeredi at suse.cz>
CC: Mikulas Patocka <mikulas at artax.karlin.mff.cuni.cz>
commit 9043476f726802f4b00c96d0c4f418dde48d1304
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Tue Jul 15 08:54:06 2008 -0400
[PATCH] sanitize proc_sysctl
* keep references to ctl_table_head and ctl_table in /proc/sys inodes
* grab the former during operations, use the latter for access to
entry if that succeeds
* have ->d_compare() check if table should be seen for one who does lookup;
that allows us to avoid flipping inodes - if we have the same name resolve
to different things, we'll just keep several dentries and ->d_compare()
will reject the wrong ones.
* have ->lookup() and ->readdir() scan the table of our inode first, then
walk all ctl_table_header and scan ->attached_by for those that are
attached to our directory.
* implement ->getattr().
* get rid of insane amounts of tree-walking
* get rid of the need to know dentry in ->permission() and of the contortions
induced by that.
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit ae7edecc9b8810770a8e5cb9a466ea4bdcfa8401
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Tue Jul 15 06:33:31 2008 -0400
[PATCH] sysctl: keep track of tree relationships
In a sense, that's the heart of the series. It's based on the following
property of the trees we are actually asked to add: they can be split into
stem that is already covered by registered trees and crown that is entirely
new. IOW, if a/b and a/c/d are introduced by our tree, then a/c is also
introduced by it.
That allows to associate tree and table entry with each node in the union;
while directory nodes might be covered by many trees, only one will cover
the node by its crown. And that will allow much saner logics for /proc/sys
in the next patches. This patch introduces the data structures needed to
keep track of that.
When adding a sysctl table, we find a "parent" one. Which is to say,
find the deepest node on its stem that already is present in one of the
tables from our table set or its ancestor sets. That table will be our
parent and that node in it - attachment point. Add our table to list
anchored in parent, have it refer the parent and contents of attachment
point. Also remember where its crown lives.
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit bd7b1533cd6a68c734062aa69394bec7e2b1718e
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Tue Jul 15 16:00:59 2008 -0400
[PATCH] sysctl: make sure that /proc/sys/net/ipv4 appears before per-ns ones
Massage ipv4 initialization - make sure that net.ipv4 appears as
non-per-net-namespace before it shows up in per-net-namespace sysctls.
That's the only change outside of sysctl.c needed to get sane ordering
rules and data structures for sysctls (esp. for procfs side of that
mess).
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit f7e6ced4061da509f737541ca4dbd44d83a6e82f
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Tue Jul 15 01:44:23 2008 -0400
[PATCH] allow delayed freeing of ctl_table_header
Refcount the sucker; instead of freeing it by the end of unregistration
just drop the refcount and free only when it hits zero. Make sure that
we _always_ make ->unregistering non-NULL in start_unregistering().
That allows anybody to get a reference to such puppy, preventing its
freeing and reuse. It does *not* block unregistration. Anybody who
holds such a reference can
* try to grab a "use" reference (ctl_head_grab()); that will
succeeds if and only if it hadn't entered unregistration yet. If it
succeeds, we can use it in all normal ways until we release the "use"
reference (with ctl_head_finish()). Note that this relies on having
->unregistering become non-NULL in all cases when one starts to unregister
the sucker.
* keep pointers to ctl_table entries; they *can* be freed if
the entire thing is unregistered. However, if ctl_head_grab() succeeds,
we know that unregistration had not happened (and will not happen until
ctl_head_finish()) and such pointers can be used safely.
IOW, now we can have inodes under /proc/sys keep references to ctl_table
entries, protecting them with references to ctl_table_header and
grabbing the latter for the duration of operations that require access
to ctl_table. That won't cause deadlocks, since unregistration will not
be stopped by mere keeping a reference to ctl_table_header.
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 734550921e9b7ab924a43aa3d0bd4239dac4fbf1
Author: Al Viro <viro at zeniv.linux.org.uk>
Date: Mon Jul 14 21:22:20 2008 -0400
[PATCH] beginning of sysctl cleanup - ctl_table_set
New object: set of sysctls [currently - root and per-net-ns].
Contains: pointer to parent set, list of tables and "should I see this set?"
method (->is_seen(set)).
Current lists of tables are subsumed by that; net-ns contains such a beast.
->lookup() for ctl_table_root returns pointer to ctl_table_set instead of
that to ->list of that ctl_table_set.
[folded compile fixes by rdd for configs without sysctl]
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 7ac6cd653d7c31ad6b7bb5b88c549c4ebf628c34
Author: Miklos Szeredi <mszeredi at suse.cz>
Date: Tue Jul 1 23:07:54 2008 +0200
[patch] hppfs: remove hppfs_permission
hppfs_permission() is equivalent to the '.permission == NULL' case.
Signed-off-by: Miklos Szeredi <mszeredi at suse.cz>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit d2d9648ec6858e19d16a0b16da62534e85888653
Author: Denys Vlasenko <vda.linux at googlemail.com>
Date: Tue Jul 1 14:16:09 2008 +0200
[PATCH] reuse xxx_fifo_fops for xxx_pipe_fops
Merge fifo and pipe file_operations.
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit d70b67c8bc72ee23b55381bd6a884f4796692f77
Author: Miklos Szeredi <mszeredi at suse.cz>
Date: Wed Jul 2 21:30:15 2008 +0200
[patch] vfs: fix lookup on deleted directory
Lookup can install a child dentry for a deleted directory. This keeps
the directory dentry alive, and the inode pinned in the cache and on
disk, even after all external references have gone away.
This isn't a big problem normally, since memory pressure or umount
will clear out the directory dentry and its children, releasing the
inode. But for UBIFS this causes problems because its orphan area can
overflow.
Fix this by returning ENOENT for all lookups on a S_DEAD directory
before creating a child dentry.
Thanks to Zoltan Sogor for noticing this while testing UBIFS, and
Artem for the excellent analysis of the problem and testing.
Reported-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
Tested-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
Signed-off-by: Miklos Szeredi <mszeredi at suse.cz>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
commit 6c3b8fc618905d7599dcc514c99ce4293d476f39
Author: Hugh Dickins <hugh at veritas.com>
Date: Sat Jul 26 17:51:06 2008 -0700
netns: fix ip_rt_frag_needed rt_is_expired
Running recent kernels, and using a particular vpn gateway, I've been
having to edit my mails down to get them accepted by the smtp server.
Git bisect led to commit e84f84f276473dcc673f360e8ff3203148bdf0e2 -
netns: place rt_genid into struct net. The conversion from a != test
to rt_is_expired() put one negative too many: and now my mail works.
Signed-off-by: Hugh Dickins <hugh at veritas.com>
Acked-by: Denis V. Lunev <den at openvz.org>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 6c64825bf40ecc1b01610762ca736b18c8a9db92
Author: Patrick McHardy <kaber at trash.net>
Date: Sat Jul 26 17:50:05 2008 -0700
netfilter: nf_conntrack_extend: avoid unnecessary "ct->ext" dereferences
As Linus points out, "ct->ext" and "new" are always equal, avoid unnecessary
dereferences and use "new" directly.
Signed-off-by: Patrick McHardy <kaber at trash.net>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 93bc4e89c260d91576840c4881d1066d84ccd422
Author: Pekka Enberg <penberg at cs.helsinki.fi>
Date: Sat Jul 26 17:49:33 2008 -0700
netfilter: fix double-free and use-after free
As suggested by Patrick McHardy, introduce a __krealloc() that doesn't
free the original buffer to fix a double-free and use-after-free bug
introduced by me in netfilter that uses RCU.
Reported-by: Patrick McHardy <kaber at trash.net>
Signed-off-by: Pekka Enberg <penberg at cs.helsinki.fi>
Tested-by: Dieter Ries <clip2 at gmx.de>
Signed-off-by: Patrick McHardy <kaber at trash.net>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 3918fed5f31213067c1c345bd904e1ea369e6819
Author: Alexey Dobriyan <adobriyan at gmail.com>
Date: Sat Jul 26 17:48:59 2008 -0700
netfilter: arptables in netns for real
IN, FORWARD -- grab netns from in device, OUT -- from out device.
Signed-off-by: Alexey Dobriyan <adobriyan at gmail.com>
Signed-off-by: Patrick McHardy <kaber at trash.net>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit f858b4869a9136dd28cc2ab37f8b89268cc99462
Author: Alexey Dobriyan <adobriyan at gmail.com>
Date: Sat Jul 26 17:48:38 2008 -0700
netfilter: ip{,6}tables_security: fix future section mismatch
Currently not visible, because NET_NS is mutually exclusive with SYSFS
which is required by SECURITY.
Signed-off-by: Alexey Dobriyan <adobriyan at gmail.com>
Signed-off-by: Patrick McHardy <kaber at trash.net>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 6c5a9d2e1599a099b0e47235a1c1502162b14310
Author: Alexey Dobriyan <adobriyan at gmail.com>
Date: Sat Jul 26 17:48:15 2008 -0700
selinux: use nf_register_hooks()
Signed-off-by: Alexey Dobriyan <adobriyan at gmail.com>
Acked-by: James Morris <jmorris at namei.org>
Signed-off-by: Patrick McHardy <kaber at trash.net>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit e40f51a36a6ca718e829c0933ab1e79333ac932e
Author: Alexey Dobriyan <adobriyan at gmail.com>
Date: Sat Jul 26 17:47:53 2008 -0700
netfilter: ebtables: use nf_register_hooks()
Signed-off-by: Alexey Dobriyan <adobriyan at gmail.com>
Signed-off-by: Patrick McHardy <kaber at trash.net>
Signed-off-by: David S. Miller <davem at davemloft.net>
commit 3712b42d4b1bec29a4232a6673bf2e6dcc5faa68
Author: Karsten Keil <kkeil at suse.de>
Date: Sun Jul 27 02:02:10 2008 +0200
Add layer1 over IP support
Implement a ISDN over IP tunnel to use mISDN hardware on
remote locations.
Signed-off-by: Karsten Keil <kkeil at suse.de>
commit af69fb3a8ffa37e986db00ed93099dc44babeef4
Author: Karsten Keil <kkeil at suse.de>
Date: Sun Jul 27 02:00:43 2008 +0200
Add mISDN HFC multiport driver
Enable support for cards with Cologne Chip AG's HFC multiport
chip.
Signed-off-by: Karsten Keil <kkeil at suse.de>
commit 1700fe1a10dc0eaac0ef60a8093eaeafa9bff9ae
Author: Karsten Keil <kkeil at suse.de>
Date: Sat Jul 26 18:55:28 2008 +0200
Add mISDN HFC PCI driver
Enable support for card with Cologne Chip AG's
HFC PCIbased cards
Signed-off-by: Karsten Keil <kkeil at suse.de>
commit 960366cf8dbb3359afaca30cf7fdbf69a6d6dda7
Author: Karsten Keil <kkeil at suse.de>
Date: Sun Jul 27 01:56:38 2008 +0200
Add mISDN DSP
Enable support for digital audio processing capability.
This module may be used for special applications that require
cross connecting of bchannels, conferencing, dtmf decoding
echo cancelation, tone generation, and Blowfish encryption and
decryption.
It may use hardware features if available.
Signed-off-by: Karsten Keil <kkeil at suse.de>
commit 1b2b03f8e514e4f68e293846ba511a948b80243c
Author: Karsten Keil <kkeil at suse.de>
Date: Sun Jul 27 01:54:58 2008 +0200
Add mISDN core files
Add mISDN core files
Signed-off-by: Karsten Keil <kkeil at suse.de>
commit 04578dd330f1ec6bc9c4233833bee0d0ca73ff09
Author: Karsten Keil <kkeil at suse.de>
Date: Sat Jul 26 18:52:34 2008 +0200
Define AF_ISDN and PF_ISDN
Define the address and protocol family value for mISDN.
Signed-off-by: Karsten Keil <kkeil at suse.de>
commit e4ac9bc1f6686dcb8c34e2756aa93cc9546fa6ae
Author: Karsten Keil <kkeil at suse.de>
Date: Sat Jul 26 18:52:11 2008 +0200
Add mISDN driver
mISDN is a new modular ISDN driver, in the long term it should replace
the old I4L driver architecture for passiv ISDN cards.
Signed-off-by: Karsten Keil <kkeil at suse.de>
commit deec9ae31e6079551ce9260d29a4cf83e5b19a83
Author: Haavard Skinnemoen <haavard.skinnemoen at atmel.com>
Date: Thu Jul 24 14:18:59 2008 +0200
atmel-mci: debugfs support
Create additional files under the host's debugfs directory containing
additional host-specific debug information.
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen at atmel.com>
Signed-off-by: Pierre Ossman <drzeus at drzeus.cx>
commit f4b7f927b531ca350cfc4ca1bdc3377dac7f9a32
Author: Haavard Skinnemoen <haavard.skinnemoen at atmel.com>
Date: Thu Jul 24 14:18:58 2008 +0200
mmc: Add per-card debugfs support
For each card successfully added to the bus, create a subdirectory under
the host's debugfs root with information about the card.
At the moment, only a single file is added to the card directory for
all cards: "state". It reflects the "state" field in struct mmc_card,
indicating whether the card is present, readonly, etc.
For MMC and SD cards (not SDIO), another file is added: "status".
Reading this file will ask the card about its current status and
return it. This can be useful if the card just refuses to respond to
any commands, which might indicate that the card state is not what the
MMC core thinks it is (due to a missing stop command, for example.)
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen at atmel.com>
Signed-off-by: Pierre Ossman <drzeus at drzeus.cx>
commit 6edd8ee60ac9b974bd6ec3b1bcb2aab02762fa8c
Author: Haavard Skinnemoen <haavard.skinnemoen at atmel.com>
Date: Thu Jul 24 14:18:57 2008 +0200
mmc: Export internal host state through debugfs
When CONFIG_DEBUG_FS is set, create a few files under /sys/kernel/debug
containing information about an mmc host's internal state. Currently,
just a single file is created, "ios", which contains information about
the current operating parameters for the bus (clock speed, bus width,
etc.)
Host drivers can add additional files and directories under the host's
root directory by passing the debugfs_root field in struct mmc_host as
the 'parent' parameter to debugfs_create_*.
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen at atmel.com>
Signed-off-by: Pierre Ossman <drzeus at drzeus.cx>
commit c5d5e9c40fc6cabedd5fdc7441e6e9d37f5c9bba
Author: Paulius Zaleckas <paulius.zaleckas at teltonika.lt>
Date: Wed Jul 9 16:03:20 2008 +0300
imxmmc: fix crash when no platform data is provided
Don't crash if no platform data is provided.
In this case assume that card is present.
Signed-off-by: Paulius Zaleckas <paulius.zaleckas at teltonika.lt>
Acked-by: Pavel Pisa <pisa at cmp.felk.cvut.cz>
Signed-off-by: Pierre Ossman <drzeus at drzeus.cx>
commit 5fc63dfba8a016caf832572aeaa90abef82f0ba0
Author: Paulius Zaleckas <paulius.zaleckas at teltonika.lt>
Date: Wed Jul 9 16:03:17 2008 +0300
imxmmc: fix platform resources
Fixup platform resources handling.
Signed-off-by: Paulius Zaleckas <paulius.zaleckas at teltonika.lt>
Acked-by: Pavel Pisa <pisa at cmp.felk.cvut.cz>
Signed-off-by: Pierre Ossman <drzeus at drzeus.cx>
commit 322069c9df1fd4da269b2a57d78f753684962523
Author: Paulius Zaleckas <paulius.zaleckas at teltonika.lt>
Date: Wed Jul 9 16:03:13 2008 +0300
imxmmc: remove DEBUG definition
Removed DEBUG #define #undef, because module is automaticaly
compiled with -DDEBUG when CONFIG_MMC_DEBUG is defined.
Currently it just generates compiler warning about redefinition.
Signed-off-by: Paulius Zaleckas <paulius.zaleckas at teltonika.lt>
Acked-by: Pavel Pisa <pisa at cmp.felk.cvut.cz>
Signed-off-by: Pierre Ossman <drzeus at drzeus.cx>
commit d9ecdb282c91952796b7542c4f57fd6de6948d7b
Merge: 4ef584ba84125b67c17b5aded38e7783cd8cdef0 1d1f8b377c48e5aeddaea52eba74cc0539f088cd
Author: Russell King <rmk at dyn-67.arm.linux.org.uk>
Date: Sat Jul 26 23:04:59 2008 +0100
Merge branch 'for_rmk_13' of git://git.mnementh.co.uk/linux-2.6-im
commit a9906a19193db69ad0158f289f839edf8aaf103f
Author: Roland McGrath <roland at redhat.com>
Date: Sat Jul 26 14:41:26 2008 -0700
tracehook: comment fixes
This fixes some typos and errors in <linux/tracehook.h> comments.
No code changes.
Signed-off-by: Roland McGrath <roland at redhat.com>
commit 1d1f8b377c48e5aeddaea52eba74cc0539f088cd
Author: Ian Molton <spyro at f2s.com>
Date: Sat Jul 26 22:39:58 2008 +0100
[ARM] update defconfig for eseries.
Signed-off-by: Ian Molton <spyro at f2s.com>
commit e84e954a72153ffd5630df6156720440b430c877
Author: Ian Molton <spyro at f2s.com>
Date: Mon Jul 21 11:02:40 2008 +0100
[ARM] PXA: squash warning in pxafb
Fixes a warning about using the wrong type in pxafb.c
Signed-off-by: Ian Molton <spyro at f2s.com>
commit aafe0ad81d7458b6c61eeb39068432683c70c9a9
Author: Ian Molton <spyro at f2s.com>
Date: Sat Jul 12 11:55:42 2008 +0100
[ARM] pxa: PXA25x UDC - Fix warning during build
Fixes an unterminated ' warning building PXA25X UDC.
Signed-off-by: Ian Molton <spyro at f2s.com>
commit cc9969c96765476db5e30c9e074a57838604c1d1
Merge: 5ba18b186c979283a2bf75a28b7ea325184b0c08 9905922446f6dc02fd4650c8f59114d6bdb5b777 51a379d0c8f7a6db7c9e3c9c770d90a6d2d1ef9b 6492cdf3a24fd620660c399745b5e169a0ed27d6
Author: Roland Dreier <rolandd at cisco.com>
Date: Sat Jul 26 13:59:47 2008 -0700
Merge branches 'bkl-removal', 'ipoib', 'mlx4' and 'nes' into for-linus
commit a048d3aff8b828b6c0fa7ddd90a531248ab4e0f9
Merge: fb3b80614438f8b73b3879a19350439d6aa402da 1fe371044b21b226b96a9dd959e971b50b28c78e
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sat Jul 26 13:25:47 2008 -0700
Merge branch 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
ftrace: fix modular build
ftrace: disable tracing on acpi idle calls
ftrace: remove latency-tracer leftover
ftrace: only trace preempt off with preempt tracer
ftrace: fix 4d3702b6 (post-v2.6.26): WARNING: at kernel/lockdep.c:2731 check_flags (ftrace)
commit fb3b80614438f8b73b3879a19350439d6aa402da
Merge: 7f268a2ba7c884a239713696238dd4207a57dd9a 3a61ec387c9092dfc91a5959145d36835a72fc4c
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sat Jul 26 13:25:05 2008 -0700
Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
x86, AMD IOMMU: include amd_iommu_last_bdf in device initialization
x86: fix IBM Summit based systems' phys_cpu_present_map on 32-bit kernels
x86, RDC321x: remove gpio.h complications
x86, RDC321x: add to mach-default
crashdump: fix undefined reference to `elfcorehdr_addr'
flag parameters: fix compile error of sys_epoll_create1
commit 7f268a2ba7c884a239713696238dd4207a57dd9a
Merge: 689796a141cea79d745a4689c65dd01c39e5e100 2d2009806dd843f3adc0cbbb5d2204980f28111a
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sat Jul 26 13:23:17 2008 -0700
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/blackfin-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/blackfin-2.6: (30 commits)
Blackfin arch: If we double fault, rather than hang forever, reset
Blackfin arch: When icache is off, make sure people know it
Blackfin arch: Fix bug - skip single step in high priority interrupt handler instead of disabling all interrupts in single step debugging.
Blackfin arch: cache the values of vco/sclk/cclk as the overhead of doing so (~24 bytes) is worth avoiding the software mult/div routines
Blackfin arch: fix bug - IMDMA is not type struct dma_register
Blackfin arch: check the EXTBANKS field of the DDRCTL1 register to see if we are using both memory banks
Blackfin arch: Apply Bluetechnix CM-BF527 board support patch
Blackfin arch: Add unwinding for stack info, and a little more detail on trace buffer
Blackfin arch: Add ISP1760 board resources to BF548-EZKIT
Blackfin arch: fix bug - detect 0.1 silicon revision BF527-EZKIT as 0.0 version
Blackfin arch: add missing IORESOURCE_MEM flags to UART3
Blackfin arch: Add return value check in bfin_sir_probe(), remove SSYNC().
Blackfin arch: Extend sram malloc to handle L2 SRAM.
Blackfin arch: Remove useless config option.
Blackfin arch: change L1 malloc to base on slab cache and lists.
Blackfin arch: use local labels and ENDPROC() markings
Blackfin arch: Do not need this dualcore test module in kernel.
Blackfin arch: Allow ptrace to peek and poke application data in L1 data SRAM.
Blackfin arch: Add ANOMALY_05000368 workaround
Blackfin arch: Functional power management support
...
commit 689796a141cea79d745a4689c65dd01c39e5e100
Author: Geert Uytterhoeven <geert at linux-m68k.org>
Date: Sat Jul 26 17:15:05 2008 +0200
dsp56k: Fix BKL pushdown
commit 236b8756a2b6f90498d45b2c36d43e5372f2d4b8 ("dsp56k: BKL pushdown")
removed the `struct inode *inode' parameter from dsp56k_ioctl(), but
forgot to update the use of `inode' in the first line of the function.
Signed-off-by: Geert Uytterhoeven <geert at linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 37e67b75804b84e092ae9f1d7a19dc3522ef78ab
Author: Huang Weiyi <weiyi.huang at gmail.com>
Date: Sat Jul 26 19:37:57 2008 +0800
drivers/video/fbmem.c: removed duplicated include
Removed duplicated include <linux/major.h>
in drivers/video/fbmem.c
Signed-off-by: Huang Weiyi <weiyi.huang at gmail.com>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 4b1fefaca9f5fdd43b24aa248777a75a81dfa8d6
Merge: 6ca813c4e515d9b868cd71703ef15f4af3aebb21 e2d2867ff8700d7431c68c089ff5f5ed7f2d5b40
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sat Jul 26 12:45:32 2008 -0700
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6
* 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6:
When verifying the decoded header before decoding the object identifier
[CIFS] Fix warnings from checkpatch
[CIFS] Fix improper endian conversion of ACL subauth field
[CIFS] Fix possible double free if search immediately after search rewind fails
[CIFS] remove checkpatch warning
Signed-off-by: Alexey Dobriyan <adobriyan at gmail.com>
cifs: assorted endian annotations
[CIFS] break ATTR_SIZE changes out into their own function
lockdep: annotate cifs in-kernel sockets
[CIFS] Fix compiler warning on 64-bit
commit 4cfc51017db3e3f4eaaa2cb436a905097a4f08e2
Author: Andrew Vasquez <andrew.vasquez at qlogic.com>
Date: Thu Jul 24 08:31:50 2008 -0700
[SCSI] qla2xxx: Update version number to 8.02.01-k6.
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit c9c5ced90abc22a94c96fa7db0e29c13483a6db0
Author: Andrew Vasquez <andrew.vasquez at qlogic.com>
Date: Thu Jul 24 08:31:49 2008 -0700
[SCSI] qla2xxx: Additional NPIV corrections.
Minor fixes addressing:
- rport managements during vport deletion.
- acquire proper physical-ha during qla24xx_abort_command() and
qla24xx_queuecommand()
- do not needlessly acquire the pha for non-NPIV capable ISPs.
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit bf6583b5831d3195c45f98ec3016499389cbe18f
Author: Andrew Morton <akpm at linux-foundation.org>
Date: Thu Jul 24 08:31:48 2008 -0700
[SCSI] qla2xxx: suppress uninitialized-var warning
drivers/scsi/qla2xxx/qla_os.c: In function 'qla2x00_post_work':
drivers/scsi/qla2xxx/qla_os.c:2158: warning: 'flags' may be used uninitialized in this function
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit b3dc9088f3714642284245a6c580305a1415e0e3
Author: Akinobu Mita <akinobu.mita at gmail.com>
Date: Thu Jul 24 08:31:47 2008 -0700
[SCSI] qla2xxx: use memory_read_from_buffer()
Signed-off-by: Akinobu Mita <akinobu.mita at gmail.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 8201e207997b4665a5fcb375bab293fddb2e6adb
Author: Andrew Vasquez <andrew.vasquez at qlogic.com>
Date: Thu Jul 24 08:31:46 2008 -0700
[SCSI] qla2xxx: Issue proper ISP callbacks during stop-firmware.
As the original code would incorrectly call the non-ISP24xx/25xx
callbacks during recovery, a stop-firmware failure could result
in improper bit-banging of the RISC and in some cases manifest in
a NMI-watchdog trigger due to the RISC not coming out of its
reset state.
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 3d164fb09bb5cb8a223eddf634fc0d355714fcfe
Author: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
Date: Sat Jul 26 23:25:43 2008 +0900
[SCSI] ch: fix ch_remove oops
The following commit causes ch_remove oops:
commit 24b42566c3fcbb5a9011d1446783d0f5844ccd45
Author: Greg Kroah-Hartman <gregkh at suse.de>
Date: Fri May 16 17:55:12 2008 -0700
SCSI: fix race in device_create
There is a race from when a device is created with device_create() and
then the drvdata is set with a call to dev_set_drvdata() in which a
sysfs file could be open, yet the drvdata will be NULL, causing all
sorts of bad things to happen.
This patch fixes the problem by using the new function,
device_create_drvdata(). It fixes the problem in all of the scsi
drivers that need it.
Cc: Kay Sievers <kay.sievers at vrfy.org>
Cc: Doug Gilbert <dgilbert at interlog.com>
Cc: James E.J. Bottomley <James.Bottomley at HansenPartnership.com>
Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
The problem is ch_probe stores ch's private data at a wrong place.
We need to store it at scsi_device->sdev_gendev but the above patch
stores it at device struct that device_create_drvdata returns. So we
hit an oops when ch_remove accesses
scsi_device->sdev_gendev->driver_data, which is NULL.
Actually, there wasn't a race because ch doesn't create sysfs files
with device struct that device_create returns. This patch puts back
dev_set_drvdata() to set ch's private data properly.
Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 3dabec7175bc6d49e88748cf03951357e74496ca
Author: adam radford <aradford at gmail.com>
Date: Tue Jul 22 16:47:40 2008 -0700
[SCSI] 3w-9xxx: add MSI support and misc fixes
This patch for the 3w-9xxx scsi driver applies on top of the
BKL-pushdown changes in -git9.
This patch does the following:
- Increase max AENs drained to 256.
- Add MSI support and "use_msi" module parameter.
- Fix bug in twa_get_param() on 4GB+.
- Use pci_resource_len() for ioremap().
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 6bd522f6a226f435508433d24e0de4619e016a9d
Author: Mike Christie <michaelc at cs.wisc.edu>
Date: Tue Jul 22 15:34:38 2008 -0500
[SCSI] scsi_lib: use blk_rq_tagged in scsi_request_fn
I goofed and did not see the macro for checking if a request is tagged.
This patch has us use blk_rq_tagged instead of digging into the req->tag.
Patch was made over scsi-misc.
Signed-off-by: Mike Christie <michaelc at cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit b7b1a35ea563a8f1219dc3fdf12f37937cb83245
Author: Brian King <brking at linux.vnet.ibm.com>
Date: Tue Jul 22 08:31:48 2008 -0500
[SCSI] ibmvfc: Update driver version to 1.0.1
Update driver version to 1.0.1.
Signed-off-by: Brian King <brking at linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 989b854579875b38d45fffa7f8c89177f7698cd3
Author: Brian King <brking at linux.vnet.ibm.com>
Date: Tue Jul 22 08:31:47 2008 -0500
[SCSI] ibmvfc: Add ADISC support
Add an ADISC to the target discovery job in order to sanity check whether or
not we need to re-login to the target.
Signed-off-by: Brian King <brking at linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 52d7e861cc071688f5fa3ee1b6e94785adeff8db
Author: Brian King <brking at linux.vnet.ibm.com>
Date: Tue Jul 22 08:31:46 2008 -0500
[SCSI] ibmvfc: Miscellaneous fixes
Properly setup the size of the async event queue. This fixes a bug where async events
were not getting processed by the driver.
Setup target_id field in the driver's target struct so that target sysfs attributes
work for multiple targets.
Signed-off-by: Brian King <brking at linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 2d0da2a44e065a5bdd90bed2ebe0b9216c27f682
Author: Brian King <brking at linux.vnet.ibm.com>
Date: Tue Jul 22 08:31:42 2008 -0500
[SCSI] ibmvfc: Fix hang on module removal
If certain ELS events are received during module removal, after the kthread
is stopped, the rmmod can hang. This fixes the ibmvfc driver so that ELS
events during rmmod are ignored by stopping all device activity prior to
killing the kthread and also changes reinitialization to not attempt a reinit
if the adapter has been taken offline.
Signed-off-by: Brian King <brking at linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit b3c10489cb464b12a74dda65f826433f71f2c2e2
Author: Brian King <brking at linux.vnet.ibm.com>
Date: Tue Jul 22 08:31:41 2008 -0500
[SCSI] ibmvfc: Target refcounting fixes
Fix up some refcounting on the ibmvfc drivers internal target struct
when accessed through some sysfs attributes.
Signed-off-by: Brian King <brking at linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 0ae808e02e000058cf65a47662c187dc061bcfd3
Author: Brian King <brking at linux.vnet.ibm.com>
Date: Tue Jul 22 08:31:39 2008 -0500
[SCSI] ibmvfc: Reduce unnecessary log noise
Reduces some unnecessary log noise by removing a printk during
host port state query and increasing the log level required to
log received async events.
Signed-off-by: Brian King <brking at linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit e41443ec3bb3dc4b12c861e91a5d36feb45f8a46
Author: Mike Anderson <andmike at linux.vnet.ibm.com>
Date: Mon Jul 21 15:58:32 2008 -0700
[SCSI] sym53c8xx: free luntbl in sym_hcb_free
This patch frees the luntbl dma area in sym_hcb_free if allocated.
Since the luntbl is part of a larger dma coherent area not freeing the
luntbl kept a 64k dma coherent area previous allocated through
dma_alloc_coherent allocated. This prevented a DLPAR remove IO
operation from completing successfully.
Signed-off-by: Mike Anderson <andmike at linux.vnet.ibm.com>
Cc: Matthew Wilcox <matthew at wil.cx>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 773e82f6cdb026282ff7d26aaac291a5fa84ee3a
Author: Julia Lawall <julia at diku.dk>
Date: Mon Jul 21 09:58:30 2008 +0200
[SCSI] scsi_scan.c: Release mutex in error handling code
The mutex is released on a successful return, so it would seem that it
should be released on an error return as well.
The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)
// <smpl>
@@
expression l;
@@
mutex_lock(l);
... when != mutex_unlock(l)
when any
when strict
(
if (...) { ... when != mutex_unlock(l)
+ mutex_unlock(l);
return ...;
}
|
mutex_unlock(l);
)
// </smpl>
Signed-off-by: Julia Lawall <julia at diku.dk>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 12265709ac6e197f4d40d9ec1fd3af97b4196a35
Author: Alan Stern <stern at rowland.harvard.edu>
Date: Mon Jul 21 10:25:52 2008 -0400
[SCSI] scsi_eh_prep_cmnd should save scmd->underflow
This patch (as1116) fixes a bug in scsi_eh_prep_cmnd() and
scsi_eh_restore_cmnd(). These routines are supposed to save any
values they change and restore them later, but someone forgot to
save & restore scmd->underflow.
This fixes part of the problem reported in Bugzilla #9638.
[jejb: fix up rejections around DIF/DIX]
Signed-off-by: Alan Stern <stern at rowland.harvard.edu>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit af55ff675a8461da6a632320710b050af4366e0c
Author: Martin K. Petersen <martin.petersen at oracle.com>
Date: Thu Jul 17 04:28:35 2008 -0400
[SCSI] sd: Support for SCSI disk (SBC) Data Integrity Field
Support for controllers and disks that implement DIF protection
information:
- During command preparation the RDPROTECT/WRPROTECT must be set
correctly if the target has DIF enabled.
- READ(6) and WRITE(6) are not supported when DIF is on.
- The controller must be told how to handle the I/O via the
protection operation field in scsi_cmnd.
- Refactor the I/O completion code that extracts failed LBA from the
returned sense data and handle DIF failures correctly.
- sd_dif.c implements the functions required to prepare and complete
requests with protection information attached.
Signed-off-by: Martin K. Petersen <martin.petersen at oracle.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit e0597d70012c82e16ee152270a55d89d8bf66693
Author: Martin K. Petersen <martin.petersen at oracle.com>
Date: Thu Jul 17 04:28:34 2008 -0400
[SCSI] sd: Identify DIF protection type and application tag ownership
If a disk is formatted with protection information (Inquiry bit
PROTECT=1) it is required to support Read Capacity(16). Force use of
the 16-bit command in this case and extract the P_TYPE field which
indicates whether the disk is formatted using DIF Type 1, 2 or 3.
The ATO (App Tag Own) bit in the Control Mode Page indicates whether
the storage device or the initiator own the contents of the
DIF application tag.
Signed-off-by: Martin K. Petersen <martin.petersen at oracle.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 511e44f42e3239a4df77b8e0e46d294d98a768ad
Author: Martin K. Petersen <martin.petersen at oracle.com>
Date: Thu Jul 17 04:28:33 2008 -0400
[SCSI] Do not retry a request whose data integrity check failed
If initiator or target reject the I/O due to DIF errors there is no
point in retrying.
Signed-off-by: Martin K. Petersen <martin.petersen at oracle.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 7027ad72a689797475973c6feb5f0b673382f779
Author: Martin K. Petersen <martin.petersen at oracle.com>
Date: Thu Jul 17 17:08:48 2008 -0400
[SCSI] Support devices with protection information
Implement support for DMA of protection information for devices that
are data integrity capable.
- Add support for mapping an extra scatter-gather list containing
the protection information.
- Allocate protection scsi_data_buffer if host is DIX (integrity DMA)
capable.
- Accessor function for checking whether a device has protection
enabled.
Signed-off-by: Martin K. Petersen <martin.petersen at oracle.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit db007fc5e20c00b356e9ffe2d0e007398c65c837
Author: Martin K. Petersen <martin.petersen at oracle.com>
Date: Thu Jul 17 04:28:31 2008 -0400
[SCSI] Command protection operation
Controllers that support DMA of protection information must be told
explicitly how to handle the I/O. The controller has no knowledge of
the protection capabilities of the target device so this information
must be passed in the scsi_cmnd.
- The protection operation tells the HBA whether to generate, strip or
verify protection information.
- The protection type tells the HBA which layout the target is
formatted with. This is necessary because the controller must be
able to correctly interpret the included protection information in
order to verify it.
- When a scsi_cmnd is reused for error handling the protection
operation must be cleared and saved while error handling is in
progress.
- prot_op and prot_type are placed in an existing hole in scsi_cmnd
and don't cause the structure to grow.
Signed-off-by: Martin K. Petersen <martin.petersen at oracle.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 4469f9878059f1707f021512e6b34252c4096ee7
Author: Martin K. Petersen <martin.petersen at oracle.com>
Date: Thu Jul 17 04:28:30 2008 -0400
[SCSI] Host protection capabilities
Controllers that support protection information must indicate this to
the SCSI midlayer so that the ULD can prepare scsi_cmnds accordingly.
This patch implements a host mask and various types of protection:
- DIF Type 1-3 (between HBA and disk)
- DIX Type 0-3 (between OS and HBA)
The patch also allows the HBA to set the guard type to something
different than the T10-mandated CRC.
Signed-off-by: Martin K. Petersen <martin.petersen at oracle.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 7c32c7a2d36c52d2b9ed040a9171364020ecc6a2
Author: Hannes Reinecke <hare at suse.de>
Date: Thu Jul 17 16:53:33 2008 -0700
[SCSI] scsi_dh: create lookup cache
Create a cache of devices that are seen in a system. This will avoid
the unnecessary traversal of the device list in the scsi_dh when there
are multiple luns of a same type.
Signed-off-by: Chandra Seetharaman <sekharan at us.ibm.com>
Signed-off-by: Hannes Reinecke <hare at suse.de>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit ae11b1b36da726a8a93409b896704edc6b4f3402
Author: Hannes Reinecke <hare at suse.de>
Date: Thu Jul 17 17:49:02 2008 -0700
[SCSI] scsi_dh: attach to hardware handler from dm-mpath
multipath keeps a separate device table which may be
more current than the built-in one.
So we should make sure to always call ->attach whenever
a multipath map with hardware handler is instantiated.
And we should call ->detach on removal, too.
[sekharan: update as per comments from agk]
Signed-off-by: Hannes Reinecke <hare at suse.de>
Signed-off-by: Chandra Seetharaman <sekharan at us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 057ea7c9683c3d684128cced796f03c179ecf1c2
Author: Hannes Reinecke <hare at suse.de>
Date: Thu Jul 17 16:53:21 2008 -0700
[SCSI] scsi_dh: add generic SPC-3 alua handler
Signed-off-by: Hannes Reinecke <hare at suse.de>
Signed-off-by: Chandra Seetharaman <sekharan at us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit ca9f0089867c9e476cf2e6d4615d2aae887171b2
Author: Hannes Reinecke <hare at suse.de>
Date: Thu Jul 17 16:53:15 2008 -0700
[SCSI] scsi_dh: Update RDAC device handler
This patch updates the RDAC device handler to
refuse to attach to devices not supporting the
RDAC vpd pages.
Signed-off-by: Hannes Reinecke <hare at suse.de>
Signed-off-by: Chandra Seetharaman <sekharan at us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 2aef6d5c05ee5c02f2e4d737b8738deb118cf892
Author: Hannes Reinecke <hare at suse.de>
Date: Thu Jul 17 16:53:09 2008 -0700
[SCSI] scsi_dh: Update hp_sw hardware handler
This patch updates the hp_sw device handler to properly
check the return codes etc.
And adds the 'correct' machine definitions.
Signed-off-by: Hannes Reinecke <hare at suse.de>
Signed-off-by: Chandra Seetharaman <sekharan at us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit b6ff1b14cdf4b4cb5403f3af2c3272f7e609a241
Author: Hannes Reinecke <hare at suse.de>
Date: Thu Jul 17 16:53:03 2008 -0700
[SCSI] scsi_dh: Update EMC handler
This patch converts the EMC device handler to use a proper
state machine. We now also parse the extended INQUIRY
information to determine if long trespass commands are
supported. And we're now using the long trespass command
correctly. And finally there's now an check at init time
to refuse to attach to devices not supporting EMC-specific
VPD pages.
Signed-off-by: Hannes Reinecke <hare at suse.de>
Signed-off-by: Chandra Seetharaman <sekharan at us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 4c05ae52fcb0e27a2ee4a16d1f31f8c547fd4886
Author: Hannes Reinecke <hare at suse.de>
Date: Thu Jul 17 16:52:57 2008 -0700
[SCSI] scsi_dh: Add 'dh_state' sysfs attribute
Implement a 'dh_state' sdev attribute for dynamic device handler
manipulation. A read on the attribute will return the name of
the currently attached device handler or 'detached' if no handler
is attached.
The attribute allows the following strings to be written:
- The name of the device handler to be attached if the state is
'detached'.
- 'activate' to trigger path activation if a device handler
is attached.
- 'detach' to detach the currently attached device handler.
Signed-off-by: Hannes Reinecke <hare at suse.de>
Signed-off-by: Chandra Seetharaman <sekharan at us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 765cbc6dad16b87724803e359d6be792ddf08614
Author: Hannes Reinecke <hare at suse.de>
Date: Thu Jul 17 16:52:51 2008 -0700
[SCSI] scsi_dh: Implement common device table handling
Instead of having each and every driver implement its own
device table scanning code we should rather implement a common
routine and scan the device tables there.
This allows us also to implement a general notifier chain
callback for all device handler instead for one per handler.
[sekharan: Fix rejections caused by conflicting bug fix]
Signed-off-by: Hannes Reinecke <hare at suse.de>
Signed-off-by: Chandra Seetharaman <sekharan at us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 6d49f63b415ca02223e01e187076cb69a5a38eaf
Author: Matthew Wilcox <matthew at wil.cx>
Date: Tue Jul 15 14:54:16 2008 -0600
[SCSI] Make host_no an unsigned int
Daniel Debonzi reports that he has managed to wrap host_no. Increasing
the number of host numbers available to 32-bit from 16-bit allows the
problem to be evaded for another hundred years.
Signed-off-by: Matthew Wilcox <willy at linux.intel.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit f27bac2761cab5a2e212dea602d22457a9aa6943
Author: Tejun Heo <tj at kernel.org>
Date: Mon Jul 14 14:59:30 2008 +0900
[SCSI] sd: update index allocation and use ida instead of idr
Update index allocation as follows.
* sd_index_idr is used only for ID allocation and mapping
functionality is not used. Use more memory efficient ida instead.
* idr and ida have their own locks inside them and don't need them for
operation. Drop it.
* index wasn't freed if probing failed after index allocation. fix
it.
* ida allocation should be repeated if it fails with -EAGAIN.
Signed-off-by: Tejun Heo <tj at kernel.org>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit ecefe8a97577d6c1a68d14ab6fb19bce99448af2
Author: Mike Christie <michaelc at cs.wisc.edu>
Date: Fri Jul 11 19:50:35 2008 -0500
[SCSI] fix shared tag map tag allocation
When drivers use a shared tag map we can end up with more requests
than tags, because the tag map is shost->can_queue tags and there
can be sdevs * sdev->queue_depth requests. In scsi_request_fn
if tag allocation fails we just drop down to just dequeueing the
tag without a tag. The problem is that drivers using the shared tag
map rely on a valid tag always being set, because it will use the
tag number to lookup commands later.
This patch has us check if we got a valid tag when the host lock
is held right before we check if the host queue is ready. We do the
check here because to allocate the tag we need the q lock, but
if the tag is bad we want to add the device/q onto the starved list
which requires the host lock.
Signed-off-by: Mike Christie <michaelc at cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 5d90027fb579eee41ec1b61f23195ed2fdd51da2
Author: Mike Christie <michaelc at cs.wisc.edu>
Date: Fri Jul 11 19:50:34 2008 -0500
[SCSI] stex: fix queue depth setting
We want to set the queue depth to something reasonable - not
the can_queue.
Signed-off-by: Mike Christie <michaelc at cs.wisc.edu>
Cc: Ed Lin <ed.lin at promise.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit d510d965e17a81d4d41c03a3927f6ef450b73ff5
Author: Mike Christie <michaelc at cs.wisc.edu>
Date: Fri Jul 11 19:50:33 2008 -0500
[SCSI] qla4xxx: fix queue depth setting
We want to set the queue depth to something reasonable - not
the can_queue.
Signed-off-by: Mike Christie <michaelc at cs.wisc.edu>
Cc: David Somayajulu <david.somayajulu at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 885ace9e2f120439043ffa1bb72a2fa1f3afc645
Author: Mike Christie <michaelc at cs.wisc.edu>
Date: Fri Jul 11 19:50:32 2008 -0500
[SCSI] fix shared tag map setup
Currently qla4xxx and stex pass in their can_queue values into
scsi_activate_tcq because they wanted the tag map that large.
The problem with this is that it ends up also setting the queue
depth to that large value. All we want to do this in this case
is set the device queue depth and the other device settings.
We do not need to touch the tag map sizing because the drivers
had setup that map according to their can_queue limits when the
shared map was created.
The scsi mid layer in request_fn will then handle the case where we
have more requests than available tags when it checks the host
queue ready function.
Signed-off-by: Mike Christie <michaelc at cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 786231af0a4ac6d78cef51fa7e9c3dd63f016195
Author: Kai Makisara <Kai.Makisara at kolumbus.fi>
Date: Fri Jul 11 15:06:40 2008 +0300
[SCSI] st: Remove bogus memset
Mike Christie noticed a bogus memset. It can be removed as dead code
since the number of bytes in the driver buffer in fixed block mode is
always a multiple of the tape block size.
Signed-off-by: Kai Mäkisara <Kai.Makisara at kolumbus.fi>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 626dcb1ee39aa1010c27df31970ff0ecfb287208
Author: Kai Makisara <Kai.Makisara at kolumbus.fi>
Date: Fri Jul 11 15:05:25 2008 +0300
[SCSI] st: Move buffer pointer back when data could not be written.
Move buffer pointer back when data could not be written. Bug found by
Mike Christie.
Signed-off-by: Kai Mäkisara <Kai.Makisara at kolumbus.fi>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit f0773b5ff6d6978c01525f0c34db42d5cedb9394
Author: Andrew Vasquez <andrew.vasquez at qlogic.com>
Date: Thu Jul 10 16:56:03 2008 -0700
[SCSI] qla2xxx: Update version number to 8.02.01-k5.
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 6d0525292ad13f17abcd4a21e488d5b667e90668
Author: Andrew Vasquez <andrew.vasquez at qlogic.com>
Date: Thu Jul 10 16:56:02 2008 -0700
[SCSI] qla2xxx: Don't hardcode fw_transfer_size for ISP2[45]xx parts.
Use the full buffer size available, as there's no reason to limit
the firwmare-image load-segment size for these parts.
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 42e421b184967c8bc70d72eed8e1b179e9a51acb
Author: Andrew Vasquez <andrew.vasquez at qlogic.com>
Date: Thu Jul 10 16:56:01 2008 -0700
[SCSI] qla2xxx: Verify the RISC is not in ROM code if firmware-load is disabled.
Add an additional check to verify that the current executing
firmware is in fact non-ROM code. The non-ROM Get-ID mailbox
command is used for verification.
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit e792121ec85672c1fa48f79d13986a3f4f56c590
Author: Andrew Vasquez <andrew.vasquez at qlogic.com>
Date: Thu Jul 10 16:56:00 2008 -0700
[SCSI] qla2xxx: Correct overflow during dump-processing on large-memory ISP23xx parts.
Total ram words can exceed a 16bit value on large-memory boards.
Safely extend to a 32bit width.
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 031e134e5f95233d80fb1b62fdaf5e1be587597c
Author: Andrew Vasquez <andrew.vasquez at qlogic.com>
Date: Thu Jul 10 16:55:59 2008 -0700
[SCSI] qla2xxx: Skip FDMI registration on ISP21xx/22xx parts.
Firmware does not have the facilities to issue management server
IOCBs.
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 5de1f70f4103253f72d92da16d9618bc573b4534
Author: Seokmann Ju <seokmann.ju at qlogic.com>
Date: Thu Jul 10 16:55:58 2008 -0700
[SCSI] qla2xxx: Correct rport/fcport visibility-state handling during loop-resync.
There were several issues here, one, during RSCN handling if a
follow-on RSCN occurred (within interrupt context) the DPC thread
could inadvertantly leave the fcport in a stale lost state.
Secondly, scheduled rport removal is handled exclusively by the
'parent' DPC thread, so wake up the proper thread. Finally,
process vport loop-resync's only when the vport has in an
"active" state (ID acquired).
Signed-off-by: Seokmann Ju <seokmann.ju at qlogic.com>
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit da57bf8f25faf97308d9f4d0b87e8b69317a2fdf
Author: Seokmann Ju <seokmann.ju at qlogic.com>
Date: Thu Jul 10 16:55:57 2008 -0700
[SCSI] qla2xxx: Correct vport management of MBA_PORT_UPDATE.
By allowing the qla2x00_alert_all_vps() to manage per-vport
recognition of the MBA.
Signed-off-by: Seokmann Ju <seokmann.ju at qlogic.com>
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 8f0d6436d215a2e0033ab2af192ac7e4b300bd3e
Author: Seokmann Ju <seokmann.ju at qlogic.com>
Date: Thu Jul 10 16:55:56 2008 -0700
[SCSI] qla2xxx: Correct fcport state-management during loss.
All fcport->state management should be done within
qla2x00_mark_device_lost(), the assignment of state within
qla2x00_mark_vp_devices_dead() caused associated rports to not be
removed.
Signed-off-by: Seokmann Ju <seokmann.ju at qlogic.com>
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 246de42cfc0abc4e25585f2dca53f8226f62391c
Author: Seokmann Ju <seokmann.ju at qlogic.com>
Date: Thu Jul 10 16:55:55 2008 -0700
[SCSI] qla2xxx: Always aquire the parent's hardware_lock.
While issuing a marker, manipulating the request/response queues
and modifying the outstanding command array.
Signed-off-by: Seokmann Ju <seokmann.ju at qlogic.com>
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 436a7b11234ccccd91e3000aacdbdd25bd7847a8
Author: Andrew Vasquez <andrew.vasquez at qlogic.com>
Date: Thu Jul 10 16:55:54 2008 -0700
[SCSI] qla2xxx: Swap enablement order of EFT and FCE.
The firmware group has suggested that FCE (Fibre Channel Event)
tracing be enabled prior to EFT (Extended Firmware Tracing) to
maximize the capturing of data on the wire. This change has no
real semantic effect on driver operation, as it's mostly a
shuffling of code.
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 1ee2714632ce3f7e6477069b41cb685112f5f217
Author: Joe Carnuccio <joe.carnuccio at qlogic.com>
Date: Thu Jul 10 16:55:53 2008 -0700
[SCSI] qla2xxx: Retrieve board serial-number and description from VPD.
Recent ISPs have this information written at manufacturing time,
so use the information. This also reduces future churn of the
qla_devtbl.h file contents, as the driver can now depend on the
information to be present in VPD.
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit e5896bd5dcf71fa43ddcc545340b847c13d29c44
Author: Andrew Vasquez <andrew.vasquez at qlogic.com>
Date: Thu Jul 10 16:55:52 2008 -0700
[SCSI] qla2xxx: Allow the user the option of disabling iIDMA.
iIDMA support requires the driver issue several additional
fabric-managegment (FM) commands per port discovered during SNS
scanning -- GFPN (Get Fabric Port Name) and GPSC (Get Port Speed
Capabilities). It has been found during testing that some
switches do not respond as *well* as expected to these commands
(silence -- no ACC nor BS_RJT). So, to handle such conditions,
allow the user the ability to indirectly disable the FM commands
by disabling iIDMA with the ql2xiidmaenable module-parameter.
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 711c1d916be083a5bf4fbc8e66201e7e9f8b9334
Author: Seokmann Ju <seokmann.ju at qlogic.com>
Date: Thu Jul 10 16:55:51 2008 -0700
[SCSI] qla2xxx: Cleanup NPIV related functions
Removed repeated or unnecessary operations during vport
creation/deletion.
Signed-off-by: Shyam Sundar <shyam.sundar at qlogic.com>
Signed-off-by: Seokmann Ju <seokmann.ju at qlogic.com>
Signed-off-by: Ravi Anand <ravi.anand at qlogic.com>
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 032d8dd739eccbb39c78c901beece70062d1820d
Author: Harish Zunjarrao <harish.zunjarrao at qlogic.com>
Date: Thu Jul 10 16:55:50 2008 -0700
[SCSI] qla2xxx: Add LIP count to FC-transport statistics.
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit e5f5f6f72b10c4c6209f0522a7c5b27079d64429
Author: Harish Zunjarrao <harish.zunjarrao at qlogic.com>
Date: Thu Jul 10 16:55:49 2008 -0700
[SCSI] qla2xxx: Track total number of ISP aborts.
This parameter counts the total number of ISP aborts during
driver execution. The value is exported through a DEVICE_ATTR()
off the scsi_host.
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 85821c906cf3563a00a3d98fa380a2581a7a5ff1
Author: Andrew Vasquez <andrew.vasquez at qlogic.com>
Date: Thu Jul 10 16:55:48 2008 -0700
[SCSI] qla2xxx: Set an rport's dev_loss_tmo value in a consistent manner.
As there's no point in adding a fixed-fudge value (originally 5
seconds), honor the user settings only. We also remove the
driver's dead-callback get_rport_dev_loss_tmo function
(qla2x00_get_rport_loss_tmo()).
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 5f3a9a207f1fccde476dd31b4c63ead2967d934f
Author: Seokmann Ju <seokmann.ju at qlogic.com>
Date: Thu Jul 10 16:55:47 2008 -0700
[SCSI] qla2xxx: Add dev_loss_tmo_callbk/terminate_rport_io callback support.
Signed-off-by: Seokmann Ju <seokmann.ju at qlogic.com>
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit bbfb21daa320c9eb327d63734f295fa50ba93826
Author: Andrew Vasquez <andrew.vasquez at qlogic.com>
Date: Thu Jul 10 16:55:46 2008 -0700
[SCSI] qla2xxx: Correct locking during NVRAM manipulation.
Commit 2c96d8d0c17978bbf5eb82314d488f46d4a51280 pushed the
acquisition of hardware_lock to too fine a level, which in turn
will cause problems with cond_resched()s added with
40a2e34a94c336b716f631b2952d233e1ba76e3c.
Signed-off-by: Andrew Vasquez <andrew.vasquez at qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
commit 6ca813c4e515d9b868cd71703ef15f4af3aebb21
Author: Adrian Bunk <bunk at kernel.org>
Date: Fri Jul 25 19:46:27 2008 -0700
video/stifb.c: make 2 functions static
This patch makes the following needlessly global functions static:
- stifb_init_fb()
- stifb_init()
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 3d1e412ac5570a669e1b1fc5fd0f6859250c3d76
Author: Adrian Bunk <bunk at kernel.org>
Date: Fri Jul 25 19:46:26 2008 -0700
video/console/stico{n,re}.c: make code static
This patch makes the following needlessly global code static:
- sticon.c: sticonsole_init()
- sticore.c: struct default_sti
- sticore.c: sti_init_graph()
- sticore.c: sti_inq_conf()
- sticore.c: sti_rom_copy()
- sticore.c: sti_select_fbfont()
- sticore.c: sti_select_font()
- sticore.c: sti_get_wmode_rom()
- sticore.c: sti_read_rom()
[akpm at linux-foundation.org: coding-style fixes]
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 511e7483abe1ab433d8ab7a7998f799042b52941
Author: Adrian Bunk <bunk at kernel.org>
Date: Fri Jul 25 19:46:26 2008 -0700
make macfb_setup() static
This patch makes the needlessly global macfb_setup() static.
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit f56f6d30c75984d0aba2656eaeb35f3806395191
Author: Adrian Bunk <bunk at kernel.org>
Date: Fri Jul 25 19:46:25 2008 -0700
make init/do_mounts.c:root_device_name static
This patch makes the needlessly global root_device_name static.
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 9580d85f9cdb076c4bfb467bc6c0d3c5e499957a
Author: Adrian Bunk <bunk at kernel.org>
Date: Fri Jul 25 19:46:25 2008 -0700
drivers/char/rtc.c: make 2 functions static
The following functions can now become static:
- rtc_interrupt()
- rtc_get_rtc_time()
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Acked-by: Bernhard Walle <bwalle at suse.de>
Acked-by: Paul Gortmaker <p_gortmaker at yahoo.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 7c363b8c6536f26934172d3c46f0bbec01a97c61
Author: Adrian Bunk <bunk at kernel.org>
Date: Fri Jul 25 19:46:24 2008 -0700
mm/swapfile.c: make code static
This patch makes the following needlessly global code static:
- swap_lock
- nr_swapfiles
- struct swap_list
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro at jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 15f59adae001766a2c7f7fe4f196387bb04bcff5
Author: Adrian Bunk <bunk at kernel.org>
Date: Fri Jul 25 19:46:23 2008 -0700
make mm/memory.c:print_bad_pte() static
This patch makes the needlessly global print_bad_pte() static.
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro at jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 9d8fddfb17aaee4ffc5e3d0560620d0fa8b50a42
Author: Adrian Bunk <bunk at kernel.org>
Date: Fri Jul 25 19:46:23 2008 -0700
mm/allocpercpu.c: make 4 functions static
This patch makes the following needlessly global functions static:
- percpu_depopulate()
- __percpu_depopulate_mask()
- percpu_populate()
- __percpu_populate_mask()
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Acked-by: Christoph Lameter <cl at linux-foundation.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 9e5c6da71e89fa25ced6e88182225a99941bec90
Author: Adrian Bunk <bunk at kernel.org>
Date: Fri Jul 25 19:46:22 2008 -0700
make mm/sparse.c: make a function static
This patch makes the needlessly global sparse_early_mem_map_alloc()
static.
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 23d5f96ce6571da51c0f6bfa7361e5f91f314b2b
Author: Adrian Bunk <bunk at kernel.org>
Date: Fri Jul 25 19:46:22 2008 -0700
make parport_cs_release() static
This patch makes the needlessly global parport_cs_release() static.
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 25cdcd0086d97a011fcd0c1ff572e30da24790ec
Author: Adrian Bunk <bunk at kernel.org>
Date: Fri Jul 25 19:46:21 2008 -0700
make pnp_add_card_id() static
pnp_add_card_id() can now become static.
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Cc: Bjorn Helgaas <bjorn.helgaas at hp.com>
Cc: Rene Herman <rene.herman at gmail.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 96930a6365c99c160138a395566e360b27348b8f
Author: Adrian Bunk <bunk at kernel.org>
Date: Fri Jul 25 19:46:21 2008 -0700
make cgroup_seqfile_release() static
cgroup_seqfile_release() can become static.
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Acked-by: Paul Menage <menage at google.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 0e1451da4f928ae1c9d5ca617faebde9f02985db
Author: Adrian Bunk <bunk at kernel.org>
Date: Fri Jul 25 19:46:20 2008 -0700
drm: make drm_minors_cleanup() static
Make the needlessly global drm_minors_cleanup() static.
Signed-off-by: Adrian Bunk <bunk at kernel.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit a4074d93dd4e8f46f727840baa2be02d544fd17f
Author: Johannes Weiner <hannes at saeurebad.de>
Date: Fri Jul 25 19:46:20 2008 -0700
cris: use generic show_mem()
Remove arch-specific show_mem() in favor of the generic version.
This also removes the following redundant information display:
- free pages, printed by show_free_areas()
- pages in swapcache, printed by show_swap_cache_info()
where show_mem() calls show_free_areas(), which calls
show_swap_cache_info().
Signed-off-by: Johannes Weiner <hannes at saeurebad.de>
Acked-by: Mikael Starvik <starvik at axis.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit e275e0a687e83add62b10e6d36b67f0964455469
Author: Johannes Weiner <hannes at saeurebad.de>
Date: Fri Jul 25 19:46:19 2008 -0700
frv: use generic show_mem()
Remove arch-specific show_mem() in favor of the generic version.
This also removes the following redundant information display:
- free pages, printed by show_free_areas()
where show_mem() calls show_free_areas().
Signed-off-by: Johannes Weiner <hannes at saeurebad.de>
Acked-by: David Howells <dhowells at redhat.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit aca532016f49eca0341ed7be5885d6c63ca69e63
Author: Johannes Weiner <hannes at saeurebad.de>
Date: Fri Jul 25 19:46:18 2008 -0700
m32r: use generic show_mem()
Remove arch-specific show_mem() in favor of the generic version.
This also removes the following redundant information display:
- free swap pages, printed by show_swap_cache_info()
- pages in swapcache, printed by show_swap_cache_info()
where show_mem() calls show_free_areas(), which calls
show_swap_cache_info().
Signed-off-by: Johannes Weiner <hannes at saeurebad.de>
Cc: Hirokazu Takata <takata at linux-m32r.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 969eefb516b71f8abadf5bc4861a672694f48c38
Author: Johannes Weiner <hannes at saeurebad.de>
Date: Fri Jul 25 19:46:18 2008 -0700
m68k: use generic show_mem()
Remove arch-specific show_mem() in favor of the generic version.
This also removes the following redundant information display:
- free pages, printed by show_free_areas()
- pages in swapcache, printed by show_swap_cache_info()
where show_mem() calls show_free_areas(), which calls
show_swap_cache_info().
Signed-off-by: Johannes Weiner <hannes at saeurebad.de>
Acked-by: Geert Uytterhoeven <geert at linux-m68k.org>
Cc: Roman Zippel <zippel at linux-m68k.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 0ec5e0edd155385cb59cb9857de3176524ba4ff8
Author: Johannes Weiner <hannes at saeurebad.de>
Date: Fri Jul 25 19:46:17 2008 -0700
m68knommu: use generic show_mem()
Remove arch-specific show_mem() in favor of the generic version.
This also removes the following redundant information display:
- free pages, printed by show_free_areas()
- pages in swapcache, printed by show_swap_cache_info()
where show_mem() calls show_free_areas(), which calls
show_swap_cache_info().
Signed-off-by: Johannes Weiner <hannes at saeurebad.de>
Acked-by: Greg Ungerer <gerg at uclinux.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit e66ddf1a4593d9bec8623782b94d7b50cc58cec5
Author: Johannes Weiner <hannes at saeurebad.de>
Date: Fri Jul 25 19:46:16 2008 -0700
mips: use generic show_mem()
Remove arch-specific show_mem() in favor of the generic version.
This also removes the following redundant information display:
- pages in swapcache, printed by show_swap_cache_info()
where show_mem() calls show_free_areas(), which calls
show_swap_cache_info().
And show_mem() does now actually print something on configurations
with multiple nodes.
Signed-off-by: Johannes Weiner <hannes at saeurebad.de>
Acked-by: Ralf Baechle <ralf at linux-mips.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 4bad9ea20146860d726ac14a53206da6be132b98
Author: Johannes Weiner <hannes at saeurebad.de>
Date: Fri Jul 25 19:46:16 2008 -0700
h8300: use generic show_mem()
Remove arch-specific show_mem() in favor of the generic version.
This also removes the following redundant information display:
- free pages, printed by show_free_areas()
- pages in swapcache, printed by show_swap_cache_info()
where show_mem() calls show_free_areas(), which calls
show_swap_cache_info().
Signed-off-by: Johannes Weiner <hannes at saeurebad.de>
Cc: Yoshinori Sato <ysato at users.sourceforge.jp>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 4984d2d88805609e7702e8ee72b5e148c992ae7b
Author: Johannes Weiner <hannes at saeurebad.de>
Date: Fri Jul 25 19:46:15 2008 -0700
mn10300: use generic show_mem()
Remove arch-specific show_mem() in favor of the generic version.
This also removes the following redundant information display:
- free pages, printed by show_free_areas()
- pages in swapcache, printed by show_swap_cache_info()
where show_mem() calls show_free_areas(), which calls
show_swap_cache_info().
Signed-off-by: Johannes Weiner <hannes at saeurebad.de>
Acked-by: David Howells <dhowells at redhat.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit bda2fa535564ace56a395d5b65c6dc81305401fa
Author: Johannes Weiner <hannes at saeurebad.de>
Date: Fri Jul 25 19:46:14 2008 -0700
powerpc: use generic show_mem()
Remove arch-specific show_mem() in favor of the generic version.
This also removes the following redundant information display:
- pages in swapcache, printed by show_swap_cache_info()
where show_mem() calls show_free_areas(), which calls
show_swap_cache_info().
Signed-off-by: Johannes Weiner <hannes at saeurebad.de>
Cc: Benjamin Herrenschmidt <benh at kernel.crashing.org>
Cc: Paul Mackerras <paulus at samba.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit c55281dee09a843dd6bf5070324b86b84847e6ea
Author: Johannes Weiner <hannes at saeurebad.de>
Date: Fri Jul 25 19:46:14 2008 -0700
s390: use generic show_mem()
Remove arch-specific show_mem() in favor of the generic version.
This also removes the following redundant information display:
- pages in swapcache, printed by show_swap_cache_info()
where show_mem() calls show_free_areas(), which calls
show_swap_cache_info().
Signed-off-by: Johannes Weiner <hannes at saeurebad.de>
Acked-by: Heiko Carstens <heiko.carstens at de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky at de.ibm.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 03da6bfb5b40d454f5439ea905a68441aab23637
Author: Johannes Weiner <hannes at saeurebad.de>
Date: Fri Jul 25 19:46:13 2008 -0700
sh: use generic show_mem()
Remove arch-specific show_mem() in favor of the generic version.
This also removes the following redundant information display:
- free pages, printed by show_free_areas()
- pages in slab, printed by show_free_areas()
- free swap pages, printed by show_swap_cache_info()
- pages in swapcache, printed by show_swap_cache_info()
where show_mem() calls show_free_areas(), which calls
show_swap_cache_info().
Signed-off-by: Johannes Weiner <hannes at saeurebad.de>
Acked-by: Paul Mundt <lethal at linux-sh.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 471a54239a1c8a09cd12733d4e28db2aeebedb59
Author: Johannes Weiner <hannes at saeurebad.de>
Date: Fri Jul 25 19:46:12 2008 -0700
sparc64: use generic show_mem()
Remove arch-specific show_mem() in favor of the generic version.
This also removes the following redundant information display:
- free swap pages, printed by show_swap_cache_info()
- pages in swapcache, printed by show_swap_cache_info()
- dirty pages, writeback pages, mapped pages, slab pages,
pagetables pages, printed by show_free_areas()
where show_mem() calls show_free_areas(), which calls
show_swap_cache_info().
Signed-off-by: Johannes Weiner <hannes at saeurebad.de>
Acked-by: David S. Miller <davem at davemloft.net>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 79b0cbd113a9de1eaa3322528ccaeb97bd9189cc
Author: Johannes Weiner <hannes at saeurebad.de>
Date: Fri Jul 25 19:46:12 2008 -0700
um: use generic show_mem()
Remove arch-specific show_mem() in favor of the generic version.
This also removes the following redundant information display:
- free swap pages, printed by show_swap_cache_info()
- pages in swapcache, printed by show_swap_cache_info()
where show_mem() calls show_free_areas(), which calls
show_swap_cache_info().
Signed-off-by: Johannes Weiner <hannes at saeurebad.de>
Acked-by: Jeff Dike <jdike at addtoit.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 8dad322f5449010c14990dd6934878f576b2ee60
Author: Johannes Weiner <hannes at saeurebad.de>
Date: Fri Jul 25 19:46:11 2008 -0700
x86: use generic show_mem()
Remove arch-specific show_mem() in favor of the generic version.
This also removes the following redundant information display:
- pages in swapcache, printed by show_swap_cache_info()
- dirty pages, writeback pages, mapped pages, slab pages,
pagetable pages, printed by show_free_areas()
where show_mem() calls show_free_areas(), which calls
show_swap_cache_info().
Signed-off-by: Johannes Weiner <hannes at saeurebad.de>
Acked-by: Ingo Molnar <mingo at elte.hu>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 47221222a59a565e11954c078a2cf6a07a7e690e
Author: Johannes Weiner <hannes at saeurebad.de>
Date: Fri Jul 25 19:46:10 2008 -0700
xtensa: use generic show_mem()
Remove arch-specific show_mem() in favor of the generic version.
This also removes the following redundant information display:
- free pages, printed by show_free_areas()
- pages in swapcache, printed by show_swap_cache_info()
where show_mem() calls show_free_areas(), which calls
show_swap_cache_info().
Signed-off-by: Johannes Weiner <hannes at saeurebad.de>
Cc: Chris Zankel <chris at zankel.net>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit a2e9c44337b53aef37f3382920a478cac3777ba9
Author: Johannes Weiner <hannes at saeurebad.de>
Date: Fri Jul 25 19:46:10 2008 -0700
blackfin: use generic show_mem()
Remove arch-specific show_mem() in favor of the generic version.
This also removes the following redundant information display:
- free pages, printed by show_free_areas()
- pages in swapcache, printed by show_swap_cache_info()
where show_mem() calls show_free_areas(), which calls
show_swap_cache_info().
Signed-off-by: Johannes Weiner <hannes at saeurebad.de>
Acked-by: Bryan Wu <cooloney at kernel.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 46244a2b3c1dfd83041bcf0428c584d3a66b30cc
Author: Johannes Weiner <hannes at saeurebad.de>
Date: Fri Jul 25 19:46:09 2008 -0700
avr32: use generic show_mem()
Remove arch-specific show_mem() in favor of the generic version.
This also removes the following redundant information display:
- free pages, printed by show_free_areas()
- pages in slabs, printed by show_free_areas()
- pages in swapcache, printed by show_swap_cache_info()
where show_mem() calls show_free_areas(), which calls
show_swap_cache_info().
Signed-off-by: Johannes Weiner <hannes at saeurebad.de>
Acked-by: Haavard Skinnemoen <hskinnemoen at atmel.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 5f834b9f3bd3769162fc169efd7ecae0712a2d1d
Author: Johannes Weiner <hannes at saeurebad.de>
Date: Fri Jul 25 19:46:09 2008 -0700
alpha: use generic show_mem()
Remove arch-specific show_mem() in favor of the generic version.
This also removes the following redundant information display:
- free pages, printed by show_free_areas()
- free swap pages, printed by show_swap_cache_info()
- pages in swapcache, printed by show_swap_cache_info()
where show_mem() calls show_free_areas(), which calls
show_swap_cache_info().
Signed-off-by: Johannes Weiner <hannes at saeurebad.de>
Cc: Richard Henderson <rth at twiddle.net>
Cc: Ivan Kokshaysky <ink at jurassic.park.msu.ru>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 454c63b02e530f10b4345343f63596dd705888d0
Author: Johannes Weiner <hannes at saeurebad.de>
Date: Fri Jul 25 19:46:07 2008 -0700
lib: generic show_mem()
This implements a platform-independent version of show_mem().
Signed-off-by: Johannes Weiner <hannes at saeurebad.de>
Cc: Richard Henderson <rth at twiddle.net>
Cc: Ivan Kokshaysky <ink at jurassic.park.msu.ru>
Cc: Haavard Skinnemoen <hskinnemoen at atmel.com>
Cc: Bryan Wu <cooloney at kernel.org>
Cc: Chris Zankel <chris at zankel.net>
Cc: Ingo Molnar <mingo at elte.hu>
Cc: Jeff Dike <jdike at addtoit.com>
Cc: David S. Miller <davem at davemloft.net>
Cc: Paul Mundt <lethal at linux-sh.org>
Cc: Heiko Carstens <heiko.carstens at de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky at de.ibm.com>
Cc: David Howells <dhowells at redhat.com>
Cc: Benjamin Herrenschmidt <benh at kernel.crashing.org>
Cc: Paul Mackerras <paulus at samba.org>
Cc: Yoshinori Sato <ysato at users.sourceforge.jp>
Cc: Ralf Baechle <ralf at linux-mips.org>
Cc: Greg Ungerer <gerg at uclinux.org>
Cc: Geert Uytterhoeven <geert at linux-m68k.org>
Cc: Roman Zippel <zippel at linux-m68k.org>
Cc: Hirokazu Takata <takata at linux-m32r.org>
Cc: Mikael Starvik <starvik at axis.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 2c97b7fc0d8c8661981beb9517da342ced3b3bc7
Author: Johannes Weiner <hannes at saeurebad.de>
Date: Fri Jul 25 19:46:01 2008 -0700
mm: print swapcache page count in show_swap_cache_info()
Every arch implements its own show_mem() function. Most of them share
quite some code, some of them are completely identical.
This series implements a generic version of this function and migrates
almost all architectures to it.
This patch:
Most show_mem() implementations calculate the amount of pages within
the swapcache every time. Move the output to a more appropriate place
and use the anyway available total_swapcache_pages variable.
Signed-off-by: Johannes Weiner <hannes at saeurebad.de>
Cc: Richard Henderson <rth at twiddle.net>
Cc: Ivan Kokshaysky <ink at jurassic.park.msu.ru>
Cc: Haavard Skinnemoen <hskinnemoen at atmel.com>
Cc: Bryan Wu <cooloney at kernel.org>
Cc: Chris Zankel <chris at zankel.net>
Cc: Ingo Molnar <mingo at elte.hu>
Cc: Jeff Dike <jdike at addtoit.com>
Cc: David S. Miller <davem at davemloft.net>
Cc: Paul Mundt <lethal at linux-sh.org>
Cc: Heiko Carstens <heiko.carstens at de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky at de.ibm.com>
Cc: David Howells <dhowells at redhat.com>
Cc: Benjamin Herrenschmidt <benh at kernel.crashing.org>
Cc: Paul Mackerras <paulus at samba.org>
Cc: Yoshinori Sato <ysato at users.sourceforge.jp>
Cc: Ralf Baechle <ralf at linux-mips.org>
Cc: Greg Ungerer <gerg at uclinux.org>
Cc: Geert Uytterhoeven <geert at linux-m68k.org>
Cc: Roman Zippel <zippel at linux-m68k.org>
Cc: Hirokazu Takata <takata at linux-m32r.org>
Cc: Mikael Starvik <starvik at axis.com>
Cc: Hugh Dickins <hugh at veritas.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit ebcb67341fee34061430f3367f2e507e52ee051b
Author: Roland McGrath <roland at redhat.com>
Date: Fri Jul 25 19:46:00 2008 -0700
/proc/PID/syscall
This adds /proc/PID/syscall and /proc/PID/task/TID/syscall magic files.
These use task_current_syscall() to show the task's current system call
number and argument registers, stack pointer and PC. For a task blocked
but not in a syscall, the file shows "-1" in place of the syscall number,
followed by only the SP and PC. For a task that's not blocked, it shows
"running".
Signed-off-by: Roland McGrath <roland at redhat.com>
Cc: Oleg Nesterov <oleg at tv-sign.ru>
Reviewed-by: Ingo Molnar <mingo at elte.hu>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit bbc698636ed48b6fcd323964e0f847a6a796325d
Author: Roland McGrath <roland at redhat.com>
Date: Fri Jul 25 19:45:59 2008 -0700
task_current_syscall
This adds the new function task_current_syscall() on machines where the
asm/syscall.h interface is supported (CONFIG_HAVE_ARCH_TRACEHOOK). It's
exported for modules to use in the future. This function safely samples
the state of a blocked thread to collect what system call it is blocked
in, and the six system call argument registers.
Signed-off-by: Roland McGrath <roland at redhat.com>
Cc: Oleg Nesterov <oleg at tv-sign.ru>
Reviewed-by: Ingo Molnar <mingo at elte.hu>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 85ba2d862e521375a8ee01526c5c46b1f24bb4af
Author: Roland McGrath <roland at redhat.com>
Date: Fri Jul 25 19:45:58 2008 -0700
tracehook: wait_task_inactive
This extends wait_task_inactive() with a new argument so it can be used in
a "soft" mode where it will check for the task changing state unexpectedly
and back off. There is no change to existing callers. This lays the
groundwork to allow robust, noninvasive tracing that can try to sample a
blocked thread but back off safely if it wakes up.
Signed-off-by: Roland McGrath <roland at redhat.com>
Cc: Oleg Nesterov <oleg at tv-sign.ru>
Reviewed-by: Ingo Molnar <mingo at elte.hu>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 1f5a4ad97a0e7b663d527ecc02aabe203d000d91
Author: Roland McGrath <roland at redhat.com>
Date: Fri Jul 25 19:45:57 2008 -0700
tracehook: CONFIG_HAVE_ARCH_TRACEHOOK
This adds the generic HAVE_ARCH_TRACEHOOK kconfig item. Each arch should
add to some Kconfig file:
select HAVE_ARCH_TRACEHOOK
if the arch code uses all the latest hooks to enable newfangled tracing
and debugging code. The comment in arch/Kconfig lists all the
prerequisite arch support. When all these are available, setting
HAVE_ARCH_TRACEHOOK will allow enabling any new features that depend on
the modern arch interfaces.
Signed-off-by: Roland McGrath <roland at redhat.com>
Cc: Oleg Nesterov <oleg at tv-sign.ru>
Reviewed-by: Ingo Molnar <mingo at elte.hu>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 828c365cc8b8d38c346fccb19fa80d28f2240831
Author: Roland McGrath <roland at redhat.com>
Date: Fri Jul 25 19:45:57 2008 -0700
tracehook: asm/syscall.h
This adds asm-generic/syscall.h, which documents what a real
asm-ARCH/syscall.h file should define. This is not used yet, but will
provide all the machine-dependent details of examining a user system call
about to begin, in progress, or just ended.
Each arch should add an asm-ARCH/syscall.h that defines all the entry
points documented in asm-generic/syscall.h, as short inlines if possible.
This lets us write new tracing code that understands user system call
registers, without any new arch-specific work.
Signed-off-by: Roland McGrath <roland at redhat.com>
Cc: Oleg Nesterov <oleg at tv-sign.ru>
Reviewed-by: Ingo Molnar <mingo at elte.hu>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
commit 64b1208d5b0ef8859fd52ea7ae286a3eb994669b
Author: Roland McGrath <roland at redhat.com>
Date: Fri Jul 25 19:45:56 2008 -0700
tracehook: TIF_NOTIFY_RESUME
This adds tracehook.h inlines to enable a new arch feature in support of
user debugging/tracing. This is not used yet, but it lays the groundwork
for a debugger to be able to wrangle a task that's possibly running,
without interrupting its syscalls in progress.
Each arch should define TIF_NOTIFY_RESUME, and in their entry.S code treat
it much like TIF_SIGPENDING. That is, it causes you to take the slow path
when returning to user mode, where you get the full user-mode state
accessible as for signal handling or ptrace. The arch code should check
TIF_NOTIFY_RESUME after handling TIF_SIGPENDING. When it's set, clear it
and then call tracehook_notify_resume().
In future, tracing code will call set_notify_resume() when it wants to get
a callback in tracehook_notify_resume().
Signed-off-by: Roland McGrath <roland at redhat.com>
Cc: Oleg Nesterov <oleg at tv-sign.ru>
Reviewed-by: Ingo Molnar <mingo at elte.hu>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <