Bug 223572 - drm(4) pmap_mapdev()s PCI space addresses, causing wrong mappings to be generated
Summary: drm(4) pmap_mapdev()s PCI space addresses, causing wrong mappings to be gener...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: powerpc Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-09 20:02 UTC by Justin Hibbits
Modified: 2017-11-11 14:19 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Hibbits freebsd_committer 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.