NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/56434 CVS commit: src/sys/dev/pci



The following reply was made to PR port-alpha/56434; it has been noted by GNATS.

From: "Jason R Thorpe" <thorpej%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/56434 CVS commit: src/sys/dev/pci
Date: Mon, 20 Nov 2023 15:16:46 +0000

 Module Name:	src
 Committed By:	thorpej
 Date:		Mon Nov 20 15:16:46 UTC 2023
 
 Modified Files:
 	src/sys/dev/pci: pciide_common.c
 
 Log Message:
 pciide_dma_dmamap_setup(): If we end up with a DMA segment with an odd
 length, unload the map and return EIO.  Some controllers get really upset
 if a DMA segment has an odd length.  This can happen if a physio user
 performs a virtually-contiguous I/O that starts at an odd address and spans
 a page boundary where the resulting physical pages are discontiguous.
 
 Ultimately, it's up to the physio user to paint inside the lines, but this
 will prevent the disk controller from wandering off into the weeds, at least.
 
 PR port-alpha/56434
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.67 -r1.68 src/sys/dev/pci/pciide_common.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index