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: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: powerpc Any
: --- Affects Some People
Assignee: freebsd-x11 mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-09 20:02 UTC by Justin Hibbits
Modified: 2019-07-10 21:00 UTC (History)
2 users (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.
Comment 1 Niclas Zeising freebsd_committer 2019-07-10 08:43:14 UTC
Hi!
Is this still an issue?
Comment 2 Justin Hibbits freebsd_committer 2019-07-10 21:00:24 UTC
No longer an issue.  The issue was fixed in github 1e4fa87.