Re: Executing from readablee, no-exec pages

2007-07-05 Thread Rodrigo Rubira Branco
On Thu, 2007-07-05 at 16:55 -0500, Scott Wood wrote: > As revealed by the recent "Prevent data exception in kernel space" > patch, versions of glibc prior to 2.4[1] assume that, on powerpc32, they > can execute out of any readable mapping, regardless of whether it is > marked for execution. Thi

Re: + add-missing-data_data-in-powerpc.patch added to -mm tree

2007-07-05 Thread Mathieu Desnoyers
Please add to patch header: Newer asm-generic/vmlinux.lds.h provides a DATA_DATA macro which defines the content of what is normally referred to by *(.data). It permits adding more "subsections" (declared by gcc with the section attribute or in assembly), whichwill be linked in the .data section.

Executing from readablee, no-exec pages

2007-07-05 Thread Scott Wood
As revealed by the recent "Prevent data exception in kernel space" patch, versions of glibc prior to 2.4[1] assume that, on powerpc32, they can execute out of any readable mapping, regardless of whether it is marked for execution. This happens in the elf_machine_load_address() function. To ma

+ add-missing-data_data-in-powerpc.patch added to -mm tree

2007-07-05 Thread akpm
The patch titled powerpc: add missing DATA_DATA has been added to the -mm tree. Its filename is add-missing-data_data-in-powerpc.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to fi

Re: PowerPC equivalent to dma_mmap_writecombine()?

2007-07-05 Thread Segher Boessenkool
>> There are no dma_mmap_x() functions in arch/powerpc. Can someone >> tell me what the powerpc >> equivalent to dma_mmap_writecombine() is? > > Not sure exactly what arm does here, but it sounds like you want > to call remap_pfn_range with the _PAGE_NO_CACHE bit set in the > protection flags, a

Re: powerpc stacktrace and lockdep support

2007-07-05 Thread Sergei Shtylyov
Johannes Berg wrote: > This one doesn't break 32-bit build by simply disabling irqtrace for > 32-bit. > --- linux-2.6-git32.orig/include/asm-powerpc/hw_irq.h 2007-06-28 > 14:53:58.730430447 +0200 > +++ linux-2.6-git32/include/asm-powerpc/hw_irq.h 2007-06-28 > 14:58:41.508430447 +0200 > @@ -

Re: [PATCH]: PCI Error Recovery: Symbios SCSI device driver

2007-07-05 Thread Matthew Wilcox
On Thu, Jul 05, 2007 at 11:28:38AM -0700, Andrew Morton wrote: > Well you've sent it a couple of times, and I've sent it in five more times > over the past year. Once we were told "awaiting maintainer ack". > > This situation is fairly stupid. How about we make you the maintainer? Last time I l

Re: [patch 27/35] Work around errata 4290

2007-07-05 Thread Olof Johansson
On Thu, Jul 05, 2007 at 08:50:21PM +0200, Gabriel Paubert wrote: > On Thu, Jul 05, 2007 at 12:03:00PM -0500, Olof Johansson wrote: > > Workaround for errata 4290: The decrementer ticks at half the expected rate > > so load it with half the value it would otherwise be loaded with. > > > > > > Inde

Re: [patch 27/35] Work around errata 4290

2007-07-05 Thread Gabriel Paubert
On Thu, Jul 05, 2007 at 12:03:00PM -0500, Olof Johansson wrote: > Workaround for errata 4290: The decrementer ticks at half the expected rate > so load it with half the value it would otherwise be loaded with. > > > Index: 2.6.21/include/asm-powerpc/time.h > ==

Re: [PATCH]: PCI Error Recovery: Symbios SCSI device driver

2007-07-05 Thread Andrew Morton
On Mon, 2 Jul 2007 13:39:17 -0500 [EMAIL PROTECTED] (Linas Vepstas) wrote: > > Various PCI bus errors can be signaled by newer PCI controllers. > This patch adds the PCI error recovery callbacks to the Symbios > SCSI device driver. The patch has been tested, and appears to > work well. > y

Re: PowerPC equivalent to dma_mmap_writecombine()?

2007-07-05 Thread Arnd Bergmann
On Thursday 05 July 2007, Timur Tabi wrote: > static int at91_pcm_mmap(struct snd_pcm_substream *substream, > struct vm_area_struct *vma) > { > struct snd_pcm_runtime *runtime = substream->runtime; > > return dma_mmap_writecombine(substream->pcm->card->dev, vma, >  

[patch 34/35] Work around errata 4505

2007-07-05 Thread Olof Johansson
Workaround for Errata 4504: PMC0 doesn't seem to set SIARLOG when an exception occurs. Instead, log the PC for when we took the actual exception. Index: 2.6.21/arch/powerpc/oprofile/op_model_pa6t.c === --- 2.6.21.orig/arch/powerpc/o

[patch 30/35] Disable PURR on pa6t

2007-07-05 Thread Olof Johansson
Our PURR ticks at the wrong rate (same as the decrementer). Since it doesn't really have any value-add besides on partitioned and multithreaded systems, refrain from using it at the moment. Index: 2.6.21/include/asm-powerpc/cputable.h ==

[patch 29/35] Work around errata 4910

2007-07-05 Thread Olof Johansson
Don't allow unguarded mappings in PCI-express space. This is resolves problems with frame buffers having garbage on them due to failing write merges. Index: 2.6.21/arch/powerpc/mm/hash_native_64.c === --- 2.6.21.orig/arch/powerpc/mm/

[patch 26/35] Work around errata 4713

2007-07-05 Thread Olof Johansson
Workaround for errata 4713: Concurrent access to some of the devices in the SOC will result in a bus hang. To avoid this, we introduce the lbi_lock, and grab it in the drivers in question. Not a pretty solution, but adequate for now. Index: mainline/arch/powerpc/platforms/pasemi/setup.c

[patch 33/35] Work around errata 5667

2007-07-05 Thread Olof Johansson
Always keep a page mapped at EA 0. Right now it is shared among all processes, as long as noone does a NULL pointer deref and uses the data there, there should be no security implications. Still, this is better not used in any kind of environment where users can't be trusted. Index: mainline/arch

[patch 17/35] CF driver for PA Semi Electra

2007-07-05 Thread Olof Johansson
Driver for the CompactFlash slot on the PA Semi Electra eval board. It's a simple device sitting on localbus, with interrupts and detect/voltage control over GPIO. The driver is implemented as an of_platform driver, and adds localbus as a bus being probed by the of_platform framework. Signed-off

[patch 21/35] Use MSR_PMM to disable profiling of the idle loop

2007-07-05 Thread Olof Johansson
Use MSR_PMM to disable performance monitor counting while in idle, instead of using the CTRL register like on the IBM implementation. This needs further cleanup. It should be possible to switch over the default behaviour to MSR_PMM on IBM hardware too. Index: 2.6.21/arch/powerpc/kernel/process.c

[patch 25/35] Work around errata 4025

2007-07-05 Thread Olof Johansson
Errata 4025 workaround: A SLB load can in some cases be corrupted. As a workaround, insert an instruction with sync side effects after the load (in this case it's the mtmsrd). Index: 2.6.21/arch/powerpc/kernel/entry_64.S === --- 2.6

[patch 24/35] Work around errata 4628

2007-07-05 Thread Olof Johansson
Errata 4628 causes lockups during table walks that are recovered from when a ptesync is received. So, issue a ptesync every timer interrupt, and for CPUs that have not yet spun up, at regular intervals. This seems sufficient to avoid hitting it. Index: 2.6.21/arch/powerpc/kernel/head_64.S

[patch 31/35] Work around errata 4161

2007-07-05 Thread Olof Johansson
Errata 4161: Concurring ptesyncs on both cores might lock up the cores. Most ptesyncs are already under tlbie_lock, so use that in the only other remaining location (the timer interrupt ones we've added ourselves). Index: 2.6.21/arch/powerpc/kernel/time.c =

[patch 22/35] Work around errata 4111

2007-07-05 Thread Olof Johansson
Workaround for errata 4111: IPI registers of the OpenPIC don't read back right. Also, reading back regular irq setup registers is broken, so keep a software copy. Index: mainline/arch/powerpc/sysdev/mpic.c === --- mainline.orig/arch

[patch 23/35] Work around UART erratas

2007-07-05 Thread Olof Johansson
Support for, and workarounds for various problems with our UART. This needs further cleanup at some point. Index: mainline/arch/powerpc/kernel/udbg_16550.c === --- mainline.orig/arch/powerpc/kernel/udbg_16550.c +++ mainline/arch/pow

[patch 27/35] Work around errata 4290

2007-07-05 Thread Olof Johansson
Workaround for errata 4290: The decrementer ticks at half the expected rate so load it with half the value it would otherwise be loaded with. Index: 2.6.21/include/asm-powerpc/time.h === --- 2.6.21.orig/include/asm-powerpc/time.h +++

[patch 19/35] Improve machine check output

2007-07-05 Thread Olof Johansson
The name says it all. Try to provide more good info on machine checks. Index: 2.6.21/arch/powerpc/platforms/pasemi/setup.c === --- 2.6.21.orig/arch/powerpc/platforms/pasemi/setup.c +++ 2.6.21/arch/powerpc/platforms/pasemi/setup.c @@

[patch 28/35] Work around errata 4712

2007-07-05 Thread Olof Johansson
Workaround for errata 4712; on an SMP system the PIC can get stuck trying to read the next available interrupt from INTACK in case there's only a spurious available. The workaround is to program timers to cause interrupts every now and then, which recovers from the lockup. Index: mainline/arch/po

[patch 20/35] Remove idle_spin function pointer

2007-07-05 Thread Olof Johansson
Remove idle_spin function pointer, since it just seems to make the idle loop run hotter by doing bl/blr. Index: 2.6.21/arch/powerpc/platforms/pasemi/idle.c === --- 2.6.21.orig/arch/powerpc/platforms/pasemi/idle.c +++ 2.6.21/arch/power

[patch 06/35] pasemi_mac: Abstract out register access

2007-07-05 Thread Olof Johansson
Abstract out the PCI config read/write accesses into reg read/write ones, still calling the pci accessors on the back end. Signed-off-by: Olof Johansson <[EMAIL PROTECTED]> Index: netdev-2.6/drivers/net/pasemi_mac.c === --- netdev-2

[patch 15/35] Export HID registers via sysfs

2007-07-05 Thread Olof Johansson
Export some of the HID registers via sysfs. Useful when debugging. Index: 2.6.21/arch/powerpc/kernel/sysfs.c === --- 2.6.21.orig/arch/powerpc/kernel/sysfs.c +++ 2.6.21/arch/powerpc/kernel/sysfs.c @@ -197,6 +197,17 @@ SYSFS_PMCSETUP(p

[patch 14/35] Add 88E1112 PHY ID to the marvell driver.

2007-07-05 Thread Olof Johansson
Add 88E1112 PHY ID to the marvell driver. Signed-off-by: Olof Johansson <[EMAIL PROTECTED]> Index: mainline/drivers/net/phy/marvell.c === --- mainline.orig/drivers/net/phy/marvell.c +++ mainline/drivers/net/phy/marvell.c @@ -252,6 +

[patch 07/35] pasemi_mac: stop using the pci config space accessors for register read/writes

2007-07-05 Thread Olof Johansson
Move away from using the pci config access functions for simple register access. Our device has all of the registers in the config space (hey, from the hardware point of view it looks reasonable :-), so we need to somehow get to it. Newer firmwares have it in the device tree such that we can just

[patch 08/35] pasemi_mac: Enable L2 caching of packet headers

2007-07-05 Thread Olof Johansson
Enable settings to target L2 for the first few cachelines of the packet, since we'll access them to get to the various headers. Signed-off-by: Olof Johansson <[EMAIL PROTECTED]> Index: netdev-2.6/drivers/net/pasemi_mac.c === --- ne

[patch 11/35] pasemi_mac: Reduce locking when cleaning TX ring

2007-07-05 Thread Olof Johansson
Postpone pci unmap and skb free of the transmitted buffers to outside of the tx ring lock, batching them up 32 at a time. Signed-off-by: Olof Johansson <[EMAIL PROTECTED]> Index: netdev-2.6/drivers/net/pasemi_mac.c === --- netdev-2.

[patch 10/35] pasemi_mac: Minor performance tweaks

2007-07-05 Thread Olof Johansson
Various minor performance tweaks, do some explicit prefetching of packet data, etc. Signed-off-by: Olof Johansson <[EMAIL PROTECTED]> Index: netdev-2.6/drivers/net/pasemi_mac.c === --- netdev-2.6.orig/drivers/net/pasemi_mac.c +++ net

[patch 12/35] pasemi_mac: Enable LLTX

2007-07-05 Thread Olof Johansson
Enable LLTX on pasemi_mac: we're already doing sufficient locking in the driver to enable it. Signed-off-by: Olof Johansson <[EMAIL PROTECTED]> Index: netdev-2.6/drivers/net/pasemi_mac.c === --- netdev-2.6.orig/drivers/net/pasemi_ma

[patch 04/35] pasemi_mac: Fix TX interrupt threshold

2007-07-05 Thread Olof Johansson
It was mistakenly set to interrupt on the second packet instead of first, causing some interesting latency behaviour. Signed-off-by: Olof Johansson <[EMAIL PROTECTED]> Index: netdev-2.6/drivers/net/pasemi_mac.c === --- netdev-2.6.o

[patch 00/35] PA Semi patch set

2007-07-05 Thread Olof Johansson
The following series is a snapshot of the in-progress and out-of-tree errata workarounds that I'm currently maintaining. The first patches are mostly copies of stuff that has already been sent out for upstream merge, followed by some patches that are not yet ready to be merged (need cleanup, more

[patch 05/35] pasemi_mac: Clean TX ring in poll

2007-07-05 Thread Olof Johansson
Clean the TX ring in the poll call, to avoid sitting on mapped buffers for a long time. NFS doesn't seem to like it much, for example. Signed-off-by: Olof Johansson <[EMAIL PROTECTED]> Index: netdev-2.6/drivers/net/pasemi_mac.c ===

[patch 02/35] PA Semi EDAC driver

2007-07-05 Thread Olof Johansson
EDAC driver for the memory controllers on PA Semi PA6T-1682M. Signed-off-by: Egor Martovetsky <[EMAIL PROTECTED]> Signed-off-by: Olof Johansson <[EMAIL PROTECTED]> Index: 2.6.21/drivers/edac/pasemi_edac.c === --- /dev/null +++ 2.6.21

[patch 03/35] Change powerpc64 ioaddr_t to u_int

2007-07-05 Thread Olof Johansson
ppc64 really needs ioaddr_t to be 32-bit, since I/O addresses really are MMIO addresses, and remapped at an offset that's well above 16 bits in some cases. While the type is exported to userspace, there hasn't been any platforms with PCMCIA on 64-bit powerpc until now, so changing it won't regress

PowerPC equivalent to dma_mmap_writecombine()?

2007-07-05 Thread Timur Tabi
I'm porting a driver from ARM to PowerPC, and I came across this function: static int at91_pcm_mmap(struct snd_pcm_substream *substream, struct vm_area_struct *vma) { struct snd_pcm_runtime *runtime = substream->runtime; return dma_mmap_writecombine(substream->pcm->card->d

Re: Patches added to for_paulus (queue'd for 2.6.23)

2007-07-05 Thread Jon Loeliger
On Tue, 2007-07-03 at 04:17, Kumar Gala wrote: > I'm still working through the back log of patches related to ppc32/ > fsl. If there are patches people want to make sure get into 2.6.23 > let me know. > Jon Loeliger (1): >[POWERPC] Replace use of GET_64BIT(prop, i) with of_read_number(

Re: [PATCH 2/2] eHEA: Receive SKB Aggregation, generic LRO helper functions

2007-07-05 Thread Evgeniy Polyakov
On Thu, Jul 05, 2007 at 04:24:46PM +0200, Jan-Bernd Themann ([EMAIL PROTECTED]) wrote: > > I've couple of comments on the driver, but mainly the fact of decreased > > CPU usage itself - what was the magnitude of the win with this driver, > > it looks like because of per-packet receive code path in

[PATCH v3] pcmcia: CompactFlash driver for PA Semi Electra boards

2007-07-05 Thread Olof Johansson
Driver for the CompactFlash slot on the PA Semi Electra eval board. It's a simple device sitting on localbus, with interrupts and detect/voltage control over GPIO. The driver is implemented as an of_platform driver, and adds localbus as a bus being probed by the of_platform framework. Signed-off

[PATCH] [2.6.23] pasemi: rename platform

2007-07-05 Thread Olof Johansson
Rename the pasemi platform to "pasemi" to be in line with the platforms directory name. Signed-off-by: Olof Johansson <[EMAIL PROTECTED]> Index: mainline/arch/powerpc/platforms/pasemi/setup.c === --- mainline.orig/arch/powerpc/platfo

Re: [PATCH v2] pcmcia: CompactFlash driver for PA Semi Electra boards

2007-07-05 Thread Olof Johansson
On Wed, Jun 27, 2007 at 06:20:38AM -0500, Milton Miller wrote: > If CONFIG_PCMCIA=m then your notifier is not registered. The modprobe > of your of_driver loads ds.ko, registers the bus, then registers your > driver. When the socket driver tries to dma, the BUG in dma_64 for no > archdata.dma

Re: [PATCH] pcmcia: CompactFlash driver for PA Semi Electra boards

2007-07-05 Thread Olof Johansson
On Wed, Jun 27, 2007 at 06:20:27AM -0500, Milton Miller wrote: > get_property is now a #define for of_get_property. I think the use of > get_property is being deprecated. Yeah, it's a pita. I've moved these over now. > If of_get_property fails to find the property, then you will > dereference

Re: [PATCH] pseries: don't die if unknown/missing interrupt controller property

2007-07-05 Thread Olof Johansson
On Sun, Jul 01, 2007 at 08:49:37PM -0400, Sonny Rao wrote: > The pseries platform does not have a default function for init_IRQ and > does not install one if it doesn't find or doesn't recognize an > interrupt controller in the device tree. Currently, the kernel dies > when it tries to call the NU

[PATCH] arch/powerpc/kernel/sysfs.c: move NUMA exports

2007-07-05 Thread Johannes Berg
With !CONFIG_NUMA, these are static inlines in the header file so don't generate exports for them then. Signed-off-by: Johannes Berg <[EMAIL PROTECTED]> --- arch/powerpc/kernel/sysfs.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- wireless-dev.orig/arch/powerpc/kernel/sysfs.

Re: powerpc stacktrace and lockdep support

2007-07-05 Thread Johannes Berg
On Sat, 2007-06-30 at 10:58 +0200, Christoph Hellwig wrote: > On Thu, Jun 28, 2007 at 06:20:42PM +0200, Johannes Berg wrote: > > This one doesn't break 32-bit build by simply disabling irqtrace for > > 32-bit. > > This looks really cool to me. I'd love to see this in 2.6.23. Hmm. Looks like I ju

[PATCH 2/2] eHEA: Receive SKB Aggregation

2007-07-05 Thread Jan-Bernd Themann
This patch enables the receive side processing to aggregate TCP packets within the HEA device driver. It analyses the packets already received after an interrupt arrived and forwards these as chains of SKBs for the same TCP connection with modified header field. We have seen a lower CPU load and im

[PATCH 1/2] eHEA: Capability flag for DLPAR support

2007-07-05 Thread Jan-Bernd Themann
This patch introduces a capability flag that is used by the DLPAR userspace tool to check which DLPAR features are supported by the eHEA driver. Missing goto has been included. Signed-off-by: Jan-Bernd Themann <[EMAIL PROTECTED]> --- drivers/net/ehea/ehea.h |8 +++- drivers/net/ehea