isci: use maxphys rather than 128KB to size s/g list
In the conversion into a tunable, we converted the size of the s/g list used by the driver to be based off of a hardcoded size of 128k rather than maxphys, this caused performance problems for us. Revert this to use the maxphys tunable. Note that this constant is used to size dynamically allocated things, and not static data structs, so this is safe. Reviewed By: imp, kib, mav Tested By:i dhw Differential Revision: https://reviews.freebsd.org/D28023 Sponsored by: Netflix
This commit is contained in:
parent
4d64c7243d
commit
a2fc8ade10
@ -157,7 +157,7 @@ extern "C" {
|
||||
* posted to hardware always contain pairs of elements (with second
|
||||
* element set to zeroes if not needed).
|
||||
*/
|
||||
#define __MAXPHYS_ELEMENTS ((128 * 1024 / PAGE_SIZE) + 1)
|
||||
#define __MAXPHYS_ELEMENTS ((maxphys / PAGE_SIZE) + 1)
|
||||
#define SCI_MAX_SCATTER_GATHER_ELEMENTS ((__MAXPHYS_ELEMENTS + 1) & ~0x1)
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user