Remove isa_unchecked_dma and some more GFP_DMAs in the mid layer v2
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest20 of 21 patches 7 repliesIn review
20 of 21 patches are in this archive. The cover letter announces 21.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/21 | Add new sense_buffer_mask host template fieldDocumentation/ drivers/ drivers/ +1 more | +25 | 0 replies | |
| 2/21 | Remove unchecked_isa in BusLogicdrivers/ | +59 | 0 replies | |
| 3/21 | Remove unchecked_isa_dma in advansys.cdrivers/ | +166 | 4 replies | |
| 4/21 | Remove unchecked_isa_dma in gdthdrivers/ | +62 | 0 replies | |
| 5/21 | Remove unchecked_isa_dma in eata.cdrivers/ | +39 | 0 replies | |
| 6/21 | Remove unchecked_isa_dma in aha1542drivers/ | +30 | 0 replies | |
| 7/21 | Remove unchecked_isa_dma in aha152x/wd7000/sym53c416/u14-34f/NCR53c406adrivers/ drivers/ drivers/ +3 more | +124 | 0 replies | |
| 8/21 | Remove random noop unchecked_isa_dma usersdrivers/ drivers/ drivers/ +5 more | +0 | 0 replies | |
| 9/21 | Add blk_kmalloc/blk_alloc_pagesblock/ include/ | +25 | 0 replies | |
| 11/21 | Remove unchecked_isa_dma support for hostdatadrivers/ | +0 | 0 replies | |
| 12/21 | Remove unchecked_isa_dma checks in sg.cdrivers/ | +12 | 0 replies | |
| 13/21 | Use blk_kmalloc in scsi_scandrivers/ | +6 | 0 replies | |
| 14/21 | Don't disable direct_io for unchecked_isa_dma in st.cdrivers/ | +1 | 0 replies | |
| 15/21 | Remove automatic block layer bouncing for unchecked_isa_dmadrivers/ | +0 | 0 replies | |
| 16/21 | Convert sr driver over the blk_kmallocdrivers/ drivers/ drivers/ | +19 | 0 replies | |
| 17/21 | Remove unchecked_isa_dma from sysfsdrivers/ | +0 | 0 replies | |
| 18/21 | Switch to a single SCSI command pooldrivers/ | +24 | 0 replies | |
| 19/21 | Finally remove unchecked_isa_dma support for Cmndsdrivers/ | +1 | 0 replies | |
| 20/21 | Finally kill unchecked_isa_dmaDocumentation/ drivers/ include/ | +0 | 0 replies | |
| 21/21 | Convert DMA buffers in ch.c to allocate via the block layerdrivers/ | +7 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH] [0/21] Remove isa_unchecked_dma and some more GFP_DMAs in the mid layer v2
This is v2 of the patchkit. I believe I addressed all review feedback and did some more improvements. In particular the drivers all use dma_alloc_coherent now (but with NULL devices) and scsi scan etc. will not do any unnecessary bouncing. This is done by extending the block layer to export two new allocation functions for non bouncy memory. That is why you're in Cc, Jens.
Original description:
This patchkit fixes all existing drivers that used isa_unchecked_dma to not need that anymore. I have some upcoming infrastructure changes for DMA memory management and isa_unchecked_dma was in the way.
Enabling isa_unchecked_dma had several effects:
- All incoming scsi_cmnds were in GFP_DMA memory.
Only one driver relied on that actually (advansys), the others all accessed the scsi_cmnds only with the CPU.
- scsi hostdata is allocated with GFP_DMA
A lot of drivers relied on that. I converted them all to allocate hostdata in a separate buffer linked to rom the scsi host structure.
- Enabling block layer bouncing for all data. That's the most important one. I changed all drivers to do that directly instead of relying on the mid layer for it.
- sense_buffer is allocated with GFP_DMA. That was also commonly required and not easy to fix so I created a separate host template field that enables sense_buffer bouncing.
Also while I was it I removed also a lot of GFP_DMAs in the frontend drivers which are not needed anymore because the block layer does the bouncing for all data anyways.
The main problem of the patchkit is that is that I wasn't able to test the drivers because I don't have any of the hardware. All changes (except perhaps advansys) were relatively simple and straight forward so I don't expect many problems though.
If anybody has any of these ISA SCSI adapters and would be willing to test them with these patches that would be appreciated.
I suspect actually that some of the ISA drivers are actually already bitrotted independently of these changes. Hopefully they won't make anything worse though.
Patches against 2.6.25rc4
These are a lot of patches. I can set up a git tree if that makes merging easier. Please let me now if I should do that.
-Andi