summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2022-01-10In pmap_enter(9), only perform a TLB flush if we actually changed a PTE.Mark Kettenis
To make this intent more obvious, group the call to the TLB flush function togther with the call that inserts/updates/removes a PTE. Remove an incorrect comment related to this. ok patrick@
2022-01-10Add aplsmc(4), a driver for the SMC found on Apple M1 SoCs.Mark Kettenis
The SMC implements a lot of functionality. For now the driver only implements a bunch of sensors. This is a small subset of the sensors that are made available by the SMC as we don't know what measurments are provided for most sensors. ok patrick@
2022-01-10provide access to the hardware counters (MIB counters in the doc) via kstatDavid Gwynne
2022-01-10handle the status ring entries as 64bit words instead of a struct.David Gwynne
the status ring entries are 8 bytes/64bit, and depending on the type of entry it has fields all over the place. this loads the descriptor with a single 64bit read, and then shifts and masks the bits out of it depending on the type of descriptor. this looks cleaner for the tx completions in particular.
2022-01-09Simplify igc_rxrinfo() to improve consistency and appease Coverity.Patrick Wildt
CID 1510483 ok kevlo@
2022-01-09Indicate that mvpxa(4) depends on sdhc code.Visa Hankala
OK deraadt@ phessler@
2022-01-09Add attribute for indicating sdhc dependency.Visa Hankala
OK deraadt@ phessler@
2022-01-09Add an UNVEIL_USERSET flag which is set when a unveil node is added viaClaudio Jeker
unveil(2). It is not set for nodes that are added as a result of a file being added via unveil(2). Use this flag to test if backtracking should be done or not. Also introduce UNVEIL_MASK which checks if any user flags are set and is used to properly return EACCES vs ENOENT. This fixes a problem where unveil("/", "r") & unveil("/usr/bin/id", "rx") cause an error when read accessing "/usr/bin". It also makes sure that unveil(path, "") will return ENOENT for any access of anything under path. Reported by and OK semarie@
2022-01-09spellingJonathan Gray
feedback and ok tb@ jmc@ ok ratchov@
2022-01-08__LDPGSZ hasn't been used here since rev 1.23 (2013).Philip Guenther
Delete comment referring to it ok jsg@
2022-01-08Remove apldwusb(4). This driver is now unused.Mark Kettenis
2022-01-08Oops, missed a compatible string in the previous commit.Mark Kettenis
2022-01-08Remove verbose PCI and USB device info from BOOTVisa Hankala
BOOT kernels do not print kernel messages, and currently there is no way to change this at runtime. Remove the verbose device information to save some space.
2022-01-08Adjust debug printfs after pcitag_t type change.Visa Hankala
2022-01-08Apply mpsafe changes from dwge(4) to dwxe(4):Jonathan Matthew
Rework the tx path to use the consumer and producer positions to work out the number of slots available, and to put packets on the ring until fewer than DWXE_NTXSEGS slots are left, making dwxe_start() and dwxe_txeof() work independently. While here, only write to DWXE_TX_CTL1 once per call to dwxe_start() rather than once per packet. Adjust the rx interrupt path to check the number of slots in use and return slots once per interrupt. Add interrupt and ifq barriers before taking the interface down. With all of this done, we can mark dwxe(4) mpsafe. tested on arm64 (a64 sopine) by mlarkin@ and armv7 (h2+) by me ok dlg@
2022-01-07Add code to initialize the PCIe host bridge hardware. We currently rely onMark Kettenis
U-Boot to initialize the hardware for us, but it is better if we can cope with this ourselves. ok patrick@
2022-01-07SIOCSIFXFLAGS drops into the SIOCSIFFLAGS to perform auto-up of theTheo de Raadt
interface. If this operation fails (probably due to missing firmware), we must undo changes to the SIOCSIFXFLAGS xflags. ok stsp.
2022-01-07.glue_7 is used for arm code calling thumb code, and .glue_7t is used forKevin Lo
thumb code calling arm code, no need to put these input sections at the text output section. ok jsg@ kettenis@
2022-01-07Add missing dependency.Visa Hankala
2022-01-07fix aac build after -Wno-uninitialized was removedJonathan Gray
2022-01-07hibernate_clear_signature() is only used by hibernate_resume(), soPhilip Guenther
pass in the already read hibernate_info instead of reading it again. ok deraadt@
2022-01-07Extract the slice from the zeroth swap device instead of assumingPhilip Guenther
it's the 'b' slice and (sanity) check against the partition count. Also, make the "is union hibernate_info too large?" a compile time check. ok deraadt@
2022-01-06Use a 64-bit integer for pcitag_t and define PCITAG_NODE and PCITAG_OFFSETTheo de Raadt
macros to make kernel build again, same diff as armv7. ok kettenis visa
2022-01-06Use a 64-bit integer for pcitag_t and define PCITAG_NODE and PCITAG_OFFSETMark Kettenis
macros to make armv7 build again. ok deraadt@
2022-01-06regenJonathan Gray
2022-01-06ati 0x15e7 confirmed to be barcelo, 2022 ryzen 5000 apusJonathan Gray
uses the same green sardine firmware as cezanne
2022-01-06drm/amdgpu: add support for IP discovery gc_info table v2Jonathan Gray
From Alex Deucher b8553330a07749e488d143b5704adf1042fd7c0a in linux 5.10.y/5.10.90 5e713c6afa34c0fd6f113bf7bb1c2847172d7b20 in mainline linux
2022-01-06drm/amdgpu: When the VCN(1.0) block is suspended, powergating is explicitly ↵Jonathan Gray
enabled From chen gong 28863ffe21ff711d5109e3c208676258bdec3a1f in linux 5.10.y/5.10.90 b7865173cf6ae59942e2c69326a06e1c1df5ecf6 in mainline linux
2022-01-06unstub amdgpu_gem_force_release()Jonathan Gray
2022-01-05Use "bus-range" property to initialize the bus number configuration ofMark Kettenis
the bridge when present on FDT platforms. Needed on platforms like the Apple M1 to make sure the PCI bus numbers match the IOMMU setup required by the device tree. ok patrick@
2022-01-05Remove kbind(2)'s restriction that a target buffer not cross pagePhilip Guenther
boundaries: hppa has 8-byte PLT entries that sometimes do that. ok kettenis@
2022-01-05Remove unused function arguments in iwm/iwx interrupt handlers.Stefan Sperling
pointed out by + ok millert@
2022-01-05Compensate for i386 pcitag_t unionTheo de Raadt
ok jsg kettenis
2022-01-05In iwx(4), fix wrong pointer assignment in iwx_bar_frame_release().Stefan Sperling
This bug caused the driver to read block ack request information sent by firmware from the wrong offset. The driver flushes buffered frames and moves its Rx block ack window based on this information. Possible consequences of this bug are packet loss or even stalled traffic if the Rx BA window gets out of sync between driver and firmware. Though this effect might get cancelled out when the driver re-syncs the BA window in its regular Rx code path. Spotted by Christian Ehrhardt.
2022-01-05add NSH and NHRP ethertypes, mostly for tcpdump stuff.David Gwynne
ok deraadt@
2022-01-05rename ETHERTYPE_PAE to ETHERTYPE_EAPOL.David Gwynne
everyone else seems to use ETHERTYPE_EAPOL, and as a bonus it also appears to be more correct. ok deraadt@ stsp@
2022-01-05use the index provided by the txcompletion descriptor in txeof.David Gwynne
this replaces the use of a register in txeof to figure out how much of the ring has been completed by the hardware. that register isn't reset when an interface is taken down and brought up again, which messes with the calculations of free slots on the ring, which in turn messes up the ability to transmit packets. this means the watchdog can't know where the hardware is up to anymore, so just restartthe chip if the watchdog fires. it seems to be important to start the tx ring in msk_init on the 0th ring entry that we use to reset the high address value to 0. we still fill the 0th descriptor, but we let the first msk_start call post it for us when a packet goes on the ring. a slight tweak and ok jmatthew@
2022-01-05Add mpfclock(4), a driver for the PolarFire SoC MSS clock controller.Visa Hankala
OK kettenis@
2022-01-04Future-proof by adding some proposed compatible strings to match on.Mark Kettenis
2022-01-04struct pci_matchid is useful an upcoming userland program that wantsTheo de Raadt
to includes pcivar.h because it inspects vid/pid tables
2022-01-04hide more things behind _KERNEL, in case userland manages to includeTheo de Raadt
this file
2022-01-04Use the device we read the hibernate signature from for the entirePhilip Guenther
resume. This fixes setups where a umass device no longer attaching at resume results in a softraid device being renumbered so the hibernate-time device is no longer correct ok mlarkin@ jsing@
2022-01-04Restrict the pci(4) ioctl interface to devices detected by the kernel.Mark Kettenis
This fixes issues on the M1 Macs where the PCI probe done by Xorg breaks the WiFi chip. ok patrick@
2022-01-04fix length boundary checks for incoming packets in iwm/iwxStefan Sperling
The minimum length and the maximum length required were both too low, due to an error in accounting for the 4-byte packet length+flags header. Patch by Christian Ehrhardt
2022-01-04fix Rx Block Ack session validity checks in iwm(4) and iwx(4)Stefan Sperling
I ported a NULL pointer check from iwlwifi rxmq.c which cannot happen in our version of this code. Instead we need to check the BA session ID to determine whether a BA session is valid. Patch by Christian Ehrhardt.
2022-01-04acpi_getprop() needs to actually make sure that we're looking at thePatrick Wildt
correct property. While there adjust acpi_getpropint() as well to increase similarity with acpi_getprop(). ok kettenis@
2022-01-04remove the last part of driver for aic-6250 scsi on aviionJonathan Gray
2022-01-04remove files missed when sgi was removedJonathan Gray
ok visa@
2022-01-04remove unused fileJonathan Gray
2022-01-04Add `ipsec_flows_mtx' mutex(9) to protect `ipsp_ids_*' list andYASUOKA Masahiko
trees. ipsp_ids_lookup() returns `ids' with bumped reference counter. original diff from mvs ok mvs