Commit Graph

293641 Commits

Author SHA1 Message Date
rillig 2b9d699f00 mixerctl: add colon after 'Usage', add space after comma 2021-12-26 15:36:49 +00:00
jmcneill 86e4d8c787 acpi: ohci: Match "generic-ohci" compatible string 2021-12-26 14:35:03 +00:00
jmcneill 1ff08d8ecc acpi: Support DT link device ID
The PRP0001 device ID is used to tell the OS to match a driver against
the "compatible" _DSD property. Make acpi_compatible_match aware of this
special device ID and match device compatible entries against the
compatible property when applicable.
2021-12-26 14:34:39 +00:00
skrll a05da69046 port-arm/50563: pool allocator corruption due to __MUTEX_PRIVATE
This file has moved on somewhat since the PR was raised, but nevertheless
let's add the CTASSERT "just in case".
2021-12-26 08:41:29 +00:00
pgoyette 4eb53ee9e8 Once again things have grown, so the install image allocation size
needs to be bumped.

XXX There's gotta be a better way to maintain this!  :-)
2021-12-26 03:07:06 +00:00
mlelstv 9e53e1415d Add support for a read-only edid attribute that shows the result of
WSDISPLAYIO_GET_EDID.

Uses code from sys/dev/videomode to parse and print the edid data.
2021-12-25 13:54:13 +00:00
rillig 70804612dd lint: don't try to trick mathematics by defining ZERO to a nonzero value
No binary change.
2021-12-25 13:51:42 +00:00
mlelstv 08b20cda6b Make re-usuable to userland. The vesagtf standalone build is #if'd out for now. 2021-12-25 13:51:31 +00:00
riastradh 630a5cc129 ukbd(4): Wait for callouts and blinking to complete in detach.
This detach routine (and whole driver) has got a lotta other
problems, but let's fix 'em one at a time...
2021-12-25 13:41:12 +00:00
rillig 7d1ac2621e postfix: enable lint again
Since init.c 1.229 from 2021-12-22, lint correctly parses and interprets
initializers with omitted braces, which are allowed by the C standards
but not recommended.

The warnings about empty declarations at file scope are suppressed
precisely.

Lint2 handles the generated .ln files fine in my local builds, I suspect
some truncated files as the cause for the unspecific "is broken" from
the comment.
2021-12-25 13:30:42 +00:00
nia 0c910f5562 ehci(4): fix PR kern/56574: uaudio at ehci (not xhci) only outputs
rapid gunfire (patch from nick)
2021-12-24 22:56:55 +00:00
riastradh a1c271a927 malo(4): Fix line breaks in attach output. 2021-12-24 21:57:49 +00:00
christos e8d5d3be36 put back the tcpwinsz initialization code. 2021-12-24 21:52:48 +00:00
christos bede0c5f8d PR/56569: Mike Small: Remove unused code. 2021-12-24 18:16:11 +00:00
jmcneill 56b9a4e515 wsfb: Prefer wide fonts when EDID data is available.
To give us a better chance of picking a readable font, prefer fonts that
will render at least 3mm wide instead of picking the font that will be
closest to that size.
2021-12-24 18:12:58 +00:00
riastradh de920ee0e9 drm: Fix missing newline in DRM_WARN (redux). 2021-12-24 15:26:35 +00:00
riastradh 1d2fb50490 Revert "drm: Fix missing newline in DRM_WARN."
Accidentally included more than I intended here.
2021-12-24 15:25:03 +00:00
riastradh 826f18790e drm: Fix missing newline in DRM_WARN. 2021-12-24 15:22:20 +00:00
riastradh f6111af65e drm: Sprinkle some assertions into sg dma logic. 2021-12-24 15:08:31 +00:00
riastradh 5f1e405741 i915: Use AcpiOsMapMemory, not bus_space_map, for opregion.
Needed because this appears in firmware-type memory mappings, which
are excluded from bus_space_map.

XXX pullup-9 (via manual patch since the code has changed a bit)
2021-12-24 15:08:09 +00:00
riastradh 98b16a05d6 i915: Restore uao_set_pgfl for i915 gem objects, lost in the merge.
Needed to ensure we allocate paddrs that the GPU can cope with.
2021-12-24 15:07:47 +00:00
riastradh 7ad0fcebe8 amdgpu: Sprinkle __diagused. 2021-12-24 11:19:55 +00:00
msaitoh 1fe9f784ab Enable mailbox API 1.5 support. Tested on ESXi with ixgben 1.10.3.0. 2021-12-24 05:13:39 +00:00
msaitoh 1e393addc9 Add code to support API version 1.5. No functional change.
- This change adds almost all code to support API 1.5 except real negotiation
    and upgrade mailbox functions.
  - From ix-3.3.18, ix-3.3.22 and ixv-1.5.24.
2021-12-24 05:11:04 +00:00
msaitoh c46637390d Whitespace fix. Remove old comment. No functional change.
- From FreeBSD ixv-1.5.22.
2021-12-24 05:05:57 +00:00
msaitoh fc98987e83 Restore some mailbox related functions. No functional change.
- Revert some part of ixgbe_mbx.c rev. 1.7 and ixgbe_mbx.h rev. 1.11.
    It's also part of FreeBSD 3f66b96d8658f8721e6b1c6f035611bec44675b9.
  - This change reduces diff against FreeBSD ix-3.3.14.
2021-12-24 05:03:37 +00:00
msaitoh 8467fefbc1 Update copyright to 2020.
FreeBSD: 8455e365f77f5b66ac9521dbcd690f79345ce147
2021-12-24 05:02:11 +00:00
msaitoh debed2fe39 Change the first argument of ixgbe_send_vf_msg(). No functional change.
- This is a part of FreeBSD ix-3.2.17.
2021-12-24 05:01:00 +00:00
msaitoh ba990beacf Rename IXGBE_VT_MSGTYPE_{ACK,NACK} to IXGBE_VT_MSGTYPE_{SUCCESS,FAILURE}.
- Sync with FreeBSD ix-3.3.18.
  - No functional change.
2021-12-24 04:59:23 +00:00
msaitoh e677c870a4 Move some definitions. No functional change. Part of FreeBSD ix-3.3.18. 2021-12-24 04:56:34 +00:00
yamaguchi 23120efef8 Fix missing curlwp_bind()
Fixes kern/56556
2021-12-24 04:50:40 +00:00
jmcneill df1d1323f8 acpi: ehci: Don't assume that a transaction translator is available.
Look for companion controllers using the rules in ACPI 6.3 section 9.14.1
"USB 2.0 Host Controllers and _UPC and _PLD", and only assume TT is
present if we can't find a USB 1.1 companion.
2021-12-24 00:27:22 +00:00
jmcneill 7e4b110359 Add ohci at acpi bindings. No known PNP IDs for this, so match using _CLS
and the PCI class/subclass/interface codes. Maybe this will take off.
2021-12-24 00:24:49 +00:00
riastradh 074da94645 i915: Fix memory leak in active node allocation under #ifdef NetBSD.
Potential fix for PR kern/56573.
2021-12-24 00:14:03 +00:00
riastradh a5dbbfa5cb pool(9): Fix default PR_NOALIGN for large pool caches.
Was broken in recent change to separate some pool cache flags from
pool flags.

Fixes crash in zfs.
2021-12-24 00:13:53 +00:00
christos e84b253916 remove extra C in OBJCOPTS (from Anon Ymous) 2021-12-23 20:08:07 +00:00
hannken d2c038ae61 Disable amdgpu as it uses floating point arithmetics and subr_kcov
doesnt handle it.

Ok: riastradh@
2021-12-23 17:13:13 +00:00
hannken dc1d79e615 Initialize crtc_state to suppress false warning it may be used uninitialized.
Ok: riastradh@
2021-12-23 17:11:41 +00:00
hannken fd8e2523ac Cast addr to uint64_t before printing.
Ok: riastradh@
2021-12-23 17:09:25 +00:00
hannken c6b15fa965 Keep constants 32 bit, why does __BIT() return uintmax_t? 2021-12-23 17:05:49 +00:00
christos a3f7d3a6b3 Put back the code to add DEBUG=-g in config and to add the debug kernels
in the kernel sets. Having the .gdb kernels in the EXTRA_KERNELS does not
work, since we only walk through the standard kernels in the Makefile. Also
doing DEBUG=-g in config twice does not hurt.
2021-12-23 14:50:59 +00:00
rillig e499719151 tests/make: explain the current behavior of the option '--version' 2021-12-23 11:05:58 +00:00
skrll 5ca0c940ce Use the correct dmatag for all control structures. Also, don't KASSERT that
we're using the low 4GB for them and simply error out.

kern/56570: ehci panic on boot
2021-12-23 11:03:48 +00:00
yamaguchi 49769dfeca hyper-v: move idt vector allocating to vmbus_init_interrupts_md()
for refactoring

And, the deallocating is also moved to
vmbus_deinit_interrupts_md().

reviewed by nonaka@n.o.
2021-12-23 04:06:51 +00:00
yamaguchi 27a3a7d5aa Move the variable into the section that uses it 2021-12-23 02:45:43 +00:00
yamaguchi 569fb99aaf delete the extra space 2021-12-23 02:10:53 +00:00
yamaguchi 0955743d85 x86: improve error handling related to idt_vec_alloc() 2021-12-23 02:07:21 +00:00
skrll e879f54ca8 Three fixes
- pass the 64bit DMA tag if the HCCPARAMS says ehci supports it and the
  64bit DMA tag is available/valid.  This should help with the
  "cannot create xfer" error on 64bit systems.

- restrict the control structure memory allocation to the low 4GB
  (CTRLDSSEGMENT was always set to zero anyway)

- if ehci_init fails then tidyup before returning the error.
2021-12-22 21:45:02 +00:00
skrll aa1a0c6c17 Whitespace 2021-12-22 21:36:40 +00:00
thorpej 019ce3099d Reduce code duplication: kmem_cache_create() is now exactly the same as
kmem_cache_create_dtor() except for the dtor argument, so implement
the former in terms of the latter.
2021-12-22 18:04:53 +00:00