2008-03-20 00:55:50

by Matteo Tescione

[permalink] [raw]
Subject: max_sectors_kb problem

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


2008-03-20 22:45:17

by adam radford

[permalink] [raw]
Subject: Re: max_sectors_kb problem

On Wed, Mar 19, 2008 at 4:55 PM, Matteo Tescione <[email protected]> wrote:
> 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