From f9ed59900b00a092f72a85d7ff54c2f0e789810c Mon Sep 17 00:00:00 2001 From: Sanath Kumar Date: Mon, 10 Apr 2017 16:52:32 -0500 Subject: [PATCH] sparc64: DAX request for non 4MB memory should return with unique errno Orabug:25852910 With this change libdax can detect that mmap failed due to lack of flow control in DAX HW and it can proceed with dax_subpage allocation. Reviewed-by: Rob Gardner Signed-off-by: Sanath Kumar Signed-off-by: Allen Pais --- arch/sparc/dax/dax_mm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sparc/dax/dax_mm.c b/arch/sparc/dax/dax_mm.c index 510672d85539..031767e9bda9 100644 --- a/arch/sparc/dax/dax_mm.c +++ b/arch/sparc/dax/dax_mm.c @@ -44,6 +44,7 @@ static int dax_alloc_ram(struct file *filp, struct vm_area_struct *vma) if (dax_no_flow_ctl && len != DAX_SYN_LARGE_PAGE_SIZE) { dax_map_dbg("unsupported length 0x%lx != 0x%lx virtual page size", len, DAX_SYN_LARGE_PAGE_SIZE); + ret = -EOVERFLOW; goto done; } -- 2.50.1