]> git.hungrycats.org Git - linux/log
linux
22 years ago[PATCH] PPC64: RPA dynamic addition/removal of PCI Host Bridges
Paul Mackerras [Wed, 6 Oct 2004 06:52:11 +0000 (23:52 -0700)]
[PATCH] PPC64: RPA dynamic addition/removal of PCI Host Bridges

From: John Rose <johnrose@austin.ibm.com>

The following patch implements the ppc64-specific bits for dynamic (DLPAR)
addition of PCI Host Bridges.  The entry point for this operation is
init_phb_dynamic(), which will be called by the RPA DLPAR driver.

Among the implementation details, the global number aka PCI domain for the
newly added PHB is assigned using the same simple counter that assigns it at
boot.  This has two consequences.  First, the PCI domain associated with a PHB
will not persist across DLPAR remove and subsequent add.  Second, stress tests
that repeatedly add/remove PHBs might generate some large values for PCI
domain.  If we decide at a later point to hash an OF property to PCI domain
value, this can be easily fixed up.

Also, the linux,pci-domain property is not generated for the newly added PHBs
at the moment.  Because there doesn't seem to be an easy way to dynamically add
single properties to the OFDT, and because the userspace dependency on this
property is being questioned, I've ignored it for now.  If we decide on a
solution for this at a later point, it can also be easily fixed up.

Signed-off-by: John Rose <johnrose@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years agoPCI Hotplug: Oops, didn't mean to apply the msi pci express patch, so revert it
Greg Kroah-Hartman [Wed, 6 Oct 2004 06:47:41 +0000 (23:47 -0700)]
PCI Hotplug: Oops, didn't mean to apply the msi pci express patch, so revert it

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PPC64: Add pcibios_remove_root_bus
Paul Mackerras [Wed, 6 Oct 2004 06:46:10 +0000 (23:46 -0700)]
[PATCH] PPC64: Add pcibios_remove_root_bus

From: John Rose <johnrose@austin.ibm.com>

The following patch creates pcibios_remove_root_bus(), which performs
the ppc64-specific actions for removal of PCI Host Bridges.  This call
is invoked by the RPA DLPAR driver upon PHB removal.

Signed-off-by: John Rose <johnrose@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] pci hotplug/cpqphp_ctrl: replace schedule_timeout() with msleep_interruptible()
Nishanth Aravamudan [Wed, 6 Oct 2004 06:45:48 +0000 (23:45 -0700)]
[PATCH] pci hotplug/cpqphp_ctrl: replace schedule_timeout() with msleep_interruptible()

Use msleep_interruptible() instead of schedule_timeout() to guarantee
the task delays as expected.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] pci hotplug/cpqphp: replace schedule_timeout() with msleep_interruptible()
Nishanth Aravamudan [Wed, 6 Oct 2004 06:45:22 +0000 (23:45 -0700)]
[PATCH] pci hotplug/cpqphp: replace schedule_timeout() with msleep_interruptible()

Use msleep_interruptible() instead of schedule_timeout() to guarantee
the task delays as expected.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] pci hotplug/pciehp: replace schedule_timeout() with msleep_interruptible()
Nishanth Aravamudan [Wed, 6 Oct 2004 06:44:51 +0000 (23:44 -0700)]
[PATCH] pci hotplug/pciehp: replace schedule_timeout() with msleep_interruptible()

Use msleep_interruptible() instead of schedule_timeout() to guarantee
the task delays as expected.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] pci hotplug/shpchp: replace schedule_timeout() with msleep_interruptible()
Nishanth Aravamudan [Wed, 6 Oct 2004 06:44:26 +0000 (23:44 -0700)]
[PATCH] pci hotplug/shpchp: replace schedule_timeout() with msleep_interruptible()

Use msleep_interruptible() instead of schedule_timeout() to guarantee
the task delays as expected.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: Hot-plug driver updates due to MSI change
Dely Sy [Wed, 6 Oct 2004 06:44:01 +0000 (23:44 -0700)]
[PATCH] PCI: Hot-plug driver updates due to MSI change

In kernel 2.6.8, MSI has been updated.  This patch updates the two
hot-plug drivers to call pci_disable_msi() per MSI change to undo the
effect of pci_enable_msi() when the driver is unloading.

Signed-off-by: Dely Sy <dely.l.sy@intel.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: remove driver private PCI state, 1 arg for pci_{save,restore}_state
Roger Luethi [Wed, 6 Oct 2004 06:20:13 +0000 (23:20 -0700)]
[PATCH] PCI: remove driver private PCI state, 1 arg for pci_{save,restore}_state

This is the second (and hopefully final) iteration of the interface
change we talked about a while ago. The patch applies cleanly against
2.6.9-rc2-mm4.

This removes the second argument (buffer for storing PCI state) from
pci_{save,restore}_state since pci_dev contains such a buffer now.
Fixed all callers.

Three drivers used to pass a buffer of 256 bytes, one only 48(!). The
rest was correct. Changes were compile tested, except for Alpha.

Signed-off-by: Roger Luethi <rl@hellgate.ch>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: minor pci.ids update
Lennert Buytenhek [Wed, 6 Oct 2004 06:18:01 +0000 (23:18 -0700)]
[PATCH] PCI: minor pci.ids update

Here is another patch (against 2.6.9-rc2, not sure if that has the
latest version of the PCI db) that removes the vendor names from Intel
IXP and Radisys ENP entries, as per Martin's suggestion.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: change cyrix.c driver to use pci_dev_present
Greg Kroah-Hartman [Wed, 6 Oct 2004 06:05:44 +0000 (23:05 -0700)]
[PATCH] PCI: change cyrix.c driver to use pci_dev_present

Signed-off-by: Hanna Linder <hannal@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: Create new function to see if a pci device is present
Greg Kroah-Hartman [Wed, 6 Oct 2004 06:05:22 +0000 (23:05 -0700)]
[PATCH] PCI: Create new function to see if a pci device is present

This is needed to help get rid of the pci_find_device() usage in the tree.

Signed-off-by: Hanna Linder <hannal@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: add missing checks in drivers/pci/probe.c.
Luiz Capitulino [Wed, 6 Oct 2004 06:04:58 +0000 (23:04 -0700)]
[PATCH] PCI: add missing checks in drivers/pci/probe.c.

 I noticed drivers/pci/probe.c::pci_scan_bus_parented() has some functions which
the return value is not checked.

 The patch bellow adds the check for device_register(), class_device_register(),
class_device_create_file() and sysfs_create_link().

(hope the error label names are not too ugly).

Signed-off-by: Luiz Capitulino <lcapitulino@conectiva.com.br>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI Hotplug: quirk fix missed out in last patch
Dely Sy [Wed, 6 Oct 2004 06:04:35 +0000 (23:04 -0700)]
[PATCH] PCI Hotplug: quirk fix missed out in last patch

This patch contains a fix that was missed out in the last patch I sent
you regarding fixes for writing 1's to RsvdZ in Slot Status register
causing hot-plugging of PCI-X cards not working in some slots.

Signed-off-by: Dely Sy <dely.l.sy@intel.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: Changed pci_find_device to pci_get_device for acpi.c
Hanna V. Linder [Wed, 6 Oct 2004 06:04:14 +0000 (23:04 -0700)]
[PATCH] PCI: Changed pci_find_device to pci_get_device for acpi.c

Another simple patch to complete the /i386 conversion to pci_get_device.
I was able to compile and boot this patch to verify it didn't break anything
(on my T22).

Signed-off-by: Hanna Linder <hannal@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI Hotplug: acpiphp extension fixes
Vernon Mauery [Wed, 6 Oct 2004 06:02:03 +0000 (23:02 -0700)]
[PATCH] PCI Hotplug: acpiphp extension fixes

This patch fixes an off by one error that one of the IBM machines that
uses the acpiphp_ibm driver.  The slots were numbered starting at 0 in
BIOS instead of starting at 1 like the pci hotplug subsystem names
them.  So this patch provides a lookup to translate the Linux slot
numbers to the internal ACPI numbers.

Signed-off-by: Vernon Mauery <vernux@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI Hotplug: RPA dynamic addition/removal of PCI Host Bridges
John Rose [Wed, 6 Oct 2004 06:01:41 +0000 (23:01 -0700)]
[PATCH] PCI Hotplug: RPA dynamic addition/removal of PCI Host Bridges

The following patch implements the RPA PCI Hotplug and DLPAR driver changes for
the dynamic addition/removal of PCI Host bridges (PHBs).  These operations are
initiated in the same way as existing slot DLPAR operations, which is by
writing the firmware (drc) name of the PHB to:
/sys/bus/pci/slots/control/[add,remove]_slot

The "kernel" entry points for these operations are:
pcibios_remove_root_bus()
ppc64-specific, submitted to ppc64 list on 8/19, not yet accepted
http://ozlabs.org/ppc64-patches/patch.pl?id=241
init_phb_dynamic()
ppc64-specific, submitted to ppc64 list on 9/16, not yet accepted
http://ozlabs.org/ppc64-patches/patch.pl?id=292
pci_remove_bus()
generic, submitted and accepted by Greg
http://www.uwsg.iu.edu/hypermail/linux/kernel/0408.3/0595.html

Signed-off-by: John Rose <johnrose@austin.ibm.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] ibmasm: fix __iomem warnings
Greg Kroah-Hartman [Wed, 6 Oct 2004 06:01:19 +0000 (23:01 -0700)]
[PATCH] ibmasm: fix __iomem warnings

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: Fix one missed pci_find_device
Hanna V. Linder [Wed, 6 Oct 2004 05:56:27 +0000 (22:56 -0700)]
[PATCH] PCI: Fix one missed pci_find_device

Just noticed this in my update to the latest mm kernel...

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI Hotplug: fix the rest of the drivers for __iomem and other sparse issues.
Greg Kroah-Hartman [Wed, 6 Oct 2004 05:56:04 +0000 (22:56 -0700)]
[PATCH] PCI Hotplug: fix the rest of the drivers for __iomem and other sparse issues.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI Hotplug: Bug fixes for shpchp driver
Dely Sy [Wed, 6 Oct 2004 05:55:35 +0000 (22:55 -0700)]
[PATCH] PCI Hotplug: Bug fixes for shpchp driver

Can you please apply the following patch that has bug fixes for shpchp
driver? One bug was writing 1's to RsvdZ in Slot Status register
causing hot-plugging of PCI-X cards not working in some slots.  The
other fix is for getting the correct bus number.

Signed-off-by: Dely Sy <dely.l.sy@intel.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI Hotplug: fix __iomem warnings in the ibm pci hotplug driver
Greg Kroah-Hartman [Wed, 6 Oct 2004 05:55:13 +0000 (22:55 -0700)]
[PATCH] PCI Hotplug: fix __iomem warnings in the ibm pci hotplug driver

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI Hotplug: fix __iomem warnings in the compaq pci hotplug driver
Greg Kroah-Hartman [Wed, 6 Oct 2004 05:54:50 +0000 (22:54 -0700)]
[PATCH] PCI Hotplug: fix __iomem warnings in the compaq pci hotplug driver

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: fix __iomem * warnings for PCI msi core code.
Greg Kroah-Hartman [Wed, 6 Oct 2004 05:51:33 +0000 (22:51 -0700)]
[PATCH] PCI: fix __iomem * warnings for PCI msi core code.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI Hotplug: change bus speed patch
Dely Sy [Wed, 6 Oct 2004 05:51:12 +0000 (22:51 -0700)]
[PATCH] PCI Hotplug: change bus speed patch

Greg,

Here is a patch (against 2.6.8-rc2) that fixes the following things:
1) adds code to lower bus speed if the adapter card added run at a
lower speed that the current bus speed; 2) checks for any devices on
the same bus - not just those that sit on slots controlled by the same
shpc; 3) cleans up the code in the check bus speed area in board_added()
by creating two functions to handle common code.

Signed-off-by: Dely Sy <dely.l.sy@intel.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: warn of missing pci_disable_device()
Kenji Kaneshige [Wed, 6 Oct 2004 05:50:32 +0000 (22:50 -0700)]
[PATCH] PCI: warn of missing pci_disable_device()

As mentioned in Documentaion/pci.txt, pci device driver should call
pci_disable_device() when it decides to stop using the device. But
there are some drivers that don't use pci_disable_device() so far.

This patch adds warning messages that are displayed if the device is
removed without properly calling pci_disable_device().

'WARN_ON(1)' is commented out for now because I guess many people
(including some distros) enables 'CONFIG_DEBUG_KERNEL'. People might
be surprised if many stack dumps are displayed on their console.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI Hotplug: add host bridges to RPA hotplug subsystem
John Rose [Wed, 6 Oct 2004 05:38:06 +0000 (22:38 -0700)]
[PATCH] PCI Hotplug: add host bridges to RPA hotplug subsystem

The following patch implements the registration of PCI Host Bridges as hotplug
slots.  Only host bridges that are dynamically removable will be registered.
The hotplug slots directory goes from looking like this:

# ls /sys/bus/pci/slots
.             0000:00:02.2  0001:00:02.4  0002:00:02.2  30000000
..            0000:00:02.4  0001:00:02.6  0002:00:02.4  control
0000:00:02.0  0001:00:02.2  0002:00:02.0  0002:00:02.6

to this:

# ls /sys/bus/pci/slots
.             0000:00:02.0  0001:00:00.0  0001:00:02.6  0002:00:02.2  30000000
..            0000:00:02.2  0001:00:02.2  0002:00:00.0  0002:00:02.4  control
0000:00:00.0  0000:00:02.4  0001:00:02.4  0002:00:02.0  0002:00:02.6

This work is precursory to the DLPAR module changes that implement
addition/removal of these bridges.  Please apply if there are no objections.

Signed-off-by: John Rose <johnrose@austin.ibm.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: remove pci_find_device() usages from drivers/pci/*
Greg Kroah-Hartman [Wed, 6 Oct 2004 05:37:44 +0000 (22:37 -0700)]
[PATCH] PCI: remove pci_find_device() usages from drivers/pci/*

yeah, I ignored the ppc64 hotplug pci driver, they can fix it up themselves...

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: get rid of pci_find_device() from arch/i386/*
Greg Kroah-Hartman [Wed, 6 Oct 2004 05:25:27 +0000 (22:25 -0700)]
[PATCH] PCI: get rid of pci_find_device() from arch/i386/*

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] add-pci_fixup_enable-pass.patch
Andrew Morton [Wed, 6 Oct 2004 05:25:07 +0000 (22:25 -0700)]
[PATCH] add-pci_fixup_enable-pass.patch

From: Bjorn Helgaas <bjorn.helgaas@hp.com>

Nick Piggin's USB driver stopped working when I removed the unconditional
PCI ACPI IRQ routing stuff.  He has verified that the attached patch fixes
it.  I sort of hate to add another pass of PCI fixups, so I'm open to
alternate solutions if anybody suggests one.

Add a "pci_fixup_enable" pass of PCI fixups.  These are run at the end of
pci_enable_device() to fix up things like IRQs that are not set up until
then.  Some VIA boards require a fixup after the IRQ is set up.  Found by
Nick Piggin, initial patch by Bjorn Helgaas, reworked to fit into current
-mm by Nick.

Signed-off-by: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI pci_dev_b to list_for_each_entry: drivers-pci-setup-bus.c
Maximilian Attems [Wed, 6 Oct 2004 05:15:41 +0000 (22:15 -0700)]
[PATCH] PCI pci_dev_b to list_for_each_entry: drivers-pci-setup-bus.c

list_for_each & pci_(dev|bus)_[bg] replaced by list_for_each_entry.

Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI list_for_each: arch-sparc-kernel-pcic.c
Maximilian Attems [Wed, 6 Oct 2004 05:12:44 +0000 (22:12 -0700)]
[PATCH] PCI list_for_each: arch-sparc-kernel-pcic.c

s/for/list_for_each/

Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI list_for_each: arch-ppc-kernel-pci.c
Maximilian Attems [Wed, 6 Oct 2004 05:11:10 +0000 (22:11 -0700)]
[PATCH] PCI list_for_each: arch-ppc-kernel-pci.c

s/for/list_for_each/

Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI list_for_each: arch-ppc64-kernel-pci_dn.c
Maximilian Attems [Wed, 6 Oct 2004 05:03:13 +0000 (22:03 -0700)]
[PATCH] PCI list_for_each: arch-ppc64-kernel-pci_dn.c

s/for/list_for_each/

Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI list_for_each: arch-ppc64-kernel-pci.c
Maximilian Attems [Wed, 6 Oct 2004 05:01:08 +0000 (22:01 -0700)]
[PATCH] PCI list_for_each: arch-ppc64-kernel-pci.c

s/for/list_for_each/

Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI list_for_each: arch-ia64-sn-io-machvec-pci_bus_cvlink.c
Maximilian Attems [Wed, 6 Oct 2004 05:00:23 +0000 (22:00 -0700)]
[PATCH] PCI list_for_each: arch-ia64-sn-io-machvec-pci_bus_cvlink.c

s/for/list_for_each/

Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI list_for_each: arch-ia64-pci-pci.c
Maximilian Attems [Wed, 6 Oct 2004 04:59:04 +0000 (21:59 -0700)]
[PATCH] PCI list_for_each: arch-ia64-pci-pci.c

Change for loops with list_for_each_entry().

Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI list_for_each: arch-alpha-kernel-pci.c
Maximilian Attems [Wed, 6 Oct 2004 04:54:36 +0000 (21:54 -0700)]
[PATCH] PCI list_for_each: arch-alpha-kernel-pci.c

Change for loops with list_for_each().

Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI list_for_each: arch-i386-pci-i386.c
Maximilian Attems [Wed, 6 Oct 2004 04:51:24 +0000 (21:51 -0700)]
[PATCH] PCI list_for_each: arch-i386-pci-i386.c

Replace for with more readable list_for_each.
Compile tested.

Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: Reorder some initialization code to allow resources to be proper allocated.
Li Shaohua [Wed, 6 Oct 2004 04:50:52 +0000 (21:50 -0700)]
[PATCH] PCI: Reorder some initialization code to allow resources to be proper allocated.

On Tuesday, August 31, 2004, Linus Torvalds wrote:
> That list per se obviously looks ok by me, although I'd worry that some
> other fs_initcall depends on the ACPI stuff having been run (ie while the
> abover ordering is great, I worry that some _other_ part doesn't fit in
> the above ordering). Doing a quick check finds "chr_dev_init()", for
> example, which will do fbmem_init(), which might depend on the ACPI/PnP
> stuff having run already.
>
> So it _might_ be safer to make this ordering more explicit, rather than

Yes, I agree. The problem is there isn't a straightforward method for
it. It possibly is hard to get it.

> depending on the different phases of the initcalls. But I'd happily be
> proven wrogn with some simple argument for why this is guaranteed to be
> ok.. For example, maybe ACPI and PnP is linked before chr/mem.c, in which
> case it should all be ok.

Original PCI assign resources code is the last 'subsys_initcall'
according to the makefile, so move some code of it to 'fs_initcall'
(just below 'subsystem_initcall') should be ok. As you said, ACPI and
PnP is linked before chr/mem.c. The method requires all other
'fs_initcall' don't touch PCI resources, since
'pcibios_assign_resources' is a 'fs_initcall' and maybe don't run, but
it looks ok currently. Again, I will be appreciated if we can find a
solution to make the ordering explicit.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: update Documentation/power/pci.txt
David Brownell [Wed, 6 Oct 2004 04:50:24 +0000 (21:50 -0700)]
[PATCH] PCI: update Documentation/power/pci.txt

That document was wrong on some things, misleading on others; this
fixes some of the issues I noticed.

However it probably needs to say that drivers for devices that implement
the PCI PM spec "should" always use pci_set_power_state() to reduce the
power usage.  If I get ambitions I might submit a patch to the PCI core
to print a nag message for drivers that don't do that.

Updates the PCI PM docs, better matching the specs and code.

  - List both D3 states (D3hot, D3cold) up front.

  - Clarify that suspend() methods should disable I/0 (including DMA)
    and IRQs; it's not optional.

  - More accurately describe resume(); there are common cases where
    device re-initialization isn't appropriate.  The previous text said
    re-init was always required; that's false.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: mark proc_bus_pci_dir static
Christoph Hellwig [Wed, 6 Oct 2004 04:49:31 +0000 (21:49 -0700)]
[PATCH] PCI: mark proc_bus_pci_dir static

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] scx200: pci_find_device() removal.
Evgeniy Polyakov [Wed, 6 Oct 2004 04:48:43 +0000 (21:48 -0700)]
[PATCH] scx200: pci_find_device() removal.

Remove pci_find_device() in arch/i386/kernel/scx200.c.

Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: fix improper pr_debug() statement
Greg Kroah-Hartman [Wed, 6 Oct 2004 04:33:28 +0000 (21:33 -0700)]
[PATCH] PCI: fix improper pr_debug() statement

Thanks to Joe Perches for pointing this out.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: delete the pci_find_class() function as it's unsafe in hotpluggable...
Greg Kroah-Hartman [Wed, 6 Oct 2004 04:32:56 +0000 (21:32 -0700)]
[PATCH] PCI: delete the pci_find_class() function as it's unsafe in hotpluggable systems.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: remove pci_find_class() usage from all drivers/ files
Greg Kroah-Hartman [Wed, 6 Oct 2004 04:21:54 +0000 (21:21 -0700)]
[PATCH] PCI: remove pci_find_class() usage from all drivers/ files

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: remove pci_find_class() usage from arch specific files.
Greg Kroah-Hartman [Wed, 6 Oct 2004 04:21:11 +0000 (21:21 -0700)]
[PATCH] PCI: remove pci_find_class() usage from arch specific files.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: clean up the comments in search.c to be correct.
Greg Kroah-Hartman [Wed, 6 Oct 2004 04:20:43 +0000 (21:20 -0700)]
[PATCH] PCI: clean up the comments in search.c to be correct.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: add pci_get_class() to make a safe pci_find_class() like call.
Greg Kroah-Hartman [Wed, 6 Oct 2004 04:20:05 +0000 (21:20 -0700)]
[PATCH] PCI: add pci_get_class() to make a safe pci_find_class() like call.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: make pci_find_class() warn if in interrupt like all other find/get funct...
Greg Kroah-Hartman [Wed, 6 Oct 2004 04:19:16 +0000 (21:19 -0700)]
[PATCH] PCI: make pci_find_class() warn if in interrupt like all other find/get functions do.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: update the pci.txt documentation about pci_find_device and pci_find_subs...
Greg Kroah-Hartman [Wed, 6 Oct 2004 04:18:48 +0000 (21:18 -0700)]
[PATCH] PCI: update the pci.txt documentation about pci_find_device and pci_find_subsys going away

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: make pci_find_subsys() static, as it should not be used anymore
Greg Kroah-Hartman [Wed, 6 Oct 2004 04:18:21 +0000 (21:18 -0700)]
[PATCH] PCI: make pci_find_subsys() static, as it should not be used anymore

Use pci_get_subsys() if you want this functionality.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: remove pci_find_subsys() calls from acpi code.
Greg Kroah-Hartman [Wed, 6 Oct 2004 04:17:47 +0000 (21:17 -0700)]
[PATCH] PCI: remove pci_find_subsys() calls from acpi code.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] PCI: remove pci_find_subsys() calls from cpufreq code.
Greg Kroah-Hartman [Wed, 6 Oct 2004 04:17:12 +0000 (21:17 -0700)]
[PATCH] PCI: remove pci_find_subsys() calls from cpufreq code.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years agoRemove rest of legacy arch/m32r/drivers directory
Linus Torvalds [Wed, 6 Oct 2004 01:23:13 +0000 (18:23 -0700)]
Remove rest of legacy arch/m32r/drivers directory

22 years ago[PATCH] uml: makefile whitespace fix
Paolo \'Blaisorblade\' Giarrusso [Wed, 6 Oct 2004 01:16:50 +0000 (18:16 -0700)]
[PATCH] uml: makefile whitespace fix

Change the spacing for this command to fix alignment on output.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: makefile fix for .lds scripts.
Paolo \'Blaisorblade\' Giarrusso [Wed, 6 Oct 2004 01:16:39 +0000 (18:16 -0700)]
[PATCH] uml: makefile fix for .lds scripts.

Remove uml.lds and dyn.lds from extra-y; this was a relict from the recent
past.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] m32r: remove arch/m32r/drivers
Hirokazu Takata [Wed, 6 Oct 2004 01:16:25 +0000 (18:16 -0700)]
[PATCH] m32r: remove arch/m32r/drivers

Remove obsolete m32r-specific driver files, which are no longer used.

Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] m32r: remove unused arch/m32r/m32700ut/m32r-flash.c
Hirokazu Takata [Wed, 6 Oct 2004 01:16:13 +0000 (18:16 -0700)]
[PATCH] m32r: remove unused arch/m32r/m32700ut/m32r-flash.c

Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] m32r: remove unused arch/m32r/kernel/io_m32102.c
Hirokazu Takata [Wed, 6 Oct 2004 01:16:01 +0000 (18:16 -0700)]
[PATCH] m32r: remove unused arch/m32r/kernel/io_m32102.c

Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] m32r: remove arch/m32r/drivers/cs_internal.h
Christoph Hellwig [Wed, 6 Oct 2004 01:15:49 +0000 (18:15 -0700)]
[PATCH] m32r: remove arch/m32r/drivers/cs_internal.h

completely unused wrapper

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] m32r: remove arch/m32r/drivers/m5.[ch]
Christoph Hellwig [Wed, 6 Oct 2004 01:15:37 +0000 (18:15 -0700)]
[PATCH] m32r: remove arch/m32r/drivers/m5.[ch]

this is a 2.4ish block driver that doesn't have the slightest chance to
actually build.  It's also not connected to the build at all.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] m32r: update ioremap routine
Hirokazu Takata [Wed, 6 Oct 2004 01:15:24 +0000 (18:15 -0700)]
[PATCH] m32r: update ioremap routine

Here is a patch to update ioremap*.c for m32r, taken from "Add __iomem
modifier to the return value type of __ioremap() for much stricter
type-checking."

* arch/m32r/mm/ioremap.c: ditto.
- Add __iomem modifier to the return value type of __ioremap()
  for much stricter type-checking.

* arch/m32r/mm/ioremap-nommu.c: ditto.

* include/asm-m32r/io.h:
- Modified for much stricter type-checking.
- Change __inline__ to inline.

Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] x86_64: fix tss off by one
Andi Kleen [Wed, 6 Oct 2004 01:15:12 +0000 (18:15 -0700)]
[PATCH] x86_64: fix tss off by one

From: "Siddha, Suresh B" <suresh.b.siddha@intel.com>

Fix off by one in TSS limit.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] x86_64: add newline before MCE
Andi Kleen [Wed, 6 Oct 2004 01:14:59 +0000 (18:14 -0700)]
[PATCH] x86_64: add newline before MCE

(cosmetic) print newline before MCEs

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Disable SW irqbalance/irqaffinity for E7520/E7320/E7525 - change TARGET_CPUS...
Suresh B. Siddha [Wed, 6 Oct 2004 01:14:47 +0000 (18:14 -0700)]
[PATCH] Disable SW irqbalance/irqaffinity for E7520/E7320/E7525 - change TARGET_CPUS on x86_64

Set TARGET_CPUS on x86_64 to cpu_online_map.  This brings the code inline
with x86 mach-default.  Fix MSI_TARGET_CPU code which will break with this
target_cpus change.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] x86_64: make in_gate_vma() safer
Andi Kleen [Wed, 6 Oct 2004 01:14:35 +0000 (18:14 -0700)]
[PATCH] x86_64: make in_gate_vma() safer

x86-64 in_gate_vma would take a read lock on the VMA when the passed
address was inside the 32bit vsyscall page.

This would be called by get_user_pages, which already holds the mmap_sem.

Unfortunately some callers of get_user_pages hold the mmap_sem for writing,
which could in theory cause a deadlock.

I think it can currently not happen because the only users who hold it for
write before calling gup() are coredump and AIO in the ring setup, and both
should not ever access the vsyscall page.

But not taking the semaphore is safer and avoid this here.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] x86_64: don't corrupt interrupt flag on timer resume
Andi Kleen [Wed, 6 Oct 2004 01:14:23 +0000 (18:14 -0700)]
[PATCH] x86_64: don't corrupt interrupt flag on timer resume

Don't corrupt interrupt flag in time resume

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] x86_64: avoid a deadlock during panic
Andi Kleen [Wed, 6 Oct 2004 01:14:13 +0000 (18:14 -0700)]
[PATCH] x86_64: avoid a deadlock during panic

Avoid a deadlock during panic.  Don't take the smp_call_function lock in
smp_send_stop()

Also fix the documentation to conform to Linux standards.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] x86_64: fix circular dependency with UNORDERED_IO
Andi Kleen [Wed, 6 Oct 2004 01:14:04 +0000 (18:14 -0700)]
[PATCH] x86_64: fix circular dependency with UNORDERED_IO

Fix a circular dependency

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] x86_64: remove CONFIG_FRAME_POINTER
Andi Kleen [Wed, 6 Oct 2004 01:13:54 +0000 (18:13 -0700)]
[PATCH] x86_64: remove CONFIG_FRAME_POINTER

CONFIG_FRAME_POINTER has never worked on x86-64 because it never passed
-fno-omit-frame-pointer to the compiler, and that is the only way to get a
frame pointer on x86-64.

It also causes complications with profiling. Drop it.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] x86_64: fix profile_pc
Andi Kleen [Wed, 6 Oct 2004 01:13:42 +0000 (18:13 -0700)]
[PATCH] x86_64: fix profile_pc

This fixes profile_pc to work properly on x86-64 and not crash.

It does now a simple backtrace to the caller of the spin lock without
requiring a frame pointer for this.

Frame pointer support has been dropped because it never worked.

There is still a small race window, but the only way to avoid it would be
to rewrite kernel/spinlock.c in assembler again.  The race will account a
profile tick the the parent of the spinlock caller.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] x86_64: fix oops with multiple MCEs
Andi Kleen [Wed, 6 Oct 2004 01:13:30 +0000 (18:13 -0700)]
[PATCH] x86_64: fix oops with multiple MCEs

Fix oops when multiple MCE entries are logged.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] x86_64: fix HPET_HACK_ENABLE_DANGEROUS
Andi Kleen [Wed, 6 Oct 2004 01:13:18 +0000 (18:13 -0700)]
[PATCH] x86_64: fix HPET_HACK_ENABLE_DANGEROUS

From: <mg@iceni.pl>

The following patch fixes compilation of time.c with
HPET_HACK_ENABLE_DANGEROUS turned on.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: remove redundant #ifdef CONFIG_ALTIVEC
David Gibson [Wed, 6 Oct 2004 01:13:06 +0000 (18:13 -0700)]
[PATCH] ppc64: remove redundant #ifdef CONFIG_ALTIVEC

arch/ppc64/kernel/process.c has an #ifdef CONFIG_ALTIVEC within an #ifdef
CONFIG_ALTIVEC.  This patch removes the inner one.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: squash EEH warnings
David Gibson [Wed, 6 Oct 2004 01:12:54 +0000 (18:12 -0700)]
[PATCH] ppc64: squash EEH warnings

A slightly non-ideal version of the recent patch which fixed EEH being a
no-op went in.  The srcsave variable in eeh_memcpy_to_io() is now never
referenced on non-pSeries machines, and so spews hundreds of warnings.  The
variable doesn't actually accomplish anything, so this patch gets rid of
it.

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: fix several warnings
Matt Porter [Wed, 6 Oct 2004 01:12:42 +0000 (18:12 -0700)]
[PATCH] ppc32: fix several warnings

Fixes some annoying warnings due to unitialized variables.

Signed-off-by: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: add U-Boot support to Ocotea/440GX port
Matt Porter [Wed, 6 Oct 2004 01:12:30 +0000 (18:12 -0700)]
[PATCH] ppc32: add U-Boot support to Ocotea/440GX port

Adds support for booting the same Ocotea kernel from either the default
PIBS f/w or U-Boot.

Signed-off-by: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: sync ppcboot.h with U-Boot
Matt Porter [Wed, 6 Oct 2004 01:12:17 +0000 (18:12 -0700)]
[PATCH] ppc32: sync ppcboot.h with U-Boot

This puts us back in sync with current U-Boot CVS tree board info
definition.  Please apply.

Signed-off-by: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: export "indirect" DCR helpers
Eugene Surovegin [Wed, 6 Oct 2004 01:12:05 +0000 (18:12 -0700)]
[PATCH] ppc32: export "indirect" DCR helpers

this trivial patch adds missing exports for "indirect" DCR helpers -
__mtdcr & __mfcdr.

Signed-off-by: Eugene Surovegin <ebs@ebshome.net>
Signed-off-by: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: fix PFC1_EPS and PFC1_EPS_SHIFT for IBM440GX
Gerhard Jaeger [Wed, 6 Oct 2004 01:11:53 +0000 (18:11 -0700)]
[PATCH] ppc32: fix PFC1_EPS and PFC1_EPS_SHIFT for IBM440GX

While writing some BSP code for a 440GX custom board, I noticed, that the
DCRN_SDR_PFC1_EPS and DCRN_SDR_PFC1_EPS_SHIFT definitions are wrong and
therefore the functions ibm440gx_get_eth_grp() and ibm440gx_set_eth_grp()
won't work correctly.

Signed-off-by: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Gerhard Jaeger <gjaeger@sysgo.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] remove get_cpu_ptr()
Andrew Morton [Wed, 6 Oct 2004 01:11:41 +0000 (18:11 -0700)]
[PATCH] remove get_cpu_ptr()

Ingo points out that it's unusable anyway, because with some configs the
get_cpu() is evaluated and with others it is not.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] amd64 iomem initial annotations
Alexander Viro [Wed, 6 Oct 2004 00:56:53 +0000 (17:56 -0700)]
[PATCH] amd64 iomem initial annotations

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] trivial usb endianness annotations
Alexander Viro [Wed, 6 Oct 2004 00:56:41 +0000 (17:56 -0700)]
[PATCH] trivial usb endianness annotations

trivial endianness annotations in drivers/usb (apply after ohci and isd200
fixes).

Note: drivers/usb is nearly endian-clean at that point; there are several
very dubious places in there (in particular, rtl8150, pegasus and usbnet
are almost certainly broken in mii-related code on big-endian hosts); I'm
leaving them alone for now.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] isd200 bugfix for 64bit boxen
Alexander Viro [Wed, 6 Oct 2004 00:56:27 +0000 (17:56 -0700)]
[PATCH] isd200 bugfix for 64bit boxen

unsigned long is not a good type to use in declaration of structure we feed
to hardware...

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ohci bugfix for big-endian 64bit boxen
Alexander Viro [Wed, 6 Oct 2004 00:56:15 +0000 (17:56 -0700)]
[PATCH] ohci bugfix for big-endian 64bit boxen

->dma can be a 64bit variable on 64bit boxen; its value will fit into 32 bits
just fine (due to dma mask).  However, cpu_to_le32p(&...) will break if we
are on a 64bit big-endian; we'll end up up passing it the address of upper
32 bits and get 0 instead of correct value.  Fix is trivial...

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] hfsplus endianness bugfix
Alexander Viro [Wed, 6 Oct 2004 00:56:03 +0000 (17:56 -0700)]
[PATCH] hfsplus endianness bugfix

hfs_bnode_read_u8() always returns 0 on little-endian (cut'n'paste bug -
function is almost exact copy of its u16 counterpart, but be16_to_cpu()
should've been removed here).

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] hfsplus endianness annotations
Alexander Viro [Wed, 6 Oct 2004 00:55:51 +0000 (17:55 -0700)]
[PATCH] hfsplus endianness annotations

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] hfs endianness annotations
Alexander Viro [Wed, 6 Oct 2004 00:55:39 +0000 (17:55 -0700)]
[PATCH] hfs endianness annotations

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] umem iomem and (partial) endianness annotations
Alexander Viro [Wed, 6 Oct 2004 00:55:26 +0000 (17:55 -0700)]
[PATCH] umem iomem and (partial) endianness annotations

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] cpqarray iomem annotations
Alexander Viro [Wed, 6 Oct 2004 00:55:14 +0000 (17:55 -0700)]
[PATCH] cpqarray iomem annotations

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] cciss endianness and iomem annotations
Alexander Viro [Wed, 6 Oct 2004 00:55:02 +0000 (17:55 -0700)]
[PATCH] cciss endianness and iomem annotations

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] i2o_config __user annotations
Alexander Viro [Wed, 6 Oct 2004 00:54:50 +0000 (17:54 -0700)]
[PATCH] i2o_config __user annotations

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ufs endianness bugfixes
Alexander Viro [Wed, 6 Oct 2004 00:54:38 +0000 (17:54 -0700)]
[PATCH] ufs endianness bugfixes

missing conversions from on-disk to host-endian in a couple of places...

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ufs endianness annotations
Alexander Viro [Wed, 6 Oct 2004 00:54:26 +0000 (17:54 -0700)]
[PATCH] ufs endianness annotations

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] isofs endianness annotations
Alexander Viro [Wed, 6 Oct 2004 00:54:14 +0000 (17:54 -0700)]
[PATCH] isofs endianness annotations

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ncpfs (7/7): misc fixes and cleanups
Alexander Viro [Wed, 6 Oct 2004 00:54:02 +0000 (17:54 -0700)]
[PATCH] ncpfs (7/7): misc fixes and cleanups

* remaining endiannes cleanups
* don't mess with setting finfo.i.dataStreamSize when creating the root
  directory inode; that field is ignored when populating in-core directory
  inodes.
* missing cpu_to_le16() in ncp_search_for_fileset() (for big-endian clients
  server sees 0xff7f instead of intended 0x7fff).

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ncpfs (6/7): trivial endianness annotations
Alexander Viro [Wed, 6 Oct 2004 00:53:50 +0000 (17:53 -0700)]
[PATCH] ncpfs (6/7): trivial endianness annotations

100% straightforward annotations - from gcc POV no code had been changed.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ncpfs (5/7): le16 handling in marshalling
Alexander Viro [Wed, 6 Oct 2004 00:53:38 +0000 (17:53 -0700)]
[PATCH] ncpfs (5/7): le16 handling in marshalling

New helper: ncp_reply_le16() (decode 16bit little-endian).

ConvertToNWfromDWORD() cleaned up and fixed (it used to have one too many
le16_to_cpu() in arithmetics, on top of ugly tricks with memcpy() et.al.).
ncp_reply_word() has no callers left; removed.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ncpfs (4/7): be16 handling in marshalling
Alexander Viro [Wed, 6 Oct 2004 00:53:26 +0000 (17:53 -0700)]
[PATCH] ncpfs (4/7): be16 handling in marshalling

New marshalling helpers - ncp_add_be16() and ncp_reply_be16().

Encode and decode a big-endian 16bit field resp.

A bunch of places in ncplib_kernel.c switched to usign these.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>