The NetBSD Project

CVS log for src/sys/uvm/uvm_physseg.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.17.20.1 / (download) - annotate - [select for diffs], Mon Jan 15 14:15:54 2024 UTC (5 weeks, 3 days ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC4, netbsd-10-0-RC3
Changes since 1.17: +4 -4 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Pull up following revision(s) (requested by tnn in ticket #554):

	sys/uvm/uvm_physseg.c: revision 1.20
	sys/uvm/uvm_pglist.c: revision 1.91
	sys/uvm/uvm_pglist.c: revision 1.92
	sys/uvm/uvm_physseg.h: revision 1.9

uvm: change type of uvm_physseg.start_hint from u_int to u_long
Avoids assertion failure in uvm_pglistalloc_s_ps() with large paddrs.
PR kern/57683.

fix DEBUG build

Revision 1.20 / (download) - annotate - [select for diffs], Sat Jan 13 09:44:42 2024 UTC (5 weeks, 6 days ago) by tnn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.19: +4 -4 lines
Diff to previous 1.19 (colored)

uvm: change type of uvm_physseg.start_hint from u_int to u_long

Avoids assertion failure in uvm_pglistalloc_s_ps() with large paddrs.
PR kern/57683.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Sep 23 18:20:20 2023 UTC (5 months ago) by ad
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Changes since 1.18: +43 -5 lines
Diff to previous 1.18 (colored)

uvm_phys_to_vm_page() turns out to be a fairly central routine due to the
way that some of the pmaps work, so try to optimise it a little.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Apr 9 09:00:56 2023 UTC (10 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.17: +9 -5 lines
Diff to previous 1.17 (colored)

uvm(9): KASSERT(A && B) -> KASSERT(A); KASSERT(B)

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jul 15 15:08:26 2020 UTC (3 years, 7 months ago) by rin
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, netbsd-10-base, netbsd-10-0-RC2, netbsd-10-0-RC1, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

Fix typo. Use PRIxPADDR rather than casting.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jul 13 10:46:10 2020 UTC (3 years, 7 months ago) by mrg
Branch: MAIN
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored)

paddr_t can't be printed by "%lx" in some platforms.

fix the eg, i386 build.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jul 13 05:52:50 2020 UTC (3 years, 7 months ago) by mrg
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

actually show the start/end that failed start < end in uvm_page_physload().

Revision 1.9.4.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:21 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.9.4.1: +0 -4 lines
Diff to previous 1.9.4.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.9.4.1 / (download) - annotate - [select for diffs], Wed Apr 8 14:09:05 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.9: +19 -11 lines
Diff to previous 1.9 (colored)

Merge changes from current as of 20200406

Revision 1.14 / (download) - annotate - [select for diffs], Sun Mar 15 21:06:30 2020 UTC (3 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Changes since 1.13: +7 -4 lines
Diff to previous 1.13 (colored)

uvm_physseg: cluster fields used during RB tree lookup for PHYS_TO_VM_PAGE().

Revision 1.13 / (download) - annotate - [select for diffs], Sat Dec 21 14:41:44 2019 UTC (4 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.12: +6 -5 lines
Diff to previous 1.12 (colored)

- Rename VM_PGCOLOR_BUCKET() to VM_PGCOLOR().  I want to reuse "bucket" for
  something else soon and TBH it matches what this macro does better.

- Add inlines to set/get locator values in the unused lower bits of
  pg->phys_addr.  Begin by using it to cache the freelist index, because
  computing it is expensive and that shows up during profiling.  Discussed
  on tech-kern.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Dec 20 19:03:17 2019 UTC (4 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.11: +4 -2 lines
Diff to previous 1.11 (colored)

KNF

Revision 1.11 / (download) - annotate - [select for diffs], Fri Dec 13 20:10:22 2019 UTC (4 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.10: +6 -4 lines
Diff to previous 1.10 (colored)

Break the global uvm_pageqlock into a per-page identity lock and a private
lock for use of the pagedaemon policy code.  Discussed on tech-kern.

PR kern/54209: NetBSD 8 large memory performance extremely low
PR kern/54210: NetBSD-8 processes presumably not exiting
PR kern/54727: writing a large file causes unreasonable system behaviour

Revision 1.10 / (download) - annotate - [select for diffs], Fri Sep 20 11:09:43 2019 UTC (4 years, 5 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.9: +1 -5 lines
Diff to previous 1.9 (colored)

Fix programming mistake: 'paddrp' is a pointer given as argument, setting
it to NULL in the called function does not set it to NULL in the caller.

Actually, the callers of these functions do not do anything with the
special error handling, so drop the unused checks and the NULL assignments
altogether.

Found by the lgtm bot.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jan 21 17:58:43 2018 UTC (6 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-base, 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-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
Changes since 1.8: +7 -4 lines
Diff to previous 1.8 (colored)

CID-1427737: Pacify coverity using KASSERT

Revision 1.8.12.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:22 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.8.12.1: +1396 -0 lines
Diff to previous 1.8.12.1 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

update from HEAD

Revision 1.7.2.3 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:17 2017 UTC (6 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.7.2.2: +2 -5 lines
Diff to previous 1.7.2.2 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

Sync with HEAD

Revision 1.6.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:09 2017 UTC (6 years, 10 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.6: +6 -9 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Sync with HEAD

Revision 1.6.2.3 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:54 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.6.2.2: +6 -9 lines
Diff to previous 1.6.2.2 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Sync with HEAD

Revision 1.8.12.1, Sun Mar 19 23:30:39 2017 UTC (6 years, 11 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.8: +0 -1396 lines
FILE REMOVED

file uvm_physseg.c was added on branch tls-maxphys on 2017-12-03 11:39:22 +0000

Revision 1.8 / (download) - annotate - [select for diffs], Sun Mar 19 23:30:39 2017 UTC (6 years, 11 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: tls-maxphys
Changes since 1.7: +2 -5 lines
Diff to previous 1.7 (colored)

__diagused police

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Sun Feb 5 13:41:01 2017 UTC (7 years ago) by skrll
Branch: nick-nhusb
Changes since 1.7.2.1: +1399 -0 lines
Diff to previous 1.7.2.1 (colored) to branchpoint 1.7 (colored)

Sync with HEAD

Revision 1.7.2.1, Thu Feb 2 21:22:08 2017 UTC (7 years ago) by skrll
Branch: nick-nhusb
Changes since 1.7: +0 -1399 lines
FILE REMOVED

file uvm_physseg.c was added on branch nick-nhusb on 2017-02-05 13:41:01 +0000

Revision 1.7 / (download) - annotate - [select for diffs], Thu Feb 2 21:22:08 2017 UTC (7 years ago) by uwe
Branch: MAIN
CVS Tags: nick-nhusb-base-20170204
Branch point for: nick-nhusb
Changes since 1.6: +5 -5 lines
Diff to previous 1.6 (colored)

Add missing spaces in split string literals.

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:53 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.6.2.1: +1399 -0 lines
Diff to previous 1.6.2.1 (colored) to branchpoint 1.6 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.6.2.1, Thu Dec 29 12:58:38 2016 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.6: +0 -1399 lines
FILE REMOVED

file uvm_physseg.c was added on branch pgoyette-localcount on 2017-01-07 08:56:53 +0000

Revision 1.6 / (download) - annotate - [select for diffs], Thu Dec 29 12:58:38 2016 UTC (7 years, 1 month ago) by rin
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

Protect uvm_physseg_set_avail_{start,end} by UVM_PHYSSEG_LEGACY.
All the ports other than acorn26 do not use them any longer.
Ok cherry

Revision 1.5 / (download) - annotate - [select for diffs], Sun Dec 25 06:30:58 2016 UTC (7 years, 2 months ago) by cherry
Branch: MAIN
Changes since 1.4: +24 -30 lines
Diff to previous 1.4 (colored)

Make uvm_physseg_set_avail_start(9) available unconditional to UVM_HOTPLUG

Revision 1.4 / (download) - annotate - [select for diffs], Sun Dec 25 03:39:26 2016 UTC (7 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.3: +10 -1 lines
Diff to previous 1.3 (colored)

Provide a set_available_start method for the non UVM_HOTPLUG case.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Dec 23 07:42:32 2016 UTC (7 years, 2 months ago) by cherry
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

Omitted assigning handle return value for the case:
(VM_PHYSSEG_STRAT == VM_PSTRAT_RANDOM)

Fix this.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Dec 22 08:15:20 2016 UTC (7 years, 2 months ago) by cherry
Branch: MAIN
Changes since 1.1: +17 -17 lines
Diff to previous 1.1 (colored)

convention about function names for predicate checking:
s/uvm_physseg_valid()/uvm_physseg_valid_p()/

per. matt@

Revision 1.1 / (download) - annotate - [select for diffs], Mon Dec 19 12:21:29 2016 UTC (7 years, 2 months ago) by cherry
Branch: MAIN

This is a preview of the uvm_hotplug(9) api code.
This commit does not actually introduce the UVM_HOTPLUG option.
However it does provide developers a way to review, test and try out
the API.

To do this, please go to tests/sys/uvm/ and build and run the tests
there. The tests also have a set of basic load tests, to get a measure
of the performance penalties due to enabling the UVM_HOTPLUG option.

In order to build the tests you need to have at least done the
following in $SRC/

cd $SRC; $NBMAKE do-distrib-dirs includes
cd $SRC/lib/csu; $NBMAKE all install || exit
cd $SRC/external/gpl3/gcc/lib/libgcc/libgcc_s; $NBMAKE all install || exit
cd $SRC/external/gpl3/gcc/lib/libgcc/libgcc; $NBMAKE all install || exit
cd $SRC/lib/libc; $NBMAKE includes all install || exit
cd $SRC/lib/libpthread; $NBMAKE all install || exit
cd $SRC/lib/libm; $NBMAKE all install || exit
cd $SRC/external/gpl3/gcc/lib/libstdc++-v3/; $NBMAKE all install || exit

Once the development environment has these userspace libraries, one
can simple build using $NBMAKE and finally test the kernel API using

atf-run|atf-report

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>