aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-05-19MIPS: BCM47xx: Fix MAC address parsing.Hauke Mehrtens1-2/+10
Some devices like the Netgear WGT634u are using minuses between the blocks of the MAC address and other devices are using colons to separate them. Signed-off-by: Hauke Mehrtens <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2366/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: BCM47xx: Extend the filling of SPROM from NVRAMHauke Mehrtens1-15/+66
Some members of the struct ssb_sprom where not filled with data available in the NVRAM. Some attribute names in the NVRAM changed from SPROM version 3 to version 4. This patch was done by analyzing the the pci sprom parser in the ssb code and some open source parts of the braodcom wireless driver used on embedded devices. Signed-off-by: Hauke Mehrtens <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2365/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: BCM47xx: Register SSB fallback sprom callbackHauke Mehrtens2-1/+24
We are generating the prefix based on the PCI bus address the device is on. This is done like Broadcom does it in their code expect that the the bus number is increased by one. In the SB bus implementation used by Broadcom the SB bus emulates a PCI bus so the kernel sees one PCI bus more then in our implementation. We do not handle prefixes like sb/1/ yet as they are only used on the new bus which is not implemented yet. Signed-off-by: Hauke Mehrtens <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2364/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: BCM47xx: Extend bcm47xx_fill_sprom with prefix.Hauke Mehrtens1-8/+21
When an other SSB based device without an own SPROM is attached, using the PCI bus to the main SSB based device, the data normally found in the SPROM will be stored in the NVRAM on modern devices. The keys, to load the data from the NVRAM, are all using some sort of prefix like pci/1/1/, pci/1/3/ or sb/1/ before the actual key. This patch extends bcm47xx_fill_sprom() to make it possible to read out these values when some prefix was used. The keys for the SPROM data used on the main chip does not have a prefix. Signed-off-by: Hauke Mehrtens <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2363/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19SSB: Change fallback sprom to callback mechanism.Hauke Mehrtens5-27/+55
Some embedded devices like the Netgear WNDR3300 have two SSB based cards without an own sprom on the pci bus. We have to provide two different fallback sproms for these and this was not possible with the old solution. In the bcm47xx architecture the sprom data is stored in the nvram in the main flash storage. The architecture code will be able to fill the sprom with the stored data based on the bus where the device was found. The bcm63xx code should do the same thing as before, just using the new API. Acked-by: Michael Buesch <[email protected]> Cc: [email protected] Cc: [email protected] Cc: Florian Fainelli <[email protected]> Signed-off-by: Hauke Mehrtens <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2362/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Alchemy: Clean up GPIO registers and accessorsManuel Lauss8-62/+70
remove au_readl/au_writel, remove the predefined GPIO1/2 KSEG1 register addresses and fix the fallout in all boards and drivers. This also fixes a bug in the mtx-1_wdt driver which was introduced by commit 6ea8115bb6f359df4f45152f2b40e1d4d1891392 ("Convert mtx1 wdt to be a platform device and use generic GPIO API") before this patch mtx-1_wdt only modified GPIO215, the patch then used the gpio resource information as bit index into the GPIO2 register but the conversion to the GPIO API didn't realize that. With this patch the drivers original behaviour is restored and GPIO15 is left alone. Signed-off-by: Manuel Lauss <[email protected]> Cc: Florian Fainelli <[email protected]> To: Linux-MIPS <[email protected]> Cc: [email protected] Cc: Wim Van Sebroeck <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/2381/ Signed-off-by: Ralf Baechle <[email protected]
2011-05-19MIPS: Alchemy: Cleanup DMA addressesManuel Lauss4-85/+35
According to the databooks, the Au1000 DMA engine must be programmed with the physical FIFO addresses. This patch does that; furthermore this opened the possibility to get rid of a lot of now unnecessary address defines. Signed-off-by: Manuel Lauss <[email protected]> To: Linux-MIPS <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: Wolfgang Grandegger <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/2348/ Signed-off-by: Ralf Baechle <[email protected]
2011-05-19MIPS: Alchemy: Rewrite ethernet platform setupManuel Lauss2-91/+123
Rewrite ethernet setup to use runtime cpu detection, and also clean up the ethernet base address mess as far as possible. Signed-off-by: Manuel Lauss <[email protected]> To: Linux-MIPS <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: Wolfgang Grandegger <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/2353/ Signed-off-by: Ralf Baechle <[email protected]
2011-05-19MIPS: Alchemy: Rewrite UART setup and constants.Manuel Lauss9-78/+107
Detect CPU type at runtime and setup uarts accordingly; also clean up the uart base address mess in the process as far as possible. Signed-off-by: Manuel Lauss <[email protected]> To: Linux-MIPS <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: Wolfgang Grandegger <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/2352/ Signed-off-by: Ralf Baechle <[email protected]
2011-05-19MIPS: Alchemy: Convert dbdma.c to syscore_opsManuel Lauss3-88/+47
Convert the PM sysdev to syscore_ops and clean up the ddma addresses a bit. Signed-off-by: Manuel Lauss <[email protected]> To: Linux-MIPS <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: Wolfgang Grandegger <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/2351/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Alchemy: Convert irq.c to syscore_ops.Manuel Lauss1-60/+41
Convert the PM sysdev to use syscore_ops instead. Signed-off-by: Manuel Lauss <[email protected]> To: Linux-MIPS <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: Wolfgang Grandegger <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/2350/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Alchemy: irq code and constant cleanupManuel Lauss2-231/+140
replace au_readl/au_writel with __raw_readl/__raw_writel, and clean up IC-related stuff from the headers. Signed-off-by: Manuel Lauss <[email protected]> To: Linux-MIPS <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: Wolfgang Grandegger <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/2354/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Alchemy: update inlinable GPIO APIManuel Lauss1-0/+51
This fixes a build failure with gpio_keys and CONFIG_GPIOLIB=n (mtx1): CC drivers/input/keyboard/gpio_keys.o gpio_keys.c: In function 'gpio_keys_report_event': gpio_keys.c:325:2: error: implicit declaration of function 'gpio_get_value_cansleep' gpio_keys.c: In function 'gpio_keys_setup_key': gpio_keys.c:390:3: error: implicit declaration of function 'gpio_set_debounce' Also add stubs for the other new functions. Signed-off-by: Manuel Lauss <[email protected]> To: Linux-MIPS <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: Wolfgang Grandegger <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/2346/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: DB1200: Set Config[OD] for improved stability.Manuel Lauss2-2/+9
Setting Config[OD] gets rid of a _LOT_ of spurious CPLD interrupts, but also decreases overall performance a bit. Signed-off-by: Manuel Lauss <[email protected]> To: Linux-MIPS <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: Wolfgang Grandegger <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/2347/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Split do_syscall_trace into two functions.Ralf Baechle7-20/+43
Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Use single define for pending work on syscall exitRalf Baechle2-1/+4
Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: IP27: Remove pointless switch statement.Ralf Baechle1-12/+1
Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Lantiq: Add watchdog supportJohn Crispin3-0/+268
This patch adds the driver for the watchdog found inside the Lantiq SoC family. Signed-off-by: John Crispin <[email protected]> Signed-off-by: Ralph Hempel <[email protected]> Cc: Wim Van Sebroeck <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2327/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Lantiq: Add etop board supportJohn Crispin1-0/+6
Register the etop platform device inside the machtype specific init code. Signed-off-by: John Crispin <[email protected]> Signed-off-by: Ralph Hempel <[email protected]> Signed-off-by: David Daney <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2356/ Patchwork: https://patchwork.linux-mips.org/patch/2370/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Lantiq: Add ethernet driverJohn Crispin7-2/+846
This patch adds the driver for the ETOP Packet Processing Engine (PPE32) found inside the XWAY family of Lantiq MIPS SoCs. This driver makes 100MBit ethernet work. Support for all 8 dma channels, gbit and the embedded switch found on the ar9/vr9 still needs to be implemented. Signed-off-by: John Crispin <[email protected]> Signed-off-by: Ralph Hempel <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2357/ Acked-by: David S. Miller <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Lantiq: Add DMA supportJohn Crispin5-2/+317
This patch adds support for the DMA engine found inside the XWAY family of SoCs. The engine has 5 ports and 20 channels. Signed-off-by: John Crispin <[email protected]> Signed-off-by: Ralph Hempel <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2355/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19SERIAL: Lantiq: Add driver for MIPS Lantiq SOCs.John Crispin3-0/+765
Signed-off-by: John Crispin <[email protected]> Signed-off-by: Ralph Hempel <[email protected]> Signed-off-by: Felix Fietkau <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2269/ Acked-by: Alan Cox <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Lantiq: Add more gpio driversJohn Crispin3-1/+284
The XWAY family allows to extend the number of gpios by using shift registers or latches. This patch adds the 2 drivers needed for this. The extended gpios are output only. [[email protected]: Fixed ltq_stp_probe section() attributes.] Signed-off-by: John Crispin <[email protected]> Signed-off-by: Ralph Hempel <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2258/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Lantiq: Add machtypes for lantiq eval kitsJohn Crispin6-0/+155
This patch adds mach specific code for the Lantiq EASY50712/50601 evaluation boards Signed-off-by: John Crispin <[email protected]> Signed-off-by: Ralph Hempel <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2255/ Patchwork: https://patchwork.linux-mips.org/patch/2361/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Lantiq: Add mips_machine supportJohn Crispin7-2/+86
This patch adds support for Gabor's mips_machine patch. Signed-off-by: John Crispin <[email protected]> Signed-off-by: Ralph Hempel <[email protected]> Cc: Gabor Juhos <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2251/ Patchwork: https://patchwork.linux-mips.org/patch/2358/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Lantiq: Add platform device supportJohn Crispin6-2/+263
This patch adds the wrappers for registering our platform devices. Signed-off-by: John Crispin <[email protected]> Signed-off-by: Ralph Hempel <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2254/ Patchwork: https://patchwork.linux-mips.org/patch/2360/ Patchwork: https://patchwork.linux-mips.org/patch/2359/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Lantiq: Add NOR flash supportJohn Crispin3-0/+259
This patch adds the driver/map for NOR devices attached to the SoC via the External Bus Unit (EBU). Signed-off-by: John Crispin <[email protected]> Signed-off-by: Ralph Hempel <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Daniel Schwierzeck <[email protected]> Cc: [email protected] Cc: [email protected] Acked-by: Artem Bityutskiy <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/2285/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Lantiq: Add PCI controller support.John Crispin5-0/+478
The Lantiq family of SoCs have a EBU (External Bus Unit). This patch adds the driver that allows us to use the EBU as a PCI controller. In order for PCI to work the EBU is set to endianess swap all the data. In addition we need to make use of SWAP_IO_SPACE for device->host DMA to work. The clock of the PCI works in several modes (internal/external). If this is not configured correctly the SoC will hang. Signed-off-by: John Crispin <[email protected]> Signed-off-by: Ralph Hempel <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2250/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Lantiq: add SoC specific code for XWAY familyJohn Crispin16-0/+1026
Add support for the Lantiq XWAY family of Mips24KEc SoCs. * Danube (PSB50702) * Twinpass (PSB4000) * AR9 (PSB50802) * Amazon SE (PSB5061) The Amazon SE is a lightweight SoC and has no PCI as well as a different clock. We split the code out into seperate files to handle this. The GPIO pins on the SoCs are multi function and there are several bits we can use to configure the pins. To be as compatible as possible to GPIOLIB we add a function int lq_gpio_request(unsigned int pin, unsigned int alt0, unsigned int alt1, unsigned int dir, const char *name); which lets you configure the 2 "alternate function" bits. This way drivers like PCI can make use of GPIOLIB without a cubersome wrapper. The PLL code inside arch/mips/lantiq/xway/clk-xway.c is voodoo to me. It was taken from a 2.4.20 source tree and was never really changed by me since then. Signed-off-by: John Crispin <[email protected]> Signed-off-by: Ralph Hempel <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2249/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Lantiq: Add initial support for Lantiq SoCsJohn Crispin13-0/+774
Add initial support for Mips based SoCs made by Lantiq. This series will add support for the XWAY family. The series allows booting a minimal system using a initramfs or NOR. Missing drivers and support for Amazon and GPON family will be provided in a later series. [Ralf: Remove some cargo cult programming and fixed formatting.] Signed-off-by: John Crispin <[email protected]> Signed-off-by: Ralph Hempel <[email protected]> Signed-off-by: David Daney <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2252/ Patchwork: https://patchwork.linux-mips.org/patch/2371/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Enable kmemleak for MIPSMaxin John2-1/+2
Signed-off-by: Maxin B. John <[email protected]> To: Catalin Marinas <[email protected]> Cc: Daniel Baluta <[email protected]> Cc: naveen yadav <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2244/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: XLR, XLS: Add PCI support.Jayachandran C4-1/+321
Adds pci/pci-xlr.c to support for XLR PCI/PCI-X interface and XLS PCIe interface. Update irq.c to ack PCI interrupts, use irq handler data to do the PCI/PCIe bus ack. Signed-off-by: Jayachandran C <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2337/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Add default configuration for XLR/XLS processorsJayachandran C1-0/+574
Enable XLR CPU support, SMP, initramfs based root filesystem etc. [[email protected]: shrink the defconfig file through make savedefconfig.] Signed-off-by: Jayachandran C <[email protected]> To: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2338/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Kconfig and Makefile update for Netlogic XLR/XLSJayachandran C7-0/+67
Add NLM_XLR_BOARD, CPU_XLR and other config options Makefile updates, mostly based on r4k Signed-off-by: Jayachandran C <[email protected]> To: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2334/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Platform files for XLR/XLS processor supportJayachandran C14-0/+1637
* include/asm/netlogic added with files common for all Netlogic processors (common with XLP which will be added later) * include/asm/netlogic/xlr for XLR/XLS chip specific files * netlogic/xlr for XLR/XLS platform files Signed-off-by: Jayachandran C <[email protected]> To: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2334/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Netlogic: Cache, TLB support and feature overrides for XLRJayachandran C3-0/+4
CPU_XLR case added to mm/tlbex.c CPU_XLR case added to mm/c-r4k.c for PINDEX attribute Feature overrides for XLR cpu. Signed-off-by: Jayachandran C <[email protected]> To: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2333/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Netlogic: mach-netlogic include filesJayachandran C3-0/+87
Add war.h and irq.h with XLR/XLS definitions. Signed-off-by: Jayachandran C <[email protected]> To: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2331/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19MIPS: Netlogic XLR/XLS processor IDs.Jayachandran C2-0/+83
Add Netlogic Microsystems company ID and processor IDs for XLR and XLS processors for CPU probe. Add CPU_XLR to cpu_type_enum. Signed-off-by: Jayachandran C <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2367/ Signed-off-by: Ralf Baechle <[email protected]>
2011-05-19powerpc: Remove last piece of GEMINISebastian Siewior1-13/+0
It seems that Adrian is getting old. He removed almost everything of GEMINI in commit c53653130 ("[POWERPC] Remove the broken Gemini support") except this piece. Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
2011-05-19powerpc: Fix for Pegasos keyboard and mouseGabriel Paubert1-0/+4
[See http://lists.ozlabs.org/pipermail/linuxppc-dev/2010-October/086424.html and followups. Part of the commit message is directly copied from that.] Commit 540c6c392f01887dcc96bef0a41e63e6c1334f01 tries to find i8042 IRQs in the device-tree but doesn't fall back to the old hardcoded 1 and 12 in all failure cases. Specifically, the case where the device-tree contains nothing matching pnpPNP,303 or pnpPNP,f03 doesn't seem to be handled well. It sort of falls through to the old code, but leaves the IRQs set to 0. Signed-off-by: Gabriel Paubert <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
2011-05-19powerpc: Make early memory scan more resilient to out of order nodesBenjamin Herrenschmidt1-5/+10
We keep track of the size of the lowest block of memory and call setup_initial_memory_limit() only after we've parsed them all Signed-off-by: Benjamin Herrenschmidt <[email protected]> Acked-by: Milton Miller <[email protected]>
2011-05-19params.c: Use new strtobool function to process boolean inputsJonathan Cameron1-10/+4
Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Rusty Russell <[email protected]>
2011-05-19powerpc/pseries/iommu: Cleanup ddw namingMilton Miller1-23/+19
When using a property refering to the availibily of dynamic dma windows call it ddw_avail not ddr_avail. dupe_ddw_if_already_created does not dupilcate anything, it only finds and reuses the windows we already created, so rename it to find_existing_ddw. Also, it does not need the pci device node, so remove that argument. Signed-off-by: Milton Miller <[email protected]> Signed-off-by: Nishanth Aravamudan <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
2011-05-19debugfs: move to new strtoboolJonathan Cameron1-13/+4
No functional changes requires that we eat errors from strtobool. If people want to not do this, then it should be fixed at a later date. V2: Simplification suggested by Rusty Russell removes the need for additional variable ret. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Rusty Russell <[email protected]>
2011-05-19powerpc/pseries/iommu: Find windows after kexec during bootMilton Miller1-28/+24
Move the discovery of windows previously setup from when the pci driver calls set_dma_mask to an arch_initcall. When kexecing into a kernel with dynamic dma windows allocated, we need to find the windows early so that memory hot remove will be able to delete the tces mapping the to be removed memory and memory hotplug add will map the new memory into the window. We should not wait for the driver to be loaded and the device to be probed. The iommu init hooks are before kmalloc is setup, so defer to arch_initcall. Signed-off-by: Milton Miller <[email protected]> Signed-off-by: Nishanth Aravamudan <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
2011-05-19Add a strtobool function matching semantics of existing in kernel equivalentsJonathan Cameron2-0/+30
This is a rename of the usr_strtobool proposal, which was a renamed, relocated and fixed version of previous kstrtobool RFC Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Rusty Russell <[email protected]>
2011-05-19modpost: Update 64k section support for binutils 2.18.50Anders Kaseorg2-29/+14
Binutils 2.18.50 made a backwards-incompatible change in the way it writes ELF objects with over 65280 sections, to improve conformance with the ELF specification and interoperability with other ELF tools. Specifically, it no longer adds 256 to section indices SHN_LORESERVE and higher to skip over the reserved range SHN_LORESERVE through SHN_HIRESERVE; those values are only considered special in the st_shndx field, and not in other places where section indices are stored. See: http://sourceware.org/bugzilla/show_bug.cgi?id=5900 http://groups.google.com/group/generic-abi/browse_thread/thread/e8bb63714b072e67/6c63738f12cc8a17 Signed-off-by: Anders Kaseorg <[email protected]> Signed-off-by: Rusty Russell <[email protected]>
2011-05-19powerpc/pseries/iommu: Remove ddw property when destroying windowMilton Miller1-2/+10
If we destroy the window, we need to remove the property recording that we setup the window. Otherwise the next kernel we kexec will be confused. Also we should remove the property if even if we don't find the ibm,ddw-applicable window or if one of the property sizes is unexpected; presumably these came from a prior kernel via kexec, and we will not be maintaining the window with respect to memory hotplug. Signed-off-by: Milton Miller <[email protected]> Signed-off-by: Nishanth Aravamudan <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
2011-05-19module: Use binary search in lookup_symbol()Alessio Igor Bogani1-5/+2
The function is_exported() with its helper function lookup_symbol() are used to verify if a provided symbol is effectively exported by the kernel or by the modules. Now that both have their symbols sorted we can replace a linear search with a binary search which provide a considerably speed-up. This work was supported by a hardware donation from the CE Linux Forum. Signed-off-by: Alessio Igor Bogani <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Rusty Russell <[email protected]>
2011-05-19powerpc/pseries/iommu: Add additional checks when changing iommu maskMilton Miller1-4/+11
Do not check dma supported until we have chosen the right dma ops. Check that the device is pci before treating it as such. Check the mask is supported by the selected dma ops before committing it. We only need to set iommu ops if it is not the current ops; this avoids searching the tree for the iommu table unnecessarily. Signed-off-by: Milton Miller <[email protected]> Signed-off-by: Nishanth Aravamudan <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>