summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2022-05-21Raise threshold of debug level to 3 for DPRINTF() in non-error path ofrin
mvgbe_encap(). Without this change, debug level 2 is almost unusable...
2022-05-20s/appropiate/appropriate/ in comments and readme file.andvar
2022-05-20s/auxillary/auxiliary/ in comments.andvar
2022-05-20Improve Hyper-V support.nonaka
vmbus(4): - Added support for multichannel. hvn(4): - Added support for multichannel. - Added support for change MTU. - Added support for TX aggregation. - Improve VLAN support. - Improve checksum offload support.
2022-05-19For chips which contain an ASF/IPMI firmware, instruct the chip to shut the ↵buhrow
host ASF firmware down when attaching the device so the IPMI BMC can use the same physical port even when NetBSD doesn't have a network configuration on the device. By contrast, when the device gets a network configuration assigned to it and bge_init() is called, the host ASF firmware is brought up so both NetBSD and the IPMI BMc can use the same physical port. This now matches FreeBSD behavior, as well as behavior from NetBSD-5.2. Tested on a Sunfire X2200-M2 system with the following chip: bge1 at pci7 dev 4 function 1: Broadcom BCM5715 Gigabit Ethernet bge1: interrupting at ioapic0 pin 11 bge1: HW config 000000d4, 00000014, 00000000, 00000000 00000000 bge1: ASIC BCM5715 A3 (0x9003), Ethernet address 00:1e:68:XX:XX:XX bge1: setting short Tx thresholds brgphy1 at bge1 phy 1: BCM5714 1000BASE-T/X media interface, rev. 0 brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
2022-05-19Regen for realcharlotte
2022-05-19Regencharlotte
2022-05-19usbdevs: Add Xbox 360 controllercharlotte
2022-05-19Don't set the more flag when there is no packet to process.msaitoh
Move the location of the loop limit check next to the DD bit test. This change prevent from scheduling the next txrx_work that does nothing.
2022-05-19Call wm_xxeof() only when limit > 0.msaitoh
It's not required to call wm_xxeof() when limit == 0. It means that all xxeof processing will be done by softint or workqueue. Currently, wm_xxeof() returns quickly before checking the descriptor head when limit == 0 and return with ture to set the more flag.
2022-05-18fix typos in word "access" and it derivatives, mainly in comments.andvar
2022-05-18ubsec(4): Nix dead code.riastradh
No functional change intended.
2022-05-17fix few typos in comments.andvar
2022-05-17Call m_freem(m) only if m0 == NULL.msaitoh
2022-05-16sdmmc: ld: Include the card type (SD card, MMC) in the disk description.jmcneill
2022-05-16tprof: armv8: Only attach to known PMU types.jmcneill
2022-05-15rasops: fix automagic box chars for stride > 1 on little endianuwe
This makes DEC line drawing (acsc) work correctly for "iso" fonts of large sizes, e.g. spleen16x32 on x86.
2022-05-15rasops_mapchar: cosmetics, same object code.uwe
Don't hide the important function call inside an if condition. Don't reuse a variable, changing what it means in the middle of an expression.
2022-05-15rasops: make autogenerated box drawing chars actually useduwe
Fix mapchar to use PICK_FONT() to match what putchar does. Otherwise putchar will never get to see the glyph codes for the autogenerated box drawing chars.
2022-05-14xhci(4): Handle race between software abort and hardware stall.riastradh
2022-05-14xhci(4): Fix edge case in simultaneous xfer abort and failure.riastradh
On successful usbd_xfer_trycomplete, caller must set ux_status and call usb_transfer_complete before releasing the pipe (bus) lock. Failing to call usb_transfer_complete is a mistake. Presumably this was intended to claim the xfer to complete it only on the last packet. I previously introduced the violation of this rule when the code looked like xfer->ux_status = err; if (trb stuff) usb_transfer_complete(xfer); I mostly mechanically changed all the assignments of xfer->ux_status to do usbd_xfer_trycomplete first and then usb_transfer_complete. In the original, the extra assignment of xfer->ux_status in the event we _don't_ immediately call usb_transfer_complete was likely redundant and (except insofar as the abort protocol was broken) harmless. But now it is a problem because of the contract between usbd_xfer_trycomplete and usb_transfer_complete under the pipe (bus) lock. In retrospect, the original probably should have been if (trb stuff) { xfer->ux_status = err; usb_transfer_complete(xfer); } and my mechanical transformation should have worked, but also in retrospect I should have put more thought into the change and done it a little less mechanically.
2022-05-14uvideo(4): Fix missing line breaks in debug messages.riastradh
2022-05-14uvideo(4): Fix lengths of various frame descriptors.riastradh
This driver doesn't use the frame interval members, which are either fixed (if continuous) or flexible (if discrete) and so can't be encoded in C types correctly. If we did use them, it would be necessary to use pointer arithmetic on char pointers in the enclosing descriptor buffer. But we don't, so this is simpler, and fixes the sizeof checks to avoid running off the end of invalid descriptors. Should fix failure to parse legitimate descriptors (without regressing to choking on malicious ones): -uvideo: found format (index 1) type 9 size 1280x720 size 1843200 stride 2560 interval 333333 - ^ picking this one -uvideo: found format (index 2) type 9 size 640x480 size 614400 stride 1280 interval 333333 +uvideo: truncated CS subtype-0x7 descriptor, length 30 < 38uvideo: unimplemented VS CS descriptor len=30 type=0x24 subtype=0x07 +uvideo: unimplemented VS CS descriptor len=30 type=0x24 subtype=0x07
2022-05-14uvideo(4): Avoid exposing streams with invalid descriptors.riastradh
2022-05-14Apply extra-delay quirk to "Intel 9 Series SATA Controller (AHCI)";rin
without the quirk, the controller fails to probe some HDD models, at least "Seagate ST2000DM008". Info and patch provided by Tiago Seco, thanks!
2022-05-14Add ISO and JIS keyboard layouts for ADB to USB emulationmanu
The layout is configurable using sysctl machdep.adbkbdX.emulate_usb: 0 = no emulation 1 = ANSI 2 = ISO (new with this change) 3 = JIS (new with this change) Default value is detected using the ADB keyboard handler id. JIS default is disabled until it is tested.
2022-05-13nvmm_x86_vmx.c: remove an #ifdef DIAGNOSTIC, it is wrong since r1.66tnn
2022-05-13Fix compile error when MFII_DEBUG is set. Whitespace fix.msaitoh
2022-05-13Improve DNPRINTF. No functional change.msaitoh
2022-05-12wsfont(4): WSDISPLAYIO_LDFONT requires device opened for writing.uwe
2022-05-12I think MFI_BBU_STATE_LEARN_CYC_REQ is not an error.msaitoh
2022-05-12Use IBBU's data structure for iBBU-09.msaitoh
2022-05-12No functional change.msaitoh
- Reduce diff against OpenBSD - Whitespace fix. - Sort some defines and structures. - Add comment. - KNF.
2022-05-12Don't use MFI_PD_LIST_SIZE. Same as OpenBSD. No functional change.msaitoh
2022-05-11Regenmarkd
2022-05-11Add some Broadcom / LSI RAID cards.markd
2022-05-11bus_dmamem_unmap() before bus_dmamem_free(), otherwise we may give back meomrybouyer
which is still (and will stay) mapped. Fixes one instance of "panic: HYPERVISOR_mmu_update failed" on Xen. There may be others.
2022-05-11Add support for iBBU-09 to show BBU voltage, current and temp correctly.msaitoh
2022-05-11mfii(4): Set stripe size correctly for BIOCVOL. Same as mfi.c rev. 1.75.msaitoh
2022-05-11KNF. s/u_quad_t/uint64_t/. No functional change.msaitoh
2022-05-11fix various typos in comments.andvar
2022-05-10Regenmlelstv
2022-05-10More ids for Prolific Serial Adaptersmlelstv
2022-05-10mfi(4): Set stripe size correctly for BIOCVOL.msaitoh
Before: Volume Status Size Device/Label Level Stripe ============================================================= 0 Online 5.5T mfi0 RAID 5 N/A 65535 seconds After: Volume Status Size Device/Label Level Stripe ============================================================= 0 Online 5.5T mfi0 RAID 5 64K 65535 seconds
2022-05-10Add comment. bv_stripe_size is used in KB.msaitoh
2022-05-09Use union mbox instead of unit8_t[] to avoid unaligned access.msaitoh
- Same as other OSes. - mfii.c already use this. - Found by kUBSan.
2022-05-09KNF. Whitespace. No functional change.msaitoh
2022-05-08Trailing whitespaceskrll
2022-05-07Clear mailbox to not to pass garbage data.msaitoh
2022-05-07Use mlp_bgi for MFI_LD_PROG_BGI. Same as OpenBSD.msaitoh