<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/compat, 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>2023-03-08T05:51:17Z</updated>
<entry>
<title>linux_80211: Don't dequeue lsta if not queued</title>
<updated>2023-03-08T05:51:17Z</updated>
<author>
<name>Colin Percival</name>
<email>cperciva@FreeBSD.org</email>
</author>
<published>2023-03-05T20:10:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=648bd2b1a6ebafddb07cbc024d42b99b7eaa1c9e'/>
<id>urn:sha1:648bd2b1a6ebafddb07cbc024d42b99b7eaa1c9e</id>
<content type='text'>
This fixes an instapanic when restarting wpa_supplicant on my laptop's
iwlwifi device.  After this change, iwlwifi enters a nonfunctional
state if wpa_supplicant is restarted, but "service netif restart wlan0"
is enough to get it working again.

Approved by:	re (kib)

(cherry picked from commit 3689f8aeab82150da6789be87b6c2f9385810c23)
(cherry picked from commit 790dc4d825c910c8a2eda49fe9e6dd827519f0f4)
</content>
</entry>
<entry>
<title>linprocfs(4): Fixup process size in the /proc/pid/stat file</title>
<updated>2023-03-02T17:47:36Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2023-02-26T13:42:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=413a08a9b66871fe599310e358555edf54dd61a8'/>
<id>urn:sha1:413a08a9b66871fe599310e358555edf54dd61a8</id>
<content type='text'>
According to the Linux sources the kernel exposes a proces virtual
memory size via proc filesystem into the three files - stat, status
and statm. This is the struct mm-&gt;total_vm value adjusted to the
corresponding units - bytes, kilobytes and pages.

The fix is based on a fernape@ analysis.

Approved by:	re (delphij)
PR:		265937
Reported by:	Ray Bellis
MFC after:	3 days

(cherry picked from commit a55b5a9aed3981fcec205e246436991d138c78a2)
(cherry picked from commit 867e8404efed7a33553646b89588831db1a2102b)
</content>
</entry>
<entry>
<title>linux(4): Fixup the interface name translation in netlink</title>
<updated>2023-02-27T18:16:36Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2023-02-23T08:01:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9006cd0fd543379c13de8fe274abc0f71710e93a'/>
<id>urn:sha1:9006cd0fd543379c13de8fe274abc0f71710e93a</id>
<content type='text'>
Netlink should translate a FreeBSD interface name to a Linux
interface name.

Approved by:		re (cperciva)
Reviewed by:		melifaro
Differential Revision:	https://reviews.freebsd.org/D38715
MFC after:		3 days

(cherry picked from commit e55e4a6ba3f4cd31d47b74574ea7370d5ab14b48)
(cherry picked from commit 123ca9ab11896f356245537ee41207fb6943fccd)
</content>
</entry>
<entry>
<title>linux(4): Consolidate a FreeBSD interface names translation code</title>
<updated>2023-02-27T18:16:00Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2023-02-23T08:00:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=aeed04a32e459f2b7e0f78ca00ba257d7ac18123'/>
<id>urn:sha1:aeed04a32e459f2b7e0f78ca00ba257d7ac18123</id>
<content type='text'>
We have some amount of interface names translation functions which are
differs by bugs implementation. Consolidates it in a one place.

Fixup loopback interface names translation and use ifnet methods and
accessors, where possible.

Approved by:		re (cperciva)
Reviewed by:		melifaro
Differential Revision:	https://reviews.freebsd.org/D38714
MFC after:		3 days
X-MFC with:		32fdc75fe7

(cherry picked from commit 3ab3c9c29cf0e5df8dbbaaf2003456445534bad8)
(cherry picked from commit a83551a52d1cfa8a756ef8dd298cab8042e27437)
</content>
</entry>
<entry>
<title>linux(4): Move use_real_names knob to the linux.c</title>
<updated>2023-02-27T18:15:25Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2023-02-14T14:46:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8fd0f86abdfa8b98facb22649cb03545d0cf0df6'/>
<id>urn:sha1:8fd0f86abdfa8b98facb22649cb03545d0cf0df6</id>
<content type='text'>
MI linux.[c|h] are the module independent in terms of the Linux emulation
layer (ie, intended for both ISA - 32 &amp; 64 bit), analogue of MD linux.h.
There must be a code here that cannot be placed into the corresponding by
common sense MI source and header files, i.e., code is machine independent,
but ISA dependent.
For the use_real_names knob, the code must be placed into the
linux_socket.[c|h], however linux_socket is ISA dependent.

Approved by:		re (cperciva)
MFC after:		2 weeks

(cherry picked from commit 32fdc75fe7276083d446964055b0de0e29970b7c)
(cherry picked from commit 884ea80d4ebbd2d8ff03d56eddc1dc64d49be908)
</content>
</entry>
<entry>
<title>LinuxKPI: return an address string in pci_name()</title>
<updated>2023-02-23T19:33:31Z</updated>
<author>
<name>Val Packett</name>
<email>val@packett.cool</email>
</author>
<published>2023-02-06T21:50:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=368a398b9c3e01359d9997aaa3ccff6415129f74'/>
<id>urn:sha1:368a398b9c3e01359d9997aaa3ccff6415129f74</id>
<content type='text'>
amdgpu's virtual display feature uses pci_name() to match a module parameter
string, and the documentation shows an example of `0000:26:00.0` for the name.
In our case the name was just `drmn`, which is not actually unique across
devices.

The other consumers are wireless drivers, which will benefit from this
change.

Generate the expected string for pci_name() to return.

Related to:	https://github.com/freebsd/drm-kmod/issues/134
Sponsored by:	https://www.patreon.com/valpackett
Reviewed by:	bz, hselasky, manu (earlier)
Approved by:	re (cperciva)
Differential Revision: https://reviews.freebsd.org/D34248

(cherry picked from commit 393b0ba25f1a54dcc3f94244933c665f1c471d1a)
(cherry picked from commit 30960c51e646c51134fcb72e0adc881f36a41c38)
</content>
</entry>
<entry>
<title>LinuxKPI: pci: add more functions</title>
<updated>2023-02-23T19:33:24Z</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2023-01-28T15:02:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4fa10614c77369ae4edd09a065a70fd20e526d43'/>
<id>urn:sha1:4fa10614c77369ae4edd09a065a70fd20e526d43</id>
<content type='text'>
Add a dummy pci_assign_resource() and an implementation of
pci_irq_vector() returning the irq for MSI-X, MSI, and legacy interrupt.
Both are needed by wirless drivers.

Sponsored by:	The FreeBSD Foundation
Reviewed by:	jhb
Approved by:	re (cperciva)
Differential Revision: https://reviews.freebsd.org/D38237

(cherry picked from commit fd1a2f3dfc0e8fb20d0d397d586000bb918aab47)
(cherry picked from commit 7b65e6f377ca0005a986c59f1e31a0421d92660f)
</content>
</entry>
<entry>
<title>LinuxKPI: PCI: implement support for more than 1 MSI vector</title>
<updated>2023-02-23T19:33:16Z</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2023-01-27T15:34:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0de7dba20435c0361067b451886b8185d53b0951'/>
<id>urn:sha1:0de7dba20435c0361067b451886b8185d53b0951</id>
<content type='text'>
Following e9715b1c4474333ff119aba3a9a74bff91f72372 and
4b56afaf7bf4fa37bae5b26fd93ee1ff5969c1bb, implement support
for up-to 32 MSI vectors.  This is used by wireless drivers.
This also switches msi_desc to an array in order to store
per-vector information.

Sponsored by:	The FreeBSD Foundation
Discussed with:	grehan (in Dec)
Reviewed by:	jhb
Approved by:	re (cperciva)
Differential Revision: https://reviews.freebsd.org/D38222

(cherry picked from commit b15491b4773af99ce2470144ef6bcd9146cc9a98)
(cherry picked from commit 03a85378b81fcaffae5f8efdd75e2b8e10094e6a)
</content>
</entry>
<entry>
<title>LinuxKPI: implement irq_get_msi_desc()</title>
<updated>2023-02-23T19:33:09Z</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2022-11-28T18:27:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4876c939ce63c86fe918e469881cc92ec40cfbee'/>
<id>urn:sha1:4876c939ce63c86fe918e469881cc92ec40cfbee</id>
<content type='text'>
Add irq_get_msi_desc() as a wrapper around a PCI function which will
allocate a single cached value (see comment on struct) for the
msi_desc requested if it doesn't exist yet and handle freeing it
when the PCI device goes away.  We take the values from the ivars of
the native (FreeBSD) device.

While changing struct pci_dev also add the msi_cap field requested by
a wireless driver.

Reviewed by:	hselasky (earlier version)
Approved by:	re (cperciva)
Differential Revision: https://reviews.freebsd.org/D37523

(cherry picked from commit 4b56afaf7bf4fa37bae5b26fd93ee1ff5969c1bb)
(cherry picked from commit 7d23664b35a2611dc4fea56f7cfd2b99f91626a0)
</content>
</entry>
<entry>
<title>LinuxKPI: 802.11: basic implementation of *queue(s)/*txq*</title>
<updated>2023-02-23T19:33:01Z</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2023-01-31T16:17:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0b165b1fce848c6c636548d54064eec5a9d82c55'/>
<id>urn:sha1:0b165b1fce848c6c636548d54064eec5a9d82c55</id>
<content type='text'>
LinuxKPI: 802.11: deal with stopped queues

Very basic implementations of ieee80211_{wake,stop}_queue[s],
as well as ieee80211_txq_schedule_start(), ieee80211_next_txq(),
and ieee80211_schedule_txq().
Various combinations of these are used by different wireless
drivers, incl. iwlwifi.

Following 5a9a0d7803382321b5f9fff1deae5fb08463cf1a initialize the
queue values explicitly and deal with a stopped queue in
ieee80211_tx_dequeue().

Sponsored by:	The FreeBSD Foundation (parts of this work)
Approved by:	re (cperciva)

(cherry picked from commit 5a9a0d7803382321b5f9fff1deae5fb08463cf1a)
(cherry picked from commit 0cbcfa1964de89cd346ee6f79437c6ab83a3b716)
(cherry picked from commit 9f9d047405778b2d2aca829a2037532b8ae8ed5d)
</content>
</entry>
</feed>
