Commit Graph

70192 Commits

Author SHA1 Message Date
uwe 8333a3f671 Comment out RTC_OFFSET as now kernel pays attention to timezone
information passed by hpcboot.exe.
2004-03-23 03:48:39 +00:00
uwe 279286c1ad Pass the symbol table to the new kernel. /dev/ksyms now works after reboot. 2004-03-23 03:39:11 +00:00
uwe 7565621829 Set rtc_offset from bootinfo passed by hpcboot.exe unless overridden
with option RTC_OFFSET.  From hpcmips.
2004-03-23 03:36:32 +00:00
oster bceb7a2778 bufpool must be accessed at splbio(). 2004-03-23 02:34:10 +00:00
martin dfd6258259 Replace intrcnts by evcnts. XXX - needs slight tweaking for MULTIPROCESSOR. 2004-03-23 00:17:12 +00:00
uwe c1591b3e77 We cannot rely on bootinfo to remain valid after the 2nd stage boot
code has copied the new kernel in place, so pass a copy of bootinfo
to the new kernel via "page tags".

Restructure the code to fill "page tags" to make it more generic and
more natural to use (especially in anticipation of ksyms support).
2004-03-22 23:10:55 +00:00
oster 7e8ad96008 If the DAG failed, need to make sure we wipe the dagList structures too. 2004-03-22 20:28:57 +00:00
bouyer 35decc6ed6 Fix disclaimer in my copyright. Pointed out by Thomas Klausner. 2004-03-22 19:23:08 +00:00
bjh21 0fada96f70 Move my copyright notice to the 3-clause UCB licence. 2004-03-22 18:36:14 +00:00
matt 3a04cc5c7f Update my copyright to not include advertising clause. 2004-03-22 18:02:12 +00:00
matt 662696681b Remove my copyright and add me to the TNF copyright. 2004-03-22 17:56:30 +00:00
tls 14cd9beeae Don't use BUFQ_FCFS. It degrades performance both for "smart" (Mylex
ExtremeRAID with NV cache) and "dumb" (3ware 6410) ld providers.

Instead, use the default buffer queue policy.

With the 3ware adapter, using the read priority strategy instead of FCFS,
for three extractions of pkgsrc, took 329 seconds instead of 331 -- but
with a dramatic improvement in perceived system response (latency for
I/O outside the main stream).

With the Mylex adapter, the improvement was dramatic: using read priority
instead of FCFS yielded an improvement from 381 seconds to 135 seconds!
There was a less-noticeable improvement in perceived latency as well.

The other disk drivers currently hard-wired to FCFS or another policy
should probably be changed as well.
2004-03-22 17:30:33 +00:00
jdolecek 865a0b1787 align Extended file attributes defines 2004-03-22 16:42:06 +00:00
jdolecek 2c39ad3ea5 remove apparently meaningless part of one debug printf insmbfs_lookup() 2004-03-22 16:40:48 +00:00
jdolecek d8d0d9d81f g/c redundant debug printf 2004-03-22 16:39:30 +00:00
tls 05e1bf3ec9 MAXBSIZE->MAXPHYS -- this mysteriously broke all *kinds* of stuff when
MAXBSIZE had been reduced by the user (e.g. transfers from umass disks).
2004-03-22 14:55:42 +00:00
pk b744961066 Leverage the PROM's ability to identify the on-board location of a
physical memory address.
2004-03-22 12:37:43 +00:00
nakayama 83f4b465c2 Truncate values to 32-bit, not 40-bit. 2004-03-22 12:28:02 +00:00
nakayama 3a065cad6a Eliminate cast 64-bit address to u_long. 2004-03-22 12:24:37 +00:00
nakayama 323fc574b9 Make 32-bit kernels compile with options DEBUG. 2004-03-22 12:21:58 +00:00
nakayama 8b6b7ba030 Make 32-bit kernels compile with options DIAGNOSTIC. 2004-03-22 12:20:52 +00:00
nakayama d1fa565f18 Make it compile again. 2004-03-22 12:19:49 +00:00
pk bfe932f43b sparc: OF_instance_to_package => prom_instance_to_package 2004-03-22 10:06:31 +00:00
martin a4ec3066f6 Adapt to promlib changes on sparc. 2004-03-22 08:36:28 +00:00
lukem 455da8e60b Move mbr_bootsel from offset 404 to offset 400 in struct mbr_sector to
leave 4 bytes for the Windows NT Drive Serial Number (DSN) at 440-443
(as mbr_sector.mbr_dsn).

Ensure that all the MBR & PBR code reserves space for mbr_sector.mbr_dsn.

Leave the bootsel magic number at 444-445 as mbr_sector.mbr_bootsel_magic
(instead of mbr_sector.mbr_bootsel.mbrbs_magic), but use 0xb5e1 (MBR_BS_MAGIC)
instead of 0xaa55 (MBR_MAGIC) to indicate that this change has occurred.

Rework MBR_BS_NEWMBR to mean "mbr_bootsel has moved to 400".

Modify fdisk(8) to automatically relocate the mbr_bootsel from 404 to 400
if mbr_bootsel_magic is the old value (0xaa55), and unset MBR_BS_NEWMBR
to flag that new mbr_bootsel code must be used if updating the MBR.


These changes fixes a problem where Windows 2000 or Windows XP would corrupt
the last 3 bytes + NUL of MBR partition 3's bootsel name if the bootsel name
was 5 characters long, replacing bytes 6-9 with the DSN.
Also, by explicitly reserving the space for the DSN we prevent problems in the
future if non bootsel MBR or PBR code had other information at bytes 440-443.
2004-03-22 07:11:00 +00:00
matt 833b325a66 Change default data size to 256MB.
(A native NetBSD build will no longer with a limit of 128MB).
2004-03-22 05:25:22 +00:00
martin 6582666bc7 Realy disable optimization for 32bit kernels when compiling uvm_bio.c. 2004-03-22 00:43:37 +00:00
martin fe91b9b277 Create a symlink for <sparc/...> include paths as well, the new openfirm.h
needs it.
2004-03-21 23:41:21 +00:00
oster 43ccce7d13 Why start a timer, and then just ignore it? *punt* 2004-03-21 21:20:46 +00:00
oster 78d093eaf5 Yesterday's fix to rf_disks.c (rev 1.51) was necessary, but not
sufficient to clobber this nasty little bug.  The behaviour observed
was a panic when doing a 'raidctl -f' on a component when DAGs were
in flight for the given RAID set.  Unfortunatly, the faulty behaviour
was very intermittent, and it was difficult to not only reliably
reproduce the bug (nor determine when it was fixed!) but also to even
figure out what might be the cause of the problem.

The real issue was that ci_vp for the failed component was being
set to NULL in rf_FailDisk(), but with DAGs still in flight, some
of them were still expecting to use ci_vp to determine where to
read to/write from!

The fix is to call rf_SuspendNewRequestsAndWait() from rf_FailDisk()
to make sure the RAID set is quiet and all IOs have completed before
mucking with ci_vp and other data structures.  rf_ResumeNewRequests()
is then used to continue on as usual.
2004-03-21 21:08:08 +00:00
dsl 221ec38d03 Rework superblock validation logic to make adding validity tests easier.
Ensure that we don't use the first alternate superblock of a ffsv1
filesystem with 64k blocks (it is in the same place as an ffsv2 sb).
Fixes part of PR kern/24809
2004-03-21 18:48:24 +00:00
cl d636a8b9cb On MP, exit postsig() when another LWP has already handled the signal while
this LWP was waiting for the kernel lock.

Fixes PR kern/24829
2004-03-21 18:41:38 +00:00
kim 92703eeedb AMD CPUID 0x6a0 is an Athlon XP processor model 10, revision A2.
http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/27532.pdf
2004-03-21 17:59:44 +00:00
pk 4021f0eb39 Use prom_getpropstring(). 2004-03-21 16:29:42 +00:00
martin acbc97c970 Avoid NULL pointer dereferences on incomplete setup by userland.
Fixes PR kern/24807.
2004-03-21 16:29:40 +00:00
itohy 7519b9aacf Add notice on "relocation truncated to fit: R_68K_16" errors of ld.
Cleanup consistency check.
2004-03-21 16:25:56 +00:00
pk e8397400f7 Some more promlib interface conversions. 2004-03-21 16:09:13 +00:00
jdolecek e36d8bbf0f in smbfs_smb_lookup(), check the returned (found) file name matches
exactly the filename we wanted to lookup, so that file names differing
in case are refused right away

resolves the chdir part of PR kern/22835 by Rob Quinn (cd succeeded when
it was supposed to fail)
2004-03-21 16:04:07 +00:00
junyoung 2ed9c2c7b7 ANSIfy. 2004-03-21 15:37:02 +00:00
pk 7446de9195 Add sparc64 cell_t definitions.
Change OF_interpret() prototype to the unabridged version.
2004-03-21 15:12:35 +00:00
pk 3b45f4cb4c OF_stdin() and OF_stdout() are obsolete. 2004-03-21 15:09:25 +00:00
pk 05a2b2300b Use the promlib I/O routines. 2004-03-21 15:08:24 +00:00
pk b865f2441c `stdin' and `stdout' are obsolete. 2004-03-21 15:07:00 +00:00
pk 107e759b1c Two commas went missing in last commit. 2004-03-21 14:28:47 +00:00
pk 2a26804b1a Reach over to the sparc openfirm & openprom implementation. 2004-03-21 14:25:51 +00:00
pk f7fe3a3531 Partial switch to the promlib interface. 2004-03-21 14:22:52 +00:00
pk f1bff50602 Mostly switch to promlib interface. Postpone the use of prom_makememarr()
since the sparc64 memory range properties aren't compatible yet.

Fix pmap_calculate_colors() in the process.
2004-03-21 14:19:30 +00:00
pk 0d449eda9b Switch to promlib interface. 2004-03-21 14:15:35 +00:00
pk e0b67a7f3e Drop prom_printf() + some other unused stuff. 2004-03-21 14:13:15 +00:00
pk 6521621036 Switch to the sparc prom library. 2004-03-21 14:10:08 +00:00