From patchwork Fri Apr 21 23:04:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Smart X-Patchwork-Id: 9693883 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 9BF0260328 for ; Fri, 21 Apr 2017 23:05:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8DCBD28685 for ; Fri, 21 Apr 2017 23:05:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 829F628688; Fri, 21 Apr 2017 23:05:41 +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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 157B428685 for ; Fri, 21 Apr 2017 23:05:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1426496AbdDUXFi (ORCPT ); Fri, 21 Apr 2017 19:05:38 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:36752 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1426480AbdDUXFS (ORCPT ); Fri, 21 Apr 2017 19:05:18 -0400 Received: by mail-oi0-f65.google.com with SMTP id a3so18440676oii.3 for ; Fri, 21 Apr 2017 16:05:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9B5liULBdFPoKsp7ab93+iWAtcf6Y/8Ak0MdOVwukyw=; b=eK1hBX/LvF8Ee5e8AEfTsbqmnznCelJkA2rt6v082wFSbNLMm6U4LomLzSTNH9oqBy 1NJGaynBnjrcvD6wxrPUyq3zzuj2ER8uFH1yP+neBJJxhaYlCO0oR2u6zCUuxFY5LZKn C09xyNoTlYZJg/o9Wg9SvHK6kf12XquUi/xprxokudOWnUnQPPK2QGps+rRtEvgMzqD7 sqDyQ72S3EHGXAYhpXk9AxIdgUY9orboeFnqCurrDTy7zGRgChHFZ2gHcBg74Cauqq1p bU6LTx5z08ljfp9S10GLSxhQqFOBuqzgzTz8z40kuPIGQpMDxCB1shmbxzLg33G94Jx5 8L/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9B5liULBdFPoKsp7ab93+iWAtcf6Y/8Ak0MdOVwukyw=; b=OgSA7VLumC9/g0wIGVI/RskmyyamU3OkCG/bXrdnm1zSSZTFF3RA66KfSD2SZGdatj 7gpUUvrrzzY7nBWOb70Q6d3AGhohob1h0bzR5aMUB/3mb7DvgHmpvew0RCupyPC3UOIT 8B0+Um+bm5pAbrPwBOEdEYMhYKNhsI4fJh7jCKb2miZNXqQGCEePot0kp/yU/JCJuPJk X/nZoiohEPIZnkdOldJcBstBzldWsVjLMnc1+5KYRIp+Ay1RutZb51EaZqe9x+FOnnzv fw6Is0wFXhP/4zKmaVtHhKwradwpiIvyE1gMm+RubSFBje0zOkDlrTgq5nIDbJBFWurl 2cXw== X-Gm-Message-State: AN3rC/4tyukEe43LlkwcAyU2V0jFGWJIITrEZduwZq1W76eNOxGZpZho rpUVHtbqSv1h2A== X-Received: by 10.157.42.132 with SMTP id e4mr10126597otb.86.1492815917548; Fri, 21 Apr 2017 16:05:17 -0700 (PDT) Received: from flash.localdomain (ip68-5-29-33.oc.oc.cox.net. [68.5.29.33]) by smtp.gmail.com with ESMTPSA id c17sm4794676oih.27.2017.04.21.16.05.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Apr 2017 16:05:17 -0700 (PDT) From: jsmart2021@gmail.com To: linux-scsi@vger.kernel.org, linux-nvme@lists.infradead.org, sagi@grimberg.me, martin.petersen@oracle.com Cc: James Smart , Dick Kennedy , James Smart Subject: [PATCH v3 05/22] Add debug messages for nvme/fcp resource allocation. Date: Fri, 21 Apr 2017 16:04:49 -0700 Message-Id: <20170421230506.925-6-jsmart2021@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170421230506.925-1-jsmart2021@gmail.com> References: <20170421230506.925-1-jsmart2021@gmail.com> 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 From: James Smart The xri resources are split into pools for NVME and FCP IO when NVME is enabled. There was not message in the log that identified this allocation. Added debug message to log XRI split. Signed-off-by: Dick Kennedy Signed-off-by: James Smart Reviewed-by: Johannes Thumshirn --- drivers/scsi/lpfc/lpfc_init.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 6cc561b..b56da01 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c @@ -3508,6 +3508,12 @@ lpfc_sli4_scsi_sgl_update(struct lpfc_hba *phba) spin_unlock(&phba->scsi_buf_list_put_lock); spin_unlock_irq(&phba->scsi_buf_list_get_lock); + lpfc_printf_log(phba, KERN_INFO, LOG_SLI, + "6060 Current allocated SCSI xri-sgl count:%d, " + "maximum SCSI xri count:%d (split:%d)\n", + phba->sli4_hba.scsi_xri_cnt, + phba->sli4_hba.scsi_xri_max, phba->cfg_xri_split); + if (phba->sli4_hba.scsi_xri_cnt > phba->sli4_hba.scsi_xri_max) { /* max scsi xri shrinked below the allocated scsi buffers */ scsi_xri_cnt = phba->sli4_hba.scsi_xri_cnt -