Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (12m)  netbsd-8 (6d)  netbsd-10 (6d)  netbsd-9 (12d)  thorpej-ifq (176d)  thorpej-altq-separation (178d) 

2024-05-10 21:56:10 UTC Now

2024-04-15 08:06:36 UTC MAIN commitmail json YAML

Add a newline to a printf message.

(simonb)

2024-04-05 11:20:34 UTC MAIN commitmail json YAML

Apply FreeBSD svn r373278 fix for ZFS corruption.  Fix for NetBSD
PR kern/58111 .

It would be extremely unlikely to trip this bug on NetBSD, as we don't
expose SEEK_DATA and SEEK_HOLE and you need to call ioctl(2) with
FIOSEEKDATA and FIOSEEKHOLE directly which no currently known code does,
and even then be unlucky enough to trip a race condition.

With a reproducer based on that in https://www.illumos.org/issues/16087,
I saw 11 groups of failures over 8 hours.  With this patch, no
failures in 10 hours.  The repro for NetBSD will be attached to
https://gnats.netbsd.org/58111 .

Original FreeBSD commit message:
--------------------------------
dnode_is_dirty: check dnode and its data for dirtiness

Over its history this the dirty dnode test has been changed between
checking for a dnodes being on `os_dirty_dnodes` (`dn_dirty_link`) and
`dn_dirty_record`.

It turns out both are actually required.

In the case of appending data to a newly created file, the dnode proper
is dirtied (at least to change the blocksize) and dirty records are
added.  Thus, a single logical operation is represented by separate
dirty indicators, and must not be separated.

The incorrect dirty check becomes a problem when the first block of a
file is being appended to while another process is calling lseek to skip
holes. There is a small window where the dnode part is undirtied while
there are still dirty records. In this case, `lseek(fd, 0, SEEK_DATA)`
would not know that the file is dirty, and would go to
`dnode_next_offset()`. Since the object has no data blocks yet, it
returns `ESRCH`, indicating no data found, which results in `ENXIO`
being returned to `lseek()`'s caller.

This change simply updates the dirty check to check both types of dirty.
If there's anything dirty at all, we immediately go to the "wait for
sync" stage, It doesn't really matter after that; both changes are on
disk, so the dirty fields should be correct.

Sponsored by:  Klara, Inc.
Sponsored by:  Wasabi Technology, Inc.

(simonb)

2024-02-20 12:42:58 UTC MAIN commitmail json YAML

Updates for less - add me as co-maintainer, update to latest version.

(simonb)

2024-01-13 05:31:29 UTC MAIN commitmail json YAML

Revert mistaken "no obmem0" that I added when enabling UFS_DIRHASH.

Thanks tsutsui@ for pointing this out.

(simonb)

2024-01-06 07:27:35 UTC MAIN commitmail json YAML

2024-01-06 07:27:05 UTC MAIN commitmail json YAML

Add Cavium CN68xx to list of known CPUs.

(simonb)

2024-01-04 12:02:11 UTC MAIN commitmail json YAML

Fix nanosecond math in gfrtc_gettime().

(simonb)

2023-11-20 03:05:48 UTC MAIN commitmail json YAML

2023-11-08 14:25:13 UTC MAIN commitmail json YAML

2023-11-03 09:56:14 UTC MAIN commitmail json YAML

Add some earmv4 kernels.

(simonb)

2023-11-03 00:24:20 UTC MAIN commitmail json YAML

All other install kernels use a 6MB RAM disk.  Stop with the teeny
frequent bumps and jump straight to the size everything is using.

(simonb)

2023-11-01 12:51:44 UTC MAIN commitmail json YAML

Catch up with recent changes in distrib/sets/lists/dtb/ad.earmv7hfeb

(simonb)

2023-11-01 12:51:13 UTC MAIN commitmail json YAML

Catch up with recent changes in distrib/sets/lists/dtb/ad.earmv7hf.

(simonb)

2023-10-27 04:05:55 UTC MAIN commitmail json YAML

Add
  #include <cdbr.h>
to the synopsis.

(simonb)

2023-10-25 08:22:25 UTC MAIN commitmail json YAML

Align sysconf numbers.

(simonb)

2023-10-25 08:19:34 UTC MAIN commitmail json YAML

Add _SC_AVPHYS_PAGES.
getconf(1) add this and SC_PHYS_PAGES.
libc: Use vm.uvmexp2 over vm.meter is it's twice as fast on my setup.
getconf.3: Tidy up wording for SC_PHYS_PAGES.

(simonb)

2023-10-25 05:51:11 UTC MAIN commitmail json YAML

Correct a comment - 8 * 1 million is 8 million, not 10 million (!).

(simonb)

2023-10-22 14:44:09 UTC MAIN commitmail json YAML

Remove extraneous comma after pool info

(simonb)

2023-10-10 10:58:03 UTC MAIN commitmail json YAML

Debug printf tidy up, KNF comma,space nits.

(simonb)

2023-10-06 07:33:50 UTC MAIN commitmail json YAML

Reduce upstream diffs - remove a gcc warnings " = 0" change.  This
was a problem in 2006, doesn't appear to be a problem anymore.

(simonb)

2023-10-06 07:31:30 UTC MAIN commitmail json YAML

Reduce upstream diffs.

(simonb)

2023-10-06 07:29:42 UTC MAIN commitmail json YAML

Reduce upstream diffs - tabs vs space.

(simonb)

2023-10-06 07:26:47 UTC MAIN commitmail json YAML

2023-10-06 07:13:13 UTC MAIN commitmail json YAML

Reduce upstream diffs - remove a gcc warnings " = 0" change.  This
was a problem in 2006, doesn't appear to be a problem anymore.

(simonb)

2023-10-06 07:09:15 UTC MAIN commitmail json YAML

Reduce upstream diffs.

(simonb)

2023-10-06 07:05:59 UTC MAIN commitmail json YAML

Reduce upstream diffs.

(simonb)

2023-10-06 06:25:23 UTC MAIN commitmail json YAML

2023-10-06 06:05:07 UTC MAIN commitmail json YAML

2023-10-06 06:03:52 UTC MAIN commitmail json YAML

Note update to less-643.

(simonb)

2023-10-06 05:59:51 UTC MAIN commitmail json YAML

2023-10-06 05:58:21 UTC MAIN commitmail json YAML

Many tweaks to 10-year-old script cherry-picking from many other
foo2netbsd scripts.

(simonb)

2023-10-06 05:57:16 UTC MAIN commitmail json YAML

2023-10-06 05:54:41 UTC MAIN commitmail json YAML

Updated autoconf generated files for less-643.

(simonb)

2023-10-06 05:49:49 UTC MAIN commitmail json YAML

2023-09-04 09:13:23 UTC MAIN commitmail json YAML

2023-08-01 04:20:14 UTC MAIN commitmail json YAML

For vmstat -mW, add a total KB consumed column and widen a couple of
other fields.

(simonb)

2023-07-08 04:09:26 UTC MAIN commitmail json YAML

Make mstats() decl match prototype so this compiles with -DMSTATS.

(simonb)

2023-06-10 04:45:25 UTC MAIN commitmail json YAML

Pull git commit way-etc-20140221.tar.bz2 by Xin Li from FreeBSD:

    Remove unneeded checks for prelen.

    In order to determine the type of a compressed file, we have to read
    in the first four bytes which may also be important for decompression
    purposes, to do that we would pass the buffer that we have already
    read in, along with the size of it.

    Rename header1 to fourbytes to make that explicit, and remove all
    checks for prelen.

(simonb)

2023-06-09 03:43:03 UTC MAIN commitmail json YAML

2023-04-07 03:01:21 UTC MAIN commitmail json YAML

2023-03-05 23:24:06 UTC MAIN commitmail json YAML

In "devlist" mode, exit with a 0 return code if any nvme devices are
found, rather than exiting with 1 return code always.

(simonb)

2023-02-19 11:19:51 UTC MAIN commitmail json YAML

Adjust userspace comments in db_read_bytes() and db_write_bytes() to
match current reality.

(simonb)

2023-02-06 12:59:13 UTC MAIN commitmail json YAML

Enable UFS_DIRHASH (missed with previous change) and UFS_EXTATTR
(mistakenly commented out with previous change).

(simonb)

2023-01-31 01:42:32 UTC MAIN commitmail json YAML

Note that strchrnul() first appeared in glibc 2.1.1 and appeared in
FreeBSD 10 before it appeared in NetBSD 8.

(simonb)

2023-01-18 08:07:22 UTC MAIN commitmail json YAML

KNF nit: opening brace of a function on next line.

(simonb)

2023-01-01 00:09:52 UTC MAIN commitmail json YAML

Welcome to 2023.  Wrap lines so the years fit in to 80 columns with
a leading kernel log timestamp.

(simonb)

2022-11-17 13:11:08 UTC MAIN commitmail json YAML

Use updated defines for the user-mode sstatus value.

(simonb)

2022-11-17 13:10:43 UTC MAIN commitmail json YAML

Document lots of bits.
Remove bits no longer in the RISC-V supervisor spec.
Update defines for the user-mode sstatus value.

(simonb)

2022-11-17 09:50:23 UTC MAIN commitmail json YAML

Use better types and struct member names in the clockframe.
Avoid a magic number in CLKF_USERMODE().

(simonb)

2022-11-15 14:49:14 UTC MAIN commitmail json YAML

Enable CD9660; noticed by he@.

(simonb)

2022-11-15 14:44:05 UTC MAIN commitmail json YAML

Include GENERIC.local if it exists.

(simonb)

2022-11-15 14:33:34 UTC MAIN commitmail json YAML

Use similar macro-magic to aarch64 armreg.h to add per-csr
read/write/set-bits/clear-bits inline functions.  Keep the
open-coded 32-bit version of riscvreg_cycle_read() than reads
a 64-bit cycle counter values.

Added benefit of fixing these so that the inline asm uses __volatile
and aren't opmtimised to nops by the compiler.

(simonb)

2022-11-12 11:14:44 UTC MAIN commitmail json YAML

Add NFS_BOOT_DHCP option.

(simonb)

2022-11-11 01:18:32 UTC MAIN commitmail json YAML

The supervisor status register is the native word width, not fixed
at 32 bits.

(simonb)

2022-11-08 13:47:09 UTC MAIN commitmail json YAML

2022-11-08 13:35:32 UTC MAIN commitmail json YAML

Add cause register trap types, and some macros to access cause register
fields.

(simonb)

2022-11-08 13:34:18 UTC MAIN commitmail json YAML

Add a #define for XLEN, the RISC-V native base integer ISA width.

(simonb)

2022-11-08 13:04:49 UTC MAIN commitmail json YAML

Fix tyop in __BITS for the MIPSNN_MTI_CFG7_PREF_MASK macro.

(simonb)

2022-11-01 06:47:41 UTC MAIN commitmail json YAML

Define the mount program for zfs.

(simonb)

2022-10-31 13:00:34 UTC MAIN commitmail json YAML

Use PRIx64 in a debug print macro to print a uint64_t.

(simonb)

2022-10-31 12:50:49 UTC MAIN commitmail json YAML

In bus_space_write_{1,2,4,8} store the correct register in write to device.

(simonb)

2022-10-31 12:49:18 UTC MAIN commitmail json YAML

Fix tyop in END for generic_bs_r_8.

(simonb)

2022-10-31 10:44:29 UTC MAIN commitmail json YAML

Provide an empty ASSERT macro ifdef _STANDALONE.

(simonb)

2022-10-31 10:32:28 UTC MAIN commitmail json YAML

2022-10-31 09:14:18 UTC MAIN commitmail json YAML

Fix (invalid) gcc uninitialised warning with i386 gcc using -Os.

(simonb)

2022-10-31 04:50:12 UTC MAIN commitmail json YAML

Only need TIMESPEC_OVERFLOW() to check against INT32_{MIN,MAX} on FreeBSD.

(simonb)

2022-10-29 08:17:16 UTC MAIN commitmail json YAML

Add a -q option for pgrep to not print anything; similar to grep -q.

(simonb)

2022-10-23 23:30:31 UTC MAIN commitmail json YAML

Remove extraneous "d" in a printf format string in UVM history dump
(leftover int format specifier from conversion to FMTd32?).

(simonb)

2022-10-15 06:52:35 UTC MAIN commitmail json YAML

Consistency nit: use "__volatile" instead of "volatile" with asm()s.

(simonb)

2022-10-15 06:48:31 UTC MAIN commitmail json YAML

Add SATP modes for bare, SV57 and SV64.

(simonb)

2022-10-15 06:46:41 UTC MAIN commitmail json YAML

Use __volatile so the compiler doesn't optimise out successive calls
to cpu_counter().
Add a 64-bit cycle counter on _LP64.

(simonb)

2022-10-15 06:41:44 UTC MAIN commitmail json YAML

2022-10-12 07:56:46 UTC MAIN commitmail json YAML

"options<space><tab>"

(simonb)

2022-10-12 07:53:56 UTC MAIN commitmail json YAML

Nuke funny trailing whitespace.

(simonb)

2022-10-12 07:53:15 UTC MAIN commitmail json YAML

Set RISCV_DIRECTMAP_SIZE to 2^64-PAGESIZE, since 2^64 is effectively 0
for a 64bit constant.
Bump VM_PHYSSEG_MAX from 1 to 16.

(simonb)

2022-10-12 07:50:57 UTC MAIN commitmail json YAML

Fix a tyop regname in a comment.

(simonb)

2022-10-12 07:50:00 UTC MAIN commitmail json YAML

NKMEMPAGES_MIN_DEFAULT is in pages not bytes (hint is in the name).
Also set NKMEMPAGES_MAX_UNLIMITED while we're here.

(simonb)

2022-08-07 02:55:46 UTC MAIN commitmail json YAML

2022-08-07 02:53:43 UTC MAIN commitmail json YAML

2022-08-07 02:52:30 UTC MAIN commitmail json YAML

UFS/LFS dirhash:
- Enable UFS_DIRHASH if the architecture or kernel model specific config
  file can use 128MB of RAM or more.
- Remove experimental tag from UFS_DIRHASH; it's been with RUMP kernel
  and by a number of NetBSD developers for years.
- Add LFS_DIRHASH if LFS was enabled.
- Be somewhat consistent with FS options order.

(simonb)

2022-08-07 02:33:47 UTC MAIN commitmail json YAML

If UFS or LFS dirhash is enabled in the kernel, set the dirhash cache
size dependant on memory size.  If less than 128MB of memory, default
to no cache.  With 128MB of memory or more, use a maximum cache size of
1/64th of memory; cap maximum default cache size to 32MB (for systems
with 2GB of memory or more).

The dirhash cache sizes are still explicityly setable by sysctl(8) or
by adding relevant entry(s) to sysctl.conf(5).

(simonb)

2022-07-23 11:49:58 UTC MAIN commitmail json YAML

Add some file system options present in GENERIC kernels.

(simonb)

2022-07-21 14:07:16 UTC MAIN commitmail json YAML

Removed unused opt_wapbl.h include.

(simonb)

2022-07-16 10:36:19 UTC MAIN commitmail json YAML

When operating on core files or /dev/mem when using the -M option,
use 64-bit math to calculate pool sizes.  Fixes overflow errors for
pools larger than 4GB and gives the correct output with "vmstat -m"
for in use, total allocation and utilisation numbers.

(simonb)

2022-07-16 10:20:21 UTC MAIN commitmail json YAML

Use 64-bit math to calculate pool sizes.  Fixes overflow errors for
pools larger than 4GB and gives the correct output for kernel pool pages
in "vmstat -s" output.

(simonb)

2022-07-16 09:32:27 UTC MAIN commitmail json YAML

Move the call to getnlist() to after we check if kvm_openfiles(3) succeeded.
Avoids a coredump when called with "vmstat -M /dev/mem".

(simonb)

2022-06-19 11:31:19 UTC MAIN commitmail json YAML

Add basic ZFS support to fstat(1).
XXX: Use a local zfs_znode.h for a znode_t definition because the ZFS
kernel code makes it too hard to include headers from userland.

(simonb)

2022-05-19 13:57:03 UTC MAIN commitmail json YAML

Bump some column widths for "vmstat -mW".

(simonb)

2022-05-04 02:38:27 UTC MAIN commitmail json YAML

White space KNF nits.

(simonb)

2022-03-16 04:31:54 UTC MAIN commitmail json YAML

Add the increasingly spreading __HIDE_DELAY kludge to evbmips.

(simonb)

2021-12-28 00:37:16 UTC MAIN commitmail json YAML

In biosdisk_findpartition() check if part_name isn't NULL before
assigning *part_name.

Thanks to manu@ for the pointer.

(simonb)

2021-12-28 00:34:30 UTC MAIN commitmail json YAML

2021-12-27 12:19:27 UTC MAIN commitmail json YAML

Revert rev 1.12 of devopen.c.  This had the unintented side effect
of breaking opens on non-root filesystems (eg trying to open/read
"esp:/EFI/NetBSD/boot.cfg" on the EFI system partition).

Ok manu@.  Original problem to be re-addressed.

(simonb)

2021-12-22 14:04:10 UTC MAIN commitmail json YAML

In zfs_setattr() don't recheck the auth policy for a "nodump" flags
change. zfs_netbsd_setattr() has already checked if this request is
authorised, and our secpolicy_xvattr() doesn't check kauth chflags.

XXX: Fix this propery when we migrate to openzfs.

riastradh@: Seems reasonable.

(simonb)

2021-12-20 11:54:33 UTC MAIN commitmail json YAML

Explicitly use -I$S/external/bsd/dwc2/dist for dwc2 instead of possibly
getting that include path via DRM.  Fixes evbmips cavium kernel build.

(simonb)

2021-12-17 08:07:12 UTC MAIN commitmail json YAML

In vattr_init_mask() check for va_flags and if set add to the mask of
to the things that setattr is interested in.
Fixes chflags(2) on ZFS.

Thanks riastradh@ for fix.

(simonb)

2021-12-13 08:19:12 UTC MAIN commitmail json YAML

Update -m description to reflect reality.  Kernel dynamic memory tracking
was removed long ago; only pool usage is reported.

(simonb)

2021-11-30 12:37:38 UTC MAIN commitmail json YAML

In zfs_statvfs(), set f_bresvd and f_fresvd to 0.  Fixes random kernel
accounting suspend/resumes with erroneous values leaking out.

Note: no userland leakage as statvfs(2) handler memset 0's the buffer.

XXX: Should be fixed with a memset in VFS_STATVFS().

(simonb)

2021-11-30 06:21:58 UTC MAIN commitmail json YAML

Add /etc/sshd/ssh_host_ed25519_key* .

(simonb)

2021-11-29 05:59:58 UTC MAIN commitmail json YAML

Set totals.f_frsize to DEV_BSIZE instead of totals.f_bsize so that
addstat() uses an initialised value for total size calculations.
Fixes core dump for "df -c".

(simonb)

2021-11-21 05:09:15 UTC MAIN commitmail json YAML

Add some { } around an if body that is followed by an "else {".

(simonb)

2021-11-16 06:46:41 UTC MAIN commitmail json YAML

Use 50Hz ticks so that time works accurately on hosts with 100Hz ticks.

Note: The 20Kc CPU isn't handled correctly by QEMU, use the 5Kc CPU for
a 64-bit guest for accurate time.

(simonb)

2021-11-16 06:44:40 UTC MAIN commitmail json YAML

Use CPU frequencies defined in QEMU for mipssim - 6 MHz for 64-bit
guests and 12 MHz for 32-bit guests.

(simonb)

2021-11-16 06:15:48 UTC MAIN commitmail json YAML

Use the register define MIPS_HWR_ULR instead of a magic number.

(simonb)

2021-11-16 06:11:52 UTC MAIN commitmail json YAML

Use the architecture documented name ULR for the RDHWR user local
register.

(simonb)

2021-11-16 06:04:53 UTC MAIN commitmail json YAML

Add some comments for the RDHWR register numbers.

(simonb)

2021-11-16 06:04:00 UTC MAIN commitmail json YAML

Only need one #define for MIPS_HWR_CPUNUM.

(simonb)

2021-11-13 01:09:51 UTC MAIN commitmail json YAML

2021-10-31 00:31:48 UTC MAIN commitmail json YAML

2021-10-27 11:35:23 UTC MAIN commitmail json YAML

Hacks to get zdb working on NetBSD:
- Force accessing raw device but we're passed the block device.
- Deal with wedges not returning their size on a stat(2) and use
  the DIOCGMEDIASIZE ioctl instead.

Ok chs@.

(simonb)

2021-10-27 06:54:15 UTC MAIN commitmail json YAML

2021-10-27 05:33:59 UTC MAIN commitmail json YAML

When adjusting the max ASID count, check if ti->ti_asid_max == 0 as
well.  This defaults to 0 for the non-PMAP_TLB_NUM_PIDS case, so would
skip the updated test.

Fix for port-pmax/56466 (which affects all MIPS).

ok srkll@

(simonb)

2021-10-18 11:40:57 UTC MAIN commitmail json YAML

2021-10-16 07:12:01 UTC MAIN commitmail json YAML

Spinkle some KNF spaces after commas.

(simonb)

2021-10-16 07:05:45 UTC MAIN commitmail json YAML

Remove funny straggling blank line.

(simonb)

2021-09-06 08:37:43 UTC MAIN commitmail json YAML

Clamp zfs nlinks at UINT32_MAX (nlink_t max) instead of (much) smaller
16-bit LINK_MAX until we bump LINK_MAX.  Fixes fts(3) problems with
"rm -rf" on zfs directories with > 32766 subdirectories.

Thanks mlelstv@ and mrg@ for helping debug this.

(simonb)

2021-07-28 08:01:10 UTC MAIN commitmail json YAML

2021-07-25 08:52:03 UTC MAIN commitmail json YAML

Update to reflect current reality for template characters - the process
ID is not longer used and we replace each "X" with one of 64 values not
26 values.

(simonb)

2021-07-25 06:06:40 UTC MAIN commitmail json YAML

If we're only doing a count-only kern.buf sysctl, just return the number
of active members in the pool cache (plus some slop) instead of looking
in all the free buffer list.  Should reduce CPU usage for "systat vm"
to << 1% especially for machines with a larger number of buffers.

(simonb)

2021-07-25 06:00:32 UTC MAIN commitmail json YAML

Add accessor functions to get the number of gets and puts on pools and
pool caches.

(simonb)

2021-07-24 13:42:05 UTC MAIN commitmail json YAML

Instead of getting an estimate of the number of kernel buffers,
allocating memory for them, requesting all the metadata contents of
these buffers (and repeating in the unlikely case of the number of
buffers increasing too much since the estimate) and then straight away
throwing all the contents out just to count how many buffers there were,
just get the initial estimate from the kernel and subtract the slop.

Reduces system CPU usage of "systat vm" by approx 80% for any system
with a reasonable number of buffers.

(simonb)

2021-07-24 13:28:14 UTC MAIN commitmail json YAML

Expose KERN_BUFSLOP in <sys/sysctl.h>.

(simonb)

2021-07-24 13:27:39 UTC MAIN commitmail json YAML

Pad out the slop for kern.buf based on the passed in element size,
rather than a size of an unrelated struct.

(simonb)

2021-06-24 07:16:49 UTC MAIN commitmail json YAML

Call check_siginfo() in compression loop to provide SIGINFO compression
progress.
Suggested by mrg@.

(simonb)

2021-06-23 15:11:40 UTC MAIN commitmail json YAML

Remove an unused #define.

(simonb)

2021-06-13 14:58:50 UTC MAIN commitmail json YAML

Return ENOENT if the hashstat sysctl was called to query a specific hash
name and that hash name doesn't exist.

(simonb)

2021-06-04 11:55:45 UTC MAIN commitmail json YAML

Remove the warning about autoselecting nfs based on : or @.

Ok jmcneill@, mrg@.

(simonb)

2021-06-02 00:00:39 UTC MAIN commitmail json YAML

2021-05-31 14:38:57 UTC MAIN commitmail json YAML

2021-05-31 12:24:15 UTC MAIN commitmail json YAML

Use <sys/param.h> in the synopsis rather than <machine/param.h>; an MI
interface should be pulled in via <sys/...>.

(simonb)

2021-05-31 02:10:37 UTC MAIN commitmail json YAML

MIPS n64 dynamic binaries have worked for a while now, remove -static
for these.

(simonb)

2021-05-29 12:35:27 UTC MAIN commitmail json YAML

2021-05-29 12:03:34 UTC MAIN commitmail json YAML

Put the MSGBUFSIZE option in opt_param.h so that changes of its setting
in kernel config files will be picked up automatically without needing
a "make clean".  Added to opt_param.h since ports define their default
MSGBUFSIZE settings in their <arch/include/param.h> (or equivalent).

(simonb)

2021-05-28 00:18:27 UTC MAIN commitmail json YAML

Update R6000 description.

(simonb)

2021-05-27 15:00:02 UTC MAIN commitmail json YAML

Rename the unhelpfully named mips_emul_lwc0() and mips_emul_swc0() to
mips_emul_ll() and mips_emul_sc(); make these static to mips_emul.c.

(simonb)

2021-05-27 13:32:54 UTC MAIN commitmail json YAML

Print the CP0 status register too in the debug trap code.

(simonb)

2021-05-27 08:58:29 UTC MAIN commitmail json YAML

Remove nfs_putpages() prototype; it's not defined anywhere.

(simonb)

2021-05-27 03:23:29 UTC MAIN commitmail json YAML

Move the send queue checking to a new function, and also call this
in the rx interrupt path.  Measureable improvement on a NFS "create
small files" test.

(simonb)

2021-05-27 01:43:32 UTC MAIN commitmail json YAML

Schedule the send cleanup function for next tick in cnmac_start().  In
the send cleanup function, schedule for the next tick instead of waiting
for HZ ticks if there are still send requests outstanding.  Greatly
increases NFS throughput, perhaps other types of network traffic.

Use callout_setfunc() after callout_init() instead of callout_reset().

(simonb)

2021-05-25 09:19:28 UTC MAIN commitmail json YAML

2021-05-24 07:27:39 UTC MAIN commitmail json YAML

Whitespace alignment nit.

(simonb)

2021-05-15 02:37:07 UTC MAIN commitmail json YAML

The MIPS O64 ABI uses full 64-bit FP regs.

(simonb)

2021-05-14 13:36:28 UTC MAIN commitmail json YAML

Fix a missed bitmask to __SHIFTOUT conversion in rev 1.12.

Fixes negotiation problems on non-gige switches.  Problem discovered and
tested by riastradh@.

(simonb)

2021-05-13 06:15:29 UTC MAIN commitmail json YAML

Update ISA for some "L" variant instructions after checking the R4400 UM.

(simonb)

2021-05-13 04:55:12 UTC MAIN commitmail json YAML

Note which ISA the unimplemented instructions belong to.

(simonb)

2021-05-13 03:41:46 UTC MAIN commitmail json YAML

If we're going to print a number in hex, at least put a 0x in front of it.

(simonb)

2021-05-12 03:53:37 UTC MAIN commitmail json YAML

2021-05-11 14:41:08 UTC MAIN commitmail json YAML

Use "static" in the function intro if the function is static.

(simonb)

2021-05-11 09:21:25 UTC MAIN commitmail json YAML

Revert rev 1.5 - put the NOFPU option back.  Older cnMIPS cores don't
have an FPU.

(simonb)

2021-05-10 14:27:47 UTC MAIN commitmail json YAML

2021-05-05 06:47:29 UTC MAIN commitmail json YAML

2021-05-05 06:46:37 UTC MAIN commitmail json YAML

The watchdog setup code isn't used (yet), so don't compile in the
octeon_nmi_stack that it uses either.

(simonb)

2021-05-03 11:07:55 UTC MAIN commitmail json YAML

Add links for the other functions documented in arc4random(3).

(simonb)

2021-05-03 08:30:30 UTC MAIN commitmail json YAML

2021-04-29 08:47:26 UTC MAIN commitmail json YAML

Don't force all MALTA kernels to be compiled with -mips64 when they
also support MIPS32-only CPU configs.

(simonb)

2021-04-29 08:45:29 UTC MAIN commitmail json YAML

Fix another misplaced label for cvt_s_w() but use a named local label
and redo fix for cvt_d_w() in rev 1.52 the same way.

(simonb)

2021-04-29 08:14:08 UTC MAIN commitmail json YAML

Move a comment slighty so that it's before two #ifdef blocks that do the
same thing instead of in the middle of them.

(simonb)

2021-04-29 08:11:38 UTC MAIN commitmail json YAML

Move a branch target in cvt_d_w() to where it will be hit for either
case of an #ifdef block of code.  Fixes an FP emulation problem if
compiled with -mips32 or -mips64.

(simonb)

2021-04-23 08:42:26 UTC MAIN commitmail json YAML

Merge the .text.* sections into the .text section on MIPS, SPARC and
SPARC64 as is done on all other ports.  Mostly costmetic, but does mean
that main() now appears before the _etext symbol instead of after it.

(simonb)

2021-04-19 01:12:10 UTC MAIN commitmail json YAML

2021-04-18 12:05:29 UTC MAIN commitmail json YAML

Delete the NOFPU option.  These CPUs do have an FPU.  Allows o32
binaries to work now.

(simonb)

2021-04-17 08:06:58 UTC MAIN commitmail json YAML

Use __register_t instead of uregister_t - this is available to all ports
and both userland and kernel.

(simonb)

2021-04-17 06:02:35 UTC MAIN commitmail json YAML

Cast the fill value to unsigned char so that the "fill" value used for
full-word fills isn't garbage.

(simonb)

2021-04-17 05:57:11 UTC MAIN commitmail json YAML

Disable the larger/faster code path.  While the optimised code path was
indeed quicker, it nonetheless failed to actually fill all the requested
memory with the specified value much of the time if a non-aligned start
address was used.

(simonb)

2021-04-17 03:57:42 UTC MAIN commitmail json YAML

Compile in compat32 syscall names all the time, as we do for native
syscall names.  Needed for dtrace.

(simonb)

2021-04-12 11:35:22 UTC MAIN commitmail json YAML

Print target addresses similar to aarch64 as "address <sym+off>"
instead of "<sym+off> [addr:address]".  Uses less columns, a bit
easier on the eyes.

(simonb)

2021-04-10 15:34:05 UTC MAIN commitmail json YAML

Build the netbsd32_syscall module if mips64.
Don't build the linux_syscall module if mips*

(simonb)

2021-04-08 06:20:47 UTC MAIN commitmail json YAML

2021-04-08 06:06:24 UTC MAIN commitmail json YAML

tc_init(): KASSERT that the timecounter hasn't previously been
initialised by checking the tc_next field.  Prevents nastly endless
loops in the timecounter code.

(simonb)

2021-04-07 14:45:28 UTC MAIN commitmail json YAML

Update usage message to reflect reality.

(simonb)

2021-04-07 14:27:39 UTC MAIN commitmail json YAML

Add a # to a %x printf format to get some 0x hex number prefixes.

(simonb)

2021-04-07 09:57:02 UTC MAIN commitmail json YAML

Revert the change to not build and install /usr/lib/dtrace/drti.o; this
is used by the ruby30-base package when compiled with the dtrace option
(enabled by default).

Problem found by ryoon@.

(simonb)

2021-04-07 02:59:01 UTC MAIN commitmail json YAML

Basic dtrace trap support.

Mostly from FreeBSD.

(simonb)

2021-04-07 01:54:32 UTC MAIN commitmail json YAML

Use NAL (nop-and-link) to get the current PC.

(simonb)

2021-04-06 16:10:08 UTC MAIN commitmail json YAML

The location arg of db_disasm() is a db_addr_t, not a vaddr_t.

(simonb)

2021-04-06 16:05:17 UTC MAIN commitmail json YAML

Remove duplicate db_disasm() prototype.

(simonb)

2021-04-06 16:04:44 UTC MAIN commitmail json YAML

Include <ddb/db_interface.h> to get ddb's db_disasm() prototype.

(simonb)

2021-04-06 15:55:26 UTC MAIN commitmail json YAML

Fix a typo, remove a useless blank line.

(simonb)

2021-04-06 15:05:12 UTC MAIN commitmail json YAML

Revert rev 1.278 which tried to call ctfmerge only once - this has
caused kernels with embedded symbol tables to explode in size.

(simonb)

2021-04-06 13:11:22 UTC MAIN commitmail json YAML

If we're going to print a number in hex, at least put a 0x in front of
it so we can cut'n'paste it into gdb directly.  This has only annoyed
me for 25 or so years...

Wrap a long long while here.

(simonb)

2021-04-06 12:48:59 UTC MAIN commitmail json YAML

2021-04-06 12:48:36 UTC MAIN commitmail json YAML

sizeof(*var) instead of sizeof(type)
Call kmem_free() with size of data being freed.

(simonb)

2021-04-06 08:19:15 UTC MAIN commitmail json YAML

Call kmem_free() with the size of the thing we are freeing.  Fixes panic
when unloading the ktrace module on MIPS.

(simonb)

2021-04-06 07:57:03 UTC MAIN commitmail json YAML

Check the CTF magic number in an endian friendly way (and don't use
magic numbers to check the magic number!).

(simonb)

2021-04-06 07:56:10 UTC MAIN commitmail json YAML

Define the CTF ELF section header magic number.

(simonb)

2021-04-06 05:13:24 UTC MAIN commitmail json YAML

Fix the column width calculation for the lstart column if an empty
column header is specified.

Fixes bug pointed out by Ted Spradley in
https://mail-index.netbsd.org/netbsd-users/2021/04/05/msg026808.html .

(simonb)

2021-04-06 04:49:41 UTC MAIN commitmail json YAML

We only need -Wno-format-y2k for print.c .

(simonb)

2021-04-05 07:28:19 UTC MAIN commitmail json YAML

Some QED instructions are included in MIPS32 and MIPS64 instruction sets.
Update a few comments.

(simonb)

2021-04-05 07:27:11 UTC MAIN commitmail json YAML

Fix cut'n'paste typo - OP_CVM_DMUL is dmul, not baddu.

(simonb)

2021-04-05 07:00:06 UTC MAIN commitmail json YAML

2021-04-05 06:38:01 UTC MAIN commitmail json YAML

gcc/gas also emits "or ...,zero" as well as "addu/daddu ...,zero" for a
"move" pseudo instruction.  Disassemble the "or" case as a "move" too.

(simonb)

2021-04-05 06:35:04 UTC MAIN commitmail json YAML

Allow disassembly in XKSEG for LP64 kernels.  Can now x/i on modules
with an N64 kernel.

(simonb)

2021-04-05 06:28:31 UTC MAIN commitmail json YAML

For bc{0,1,2}{t,f} check for the TRUE value not the MASK value (even
though they're the same).

(simonb)

2021-04-05 06:22:00 UTC MAIN commitmail json YAML

Move the ctfmerge call from SYSTEM_LD_TAIL (used by both STAGE1 and STAGE2)
to SYSTEM_LD_TAIL_STAGE2 only.  ctfmerge is slow enough that just calling
it once is enough.

(simonb)

2021-04-05 05:47:32 UTC MAIN commitmail json YAML

Don't call strncmp() where the length arg is the size of a pointer
instead of the max string length.  Switch to strcmp() - both strings
are known nul-terminated.

Thanks tnn@ (and clang!).

(simonb)

2021-04-03 14:10:56 UTC MAIN commitmail json YAML

Add a -L option to follow all symbolic links.  Useful if you have symlinks
in a makefs directory tree but want to refer to the actual file.

(simonb)

2021-04-03 13:37:18 UTC MAIN commitmail json YAML

Deal with the case when a device gets recreated (eg when mtree is called by
MAKEDEV) and the stat buffer contains information about the original device
before checking/setting the owner/group/mode of the new device file.

(simonb)

2021-04-03 12:57:21 UTC MAIN commitmail json YAML

Centralise the setitimer() timer type validation in dosetitimer() as is
done with dogetitimer().

(simonb)

2021-04-03 12:06:53 UTC MAIN commitmail json YAML

Print the "preposterous TOD clock time" message only if the RTC is
before very late 2020 (1/1/2021 minus a few leap days) instead of
late 1994.  Someone(TM) should remember to adjust this in somewhat
less than 26 years.

(simonb)

2021-04-03 11:19:11 UTC MAIN commitmail json YAML

CTASSERT that NSIG <= 128.  There are many hard-coded assumptions that
there are <= 4 x 32bit signal mask bits.

(simonb)