Bug 223572

Summary: drm(4) pmap_mapdev()s PCI space addresses, causing wrong mappings to be generated
Product: Base System Reporter: Justin Hibbits <jhibbits>
Component: kernAssignee: freebsd-x11 (Nobody) <x11>
Status: Closed FIXED    
Severity: Affects Some People CC: cem, zeising
Priority: ---    
Version: CURRENT   
Hardware: powerpc   
OS: Any   

Description Justin Hibbits freebsd_committer freebsd_triage 2017-11-09 20:02:53 UTC
drm_get_resource_start() gets an rman resource start, which is not always physical address.  On PowerPC, and any architecture that uses OFW/FDT, the resources are specified in PCI space, not physical address space.  This causes the wrong mappings to be generated, potentially stomping on real memory.
Comment 1 Niclas Zeising freebsd_committer freebsd_triage 2019-07-10 08:43:14 UTC
Hi!
Is this still an issue?
Comment 2 Justin Hibbits freebsd_committer freebsd_triage 2019-07-10 21:00:24 UTC
No longer an issue.  The issue was fixed in github 1e4fa87.