From patchwork Thu Mar 7 21:57:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Reed X-Patchwork-Id: 1909473 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TrNSv1RdQz1yWx for ; Fri, 8 Mar 2024 08:57:35 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1riLjx-0005rE-JH; Thu, 07 Mar 2024 21:57:25 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1riLjv-0005qj-Fg for kernel-team@lists.ubuntu.com; Thu, 07 Mar 2024 21:57:23 +0000 Received: from mail-yw1-f200.google.com (mail-yw1-f200.google.com [209.85.128.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 1BCDE3F280 for ; Thu, 7 Mar 2024 21:57:23 +0000 (UTC) Received: by mail-yw1-f200.google.com with SMTP id 00721157ae682-60971264c48so24365717b3.0 for ; Thu, 07 Mar 2024 13:57:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709848642; x=1710453442; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sFfoWdwPtW2hq8cGAAkB4LwfAAZXLC9cYloN4W7zKfQ=; b=NfxVc3HFr4DtLLxDJNVs01n5JH8oQWizQ2LttCcSkkuyO/Opa5ymEwe5zYWiRd3dW6 Cz7enPw6Bcx6u5pT7Byi9MenPAzzixDGvruMCSqhw9Z5uGRw617iGBp64K+Tq+5GcsXc AEiG7n/eei7sLQoEytySXNIbI2yjh9EQCZ9+ryjNhW6C6U9wTwwWa5q8uhflORLO8vDM DVDgMNEdEijQkW2vg1NBRZVEf4z+eTNk9MuHKo+DGpbE6AQdSJSrdymj7c1mRjZ+HrZq /R2Yswmlo+WAORk+v6Cv1QJ+PAcX6jxkE2SzY0w0bOK3/zjevjO2UmBRBPXOF3eoAREK m+Ug== X-Gm-Message-State: AOJu0Yw+BjasZa/q7qHEDhidK0c8MYB9sMx/GYRO1P0UyoldLIVifsMy IzQ0/h9T18b/drlmVU6mpRyUgjZZRMnvrdl7xla6645S3wBJbRG9zqwu7iEL6QSDr1Mj65nhjkc tpCjV5ROplMcX/Db/V4Z2eVe+/IU88iR5ec0K8sSo/GwoiqkevrxOnqtKZgMFyysiMcqa/1ZzSX VWMH9JCDcCtg== X-Received: by 2002:a81:5f0b:0:b0:608:dde5:ace6 with SMTP id t11-20020a815f0b000000b00608dde5ace6mr22144307ywb.28.1709848641755; Thu, 07 Mar 2024 13:57:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IG+yvHLBxurR5x25UiCe3o9/TS2K7691tdiBgLuuiwBF/O+IFuZw0mxVQguMo6IfUgT9aakkw== X-Received: by 2002:a81:5f0b:0:b0:608:dde5:ace6 with SMTP id t11-20020a815f0b000000b00608dde5ace6mr22144298ywb.28.1709848641389; Thu, 07 Mar 2024 13:57:21 -0800 (PST) Received: from localhost ([2600:1700:1d0:5e50:24c9:6d38:b924:6ed4]) by smtp.gmail.com with ESMTPSA id q10-20020a81e30a000000b00603eb201977sm4344740ywl.70.2024.03.07.13.57.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 13:57:21 -0800 (PST) From: Michael Reed To: kernel-team@lists.ubuntu.com Subject: [SRU J/M/N][PATCH 1/2] scsi: megaraid_sas: Log message when controller reset is requested but not issued Date: Thu, 7 Mar 2024 15:57:16 -0600 Message-Id: <20240307215717.14585-2-michael.reed@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240307215717.14585-1-michael.reed@canonical.com> References: <20240307215717.14585-1-michael.reed@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Chandrakanth patil BugLink: https://bugs.launchpad.net/bugs/2046722 The driver now includes the print message 'IO is completed, no reset is required' when a reset is requested but not issued. This message is displayed only when pending SCSI IO is completed before issuing the reset. Signed-off-by: Chandrakanth patil Signed-off-by: Sumit Saxena Link: https://lore.kernel.org/r/20231003110021.168862-3-chandrakanth.patil@broadcom.com Signed-off-by: Martin K. Petersen (cherry picked from commit 2d83fb023c90d4db3ada82f12951cb0c69be9cbc) Signed-off-by: Michael Reed --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c index 17dd9cb00369..adb46e7bf582 100644 --- a/drivers/scsi/megaraid/megaraid_sas_fusion.c +++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c @@ -4234,6 +4234,9 @@ megasas_wait_for_outstanding_fusion(struct megasas_instance *instance, } out: + if (!retval && reason == SCSIIO_TIMEOUT_OCR) + dev_info(&instance->pdev->dev, "IO is completed, no OCR is required\n"); + return retval; }