<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/vmd, branch release/14.3.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F14.3.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F14.3.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2025-02-27T13:09:23Z</updated>
<entry>
<title>acpi/pci/vmd: Fix a nit with nested resource mapping requests</title>
<updated>2025-02-27T13:09:23Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2024-06-04T23:50:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1c3996e87f09a5e67ebbd4e7e73a38848127c99e'/>
<id>urn:sha1:1c3996e87f09a5e67ebbd4e7e73a38848127c99e</id>
<content type='text'>
Some bus drivers use rmans to suballocate resources to child devices.
When the driver for a child device requests a mapping for a
suballocated resource, the bus driver translates this into a mapping
request for a suitable subrange of the original resource the bus
driver allocated from its parent.  This nested mapping request should
look like any other resource mapping request being made by the bus
device (i.e. as if the bus device had called bus_map_resource() or
bus_alloc_resource() with RF_ACTIVE).

I had slightly flubbed this last bit though since the direct use of
bus_generic_map/unmap_resource passed up the original child device
(second argument to the underlying kobj interface).  While this is
currently harmless, it is not strictly correct as the resource being
mapped is owned by the bus device, not the child and can break for
other bus drivers in the future.

Instead, use bus_map/unmap_resource for the nested request where the
requesting device is now the bus device that owns the parent resource.

Reviewed by:	imp
Fixes:		0e1246e33461 acpi: Cleanup handling of suballocated resources
Fixes:		b377ff8110e3 pcib: Refine handling of resources allocated from bridge windows
Fixes:		d79b6b8ec267 pci_host_generic: Don't rewrite resource start address for translation
Fixes:		d714e73f7895 vmd: Use bus_generic_rman_* for PCI bus and memory resources
Differential Revision:	https://reviews.freebsd.org/D45433
(cherry picked from commit 98056127ddfa36720bcf46edc09843c867784bcb)
</content>
</entry>
<entry>
<title>vmd: Use bus_generic_rman_* for PCI bus and memory resources</title>
<updated>2025-02-27T13:09:21Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2024-02-15T20:26:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e5936d602858378e649b49fdef8b909b3a20695b'/>
<id>urn:sha1:e5936d602858378e649b49fdef8b909b3a20695b</id>
<content type='text'>
While here, add custom bus_map/unmap_resource methods to request
mappings via the window memory resources allocated from the parent
bus.

Tested by:		emaste
Differential Revision:	https://reviews.freebsd.org/D43886

(cherry picked from commit d714e73f789515963a22fe64417bf3883cdb599c)
</content>
</entry>
<entry>
<title>vmd: Use bus_read/write_* instead of bus_space_read/write_*</title>
<updated>2024-04-08T17:57:24Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2024-02-15T20:26:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=00907525212d3cbac7f0ad7ea1ed6f65ce0e05aa'/>
<id>urn:sha1:00907525212d3cbac7f0ad7ea1ed6f65ce0e05aa</id>
<content type='text'>
Using an explicit bus space tag and handle is deprecated.

Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D43885

(cherry picked from commit 76c678688634e9e2ea5f6369fb979aabddbfe426)
</content>
</entry>
<entry>
<title>vmd(4): Fix typos in source code comments</title>
<updated>2024-01-25T06:44:55Z</updated>
<author>
<name>Gordon Bergling</name>
<email>gbe@FreeBSD.org</email>
</author>
<published>2024-01-22T20:55:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a499baff3955b9edacd56c44cf30386e26822e17'/>
<id>urn:sha1:a499baff3955b9edacd56c44cf30386e26822e17</id>
<content type='text'>
- s/harwdare/hardware/

(cherry picked from commit b2c48aa4d19268610191a0b7d7b76d01d28b0a13)
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-16T17:54:36Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=685dc743dc3b5645e34836464128e1c0558b404b'/>
<id>urn:sha1:685dc743dc3b5645e34836464128e1c0558b404b</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: two-line .h pattern</title>
<updated>2023-08-16T17:54:11Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=95ee2897e98f5d444f26ed2334cc7c439f9c16c6'/>
<id>urn:sha1:95ee2897e98f5d444f26ed2334cc7c439f9c16c6</id>
<content type='text'>
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
</content>
</entry>
<entry>
<title>vmd: Add DID 8086:7D0B and 8086:AD0B for Intel MTL SKUs</title>
<updated>2022-10-06T16:44:59Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2022-10-06T16:44:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9bce11410645f4e84521c2ee44d3082aad8ae1e9'/>
<id>urn:sha1:9bce11410645f4e84521c2ee44d3082aad8ae1e9</id>
<content type='text'>
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>vmd: Bypass MSI/MSI-X remapping when possible.</title>
<updated>2022-10-06T16:15:25Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2022-10-06T16:15:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c28220d8661ee1928bff7d2c6bcd3e64c25f927b'/>
<id>urn:sha1:c28220d8661ee1928bff7d2c6bcd3e64c25f927b</id>
<content type='text'>
By default all VMD devices remap children MSI/MSI-X interrupts into their
own.  It creates additional isolation, but also complicates things due to
sharing, etc.  Fortunately some VMD devices can bypass the remapping.
Add tunable to control it for remap testing or if something go wrong.

MFC after:	2 weeks
</content>
</entry>
<entry>
<title>vmd: Add 8086:A77F PCI ID for all Intel Raptor Lake SKUs</title>
<updated>2022-07-29T18:17:20Z</updated>
<author>
<name>Neel Chauhan</name>
<email>nc@FreeBSD.org</email>
</author>
<published>2022-07-29T18:06:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b07a48d4f3a175db53ba21a40f27ef0c1a6d0a11'/>
<id>urn:sha1:b07a48d4f3a175db53ba21a40f27ef0c1a6d0a11</id>
<content type='text'>
Summary:
This is based on the Linux kernel commit
922bfd001d1ac02111ebbe0524aaab6ca7925521.

Reviewed by:		mav (src)
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D35996
</content>
</entry>
<entry>
<title>vmd: Remove unused devclass argument to DRIVER_MODULE.</title>
<updated>2022-05-06T22:46:59Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2022-05-06T22:46:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=44031900628a72b330bd6616f1dda5bc57927983'/>
<id>urn:sha1:44031900628a72b330bd6616f1dda5bc57927983</id>
<content type='text'>
</content>
</entry>
</feed>
