256144 Commits

Author SHA1 Message Date
jmcneill
fdc625b412 Add support for H5 CPU and GPU thermal sensors. 2018-01-28 18:24:50 +00:00
jmcneill
ebac5eb903 Allow set_voltage/get_voltage to succeed on a fixed regulator so long as
the requested range overlaps with the fixed rate defined in the devicetree.
2018-01-28 18:21:52 +00:00
mlelstv
6703d1a248 Compute Core/SMT-IDs for AMD family 17h (Ryzen). 2018-01-28 16:32:43 +00:00
mlelstv
71d727f251 CPUID tells the ApicIdCoreIdSize in bits. 2018-01-28 16:15:41 +00:00
christos
01bc43e387 add an annotation. 2018-01-28 16:12:41 +00:00
christos
05b75fe4b1 CID-1428639: make sure we always initialiaze hash, because if ultimately
the file is not found and we end up looping we need them.
2018-01-28 15:48:44 +00:00
mlelstv
eb468dc1b1 Check for undefined behaviour when doing right-shift. 2018-01-28 15:00:42 +00:00
maya
c66c60f8a9 Fix copy paste error. from coverity. 2018-01-28 14:34:26 +00:00
jmcneill
62477eae66 Don't print an error when we find a CIS tuple code in the vendor-unique
range (80h-8Fh).
2018-01-28 14:34:06 +00:00
tsutsui
57fdeaadbc Replace CRTC register values with ones taken from sys/dev/ic/vga_subr.c.
This fixes noise around column 3 and 4 and makes screen output clearer
on Milan with S3 Trio64V.
2018-01-28 14:22:23 +00:00
maya
501cede865 Use a protocol-agnostic URL (don't degrade HTTPS->HTTP)
Suggested by Travis Paul in PR bin/52958.
2018-01-28 13:37:39 +00:00
hannken
67070b1e36 Prevent use-after-free where genfs_node_destroy() would destroy
a lock residing in the just freed inode data.
2018-01-28 10:02:00 +00:00
hannken
4c6335f141 Make sure inode blocks and size are zero when VOP_INACTIVE()
finalises a now unlinked inode.
Counterpart of the check in ffs_newvnode().
2018-01-28 10:01:18 +00:00
jandberg
e680fc296c Make the console framebuffer visible when polling mode console input is used. 2018-01-28 10:00:31 +00:00
rin
dc26222726 Shrink ramdisk to fit INSTALL kernel within 5MB:
- drop shutdown
- replace disklabel, fsck_ffs, and newfs with stripped-down versions
2018-01-28 01:09:57 +00:00
christos
dcdb6449b4 explain how to allow coverity to use sysroot 2018-01-27 23:59:17 +00:00
chs
807fa9ea1e apply the change from arch/x86/x86/pmap.c rev. 1.266 commitid vZRjvmxG7YTHLOfA:
In pmap_enter_ma(), only try to allocate pves if we might need them,
and even if that fails, only fail the operation if we later discover
that we really do need them.  If we are replacing an existing mapping,
reuse the pv structure where possible.

This implements the requirement that pmap_enter(PMAP_CANFAIL) must not fail
when replacing an existing mapping with the first mapping of a new page,
which is an unintended consequence of the changes from the rmind-uvmplock
branch in 2011.

The problem arises when pmap_enter(PMAP_CANFAIL) is used to replace an existing
pmap mapping with a mapping of a different page (eg. to resolve a copy-on-write).
If that fails and leaves the old pmap entry in place, then UVM won't hold
the right locks when it eventually retries.  This entanglement of the UVM and
pmap locking was done in rmind-uvmplock in order to improve performance,
but it also means that the UVM state and pmap state need to be kept in sync
more than they did before.  It would be possible to handle this in the UVM code
instead of in the pmap code, but these pmap changes improve the handling of
low memory situations in general, and handling this in UVM would be clunky,
so this seemed like the better way to go.

This somewhat indirectly fixes PR 52706 on the remaining platforms where
this problem existed.
2018-01-27 23:07:36 +00:00
pgoyette
6ecfb3c540 Recent changes have increased the number of "things" the bootloader
needs to deal with.  Increase the table size so we don't overflow.
2018-01-27 22:25:23 +00:00
pgoyette
d51df56986 Update amdzentemp(4) attachment info. Also for ALL, remove duplicate
entry for amdtemp(4).
2018-01-27 21:46:54 +00:00
pgoyette
d2f3e88301 Update attachment info - amdtemp(4) attaches to amdnb_miscbus attribute 2018-01-27 21:41:50 +00:00
pgoyette
89c546f0fd Update attachment details for amdzentemp - it attaches to amdsmnbus? now. 2018-01-27 21:39:06 +00:00
kardel
6804220ce4 rescan amdsmnbus instead of amdsmn (fixes panic) 2018-01-27 21:24:30 +00:00
wiz
e793fb4654 Remove trailing whitespace and Tn macro. 2018-01-27 18:59:38 +00:00
maxv
356342da2f Declare INTR_RECURSE_HWFRAME, same as amd64. 2018-01-27 18:48:59 +00:00
maxv
5b9ccdade9 style 2018-01-27 18:44:19 +00:00
maxv
2e43b1e607 Put the default %cs value in INTR_RECURSE_HWFRAME. Pushing an immediate
costs less than reading the %cs register and pushing its value. This
value is not allowed to be != GSEL(GCODE_SEL,SEL_KPL) in all cases.
2018-01-27 18:27:08 +00:00
maxv
7318ea98b7 Declare and use INTR_RECURSE_ENTRY, an optimized version of INTRENTRY.
When processing deferred interrupts, we are always entering the new
handler in kernel mode, so there is no point performing the userland
checks.

Saves several instructions.
2018-01-27 18:17:57 +00:00
maxv
1347fb380b Use testb, faster. 2018-01-27 17:54:13 +00:00
sevan
9b65f16d5d Fix issue with audio being downpitched, thanks to <nat>
"it seems that snapper_init should be called before audio_attach_mi, as snapper
init is setting the rate to 44100 after the hardware format has been configured
by audio_attach_mi.

audio_attach_mi should be the last thing called during an attach of an audio
device so the audio device is ready to be configured when audio_attach_mi is
called."

Resolves PR port-macppc/52949
2018-01-27 16:21:47 +00:00
maxv
37397812de SMAP on i386. 2018-01-27 15:31:10 +00:00
jmcneill
97aca24933 Apply RTL8211E "no-tx-delay" workaround to NanoPi NEO Plus2 boards as well. 2018-01-27 14:17:45 +00:00
flxd
e003fab1ae Fix more printf format strings for mfspr() (hi mrg). 2018-01-27 10:07:41 +00:00
maxv
655db1e2fa Add SMAP support for i386. 2018-01-27 09:33:25 +00:00
maxv
21a8fbaf77 Remove DO_DEFERRED_SWITCH and DO_DEFERRED_SWITCH_RETRY, unused. 2018-01-27 08:12:27 +00:00
maxv
541cbcfa5e Use .pushsection (like amd64), and align INTRENTRY. 2018-01-27 08:05:14 +00:00
maxv
121abc7640 Remove these files. No one cares about this on i386, and there is no
point in keeping undocumented options nobody understands anyway.
2018-01-27 07:51:04 +00:00
maxv
a54ecb83c9 Sync with amd64, in particular, add END() markers, don't fall through
functions, narrow the copy windows, and remove suword.
2018-01-27 07:45:57 +00:00
sevan
87ebd86e7f Need strings.h for ffs()
Resolves implict declaration warning of ffs() when building tools via build.sh
2018-01-27 03:54:01 +00:00
sevan
afa0bbc877 Need strings.h for ffs() 2018-01-27 02:07:33 +00:00
christos
3c2a1cdc76 use the intermediate bus 2018-01-27 00:23:19 +00:00
christos
2429b4d35a provide an intermediate "bus" for the module and to be the same structure
like amdtemp
2018-01-27 00:21:41 +00:00
christos
59bbd1d185 remove useless KASSERT. 2018-01-27 00:00:26 +00:00
pgoyette
7051423712 Fix typo in previous. mea culpa, mea culpa, mea maxima culpa 2018-01-26 23:36:01 +00:00
pgoyette
f25456b933 sc->sc_sensor cannot be NULL since it was just allocated with KM_SLEEP
(which cannot fail).  So remove the NULL-check.  CID/1428644
2018-01-26 23:01:44 +00:00
pgoyette
ddd02a378a Ensure that dev is not NULL - CID/1428649 2018-01-26 22:58:09 +00:00
pgoyette
f092b64215 Bounds checking - CID/1428650 2018-01-26 22:54:33 +00:00
pgoyette
d10dc2b1d3 Unitialized variable - CID/1428657 2018-01-26 22:48:22 +00:00
flxd
a3e2616911 Another try fixing printf format using the ultimate uintmax_t idiom. 2018-01-26 17:49:55 +00:00
knakahara
ce3d008ecb Fix 82574 MSI-X mode cannot receive packets after 82574 receives high rate traffic.
In short, 82574 MSI-X mode does not cause RXQ MSI-X vector when 82574's
phys FIFO overflows. I don't know why but 82574 causes not RXQ MSI-X vector
but OTHER MSI-X vector at the situation.
see:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v4.15-rc9&id=4aea7a5c5e940c1723add439f4088844cd26196d

advised by msaitoh@n.o, thanks.
2018-01-26 16:25:28 +00:00
wiz
3c0d115000 Remove Tn. Mention first NetBSD release. 2018-01-26 15:12:37 +00:00