ƒ¯2197349 154 2230 301 144 282 161 333 2230 175 136 258 258 118 427 488 409 290 302 763 634 288 166 763 321 126 478 313 140 149 121 183 243 286 174 134 425 195 121 126 148 389 410 191 239 231 137 239 782 124 292 339 188 372 1227 781 255 265 184 465 195 265 298 524 173 166 311 143 413 275 278 216 123 107 187 486 169 282 167 346 294 245 181 195 199 239 314 216 198 142 160 139 565 301 163 610 223 254 899 236 439 343 196 581 252 526 229 165 210 236 455 307 894 219 240 340 125 127 966 297 159 306 251 917 234 278 343 419 169 422 155 112 458 569 393 412 389 468 445 278 255 785 776 194 235 777 377 390 349 371 309 160 141 118 842 1337 K 10 svn:author V 6 marius K 8 svn:date V 27 2009-09-20T12:56:50.813814Z K 7 svn:log V 2133 MFC: r194763, r194886 - Initialize the ifnet structure, especially if_dname, before probing the PHYs as some PHY drivers use it (but probably shouldn't). How gem(4) has worked with brgphy(4) on powerpc without this so far is unclear to me. - Call ether_ifdetach(9) before stopping the controller and the callouts. The consensus is that the latter is now safe to do and should also solve the problem of active BPF listeners clearing promiscuous mode can result in the tick callout being restarted which in turn will trigger a panic once it's actually gone. - Introduce a dying flag which is set during detach and checked in gem_ioctl() in order to prevent active BPF listeners to clear promiscuous mode which may lead to the tick callout being restarted which will trigger a panic once it's actually gone. - In gem_stop() reset rather than just disable the transmitter and receiver in order to ensure we're not unloading DMA maps still in use by the hardware. [1] - The blanking time is specified in PCI clocks so we should use twice the value when operating at 66MHz. - Spell some 2 as ETHER_ALIGN and a 19 as GEM_STATUS_TX_COMPLETION_SHFT to make the actual intentions clear. - As we don't unload the peak attempts counter ignore its overflow interrupts. - Remove a stale setting of a variable to GEM_TD_INTERRUPT_ME which isn't used afterwards. - For optimum performance increment the TX kick register in multiples of 4 if possible as suggested by the documentation. - Partially revert r164931; drivers should only clear the watchdog timer if all outstanding TX descriptors are done. - Fix some debugging strings. - Add a missing BUS_DMASYNC_POSTWRITE in gem_rint(). - As the error paths in the interrupt handler are generally unlikely predict them as false. - Add support for the SBus version of the GEM controller. [2] - Add some lock assertions. - Improve some comments. - Fix some more or less cosmetic issues in the code of the PCI front-end. - Change some softc members to be unsigned where more appropriate and remove unused ones. Obtained from: NetBSD (partially) [2], OpenBSD [1] END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-09-20T13:28:19.225585Z K 7 svn:log V 208 Re-remove the IBM0057 ID used for PS/2 mouse controllers. The asl for the 61p includes the hotkey device as IBM0068 and the mouse as IBM0057 similar to other systems. Submitted by: marius MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2009-09-20T13:28:29.775248Z K 7 svn:log V 52 Purge namecache in the same place OpenSolaris does. END K 10 svn:author V 3 dds K 8 svn:date V 27 2009-09-20T13:39:44.689691Z K 7 svn:log V 189 The transition to Subversion allows us to rename files without repo-copy hacks. Remove the test-number prefix from the name of the output files, so that new test cases can be easily added. END K 10 svn:author V 6 marius K 8 svn:date V 27 2009-09-20T13:47:55.751233Z K 7 svn:log V 66 Move mergeinfo for r194248 from article.sgml up to its directory. END K 10 svn:author V 6 marius K 8 svn:date V 27 2009-09-20T13:49:10.022187Z K 7 svn:log V 237 MFC: r190112 (partial) - As suggested by OpenSolaris use up-burst-sizes for determining the supported burst sizes. - Add support for 64-bit burst sizes (required for SBus GEM). - Take advantage of KOBJMETHOD_END. - Add missing const. END K 10 svn:author V 6 marius K 8 svn:date V 27 2009-09-20T13:54:27.184970Z K 7 svn:log V 2133 MFC: r194763, r194886 - Initialize the ifnet structure, especially if_dname, before probing the PHYs as some PHY drivers use it (but probably shouldn't). How gem(4) has worked with brgphy(4) on powerpc without this so far is unclear to me. - Call ether_ifdetach(9) before stopping the controller and the callouts. The consensus is that the latter is now safe to do and should also solve the problem of active BPF listeners clearing promiscuous mode can result in the tick callout being restarted which in turn will trigger a panic once it's actually gone. - Introduce a dying flag which is set during detach and checked in gem_ioctl() in order to prevent active BPF listeners to clear promiscuous mode which may lead to the tick callout being restarted which will trigger a panic once it's actually gone. - In gem_stop() reset rather than just disable the transmitter and receiver in order to ensure we're not unloading DMA maps still in use by the hardware. [1] - The blanking time is specified in PCI clocks so we should use twice the value when operating at 66MHz. - Spell some 2 as ETHER_ALIGN and a 19 as GEM_STATUS_TX_COMPLETION_SHFT to make the actual intentions clear. - As we don't unload the peak attempts counter ignore its overflow interrupts. - Remove a stale setting of a variable to GEM_TD_INTERRUPT_ME which isn't used afterwards. - For optimum performance increment the TX kick register in multiples of 4 if possible as suggested by the documentation. - Partially revert r164931; drivers should only clear the watchdog timer if all outstanding TX descriptors are done. - Fix some debugging strings. - Add a missing BUS_DMASYNC_POSTWRITE in gem_rint(). - As the error paths in the interrupt handler are generally unlikely predict them as false. - Add support for the SBus version of the GEM controller. [2] - Add some lock assertions. - Improve some comments. - Fix some more or less cosmetic issues in the code of the PCI front-end. - Change some softc members to be unsigned where more appropriate and remove unused ones. Obtained from: NetBSD (partially) [2], OpenBSD [1] END K 10 svn:author V 3 dds K 8 svn:date V 27 2009-09-20T14:11:33.389098Z K 7 svn:log V 83 Allow [ to be used as a delimiter. Pointed by: Marius Strobl Obtained from: Apple END K 10 svn:author V 3 dds K 8 svn:date V 27 2009-09-20T14:20:00.857346Z K 7 svn:log V 44 Describe how other systems treat this case. END K 10 svn:author V 6 marius K 8 svn:date V 27 2009-09-20T14:26:17.610738Z K 7 svn:log V 162 MFC: r194764 - Update regarding the support for SBus GEM added in r194763 (MFC'ed in r197349). - Improve the description a bit and add a reference to vlan(4). END K 10 svn:author V 6 marius K 8 svn:date V 27 2009-09-20T14:26:26.229431Z K 7 svn:log V 162 MFC: r194764 - Update regarding the support for SBus GEM added in r194763 (MFC'ed in r197355). - Improve the description a bit and add a reference to vlan(4). END K 10 svn:author V 3 dds K 8 svn:date V 27 2009-09-20T15:04:50.540512Z K 7 svn:log V 26 Add correct test results. END K 10 svn:author V 3 dds K 8 svn:date V 27 2009-09-20T15:17:40.987466Z K 7 svn:log V 334 Follow POSIX (IEEE Std 1003.1, 2004 Edition) in the implementation of the y (translate) command. "If a backslash character is immediately followed by a backslash character in string1 or string2, the two backslash characters shall be counted as a single literal backslash character" Pointed by: Marius Strobl Obtained from: Mac OS X END K 10 svn:author V 3 dds K 8 svn:date V 27 2009-09-20T15:47:31.906293Z K 7 svn:log V 395 IEEE Std 1003.1, 2004 Edition states: "The escape sequence '\n' shall match a embedded in the pattern space." It is unclear whether this also applies to a \n embedded in a character class. Disable the existing handling of \n in a character class following Mac OS X, GNU sed version 4.1.5 with --posix, and SunOS 5.10 /usr/bin/sed. Pointed by: Marius Strobl Obtained from: Mac OS X END K 10 svn:author V 6 jilles K 8 svn:date V 27 2009-09-20T16:47:56.639044Z K 7 svn:log V 313 Update find(1) man page for -L/-delete interaction. It is a bit unfortunate that the example to delete broken symlinks now uses rm(1), but allowing this with -delete would require fixing fts(3) to not imply FTS_NOCHDIR if FTS_LOGICAL is given (or hacks in the -delete option). PR: bin/90687 MFC after: 2 weeks END K 10 svn:author V 6 qingli K 8 svn:date V 27 2009-09-20T17:22:19.769464Z K 7 svn:log V 194 A wrong variable is used when setting up the interface address route, which broke source address selection in some code paths. Submitted by: noted by bz Reviewed by: hrs MFC after: immediately END K 10 svn:author V 6 qingli K 8 svn:date V 27 2009-09-20T17:46:56.505731Z K 7 svn:log V 206 MFC r197364 A wrong variable is used when setting up the interface address route, which broke source address selection in some code paths. Submitted by: noted by bz Reviewed by: hrs Approved by: re (kib) END K 10 svn:author V 6 marius K 8 svn:date V 27 2009-09-20T18:53:40.654676Z K 7 svn:log V 667 MFC: r195149 (partial) - Work around the broken loader behavior of not demapping no longer used kernel TLB slots when unloading the kernel or modules, which results in havoc when loading a kernel and modules which take up less TLB slots afterwards as the unused but locked ones aren't accounted for in virtual_avail. Eventually this should be fixed in the loader which isn't straight forward though and the kernel should be robust against this anyway. [1] - Remove the no longer used global msgbuf_phys. - Remove the redundant ekva parameter of pmap_bootstrap_alloc(). - Correct some outdated function names in ktr(9) invocations. Requested by: jhb [1] END K 10 svn:author V 6 marius K 8 svn:date V 27 2009-09-20T18:59:30.100155Z K 7 svn:log V 538 MFC: r195808 Add a MD __PCI_BAR_ZERO_VALID which denotes that BARs containing 0 actually specify valid bases that should be treated just as normal. The PCI specifications have no indication that 0 would be a magic value indicating a disabled BAR as commonly used on at least amd64 and i386 but not sparc64. It's unclear what to do in pci_delete_resource() instead of writing 0 to a BAR though as there's no (other) way do disable individual BARs so its decoding is left enabled in case of __PCI_BAR_ZERO_VALID for now. Approved by: jhb END K 10 svn:author V 6 marius K 8 svn:date V 27 2009-09-20T19:14:34.419748Z K 7 svn:log V 192 - Update the list of known-working machines based on feedback for 7.2. - Update the V440 entry regarding added support for the on-board NICs in 8.0. Approved by: blackend MFC after: 3 days END K 10 svn:author V 6 marius K 8 svn:date V 27 2009-09-20T19:26:04.636070Z K 7 svn:log V 71 Re-apply adaption to stable/6 which somehow managed to escape r197355. END K 10 svn:author V 6 marius K 8 svn:date V 27 2009-09-20T19:32:10.844672Z K 7 svn:log V 667 MFC: r195149 (partial) - Work around the broken loader behavior of not demapping no longer used kernel TLB slots when unloading the kernel or modules, which results in havoc when loading a kernel and modules which take up less TLB slots afterwards as the unused but locked ones aren't accounted for in virtual_avail. Eventually this should be fixed in the loader which isn't straight forward though and the kernel should be robust against this anyway. [1] - Remove the no longer used global msgbuf_phys. - Remove the redundant ekva parameter of pmap_bootstrap_alloc(). - Correct some outdated function names in ktr(9) invocations. Requested by: jhb [1] END K 10 svn:author V 6 jilles K 8 svn:date V 27 2009-09-20T21:42:38.129460Z K 7 svn:log V 225 Mention that NUL characters are not allowed in sh(1) input. I do not consider this a bug because POSIX permits it and argument strings and environment variables cannot contain '\0' anyway. PR: bin/25542 MFC after: 2 weeks END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2009-09-21T01:38:22.837502Z K 7 svn:log V 31 Remove file unused in freebsd. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2009-09-21T01:41:19.693841Z K 7 svn:log V 382 (semiforced commit to add comment missed in last delta) Add a maximum response length for FCP RSPNS IUs. Clarify some of the FC option words for setting parameters and try and disable automatic PRLI when in target mode- this should correct some cases of N-port topologies with 23XX cards where we put out an illegal PRLI (in target mode only we're not supposed to put out a PRLI). END K 10 svn:author V 4 nyan K 8 svn:date V 27 2009-09-21T04:04:02.923851Z K 7 svn:log V 219 Disable a check on a disk size because it's too strict. This change is to avoid using incorrect geometry. It seems that this is the same problem in g_part_bsd_read()@g_part_bsd.c. Reviewed by: rink MFC after: 3 days END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2009-09-21T04:37:57.949197Z K 7 svn:log V 44 Fix -m option, if argument has spaces in it END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2009-09-21T04:48:30.497624Z K 7 svn:log V 53 Replace makefile with Buildfile in a bunch of places END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2009-09-21T05:39:57.216905Z K 7 svn:log V 25 Set PAGER if it is unset END K 10 svn:author V 8 blackend K 8 svn:date V 27 2009-09-21T06:47:00.094239Z K 7 svn:log V 86 Add missing mergeinfo for MFC of r196588. Pointy Hat: blackend Approved by: re (kib) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2009-09-21T07:05:48.654597Z K 7 svn:log V 146 Enable s3pci on amd64 which works on top of VESA, and allow static building it into kernel on i386 and amd64. Submitted by: swell.k at gmail.com END K 10 svn:author V 7 delphij K 8 svn:date V 27 2009-09-21T07:08:20.305808Z K 7 svn:log V 189 Automatically depend on x86emu when vesa or dpms is being built into kernel. With this change the user no longer need to remember building this option. Submitted by: swell.k at gmail.com END K 10 svn:author V 7 delphij K 8 svn:date V 27 2009-09-21T07:38:50.901302Z K 7 svn:log V 78 Revert part that should not be in my previous commit. Pointy hat to: delphij END K 10 svn:author V 5 edwin K 8 svn:date V 27 2009-09-21T07:50:57.823273Z K 7 svn:log V 40 Complete the migration of share/colldef END K 10 svn:author V 7 delphij K 8 svn:date V 27 2009-09-21T08:17:57.596957Z K 7 svn:log V 328 Collapase interrupt supporting functions to a new module, and switch from x86emu to this new module. This changeset also brings a fix for bugs introduced with the initial x86emu commit, which prevents the user from using some display mode or cause instant reboots during mode switch. Submitted by: paradox END K 10 svn:author V 7 delphij K 8 svn:date V 27 2009-09-21T08:24:22.655598Z K 7 svn:log V 99 Allow atkbd to obtain keyboard repeat rate from BIOS on amd64. Submitted by: swell.k at gmail.com END K 10 svn:author V 2 ru K 8 svn:date V 27 2009-09-21T08:30:52.821046Z K 7 svn:log V 30 Fixed markup (mostly) errors. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2009-09-21T08:37:57.990517Z K 7 svn:log V 30 Use __FBSDID to embed RCS ID. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2009-09-21T08:53:26.448746Z K 7 svn:log V 52 Style(9) fixes. Submitted by: swell.k at gmail.com END K 10 svn:author V 7 delphij K 8 svn:date V 27 2009-09-21T09:09:55.251494Z K 7 svn:log V 292 To be safe, make this module initialize earlier by specifying SI_SUB_CPU instead of SI_SUB_KLD. Note that we don't believe that there is any consumers of x86bios that would be triggered in the early stage of boot, so this is more or less just a safebelt. Submitted by: swell.k at gmail.com END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-09-21T09:41:51.574052Z K 7 svn:log V 317 If CPU happens to be in usermode when a T_RESERVED trap occured, then trapsignal is called with ksi.ksi_signo = 0. For debugging kernels, that should end up in panic, for non-debugging kernels behaviour is undefined. Do panic regardeless of execution mode at the moment of trap. Reviewed by: jhb MFC after: 1 month END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-09-21T13:09:56.371075Z K 7 svn:log V 99 Remove forward_roundrobin(), it is unused for quite some time. Reviewed by: jhb MFC after: 1 week END K 10 svn:author V 8 gallatin K 8 svn:date V 27 2009-09-21T14:41:07.626865Z K 7 svn:log V 141 Add support for throttling transmit bandwidth. This is most commonly used to reduce packet loss on high delay (WAN) paths with a slow link. END K 10 svn:author V 2 ru K 8 svn:date V 27 2009-09-21T14:43:05.266107Z K 7 svn:log V 139 - List newsletters VI-2, VI-3 and VI-4 that were already applied. - Apply newsletters VI-5 (BO's name change) and VI-6 (VE's name change). END K 10 svn:author V 3 alc K 8 svn:date V 27 2009-09-21T17:19:36.182457Z K 7 svn:log V 45 Add FreeBSD 7.2 and 7.3. Discussed with: ru END K 10 svn:author V 3 alc K 8 svn:date V 27 2009-09-21T18:02:02.403334Z K 7 svn:log V 146 Correct a section name; specifically, "AUTHOR" should be "AUTHORS". [1] Turn the "AUTHORS" section into a full sentence. Pointed out by: ru [1] END K 10 svn:author V 8 gallatin K 8 svn:date V 27 2009-09-21T20:16:10.021826Z K 7 svn:log V 684 Improve mxge watchdog routine's ability to reliably reset a failed NIC: - Mark the link as down, so if watchdog reset fails, link watching failover software can notice it - Don't send MXGEFW_CMD_ETHERNET_DOWN if the NIC has been reset, it is not needed, and will fail on a freshly reset NIC. - Ensure the transmit routines aren't attempting to PIO write to doorbells while the NIC is being reset. - Download the correct f/w, rather than using the EEPROM f/w after reset. - Export a count of the number of watchdog resets via sysctl - Zero all f/w stats at reset. This will lead to less confusing diagnostic output when investigating NIC failures. MFC after: 3 days END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2009-09-21T23:20:18.269382Z K 7 svn:log V 30 use UMA for buffer allocation END K 10 svn:author V 7 delphij K 8 svn:date V 27 2009-09-21T23:58:29.791771Z K 7 svn:log V 195 Build x86bios only for i386/amd64 for now. More work is required to make these functional on other architectures, and the current code breaks sparc64 and powerpc. Spotted by: tinderbox via des END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2009-09-22T03:10:04.661542Z K 7 svn:log V 244 - make tx type operation dependent rather than vfs state dependent - simplify ZIL replay handing - add dmu_read_flags to allow explicit disabling of prefetch - remove assert that doesn't apply to freebsd - update ztest for new zil_replay END K 10 svn:author V 7 delphij K 8 svn:date V 27 2009-09-22T07:10:23.681773Z K 7 svn:log V 92 Hide x86bios stuff in i386/amd64 specific files as atkbdc would get these stuff into build. END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-09-22T11:29:11.928647Z K 7 svn:log V 280 Use an unsigned integer for storing the key code. It seems Clang breaks when checking for SPCLKEY, which is now 0x80000000. Using an unsigned integer fixes this. This is also consistent with other pieces of kbd/syscons code, because these also use u_int. Submitted by: rdivacky END K 10 svn:author V 6 marius K 8 svn:date V 27 2009-09-22T11:38:45.688716Z K 7 svn:log V 1130 - According to Linux, the ALi M5451 can do 31-bit DMA instead of just 30-bit like the reset of the controllers supported by this driver. Actually ALi M5451 can be setup up to generate 32-bit addresses by setting the 31st bit via the accompanying ISA bridge, which allows it to work in sparc64 machines whose IOMMU require at least 32-bit DMA. Even though other architectures would also benefit from 32-bit DMA, enabling this bit is limited to sparc64 as bus_dma(9) doesn't generally guarantee that a low address of BUS_SPACE_MAXADDR_32BIT results in a buffer in the 32-bit range. - According to Tatsuo YOKOGAWA's ali(4), the the DMA transfer size of ALi M5451 is fixed to 64k and in fact using the default size of 4k - The 4DWAVE DX and NX require the recording buffer to be 8-byte aligned so adjust the bus_dma_tag_create(9) accordingly. - Unlike the rest of the controllers supported by this driver, the ALi M5451 only has 32 hardware channels instead of 64 so limit the loop in tr_intr() accordingly. [1] Submitted by: yongari [1] Reviewed by: yongari (superset of what is committed) MFC after: 3 days END K 10 svn:author V 6 marius K 8 svn:date V 27 2009-09-22T11:47:21.218549Z K 7 svn:log V 685 - Add missing bus_dmamap_sync(9) calls for the work DMA map. Previously the work area was totally unsynchronized which means this driver only had a chance of working on x86 when no bounce buffers were involved, which isn't that likely given that support for 64-bit DMA is currently broken throughout ata(4). - Add necessary little-endian conversion of accesses to the work area, making this driver work on big-endian hosts. While at it, use the alignment-agnostic byte order encoders in order to be on the safe side. - Clear the reserved member of the SG list entries in order to be on the safe side. [1] Submitted by: yongari [1] Reviewed by: yongari MFC after: 3 days END K 10 svn:author V 6 cokane K 8 svn:date V 27 2009-09-22T12:36:51.446864Z K 7 svn:log V 159 The ndis_scan function may be started after ndis vap have been destroyed PR: kern/138632 Submitted by: Paul B. Mahol MFC after: 3 days END K 10 svn:author V 4 joel K 8 svn:date V 27 2009-09-22T13:23:59.574867Z K 7 svn:log V 171 Move es137x.c and es137x.h to a 2-clause BSD license. Also move a few comments. Submitted by: Joachim Kuebart Approved by: core, Russell Cattelan END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-09-22T15:15:03.234127Z K 7 svn:log V 90 Add pieces of infrastructure required for NFSv4 ACL support in UFS. Reviewed by: rwatson END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-09-22T15:43:03.728477Z K 7 svn:log V 372 Don't reread the command register to see if enabling I/O or memory decoding "took". Other OS's that I checked do not do this and it breaks some amdpm(4) devices. Prior to 7.2 we did not honor the error returned when this failed anyway, so this in effect restores previous behavior. PR: kern/137668 Tested by: Aurelien Mere aurelien.mere amc-os.com MFC after: 3 days END K 10 svn:author V 8 rdivacky K 8 svn:date V 27 2009-09-22T16:16:02.250198Z K 7 svn:log V 98 Change unsigned foo to u_foo as required by style(9). Requested by: bde Approved by: ed (mentor) END K 10 svn:author V 8 rdivacky K 8 svn:date V 27 2009-09-22T16:22:05.320783Z K 7 svn:log V 167 Don't build ufs_gjournal.c at all if UFS_GJOURNAL option is not given instead of building an almost empty C file. Approved by: pjd Approved by: ed (mentor, implicit) END K 10 svn:author V 8 rdivacky K 8 svn:date V 27 2009-09-22T16:28:07.467762Z K 7 svn:log V 200 Change the command argument to ioctl routines to u_long to avoid truncating the command to 32bit on 64bit archs where int is 32bit (ie. amd64). Approved by: scottl Approved by: ed (mentor, implicit) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-09-22T16:51:00.114594Z K 7 svn:log V 431 - Split the logic to parse an SMAP entry out into a separate function on amd64 similar to i386. This fixes a bug on amd64 where overlapping entries would not cause the SMAP parsing to stop. - Change the SMAP parsing code to do a sorted insertion into physmap[] instead of an append to support systems with out-of-order SMAP entries. PR: amd64/138220 Reported by: James R. Van Artsdalen james of jrv org MFC after: 3 days END K 10 svn:author V 7 delphij K 8 svn:date V 27 2009-09-22T16:59:15.486700Z K 7 svn:log V 77 Removed unused empty directory. Submitted by: b. f. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-09-22T17:45:28.891670Z K 7 svn:log V 71 Reserve events for XScale. Reviewed by: jkoshy, gnn MFC after: 1 week END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-09-22T18:18:14.038615Z K 7 svn:log V 215 Update 802.11s mesh support to draft 3.03. This includes a revised frame format for peering and changes to the PERR frames. Note that this is incompatible with the previous code. Reviewed by: sam MFC after: 1 week END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-09-22T18:19:18.153332Z K 7 svn:log V 48 Note the D3.03 mesh changes. MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-09-22T18:34:23.572911Z K 7 svn:log V 320 The elements in the component arrays may be direct Package objects rather than references to objects. In that case, simply use the Package directly. I think a recent change to ACPI-CA is causing the interpreter to automatically expand these references. Reported by: Olivier Smedts olivier gid0 org MFC after: 3 days END K 10 svn:author V 7 delphij K 8 svn:date V 27 2009-09-22T20:12:10.454141Z K 7 svn:log V 178 Temporarily disable typematic retrieving code until we get a real fix, which currently causes hangs in some configurations. Reported by: joel Submitted by: swell.k at gmail.com END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-09-22T20:31:32.953330Z K 7 svn:log V 182 MFC 197190: Make the sudden motion sensor work on older models and add a bit of debugging. Submitted by: Christoph Langguth Approved by: re (kib) END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2009-09-22T20:56:38.889541Z K 7 svn:log V 121 - add option to link ZFS support in to the kernel for cases where having a single binary is simpler (profiling etc.) END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-09-22T22:17:14.136062Z K 7 svn:log V 31 MFp4: Reduce code duplication. END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-09-22T22:20:43.144528Z K 7 svn:log V 15 Lock bus scan. END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-09-22T22:23:52.251004Z K 7 svn:log V 95 MFp4: If on sense request device returns no sence, give up and return, or we may loop forever. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2009-09-22T23:11:23.697624Z K 7 svn:log V 390 MFC r195134, r195135, r195191 r195134, r195134: Add a complement to FIONREAD, called FIONWRITE, which returns the number of bytes not yet properly disposed of. Implement it for all sockets. r195191: Add FIONSPACE from NetBSD. FIONSPACE is provided so that programs may easily determine how much space is left in the send queue; they do not need to know the send queue size. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2009-09-23T00:31:08.713679Z K 7 svn:log V 74 MFC r180603: Use %zd for size_t. With this gcore(1) is WARNS=6 clean. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2009-09-23T02:45:02.526298Z K 7 svn:log V 185 Initialize registers to zero before calling the interrupt handlers inside emulator. This fixes VESA related freeze observed on some systems. Submitted by: paradox END K 10 svn:author V 5 silby K 8 svn:date V 27 2009-09-23T05:32:33.180544Z K 7 svn:log V 73 In netstat -x, do not try to print out tcp timer status for udp sockets. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2009-09-23T09:18:16.158219Z K 7 svn:log V 253 Restore BSD behaviour - when creating new directory entry use parent directory gid to set group ownership and not process gid. This was overlooked during v6 -> v13 switch. PR: kern/139076 Reported by: Sean Winn MFC after: 3 days END K 10 svn:author V 6 marius K 8 svn:date V 27 2009-09-23T10:12:58.459432Z K 7 svn:log V 198 MFC: r197368 - Update the list of known-working machines based on feedback for 7.2. - Update the V440 entry regarding added support for the on-board NICs in 8.0. Approved by: re (kib), blackend END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-09-23T12:08:08.187481Z K 7 svn:log V 152 Add per-process osrel node to the procfs, to allow read and set p_osrel value for the process. Approved by: des (procfs maintainer) MFC after: 3 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-09-23T12:10:13.789478Z K 7 svn:log V 89 Document osrel node for procfs. Approved by: des (procfs maintainer) MFC after: 3 weeks END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-09-23T12:33:32.014882Z K 7 svn:log V 101 - Bump __FreeBSD_version to reflect the point when EVFILT_USER kevent filter has been implemented. END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-09-23T13:49:41.944345Z K 7 svn:log V 106 MFC r197348: For a.out and pre-8 ELF binaries, allow the mmap of zero length. Approved by: re (kensmith) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-09-23T14:23:09.070551Z K 7 svn:log V 146 - Remove a bogus test: setsockopt() doesn't return a length, getsockopt() does. - Use %z to printf a size_t to fix compile on 64-bit platforms. END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2009-09-23T14:48:13.244691Z K 7 svn:log V 218 Improve on r197334: Find the most recently merged svn revision, too. If we get a svn revision that matches HEAD use rXXX=GIT otherwise use rXXX+GIT. Submitted by: avg MFC after: 3 days X-MFC: not stable/8 before 8.0 END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-09-23T15:06:51.980514Z K 7 svn:log V 121 Add ACL fuzzer. It's not used by the regression tests right now, but I'd prefert to have it here, so it won't get lost. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-09-23T15:09:34.137822Z K 7 svn:log V 103 In VOP_SETACL(9) and VOP_GETACL(9), specifying wrong ACL type should result in EINVAL, not EOPNOTSUPP. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2009-09-23T15:12:20.160787Z K 7 svn:log V 48 Add cross-filesystem regression tests for ACLs. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2009-09-23T15:32:59.578882Z K 7 svn:log V 65 Use %zu for size_t, not %zd. Submitted by: ru MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-09-23T15:39:54.845762Z K 7 svn:log V 47 Uninline an instance of STAILQ_FOREACH_SAFE(). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-09-23T15:42:35.410067Z K 7 svn:log V 472 Extract the code to find and map the MADT ACPI table during early kernel startup and genericize it so it can be reused to map other tables as well: - Add a routine to walk a list of ACPI subtables such as those used in the APIC and SRAT tables in the MI acpi(4) driver. - Move the routines for mapping and unmapping an ACPI table as well as mapping the RSDT or XSDT and searching for a table with a given signature out into acpica_machdep.c for both amd64 and i386. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-09-23T15:56:09.898809Z K 7 svn:log V 208 MFC 197350: Re-remove the IBM0057 ID used for PS/2 mouse controllers. The asl for the 61p includes the hotkey device as IBM0068 and the mouse as IBM0057 similar to other systems. Approved by: re (kensmith) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-09-23T17:48:16.881050Z K 7 svn:log V 68 Replace 'can not' with 'cannot' so that we use 'cannot' everywhere. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2009-09-23T20:13:36.435233Z K 7 svn:log V 516 - Use spin lock instead of default mutex for safety. INT/IRET instructions save/clear/restore flags but emulated flags have no effect on the host. I believe BIOS writers never meant to run their code in emulated environment with interrupt enabled. :-) - Use memcpy(3) instead of copying individual members. I believe struct x86regs was intentionally copied from the first half of struct x86emu_regs for this very purpose. - Fix some style nits and consistencies. Reviewed by: delphij, paradox (ddkprog yahoo com) END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2009-09-23T20:37:00.075306Z K 7 svn:log V 128 don't block I/O progress waiting for a pre-fetch stream if we find a matching stream but can't get the lock skip the prefetch END K 10 svn:author V 4 jkim K 8 svn:date V 27 2009-09-23T20:49:14.848391Z K 7 svn:log V 160 Move sys/dev/x86bios to sys/compat/x86bios. It may not be optimal but it is clearly better than the old place. OK'ed by: delphij, paradox (ddkprog yahoo com) END K 10 svn:author V 7 attilio K 8 svn:date V 27 2009-09-23T21:38:57.453469Z K 7 svn:log V 802 rwlock implemented from libthr need to fall through the 'hard path' and query umtx also if the shared waiters bit is set on a shared lock. The writer starvation avoidance technique, infact, can lead to shared waiters on a shared lock which can bring to a missed wakeup and thus to a deadlock if the right bit is not checked (a notable case is the writers counterpart to be handled through expired timeouts). Fix that by checking for the shared waiters bit also when unlocking the shared locks. That bug was causing a reported MySQL deadlock. Many thanks go to Nick Esborn and his employer DesertNet which provided time and machines to identify and fix this issue. PR: thread/135673 Reported by: Nick Esborn Tested by: Nick Esborn Reviewed by: jeff END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2009-09-24T00:22:33.494977Z K 7 svn:log V 141 - align the arc state lock and reduce the length of time that it is held - swap data metadata enum order - parallelize locking on ARC states END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2009-09-24T01:58:29.869630Z K 7 svn:log V 341 Fix alq_getn such that it no longer uses malloc, which ensures the KPI is safe to use in all contexts. This change allows the buffer to develop a "hole" at the end when a wrap occurs, which should significantly improve performance in situations where the buffer is wrapping frequently. Testing is required. Sponsored by: FreeBSD Foundation END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2009-09-24T02:15:05.103676Z K 7 svn:log V 245 Remove cruft that was required to allow ALQ to compile and run on FreeBSD 6, 7 and 8. Any MFC of the new ALQ work will require changes to the code that replicate the relevant chunks of what this commit removes. Sponsored by: FreeBSD Foundation END K 10 svn:author V 6 marcel K 8 svn:date V 27 2009-09-24T06:00:49.509696Z K 7 svn:log V 100 Don't create more partitions than can fit in the table by checking that the index is within bounds. END K 10 svn:author V 3 avg K 8 svn:date V 27 2009-09-24T07:11:23.355416Z K 7 svn:log V 488 number of cleanups in i386 and amd64 pci md code o introduce PCIE_REGMAX and use it instead of ad-hoc constant o where 'reg' parameter/variable is not already unsigned, cast it to unsigned before comparison with maximum value to cut off negative values o use PCI_SLOTMAX in several places where 31 or 32 were explicitly used o drop redundant check of 'bytes' in i386 pciereg_cfgread() - valid values are already checked in the subsequent switch Reviewed by: jhb MFC after: 1 week END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2009-09-24T08:16:12.888206Z K 7 svn:log V 154 Enable the KASSERT to catch accounting errors now that the patch to add sack_hole_bytes has been tested and works well. Sponsored by: FreeBSD Foundation END K 10 svn:author V 7 attilio K 8 svn:date V 27 2009-09-24T08:35:17.993960Z K 7 svn:log V 429 MFC r197445: Let fall down in the hard path (thus handling shared waiters wakeup correctly) for the shared waiters also in the rwlock held in shared mode as well, fixing possible deadlocks. Please note that this is a special condition as we want this fix in before RC2 as we assume it is critical and so it has been handled as an instant-merge. For the STABLE_7 branch, 1 week before the MFC is assumed. Approved by: re (kib) END K 10 svn:author V 7 attilio K 8 svn:date V 27 2009-09-24T09:08:22.973675Z K 7 svn:log V 132 MFC r197223: Fix a deadlock in sched_switch_migrate given by the runqueues being not locked at once together when doing the switch. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-09-24T11:11:00.942437Z K 7 svn:log V 70 Update the includes to two more levels of subdirs. MFC after: 1 week END K 10 svn:author V 6 emaste K 8 svn:date V 27 2009-09-24T14:26:42.644367Z K 7 svn:log V 114 Add a backtrace to the "fpudna in kernel mode!" case, to help track down where this comes from. Reviewed by: bde END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-09-24T14:30:17.040003Z K 7 svn:log V 143 Manually remove mergeinfo from this file. For some reason svn didn't elide this automatically as it should have during the previous revision. END K 10 svn:author V 4 nyan K 8 svn:date V 27 2009-09-24T15:34:18.905299Z K 7 svn:log V 361 MFC: r197322 and r197374 Revision: 197322 Log: Correct BIOS header sanitizing on pc98. Revision: 197374 Log: Disable a check on a disk size because it's too strict. This change is to avoid using incorrect geometry. It seems that this is the same problem in g_part_bsd_read()@g_part_bsd.c. Reviewed by: rink Approved by: re (kib) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2009-09-24T15:49:15.074152Z K 7 svn:log V 214 Close race in zfs_zget(). We have to increase usecount first and then check for VI_DOOMED flag. Before this change vnode could be reclaimed between checking for the flag and increasing usecount. MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2009-09-24T15:56:26.359110Z K 7 svn:log V 801 Before calling vflush(FORCECLOSE) mark file system as unmounted so the following vnops will fail. This is very important, because without this change vnode could be reclaimed at any point, even if we increased usecount. The only way to ensure that vnode won't be reclaimed was to lock it, which would be very hard to do in ZFS without changing a lot of code. With this change simply increasing usecount is enough to be sure vnode won't be reclaimed from under us. To be precise it can still be reclaimed but we won't be able to see it, because every try to enter ZFS through VFS will result in EIO. The only function that cannot return EIO, because it is needed for vflush() is zfs_root(). Introduce ZFS_ENTER_NOERROR() macro that only locks z_teardown_lock and never returns EIO. MFC after: 3 days END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-09-24T16:51:56.008240Z K 7 svn:log V 126 Remove unnecessary locking from attach(). This fixes a LOR between the acpi_ibm lock and the sysctl lock. MFC after: 3 days END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-09-24T16:57:35.659244Z K 7 svn:log V 143 Use __NO_STRICT_ALIGNMENT to determine whether de(4) have to apply alignment fixup code for received frames on strict alignment architectures. END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-09-24T17:03:32.340647Z K 7 svn:log V 247 Do not call BUS_DRIVER_ADDED() for detached buses (attach failed) on driver load. This fixes crash on atapicam module load on systems, where some ata channels (usually ata1) was probed, but failed to attach. Reviewed by: jhb, imp Tested by: many END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-09-24T17:07:04.020474Z K 7 svn:log V 29 Consistently use bus_addr_t. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-09-24T17:11:41.471291Z K 7 svn:log V 31 Destroy dmamap in dma cleanup. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-09-24T17:53:00.814837Z K 7 svn:log V 869 Align Tx/Rx descriptors on 32 bytes boundary instead of PAGE_SIZE. Also align setup descriptor on 32 bytes boundary. Tx buffer have no alignment limitation so create dmamap without alignment restriction[1]. Rx buffer still seems to require 4 bytes alignment limitation but we can simply use MCLBYTES for size to map the buffer instead of TULIP_DATA_PER_DESC as the buffer is allocated with m_getcl(9). de(4) supports up to TULIP_MAX_TXSEG segments for Tx buffers, increase maximum dma segment size to TULIP_MAX_TXSEG * MCLBYTES. While I'm here remove TULIP_DATA_PER_DESC as it is not used anymore. This should fix de(4) breakage introduced after r176206. Submitted by: jhb [1] Reported by: WATANABE Kazuhiro < CQG00620 <> nifty dot ne dot jp > Tested by: WATANABE Kazuhiro < CQG00620 <> nifty dot ne dot jp >, Takahashi Yoshihiro < nyan <> jp dot freebsd dot org > END K 10 svn:author V 4 jkim K 8 svn:date V 27 2009-09-24T19:24:42.340369Z K 7 svn:log V 203 - Use FreeBSD function naming convention. - Change x86biosCall() to more appropriate x86bios_intr().[1] Discussed with: delphij, paradox (ddkprog yahoo com) Submitted by: paradox (ddkprog yahoo com)[1] END K 10 svn:author V 4 jkim K 8 svn:date V 27 2009-09-24T19:42:56.606881Z K 7 svn:log V 66 r197444 unnecessarily changed positions of these files. Re-sort. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2009-09-24T20:10:00.358543Z K 7 svn:log V 212 Some broken VESA BIOSes, e.g., IBM T23, return wrong value from vesa_bios_get_line_length() in graphics mode. Always calculate the value from known video info instead. Submitted by: paradox (ddkprog yahoo com) END K 10 svn:author V 4 jkim K 8 svn:date V 27 2009-09-24T20:23:24.231354Z K 7 svn:log V 157 Initialize registers to zero before calling the interrupt handlers inside emulator as we did in r197424 for vesa. Submitted by: paradox (ddkprog yahoo com) END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-09-24T20:33:14.053884Z K 7 svn:log V 825 Make SCS work in 8-bit mode. This means we can finally do things like VT100 box drawing when using Syscons (8-bit characters). As far as I know, the only remaining issue is the absense of proper escape sequences for special keyboard characters (cursor, F1 to F12, etc) and xterm emulation should be ready for general use. Enabling xterm would have the following advantages: - Easier possible migration to Unicode. cons25 termcap entries are very 8-bit centric. They use things like CP437 characters for box drawing, etc. - Better support for SSH'ing to other operating systems/devices. Most switches use VT100-style admin interfaces. - Reduced bandwidth, because applications can now use things like scrolling regions. - You can finally use applications like dtach(1) on both the console and inside an xterm. END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-09-24T20:34:44.905017Z K 7 svn:log V 142 Add __unused. It turns out my previous commit does survive a buildkernel, but not compilation of the individual test tools that use WARNS=6. END K 10 svn:author V 8 sepotvin K 8 svn:date V 27 2009-09-24T20:43:08.079272Z K 7 svn:log V 180 MFC r197259 The buffer returned by fgetln is not a "C" string and might not be NUL terminated. Make sure that it is before using it. Reviewed by: marck@ Approved by: re (kib) END K 10 svn:author V 6 brooks K 8 svn:date V 27 2009-09-24T21:32:56.970870Z K 7 svn:log V 247 MFC r197269: Allocate space for the group array in a static credential used in the quota code. One case was correctly handled in r194498, but this one was missed. PR: kern/138657 Tested by: PR submitter MFC after: 3 days Approved by: re@ (kib) END K 10 svn:author V 6 brooks K 8 svn:date V 27 2009-09-24T21:35:13.622530Z K 7 svn:log V 323 MFC r196990: cr_groups is no longer embedded in struct ucred and is instead stored in a seperate array. As such we need to use kvm_read rather than bcopy to populate the ki_groups field. This fixes a crash when running ps -ax on a coredump. Reported by: brucec Tested by: brucec MFC after: 3 days Approved by: re@ (kib) END K 10 svn:author V 4 jkim K 8 svn:date V 27 2009-09-24T22:42:35.351903Z K 7 svn:log V 76 Dump real mode registers under bootverbose to help debugging BIOS emulator. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2009-09-25T00:03:13.274009Z K 7 svn:log V 325 In function do_rw_wrlock, when a writer got an error and before returning, check if there are readers blocked by us via URWLOCK_WRITE_WAITERS flag, and resume the readers. The error must be EAGAIN, otherwise there must have memory problem, and nobody can rescue the buggy application. The revision 197445 might be reverted. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2009-09-25T00:15:30.309726Z K 7 svn:log V 59 don't report error if key was deleted. PR: threads/135462 END K 10 svn:author V 7 delphij K 8 svn:date V 27 2009-09-25T02:19:57.886411Z K 7 svn:log V 16 Fix LINT build. END K 10 svn:author V 5 marck K 8 svn:date V 27 2009-09-25T07:57:28.909630Z K 7 svn:log V 363 MFC r197150: There is a bug where mze_insert() can trigger an assert() of inserting the same entry twice. This bug is not fixed yet, but leads to situation where when try to access corrupted directory the kernel will panic. Until the bug is properly fixed, try to recover from it and log that it happened. OpenSolaris bug: 6709336 Approved by: pjd END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-09-25T11:58:51.357118Z K 7 svn:log V 477 Conformance: ignore {delete,insert} line while outside the scrolling region. I noticed a small inconsistency in delete and insert line between xterm and libteken. libteken allows these actions to happen while the cursor is placed outside the scrolling region, while xterm does not. This behaviour seems to be VT100-like. Confirmation: http://www.vt100.net/docs/vt102-ug/chapter5.html "This sequence is ignored when cursor is outside scrolling region." MFC after: 1 month END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-09-25T13:51:01.927259Z K 7 svn:log V 301 Add a new escape sequence to switch between cons25 and xterm. Just run this to switch to xterm: printf '\e[=T' If you get bored and want to switch back to cons25, run this: printf '\e[=1T' I can now send an email to the lists, asking whether people are interested in trying the xterm emulator. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-09-25T14:58:00.717346Z K 7 svn:log V 319 MFC 197406: Don't reread the command register to see if enabling I/O or memory decoding "took". Other OS's that I checked do not do this and it breaks some amdpm(4) devices. Prior to 7.2 we did not honor the error returned when this failed anyway, so this in effect restores previous behavior. Approved by: re (kib) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-09-25T14:58:30.633052Z K 7 svn:log V 296 MFC 197406: Don't reread the command register to see if enabling I/O or memory decoding "took". Other OS's that I checked do not do this and it breaks some amdpm(4) devices. Prior to 7.2 we did not honor the error returned when this failed anyway, so this in effect restores previous behavior. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-09-25T15:08:26.036215Z K 7 svn:log V 375 MFC 197410: - Split the logic to parse an SMAP entry out into a separate function on amd64 similar to i386. This fixes a bug on amd64 where overlapping entries would not cause the SMAP parsing to stop. - Change the SMAP parsing code to do a sorted insertion into physmap[] instead of an append to support systems with out-of-order SMAP entries. Approved by: re (kib) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-09-25T15:08:51.543964Z K 7 svn:log V 352 MFC 197410: - Split the logic to parse an SMAP entry out into a separate function on amd64 similar to i386. This fixes a bug on amd64 where overlapping entries would not cause the SMAP parsing to stop. - Change the SMAP parsing code to do a sorted insertion into physmap[] instead of an append to support systems with out-of-order SMAP entries. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-09-25T15:14:11.423828Z K 7 svn:log V 185 MFC 197415: The elements in the component arrays may be direct Package objects rather than references to objects. In that case, simply use the Package directly. Approved by: re (kib) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-09-25T15:14:33.148083Z K 7 svn:log V 162 MFC 197415: The elements in the component arrays may be direct Package objects rather than references to objects. In that case, simply use the Package directly. END K 10 svn:author V 6 marius K 8 svn:date V 27 2009-09-25T16:45:27.048274Z K 7 svn:log V 689 - Add missing bus_dmamap_sync(9) calls for the work DMA map. Previously the work area was totally unsynchronized which means this driver only had a chance of working on x86 when no bounce buffers were involved, which isn't that likely given that support for 64-bit DMA is currently broken throughout ata(4). - Add necessary little-endian conversion of accesses to the work area, making this driver work on big-endian hosts. While at it, use the alignment-agnostic byte order encoders in order to be on the safe side. - Clear the reserved member of the SG list entries in order to be on the safe side. [1] Submitted by: yongari [1] Reviewed by: yongari Approved by: re (kib) END K 10 svn:author V 6 marius K 8 svn:date V 27 2009-09-25T17:07:43.872048Z K 7 svn:log V 680 MFC: 197402 - Add missing bus_dmamap_sync(9) calls for the work DMA map. Previously the work area was totally unsynchronized which means this driver only had a chance of working on x86 when no bounce buffers were involved, which isn't that likely given that support for 64-bit DMA is currently broken throughout ata(4). - Add necessary little-endian conversion of accesses to the work area, making this driver work on big-endian hosts. While at it, use the alignment-agnostic byte order encoders in order to be on the safe side. - Clear the reserved member of the SG list entries in order to be on the safe side. [1] Submitted by: yongari [1] Reviewed by: yongari END K 10 svn:author V 6 marius K 8 svn:date V 27 2009-09-25T17:08:51.008038Z K 7 svn:log V 99 Merge r194204 from amd64/i386: Enable PRINTF_BUFR_SIZE by default. PR: 139134 MFC after: 3 days END K 10 svn:author V 6 marcel K 8 svn:date V 27 2009-09-25T17:48:30.071914Z K 7 svn:log V 139 MFC rev 197449: Don't create more partitions than can fit in the table by checking that the index is within bounds. Approved by: re (kib) END K 10 svn:author V 6 marius K 8 svn:date V 27 2009-09-25T17:56:13.813527Z K 7 svn:log V 681 MFC: r197402 - Add missing bus_dmamap_sync(9) calls for the work DMA map. Previously the work area was totally unsynchronized which means this driver only had a chance of working on x86 when no bounce buffers were involved, which isn't that likely given that support for 64-bit DMA is currently broken throughout ata(4). - Add necessary little-endian conversion of accesses to the work area, making this driver work on big-endian hosts. While at it, use the alignment-agnostic byte order encoders in order to be on the safe side. - Clear the reserved member of the SG list entries in order to be on the safe side. [1] Submitted by: yongari [1] Reviewed by: yongari END K 10 svn:author V 4 jkim K 8 svn:date V 27 2009-09-25T17:56:32.855831Z K 7 svn:log V 283 - Reduce BIOS memory mapping. We want 1MB of physical memory, not 12MB[1]. - Remove CS and IP registers from x86bios.h. They have no use for us. - Adjust register dump to make it little bit more useful for debugging. Submitted by: paradox (ddkprog yahoo com)[1] (initial version) END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-09-25T18:04:55.884512Z K 7 svn:log V 297 MFC rev. 197462: Do not call BUS_DRIVER_ADDED() for detached buses (attach failed) on driver load. This fixes crash on atapicam module load on systems, where some ata channels (usually ata1) was probed, but failed to attach. Reviewed by: jhb, imp Tested by: many Approved by: re (kib) END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-09-25T18:07:23.840065Z K 7 svn:log V 256 Remove constraint, requiring request data to fulfill controller's alignment requirements. It is busdma task, to manage proper alignment by loading data to bounce buffers. PR: kern/127316 Reviewed by: current@ Tested by: Ryan Rogers Approved by: re (kib) END K 10 svn:author V 4 jkim K 8 svn:date V 27 2009-09-25T18:08:38.103528Z K 7 svn:log V 277 Reject some VESA graphics modes if the controller does not have enough memory to support them. Some adapters have expansible memory slots but video mode table is static. In this case, unusable modes may be reported. Submitted by: paradox (ddkprog yahoo com) (initial patch) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2009-09-25T18:19:50.045153Z K 7 svn:log V 216 Switch to fletcher4 as the default checksum algorithm. Fletcher2 was proven to be a bit weak and OpenSolaris also switched to fletcher4. PR: kern/139072 Reported by: Daniel Grund MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2009-09-25T18:24:21.604574Z K 7 svn:log V 68 Fletcher4 is not the default checksum algorithm. MFC after: 3 days END K 10 svn:author V 3 des K 8 svn:date V 27 2009-09-25T18:44:34.127990Z K 7 svn:log V 49 Improve comments, and remove a bogus 0 id check. END K 10 svn:author V 3 des K 8 svn:date V 27 2009-09-25T18:50:33.911043Z K 7 svn:log V 26 Further improve comments. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2009-09-25T19:49:07.418854Z K 7 svn:log V 748 - Use x86bios_offset() instead of BIOS_PADDRTOVADDR() macro.[1] - Clear all registers before calling real mode interrupt handlers as we did for dpms and vesa and re-enable the function as it should be fixed by this. - Tidy up register access. For example, when we call INT 0x15, AH=0xc0, we used to initialize AX=0xc000 to clear AL at the same time but it is very confusing. We don't have to do this any more because we are explicitly clearing all registers now. - Check size of system configuration table although it is almost always 8. This is to make sure we are not reading some random low physical memory. Hopefully it is just zero in that case. :-) - Fix some style nits and add more comments. Submitted by: paradox (ddkprog yahoo com)[1] END K 10 svn:author V 6 marius K 8 svn:date V 27 2009-09-25T19:59:18.305930Z K 7 svn:log V 1240 MFC: r197401 - According to Linux, the ALi M5451 can do 31-bit DMA instead of just 30-bit like the reset of the controllers supported by this driver. Actually ALi M5451 can be setup up to generate 32-bit addresses by setting the 31st bit via the accompanying ISA bridge, which allows it to work in sparc64 machines whose IOMMU require at least 32-bit DMA. Even though other architectures would also benefit from 32-bit DMA, enabling this bit is limited to sparc64 as bus_dma(9) doesn't generally guarantee that a low address of BUS_SPACE_MAXADDR_32BIT results in a buffer in the 32-bit range. - According to Tatsuo YOKOGAWA's ali(4), the the DMA transfer size of ALi M5451 is fixed to 64k and in fact using the default size of 4k causes the chip to overrun the mapping, triggering uncorrectable DMA errors on sparc64. - The 4DWAVE DX and NX require the recording buffer to be 8-byte aligned so adjust the bus_dma_tag_create(9) accordingly. - Unlike the rest of the controllers supported by this driver, the ALi M5451 only has 32 hardware channels instead of 64 so limit the loop in tr_intr() accordingly. [1] Submitted by: yongari [1] Reviewed by: yongari (superset of what is committed) Approved by: re (kib) END