summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2023-01-05ignore NULL for hdaudio_audiodev in hdafg_freemkardel
also guard against NULL in ad_{capture,playback} observed during shutdown on Lenovo W510
2023-01-04Fix typo. No functional change.msaitoh
2023-01-04Regen.msaitoh
2023-01-04Fix typo. s/SSC/SCC/.msaitoh
2023-01-03Subtly adjust criteria for notification of Virtio devices injakllsch
VIRTIO_F_RING_EVENT_IDX mode. This fixes stalls in the vioif(4) transmit path that would happen sooner or later, depending on interface transmit utilization, and were particularly noticable with a NetBSD guest transmitting to its x86 KVM host at multi-gigabit speeds.
2022-12-31fix few typos in comments.andvar
2022-12-30Fix dmamap_syncs more; the number of ring elements is vq->vq_num, notjakllsch
sc->sc_nvqs.
2022-12-30s/mdoem/modem/andvar
2022-12-30Regen.msaitoh
2022-12-30Add Elkhart Lake Shared SRAM.msaitoh
2022-12-30s/succes/success/ in comments.andvar
2022-12-28Regen.msaitoh
2022-12-28Update Intel Elkhart Lake devices.msaitoh
2022-12-24s/reqest/request/, s/requst/request/ and s/reuqest/request/ in comments.andvar
2022-12-22Fix condition for ending the pacet read loop.nat
len is unsigned 16 bit so testing for less than zero is not valid.
2022-12-22Remove unused commented out code.nat
Remove unintentional stray debug printfs. Fix DSE_DEBUG build.
2022-12-22Driver for DaynaPORT SCSI/Link (dse.4).nat
Written by Hiroshi Noguchi, of which an updated version was posted to port-mac68k in 2001. Attachments were added to kernel configs for platforms that already had the Cabletron (se.4) driver added, although other platorms may benefit. Reviewed on tech-net by Izumi Tsutsui.
2022-12-22Even if an overflow interrupt is occured for a counter outside tprof management,ryo
the bit of onverflow status register must be cleared to prevent an interrupt storm.
2022-12-21Update the Rx descriptor based on the vendor driver for Linux.nonaka
This fixes a panic on RTL8125. Patch from OpenBSD if_rge.c r1.20, if_rgereg.h r1.8. Tested by msaitoh@n.o.
2022-12-18Add amdsmn(4) and amdccp(4) power management stubs.reinoud
2022-12-16tprof_lock is not a spin mutex. use mutex_{enter,exit}(). oopsryo
2022-12-16- Add support select(2)/poll(2) on /dev/tprof.ryo
- Changed sampling buffer switching frequency (which is the frequency of tprof_worker() calls and also the maximum block time of read(2) of /dev/tprof) from 1sec to 125ms. This improve tprof top responsiveness. - The maximum number of sampling buffers is now adjusted according to the number of CPUs. Previously it was fixed at 100 and was insufficient if ncpu was greater than this. The maximum number of samples per second per CPU is calculated by "TPROF_MAX_SAMPLES_PER_BUF * (HZ of tprof_worker)". Therefore, currently, 10000 * (1000/125) = 80000 maximum samplings per CPU. The actual value will vary slightly from this due to tprof_worker and read(2) timing. This value may need to be adjusted more in the future.
2022-12-16lm(4): Add Nuvoton NCT6797D support.msaitoh
2022-12-13Never fib about pin count in GPIOINFO ioctl results. The number of pinsjakllsch
on a controller simply does not change depending on the privileges of the caller.
2022-12-13fix grammar in commentjakllsch
2022-12-13ehci_device_isoc_init() returns errno not usbd_error; remove blank linejakllsch
in ehci_device_fs_isoc_init() to match ehci_device_isoc_init()
2022-12-13"periodic frame list", not "period frame list" in commentsjakllsch
2022-12-13Add missing whitespace in error message.jakllsch
2022-12-11make sure error is initialized before we return it.chs
2022-12-09Revert com.c:r1.381 because i386/qemu cannot boot. Pointed out by gson@n.o ↵knakahara
and martin@n.o.
2022-12-08Fix hang up writing /dev/console rarely in specific environments.knakahara
Some BMC seems to require these syncronous operations. If not, it does not send transmit completion interrupts for some reason.
2022-12-08Workaround for some hypervisor environments.knakahara
The environments cannot stop e1000 interrupt immediately.
2022-12-08Add AMD family 19h (zen3 and zen4) support to tprof.msaitoh
2022-12-04Make power save mode configurable by ifconfig, now defaults to non-powersavemlelstv
like other interfaces. Remove cargo-culted check for manual roaming.
2022-12-03move ARMv7 PMC register definitions to armreg.h from tprof_armv7.cryo
2022-12-03Fix bug in protocol parser that often caused fatal 'checksum error'.mlelstv
Defer power save setting to interface start. More verbose on errors. Allow build without FDT.
2022-12-03KNF a commentskrll
2022-12-03Split the BMP280 / BME280 driver into common code and create I2C andbrad
SPI attachments.
2022-12-01Use a better choice for the print format string.brad
2022-12-01Correct the humidity conversion for the BME280brad
2022-12-01Improve tprof(4)ryo
- Multiple events can now be handled simultaneously. - Counters should be configured with TPROF_IOC_CONFIGURE_EVENT in advance, instead of being configured at TPROF_IOC_START. - The configured counters can be started and stopped repeatedly by PROF_IOC_START/TPROF_IOC_STOP. - The value of the performance counter can be obtained at any timing as a 64bit value with TPROF_IOC_GETCOUNTS. - Backend common parts are handled in tprof.c as much as possible, and functions on the tprof_backend side have been reimplemented to be more primitive. - The reset value of counter overflows for profiling can now be adjusted. It is calculated by default from the CPU clock (speed of cycle counter) and TPROF_HZ, but for some events the value may be too large to be sufficient for profiling. The event counter can be specified as a ratio to the default or as an absolute value when configuring the event counter. - Due to overall changes, API and ABI have been changed. TPROF_VERSION and TPROF_BACKEND_VERSION were updated.
2022-12-01tprof_armv7 initializes on each CPUs, like tprof_armv8.ryo
2022-12-01PMCR.E should not be disabled from tprof.ryo
PMCR.E controls not only performance event counters but also the cycle counter operation, and the cycle counter may be used for cpu_counter. Similarly, the 31st bit in PMINTENCLR and PMCNTENCLR controls the cycle counter, not performance event counters, and should not be modified.
2022-12-01don't call kpreempt_{disable,enable}() from an interrupt handler.ryo
Fixed a problem in which the system would freeze if a high load (e.g., build.sh -j20) was applied while running `tprof monitor -e LsNotHaltedCyc ...' on x86. This almost eliminates the problem, but still is not enough. tprof_x86 uses NMI interrupts, which are interrupted even in splhigh(), leaving the possibility of being interrupted in the splhigh section of percpu_cpu_swap().
2022-11-25move the creation of machdep.smbios into platform_init().mrg
"dmidecode -d /dev/smbios" now works on x86. also tested on arm64 (lx2k.)
2022-11-24Mention where in the datasheet the compensation algorithms came from.brad
2022-11-23Use kpause() instead of delay() in the measurement cycle. Try andbrad
derive the proper wait delay for the measurement based upon the over sampling setting and allow the wait factor multiplier to be adjusted.
2022-11-22Read the datasheet more closely and put in some delays. The chip willbrad
just return junk if the wait is not long enough to allow a measurement to start.
2022-11-22Regen.msaitoh
2022-11-22Add some Xeon Scalable devices from OpenBSD.msaitoh