Page MenuHomeFreeBSD

linuxkpi: Make arch_io_*_memtype_wc amd64-only
ClosedPublic

Authored by tijl on May 8 2024, 1:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 13, 4:45 PM
Unknown Object (File)
Sun, Sep 13, 6:27 AM
Unknown Object (File)
Mon, Sep 7, 11:43 PM
Unknown Object (File)
Mon, Sep 7, 8:08 AM
Unknown Object (File)
Mon, Sep 7, 1:03 AM
Unknown Object (File)
Sun, Sep 6, 10:58 PM
Unknown Object (File)
Tue, Sep 1, 5:43 AM
Unknown Object (File)
Wed, Aug 26, 9:13 AM

Details

Summary

Linux only implements these functions on x86. They return 0 on other
architectures. The FreeBSD implementation calls PHYS_TO_DMAP but this
panics on i386 because it does not have a direct map so return 0 on i386
as well for now. These functions are only used by graphics/drm-*-kmod
to mark the VRAM aperture write-combining but this is also accomplished
by a call to vm_phys_fictitious_reg_range so this change is sufficient
to fix drm-*-kmod on i386 for FreeBSD 14.1.

MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 57616
Build 54504: arc lint + arc unit