Skip to contentSkip to conversation

max_sectors_kb problem

DISCUSSION Matteo Tescione 2 participants 2 messages Mar 20, 2008

lore
Share & tools
lore
#0 lore raw

Hello Folks,

I'm running 2.6.24.3 kernel with the 3ware 9650se 8port in raid10 with 256K of stripesize.
The question is: why linux kernel (2.6.24 but it's the same in older kernels) see only 128K as it's max_sectors_kb ?
It's limited by max_hw_segments_kb which i think should be 256 with a 256 k stripe.
It seems hardcoded somewhere, altough in 3w-9xxx.c i can't find it. I'm running firmware FE9X 3.08.02.007 and driver version 2.26.02.010 Can someone help me?
Thanks in advance,
--
--
#Matteo Tescione
#RMnet srl

#1 lore raw
Quoted 11 lines · Matteo Tescione

Hello Folks,

I'm running 2.6.24.3 kernel with the 3ware 9650se 8port in raid10 with 256K of stripesize.
The question is: why linux kernel (2.6.24 but it's the same in older kernels) see only 128K as it's max_sectors_kb ?
It's limited by max_hw_segments_kb which i think should be 256 with a 256 k stripe.
It seems hardcoded somewhere, altough in 3w-9xxx.c i can't find it. I'm running firmware FE9X 3.08.02.007 and driver version 2.26.02.010 Can someone help me?

This is hardcoded in the 3w-9xxx driver to 128k. The controller firmware
is only guaranteed to work with that size. If you change it, you may incur data corruption, hangs, or both. Hacker beware.

-Adam