IABSD.fr/src/sys

Branch :


Log

Author Commit Date CI Message
2f6a94ad 2020-07-27 07:24:03 trim trailing whitespace in if_iwn.c Patch by Holger Mikolon
c04334bf 2020-07-26 17:44:15 Avoid nvram lock timeout on sparc64 systems with onboard BCM5704 instances that come without a fitted EEPROM/NVRAM. ok deraadt@, kn@
409840fe 2020-07-26 13:27:23 Reference unveil(2) in system accounting and daily.8. Reminder that unveil does not kill from brynet and gsoares. Wording tweaks from jmc; feedback from deraadt. ok jmc@, millert@, solene@, "fine with me" deraadt@
a2c1178d 2020-07-26 12:23:32 Reduce IWN_DEBUG message noise related to scanning. Patch by Holger Mikolon ok tobhe@
9b4e521a 2020-07-25 16:34:30 No need for a bzero(), just init saa.sf to NULL. All the saa.saa fields are explicitly initialized.
78c5d546 2020-07-25 13:50:49 Nuke unused struct scsi_link member of struct wd33c93_softc. SGI compile tests by visa@
06930f11 2020-07-25 12:26:09 Port over NetBSD's arm64 disassembler for DDB. ok kettenis@, patrick@
8f5bca08 2020-07-25 10:11:38 Change kernel SLB setup code to avoid the (theoretical) possibility to enter duplicate mappings.
97b78b05 2020-07-25 00:48:03 timeout(9): remove TIMEOUT_SCHEDULED flag The TIMEOUT_SCHEDULED flag was added a few months ago to differentiate between wheel timeouts and new timeouts during softclock(). The distinction is useful when incrementing the "rescheduled" stat and the "late" stat. Now that we have an intermediate queue for new timeouts, timeout_new, we don't need the flag. The distinction between wheel timeouts and new timeouts can be made computationally. Suggested by procter@ several months ago.
e7acdf99 2020-07-24 21:01:33 timeout(9): delay processing of timeouts added during softclock() New timeouts are appended to the timeout_todo circq via timeout_add(9). If this is done during softclock(), i.e. a timeout function calls timeout_add(9) to reschedule itself, the newly added timeout will be processed later during the same softclock(). This works, but it is not optimal: 1. If a timeout reschedules itself to run in zero ticks, i.e. timeout_add(..., 0); it will be run again during the current softclock(). This can cause an infinite loop, softlocking the primary CPU. 2. Many timeouts are cancelled before they execute. Processing a timeout during the current softclock() is "eager": if we waited, the timeout might be cancelled and we could spare ourselves the effort. If the timeout is not cancelled before the next softclock() we can bucket it as we normally would with no change in behavior. 3. Many timeouts are scheduled to run after 1 tick, i.e. timeout_add(..., 1); Processing these timeouts during the same softclock means bucketing them for no reason: they will be dumped into the timeout_todo queue during the next hardclock(9) anyway. Processing them is pointless. We can avoid these issues by using an intermediate queue, timeout_new. New timeouts are put onto this queue during timeout_add(9). The queue is concatenated to the end of the timeout_todo queue at the start of each softclock() and then softclock() proceeds. This means the amount of work done during a given softclock() is finite and we avoid doing extra work with eager processing. Any timeouts that *depend* upon being rerun during the current softclock() will need to be updated, though I doubt any such timeouts exist. Discussed with visa@ last year. No complaints after a month.
a9f43bc3 2020-07-24 20:39:03 netinet: tcp_close(): delay reaper timeout by one tick Zero-tick timeouts rely on implicit behavior in the timeout layer that inhibits optimizations in softclock(). bluhm@ says waiting a tick for the reaper shouldn't break anything. ok bluhm@
5da81402 2020-07-24 18:17:14 Use interface index instead of pointer to `ifnet' in carp(4). ok sashan@
14c0d295 2020-07-24 16:22:33 Enable usertc if the NPT bit isn't set for %tick and %sys_tick. ok naddy@
8d2d5234 2020-07-24 14:54:38 Suppress kernel printf output in the octeon boot kernel. OK kettenis@
d2ccf808 2020-07-24 14:46:06 Remove bge(4) and brgphy(4) as the bootloader doesn't include network support of any kind. Speeds up booting a bit.
c15324e3 2020-07-24 14:27:47 Implement BOOT_QUIET option that supresses kernel printf output to the console. When the kernel panics, print console output is enabled such that we see those messages. Use this option for the powerpc64 boot kernel. ok visa@, deraadt@
4cb186b8 2020-07-24 14:06:33 Increase state counter for least-states when the address is selected by sticky-address. Also fix the problem that the interface which is specified by the selected table entry is not used properly. ok jung sashan
500422e9 2020-07-24 12:43:31 Turning on various scsi drivers' *DEBUG options reveals that this has rarely (if ever) been done. Fix many printf format errors to calm clang and gcc on amd64, i386, hppa. Missing #include, complaints if 'option <blah>DEBUG' is used in config files, etc. All in debug code.
c0f7b35a 2020-07-24 04:53:04 Make timeout_add_sec(9) add a tick if given zero seconds All other timeout_add_*() functions do so before calling timeout_add(9) as described in the manual, this one did not. OK cheloha
cf6ca2c8 2020-07-24 03:20:50 Remove lacpmode and lacptimeout bits ifconfig(8) commands "lacptimeout 1" and "lacpmode active" error out with "ifconfig: Invalid option for trunk: tpmr0"; tpmr(4) has no mode or config, so these ioctls are inappropiate in the first place. Remove SIOCSTRUNKOPTS, SIOCGTRUNKOPTS stubs and now unused <net/if_trunk.h>. OK dlg
6e780b9a 2020-07-24 00:45:40 Remove trunkdev bits ifconfig(8) prints "trunk: trunkdev tpmrN" for member interfaces, which is misleading as tpmr(4) is being completed into a bridge-like interface. Remove SIOCGTRUNKPORT so tpmr(4) does not report members as trunk devices (next diff will implement SIOCBRDGIFS). OK dlg
e32d07ff 2020-07-24 00:43:09 Remove trunkproto bits ifconfig(8) prints "trunk: trunkproto none" for tpmr(4) which is useless as there is no configurable protocol in the first place. Remove SIOCSTRUNK and SIOCGTRUNK which were just simple stubs anyway. OK dlg
f75b961e 2020-07-23 18:51:24 Free SLB descriptors when we destroy a pmap.
5fc7d48a 2020-07-23 16:21:44 Bump MAXCPUS (for MULTIPROCESSOR kernels) to 48, which seems to be the maximum numbers of cores available in any POWER9 system.
2674a7f8 2020-07-23 16:01:08 Enter DDB directly when we encounter an unhandled trap such that we can inspect the state corresponding to that trap.
5e96aed0 2020-07-23 15:09:09 Use per-pmap lock to protect userland SLB handling.
371cc347 2020-07-23 11:09:13 drm/i915/perf: Use GTT when saving/restoring engine GPR From Umesh Nerlige Ramappa b3944d5248c6be0f2dc95a231822c6c67d6f6fd9 in linux 5.7.y/5.7.10 aee62e02c48bd62b9b07f5e297ecfc9aaa964937 in mainline linux
fc19d940 2020-07-23 11:05:52 drm/i915/gvt: Fix two CFL MMIO handling caused by regression. From Colin Xu 7924e77bf17003aad76f31126d27afe17439876d in linux 5.7.y/5.7.10 fccd0f7cf4d532674d727c7f204f038456675dee in mainline linux
12f7ecba 2020-07-23 11:03:14 drm/i915/gt: Only swap to a random sibling once upon creation From Chris Wilson b99382de1233866a7eea4a016029d417bdcc0fe7 in linux 5.7.y/5.7.10 110f9efa858f584c6bed177cd48d0c0f526940e1 in mainline linux
033fc66b 2020-07-23 11:00:13 drm/i915/gt: Ignore irq enabling on the virtual engines From Chris Wilson efce4c5bf8873329a578b70c4b5b0df0fee73e2d in linux 5.7.y/5.7.10 858f1299fd6f7518ddef19ddd304c8398ac79fa5 in mainline linux
d8b0789b 2020-07-23 10:57:50 drm/i915: Move cec_notifier to intel_hdmi_connector_unregister, v2. From Maarten Lankhorst bc4727542c394ac99e1826e35d708d83088591d3 in linux 5.7.y/5.7.10 6647e6cdba753e71170be7da2acfead7154f56d8 in mainline linux
117df390 2020-07-23 10:54:50 drm/amdgpu/display: create fake mst encoders ahead of time (v4) From Alex Deucher 4c76a5a3db25f24accb12acf4a6f3707ee283761 in linux 5.7.y/5.7.10 3168470142e0a82b5732c04ed4c031a9322ae170 in mainline linux
f0851b17 2020-07-23 10:49:23 drm/amd/display: OLED panel backlight adjust not work with external display connected From hersen wu 702e13f8d26c6d18389c299347580783fef02bcd in linux 5.7.y/5.7.10 b448d30b0c303d5454ea572b772d1ffae96bc6e7 in mainline linux
332c92d0 2020-07-23 10:46:17 drm/amd/display: handle failed allocation during stream construction From Josip Pavic adfe5ec9ac3ff13e9dabe42216fb34a9e9c19738 in linux 5.7.y/5.7.10 be73e608ae2711dc8a1ab8b9549d9e348061b2ee in mainline linux
473d62af 2020-07-23 10:43:10 drm/amdgpu/sdma5: fix wptr overwritten in ->get_wptr() From Xiaojie Yuan 7c7df36732772d4f68e0ed50667ced18440bb2ad in linux 5.7.y/5.7.10 05051496b2622e4d12e2036b35165969aa502f89 in mainline linux
2aee0a62 2020-07-23 10:40:17 drm/amdgpu/powerplay: Modify SMC message name for setting power profile mode From chen gong b22a2501543e9ebe88b8375652ad41715f1e765d in linux 5.7.y/5.7.10 98a34cf931e848f8489d3fb15a8f5fc03802ad65 in mainline linux
f94c830f 2020-07-23 10:10:15 Even more whitespace fixup.
752a0852 2020-07-23 09:49:33 Fix typo in previous commit such that the code is actually compiled in.
6d00698e 2020-07-23 09:21:51 match on AMDI0010 Makes imt(4) and ims(4) attach and touchpad work on jmc@'s Inspiron 5505. "pms0: Elantech Clickpad, version 4, firmware 0x5f1001" also probes but by itself did not result in a functional touchpad. ok kettenis@
1d772be3 2020-07-23 09:17:03 Fix comments to match code; OK fcambus@
c5b7f942 2020-07-23 07:45:28 Handle the case where we can sleep (and therefore switch CPUs) while handling kernel traps.
e3eac33c 2020-07-23 01:24:53 Increase the event queue size. When polling for admin command completion, we don't wait for the event to be posted to the queue, we just look at the command itself, which means we can build up a backlog of events to be posted. Newer firmware for ConnectX-4 seems to get upset if the backlog grows beyond some fraction of the event queue size, causing an interrupt storm. This was reported by patrick@ and Hrvoje Popovski (at least) while testing support for multiple tx/rx queues. With the new event queue size, we can safely create 8 queues.
e567d068 2020-07-23 00:08:10 Nuke unused struct scsi_link member of spc_softc. luna88k compile test by aoyama@
94d2852c 2020-07-22 22:06:00 Nuke unused struct scsi_link member of vdsk_softc. sparc64 compile test by jmatthew@
09e5d825 2020-07-22 21:14:05 Init GOP and COMPHY.
fad015d2 2020-07-22 20:58:40 Pass tid we're looking for to mvpp2_prs_hw_read(), then we can zero the prs entry there and also save a few lines.
fef01367 2020-07-22 20:50:16 Rework mvpp2_prs_flow_find() to return a tid instead of a whole prs entry, saving at least one unnecessary malloc(9)/free(9) cycle.
284a504d 2020-07-22 20:41:26 Make switching CPUs in DDB work.
ef3cc1ee 2020-07-22 20:39:02 Actually try to evict a PTE from a different slot instead of failing to evict the same PTE 16 times because the PTE is wired.
793c5642 2020-07-22 20:37:34 Use interface index instead of pointer to `ifnet' in `struct bstp_port'. ok yasuoka@
47b8e6a0 2020-07-22 19:57:59 Fix more whitespace issues.
e042150e 2020-07-22 19:56:42 Use correct ethertype and IP proto defines.
70ad0a12 2020-07-22 19:54:05 Fix whitespace issue.
af1244a6 2020-07-22 19:53:11 Use 1U for BIT(x), always define it and use it in four more places.
d162cc44 2020-07-22 19:09:15 Don't grab the kernel lock for mpsafe interrupts.
739ba58d 2020-07-22 17:39:50 pstat -t was showing bogus column data on ttys, in modes where newline doesn't occur to rewind to column 0. If OPOST is inactive, simply return 0. ok millert
fcf94dc6 2020-07-22 16:49:13 Implement IPIs.
749f1a05 2020-07-22 14:02:31 console marker should be after :
6a126883 2020-07-22 13:54:30 Add missing CVS tags. ok patrick@
7380a3a4 2020-07-22 13:16:04 Nuke unused struct scsi_link members of adapter softc's where the driver successfully compiles on one or more of amd64, i386, hppa.
bbf8419c 2020-07-22 12:38:38 Remove debugging printf in critical section. This doesn't play well with the hash lock on MULTIPROCESSOR kernels.
3941079e 2020-07-22 11:13:20 regen
893f5127 2020-07-22 11:12:40 add Intel AX200 Bluetooth
88fea0c2 2020-07-22 11:08:01 Add missing mplock.h file.
5394f138 2020-07-22 10:45:03 regen
4910c09b 2020-07-22 10:43:14 add devices found in Inspiron 5505 dmesg from jmc@
f4dcc444 2020-07-22 08:38:51 gc some ifmedia stuff that this driver doesnt use. no functional change.
c0ddb8d7 2020-07-22 08:33:43 Use CPU_IS_PRIMARY macro in identifycpu() on i386.
e9ef9ac6 2020-07-22 08:04:41 Use CPU_IS_PRIMARY macro in cpuattach() on mips64. OK visa@
0f419ffa 2020-07-22 04:08:46 filter vlan and svlan packets by default.
3dbdbf84 2020-07-22 02:43:06 Change tpmr(4) from ifconfig [-]trunkport to add|del synopsis Unlike aggr(4) and trunk(4) for link aggregation, tpmr(4) bridges links similar to bridge(4) and switch(4), yet its ioctl(2) interface is that of an an aggregating interface. Change SIOCSTRUNKPORT and SIOCSTRUNKDELPORT to SIOCBRDGADD and SIOCBRDGDEL respectively and speak about members rather than ports in the manual to make ifconfig(8) accept "add" and "del" commands as expected. Status ioctls will follow such that "ifconfig tpmr" gets fixed accordingly. Discussed with dlg after mentioning the lack of aggr(4) and tpmr(4) documentation in ifconfig(8) which will follow as well after code cleanup. Feedback OK dlg
23293512 2020-07-22 02:16:01 deprecate interface input handler lists, just use one input function. the interface input handler lists were originally set up to help us during the intial mpsafe network stack work. at the time not all the virtual ethernet interfaces (vlan, svlan, bridge, trunk, etc) were mpsafe, so we wanted a way to avoid them by default, and only take the kernel lock hit when they were specifically enabled on the interface. since then, they have been fixed up to be mpsafe. i could leave the list in place, but it has some semantic problems. because virtual interfaces filter packets based on the order they were attached to the parent interface, you can get packets taken away in surprising ways, especially when you reboot and netstart does something different to what you did by hand. by hardcoding the order that things like vlan and bridge get to look at packets, we can document the behaviour and get consistency. it also means we can get rid of a use of SRPs which were difficult to replace with SMRs. the interface input handler list is an SRPL, which we would like to deprecate. it turns out that you can sleep during stack processing, which you're not supposed to do with SRPs or SMRs, but SRPs are a lot more forgiving and it worked. lastly, it turns out that this code is faster than the input list handling, so lots of winning all around. special thanks to hrvoje popovski and aaron bieber for testing. this has been in snaps as part of a larger diff for over a week.
5b3eb9c5 2020-07-22 01:50:39 move carp_input into ether_input, instead of via an input handler. carp_input is only tried after vlan and bridge handling is done, and after the ethernet packet doesnt match the parent interfaces mac address. this has been in snaps as part of a larger diff for over a week.
4dd8c9f5 2020-07-22 01:30:54 move vlan_input into ether_input, instead of via an input handler. this means there's a consistent order of processing of service delimited (vlan and svlan) packets and bridging of packets. vlan and svlan get to look at a packet first. it's only if they decline a packet that a bridge can handle it. this allows operators to slice vlans out for processing separate to the "native" vlan handling if they want. while here, this fixes up a bug in vlan_input if m_pullup needed to prepend an mbuf. this has been in snaps as part of a larger diff for over a week.
08fc3d03 2020-07-22 01:12:38 register as a bridge port, not an input handler, on member ifaces. this is a step toward making all types of bridges coordinate their use of port interfaces, and is a step toward deprecating the interface input handler lists. bridge(4), switch(4), and tpmr(4) now coordinate their access so only one of them can own a port at a time. this has been in snaps as part of a larger diff for over a week.
9672c765 2020-07-22 00:51:57 register as a bridge port, not an input handler, on member ifaces. this is a step toward making all types of bridges coordinate their use of port interfaces, and is a step toward deprecating the interface input handler lists. this has been in snaps as part of a larger diff for over a week.
7f316ad4 2020-07-22 00:48:29 register tpmr as a bridge port, not an input handler, on member ifaces. this is a step toward making all types of bridges coordinate their use of port interfaces, and is a step toward deprecating the interface input handler lists. it also moves tpmr away from the trunk ioctls it's currently (ab)using. this has been in snaps as part of a larger diff for over a week.
81a23f33 2020-07-22 00:48:02 Add support for newer RTL8125 chipset (RTL8125B). Tested for on a TP-LINK TL-NG421. ok jmatthew@
cce8b9bd 2020-07-22 00:37:24 if an iface is a bridge port, pass the packet to the bridge in ether_input. if the bridge declines the packet, it just returns it to ether_input to allow local deliver to proceed. this has been in snaps as part of a larger diff for over a week.
d79d7022 2020-07-22 00:29:00 add code to coordinate how bridges attach to ethernet interfaces. this is the first step in refactoring how ethernet frames are demuxed by virtual interfaces, and also in deprecating interface input list handling. we now have drivers for three types of virtual bridges, bridge(4), switch(4), and tpmr(4), and it doesn't make sense for any of them to be enabled on the same "port" interfaces at the same time. currently you can add a port interface to multiple types of bridge, but which one gets to steal the packets depends on the order in which they were attached. this creates an ether_brport structure that holds an input function for the bridge, and optionally some per port state that the bridge can use. arpcom has a single pointer to one of these structs that will be used during normal ether_input processing to see if a packet should be passed to a bridge, and will be used instead of an if input handler. because it is a single pointer, it will make sure only one bridge of any type is attached to a port at any one time. this has been in snaps as part of a larger diff for over a week.
5857d4c6 2020-07-21 23:09:00 The "unsupported compiler" checks were added back in December when MD versions of these headers were unhooked. As nothing has hit those checks we can drop them at this point. ok visa@ and "makes sense" to millert@
26774b02 2020-07-21 21:38:31 GENERIC.MP
ea057ba5 2020-07-21 21:36:58 Add code to spin up the secondary CPUs.
0ec50391 2020-07-21 21:35:19 Implement copyin32().
12d98fe1 2020-07-21 21:27:11 Add OPAL_START_CPU.
ce3b2237 2020-07-21 21:16:05 For now, grab the kernel lock to do SLB management for userland processes.
20975c6c 2020-07-21 21:01:34 Make pmap ready for GENERIC.MP.
612a5197 2020-07-21 20:23:35 Attach secondary CPUs early like we now do on arm64.
e6187a1e 2020-07-21 20:22:03 Add missing KERNEL_LOCK() and KERNEL_UNLOCK() calls.
7f1a6fd2 2020-07-21 14:13:17 when calculating the ruleset's checksum, skip automatic table names. the checksum is exclusively used for pfsync to verify rulesets are identical on all nodes. the automatic table names are random and have a near zero chance to match. found at a customer in zurich ok sashan kn
9c6ad19b 2020-07-21 14:10:51 rename PF_OPT_TABLE_PREFIX to PF_OPTIMIZER_TABLE_PFX and move it to pfvar.h OPT is misleading and usually refers to command line arguments to pfctl ok sashan kn
20599cf9 2020-07-21 08:38:59 Improve processing of lost frames during 802.11 Rx aggregation. Make ieee80211_input_ba() skip one missing frame at the head of the Rx block ack (BA) window once the rest of the window has filled up with pending frames. This avoids having to wait for the BA window gap timeout handler to run in order to make progress in such situations. Simplify the BA gap timeout handler by deferring the actual flushing of the BA window buffer to the regular input path. The timeout handler now simply advances the BA window across any missing frames at the head of the window, and if_input() is no longer called from the context of this timeout handler. The window will be flushed once another frame arrives. Packet loss under streamy traffic conditions and during Rx bursts is reduced. Much less stuttering, more stable tcpbench, and easier flight in Minecraft. tested by phessler@, Martin Vahlensieck, jmc@, Uwe Werler, and myself
3fdd1d82 2020-07-21 07:54:43 Make sure to explicit_bzero() buffers holding sensitive SA data. ok kn@, patrick@
681e01da 2020-07-21 05:56:02 Do not bother masking IPIs in the Loongson 3A specific IPI routine. The interrupt dispatcher interrupt() keeps interrupts disabled anyway. Also, the IPI code should not allow nesting of interrupts.
ad7f7af0 2020-07-21 03:48:04 acpi can use IPL_BIO (a low interrupt) since it only enqueues operations for later processing. The use of a high interrupt will predate suspend/resume efforts, we had to redesign acpi to be non-reentrant obviously discussed with kettenis, in snaps for more than a week
cb5fd422 2020-07-21 02:04:33 It's saa_flags, not flags. Encountered by deraadt@
6e581dd8 2020-07-20 22:40:53 ramdisks got broken by that last diff.
04cecb01 2020-07-20 21:51:34 timecounting: add missing mutex assertion to tc_update_timekeep()
1fb8cdb7 2020-07-20 21:43:02 timecounting: misc. cleanup in tc_setclock() and tc_setrealtimeclock() - Use real variable names like "utc" and "uptime" instead of non-names like "bt" and "bt2" - Move the TIMESPEC_TO_BINTIME(9) conversions out of the critical section - Sprinkle in a little whitespace - Sort automatic variables according to style(9)
20490285 2020-07-20 20:38:10 Neither is saa.ssa.pool the same as saa.saa_pool.