]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC: r237101
authormarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 17 Jun 2012 09:42:56 +0000 (09:42 +0000)
committermarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 17 Jun 2012 09:42:56 +0000 (09:42 +0000)
commit710ccab223a9e8c8c42e2b23531d9c839115cd5d
tree6d93ed5d192ee4df45b758ddb7313288ba63ee28
parent1b0659cc2bff86d097e217571344e7bcc669a2b2
MFC: r237101

Fix a braino in r236469 (MFC'ed to stable/9 in r236468); the number of
DMA tags required for handling MAXPHYS should be based on PAGE_SIZE rather
than SYM_CONF_DMA_BOUNDARY.
While at it, reuse the SYM_CONF_MAX_SG macro for specifying the maximum
number of DMA tags so sym(4) itself doesn't size memory beyond what's
required for handling MAXPHYS.

PR: 168928

git-svn-id: svn://svn.freebsd.org/base/stable/9@237186 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/sym/sym_conf.h
sys/dev/sym/sym_hipd.c