alison.schofield@ wrote:
> From: Alison Schofield <alison.schofi...@intel.com>
> 
> Using .size in decoder selection can lead to a set_size failure with
> these error messages:
> 
> cxl region: create_region: region8: set_size failed: Numerical result out of 
> range
> 
> [] cxl_core:alloc_hpa:555: cxl region8: HPA allocation error (-34) for 
> size:0x0000000020000000 in CXL Window 0 [mem 0xf010000000-0xf04fffffff flags 
> 0x200]
> 
> Use max_available_extent for decoder selection instead.
> 
> The test overlooked the region creation failure because the not 'null'
> comparison succeeds when cxl create-region command emits nothing.
> Use the ! comparator when checking the create-region result.
> 
> When checking the ram_size output of cxl-list add a check for empty.
> 
> Signed-off-by: Alison Schofield <alison.schofi...@intel.com>

Reviewed-by: Ira Weiny <ira.we...@intel.com>

Reply via email to