[patch 3/6] dma: use the struct dma_attrs in iommu code

2008-05-25 Thread markn
Update iommu_alloc() to take the struct dma_attrs and pass them on to tce_build(). This change propagates down to the tce_build functions of all the platforms. Signed-off-by: Mark Nelson <[EMAIL PROTECTED]> --- arch/powerpc/kernel/iommu.c| 13 - arch/powerpc/platforms/ce

[patch 6/6] Add DMA_ATTR_STRONG_ORDERING dma attribute and use in Cell IOMMU code

2008-05-25 Thread markn
Introduce a new dma attriblue DMA_ATTR_STRONG_ORDERING to use strong ordering on DMA mappings in the Cell processor. Add the code to the Cell's IOMMU implementation to use this. The current Cell IOMMU implementation sets the IOPTE_SO_RW bits in all IOTPEs (for both the dynamic and fixed mappings)

[patch 5/6] Move device_to_mask() to dma-mapping.h

2008-05-25 Thread markn
Move device_to_mask() to dma-mapping.h because we need to use it from outside dma_64.c in a later patch. Signed-off-by: Mark Nelson <[EMAIL PROTECTED]> --- arch/powerpc/kernel/dma_64.c |9 - include/asm-powerpc/dma-mapping.h |9 + 2 files changed, 9 insertions(+), 9 d

[patch 4/6] Make cell_dma_dev_setup_iommu() return the iommu table

2008-05-25 Thread markn
Make cell_dma_dev_setup_iommu() return a pointer to the struct iommu_table (or NULL if no table can be found) rather than putting this pointer into dev->archdata.dma_data (let the caller do that), and rename this function to cell_get_iommu_table() to reflect this change. This will allow us to get

[patch 2/6] dma: implement new dma_*map*_attrs() interfaces

2008-05-25 Thread markn
Update powerpc to use the new dma_*map*_attrs() interfaces. In doing so update struct dma_mapping_ops to accept a struct dma_attrs and propagate these changes through to all users of the code (generic IOMMU and the 64bit DMA code, and the iseries and ps3 platform code). The old dma_*map_*() interf

[patch 0/6] Implement dma_*map*_attrs() and DMA_ATTR_STRONG_ORDERING, use on Cell

2008-05-25 Thread markn
-- This is a resend of the patchset sent out on 2008-05-01 titled "Implement dma_*map*_attrs() and DMA_ATTR_WEAK_ORDERING, use on Cell". The first five patches are the same, but patch #6 has been redone because on Cell the default should be to use weakly ordered mappings rather than strongly orde

[patch 1/6] Add struct iommu_table argument to iommu_map_sg()

2008-05-25 Thread markn
Make iommu_map_sg take a struct iommu_table. It did so before commit 740c3ce66700640a6e6136ff679b067e92125794 (iommu sg merging: ppc: make iommu respect the segment size limits). This stops the function looking in the archdata.dma_data for the iommu table because in the future it will be called wi

[PATCH 6/6] [POWERPC] Add DMA_ATTR_WEAK_ORDERING dma attribute and use in Cell IOMMU code

2008-04-30 Thread markn
Introduce a new dma attriblue DMA_ATTR_WEAK_ORDERING to use weak ordering on DMA mappings in the Cell processor. Add the code to the Cell's IOMMU implementation to use this code. Dynamic mappings can be weakly or strongly ordered on an individual basis but the fixed mapping has to be either comple

[PATCH 5/6] [POWERPC] Move device_to_mask() to dma-mapping.h

2008-04-30 Thread markn
Move device_to_mask() to dma-mapping.h because we need to use it from outside dma_64.c in a later patch. Signed-off-by: Mark Nelson <[EMAIL PROTECTED]> --- arch/powerpc/kernel/dma_64.c |9 - include/asm-powerpc/dma-mapping.h |9 + 2 files changed, 9 insertions(+), 9 d

[PATCH 4/6] [POWERPC] Make cell_dma_dev_setup_iommu() return the iommu table

2008-04-30 Thread markn
Make cell_dma_dev_setup_iommu() return a pointer to the struct iommu_table (or NULL if no table can be found) rather than putting this pointer into dev->archdata.dma_data (let the caller do that), and rename this function to cell_get_iommu_table() to reflect this change. This will allow us to get

[PATCH 3/6] [POWERPC] dma: use the struct dma_attrs in iommu code

2008-04-30 Thread markn
Update iommu_alloc() to take the struct dma_attrs and pass them on to tce_build(). This change propagates down to the tce_build functions of all the platforms. Signed-off-by: Mark Nelson <[EMAIL PROTECTED]> --- arch/powerpc/kernel/iommu.c| 13 - arch/powerpc/platforms/ce

[PATCH 2/6] [POWERPC] dma: implement new dma_*map*_attrs() interfaces

2008-04-30 Thread markn
Update powerpc to use the new dma_*map*_attrs() interfaces. In doing so update struct dma_mapping_ops to accept a struct dma_attrs and propagate these changes through to all users of the code (generic IOMMU and the 64bit DMA code, and the iseries and ps3 platform code). The old dma_*map_*() interf

[PATCH 1/6] [POWERPC] Add struct iommu_table argument to iommu_map_sg()

2008-04-30 Thread markn
Make iommu_map_sg take a struct iommu_table. It did so before commit 740c3ce66700640a6e6136ff679b067e92125794 (iommu sg merging: ppc: make iommu respect the segment size limits). This stops the function looking in the archdata.dma_data for the iommu table because in the future it will be called wi

[PATCH 0/6] [POWERPC] Implement dma_*map*_attrs() and DMA_ATTR_WEAK_ORDERING, use on Cell

2008-04-30 Thread markn
-- Hi Paul, Any chance of these patches getting into .26? They were held up waiting for the new dma_*map*_attrs() patches to go in (which made it in from -mm on the 29th)... Thanks! Mark. ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://o

[RFC] [PATCH 3/5] [POWERPC] Make cell_dma_dev_setup_iommu() return the iommu table

2008-04-30 Thread markn
Make cell_dma_dev_setup_iommu() return a pointer to the struct iommu_table (or NULL if no table can be found) rather than putting this pointer into dev->archdata.dma_data (let the caller do that), and rename this function to cell_get_iommu_table() to reflect this change. This will allow us to get

[RFC] [PATCH 5/5] [POWERPC] Add DMA_ATTR_WEAK_ORDERING dma attribute and use in Cell IOMMU code

2008-04-30 Thread markn
Introduce a new dma attriblue DMA_ATTR_WEAK_ORDERING to use weak ordering on DMA mappings in the Cell processor. Add the code to the Cell's IOMMU implementation to use this code. Dynamic mappings can be weakly or strongly ordered on an individual basis but the fixed mapping has to be either comple

[RFC] [PATCH 0/5] [POWERPC] Implement dma_*map*_attrs() and DMA_ATTR_WEAK_ORDERING and use on Cell

2008-04-30 Thread markn
-- Was Re: [PATCH] [POWERPC] Add struct iommu_table argument to iommu_map_sg() Here's the patch series that follows on from the patch: Add struct iommu_table argument to iommu_map_sg() Thanks! Mark. ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.or

[RFC] [PATCH 4/5] [POWERPC] Move device_to_mask() to dma-mapping.h

2008-04-30 Thread markn
Move device_to_mask() to dma-mapping.h because we need to use it from outside dma_64.c in a later patch. Signed-off-by: Mark Nelson <[EMAIL PROTECTED]> --- arch/powerpc/kernel/dma_64.c |9 - include/asm-powerpc/dma-mapping.h |9 + 2 files changed, 9 insertions(+), 9 d

[RFC] [PATCH 2/5] [POWERPC] dma: use the struct dma_attrs in iommu code

2008-04-30 Thread markn
Update iommu_alloc() to take the struct dma_attrs and pass them on to tce_build(). This change propagates down to the tce_build functions of all the platforms. Signed-off-by: Mark Nelson <[EMAIL PROTECTED]> --- arch/powerpc/kernel/iommu.c| 13 - arch/powerpc/platforms/ce

[RFC] [PATCH 1/5] [POWERPC] dma: implement new dma_*map*_attrs() interfaces

2008-04-30 Thread markn
Update powerpc to use the new dma_*map*_attrs() interfaces. In doing so update struct dma_mapping_ops to accept a struct dma_attrs and propagate these changes through to all users of the code (generic IOMMU and the 64bit DMA code, and the iseries and ps3 platform code). The old dma_*map_*() interf

[patch 2/2] add Altivec/VMX state to coredumps

2007-10-11 Thread markn
Update dump_task_altivec() (that has so far never been put to use) so that it dumps the Altivec/VMX registers (VR[0] - VR[31], VSCR and VRSAVE) in the same format as the ptrace get_vrregs() and add the appropriate glue typedef and #defines to make it work. A new note type of NT_PPC_VMX was chosen

[patch 1/2] Replace NT_PRXFPREG with ELF_CORE_XFPREG_TYPE #define

2007-10-11 Thread markn
Replace NT_PRXFPREG with ELF_CORE_XFPREG_TYPE in the coredump code which allows for more flexibility in the note type for the state of 'extended floating point' implementations in coredumps. New note types can now be added with an appropriate #define. #define ELF_CORE_XFPREG_TYPE to be NT_PRXFPREG

[patch 0/2] add Altivec/VMX state to coredumps

2007-10-11 Thread markn
-- Here's the new and improved patch to add Altivec/VMX state into the coredump. It's now two patches: * the first patch makes the note type of the state dumped by elf_core_copy_task_xfpregs() a #define and adds the appropriate #defines so that archs that support SSE still have their note typ