Bug 203386 - [patch] if_ndis failing with ENOMEM in bus_dma_tag_create
Summary: [patch] if_ndis failing with ENOMEM in bus_dma_tag_create
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Gleb Smirnoff
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2015-09-26 23:00 UTC by Landon Fuller
Modified: 2019-01-09 05:43 UTC (History)
1 user (show)

See Also:


Attachments
if_ndis disable BUS_DMA_ALLOCNOW (473 bytes, patch)
2015-09-26 23:00 UTC, Landon Fuller
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Landon Fuller 2015-09-26 23:00:35 UTC
Created attachment 161449 [details]
if_ndis disable BUS_DMA_ALLOCNOW

ndis_attach_pci() unnecessarily passes BUS_DMA_ALLOCNOW when allocating its parent DMA tag; this eager allocation can trigger ENOMEM, preventing attachment.

Attached is a tiny patch removing the eager-allocation flag. With this, I'm able to use NDIS drivers.
Comment 1 Gleb Smirnoff freebsd_committer freebsd_triage 2015-12-17 21:25:08 UTC
https://svnweb.freebsd.org/changeset/base/292411
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2018-05-23 10:27:43 UTC
batch change of PRs untouched in 2018 marked "in progress" back to open.
Comment 3 Gleb Smirnoff freebsd_committer freebsd_triage 2019-01-09 05:43:11 UTC
Should be fixed in CURRENT.