ƒ²s206000 162 298 321 122 148 592 592 97 203 203 571 571 162 162 634 644 135 103 302 185 138 234 132 221 308 1214 330 411 324 326 158 510 216 122 351 181 117 174 114 203 163 153 378 306 611 1522 1522 430 416 138 122 122 1335 246 163 127 602 239 244 204 114 121 412 327 417 144 129 349 1029 624 496 943 233 638 160 121 168 163 168 122 294 125 365 973 121 122 271 210 228 165 585 211 127 128 297 487 304 180 810 708 136 136 185 1023 223 117 114 250 330 310 187 233 241 192 381 192 224 410 155 368 899 770 278 278 282 121 122 129 163 324 791 685 232 338 130 148 118 207 377 256 256 300 159 190 166 356 956 304 390 160 136 593 172 205 187 135 239 216 116 432 166 117 2534 K 10 svn:author V 3 mav K 8 svn:date V 27 2010-03-31T20:37:44.279900Z K 7 svn:log V 205 Make ng_ppp fulfill upper protocol stack layers alignment requirements on platforms with strict alignment constraints. This fixes kernel panics on arm and probably other architectures. PR: sparc64/80410 END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-03-31T20:43:24.865267Z K 7 svn:log V 225 Hook the identification LEDs of igb(4), lem(4) and em(4) devices up with led(4) so they can be lit or f.e. made blink via `echo f2 > /dev/led/em0` for localization purposes. Approved by: jfv MFC afer: 1 week (after r205869) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2010-03-31T20:55:13.105342Z K 7 svn:log V 26 Update to 1.2.4.1 (beta). END K 10 svn:author V 3 des K 8 svn:date V 27 2010-03-31T21:12:27.685268Z K 7 svn:log V 56 MD5 handling - currently, conversion to and from string END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-03-31T21:32:52.463708Z K 7 svn:log V 496 MFC: r204152, r204164 Some machines can not only consist of CPUs running at different speeds but also of different types, f.e. Sun Fire V890 can be equipped with a mix of UltraSPARC IV and IV+ CPUs, requiring different MMU initialization and different workarounds for model specific errata. Therefore move the CPU implementation number from a global variable to the per-CPU data. Functions which are called before the latter is available are passed the implementation number as a parameter now. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-03-31T21:32:52.703942Z K 7 svn:log V 496 MFC: r204152, r204164 Some machines can not only consist of CPUs running at different speeds but also of different types, f.e. Sun Fire V890 can be equipped with a mix of UltraSPARC IV and IV+ CPUs, requiring different MMU initialization and different workarounds for model specific errata. Therefore move the CPU implementation number from a global variable to the per-CPU data. Functions which are called before the latter is available are passed the implementation number as a parameter now. END K 10 svn:author V 3 des K 8 svn:date V 27 2010-03-31T21:33:51.665155Z K 7 svn:log V 6 reorg END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-03-31T21:41:00.886855Z K 7 svn:log V 107 MFC: r204153 Starting with UltraSPARC IV CPUs the CPU caches are described with different OFW properties. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-03-31T21:41:03.542217Z K 7 svn:log V 107 MFC: r204153 Starting with UltraSPARC IV CPUs the CPU caches are described with different OFW properties. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-03-31T21:57:48.972320Z K 7 svn:log V 475 MFC: r205258 - Add TTE and context register bits for the additional page sizes supported by UltraSparc-IV and -IV+ as well as SPARC64 V, VI, VII and VIIIfx CPUs. - Replace TLB_PCXR_PGSZ_MASK and TLB_SCXR_PGSZ_MASK with TLB_CXR_PGSZ_MASK which just is the complement of TLB_CXR_CTX_MASK instead of trying to assemble it from the page size bits which vary across CPUs. - Add macros for the remainder of the SFSR bits, which are useful for at least debugging purposes. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-03-31T21:57:49.337645Z K 7 svn:log V 475 MFC: r205258 - Add TTE and context register bits for the additional page sizes supported by UltraSparc-IV and -IV+ as well as SPARC64 V, VI, VII and VIIIfx CPUs. - Replace TLB_PCXR_PGSZ_MASK and TLB_SCXR_PGSZ_MASK with TLB_CXR_PGSZ_MASK which just is the complement of TLB_CXR_CTX_MASK instead of trying to assemble it from the page size bits which vary across CPUs. - Add macros for the remainder of the SFSR bits, which are useful for at least debugging purposes. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-03-31T22:00:22.032142Z K 7 svn:log V 67 MFC: r205263 Add macros for the VER.impl of SPARC64 II to VIIIfx. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-03-31T22:00:22.551518Z K 7 svn:log V 67 MFC: r205263 Add macros for the VER.impl of SPARC64 II to VIIIfx. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-03-31T22:05:49.675526Z K 7 svn:log V 538 MFC: r205399 Improve the KVA space sizing of r186682; on machines with large dTLBs we can actually use all of the available lockable entries of the tiny dTLB for the kernel TSB. With this change the KVA space sizing happens to be more in line with the MI one so up to at least 24GB machines KVA doesn't need to be limited manually. This is just another stopgap though, the real solution is to take advantage of ASI_ATOMIC_QUAD_LDD_PHYS on CPUs providing it so we don't need to lock the kernel TSB pages into the dTLB in the first place. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-03-31T22:05:53.801283Z K 7 svn:log V 548 MFC: r205399 Improve the KVA space sizing of r186682 (r190080); on machines with large dTLBs we can actually use all of the available lockable entries of the tiny dTLB for the kernel TSB. With this change the KVA space sizing happens to be more in line with the MI one so up to at least 24GB machines KVA doesn't need to be limited manually. This is just another stopgap though, the real solution is to take advantage of ASI_ATOMIC_QUAD_LDD_PHYS on CPUs providing it so we don't need to lock the kernel TSB pages into the dTLB in the first place. END K 10 svn:author V 3 mav K 8 svn:date V 27 2010-03-31T22:11:06.784737Z K 7 svn:log V 43 Make ng_l2tp irrelevant to data alignment. END K 10 svn:author V 3 des K 8 svn:date V 27 2010-03-31T22:11:19.005906Z K 7 svn:log V 11 More reorg END K 10 svn:author V 3 mav K 8 svn:date V 27 2010-03-31T22:16:05.381763Z K 7 svn:log V 209 Make ng_ksocket fulfill lower protocol stack layers alignment requirements on platforms with strict alignment constraints. This fixes kernel panics on arm and probably other architectures. PR: sparc64/80410 END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-03-31T22:19:00.664768Z K 7 svn:log V 90 - Take advantage of the INTCLR_* macros. - Right-justify the backslashes as per style(9). END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-03-31T22:27:33.192048Z K 7 svn:log V 43 Don't re-implement device_get_nameunit(9). END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-03-31T22:32:56.418064Z K 7 svn:log V 138 Use device_get_nameunit(9) rather than device_get_name(9) so one can identify the reporting bridge in machines with multiple PCI domains. END K 10 svn:author V 3 mav K 8 svn:date V 27 2010-03-31T22:47:55.347708Z K 7 svn:log V 40 Remove some more alignment constraints. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2010-03-31T23:02:25.976274Z K 7 svn:log V 124 Add definition of IPv6 mobility header's protocol number, as assigned by IANA and defined in RFC 3775. Obtained from: KAME END K 10 svn:author V 3 jfv K 8 svn:date V 27 2010-03-31T23:24:42.517701Z K 7 svn:log V 215 The POLL code was missed in the queue conversion, change the argument type to igb_rxeof() to the correct type. Note, any users of POLLING must be sure and set the number of queues to 1 for things to work correctly. END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2010-04-01T00:36:40.645917Z K 7 svn:log V 1118 MFC 205066, 205069, 205093, 205097, 205488: r205066: Log: - restructure flowtable to support ipv6 - add a name argument to flowtable_alloc for printing with ddb commands - extend ddb commands to print destination address or 4-tuples - don't parse ports in ulp header if FL_HASH_ALL is not passed - add kern_flowtable_insert to enable more generic use of flowtable (e.g. system calls for adding entries) - don't hash loopback addresses - cleanup whitespace - keep statistics per-cpu for per-cpu flowtables to avoid cache line contention - add sysctls to accumulate stats and report aggregate r205069: Log: fix stats reporting sysctl r205093: Log: re-update copyright to 2010 pointed out by danfe@ r205097: Log: flowtable_get_hashkey is only used by a DDB function - move under #ifdef DDB pointed out by jkim@ r205488: Log: - boot-time size the ipv4 flowtable and the maximum number of flows - increase flow cleaning frequency and decrease flow caching time when near the flow limit - stop allocating new flows when within 3% of maxflows don't start allocating again until below 12.5% END K 10 svn:author V 7 delphij K 8 svn:date V 27 2010-04-01T00:38:38.698239Z K 7 svn:log V 233 MFC r205656: Check that gl_pathc is bigger than zero before derefencing gl_pathv. When gl_pathc == 0, the content of gl_pathv is undefined. PR: bin/144761 Submitted by: David BERARD Obtained from: OpenBSD END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2010-04-01T01:16:00.995371Z K 7 svn:log V 313 - Factor code to destroy an ALQ out of alq_close() into a private alq_destroy(). - Use the new alq_destroy() to properly handle a failure case in alq_open(). Sponsored by: FreeBSD Foundation Reviewed by: dwmalone, jeff, rpaulo, rwatson (as part of a larger patch) Approved by: kmacy (mentor) MFC after: 1 month END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2010-04-01T01:23:36.443042Z K 7 svn:log V 226 According to SLEEP(9), msleep() is deprecated in favour of mtx_sleep(). Sponsored by: FreeBSD Foundation Reviewed by: dwmalone, jeff, rpaulo, rwatson (as part of a larger patch) Approved by: kmacy (mentor) MFC after: 1 month END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2010-04-01T01:27:10.621683Z K 7 svn:log V 228 The ALQ should not be considered drained until it has been made inactive. Sponsored by: FreeBSD Foundation Reviewed by: dwmalone, jeff, rpaulo, rwatson (as part of a larger patch) Approved by: kmacy (mentor) MFC after: 1 month END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2010-04-01T01:49:43.048773Z K 7 svn:log V 63 Add a couple missing basic mode page codes. MFC after: 1 week END K 10 svn:author V 3 imp K 8 svn:date V 27 2010-04-01T02:03:28.364134Z K 7 svn:log V 417 MFC: r197542: - When we run our trap cleanup handler, echo that we are running this handler to make it more clear why we are 'suddenly' running df, umount, and mdconfig. - Remove trap handler again after we have unconfigured the memory device etc. Before we could end up running the trap handler if a later stage failed, which was a bit confusing and not really useful. MFC after: 2 weeks END K 10 svn:author V 6 marcel K 8 svn:date V 27 2010-04-01T02:41:50.928228Z K 7 svn:log V 120 MFC rev 199602, 200739, 203177, 203350, 203352, 205495, 205527, 205535 and 205569: Sync MPC85xx/Book-E with 9-current. END K 10 svn:author V 3 mav K 8 svn:date V 27 2010-04-01T10:41:01.866931Z K 7 svn:log V 30 Remove alignment constraints. END K 10 svn:author V 4 joel K 8 svn:date V 27 2010-04-01T11:30:46.378388Z K 7 svn:log V 257 Fix the gap between mute and lowest possible volume. The es1370 mixer volumes were incorrectly calculated. I've tested this with one of my es1370 cards and I can confirm that it works. PR: 98167 Submitted by: Joseph Terner Approved by: kib END K 10 svn:author V 5 decke K 8 svn:date V 27 2010-04-01T12:18:44.333670Z K 7 svn:log V 87 - Add myself to the ports committer list Approved by: miwi (mentor), beat (co-mentor) END K 10 svn:author V 5 simon K 8 svn:date V 27 2010-04-01T12:25:40.817339Z K 7 svn:log V 23 Import OpenSSL 0.9.8n. END K 10 svn:author V 5 decke K 8 svn:date V 27 2010-04-01T12:26:29.425947Z K 7 svn:log V 80 - Add my birthday to the calendar Approved by: miwi (mentor), beat (co-mentor) END K 10 svn:author V 5 simon K 8 svn:date V 27 2010-04-01T12:26:32.671408Z K 7 svn:log V 20 Tag OpenSSL 0.9.8n. END K 10 svn:author V 3 des K 8 svn:date V 27 2010-04-01T13:11:39.801228Z K 7 svn:log V 110 Add a debugging option (-d) Add a -k option which fingerd(8) passes through to finger(1). MFC after: 2 weeks END K 10 svn:author V 3 des K 8 svn:date V 27 2010-04-01T13:13:09.935668Z K 7 svn:log V 71 Add -k to the recommended fingerd(8) command line. MFC after: 2 weeks END K 10 svn:author V 3 des K 8 svn:date V 27 2010-04-01T13:16:32.939630Z K 7 svn:log V 61 Forgot to initialize the debug variable. MFC after: 2 weeks END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2010-04-01T13:21:04.322842Z K 7 svn:log V 277 MFC r205163: Fix two small bugs. The PowerPC 970 does not support non-coherent memory access, and reflects this by autonomously writing LPTE_M into PTE entries. As such, we should not panic if LPTE_M changes by itself. While here, fix a harmless typo in moea64_sync_icache(). END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2010-04-01T13:27:27.972401Z K 7 svn:log V 205 MFC r204694,204719,205370 Update the page table locking for the 64-bit PMAP. One of these revisions largely reverted the other, so there is a small amount of churn and the addition of some mtx_assert()s. END K 10 svn:author V 3 flz K 8 svn:date V 27 2010-04-01T14:27:29.387829Z K 7 svn:log V 518 Various fixes. - Replace hardcoded INDEX version. [1] - Fix a buffer overlap. [2] - Remove empty package when fetching fails and -K is used. [3] - Remove useless chmod2() after mkdtemp(3). [4] - Replace mkdir(1) call with mkdir(2). [5] - Get rid of some vsystem() calls. - Switch from lstat(2) to open(2) in fexists(). - Try rename(2) in move_file() first. - Bump PKG_INSTALL_VERSION to 20100401. PR: bin/145101 [1], bin/139492 [2], bin/144919 [3] bin/144920 [4], bin/144921 [5] Submitted by: gcooper [1,2,3,4,5] END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-04-01T15:17:50.486742Z K 7 svn:log V 1425 MFC: r205409 - The firmware of Sun Fire V1280 has a misfeature of setting %wstate to 7 which corresponds to WSTATE_KMIX in OpenSolaris whenever calling into it which totally screws us even when restoring %wstate afterwards as spill/fill traps can happen while in OFW. The rather hackish OpenBSD approach of just setting the equivalent of WSTATE_KERNEL to 7 also is no option as we treat %wstate as a bit field. So in order to deal with this problem actually implement spill/fill handlers for %wstate 7 which just act as the WSTATE_KERNEL ones except of theoretically also handling 32-bit, turn off interrupts completely so we don't even take IPIs while in OFW which should ensure we only take spill/fill traps at most and restore %wstate after calling into OFW once we have taken over the trap table. While at it, actually set WSTATE_{,PROM}_KMIX before calling into OFW just like OpenSolaris does, which should at least help testing this change on non-V1280. - Remove comments referring to the %wstate usage in BSD/OS. - Remove the no longer used RSF_ALIGN_RETRY macro. - Correct some trap table addresses in comments. - Ensure %wstate is set to WSTATE_KERNEL when taking over the trap table. - Ensure PSTATE_AM is off when entering or exiting to OFW as well as that interrupts are also completely off when exiting to OFW as the firmware trap table shouldn't be used to handle our interrupts. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-04-01T15:17:52.922609Z K 7 svn:log V 1425 MFC: r205409 - The firmware of Sun Fire V1280 has a misfeature of setting %wstate to 7 which corresponds to WSTATE_KMIX in OpenSolaris whenever calling into it which totally screws us even when restoring %wstate afterwards as spill/fill traps can happen while in OFW. The rather hackish OpenBSD approach of just setting the equivalent of WSTATE_KERNEL to 7 also is no option as we treat %wstate as a bit field. So in order to deal with this problem actually implement spill/fill handlers for %wstate 7 which just act as the WSTATE_KERNEL ones except of theoretically also handling 32-bit, turn off interrupts completely so we don't even take IPIs while in OFW which should ensure we only take spill/fill traps at most and restore %wstate after calling into OFW once we have taken over the trap table. While at it, actually set WSTATE_{,PROM}_KMIX before calling into OFW just like OpenSolaris does, which should at least help testing this change on non-V1280. - Remove comments referring to the %wstate usage in BSD/OS. - Remove the no longer used RSF_ALIGN_RETRY macro. - Correct some trap table addresses in comments. - Ensure %wstate is set to WSTATE_KERNEL when taking over the trap table. - Ensure PSTATE_AM is off when entering or exiting to OFW as well as that interrupts are also completely off when exiting to OFW as the firmware trap table shouldn't be used to handle our interrupts. END K 10 svn:author V 5 simon K 8 svn:date V 27 2010-04-01T15:19:51.013500Z K 7 svn:log V 335 Merge OpenSSL 0.9.8n into head. This fixes CVE-2010-0740 which only affected -CURRENT (OpenSSL 0.9.8m) but not -STABLE branches. I have not yet been able to find out if CVE-2010-0433 impacts FreeBSD. This will be investigated further. Security: CVE-2010-0433, CVE-2010-0740 Security: http://www.openssl.org/news/secadv_20100324.txt END K 10 svn:author V 5 simon K 8 svn:date V 27 2010-04-01T15:35:29.885396Z K 7 svn:log V 321 - Make it slightly simpler to update OpenSSL version information for regenerating OpenSSL manual pages. - Explicitly set the OpenSSL release date so manual pages contain the date OpenSSL was released and not just the date OpenSSL was imported into the FreeBSD base system. - Update for Makefile for OpenSSL 0.9.8n. END K 10 svn:author V 5 simon K 8 svn:date V 27 2010-04-01T15:37:38.887506Z K 7 svn:log V 44 Regenerate manual pages for OpenSSL 0.9.8n. END K 10 svn:author V 3 mav K 8 svn:date V 27 2010-04-01T16:18:16.525743Z K 7 svn:log V 30 Remove alignment constraints. END K 10 svn:author V 3 mav K 8 svn:date V 27 2010-04-01T16:20:36.316960Z K 7 svn:log V 30 Remove alignment constraints. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2010-04-01T16:21:35.951105Z K 7 svn:log V 1241 IOCPARM_MAX defines maximum size of a structure that can be passed directly to ioctl(2). Because of how ioctl command is build using _IO*() macros we have only 13 bits to encode structure size. So the structure can be up to 8kB-1. Currently we define IOCPARM_MAX as PAGE_SIZE. This is IMHO wrong for three main reasons: 1. It is confusing on archs with page size larger than 8kB (not really sure if we support such archs (sparc64?)), as even if PAGE_SIZE is bigger than 8kB, we won't be able to encode anything larger in ioctl command. 2. It is a waste. Why the structure can be only 4kB on most archs if we have 13 bits dedicated for that, not 12? 3. It shouldn't depend on architecture and page size. My ioctl command can work on one arch, but can't on the other? Increase IOCPARM_MAX to 8kB and make it independed of PAGE_SIZE and architecture it is compiled for. This allows to use all the bits on all the archs for size. Note that this doesn't mean we will copy more on every ioctl(2) call. No. We still copyin(9)/copyout(9) only exact number of bytes encoded in ioctl command. Practical use for this change is ZFS. zfs_cmd_t structure used for ZFS ioctls is larger than 4kB. Silence on: arch@ MFC after: 1 month END K 10 svn:author V 3 imp K 8 svn:date V 27 2010-04-01T17:04:37.170634Z K 7 svn:log V 153 We don't need to note that mkproto is missing anymore. It is definitely OBE in a number of ways, and likely should have been removed in 2000, not 2010. END K 10 svn:author V 3 mav K 8 svn:date V 27 2010-04-01T18:17:53.954787Z K 7 svn:log V 71 Fill extended ATA command registers in cPRD to support 48bit commands. END K 10 svn:author V 3 mav K 8 svn:date V 27 2010-04-01T19:05:43.602468Z K 7 svn:log V 35 Oops! Wrong copy-paste in r206053. END K 10 svn:author V 6 qingli K 8 svn:date V 27 2010-04-01T20:23:43.346331Z K 7 svn:log V 506 MFC 205077 The flow-table module retrieves the destination and source address as well as the transport protocol port information from the outbound packets. The routing code is generic and compares every byte in the given sockaddr object. Therefore the temporary sockaddr objects must be cleared due to padding bytes. In addition, the port information must be stripped or the route search will either fail or return the incorrect route entry. Unit testing is done using OpenVPN over the if_tun interface. END K 10 svn:author V 6 brucec K 8 svn:date V 27 2010-04-01T21:20:19.788298Z K 7 svn:log V 143 Specify the parameter in the format_k2 prototype. This fixes top on ARM, which assumes that format_k2 takes an int. Approved by: rrs (mentor) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2010-04-01T21:21:45.843823Z K 7 svn:log V 147 For now, hardcode FreeBSD configuration that will never change on zlib.h: unifdef -D_FILE_OFFSET_BITS=64 -U_LFS64_LARGEFILE -U_LARGEFILE64_SOURCE END K 10 svn:author V 7 delphij K 8 svn:date V 27 2010-04-01T22:52:09.800635Z K 7 svn:log V 107 Remove _LARGEFILE64_SOURCE==1 case which is supposed to be always false on FreeBSD. Pointed out by: dougb END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2010-04-01T23:22:17.475457Z K 7 svn:log V 20 fix notowned assert END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2010-04-01T23:35:35.365233Z K 7 svn:log V 27 fix previous fix fix style END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2010-04-02T01:53:48.656887Z K 7 svn:log V 314 Add SAVENAME to the cn_flags for all cases in the experimental NFS server for the CREATE cn_nameiop where SAVESTART isn't set. I was not aware that this needed to be done by the caller until recently. Tested by: lampa AT fit.vutbr.cz (link case) Submitted by: lampa AT fit.vutbr.cz (link case) MFC after: 2 weeks END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2010-04-02T02:17:15.719203Z K 7 svn:log V 229 Go back to 64-bit PTEs on N64. Nothing much has been updated for this but some format strings. Ifdef out some code that's only used by the recursive mappings that are used to map >=512mb pages in the page table on O32 and N32. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2010-04-02T02:19:28.778191Z K 7 svn:log V 319 For the experimental NFS server, add a call to free the lookup path buffer for one case where it was missing when doing mkdir. This could have conceivably resulted in a leak of a buffer, but a leak was never observed during testing, so I suspect it would have occurred rarely, if ever, in practice. MFC after: 2 weeks END K 10 svn:author V 6 marcel K 8 svn:date V 27 2010-04-02T04:30:21.662309Z K 7 svn:log V 49 Merge svn+ssh://svn.freebsd.org/base/head@206063 END K 10 svn:author V 3 imp K 8 svn:date V 27 2010-04-02T04:42:02.967080Z K 7 svn:log V 37 port of netbsd nopriv install branch END K 10 svn:author V 6 qingli K 8 svn:date V 27 2010-04-02T04:58:17.647322Z K 7 svn:log V 253 MFC 201131 introduce a local variable rte acting as a cache of ro->ro_rt within ip_output, achieving (in random order of importance): - a reduction of the number of 'r's in the source code; - improved legibility; - a reduction of 64 bytes in the .text END K 10 svn:author V 6 qingli K 8 svn:date V 27 2010-04-02T05:02:50.429192Z K 7 svn:log V 933 MFC 204902 One of the advantages of enabling ECMP (a.k.a RADIX_MPATH) is to allow for connection load balancing across interfaces. Currently the address alias handling method is colliding with the ECMP code. For example, when two interfaces are configured on the same prefix, only one prefix route is installed. So connection load balancing among the available interfaces is not possible. The other advantage of ECMP is for failover. The issue with the current code, is that the interface link-state is not reflected in the route entry. For example, if there are two interfaces on the same prefix, the cable on one interface is unplugged, new and existing connections should switch over to the other interface. This is not done today and packets go into a black hole. Also, there is a small bug in the kernel where deleting ECMP routes in the userland will always return an error even though the command is successfully executed. END K 10 svn:author V 6 qingli K 8 svn:date V 27 2010-04-02T05:05:51.366684Z K 7 svn:log V 528 MFC 205024 The if_tap interface is of IFT_ETHERNET type, but it does not set or update the if_link_state variable. As such RT_LINK_IS_UP() fails for the if_tap interface. Also, the RT_LINK_IS_UP() needs to bypass all loopback interfaces because loopback interfaces are considered up logically as long as the system is running. This patch fixes the above issues by setting and updating the if_link_state variable when the tap interface is opened or closed respectively. Similary approach is already done in the if_tun device. END K 10 svn:author V 6 qingli K 8 svn:date V 27 2010-04-02T05:12:46.024232Z K 7 svn:log V 400 MFC 205222 Verify interface up status using its link state only if the interface has such capability. The interface capability flag indicates whether such capability exists. This approach is much more backward compatible. Physical device driver changes will be part of another commit. Also updated the ifconfig utility to show the LINKSTATE capability if present. Reviewed by: rwatson, imp, juli END K 10 svn:author V 3 imp K 8 svn:date V 27 2010-04-02T05:14:57.674232Z K 7 svn:log V 850 First cut at merging some features from NetBSD's install: o add ability to generate mtree meta files based on what's installed. o add ability to set destdir, so the metadata in the above file can filter that o add some rudamentary support for generating digests of the files there's still some problems with this code (sizes that are generated seem to be wrong) and there's some additional pieces that are needed from NetBSD's install as well as hacks to the build system. We're installing about 17k files now. 10k are recorded in the metadata file, while 7k aren't. The vast majority of which are links of some flavor or another. Pieces to merge still: nopriv install and support for using install to manage links rather than using ln. Also, ee installs its nls files to the wrong place, which will need to be fixed. The metadata shows this. END K 10 svn:author V 6 qingli K 8 svn:date V 27 2010-04-02T05:15:27.530198Z K 7 svn:log V 137 MFC 205268 Set the device capabilities to include dynamic link-state for those modern drivers. Reviewed by: imp (and suggested by imp) END K 10 svn:author V 3 imp K 8 svn:date V 27 2010-04-02T05:21:45.321346Z K 7 svn:log V 545 Start to merge functionality from NetBSD. Merge the ability to specify the full path instead of the relative path. This brings in all of NetBSD's spec.c, with other bits and pieces to support it. This is a work in progress. At the very least we need to cut over to mtree_err in a few more places. We need to bring in the merge code as well, so we can merge the BSD.foo.mtree files with the metadata files to allow the nopriv build to use makefs to build images. mtree gets cranky if you don't list all the dirs before files in the dirs... END K 10 svn:author V 3 imp K 8 svn:date V 27 2010-04-02T05:32:44.896289Z K 7 svn:log V 68 Fix mismerge from my trial tree... $FreeBSD$ really messed me up.. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2010-04-02T05:43:11.798135Z K 7 svn:log V 24 Go back to 32-bit PTEs. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2010-04-02T05:49:14.426574Z K 7 svn:log V 71 o) Adjust format for PTEs. o) Fix O32 build of trap.c with TRAP_DEBUG. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2010-04-02T06:06:50.086352Z K 7 svn:log V 66 Add a macro, CLEAR_PTE_WIRED, to clear software-managed PTE bits. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2010-04-02T06:10:58.334042Z K 7 svn:log V 71 Use MFC0 and MTC0 macros for badvaddr and exc_pc, which may be 64-bit. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2010-04-02T06:15:46.236495Z K 7 svn:log V 25 Remove a few _C_LABEL(). END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2010-04-02T06:24:16.899027Z K 7 svn:log V 196 o) Adjust some shifts, etc., for N64. o) Adjust style in some places to allow for long instruction names used by and to reduce diffs between near-identical sections of code. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2010-04-02T06:41:45.919173Z K 7 svn:log V 28 Fix a SEGSHIFT use for N64. END K 10 svn:author V 8 netchild K 8 svn:date V 27 2010-04-02T06:50:28.356122Z K 7 svn:log V 267 Re-apply r205683 with some modifications: Fix some bogus values in linprocfs. Submitted by: Petr Salinger Verified on: GNU/kFreeBSD debian 8.0-1-686 (by submitter) PR: 144584 Reviewed by / discussed with: kib, des, jhb, submitter END K 10 svn:author V 8 netchild K 8 svn:date V 27 2010-04-02T06:55:31.852060Z K 7 svn:log V 875 WITH_CTF can now be specified in src.conf (not recommended, there are some problems with static executables), make.conf (would also affect ports which do not use GNU make and do not override the compile targets) or in the kernel config (via "makeoptions WITH_CTF=yes"). Additional (related) changes: - propagate WITH_CTF to module builds - do not add -g to the linker flags, it's a noop there anyway (at least according to the man page of ld) - do not add -g to CFLAGS unconditionally we need to have a look if it is really needed (IMO not) or if there is a way to add it only when WITH_CTF is used Note: ctfconvert / ctfmerge lines will not appear in the build output, to protect the innocent (those which do not build with WITH_CTF would see the shell-test and may think WITH_CTF is used). Reviewed by: imp, jhb, scottl (earlier version) Discussed on: arch@ END K 10 svn:author V 8 rdivacky K 8 svn:date V 27 2010-04-02T08:54:30.383748Z K 7 svn:log V 24 Update LLVM to r100181. END K 10 svn:author V 8 rdivacky K 8 svn:date V 27 2010-04-02T08:55:10.914898Z K 7 svn:log V 25 Update clang to r100181. END K 10 svn:author V 2 jh K 8 svn:date V 27 2010-04-02T08:57:39.404402Z K 7 svn:log V 179 MFC r197833: When run() returns an error, print the error message also in non-interactive mode. Previously error messages were printed only in interactive mode. PR: bin/124517 END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-04-02T10:36:40.020023Z K 7 svn:log V 114 - Try do deal gracefully with correctable ECC errors. - Improve the reporting of unhandled kernel and user traps. END K 10 svn:author V 2 ed K 8 svn:date V 27 2010-04-02T11:05:59.324148Z K 7 svn:log V 136 Change how getent utmpx works. - Always require active, log or lastlogin to be provided. - Allow the user to provide custom filenames. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2010-04-02T11:07:55.264848Z K 7 svn:log V 69 Merge r205082, r205083 that fix 'netstat -f netgraph' functionality. END K 10 svn:author V 7 fabient K 8 svn:date V 27 2010-04-02T13:23:49.697651Z K 7 svn:log V 488 - Support for uncore counting events: one fixed PMC with the uncore domain clock, 8 programmable PMC. - Westmere based CPU (Xeon 5600, Corei7 980X) support. - New man pages with events list for core and uncore. - Updated Corei7 events with Intel 253669-033US December 2009 doc. There is some removed events in the documentation, they have been kept in the code but documented in the man page as obsolete. - Offcore response events can be setup with rsp token. Sponsored by: NETASQ END K 10 svn:author V 7 fabient K 8 svn:date V 27 2010-04-02T13:34:28.553051Z K 7 svn:log V 114 Improve "top" header by: - Display sample received per PMCs (or merged PMCs). - Display percentage vs all samples END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-04-02T13:39:30.331860Z K 7 svn:log V 35 MFC r205316: Fix two style issues. END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-04-02T13:43:16.611598Z K 7 svn:log V 36 MFC r205317: Remove dead statement. END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-04-02T14:03:01.383392Z K 7 svn:log V 204 Add function vop_rename_fail(9) that performs needed cleanup for locks and references of the VOP_RENAME(9) arguments. Use vop_rename_fail() in deadfs_rename(). Tested by: Mikolaj Golub MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-04-02T14:03:43.360870Z K 7 svn:log V 394 Supply default implementation of VOP_RENAME() that does neccessary unlocks and unreferences for argument vnodes, as expected by kern_renameat(9), and returns EOPNOTSUPP. This fixes locks and reference leaks when rename is attempted on fs that does not implement rename. PR: kern/107439 Based on submission by: Mikolaj Golub Tested by: Mikolaj Golub MFC after: 1 week END K 10 svn:author V 2 ed K 8 svn:date V 27 2010-04-02T14:30:56.172744Z K 7 svn:log V 212 Properly initialize the timestamp when using ac -w. When using ac -w, we must use the last timestamp to terminate the log file. I accidentally removed this when I ported the code to use utmpx. Reported by: avg END K 10 svn:author V 2 bz K 8 svn:date V 27 2010-04-02T14:37:55.043651Z K 7 svn:log V 89 Propagate merge-info from sys/net to sys for r206024. Also record mergeinfo for r206042. END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-04-02T15:12:31.122912Z K 7 svn:log V 717 bo_bsize: revert r205860 and take an alternative approch in getblk In r205860 I missed the fact that there is code that strongly assumes that devvp bo_bsize is equal to underlying provider's sectorsize. In those places it is hard to obtain the sectorsize in an alternative way if devvp bo_bsize is set to something else. So, I am reverting bo_bsize assigment in g_vfs_open. Instead, in getblk I use DEV_BSIZE block size for b_offset calculation if vp is a disk vp as reported by vn_isdisk. This should coinside with vp being a devvp. Reported by: Mykola Dzham Tested by: Mykola Dzham Pointyhat to: avg MFC after: 2 weeks X-ToDo: convert bread(devvp) in all fs to use bo_bsize-d blocks END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-04-02T15:22:23.306094Z K 7 svn:log V 615 mountmsdosfs: reject too high value of bytes per cluster Bytes per cluster are calcuated as bytes per sector times sectors per cluster. Too high value can overflow an internal variable with type that can hold only values in valid range. Trying to use a wider type results in an attempt to read more than MAXBSIZE at once, a panic. Unfortunately, it is FreeBSD newfs_msdos that produces filesystems with invalid parameters for certain types of media. Reported by: Fabian Keil , Paul B. Mahol Discussed with: bde, kib MFC after: 1 week X-ToDo: fix newfs_msdos END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-04-02T15:33:24.190454Z K 7 svn:log V 44 MFC r205854: calendar.freebsd: add my entry END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-04-02T15:36:56.020298Z K 7 svn:log V 44 MFC r205854: calendar.freebsd: add my entry END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-04-02T15:39:37.184372Z K 7 svn:log V 93 fix mergeinfo for r193462 in stable/7 move mergeinfo up from calendar/calendars to calendar END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-04-02T16:06:46.766913Z K 7 svn:log V 930 add example indent.pro file believed to produce code with minimal differences from KNF This file is what bde uses! With addition of some types from queue(3) by hps. Please note that the output will not be KNF and currently it's not possible to achieve correct KNF with any combination of options. indent(1) needs to be made smarter. Some issues: o indent produces a space between a queue type macro and opening parenthesis o indent produces a tab before __packed and __aligned o indent produce a space after #define bde also notes difference in the following options between this profile and profile in /usr/src/admin/style of 4.4BSD: -cdb -ei -ip8 -nsob Also, NetBSD uses -di0 instead of -di8. Location for the profile is suggested by jh. Submitted by: Hans Petter Selasky (parts) Obtained from: bde :-) MFC after: 10 days X-ToDo: make indent able to produce proper (perfect) KNF X-Perhaps-ToDo: make KNF default output END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-04-02T16:09:55.689125Z K 7 svn:log V 130 indent.pro: replace a bunch of -T types with -ta introduced in r205989 Suggested by: bde, Hans Petter Selasky MFC after: 10 days END K 10 svn:author V 4 jkim K 8 svn:date V 27 2010-04-02T16:48:51.491840Z K 7 svn:log V 24 Import ACPICA 20100331. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2010-04-02T16:50:24.325200Z K 7 svn:log V 21 Tag ACPICA 20100331. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2010-04-02T16:57:25.188976Z K 7 svn:log V 156 Integrate FreeBSD changes for acfreebsd.h. http://git.moblin.org/cgit.cgi/acpica/commit/?id=4580a813dd812d85c9a0ec1b77f7855c9940c60c Obtained from: Intel END K 10 svn:author V 4 jkim K 8 svn:date V 27 2010-04-02T17:00:37.257283Z K 7 svn:log V 236 Fixes for table load regression. http://git.moblin.org/cgit.cgi/acpica/commit/?id=e4c530f4e71d70804ed911d41d922dce4cea8b23 http://git.moblin.org/cgit.cgi/acpica/commit/?id=67a1ef8c98791bd4a0fb84fe0c2feff7082151dc Obtained from: Intel END K 10 svn:author V 2 bz K 8 svn:date V 27 2010-04-02T17:48:01.597878Z K 7 svn:log V 218 MFC r205789: When tearing down IPsec as part of a (virtual) network stack, do not try to free the same list twice but free both the acquiring list and the security policy acquiring list. Reviewed by: anchie END K 10 svn:author V 2 np K 8 svn:date V 27 2010-04-02T17:50:52.792383Z K 7 svn:log V 96 Increase response queue size to avoid starvation, add a counter to track it when it does occur. END K 10 svn:author V 2 bz K 8 svn:date V 27 2010-04-02T17:52:50.756349Z K 7 svn:log V 141 MFC r205637: We are holding a write lock here so avoid aquiring it twice calling the "locked" version rather than the wrapper function. END K 10 svn:author V 3 eri K 8 svn:date V 27 2010-04-02T18:15:23.681452Z K 7 svn:log V 148 Fix a logic error in ipsec code that extracts information from the packets. Reviewed by: bz, mlaier Approved by: mlaier(mentor) MFC after: 1 month END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2010-04-02T20:08:44.983515Z K 7 svn:log V 97 Nullify our periph pointer in dacleanup to try and catch race conditions in callbacks/downcalls. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2010-04-02T21:05:28.779315Z K 7 svn:log V 287 Additional fix for root table size regression. Set the size of the new root table correctly. Not the current size, but the number of current tables + the default increment. http://git.moblin.org/cgit.cgi/acpica/commit/?id=752d13e80656436cd58e9710225a80c9deb3b053 Obtained from: Intel END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2010-04-02T21:15:42.677304Z K 7 svn:log V 98 - reduce coverage of pv_lock - make pv_entry_count atomic to eliminate pv_lock from the exit path END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2010-04-02T21:35:10.181513Z K 7 svn:log V 129 -remove pv list lock - spare pv entries are protected by the pmap lock and the md_page pv_list is protected by the page lock END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-04-02T21:48:27.320727Z K 7 svn:log V 314 With r205496 in place we should ensure that nargs and nreturns are always set to sane values as they no longer default to 0, otherwise some OFW implementation might copy in or out arguments not based on what the actual function takes but what ever stack garbage nargs and nreturns supply. Reviewed by: nwhitehorn END K 10 svn:author V 4 jkim K 8 svn:date V 27 2010-04-02T23:04:31.961560Z K 7 svn:log V 62 Merge ACPICA 20100331 (and four additional upstream patches). END K 10 svn:author V 3 yar K 8 svn:date V 27 2010-04-03T00:47:48.782285Z K 7 svn:log V 275 Keep the list of default keywords sorted so that paranoid folks like me don't try to find a hidden meaning in the strange order. The list used to be sorted in rev. 1.1 from 4.4BSD but the order was broken as soon as in rev. 1.2 by a single-character fix. MFC after: 3 days END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2010-04-03T03:31:14.417126Z K 7 svn:log V 801 Checkpoint a WIP... o) Move to 8K pages from 4K pages and use a single PTE to populate TLBLo0 and TLBLo1, with the PFN adjusted appropriately in TLBLo1. o) Keep the same kstack and uarea size (8K) and move to using a single page for both. Note that we can remove the awkward (and broken) allocation of 3 pages to get a kstack and the subsequent modification to ensure that the kstack would not have to share its TLB entry and would fit into a single TLB entry. This means we can also remove mdthread's realstack. o) Likewise remove similar balancing acts in fpage allocation. o) Don't use pmap_update_page in pmap_kenter, use pmap_invalidate_page. We do a lot of pmap_kenter calls in a row at early startup in particular and it doesn't make sense to keep thrashing the TLB. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2010-04-03T07:12:03.964635Z K 7 svn:log V 672 o) Provide an interface to basic TLB operations one might want to do in C in C using inline assembly. o) Remove duplication of various PTE bits by switching to my and converting existing code to use it. o) Rename CLEAR_PTE_WIRED to CLEAR_PTE_SWBITS since it clears PG_W and PG_RO. o) Be consistent in how PTE bits are tested, set and cleared, except where there is a change beyond simply clearing or setting bits. o) Un-generalize a couple of pmap functions used in only one place. o) Provide a convenient helper macro for getting the ASID. o) Remove unused TLB access routines from cpufunc.h since they can live very comfortably in tlb.c now. END K 10 svn:author V 7 fabient K 8 svn:date V 27 2010-04-03T07:12:35.960632Z K 7 svn:log V 181 MFC r205998: If there is multiple PMCs for the same interrupt ignore new post. This will indirectly fix a bug where the thread will be pinned forever if the assert is not compiled. END K 10 svn:author V 7 fabient K 8 svn:date V 27 2010-04-03T07:19:31.766346Z K 7 svn:log V 181 MFC r205998: If there is multiple PMCs for the same interrupt ignore new post. This will indirectly fix a bug where the thread will be pinned forever if the assert is not compiled. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2010-04-03T07:27:32.679086Z K 7 svn:log V 184 o) Add a macro which masks the software-managed bits in the PTE. o) Use PDE_OFFSET() in a couple of places that should use it. o) Move a reduced-in-features tlb show command to tlb.c. END K 10 svn:author V 8 rdivacky K 8 svn:date V 27 2010-04-03T07:51:10.317513Z K 7 svn:log V 24 Update LLVM to r100285. END K 10 svn:author V 8 rdivacky K 8 svn:date V 27 2010-04-03T07:51:34.364887Z K 7 svn:log V 25 Update clang to r100285. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2010-04-03T07:55:53.973783Z K 7 svn:log V 32 Fix the EntryHi fill field use. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2010-04-03T08:24:28.281506Z K 7 svn:log V 66 Fix page table offsets now that we're not using pairs of entries. END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-04-03T08:25:04.197485Z K 7 svn:log V 231 ffs_mount: remove redundant assignment of geom consumer to devvp.v_bufobj The assignment is already done in g_vfs_open. Redundant assignment is harmless, but can become a problem if g_vfs_open logic is changed. MFC after: 1 week END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-04-03T08:39:00.628610Z K 7 svn:log V 698 vn_stat: take into account va_blocksize when setting st_blksize As currently st_blksize is always PAGE_SIZE, it is playing safe to not use any smaller value. For some cases this might not be optimal, but at least nothing should get broken. Generally I don't expect this commit to change much for the following reasons (in case of VREG, VDIR): - application I/O and physical I/O are sufficiently decoupled by filesystem code, buffer cache code, cluster and read-ahead logic - not all applications use st_blksize as a hint, some use f_iosize, some use fixed block sizes I expect writes to the middle of files on ZFS to benefit the most from this change. Silence from: fs@ MFC after: 2 weeks END K 10 svn:author V 3 avg K 8 svn:date V 27 2010-04-03T08:53:53.835958Z K 7 svn:log V 592 g_vfs_open: allow only one mount per device vnode In other words, deny multiple read-only mounts of the same device. Shared read-only mounts should theoretically be possible, but, unfortunately, can not be implemented correctly using current buffer cache code/interface and results in an eventual system crash. Also, using nullfs seems to be a more efficient way to achieve the same goal. This gets us back to where we were before GEOM and where other BSDs are. Submitted by: pjd (idea for checking for shared mounting) Discussed with: phk, pjd Silence from: fs@, geom@ MFC after: 2 weeks END K 10 svn:author V 3 hrs K 8 svn:date V 27 2010-04-03T10:07:10.333995Z K 7 svn:log V 139 - Typo (s/-p flag/-d flag/) in a ps(1) entry. [*] - Use &man.*; wherever possible. Spotted by: pluknet gmail.com [*] PR: docs/145059 [*] END K 10 svn:author V 3 flz K 8 svn:date V 27 2010-04-03T10:55:11.404235Z K 7 svn:log V 245 Fix pkg_delete, check if the file we're trying to delete is a symlink before complaining that it doesn't exist. Typical case would be a leftover library symlink that's left over after the actual library has been removed. Reported by: tabthorpe END K 10 svn:author V 3 flz K 8 svn:date V 27 2010-04-03T10:57:13.866560Z K 7 svn:log V 38 Bump PKG_INSTALL_VERSION to 20100403. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2010-04-03T11:15:55.136290Z K 7 svn:log V 56 Add missing mnt_kern_flag flags in 'show mount' output. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2010-04-03T11:19:20.807529Z K 7 svn:log V 26 Fix some whitespace nits. END K 10 svn:author V 2 bz K 8 svn:date V 27 2010-04-03T12:34:32.344262Z K 7 svn:log V 115 Add a forward declaration to silence a warning when compiling ia32_genassym.c. Reviewed by: kib MFC after: 3 days END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2010-04-03T15:40:14.042943Z K 7 svn:log V 281 * Fix some race condition in SACK/NR-SACK processing. * Fix handling of mapping arrays when draining mbufs or processing FORWARD-TSN chunks. * Cleanup code (no duplicate code anymore for SACKs and NR-SACKs). Part of this code was developed together with rrs. MFC after: 2 weeks. END K 10 svn:author V 3 alc K 8 svn:date V 27 2010-04-03T15:43:28.209825Z K 7 svn:log V 163 MFC r205652 A ptrace(2) by one process may trigger a page size promotion in the address space of another process. Modify pmap_promote_pde() to handle this. END K 10 svn:author V 3 alc K 8 svn:date V 27 2010-04-03T15:52:32.475701Z K 7 svn:log V 163 MFC r205652 A ptrace(2) by one process may trigger a page size promotion in the address space of another process. Modify pmap_promote_pde() to handle this. END K 10 svn:author V 3 alc K 8 svn:date V 27 2010-04-03T16:20:22.476654Z K 7 svn:log V 207 Re-enable the call to pmap_release() by vmspace_dofree(). The accounting problem that is described in the comment has been addressed. Submitted by: kib Tested by: pho (a few months ago) MFC after: 6 weeks END K 10 svn:author V 2 ed K 8 svn:date V 27 2010-04-03T17:22:28.346704Z K 7 svn:log V 68 Just use instead of . We don't need it here. END K 10 svn:author V 3 alc K 8 svn:date V 27 2010-04-03T19:07:05.787069Z K 7 svn:log V 98 Make _vm_map_init() the one place where the vm map's pmap field is initialized. Reviewed by: kib END K 10 svn:author V 6 jilles K 8 svn:date V 27 2010-04-03T20:14:10.650979Z K 7 svn:log V 71 sh: Add some testcases for the working parts of ${v%...} and ${v#...}. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2010-04-03T20:35:39.196535Z K 7 svn:log V 260 sh: Treat unexpected newlines in substitutions as a syntax error. The old approach was wrong because PS2 was not used and seems unlikely to parse extensions (ksh93's ${ COMMAND} may well fail to parse). Exp-run done by: erwin (with some other sh(1) changes) END K 10 svn:author V 6 jilles K 8 svn:date V 27 2010-04-03T20:55:56.718208Z K 7 svn:log V 860 sh: Fix various things about expansions: * remove the backslash from \} inside double quotes inside +-=? substitutions, e.g. "${$+\}a}" * maintain separate double-quote state for ${v#...} and ${v%...}; single and double quotes are special inside, even in a double-quoted string or here document * keep track of correct order of substitutions and arithmetic This is different from dash's approach, which does not track individual double quotes in the parser, trying to fix this up during expansion. This treats single quotes inside "${v#...}" incorrectly, however. This is similar to NetBSD's approach (as submitted in PR bin/57554), but recognizes the difference between +-=? and #% substitutions hinted at in POSIX and is more refined for arithmetic expansion and here documents. PR: bin/57554 Exp-run done by: erwin (with some other sh(1) changes) END K 10 svn:author V 6 jilles K 8 svn:date V 27 2010-04-03T21:01:01.043042Z K 7 svn:log V 208 sh: Remove special handling for ' and " in arithmetic. They will be treated like normal characters, resulting in a runtime arithmetic expression error. Exp-run done by: erwin (with some other sh(1) changes) END K 10 svn:author V 6 jilles K 8 svn:date V 27 2010-04-03T21:07:50.546096Z K 7 svn:log V 294 sh: Allow quoting pattern match characters in ${v%pat} and ${v#pat}. Note that this depends on r206145 for allowing pattern match characters to have their special meaning inside a double-quoted expansion like "${v%pat}". PR: bin/117748 Exp-run done by: erwin (with some other sh(1) changes) END K 10 svn:author V 6 jilles K 8 svn:date V 27 2010-04-03T21:32:22.010133Z K 7 svn:log V 65 sh: Add some testcases for the working parts of tilde expansion. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2010-04-03T21:56:24.349861Z K 7 svn:log V 41 sh: Fix duplicate variable name in test. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2010-04-03T22:04:44.943814Z K 7 svn:log V 497 sh: Do tilde expansion in substitutions. This applies to word in ${v-word}, ${v+word}, ${v=word}, ${v?word} (which inherits quoting from the outside) and in ${v%word}, ${v%%word}, ${v#word}, ${v##word} (which does not inherit any quoting). In all cases tilde expansion is only attempted at the start of word, even if word contains spaces. This agrees with POSIX and other shells. This is the last part of the patch tested in the exp-run. Exp-run done by: erwin (with some other sh(1) changes) END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2010-04-03T23:51:41.825713Z K 7 svn:log V 77 Use also SCTP/IPv6 checksum offloading in special cases. MFC after: 2 weeks END K 10 svn:author V 3 ume K 8 svn:date V 27 2010-04-04T07:02:10.362226Z K 7 svn:log V 112 Stop adding trailing '\n'. The servent_unpack() doesn't expect lines terminated with '\n'. MFC after: 2 weeks END K 10 svn:author V 3 ume K 8 svn:date V 27 2010-04-04T07:21:45.760750Z K 7 svn:log V 95 Treat '+' as special only when in compat mode, and simplify the logic bit. MFC after: 2 weeks END K 10 svn:author V 3 ume K 8 svn:date V 27 2010-04-04T07:31:10.952122Z K 7 svn:log V 43 Reduce duplicate code. MFC after: 2 weeks END K 10 svn:author V 3 ume K 8 svn:date V 27 2010-04-04T08:31:03.654859Z K 7 svn:log V 146 Add capability to use a db version of services. It is enabled by specifying `db' as source of service in /etc/nsswitch.conf. MFC after: 2 weeks END K 10 svn:author V 3 ume K 8 svn:date V 27 2010-04-04T08:38:14.204166Z K 7 svn:log V 123 services_mkdb; generate db file from services(5) to increase speed of getserv*() Obtained from: NetBSD MFC after: 2 weeks END K 10 svn:author V 8 rdivacky K 8 svn:date V 27 2010-04-04T08:47:34.599417Z K 7 svn:log V 19 Merge from vendor. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2010-04-04T13:17:05.614658Z K 7 svn:log V 336 sh: Document the expansion changes in the man page. Note that the following sentence > Enclosing the full parameter expansion string in double-quotes does not > cause the following four varieties of pattern characters to be quoted, > whereas quoting characters within the braces has this effect. is now true, but used to be incorrect. END K 10 svn:author V 3 ume K 8 svn:date V 27 2010-04-04T14:23:28.508521Z K 7 svn:log V 74 Fix compilation error on 9-CURRENT. Reported by: nyan MFC after: 2 weeks END K 10 svn:author V 2 jh K 8 svn:date V 27 2010-04-04T14:48:43.539732Z K 7 svn:log V 26 Add missing MNT_NFS4ACLS. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-04-04T14:57:45.591632Z K 7 svn:log V 2437 MFC: r205269 o Add support for UltraSparc-IV+: - Swap the configuration of the first and second large dTLB as with US-IV+ these can only hold entries of certain page sizes each, which we happened to chose the non-working way around. - Additionally ensure that the large iTLB is set up to hold 8k pages (currently this happens to be a NOP though). - Add a workaround for US-IV+ erratum #2. - Turn off dTLB parity error reporting as otherwise we get seemingly false positives when copying in the user window by simulating a fill trap on return to usermode. Given that these parity errors can be avoided by disabling multi issue mode and the problem could be reproduced with a second machine this appears to be a silicon bug of some sort. - Add a membar #Sync also before the stores to ASI_DCACHE_TAG. While at it, turn of interrupts across the whole cheetah_cache_flush() for simplicity instead of around every flush. This should have next to no impact as for cheetah-class machines we typically only need to flush the caches a few times during boot when recovering from peeking/poking non-existent PCI devices, if at all. - Just use KERNBASE for FLUSH as we also do elsewhere as the US-IV+ documentation doesn't seem to mention that these CPUs also ignore the address like previous cheetah-class CPUs do. Again the code changing LSU_IC is executed seldom enough that the negligible optimization of using %g0 instead should have no real impact. With these changes FreeBSD runs stable on V890 equipped with US-IV+ and -j128 buildworlds in a loop for days are no problem. Unfortunately, the performance isn't were it should be as a buildworld on a 4x1.5GHz US-IV+ V890 takes nearly 3h while on a V440 with (theoretically) less powerfull 4x1.5GHz US-IIIi it takes just over 1h. It's unclear whether this is related to the supposed silicon bug mentioned above or due to another issue. The documentation (which contains a sever bug in the description of the bits added to the context registers though) at least doesn't mention any requirements for changes in the CPU handling besides those implemented and the cache as well as the TLB configurations and handling look fine. o Re-arrange cheetah_init() so it's easier to add support for SPARC64 V up to VIIIfx CPUs, which only require parts of this initialization. Committed from: EH2010 END