All of lore.kernel.org
 help / color / mirror / Atom feed
From: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
To: Johannes Thumshirn <jthumshirn@suse.de>
Cc: "jejb@linux.vnet.ibm.com" <jejb@linux.vnet.ibm.com>,
	"martin.petersen@oracle.com" <martin.petersen@oracle.com>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	Dave Carroll <david.carroll@microsemi.com>,
	Gana Sridaran <gana.sridaran@microsemi.com>,
	Scott Benesh <scott.benesh@microsemi.com>
Subject: RE: [PATCH V2 03/24] aacraid: added support for init_struct_8
Date: Thu, 26 Jan 2017 18:42:55 +0000	[thread overview]
Message-ID: <4D8E82A446BF54499747901DBDEB737A63C588D6@avsrvexchmbx2.microsemi.net> (raw)
In-Reply-To: <20170126083700.GE3591@linux-x5ow.site>



> -----Original Message-----
> From: Johannes Thumshirn [mailto:jthumshirn@suse.de]
> Sent: Thursday, January 26, 2017 12:37 AM
> To: Raghava Aditya Renukunta
> <RaghavaAditya.Renukunta@microsemi.com>
> Cc: jejb@linux.vnet.ibm.com; martin.petersen@oracle.com; linux-
> scsi@vger.kernel.org; Dave Carroll <david.carroll@microsemi.com>; Gana
> Sridaran <gana.sridaran@microsemi.com>; Scott Benesh
> <scott.benesh@microsemi.com>
> Subject: Re: [PATCH V2 03/24] aacraid: added support for init_struct_8
> 
> EXTERNAL EMAIL
> 
> 
> On Wed, Jan 25, 2017 at 10:00:50AM -0800, Raghava Aditya Renukunta wrote:
> > This  patch lays the groundwork for supporting the new HBA-1000
> controller
> > family.A new INIT structure INIT_STRUCT_8 has been added which allows
> for a
> > variable size for MSI-x vectors among other things,  and is used for both
> > Series-8, HBA-1000 and SmartIOC-2000.
> >
> > Signed-off-by: Raghava Aditya Renukunta
> <raghavaaditya.renukunta@microsemi.com>
> > Signed-off-by: Dave Carroll <David.Carroll@microsemi.com>
> >
> > ---
> 
> [...]
> 
> > -struct aac_init
> > +union aac_init
> >  {
> > -     __le32  InitStructRevision;
> > -     __le32  Sa_MSIXVectors;
> > -     __le32  fsrev;
> > -     __le32  CommHeaderAddress;
> > -     __le32  FastIoCommAreaAddress;
> > -     __le32  AdapterFibsPhysicalAddress;
> > -     __le32  AdapterFibsVirtualAddress;
> > -     __le32  AdapterFibsSize;
> > -     __le32  AdapterFibAlign;
> > -     __le32  printfbuf;
> > -     __le32  printfbufsiz;
> > -     __le32  HostPhysMemPages;   /* number of 4k pages of host
> > -                                    physical memory */
> > -     __le32  HostElapsedSeconds; /* number of seconds since 1970. */
> > -     /*
> > -      * ADAPTER_INIT_STRUCT_REVISION_4 begins here
> > -      */
> > -     __le32  InitFlags;      /* flags for supported features */
> > +     struct _r7 {
> > +             __le32  InitStructRevision;
> > +             __le32  NoOfMSIXVectors;
> > +             __le32  fsrev;
> > +             __le32  CommHeaderAddress;
> > +             __le32  FastIoCommAreaAddress;
> > +             __le32  AdapterFibsPhysicalAddress;
> > +             __le32  AdapterFibsVirtualAddress;
> > +             __le32  AdapterFibsSize;
> > +             __le32  AdapterFibAlign;
> > +             __le32  printfbuf;
> > +             __le32  printfbufsiz;
> > +             /* number of 4k pages of host phys. mem. */
> > +             __le32  HostPhysMemPages;
> > +             /* number of seconds since 1970. */
> > +             __le32  HostElapsedSeconds;
> > +             /* ADAPTER_INIT_STRUCT_REVISION_4 begins here */
> > +             __le32  InitFlags;      /* flags for supported features */
> >  #define INITFLAGS_NEW_COMM_SUPPORTED 0x00000001
> >  #define INITFLAGS_DRIVER_USES_UTC_TIME       0x00000010
> >  #define INITFLAGS_DRIVER_SUPPORTS_PM 0x00000020
> >  #define INITFLAGS_NEW_COMM_TYPE1_SUPPORTED   0x00000040
> >  #define INITFLAGS_FAST_JBOD_SUPPORTED        0x00000080
> >  #define INITFLAGS_NEW_COMM_TYPE2_SUPPORTED   0x00000100
> > -     __le32  MaxIoCommands;  /* max outstanding commands */
> > -     __le32  MaxIoSize;      /* largest I/O command */
> > -     __le32  MaxFibSize;     /* largest FIB to adapter */
> > -     /* ADAPTER_INIT_STRUCT_REVISION_5 begins here */
> > -     __le32  MaxNumAif;      /* max number of aif */
> > -     /* ADAPTER_INIT_STRUCT_REVISION_6 begins here */
> > -     __le32  HostRRQ_AddrLow;
> > -     __le32  HostRRQ_AddrHigh;       /* Host RRQ (response queue) for SRC
> */
> > +#define INITFLAGS_DRIVER_SUPPORTS_HBA_MODE  0x00000400
> > +             __le32  MaxIoCommands;  /* max outstanding commands */
> > +             __le32  MaxIoSize;      /* largest I/O command */
> > +             __le32  MaxFibSize;     /* largest FIB to adapter */
> > +             /* ADAPTER_INIT_STRUCT_REVISION_5 begins here */
> > +             __le32  MaxNumAif;      /* max number of aif */
> > +             /* ADAPTER_INIT_STRUCT_REVISION_6 begins here */
> > +             /* Host RRQ (response queue) for SRC */
> > +             __le32  HostRRQ_AddrLow;
> > +             __le32  HostRRQ_AddrHigh;
> > +     } r7;
> > +     struct _r8 {
> > +             /* ADAPTER_INIT_STRUCT_REVISION_8 */
> > +             __le32  InitStructRevision;
> > +             __le32  RRQueueCount;
> > +             __le32  HostElapsedSeconds; /* number of seconds since 1970. */
> > +             __le32  InitFlags;
> > +             __le32  MaxIoSize;      /* largest I/O command */
> > +             __le32  MaxNumAif;      /* max number of aif */
> > +             __le32  Reserved1;
> > +             __le32  Reserved2;
> > +             struct _rrq {
> > +                     __le32  Host_AddrLow;
> > +                     __le32  Host_AddrHigh;
> > +                     __le16  MSIX_Id;
> > +                     __le16  ElementCount;
> > +                     __le16  Comp_Thresh;
> > +                     __le16  Unused;
> > +             } rrq[1];               /* up to 64 RRQ addresses */
> > +     } r8;
> >  };
> 
> Is this CamelCase pollution really needed? You're touching it anyways, so
> wouldn't it be a great chance to run
> sed -e 's/\([A-Z]\)/_\l\1/g' -e 's/^_\([a-z]\)/\1/g'
> on the new structures?
> 

I missed that, but I agree I will remove it in the next patch series.
Thank for pointing that out.


Regards,
Raghava Aditya


  reply	other threads:[~2017-01-26 18:42 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-25 18:00 [PATCH V2 00/24] aacraid: Patchset for Smart Family support Raghava Aditya Renukunta
2017-01-25 18:00 ` [PATCH V2 01/24] aacraid: Remove duplicate irq management code Raghava Aditya Renukunta
2017-01-26  8:26   ` Johannes Thumshirn
2017-01-25 18:00 ` [PATCH V2 02/24] aacraid: Added aacraid.h include guard Raghava Aditya Renukunta
2017-01-26  8:27   ` Johannes Thumshirn
2017-01-25 18:00 ` [PATCH V2 03/24] aacraid: added support for init_struct_8 Raghava Aditya Renukunta
2017-01-26  8:37   ` Johannes Thumshirn
2017-01-26 18:42     ` Raghava Aditya Renukunta [this message]
2017-01-25 18:00 ` [PATCH V2 04/24] aacraid: Added sa firmware support Raghava Aditya Renukunta
2017-01-26  8:55   ` Johannes Thumshirn
2017-01-26 18:43     ` Raghava Aditya Renukunta
2017-01-25 18:00 ` [PATCH V2 05/24] aacraid: Retrieve and update the device types Raghava Aditya Renukunta
2017-01-26  8:59   ` Johannes Thumshirn
2017-01-26 18:44     ` Raghava Aditya Renukunta
2017-01-26 21:00       ` Raghava Aditya Renukunta
2017-01-27  8:08         ` Johannes Thumshirn
2017-01-27 18:24           ` Raghava Aditya Renukunta
2017-01-25 18:00 ` [PATCH V2 06/24] aacraid: Reworked scsi command submission path Raghava Aditya Renukunta
2017-01-26  9:05   ` Johannes Thumshirn
2017-01-26 18:52     ` Raghava Aditya Renukunta
2017-01-25 18:00 ` [PATCH V2 07/24] aacraid: Process Error for response I/O Raghava Aditya Renukunta
2017-01-26  9:06   ` Johannes Thumshirn
2017-01-25 18:00 ` [PATCH V2 08/24] aacraid: Added support for response path Raghava Aditya Renukunta
2017-01-25 18:00 ` [PATCH V2 09/24] aacraid: Added support for read medium error Raghava Aditya Renukunta
2017-01-25 18:00 ` [PATCH V2 10/24] aacraid: Reworked aac_command_thread Raghava Aditya Renukunta
2017-01-25 18:00 ` [PATCH V2 11/24] aacraid: Added support for periodic wellness sync Raghava Aditya Renukunta
2017-01-25 18:00 ` [PATCH V2 12/24] aacraid: Retrieve Queue Depth from Adapter FW Raghava Aditya Renukunta
2017-01-25 18:01 ` [PATCH V2 13/24] aacraid: Added support to set QD of attached drives Raghava Aditya Renukunta
2017-01-25 18:01 ` [PATCH V2 14/24] aacraid: Added support for hotplug Raghava Aditya Renukunta
2017-01-25 18:01 ` [PATCH V2 15/24] aacraid: Include HBA direct interface Raghava Aditya Renukunta
2017-01-25 18:01 ` [PATCH V2 16/24] aacraid: Add task management functionality Raghava Aditya Renukunta
2017-01-25 18:01 ` [PATCH V2 17/24] aacraid: Added support to abort cmd and reset lun Raghava Aditya Renukunta
2017-01-25 18:01 ` [PATCH V2 18/24] aacraid: VPD 83 type3 support Raghava Aditya Renukunta
2017-01-25 18:01 ` [PATCH V2 19/24] aacraid: Added new IWBR reset Raghava Aditya Renukunta
2017-01-25 18:01 ` [PATCH V2 20/24] aacraid: Added ioctl to trigger IOP/IWBR reset Raghava Aditya Renukunta
2017-01-25 18:01 ` [PATCH V2 21/24] aacraid: Retrieve HBA host information ioctl Raghava Aditya Renukunta
2017-01-25 18:01 ` [PATCH V2 22/24] aacraid: Update copyrights Raghava Aditya Renukunta
2017-01-25 18:01 ` [PATCH V2 23/24] aacraid: Change Driver Version Prefix Raghava Aditya Renukunta
2017-01-25 18:01 ` [PATCH V2 24/24] aacraid: update version Raghava Aditya Renukunta

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=4D8E82A446BF54499747901DBDEB737A63C588D6@avsrvexchmbx2.microsemi.net \
    --to=raghavaaditya.renukunta@microsemi.com \
    --cc=david.carroll@microsemi.com \
    --cc=gana.sridaran@microsemi.com \
    --cc=jejb@linux.vnet.ibm.com \
    --cc=jthumshirn@suse.de \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=scott.benesh@microsemi.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.