Commit Graph

253835 Commits

Author SHA1 Message Date
martin de64fbebdb Pull up following revision(s) (requested by msaitoh in ticket #1774):
share/man/man4/lm.4: revision 1.37
	sys/dev/isa/wbsio.c: revision 1.28
	sys/dev/ic/nslm7x.c: revision 1.78
	sys/dev/isa/wbsioreg.h: revision 1.10

Add Nuvoton NCT6799D support.
2022-10-15 10:52:16 +00:00
martin 533dfe6ed2 Tickets #1774 - #1776 2022-10-15 10:35:16 +00:00
martin f29381bfe5 Pull up the following (via patch), requested by msaitoh in ticket #1776:
sys/dev/pci/ichsmb.c			1.76-1.77

Add Intel 600 Series PCH support.
2022-10-15 10:33:42 +00:00
martin 6f62d1e621 Pull up following revision(s) (requested by msaitoh in ticket #1775):
sys/arch/x86/include/specialreg.h: revision 1.189
	usr.sbin/cpuctl/arch/i386.c: revision 1.128
	sys/arch/x86/include/specialreg.h: revision 1.190
	sys/arch/x86/include/specialreg.h: revision 1.191
	sys/arch/x86/include/specialreg.h: revision 1.192

s/shareing/sharing/. No functional change.

Add top-down slots event bit of architectural performance monitoring leaf.

Modify CPUID Fn0000000a %ebx's string. Add new string for %ecx.

Modify output of CPUID Fn0000000a.
old:
cpu0: Perfmon-eax 0x8300805<VERSION=0x5,GPCounter=0x8,GPBitwidth=0x30>
cpu0: Perfmon-eax 0x8300805<Vectorlen=0x8>
cpu0: Perfmon-edx 0x8604<FixedFunc=0x4,FFBitwidth=0x30,ANYTHREADDEPR>
new:
cpu0: Perfmon: Ver. 5
cpu0: Perfmon: General: bitwidth 48, 8 counters
cpu0: Perfmon: General: avail 0xff<CORECYCL,INST,REFCYCL,LLCREF,LLCMISS,BRINST>
cpu0: Perfmon: General: avail 0xff<BRMISPR,TOPDOWNSLOT>
cpu0: Perfmon: Fixed: bitwidth 48, 4 counters
cpu0: Perfmon: Fixed: avail 0xf<INST,CLK_CORETHREAD,CLK_REF_TSC,TOPDOWNSLOT>

Update some AMD CPUID bits:
- Rename FSREP_MOV to FSRM.
- Add Memory Bandwidth Enforcement (MBE)
- Add AMD's PPIN. Rename CPUID_SEF_PPIN to CPUID_SEF_INTEL_PPIN.
- Add Collaborative Processor Performance Control (CPPC).
- Add HOST_MCE_OVERRIDE.
- Add some unknown bits as Bxx.
- Add comments.
- Use __BIT().
2022-10-15 10:16:07 +00:00
martin bc082c6e21 Tickets #1771 - #1773 2022-10-11 18:24:18 +00:00
martin 1c848b0cd3 Pull up following revision(s) (requested by msaitoh in ticket #1773):
share/man/man4/man4.x86/amdsmn.4		1.4,1.5
	share/man/man4/man4.x86/amdzentemp.4		1.7
	sys/arch/x86/pci/amdsmn.c			1.7-1.9,1.13,1.14
	sys/arch/x86/pci/amdzentemp.c			1.8-1.10,1.12-1.15

adjust for possible 49K offset

presence of this offset is indicated by a set 19th bit which is shifted away
this brings the temperature to "normal" levels on my ryzen 2700
(I assumed the same 49K offset as the k10temp project)

correct for known temperature bias values.

Update to support Family 15h Model 60 temperature sensors.

Changes based on FreeBSD amdtemp driver changes by Conrad Meyer.

XXX: Some code duplication between this driver and amdtemp as
     parts of the 15h refresh code share more in common with
     older CPUs while accessing the device more like 17h.

Don't mix sign and unsigned operands. Just use size_t for the loop.

Apply previous change ("Don't mix sign and unsigned operands. Just use
size_t for the loop.") to another loop variable.

amdzentemp(4): Add Zen 3 support.

amdzentemp(4): Add support for per CCD temperature sensor from FreeBSD.

Fix build failure on i386.

Rename for AMD F15/6X device. No functional change.
amdsmn(4),amdzentemp(4): Add support for 17h/6xh and 19h/6xh.

Note that these drivers are present on some newer AMD Family 15h
processors.

amdsmn.4: Now support AMD Family 19h processors.
2022-10-11 18:22:44 +00:00
martin e236846411 Pull up following revision(s) (requested by msaitoh in ticket #1772):
sys/arch/x86/include/cpu_ucode.h: revision 1.5
	sys/arch/x86/x86/cpu_ucode_intel.c: revision 1.19
	sys/arch/x86/x86/cpu_ucode_intel.c: revision 1.20

Add missing newline in a message. KNF.
Verify checksum of the extended signature table.
2022-10-11 18:07:11 +00:00
martin 6410d46501 regen (Ticket #1771) 2022-10-11 17:58:16 +00:00
martin 3711bb417a Pull up the following revisions, requested by msaitoh in ticket #1771:
sys/dev/pci/pcidevs			1.1461-1.1468 via patch

- Add several samsung nvme entries.
- Add more Alder Lake devices.
- Jasper Lake Intel Trace Hub on Compute Die is not 0x4da6 but 0x4e29.
- Add Intel Core 8G (8core, H, Halo) Host Bridge, DRAM.
- Add AMD 19h/6xh Root Complex.
- Add AMD FCH SATA Controller D.
- Add NVIDIA GeForce GTX 770.
- Sort by number.
2022-10-11 17:57:17 +00:00
martin b14f86f1b1 Pull up following revision(s) (requested by msaitoh in ticket #1770):
sys/net/if_ethersubr.c: revision 1.254

Fix a bug in the VLAN path: there's an inverted logic, the mbuf needs to
be bigger than struct ether_vlan_header, not smaller.

Meanwhile add a KASSERT in the LLC path.
2022-10-10 16:09:12 +00:00
martin 4fda3e545b Tickets #1769 and #1770 2022-10-10 15:11:45 +00:00
martin caef859939 Pull up following revision(s) (requested by msaitoh in ticket #1769):
sys/arch/x86/x86/ioapic.c: revision 1.66
	sys/arch/x86/include/i82093reg.h: revision 1.7

Print detail about misconfigured APIC ID.

IOAPIC_ID_MASK is 8 bits these days. Fixes PR kern/54276.
2022-10-10 15:04:31 +00:00
snj d5227d05cf 1767, 1768 2022-09-29 14:43:06 +00:00
snj 6ecd489fc1 Pull up following revision(s) (requested by bouyer in ticket #1768):
sys/dev/pci/mfii.c: 1.28
Convert from pci_intr_map() to pci_intr_alloc(); makes the driver use
MSI/MSI-x when available. Tested by Edgar Fu?.
2022-09-29 14:41:43 +00:00
snj 1e801aced0 Apply patch (requested by bouyer in ticket #1767):
Convert from pci_intr_map() to pci_intr_alloc(); makes the driver use
MSI/MSI-x when available.
2022-09-29 14:38:24 +00:00
martin 12cb4c50fb Tickets #1764 - #1766 2022-09-16 18:40:23 +00:00
martin 4d2fad8d97 Pull up following revision(s) (requested by msaitoh in ticket #1766):
sys/arch/x86/x86/procfs_machdep.c: revision 1.45

Add tdx_guest, brs, hfi, ibt, amx_bf16, amx_tile and amx_int8.
2022-09-16 18:39:16 +00:00
martin fe94a65818 Pull up following revision(s) (requested by msaitoh in ticket #1765):
sys/dev/usb/xhci.c: revision 1.154

Accept USB 3.2 in xhci_id_protocols().
2022-09-16 18:34:20 +00:00
martin a186c26a8f Pull up the following, requested by msaitoh in ticket #1764:
sys/dev/ic/mfireg.h				1.22
	sys/dev/pci/mfii.c				1.16-1.22,1.27 via patch
	share/man/man4/mfii.4				1.3 via patch

- Fix wrong access in mfii_start().
- Add SAS3216,SAS3224,SAS3316 and SAS3324 support.
- Add CVPM02 BBU support.
- Use bus_space_write_8() if available.
- Don't panic on detach if no any sensor device.
- Add comment. Sort entries. KNF.
2022-09-16 18:30:15 +00:00
martin 68390079f1 Ticket #1763 has been re-instated 2022-09-12 17:10:34 +00:00
martin 71d7fc346c Catch up to current, requested by christos in ticket #1763:
usr.bin/ftp/Makefile                            up to 1.39
        usr.bin/ftp/cmds.c                              up to 1.141
        usr.bin/ftp/complete.c                          up to 1.47
        usr.bin/ftp/domacro.c                           up to 1.23
        usr.bin/ftp/extern.h                            up to 1.82
        usr.bin/ftp/fetch.c                             up to 1.235
        usr.bin/ftp/ftp.1                               up to 1.147
        usr.bin/ftp/ftp.c                               up to 1.174
        usr.bin/ftp/ftp_var.h                           up to 1.86
        usr.bin/ftp/main.c                              up to 1.128
        usr.bin/ftp/progressbar.c                       up to 1.24
        usr.bin/ftp/progressbar.h                       up to 1.9
        usr.bin/ftp/ssl.c                               up to 1.12
        usr.bin/ftp/ssl.h                               up to 1.5
        usr.bin/ftp/util.c                              up to 1.164
        usr.bin/ftp/version.h                           up to 1.94

ftp(1): validate address from PASV and LPSV response.
ftp(1): use raw write(2) instead of fwrite(3) to avoid stream
corruption because of the progress bar interrupts.
Fixes for PR 56219 and PR 55857.
PR 57003: Support relative redirects.
2022-09-12 17:08:13 +00:00
martin 5579b97d32 backout of #1763 2022-09-12 15:05:58 +00:00
martin 37fe5644c0 Backout ticket #1763 for now - trust anchors are not solved. 2022-09-12 15:05:21 +00:00
martin 50e4483b8e Tickets #1762 and #1763 2022-09-12 14:49:03 +00:00
martin 1d6bc0c7fb Catch up to current, requested by christos in ticket #1763:
usr.bin/ftp/Makefile                            up to 1.39
	usr.bin/ftp/cmds.c                              up to 1.141
	usr.bin/ftp/complete.c                          up to 1.47
	usr.bin/ftp/domacro.c                           up to 1.23
	usr.bin/ftp/extern.h                            up to 1.82
	usr.bin/ftp/fetch.c                             up to 1.235
	usr.bin/ftp/ftp.1                               up to 1.147
	usr.bin/ftp/ftp.c                               up to 1.174
	usr.bin/ftp/ftp_var.h                           up to 1.86
	usr.bin/ftp/main.c                              up to 1.128
	usr.bin/ftp/progressbar.c                       up to 1.24
	usr.bin/ftp/progressbar.h                       up to 1.9
	usr.bin/ftp/ssl.c                               up to 1.11
	usr.bin/ftp/ssl.h                               up to 1.5
	usr.bin/ftp/util.c                              up to 1.164
	usr.bin/ftp/version.h                           up to 1.94

ftp(1): validate address from PASV and LPSV response.
ftp(1): use raw write(2) instead of fwrite(3) to avoid stream
corruption because of the progress bar interrupts.
Fixes for PR 56219 and PR 55857.
PR 57003: Support relative redirects.
2022-09-12 14:46:51 +00:00
martin ff57d167f7 Pull up the following, requested by msaitoh in ticket #1762:
usr.bin/netstat/atalk.c		1.18,1.20-1.21
	usr.bin/netstat/bpf.c		1.16 via patch
	usr.bin/netstat/fast_ipsec.c	1.24 via patch
	usr.bin/netstat/if.c		1.97-1.99,1.101-1.104 via patch
	usr.bin/netstat/inet.c		1.111,1.115-1.116 via patch
	usr.bin/netstat/inet6.c		1.70,1.74-1.75,1.80-1.81 via patch
	usr.bin/netstat/main.c		1.100,1.102-1.103
	usr.bin/netstat/mbuf.c		1.34-1.35
	usr.bin/netstat/mroute.c	1.26-1.27
	usr.bin/netstat/mroute6.c	1.16
	usr.bin/netstat/netstat.h	1.52-1.53
	usr.bin/netstat/pfkey.c		1.4-1.5 via patch
	usr.bin/netstat/pfsync.c	1.4-1.5 via patch
	usr.bin/netstat/route.c		1.87-1.88
	usr.bin/netstat/unix.c		1.36-1.37
	usr.bin/netstat/vtw.c		1.11,1.13

- Add names of a few more ICMPv6 messages.
  Also make the array be explicitly 256 entries long.
- sprintf() -> snprintf(), and adjust a buffer size to avoid any
  potential for overflow.
- Add missing {IP,IP6}_STAT_NOIPSEC to netstat.
- Don't show any of the completely and utterly undocumented VTW info
  if the feature isn't enabled.
- Print oqdrops correctly.
- netstat.1: Add various xrefs present in the body to "See Also".
- Limit maximum owner name to appease gcc.
- KNF. Style fixes.
2022-09-12 14:29:19 +00:00
martin 8b02793ce7 Ticket #1761 2022-09-10 08:22:38 +00:00
martin a0df508e7a Pull up following revision(s) (requested by mrg in ticket #1761):
sys/kern/kern_core.c: revision 1.37

avoid a GCC warning (happens on -current, -9, and -8.)
2022-09-10 08:21:49 +00:00
martin c04770902b Ticket #1760 2022-09-09 18:25:13 +00:00
martin 6ba13d7598 Pull up following revision(s) (requested by christos in ticket #1760):
sys/kern/kern_core.c: revision 1.36

Don't forget to free the cred we just held.
Thanks to Chris J-D (chris at accessvector dot net)

While here, de-duplicate the mutex exit sequence.
2022-09-09 18:24:20 +00:00
martin f79fa0a95f Undo accidental whitespace changes from applying the patch for
ticket #1759 by applying a patch from msaitoh (NFC).
2022-09-08 10:29:36 +00:00
martin 30e697efb3 Ticket #1759 2022-09-07 10:10:55 +00:00
martin d8807fe772 Pull up the following revisions, requested by msaitoh in ticket #1759:
sys/dev/pci/if_wm.c				1.741-1.749,1.753-1.757,
							1.762 via patch
	sys/dev/pci/if_wmreg.h				1.126-1.127

- Fix I219 workaround in wm_flush_desc_rings().
- Add more statistics counters.
- To avoid releasing mutex temporally, use new
  wm_set_mdio_slow_mode_hv_locked().
- No functional changes:
  - Turn a locking botch (shouldn't drop lock on error) into a KASSERT
    in wm_deferred_start_locked().
  - Remove unneeded header inclusion.
  - Use __BIT() a little.
  - Modify comment and debug messages.
  - Consistency use -1 instead of 1 for some error code.
  - KNF.
2022-09-07 10:09:20 +00:00
martin 7b01f8140e Ticket #1758 2022-08-30 15:40:57 +00:00
martin f4bdc1c223 Pull up following revision(s) (requested by rin in ticket #1758):
external/mit/xorg/server/drivers/xf86-video-wsfb/Makefile: revision 1.6

wsfb: Disable broken DGA support:
  - dga(1) crashes X server since pScrn->AdjustFrame is NULL.
  - If nop is provided as pScrn->AdjustFrame, dga(1) crashes X server *AND*
    kernel. This is because DGA uses physical address of framebuffer via
    /dev/mem (oops!), but we provide only mmap(2)'ed virtual address.
2022-08-30 15:40:03 +00:00
martin dfc7a60d51 Ticket #1757 2022-08-29 16:15:42 +00:00
martin 388d75f023 Pull up following revision(s) (requested by dholland in ticket #1757):
libexec/telnetd/telnetd.c: revision 1.58 (via patch)

telnetd: fix the crash that's been talked about the past couple days.

(Move initialization of the slc table earlier so it doesn't get
accessed before that happens.)

Calling the crash a DoS or security problem is a bit overwrought; it's
just a bug.
2022-08-29 16:14:57 +00:00
martin 8111fe230e Ticket #1756 2022-08-28 13:32:34 +00:00
martin 6b32535d11 Pull up following revision(s) (requested by hgutch in ticket #1756):
libexec/telnetd/utility.c: revision 1.34

Fix CVE-2020-10188
2022-08-28 13:31:39 +00:00
martin ce4aef5521 Ticket #1755 2022-08-12 15:20:07 +00:00
martin 8aee7e2c9b Pull up following revision(s) (requested by sekiya in ticket #1755):
sys/dev/ic/dwc_gmac.c: revision 1.76-1.77

Turn off AWIN_GMAC_MAC_CONF_ACS, so that all received packets retain FCS
bytes.
ether_input() can now trust M_HASFCS to accurately represent the packet
contents.

Discussed on tech-net@
2022-08-12 15:13:45 +00:00
snj 6610da403b 1754 2022-08-02 15:44:56 +00:00
snj 7f9d1029fd regen for ticket 1754 2022-08-02 15:43:04 +00:00
snj 87544821dc Pull up following revision(s) (requested by msaitoh in ticket #1754):
sys/dev/pci/pcidevs: 1.1445-1.1460 via patch
Update pcidevs:
- Add Intel Alder Lake devices and Intel 600 Series PCH devices.
- Add some Intel Xeon Scalable / Skylake-E devices.
- Fix AMD F16_HB from 0x1568 to 0x1538.
- Add some devices for AMD and improve some descriptions to clarify.
- Add VMware AHCI and NVMe.
- Update Intel 700 series Ethernet devices.
- Add some Broadcom devices.
- Add some Broadcom / LSI RAID cards.
- Fix typos and whitespace.
2022-08-02 15:41:46 +00:00
martin 2f82a2c060 Ticket #1753 2022-08-01 09:38:58 +00:00
martin a43e648473 Pull up following revision(s) (requested by rin in ticket #1753):
sys/dev/usb/uslsa.c: revision 1.32

PR kern/56946
Baud rate must be in little endian for SLSA_R_SET_BAUDRATE request.
2022-08-01 09:38:02 +00:00
martin 3f55959057 Ticket #1752 2022-07-15 17:20:56 +00:00
martin 308d256ae4 Ticket #1751 2022-07-11 14:17:49 +00:00
martin e624e5bc14 Pull up the following revisions, requested by msaitoh in ticket #1751:
sys/dev/pci/if_wmreg.h				1.122-1.125 via patch
	sys/dev/pci/if_wmvar.h				1.48
	sys/dev/pci/if_wm.c				1.719-1.720,1.722-1.725,
							1.727-1.740 via patch

- wm_tick: Add missing splx(s) when not WM_MPSAFE.
- Print DMA range info if the system is booting in the verbose mode.
- Micro optimization:
  - Call m_freem(m) only if m0 == NULL.
  - Call wm_xxeof() only when limit > 0.
  - Don't set the more flag when there is no packet to process.
- No functional changes:
  - Call txeof first, then rxeof for the consistency.
  - Remove duplicated break.
  - Remove stray semicolons from struct declaration.
  - Fix value return from void function.
  - Use macros.
  - Modify comment.
  - KNF.
2022-07-11 14:15:57 +00:00
martin ffb0f04832 Remove bogus ticket #1748 entry that was actually a fixup of ticket #1746 2022-06-17 15:33:02 +00:00