Commit Graph

100719 Commits

Author SHA1 Message Date
dyoung
0d8ed264a1 For use in subsequent commits, add a 64-bit generation number to
struct mount, and add prototypes for vfs_sync_all() and for
vfs_unmount_forceone().
2009-06-26 16:55:46 +00:00
christos
2ee7096547 magic symlink cleanup:
- use size_t for len
- don't call strlen multiple times in macro
- add gid
- off by one in bounds calculation
2009-06-26 15:49:03 +00:00
dyoung
7145e9fc73 A lot of good it does, but let this build with 'no options INET'. 2009-06-26 00:24:18 +00:00
dyoung
72ca52eed5 Use &zn->ni instead of (struct ieee80211_node *)zn because it is
concise and safe.
2009-06-26 00:15:23 +00:00
dyoung
c3a668892b Compilable, untested fix to zyd(4) lossage reported by Matthias-Christian
Ott: every ioctl but SIOCSIFFLAGS fails with ENXIO (Device not
configured).  Let ioctls complete even if initialization is not
complete (!sc->attached).  Do exit immediately from zyd_newstate
with ENXIO if !sc->attached, however:  zyd_newstate tries to call
some USB routines for which it is probably not ready.
2009-06-26 00:14:09 +00:00
dyoung
ed0e4d4d36 Expand more macros from usb_port.h. 2009-06-26 00:06:27 +00:00
dyoung
c97ab81b59 Expand several definitions from usb_port.h. 2009-06-26 00:01:25 +00:00
mjacob
ad7d727f78 Update ISP driver to latest and greatest. Includes support for the 8Gb part. 2009-06-25 23:44:01 +00:00
mjacob
e9c28376ea Update 2400 firmware to latest (to match 2500 firmware) 2009-06-25 23:42:40 +00:00
christos
1e42098381 Only print debugging messages about policy on error. 2009-06-25 17:39:51 +00:00
reinoud
5e29d1224f Rewrite of udf_on_rootpath(), and vop_rename() code that calls it, after the
UFS way. The tree walking is now done the same and the code hasn't locked up
on examples that made it lockup before.
2009-06-25 17:16:33 +00:00
mrg
4c99008150 don't include pcidevs_data.h. 2009-06-24 19:47:15 +00:00
reinoud
706de0e547 Commit first stage of free-space accounting. It is estimating the underlimit
of free blocks on the device and when free blocks are getting tight it tries
to readjust/recalculate that value by syncing the FS.

Second stage will be resizing the data/metadata partitions.
2009-06-24 17:09:13 +00:00
mrg
c33a588610 convert a DRM_ERROR() to DRM_DEBUG(). its failure is not fatal
and it tends to trigger on almost all cards.
2009-06-24 08:09:26 +00:00
elad
55f182207a Wow... too much Python.
Fix DIAGNOSTIC build breakage: print -> printf.

Pointed out by Kurt Schreiner on current-users@:

    http://mail-index.netbsd.org/current-users/2009/06/23/msg009815.html
2009-06-23 23:04:11 +00:00
reinoud
c2fd371267 Bump the NetBSD kernel UDF id to version 0.5 2009-06-23 20:13:37 +00:00
reinoud
75bab0f5ee Renaming in UDF was already possible but directories could only be renamed in
the same directory.

This patch finally allows a directory to be moved between parent directories.
2009-06-23 20:09:07 +00:00
elad
870920260d Move the implementation of vaccess() to genfs_can_access(), in line with
the other routines of the same spirit.

Adjust file-system code to use it.

Keep vaccess() for KPI compatibility and to keep element of least
surprise. A "diagnostic" message warning that vaccess() is deprecated will
be printed when it's used (obviously, only in DIAGNOSTIC kernels).

No objections on tech-kern@:

	http://mail-index.netbsd.org/tech-kern/2009/06/21/msg005310.html
2009-06-23 19:36:38 +00:00
dyoung
6935f27815 Add drvctl(4). 2009-06-23 17:06:15 +00:00
christos
e7604a3d54 PR/41629: Kouji Matsui: Fixed identical ESS1878 on Fujitsu FMV-5100 NC/S by PnPBIOS 2009-06-23 15:00:18 +00:00
njoly
de2e7a9c8e sched_getaffinity(2) update:
- dynamically calculate the cpu mask size,
- return it upon success,
- fix generated cpu mask.
2009-06-23 13:18:59 +00:00
mrg
8ee58c85df add a commented out section for nouveau driver.
(it's very far from being compileable.)
2009-06-23 04:42:58 +00:00
mrg
eae636e445 add a bunch of fixes mostly from rafal@.
this fixes the build for all the other drm modules.

use pci_find_device() to kill the one XXX rafal left.
2009-06-23 04:42:01 +00:00
njoly
0cef178686 Fix compilation with SMB_*_DEBUG options. 2009-06-22 21:13:50 +00:00
mrg
de36815874 add a couple of missing files. pointed out by tron. 2009-06-22 15:34:53 +00:00
tsutsui
7b14dcf78f Enable ddb(4) for sparc GENERIC-like kernels.
Discussed on port-sparc@.
2009-06-22 14:57:52 +00:00
tron
45353de023 Fix modules build after update of drm(4). 2009-06-22 13:13:08 +00:00
mrg
f8e80dd3fa remove the old drm sources. 2009-06-21 20:15:47 +00:00
mrg
c7c2933c33 make external drm the default. 2009-06-21 20:15:26 +00:00
jakllsch
5a08fb2589 Use PRO_PS and PRO_PCS correctly.
From Wolfgang Stukenbrock as part of kern/41579.

While here, remove a line of whitespace, and add an else case to
the ATAPI command length toggle.
2009-06-21 14:15:38 +00:00
jakllsch
23eef70a5f Move call of sd_set_properties() to end of sd_get_parms(), rather than
sdattach().  This allows DIOCGDISKINFO to do the right thing even when
the media has changed.  Note that drvctl -p will only DTRT if disk has
been opened since the most recent media chenged.
2009-06-21 14:06:49 +00:00
dyoung
59d9a6b60c unifdef -U__DragonFlyBSD__ -U__FreeBSD__ -D__NetBSD__.
XXX Compiles, but untested.
2009-06-20 20:18:32 +00:00
mrg
162717ffd2 add a workaround for drm:
for device mmap()'s, if the D_NEGOFFSAFE flag is set, do not check
if the offset is negative.

this should go away with the test itself when all drivers are audited
and checked to not fail with negative offsets.
2009-06-20 19:24:27 +00:00
christos
8d20d2e953 Follow exactly the recommendation of draft-ietf-tcpm-tcpsecure-11.txt:
Don't check gainst the last ack received, but the expected sequence number.
This makes RST handling independent of delayed ACK. From Joanne M Mikkelson.
2009-06-20 17:29:31 +00:00
cegger
861d7b5f02 make this build with DEBUG_MEMLOAD in all combinations of 32bit, 32bit PAE and 64bit 2009-06-20 13:10:14 +00:00
cegger
4765113ada Return type of cpu_number(9) is cpuid_t which is effectively unsigned long.
So cast return type to unsigned long.
Fixes build for alpha GENERIC kernel.
2009-06-20 11:10:40 +00:00
cegger
5bb3bd9d01 sprintf -> snprintf. Wrap long lines. 2009-06-20 10:24:28 +00:00
cegger
f978dd86b2 buidfix: change dm_target_snapshot_orig_init() to match prototype. 2009-06-20 09:57:26 +00:00
cegger
ffb0a63a57 buildfix: don't redefine MIN and MAX. They are defined in <sys/param.h>. 2009-06-20 09:40:52 +00:00
cegger
5fbf0e67ec use M_ZERO, no need for memset.
Ansify kvm86_init function definition.
2009-06-20 08:31:37 +00:00
mrg
44d76def57 some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)

no functional changes intended.
2009-06-20 01:07:09 +00:00
christos
f79533f3b5 MIN and MAX could be used with constant predicates, and it does not matter
if they are, so make lint shut up.
2009-06-19 15:25:16 +00:00
christos
bac9fc5767 don't use the gcc-specific macros if lint. 2009-06-19 15:24:17 +00:00
mrg
8df00d72b3 add r600_cp.c. 2009-06-19 03:53:24 +00:00
mrg
6fa8682e45 add a freshly generated drm_pciids.h 2009-06-19 03:52:20 +00:00
mrg
50fcbdf26f merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko
<arto.huusko@pp2.inet.fi> and FUKAUMI Naoki <fun@naobsd.org>.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch.  it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.


from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

  - drm_scatter maps COHERENT memory
  - drm_drawable: drawable handle allocation is done
    inside lock
  - drm_memory: when mapping "agp" memory, store offset
    of mapped area, so that new requests to same offset
    return the same area instead of trying to remap
    and fail
  - drm_vm: use bus_space_mmap for frame buffer and registers

  - r600_cp.c: ioremapfree allocated gart range
  - radeon_cp.c: use mtsleep
  - some memset calls I had added had their args swapped,
    and no memory was cleared
2009-06-19 03:50:03 +00:00
mrg
57cc1d9fad import the missing file from mesa-drm at git change
85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
2009-06-19 03:38:39 +00:00
mrg
d7792ba7fe import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c. 2009-06-19 03:22:23 +00:00
mrg
bf40ad8b96 port the MOSCHIP MCS7703 driver from openbsd, based on changes between
openbsd uvscom and netbsd uvscom as a guide.

XXX: it only attaches one of the two ucom's on this device currently.

XXX: needs moscom.4.
2009-06-19 01:16:23 +00:00
mrg
a0e195499c regenerate for new MOSCHIP devices. 2009-06-19 01:15:02 +00:00