Page MenuHomeFreeBSD

LinuxKPI: Add devm_memremap and devm_ioremap_wc functions
ClosedPublic

Authored by wulf on Wed, Sep 16, 5:37 PM.
Tags
None
Referenced Files
F172676261: D59732.diff
Sun, Sep 20, 3:28 AM
Unknown Object (File)
Sat, Sep 19, 4:21 PM
Unknown Object (File)
Fri, Sep 18, 8:30 AM
Unknown Object (File)
Fri, Sep 18, 4:18 AM
Unknown Object (File)
Thu, Sep 17, 11:55 PM
Unknown Object (File)
Thu, Sep 17, 11:50 PM
Unknown Object (File)
Thu, Sep 17, 10:13 PM
Unknown Object (File)
Thu, Sep 17, 5:32 AM
Subscribers

Details

Summary

Required by drm-kmod 6.12.101. Their usage was reverted later though.

Diff Detail

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

Event Timeline

wulf requested review of this revision.Wed, Sep 16, 5:37 PM

The patch looks good to me. Just one comment about a return value of linuxkpi_devm_memremap.

sys/compat/linuxkpi/common/src/linux_page.c
453–454

On Linux 6.15, they return ERR_PTR(-ENOMEM). Perhaps, it’s different in other versions?

This revision now requires changes to proceed.Thu, Sep 17, 5:35 PM
wulf marked an inline comment as done.Thu, Sep 17, 5:55 PM
wulf added inline comments.
sys/compat/linuxkpi/common/src/linux_page.c
453–454

In Linux 7.3-rc3 ERR_PTR(-ENXIO) is returned: https://elixir.bootlin.com/linux/v7.3-rc3/source/kernel/iomem.c#L153

wulf marked an inline comment as done.Thu, Sep 17, 5:57 PM

oops.

sys/compat/linuxkpi/common/src/linux_page.c
453–454

ooops ERR_PTR(-ENOMEM) really

return ERR_PTR(-ENOMEM) if devres_alloc() has failed

bz added inline comments.
sys/compat/linuxkpi/common/include/linux/io.h
535

If you wanted you could remove vertical space (blank line) here?

vertical space (blank line) is removed

This revision is now accepted and ready to land.Thu, Sep 17, 7:20 PM