[Bug 265786] broadcom storage controller: bus_dmamap_load_ccb() is failing with EINPROGRESS for 1MB IOs

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 12 Aug 2022 08:05:38 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265786

            Bug ID: 265786
           Summary: broadcom storage controller: bus_dmamap_load_ccb() is
                    failing with EINPROGRESS for 1MB IOs
           Product: Base System
           Version: 13.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: chandrakanth.patil@broadcom.com

We are seeing the issue in bus_dmamap_load_ccb() function in the case of 1MB
IOs. 
It seems, that IO mapping to DMA mem is taking more time so bus_dmamap_load_ccb
is returning EINPROGRESS (error no: 36) more frequently. the DMA attributes
passed are below while creating the tag:
1. maxsize: 1MB
2. nsegments: 256
3. maxsegsz: 1MB

I have seen in some of the FreeBSD BZ that warner losh has suggested the
workaround for this by increasing the hw.maxphys in /boot/loader.conf. I have
tried the same and it will fix our issue. but the issue was reported on 13.0
and the fix was supposed to be part of 13.1 but I am still seeing it.

-- 
You are receiving this mail because:
You are the assignee for the bug.