<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/modules/linuxkpi/Makefile, branch release/13.2.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2022-11-29T10:09:45Z</updated>
<entry>
<title>linuxkpi: drm-kmod debugfs support</title>
<updated>2022-11-29T10:09:45Z</updated>
<author>
<name>Jake Freeland</name>
<email>jfree@FreeBSD.org</email>
</author>
<published>2022-09-20T17:41:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a8e31ab2e93f29858913f384dfc17cdaa77656f3'/>
<id>urn:sha1:a8e31ab2e93f29858913f384dfc17cdaa77656f3</id>
<content type='text'>
This diff extends LinuxKPI to support simple attribute files in debugfs.
These simple attributes are an essential component for compiling drm-kmod
with CONFIG_DEBUG_FS enabled.
This will allow for easier graphics driver debugging using
Intel's igt-gpu-tools.

Reviewed by:	hselasky
Differential Revision:	https://reviews.freebsd.org/D35883
Sponsored by:	Google, Inc. (GSoC 2022)

(cherry picked from commit f697b9432d9c7aa4c5ab5f5445ef5dc1bd40ce00)
</content>
</entry>
<entry>
<title>LinuxKPI: define LINUXKPI_INCLUDES for module builds as well</title>
<updated>2022-10-17T20:37:05Z</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2022-09-23T21:18:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=66548ca4d8713279e3e7821137916da8857f9c76'/>
<id>urn:sha1:66548ca4d8713279e3e7821137916da8857f9c76</id>
<content type='text'>
While for in-kernel we already have LINUXKPI_INCLUDES in kern.pre.mk
for kmod builds we've not had a common define to use leading to various
spellings of include paths.

In order for the include list to be expanded more easily in the future,
e.g., adding the "dummy" includes (for all) and to harmonize code,
duplicate LINUXKPI_INCLUDES to kmod.mk and use it for all module Makefiles.

Reviewed by:	hselasky
Differential Revision: https://reviews.freebsd.org/D36683

(cherry picked from commit 514fb3872166a361faa81d89909f65913e90b1b2)
</content>
</entry>
<entry>
<title>linuxkpi: Add i2c support</title>
<updated>2022-06-21T15:13:57Z</updated>
<author>
<name>Emmanuel Vadot</name>
<email>manu@FreeBSD.org</email>
</author>
<published>2021-11-04T09:42:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7f14bc44022da73cfdb0dd6d73a4ade239c7e857'/>
<id>urn:sha1:7f14bc44022da73cfdb0dd6d73a4ade239c7e857</id>
<content type='text'>
Add i2c support to linuxkpi. This is needed by drm-kmod.
For every i2c_adapter added by i2c_add_adapter we add a child to the
device named "lkpi_iic". This child handle the conversion between
Linux i2c_msgs to FreeBSD iic_msgs.
For every i2c_adapter added by i2c_bit_add_bus we add a child to the
device named "lkpi_iicbb". This child handle the conversion between
Linux i2c_msgs to FreeBSD iic_msgs.
With the help of iic(4), this expose the i2c controller to userspace
allowing a user to query DDC information from a monitor.
e.g.: i2c -f /dev/iic0 -a 0x28 -c 128 -d r
will query the standard EDID from the monitor if plugged.

The bitbang part (lkpi_iicbb) isn't tested at all for now as I don't have
compatible hardware (all my hardware have native i2c controller).

Tested on:	Intel (SandyBridge, Skylake, ApolloLake)
Tested on:	AMD (Picasso, Polaris (amd64 and arm64))

MFC after:	1 month
Reviewed by:	hselasky
Sponsored by:	Beckhoff Automation GmbH &amp; Co. KG
Differential Revision:	https://reviews.freebsd.org/D33053

(cherry picked from commit 1961a14a47437595fb7fcdc20e327440e3eb51e2)
</content>
</entry>
<entry>
<title>linuxkpi: fix module build outside of kernel build environment</title>
<updated>2022-03-13T08:56:38Z</updated>
<author>
<name>Eugene Grosbein</name>
<email>eugen@FreeBSD.org</email>
</author>
<published>2022-03-10T21:31:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=80bab8aa7ed884674e14482f76c7066130145662'/>
<id>urn:sha1:80bab8aa7ed884674e14482f76c7066130145662</id>
<content type='text'>
(cherry picked from commit f5a2e7b0e8483bf51519046fd149a6a31acef6b1)
</content>
</entry>
<entry>
<title>LinuxKPI: import beginning of a new version of netdevice.h</title>
<updated>2021-12-30T18:27:31Z</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2021-12-26T18:29:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fb3c236a4b8131361f9f1688d8b2455609fb2d5d'/>
<id>urn:sha1:fb3c236a4b8131361f9f1688d8b2455609fb2d5d</id>
<content type='text'>
Import a netdevice update complementing the last remaining bits of
the old ifnet derived implementation.  Along add a (for now) task
based NAPI implementation.

This is the minimal set of chnages which are needed for the initial
support of wireless drivers.  The NAPI implementation has an option to
still switch to "direct dispatch" as it had been used by these drivers
before not relying on a deferred context along with some printf tracing.
This has been helpful in the last weeks for debugging and will be
cleaned once we have had broader testing and are sure this is fine as-is.
Should we need a more time-sensitive or load-sensitive response
in the future we can always switch to something more sophisticated.

Sponsored by:		The FreeBSD Foundation
X-Differential Revision: D33075 (abandoned without feedback a while ago)

(cherry picked from commit d105895844848ddba85d686e03e0d14c03ad4eb4)
</content>
</entry>
<entry>
<title>LinuxKPI: add a work-in-progress skbuff implementation</title>
<updated>2021-12-30T18:27:19Z</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2021-12-26T18:26:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=508c4fb4c34b0d3045a6ed9b5eb2d42a591fb6f4'/>
<id>urn:sha1:508c4fb4c34b0d3045a6ed9b5eb2d42a591fb6f4</id>
<content type='text'>
This is a work-in-progress implementation of sk_buff compat code
used for wireless drivers only currently.
Bring in this version of the code as it has proven to be good enough
to have packets going for a few months.

The current implementation has several drawbacks including the need
for us to copy data between sk_buffs and mbufs.
Do not rely on the internals of this implementation.  They are highly
likely to change as we will improve the integration to FreeBSD mbufs.

Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 49ed6e979c3b327ae466a559884802d901aa5792)
</content>
</entry>
<entry>
<title>Fix some modules to export more used symbols</title>
<updated>2021-11-25T01:09:21Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2021-11-07T08:42:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=83271c68c4f4697ba15d49cc3f31912a5d04ff4b'/>
<id>urn:sha1:83271c68c4f4697ba15d49cc3f31912a5d04ff4b</id>
<content type='text'>
(cherry picked from commit 5bb3134a8c21cb87b30e135ef168483f0333dabb)
</content>
</entry>
<entry>
<title>LinuxKPI: Remove FreeBSD struct resource from all LKPI headers</title>
<updated>2021-10-13T08:58:39Z</updated>
<author>
<name>Vladimir Kondratyev</name>
<email>wulf@FreeBSD.org</email>
</author>
<published>2021-09-29T20:12:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fd6adf784e862d043d1858aab323f3fb136cf706'/>
<id>urn:sha1:fd6adf784e862d043d1858aab323f3fb136cf706</id>
<content type='text'>
except linux/pci.h to avoid conflicts with Linux version.
This allows to #define resource in drm-kmod globally and strip some #ifdef-s

Reviewed by:	hselasky, manu
Differential revision:	https://reviews.freebsd.org/D31673

(cherry picked from commit 66ea390652d2ede405b43c168157986bd2b52bb9)
</content>
</entry>
<entry>
<title>MFC ebe5cf355dca:</title>
<updated>2021-03-23T10:50:47Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2021-03-05T11:44:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=773811507d44226a755f4649b4f0ab367d3c47d4'/>
<id>urn:sha1:773811507d44226a755f4649b4f0ab367d3c47d4</id>
<content type='text'>
Implement basic support for allocating memory from a specific numa node
in the LinuxKPI.

Differential Revision:	https://reviews.freebsd.org/D29077
Reviewed by:	markj@ and kib@
Sponsored by:	Mellanox Technologies // NVIDIA Networking

(cherry picked from commit ebe5cf355dca1d7827a70b99a9d9c4f97f78691d)
</content>
</entry>
<entry>
<title>LinuxKPI: implement devres() framework parts and two examples</title>
<updated>2021-02-02T11:51:26Z</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2021-01-28T16:32:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ff119f7c4a3894e20190cca37ca00c9fef88a6df'/>
<id>urn:sha1:ff119f7c4a3894e20190cca37ca00c9fef88a6df</id>
<content type='text'>
This code implements a version of the devres framework found
working for various iwlwifi use cases and also providing functions
for ttm_page_alloc_dma.c from DRM.

Part of the framework replicates the consumed KPI, while others
are internal helper functions.

In addition the simple devm_k*malloc() consumers were implemented
and kvasprintf() was enhanced to also work for the devm_kasprintf()
case.
Addmittingly lkpi_devm_kmalloc_release() could be avoided but for
the overall understanding of the code and possible memory tracing
it may still be helpful.

Further devsres consumer are implemented for iwlwifi but will follow
later as the main reason for this change is to sort out overlap with
DRM.

Sponsored-by:	The FreeBSD Foundation
Obtained-from:	bz_iwlwifi
MFC After:	3 days
Reviewed-by:	hselasky, manu
Differential Revision:	https://reviews.freebsd.org/D28189

(cherry picked from commit fa765ca73e553399ffbad382e579e4c2b4d0fc12)
</content>
</entry>
</feed>
