aboutsummaryrefslogtreecommitdiffstats
path: root/deployed-server/deployed-server-config.yaml
blob: 8c59dc72d0d6cc2f6f3b03b94d369a2ef7087cf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
heat_template_version: 2014-10-16
parameters:
  user_data_format:
    type: string
    default: SOFTWARE_CONFIG

resources:
  # We just need something which returns a unique ID, but we can't
  # use RandomString because RefId returns the value, not the physical
  # resource ID, SoftwareConfig should work as it returns a UUID
  deployed-server-config:
    type: OS::Heat::SoftwareConfig

outputs:
  # FIXME(shardy) this is needed because TemplateResource returns an
  # ARN not a UUID, which overflows the Deployment server_id column..
  user_data_format:
    value: SOFTWARE_CONFIG
  OS::stack_id:
    value: {get_resource: deployed-server-config}
|LUN_IDX| P |SEL| * +-------+-------+-------+-------+-------+-------+-------+---+---+ * * The LXT Entry contains the physical LBA where the chunk starts (RLBA_BASE). * AFU ORes the low order bits from the virtual LBA (offset into the chunk) * with RLBA_BASE. The result is the physical LBA to be sent to storage. * The LXT Entry also contains an index to a LUN TBL and a bitmask of which * outgoing (FC) * ports can be selected. The port select bit-mask is ANDed * with a global port select bit-mask maintained by the driver. * In addition, it has permission bits that are ANDed with the * RHT permissions to arrive at the final permissions for the chunk. * * LXT tables are allocated dynamically in groups. This is done to avoid * a malloc/free overhead each time the LXT has to grow or shrink. * * Based on the current lxt_cnt (used), it is always possible to know * how many are allocated (used+free). The number of allocated entries is * not stored anywhere. * * The LXT table is re-allocated whenever it needs to cross into another group. */ #define LXT_GROUP_SIZE 8 #define LXT_NUM_GROUPS(lxt_cnt) (((lxt_cnt) + 7)/8) /* alloc'ed groups */ #define LXT_LUNIDX_SHIFT 8 /* LXT entry, shift for LUN index */ #define LXT_PERM_SHIFT 4 /* LXT entry, shift for permission bits */ struct ba_lun_info { u64 *lun_alloc_map; u32 lun_bmap_size; u32 total_aus; u64 free_aun_cnt; /* indices to be used for elevator lookup of free map */ u32 free_low_idx; u32 free_curr_idx; u32 free_high_idx; u8 *aun_clone_map; }; struct ba_lun { u64 lun_id; u64 wwpn; size_t lsize; /* LUN size in number of LBAs */ size_t lba_size; /* LBA size in number of bytes */ size_t au_size; /* Allocation Unit size in number of LBAs */ struct ba_lun_info *ba_lun_handle; }; /* Block Allocator */ struct blka { struct ba_lun ba_lun; u64 nchunk; /* number of chunks */ struct mutex mutex; }; #endif /* ifndef _CXLFLASH_SUPERPIPE_H */