public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Bart Van Assche <bvanassche@acm.org>
To: Sumit Saxena <sumit.saxena@broadcom.com>, linux-scsi@vger.kernel.org
Cc: martin.petersen@oracle.com, sathya.prakash@broadcom.com,
	kashyap.desai@broadcom.com, chandrakanth.patil@broadcom.com,
	sreekanth.reddy@broadcom.com, prayas.patel@broadcom.com
Subject: Re: [PATCH 2/7] mpi3mr: add support for driver commands
Date: Wed, 23 Mar 2022 06:35:14 -0700	[thread overview]
Message-ID: <982a8a95-e431-6ce7-767a-8d67c01cd6be@acm.org> (raw)
In-Reply-To: <20220322122107.8482-3-sumit.saxena@broadcom.com>

On 3/22/22 05:21, Sumit Saxena wrote:
> diff --git a/drivers/scsi/mpi3mr/mpi3mr_app.h b/drivers/scsi/mpi3mr/mpi3mr_app.h
> index 4bc31d45c610..d324a13c672c 100644
> --- a/drivers/scsi/mpi3mr/mpi3mr_app.h
> +++ b/drivers/scsi/mpi3mr/mpi3mr_app.h
> @@ -10,6 +10,476 @@
>   #ifndef MPI3MR_APP_H_INCLUDED
>   #define MPI3MR_APP_H_INCLUDED
>   
> +
> +/* Definitions for BSG commands */
> +#define MPI3MR_IOCTL_VERSION			0x06
> +
> +#define MPI3MR_APP_DEFAULT_TIMEOUT		(60) /*seconds*/
> +
> +#define MPI3MR_BSG_ADPTYPE_UNKNOWN		0
> +#define MPI3MR_BSG_ADPTYPE_AVGFAMILY		1
> +
> +#define MPI3MR_BSG_ADPSTATE_UNKNOWN		0
> +#define MPI3MR_BSG_ADPSTATE_OPERATIONAL		1
> +#define MPI3MR_BSG_ADPSTATE_FAULT		2
> +#define MPI3MR_BSG_ADPSTATE_IN_RESET		3
> +#define MPI3MR_BSG_ADPSTATE_UNRECOVERABLE	4
> +
> +#define MPI3MR_BSG_ADPRESET_UNKNOWN		0
> +#define MPI3MR_BSG_ADPRESET_SOFT		1
> +#define MPI3MR_BSG_ADPRESET_DIAG_FAULT		2
> +
> +#define MPI3MR_BSG_LOGDATA_MAX_ENTRIES		400
> +#define MPI3MR_BSG_LOGDATA_ENTRY_HEADER_SZ	4
> +
> +#define MPI3MR_DRVBSG_OPCODE_UNKNOWN		0
> +#define MPI3MR_DRVBSG_OPCODE_ADPINFO		1
> +#define MPI3MR_DRVBSG_OPCODE_ADPRESET		2
> +#define MPI3MR_DRVBSG_OPCODE_ALLTGTDEVINFO	4
> +#define MPI3MR_DRVBSG_OPCODE_GETCHGCNT		5
> +#define MPI3MR_DRVBSG_OPCODE_LOGDATAENABLE	6
> +#define MPI3MR_DRVBSG_OPCODE_PELENABLE		7
> +#define MPI3MR_DRVBSG_OPCODE_GETLOGDATA		8
> +#define MPI3MR_DRVBSG_OPCODE_QUERY_HDB		9
> +#define MPI3MR_DRVBSG_OPCODE_REPOST_HDB		10
> +#define MPI3MR_DRVBSG_OPCODE_UPLOAD_HDB		11
> +#define MPI3MR_DRVBSG_OPCODE_REFRESH_HDB_TRIGGERS	12

Most if not all definitions in this file are needed by user space 
applications that use the new BSG interface. Please move the definitions 
from this file that are used by user space applications into a header 
file under include/uapi/.

Thanks,

Bart.

  reply	other threads:[~2022-03-23 13:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-22 12:21 [PATCH 0/7] mpi3mr: add BSG interface support for controller management Sumit Saxena
2022-03-22 12:21 ` [PATCH 1/7] mpi3mr: add BSG device " Sumit Saxena
2022-03-22 12:21 ` [PATCH 2/7] mpi3mr: add support for driver commands Sumit Saxena
2022-03-23 13:35   ` Bart Van Assche [this message]
2022-03-25  5:25     ` Sumit Saxena
2022-03-22 12:21 ` [PATCH 3/7] mpi3mr: add support for MPT commands Sumit Saxena
2022-03-22 12:21 ` [PATCH 4/7] mpi3mr: add support for PEL commands Sumit Saxena
2022-03-22 12:21 ` [PATCH 5/7] mpi3mr: expose adapter state to sysfs Sumit Saxena
2022-03-22 12:21 ` [PATCH 6/7] mpi3mr: add support for nvme pass-through Sumit Saxena
2022-03-22 12:21 ` [PATCH 7/7] mpi3mr: update driver version to 8.0.0.69.0 Sumit Saxena

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=982a8a95-e431-6ce7-767a-8d67c01cd6be@acm.org \
    --to=bvanassche@acm.org \
    --cc=chandrakanth.patil@broadcom.com \
    --cc=kashyap.desai@broadcom.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=prayas.patel@broadcom.com \
    --cc=sathya.prakash@broadcom.com \
    --cc=sreekanth.reddy@broadcom.com \
    --cc=sumit.saxena@broadcom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox