mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 21:33:00 +00:00
dma-mapping updates for Linux 6.3
- remove a not very useful and now unused swiotlb API (Christoph Hellwig) - fix a section mismatch (Randy Dunlap) -----BEGIN PGP SIGNATURE----- iQI/BAABCgApFiEEgdbnc3r/njty3Iq9D55TZVIEUYMFAmP8s3ULHGhjaEBsc3Qu ZGUACgkQD55TZVIEUYPn2g//aav2IilhbvcmeGYxPZ7bOi/28u/v52e5DcshW7ym FAFX1ICFxn2M6TfY2xyOYTP1Dyn/KWEmD2L8OkZwPvIyqcUsku3FPk8b8fmLoRTa ns+EPJA1QDcKkNLq1a/8B6Cv/Bwy2ov/4PWixYkG7EGLMSxpnQ4EvLpb8edx83yN dAXeMUYZxPfRRM/Lkqwj+tok7ESMVO7dl4gEQ3zZJhpV4VL2Hkh7j1GVwxOv+I77 u4yJFBKyjV0zVYSBqihXV8AtIURY1Thl1gNlSWn9bsOSh/o0FbRiC8UgzGYvYUEf ovdXGlRwaXLksgbm8QtCvGdo8HPQLmQWJRa1FD+PPab4KEuXcc1HzxCCU5q5Wblp BOImQMLv9ba8MAnZEep5/sKVoBMmf8Ver4KiR1C6l2HOZHwIz11/UQBRb0Dt03MS DobbfTL5Hlnxb8vSAzeG0n3mipyIUYyT72PnSLxrRQiRp27Jis+/hagQqqp4tlUw 1Rms2vRWRQmWdC2XvgCX9A6harxwTEOM5u0R4B5YgWl/KjJMyoMCLQ6rFwLcS6Sp +3M/IdbPKnAszr7b/DLhVklri2+vhDvSZvc1XPLht5Q8XFQ8Sjb3aOxODvC0RdHL Gew0NuFv4vi7ug8V6GuAw1Tk8zHx8QsKFIa0OAIEIXfIbEODjBoMQ9LshI+uGG2k 5UA= =LRx6 -----END PGP SIGNATURE----- Merge tag 'dma-mapping-6.3-2022-02-27' of git://git.infradead.org/users/hch/dma-mapping Pull dma-mapping updates from Christoph Hellwig: - remove a not very useful and now unused swiotlb API (Christoph Hellwig) - fix a section mismatch (Randy Dunlap) * tag 'dma-mapping-6.3-2022-02-27' of git://git.infradead.org/users/hch/dma-mapping: swiotlb: mark swiotlb_memblock_alloc() as __init swiotlb: remove swiotlb_max_segment
This commit is contained in:
commit
6ffb575beb
@ -121,7 +121,6 @@ static inline bool is_swiotlb_force_bounce(struct device *dev)
|
||||
|
||||
void swiotlb_init(bool addressing_limited, unsigned int flags);
|
||||
void __init swiotlb_exit(void);
|
||||
unsigned int swiotlb_max_segment(void);
|
||||
size_t swiotlb_max_mapping_size(struct device *dev);
|
||||
bool is_swiotlb_active(struct device *dev);
|
||||
void __init swiotlb_adjust_size(unsigned long size);
|
||||
@ -140,10 +139,6 @@ static inline bool is_swiotlb_force_bounce(struct device *dev)
|
||||
static inline void swiotlb_exit(void)
|
||||
{
|
||||
}
|
||||
static inline unsigned int swiotlb_max_segment(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static inline size_t swiotlb_max_mapping_size(struct device *dev)
|
||||
{
|
||||
return SIZE_MAX;
|
||||
|
@ -156,14 +156,6 @@ setup_io_tlb_npages(char *str)
|
||||
}
|
||||
early_param("swiotlb", setup_io_tlb_npages);
|
||||
|
||||
unsigned int swiotlb_max_segment(void)
|
||||
{
|
||||
if (!io_tlb_default_mem.nslabs)
|
||||
return 0;
|
||||
return rounddown(io_tlb_default_mem.nslabs << IO_TLB_SHIFT, PAGE_SIZE);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(swiotlb_max_segment);
|
||||
|
||||
unsigned long swiotlb_size_or_default(void)
|
||||
{
|
||||
return default_nslabs << IO_TLB_SHIFT;
|
||||
@ -300,7 +292,8 @@ static void swiotlb_init_io_tlb_mem(struct io_tlb_mem *mem, phys_addr_t start,
|
||||
return;
|
||||
}
|
||||
|
||||
static void *swiotlb_memblock_alloc(unsigned long nslabs, unsigned int flags,
|
||||
static void __init *swiotlb_memblock_alloc(unsigned long nslabs,
|
||||
unsigned int flags,
|
||||
int (*remap)(void *tlb, unsigned long nslabs))
|
||||
{
|
||||
size_t bytes = PAGE_ALIGN(nslabs << IO_TLB_SHIFT);
|
||||
|
Loading…
Reference in New Issue
Block a user