summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Tiny wording nits.keramida2008-10-191-4/+5
| | | | MFC after: 1 week
* Further simplify the code.delphij2008-10-191-11/+2
| | | | Submitted by: Christoph Mallon <christoph.mallon gmx.de>
* add -n option to suppress clearing the build tree and add -DNO_CLEANsam2008-10-191-2/+18
| | | | to buildworld and/or buildkernel
* - Forward port flush of page table updates on context switch or userretkmacy2008-10-193-2/+25
| | | | - Forward port vfork XEN hack
* GC gratuitous XEN defineskmacy2008-10-191-6/+0
|
* - move gdt, ldt allocation to before KPT allocationkmacy2008-10-192-42/+65
| | | | | | | | | - fix bugs where we would: - try to map the hypervisors address space - accidentally kick out an existing kernel mapping for some domain creation memory allocation sizes - accidentally skip a 2MB kernel mapping for some domain creation memory allocation sizes - don't rely on trapping in to xen to read rcr2, reference through vcpu - whitespace cleanups
* GC unused valueskmacy2008-10-192-13/+0
|
* Add test to verify ACL restores on FreeBSD, verify kern/128203 (mtimekientzle2008-10-193-4/+248
| | | | | | | | restore fails if ACL provided), apply patch from kern/128203, and verify fix. PR: kern/128203 Submitted by: Udo Schweigert MFC after: 3 days
* Style: Mark private data 'static', correct an old comment.kientzle2008-10-191-5/+4
| | | | MFC after: 3 days
* Coalesce sequentional BIO_DELETE requests to slightly relax size and alignmentmav2008-10-181-8/+23
| | | | constraints required by the card.
* Implement BIO_DELETE command with MMC and SD erase commands.mav2008-10-184-149/+333
| | | | | | | | | | | | | | | | | Erase operation gives card's logic information about unused areas to help it implement wear-leveling with lower overhead comparing to usual writing. Erase is much faster then write and does not depends on data bus speed. Also as result of hitting in-card write logic optimizations I have measured up to 50% performance boost on writing undersized blocks into preerased areas. At the same time there are strict limitations on size and allignment of erase operations. We can erase only blocks aligned to the erase sector size and with size multiple of it. Different cards has different erase sector size which usually varies from 64KB to 4MB. SD cards actually allow to erase smaller blocks, but it is much more expensive as it is implemented via read-erase-write sequence and so not sutable for the BIO_DELETE purposes. Reviewed by: imp@
* The flags value was not always being copied out in the recv routine like itrrs2008-10-181-2/+3
| | | | | should be. Obtained from: Michael Tuexen
* New sockets (accepted) were not inheriting the proper snd/rcv buffer value.rrs2008-10-181-3/+5
| | | | Obtained from: Michael Tuexen
* - Peers rwnd is now available for the MIB.rrs2008-10-182-0/+2
| | | | Obtained from: Michael Tuexen
* - Adapt layer indication was always being given (it should onlyrrs2008-10-181-33/+28
| | | | | | | | | | be given when the user has enabled it). (Michael Tuexen) - Sack Immediately was not being set properly on the actual chunk, it was only put in the rcvd_flags which is incorrect. (Michael Tuexen) - added an ifndef userspace to one of the already present macro's for inet (Brad Penoff) Obtained from: Michael Tuexen and Brad Penoff MFC after: 4 weeks
* Reported by Yehuda Weinraub (yehudasa@gamil.com) - CRC32C algorithmrrs2008-10-181-3/+3
| | | | | | | | uses incorrect init_bytes value. It SHOULD have the number of bytes to get to a 4 byte boundary. PR: 128134 MFC after: 4 weeks
* Set PCB_32BIT and clear PCB_GS32BIT for linux32 binaries.kib2008-10-181-1/+2
| | | | | Tested by: dchagin MFC after: 3 days
* Increase the date in the manual page, which should have been done in r183922.ed2008-10-181-1/+1
| | | | | | | In r183922 I introduced a new DDB command, documented it, but forgot to bump the date in the manual page. Pointed out by: bz
* Use strlcpy() in !localized case to avoid the -1's.delphij2008-10-171-2/+1
|
* Use strlcpy() when we mean it.delphij2008-10-173-6/+3
|
* Use strlcpy() when we mean it.delphij2008-10-172-6/+3
|
* - Use static for usage()delphij2008-10-171-3/+5
| | | | | | - Include necessary header files. setfib(1) should pass WARNS=6 with this changes.
* Reduce code duplication: use calloc() intead of malloc()delphij2008-10-171-4/+2
| | | | and memset afterward.
* _kvm_malloc allocates memory through calloc() whichdelphij2008-10-172-2/+0
| | | | returns zeroed memory, so don't redo the initialization.
* Add cr_canseeinpcb() doing checks using the cached socketbz2008-10-176-11/+44
| | | | | | | | | | credentials from inp_cred which is also available after the socket is gone. Switch cr_canseesocket consumers to cr_canseeinpcb. This removes an extra acquisition of the socket lock. Reviewed by: rwatson MFC after: 3 months (set timer; decide then)
* - For chipsets that can't do 64k transfers, fall back to 32k transfersjhb2008-10-174-5/+5
| | | | | | | | | | | | | (still a power of 2) rather than 63k transfers. Even with 63k transfers some machines (such as Dell SC1435's) were experiencing chronic data corruption. - Use the MIO method to talk to the Serverworks HT1000_S1 SATA controller like all the other SATA controllers rather than the compat PATA method. This lets the controller see all 4 SATA ports and also matches the behavior of the Linux driver. Silence from: sos MFC after: 3 days
* Add a mac_inpcb_check_visible implementation to all MAC policiesbz2008-10-177-0/+111
| | | | | | | that handle mac_socket_check_visible. Reviewed by: rwatson MFC after: 3 months (set timer; decide then)
* Display usage when pkg_add is called with no arguments.brooks2008-10-171-1/+1
| | | | | | | PR: bin/121093 Submitted by: volker Approved by: portmgr (linimon) MFC after: 3 days
* Adjust default keymaps for Ireland and Channel Islands. They use the UKphilip2008-10-171-0/+4
| | | | | | | | keymap. You can learn some interesting things in the PR database! PR: conf/124411 Submitted by: Doctor Modiford <freebsd -at- modiford.com> MFC after: 3 days
* Wireless Mouse device of Sony VGP-WRC1 mouse/keyboard receiver has thebrooks2008-10-172-0/+3
| | | | | | | | same program interface as Microsoft Wireless Notebook Optical Mouse and needs a quirk. PR: usb/122712 MFC after: 3 days
* Add the nordic keyboard layout for Asus eee devices.philip2008-10-172-0/+133
| | | | | | PR: 126841 Submitted by: Peter <pb -at- ludd.ltu.se> MFC after: 3 days
* Support the remaining options listed in dhcp-options(5) and RFC 2132.brooks2008-10-173-5/+31
| | | | | | PR: bin/127076 Submitted by: jkim MFC after: 1 week
* Add mac_inpcb_check_visible MAC Framework entry point, which is similarbz2008-10-173-0/+16
| | | | | | | to mac_socket_check_visible but operates on the inpcb. Reviewed by: rwatson MFC after: 3 months (set timer, decide then)
* Use the label from the socket credential rather than thebz2008-10-171-1/+2
| | | | | | | | solabel which was not set by the mac_partition policy. Spotted by: rwatson Reviewed by: rwatson MFC after: 3 days
* MTC r183949:netchild2008-10-171-0/+5
| | | | | | | Allow to define MALLOC_PRODUCTION with a make variable instead of polluting the global CFLAGS. Reviewed by: jasone
* Track number of packets transmitted and number of packets receivedkmacy2008-10-171-1/+6
| | | | | PR: 125806 MFC after: 3 days
* Some 88E1149 PHY's page select is initialized to point to otheryongari2008-10-171-0/+14
| | | | | | | | | | | | | | | | | | | | bank instead of copper/fiber bank which in turn resulted in wrong registers were accessed during PHY operation. It is believed that page 0 should be used for copper PHY so reinitialize E1000_EADR to select default copper PHY. This fixes link establishment issue of nfe(4) on Sun Fire X4140. OpenBSD also has similimar patch but they just reset the E1000_EADR register to page 0. However some Marvell PHYs((88E3082, 88E1000) don't have the extended address register and the meaning of the register is quite different for each PHY model. So selecting copper PHY is limited to 88E1149 PHY which seems to be the only one that exhibits link establishment problem. If parent device know the type of PHY(either copper or fiber) that information should be notified to PHY driver but there is no good way to pass this information yet. Reported by: thompsa Reviewed by: thompsa
* make sure that SO_NO_DDP and SO_NO_OFFLOAD get passed in correctlykmacy2008-10-171-0/+2
| | | | | PR: 127360 MFC after: 3 days
* Free old arrays if we increase them.phk2008-10-161-0/+1
| | | | Pointed out by: mlaier
* Make ministat(1) vastly faster on huge datasets.phk2008-10-162-51/+36
|
* Eliminate flushing of L2 cache in ARM context switch routines.raj2008-10-161-8/+0
| | | | | | | With VIPT L2 cache such syncing not only is redundant, but also a performance penalty. Pointed out by: cognet
* Document what the sed trick is for.obrien2008-10-162-4/+5
| | | | Remove an embedded <TAB>, and use same style for both files.
* - Fix a race in witness_checkorder() where, between the PCPU_GET() andattilio2008-10-161-30/+52
| | | | | | | | | | | | | | PCPU_PTR() curthread can migrate on another CPU and get incorrect results. - Fix a similar race into witness_warn(). - Fix the interlock's checks bypassing by correctly using the appropriate children even when the lock_list chunk to be explored is not the first one. - Allow witness_warn() to work with spinlocks too. Bugs found by: tegge Submitted by: jhb, tegge Tested by: Giovanni Trematerra <giovanni dot trematerra at gmail dot com>
* Remove a useless global static variable.zec2008-10-161-2/+0
| | | | Approved by: bz (ad-hoc mentor)
* Restore code wrongly removed in SVN revision 173004, it causes threadeddavidxu2008-10-161-1/+9
| | | | | | process to be stuck in execv(). Noticed by: delphij
* Comment on the umass CD ROM devices in the UMTS modems.n_hibma2008-10-151-1/+11
|
* Rewrite the driver to better support the Huawei devices. It should now supportn_hibma2008-10-153-252/+294
| | | | | | | | | | | the Sierra and Novatel devices, ignore all umass devices and hide the umass devices that represent the CD ROM devices (but not the SD card slot in the Huawei Mobile dongle). Note: This driver in FBSD7 seems to suffer from memory corruption when used with an Option GT Quad. The E220 however works flawlessly. Also add the ID for the Option GTMaxHSUPA, provided by Olivier Fromme.
* Check that the mbuf len is positive (like we do in the v4 case).bz2008-10-151-1/+1
| | | | | | | | | | | | | | Read the other way round this means that even with the checks the m_len turned negative in some cases which led to panics. The reason to my understanding seems to be that the checks are wrong (also for v4) ignoring possible padding when checking cmsg_len or padding after data when adjusting the mbuf. Doing proper cheks seems to break applications like named so further investigation and regression tests are needed. PR: kern/119123 Tested by: Ashish Shukla wahjava gmail.com MFC after: 3 days
* Import some improvements to the TTY code from the MPSAFE TTY branch.ed2008-10-153-41/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Change the ddb(4) commands to be more useful (by thompsa@): - `show ttys' is now called `show all ttys'. This command will now also display the address where the TTY data structure resides. - Add `show tty <addr>', which dumps the TTY in a readable form. - Place an upper bound on the TTY buffer sizes. Some drivers do not want to care about baud rates. Protect these drivers by preventing the TTY buffers from getting enormous. Right now we'll just clamp it to 64K, which is pretty high, taking into account that these buffers are only used by the built-in discipline. - Only call ttydev_leave() when needed. Back in April/May the TTY reference counting mechanism was a little different, which required us to call ttydev_leave() each time we finished a cdev operation. Nowadays we only need to call ttydev_leave() when we really mark it as being closed. - Improve return codes of read() and write() on TTY device nodes. - Make sure we really wake up all blocked threads when the driver calls tty_rel_gone(). There were some possible code paths where we didn't properly wake up any readers/writers. - Add extra assertions to prevent sleeping on a TTY that has been abandoned by the driver. - Use ttydev_cdevsw as a more reliable method to figure out whether a device node is a real TTY device node. Obtained from: //depot/projects/mpsafetty/... Reviewed by: thompsa
* Package installation is handled by starting off with the list of packageskensmith2008-10-155-9/+69
| | | | | | | | | | | | | | | | | | the user selected and then recursively installing their dependencies, finally installing the ones the user selected after the recursion unwinds. Since users often select "high-level" packages that are on a higher numbered disc for the multi-volume release CDROMS this resulted in excessive disc swapping while installing things like kde, gnome, etc. Cut down on disc swapping by iterating through the disc volumes one at a time if we notice the package set is on multiple volumes. If a package is on a higher volume don't install it yet, but still "process it" so we get its dependencies installed. Because of the way the package sets for releases get assembled we're guaranteed dependencies will be on the same volume or lower. Reviewed by: jhb MFC after: 1 week
OpenPOWER on IntegriCloud