From patchwork Sun Nov 10 19:44:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 842430 Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) (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 C0A31A923 for ; Sun, 10 Nov 2024 19:48:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731268098; cv=none; b=Xx3LYt+pfKjm02DH3VbwcRICPjOjPj/JHFeeDDq5S/LY2EuN18K7GkvF99NXM0NrQ5ERK3/pG3X2/eWjIZh938nGA7V4uDbtX6eAET+IGMiiBMXvld3qPFKjPkctlxBg7DVlctSLwtNXoMKkxgKDrlAW8pGuwUphaHdyMh6qa5Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731268098; c=relaxed/simple; bh=YluwqkRJBBulotHI64ojo3PvAtPWUnclKov9a4m0HrM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=BeTnXy8jGo1TcPh1VVxva2r6fzO4QL8ik47o+Fmxe7rtmQhSwWajMEw8bc+USTe/B/Fw505qwh52rp/k17pa7tQbGRoNTJkiIwwge5+mYMHsVdEH703Redt9kZxBR24yKu5vBk9cxMneFsqIPQz4FUamoTf8eCPLX/Sd+3vgTks= 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=F3kiXy89; arc=none smtp.client-ip=209.85.215.173 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="F3kiXy89" Received: by mail-pg1-f173.google.com with SMTP id 41be03b00d2f7-7f43259d220so1651481a12.3 for ; Sun, 10 Nov 2024 11:48:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1731268091; x=1731872891; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=p+42fYyDB/T1h/+G8zvwsuVmFhTX9wfQhFTHW6uKoHU=; b=F3kiXy89umAHPQ/JxCm0ZywJ40Ta7PXQG8wKPdJRa4mwvQIUDJkHRZ3925MYH3pODa bQNIyTJoyrjSd+hC/Z3lSU0J0v74S3EByxq7NjOoEH3YZc9tJYAQYMMzcyR9XCIodMfW R0plRDYusOmQ6bt3WNFiEouiHtNbe+Zrmh79o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731268091; x=1731872891; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p+42fYyDB/T1h/+G8zvwsuVmFhTX9wfQhFTHW6uKoHU=; b=GCRtP161Xb/AWaTncoppSBKcC6p/CbFoV1oyC/GV/66V7qK1pxTLnh5wH7ZuM7wqgu ZElsTxjWXSIJbGQQDRV6vrYFCL16dHnjYnAPYnW+7W4q8VXJ0caqmib8Qn41pmi44U8x /GPyEzMpcUOl++ybJcyrKzxr7j7urpXIQo9KFCicu31XZrPqpC8PTQze/I2Q7jFuXMF9 BrWuTg5AXxl3r4uEWSNh2ykPdd14cSX0bhfBoIeFjNDKTo+ok9sFlMj9viE1AMFEjE9T /P06qpgbVMOIe99tS0aGnEBr44gpkNlVI7JKwMggkYswRSPLxsGWdfts5EmACXImf8qw lJ6A== X-Gm-Message-State: AOJu0YyDWGFH1/SuvgCKg2hwyGZwBFuojshX2sWOydFafJTXOx+ABpIe I0oneX7JwOi6ntraof1Hmy37x093/3CO/GrsjKNXEEdcmNdEz42bqcHtJuVRCGREdqfm8uhtscH 0tSVkQ4CD1AEgXuPYzA+aH7Fk5xr+P9kgXPh3sH7wyuO1hv7bNjYEtGyKaeYQkwq2D080JGT+1V JMm+SD2+dHwlN3nIRWeG6387fPifZb52jF6mX03m1pmT/y8A== X-Google-Smtp-Source: AGHT+IHqegq1+n9PaJaaEMwBzQ9rI9TPaSt9CGRlg4Cb74zntBIJcBD4091TobY7uBSGoyKsT0q6Vw== X-Received: by 2002:a17:90b:3b47:b0:2c8:647:1600 with SMTP id 98e67ed59e1d1-2e9b16fc9d0mr14279865a91.9.1731268089980; Sun, 10 Nov 2024 11:48:09 -0800 (PST) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e9b50dcd9bsm4867586a91.21.2024.11.10.11.48.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Nov 2024 11:48:09 -0800 (PST) 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 v1 1/5] mpi3mr: synchronize the access to ioctl data buffer Date: Mon, 11 Nov 2024 01:14:01 +0530 Message-Id: <20241110194405.10108-2-ranjan.kumar@broadcom.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20241110194405.10108-1-ranjan.kumar@broadcom.com> References: <20241110194405.10108-1-ranjan.kumar@broadcom.com> Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The driver serializes IOCTLs through a mutex lock, but the access to IOCTL data buffer is not guarded by the lock.It causes multiple user threads writing to the driver's ioctl buffer simultaneously. Access to the IOCTL data buffer is guarded by the IOCTL mutex lock. Signed-off-by: Sumit Saxena Signed-off-by: Ranjan Kumar --- drivers/scsi/mpi3mr/mpi3mr_app.c | 36 ++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/drivers/scsi/mpi3mr/mpi3mr_app.c b/drivers/scsi/mpi3mr/mpi3mr_app.c index 01f035f9330e..10b8e4dc64f8 100644 --- a/drivers/scsi/mpi3mr/mpi3mr_app.c +++ b/drivers/scsi/mpi3mr/mpi3mr_app.c @@ -2329,6 +2329,15 @@ static long mpi3mr_bsg_process_mpt_cmds(struct bsg_job *job) if (!mrioc) return -ENODEV; + if (mutex_lock_interruptible(&mrioc->bsg_cmds.mutex)) + return -ERESTARTSYS; + + if (mrioc->bsg_cmds.state & MPI3MR_CMD_PENDING) { + dprint_bsg_err(mrioc, "%s: command is in use\n", __func__); + mutex_unlock(&mrioc->bsg_cmds.mutex); + return -EAGAIN; + } + if (!mrioc->ioctl_sges_allocated) { dprint_bsg_err(mrioc, "%s: DMA memory was not allocated\n", __func__); @@ -2339,13 +2348,16 @@ static long mpi3mr_bsg_process_mpt_cmds(struct bsg_job *job) karg->timeout = MPI3MR_APP_DEFAULT_TIMEOUT; mpi_req = kzalloc(MPI3MR_ADMIN_REQ_FRAME_SZ, GFP_KERNEL); - if (!mpi_req) + if (!mpi_req) { + mutex_unlock(&mrioc->bsg_cmds.mutex); return -ENOMEM; + } mpi_header = (struct mpi3_request_header *)mpi_req; bufcnt = karg->buf_entry_list.num_of_entries; drv_bufs = kzalloc((sizeof(*drv_bufs) * bufcnt), GFP_KERNEL); if (!drv_bufs) { + mutex_unlock(&mrioc->bsg_cmds.mutex); rval = -ENOMEM; goto out; } @@ -2353,6 +2365,7 @@ static long mpi3mr_bsg_process_mpt_cmds(struct bsg_job *job) dout_buf = kzalloc(job->request_payload.payload_len, GFP_KERNEL); if (!dout_buf) { + mutex_unlock(&mrioc->bsg_cmds.mutex); rval = -ENOMEM; goto out; } @@ -2360,6 +2373,7 @@ static long mpi3mr_bsg_process_mpt_cmds(struct bsg_job *job) din_buf = kzalloc(job->reply_payload.payload_len, GFP_KERNEL); if (!din_buf) { + mutex_unlock(&mrioc->bsg_cmds.mutex); rval = -ENOMEM; goto out; } @@ -2435,6 +2449,7 @@ static long mpi3mr_bsg_process_mpt_cmds(struct bsg_job *job) (mpi_msg_size > MPI3MR_ADMIN_REQ_FRAME_SZ)) { dprint_bsg_err(mrioc, "%s: invalid MPI message size\n", __func__); + mutex_unlock(&mrioc->bsg_cmds.mutex); rval = -EINVAL; goto out; } @@ -2447,6 +2462,7 @@ static long mpi3mr_bsg_process_mpt_cmds(struct bsg_job *job) if (invalid_be) { dprint_bsg_err(mrioc, "%s: invalid buffer entries passed\n", __func__); + mutex_unlock(&mrioc->bsg_cmds.mutex); rval = -EINVAL; goto out; } @@ -2454,12 +2470,14 @@ static long mpi3mr_bsg_process_mpt_cmds(struct bsg_job *job) if (sgl_dout_iter > (dout_buf + job->request_payload.payload_len)) { dprint_bsg_err(mrioc, "%s: data_out buffer length mismatch\n", __func__); + mutex_unlock(&mrioc->bsg_cmds.mutex); rval = -EINVAL; goto out; } if (sgl_din_iter > (din_buf + job->reply_payload.payload_len)) { dprint_bsg_err(mrioc, "%s: data_in buffer length mismatch\n", __func__); + mutex_unlock(&mrioc->bsg_cmds.mutex); rval = -EINVAL; goto out; } @@ -2472,6 +2490,7 @@ static long mpi3mr_bsg_process_mpt_cmds(struct bsg_job *job) dprint_bsg_err(mrioc, "%s:%d: invalid data transfer size passed for function 0x%x din_size = %d, dout_size = %d\n", __func__, __LINE__, mpi_header->function, din_size, dout_size); + mutex_unlock(&mrioc->bsg_cmds.mutex); rval = -EINVAL; goto out; } @@ -2480,6 +2499,7 @@ static long mpi3mr_bsg_process_mpt_cmds(struct bsg_job *job) dprint_bsg_err(mrioc, "%s:%d: invalid data transfer size passed for function 0x%x din_size=%d\n", __func__, __LINE__, mpi_header->function, din_size); + mutex_unlock(&mrioc->bsg_cmds.mutex); rval = -EINVAL; goto out; } @@ -2487,6 +2507,7 @@ static long mpi3mr_bsg_process_mpt_cmds(struct bsg_job *job) dprint_bsg_err(mrioc, "%s:%d: invalid data transfer size passed for function 0x%x dout_size = %d\n", __func__, __LINE__, mpi_header->function, dout_size); + mutex_unlock(&mrioc->bsg_cmds.mutex); rval = -EINVAL; goto out; } @@ -2497,6 +2518,7 @@ static long mpi3mr_bsg_process_mpt_cmds(struct bsg_job *job) dprint_bsg_err(mrioc, "%s:%d: invalid message size passed:%d:%d:%d:%d\n", __func__, __LINE__, din_cnt, dout_cnt, din_size, dout_size); + mutex_unlock(&mrioc->bsg_cmds.mutex); rval = -EINVAL; goto out; } @@ -2544,6 +2566,7 @@ static long mpi3mr_bsg_process_mpt_cmds(struct bsg_job *job) continue; if (mpi3mr_map_data_buffer_dma(mrioc, drv_buf_iter, desc_count)) { rval = -ENOMEM; + mutex_unlock(&mrioc->bsg_cmds.mutex); dprint_bsg_err(mrioc, "%s:%d: mapping data buffers failed\n", __func__, __LINE__); goto out; @@ -2556,20 +2579,11 @@ static long mpi3mr_bsg_process_mpt_cmds(struct bsg_job *job) sense_buff_k = kzalloc(erbsz, GFP_KERNEL); if (!sense_buff_k) { rval = -ENOMEM; + mutex_unlock(&mrioc->bsg_cmds.mutex); goto out; } } - if (mutex_lock_interruptible(&mrioc->bsg_cmds.mutex)) { - rval = -ERESTARTSYS; - goto out; - } - if (mrioc->bsg_cmds.state & MPI3MR_CMD_PENDING) { - rval = -EAGAIN; - dprint_bsg_err(mrioc, "%s: command is in use\n", __func__); - mutex_unlock(&mrioc->bsg_cmds.mutex); - goto out; - } if (mrioc->unrecoverable) { dprint_bsg_err(mrioc, "%s: unrecoverable controller\n", __func__); From patchwork Sun Nov 10 19:44:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 842645 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (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 85B8E15AF6 for ; Sun, 10 Nov 2024 19:48:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731268096; cv=none; b=XIZwBtbI6vAQyaPTjjUM6cyMwR/lAm1AgDGNd7JL2HwWOY3GS46N0266sF913A4n2R4cnsGXuVg45EDmWukwwinTA6ykDe95BI4E2fXmERX8QSvR8OQGTdOs0vMNEbl4jm2/un0vLTHdWbXa8fCu7rjpEmrAw5gqHvAT1w9Ojik= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731268096; c=relaxed/simple; bh=BVkVuV8l2VvSZV2E4PJpFjgR//tyISdKXd85DMZ8qZg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZC+STf5emZJEa/oeGkNjQI5cIOBiapWGG7QZMJttlvV7EalTGzRfygtJsCedenuLHVhvykZZd2rCDFMSw3tSzoGXokaeHxQYWABXVMI6UJFc3W1k2hpGZCGe6n5BP73BhWBfaiineO8fLE2Y9CmDM/uYgJaaPCy3dXVJigE5/fc= 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=W5KMD44C; arc=none smtp.client-ip=209.85.216.50 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="W5KMD44C" Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-2e3fca72a41so3072249a91.1 for ; Sun, 10 Nov 2024 11:48:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1731268093; x=1731872893; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=T+qJPwsVRdHMgfer/Fm/vBstaR7dHI5+5HxGIUSRkCs=; b=W5KMD44C9BByr8MDKoasKCGvi4a8KnxT53pS3Tp/xxjlFLLvbdLapEQINLbquETiFA rB+/E1GM+431gI1L0yOceFiWyiVr/2zljqnEuACEcZM8a/uyaCbSFURkkq43Od8wiGop CVm+rKvJj4HB3VxUYWjS1e12uCo68Y90a14Mo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731268093; x=1731872893; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T+qJPwsVRdHMgfer/Fm/vBstaR7dHI5+5HxGIUSRkCs=; b=pLGizApI+0qm05FMhJyBZXSbCbdl5E9vQCv9NPNBR5jzS/4lLS4sPXaDZOzsHy9M5j s0BYbSs8b8Oic3n7BHoTxizdTvOEmzKnwTb16n1LAEbz+roXrE5U9Sz3tLVeG2JYHjFo d93Fg9BDQmmp0KXMsLXtWGUzxizADbKZOX5vOTorQDPOUo1w4BbuNFIvouaL56ON7qWo OqcBW2fYef8YfwsKVySC96WL8BoXeEQsUw/RQ05rlzhLdhAlAy6v3CKAV71u0oBCzuMG Az0VEDruchwfE+ykdeuXJrsu9OOF09m06OcCBxk6t+kXtQv4Xdjgo7oBgFKjq5TeWNzL DrZA== X-Gm-Message-State: AOJu0Yygw8h5oC+R31+HpbzOPFhd/CulIFiTOJlpkp9DFX5BeLEVw0iK bQpdGWSeZKV/rGsVXNZ0fZWtS/l57p2lWyg62ylQonsWUGwJBF7IKS/spnUdSbPafjJOLEPXxp1 gKlMJ1uH9fzn74dzb9vtXnpRFiUU8d+3QjdxE5RTn9fdOtyA815/v7uFzHTA30zvpvhsk6C0y+9 IL7FpPrnkvmf3PfbQhR9QFZlhI5x958avc5pwMPg0fmtdmNA== X-Google-Smtp-Source: AGHT+IEu6mCVcmcSqwE/3XXxNe+sKvw8sjmLRMmAGGwjJH0/VpIQ2DABLpLygCu+c2/YQ18Ll5ivlQ== X-Received: by 2002:a17:90b:384f:b0:2e2:ddfa:24d5 with SMTP id 98e67ed59e1d1-2e9b1695600mr13267225a91.15.1731268093157; Sun, 10 Nov 2024 11:48:13 -0800 (PST) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e9b50dcd9bsm4867586a91.21.2024.11.10.11.48.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Nov 2024 11:48:12 -0800 (PST) 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 v1 2/5] mpi3mr: Config pages corrupt when back-to-back PHY enable/disable is executed via sysfs Date: Mon, 11 Nov 2024 01:14:02 +0530 Message-Id: <20241110194405.10108-3-ranjan.kumar@broadcom.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20241110194405.10108-1-ranjan.kumar@broadcom.com> References: <20241110194405.10108-1-ranjan.kumar@broadcom.com> Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Driver exposes an interface through SAS transport layer in sysfs to enable/disable Phys in a controller/expander. When multiple PHYS are disabled and enabled in a succession through a loop, some times, the persistent and current config pages related to SAS IO unit/SAS Expander pages could get corrupted. Driver to use separate config buffer memory for each config request. Signed-off-by: Prayas Patel Signed-off-by: Ranjan Kumar --- drivers/scsi/mpi3mr/mpi3mr.h | 9 ---- drivers/scsi/mpi3mr/mpi3mr_fw.c | 81 ++++++--------------------------- 2 files changed, 13 insertions(+), 77 deletions(-) diff --git a/drivers/scsi/mpi3mr/mpi3mr.h b/drivers/scsi/mpi3mr/mpi3mr.h index fcb0fa31536b..f06ee0aa9ee0 100644 --- a/drivers/scsi/mpi3mr/mpi3mr.h +++ b/drivers/scsi/mpi3mr/mpi3mr.h @@ -134,8 +134,6 @@ extern atomic64_t event_counter; #define MPI3MR_WATCHDOG_INTERVAL 1000 /* in milli seconds */ -#define MPI3MR_DEFAULT_CFG_PAGE_SZ 1024 /* in bytes */ - #define MPI3MR_RESET_TOPOLOGY_SETTLE_TIME 10 #define MPI3MR_SCMD_TIMEOUT (60 * HZ) @@ -1133,9 +1131,6 @@ struct scmd_priv { * @io_throttle_low: I/O size to stop throttle in 512b blocks * @num_io_throttle_group: Maximum number of throttle groups * @throttle_groups: Pointer to throttle group info structures - * @cfg_page: Default memory for configuration pages - * @cfg_page_dma: Configuration page DMA address - * @cfg_page_sz: Default configuration page memory size * @sas_transport_enabled: SAS transport enabled or not * @scsi_device_channel: Channel ID for SCSI devices * @transport_cmds: Command tracker for SAS transport commands @@ -1332,10 +1327,6 @@ struct mpi3mr_ioc { u16 num_io_throttle_group; struct mpi3mr_throttle_group_info *throttle_groups; - void *cfg_page; - dma_addr_t cfg_page_dma; - u16 cfg_page_sz; - u8 sas_transport_enabled; u8 scsi_device_channel; struct mpi3mr_drv_cmd transport_cmds; diff --git a/drivers/scsi/mpi3mr/mpi3mr_fw.c b/drivers/scsi/mpi3mr/mpi3mr_fw.c index f1ab76351bd8..2e6245bd4282 100644 --- a/drivers/scsi/mpi3mr/mpi3mr_fw.c +++ b/drivers/scsi/mpi3mr/mpi3mr_fw.c @@ -4186,17 +4186,6 @@ int mpi3mr_init_ioc(struct mpi3mr_ioc *mrioc) mpi3mr_read_tsu_interval(mrioc); mpi3mr_print_ioc_info(mrioc); - if (!mrioc->cfg_page) { - dprint_init(mrioc, "allocating config page buffers\n"); - mrioc->cfg_page_sz = MPI3MR_DEFAULT_CFG_PAGE_SZ; - mrioc->cfg_page = dma_alloc_coherent(&mrioc->pdev->dev, - mrioc->cfg_page_sz, &mrioc->cfg_page_dma, GFP_KERNEL); - if (!mrioc->cfg_page) { - retval = -1; - goto out_failed_noretry; - } - } - dprint_init(mrioc, "allocating host diag buffers\n"); mpi3mr_alloc_diag_bufs(mrioc); @@ -4768,11 +4757,7 @@ void mpi3mr_free_mem(struct mpi3mr_ioc *mrioc) mrioc->admin_req_base, mrioc->admin_req_dma); mrioc->admin_req_base = NULL; } - if (mrioc->cfg_page) { - dma_free_coherent(&mrioc->pdev->dev, mrioc->cfg_page_sz, - mrioc->cfg_page, mrioc->cfg_page_dma); - mrioc->cfg_page = NULL; - } + if (mrioc->pel_seqnum_virt) { dma_free_coherent(&mrioc->pdev->dev, mrioc->pel_seqnum_sz, mrioc->pel_seqnum_virt, mrioc->pel_seqnum_dma); @@ -5392,55 +5377,6 @@ int mpi3mr_soft_reset_handler(struct mpi3mr_ioc *mrioc, return retval; } - -/** - * mpi3mr_free_config_dma_memory - free memory for config page - * @mrioc: Adapter instance reference - * @mem_desc: memory descriptor structure - * - * Check whether the size of the buffer specified by the memory - * descriptor is greater than the default page size if so then - * free the memory pointed by the descriptor. - * - * Return: Nothing. - */ -static void mpi3mr_free_config_dma_memory(struct mpi3mr_ioc *mrioc, - struct dma_memory_desc *mem_desc) -{ - if ((mem_desc->size > mrioc->cfg_page_sz) && mem_desc->addr) { - dma_free_coherent(&mrioc->pdev->dev, mem_desc->size, - mem_desc->addr, mem_desc->dma_addr); - mem_desc->addr = NULL; - } -} - -/** - * mpi3mr_alloc_config_dma_memory - Alloc memory for config page - * @mrioc: Adapter instance reference - * @mem_desc: Memory descriptor to hold dma memory info - * - * This function allocates new dmaable memory or provides the - * default config page dmaable memory based on the memory size - * described by the descriptor. - * - * Return: 0 on success, non-zero on failure. - */ -static int mpi3mr_alloc_config_dma_memory(struct mpi3mr_ioc *mrioc, - struct dma_memory_desc *mem_desc) -{ - if (mem_desc->size > mrioc->cfg_page_sz) { - mem_desc->addr = dma_alloc_coherent(&mrioc->pdev->dev, - mem_desc->size, &mem_desc->dma_addr, GFP_KERNEL); - if (!mem_desc->addr) - return -ENOMEM; - } else { - mem_desc->addr = mrioc->cfg_page; - mem_desc->dma_addr = mrioc->cfg_page_dma; - memset(mem_desc->addr, 0, mrioc->cfg_page_sz); - } - return 0; -} - /** * mpi3mr_post_cfg_req - Issue config requests and wait * @mrioc: Adapter instance reference @@ -5596,8 +5532,12 @@ static int mpi3mr_process_cfg_req(struct mpi3mr_ioc *mrioc, cfg_req->page_length = cfg_hdr->page_length; cfg_req->page_version = cfg_hdr->page_version; } - if (mpi3mr_alloc_config_dma_memory(mrioc, &mem_desc)) - goto out; + + mem_desc.addr = dma_alloc_coherent(&mrioc->pdev->dev, + mem_desc.size, &mem_desc.dma_addr, GFP_KERNEL); + + if (!mem_desc.addr) + return retval; mpi3mr_add_sg_single(&cfg_req->sgl, sgl_flags, mem_desc.size, mem_desc.dma_addr); @@ -5626,7 +5566,12 @@ static int mpi3mr_process_cfg_req(struct mpi3mr_ioc *mrioc, } out: - mpi3mr_free_config_dma_memory(mrioc, &mem_desc); + if (mem_desc.addr) { + dma_free_coherent(&mrioc->pdev->dev, mem_desc.size, + mem_desc.addr, mem_desc.dma_addr); + mem_desc.addr = NULL; + } + return retval; } From patchwork Sun Nov 10 19:44:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 842644 Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) (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 78EC015AF6 for ; Sun, 10 Nov 2024 19:48:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731268098; cv=none; b=ARqlrsVGnG8dShD1Xf4B82Bx7xu9fBIQuzUfuivoWDBH8RMHuoly/xls0QwmhYJcB+7G+PLtWtwws+Rju/Ldj17xMi27JR6ABSoobt/4nG3mPJGU7ZONBCCgb5UUC1qo9Jm0dX/WOHxza1ulldIY3i19smI1Q+sBskKbMmOsQs8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731268098; c=relaxed/simple; bh=G3yrRIzvT94I4V2BES/ds3KmUu9J7GH2WmDcheXKNCM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=X9lzrZ9jVRCOyjtpjy+M+GL/4R3wjMP/voqCKJe1eO5Fy9nYHwNdBqcEiBjYEx6Sx6+2Wi1rDedkkuW05S0UN4YkPIUwuQZ6pE30fJAOyBmAg3aTNpAfvF/3pd9yr6CPlD2jSjEOXERJCdZvilrYG/qdkdHqt1/5AtmAWBYhEIg= 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=X+CVzPPP; arc=none smtp.client-ip=209.85.216.41 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="X+CVzPPP" Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-2e2eb9dde40so3129263a91.0 for ; Sun, 10 Nov 2024 11:48:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1731268096; x=1731872896; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DUgcLbf0wPXFxCR0F5IBMVuJGXazgSWCkI+Kie/ubw0=; b=X+CVzPPPyUxqOxFSJM/BTComi2v8PYjJGzmk+sYZnHlFa9juatDcfqZ5ghV40zi1P5 WYz+zd9jXUvJ1i3ZJJIvL1f+mXg4fcrjlVYpFBkIDLglNoFSLS+KwFtJlwNHzBw1wRpv E3pXPplDHf7USVGAnQGhaFYV/q+TwNTLzg/Ic= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731268096; x=1731872896; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DUgcLbf0wPXFxCR0F5IBMVuJGXazgSWCkI+Kie/ubw0=; b=q8ZnTXHmHaNUYl8Lx485h42eZ8hzCkCYtOzguT2sVzDehwgQud8o4C7sFMkE2AItDP uWcKqdcUgvER+nXdfAPBuXOG6e3M2B730Z9aekAmHncPkH77KCqjcOC+ZGgc4XVwYAtP EEIjR6Bik6eb8WXRlUbFnlavKchINlHRchZioD8SaZFvvSsdVXKojzYStEkPmkftwHxb Vxks3st2XlYGMT7rFefTMvZJ+cslfb9KLFOmOk9P+LlrjKw51sVuXa1Yob9qIwRh90p2 nDNaCncSVLdm945tpNKS+v/Atsd1CE5jExcuzmoX2dRJDDmodqQ+FYKleUkQGxSBnt6J z/kw== X-Gm-Message-State: AOJu0Yz4a6t45cpMAkhKVkIuZKq0SBr49Z4TgVPjdmG8Q0G2Ci/MbEL2 hp8BkXBiB1kXJqr+OJBdOptZ5gqGLWkcuDmZx4sURbqRfoBKiupsUFJ/EoLGWCkydPIN7HXn46d QNMUtAQw7pa06I7h2VQj44Wpsr8middh+TDDZUx6ujx79qQUGpwsercJa4MWr8w8ydjjnRcB27m U9jGphSmJNDU8e476jCNZv+AAwAgkEE8uvZ98hEaeHzo78lA== X-Google-Smtp-Source: AGHT+IEFGdtW9Hzfd8XSakKrr6NtIJx0hITvqW+bHVMA5hJyBdw3OX3zNncDDdHDt6gw1hOBI/Hakw== X-Received: by 2002:a17:90b:4acb:b0:2e2:be64:488f with SMTP id 98e67ed59e1d1-2e9b1655945mr14387889a91.6.1731268096298; Sun, 10 Nov 2024 11:48:16 -0800 (PST) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e9b50dcd9bsm4867586a91.21.2024.11.10.11.48.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Nov 2024 11:48:15 -0800 (PST) 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 v1 3/5] mpi3mr: mpi3mr: Start controller indexing from 0 in the driver Date: Mon, 11 Nov 2024 01:14:03 +0530 Message-Id: <20241110194405.10108-4-ranjan.kumar@broadcom.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20241110194405.10108-1-ranjan.kumar@broadcom.com> References: <20241110194405.10108-1-ranjan.kumar@broadcom.com> Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Instead of displaying the controller index starting from '1', the driver should display the controller index starting from '0'. Signed-off-by: Sumit Saxena Signed-off-by: Ranjan Kumar --- drivers/scsi/mpi3mr/mpi3mr_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/mpi3mr/mpi3mr_os.c b/drivers/scsi/mpi3mr/mpi3mr_os.c index 5f2f67acf8bf..1bef88130d0c 100644 --- a/drivers/scsi/mpi3mr/mpi3mr_os.c +++ b/drivers/scsi/mpi3mr/mpi3mr_os.c @@ -5215,7 +5215,7 @@ mpi3mr_probe(struct pci_dev *pdev, const struct pci_device_id *id) } mrioc = shost_priv(shost); - retval = ida_alloc_range(&mrioc_ida, 1, U8_MAX, GFP_KERNEL); + retval = ida_alloc_range(&mrioc_ida, 0, U8_MAX, GFP_KERNEL); if (retval < 0) goto id_alloc_failed; mrioc->id = (u8)retval; From patchwork Sun Nov 10 19:44:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 842429 Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) (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 9C68715AF6 for ; Sun, 10 Nov 2024 19:48:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731268102; cv=none; b=GULkTNY5EEjhZCeKFOlMNN3NdMKFrwlFFd5zwFWAfOyWzbAI6IHf63l6OAh++mvUaVlQBfUP9mVeC4j21DPi4khE9bz/m2WOmkEak76HXgkX8MZMWWA6uNKrkkvJwGwVxh23LJ6z1QjDZBYuNg3WOTXJSLqqfdVB+ikwLbBBnt0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731268102; c=relaxed/simple; bh=v1vop3wLystWxWfNX0dShT1GXWHJiATJWUH4po0Qv4o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=WIYpNGJJuFxH8neZBmtNcwoWDB2xGvZGemHXa9zAVyilRBsA7xsfFTNDJewaNozOoHPc1ddprDc6F1Ya5RymN6E2X5z0up/1Qnk5+J1sObSIug1OFE1916o/GkH3vaSdD1OoIyiBE+/tU/NQVQH/VV+b+gC2FtUqT+7Im5Uws0M= 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=CAm90DOU; arc=none smtp.client-ip=209.85.216.52 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="CAm90DOU" Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-2e3010478e6so3108138a91.1 for ; Sun, 10 Nov 2024 11:48:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1731268099; x=1731872899; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ztCbQ341QzkrBAmVAh3XDeFXbULNdiUdZkV0xQ3oTSE=; b=CAm90DOUQHucsriGZYD4Xz5PksPstF9/c0sVUSnf0mtyR6YRl0hOpzABvoxljukn1y 01TD4GyNBhjMd8q/xC0UaoO5v3pKp+MPXBY1NifVa9K3W0QWwpg2oDD8H43A2us9jYcS dEyEG8eo5q3MZb+7tdNrm2KXtVYvUdzIxOFnA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731268099; x=1731872899; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ztCbQ341QzkrBAmVAh3XDeFXbULNdiUdZkV0xQ3oTSE=; b=apBWJeyQXUndTdBPDN4oNDGW9p7hyhY08V3YI6NEZtu4rIkceoGibIsZndY/PcerKz qBuw0q5rwojzAuCq2aoJBHdP/+karIXagh2II+Kq1DsjEbaVa9fm39kCEZrM39Vl8N/k WwWSuXWZHet1vPzMAxslQR4zKIhE2jTrG8v01nHEV1MqPDslD4ByDXbxx5CjBa7Ny0no QCgFCF1T9xC8phldePewp0IAHV8bRWCONuQawdklGCSK1ySKClYDpDn5Ec4OYZ6FbT+t Q+byVsqMZwhA+n+QDZfX9O6OEOOo4qacEgQX1j1itMYqeumtFnxnv6JQhPn3VWl2cW2H 7uuQ== X-Gm-Message-State: AOJu0YzjwZ3rIny8Mqlu5wBa77eM1BxGlzkrMLYZpeemNvabkgPJq479 g3Z/eMsvviVRl3Iy1FMew34Q2L1fKQt3IClSh7PSVRFGF7acoG9u5vBuvw5UupiWQF7EUFcgX5T JEfV2yIxa9aIbEQK1hrCxi4kd2YxcUT/F7yjPx5Fywdcp0GNvL88/tpCUcVU2nHlJsWfJiAqmRr vXbx+whFNYEZLZiMaJZtAP/338FH8xoVQ1ql1iAtHJGthAhw== X-Google-Smtp-Source: AGHT+IEDRJm9tl05MLSGxKivPVfmfrKYiDTKxrtAX5d07tFBnZqufLuZFgfUPUZhs9vNa0epoa5mXQ== X-Received: by 2002:a17:90b:3911:b0:2e2:f04d:9f0d with SMTP id 98e67ed59e1d1-2e9b170c3camr14815670a91.16.1731268099359; Sun, 10 Nov 2024 11:48:19 -0800 (PST) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e9b50dcd9bsm4867586a91.21.2024.11.10.11.48.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Nov 2024 11:48:18 -0800 (PST) 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 v1 4/5] mpi3mr: Handling of fault code for insufficient power Date: Mon, 11 Nov 2024 01:14:04 +0530 Message-Id: <20241110194405.10108-5-ranjan.kumar@broadcom.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20241110194405.10108-1-ranjan.kumar@broadcom.com> References: <20241110194405.10108-1-ranjan.kumar@broadcom.com> Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 During load, modified the driver to check and fail before retrying the initialization for faults if the fault code for the in-sufficient power. And also modified the driver to check and mark the controller as unrecoverable instead of issuing reset in the watch dog timer if the fault code for the in-sufficient power. Signed-off-by: Prayas Patel Signed-off-by: Ranjan Kumar --- drivers/scsi/mpi3mr/mpi3mr_fw.c | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/drivers/scsi/mpi3mr/mpi3mr_fw.c b/drivers/scsi/mpi3mr/mpi3mr_fw.c index 2e6245bd4282..5ed31fe57474 100644 --- a/drivers/scsi/mpi3mr/mpi3mr_fw.c +++ b/drivers/scsi/mpi3mr/mpi3mr_fw.c @@ -1035,6 +1035,36 @@ static const char *mpi3mr_reset_type_name(u16 reset_type) return name; } +/** + * mpi3mr_is_fault_recoverable - Read fault code and decide + * whether the controller can be recoverable + * @mrioc: Adapter instance reference + * Return: true if fault is recoverable, false otherwise. + */ +static inline bool mpi3mr_is_fault_recoverable(struct mpi3mr_ioc *mrioc) +{ + u32 fault; + + fault = (readl(&mrioc->sysif_regs->fault) & + MPI3_SYSIF_FAULT_CODE_MASK); + + switch (fault) { + case MPI3_SYSIF_FAULT_CODE_COMPLETE_RESET_NEEDED: + case MPI3_SYSIF_FAULT_CODE_POWER_CYCLE_REQUIRED: + ioc_warn(mrioc, + "controller requires system power cycle, marking controller as unrecoverable\n"); + return false; + case MPI3_SYSIF_FAULT_CODE_INSUFFICIENT_PCI_SLOT_POWER: + ioc_warn(mrioc, + "controller faulted due to insufficient power,\n" + " try by connecting it to a different slot\n"); + return false; + default: + break; + } + return true; +} + /** * mpi3mr_print_fault_info - Display fault information * @mrioc: Adapter instance reference @@ -1373,6 +1403,11 @@ static int mpi3mr_bring_ioc_ready(struct mpi3mr_ioc *mrioc) ioc_info(mrioc, "ioc_status(0x%08x), ioc_config(0x%08x), ioc_info(0x%016llx) at the bringup\n", ioc_status, ioc_config, base_info); + if (!mpi3mr_is_fault_recoverable(mrioc)) { + mrioc->unrecoverable = 1; + goto out_device_not_present; + } + /*The timeout value is in 2sec unit, changing it to seconds*/ mrioc->ready_timeout = ((base_info & MPI3_SYSIF_IOC_INFO_LOW_TIMEOUT_MASK) >> @@ -2734,6 +2769,11 @@ static void mpi3mr_watchdog_work(struct work_struct *work) mpi3mr_print_fault_info(mrioc); mrioc->diagsave_timeout = 0; + if (!mpi3mr_is_fault_recoverable(mrioc)) { + mrioc->unrecoverable = 1; + goto schedule_work; + } + switch (trigger_data.fault) { case MPI3_SYSIF_FAULT_CODE_COMPLETE_RESET_NEEDED: case MPI3_SYSIF_FAULT_CODE_POWER_CYCLE_REQUIRED: From patchwork Sun Nov 10 19:44:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 842643 Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) (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 BFB2915AF6 for ; Sun, 10 Nov 2024 19:48:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731268105; cv=none; b=aE3qZrR8I8LJJ8paKuUuP+cYncCOdD39AfWtZ7LsKxOMbLB4FmvYxhJrG4EyMXLqOAncGt+5KFav6vfvP7d7y3+LxDpt6npPtQm4JXSObJb9L0jDVYQSUO/aJD3U81AcoJAtFrKEuZQmKec6boIZpFu9odmNHumODZnU6+rwZeo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731268105; c=relaxed/simple; bh=0bIVxI+EMAm5BvOMqSR7tfnVUX8i5BO/ijqyZy+IkHc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qZBo9fIMDvBCdB8ulget4rtPNEtwpXmiLrq3kMrQXz5oeKk/VMzD9ErF0gcxuSMeFKZ/O3GWbIGDGir0xtwVM0xr6C3lYQxS5I/Do7EcOJkNMONSeISi2FJ4U8vaf3tV57JoUzGxPrfFxXWSr0waBIWtHLO0ijDntxR3duFiGhI= 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=Ss5nkIdr; arc=none smtp.client-ip=209.85.215.181 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="Ss5nkIdr" Received: by mail-pg1-f181.google.com with SMTP id 41be03b00d2f7-7ee7e87f6e4so2874127a12.2 for ; Sun, 10 Nov 2024 11:48:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1731268103; x=1731872903; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7fFWL3tfYC6pGJrFqs7JRhop7HEAFGKnhxz55QaxF0k=; b=Ss5nkIdr00LS+oIbweaz2LJP9fKsiXgNsMIWnuQOGhTOEcAR/BqNH3eXxxSmLWDoYX 1CJe0XMDQULf+w6jvKJ+NQqy4Oiv/NVLLBDWApi6MumIxj5oxVD/D1I5iTbnsmvoUvWG x8yVhd7dIZ+HzBsjHUj0ISYGRZMb/4K/+RktU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731268103; x=1731872903; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7fFWL3tfYC6pGJrFqs7JRhop7HEAFGKnhxz55QaxF0k=; b=ZpVBiSLaPptJL+y2xTiFE+xlQ44ZeR1za1la8WGCs1aV/SIr5MwC0QrwwtlPfcqpYG IGxSWFAlMKLhHeGFnY0wBezcsdf15Ml806rxdUZM22ikWYwYLxQqwEklZNNwD7WWXOnO uwN11jIk8yo+AzBroa9hDw2zetl9Ds9sG9pDGLm238ES/cXjqZzOTVCS/y5pIUFlcrWE 1aD25RudoMTXrdb2f0Oy/uVIkwCT4rXx+MjzZsW0lPpyxLJQeUdMxi9prI3uYsM/GsA3 pGOeZMHAGP/yVgm6dxJnpxyBhMFvyQ0G2FyCvse22eUqZcwLidWjLeCumS53X0Tk8z4W TnqA== X-Gm-Message-State: AOJu0Yxa9vYiU5Tw+Vf7CUXwrEGDjzx9Bj1M07RMuEW0b+SWsp9KhrRy tIO3NlkMQFrhVVwUVc06GmdlWAfQYdtkBpd4gbVzTxfhn0jM3IpmzPhHEOR6nr1x4VEvFYd4vdx /zax3O2l1elXKLz1zppi45lwA+SChgWroecBWF2zVJyx5307adxSlm3QLMYeCYznWUE4c8zehbx 0jCSSRYUcS09ai3FcGoRHJKIFa0Cl2nFN2+wXioxrvt5KN6g== X-Google-Smtp-Source: AGHT+IHnlfZlqV+4RkYWaGYm5jDnB4gnjrxLpfvoEdcej5Zi1j27vGr3M/q2UTNqtIGCiTSpsVB2Dg== X-Received: by 2002:a17:90b:2ece:b0:2e2:d33b:cc with SMTP id 98e67ed59e1d1-2e9b172e0bemr14404145a91.21.1731268102509; Sun, 10 Nov 2024 11:48:22 -0800 (PST) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e9b50dcd9bsm4867586a91.21.2024.11.10.11.48.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Nov 2024 11:48:22 -0800 (PST) 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 v1 5/5] mpi3mr: Update driver version to 8.12.0.3.50 Date: Mon, 11 Nov 2024 01:14:05 +0530 Message-Id: <20241110194405.10108-6-ranjan.kumar@broadcom.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20241110194405.10108-1-ranjan.kumar@broadcom.com> References: <20241110194405.10108-1-ranjan.kumar@broadcom.com> Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Update driver version to 8.12.0.3.50 Signed-off-by: Ranjan Kumar --- drivers/scsi/mpi3mr/mpi3mr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpi3mr/mpi3mr.h b/drivers/scsi/mpi3mr/mpi3mr.h index f06ee0aa9ee0..1c1a1546ab67 100644 --- a/drivers/scsi/mpi3mr/mpi3mr.h +++ b/drivers/scsi/mpi3mr/mpi3mr.h @@ -57,8 +57,8 @@ extern struct list_head mrioc_list; extern int prot_mask; extern atomic64_t event_counter; -#define MPI3MR_DRIVER_VERSION "8.12.0.0.50" -#define MPI3MR_DRIVER_RELDATE "05-Sept-2024" +#define MPI3MR_DRIVER_VERSION "8.12.0.3.50" +#define MPI3MR_DRIVER_RELDATE "11-November-2024" #define MPI3MR_DRIVER_NAME "mpi3mr" #define MPI3MR_DRIVER_LICENSE "GPL"