| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
|
|
|
|
|
|
| |
device. This matches what Linux does and is a first step towards running
X without setuid or root priviliges.
ok jsg@
|
|
|
|
|
| |
when a nested macro is called with an expression argument.
Prompted by -Wint-in-bool-context with gcc 8. ok kettenis@
|
|
|
|
|
|
| |
As ap192k and julia cards are very similar, this change will hopefully
help reusing part of the juilia codec initialization code as is in the
ap192k card code. No behavior change.
|
|
|
|
|
|
|
|
|
| |
The set_rate method switches the AK5385 and the AK4358 chips between
single-, double- or quad-speed modes depending on the host sample
rate. This suppresses aliasing noise in 96kHz and 192kHz sample
rates.
Help and testing by Andrey Oktyabrskiy <ano at bestmx.net>. Thanks!
|
|
|
|
|
|
|
| |
This allows to hook card-specific codec initialization code
called when the sample rate is changed. As codecs follow host
clock, this method will be typically used to switch between
simple-speed to double-speed modes when necessary.
|
|
|
|
|
|
| |
The new GPIO state doesn't set masked bits and matches the default
48kHz sampling rate. As the codec uses the host clock, this is a
no-op, but this way the code is less confusing.
|
|
|
|
| |
Tests and help from Andrey Oktyabrskiy <ano at bestmx.net>. Thanks.
|
| |
|
|
|
|
|
|
|
| |
Prevents black screens on hotplugging a new display with Xorg running
which required a vt switch for screens to be useable.
Reported by various people on misc@. Tested by and ok sthen@
|
|
|
|
|
|
| |
Makes scan results more reliable.
testing jmc@, kmos@, Tracey Emery
ok kettenis@ kevlo@ jmc@ phessler@
|
|
|
|
| |
ok jsg@
|
|
|
|
|
|
| |
From Christian Koenig
96800ba9e565ab752774cd88328f96aed28a1436 in linux 4.19.y/4.19.37
a66477b0efe511d98dde3e4aaeb189790e6f0a39 in mainline linux
|
|
|
|
|
|
|
|
|
|
| |
late, after we enable interrupts. If the interrupt pin used for inteldrm(4)
is shared with another device, we may end up being called before the actual
interrup handler is installed resulting in a null-pointer dereference.
Fix this by adding an explicit check that the interrupt handler function
pointer has been set.
ok matthieu@, jsg@
|
|
|
|
|
|
|
| |
in x_media_change(), return the errno from ieee80211_media_change() and
do the error check from x_init().
ok stsp@, jmatthew@, phessler@
|
|
|
|
|
|
|
| |
the controller has an i2c read operation that's almost exactly what we
want, except it only does 64 bytes at a time, so this is pretty simple.
ok dlg@
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
the hotplug code doesn't need to do the same. Also the hotplug
code only configured a single bus and did that before the proper
allocation ran, so there was no chance for hotplugged ppb(4)s to
have children busses.
ok kettenis@
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Reduce code clutter by removing the file name and line number output
from witness(4). Typically it is easy enough to locate offending locks
using the stack traces that are shown in lock order conflict reports.
Tricky cases can be tracked using sysctl kern.witness.locktrace=1 .
This patch additionally removes the witness(4) wrapper for mutexes.
Now each mutex implementation has to invoke the WITNESS_*() macros
in order to utilize the checker.
Discussed with and OK dlg@, OK mpi@
|
|
|
|
| |
ok kettenis@
|
|
|
|
|
| |
there. As sys/file.h does not have an include guard don't include it in
drm_linux.c which indirectly includes fs.h via drmP.h.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The marketing names in libdrm's amdgpu.ids are based on device id and
revision id. A single device id often maps to multiple marketing names
but the same codename so stick to codenames here. The marketing names
in amdgpu.ids also do not cover all the device ids amdgpu matches on.
Use the same codenames as amdgpu.
Polaris 20 and Polaris 30 as Polaris 10.
Polaris 21 as Polaris 11.
Polaris 22 as Vega M.
|
|
|
|
|
|
|
|
| |
- Override the default cache line size if it's set to zero
from Linux ath9k
ok stsp@, jmatthew@
|
|
|
|
| |
"locking against myself" panics.
|
|
|
|
|
|
| |
seen with the "intel" X driver with the new inteldrm kernel driver.
ok (and with help from) jsg@
|
|
|
|
|
|
| |
From Trigger Huang
b10cc08374728ea79555a1cd98f962b0f942e942 in linux 4.19.y/4.19.36
30f33126feca0fe16df9e9302ffc28a953e2eb37 in mainline linux
|
|
|
|
|
|
|
| |
drm softc.
Avoids uvm_fault() when firmware is missing and radeondrm is forcibly
detached. Reported by Mihai Popescu on misc@
|
|
|
|
|
|
|
| |
of bus numbers from the parent's bus extent. On detach, which can
happen with hotplug-able devices, we should free those busses.
ok kettenis@
|
|
|
|
|
|
| |
reading all 256 at a time was a nice idea, but meant page 0xa2 wasnt
appearing like it should. this follows what freebsd does more
closely too.
|
|
|
|
|
|
| |
some modules seem to need more time when waiting for bytes while here.
hrvoje popovski hit the endian issue
|
|
|
|
|
|
| |
conditional timeout_barrier(9).
OK kn@ dlg@
|
|
|
|
|
|
|
|
| |
myx doesn't allow i2c writes, so you can only read whatever page
the firmware is already pointing at on device 0xa0. if you try to
read another page it will return ENXIO.
tested on a 10G-PCIE-8A-R with an xfp module.
|
|
|
|
| |
i don't know how this didn't blow up before.
|
|
|
|
| |
unbreaks the build...
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
the list of commands is going to grow, but the thought of keeping
the list in debug code up to date with it just makes me feel tired.
this prints the command id number instead in the same format we
represent it in the header.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
linux 4.19.34.
Adds support for more Intel hardware:
Broxton/Apollo Lake (was is_preliminary in 4.4)
Amber Lake (another Kaby Lake refresh)
Gemini Lake
Coffee Lake
Whiskey Lake
Cannon Lake (though no hardware with Intel graphics ever shipped)
Ice Lake (alpha support, hardware not released)
This does not add support for new radeon hardware on the AMD side as
newer radeons have a different kernel driver (amdgpu).
Thanks to the OpenBSD Foundation for sponsoring this work, kettenis@ for
helping and a bunch of other developers for testing.
|
|
|
|
|
|
| |
full list of pci ids from sthen@
OK sthen@, jmatthew@, deraadt@
|
| |
|
|
|
|
|
|
| |
full list of pci ids from sthen@
OK sthen@, jmatthew@, deraadt@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
this relies on some firmware commands for accessing the i2c bus
that are not available until a relatively recent API version. our
nics using API 1.4 and 1.5 don't handle the command, but the API
1.7 nic we have is happy to talk to the module that is plugged into
it.
xl710 cards (the 40g ones with a qsfp+ connector) can be split up
into 4 functions that represent lanes on a single port. you can get
qsfp+ to 4x sfp+ cables so you can use the different lanes/functions
as completely independent interfaces. however, because each lane/
function is one port and therefore module, we need to serialise
access to the module by at least the port. this is to prevent
concurrent reads of different pages of the one module from stepping
on each other. i took the easy path and made a single ixlsff lock,
which is at least conservative.
|
|
|
|
|
|
|
|
|
| |
access to the ioctl is serialised by a per ifp rwlock so userland
reads of different pages in the same device address do not confuse
each other.
this was pretty straightforward because a lot of the plumbing for
accessing the i2c bus was already in place.
|
|
|
|
|
| |
Keeps stereo sound intact across suspend/resume cycles on the matebook x.
ok phessler@ deraadt@
|
|
|
|
|
|
|
| |
with gfx7/sea islands hardware. Fixes ring 2 test failure on
carrizo-l/mullins.
Problem found by kettenis@ in a different part of the drm 4.19 tree.
|