aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
...
* usb: don't create ifnet(9) for usbus devicesGleb Smirnoff2025-12-152-177/+14
| | | | Differential Revision: https://reviews.freebsd.org/D54063
* if_rge: initial import of if_rge driver from OpenBSD.Adrian Chadd2025-12-1512-0/+19229
| | | | | | | This is an initial import of the if_rge driver from OpenBSD and adapted to FreeBSD. Differential Revision: https://reviews.freebsd.org/D54101
* netmap: Let memory allocator parameters be settable via loader.confMark Johnston2025-12-141-15/+19
| | | | | | | | | | | | | | | This is useful when dev.netmap.port_numa_affinity is set to 1. When interfaces attach, they get a memory allocator that is copied from nm_mem. Parameters in nm_mem can be set using sysctls, but this happens after their values are copied. To work around this, we can make it possible to set these memory parameters as tunables. Reviewed by: vmaffione MFC after: 1 week Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D54178
* oce(4): Fix a typo in a device debug messageGordon Bergling2025-12-131-1/+1
| | | | | | - s/depricated/deprecated/ MFC after: 3 days
* mps(4): Fix a typo in a device messageGordon Bergling2025-12-131-1/+1
| | | | | | - s/reseting/resetting/ MFC after: 5 days
* xae(4): remove unused function.Ruslan Bukin2025-12-121-6/+0
| | | | Sponsored by: CHERI Research Centre
* aq(4): Use sys, not userland, headersEd Maste2025-12-116-12/+5
| | | | | | | And remove some unused definitions. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D54152
* nvme: Only attach to storage NVMe devicesWarner Losh2025-12-101-1/+8
| | | | | | Only attach CAM to the nvme storage devices. Sponsored by: Netflix
* nvme: remove now-redundant consumer interfaceWarner Losh2025-12-105-155/+0
| | | | | | | | Now that we've moved to newbus methods, we can delete this... Sponsored by: Netflix Reviewed by: dab Differential Revision: https://reviews.freebsd.org/D54095
* nvme: Notify failure with newbus callWarner Losh2025-12-103-16/+13
| | | | | | Sponsored by: Netflix Reviewed by: dab Differential Revision: https://reviews.freebsd.org/D51391
* nvme: Use new method to do async notificationsWarner Losh2025-12-103-25/+23
| | | | | | | | | Nothing uses these at the moment, but it would be useful to use in the future so convert this functionality to an newbus function dispatch. Sponsored by: Netflix Reviewed by: dab Differential Revision: https://reviews.freebsd.org/D51390
* nvd: Connect nvme_if methodsWarner Losh2025-12-105-156/+166
| | | | | | | | Conenct methods to manage namespaces explicitly to replace the old consumer interface. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D51388
* nvme_sim: Connect to events broadcast with nvme_ifWarner Losh2025-12-101-61/+84
| | | | | | | | | Connect up the nvme_ns_* events. Copy code from old ways, as needed, and refactor a little. Sponsored by: Netflix Reviewed by: dab Differential Revision: https://reviews.freebsd.org/D51387
* nvd: Attach as a child of nvmeWarner Losh2025-12-101-37/+73
| | | | | | | | | | | Rather than registering as a consumer of the nvme controller, hook into the child device and use that. This is a small regression at the moment: we don't fail the device when that happens at runtime. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D51385
* nvme_sim: Attach as a child of nvmeWarner Losh2025-12-101-53/+85
| | | | | | | | | | | | Rather than registering as a consumer of the nvme controller, hook into the child device and use that. This is a small regression at the moment: we don't fail the device when that happens at runtime, and we don't handle new namespaces when they arrive (though that feature is currently fragile). Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D51384
* nvme: Add child device for each controllerWarner Losh2025-12-102-0/+10
| | | | | | | | | | | | Step 1 in the move from registering consumers for NVMe drives to newbus nvme drives: Add a child device and attach them for each controller that we initialize. Detach them when we detach the main device. Sponsored by: Netflix Reviewed by: dab Differential Revision: https://reviews.freebsd.org/D51383
* nvme: Nvme controller generated eventsWarner Losh2025-12-101-0/+55
| | | | | | | | | | Interface for the nvme driver notifying its children of different events: async notifications, namespace events and device failure. These aren't yet connected. Sponsored by: Netflix Reviewed by: dab Differential Revision: https://reviews.freebsd.org/D51386
* mpr: Partially revert 332096ebb638Warner Losh2025-12-102-32/+2
| | | | | | These were a doodle that escaped into my staging tree. Remove them. Sponsored by: Netflix
* kboot: Explicitly use host:/procWarner Losh2025-12-102-2/+32
| | | | | | | | | | | | | When looking for the boot_params symbol we need to get the UEFI memory map, use host: prefix. The short-circuit we have for this only works when we have a filesystem. During the earliest parts of boot, we can sometimes not have this yet, so making this explicit allows these environments to function. It's always in the host path. Print better error messages, and add newlines in two palces. Sponsored by: Netflix
* bhnd_bus_*_resource: Remove redundant type and rid argumentsJohn Baldwin2025-12-0922-111/+58
| | | | | | | | | | | | | | Remove type and rid arguments from bhnd_bus_(activate|deactivate|release)_resource. This should have been done earlier to match the changes made to bus_release_resource, etc. While fixing up the callers, remove rid members from softc structures since the only time a value is needed is as a constant input to bhnd_bus_alloc_resource*. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D53410
* bhnd_bus_alloc_resource*: Pass rid by valueJohn Baldwin2025-12-0912-17/+17
| | | | | Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D53409
* dpaa2_rc_add_res: Pass rid by valueJohn Baldwin2025-12-091-16/+14
| | | | | Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D53408
* gpio_alloc_intr_resource: Pass rid by valueJohn Baldwin2025-12-098-9/+9
| | | | | Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D53407
* acpi_PkgGas: Pass rid by valueJohn Baldwin2025-12-094-7/+7
| | | | | Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D53406
* acpi_bus_alloc_gas: Pass rid by valueJohn Baldwin2025-12-097-13/+13
| | | | | Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D53405
* pci_reserve_map: Pass rid by valueJohn Baldwin2025-12-092-16/+16
| | | | | Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D53404
* resource_list_reserve: Pass rid by valueJohn Baldwin2025-12-093-14/+13
| | | | | Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D53403
* bus_alloc_resource: Pass rid by value to BUS_ALLOC_RESOURCE DEVMETHODJohn Baldwin2025-12-0953-165/+164
| | | | | | | | | The wrapper functions such as bus_alloc_resource_any() still support passing the rid by value or pointer, but the underlying implementation now passes by value. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D53402
* cxgbe: Stop using bus_space_tag/handle directlyJohn Baldwin2025-12-093-19/+11
| | | | | | Reviewed by: np, imp Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D53030
* nvme: Rename NVME_NS_ADDED to NVME_NS_ALIVE and _CHANGED to _DELTAWarner Losh2025-12-054-7/+7
| | | | | | | NVME_NS_ADDED will conflict with a later change, so change it here. Likewise NVME_NS_CHANGED. Sponsored by: Netflix
* nvme: Improve error message for invalid format valueWarner Losh2025-12-051-7/+5
| | | | | | | | | | Improve the wording of the invalid namespace value. Reword the comment and move a line of code to the block it logically belongs to. No functional changes intended. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D51393
* ice(4): Add support for 40G maximal PMD speedKrzysztof Galazka2025-12-052-3/+5
| | | | | | | | | | | | | | E823 backplane devices may support 40G as maximal PMD speed. Extend port topology reading logic to handle this case. While at that fix indentation according to FreeBSD style(9). Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com> Tested by: gowtham.kumar.ks_intel.com Approved by: kbowling (mentor), erj (mentor) Sponsored by: Intel Corporation MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D53587
* xhci: Add header values for Debug Capability (DbC)Tom Jones2025-12-051-0/+121
| | | | | | | | | Add header values for xHCI debug capability. These values are defined in section 7.6 of xHCI Specification 1.2b (April 2023). Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D53897
* xhci: Correct name of HCCPARAMS RegisterTom Jones2025-12-054-6/+6
| | | | | | | | | | On inital import the name of HCCPARAMS1 was misnamed as HCSPARAMS0. HCCPARAMS1 is defined in section 5.3.6 of xHCI Specification 1.2b (April 2023). Reviewed by: adrian Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D53895
* xhci: Add some Alder lake device idsTom Jones2025-12-051-0/+2
| | | | | | Reviewed By: aokblast Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D52994
* pmc: add alderlaken modelAnaëlle CAZUC2025-12-041-0/+4
| | | | | | | | | | This commit adds alderlaken CPU model to hwpmc/libpmc. JSON event definitions are imported from Intel perfmon version 1.16. Reviewed by: mhorne MFC after: 1 week Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D49229
* pmc: add emerald rapids modelAnaëlle CAZUC2025-12-041-0/+4
| | | | | | | | | | This commit adds emerald rapids CPU model to hwpmc/libpmc. JSON event definitions are imported from Intel perfmon version 1.06. Reviewed by: mhorne MFC after: 1 week Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D49228
* pmc: add alderlake modelAnaëlle CAZUC2025-12-041-0/+3
| | | | | | | | | | | | The commit 601925180df4 added the models 6-B7, 6-BA, 6-BF to libpmc, but they must also be added to the hwpmc module to allow pmc to work on those CPUs. Reviewed by: mhorne MFC after: 1 week Fixes: 601925180df4 ("libpmc: add more alderlake models") Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D49255
* nvme: Fix devd logging of SMART_ERRORWarner Losh2025-12-041-1/+5
| | | | | | | Remove extra arg so that we have type=SMART_ERROR rather than an invalid message. Also log all aens. Sponsored by: Netflix
* ichsmb: shutdown interrupts to prevent spurious interrupts after kexecJohn-Mark Gurney2025-12-033-0/+13
| | | | | Obtained from: Hewlett Packard Enterprise Rebiewed by: jhb, jhibbits
* ofw: Fix 64-bit arithmetic in cpufreq_dt.c.Michal Meloun2025-12-031-1/+1
| | | | MFC after: 3 weeks
* ofw: Add ofw_bus_is_machine_compat().Michal Meloun2025-12-032-0/+12
| | | | | | | | | We need a quick way to identify a given machine (SoC), mainly when implementing quirks for a given SoC. MFC after: 2 weeks Reviwed by: imp Differential Revision: https://reviews.freebsd.org/D53992
* ufshci: Add a Auto Hibernate quirk to Intel Alder Lake-NJaeyoon Choi2025-12-031-1/+2
| | | | | | | | Alder Lake-N supports Auto Hibernate, but it does not work. Reviewed by: imp (mentor) Sponsored by: Samsung Electronics Differential Revision: https://reviews.freebsd.org/D54006
* ufshci: Support UIC Auto HibernationJaeyoon Choi2025-12-036-3/+73
| | | | | | | | | | Automatically transition the UniPro link to Hibernate when it is idle for the duration configured by the Auto-Hibernate Idle Timer (AHIT). This reduces link power while the device is inactive. Reviewed by: imp (mentor) Sponsored by: Samsung Electronics Differential Revision: https://reviews.freebsd.org/D54004
* ufshci: Support UIC hibernation enter/exitJaeyoon Choi2025-12-034-13/+196
| | | | | | | | | Add helpers to issue DME_HIBERNATE_ENTER/DME_HIBERNATE_EXIT and call them during suspend/resume. Reviewed by: imp (mentor) Sponsored by: Samsung Electronics Differential Revision: https://reviews.freebsd.org/D54003
* ufshci: Support suspend/resumeJaeyoon Choi2025-12-037-5/+135
| | | | | | | | | Handle system power events and issue START STOP UNIT (SSU) to the UFS Device WLUN (0x50). Reviewed by: imp (mentor) Sponsored by: Samsung Electronics Differential Revision: https://reviews.freebsd.org/D54002
* nvme: Use memcpy instead of memmove in nvme_cdata_get_disk_identJohn Baldwin2025-12-021-1/+1
| | | | | | | | These buffers should not overlap. Reviewed by: imp Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D53842
* nvme: Minor style nitWarner Losh2025-12-021-2/+1
| | | | Sponsored by: Netflix
* Fintek F81232 USB to serial driverDiane Bruce2025-12-021-0/+759
| | | | | | | | | Driver for Feature Integration Technology Inc. (aka Fintek) F81232 USB to serial driver. Reviewed by: thj,adrian,UB Approved by: adrian Differential Revision: https://reviews.freebsd.org/D53893
* evdev: Sync event codes with Linux kernel 6.18Vladimir Kondratyev2025-12-012-30/+71
| | | | MFC after: 1 month