From patchwork Wed Jun 26 18:26:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumit Saxena X-Patchwork-Id: 13713275 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 EE74C14600D for ; Wed, 26 Jun 2024 18:30:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719426631; cv=none; b=G4av9wceMaYJW5c95QTGQtgrrRtm3i2vOKAV9TZiG1q6yXcl/TL4bnW/8NjrtYzkiv9uXvQ3scG3llLl9pacgAtAtZtFwklO7W2GF3vs8po+MXqVDJTQ05vhF+ZWH/gL1Qif/dtoFGkO7VF9uO6Y6z3JrfmS5Gm9qZq/ODr79Cw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719426631; c=relaxed/simple; bh=8mUx0H+WcX+ulA4RQQHo2hYLs+a1PmwJ1KQweNHk/zc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=P7EPvVijZX3kA1K5Xi/VDwhuiXVFgLdM5TW3QpEI6PwkczcY/5NMdPCkI8ckh9YrVssFYO4bXeb4FVr0NG+ceeGzZvTbaj9diWoZHFgpXL6Xl78/B3Jp6Q4DXXR3PXiZ2WGRCzNi1xrelrAvMGjM8E8nR7ABtepSFBKgySLulNU= 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=NeFiOgQN; arc=none smtp.client-ip=209.85.214.170 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="NeFiOgQN" Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1f47f07acd3so57639875ad.0 for ; Wed, 26 Jun 2024 11:30:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1719426629; x=1720031429; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=G7H6vVopUx0ByfnPiiMElfcSqjXcFEtXsyv2tuPVyLU=; b=NeFiOgQNqppVkvbBzeynZWb0ZW9rdRNox/jAK6qhWrXNFtyeon/wgrH851DjI8QVBu 3IM2iXbbFkPPhT8slXD1Q1P0m2x5WfBLsIEEtbHJKNzY1ZnU/g3M+CXbYL6W1ZqrnvDX M2BD5CS35uOefA13LvC+xnmt0Bo6xPjxfEdNo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719426629; x=1720031429; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=G7H6vVopUx0ByfnPiiMElfcSqjXcFEtXsyv2tuPVyLU=; b=tARVDg4Gv5004iiaR++50u+mdSH4g3RmboMUdr0Yiz2bmA3WpNNtJ3i+9C6vs62H6P 85tJn7pnhKvTfyAFe3H7sLANwS6QlE/gir+v2LyNLjpMKXOIkdUopeqzrYAhwFnZXj+l 60lMviVEcyk7nyoU9oEmlD13GJo+XwJScnjie1CMoRrDCk4qKh4ZiSMJhS9tXIiHwz2g 3mdUWX0F1erUJmZBoGZiTgxhJ49BBBVITdTLUAYvGhJ49wiThhx1H7v3cGG9yWEiZuAU P6ypdZyHHjEx13JMHYghDSTJUJjX86ni1b875q8eknRnsQ9ab36sMjD5UiPDDht64Uib 3LNw== X-Gm-Message-State: AOJu0YyV+m0eP5skVL+gqBomDdxINKW4cHZh7khcK7Jh9XQ/k0ASHiAy G5VNLe1GAx6ZcONHbq0x5QQr3jfM5tZD5pD7PnhK44rhc6RdM2Ll7YBAKpJvvg== X-Google-Smtp-Source: AGHT+IEJi8J/RSSjEMokjTZdu9FD610kPg8MijalmOwMxqLUv9A4vJ53iGOnRG1r4HU2+GBRns0KXA== X-Received: by 2002:a17:903:2445:b0:1f8:3958:e36f with SMTP id d9443c01a7336-1fa1d668429mr137095965ad.49.1719426629240; Wed, 26 Jun 2024 11:30:29 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f9eb3c6a7csm102703205ad.160.2024.06.26.11.30.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jun 2024 11:30:26 -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, prayas.patel@broadcom.com Cc: linux-scsi@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH v4 0/3] mpi3mr: Support PCI Error Recovery Date: Wed, 26 Jun 2024 23:56:54 +0530 Message-Id: <20240626182657.7716-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 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/20240626102646.14298-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. v3->v4: - Accomodated the feedback from Bjorn Helgaas. 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 | 28 +-- drivers/scsi/mpi3mr/mpi3mr_fw.c | 22 ++- drivers/scsi/mpi3mr/mpi3mr_os.c | 248 ++++++++++++++++++++++++- drivers/scsi/mpi3mr/mpi3mr_transport.c | 39 +++- 5 files changed, 321 insertions(+), 27 deletions(-)