The NetBSD Project

CVS log for src/sys/uvm/pmap/pmap_tlb.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / uvm / pmap

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.62: download - view: text, markup, annotated - select for diffs
Mon Jan 1 16:56:30 2024 UTC (15 months, 3 weeks ago) by skrll
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +20 -21 lines
Appease KASSERTs for zero ASID CPUs (I mean harts)

Revision 1.61: download - view: text, markup, annotated - select for diffs
Fri Oct 6 08:48:16 2023 UTC (18 months, 3 weeks ago) by skrll
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +19 -3 lines
Support CPUs that might not have ASIDs in the common pmap.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Tue Aug 1 08:17:26 2023 UTC (20 months, 3 weeks ago) by skrll
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +4 -4 lines
Improve debug

Revision 1.59: download - view: text, markup, annotated - select for diffs
Mon Jun 12 06:47:17 2023 UTC (22 months, 2 weeks ago) by skrll
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -3 lines
Fix compile for non-MULTIPROCESSOR and PMAP_TLB_MAX > 1 builds

Revision 1.58: download - view: text, markup, annotated - select for diffs
Mon Jun 12 06:36:28 2023 UTC (22 months, 2 weeks ago) by skrll
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +5 -5 lines
Fixup UVMHIST builds

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sat Apr 22 10:22:43 2023 UTC (2 years ago) by skrll
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +11 -8 lines
KASSERT(kpreempt_disabled()) before accessing curcpu()

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun Feb 19 07:20:44 2023 UTC (2 years, 2 months ago) by skrll
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +5 -5 lines
Spaces to TABs. NFCI.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Nov 7 07:28:04 2022 UTC (2 years, 5 months ago) by skrll
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +5 -5 lines
Fix UVMHIST build

Revision 1.54: download - view: text, markup, annotated - select for diffs
Wed Oct 26 07:35:20 2022 UTC (2 years, 6 months ago) by skrll
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +34 -2 lines
MI PMAP hardware page table walker support.

This is based on code given to me by Matt Thomas a long time ago with
many updates and bugs fixes from me.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu Oct 20 06:24:51 2022 UTC (2 years, 6 months ago) by skrll
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -2 lines
Add a KASSERT to check that tlb_asid_t is a large enough type.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Fri Mar 4 08:11:48 2022 UTC (3 years, 1 month ago) by skrll
Branches: MAIN
CVS tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +2 -6 lines
Rmmove an incorrect KASSERT.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sun Jan 2 16:03:30 2022 UTC (3 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -3 lines
fix KASSERTMSG issue

Revision 1.50: download - view: text, markup, annotated - select for diffs
Wed Dec 29 12:53:38 2021 UTC (3 years, 3 months ago) by skrll
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -3 lines
Remove duplicate KASSERT

Revision 1.49: download - view: text, markup, annotated - select for diffs
Wed Oct 27 06:54:15 2021 UTC (3 years, 6 months ago) by simonb
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +7 -7 lines
TAB police.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Wed Oct 27 05:33:59 2021 UTC (3 years, 6 months ago) by simonb
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -3 lines
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@

Revision 1.47: download - view: text, markup, annotated - select for diffs
Fri Oct 8 07:17:32 2021 UTC (3 years, 6 months ago) by skrll
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +5 -4 lines
Fix a logic botch to actually apply the ASID limit returned by
pmap_md_tlb_asid_max.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Oct 2 14:28:05 2021 UTC (3 years, 6 months ago) by skrll
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -4 lines
Pass the pmap in tlb_set_asid for the benefit of aarch64.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Sep 12 09:05:01 2021 UTC (3 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -3 lines
comment whitespace

Revision 1.41.6.1: download - view: text, markup, annotated - select for diffs
Thu May 13 00:47:33 2021 UTC (3 years, 11 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +2 -4 lines
Sync with HEAD.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue May 4 09:05:34 2021 UTC (3 years, 11 months ago) by skrll
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -4 lines
Always expose pmap_tlb_update_addr now that all current PMAP_HWPAGEWALKERs
(arm) users provide the required functions.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sat May 1 14:00:57 2021 UTC (3 years, 11 months ago) by skrll
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +4 -2 lines
Revert previous

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sat May 1 06:56:41 2021 UTC (3 years, 11 months ago) by skrll
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -4 lines
Expose pmap_tlb_update_addr to the PMAP_HWPAGEWALKER platforms

Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Sep 24 06:45:58 2020 UTC (4 years, 7 months ago) by skrll
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +4 -4 lines
Whitespace

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sat Aug 22 14:51:44 2020 UTC (4 years, 8 months ago) by skrll
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3 lines
Whitespace - line continutation alignment

Revision 1.39: download - view: text, markup, annotated - select for diffs
Wed Aug 19 06:11:49 2020 UTC (4 years, 8 months ago) by skrll
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +7 -7 lines
KNF.  Add some whitespace to the TLBINV_MAP macro and tlb_invalidate_op
enum.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Wed Aug 19 06:08:27 2020 UTC (4 years, 8 months ago) by skrll
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -4 lines
Unwrap short line KASSERT

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Aug 19 06:07:03 2020 UTC (4 years, 8 months ago) by skrll
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3 lines
Fix inverted logic test in pmap_tlb_shootdown_process for if the victim
is onproc.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Tue Aug 11 06:54:14 2020 UTC (4 years, 8 months ago) by skrll
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +4 -4 lines
s/pmaphist/maphist/ for now

Revision 1.35: download - view: text, markup, annotated - select for diffs
Tue Aug 11 06:09:44 2020 UTC (4 years, 8 months ago) by skrll
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +14 -5 lines
More UVMHIST_LOG.  Remove some commented output printfs.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Aug 9 06:26:49 2020 UTC (4 years, 8 months ago) by skrll
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +5 -6 lines
Don't kcpuset_clone every pmap_tlb_shootdown_bystanders.  Instead allocate
a kcpuset_t per cpu_info and use that.

Revision 1.28.4.3: download - view: text, markup, annotated - select for diffs
Tue Apr 21 18:42:46 2020 UTC (5 years ago) by martin
Branches: phil-wifi
Diff to: previous 1.28.4.2: preferred, colored; branchpoint 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.4.2: +16 -15 lines
Sync with HEAD

Revision 1.30.6.1: download - view: text, markup, annotated - select for diffs
Mon Apr 20 11:29:14 2020 UTC (5 years ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +26 -24 lines
Sync with HEAD

Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Apr 14 05:43:57 2020 UTC (5 years ago) by skrll
Branches: MAIN
CVS tags: phil-wifi-20200421, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -3 lines
Fix UVMHIST bulid

Revision 1.28.4.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:22 2020 UTC (5 years ago) by martin
Branches: phil-wifi
Diff to: previous 1.28.4.1: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.4.1: +8 -7 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Apr 12 15:36:18 2020 UTC (5 years ago) by skrll
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +19 -18 lines
Use UVMHIST_CALLARGS

Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Apr 9 08:55:45 2020 UTC (5 years ago) by skrll
Branches: MAIN
CVS tags: phil-wifi-20200411
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +10 -9 lines
Make a comment less MIPS specific

Revision 1.28.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:09:05 2020 UTC (5 years ago) by martin
Branches: phil-wifi
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +8 -7 lines
Merge changes from current as of 20200406

Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed Dec 18 11:27:56 2019 UTC (5 years, 4 months ago) by skrll
Branches: MAIN
CVS tags: phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: bouyer-xenpvh
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +7 -6 lines
KNF

Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Dec 17 13:25:50 2019 UTC (5 years, 4 months ago) by skrll
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3 lines
Fix a UVMHIST_LOG format

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Feb 25 21:43:03 2018 UTC (7 years, 2 months ago) by jdolecek
Branches: MAIN
CVS tags: phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -3 lines
fix the DIAGNOSTIC function pmap_tlb_asid_count() to not expect
that TLBINFO_ASID_INUSE_P() returns just 0 or 1; the underlying
__BITMAP_ISSET() actually returns the matching bit nowadays, which
caused miscounting

fixes PR kern/53054 by Sevan Janiyan

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Feb 25 16:44:31 2018 UTC (7 years, 2 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +7 -3 lines
adjust KASSERT() triggered in PR port-cobalt/53054 to provide more info

Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Feb 21 21:53:54 2018 UTC (7 years, 2 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +26 -23 lines
KERNEL_PID is > 0 on powerpc/ibm4xx, need to mask all bits <0,
KERNEL_PID> to avoid triggering KASSERT() checking allocated asid
is bigger than KERNEL_PID; adjust also TLBINFO_ASID_INITIAL_FREE()
accordingly

discussed with Nick

Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Feb 19 22:01:15 2018 UTC (7 years, 2 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +28 -36 lines
convert to use actual __BITMAP_*() macros from <sys/bitops.h>, and make
it possible to override the ASID bitmap length; default to 256 ASIDs as before

XXX NFCI; compile tested only on evbpcc and evbmips, unfortunately didn't
find any combination of port using the MI pmap_tlb.c and working in QEMU

Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Feb 19 21:40:45 2018 UTC (7 years, 2 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +9 -6 lines
a bit of DRY - add macro for initial free ASID count

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Feb 19 21:20:33 2018 UTC (7 years, 2 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +4 -4 lines
make it possible to not use the icache evcnts

Revision 1.22.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:39:23 2017 UTC (7 years, 4 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.22.2.1: preferred, colored; branchpoint 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22.2.1: +1082 -0 lines
update from HEAD

Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Thu Nov 2 21:29:53 2017 UTC (7 years, 5 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +21 -18 lines
Pull up following revision(s) (requested by pgoyette in ticket #335):
	share/man/man9/kernhist.9: 1.5-1.8
	sys/arch/acorn26/acorn26/pmap.c: 1.39
	sys/arch/arm/arm32/fault.c: 1.105 via patch
	sys/arch/arm/arm32/pmap.c: 1.350, 1.359
	sys/arch/arm/broadcom/bcm2835_bsc.c: 1.7
	sys/arch/arm/omap/if_cpsw.c: 1.20
	sys/arch/arm/omap/tiotg.c: 1.7
	sys/arch/evbarm/conf/RPI2_INSTALL: 1.3
	sys/dev/ic/sl811hs.c: 1.98
	sys/dev/usb/ehci.c: 1.256
	sys/dev/usb/if_axe.c: 1.83
	sys/dev/usb/motg.c: 1.18
	sys/dev/usb/ohci.c: 1.274
	sys/dev/usb/ucom.c: 1.119
	sys/dev/usb/uhci.c: 1.277
	sys/dev/usb/uhub.c: 1.137
	sys/dev/usb/umass.c: 1.160-1.162
	sys/dev/usb/umass_quirks.c: 1.100
	sys/dev/usb/umass_scsipi.c: 1.55
	sys/dev/usb/usb.c: 1.168
	sys/dev/usb/usb_mem.c: 1.70
	sys/dev/usb/usb_subr.c: 1.221
	sys/dev/usb/usbdi.c: 1.175
	sys/dev/usb/usbdi_util.c: 1.67-1.70
	sys/dev/usb/usbroothub.c: 1.3
	sys/dev/usb/xhci.c: 1.75
	sys/external/bsd/drm2/dist/drm/i915/i915_gem.c: 1.34
	sys/kern/kern_history.c: 1.15
	sys/kern/kern_xxx.c: 1.74
	sys/kern/vfs_bio.c: 1.275-1.276
	sys/miscfs/genfs/genfs_io.c: 1.71
	sys/sys/kernhist.h: 1.21
	sys/ufs/ffs/ffs_balloc.c: 1.63
	sys/ufs/lfs/lfs_vfsops.c: 1.361
	sys/ufs/lfs/ulfs_inode.c: 1.21
	sys/ufs/lfs/ulfs_vnops.c: 1.52
	sys/ufs/ufs/ufs_inode.c: 1.102
	sys/ufs/ufs/ufs_vnops.c: 1.239
	sys/uvm/pmap/pmap.c: 1.37-1.39
	sys/uvm/pmap/pmap_tlb.c: 1.22
	sys/uvm/uvm_amap.c: 1.108
	sys/uvm/uvm_anon.c: 1.64
	sys/uvm/uvm_aobj.c: 1.126
	sys/uvm/uvm_bio.c: 1.91
	sys/uvm/uvm_device.c: 1.66
	sys/uvm/uvm_fault.c: 1.201
	sys/uvm/uvm_km.c: 1.144
	sys/uvm/uvm_loan.c: 1.85
	sys/uvm/uvm_map.c: 1.353
	sys/uvm/uvm_page.c: 1.194
	sys/uvm/uvm_pager.c: 1.111
	sys/uvm/uvm_pdaemon.c: 1.109
	sys/uvm/uvm_swap.c: 1.175
	sys/uvm/uvm_vnode.c: 1.103
	usr.bin/vmstat/vmstat.c: 1.219
Reorder to test for null before null deref in debug code
--
Reorder to test for null before null deref in debug code
--
KNF
--
No need for '\n' in UVMHIST_LOG
--
normalise a BIOHIST log message
--
Update the kernhist(9) kernel history code to address issues identified
in PR kern/52639, as well as some general cleaning-up...
(As proposed on tech-kern@ with additional changes and enhancements.)
Details of changes:
* All history arguments are now stored as uintmax_t values[1], both in
   the kernel and in the structures used for exporting the history data
   to userland via sysctl(9).  This avoids problems on some architectures
   where passing a 64-bit (or larger) value to printf(3) can cause it to
   process the value as multiple arguments.  (This can be particularly
   problematic when printf()'s format string is not a literal, since in
   that case the compiler cannot know how large each argument should be.)
* Update the data structures used for exporting kernel history data to
   include a version number as well as the length of history arguments.
* All [2] existing users of kernhist(9) have had their format strings
   updated.  Each format specifier now includes an explicit length
   modifier 'j' to refer to numeric values of the size of uintmax_t.
* All [2] existing users of kernhist(9) have had their format strings
   updated to replace uses of "%p" with "%#jx", and the pointer
   arguments are now cast to (uintptr_t) before being subsequently cast
   to (uintmax_t).  This is needed to avoid compiler warnings about
   casting "pointer to integer of a different size."
* All [2] existing users of kernhist(9) have had instances of "%s" or
   "%c" format strings replaced with numeric formats; several instances
   of mis-match between format string and argument list have been fixed.
* vmstat(1) has been modified to handle the new size of arguments in the
   history data as exported by sysctl(9).
* vmstat(1) now provides a warning message if the history requested with
   the -u option does not exist (previously, this condition was silently
   ignored, with only a single blank line being printed).
* vmstat(1) now checks the version and argument length included in the
   data exported via sysctl(9) and exits if they do not match the values
   with which vmstat was built.
* The kernhist(9) man-page has been updated to note the additional
   requirements imposed on the format strings, along with several other
   minor changes and enhancements.
[1] It would have been possible to use an explicit length (for example,
     uint64_t) for the history arguments.  But that would require another
     "rototill" of all the users in the future when we add support for an
     architecture that supports a larger size.  Also, the printf(3)
format
     specifiers for explicitly-sized values, such as "%"PRIu64, are much
     more verbose (and less aesthetically appealing, IMHO) than simply
     using "%ju".
[2] I've tried very hard to find "all [the] existing users of
kernhist(9)"
     but it is possible that I've missed some of them.  I would be glad
to
     update any stragglers that anyone identifies.
--
For some reason this single kernel seems to have outgrown its declared
size as a result of the kernhist(9) changes.  Bump the size.
XXX The amount of increase may be excessive - anyone with more detailed
XXX knowledge please feel free to further adjust the value
appropriately.
--
Misssed one cast of pointer --> uintptr_t in previous kernhist(9) commit
--
And yet another one.  :(
--
Use correct mark-up for NetBSD version.
--
More improvements in grammar and readability.
--
Remove a stray '"' (obvious typo) and add a couple of casts that are
probably needed.
--
And replace an instance of "%p" conversion with "%#jx"
--
Whitespace fix. Give Bl tag table a width. Fix Xr.

Revision 1.22.2.1
Sat Oct 28 00:37:13 2017 UTC (7 years, 6 months ago) by jdolecek
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.22: +0 -1082 lines
file pmap_tlb.c was added on branch tls-maxphys on 2017-12-03 11:39:23 +0000

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Oct 28 00:37:13 2017 UTC (7 years, 6 months ago) by pgoyette
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Branch point for: tls-maxphys
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +21 -18 lines
Update the kernhist(9) kernel history code to address issues identified
in PR kern/52639, as well as some general cleaning-up...

(As proposed on tech-kern@ with additional changes and enhancements.)

Details of changes:

* All history arguments are now stored as uintmax_t values[1], both in
  the kernel and in the structures used for exporting the history data
  to userland via sysctl(9).  This avoids problems on some architectures
  where passing a 64-bit (or larger) value to printf(3) can cause it to
  process the value as multiple arguments.  (This can be particularly
  problematic when printf()'s format string is not a literal, since in
  that case the compiler cannot know how large each argument should be.)

* Update the data structures used for exporting kernel history data to
  include a version number as well as the length of history arguments.

* All [2] existing users of kernhist(9) have had their format strings
  updated.  Each format specifier now includes an explicit length
  modifier 'j' to refer to numeric values of the size of uintmax_t.

* All [2] existing users of kernhist(9) have had their format strings
  updated to replace uses of "%p" with "%#jx", and the pointer
  arguments are now cast to (uintptr_t) before being subsequently cast
  to (uintmax_t).  This is needed to avoid compiler warnings about
  casting "pointer to integer of a different size."

* All [2] existing users of kernhist(9) have had instances of "%s" or
  "%c" format strings replaced with numeric formats; several instances
  of mis-match between format string and argument list have been fixed.

* vmstat(1) has been modified to handle the new size of arguments in the
  history data as exported by sysctl(9).

* vmstat(1) now provides a warning message if the history requested with
  the -u option does not exist (previously, this condition was silently
  ignored, with only a single blank line being printed).

* vmstat(1) now checks the version and argument length included in the
  data exported via sysctl(9) and exits if they do not match the values
  with which vmstat was built.

* The kernhist(9) man-page has been updated to note the additional
  requirements imposed on the format strings, along with several other
  minor changes and enhancements.

[1] It would have been possible to use an explicit length (for example,
    uint64_t) for the history arguments.  But that would require another
    "rototill" of all the users in the future when we add support for an
    architecture that supports a larger size.  Also, the printf(3) format
    specifiers for explicitly-sized values, such as "%"PRIu64, are much
    more verbose (and less aesthetically appealing, IMHO) than simply
    using "%ju".

[2] I've tried very hard to find "all [the] existing users of kernhist(9)"
    but it is possible that I've missed some of them.  I would be glad to
    update any stragglers that anyone identifies.

Revision 1.10.2.5: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:18 2017 UTC (7 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.10.2.4: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.2.4: +5 -5 lines
Sync with HEAD

Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri May 26 06:40:47 2017 UTC (7 years, 11 months ago) by skrll
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base
Branch point for: netbsd-8
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3 lines
Remove incorrect __diagused

Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri May 26 06:38:56 2017 UTC (7 years, 11 months ago) by skrll
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +4 -4 lines
Use the define name PMAP_HWPAGEWALKER and not PMAP_TLB_HWPAGEWALKER

Revision 1.10.2.4: download - view: text, markup, annotated - select for diffs
Mon Dec 5 10:55:30 2016 UTC (8 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.10.2.3: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.3: +3 -3 lines
Sync with HEAD

Revision 1.17.2.2: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:23 2016 UTC (8 years, 5 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.17.2.1: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.2.1: +3 -3 lines
Sync with HEAD

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Oct 9 14:51:50 2016 UTC (8 years, 6 months ago) by christos
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20170204, nick-nhusb-base-20161204, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3 lines
PR/51540: Henning Petersen: replace , with ;

Revision 1.10.2.3: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:56:12 2016 UTC (8 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.10.2.2: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.2: +126 -78 lines
Sync with HEAD

Revision 1.17.2.1: download - view: text, markup, annotated - select for diffs
Tue Jul 26 03:24:24 2016 UTC (8 years, 9 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +11 -7 lines
Sync with HEAD

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Jul 23 20:06:25 2016 UTC (8 years, 9 months ago) by matt
Branches: MAIN
CVS tags: pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, localcount-20160914
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +11 -7 lines
Lock the tlbinfo if it wasn't when doing a pmap_tlb_pai_check

Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Jul 14 15:50:31 2016 UTC (8 years, 9 months ago) by skrll
Branches: MAIN
CVS tags: pgoyette-localcount-base
Branch point for: pgoyette-localcount
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
Use KERNEL_PID instead of 0

Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Jul 14 15:49:43 2016 UTC (8 years, 9 months ago) by skrll
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -4 lines
Fix some comments.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Jul 14 04:51:47 2016 UTC (8 years, 9 months ago) by skrll
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3 lines
Trailing whitespace

Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Jul 12 15:30:46 2016 UTC (8 years, 9 months ago) by skrll
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3 lines
Fix typo for build check

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Jul 11 16:06:09 2016 UTC (8 years, 9 months ago) by matt
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +118 -74 lines
Changes so that MIPS can use the common pmap.
Change/augment the virtual cache alias callbacks.

Revision 1.10.2.2: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:18 2015 UTC (9 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.10.2.1: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.1: +7 -6 lines
Sync with HEAD

Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Jun 11 05:28:42 2015 UTC (9 years, 10 months ago) by matt
Branches: MAIN
CVS tags: nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +6 -5 lines
Don't call kcpuset_intersecting_p and then kcpuset_ffs_intersecting since
that the last will tell use what we need to know.

Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:31 2015 UTC (9 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3 lines
Sync with HEAD

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Apr 18 16:58:31 2015 UTC (10 years ago) by joerg
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3 lines
pmap_tlb_intersecting_active_p is not used in some combinations of
platform options as seen by recent ARM changes.

Revision 1.8.4.1: download - view: text, markup, annotated - select for diffs
Sun Nov 9 16:05:25 2014 UTC (10 years, 5 months ago) by martin
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +3 -3 lines
Pull up following revision(s) (requested by skrll in ticket #188):
	sys/arch/arm/include/arm32/pmap.h: revision 1.136
	sys/arch/arm/include/armreg.h: revision 1.100
	sys/arch/arm/cortex/gic.c: revision 1.11
	sys/arch/arm/arm32/db_interface.c: revision 1.54
	sys/arch/arm/include/armreg.h: revision 1.101
	sys/arch/arm/cortex/gic.c: revision 1.12
	sys/arch/arm/arm32/arm32_machdep.c: revision 1.107
	sys/arch/arm/arm/cpufunc_asm_armv7.S: revision 1.19
	sys/arch/arm/cortex/a9_mpsubr.S: revision 1.20
	sys/arch/evbarm/conf/BPI: revision 1.5
	sys/arch/arm/cortex/a9_mpsubr.S: revision 1.21
	sys/arch/arm/arm32/pmap.c: revision 1.306
	sys/arch/arm/arm32/db_machdep.c: revision 1.22
	sys/arch/arm/arm32/arm32_tlb.c: revision 1.3
	sys/arch/arm/arm/undefined.c: revision 1.55
	sys/arch/arm/cortex/a9_mpsubr.S: revision 1.22
	sys/arch/arm/arm32/pmap.c: revision 1.307
	sys/arch/arm/arm32/arm32_tlb.c: revision 1.4
	sys/arch/arm/cortex/a9_mpsubr.S: revision 1.23
	sys/arch/arm/arm32/arm32_tlb.c: revision 1.5
	sys/arch/evbarm/conf/BPI: revision 1.8
	sys/arch/arm/cortex/a9_mpsubr.S: revision 1.24
	sys/arch/arm/arm32/arm32_tlb.c: revision 1.6
	sys/arch/arm/arm32/arm32_tlb.c: revision 1.7
	sys/arch/evbarm/conf/CUBIETRUCK: revision 1.5
	sys/arch/arm/pic/pic.c: revision 1.23
	sys/arch/arm/pic/pic.c: revision 1.24
	sys/arch/arm/pic/picvar.h: revision 1.11
	sys/arch/arm/arm/cpufunc_asm_armv7.S: revision 1.20
	sys/arch/arm/mainbus/cpu_mainbus.c: revision 1.16
	sys/arch/arm/arm32/pmap.c: revision 1.298
	sys/arch/arm/arm/cpufunc_asm_arm11.S: revision 1.17
	sys/arch/arm/arm/cpufunc_asm_pj4b.S: revision 1.5
	sys/arch/arm/arm32/pmap.c: revision 1.310
	sys/arch/arm/arm32/pmap.c: revision 1.311
	sys/arch/arm/arm32/arm32_kvminit.c: revision 1.32
	sys/arch/arm/cortex/a9_mpsubr.S: revision 1.19
	sys/arch/arm/arm32/arm32_boot.c: revision 1.10
	sys/arch/arm/arm/ast.c: revision 1.25
	sys/arch/arm/include/armreg.h: revision 1.98
	sys/uvm/pmap/pmap_tlb.c: revision 1.10
	sys/arch/arm/arm32/arm32_boot.c: revision 1.8
	sys/arch/arm/arm32/arm32_boot.c: revision 1.9
	sys/arch/arm/arm/arm_machdep.c: revision 1.43
Various ARM MP fixes.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Oct 29 10:53:41 2014 UTC (10 years, 6 months ago) by skrll
Branches: MAIN
CVS tags: nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
s/0/KERNEL_PID/ for correctness

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Oct 18 09:54:19 2014 UTC (10 years, 6 months ago) by skrll
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3 lines
Minor comment update.

Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:19 2014 UTC (10 years, 11 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.1.2.2: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.2: +233 -94 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.1.4.2: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:22 2014 UTC (10 years, 11 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.1.4.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.4.1: +145 -57 lines
sync with head

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Apr 3 14:46:25 2014 UTC (11 years ago) by matt
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -3 lines
Change cpu_tlb_info definition based on PMAP_TLB_MAX instead of MULTIPROCESSOR

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Apr 3 14:23:38 2014 UTC (11 years ago) by matt
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3 lines
Compare ASIDs, not pmaps.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Apr 3 13:54:59 2014 UTC (11 years ago) by matt
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -3 lines
Make this compile on booke again.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Mar 30 15:26:15 2014 UTC (11 years, 1 month ago) by matt
Branches: MAIN
CVS tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +145 -57 lines
Allow this to handle H/W tlbs.  Some ARM allow for a cheap way to flush all
entries using an ASID from the TLB.  Add support for taking advantage of it.
Most ARMs don't have an easy way to find out what's in the TLB so make
record_asids can just say all ASIDs are in use.  Fix some off by 1 errors.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Mar 18 18:20:44 2014 UTC (11 years, 1 month ago) by riastradh
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
Merge riastradh-drm2 to HEAD.

Revision 1.1.4.1: download - view: text, markup, annotated - select for diffs
Wed Aug 28 23:59:38 2013 UTC (11 years, 8 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +96 -45 lines
sync with head

Revision 1.2.2.1: download - view: text, markup, annotated - select for diffs
Tue Jul 23 21:07:38 2013 UTC (11 years, 9 months ago) by riastradh
Branches: riastradh-drm2
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +88 -39 lines
sync with HEAD

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Jul 17 23:15:20 2013 UTC (11 years, 9 months ago) by matt
Branches: MAIN
CVS tags: riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +88 -39 lines
Make this kcpuset_t instead of the private __cpuset_t
Add improvements for single TLB implementation (PPC, ARM).

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Jul 2 09:35:48 2013 UTC (11 years, 9 months ago) by matt
Branches: MAIN
CVS tags: riastradh-drm2-base
Branch point for: riastradh-drm2
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +11 -9 lines
Split tlb related stuff into pmap_tlb.h so that can be used for ASID mgmt
for non-soft TLB pmaps.

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:23:03 2012 UTC (12 years, 6 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.1: +891 -0 lines
sync with head

Revision 1.1.2.1
Wed Oct 3 00:51:47 2012 UTC (12 years, 6 months ago) by yamt
Branches: yamt-pagecache
FILE REMOVED
Changes since revision 1.1: +0 -891 lines
file pmap_tlb.c was added on branch yamt-pagecache on 2012-10-30 17:23:03 +0000

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Oct 3 00:51:47 2012 UTC (12 years, 6 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, khorben-n900, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, rmind-smpnet
move from common/pmap/tlb -> uvm/pmap

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>