linux/drivers/platform/x86
Roland Dreier dbee8a0aff x86: remove 32-bit versions of readq()/writeq()
The presense of a writeq() implementation on 32-bit x86 that splits the
64-bit write into two 32-bit writes turns out to break the mpt2sas driver
(and in general is risky for drivers as was discussed in
<http://lkml.kernel.org/r/adaab6c1h7c.fsf@cisco.com>).  To fix this,
revert 2c5643b1c5 ("x86: provide readq()/writeq() on 32-bit too") and
follow-on cleanups.

This unfortunately leads to pushing non-atomic definitions of readq() and
write() to various x86-only drivers that in the meantime started using the
definitions in the x86 version of <asm/io.h>.  However as discussed
exhaustively, this is actually the right thing to do, because the right
way to split a 64-bit transaction is hardware dependent and therefore
belongs in the hardware driver (eg mpt2sas needs a spinlock to make sure
no other accesses occur in between the two halves of the access).

Build tested on 32- and 64-bit x86 allmodconfig.

Link: http://lkml.kernel.org/r/x86-32-writeq-is-broken@mdm.bga.com
Acked-by: Hitoshi Mitake <h.mitake@gmail.com>
Cc: Kashyap Desai <Kashyap.Desai@lsi.com>
Cc: Len Brown <lenb@kernel.org>
Cc: Ravi Anand <ravi.anand@qlogic.com>
Cc: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: Jason Uhlenkott <juhlenko@akamai.com>
Acked-by: James Bottomley <James.Bottomley@parallels.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-05-25 08:39:44 -07:00
..
acer-wmi.c acer-wmi: Fix capitalisation of GUID in module alias 2011-04-12 11:27:46 -04:00
acerhdf.c acerhdf: fix resource reclaim in error path 2010-08-03 09:49:01 -04:00
asus-laptop.c platform-drivers: x86: fix common misspellings 2011-03-28 06:46:10 -04:00
asus-nb-wmi.c asus-nb-wmi: Asus Notebooks WMI Driver 2011-03-28 06:07:23 -04:00
asus-wmi.c asus-wmi: swap input name and phys 2011-04-01 14:23:55 -04:00
asus-wmi.h eeepc-wmi: asus generic asus-wmi.ko module 2011-03-28 06:07:20 -04:00
asus_acpi.c backlight: add backlight type 2011-03-22 17:43:59 -07:00
classmate-laptop.c backlight: add backlight type 2011-03-22 17:43:59 -07:00
compal-laptop.c platform-drivers: x86: fix common misspellings 2011-03-28 06:46:10 -04:00
dell-laptop.c backlight: add backlight type 2011-03-22 17:43:59 -07:00
dell-wmi-aio.c Enable Dell All-In-One volume up/down keys 2011-03-28 06:05:22 -04:00
dell-wmi.c Input: dell-wmi - switch to using sparse keymap library 2010-10-21 09:36:43 -04:00
eeepc-laptop.c eeepc-laptop: Use ACPI handle to identify rfkill port 2011-05-09 10:48:47 -04:00
eeepc-wmi.c eeepc-wmi: add keys found on EeePC 1215T 2011-04-01 14:24:00 -04:00
fujitsu-laptop.c backlight: add backlight type 2011-03-22 17:43:59 -07:00
hdaps.c Move hdaps driver to platform/x86 2010-10-21 10:10:43 -04:00
hp-wmi.c hp-wmi: add rfkill support for wireless query 0x1b 2011-03-28 06:07:19 -04:00
hp_accel.c hp_accel: Fix driver name 2011-03-21 17:59:36 +01:00
ibm_rtl.c x86: remove 32-bit versions of readq()/writeq() 2011-05-25 08:39:44 -07:00
ideapad-laptop.c ideapad: read brightness setting on brightness key notify 2011-03-28 06:07:24 -04:00
intel_ips.c x86: remove 32-bit versions of readq()/writeq() 2011-05-25 08:39:44 -07:00
intel_ips.h drm/i915, intel_ips: When i915 loads after IPS, make IPS relink to i915. 2010-12-23 09:51:36 +00:00
intel_menlow.c intel_menlow: fix memory leaks in error path 2010-08-03 09:48:40 -04:00
intel_mid_powerbtn.c intel_mid_powerbtn: add power button driver for Medfield platform (#3) 2011-03-28 06:05:21 -04:00
intel_mid_thermal.c Fix common misspellings 2011-03-31 11:26:23 -03:00
intel_pmic_gpio.c x86 platform drivers: Build fix for intel_pmic_gpio 2011-04-13 11:52:16 -04:00
intel_rar_register.c platform-drivers: x86: fix common misspellings 2011-03-28 06:46:10 -04:00
intel_scu_ipc.c platform-drivers: x86: fix common misspellings 2011-03-28 06:46:10 -04:00
intel_scu_ipcutil.c intel_scu_ipcutils: Fix the license tag 2011-01-26 08:57:18 +10:00
Kconfig Merge branch 'drm-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 2011-05-24 12:06:40 -07:00
Makefile platform/x86: add MXM WMI driver. 2011-05-04 13:38:33 +10:00
msi-laptop.c msi-laptop: use pr_<level> for messages 2011-03-28 06:45:00 -04:00
msi-wmi.c backlight: add backlight type 2011-03-22 17:43:59 -07:00
mxm-wmi.c mxm/wmi: add MXMX interface entry point. 2011-05-09 11:40:38 +10:00
panasonic-laptop.c backlight: add backlight type 2011-03-22 17:43:59 -07:00
samsung-laptop.c samsung-laptop: set backlight type 2011-04-12 11:27:40 -04:00
sony-laptop.c [PATCH] sony-laptop: limit brightness range to DSDT provided ones 2011-05-09 10:28:47 -04:00
tc1100-wmi.c platform: x86: tc1100-wmi: world-writable sysfs wireless and jogdial files 2011-02-21 17:06:13 -05:00
thinkpad_acpi.c thinkpad-acpi: module autoloading for newer Lenovo ThinkPads. 2011-05-09 10:25:13 -04:00
topstar-laptop.c topstar-laptop - switch to using sparse keymap library 2010-10-21 09:36:42 -04:00
toshiba_acpi.c backlight: add backlight type 2011-03-22 17:43:59 -07:00
toshiba_bluetooth.c ACPI: replace acpi_integer by u64 2010-01-28 01:47:33 -05:00
wmi.c WMI: return error if wmi_create_device() fails 2011-01-07 17:03:45 -05:00
xo1-rfkill.c Add OLPC XO-1 rfkill driver 2010-10-21 10:10:44 -04:00
xo15-ebook.c xo15-ebook: Remove device.wakeup_count 2011-03-28 06:46:16 -04:00