summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2018-03-20To allow sharing more code between armv7 and arm64 platforms, introducePatrick Wildt
a common bus space tag that can be used for early console attachment. ok kettenis@
2018-03-20Add mvgpio(4), a driver to handle GPIOs on Marvell SoCs.Mark Kettenis
2018-03-20Switching from per PCB TSS to per CPU TSS broke kvm86 calls to the BIOS.Alexander Bluhm
This change fixes the issues. from hshoexer@; reported and tested by semarie@; OK deraadt@
2018-03-20Do not panic from ddb(4) when a lock requirement isn't fulfilled.Martin Pieuchot
Extend the logic already present for panic() to any DDB-related operation such that if ddb(4) is entered because of a fault or other trap it is still possible to call 'boot reboot'. While here stop printing splassert() messages as well, to not fill the buffer. ok visa@, deraadt@
2018-03-20Call bpfdetach() without holding the NET_LOCK().Martin Pieuchot
Prevents a rwlock recursion found by stsp@. ok stsp@, deraadt@, visa@
2018-03-20syncKevin Lo
2018-03-20Add support for SIMCom SIM7600E.Kevin Lo
ok deraadt@
2018-03-20Add hibernate IO path for sdmmc(4). This requires some help from theJonathan Matthew
sdmmc chipset driver, currently only implemented in sdhc(4), but mostly uses the regular path. sdhc(4) also needed the ability to perform IO while cold. ok deraadt@
2018-03-19Make it possible for the sdhc(4) attachment glue to specify the base clockMark Kettenis
frequency. ok patrick@, visa@
2018-03-19Use a table that is automatically generated from data extracted from theMark Kettenis
Linux kernel for encoding pin functions. ok patrick@
2018-03-19Switch mvpinctrl(4) from a last match to first match principle. This isPatrick Wildt
needed as the full configuration table for an SoC can specify a function (maybe erroneously) more than once, and the tables are designed so that the first match counts. This is in preparation for a followup diff that makes use of the full table. ok kettenis@
2018-03-18NULL deref on armv7 performing NFS, within 10 seconds.Theo de Raadt
Previous commit has no OK's or discussion about testing.
2018-03-18Refactor tcp_mtudisc() like NetBSD did. Do the route lookup onlyAlexander Bluhm
if the tcpcb exits. OK mpi@
2018-03-18vmm(4): handle invalid cpuid request (%eax too large) according to the SDMMike Larkin
instead of just returning 0s. Initial diff from Adam Steen, thanks! ok pd@
2018-03-17Add mvclock(4) a clock driver for the AP806 and CP110 blocks found on MarvellMark Kettenis
Armada 7K and 8K SoCs. ok patrick@
2018-03-17If we are compatible with "simple-mfd", attempt to attach child nodes.Mark Kettenis
ok visa@
2018-03-17Add proper suspend/resume support.Alexandre Ratchov
Most of the resume work is already done in the audio(4) layer, so, to fix suspend/resume we just need to reinitize the device. ok kettenis@
2018-03-17Set base DMA pointers when DMA starts.Alexandre Ratchov
The allocm() functions are supposed to allocate memory and it's bad style to access the hardware there, so move the DMA base pointers setup to the trigger_xxx(). ok kettenis@
2018-03-16Make FPU registers available in core dumps and through ptrace(2).Mark Kettenis
ok visa@, patrick@
2018-03-16Consistently spell "IPsec" in comments and debug outputs.Martin Pieuchot
From Raf Czlonka, ok sthen@
2018-03-16Add untested support for Cannon Lake and Ice Lake Ethernet (pch_cnp).Jonathan Gray
Going by changes in FreeBSD and Linux it is almost identical to pch_spt but doesn't need one of the workarounds for a pch_spt specific errata.
2018-03-16Improve calculation of the number of commands and sges available.Jonathan Matthew
The maximum number of commands may be specified in outbound scratch register 3, should be limited to 1024, and should further be reduced by one to ensure the reply queue doesn't overflow. The maximum number of sges in a command should be the highest power of two that fits in the space available in the io frame and in a chained sge frame. The maximum size of a chained frame is specified in outbound scratch register 2. part of a diff from Naoki Fukaumi ok dlg@
2018-03-16use MFI_STAT_INVALID_STATUS where appropriateJonathan Matthew
part of a diff from Naoki Fukaumi ok dlg@
2018-03-16Allocate an mfi frame for each ccb, to be used to submit passthroughJonathan Matthew
commands later. part of a diff from Naoki Fukaumi ok dlg@
2018-03-15bug fix (I found it when comparing with if_upl.c)SASANO Takayoshi
- remove extra blank line - call ifq_deq_rollback() when ugl_send() failed - call ifq_clr_oactive() before splx() ok mpi@
2018-03-15Remove the check for flags M_AUTH and M_CONF (AH and ESP).remi
The check prevents incomming multicast packages from arriving at the gif interface (eg. OSPF) when the traffic is protected by IPsec in transport mode. ok dlg@
2018-03-15"force dirty" printf's are no longer required when pushing filesystemsTheo de Raadt
safely to disk. The subsystem seems to be working as intended! :)
2018-03-15Remove unused struct member.Kevin Lo
ok deraadt@
2018-03-14When processing IPsec AH packets check that the header fits intoAlexander Bluhm
the packet length. found by Maxime Villard; from FreeBSD; OK procter@ markus@
2018-03-14regenJasper Lievisse Adriaanse
2018-03-14add a number of devices found on the new X1Jasper Lievisse Adriaanse
feedback and ok jsg@
2018-03-14On newer machines IPMI attaches only using the ACPI tables instead ofPatrick Wildt
the SMBIOS table. Some machines even have IPMI defined in both tables. This attachment driver makes ipmi(4) available via ACPI. There can only attach one ipmi(4) device, either on ACPI or SMBIOS. Akin to the SMBIOS-attached ipmi(4) this driver is disabled by default. Feedback from jsg@ ok deraadt@
2018-03-14disable POOL_DEBUG for releaseSebastian Benoit
ok deraadt@
2018-03-14we head to release soonTheo de Raadt
2018-03-14SIGSTKSZ is better defined as MINSIGSTKSZ + n pages (meaning 1U << ↵Theo de Raadt
_MAX_PAGE_SHIFT) Discussion with kettenis
2018-03-13Mbuf data is used as struct ether_header before it has been madeAlexander Bluhm
continuous. The length of the hardware and protocol address are provided in the network packet and have to be checked first. So enforce that we only deal with internet over ethernet arp headers with the address length filled correctly. found by Maxime Villard; OK claudio@
2018-03-13Calculate RFC7217 link-local style addresses the same way asFlorian Obser
slaacd(8). RFC 7217 states (section 5, page 9): | The Interface Identifier is finally obtained by taking as many | bits from the RID value (computed in the previous step) as | necessary, starting from the least significant bit. Problem in slaacd pointed out by semarie@. OK sthen, phessler
2018-03-13Preparation for i386 Meltdown fix:Alexander Bluhm
- provide a cpu_softc for cpu_attach() etc. - replace per PCB TSS with per CPU TSS The first change prepares for cpu_info being embedded in a cpu_full_info. Therefore during autoconf/cpu_attach we hand down a softc. The second change removes the per PCB TSS. We now have one TSS per CPU, thus in cpu_switchto() we only have to patch the ring 0 stack pointer instead of loading a new TSS. This also allows for cleaning up the GDT, so we only have a single slot for the TSS. from hshoexer@; OK deraadt@
2018-03-13drm/edid: Add 6 bpc quirk for CPT panel in Asus UX303LAJonathan Gray
From Kai-Heng Feng 5b7ed414974320d7ebda71d18c85f505f3d959c0 in linux 4.4.y/4.4.119 06998a756a3865817b87a129a7e5d5bb66dc1ec3 in mainline linux
2018-03-13drm/dp/mst: save vcpi with payloadsJonathan Gray
From Harry Wentland c088f7bc3310bb57e0aaea297c7e2f467015d215 in linux 4.4.y/4.4.94 6cecdf7a161d2b909dc7c8979176bbc4f0669968 in mainline linux
2018-03-13pmap_map_ptes() always returns the same ptep and pdepp pointers,Philip Guenther
so inline the assignments, pushing them through the callers into several other functions. This shows that pmap_free_ptp() was doing a duplicate set of pmap_tlb_shootpage() calls: delete the extras. ok deraadt@ mlarkin@
2018-03-13We don't save+restore FS.base and GS.base on every context switch butPhilip Guenther
rather reset GS.base and restore FS.base to what was set via __tcb_set(), so we can't really support the wr{fs,gs}base instructions by userspace. Enabling CR4_FSGSBASE is therefore incorrect so stop doing so. ok jsg@ krw@
2018-03-13make m_pullup skip over empty mbufs when finding the payload alignment.David Gwynne
2018-03-13on input, check the unicast address before the multicast handling.David Gwynne
if the mac address is not for the interface, it must be multicast or broadcast. this is instead of if the packet is not multicast/broadcast, it must be for the interface. this allows ethernet interfaces to have multicast mac addresses without having to special case it themselves. eg, carp load balancing should become easier with this. ok mpi@
2018-03-12make m_adj keep m_data aligned when removing all the data in an mbuf.David Gwynne
previously it took a shortcut when emptying an mbuf by only setting m_len to 0, but leaving m_data alone. this interacts badly with m_pullup, which tries to maintain the alignment of the data payload. if there was a 14 byte ethernet header on its own that was m_adjed off, and then the stack wants an ip header, m_pullup would put the ip header on the ethernet header alignment, which is off by 2 bytes. found by stsp@ with pair(4) on sparc64. ok stsp@ too
2018-03-12Remove dependencies for non-existing files.Mark Kettenis
From Artturi Alm.
2018-03-12Add voltage regulator support.Mark Kettenis
ok jsg@
2018-03-12Delete unused variable.Kenji Aoyama
ok jsg@
2018-03-12Make luna88k use the MI mplock implementation.Kenji Aoyama
(forget to remove from repository) ok visa@
2018-03-12Make luna88k use the MI mplock implementation.Kenji Aoyama
ok visa@