On Tue, Dec 11, 2018 at 10:02:38AM +0800, Ming Lei wrote: > Just one concern, max segment size is often related with one specific > controller's DMA capability. > > Is it possible that HBAs have different segment size, but all are driven > by same driver(shared scsi_host_template)? It is support just like most other attributes - by having one variable in the host template and one in the host, allowing the driver to override the per-host one between scsi_host_alloc and scsi_add_host.