From: Sumit Saxena <sumit.saxena@avagotech.com>
To: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: linux-scsi@vger.kernel.org, thenzl@redhat.com, hch@infradead.org,
jbottomley@parallels.com,
Kashyap Desai <kashyap.desai@avagotech.com>,
Kiran Kumar Kasturi <kiran-kumar.kasturi@avagotech.com>,
Uday Lingala <uday.lingala@avagotech.com>
Subject: RE: [PATCH 2/7] megaraid_sas : Support for max_io_size 1MB
Date: Wed, 12 Aug 2015 11:39:12 +0530 [thread overview]
Message-ID: <71e5118ad7612c601cef07c5696340d9@mail.gmail.com> (raw)
In-Reply-To: <yq1d1yte07y.fsf@sermon.lab.mkp.net>
> -----Original Message-----
> From: Martin K. Petersen [mailto:martin.petersen@oracle.com]
> Sent: Wednesday, August 12, 2015 7:29 AM
> To: Sumit.Saxena@avagotech.com
> Cc: linux-scsi@vger.kernel.org; thenzl@redhat.com;
> martin.petersen@oracle.com; hch@infradead.org; jbottomley@parallels.com;
> kashyap.desai@avagotech.com; kiran-kumar.kasturi@avagotech.com;
> uday.lingala@avagotech.com
> Subject: Re: [PATCH 2/7] megaraid_sas : Support for max_io_size 1MB
>
>
> Sumit,
>
> @@ -1239,7 +1239,9 @@ union megasas_sgl_frame { typedef union
> _MFI_CAPABILITIES {
> struct {
> #if defined(__BIG_ENDIAN_BITFIELD)
> - u32 reserved:25;
> + u32 reserved:23;
> + u32 support_ext_io_size:1;
> + u32 support_ext_queue_depth:1;
> u32 security_protocol_cmds_fw:1;
> u32 support_core_affinity:1;
> u32 support_ndrive_r1_lb:1;
> @@ -1255,7 +1257,9 @@ typedef union _MFI_CAPABILITIES {
> u32 support_ndrive_r1_lb:1;
> u32 support_core_affinity:1;
> u32 security_protocol_cmds_fw:1;
> - u32 reserved:25;
> + u32 support_ext_queue_depth:1;
> + u32 support_ext_io_size:1;
> + u32 reserved:23;
> #endif
> } mfi_capabilities;
> __le32 reg;
>
> Mystery field: support_ext_queue_depth.
This is added to keep driver and firmware API naming in sync, will create
separate patch for syncing drivers and firmware APIs changes.
>
> - fusion->sg_dma_pool = pci_pool_create("megasas sg pool fusion",
> - instance->pdev,
> - total_sz_chain_frame, 4,
> - 0);
> + fusion->sg_dma_pool = pci_pool_create("sg_pool_fusion", instance-
> >pdev,
> + instance-
> >max_chain_frame_sz,
> + 4, 0);
> +
>
> Why rename the pools? I don't particularly mind but megasas is probably
more
> descriptive for most users than fusion is.
There are two types of controllers megasas drivers support- 1)MFI
controllers 2)Fusion controllers so used "fusion" name here.
>
> @@ -1096,15 +1093,40 @@ megasas_init_adapter_fusion(struct
> megasas_instance *instance)
> (MEGA_MPI2_RAID_DEFAULT_IO_FRAME_SIZE *
> (max_cmd + 1)); /* Extra 1 for SMID 0 */
>
> + scratch_pad_2 = readl(&instance->reg_set->outbound_scratch_pad_2);
>
> scratch_pad_2 sounds like a pretty temporary thing rather than an
officially
> exported interface. But I guess that's what it's called.
Correct.
>
> + /* If scratch_pad_2 & MEGASAS_MAX_CHAIN_SIZE_UNITS_MASK is set,
> + * Firmware support extended IO chain frame which is 4 time more
>
> Nitpick: s/time/times/
Will rectify this:)
>
> + if (scratch_pad_2 & MEGASAS_MAX_CHAIN_SIZE_UNITS_MASK)
> + instance->max_chain_frame_sz =
> + ((scratch_pad_2 & MEGASAS_MAX_CHAIN_SIZE_MASK)
> >> 5)
> + * MEGASAS_1MB_IO;
>
> Magic number 5. Please define MEGASAS_MAX_CHAIN_SHIFT and use that.
Agree..will do this.
>
> @@ -117,7 +121,9 @@ struct RAID_CONTEXT {
> u8 numSGE;
> __le16 configSeqNum;
> u8 spanArm;
> - u8 resvd2[3];
> + u8 priority;
> + u8 numSGEExt; /* 0x1E 1M IO support */
> + u8 resvd2; /* 0x1F */
> };
>
> Mystery priority addition.
Again this is to keep driver and firmware APIs in sync and will do all
such changes in separate patch.
>
> --
> Martin K. Petersen Oracle Linux Engineering
prev parent reply other threads:[~2015-08-12 6:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-07 12:23 [PATCH 2/7] megaraid_sas : Support for max_io_size 1MB Sumit.Saxena
2015-08-12 1:58 ` Martin K. Petersen
2015-08-12 6:09 ` Sumit Saxena [this message]
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=71e5118ad7612c601cef07c5696340d9@mail.gmail.com \
--to=sumit.saxena@avagotech.com \
--cc=hch@infradead.org \
--cc=jbottomley@parallels.com \
--cc=kashyap.desai@avagotech.com \
--cc=kiran-kumar.kasturi@avagotech.com \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=thenzl@redhat.com \
--cc=uday.lingala@avagotech.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;
as well as URLs for NNTP newsgroup(s).