From patchwork Wed May 15 11:51:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 797199 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (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 2C1FF14AB4 for ; Wed, 15 May 2024 11:55:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715774102; cv=none; b=j9rj7aaBAa2qUyp9c+kPaG41b9n+1OZfvyX42hmiac1M2anLs8stOdripRRXhnUreyO7qFBekeGs/DNwCKysqVkbV5CsdJKbramUaFiHTRqqVQcAzU6uct8nhbp9YvJxUziV2SYDeu8aNYwhkdx1+JqhOO/iwLuhYVESCCY/Rb0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715774102; c=relaxed/simple; bh=WMu7Bm6+HWXr9zqY/NhM9DY2FP+FDaPb6PyRyC3ZrB0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=dbFaId2F/HpUNSi8zqGXlJHsEgrQCXiV4JgwEkNcItefFbxGXAJbL1/cCHLRMeyRsnhCH1hN40K52JyFk9DEZtc5HAZcpPbowtHY7p1ciERTdbpouR8uktByEkQG6yU10xxhxHTG/fSYEYeQcNS8oNWXjJizLDeaew1f3dPY5YA= 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=cCodZEdC; arc=none smtp.client-ip=209.85.210.174 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="cCodZEdC" Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-6f44ed6e82fso5862541b3a.3 for ; Wed, 15 May 2024 04:55:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1715774099; x=1716378899; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=aCf/bxkvDdvPtP2gCt44BTwHN6RzC5MyJJ1qGaGPqDY=; b=cCodZEdCiEz3jjp/ifE6XfTAdojnIMAjAOl9kaB59KRVqVvQM5/b5YheotBfkvgCrH xijJb6EjM+z0+saaw/KFMUddKajfQAfrI3bGvMfP8eR2O3o4X0Nt/CLQLNazMztDK9Lk nI1F/2ZSyESDKYPukcW0FWxzCQ7GSa1GPXTNw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715774099; x=1716378899; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=aCf/bxkvDdvPtP2gCt44BTwHN6RzC5MyJJ1qGaGPqDY=; b=p4J80XhJ97ZLMoabZdqC/DPivTQohiZSafjRUglZedlZTIFqxSXGg+vQF71bnVpWGn IsGdluxgb88VNIxXxuGaHTwUyIlZtWdbam25evhsqYHieEy7opdB2lwYfKY3k6PRQ9EJ KoMfjetmvxmfF0tT4kaQ1ekJtBx5kIqRMcaOubQB6aOsGJAs5+d7h9kT8S48J58m7kKQ Qtqn4Yz+4v+FF2poJ0Eez0tCTaz2AeQxCMv1BVnlFq1L2UtKLfRC/LDYREtpxGBPOScl P0lVqNgszoEVckz3V8c3SFxXf0DSW3HAmD5sM1I6VnI38143UT15IiNS5+uPI/fBMzWE 37+g== X-Gm-Message-State: AOJu0YxgIgUw51dVXjvyNlxLbcYRJQPBahthR2ltYbMScLNpQJB55rvS D4fnnxZnWN3WDO96nJey7YOdOTDyWwuGdT7XFlZVtKg6z24S1/WbThffDZeCVG2dD30L6vdgKU3 IySMtnaDx/PZqQ1B6Nz5JJhxy7B8Aw4c59dia6rfLfpSL/iADG6yJkhe3bLXwhgCZD8J/CdJETQ sop+bp6111H0GnXdWcyYhL7pCiL0wxn7kpWZwGUbamdrf/4g/r X-Google-Smtp-Source: AGHT+IF4JAygtiGlC9okAahKtYiDAPFunwr5lMJ56XOo0v5406StPi4lKFm2XYOrnTZWPyxl/IteLg== X-Received: by 2002:a05:6a21:619:b0:1af:7bbc:a163 with SMTP id adf61e73a8af0-1afde0cd68bmr16031903637.18.1715774099286; Wed, 15 May 2024 04:54:59 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-63411346958sm9819234a12.76.2024.05.15.04.54.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 04:54:57 -0700 (PDT) From: Ranjan Kumar To: linux-scsi@vger.kernel.org, martin.petersen@oracle.com Cc: rajsekhar.chundru@broadcom.com, sathya.prakash@broadcom.com, sumit.saxena@broadcom.com, chandrakanth.patil@broadcom.com, prayas.patel@broadcom.com, Ranjan Kumar Subject: [PATCH v2 0/6] mpi3mr: Host diag buffer support Date: Wed, 15 May 2024 17:21:59 +0530 Message-Id: <20240515115205.75599-1-ranjan.kumar@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 The controllers managed by mpi3mr driver requires system memory to save hardware and firmware diagnostic information, this patch set enhances the drivers to provide host memory to the controller for diagnostic information. This patch set also provides driver changes to push kernel messages into the diagnostic buffers reserved for the driver, so that the information will be available as part of debug data fetched from the controller. In addition, support for configuring automatic diagnostic information is added in the driver. Change since v1: - Fixed test robot build warnings Ranjan Kumar (6): mpi3mr: HDB allocation and posting for hardware and Firmware buffers mpi3mr: Driver buffer allocation and posting mpi3mr: Dump driver and dmesg logs into driver diag buffer mpi3mr: Trigger support mpi3mr: Ioctl support for HDB mpi3mr: Update driver version to 8.9.1.0.50 drivers/scsi/mpi3mr/mpi/mpi30_tool.h | 59 ++ drivers/scsi/mpi3mr/mpi3mr.h | 162 +++- drivers/scsi/mpi3mr/mpi3mr_app.c | 1079 ++++++++++++++++++++++++++ drivers/scsi/mpi3mr/mpi3mr_fw.c | 550 ++++++++++++- drivers/scsi/mpi3mr/mpi3mr_os.c | 113 +++ include/uapi/scsi/scsi_bsg_mpi3mr.h | 3 +- 6 files changed, 1955 insertions(+), 11 deletions(-) create mode 100644 drivers/scsi/mpi3mr/mpi/mpi30_tool.h