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: 13714115 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 4E3BE13AA31 for ; Thu, 27 Jun 2024 10:20:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719483651; cv=none; b=OTBSBloN42Uixf9LviFoexPXdQWV06WBgMcW1cjOlSAhr2E3ARzUJSdN41uIu1DQ84F2vnY6I89wO7uvjTR6u1DiqQvURpxCdfFRb9c2+6CsY27MtJyOrq8B/JYwedrqWxqP/8wBZb9/t7MO6KReBvENqHIPhpgJG0gVPqDuilM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719483651; c=relaxed/simple; bh=TlOPV9OmlItVbECmsQYmQBDklev7CTvDEPnHvGekho8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=U8aSGjpAH7yaAnrCHg1Vl0RoW1Aa+tkuAdjxxRUubssa8DZXab0+wiGc+ulJGBVZ3cpM8bKiXfOXyFQ4X96pcTPwO892kyGdSJeW9+nsUs1IcuUX4dV/SbMqF8WWLcUkKHwGg585/ZIRYEKDT2M1Khn1XpNFRLAHAq+8nPui5ic= 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=iGIVe14N; arc=none smtp.client-ip=209.85.214.182 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="iGIVe14N" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1f4c7b022f8so65855265ad.1 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=/n5nX1+hgRYeeP1pCFDfKmeMaomZ/ZyMtnCsgqIkiaQ=; b=iGIVe14Nff7XuLMCQUF5jURgyOoQ5GkenyHR/ZhuDUFiKwwawENbLrBYrO82Gxwhc7 ItlV3zZ0z6atxX9x7S5HUsh9g/fzbNYHfjcDqthwlG26OqsUwIGqdlYKdLh1aIcOKjwA bo8VWMnXf4FzXguIbQ19sTeF9kzrVzB4YF6RU= 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=/n5nX1+hgRYeeP1pCFDfKmeMaomZ/ZyMtnCsgqIkiaQ=; b=UASvK3kKJpeSqrE1JJDUiLAYx1p4YStn2Vi7eLhJlhzkJ/pjdNwV1D8cpE3nuhaHNY Gxw3y5QTET/r6MYcXDhKYA8WPzH709yxbHDXwziVNG9WQOnXXFbRA+IfdxCtb3qUhzIC y7Y65AFaQB/fmKX+YPtNj+efrjwwwctui7x5YCYr0TqlEnZd3O6ESZexLuqxM5le3aZI rg7mN0wpaC5LixU718F95WQ+LYnx88yccvgnAeXww5dV2v3lwJyv5Uom7CooET7vhWzg fySUEJ+eX8ySaMuOUGhqHW7YNqjf2dpjhJ2YUg2n3IdOmJioubukTE3oNaYHENJgQJWK nA+w== X-Forwarded-Encrypted: i=1; AJvYcCWCgX6ArNTqxgH3fPoKRjpR9Oc+dUb+RWNdPO76Ol96FdVA/R2vhsP9XJH4JzjorGCvO1tAIgvu2d5nTfWPE/evG2P6vcySs7T4 X-Gm-Message-State: AOJu0YwpOd7ZAHcYOGmXzSHyCA717gBRNVVk6gJKAfryK98cOiPDo7ti dHlmF1PkoEqUZei3cdlt5mxmX+yzUOHB0JmceVtc4v/OA91c2k4iJCuGFIbQSQ== 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-pci@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(-)