Commit Graph

257605 Commits

Author SHA1 Message Date
tsutsui b9f14217aa Remove duplicated devices already defined in the common GENERIC.in. 2018-03-31 04:19:41 +00:00
tsutsui 049f5d82d9 Regen to denote GENERIC.in rev 1.115 in "Created from:" lines. 2018-03-31 04:17:27 +00:00
maya 4617248544 correct typo: and and -> and
from chris28.
2018-03-30 22:59:43 +00:00
maya 54d22fc1d3 correct typo: and and -> and (comments only)
heads up on this being a common typo from chris28.
2018-03-30 22:54:36 +00:00
maxv 171346be06 Improve the detection. Future generations of Intel CPUs will have a bit to
say they are not affected by Meltdown.
2018-03-30 19:58:05 +00:00
maxv 14852905ec Retrieve cpuid.7:%edx. 2018-03-30 19:51:53 +00:00
maxv daafbb3bdf Add RDCL_NO and IBRS_ALL. 2018-03-30 19:49:49 +00:00
sevan 4dffb09839 Add email addresses to author names.
snapper(4) was enabled by default in r1.208 of GENERIC over 12 years ago, drop
the bugs section about needing more testing.
2018-03-30 14:34:55 +00:00
sevan 5ac4d7ae63 Add email address for author. 2018-03-30 14:25:20 +00:00
wiz b2771d612e Remove Tn, comment out mediabay(4) because it doesn't exist. 2018-03-30 14:21:04 +00:00
sevan 4e762a7840 Use An macro for author name.
awacs(4) has qualified to be enabled by default in GENERIC config as of r1.343.
It should get a whole lot more testing so drop the note in BUGS section.
2018-03-30 14:06:39 +00:00
sevan 3eafad7b0b awacs(4) is enabled by default in GENERIC as of r1.343. 2018-03-30 13:54:24 +00:00
mlelstv ad6fc8f7f3 Reset fail counter when link goes down so that next session starts
with the correct retry count.
2018-03-30 13:29:19 +00:00
mlelstv ae07208ded add prototypes, validate ifm_change and ifm_status vectors. NFC. 2018-03-30 13:21:24 +00:00
mlelstv 20bad51beb Handle sector sizes != 512, check partition overlaps, improve guessing
of filesystem parameters.
2018-03-30 13:14:25 +00:00
christos 373dcdfac1 PR/51418: Jose Luis Rodriguez Garcia: Fix incore src/sbin/fsck_lfs/bufcache.c
XXX: pullup-8, pullup-7
2018-03-30 12:56:46 +00:00
maxv 6ceebe6d8a Fix warning when compiling Xen; FLAT_RING3_CS64 is defined in a child of
xen.h, which is already included in genassym.cf. So don't redefine it.
2018-03-30 10:01:36 +00:00
maxv b48fbacf8e Add #ifndef XEN, xen doesn't have speculation_barrier. 2018-03-30 09:53:08 +00:00
msaitoh 49e0cfde79 Add Some bit definitions of AMD Fn80000001 %edx:
- MMX
 - FXSR
2018-03-30 09:30:56 +00:00
msaitoh 7499490426 From the latest Intel SDM:
- Add Intel Fn0000_0006 %eax new bit 14-20 (HWP stuff).
- Intel Fn0000_0007 %ecx bit 22 is for both RDPID and IA32_TSC_AUX.
2018-03-30 09:28:37 +00:00
msaitoh d2213cce79 From the latest Intel SDM:
- Add Xeon Phi 7215, 7285 and 7295
- Add Coffee Lake
2018-03-30 09:24:40 +00:00
maxv 3ce1315224 Remove dead code. It was introduced in rev1 (25 years ago), and is
irrelevant today.
2018-03-30 08:57:32 +00:00
maxv 5fc9cf327f Style, use NULL for pointers, use KASSERT, and don't inline huge functions,
we want to debug them with DDB (and not just with GPROF).
2018-03-30 08:53:51 +00:00
ragge 2a3a708ea4 Allow allocation of PTE space to fail in pmap_enter if PMAP_CANFAIL is set.
This fixes the panic part of PR port-vax/28379.
2018-03-30 08:34:35 +00:00
maxv 479f3edb5a Fix the log. mtod never returns NULL, so 'ip' is always non-NULL, and the
'ip6' branch is never taken. As a result we log garbage on IPv6 packets.

Use ip_v instead.
2018-03-30 08:25:06 +00:00
mlelstv c69d6c55e1 Increase UVM read ahead window limit a bit to match concurrency of reading
from the raw device.
2018-03-30 07:22:59 +00:00
maxv bb11bbb48c Use consttime_memequal instead of memcmp, to prevent side channels. This
functions returns 1 when the buffers are equal, contrary to memcmp, hence
the !.
2018-03-30 07:11:40 +00:00
msaitoh a947615e2f - Add missing IFM_NONE support. If a interface support linkdown,
"ifconfig ixgN media none" drpos link.  Not all interface can do link down.

 Tested:
 	82598 AT2 (T)
	92599 SF+(SFI) (X520-DA2)
	X540
	X550-T1
	X550EM_x (X10SDV-8C-TLN4F)
	X550EM_a (A2SDi-H-TP4F port 0, 1 (T))

 Doesn't work:
	X550EM_a (A2SDi-H-TP4F port 2, 3 (SFP+ (KR)))
	X550EM_a (MA10-ST0 port 2, 3 (SFP+ (SFI)))
	(Denverton SFP+ can't force link down because SFP+'s TX_DISABLE pin is
	pull down. Is there a way to shutdown SFP+ cage's power?)
 Not tested:
 	82598 fiber.

- Change some functions static.
2018-03-30 06:44:30 +00:00
knakahara 4922de1111 Don't write EIMC directly. It is required to manage with struct ix_queue status.
XXX pullup-8
2018-03-30 03:58:20 +00:00
knakahara a5b1a86c88 Fix the problem between eitr and link_speed.
In ixgbe_msix_que(), que->eitr_setting is limited to IXGBE_MIN_RSC_EITR_10G1G
when link_speed is 1Gbps or 10Gbps. However, que->eitr_setting is set to EITR
register in the *next* Tx/Rx interrupt. If link_speed changes from 100Mbps to
1Gbps ro 10Gbps, que->eitr_setting which is not limited can be set to EITR
register, that is, the problem fixed by ixgbe.c:r1.124 can occur in this case.

To fix this case, que->eitr_setting should be clear when link_speed is changed
or link state is changed.

Furthermore, expand the variants used for AIM (txr->bytes, txr->packets,
rxr->bytes and rxr->packets) from u32 to u64 to avoid wraparound which causes
que->eitr_setting calculation mistake.

XXX pullup-8
2018-03-30 03:56:38 +00:00
rmind 7d42705336 tcp_urp_drop: fix a bug introduced in 1.390 rev (hi maxv@). 2018-03-29 21:40:53 +00:00
macallan 8a5c12e7de audio works now, so enable it 2018-03-29 19:11:17 +00:00
maxv c2ea766996 Remove TCPREASS_DEBUG. It was introduced 20 years ago when the reassembler
was being developed, but it's irrelevant today. Makes the code clearer.
2018-03-29 18:54:48 +00:00
macallan 6bde8e4865 explicitly enable the i2s part in the keylargo FCR
now this works on my PCI-X G5
2018-03-29 18:34:32 +00:00
maxv 8e8bd5fe5f Reorder/Fix comments to clarify. 2018-03-29 17:46:17 +00:00
maxv 0ec7f434fe Remove two more 'else' branches. 2018-03-29 17:12:36 +00:00
maxv 7e2cb8fdd7 Fix memory leak, we may reallocate 'tcp_saveti' after 'findpcb'. It's not
a tragic bug, because it happens only on sockets with debug enabled.
2018-03-29 17:09:00 +00:00
maxv 6ad7e2c6b1 Remove 'else', makes it clearer that we leave. 2018-03-29 17:01:46 +00:00
maxv 1aae7eafe6 Clarify with KASSERT. 2018-03-29 16:59:38 +00:00
maxv 749f228d42 Simplify the computation:
m->m_pkthdr.len -  sizeof(struct tcphdr) - optlen - hlen
	= m->m_pkthdr.len - (sizeof(struct tcphdr) + optlen + hlen)
	= m->m_pkthdr.len - [tcp_len]
	= toff
2018-03-29 16:54:59 +00:00
macallan fc8c11bf5c fix build for 32bit non-bridge SMP kernels 2018-03-29 16:19:46 +00:00
ragge 054c324758 Use same major for rx floppies for both b and c devices.
Works around a bug in the mscp disk driver, and solves PR port-vax/26138.
2018-03-29 15:45:15 +00:00
joerg 6b47d89f52 Bump image size again for new bloat. 2018-03-29 13:25:11 +00:00
joerg 2d65afd272 Move the complex logic for dynamically writing branches from ld.elf_so
into a header for reuse in crt0.o for static ifunc support. Change the
existing logic for sparc64 to use the Bicc variant of ba,a as it allows
+-8MB displacement compared to the BPcc variant's +-1MB. Teach the sparc
variant the same trick for using ba,a and not sethi+jmp when possible.
2018-03-29 13:23:39 +00:00
maxv 4ff27f257a Misc changes; no real functional change. 2018-03-29 08:11:41 +00:00
maxv 6ad323e9d0 Remove #ifdef INET. Same as tcp_input.c. Makes the code easier to
understand.

Also make tcp6_mtudisc() static in tcp_subr.c.
2018-03-29 07:46:43 +00:00
maxv 02c2018939 Use EOPNOTSUPP instead of EINVAL. 2018-03-29 07:24:26 +00:00
maxv 0da997cbd7 Allow IBRS to be disabled dynamically. 2018-03-29 07:21:24 +00:00
maxv 8eea26c04b Fix sysctl type, should be bool. 2018-03-29 07:15:12 +00:00
macallan b285859f53 deal with PowerMac7,* mac-io/i2s/sound reg properties
now we map the right registers on G5 and get DMA interrupts. Still no sound
but - well - progress
2018-03-29 06:56:54 +00:00