Commit Graph

97791 Commits

Author SHA1 Message Date
joerg
9a364d2ed3 Split ffs_freefile into a frontend for normal cylinder group and for
snapshot use. Adjust ffs_blkfree_common to get the fs instance passed
in, the original commit didn't account blocks in the snapshots
correctly. Assert that ffs_blkfree is used with the primary fs instance
and that ffs_checkfreefile is only used for snapshots. Move the bdwrite
from ffs_blkfree_common into the caller for symmetry. This creates a
redundant write of unmodified data for ffs_blkfree_snap if a double free
of a block happens.

Reviewed and tested by hannken@.
2008-12-06 20:05:55 +00:00
reinoud
ab146a4768 UDF_SHED_FREE state is now also handled by the state machine, so DO signal it.
Free'd up ecclines can now far more quicker be recycled.
2008-12-06 14:02:08 +00:00
cliff
41bfa2c41d add gemini pseudo-nic and support code. 2008-12-06 05:22:39 +00:00
njoly
14e966b9e0 Regen for getres{uid,gid} syscalls. 2008-12-05 23:31:54 +00:00
njoly
533a52241a Add getres{uid,gid} syscalls. 2008-12-05 23:30:19 +00:00
ad
e91b9bcc27 Make the fake ELF object work with gdb.
- Output a .bss section and make all the symbols relative to it, instead
  of making them absolute.
- Output a single load section, no need for two.

'gdb /dev/ksyms' still doesn't work because ksyms doesn't do mmap yet.
2008-12-05 21:38:10 +00:00
dyoung
20baa33fe2 In wddetach(), avoid a crash by destroying the callout sc_restart_ch. 2008-12-05 18:20:19 +00:00
reinoud
9b08c3c516 Two fold commit:
1) Enhance write speed significantly on RMW media like CD-RW, DVD-RW but also
on the DVD+RW and all other ECC blocked media. Significant speedups of access
to the device for say compilation on the DVD. Streaming copy is also still at
maximum speed though vast amounts of directory copy work can show side effects
that appear it to slow down but are actually logical when you consider that
most small files are embedded into the descriptors itself.

2) explicit wait for the created RMW thread to spinup
2008-12-05 13:19:42 +00:00
isaki
3cffa23a3e Use TAILQ_* macros. 2008-12-05 13:14:42 +00:00
ad
0ff35ddc5a - Fix a bug in amd64 rw_tryenter() where it could return failure even after
acquiring a lock, if aligned on a 4GB boundary.

- Microoptimize more.
2008-12-05 13:08:11 +00:00
ad
3c9eb3fb0f zfs needs block devices too, for zvol. 2008-12-05 13:06:50 +00:00
ad
49e50a21d6 PR kern/40110: null, overlay and umap modules loading -> panic (layerfs symbols not there)
Add a layerfs module.
2008-12-05 13:05:37 +00:00
ad
8ff4eb83a8 Back out revision 1.35 which is no longer necessary and causes the system
to try autounloading modules perpetually.
2008-12-05 12:55:09 +00:00
ad
6efc20038a PR kern/40110: null, overlay and umap modules loading -> panic (layerfs symbols not there) 2008-12-05 12:51:17 +00:00
jdc
5c7dd34e28 Add wscons/vcons support for bw2 (sbus and P4). 2008-12-05 11:52:42 +00:00
tsutsui
48640c6ca2 Wrap long lines. 2008-12-05 11:17:38 +00:00
he
3e2feea4e5 Ksyms are optional, so make the call to ksyms_init() dependent
on the same conditionals which are defined in sys/conf/files.
2008-12-04 23:18:13 +00:00
macallan
68e46d4066 actually call cpu_model_init()
This might be enough to get 601-based boxes going
2008-12-04 23:17:47 +00:00
jym
bf8f00a835 Clean up code. No functional changes intended.
Reviewed by bouyer@.
2008-12-04 20:56:57 +00:00
alc
0976fc9588 Fix regression introducted by the previous commit.
i915 and G33 Intel chipset family need special handling when writing an entry
to the GTT.

reported by: <tnn> [0]
tested by: <tnn>

[0]: http://mail-index.netbsd.org/tech-x11/2008/12/03/msg000276.html
2008-12-04 19:07:35 +00:00
cegger
9db965667a Fix the fix: Only AMD K8 Rev-G on AM2 sockets are impacted. 2008-12-04 18:54:24 +00:00
cegger
72f1a5aa7a On AMD K8 CPUs with Socket AM2, sensor normalization is off by 21C degree.
Adjust temperature calculation. This should fix strange temperatures on AMD K8
CPUs reported by many people.
2008-12-04 18:45:04 +00:00
tsutsui
f345c7c20a Don't pass uint8_t values to le16toh() in fxp_rx_hwcksum().
fxp(4)'s RX hwcksum results weren't used at all on big endian machines.

Checked by i82550 and vmstat -ev on macppc GENERIC kernel with
options INET_CSUM_COUNTERS,TCP_CSUM_COUNTERS,UDP_CSUM_COUNTERS.
2008-12-04 16:40:47 +00:00
tsutsui
0ef29d0844 Add a missed htole32() on the previous ip4csum-tx bug workaround. 2008-12-04 16:32:34 +00:00
tsutsui
2377d7c38d Sort Tx/Rx macro in previous. 2008-12-04 15:22:01 +00:00
ad
20d9c21a59 PR kern/40099 device_t/softc split broke cac(4)/ld(4): panic: iostat_unbusy 2008-12-04 11:48:14 +00:00
cliff
54c2458e25 avoid initializing controller stuff twice by supressing SLAVE from doing so 2008-12-04 00:38:07 +00:00
cliff
9974ce742c remove old debug stuff, including Debugger() call that was not #ifdef DDB 2008-12-04 00:36:33 +00:00
tsutsui
69a8a901bb Fix typo in comment. 2008-12-03 15:36:11 +00:00
tsutsui
540babdae2 Add a workaround for hardware ip4csum-tx bug and enable it.
Confirmed on i82550 rev 12 and UDP fragment packets by ttcp(1).
2008-12-03 15:34:38 +00:00
christos
579a92f63b PR/40097: bouyer@antioche.lip6.fr: MODULAR tries to unload non-module subsystems
Don't try to unload built-in modules, and if a module is busy don't retry
immediately.
2008-12-03 15:15:01 +00:00
pooka
4b18ba9da3 nfsd_use_loan: int -> bool 2008-12-03 14:56:05 +00:00
pooka
807cdbb61f uvm_loanuobjpages(): "nfsread" -> "loanuopg" in tsleep wmesg 2008-12-03 14:46:24 +00:00
tsutsui
e6ada93fc6 Call BUS_DMASYNC_PREREAD more strictly on polling DMA descriptors. 2008-12-03 14:21:15 +00:00
tsutsui
e4ff32d44c Add RCS Id. 2008-12-03 13:55:20 +00:00
ad
dc5f414733 PR port-amd64/40091 compat_linux32 module loading = panic due to missing syms 2008-12-03 12:51:11 +00:00
ad
11701b3bf7 Add a couple of sysctls:
kern.module.autoload = 1
kern.module.verbose = 0
2008-12-03 12:14:11 +00:00
ad
7c08cd2bc7 Don't abort pageidlezero unless a realtime thread wants to run. 2008-12-03 12:04:59 +00:00
ad
7a2060a7f5 Make adjustment of uvm_extrapages atomic since it's done without a lock.
XXX This is still a hack.
2008-12-03 11:43:51 +00:00
ad
bce9119307 Don't abort pageidlezero unless a realtime thread wants to run. 2008-12-03 11:40:17 +00:00
ad
6cddbf0ca5 Correct error messages added in revision 1.32. In part from drochner@. 2008-12-03 11:23:15 +00:00
ad
181a429e5d Silence awk error. 2008-12-03 10:54:27 +00:00
uwe
32d2d9a6bb Defining another variable after multiline initializer for a previous
one in the same definition is very confusing visually.  Change order.
2008-12-02 20:48:24 +00:00
uwe
f79bc3126f Spell "gray scale" and "mono chrome" without the space. 2008-12-02 20:44:43 +00:00
uwe
3fb438b2cf hd64461video_set_display_mode_lcdc - expressing screen widths in hex
hardly helps readbility.  Express them in terms on 640*x or 640/x.
2008-12-02 20:39:36 +00:00
ad
1e550c311b Adjust RESCHED_ values for existing code. 2008-12-02 18:02:29 +00:00
ad
7ad98abc71 - Wrap sys/cpu.h contents in _LOCORE.
- Add a RESCHED_LAZY flag and use instead of zero.
2008-12-02 17:57:32 +00:00
ad
277ec70b63 Remove unused functions. 2008-12-02 17:56:06 +00:00
uwe
b523b8ffed hd64461video_info: fix pasto, correctly report 4-bit grayscale in LDR2. 2008-12-02 16:39:47 +00:00
sketch
8f51fb3d31 Fix '||' vs '&&' mix-up from when ich9 support was added. Fixes nasty
EEPROM-trashing bug on ich8 and ich9 chipsets as described in

  http://mail-index.netbsd.org/current-users/2008/12/02/msg006435.html

caused by setting the wrong type of EEPROM.
2008-12-02 15:30:04 +00:00