Skip to content

Commit

Permalink
Avoid transfers crossing a 4GB boundary, which can lead to data
Browse files Browse the repository at this point in the history
corruption.  Thanks to scottl@ for the suggestion.

This change will likely be revised after consideration of a general
method to address this type of issue for other drivers.

Sponsored by:   Sandvine Incorporated
MFC after:      3 days
  • Loading branch information
emaste committed Feb 28, 2012
1 parent 657d802 commit f0e8d44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sys/dev/aac/aac_pci.c
Expand Up @@ -403,7 +403,8 @@ aac_pci_attach(device_t dev)
* Note that some of these controllers are 64-bit capable.
*/
if (bus_dma_tag_create(NULL, /* parent */
PAGE_SIZE, 0, /* algnmnt, boundary */
PAGE_SIZE, /* alignment */
((bus_size_t)((uint64_t)1 << 32)), /* boundary*/
BUS_SPACE_MAXADDR, /* lowaddr */
BUS_SPACE_MAXADDR, /* highaddr */
NULL, NULL, /* filter, filterarg */
Expand Down

0 comments on commit f0e8d44

Please sign in to comment.