[PATCH] [POWERPC] pasemi: ioremap/iounmap balance and failure handling

2008-12-13 Thread Roel Kluin
map_onedev can return NULL, so catch that. Also iounmap if DMA controller can't be found. Signed-off-by: Roel Kluin --- UNTESTED! I am a bit new, so please confirm whether this is correct. especially: * can we iounmap while init_lock is held? * is it ok to add another BUG() here? diff --git

Re: [PATCH] [POWERPC] pasemi: ioremap/iounmap balance and failure handling

2008-12-13 Thread Roel Kluin
Roel Kluin wrote: > map_onedev can return NULL, so catch that. Also iounmap if DMA controller > can't be > found. I think there may also be a problem with pasemi_mac_init_module(): if pci_register_driver() fails, then iob_regs won't get iounmapped. maybe something like the totally untested patch

Re: [PATCH] check for GIQ indicator before calling set-indicator

2008-12-13 Thread Milton Miller
On Dec 11, 2008, at 1:14 PM, Nathan Lynch wrote: Since "Factor out cpu joining/unjoining the GIQ" (b4963255ad5a426f04a0bb15c4315fa4bb40cde9) the WARN_ON in xics_set_cpu_giq() is being triggered during boot on JS20 because the GIQ indicator is not available on that platform. While the warning is

Re: [PATCH] [POWERPC] pasemi: ioremap/iounmap balance and failure handling

2008-12-13 Thread Olof Johansson
On Sat, Dec 13, 2008 at 05:45:41PM +0100, Roel Kluin wrote: > map_onedev can return NULL, so catch that. Also iounmap if DMA controller > can't be > found. > > Signed-off-by: Roel Kluin > --- > UNTESTED! I am a bit new, so please confirm whether this is correct. > especially: > > * can we iou

Re: Re: How to support 3GB pci address?

2008-12-13 Thread Trent Piepho
On Sat, 13 Dec 2008, maillist.kernel wrote: > Thanks for all the suggestions and Comments! > In the system, the total memory size is less than 4GB. I want to know how > to map the 3GB pci address to the kernel , > and how can my driver access all the pci device. Usually we have only 1GB > kern

[PATCH][for 2.6.28] powerpc/fsl-booke: Fix problem with _tlbil_va being interrupted

2008-12-13 Thread Kumar Gala
An example calling sequence which we did see: copy_user_highpage -> kmap_atomic -> flush_tlb_page -> _tlbil_va We got interrupted after setting up the MAS registers before the tlbwe and the interrupt handler that caused the interrupt also did a kmap_atomic (ide code) and thus on returning from th

Please pull from 'merge' for 2.6.28

2008-12-13 Thread Kumar Gala
The following changes since commit ab44f4627e2160cddbddbe8aa8b1d2b2e1559790: Paul Mackerras (1): Merge branch 'merge' of master.kernel.org:/.../galak/powerpc into merge are available in the git repository at: master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc.git merge Kumar G

[PATCH] powerpc/85xx: Fix compile issues with mpc8572ds.dts

2008-12-13 Thread Kumar Gala
Fix the localbus reg & range properties to respect that the top level #address-cells and #size-cells = 2. The original commit (c64ef80b517680f1e228b2ee55e3ce7cd94c7fe0) did not do that. Signed-off-by: Kumar Gala --- arch/powerpc/boot/dts/mpc8572ds.dts | 16 1 files changed, 8

Re: [PATCH 1/9] powerpc: Fix bogus cache flushing on all 40x and BookE processors v2

2008-12-13 Thread Kumar Gala
On Dec 11, 2008, at 6:15 PM, Josh Boyer wrote: On Mon, 08 Dec 2008 16:39:52 +1100 Benjamin Herrenschmidt wrote: We were missing the CPU_FTR_NOEXECUTE bit in our cputable for all these processors. The result is that update_mmu_cache() would flush the cache for all pages mapped to userspace wh

Re: [PATCH][for 2.6.28] powerpc/fsl-booke: Fix problem with _tlbil_va being interrupted

2008-12-13 Thread Benjamin Herrenschmidt
On Sat, 2008-12-13 at 17:33 -0600, Kumar Gala wrote: > An example calling sequence which we did see: > > copy_user_highpage -> kmap_atomic -> flush_tlb_page -> _tlbil_va > > We got interrupted after setting up the MAS registers before the > tlbwe and the interrupt handler that caused the interrup

[RESEND] [PATCH] powerpc: remove dead BIO_VMERGE_BOUNDARY definition

2008-12-13 Thread FUJITA Tomonori
This is a resend of: http://marc.info/?l=linux-kernel&m=122482703616607&w=2 = From: FUJITA Tomonori Subject: [PATCH] powerpc: remove dead BIO_VMERGE_BOUNDARY definition The block layer dropped the virtual merge feature (b8b3e16cfe6435d961f6aaebcfd52a1ff2a988c5). BIO_VMERGE_BOUNDARY definition i