Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965170AbdGTN5B (ORCPT ); Thu, 20 Jul 2017 09:57:01 -0400 Received: from mail-co1nam03on0085.outbound.protection.outlook.com ([104.47.40.85]:15632 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S936357AbdGTN45 (ORCPT ); Thu, 20 Jul 2017 09:56:57 -0400 Authentication-Results: alpha.franken.de; dkim=none (message not signed) header.d=none;alpha.franken.de; dmarc=none action=none header.from=cavium.com; Date: Thu, 20 Jul 2017 09:56:32 -0400 (EDT) From: Chad Dupuis X-X-Sender: cdupuis@flash12.qlogic.org To: Thomas Bogendoerfer cc: QLogic-Storage-Upstream@cavium.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] scsi: qedf: Limit number of CQs In-Reply-To: <20170713165951.61190508094@solo.franken.de> Message-ID: References: <20170713165951.61190508094@solo.franken.de> User-Agent: Alpine 2.00 (OSX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Originating-IP: [4.15.251.130] X-ClientProxiedBy: DM5PR11CA0013.namprd11.prod.outlook.com (10.175.92.151) To DM5PR07MB2779.namprd07.prod.outlook.com (10.168.104.147) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c11ceac6-1ba6-4b14-b4ed-08d4cf772e8a X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:DM5PR07MB2779; X-Microsoft-Exchange-Diagnostics: 1;DM5PR07MB2779;3:80IQYK5HgAjxYKoKeFZGKWoF8oYddqjKcAlnl1flCD0RkNpvkH7uc+8/OMA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H6BuSvDTVSoPHVrhuzQtc3TWAwQ+u5saKzFoY5pIATqaNgJ412igEw70huPMKUMwuqccVhHnjcYAbJ7RdI55X+Vjh5uyIcHh+ROEhxVM1GaXL47ypYNja0UAYpWFDiSgnj6+FKsrXThYGw1FzUbFriTQVLUkH8Q1EGVYpwUxdLwNpMvqlCNdb1rOP2/fhVeFdXzEjGqCfOi4NoC2UaPtIFcIg99EOh4Kw7WEnjfdU/a7OzVV9Qxpim9C63JG0fRyWapdKM0fhLtg= X-Microsoft-Exchange-Diagnostics: 1;DM5PR07MB2779;20:pGsqghXTddUz7RpWBiZOKjbg4Qxv8xBCvYAUfM4sPTFSRzYlYdrpC60F/vFdGaua0mkV/eq4PZ9GcS2CaJ/9va5AdxDd2a4Ve+5Zlf0wFOOWXVLgGUOsVDryZt923DBmO2EoxZKHv8ZORbUYYSHR120G4jDA+xBiUjM8EtX0eUDB3Ouo7cTmBWxLRDiycCKuOLuf8aG4YeDBb3OxzF9TuCDvcAC+dUAtNIOgPK1bxGxv0ewaQ7DOCjw0HOrCAE7jOEssWWsmK65QYyYqGRRPudN711xPXGswbRvtz4KMZkWEaV5N8apr2t8LFpEWFK2KQXrePN4CcWibdEddIc35rW0TVirZxCNpneT8ckoMJ+Kxui2KcFLmRk6kYOvuzINreTc/5YH7p6cjBlGrItmgGbJhKQu4uLDgMFZqTwd5EQDkMVPDpg9HeG4t/FBKkhrAGheGR4Bhrb7UDAsIxNo+cCjQH2jKSPly9bg6pFlTEvhx848bPswmjM8GVDvwFjSp X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(167848164394848); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(2017060910075)(93006095)(93001095)(10201501046)(3002001)(100000703101)(100105400095)(6041248)(20161123564025)(20161123555025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM5PR07MB2779;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM5PR07MB2779; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM5PR07MB2779;4:wL1SHGg2xSEETo6yQnGqIt1iqsDpEO8w2rI9w/BadY?= =?us-ascii?Q?90kiUpjm3NPIlb3FCCH54Pnl9ZaM1TU8zaq+2vaUwzUbJRdjuhSeYh0ooS0r?= =?us-ascii?Q?Cqm4K1RctZNQtutKUZBkj1AJR3bxgizqn/OGYFzac+WN5C3Cj5GVkt+rfjdb?= =?us-ascii?Q?fXO/oU8ryhj7a535eHjP3QeUe6czk9D6foVNITYgIg12DwhMbWK0CMaL3NUm?= =?us-ascii?Q?33+wTWV+mPjf+KjxaKcUr9TjdW29KWDiMhc8pdsfj/go/f2LjXaW41NYkNPJ?= =?us-ascii?Q?Jm/UNZsfPEzYVtoTWguE1u1xHCfuqRYHUirlZSb3GBvUOkgklLzJPVRaf1gE?= =?us-ascii?Q?rdelTMM6MVajyAvpiy7v1YWByN5zCl3FPauYpaL/lQYTbomUV5FyK9dL6R5+?= =?us-ascii?Q?aVP5VdXgCxkOX5mM0ZWX8TKyuqp21oqrboOt415NnhRugAcQ8Zqcb3KDNhX3?= =?us-ascii?Q?bnOEROkAqDHv09g5Cmi6UraJmAHYOQzSf0N3IgxcbVPWCo9pvhRUdSWX5/94?= =?us-ascii?Q?/P3kWUTd1kVP4hDKD8z47DYpq9fw2sWIjlQdqf78XgppB/VjCj6+VmtkVzgG?= =?us-ascii?Q?fmz9VO1vy3yDJgk8ZrWHaPzt1DrJdDu16ZMvoQL9G/+/3+T2QEpyYv9fVzIb?= =?us-ascii?Q?VYHvYHMmnwj35+R3PGte8uTE9GVLwj45LNlkPOexHyoOX0/dcyudQG7D4EdN?= =?us-ascii?Q?AqMZOu/TVf7XsMsmqnqKxmwixMJFbY0Oub0/PuR/403FXb1C+uxgsE0lVpVU?= =?us-ascii?Q?HkMu4AHEYQtwU2aigqsFJdfqmtJjlgfqOLp8Mt+K6XyueUjIRXBXEeXk/Ayi?= =?us-ascii?Q?I4zDn+PhU/ZS3Mbi3oCoi1belJeDZ2QU4tHJ9bZTYyTCXNE/nnxVAnoJGjvl?= =?us-ascii?Q?K7XvLTIIlQSNXiNvxd4lxJK0gBRIJFVyQpzXyqUw5NaYlbXhouN8r8/ATLio?= =?us-ascii?Q?y0bjbEekyUcq4vDGEc5tWC1pobCUG5HMhylkD2wxt15oQmmZFNKFR0EeQ6mn?= =?us-ascii?Q?ZNzzQDScTz+v+bbrCocPyOrwp7p2Bumbf3d0GRBSsgwNg8FnQ3RklHQZ3ozI?= =?us-ascii?Q?NcXXiv+W6zvPVVoZxfs0dzVPVxpySN/y4gd870anqBYaJKxncYxAj3lfS0KC?= =?us-ascii?Q?EohdxFXR3DqBV8ncEm8GCiqUG0bIY0kLG5cF8JmNMeESFpc2UFpQPLMEzqbR?= =?us-ascii?Q?MrTYcIz0YIbD6vmaStLIa52s94OBcBdjecvhPOArrJLaY7Je+VJVqWjzYpsm?= =?us-ascii?Q?B9x0PpUmvt3i60ZEc=3D?= X-Forefront-PRVS: 0374433C81 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(7370300001)(6009001)(39840400002)(39860400002)(39850400002)(39400400002)(39410400002)(39450400003)(24454002)(6666003)(5660300001)(53416004)(42186005)(5005980100005)(54356999)(76176999)(47776003)(83506001)(8676002)(81166006)(189998001)(23726003)(50986999)(86362001)(6116002)(7350300001)(37156001)(3846002)(4001350100001)(72206003)(9686003)(478600001)(305945005)(6916009)(55016002)(4326008)(2906002)(53936002)(110136004)(7736002)(38730400002)(6246003)(2950100002)(229853002)(66066001)(6506006)(25786009);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR07MB2779;H:flash12.qlogic.org;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM5PR07MB2779;23:kxqBAoKduPYHPe0PYHsvKiTWZLAJT7i7JATlJWa8A?= =?us-ascii?Q?R/y5TJaD4SyiaLNLvWwi13Mg2qqdxqm+Xix8UXeh+C9+vHVGM3jMdZapbhzS?= =?us-ascii?Q?/hQO4g3YXp8v51mBuNVJV0tU9gHqwknFE5NMfrVTEKCwei4J8Lrv5IyV57Mx?= =?us-ascii?Q?EQLD1VXQlpGecECFOBagxvgYGkkNU3zw1hpqMeITd7kyAHlTmuo94A1CTUNL?= =?us-ascii?Q?AYhc7n58iLgrrP0H5yT0tAwq2pMhJsENVzIZQEB30gkOUR2KL3kfwJArbPTg?= =?us-ascii?Q?hgYd5XoFAjjhVs/3YbIXYoLyBuDXIa6pAy+lJz4bT36ll7rsR/I/hG+HnDgE?= =?us-ascii?Q?eg9nuAqCRYt+vExwCNTH0kH3n088VLOzrmhqVRPQHU2eU9saSTbFYwnhrcaT?= =?us-ascii?Q?sguPPmeznH2/4at/oCiduTuszqfSOCQbaW+n+6Y7twlRO6LCAb7J2LOuidvc?= =?us-ascii?Q?6+/e9i3dMC7rZrYJf2J/yp4aQInwqvJU+0UE3Rac411VOAZeFd2WDsWelCVK?= =?us-ascii?Q?PB4itnXRibRKho6hPV5SPmUlrj//txz/8LoPMOkZpB+eemjoG8Js+EkNApSA?= =?us-ascii?Q?TdxCjQwKfKj5vdRr6ry9y7ugNIge4gyk3DQjLZ2Z0OEbedfb5Ca8UTBsi/4T?= =?us-ascii?Q?AQbIzQNUoEVNDrQhQnMtMnw60JcoouvaO+rn3UbpLdmYZgaP1OMth+znJT6h?= =?us-ascii?Q?BwYY7Rb03Jhhm/gastE0K5xBdpPvt6H/ZzqolNXol4ums6U8J9JYB1uP1WNf?= =?us-ascii?Q?07ZXtpmUV0S0vWlk3eaPHqFpFyg+wTt9avt8a+PeGO+3t6oEMUwJr2x3HCvV?= =?us-ascii?Q?UX+kzMCP8+3zRsiaem2t8uPYIB1e6nEcLS1SwSiIhaTGpA9uLAUOs06u4Gnr?= =?us-ascii?Q?BnOrKHHFzJch9/XKTxsgVub48XOKmMd6ylMG2hHCjCKoM6EVD9YslMolsNpM?= =?us-ascii?Q?TQVoprrnK7t+k6c92ZzGHH+l5ylzl2Tczw0r4s1z5p9ro1lIyskBq1jNiAyf?= =?us-ascii?Q?n3HODmCKp+dXma3arHK9e8XUEuXR+ZRARBstCvBE5ho/UyTia8kyq2Hdz4Nr?= =?us-ascii?Q?y5/ue9bJu7gAyjU81vehXfOBR8ucl6MlNCrSIjIwAWmoj9kLFy3wAUZR2ok/?= =?us-ascii?Q?T3oBqnHeOAI4nX2Q1VH02xFnynyL+d7wqRqyuXguGOocYh4mtI175lJVkQM3?= =?us-ascii?Q?t6UcHos+8KHIa7P9OH+O8tRT1X0nuiJxn4yXcy9fWJBbzJ4UXEI/LOtJg=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM5PR07MB2779;6:LY4o4faKn+YYAuq+wesHG7lcciumrusGZrz/nVOgoS?= =?us-ascii?Q?f6pdjApIfH6gdNjn6nGI6vjE260HTJVAS1SQlVqoMXLhZT8j4XheHIWklkGr?= =?us-ascii?Q?sPOXLkLDaSFpz3P8C9vkXZUM5ncIM7RbHbc9T2HDjRplExz8tx9fAY/pT/oE?= =?us-ascii?Q?sXl6Wyj4O2vH3snIBi2Eh1t6Cxv6UnxqEJNdIrJ53sytbfp6p/mQ14CbK8j8?= =?us-ascii?Q?48pGLtV9bXqxKVpTh1iBUMiUCusU5xrKNKxV4B/CG+qcSEC5008J+UjozkE6?= =?us-ascii?Q?t9MqqJoimidECOAQS5/sniBCt9ircGo1fVfYrMtA01pfvhlbIpcGTrCL0//D?= =?us-ascii?Q?ToDlaM63qiBdaBLKsN1uuPdEmPb4Wc9KjAKuOGeREUuniNuoHS05+ZtQuyRe?= =?us-ascii?Q?mh316VYb6P5gMb3m9ej7VqZakeyeAZWPJnqQFQDt/nvST7SEXc3q5+1BoBrp?= =?us-ascii?Q?rDS4tMi8vWTwn0iwRtKinKJgbrQstSJnZNiHnGZIr32BrH3wi2E8fxqO3in3?= =?us-ascii?Q?qKgJ0qPmuMQlGVNxBuT9CGerXb1noT3++Ag5dc0thvXWylW/wysInX5s3V+y?= =?us-ascii?Q?VStg4kn9OG3skI5rUnkNqctmFx+Kix+aasEt1bN2i1u5CryoDagIEnKWO0Xv?= =?us-ascii?Q?z7+3X17CeJ+znIAVdCgO4u5uLRFS8RL8VBZBCei4jQcAebPep5xio2glUhaj?= =?us-ascii?Q?tScLBASs4QJlBpHXuYRhRMGXpJryjtAcH/SHYmYkokokYU/rTmFdm7u8p+vz?= =?us-ascii?Q?FKf/bsplPRln+iqK/ygxmI6KAgPO70Ur+379mx9bJ7s+CGaCARSKEUXDWTBq?= =?us-ascii?Q?8raBUMemwrQArhn02B9CZb7/EEA4v4r8Jjzi2Us/9zWbXk4tcfvGtP37l+cz?= =?us-ascii?Q?00NwHfsumhNrMwCxcShW8r5HHWJSdpzXyws51tKNZ/PSmCznMWliHW+zsvDr?= =?us-ascii?Q?MnKtXCO9NSKh3NfTe1L95kYiA5Bbx19K7AgvGPgEd4IspMKt7e2H561zRc7Q?= =?us-ascii?Q?E=3D?= X-Microsoft-Exchange-Diagnostics: 1;DM5PR07MB2779;5:GXmYgIcA7G66f3jLTGiZqoR+KqqRvdzU+E+1e+yFifa8UkD6WzrTQzwCnHKhrsKSrbFT/Sc7sC81hPdRl3TD1wCQH9KeVafR9lT+nL4vkUDstmLUPPYPwCXxtcpXcOK+Wi6t1II8Hb59uQXlE6hTE2HUZssyo/eRAbiv0LQxCuZhS5UjXefpLi6hWIl8GWwV5MUSKZwabZKPxmju8Jt2wjhIwaXmTGQA1IB+yvbEZsqTNs8lLh82hniwUwK5/SgP6yx8aR2KWUp7CUjXQ7E6dHFSaAnL5UOBOyDy1l2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LD2vmSARHDbGTJJ6lGyzHlIMyKwMFMK0HNSs8m4eoVJm8c2wPvdbhpZl/NWFlXybC/oHpO+ConaVzpuiXApXRmyOzUojXSGENVVUX7E9n4ztGierjNwsv7dbNQb5e+YA8PQ= X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2017 13:56:54.7806 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB2779 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3556 Lines: 101 On Thu, 13 Jul 2017, 12:19pm, Thomas Bogendoerfer wrote: > From: Thomas Bogendoerfer > > FCOE offloading on qedf devices fails with: > > [qed_sp_fcoe_func_start:150(sp-0-3b:00.02)]Cannot satisfy CQ amount. CQs > requested 8, CQs available 6. Aborting function start > [qed_fcoe_start:821()]Failed to start fcoe > [__qedf_probe:3041]:6: Cannot start FCoE function. > > The reason is a newly introduced check in the qed main part. This change > also provides the information about how many CQs are available, so we > simply limit the number of requested CQs. > > Fixes: 3c5da9427802 qed: Share additional information with qedf > Signed-off-by: Thomas Bogendoerfer > --- > drivers/scsi/qedf/qedf_main.c | 16 +++++++++------- > 1 file changed, 9 insertions(+), 7 deletions(-) > > diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c > index b58bba4604e8..5778218734fa 100644 > --- a/drivers/scsi/qedf/qedf_main.c > +++ b/drivers/scsi/qedf/qedf_main.c > @@ -2765,6 +2765,8 @@ static int qedf_set_fcoe_pf_param(struct qedf_ctx *qedf) > */ > qedf->num_queues = min((unsigned int)QEDF_MAX_NUM_CQS, > num_online_cpus()); > + /* limit to acutal available CQs */ > + qedf->num_queues = min(qedf->num_queues, qedf->dev_info.num_cqs); We do need to account for the case where there are less CPUs than CQs. Does this look reasonable: diff --git a/drivers/scsi/qedf/qedf.h b/drivers/scsi/qedf/qedf.h index 4d03892..3c1d6fd 100644 --- a/drivers/scsi/qedf/qedf.h +++ b/drivers/scsi/qedf/qedf.h @@ -528,7 +528,7 @@ struct fip_vlan { #define QEDF_WRITE (1 << 0) #define MAX_FIBRE_LUNS 0xffffffff -#define QEDF_MAX_NUM_CQS 8 +#define MIN_NUM_CPUS_MSIX(x) min((u32)x->dev_info.num_cqs, num_online_cpus()) /* * PCI function probe defines diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index 937df5b..f4facd3 100644 --- a/drivers/scsi/qedf/qedf_main.c +++ b/drivers/scsi/qedf/qedf_main.c @@ -2760,11 +2760,9 @@ static int qedf_set_fcoe_pf_param(struct qedf_ctx *qedf) * we allocation is the minimum off: * * Number of CPUs - * Number of MSI-X vectors - * Max number allocated in hardware (QEDF_MAX_NUM_CQS) + * Number allocated by qed for our PCI function */ - qedf->num_queues = min((unsigned int)QEDF_MAX_NUM_CQS, - num_online_cpus()); + qedf->num_queues = MIN_NUM_CPUS_MSIX(qedf); Otherwise this patch looks good. > > QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_DISC, "Number of CQs is %d.\n", > qedf->num_queues); > @@ -2962,6 +2964,13 @@ static int __qedf_probe(struct pci_dev *pdev, int mode) > goto err1; > } > > + /* Learn information crucial for qedf to progress */ > + rc = qed_ops->fill_dev_info(qedf->cdev, &qedf->dev_info); > + if (rc) { > + QEDF_ERR(&(qedf->dbg_ctx), "Failed to dev info.\n"); > + goto err1; > + } > + > /* queue allocation code should come here > * order should be > * slowpath_start > @@ -2977,13 +2986,6 @@ static int __qedf_probe(struct pci_dev *pdev, int mode) > } > qed_ops->common->update_pf_params(qedf->cdev, &qedf->pf_params); > > - /* Learn information crucial for qedf to progress */ > - rc = qed_ops->fill_dev_info(qedf->cdev, &qedf->dev_info); > - if (rc) { > - QEDF_ERR(&(qedf->dbg_ctx), "Failed to dev info.\n"); > - goto err1; > - } > - > /* Record BDQ producer doorbell addresses */ > qedf->bdq_primary_prod = qedf->dev_info.primary_dbq_rq_addr; > qedf->bdq_secondary_prod = qedf->dev_info.secondary_bdq_rq_addr; >