From patchwork Thu Jun 13 19:00:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumit Saxena X-Patchwork-Id: 13697332 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (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 5FC2CF9F8 for ; Thu, 13 Jun 2024 19:04:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718305462; cv=none; b=K6kXmqkCe1iqdbMHhyPxOcmoTmih0mw+T88w9H4hzZMtr0jWffDOC6n5JkOhlYoL0dM4elstXvXmsf9TXufU5AL2FYH6lKjWN3w2VUEiWO3T4Pz2f1zPkz6SEe/oPqiFeGKnlm+cO3IjLXCmQ4tivKfcRJNRy1Fgnd5IQGHk4C8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718305462; c=relaxed/simple; bh=MThHX9FxRhgWf/QCPksZGDTaixmYQtKF7H7t+HOFtn8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=s55gLx/HuwjTYgHy8cmCzN/ygSVZuyInItdLz1DKr8LMgzJ3HyeDU0WGTTWJaW9s8DWflHoov8kmY4uSi+aRja0i4QHeTlEpP2sXN6FYvKpQI9Q0saM3zjgvYcyw4jfV8VRCqpAzukGJa9jkypzlRQErIZl+FlJoy4RfdJ/hYhg= 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=Ff8gPb2w; arc=none smtp.client-ip=209.85.214.169 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="Ff8gPb2w" Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1f47f07aceaso12892265ad.0 for ; Thu, 13 Jun 2024 12:04:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1718305459; x=1718910259; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=6rS84pltVzsIwnYtS4/nCQzY8zhnG+nWqs8WZOHn5vg=; b=Ff8gPb2wfsmatF0wm3a0skBaRXqvVhhoj7KhyfdkOq42jWYLktp4wqjThO4QRmOUA4 6lTH2Xa1C7ss4dBfZacZQTrOY7zlbLA7ZQt+JkLSc64CuWnoA2vG5Y8zkrKUxrhrhStg MhPEBOfgOPn9TZuOGntjABMYVBePiKXnISKNM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718305459; x=1718910259; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=6rS84pltVzsIwnYtS4/nCQzY8zhnG+nWqs8WZOHn5vg=; b=Zl1ddrVBvkBeytmxmrFL/q8Z8WHjAGuOAWUnvz0voZyYtDAOyqRa/00lTyyIomiFUx lPVn8GaoZ4suM7uUNZyFqHb9gYil+rCpueWWOf0TYAC3Z03UcQqddJPMnzc4ClwKNviG YiGe8511NBlm1HBkLW941c8npHMcsq4a0DTUjWlpUoMZqUSDDwvUbnXOLO1V4xikTwzl TztMC1mRjH0jgZUy2yu6f5sY7Y0m75n8iJ0dwFNdfQTPGnIvEAdfL1PF1VJqKzwW3YSR BJ1aLuMnbowE8W870N/qJERZKpvXBgozxf+na0IbMArhtCE/RtQGQPs/S+sC0Zrb18az iwEQ== X-Forwarded-Encrypted: i=1; AJvYcCXKExo7/KLCs65IKSrYRCpVO6zKeqOHCdO5r68AyGmM3MwUvFcVrTj9Blb1yW/ypMO2opxuJwwGviZo01VHPu1AfsMLwMpkxybr X-Gm-Message-State: AOJu0Yx1uRKyCNyUPeSWhHh4AOetxuqTCMdmdcqPJ2BTplGEwLzm7k+w cT/52BLVQfqdjQ3HXSt1RFU6ze291EfQPdoxE75FYegj+T7GsnzRfoES6x6uZw== X-Google-Smtp-Source: AGHT+IHEtoRzZlTPotc8Ejz7VmoMGdj/7mK/1Gz9ZsZzaJgYoV0YoXUP9PVjgXvla5HzTMq4GOR/yA== X-Received: by 2002:a17:902:da8b:b0:1f4:8e4a:b774 with SMTP id d9443c01a7336-1f8625d54dbmr5704145ad.1.1718305459425; Thu, 13 Jun 2024 12:04:19 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f855f16a3esm17366905ad.232.2024.06.13.12.04.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 12:04:17 -0700 (PDT) From: Sumit Saxena To: martin.petersen@oracle.com, helgaas@kernel.org, sathya.prakash@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, Sumit Saxena Subject: [PATCH v3 0/3] mpi3mr: Support PCIe Error Recovery Date: Fri, 14 Jun 2024 00:30:19 +0530 Message-Id: <20240613190022.4128-1-sumit.saxena@broadcom.com> X-Mailer: git-send-email 2.31.1 Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This patch series adds support for PCI error recovery for the controllers managed by mpi3mr driver. The patch series is rework of initial revisions submitted by Ranjan Kumar. The series is based on the Host diagnostic buffer support series: https://lore.kernel.org/linux-scsi/20240605094840.14968-1-ranjan.kumar@broadcom.com/T/#t v1->v2: - AER patch split as suggested by Bjorn Helgaas. - Updated driver version to a new value. v2->v3: - Accomodated the feedback from Bjorn Helgaas. - Simplified and dropped few patches. Sumit Saxena (3): mpi3mr: Support PCIe Error Recovery callback handlers mpi3mr: Prevent PCI writes from driver during PCI error recovery mpi3mr: driver version update drivers/scsi/mpi3mr/mpi3mr.h | 12 +- drivers/scsi/mpi3mr/mpi3mr_app.c | 28 ++- drivers/scsi/mpi3mr/mpi3mr_fw.c | 22 +- drivers/scsi/mpi3mr/mpi3mr_os.c | 270 ++++++++++++++++++++++++- drivers/scsi/mpi3mr/mpi3mr_transport.c | 39 +++- 5 files changed, 343 insertions(+), 28 deletions(-)