qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
To: Hannes Reinecke <hare@suse.de>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH 1/4] megasas: Add more controller property definitions
Date: Tue, 18 May 2010 01:46:46 -0700	[thread overview]
Message-ID: <1274172406.7348.154.camel@haakon2.linux-iscsi.org> (raw)
In-Reply-To: <20100518065656.392942A361@ochil.suse.de>

On Tue, 2010-05-18 at 08:56 +0200, Hannes Reinecke wrote:
> The megaraid_sas driver has some more controller property defintions.
> 
> Signed-off-by: Hannes Reinecke <hare@suse.de>
> ---
>  hw/mfi.h |   41 +++++++++++++++++++++++++++++++++++++++--
>  1 files changed, 39 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/mfi.h b/hw/mfi.h
> index f3c82e0..312563e 100644
> --- a/hw/mfi.h
> +++ b/hw/mfi.h
> @@ -508,7 +508,7 @@ struct mfi_init_qinfo {
>  	uint32_t	ci_addr_hi;
>  } __attribute__ ((packed));
>  
> -/* SAS (?) controller properties, part of mfi_ctrl_info */
> +/* Controller properties */
>  struct mfi_ctrl_props {
>  	uint16_t	seq_num;
>  	uint16_t	pred_fail_poll_interval;
> @@ -531,7 +531,44 @@ struct mfi_ctrl_props {
>  	uint16_t	ecc_bucket_leak_rate;
>  	uint8_t		restore_hotspare_on_insertion;
>  	uint8_t		expose_encl_devices;
> -	uint8_t		reserved[38];
> +	uint8_t		maintainPdFailHistory;
> +	uint8_t		disallowHostRequestReordering;
> +	uint8_t		abortCCOnError;
> +	uint8_t		loadBalanceMode;
> +	uint8_t		disableAutoDetectBackplane;
> +	uint8_t		snapVDSpace;
> +	struct {
> +		uint32_t	copyBackDisabled	: 1;     // set TRUE to disable copyBack (0=copback enabled)
> +		uint32_t	SMARTerEnabled		: 1;
> +		uint32_t	prCorrectUnconfiguredAreas  : 1;
> +		uint32_t	useFdeOnly		: 1;
> +		uint32_t	disableNCQ		: 1;
> +		uint32_t	SSDSMARTerEnabled	: 1;
> +		uint32_t	SSDPatrolReadEnabled	: 1;
> +		uint32_t	enableSpinDownUnconfigured  : 1;
> +		uint32_t	autoEnhancedImport	: 1;
> +		uint32_t	enableSecretKeyControl	: 1;
> +		uint32_t	disableOnlineCtrlReset	: 1;
> +		uint32_t	allowBootWithPinnedCache : 1;
> +		uint32_t	disableSpinDownHS	: 1;
> +		uint32_t	enableJBOD		: 1;
> +		uint32_t	reserved		:18;
> +	} OnOffProperties;
> +	uint8_t		autoSnapVDSpace; /* % of source LD to be
> +					  * reserved for auto snapshot
> +					  * in snapshot repository, for
> +					  * metadata and user data
> +					  * 1=5%, 2=10%, 3=15% and so on
> +					  */
> +	uint8_t		viewSpace;	 /* snapshot writeable VIEWs
> +					  * capacity as a % of source LD
> +					  * capacity. 0=READ only
> +					  * 1=5%, 2=10%, 3=15% and so on
> +					  */
> +	uint16_t	spinDownTime;	 /* # of idle minutes before device
> +					  * is spun down (0=use FW defaults)
> +					  */
> +	uint8_t		reserved[24];
>  } __attribute__ ((packed));
>  
>  /* PCI information about the card. */

Thanks, commited as d2ad0ac2085e00

Best,

--nab

      reply	other threads:[~2010-05-18 11:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-18  6:56 [Qemu-devel] [PATCH 1/4] megasas: Add more controller property definitions Hannes Reinecke
2010-05-18  8:46 ` Nicholas A. Bellinger [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=1274172406.7348.154.camel@haakon2.linux-iscsi.org \
    --to=nab@linux-iscsi.org \
    --cc=hare@suse.de \
    --cc=qemu-devel@nongnu.org \
    /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).