summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2018-08-13Attach to Sierra Wireless MC7304/MC7354 & EM7455, from Denis Lapshin.Martin Pieuchot
2018-08-13regenMartin Pieuchot
2018-08-13Sierra Wireless MC7304/MC7354, from Denis Lapshin.Martin Pieuchot
2018-08-12Add administrative options to LACP trunk implementation.ccardenas
The trunk driver now has a new ioctl (SIOCxTRUNKOPTS), which for now only has options for LACP: * Mode - Active or Passive (default Active) * Timeout - Fast or Slow (default Slow) * System Priority - 1(high) to 65535(low) (default 32768/0x8000) * Port Priority - 1(high) to 65535(low) (default 32768/0x8000) * IFQ Priority - 0 to NUM_QUEUES (default 6) At the moment, ifconfig only has options for lacpmode and lacptimeout plumbed as those are the immediate need. The approach taken for the options was to make them on a "trunk" vs a "port" as what's typically seen on various NOSes (JunOS, NXOS, etc...) as it's uncommon for a host to have one link "Passive" and the other "Active" in a given trunk. Just like on a NOS, when applying lacpmode or lacptimeout, the settings are immediately applied to all existing ports in the trunk and to all future ports brought into the trunk. Tested by many on a plethora of NIC drivers and switches. Ok remi@
2018-08-12Drop reference to dmabuf "file" as fnew() returns one that has twoMark Kettenis
references. ok visa@, deraadt@
2018-08-12Really overwrite the major of com(4) instead of the hardcoded 12.Mark Kettenis
Should have been part of the earlier commit that unified armv7 and arm64.
2018-08-12Add retguard macros for arm64 asm and apply them in the straightforwardmortimer
cases in kernel and libc. ok deraadt@
2018-08-11Make legacy interrupts work in more cases.Mark Kettenis
2018-08-11Use IORT table to map requester ID into MSI sideband data.Mark Kettenis
2018-08-11Get rid of PLEDGE_STAT, which was a hack used for unveil.Bob Beck
We use UNVEIL_INSPECT instead in the unveil flags for the same purpose, and now add traversed vnodes of a path with UNVEIL_INSPECT instead of with 0 flags and voodoo in unveil_flagmatch. This allows us to uncontort the logic of unveil_flagmatch a bunch. helpful review and ok from semarie@
2018-08-11Match "ARMH0011".Mark Kettenis
2018-08-11Make GICv3 redistributor support actually work and add ITS support.Mark Kettenis
2018-08-11Bump MAXCPUS from 8 to 24.Mark Kettenis
ok jsg@
2018-08-11Fix a couple of bugs in the ITS support code:Mark Kettenis
- Don't dereference sc_prop if we're not handling an LPI. Fixes a crash on qemu when emulating a GICv3 without ITS (and therefore no LPIs(. - Use the true IPL when calculating the priority of an LPI. The old code used a variable that still had the IPL_MPSAFE flag in it. - Write to the right GITS_BASERn instead of ialways writing to GITS_BASER0. - Flush the cache after initializing/modifying the in-memory tables. The GICv3 on the SynQuacer isn't fully coherent and only supports the "non-shareable" attribute for its in-memory tables. So we have to flush the cache to the point of coherency to guarentee that the GIC sees our changes to those tables. Throw in a full memory barrier for good measure. Also add support for the SynQuacer pre-ITS. ok jsg@, patrick@
2018-08-11Add comment explaining why we read basic MCS set only from beacon/probereq.Stefan Sperling
requested by mpi@
2018-08-11Use MAXCPUS as the number of elements for the array of per-cpu data.Mark Kettenis
ok jsg@, patrick@
2018-08-11Use MAXCPUS as the number of elements for the array of per-cpu data.Mark Kettenis
Fixes machines with more than 8 cores. ok jsg@, patrick@
2018-08-10crank to 6.4-betaTheo de Raadt
2018-08-10Bump boot loader versions for softraid passphrase handling change.Joel Sing
2018-08-10Retry on incorrect passphrase for softraid crypto boot.Joel Sing
Historically, the softraid crypto support in the boot loaders has only given one attempt to provide the correct passphrase. There were a few reasons for this, including the fact that pkcs5_pbkdf2() allows an empty passphrase and that returning EPERM allowed for another attempt. With the event of KARL and the need for bsd.booted with hibernate resumption, this becomes much more of an issue - if you get the passphrase wrong you fail to resume. There are also other situations like using /etc/boot.conf to switch serial console, but an incorrect passphrase results in the config not being read. Also, bcrypt_pbkdf() does not permit empty passphrases. This reworks the softraid crypto support in the boot loaders so that it loops requesting a valid passphrase until one is provided, or an empty passphrase is entered (at which point it will abort). ok mortimer@ tb@
2018-08-10Update fd_freefile when filtering/closing kqueue descriptors in fdcopy().Joel Sing
Prior to r1.153 of kern_descrip.c, the kqueue descriptors were removed using fdremove(), which reset fd_freefile as appropriate. The new code simply avoids adding the descriptor to the new table, however this means that fd_freefile can be left with an incorrect value, resulting in a file descriptor allocation "hole". Restore the previous behavour by lowering fd_freefile as appropriate when dropping descriptors. Issue found via golang regress tests. ok deraadt@ mpi@ visa@
2018-08-09Remove redundant "kq == kn->kn_kq" checks. The lists kq_knhash andVisa Hankala
kq_knlist are dedicated to a single kqueue instance, which makes the filtering by kn_kq unnecessary. OK kettenis@, mpi@
2018-08-09Hook up the rasops text emulation functions so we only write outPatrick Wildt
the characters that changed, and only when they change. This replaces writing out the whole framebuffer every 100ms with a partial update mechanism. Now the system stays responsive and does not slow down anymore due to the periodic update.
2018-08-09Implement out-of-band interrupt support in the bwfm(4) SDIO backend.Patrick Wildt
2018-08-09Make imxesdhc(4) pass per-function cookies to the SD/MMC bus.Patrick Wildt
ok kettenis@
2018-08-09Allow passing per-function cookies through the SD/MMC bus to SDIOPatrick Wildt
devices. This allows SDIO device drivers to read information from the ACPI or FDT tables. ok kettenis@
2018-08-09Correct the bitmask that returns the function count. We missed a bitPatrick Wildt
and thus only supported 4 functions instead of 8. ok kettenis@
2018-08-09Synopsys Designeware PCIe IP isn't 100% ECAM compliant. It doesn't handleMark Kettenis
type 0 configuration requests correctly which results in devices on bus 0 appearing multiple times. Fix this by adding a quirk and match the appropriate compatible string. ok jsg@, patrick@
2018-08-09Define __HAVE_ACPI on arm64 and __HAVE_FDT on arm64, armv7 and octeonPatrick Wildt
so that we can include firmware-dependant code in generic drivers to be able to extract metadata information like MAC addresses and out-of-band interrupts from the ACPI/FDT tables. ok kettenis@
2018-08-09regenMark Kettenis
2018-08-09ASMedia ASM1184e PCIe switch.Mark Kettenis
2018-08-09Currently, attempting to move an immovable lo(4) to a new rdomain will failakoshibe
with an EPERM, but the target rdomain will still be created. Move the check for an lo(4)'s if_index/if_rdomain to before the creation of a nonexisting target routing table. ok benno@ claudio@ mpi@
2018-08-09Remove the port id check entirely. We don't do anything with the portJonathan Matthew
id after that, so it seems like a silly reason to reject a target. ok dlg@ deraadt@
2018-08-08Support DMA coherent devices that attach to mainbus(4) as well.Mark Kettenis
ok patrick@
2018-08-08Fix the ITLinesNumber mask and bump the number of supprted redistributorsMark Kettenis
up to 24. ok patrick@
2018-08-08Fix possible division by zero caused by bogus usb descriptors. FromAlexandre Ratchov
Michael W. Bombardieri. Thanks.
2018-08-08Implement IRQ masking and unmasking in imxgpio(4).Patrick Wildt
2018-08-08Extend the FDT interrupt API to support masking and unmasking IRQs.Patrick Wildt
Discussed with kettenis@
2018-08-08regenKevin Lo
2018-08-08Fix Realtek product name from RT8188 to RTL8188CEKevin Lo
ok stsp@
2018-08-08r1.19 removed a bunch of code, but not enough, and left dead code around.kn
From Miod Vallat, "Go ahead" kettenis
2018-08-08Recognise 'Speculative Store Bypass Disable' support cpuid bit.Jonathan Gray
Documented in 'Speculative Execution Side Channel Mitigations' revision 2.0.
2018-08-07Ignore basic MCS set information found in association responses.Stefan Sperling
Some APs (Aruba 105) send a bogus basic MCS set in assoc responses which prevents us from enabling 11n support with those APs, while these APs still behave as if were were an 11n client which renders the association unusable. The basic MSC set is already provided in beacons anyway, and the 802.11 2012 standard says the basic MSC set is reserved in frames other than beacons (see Table 8-130). ok mpi@
2018-08-07UNVEIL_* flags defined elsewhere in a .h fileTheo de Raadt
2018-08-07Fix dangling knote references.Visa Hankala
kqueue_close() does not take into account that the kqueue instance may have queued knotes. This can cause a use-after-free if new knotes are enqueued on the kqueue as a result of file closing. Correct the error by dequeueing each knote before freeing it. Since r1.93 of kern_event.c, each kqueue instance has its knotes in nonshared lists kq_knhash and kq_knlist, so kqueue_close() does not have to skip other kqueues' knotes any longer. The code can be simplified by using knote_remove() for clearing the knote lists. The function uses knote_drop() which takes care of knote dequeueing. Found and initial analysis by anton@ OK anton@, mpi@
2018-08-06Make it possible to build a MULTIPROCESSOR kernel on armv7. While thisMark Kettenis
doesn't actually spin up any secondary CPUs, it does run. Mostly a cleanup of <machine/cpu.h> along the lines of what I did earlier on arm64. Makes armv7 use the MI mplock implementation and implements copyin32. ok patrick@
2018-08-06Fix debug message in ieee80211_auth_open(): s/reason/status/Stefan Sperling
Status codes and reason codes are separate things listed in distinct tables. This debug message made me look at the wrong table and scratch my head.
2018-08-06make ifconfig <if> join display the list of networks configured forSebastian Benoit
auto-join with feedback from florian and stsp ok florian@ phessler@ (on previous versions of the diff) stsp@
2018-08-06Refactor ieee80211_add_ess():Stefan Sperling
Drop ieee80211_add_ess's nwid parameter. Read nwid and length directly from the ic to make it more obvious where this function is reading from. nwids are binary data with an explicit length, so treat them as such instead of treating them like strings. ok florian phessler
2018-08-06Give the FDT interrupt API a more generic naming by replacing thePatrick Wildt
arm_intr_* prefix with fdt_intr_*. ok kettenis@