Message ID | 20170519083321.18030-4-manish.rangankar@cavium.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D14036020B for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 19 May 2017 08:33:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE82C2878B for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 19 May 2017 08:33:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A2FA9288A7; Fri, 19 May 2017 08:33:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0DCF32878B for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 19 May 2017 08:33:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752475AbdESIdg (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Fri, 19 May 2017 04:33:36 -0400 Received: from mail-by2nam03on0084.outbound.protection.outlook.com ([104.47.42.84]:15076 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751329AbdESIde (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Fri, 19 May 2017 04:33:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=n6/bpW4Oy8X7dDQxMgZA1c54JWQkJTmyoTBYuN4TAsE=; b=PZ57WGwM0Pf+BtDqrb3z9p1mIAnpGUI1ZmF65Lvnq6KNlQub76tSREE873Qum/4wOrm8G7UG9o2aJHS5tjmvReLpjFb6tMRSD0/hJLFoVeXvTNmuQRPlxR7MtsMjZJXAOuuwAvZwsjvnxTWhDgKpLuCYUmTTwrEsDc3cx0fP3Kk= Received: from CO2PR07CA0047.namprd07.prod.outlook.com (10.174.192.15) by BN3PR0701MB1574.namprd07.prod.outlook.com (10.163.38.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Fri, 19 May 2017 08:33:27 +0000 Received: from BN1AFFO11FD018.protection.gbl (2a01:111:f400:7c10::110) by CO2PR07CA0047.outlook.office365.com (2603:10b6:100::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14 via Frontend Transport; Fri, 19 May 2017 08:33:27 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=cavium.com; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BN1AFFO11FD018.mail.protection.outlook.com (10.58.52.78) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1075.5 via Frontend Transport; Fri, 19 May 2017 08:33:26 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Fri, 19 May 2017 01:33:22 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id v4J8XMOi018077; Fri, 19 May 2017 01:33:22 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v4J8XMDg018076; Fri, 19 May 2017 01:33:22 -0700 From: Manish Rangankar <manish.rangankar@cavium.com> To: <martin.petersen@oracle.com>, <lduncan@suse.com>, <cleech@redhat.com> CC: <linux-scsi@vger.kernel.org>, <QLogic-Storage-Upstream@cavium.com> Subject: [PATCH 3/7] qedi: Set dma_boundary to 0xfff. Date: Fri, 19 May 2017 01:33:17 -0700 Message-ID: <20170519083321.18030-4-manish.rangankar@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170519083321.18030-1-manish.rangankar@cavium.com> References: <20170519083321.18030-1-manish.rangankar@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39450400003)(39400400002)(39410400002)(39840400002)(39850400002)(2980300002)(428002)(9170700003)(50986999)(2906002)(5003940100001)(48376002)(76176999)(42186005)(1076002)(8676002)(80596001)(81166006)(50466002)(50226002)(54906002)(356003)(6666003)(2950100002)(5660300001)(36756003)(86362001)(105586002)(4326008)(33646002)(87636003)(106466001)(72206003)(478600001)(2201001)(107886003)(305945005)(101416001)(38730400002)(8936002)(189998001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1574; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD018; 1:engM2otosVvGgMnsrSvlRhiJaLqZOmgW92AGDZ3LE2prv2V/rpw3GjH+JgnLQz1qNLMkWSPmBQfyiec0P/TFfHuLvFA1TAvs+o+sYdDMrU5aPVmd0ka1cilra0WlDwVrpu9QNhux62OY7UZ1sObRXXbjwJ2/8dFQ11l/VGH1mkiMJMxwLZbjYaHbi19pjRU1Pa/YBJ5l4J+01GgCrJv+7FhombjqMmTtirOFjLi90kxR0FRfRLm1ggkJRySRk6tvIGS4Y0fxt3ODCz8hVRxHW4Q9TMs3uOosVen1PYCev9ydB4fjVhMWn+p20PsLZeuXJZFKNSWgUNiIO+O70s3GDo/f5jO8k8mvMN9i3BYiz79nRZimE5Zd109JHIA0mTO8tXVFxwtVBWU7cfvWpee32e2YWpjEESEUW5hjjrJO6e3fNY5wZC7vSFgZSCEkMnpeNK1kbRg/K9dYLe/xtHmc8b++4qgX5syi+BjdEgkvp/KFijc7jQU50DuJJnR2CFgVvpPKn9GOCgR1QzDHEAcFQOjqss/h11i/tNsNQYrISqc= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PR0701MB1574: X-MS-Office365-Filtering-Correlation-Id: ab827c4a-d2af-4ba8-eeb2-08d49e91b877 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BN3PR0701MB1574; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1574; 3:2DtKmJoLRejwW00rap8LSmmTs0bYGkvK6w4Sy1M9SL4VReDbZdRKw/I/rrXKYtMSqy1clKWLc/r44eknSjChpT33YmZHD88Y+XI1c/o+oZHhzta6kOntoW8OPQsjo1SC7aRzKUI2EP8tlN5KcJTfJJp2URWCUPlQl0BqQp1AF3wzNTcrxzbvjqYag9tn4ifdvusynnv+yLbdsmr2dNRFbdKEe7NJz14eib4b0oCJvGIMJFAZOYYFT7FEpGnB7VBvg9kCFtsqmSt4NtjC5BcRyYdoZl7KbQlbAED/YoszPnIcu+FlggOIv07kI4e6YPbF4MUpW4LRaiQEeiHeJS1LXtydVMgz8iFrOIlXABuk/mde8zwhrclyCVgUoIbnpSPHvMcwjPTHEzC0URh5EYdvHJby96XV4S3GV5tuHHq8kyHFYztuW5pcC/+GmQtRAz9AMKzpx2rZ0nMCdr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D0tzAooETT8r9yqwxwW2YjdypWcxRxC554sSwDjETxbw++GDZYYhO3Iz9EUrCtgNk6P8FraiTmDlZ+MI291dHYjN7Yzu/yV1UJrTbFUZoicq+3NJoHxxhnWMmDUkttp3NbQa+aeuLvnPqI/3PPlAD/C+3UDxzI6LV85155dd/+9ZwuFV7ci9GITTvGWmKguNqTg47ll3bZji6aNO6sQd6TQTqj8+w3IMz9b05RI6YB7mdOnBBryDqxsu1J8XWivnPThWa6dD/6xRDbr8UP7v4dVD3EuidbrY/gMppEvvWxH/bZz9W6s2RFQ7oobRjjhuklfpUskKWOK5KWZ/LS X-Microsoft-Antispam-PRVS: <BN3PR0701MB157492A7D16D338FCB94F564E3E50@BN3PR0701MB1574.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(13017025)(13024025)(13015025)(13018025)(13023025)(8121501046)(93006095)(93001095)(3002001)(10201501046)(6041248)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123560025)(20161123564025)(6072148); SRVR:BN3PR0701MB1574; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1574; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1574; 4:EJh2C3EbsGnfrgcTRvjB4eBEeKFbYFlQpXOr1CzE95cbWb1kGlYmMPizyNnOXd2lkZ+4n7lg4yZw3ojOh8/jNdLUyTNxMd4x69dIZbcWJmgZYARBEKH2C3o5cgNYziHCWlUJyk4nbvdo1zZQhF86DOneXAwPSFzvbCFMnyn1Pu0o5uEAAZNLushHFos0CTyID1h4/bGIjNE18Bqu9xLqpzm3sLQua5tpO2tE+8aqNM9iQo4J2QzuGaP87BTMgGCjWQnDtST+UJmALiaUn5c+y5HKApB/N4V/238Jc1Axw7PRChS8JPYvV3Ia/Wo1JhgdKb3FY47eqe3Fduiq3e82kFdCEPL/SRFpH591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U6MYlFO9Poz2YwIFrECYO6fLk?= =?us-ascii?Q?7tNiNYKUcD2h+khwlIjF1OuIF7X+QCrxvs4huDOAnhv1CQsxIcz3fateai2L?= =?us-ascii?Q?h31Xfo1t05qO6jrcVT4zPoxX8iw+C9Sn98msvI3VutGhMdeBgYo4PXtDFwp2?= =?us-ascii?Q?YiWo8TKeCsUnpov07g3QTMQkWuLR614RqZlZiuHeLecnnmn2MySIkqN4iGzY?= =?us-ascii?Q?l5PhoLmgAkwlKP5/v4YZeUZY4frVz5vYvuYXLZ0tmAhGjlk9bcewvxxBfhs1?= =?us-ascii?Q?+4brXSUhESXsuBT8WG5sMvq3Dj1tTzTE1XxZ5PQIduk6e917T2nohYnANuSp?= =?us-ascii?Q?BPue39Tqx2G6s8gPr+9syZGqLXSFz8GP5+Qw4zxMIfVURaHG/g3wmzOOnyRK?= =?us-ascii?Q?bfqqy5XSam7qM7A+chil8S8PwmJ/g0Jy5KULJ05Covy5bd0ReUZYJDyEDWiP?= =?us-ascii?Q?J2YcwW1IcL5rMXVSdP8PkMhQP5UkLaLBgJU5fzvXVZuBkFPzRXB6KI6uqdLp?= =?us-ascii?Q?OVJehhjcPKt11G1LxxTnVmZMn3AjKOtZXUz0teegbADHO3wZfXQjVz6IPD27?= =?us-ascii?Q?k8rRh7+7BbD9Icl3lb7U9iLueGi/aYY3yHv0EOFiL9jgpesu4AdmSuvq4fOl?= =?us-ascii?Q?8WXESyXIk3uj2qSCTn0NcnxK1OQ+ldTQtwrGxXT9XbXJwmRo3wv+goM04Dgp?= =?us-ascii?Q?D8yHontcGAR7tOftfKG56OfEHvfRY?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1574; 6:WBuFljeyX2nF3pvC97aujXP/23UwKciODva11dFCzMYf2ej9ul0rKar8jJD0YCtCEAqZRHG56qGke9/7W40FcDm/O95clVWwiLzdwqzgcvO3DY1S86aw9vxgf61ye61HS7FD2E84x2lb8STVrc1Fu935Hvl4k3rsrqdi0VWmGfVxyf6qdc1rX/jkvia9qZxsPdlp+1Hwi9jpA1kMyAqV1a9dbTVGJkDpRs3wx8uj6dWRoaIxaWO5CnouqfXfpgNgWBThIRfelwbX3bxRqCbURvi/5XzstuiqkqqrwHvALymIf/NJYgDD2HTDvC9GLAxSQaZaPx7l1zB4bZ8q+gu2bKkzP5IYf6/ddklMf2RExfb8R3obLas4fbfrvCo1BpmrkifgLWFaF+7DzxFXJ6U4D2gno0jp1byxffzda1MHnFXAHmvQdqsXyguPn908qkVnfLwfjUoFP21wuDFa+gwr9gKmbc39SX8yg9zmdr2n7G5gJFgViy9W+Pt058ZsVMOZghCKXttzlvBhO0W/1Ib+yQ==; 5:ICHp0UjWxFzQkh4LDQm25bpqTFUTNJnsBVFHc+Jej5Dm9Kso2BLdYzVaiLBAUsIa8oJKA1IvMXsTFJH3tCosG+aeJKADtjCiM12ccT0SK3/CCsf/X92BMRXVi+aI8OmZNZeA6LwqGDxNrTWxV5cnyw==; 24:AGlgTl1WGHwUz8Z+untZGro1ovvRdcydRvpcWUie7y0qAQfpsL+9eHj14oGn/4kWyRpzMetjX0hj60NR+gRr8+mALrqaXhQZHyFqimcfrgc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1574; 7:CWp2y0/QvrwHhoSv10YdsvjLFHEzoVD/N0q3w0GWVz49Mw+evTwNeukGVFBfJ4KB2TK0Yy+6eXe3Zm0ET43DwVCKTRq0EgjKv0OCwWGpmfg1GBDkhRe5r6mz4CLOdBs7xtH/0cR+KC6wnR4fYlHMneZF+/fVuQC4rYfLXwDItRRWzJpazXb+1IspZJ2aWyMmipjO/DblRWFcmzeV6s13C717JcN49aZK+gdVnG6ULC0KV6y7nOUManHBU7WzQ6B01F3r08k/ztBps90VIogSE09DMV5EsdhpuZcOgzHPrJnqtaxrYasyBVVExLdfI267FXvftjk96SCcWkDWVP/+7Q== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2017 08:33:26.4808 (UTC) X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194; Ip=[50.232.66.26]; Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1574 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/scsi/qedi/qedi.h b/drivers/scsi/qedi/qedi.h index 269dac6..32632c9 100644 --- a/drivers/scsi/qedi/qedi.h +++ b/drivers/scsi/qedi/qedi.h @@ -63,6 +63,7 @@ #define QEDI_PAGE_MASK (~((QEDI_PAGE_SIZE) - 1)) #define QEDI_PAGE_SIZE 4096 +#define QEDI_HW_DMA_BOUNDARY 0xfff #define QEDI_PATH_HANDLE 0xFE0000000UL struct qedi_uio_ctrl { diff --git a/drivers/scsi/qedi/qedi_iscsi.c b/drivers/scsi/qedi/qedi_iscsi.c index 3548d46..1917793 100644 --- a/drivers/scsi/qedi/qedi_iscsi.c +++ b/drivers/scsi/qedi/qedi_iscsi.c @@ -59,6 +59,7 @@ struct scsi_host_template qedi_host_template = { .this_id = -1, .sg_tablesize = QEDI_ISCSI_MAX_BDS_PER_CMD, .max_sectors = 0xffff, + .dma_boundary = QEDI_HW_DMA_BOUNDARY, .cmd_per_lun = 128, .use_clustering = ENABLE_CLUSTERING, .shost_attrs = qedi_shost_attrs,
Signed-off-by: Manish Rangankar <manish.rangankar@cavium.com> --- drivers/scsi/qedi/qedi.h | 1 + drivers/scsi/qedi/qedi_iscsi.c | 1 + 2 files changed, 2 insertions(+)