From patchwork Thu Jun 27 10:17:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumit Saxena X-Patchwork-Id: 13714119 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5EF5E13D291 for ; Thu, 27 Jun 2024 10:20:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719483651; cv=none; b=R810GKRdc7y7sLIPR3vbqtf52aZ5djjUVaKqvMxQrVpvDiED8whdUdRUuujS7iYWrS1q18JZhp3qia+J/GAyN/Do316D7ebNAQlQPwnTu3B6dY1d4qPWsa88Hh74OevmSF/kqqCOq/lYS4OFE3gau68gvtK5bvq87MAHPvBE4q0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719483651; c=relaxed/simple; bh=6MTD+wGK+uW6HD/gYVB3sfgMzfZPz9aekZ0t/SI/4oc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=SLWHzqRtu8TUdorAr06S/YfVVGybo9I54dAjLy59K3kNwuIXOkpishXwtLyeRl8xs1i+bfXeLlzrQuUwc4sJui/46Juo9CkdS6V5ZqrVU6d0z42kOUasBMkaTzcaDDeG9LCgezETTwF/P6L1I+9iPb8ak9UTYMmErQfESUI5N6E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=WpkXwDn3; arc=none smtp.client-ip=209.85.214.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="WpkXwDn3" Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1fa07e4f44eso45846785ad.2 for ; Thu, 27 Jun 2024 03:20:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1719483649; x=1720088449; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=H9Otl61OmkaxmaB2XmwLU7rGLIZGj0OaOGaTfuWCqQQ=; b=WpkXwDn31/8YCNS2wJ12YwTHmpAoTlwq/lJeTrrUYk6U7sA8eZ7MKRSnAj+NaPw1Gg 8qE2eoqrMeuzmflu7heb+lpOumirguje4JudFWZ0yUkT75H9ICAi2/XaLfzsSYOywXpo 8UvQG8Xup78RIv4pHTWsY2rtLbXjLlm4PaOBQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719483649; x=1720088449; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=H9Otl61OmkaxmaB2XmwLU7rGLIZGj0OaOGaTfuWCqQQ=; b=cRpFhC4TIwGYFJG+VWE+9vDp6s468KWyAhHbtHffzolNr4robBeTixsa30H2EVqMrz PGGSgg3VWJQM1HMivHHsEQPRCg+3utxNg23qV4r/mrA7+GCUtweW/qIw8LVgEhNWWwus XOflMJEQupgSDWSfzqtqRMbw4h51xBL4tJ03z7LHaNG+vHMDFKOJ5syXW9wOzoEiepPq bKSc+Zpx9izzsYUk1MPOYlTe1R/TbtMw7UlqHWkwTMgH4Hvpam32YgD7cglRVWyOHOdE 5RsKieu/R15E6kqNkU9UPiUI0ATkaqldJFWPFsSGIpzPx3gyZv9nvQxVMTnOn2I6b90l ySew== X-Gm-Message-State: AOJu0YzdvjeeJtzs1i4Fjsh6ZseEsByUqIAcYArdm31XlAzutfe/nERc hCxPhQhl/MOsvQnyXTTVRetEv8z252bJ/qixlSM6bFthp3g7vAy/kv0cOudZ1w== X-Google-Smtp-Source: AGHT+IHixb5HnApVjLH3JQHe/SRVH9e0kZAAASY33McOTu7qjbP1dJLupVteQziB8tIVJQj2mofjkQ== X-Received: by 2002:a17:902:da84:b0:1f9:d6bf:a67e with SMTP id d9443c01a7336-1fa23f149b7mr141267185ad.69.1719483649478; Thu, 27 Jun 2024 03:20:49 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1faac979478sm9858495ad.180.2024.06.27.03.20.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jun 2024 03:20:47 -0700 (PDT) From: Sumit Saxena To: martin.petersen@oracle.com, helgaas@kernel.org, sathya.prakash@broadcom.com, sumit.saxena@broadcom.com, chandrakanth.patil@broadcom.com, ranjan.kumar@broadcom.com, prayas.patel@broadcom.com Cc: linux-scsi@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH v5 0/3] mpi3mr: Support PCI Error Recovery Date: Thu, 27 Jun 2024 15:47:32 +0530 Message-Id: <20240627101735.18286-1-sumit.saxena@broadcom.com> X-Mailer: git-send-email 2.31.1 Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This patch series contains the changes done in the driver to support PCI error recovery. It is rework of older patch series from Ranjan Kumar, see [1]. [1] https://lore.kernel.org/all/20231214205900.270488-1-ranjan.kumar@broadcom.com/ v1->v2: - AER patch split as suggested by Bjorn Helgaas. - Updated driver version to a new value. v2->v3: - Addressed the feedback from Bjorn Helgaas. - Simplified and dropped few patches. v3->v4: - Addressed the feedback from Bjorn Helgaas about dropping null pointer checks for shost and mrioc. v3->v5: - Replace sprintf with sysfs_emit and simplification in adp_state_show(). Sumit Saxena (3): mpi3mr: Support PCI Error Recovery callback handlers mpi3mr: Prevent PCI writes from driver during PCI error recovery mpi3mr: driver version update drivers/scsi/mpi3mr/mpi3mr.h | 11 +- drivers/scsi/mpi3mr/mpi3mr_app.c | 10 +- drivers/scsi/mpi3mr/mpi3mr_fw.c | 22 ++- drivers/scsi/mpi3mr/mpi3mr_os.c | 248 ++++++++++++++++++++++++- drivers/scsi/mpi3mr/mpi3mr_transport.c | 39 +++- 5 files changed, 311 insertions(+), 19 deletions(-)