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
Unknown Object (File)
Mon, Oct 12, 12:01 PM
Unknown Object (File)
Sun, Oct 11, 6:23 PM
Unknown Object (File)
Tue, Oct 6, 6:20 AM
Unknown Object (File)
Sun, Oct 4, 8:01 AM
Unknown Object (File)
Thu, Oct 1, 6:26 PM
Unknown Object (File)
Tue, Sep 29, 6:45 PM
Unknown Object (File)
Tue, Sep 29, 5:02 AM
Unknown Object (File)
Sun, Sep 27, 9:18 PM
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