<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/sys/dev/usb, branch master</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=master</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2020-12-19T11:03:54Z</updated>
<entry>
<title>Ensure a minimum packet length before creating a mbuf in if_ure.</title>
<updated>2020-12-19T11:03:54Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2020-12-19T11:03:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=7d0368ee3403378806dce84cb31b9a0cc389258d'/>
<id>urn:sha1:7d0368ee3403378806dce84cb31b9a0cc389258d</id>
<content type='text'>
Sponsored by:	Mellanox Technologies // NVIDIA Networking
</content>
</entry>
<entry>
<title>Move SYSCTL_ADD_PROC() to unlocked context in if_ure to avoid lock order reversal.</title>
<updated>2020-12-19T11:00:11Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2020-12-19T11:00:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=412bbd0811f02ef2d6691e66a0b15a2a7dbd9865'/>
<id>urn:sha1:412bbd0811f02ef2d6691e66a0b15a2a7dbd9865</id>
<content type='text'>
MFC after:	1 week
Reported by:	Mark Millard &lt;marklmi@yahoo.com&gt;
Sponsored by:	Mellanox Technologies // NVIDIA Networking
</content>
</entry>
<entry>
<title>usb: Replace ITUNERNET vendor with MICROCHIP and improve product names</title>
<updated>2020-12-18T23:31:36Z</updated>
<author>
<name>Jessica Clarke</name>
<email>jrtc27@FreeBSD.org</email>
</author>
<published>2020-12-18T23:31:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ddf42202c93a7aa610859a0bc1502697a4d4c408'/>
<id>urn:sha1:ddf42202c93a7aa610859a0bc1502697a4d4c408</id>
<content type='text'>
These Mini-Box LCDs are using Microchip components and sub-licensed product
IDs. Whilst here, update the constant names and descriptions for the products
to use the names listed on the manufacturer's website rather than vague ones.
The picoLCD 4x20 is named that on the manufacturer's website so prefer that
name, even though linux-usb.org lists it with the numbers reversed as one might
expect.

Reviewed by:	hselasky
Differential Revision:	https://reviews.freebsd.org/D27670
</content>
</entry>
<entry>
<title>Use __containerof() instead of home-rolled versions.</title>
<updated>2020-12-17T20:45:10Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2020-12-17T20:45:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=52ab576d7496574035a217ba2ff787770aa7dad5'/>
<id>urn:sha1:52ab576d7496574035a217ba2ff787770aa7dad5</id>
<content type='text'>
Reviewed by:	imp, hselasky
Obtained from:	CheriBSD
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D27582
</content>
</entry>
<entry>
<title>Use more standard types for manipulating pointers.</title>
<updated>2020-12-16T00:27:28Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2020-12-16T00:27:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=3ab53b27e318f065bd133bccdf022ec0e994d4d0'/>
<id>urn:sha1:3ab53b27e318f065bd133bccdf022ec0e994d4d0</id>
<content type='text'>
- Use a uintptr_t cast to get the virtual address of a pointer in
  USB_P2U() instead of a ptrdiff_t.

- Add offsets to a char * pointer directly without roundtripping the
  pointer through a ptrdiff_t in USB_ADD_BYTES().

Reviewed by:	imp, hselasky
Obtained from:	CheriBSD
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D27581
</content>
</entry>
<entry>
<title>Improve handling of alternate settings in the USB stack.</title>
<updated>2020-12-15T15:36:41Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2020-12-15T15:36:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=b1f99f9cc9787aebc5856786e5199c843679752e'/>
<id>urn:sha1:b1f99f9cc9787aebc5856786e5199c843679752e</id>
<content type='text'>
Move initialization of num_altsetting under USB_CFG_INIT, else
there will be a page fault when enumerating USB devices.

PR:		251856
MFC after:	1 week
Submitted by:	Ma, Horse &lt;Shichun.Ma@dell.com&gt;
Sponsored by:	Mellanox Technologies // NVIDIA Networking
</content>
</entry>
<entry>
<title>Improve handling of alternate settings in the USB stack.</title>
<updated>2020-12-15T12:05:07Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2020-12-15T12:05:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=b8b3f4fdc31fb21b54f5f3104e318e1c342cb2d9'/>
<id>urn:sha1:b8b3f4fdc31fb21b54f5f3104e318e1c342cb2d9</id>
<content type='text'>
Allow setting the alternate interface number to fail when there is only
one alternate setting present, to comply with the USB specification.

Refactor how iface-&gt;num_altsetting is computed.

Bump the __FreeBSD_version due to change of core USB structure.

PR:		251856
MFC after:	1 week
Submitted by:	Ma, Horse &lt;Shichun.Ma@dell.com&gt;
Sponsored by:	Mellanox Technologies // NVIDIA Networking
</content>
</entry>
<entry>
<title>Improve handling of alternate settings in the USB stack.</title>
<updated>2020-12-15T11:51:17Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2020-12-15T11:51:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=6da5df470099fc55f20b03ef364af730e7be4ffe'/>
<id>urn:sha1:6da5df470099fc55f20b03ef364af730e7be4ffe</id>
<content type='text'>
Limit the number of alternate settings to 256.
Else the alternate index variable may wrap around.

PR:		251856
MFC after:	1 week
Submitted by:	Ma, Horse &lt;Shichun.Ma@dell.com&gt;
Sponsored by:	Mellanox Technologies // NVIDIA Networking
</content>
</entry>
<entry>
<title>USB umass: add quirk to not probe</title>
<updated>2020-12-01T18:24:06Z</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2020-12-01T18:24:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=9d2d04462d1080f4a4b84f674de90a895ce1bcc1'/>
<id>urn:sha1:9d2d04462d1080f4a4b84f674de90a895ce1bcc1</id>
<content type='text'>
Some USB WLAN devices have "on-board" storage showing up as umass
and making the root mount wait for a very long time.
The WLAN drivers know how to deal with that an issue an eject
command later when attaching themselves.
Introduce a quirk to not probe these devices as umass and avoid
hangs and confusion altogether.

Reviewed by:	hselasky, imp
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D27434
</content>
</entry>
<entry>
<title>Make MAXPHYS tunable.  Bump MAXPHYS to 1M.</title>
<updated>2020-11-28T12:12:51Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2020-11-28T12:12:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=cd8537910406e68d4719136a5b0cf6d23bb1b23b'/>
<id>urn:sha1:cd8537910406e68d4719136a5b0cf6d23bb1b23b</id>
<content type='text'>
Replace MAXPHYS by runtime variable maxphys. It is initialized from
MAXPHYS by default, but can be also adjusted with the tunable kern.maxphys.

Make b_pages[] array in struct buf flexible.  Size b_pages[] for buffer
cache buffers exactly to atop(maxbcachebuf) (currently it is sized to
atop(MAXPHYS)), and b_pages[] for pbufs is sized to atop(maxphys) + 1.
The +1 for pbufs allow several pbuf consumers, among them vmapbuf(),
to use unaligned buffers still sized to maxphys, esp. when such
buffers come from userspace (*).  Overall, we save significant amount
of otherwise wasted memory in b_pages[] for buffer cache buffers,
while bumping MAXPHYS to desired high value.

Eliminate all direct uses of the MAXPHYS constant in kernel and driver
sources, except a place which initialize maxphys.  Some random (and
arguably weird) uses of MAXPHYS, e.g. in linuxolator, are converted
straight.  Some drivers, which use MAXPHYS to size embeded structures,
get private MAXPHYS-like constant; their convertion is out of scope
for this work.

Changes to cam/, dev/ahci, dev/ata, dev/mpr, dev/mpt, dev/mvs,
dev/siis, where either submitted by, or based on changes by mav.

Suggested by: mav (*)
Reviewed by:	imp, mav, imp, mckusick, scottl (intermediate versions)
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
Differential revision:	https://reviews.freebsd.org/D27225
</content>
</entry>
</feed>
