summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-02-07Convert to uiomove. While there, use size_t consistently forStefan Kempf
variables 'left' and 'tocopy' and adapt printf and DPRINTF format strings accordingly. From Martin Natano.
2016-02-06Convert to uiomove. From Martin Natano.Stefan Kempf
2016-02-06Add support for the 9 series PCH.Mark Kettenis
From Dmitri Alenichev.
2016-02-06Enable the code that reads the BIOS from the ACPI VFCT table on platformsMark Kettenis
with ACPI. ok jsg@
2016-02-05Fix iwn(4) CCMP replay detection so it does not drop out-of-order A-MPDUStefan Sperling
subframes. Helps 11n mode with WPA. tested by me, tb@, and krw@
2016-02-05Count A-MPDU subframes with sequence number below the current BA window asStefan Sperling
duplicates rather than input errors. These subframes have either already been received, or the window was moved by the gap timeout which should only happen with buggy APs. Neither condition indicates a severe problem. Perhaps we will introduce a separate counter for this later.
2016-02-05Guard against integer overflow when checking whetherStefan Kempf
writing to a file on msdosfs stays within the max. file size. ok kettenis@, krw@
2016-02-05Define EDCA tables for 11n mode. Per 802.11-2012 they are the same asStefan Sperling
the tables for 11a/11g modes. Add a function to append a Microsoft WME parameter element to a frame, using EDCA tables to construct the parameter records. Some 11n AP's I have observed provide this element. None of this code is used yet, so no functional change. I wrote this while debugging BlockAck and then realized it was only needed for hostap mode. Once we support 11n in hostap mode and send A-MPDUs, this code will be needed.
2016-02-05In iwn(4), set max A-MPDU length to 64k instead of 4k and tell the firmwareStefan Sperling
about A-MPDU spacing. Makes BlockAck happy. tested by me, tb@, krw@, sthen@, and Henrik Friedrichsen
2016-02-05In iwm(4), set max A-MPDU length to 64k instead of 4k and tell the firmwareStefan Sperling
about A-MPDU spacing. Makes BlockAck happy. tested by myself and abieber@
2016-02-05Store ADDBA request and response parameters in the block ack record ofStefan Sperling
ieee80211_node. This way, we can keep track of the ACK policy and echo it back to the AP as required by the standard. And use the correct bit flag for the policy -- this code was confused between BlockAck and ADDBA, both of which have a policy bit but in different places. Fixes apple airport APs. tested by tb@, krw@, sthen@, abieber@, and Henrik Friedrichsen
2016-02-05Implement acpi_get_table_with_size(). Will soon be used to read VFCTMark Kettenis
tables in radeondrm(4).
2016-02-05return if the bpf_if passed to bpf_tap and _bpf_mtap are NULL.David Gwynne
this works around a toctou bug in a very common idiom in our tree, in between the two lines below: if (ifp->if_bpf) bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT); figured out by and diff from haesbart
2016-02-05Simple moderation of Tx completion notificationsMike Belopuhov
Follow FreeBSD and schedule the next Tx completion event to fire when about half of the packet segments scheduled for transmission are consumed.
2016-02-05Silence warnings from static analyzers; found by jsg@Mike Belopuhov
2016-02-05Improve Linux PCI compatibility code.Mark Kettenis
2016-02-05Fix a pci vendor/device conversion missed in rev 1.6.Mark Kettenis
2016-02-05Implement FreeBSD-compatible IOCTL to access BMC in ipmi(4)Masao Uebayashi
Initial help & testing by jmatthew@ Code review & input by mpi@ Final review & OK by jsg@
2016-02-04Make iwn(4) pass 802.11 control frames in monitor mode.Stefan Sperling
Now we can see rts/cts, ack, blockack etc. in tcpdump(8). ok kettenis@
2016-02-04In iwn(4), don't forget about restoring the CCMP key to firmware afterStefan Sperling
HT protection setting updates. Unbreaks WPA in 11n mode. ok sthen@
2016-02-04Restore the BlockAck session timer. It is still required to work aroundStefan Sperling
stalled BA sessions observed with iwn(4). We can revisit this later once the underlying problem in iwn(4) has been found. Prompted by report from krw@, I could reproduce the issue. ok krw@
2016-02-04Bail early if there's no token; found by jsg@Mike Belopuhov
2016-02-04Prevent signed overflow when calculating i_modrev initial valueMike Belopuhov
Reported and fixed by Martin Natano <natano at natano ! net>, thanks! ok stefan
2016-02-04Some (buggy) UEFI implementations don't report the correct framebufferMark Kettenis
parameters unless SetMode() has been called, even if we don't actually change the mode. Other (equally buggy) UEFI implementations report an error if we call SetMode() but don't actually change the mode. Work around these issues by always calling SetMode() (like we did before rev 1.10), but don't report an error if the current mode is the same as the desired mode. ok yasuoka@
2016-02-04If the ROM size is 0, we won't be able to read the video BIOS from it.Mark Kettenis
Bail out early to prevent a panic from calling bus_space_map(9) with size 0.
2016-02-03Do not access the scsi link of the disk at the beginning of sdopen()Alexander Bluhm
and sdminphys() if the scsi disk is dying. The memory of the link may have been freed already. OK krw@
2016-02-03When accessing the scsi link of a scsi disk, use a variable "sc_link"Alexander Bluhm
everywhere. This is the first step to fix a use after free of the sc_link when the disk detaches. If a function gets a scsi transfer, the scsi link is always valid. Call this variable "link" consistently. OK krw@
2016-02-03Increase the RPC buffer once more to 4096 bytes. The guestinfo.ovfEnvReyk Floeter
mechanism is used to configure VMs in the VMware vSphere world: instead of using individual key-value guestinfo.* properties, it uses the guestinfo.ovfEnv value to pass an enterprise-compliant XML file that includes key-value properties. This file can be rather large, especially with comments, but 4k ought to be enough for anybody. Also change a stack buffer to malloc'ed memory in the ioctl path. OK mikeb@
2016-02-03Prevent efifb(4) from attaching if we're the console.Mark Kettenis
Unfortunately, making this decision in radeondrm_attachhook() is too late because at that point efifb(4) would have already been attached. This means that if we decide to bail in radeondrm_attachhook() we may end up without a glass console. That may happen for example if the firmware package has not been installed. I'm still looking for a solution for that problem. ok jsg@
2016-02-03Test cpuid_level or ci->ci_pnfeatset before using a CPUID leaf; some BIOSesPhilip Guenther
can disable leaves that CPU feature flags would seem to imply. Corrects signal delivery on systems where the AVX leaf is disabled. report and debugging help from Marcus MERIGHI (mcmer-openbsd (at) tor.at) ok kettenis@
2016-02-02give sxidog it's own mapping as well so it wont't require sxitimerJonathan Gray
from Artturi Alm
2016-02-02enable xen devices here as wellJonathan Gray
tested by and ok mikeb@
2016-02-02A few reliability improvements in the power management interfaceMike Belopuhov
Nathanael Rensen <nathanael at list ! polymorpheus ! com> came up with a few improvements to the event watcher and power management interface, namely: o Make sure to put our watcher on a list before issuing an XS_WATCH command since Xen will raise the event right after it's been set up. o The first time xen_control is called the "control/shutdown" node may not exist, so skip printing the error message in this case. o Acknowledge requests by writing back an empty string. o log(9) reboot and halt requests like vmt(4) does. Huge thanks!
2016-02-02Convert to uiomove(). From Martin Natano.Stefan Kempf
2016-02-02remove uneeded break statementsJonathan Gray
2016-02-01Add A20 support to sxirtc.Jonathan Gray
From Artturi Alm.
2016-02-01add a DIAGNOSTIC for refcnt_take overflow.David Gwynne
ok mpi@
2016-02-01Remove A20 support in sxitimer, agtimer is now used instead.Jonathan Gray
From Artturi Alm.
2016-02-01move to -release modeJonathan Gray
requested by deraadt@
2016-02-01Stop requiring a BlockAck session timeout. We still honour the timeout ifStefan Sperling
the AP requests it, though I don't think I've ever seen one that does. Per the 802.11-2012 spec a value of zero disables the timeout and some APs seem to have trouble with timeouts forced onto them. Our behaviour now matches Linux in this regard. This gets Apple Airport APs somewhat working in 11n mode but there is still a remaining issue with receiving frames from them. Doesn't seem to hurt any other APs I've tried. ok sthen@ mpi@ millert@
2016-02-01Zap stray pmap_kenter_cache() prototype.Visa Hankala
2016-02-01Move modify bit emulation into pmap.c to gather pmap C code in one place.Visa Hankala
2016-02-01Fix the encoding of AP bits for large page second-levelJonathan Gray
short-descriptors with arm v7 (same as small page encoding, except XN is in a different bit for the mask). Expanded version of a diff from Patrick Wildt who also tested and reviewed this.
2016-01-31remove old link to documentation, it's in ihidev.cJoshua Stein
2016-01-31Convert to ulmin and uiomove to prevent integer truncations.Stefan Kempf
Reviewed by Martin Natano.
2016-01-31Don't use sxitimer on Allwinner sun7i/A20.Jonathan Gray
sxitimer isn't generating hardclock ticks on Allwinner A20. Fortunately the Cortex A7 based Allwinner A20 has the ARM Generic Timer (agtimer) available so use that. To allow this to work sxirtc gets it's own mapping instead of using a subregion of sxitimer. From Patrick Wildt.
2016-01-31Leonardo Guardati discovered a u-boot built with "Enable workarounds forJonathan Gray
booting old kernels" was required to boot sunxi kernels with newer versions of u-boot. Unless built with OLD_SUNXI_KERNEL_COMPAT u-boot now uses the top four bits of the board id for a 'compatibility revision'. This was supposedly for different handling of the pll5 dram clock, but we don't touch that currently. Mask these bits away so the kernel will boot from a u-boot that doesn't have the option set. Tested by Patrick Wildt on a Banana Pi R1 with current u-boot sources.
2016-01-31- m_pkthdr.pf.statekey changes are not ready for 5.9, I must back them outAlexandr Nedvedicky
OK sthen@
2016-01-31Switch from PSR_X_bit and X32_bit PSR macro names to just PSR_X.Jonathan Gray
This matches FreeBSD and makes things a bit more consistent. Discussed with Patrick.
2016-01-30regenJonathan Gray