From patchwork Wed May 10 16:39:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raghava Aditya Renukunta X-Patchwork-Id: 9719243 Return-Path: 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 2921760236 for ; Wed, 10 May 2017 06:24:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 19D61284D5 for ; Wed, 10 May 2017 06:24:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0E22728552; Wed, 10 May 2017 06:24:09 +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=-5.0 required=2.0 tests=BAYES_00, DATE_IN_FUTURE_06_12, 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 684D6284D5 for ; Wed, 10 May 2017 06:24:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751527AbdEJGYH (ORCPT ); Wed, 10 May 2017 02:24:07 -0400 Received: from mail-bl2nam02on0043.outbound.protection.outlook.com ([104.47.38.43]:46336 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751235AbdEJGYG (ORCPT ); Wed, 10 May 2017 02:24:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mscc365.onmicrosoft.com; s=selector1-microsemi-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Tk+LYozciKQU05FKNERpVSVw6NIHMm1CuWEOH3Nqi1U=; b=Lf+HMzfeeRqHZFTd1qq+bLs3rUYkN7HK/+xtVCQYsjTswLeDscajYWH/F/dwUIjFRT4HKPvbfq6YqwEN2mRlpbrl3No9yKKRCmGl8sSG82oSUzn8hJ9QA/UlCnEePLFfWy98wJj6SsiRqFxD3v64wWvuLnGMxEzc1EwGbYe+hO4= Received: from CY4PR02CA0035.namprd02.prod.outlook.com (10.175.57.149) by DM2PR0201MB0735.namprd02.prod.outlook.com (10.160.94.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.16; Wed, 10 May 2017 06:24:03 +0000 Received: from BN1BFFO11FD011.protection.gbl (2a01:111:f400:7c10::1:195) by CY4PR02CA0035.outlook.office365.com (2603:10b6:903:117::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11 via Frontend Transport; Wed, 10 May 2017 06:24:03 +0000 Authentication-Results: spf=neutral (sender IP is 208.19.100.21) smtp.mailfrom=microsemi.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=microsemi.com; Received-SPF: Neutral (protection.outlook.com: 208.19.100.21 is neither permitted nor denied by domain of microsemi.com) Received: from avsrvexchhts1.microsemi.net (208.19.100.21) by BN1BFFO11FD011.mail.protection.outlook.com (10.58.144.74) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1047.9 via Frontend Transport; Wed, 10 May 2017 06:24:03 +0000 Received: from localhost (10.181.72.13) by avsrvexchhts1.microsemi.net (10.100.34.105) with Microsoft SMTP Server (TLS) id 14.3.339.0; Tue, 9 May 2017 23:24:01 -0700 From: Raghava Aditya Renukunta To: , , CC: , , , Subject: [PATCH V2 01/19] aacraid: Remove __GFP_DMA for raw srb memory Date: Wed, 10 May 2017 09:39:35 -0700 Message-ID: <1494434393-17261-2-git-send-email-RaghavaAditya.Renukunta@microsemi.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494434393-17261-1-git-send-email-RaghavaAditya.Renukunta@microsemi.com> References: <1494434393-17261-1-git-send-email-RaghavaAditya.Renukunta@microsemi.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:208.19.100.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39850400002)(39410400002)(39450400003)(39400400002)(39860400002)(39840400002)(2980300002)(189002)(199003)(9170700003)(4326008)(47776003)(54906002)(50466002)(356003)(8676002)(81166006)(2906002)(478600001)(6666003)(8936002)(5660300001)(53936002)(104016004)(2950100002)(106466001)(36756003)(2201001)(105586002)(50986999)(86362001)(50226002)(189998001)(305945005)(76506005)(57986006)(77096006)(5003940100001)(76176999)(38730400002)(107886003)(72206003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0201MB0735; H:avsrvexchhts1.microsemi.net; FPR:; SPF:Neutral; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD011; 1:/9asSDhJHFpOEn+JCritnBvdrLh/DyLtfJhc5doOt5+4CqgifFUFg29Lbjsjnm9rD5qyY4Bm5HVsmTkq4g/uEN7Hv/m91A9FVPbixqWTufeHWqxdx8Ml8iueTAOCSasTbVLioYKmYUPRSYiU1jFWsiFczgSz9W1uvIiHDYWjdsb4zPM8KLle0p1sVuPR9bW0OY/7C3UIWP490ovlPDLrHoIlVuDBjW1J1ZM8/GjwIuA9pMIkG4uMk4IYuP2cs9j6plRmWWT/Js4iIzbGu1evdsKwS+7SC+ZPqypsMorDd8N3GN6acIFSUgHZHFlHhR0UDcSB3jGTLNO2eOLs58yTm8d9hWaaGwwQVIjcYN50qfHOv8eL1vWpq9anR6jYchjuqJrjuQ0PP++tWfAtnXgFHNGFwsLj3JAch7EzSyg/o/G4qG6oV5QMgQqJ4duqcB0FI0B8gQm7uNy7pUxH4Vext8XKGYeF0OiVtIF8l2ohvYIR/aAYnDwbfFKSq3dCl0Nndm7KvwlzwK8R4lyRid6YBKmaJgLI2ECuKoan4ljcwp/PfMWQ413vmiLMeuKp2olX1Pg3orQAcpGPjjn12dwINw== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 861d546d-99bb-4cf5-d56f-08d4976d275c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:DM2PR0201MB0735; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0735; 3:kqp5dnLZ3MWXEIjFEK4Cy8jY5C4zCLCLanWfgLSVLM5pPf3KGMEPFuyflTH7qIzzlBjZSa80R29M0rYTKaxlJGPre37s31JUgnRBz0/R+dqcypwjPgcAnO0Gb/6X5Cr+QTUIB39pIZy7VQtvVGU1UIYZ6nrk0YSt/Slurc+zCOPrsYobRWZtF6QEtmqXVIt/78o9w/IAlyC5kq0yo0fLQFvWpzSyL8bOzvmvsdEGb67nVJp4niIv0Lwf9RkFZ6ON3HSuB/tlImryph2z5v1QpKT2cLK/b9ux+zbYZVFUE/IFAla8kI+8X+2gNV9nwwlEhT6eNFwKGdGB/mSvRKS33nFhxKrP7eksNTxOILQt4iulTufPc/57SpdUZzRjWZMfisnXJiWLKuMwo4d8FQtycj+ZQsZrwV0VWG8KHbVVocO4KQxQaTTMYLrxrm8KdXaz0JPvAAuO5woCJDN9yoAHXNQIaLx1FmyA+pszKJ73p2imzIIzaq7eIu17V0qukoyb X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0735; 25:lQQDnczEggg8Y4418+PNCZOJk69rb9tZgjGHjtESU3nLdxokUg2dQy/cX9JL6x2XM5aI3OlATcoIhu+i7S5aqLYv4/sNQwNG70rKqbknClSEXIgcj+dDVbjeVsiFoS7Zjur2NX7oJ0CRQR1Ndz7PnTt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41kUzsXN9mmXX+3hAekh7LmpIDH5+oONMmzbJAZ04Q/TcGo8s7DLhGoeED6AB1h9PzriL6Yhux+/LlAe49DcP752y X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(72170198267865); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(13015025)(5005006)(13023025)(13024025)(13017025)(13018025)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041248)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(20161123555025)(6072148); SRVR:DM2PR0201MB0735; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0201MB0735; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0735; 4:96+Vk5FCxEUxlBc9lrmsAcdNrUyQf7BEF1q3vJKjby1nkv5oZ0lrWG58A3J4LkkfcTnnN+Hm28kN9a7HWj0/m+m5w1wbLy2Xu5/qJviDv8EDe3opg/vzXVuDh1lUJSc3eszSBVVeBewkyv/RHhuaebbmXlS8ptTNx07e+xRze6NkaAcMYOegD57xfT8v7UVmwU4rpfTPBW4/29vCNQiMXSiIPV89QKTN+9jvYVu0W2Bb61Z2J6nKMPPI2UeBVmcGTDgl30cBbhlI5PeJOM+CW2FIKrEAg+LEAeX13WsI2PkMoHPNDt8wifv0WYFT2HPqM90TdWrVPLXGG9FoWx9yovhqioZJgiJ1LBFzEWuJU+7+FnROQzRWg0guZotMez41/uNZvBvDPnADYhgFM0OKi01GNit1m8sddsto77wMiWEWSMy4DDio+Y4tU7AB8Xk0ht3cdOfUOBAq8+nJzu55roKIdvj8Jh7rV/c8q/yv1V82rxpO6TPPFIiavWJVU7U3ve79OycrdZBGhUyPvK1cDDyXhJH7TpmElt8k0EKjwnlQw3cnRpBBDvDv43DFum7KBNZZ/L9MEvHdw9mOzMS7gToTyejwBLm6Hu5SMzrh/eYlNjMjgHxi0Bz1rdasiAYF3IPjuiCB+2Fk4fSbIvfJmolh3t3OzbP4dm/BkQblPUNfuQzY+wCuUOHx/A9fstCam5vF/CJxWWFRLpJvI7Bfg+L2eP/i0OUA5Y5EcubEVWLPk9WC48aJlEYvEwsC4jrPKOUz/NbrAOSdwHrxIq/jxnJWhURQwZV/cZDrWHDwbidyKVrIjIvQW2zQOAAyqmTvzpzXaCH0ttoXRS/H52d9Bf7hgKndsX0jYurMWqPf8Qi2/AONfXB1ciQAQbp5PVf8J8vKJLSCboGh+aX2b1IHnEBp5gOQLi8+PwvX1qfX lo+wH2r1nzONB5DaiLa6G8iJ X-Forefront-PRVS: 03030B9493 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0201MB0735; 23:JEkAcZqELy4rOZNIEzbeqoM4fCVhhk5nG/UhMqh?= =?us-ascii?Q?YMMG5oS3UurPk7JW1EqB8Bp4YsLJbypCCPaUBNVGUL4/p+NMjV1DmeMNk1Wk?= =?us-ascii?Q?2EQ2PhonT8WP2xOoXa3H1ohDIGtolzDNVvMB53BPG1otw7HIX4htmEj/mlVE?= =?us-ascii?Q?LdykmeAT1cUbWNJa3O1moyIWnFofpBwsHvvJFP4+AWfpOic/vzKPROHIaROF?= =?us-ascii?Q?trrTfjRzcqZAknErGoOWodHAP8mqIXMAd/haHDCIrSqLdaRayXmFM8p4Opig?= =?us-ascii?Q?9gGPxW6RB7EBioKRNjDdIaB637WkOnRfyg9dXqiBajUEfWoRkqtyctCDhW8y?= =?us-ascii?Q?6XZ/PRM+suD26LyujuXeJx+voze1rGr2j7k2DIaR30vXP6tpWtakb8+MfNTR?= =?us-ascii?Q?vbPkXo5F+JTXn9ByQw66AKl8V1Ce7HG6NppZBsnWKr9sZyk2jZBD0oj5CIHY?= =?us-ascii?Q?18hVlbZlhzShdyN2tc20+gkh6aVxUgzfbnmAHYR4MlHQl0gdMDJrYjJ0POeU?= =?us-ascii?Q?fI0Yt5289FyA1MeGtCVdC6N0Buw5O9mDuGqcpqw7VNXeHjNoVfWq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eqh6YSu4H3i+cVOEA9FKSA8XBMs6Ioy+uZMxkGbEKiEgK0/Is2SHnf2KH3mlPJYRJMUoGrdoIRZKF07/Coa66xzb3TgImuMmMnZqP+abQC8q0TuSHUx1kLlQZbIrEWc1EoKWjyAlGqWcUhGBiK2X8uHMS/K/jrDbqa3KFYbNit56QiUX96TxUivEIM/rKxFo0gca0RLXcR1SHE=; 5:poavOiw6S3gIwBsNyatiyIkkBrNSGtJOAGEGeb8brafazQrgb+OligWYcekcgP/zirzficqLhHOUeimTX+TjG14rUsMhIWdQxhfh5pia37WH00lSHlWLY3esn5EQn6DCiyNtmxs80JC3S11Zll8rJA==; 24:BtgSiRnS1RrFGOAmZmFIPtYuu7gzDDdzRGxpTYdLGP4nKbLfX5gmMnqBbCNQ9ZsWm3GNEjL4HXu5mduY+8dRA3Oh/rfzTYUuc5Aqz8azVj8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0735; 7:er/x2cEeROHxrTrnDaOvZPZahwT2822QNpXE49+0Uh66knZ35zXlsME04HjhrhAhxxidaVYzfD5Ns71FuxRSeA9r/q4wJ31hqejBCeWCA3XIw5nnrpjffZcR5oDoK22NIkY/RqQsV5T9StOhUUAKpuERAdEEyXReutXAOTFKyz2ujkTqoTxA4o0VfwO6/WFQ3CQlr7CPt7W5yPl+Q9iNgp5RM7tDhSTKgDt1h101QurHJkd9u9zi6N976v1HywEO4QzBKRGEFviILY3dQC14WFIydKZirFPtCGWr+vxSXoP4cctzG0jQXV7YkoNiOJNvQzAq9CyUAniFmxvOp41Q/Q== X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2017 06:24:03.0431 (UTC) X-MS-Exchange-CrossTenant-Id: f267a5c8-86d8-4cc9-af71-1fd2c67c8fad X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f267a5c8-86d8-4cc9-af71-1fd2c67c8fad; Ip=[208.19.100.21]; Helo=[avsrvexchhts1.microsemi.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0201MB0735 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The raw srb commands do not requires memory that in the ZONE_DMA memory space. For 32bit srb commands use GFP_DMA32 to limit the memory to 32bit memory range (4GB). Signed-off-by: Raghava Aditya Renukunta Reviewed-by: Dave Carroll --- Changes in V2: Corrected flag name to GFP_DMA32 in patch description and corrected GFP_DMA to __GFP_DMA in patch heading Removed comment drivers/scsi/aacraid/commctrl.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/aacraid/commctrl.c b/drivers/scsi/aacraid/commctrl.c index d2f8d59..106b933 100644 --- a/drivers/scsi/aacraid/commctrl.c +++ b/drivers/scsi/aacraid/commctrl.c @@ -668,7 +668,7 @@ static int aac_send_raw_srb(struct aac_dev* dev, void __user * arg) goto cleanup; } - p = kmalloc(sg_count[i], GFP_KERNEL|__GFP_DMA); + p = kmalloc(sg_count[i], GFP_KERNEL); if (!p) { rcode = -ENOMEM; goto cleanup; @@ -732,8 +732,8 @@ static int aac_send_raw_srb(struct aac_dev* dev, void __user * arg) rcode = -EINVAL; goto cleanup; } - /* Does this really need to be GFP_DMA? */ - p = kmalloc(sg_count[i], GFP_KERNEL|__GFP_DMA); + + p = kmalloc(sg_count[i], GFP_KERNEL); if(!p) { dprintk((KERN_DEBUG"aacraid: Could not allocate SG buffer - size = %d buffer number %d of %d\n", sg_count[i], i, upsg->count)); @@ -788,8 +788,8 @@ static int aac_send_raw_srb(struct aac_dev* dev, void __user * arg) rcode = -EINVAL; goto cleanup; } - /* Does this really need to be GFP_DMA? */ - p = kmalloc(sg_count[i], GFP_KERNEL|__GFP_DMA); + + p = kmalloc(sg_count[i], GFP_KERNEL); if(!p) { dprintk((KERN_DEBUG "aacraid: Could not allocate SG buffer - size = %d buffer number %d of %d\n", sg_count[i], i, usg->count)); @@ -845,8 +845,7 @@ static int aac_send_raw_srb(struct aac_dev* dev, void __user * arg) rcode = -EINVAL; goto cleanup; } - /* Does this really need to be GFP_DMA? */ - p = kmalloc(sg_count[i], GFP_KERNEL|__GFP_DMA); + p = kmalloc(sg_count[i], GFP_KERNEL|GFP_DMA32); if (!p) { dprintk((KERN_DEBUG"aacraid: Could not allocate SG buffer - size = %d buffer number %d of %d\n", sg_count[i], i, usg->count)); @@ -887,7 +886,7 @@ static int aac_send_raw_srb(struct aac_dev* dev, void __user * arg) rcode = -EINVAL; goto cleanup; } - p = kmalloc(sg_count[i], GFP_KERNEL); + p = kmalloc(sg_count[i], GFP_KERNEL|GFP_DMA32); if (!p) { dprintk((KERN_DEBUG"aacraid: Could not allocate SG buffer - size = %d buffer number %d of %d\n", sg_count[i], i, upsg->count));