| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
"locking against myself" panics.
|
|
|
|
|
|
| |
seen with the "intel" X driver with the new inteldrm kernel driver.
ok (and with help from) jsg@
|
|
|
|
|
| |
so clang's rule about "static inline" comes into play.
ok patrick
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
| |
Reported by Gary Zibrat
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
suspend on some machines. Back out until more known.
|
|
|
|
| |
ok patrick@
|
|
|
|
| |
ok deraadt
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
After each MSE, ensuire usbd_complete_transfer() is called for each
missed transfer, for which there's no transfer completion event. Fixes
crashes and deadlocks in upper layers caused by the missing
completion.
ok deraadt, patrick; help from mpi, patrick, gmlocker
|
|
|
|
|
|
| |
Based on FreeBSD r346028, this fixes ure(4) not detected after a reboot.
ok deraadt@
|
|
|
|
|
|
|
| |
the data read during polling may be junk
fixed with Petr Ročkai
ok deraadt, mpi, stsp
|
|
|
|
|
| |
Keeps stereo sound intact across suspend/resume cycles on the matebook x.
ok phessler@ deraadt@
|
|
|
|
|
|
| |
Allows playback to start automatically as soon as there's enough data,
even if the AUDIO_START ioctl is not called. This is mainly useful to
quickly test & debug low level drivers with simple shell commands.
|
|
|
|
|
|
|
| |
I found this chip in my Lenovo Thinkpad X1 (5th gen):
tpm0 at acpi0: TPM_ addr 0xfed40000/0x5000: device 0x001b15d1 rev 0x10
"Yes, please commit this" deraadt@. Thanks.
|
|
|
|
|
| |
This makes the code less bug prone as the "rare" underruns
conditions are handled by the main non-underrun code.
|
|
|
|
| |
ok deraadt@, jsg@
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
No behavior change as we don't call uaudio_pdata_copy() in situations
when bounce buffers may not be available.
|
|
|
|
|
| |
No behavior change. The new representation is equivalent but eases
detection of overflows and underflows.
|
| |
|
|
|
|
|
|
| |
Makes hibernate work with rootfs on built-in emmc storage.
Tested on King Jim Portabook.
ok deraadt@ kettenis@
|
|
|
|
|
|
|
|
| |
a 16-bit value, so we have to use letoh16() instead of letoh32().
Also properly cast it to signed, so that it can be sign-extended
properly.
ok stsp@
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Like the interrupt handler, the resume path needs to check the register to
update flags in order to propagate the hardware kill switch state, otherwise
the driver would still consider the switch to be off after resume even
though it may have changed while in S3.
Fix the resume path by simply applying the same idiom already found in
iwm_start_hw(). This will ensure seemless operation no matter which
combination of switch toggling and suspend/resume users will follow.
OK stsp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
With an UP and RUNNING interface, turning off the hardware kill switch
removes the RUNNING flag and powers down the device.
Iff still UP, switching it back would not reset the flag accordingly.
Fix this in analogy to sys/dev/pci/if_iwn.c revision 1.204 by scheduling
iwm_init() unconditionally on both hardware kill switch edges; it'll take
care of everything else.
Tested with
iwm0 at pci2 dev 0 function 0 "Intel Dual Band Wireless AC 7260" rev 0xbb,
msi iwm0: hw rev 0x140, fw ver 16.242414.0
OK deraadt stsp
|
|
|
|
|
|
|
|
| |
have changed. The clocks are not split into SRC, PRE_DIV, DIV and
CG anymore. There is only a single index for each clock and we
need to handle them as composite clocks internally.
ok kettenis@
|
|
|
|
| |
ok kettenis@
|
|
|
|
|
|
|
| |
use only one address and size cells. Also set the assigned clocks
and enable them.
ok kettenis@
|
|
|
|
|
|
| |
not separate nodes, but instead part of imxgpc(4).
ok kettenis@
|
|
|
|
| |
ror_*() functions. Also, the result doesn't actually change. ok deraadt@
|
| |
|