Age | Commit message (Collapse) | Author |
|
NetBSD.
ok kurt@, drahn@, miod@
|
|
APM_IOC_{SUSPEND,STANDBY}_REQ: This is to fix an issue with apm suspend
where a call to zzz suspended the machine immediately, not giving anyone
listening for apm events (other than apmd) a chance to deal with the
upcoming change. This hit X hard since the introduction of drm, since it
needs to have time to idle the 3d engine and otherwise get the device
into a recoverable state. Such things are needed until we support
modesetting in the kernel.
Now, instead of forcing a suspend, using ioctl sends out an event similar
to if you had put the lid down, giving all userland applications a
chance to reply.
tested by sthen@ and beck@, especial thanks to sthen for sitting there
while I tried to debug this remotely, I owe him beer.
Prompted by and ok deraadt@
|
|
as additional argument. This will allow intermediate layers between
scsi devices such as sd and scsi host adapters to take appropriate
action if necessary.
|
|
pmap_resident_count(). From NetBSD
|
|
|
|
|
|
ensure 'c' always has the correct size as the rest of the kernel
assumes. Thus prevent dd'ing causing a SCSI out-of-bounds error.
ok miod@
|
|
spotted the hard way by kettenis.
|
|
|
|
What happened was that the output of mkdep was fed to a sed expression
that trimmed a bit more than required and also failed to work when
attempting to do make depend with pcc.
Example:
genassym_c.o: /tmp/genassym.whatever ../../../../../sys/param.h \
was changed to:
assym.h: \
but what was intended was:
assym.h: ../../../../../sys/param.h \
For the pcc -M output things were a bit different and after the make
depend the genassym entry would still remain and make would fail. This
affected all platforms except amd64 and sgi.
Okay miod@.
|
|
will be necessary for rawkbd mode.
|
|
WSDISPLAY_COMPAT_RAWKBD support.
|
|
nevertheless provide them; cope with zero values.
|
|
|
|
in PIO mode.
|
|
|
|
computing it ourselves.
|
|
cleared on attach, from the individual drivers to the common frame buffer code;
the latter will decide based on the prom font metrics and the prom console
window position, whenever possible.
This removes the need for the console window position to be hardcoded in
the p9100 driver, and will no longer require a screen clear on a vigra
VS-12 in high resolution mode.
|
|
|
|
|
|
|
|
|
|
|
|
but I don't know what initialization sequence is needed on the p9000...
|
|
fail anyway since stdout is not a frame buffer), and force a complete
ramdac initialization - access to several of the control registers spin
otherwise.
|
|
deprecated WSDISPLAY_TYPE_SUN24; X11 knows about them since several releases
already.
|
|
|
|
|
|
is magic on a 32-bit platform, maybe you shouldn't do kernel programming.
|
|
the code can do up to 32 bit without serious changes, but I'm lazy).
|
|
|
|
draw the inverted cursor.
|
|
to be in tcx.4), which require a font swap and thus clearing the screen at
attach time if console. Add the necessary code for this.
|
|
whenever possible to speed things up. Also, do not map the control space
anymore and access in through physical addresses, as done for the
blitter and stipple spaces; saves another 4MB of KVM on S24.
|
|
Makes it noticeably faster, especially when scrolling on console.
Tested on SS4 (tcx) and SS5 (S24) in 1152x900 and 1024x768 modes.
|
|
and through mmap; also shrink the softc of about 120 bytes by not keeping a
copy of all prom regions when only two of them are needed.
While there, map THC at the preferred address on S24 flavours, and do not
reprogram the control bits on S24 at attach time (since the prom has already
done this for us).
Tested on ss4 and ss5+S24.
|
|
out by theo
|
|
definitions. ok millert@. tested by jsg@
|
|
licenses as well. Thanks!
"Groovy" deraadt
|
|
from the individual drivers now that ether_ioctl() handles this.
Shrinks the i386 kernels by..
RAMDISK - 2176 bytes
RAMDISKB - 1504 bytes
RAMDISKC - 736 bytes
Tested by naddy@/okan@/sthen@/brad@/todd@/jmc@ and lots of users.
Build tested on almost all archs by todd@/brad@
ok naddy@
|
|
add a new arg to the backend so it can tell pool to slow down. when we get
this flag, yield *after* putting the page in the pool's free list. whatever
we do, don't let the thread sleep.
this makes things better by still letting the thread run when a huge pf
request comes in, but without artificially increasing pressure on the backend
by eating pages without feeding them forward.
ok deraadt
|
|
protected by __ISO_C_VISIBLE > 1999. With a little help from miod@.
ok miod@
|
|
which are uniform for the profclock on each cpu in a SMP system (but using
a different seed for each cpu). on all cpus, avoid seeding with a value out
of the [0, 2^31-1] range (since that is not stable)
ok kettenis drahn
|
|
This should take care of the simpler ones (i.e., timeout values of
integer multiples of hz).
ok krw@, art@
|
|
now the offset into the first mbuf of the target chain before copying
the source data over. From FreeBSD.
Convert drivers' use of m_devget(). Mostly from thib@.
Update mbuf(9) man page.
ok claudio@, thib@
|
|
has never been performance sensitive.
Running on all platforms, discussed with millert and kettenis, ok toby
|
|
anything special to prod a cpu to leave the idle loop in signotify.
powerpc, i386, amd64 and sparc64 will follow soon so that everyone has
the same interface to wake an idling cpu.
|
|
For now, sparc64 is arbitrarily set to 256 (only architecture that didn't have
a practical limit in the code on the number of cpus).
|
|
ok miod@
|
|
Move calling ether_ioctl() from the top of the ioctl function, which
at the moment does absolutely nothing, to the default switch case.
Thus allowing drivers to define their own ioctl handlers and then
falling back on ether_ioctl(). The only functional change this results
in at the moment is having all Ethernet drivers returning the proper
errno of ENOTTY instead of EINVAL/ENXIO when encountering unknown
ioctl's.
Shrinks the i386 kernels by..
RAMDISK - 1024 bytes
RAMDISKB - 1120 bytes
RAMDISKC - 832 bytes
Tested by martin@/jsing@/todd@/brad@
Build tested on almost all archs by todd@/brad@
ok jsing@
|