Commit a7129a54 authored by Mahesh Rajashekhara's avatar Mahesh Rajashekhara Committed by James Bottomley

aacraid: 240 simple volume support

Signed-off-by: default avatarMahesh Rajashekhara <Mahesh.Rajashekhara@pmcs.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Reviewed-by: default avatarMurthy Bhat <Murthy.Bhat@pmcs.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Odin.com>
parent 5d910649
...@@ -462,6 +462,11 @@ int aac_get_containers(struct aac_dev *dev) ...@@ -462,6 +462,11 @@ int aac_get_containers(struct aac_dev *dev)
if (status >= 0) { if (status >= 0) {
dresp = (struct aac_get_container_count_resp *)fib_data(fibptr); dresp = (struct aac_get_container_count_resp *)fib_data(fibptr);
maximum_num_containers = le32_to_cpu(dresp->ContainerSwitchEntries); maximum_num_containers = le32_to_cpu(dresp->ContainerSwitchEntries);
if (fibptr->dev->supplement_adapter_info.SupportedOptions2 &
AAC_OPTION_SUPPORTED_240_VOLUMES) {
maximum_num_containers =
le32_to_cpu(dresp->MaxSimpleVolumes);
}
aac_fib_complete(fibptr); aac_fib_complete(fibptr);
} }
/* FIB should be freed only after getting the response from the F/W */ /* FIB should be freed only after getting the response from the F/W */
......
...@@ -1016,6 +1016,8 @@ struct aac_supplement_adapter_info ...@@ -1016,6 +1016,8 @@ struct aac_supplement_adapter_info
#define AAC_OPTION_DOORBELL_RESET cpu_to_le32(0x00004000) #define AAC_OPTION_DOORBELL_RESET cpu_to_le32(0x00004000)
/* 4KB sector size */ /* 4KB sector size */
#define AAC_OPTION_VARIABLE_BLOCK_SIZE cpu_to_le32(0x00040000) #define AAC_OPTION_VARIABLE_BLOCK_SIZE cpu_to_le32(0x00040000)
/* 240 simple volume support */
#define AAC_OPTION_SUPPORTED_240_VOLUMES cpu_to_le32(0x10000000)
#define AAC_SIS_VERSION_V3 3 #define AAC_SIS_VERSION_V3 3
#define AAC_SIS_SLOT_UNKNOWN 0xFF #define AAC_SIS_SLOT_UNKNOWN 0xFF
...@@ -1751,6 +1753,7 @@ struct aac_get_container_count_resp { ...@@ -1751,6 +1753,7 @@ struct aac_get_container_count_resp {
__le32 MaxContainers; __le32 MaxContainers;
__le32 ContainerSwitchEntries; __le32 ContainerSwitchEntries;
__le32 MaxPartitions; __le32 MaxPartitions;
__le32 MaxSimpleVolumes;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment