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
F173251292: D59732.id186893.diff
Thu, Sep 24, 5:24 PM
F173244729: D59732.diff
Thu, Sep 24, 3:53 PM
F173186183: D59732.diff
Thu, Sep 24, 4:24 AM
F173182203: D59732.diff
Thu, Sep 24, 3:53 AM
Unknown Object (File)
Wed, Sep 23, 5:22 AM
Unknown Object (File)
Wed, Sep 23, 2:34 AM
Unknown Object (File)
Tue, Sep 22, 5:30 AM
Unknown Object (File)
Mon, Sep 21, 5:56 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 77031
Build 73914: 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