summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2022-09-25Remove unnecessary include of <sys/malloc.h>.thorpej
2022-09-25s/inerrupt/interrupt/ and s/intrrupt/interrupt/ in comments.andvar
2022-09-25Remove the bus_space_barrier I added with the commitskrll
revision 1.103 date: 2019-01-11 15:43:51 +0000; author: skrll; state: Exp; lines: +12 -2; commitid: RYSytjLNOZrFCn7B; Add a bs_barrier to make ThunderX xhci work. Not sure why this is needed, but I'll work it out later. Turns out bus_dma.c needed fixing which I did with revision 1.115 date: 2019-06-14 10:09:12 +0100; author: skrll; state: Exp; lines: +39 -34; commitid: GKW2p7ijoslyu8rB; Simplify the _ARM32_NEED_BUS_DMA_BOUNCE #ifdefs and rely on compiler optimisation of the bouncing = false case. Drain the write buf (aka DSB) in more cases Catch all CPUs that support speculation. (thunderx isn't CPU_CORTEX)
2022-09-24Remove unnecessary include of <sys/malloc.h>.thorpej
2022-09-24malloc(9) -> kmem(9)thorpej
2022-09-24Remove unnecessary include of <sys/malloc.h>.thorpej
2022-09-24Remove unnecessary include of <sys/malloc.h>.thorpej
2022-09-24uhid(4): Don't wake waiters on changing sc_open.riastradh
This is only a diagnostic measure, not part of semantics. Can probably safely eliminate the diagnostic measure at this point now.
2022-09-24efi(4): Fix access to efi_isopen.riastradh
- Qualify efi_isopen with volatile. - Ensure open has acquire ordering and close has release ordering. - Use atomic_swap, not atomic_cas -- simpler and may be cheaper. - Use atomic_store, not atomic_swap -- simpler and usually cheaper. (Could maybe just use __cpu_simple_lock to avoid having to write out these details.)
2022-09-23wskbd(4): Add include guards.riastradh
No functional change intended.
2022-09-22efi(9): Set correct calling convention for EFI runtime services.riastradh
No functional change intended -- this only affects x86, which currently doesn't support EFI runtime services.
2022-09-22ichsmb(4): Remove confusing `lpcib_' prefix on register names.riastradh
2022-09-22ichsmb(4): Only rescan i2cbus child if requested.riastradh
This will let us rescan tcoichbus later too on devices where the TCO (Intel platform controller hub watchdog timer) hangs off ichsmb(4) instead of ichlpcib(4).
2022-09-22ichsmb(4): Use config_detach_children to simplify.riastradh
2022-09-22ichsmb(4): Attach i2c bus only once.riastradh
The child could be detached, e.g. with drvctl, and then the bus rescanned, at which point it would reinitialize a mutex without destroying it.
2022-09-22tco(4): Nix PMC_TCO_BASE offset in TCO register definitions.riastradh
This just uses a subregion with PMC_TCO_BASE automatically applied. No functional change intended.
2022-09-22tco(4): Use a subregion of the PMC registers for TCO registers.riastradh
This is an intermediate step that will let us decouple it from access via PMBASE.
2022-09-22ichlpcib(4), tco(4): Take `lpcib_' off various names.riastradh
For PMC-specific ones, change `lpcib_' to `pmc_'. These are in a separate PCI device in newer chipsets. For TCO-specific ones, which may live in different places, whether at their own base address or as an offset from PMBASE, just leave it as `tco_' or `tcotimer'. No functional change intended.
2022-09-22umass(4): Reduce timeout for control xfers to standard USB timeout.riastradh
This should reduce the timeout for a failed sd@umass transfer from n*(1min + 5sec) to 1min + n*5sec where n is the number of reset and clear-stall steps.
2022-09-22usbnet(9): Omit needless miilock around uno_stop.riastradh
This time for real!
2022-09-22Take and release IFNET_LOCK around aq_stop in aq_detach. Also, call withskrll
the disable flag set so that interrupts and the callout are halted.
2022-09-22aq(4): Don't schedule tick callout on interrupt if stopping.riastradh
Make sure to take the lock around access to sc_detect_linkstat too.
2022-09-21No need to include <sys/malloc.h>thorpej
2022-09-21Fix a memory leak in an extremely uncommon error path in ste_start().thorpej
2022-09-20fill out more of the linux pci API compatmrg
- implement pcie_get_speed_cap(), pcie_bandwidth_available(), and pci_is_root_bus(). - expand "enum pci_bus_speed" to add PCIe 5.x and 6.x speeds. - add "enum pcie_link_width". - add defines for PCIE_LCSR_LINKSPEED (PCIe generation) and PCIE_LCSR_NLW (negotiated lane width) to pcireg.h - enable amdgpu_device_get_pcie_info() code now it works. ok riastradh@
2022-09-20revert rev 1.111 (which was 1.106 again, without the 1.107 changes).mrg
fixes an assert reported by msaitoh@. also fix another missing miilock assert in usbnet_stop() that triggered for me.
2022-09-18Eliminate use of IFF_OACTIVE.thorpej
2022-09-18Eliminate use of IFF_OACTIVE. (This driver never even set it.)thorpej
2022-09-18Eliminate use of IFF_OACTIVE.thorpej
2022-09-18Eliminate use of IFF_OACTIVE.thorpej
2022-09-18Eliminate use of IFF_OACTIVE.thorpej
2022-09-17Use C99 designated initializers.tsutsui
2022-09-17Make local functions static.tsutsui
2022-09-17Eliminate use of IFF_OACTIVE.thorpej
2022-09-17u_int*_t -> uint*_tthorpej
2022-09-17Liberally apply static.thorpej
2022-09-17egstart(): Use m_copydata() rather than open-coding it.thorpej
2022-09-17Convert an open-coded check for M_PKTHDR + panic into a KASSERT().thorpej
2022-09-17Eliminate use of IFF_OACTIVE.thorpej
2022-09-17u_int*_t -> uint*_tthorpej
2022-09-17Liberally apply "static".thorpej
2022-09-17malloc() -> kmem_alloc()thorpej
2022-09-17Eliminate use of IFF_OACTIVE.thorpej
2022-09-17Eliminate use of IFF_OACTIVE.thorpej
2022-09-17vte_ifstart(): Make the condition if the transmit loop the number ofthorpej
free descriptors, not "are there packets in the queue"; the latter is redundant with the IFQ_POLL() that happens within the loop after the number of available descriptors is checked. Eliminate use of IFF_OACTIVE.
2022-09-17alc_start(): Remove redundant IFQ_IS_EMPTY(). This very same conditionthorpej
is checked as soon as we enter the loop.
2022-09-17age_start(): Remove redundant IFQ_IS_EMPTY(). This very same conditionthorpej
is checked as soon as we enter the loop 2 statements later.
2022-09-17- synaptics_filter_policy no longer generates movements from stale data.mlelstv
- button boundary is now computed consistently. - multi finger operation now works for MULTI_FINGER and MULTI_FINGER_REPORT. Fixes PR kern/56476 and probably kern/56998.
2022-09-16s/Paket/Packet/andvar
2022-09-16It is correct to update ifp statistics per packet, just remove commented out ↵knakahara
old statistics code. The code is commented out by if_vmx.c:r1.57.