Commit Graph

139610 Commits

Author SHA1 Message Date
nonaka
95e6c1170a efiboot: try to read boot.cfg from /EFI/NetBSD on ESP of the booted disk. 2018-04-02 09:44:18 +00:00
msaitoh
ce5da7e756 Regen. 2018-04-02 07:31:17 +00:00
msaitoh
516c5fb052 Add Intel X299 and Z370 LPC. 2018-04-02 07:30:34 +00:00
knakahara
be8dae5598 Avoid issues caused by sending old packets at next link-up time.
This modification consists by the following two parts.
    - drain packets in if_snd queue or corresponding txr->txr_interq
      when link_active == false in ifp->if_start(), ifp->if_transmit(),
      and deferred Tx processing
    - drain packets in if_snd queue and all of txr->txr_interq's
      at link-down time

ok by msaitoh@n.o.
2018-04-02 05:02:55 +00:00
jakllsch
ccf1058491 re-generate 2018-04-02 00:46:07 +00:00
jakllsch
7dcd9b9658 Add Linux Foundation vendor ID, and their root hub device IDs. 2018-04-02 00:45:06 +00:00
bouyer
db6d41fb5d Add a round_rate() callback for the sunxi clock domain.
Add a sunxi_ccu_display.c file with helpers for setting up display engine
clocks.
for fractional clocks, rename frac_en to div_en, I got the logic inverted.
Adjust tcon0-ch0, tcon0-ch1, tcon1-ch0 and tcon1-ch1 definitions to
automatically select a parent. tcon0 hardcoded to pll3 and tcon1 to pll7.
Define a round_rate() callback for these clocks, as well as fractional clocks.
Hardcode debe clocks parent to pll5.
2018-04-01 21:19:17 +00:00
bouyer
70d9969940 As discussed on tech-kern@ 10 days ago, add a clk_round_rate() method,
which returns the rate that would be used by this clock if clk_set_rate()
was called. Used by drivers (or other clocks) which have their own divider
and need to know the parent's clock capabilities to compute the best
parameters.
2018-04-01 21:11:01 +00:00
bouyer
10df83e46f Fix lvds output: PD10->19 are for lvds1, not lvds0. But they may be used
by tcon0 when it is set to dual-LVDS mode.
2018-04-01 21:05:55 +00:00
christos
9c17258d23 Add the ability to prepend a timestamp [ sec.nsec] relative to boottime
in kernel messages if KLOG_TIMESTAMP is enabled.
2018-04-01 19:29:43 +00:00
christos
1771523298 Instead of expanding the syslog level into <level> early, defer expansion
inside putchar; extract the actual character addition function to a separate
function.
2018-04-01 19:28:17 +00:00
christos
a579c6a325 Move the add char portion to its own function. 2018-04-01 19:01:08 +00:00
ryo
7315ff6055 fix build error 2018-04-01 14:33:53 +00:00
maxv
d8123fa2ca Change the check to be <= instead of <. This fixes one occurrence of an
apparently widespread division-by-zero bug in our TCP code: if a user adds
huge IPv6 options with setsockopt, and if the total size of the options
happens to be equal to the available space calculated for the TCP payload,
t_segsz gets set to zero, and given that we then divide several things by
it, the kernel crashes.
2018-04-01 12:58:47 +00:00
maxv
fd876672ce Reorder and style, for clarity. 2018-04-01 12:46:50 +00:00
ryo
fe33aa2786 Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)
- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)
2018-04-01 04:35:01 +00:00
christos
2be0b0c7db factor out some repeated code and simplify the logputchar function. 2018-03-31 23:12:01 +00:00
maxv
65b46b60ed typo in comments 2018-03-31 19:27:14 +00:00
sevan
3aed6ebf60 There was only one G3 PowerBook with Firewire support, the Pismo. Issue is not
exclusive to the Pismo, confirmed on a G4 Titanium PowerBook. Chip is a Texas
Instruments TSB41AB1.
2018-03-31 17:54:53 +00:00
sevan
0ee4037e90 PG3_FW device has been renamed UNINORTH_FW in pcidevs. 2018-03-31 15:14:47 +00:00
sevan
82043fb060 Listed UniNorth device is in fact the UniNorth 2 interface, rename.
https://pci-ids.ucw.cz/read/PC/106b/0031
2018-03-31 14:50:45 +00:00
sevan
5b1a35a06f regen 2018-03-31 14:46:13 +00:00
sevan
688dee0abe What we have listed as the PowerBook G3 Firwire device is actually the UniNorth
Firwire interface which is not exclusive to the PowerBook G3.
It can be found in the G3 iMac DV for example
http://dmesgd.nycbug.org/index.cgi?do=view&id=1124

Rename the PBG3_FW device UNINORTH_FW & set the previously listed UNINORTH_FW to
UNINORTH2_FW which is what the device actually is.

Verified using https://pci-ids.ucw.cz/read/PC/106b
2018-03-31 14:39:47 +00:00
maxv
498ce4f000 Rename spectreV2 -> spectre_v2, and introduce spectre_v1 (which defaults
to not-mitigated).

This gives the user an easy way to find out whether the system is
vulnerable:

	machdep.spectre_v1.mitigated
	machdep.spectre_v2.mitigated

They are also available on i386.
2018-03-31 08:43:52 +00:00
maxv
2c7e729b3b Reorganize to simplify. 2018-03-31 08:30:01 +00:00
maxv
90141cba18 Add #ifdef, for i386 not to panic. 2018-03-31 07:15:47 +00:00
ragge
4ee6ed16f3 Shrink MAXDSIZ to 512MB.
XXX this should be depending of amount of physical memory.
2018-03-31 06:34:51 +00:00
ragge
339e30411b Set max/dfl size for vm a process may have to the same as for data.
This avoids a problem where mmap may lock processes in the system,
and solves PR port-vax/28379.
2018-03-31 06:32:47 +00:00
tsutsui
2ca9eacb91 Regen from HADES.in rev 1.16:
> Remove duplicated devices already defined in the common GENERIC.in.
2018-03-31 04:23:33 +00:00
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
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
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
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