Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756002Ab0KSRnY (ORCPT ); Fri, 19 Nov 2010 12:43:24 -0500 Received: from na3sys009aog106.obsmtp.com ([74.125.149.77]:36204 "EHLO na3sys009aog106.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755658Ab0KSRnX (ORCPT ); Fri, 19 Nov 2010 12:43:23 -0500 From: "Yang, Bo" To: "Yang, Bo" , "'James.Bottomley@HansenPartnership.com'" , "'James.Bottomley@suse.de'" CC: "'linux-scsi@vger.kernel.org'" , "'akpm@osdl.org'" , "'linux-kernel@vger.kernel.org'" , Tomas Henzl Date: Fri, 19 Nov 2010 10:43:32 -0700 Subject: [PATCH 8/9] scsi: megaraid_sas - Driver take some workloads from FW Thread-Topic: [PATCH 8/9] scsi: megaraid_sas - Driver take some workloads from FW Thread-Index: AcsIRXwfwbieNXNUR6GBvdSy0cxVCQskSL/AFMvf1xAAAOfyYAAAMuKQAABVOuAAAICF8AAALm3AAAA2ZVAAAD1+QA== Message-ID: <4B6A08C587958942AA3002690DD4F8C30106A96223@cosmail02.lsi.com> References: <4B6A08C587958942AA3002690DD4F8C3D0804533@cosmail02.lsi.com> <4B6A08C587958942AA3002690DD4F8C3DBD67F68@cosmail02.lsi.com> <4B6A08C587958942AA3002690DD4F8C30106A961BD@cosmail02.lsi.com> <4B6A08C587958942AA3002690DD4F8C30106A961D6@cosmail02.lsi.com> <4B6A08C587958942AA3002690DD4F8C30106A961E4@cosmail02.lsi.com> <4B6A08C587958942AA3002690DD4F8C30106A961F2@cosmail02.lsi.com> <4B6A08C587958942AA3002690DD4F8C30106A96213@cosmail02.lsi.com> <4B6A08C587958942AA3002690DD4F8C30106A96218@cosmail02.lsi.com> <4B6A08C587958942AA3002690DD4F8C30106A9621E@cosmail02.lsi.com> In-Reply-To: <4B6A08C587958942AA3002690DD4F8C30106A9621E@cosmail02.lsi.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/mixed; boundary="_002_4B6A08C587958942AA3002690DD4F8C30106A96223cosmail02lsic_" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 54783 Lines: 727 --_002_4B6A08C587958942AA3002690DD4F8C30106A96223cosmail02lsic_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Driver added the new feature to take some of the workloads from FW to incre= ase performance of the iMR controller. FW assigns the read cmds back to driver which will increase the performance for megaraid sas iMR controller. Signed-off-by Bo Yang --- drivers/scsi/megaraid/megaraid_sas.c | 1299 +++++++++++++++++++++++++++++++= ++++ drivers/scsi/megaraid/megaraid_sas.h | 185 ++++ 2 files changed, 1484 insertions(+) --_002_4B6A08C587958942AA3002690DD4F8C30106A96223cosmail02lsic_ Content-Type: application/octet-stream; name="megasas-p8-cpx.patch" Content-Description: megasas-p8-cpx.patch Content-Disposition: attachment; filename="megasas-p8-cpx.patch"; size=39597; creation-date="Thu, 18 Nov 2010 20:37:02 GMT"; modification-date="Wed, 17 Nov 2010 13:09:12 GMT" Content-Transfer-Encoding: base64 ZGlmZiAtcnVwTiBvbGQvZHJpdmVycy9zY3NpL21lZ2FyYWlkL21lZ2FyYWlkX3Nhcy5jIG5ldy9k cml2ZXJzL3Njc2kvbWVnYXJhaWQvbWVnYXJhaWRfc2FzLmMKLS0tIG9sZC9kcml2ZXJzL3Njc2kv bWVnYXJhaWQvbWVnYXJhaWRfc2FzLmMJMjAxMC0xMS0xNyAxNDowODoxMy4wMDAwMDAwMDAgLTA1 MDAKKysrIG5ldy9kcml2ZXJzL3Njc2kvbWVnYXJhaWQvbWVnYXJhaWRfc2FzLmMJMjAxMC0xMS0x NyAxNDowODo0Ni4wMDAwMDAwMDAgLTA1MDAKQEAgLTc1LDYgKzc1LDEyIEBAIHN0YXRpYyBpbnQg bWVnYXNhc19nZXRfcGRfbGl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N2ZCAgICA6ICA0OworfSBfX2F0dHJp YnV0ZV9fICgocGFja2VkKSk7CisKKy8qCisqIHhvciBkZXNjcmlwdG9yIGRhdGEKKyovCitzdHJ1 Y3QgbXJfY3B4X3hvcl9kZXNjcmlwdG9yIHsKKwlzdHJ1Y3QgbXJfY3B4X2hlYWRlciAgICAgIGhk cjsKKwllbnVtIE1SX0NQWF9YT1JfT1AgICAgICBvcDsKKwl1MzIgICAgICAgICAgICAgc2l6ZTsK Kwl1MzIgICAgICAgICAgICAgYnVmZl92YWxpZF9iaXRtYXA7CisJdTggICAgICAgICAgICAgIHBf aWR4OworCXU4ICAgICAgICAgICAgICBxX2lkeDsKKwl1OCAgICAgICAgICAgICAgcGFkWzJdOwor CXUzMiAgICAgICAgICAgICBidWZmX2xpc3RbTUFYX01SX1JPV19TSVpFXTsKKwl1MzIgICAgICAg ICAgICAgbXVsdF9saXN0W01BWF9NUl9ST1dfU0laRV07Cit9IF9fYXR0cmlidXRlX18gKChwYWNr ZWQpKTsKKworCisvKgorKiBjb3B5IGJ1ZmZlciBmb3IgZWFjaCB0cmFuc2Zlci4gZWFjaCBzdWNo IHRyYW5mZXIgYmV0d2VlbgorKiB1c2VyIHNwYXJlIGhvc3QgYWRkcmVzcyBhbmQgZmlybXdhcmUg YWxsb2NhdGVkIGNhY2hlIGRhdGEuCisqLworc3RydWN0IG1yX2NweF9jb3B5X21yX2J1ZmZlciB7 CisJdTMyICAgICBidWY7CisJdTMyICAgICBzaXplOworfSBfX2F0dHJpYnV0ZV9fICgocGFja2Vk KSk7CisKKy8qCisqIGNvcHkgZGVzY3JpcHRvciBkYXRhCisqLworc3RydWN0IG1yX2NweF9jb3B5 X2Rlc2NyaXB0b3IgeworCXN0cnVjdCBtcl9jcHhfaGVhZGVyICAgICAgICAgICAgICBoZHI7CisJ dTMyICAgICAgICAgICAgICAgICAgICAgbWZpX2NtZF9jeHQ7CisJdTMyICAgICAgICAgICAgICAg ICAgICAgdG90YWxfYnl0ZV9jb3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XUzMiBjcHhfc3VwcG9ydGVkOworCXN0cnVjdCBtcl9j cHhfcmVxdWVzdF9xdWV1ZSAqY3B4X3JlcXVlc3RfcXVldWU7CisJZG1hX2FkZHJfdCBjcHhfcmVx dWVzdF9xdWV1ZV9oOworCXVuaW9uIG1yX2NweF9kZXNjcmlwdG9yICpjcHhfZHNjcnB0cjsKKwl1 MzIgY3B4X2RzY3JwdHJfY250OworCXU2NCBob3N0X21lbV9waHlzOworCXUzMiBob3N0X21lbV9s ZW47CisJdTggKmhvc3RfbWVtX3ZpcnQ7CiB9OwogCiBlbnVtIHsK --_002_4B6A08C587958942AA3002690DD4F8C30106A96223cosmail02lsic_-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/