Age | Commit message (Collapse) | Author |
|
This is required by the generic loader code in newer versions of Mesa
even when we aren't building any nouveau drivers.
The way these headers are used on Linux is with a kernel version
and a libdrm version which are largely identical with the *_drm.h
headers always installed by libdrm when libdrm is built with autoconf.
In OpenBSD we have a single version of the _drm.h headers that
are shared by the kernel and userspace and have our own simple
Makefile for the libdrm build.
|
|
Move all legacy MAP_FOO values behind #ifndef _KERNEL and redefine
them to either be aliases for existing flags (e.g., MAP_COPY ->
MAP_PRIVATE) or 0.
Also, add MAP_OLDFOO defines (behind #ifndef _KERNEL) so the kernel
and kdump can remain compatible with current OpenBSD binaries.
ok deraadt
|
|
ok deraadt@
|
|
(we need to make them signed to spot controller overruns), and fix format
strings accordingly.
While there, make sure every runtime printf is prefixed by either the complete
target information, if available, or at least the driver name with the
proper instance number - supported systems with > 1 wdsc are quite common.
|
|
|
|
KASSERT it being > 0 before decrementing.
ok dlg@
|
|
to contain actually consumed space on truncation.
bootarg_list can be static again, it's not referenced from outside.
ok deraadt@
|
|
an interface. Two other operations are performed when issuing a
SIOCDIFADDR{_IN6,} ioctl: call the address hook and the per-driver
ioctl function.
Since carp(4) relies on an address hook to recalculate its hash, make
sure to call this hook when IFXF_NOINET6 is set or when the rdomain is
changed.
ok henning@, mikeb@
|
|
ok sf@
|
|
device detection if the port is still busy after our normal timeout.
based on a diff by chris@, based on a change in dragonflybsd
tested by Peter J Philipp
ok dlg@
|
|
width that isn't compatible with the alignment of the region:
OperationRegion (SATC, SystemMemory, 0xE008800A, 0x04)
Field (SATC, DWordAcc, NoLock, Preserve)
{
STCL, 16
}
DWordAcc means 4-byte access, but 0xE008800A is only 2-byte aligned.
Moreover, the region itself is 4 bytes long. From this I conclude
that 4-byte wide access to a 2-byte aligned address is really wanted
in cases like this.
ok deraadt@
|
|
From Alexandr Nedvedicky <alexandr ! nedvedicky at oracle ! com>. Thanks!
|
|
early during attach if it signals that the device isn't present.
Reduces the noise on machines where the AML provides an (incomplete)
description of the Embedded Controller but doesn't actually have one.
ok mlarkin@, deraadt@
|
|
|
|
Merged from FreeBSD's revision 206098.
ok beck@
|
|
is no link-local address assigned by default, which - by default, since
INET6 is in the GENERIC kernels - makes the machine and services on it
reachable. No such thing in IPv4 land.
since assigning an inet6 address manually or running rtsol(d) etc resets the
NOINET6 flag and causes the link-local to be assigned, this really is a noop
for all inet6 users with the exception of those ONLY using the default
link-local address. These needs to run "ifconfig <if> inet6 eui64" or put
the equivalent in hostname.if.
discussed at length with many, ok at least by krw todd benno sthen
|
|
must use the bus_space(9) API to access it instead of memcpy(9). Also make
sure we properly align access to fields that need more than byte alignment.
ok guenther@
|
|
Pointed out by Ivan Solonin.
ok henning mpi jca
|
|
suggested by sthen@
|
|
was empty then the first page allocation should sleep until it can get one.
ok tedu@
|
|
an untraced process but finds it blocking or ignoring it, just kill
the process instead of looping. It's undefined behavor in POSIX but
quite annoying when encountered in practice.
improvements from kettenis@
ok matthew@
|
|
ok deraadt@
|
|
From Egbert Eich
9e68a1156da093385f057b9e4576652203f1248e in ubuntu 3.8
7f1950fbb989e8fc5463b307e062b4529d51c862 in mainline linux
|
|
From Alex Deucher
eed35bff1fe05f3a32989ace86107a1402f18537 in ubuntu 3.8
8c79bae6a30f606b7a4e17c994bc5f72f8fdaf11 in mainline linux
|
|
From Quentin Casasnovas
2b9149f17e7135c31c9df1c80ab6d912c4265126 in ubuntu 3.8
74073c9dd29905645feb6dee03c144657a9844cd in mainline linux
|
|
Modern compiler toolchains are capable of optimizing even across
translation unit boundaries, so simply moving the memory clearing into
a separate function is not guaranteed to clear memory.
To avoid this, we take advantage of ELF weak symbol semantics, and
insert a call to an empty, weakly named function. The semantics of
calling this function aren't determinable until load time, so the
compiler and linker need to keep the memset() call.
There are still ways a toolchain might defeat this trick (e.g.,
optimistically expecting the weak symbol to not be overloaded, and
only calling memset() if it is; promoting weak symbols to strong
symbols at link-time when emitting a static binary because they won't
be interposed; implementing load-time optimizations). But at least
for the foreseeable future, these seem unlikely.
ok deraadt
|
|
|
|
ok syl@
|
|
this breaks when compiling a kernel with DEBUG defined for additional
printfs elsewhere. Instead of renaming the macro, undefine DEBUG
before the new definition to minimise the diff the linux.
|
|
ok miod@, dlg@
|
|
DP 1.2 compatible displays may report a 5.4Gbps maximum bandwidth which
the driver will treat as an invalid value and use 1.62Gbps instead. Fix
this by capping to 2.7Gbps for sinks reporting a 5.4Gbps max bw.
Also add a warning for reserved values.
From Imre Deak
d4eead50eb206b875f54f66cc0f6ec7d54122c28 in mainline linux
One of two backported commits to prevent a black screen
on a Lenovo IdeaPad Yoga 2 Pro as reported/debugged by Steven Wilson.
|
|
Use drm_dp_bw_code_to_link_rate insead. It's the same thing, but
supports DP_LINK_BW_5_4 and is also used by the other drivers.
From Paulo Zanoni
9fa5f6522e6eecb5ab20192a264a29ba4f2f4e85 in mainline linux
One of two backported commits to prevent a black screen
on a Lenovo IdeaPad Yoga 2 Pro as reported/debugged by Steven Wilson.
|
|
|
|
ok mpi@
|
|
FreeBSD did this years ago in revision 126086 as pointed out by
John-Mark Gurney on tech. Merge it and sync two occurrences.
ok krw@
|
|
'original' LUNA-88K.
|
|
|
|
ok miod@, dlg@, guenther@
|
|
from working.
|
|
|
|
read before unlocking. Believed to fix some spl problems on MP
that have had landry and tobaisu seeing red.
suggestion to use membar API from matthew@
ok matthew@ kettenis@
|
|
im sick of fixing this by hand on all my boxes while hacking on
other stuff and having it pollute my diffs.
no functional change.
|
|
without an intervening STRIOCRESCWD, release the current values instead
of the saved values, so as to effectively emulate a STRIOCRESCWD.
While here, make sure the fdc->fd_[cr]dir members are updated before
vrele()ing their old values, so that they can't be caught as dangling refs.
ok matthew@
|
|
ok gcc sha256
|
|
Program the uarts based on the io clock rate on these platforms.
ok jasper@ pirofti@ yasuoka@
|
|
|
|
Remaining battery test results on Lemote after 30m in suspend:
pci_dopm = 0: 82%, 68min
pci_dopm = 1: 86%, 81min
Suggested by deraadt@
Okay miod@, deraadt@
|
|
it introduces a regression with default routes & p2p interfaces.
Problem reported by naddy@
|
|
Pointed out by Jean-Philippe Ouellet.
|
|
If a user calls STRIOCGETCWD two or more times in a row without an
intervening STRIOCRESCWD, then the references held on fst->fd_{c,r}dir
would leak.
ok miod
|