summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2019-11-26use "sc" as the name of tun_softc variables, not "tp".David Gwynne
this makes the driver more like the rest of the tree. no functional change.
2019-11-26When deciding if a pci device is 'primary' test if the efi fb memoryJonathan Gray
range is contained in a pci bar instead of only testing if the start address of the efi fb is non zero. Corrects a problem reported by Brennan Vincent on a Dell XPS 9575 with amdgpu and inteldrm booted via efi. amdgpu would wrongly decide it was primary on probe and as a result when encountering an unrelated error efifb would reattach when amdgpu detached. When inteldrm would latter attach an assert would trigger as efifb had already claimed the console. ok kettenis@
2019-11-26Compute RSSI on 9k iwm(4) devices in the same way we do for previousStefan Sperling
hardware generations. Fixes spurious > 100% signal strength values. reported by and ok mlarkin@
2019-11-26Don't use LOCKPARENT on namei calls for realpath(). We don'tBob Beck
require this anymore since we now behave like posix. Fixes a problem where a symlink to / would return ENOTDIR because the parent could not be locked - noticed by Raimo Niskanen <raimo@erlang.org> ok guenther@ deraadt@
2019-11-25Use scsi_read_cap[10|16] instead of re-rolling the code.Kenneth R Westerback
More careful initialization, better error/debug messages.
2019-11-25Move struct scsi_read_cap_data and struct scsi_read_cap_data_16 toKenneth R Westerback
scsi_all.h. Add scsi_read_cap_10() and scsi_read_cap_16() functions to scsi_base.c, i.e. move logic to do actual READ_CAPACITY commands out of sd_read_cap() and sd_read_cap_16(). This will allow the READ_CAPACITY code to be reused by cd(4). Return -1 for errors where the error code is just discarded, reducing ENOMEM, ENXIO, EIO uses. No intentional functional change.
2019-11-25Convert infinite sleeps to tsleep_nsec(9).Martin Pieuchot
ok bluhm@, cheloha@
2019-11-25Convert to tsleep_nsec(9) and use the correct timeout period in msec.Martin Pieuchot
Tested by kevlo@, ok stsp@
2019-11-24If the RTM_PROPOSAL is a solicitation proposal forward the request toClaudio Jeker
all interfaces. Most handlers will ignore it but at least umb(4) will send a response back. OK florian@
2019-11-24Add umb_rtrequest() to handle RTM_PROPOSAL events and send back theClaudio Jeker
DNS proposals in that case. Also clear the DNS proposals when the interface is deconfigured (e.g. when going down). OK florian@
2019-11-24Make it possible to call ether_rtrequest with a NULL rt argument.Claudio Jeker
In that case the function can just return. Part of a larger diff to use the if_rtrequest functions for RTM_PROPOSAL info. OK florian@
2019-11-24correct return type of sign_extend64()Jonathan Gray
2019-11-23Move srtdnstosa() static inline function under #ifdef _KERNEL. This wayClaudio Jeker
3rd party software stuck with c90 will still compile. Quick fix since RTM_PROPOSAL will most porbably change later on. Reported by naddy and aja
2019-11-23envy(4): *sleep(9) -> *sleep_nsec(9); ok ratchov@cheloha
2019-11-23Consistently use ISSET() to check for set flags.Kenneth R Westerback
2019-11-23Consistently use !ISSET() to check for unset flags.Kenneth R Westerback
2019-11-23Consistently use SET() to set bits.Kenneth R Westerback
2019-11-22Be consistent and always use CLR() to clear flags.Kenneth R Westerback
2019-11-22The DNS proposal list can (soon) be empty to signal a withdraw, relaxFlorian Obser
the size constraint to allow this to pass through the kernel. Looks good to deraadt@
2019-11-22Use rtm_proposal() to send out DNS updates. Both when DNS are added andClaudio Jeker
when the interface is deconfigured (when going down).
2019-11-22Add rtm_proposal, a function to send out RTM_PROPOSAL messages from theClaudio Jeker
kernel. Will be used to have umb(4) inform unwind(8) about DNS changes. OK bluhm@ tested by florian@ and deraadt@
2019-11-21Be consistent and always use [!]ISSET() to test flags in xs->flags.Kenneth R Westerback
2019-11-21Be consistent and always use SET() to set flags in xs->flags.Kenneth R Westerback
2019-11-21Fix comment typo: specificationakoshibe
2019-11-21rename struct tun_softc members so they're prefixed with "sc".David Gwynne
this makes tun more consistent with more of our drivers.
2019-11-21Remove duplicate #define OFP_ALIGNMENTakoshibe
2019-11-20ksmn(4): Improve the precision of the fractional part of temperatures.Bryan Steele
Before we were losing some precision in the raw value sensor conversion. raw: 478 before: 59.70 after: 59.75 real: 59.750 raw: 479 before: 59.80 after: 59.88 real: 59.875 raw: 480 before: 60.00 after: 60.00 real: 60.000 Tested on Ryzen 7 2700X, Ryzen 5 2500U, and Zen2 by nte. Diff and feedback from nte <lists at nte.email>
2019-11-20Some Intel SD/MMC controllers do not like the voltage beingPatrick Wildt
set to 0V, so add a quirk for Apollo Lake, Gemini Lake and 100 Series. Tested by and ok bmercer@ and mlarkin@ for 100 Series Tested by and diff from James Hastings for Apollo and Gemini Lake
2019-11-20regenPatrick Wildt
2019-11-20Add PCI IDs for Gemini Lake SD/MMC controllersPatrick Wildt
2019-11-20Correctly match another 9560-based device.Patrick Wildt
From Bryan Vyhmeister
2019-11-20Ensure that the kernel stack is properly aligned on mips64. This fixesVisa Hankala
a panic related to vararg function sppp_auth_send(). The vararg code generated by clang assumes 16-byte stack alignment. pppoe(4)-induced panic seen by many on octeon Fix from miod@
2019-11-19When waiting on pipe I/O, simplify the unlock/relock logic usinganton
rwsleep(). All made possible by the recent switch to using a rwlock as the exclusive pipe lock. ok visa@
2019-11-19regenStefan Sperling
2019-11-19Add PCI ID for an Intel AX 200 device.Stefan Sperling
ok jsg@
2019-11-19Set isr to the correct value (sc->rl_intrs).Kevin Lo
ok deraadt@
2019-11-19Don't assign ifp twice in the re_txeof().Kevin Lo
ok deraadt@
2019-11-19Correct the link speed constant variables. From Shoichi Yamaguchi.YASUOKA Masahiko
ok jmatthew
2019-11-19Enable rge(4).Kevin Lo
ok deraadt@
2019-11-19take care to avoid a race when creating the same interface.David Gwynne
it was possible for multiple tun0 interfaces to be created concurrently, which confused the pf_if code. when concurrent tun0 interfaces were created, the pf_if code tried to add an addrhook for each interface, but because they shared a name the two hooks ended up on one interface. if the interface with two addrhooks was destroyed, KASSERT(TAILQ_EMPTY(&ifp->if_addrhooks)) would trip. before the KASSERT existed, we'd blindly free a tailq head, which would corrupt the list, which would cause faults in pfi_detach_ifnet() anyway. so now we take more care to ensure multiple tun0 interfaces cannot exist concurrently. inserting a tun or tap interface into the list of tun or tap interfaces now checks to ensure that an interface with the same unit number doesnt already exist. if an existing interface is found, insert errors with EEXIST and the callers can unwind. the tunopen and tapopen paths cope with losing the race. Reported-by: syzbot+2b26012b9ea93834723e@syzkaller.appspotmail.com sashan@ made a reliable test that could produce the failures ok sashan@
2019-11-18Delete commented out VNDIOCGET60 ioctlJeremie Courreges-Anglas
Spotted by Benjamin Baier
2019-11-18Accept inet6 address with missing sa_len for the get ioctl(2).Alexander Bluhm
dhcpcd from ports uses SIOCGIFAFLAG_IN6 without setting sin6_len. OK deraadt@ millert@
2019-11-18Fix off-by-one TRB issue in bulk transfers larger than 64k.Marcus Glocker
This makes udl(4) on xhci(4) work fine. Help and ok patrick@
2019-11-18Fix actual length calculation of short transfers in xhci(4). So farPatrick Wildt
we have subtracted the remaining length from the total transfer length, which essentially means that we assume that all TRBs have successfully been transferred apart from the remainder. Actually we might get a short completion in the middle of a chain of TRBs, which means that all TRBs until this TRB have completed successfully apart from a remainder. Thus we have to count the length of all TRBs until and including the one that we went short on, and remove the remainder. All following TRBs in the same transfer must be ignored. Found by and fixed with gerhard@ ok mglocker@
2019-11-18Add support for 9260 and 9560 devices to iwm(4).Stefan Sperling
Joint work with patrick@ Parts lifted from FreeBSD's r354492, r354502, r354508, r354516, r354508. Firmware is available with fw_update(1) thanks to sthen@ 7265 device tested by myself (still works) 8260 device tested by phessler@ (still works) 9260 devices tested by Travis Cole and myself 9560 devices tested by jcs@, mlarkin@, kevlo@, guenther@ Some 9560 devices have known issues. Those are being worked on. ok patrick@
2019-11-18don't leak the the task struct used for the addrhook in pfi_detach_ifnet.David Gwynne
2019-11-18regenKevin Lo
2019-11-18Introduce rge(4), a new driver for Realtek 8125 PCI Express 2.5Gb EthernetKevin Lo
device. "just commit!" deraadt@ "looks good to me" jmatthew@
2019-11-17"set delay" never worked as committed: the delay field was not copiedOtto Moerbeek
in and the pf_pktdelay struct ws not declared and initialzed properly. ok rob@ kn@
2019-11-17print firmware version as unsigned intsJoshua Stein
ok stsp