From: Tomas Henzl <thenzl@redhat.com>
To: "Yang, Bo" <Bo.Yang@lsi.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>,
"'linux-scsi@vger.kernel.org'" <linux-scsi@vger.kernel.org>,
"'akpm@osdl.org'" <akpm@osdl.org>,
"'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>,
"Daftardar, Jayant" <Jayant.Daftardar@lsi.com>,
"Prabhakaran, Rajesh" <Rajesh.Prabhakaran@lsi.com>
Subject: Re: [PATCH 8/9] scsi: megaraid_sas - Driver take some workloads from FW
Date: Tue, 30 Nov 2010 16:57:38 +0100 [thread overview]
Message-ID: <4CF51EF2.1010606@redhat.com> (raw)
In-Reply-To: <4B6A08C587958942AA3002690DD4F8C30106B1DEB9@cosmail02.lsi.com>
On 11/24/2010 04:22 PM, Yang, Bo wrote:
> James,
>
> Our megaraid sas driver only implemented the part of the XOR calculation and copy capability(moving data between 2 buffers) for the RAID5 cmds which FW asks driver to do. When fw received very heavy I/Os and there are high pending cmds in FW, fw will ask the help from driver to finish some cmds and reduce the fw heavy load. Driver will only do part of the RAID5 (not take the jobs) from FW. Driver is not duplicating Parity calculation done on dm/md.
>
Do I understand it right - it means that the computation is done sometimes in the firmware and
sometimes in the driver depending on the load? I think it is not good having two complicated
computations on two different places. Wouldn't it better to compute it always in the driver?
Could we get a module option for choosing this computation - a)automatic, b)only in fw
c)only in driver?
Tomas
> Thanks,
>
> Bo Yang
>
>
>
> -----Original Message-----
> From: James Bottomley [mailto:James.Bottomley@HansenPartnership.com]
> Sent: Friday, November 19, 2010 12:53 PM
> To: Yang, Bo
> Cc: 'linux-scsi@vger.kernel.org'; 'akpm@osdl.org'; 'linux-kernel@vger.kernel.org'; Tomas Henzl
> Subject: Re: [PATCH 8/9] scsi: megaraid_sas - Driver take some workloads from FW
>
> On Fri, 2010-11-19 at 10:43 -0700, Yang, Bo wrote:
>
>> Driver added the new feature to take some of the workloads from FW to increase
>> performance of the iMR controller. FW assigns the read cmds back to driver
>> which will increase the performance for megaraid sas iMR controller.
>>
> Just on a process note: you don't have to cc me at every known
> address ... I do read linux-scsi ...
>
> My first take on this patch is that you're basically passing data back
> to the kernel for RAID-N parity calculations. This effectively makes
> your RAID one of those pseudo HW ones. In which case, why not simply
> abandon the HW raid piece and have it all done by DM/MD, which are well
> optimised for all types of RAID? The reason for asking is that we're
> trying to reduce the number of in-kernel raid implementations and this
> is going in the wrong direction.
>
> James
>
>
> N�����r��y���b�X��ǧv�^�){.n�+����{���"�{ay�\x1dʇڙ�,j\a��f���h���z�\x1e�w���\f���j:+v���w�j�m����\a����zZ+��ݢj"��!tml=
next prev parent reply other threads:[~2010-11-30 15:57 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-10 2:34 [PATCH 1/12] scsi: megaraid_sas - Online Controller Reset - I: Enable Online Controller Reset Bit in register related functions Yang, Bo
2010-06-18 21:18 ` Yinghai Lu
2010-06-18 21:21 ` Yang, Bo
2010-06-18 21:37 ` Yinghai Lu
2010-06-18 21:56 ` Yang, Bo
2010-06-20 14:54 ` James Bottomley
2010-06-20 15:01 ` James Bottomley
2010-06-20 19:27 ` Yang, Bo
2010-06-20 19:47 ` James Bottomley
2010-06-20 20:19 ` Yang, Bo
2010-06-20 20:48 ` James Bottomley
2010-06-21 15:35 ` Yang, Bo
2010-07-20 13:08 ` Yang, Bo
2010-07-30 18:53 ` Yang, Bo
2010-07-31 17:46 ` James Bottomley
2010-08-05 20:44 ` Yang, Bo
2010-08-06 0:36 ` James Bottomley
2010-08-12 15:20 ` Yang, Bo
2010-08-16 14:22 ` Yang, Bo
2010-08-16 15:06 ` James Bottomley
2010-08-05 19:47 ` Yang, Bo
2010-11-19 16:33 ` [PATCH 1/9] scsi: megaraid_sas - Change the time format during the driver online controller reset Yang, Bo
2010-11-19 16:53 ` [PATCH 2/9] scsi: megaraid_sas - Driver only report tape drive, JBOD and logic drives Yang, Bo
2010-11-19 17:03 ` [PATCH 3/9] scsi: megaraid_sas - Driver will scan device after receive event MR_EVT_LD_STATE_CHANGE Yang, Bo
2010-11-19 17:08 ` [PATCH 4/9] scsi: megaraid_sas - Driver provide the version to FW Yang, Bo
2010-11-19 17:23 ` [PATCH 5/9] scsi: megaraid_sas - report different io sectors for ieee support Yang, Bo
2010-11-19 17:29 ` [PATCH 6/9] scsi: megaraid_sas - Add the online reset to iMR chip Yang, Bo
2010-11-19 17:37 ` [PATCH 7/9] scsi: megaraid_sas - Driver created the self work queue for OCR Yang, Bo
2010-11-19 17:43 ` [PATCH 8/9] scsi: megaraid_sas - Driver take some workloads from FW Yang, Bo
2010-11-19 17:53 ` James Bottomley
2010-11-24 15:22 ` Yang, Bo
2010-11-30 15:57 ` Tomas Henzl [this message]
2010-11-30 16:11 ` [PATCH 7/9] scsi: megaraid_sas - Driver created the self work queue for OCR Tomas Henzl
2010-11-30 18:05 ` Yang, Bo
2010-12-01 12:19 ` Tomas Henzl
2010-12-01 15:55 ` Yang, Bo
2010-11-30 15:36 ` [PATCH 6/9] scsi: megaraid_sas - Add the online reset to iMR chip Tomas Henzl
2010-11-19 17:50 ` [PATCH 9/9] scsi: megaraid_sas - Documentation and driver version update Yang, Bo
2010-12-09 17:07 ` [PATCH 2/9] scsi: megaraid_sas - Driver only report tape drive, JBOD and logic drives James Bottomley
2010-11-30 15:21 ` [PATCH 1/9] scsi: megaraid_sas - Change the time format during the driver online controller reset Tomas Henzl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CF51EF2.1010606@redhat.com \
--to=thenzl@redhat.com \
--cc=Bo.Yang@lsi.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=Jayant.Daftardar@lsi.com \
--cc=Rajesh.Prabhakaran@lsi.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).