4/4 remove platform_pci_dma_address
PATCH 1/1 4/4 remove platform_pci_dma_address
Patch 4 removes platform_pci_dma_address. Since the scatterlist
in 2.5 has a dma_address, seems like we can expect a certain usage of it. SGI folks may want to verify this doesn't break their DMA engines. Thanks,
Alex
--
Alex Williamson HP Linux & Open Source Lab
arch/ia64/lib/swiotlb.c +0 -7
@@ -473,12 +473,6 @@sync_single (hwdev, (void *) sg->dma_address, sg->dma_length, direction); } -unsigned long -swiotlb_dma_address (struct scatterlist *sg) -{ -return sg->dma_address; -} -/* * Return whether the given PCI device DMA address mask can be supported properly. For * example, if your device can only drive the low 24-bits during PCI bus mastering, then
@@ -497,7 +491,6 @@EXPORT_SYMBOL (swiotlb_unmap_sg);EXPORT_SYMBOL (swiotlb_sync_single);EXPORT_SYMBOL (swiotlb_sync_sg); -EXPORT_SYMBOL (swiotlb_dma_address);EXPORT_SYMBOL (swiotlb_alloc_consistent);EXPORT_SYMBOL (swiotlb_free_consistent);EXPORT_SYMBOL (swiotlb_pci_dma_supported);
include/asm-ia64/machvec.h +0 -8
@@ -43,7 +43,6 @@typedef void ia64_mv_pci_unmap_sg (struct pci_dev *,struct scatterlist *,int ,int );typedef void ia64_mv_pci_dma_sync_single (struct pci_dev *,dma_addr_t ,size_t ,int );typedef void ia64_mv_pci_dma_sync_sg (struct pci_dev *,struct scatterlist *,int ,int ); -typedef unsigned long ia64_mv_pci_dma_address (struct scatterlist *);typedef int ia64_mv_pci_dma_supported (struct pci_dev *,u64 );/*
@@ -99,7 +98,6 @@# define platform_pci_unmap_sg ia64_mv.unmap_sg# define platform_pci_dma_sync_single ia64_mv.sync_single# define platform_pci_dma_sync_sg ia64_mv.sync_sg -# define platform_pci_dma_address ia64_mv.dma_address# define platform_pci_dma_supported ia64_mv.dma_supported# define platform_irq_desc ia64_mv.irq_desc# define platform_irq_to_vector ia64_mv.irq_to_vector
@@ -138,7 +136,6 @@ia64_mv_pci_unmap_sg *unmap_sg;ia64_mv_pci_dma_sync_single *sync_single;ia64_mv_pci_dma_sync_sg *sync_sg; -ia64_mv_pci_dma_address *dma_address;ia64_mv_pci_dma_supported *dma_supported;ia64_mv_irq_desc *irq_desc;ia64_mv_irq_to_vector *irq_to_vector;
@@ -173,7 +170,6 @@ platform_pci_unmap_sg, \ platform_pci_dma_sync_single, \ platform_pci_dma_sync_sg, \ - platform_pci_dma_address, \ platform_pci_dma_supported, \ platform_irq_desc, \ platform_irq_to_vector, \
@@ -206,7 +202,6 @@extern ia64_mv_pci_unmap_sg swiotlb_unmap_sg;extern ia64_mv_pci_dma_sync_single swiotlb_sync_single;extern ia64_mv_pci_dma_sync_sg swiotlb_sync_sg; -extern ia64_mv_pci_dma_address swiotlb_dma_address;extern ia64_mv_pci_dma_supported swiotlb_pci_dma_supported;/*
@@ -266,9 +261,6 @@#endif #ifndef platform_pci_dma_sync_sg# define platform_pci_dma_sync_sg swiotlb_sync_sg -#endif -#ifndef platform_pci_dma_address -# define platform_pci_dma_address swiotlb_dma_address#endif #ifndef platform_pci_dma_supported# define platform_pci_dma_supported swiotlb_pci_dma_supported
include/asm-ia64/machvec_hpzx1.h +0 -2
@@ -8,7 +8,6 @@extern ia64_mv_pci_unmap_single sba_unmap_single;extern ia64_mv_pci_map_sg sba_map_sg;extern ia64_mv_pci_unmap_sg sba_unmap_sg; -extern ia64_mv_pci_dma_address sba_dma_address;extern ia64_mv_pci_dma_supported sba_dma_supported;/*
@@ -29,7 +28,6 @@#define platform_pci_unmap_sg sba_unmap_sg#define platform_pci_dma_sync_single ((ia64_mv_pci_dma_sync_single *) machvec_noop)#define platform_pci_dma_sync_sg ((ia64_mv_pci_dma_sync_sg *) machvec_noop) -#define platform_pci_dma_address sba_dma_address#define platform_pci_dma_supported sba_dma_supported#endif /* _ASM_IA64_MACHVEC_HPZX1_h */
include/asm-ia64/machvec_sn1.h +0 -2
@@ -53,7 +53,6 @@extern ia64_mv_pci_unmap_sg sn1_pci_unmap_sg;extern ia64_mv_pci_dma_sync_single sn1_pci_dma_sync_single;extern ia64_mv_pci_dma_sync_sg sn1_pci_dma_sync_sg; -extern ia64_mv_pci_dma_address sn1_dma_address;/* * This stuff has dual use!
@@ -84,6 +83,5 @@#define platform_pci_unmap_sg sn1_pci_unmap_sg#define platform_pci_dma_sync_single sn1_pci_dma_sync_single#define platform_pci_dma_sync_sg sn1_pci_dma_sync_sg -#define platform_pci_dma_address sn1_dma_address#endif /* _ASM_IA64_MACHVEC_SN1_h */
include/asm-ia64/machvec_sn2.h +0 -2
@@ -56,7 +56,6 @@extern ia64_mv_pci_unmap_sg sn_pci_unmap_sg;extern ia64_mv_pci_dma_sync_single sn_pci_dma_sync_single;extern ia64_mv_pci_dma_sync_sg sn_pci_dma_sync_sg; -extern ia64_mv_pci_dma_address sn_dma_address;extern ia64_mv_pci_dma_supported sn_pci_dma_supported;/*
@@ -91,7 +90,6 @@#define platform_pci_unmap_sg sn_pci_unmap_sg#define platform_pci_dma_sync_single sn_pci_dma_sync_single#define platform_pci_dma_sync_sg sn_pci_dma_sync_sg -#define platform_pci_dma_address sn_dma_address#define platform_pci_dma_supported sn_pci_dma_supported#endif /* _ASM_IA64_MACHVEC_SN2_H */
This should be ok for us. Cc:'ing our I/O guru just in case.
Thanks,
Jesse
Quoted 143 lines · Alex Williamson
Patch 4 removes
platform_pci_dma_address. Since the scatterlist
in 2.5 has adma_address, seems like we can expect a certain usage of it. SGI folks may want to verify this doesn't break their DMA engines. Thanks,Alex
--
Alex Williamson HP Linux & Open Source Lab
diff -urNlinux-2.5.64/arch/ia64/lib/swiotlb.clinux-work/arch/ia64/lib/swiotlb.carch/ia64/lib/swiotlb.c +0
-7@@ -473,12 +473,6 @@sync_single (hwdev, (void *) sg->dma_address, sg->dma_length, direction); } -unsigned long -swiotlb_dma_address (struct scatterlist *sg) -{ -return sg->dma_address; -} -/* * Return whether the given PCI device DMA address mask can be supported properly. For * example, if your device can only drive the low 24-bits during PCI bus mastering, then @@ -497,7 +491,6 @@EXPORT_SYMBOL (swiotlb_unmap_sg);EXPORT_SYMBOL (swiotlb_sync_single);EXPORT_SYMBOL (swiotlb_sync_sg); -EXPORT_SYMBOL (swiotlb_dma_address);EXPORT_SYMBOL (swiotlb_alloc_consistent);EXPORT_SYMBOL (swiotlb_free_consistent);EXPORT_SYMBOL (swiotlb_pci_dma_supported);diff -urN
linux-2.5.64/include/asm-ia64/machvec.hlinux-work/include/asm-ia64/machvec.hinclude/asm-ia64/machvec.h +0
-8@@ -43,7 +43,6 @@typedef void ia64_mv_pci_unmap_sg (struct pci_dev *,struct scatterlist *,int ,int );typedef void ia64_mv_pci_dma_sync_single (struct pci_dev *,dma_addr_t ,size_t ,int );typedef void ia64_mv_pci_dma_sync_sg (struct pci_dev *,struct scatterlist *,int ,int ); -typedef unsigned long ia64_mv_pci_dma_address (struct scatterlist *);typedef int ia64_mv_pci_dma_supported (struct pci_dev *,u64 );/* @@ -99,7 +98,6 @@# define platform_pci_unmap_sg ia64_mv.unmap_sg# define platform_pci_dma_sync_single ia64_mv.sync_single# define platform_pci_dma_sync_sg ia64_mv.sync_sg -# define platform_pci_dma_address ia64_mv.dma_address# define platform_pci_dma_supported ia64_mv.dma_supported# define platform_irq_desc ia64_mv.irq_desc# define platform_irq_to_vector ia64_mv.irq_to_vector@@ -138,7 +136,6 @@ia64_mv_pci_unmap_sg *unmap_sg;ia64_mv_pci_dma_sync_single *sync_single;ia64_mv_pci_dma_sync_sg *sync_sg; -ia64_mv_pci_dma_address *dma_address;ia64_mv_pci_dma_supported *dma_supported;ia64_mv_irq_desc *irq_desc;ia64_mv_irq_to_vector *irq_to_vector;@@ -173,7 +170,6 @@ platform_pci_unmap_sg, \ platform_pci_dma_sync_single, \ platform_pci_dma_sync_sg, \ - platform_pci_dma_address, \ platform_pci_dma_supported, \ platform_irq_desc, \ platform_irq_to_vector, \@@ -206,7 +202,6 @@extern ia64_mv_pci_unmap_sg swiotlb_unmap_sg;extern ia64_mv_pci_dma_sync_single swiotlb_sync_single;extern ia64_mv_pci_dma_sync_sg swiotlb_sync_sg; -extern ia64_mv_pci_dma_address swiotlb_dma_address;extern ia64_mv_pci_dma_supported swiotlb_pci_dma_supported;/* @@ -266,9 +261,6 @@#endif #ifndef platform_pci_dma_sync_sg# define platform_pci_dma_sync_sg swiotlb_sync_sg -#endif -#ifndef platform_pci_dma_address -# define platform_pci_dma_address swiotlb_dma_address#endif #ifndef platform_pci_dma_supported# define platform_pci_dma_supported swiotlb_pci_dma_supporteddiff -urN
linux-2.5.64/include/asm-ia64/machvec_hpzx1.hlinux-work/include/asm-ia64/machvec_hpzx1.hinclude/asm-ia64/machvec_hpzx1.h +0
-2@@ -8,7 +8,6 @@extern ia64_mv_pci_unmap_single sba_unmap_single;extern ia64_mv_pci_map_sg sba_map_sg;extern ia64_mv_pci_unmap_sg sba_unmap_sg; -extern ia64_mv_pci_dma_address sba_dma_address;extern ia64_mv_pci_dma_supported sba_dma_supported;/* @@ -29,7 +28,6 @@#define platform_pci_unmap_sg sba_unmap_sg#define platform_pci_dma_sync_single ((ia64_mv_pci_dma_sync_single *) machvec_noop)#define platform_pci_dma_sync_sg ((ia64_mv_pci_dma_sync_sg *) machvec_noop) -#define platform_pci_dma_address sba_dma_address#define platform_pci_dma_supported sba_dma_supported#endif /* _ASM_IA64_MACHVEC_HPZX1_h */ diff -urN
linux-2.5.64/include/asm-ia64/machvec_sn1.hlinux-work/include/asm-ia64/machvec_sn1.hinclude/asm-ia64/machvec_sn1.h +0
-2@@ -53,7 +53,6 @@extern ia64_mv_pci_unmap_sg sn1_pci_unmap_sg;extern ia64_mv_pci_dma_sync_single sn1_pci_dma_sync_single;extern ia64_mv_pci_dma_sync_sg sn1_pci_dma_sync_sg; -extern ia64_mv_pci_dma_address sn1_dma_address;/* * This stuff has dual use! @@ -84,6 +83,5 @@#define platform_pci_unmap_sg sn1_pci_unmap_sg#define platform_pci_dma_sync_single sn1_pci_dma_sync_single#define platform_pci_dma_sync_sg sn1_pci_dma_sync_sg -#define platform_pci_dma_address sn1_dma_address#endif /* _ASM_IA64_MACHVEC_SN1_h */ diff -urN
linux-2.5.64/include/asm-ia64/machvec_sn2.hlinux-work/include/asm-ia64/machvec_sn2.hinclude/asm-ia64/machvec_sn2.h +0
-2@@ -56,7 +56,6 @@extern ia64_mv_pci_unmap_sg sn_pci_unmap_sg;extern ia64_mv_pci_dma_sync_single sn_pci_dma_sync_single;extern ia64_mv_pci_dma_sync_sg sn_pci_dma_sync_sg; -extern ia64_mv_pci_dma_address sn_dma_address;extern ia64_mv_pci_dma_supported sn_pci_dma_supported;/* @@ -91,7 +90,6 @@#define platform_pci_unmap_sg sn_pci_unmap_sg#define platform_pci_dma_sync_single sn_pci_dma_sync_single#define platform_pci_dma_sync_sg sn_pci_dma_sync_sg -#define platform_pci_dma_address sn_dma_address#define platform_pci_dma_supported sn_pci_dma_supported#endif /* _ASM_IA64_MACHVEC_SN2_H */