Commit Graph

228753 Commits

Author SHA1 Message Date
dholland
88b56804ff Drop the old discard/trim ioctls from wd.c. 2014-07-25 08:34:27 +00:00
dholland
d8d7aab05e Update set lists for libc bump and new man pages. 2014-07-25 08:32:21 +00:00
dholland
d35912857e Bump libc minor version for new syscalls. 2014-07-25 08:31:06 +00:00
dholland
d0352e761c Add userlevel manifestations of posix_fallocate and fdiscard, in
unistd.h and libc, and add a man page.

Allow wiggle room in the man page for implementations of fallocate
that either (a) don't fully unwind on failure, leaving new blocks
allocated without changing the file size, or (b) create only in-memory
transient reservations that disappear when crashing or rebooting.

Also, add crossreference to fdiscard from ftruncate(2), and remove the
old BUGS entry from there that called for a generalized version that
allows discarding ranges of a file: that's what fdiscard is.
2014-07-25 08:30:47 +00:00
dholland
53d9b9366b typo in comment 2014-07-25 08:30:10 +00:00
dholland
0facca34ba Regen for fdiscard and posix_fallocate. 2014-07-25 08:27:35 +00:00
dholland
738b7a54cf Add fdiscard and posix_fallocate syscalls. 2014-07-25 08:25:47 +00:00
dholland
5366fdc4a7 Switch the FFS code for discarding free blocks to use VOP_FDISCARD. 2014-07-25 08:24:31 +00:00
dholland
890e036b3c Implement d_discard for dk. This closes PR 47940. 2014-07-25 08:23:56 +00:00
dholland
7c5b45490e Implement d_discard for wd. 2014-07-25 08:22:08 +00:00
dholland
05d075b3ae Add VOP_FALLOCATE and VOP_FDISCARD to every vnode ops table I can
find.

The filesystem ones all call genfs_eopnotsupp - right now I am only
implementing the plumbing and we can implement fallocate and/or
fdiscard for files later.

The device ones call spec_fallocate (which is also genfs_eopnotsupp)
and spec_fdiscard, which dispatches to the device-level op.

The fifo ones all call vn_fifo_bypass, which also ends up being
EOPNOTSUPP.
2014-07-25 08:20:51 +00:00
dholland
2b17a74d70 Implement spec_fdiscard() using bdev_discard() and cdev_discard().
Also define spec_fallocate() to genfs_eopnotsupp().
2014-07-25 08:19:19 +00:00
dholland
0233554e35 Regen for VOP_FALLOCATE/VOP_FDISCARD. 2014-07-25 08:18:50 +00:00
dholland
842f3a34a8 Add VOP_FALLOCATE and VOP_FDISCARD. 2014-07-25 08:16:47 +00:00
dholland
f9228f4225 Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
2014-07-25 08:10:31 +00:00
dholland
8c70ef39af Add d_discard to all struct bdevsw instances I could find.
I've set them all to nodiscard. Some of them (wd, dk, vnd, ld,
raidframe, maybe cgd) should be implemented for real.
2014-07-25 08:02:18 +00:00
dholland
47cbdc3670 Add d_discard to struct bdevsw/cdevsw, and the plumbing to access it.
Unfortunately we need d_discard in both since we need to be able to
discard from both the block and character forms of disks. I'm
increasingly thinking it would be better to restructure the ops
dispatching so each type of device (ttys, disks, tapes, etc.) has its
own function table. Then we wouldn't need to change every tty driver
to add a disk op.
2014-07-25 07:56:14 +00:00
hkenken
2868f5bc92 Add support i.MX50x
* i.MX50 series is e-ink e-reader processor.
2014-07-25 07:49:56 +00:00
ozaki-r
011b056d61 Use IFADDR_FOREACH for iterating if_addrlist of ifnet 2014-07-25 07:12:55 +00:00
hkenken
ff5a62646a Add i2c driver for i.MX. 2014-07-25 07:07:47 +00:00
hkenken
3187e4c62f Delete unused variables for new gcc. 2014-07-25 06:36:16 +00:00
ozaki-r
de94e6c564 Unbreak the build of pf 2014-07-25 04:09:58 +00:00
mrg
1e4a2ee3ed introduce a new pci_drvname(3) to libpci. implement it in the backend
via PCI_IOC_DRVNAME.

update manual and set lists (and remove a couple of doubled entries.)o

this will be used in libpciaccess() to implement the has_kernel_driver()
method.
2014-07-25 01:38:26 +00:00
msaitoh
614e96cc1b No functional change:
- move NVM related values to the bottom.
- sort in register's address.
2014-07-25 01:05:00 +00:00
joerg
9d3673af91 Use volatile when writing to NULL. 2014-07-24 23:30:38 +00:00
joerg
4a4dc674c9 #if 0 copyout_le32 and friends, they are currently unused. 2014-07-24 23:29:02 +00:00
joerg
6bd7e0ed8c #if 0 unused copyin_halfword. 2014-07-24 23:27:25 +00:00
joerg
5620027c6c Add some NOR_VERBOSE ifdefs for static functions only used in that case. 2014-07-24 23:25:53 +00:00
joerg
0db678e818 Avoid playing games with format strings, just use a second printf. 2014-07-24 22:59:01 +00:00
alnsn
9f32be6c56 For P[X+0] load, don't emit wrap around check and copy X intead of emitting X+0. 2014-07-24 22:54:38 +00:00
joerg
3ec05b626b Fix size argument of memcmp. 2014-07-24 22:54:10 +00:00
nonaka
9d0bb9aabe regen. 2014-07-24 22:37:49 +00:00
nonaka
113a3a0c59 Added ELECOM WDC-150SU2M. 2014-07-24 22:37:26 +00:00
riastradh
0f976a8e0b Tweak i915drmkms_detach to be more robust. 2014-07-24 22:13:23 +00:00
riastradh
b4b1c190b7 Make `#include "intelfb.h"' NetBSD-specific. 2014-07-24 22:00:02 +00:00
riastradh
a728921c74 Remove leftover debugging kludge. 2014-07-24 21:45:03 +00:00
riastradh
14ce3bce83 Make ddb enter/exit work while X is running with i915drmkms. 2014-07-24 21:37:35 +00:00
riastradh
37240c7862 Expose drm fb helpers for ddb enter/exit. 2014-07-24 21:36:39 +00:00
riastradh
b41195f82b Add enable/disable polling hooks to genfb_ops. 2014-07-24 21:35:12 +00:00
riastradh
01b7eb4932 Fix WSDISPLAYIO_GET_BUSID on new intelfb(4).
Need to pass the PCI device, not one of its children (which intelfb
is), to wsdisplayio_busid_pci.

Fixes starting X.
2014-07-24 21:28:44 +00:00
wiz
99697e5b89 Fix typos and improve grammar and punctuation. 2014-07-24 21:22:29 +00:00
wiz
468afb62f5 Sort SEE ALSO. Use .An. Bump date. 2014-07-24 21:21:55 +00:00
riastradh
32189458a8 Rework Intel framebuffer attachment.
Turns out genfb_softc must be at the start of its own device_private,
so we can't have it in the middle of a structure, and certainly can't
have potentially multiple genfbs per graphics device.  Failing to do
this is why entering ddb didn't work with an i915drmkms console.

Instead of putting a genfb_softc into each drm_fb_helper, put a
device_t into each drm_fb_helper and create a new intelfb(4) device
for each Intel framebuffer.  This will be more flexible, too, in case
we want accelerated framebuffers later on.  (XXX Need to adapt the
radeon code, which I'm disabling until that happens to avoid breaking
the build.)

While here, defer disabling VGA, vga_cndetach, and genfb_attach until
we're actually ready to do them all together along with the mode
switch.  This should reduce the amount of time during which the
screen is blanked, in case it hangs.
2014-07-24 21:18:40 +00:00
alnsn
beba90ca4b Use .Sy for 'Just-In-Time', add a reference to bpfjit(4). 2014-07-24 21:10:26 +00:00
alnsn
6021eb407c man 4 bpfjit 2014-07-24 21:08:50 +00:00
plunky
f8dcb1ea24 add p++, and move it and cxxcom to comp-cxx-bin 2014-07-24 21:02:55 +00:00
plunky
15b5799821 make p++ optional, on MKCXX 2014-07-24 20:55:45 +00:00
plunky
eea34d0414 add PCC libexec/cxxcom 2014-07-24 20:31:01 +00:00
plunky
95e44a9f0c add p++ tool, for PCC 2014-07-24 20:29:19 +00:00
plunky
f790188161 update build framework for import of pcc-20140706 2014-07-24 20:20:48 +00:00