mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
nvme: change the segment size of io request queue for nvme on k1
Because the swiotlb buffer size is 512k, for nvme ssd devices, the maximum length of a single dma sg in the io request queue can only be 512k. Change-Id: I7b02572742dd5b9ff26de6e469dce71c20741aae
This commit is contained in:
parent
f53cb9c8ba
commit
659ee35a43
1 changed files with 3 additions and 0 deletions
|
@ -1912,6 +1912,9 @@ static void nvme_update_disk_info(struct gendisk *disk,
|
|||
* value of the Atomic Write Unit Power Fail parameter.
|
||||
*/
|
||||
blk_queue_physical_block_size(disk->queue, min(phys_bs, atomic_bs));
|
||||
#if defined(CONFIG_SOC_SPACEMIT_K1X)
|
||||
blk_queue_max_segment_size(disk->queue, 0x80000);
|
||||
#endif
|
||||
blk_queue_io_min(disk->queue, phys_bs);
|
||||
blk_queue_io_opt(disk->queue, io_opt);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue