Commit Graph

293706 Commits

Author SHA1 Message Date
riastradh b7d09065cc linux: Fix copypasto in comment. 2021-12-27 14:57:30 +00:00
riastradh b47ee0a433 i915: Fix timeout return value of i915_request_wait.
For some reason this returns ETIME, not ETIMEDOUT or 0 like most
other wait-with-timeout things in Linux.
2021-12-27 13:29:15 +00:00
riastradh 879b0e1791 i915: Factor a little out of #ifdef NetBSD.
Doesn't really reduce diff but slightly reduces danger of bad merge.
2021-12-27 13:29:04 +00:00
riastradh 64e814cc17 i915: Omit diff now that TASK_INTERRUPTIBLE is defined. 2021-12-27 13:28:52 +00:00
riastradh 863e4af79b drm: Define TASK_INTERRUPTIBLE so we can reduce diffs a little. 2021-12-27 13:28:41 +00:00
simonb 0637ed7691 Revert rev 1.12 of devopen.c. This had the unintented side effect
of breaking opens on non-root filesystems (eg trying to open/read
"esp:/EFI/NetBSD/boot.cfg" on the EFI system partition).

Ok manu@.  Original problem to be re-addressed.
2021-12-27 12:19:27 +00:00
riastradh 1b83323c0b i915: Disable message citing firmware URL.
Not very helpful for users; helpful only for developers maintaining
the gpufw set, who can find it by searching the source of the
message.  (Also it was missing a newline which is very confusing!)
2021-12-27 11:06:49 +00:00
riastradh eb4fc0114b linux: Define mb/wmb/rmb as mfence/sfence/lfence on i386 too.
Not the same as membar_*; drm uses mb to order special instructions
like clflush which require mfence for ordering.
2021-12-27 10:41:57 +00:00
riastradh d3bb989fb1 sys: Skip suspendsched on cpu_reboot if we're in ddb.
If we're in ddb, the scheduler and all other CPUs are quiesced
anyway.  But suspendsched will try to take an adaptive lock, which
causes it to crash and re-enter ddb, which isn't very useful for
rebooting.
2021-12-26 21:33:48 +00:00
riastradh aa96afee19 i915: Unifdef cnp_enable/disable_backlight.
Not sure why this was ifdef'd out in the first place!  Appears to
have been a mistake in merge.
2021-12-26 21:00:51 +00:00
riastradh a81d59292b drm: Fix locking around accurate vblank counts.
- Make drm_crtc_accurate_vblank_count require the caller to hold the
  event lock, rather than take it internally.

- Fix locking around drm_crtc_accurate_vblank_count and related
  operations in amdgpu and nouveau interrupt handlers.

- Use drm_crtc_vblank_put_locked, not drm_crtc_vblank_put, when we
  already hold the event lock.

PR kern/56557
2021-12-26 21:00:14 +00:00
christos f8e4e6f39e Add clang's optnone attribute. 2021-12-26 18:16:41 +00:00
andvar ca8f8e9eb0 namei(9): s/operatoins/operations/ 2021-12-26 16:41:09 +00:00
riastradh f48e2d7782 drm: Allow ww_mutex_lock after ww_acquire_done if we already hold it.
In other words, if ww_mutex_lock would return -EALREADY, that's OK and
does not warrant an assertion.

PR kern/56557
2021-12-26 16:14:34 +00:00
andvar e590e6c9f3 fix various typos, mainly in comments. 2021-12-26 16:08:19 +00:00
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