4 years agoMerge branch 'p/anton.e/temp_hss' of git:projects/modsched/freebsd into p/anton.e... p/anton.e/temp_hss
Anton Eisenbraun [Wed, 23 Mar 2016 09:03:08 +0000 (10:03 +0100)]
Merge branch 'p/anton.e/temp_hss' of git:projects/modsched/freebsd into p/anton.e/temp_hss

4 years agobackup
Anton Eisenbraun [Mon, 25 Jan 2016 09:05:34 +0000 (10:05 +0100)]

4 years agobackup removed my load elf function, since they all in fw now
Anton Eisenbraun [Wed, 21 Oct 2015 18:41:46 +0000 (20:41 +0200)]
backup removed my load elf function, since they all in fw now

4 years agobackup removed code which was moved to fw
Anton Eisenbraun [Tue, 20 Oct 2015 02:04:50 +0000 (04:04 +0200)]
backup removed code which was moved to fw

4 years agobackup removed linker file dependency
Anton Eisenbraun [Mon, 19 Oct 2015 17:11:34 +0000 (19:11 +0200)]
backup removed linker file dependency

4 years agobackup adapted linux relocation to freebsd. most of the freebsd specific stuff
Anton Eisenbraun [Sat, 17 Oct 2015 21:06:00 +0000 (23:06 +0200)]
backup adapted linux relocation to freebsd. most of the freebsd specific stuff
is now obsolete.

4 years agobackup ksyms lookup works.
Anton Eisenbraun [Fri, 16 Oct 2015 19:50:27 +0000 (21:50 +0200)]
backup ksyms lookup works.

4 years agobackup ksyms
Anton Eisenbraun [Mon, 12 Oct 2015 22:26:02 +0000 (00:26 +0200)]
backup ksyms

4 years agobackup
Anton Eisenbraun [Sun, 11 Oct 2015 19:33:08 +0000 (21:33 +0200)]

4 years agoMoved allocation of module loading to framework.
Anton Eisenbraun [Sat, 10 Oct 2015 20:12:13 +0000 (22:12 +0200)]
Moved allocation of module loading to framework.

4 years agoRemoved part of load_elf_file func.
Anton Eisenbraun [Thu, 8 Oct 2015 22:53:30 +0000 (00:53 +0200)]
Removed part of load_elf_file func.

4 years agoFirst step towards linux and fbsd module loading merging.
Anton Eisenbraun [Wed, 30 Sep 2015 19:12:51 +0000 (21:12 +0200)]
First step towards linux and fbsd module loading merging.

4 years agoChanged new syscall prototype.
Anton Eisenbraun [Tue, 29 Sep 2015 19:36:11 +0000 (21:36 +0200)]
Changed new syscall prototype.

4 years agoThis is a backup commit. There are a lot of prints and most of the stuff is quite...
Anton Eisenbraun [Tue, 29 Sep 2015 17:19:50 +0000 (19:19 +0200)]
This is a backup commit. There are a lot of prints and most of the stuff is quite hacky.
However, this is what happened: Added own syscall which is not used yet. Modified module loadig, so we
can load ordinary binaries. Switching between rr scheduler works.

6 years agoAdded MODULES_OVERRIDE statically to Makefile. master p/jkrieg/master
Jens Krieg [Fri, 27 Jun 2014 12:24:35 +0000 (14:24 +0200)]
Added MODULES_OVERRIDE statically to Makefile.

6 years agoAdded topo file. Kernel config now ignored in git. p/anton.e/master p/sechting/master
Anton Eisenbraun [Mon, 16 Jun 2014 09:06:28 +0000 (11:06 +0200)]
Added topo file. Kernel config now ignored in git.

6 years agoadded new topo files.
Jens Krieg [Thu, 5 Jun 2014 12:12:27 +0000 (14:12 +0200)]
added new topo files.

6 years agoMerge branch 'p/anton.e/master' of git:projects/modsched/freebsd into p/jkrieg/master
Jens Krieg [Mon, 26 May 2014 11:03:55 +0000 (13:03 +0200)]
Merge branch 'p/anton.e/master' of git:projects/modsched/freebsd into p/jkrieg/master

6 years agoAdded some files to FBSD owned by MOD_SCHED FW.
Jens Krieg [Mon, 26 May 2014 09:43:50 +0000 (11:43 +0200)]
Added some files to FBSD owned by MOD_SCHED FW.

6 years agoClneaned up several files
Anton Eisenbraun [Wed, 9 Apr 2014 15:02:11 +0000 (17:02 +0200)]
Clneaned up several files

6 years agoAdded fw->os locking layer.
Jens Krieg [Fri, 28 Feb 2014 13:00:41 +0000 (14:00 +0100)]
Added fw->os locking layer.

6 years agoFreeBSD booting with FW. (see FW commit)
Jens Krieg [Wed, 26 Feb 2014 16:00:53 +0000 (17:00 +0100)]
FreeBSD booting with FW. (see FW commit)

6 years agoMerge branch 'p/anton.e/master' of git:projects/modsched/freebsd into p/jkrieg/master
Jens Krieg [Mon, 27 Jan 2014 15:53:21 +0000 (16:53 +0100)]
Merge branch 'p/anton.e/master' of git:projects/modsched/freebsd into p/jkrieg/master


6 years agoFinal version with thread locking.
Anton Eisenbraun [Mon, 27 Jan 2014 15:42:19 +0000 (16:42 +0100)]
Final version with thread locking.

6 years agoCorrected a failure using thread_lock/thread_unlock.
Jens Krieg [Mon, 27 Jan 2014 15:37:48 +0000 (16:37 +0100)]
Corrected a failure using thread_lock/thread_unlock.

Final version without thread locking.

6 years agoReplaced further thread locks. Still not running.
Jens Krieg [Mon, 27 Jan 2014 08:40:53 +0000 (09:40 +0100)]
Replaced further thread locks. Still not running.

6 years agoReplaced thread_lock by interrupt disable. Not working!!!
Jens Krieg [Tue, 21 Jan 2014 17:03:25 +0000 (18:03 +0100)]
Replaced thread_lock by interrupt disable. Not working!!!

6 years agoReplaces sched_ule.c with modsched framework.
Jens Krieg [Thu, 9 Jan 2014 11:10:57 +0000 (12:10 +0100)]
Replaces sched_ule.c with modsched framework.

6 years agoStripped the schedule even further. Booting with FW.
Jens Krieg [Wed, 8 Jan 2014 18:27:07 +0000 (19:27 +0100)]
Stripped the schedule even further. Booting with FW.

6 years agoFreeBSD boots with modified FW RR-scheduler.
Jens Krieg [Wed, 8 Jan 2014 12:02:51 +0000 (13:02 +0100)]
FreeBSD boots with modified FW RR-scheduler.

6 years agoAdded fw_task to thread structure.
Jens Krieg [Tue, 17 Dec 2013 09:44:27 +0000 (10:44 +0100)]
Added fw_task to thread structure.

6 years agoSched_ule.c is the best!
Jens Krieg [Fri, 13 Dec 2013 12:33:32 +0000 (13:33 +0100)]
Sched_ule.c is the best!

6 years agoI love sched_ule.c.
Jens Krieg [Fri, 13 Dec 2013 12:31:09 +0000 (13:31 +0100)]
I love sched_ule.c.

6 years agoAnd again... fixed sched_ule.c.
Jens Krieg [Fri, 13 Dec 2013 12:27:13 +0000 (13:27 +0100)]
And again... fixed sched_ule.c.

6 years agoFixed broken sched_ule.c
Jens Krieg [Fri, 13 Dec 2013 10:05:24 +0000 (11:05 +0100)]
Fixed broken sched_ule.c

6 years agoAdded global scheduler functions of linux and FreeBSD to the framework. p/jkrieg/kbs_fbsd
Jens Krieg [Thu, 12 Dec 2013 13:26:11 +0000 (14:26 +0100)]
Added global scheduler functions of linux and FreeBSD to the framework.
The functions has been sorted by purpose.

6 years agoOS -> FW: All OS depended functions will be placed in <platform>_sched.c
Jens Krieg [Wed, 11 Dec 2013 16:46:31 +0000 (17:46 +0100)]
OS -> FW: All OS depended functions will be placed in <platform>_sched.c
FW -> OS: All framework function will be placed in os_<domain>.c

FreeBSD compiling.

6 years agoStructure again changed. FBSD not running!
Jens Krieg [Wed, 11 Dec 2013 14:19:52 +0000 (15:19 +0100)]
Structure again changed. FBSD not running!

6 years agoRemoved debug directory and made minor changes in source code.
Anton Eisenbraun [Tue, 10 Dec 2013 12:56:50 +0000 (13:56 +0100)]
Removed debug directory and made minor changes in source code.

6 years agoMerged current BertOS progress into new directory structure.
Jens Krieg [Mon, 9 Dec 2013 13:07:13 +0000 (14:07 +0100)]
Merged current BertOS progress into new directory structure.
Framework included into FreeBSD "Make" routine.

6 years agoAdded framework files.
Anton Eisenbraun [Tue, 26 Nov 2013 16:43:00 +0000 (17:43 +0100)]
Added framework files.

6 years agoFinal changes.
Jens Krieg [Tue, 26 Nov 2013 15:50:36 +0000 (16:50 +0100)]
Final changes.

6 years agoSMP running without balancing. Idle and general tasks have old priority
Jens Krieg [Tue, 26 Nov 2013 12:20:30 +0000 (13:20 +0100)]
SMP running without balancing. Idle and general tasks have old priority

6 years agoSmp boots faster.
Jens Krieg [Wed, 20 Nov 2013 16:52:15 +0000 (17:52 +0100)]
Smp boots faster.

6 years agoSingle core works. SMP thread stealing works as well but still slow.
Jens Krieg [Wed, 20 Nov 2013 14:35:52 +0000 (15:35 +0100)]
Single core works. SMP thread stealing works as well but still slow.

6 years agoGot rid of priorities.
Jens Krieg [Mon, 18 Nov 2013 15:54:50 +0000 (16:54 +0100)]
Got rid of priorities.

6 years agoFurther striped down of the kernel.
Jens Krieg [Wed, 13 Nov 2013 17:44:39 +0000 (18:44 +0100)]
Further striped down of the kernel.

6 years agoRemoved load tracking, score calculation, priority scaling. Added kernel
Anton Eisenbraun [Wed, 6 Nov 2013 17:14:22 +0000 (18:14 +0100)]
Removed load tracking, score calculation, priority scaling. Added kernel

6 years agoFixed bug where idle task were placed in the wrong queue. Also added
Anton Eisenbraun [Wed, 6 Nov 2013 14:04:05 +0000 (15:04 +0100)]
Fixed bug where idle task were placed in the wrong queue. Also added
changes from previous commit, since there went something wrong in the
commit process.

6 years agoRemoved realtime runqueue and levels of still remaining. System still
Anton Eisenbraun [Tue, 5 Nov 2013 17:35:44 +0000 (18:35 +0100)]
Removed realtime runqueue and levels of still remaining. System still

6 years agoAdded originals of the patched files and excluded amd64/compile from commit.
Anton Eisenbraun [Wed, 30 Oct 2013 16:37:59 +0000 (17:37 +0100)]
Added originals of the patched files and excluded amd64/compile from commit.

6 years agoApplied patches to make compiling on gentoo fbsd possible.
Anton Eisenbraun [Wed, 30 Oct 2013 16:20:58 +0000 (17:20 +0100)]
Applied patches to make compiling on gentoo fbsd possible.

7 years agoWe think we're ready for the 9.1-RELEASE builds.
kensmith [Fri, 30 Nov 2012 19:36:20 +0000 (19:36 +0000)]
We think we're ready for the 9.1-RELEASE builds.

Approved by: re (implicit)

7 years agoMerge r243708:
kensmith [Fri, 30 Nov 2012 19:35:01 +0000 (19:35 +0000)]
Merge r243708:
Guess when we'll be ready to announce 9.1-RELEASE.

Approved by: re (implicit)

7 years agoRemove stale documents.
hrs [Fri, 30 Nov 2012 16:18:26 +0000 (16:18 +0000)]
Remove stale documents.

Approved by: re (implicitly)

7 years ago- Bump versions and revert XML migration of the release documents in
hrs [Fri, 30 Nov 2012 16:15:35 +0000 (16:15 +0000)]
- Bump versions and revert XML migration of the release documents in
  releng/9.1 branch.  The doc tree release/9.1.0 for this release still uses
  SGML toolchain[1].

- Add SVNROOT{BASE,SRC,DOC,PORTS} for subversion repository URLs and
  BRANCH{SRC,DOC,PORTS} for the branches to, and
  remove -p, -r, -d options.  The revision to be built should be specified
  in the URL.

- Add {WORLD,KERNEL}_FLAGS to  These were supported in
  the old release build framework.

- Disable to use binary package for docproj port during a release build.
  This package should be built successfully.

Pointy hat to: hrs [1]
Approved by: re (implicitly)

7 years agoFix multiple Denial of Service vulnerabilities with named(8).
simon [Thu, 22 Nov 2012 22:52:15 +0000 (22:52 +0000)]
Fix multiple Denial of Service vulnerabilities with named(8).

Fix insufficient message length validation for EAP-TLS messages.

Fix Linux compatibility layer input validation error.

Security: FreeBSD-SA-12:06.bind
Security: FreeBSD-SA-12:07.hostapd
Security: FreeBSD-SA-12:08.linux
Security: CVE-2012-4244, CVE-2012-5166, CVE-2012-4445, CVE-2012-4576
Approved by: re
Approved by: security-officer

7 years agoMFC r242514:
eadler [Sat, 10 Nov 2012 06:05:04 +0000 (06:05 +0000)]
MFC r242514:
Revert the change that makes less default.

Since I've committed this I've receieved roughly an equal
amount of email thanking me for making this change
and asking me to revert it.

I've resisted making this change because
new users tend to prefer less over more
and these users are the least likely to know
how to change the PAGER on their own.

Approved by: cperciva (implicit)
Approved by: re (kib)

7 years agoReady for 9.1-RC3...
kensmith [Sun, 28 Oct 2012 16:21:46 +0000 (16:21 +0000)]
Ready for 9.1-RC3...

Approved by: re (implicit)

7 years agoMFC of r242187:
hrs [Sat, 27 Oct 2012 20:17:59 +0000 (20:17 +0000)]
MFC of r242187:

Fix an issue when ipv6_enable=YES && ipv6_gateway_enable=YES which could
prevent rtadvd(8) from working as intended.

Approved by: re (kib)

7 years agoMFC of 240586 and 240587 to unbreak release building:
hrs [Sat, 27 Oct 2012 19:40:25 +0000 (19:40 +0000)]
MFC of 240586 and 240587 to unbreak release building:

Update script:

 - Use svn for ports and doc trees
 - When installing a binary textproc/docproj package,
   switch pkg_add(1) to pkg(8) [1]

Approved by: re (implicitly)

7 years agoUpdate branch tag from RELENG_9 to RELENG_9_1.
kensmith [Wed, 24 Oct 2012 02:21:39 +0000 (02:21 +0000)]
Update branch tag from RELENG_9 to RELENG_9_1.

Approved by: re (implicit)

7 years agoUpdate for being on releng/9.1 (RELENG_9_1).
kensmith [Wed, 24 Oct 2012 02:20:07 +0000 (02:20 +0000)]
Update for being on releng/9.1 (RELENG_9_1).

Approved by: re (implicit)

7 years agoMFC r241976: Add the release package directory for 9.1-RELEASE.
kensmith [Wed, 24 Oct 2012 02:09:21 +0000 (02:09 +0000)]
MFC r241976: Add the release package directory for 9.1-RELEASE.

Approved by: re (implicit)

7 years agoMFC: r241679
marius [Sun, 21 Oct 2012 12:53:33 +0000 (12:53 +0000)]
MFC: r241679

It turns out that as documented, PCF8563_R_SECOND_VL (i.e. battery low)
doesn't automatically clear when VDD rises above Vlow again and needs to be
cleared manually. However, apparently this needs all of the time registers
to be set, i.e. pcf8563_settime(), and not just PCF8563_R_SECOND in order
for PCF8563_R_SECOND_VL to stick. Thus, we just issue a warning during
pcf8563_attach() rather than failing with ENXIO in case it is set.

Approved by: re (kib)

7 years agoMFC r241753:
delphij [Sat, 20 Oct 2012 07:39:47 +0000 (07:39 +0000)]
MFC r241753:

Integrate changes from LSI vendor driver to FreeBSD.

PR: kern/172833
Submitted by: "Charles O'Donnell" <cao bus net>
Approved by: re (kib)

7 years agoMFC r241096:
gabor [Thu, 11 Oct 2012 15:49:42 +0000 (15:49 +0000)]
MFC r241096:
  - Rename files to track the XML migration in the doc tree and make the
    release notes build again

Approved by: re (hrs)

7 years agoMFC r241414:
delphij [Wed, 10 Oct 2012 20:37:57 +0000 (20:37 +0000)]
MFC r241414:

Upgrade to 9.8.3-P4:

Prevents a lockup when queried a deliberately constructed combination
of records. [CVE-2012-5166]

For more information:

Approved by: re (kib)

7 years agoMerge r240985 from head:
glebius [Tue, 2 Oct 2012 13:03:11 +0000 (13:03 +0000)]
Merge r240985 from head:
  Fix bug in TCP_KEEPCNT setting, which slipped in in the last round
  of reviewing of r231025.

  Unlike other options from this family TCP_KEEPCNT doesn't specify
  time interval, but a count, thus parameter supplied doesn't need
  to be multiplied by hz.

  Reported & tested by:       amdmi3

Approved by: re (kib)

7 years agoMFC r240917:
mav [Mon, 1 Oct 2012 10:52:10 +0000 (10:52 +0000)]
MFC r240917:
Reduce delays in several wait loops from 10ms to 10us, same is it is
done in Linux. This substantially increases graphics performance on Ivy

Submitted by: avg@
Reviewed by: kib@
Approved by: re (kib)

7 years agoMFC r240884:
mav [Thu, 27 Sep 2012 08:24:34 +0000 (08:24 +0000)]
MFC r240884:
Fix panic caused by wrong pointer dereference, left after pin sense rewrite
at r230551.

Also while there, make sense polling use reported for each node separately
instead of reporting accumulated total status.

Approved by: re (kib)

7 years agoReady for 9.1-RC2 builds.
kensmith [Wed, 26 Sep 2012 14:29:15 +0000 (14:29 +0000)]
Ready for 9.1-RC2 builds.

Approved by: re (implicit)

7 years agoMFC 240729 (dougb):
delphij [Sat, 22 Sep 2012 08:48:26 +0000 (08:48 +0000)]
MFC 240729 (dougb):

Upgrade to 9.8.3-P3:

Prevents a crash when queried for a record whose RDATA exceeds
65535 bytes.

Prevents a crash when validating caused by using "Bad cache" data
before it has been initialized.

ISC_QUEUE handling for recursive clients was updated to address
a race condition that could cause a memory leak. This rarely
occurred with UDP clients, but could be a significant problem
for a server handling a steady rate of TCP queries.

A condition has been corrected where improper handling of
zero-length RDATA could cause undesirable behavior, including
termination of the named process.

For more information:

Approved by: re (kib)

7 years agoMFC r240079:
delphij [Thu, 20 Sep 2012 17:30:26 +0000 (17:30 +0000)]
MFC r240079:

Update arcmsr(4) to vendor version

Many thanks to Areca for continuing to support FreeBSD.

Submitted by: Ching-Lung Huang <ching2048 areca com tw>
Approved by: re (kib)

7 years ago- Fix release notes build on releng/9.1 [1]
gjb [Wed, 19 Sep 2012 21:44:39 +0000 (21:44 +0000)]
- Fix release notes build on releng/9.1 [1]
- MFC r240508, r240516, r240519 (gabor):
  o Update releng/9.1/release/doc files post-XML conversion.
  o This commit fixes most of the 9-STABLE release build problems.
- Close colspec tags to conform to XML standards. [1]
- Convert installation article to XML stanards. [1]

[1] - These are direct commits to releng/9.1

Approved by: re (hrs)

7 years agoMFC: r240476
jkim [Wed, 19 Sep 2012 19:14:21 +0000 (19:14 +0000)]
MFC: r240476

Do not change owner, group, or mode when package database directory
and its contents are created with pkg_add(1).  It may happen when the
packing list contains @owner, @group, or @mode.

Approved by: re (kib), portmgr (bapt)

7 years agoMFC r240412:
emaste [Tue, 18 Sep 2012 13:13:28 +0000 (13:13 +0000)]
MFC r240412:

  According to a clarification at
  ptsname may set errno, so avoid saving and restoring errno across the

PR: standards/171572
Approved by: re
Sponsored by: ADARA Networks

7 years agoMFC r240410:
emaste [Tue, 18 Sep 2012 13:03:00 +0000 (13:03 +0000)]
MFC r240410:

  Avoid mapping ENOENT to ENOTDIR for non-existent path components.

  The ENOTDIR mapping was introduced in r235266 for kern/128933 based on
  an interpretation of the somewhat ambiguous language in the POSIX realpath
  specification.  The interpretation is inconsistent with Solaris and Linux,
  a regression from 9.0, and does not appear to be permitted by the
  description of ENOTDIR:

       20 ENOTDIR Not a directory.  A component of the specified pathname
               existed, but it was not a directory, when a directory was

PR: standards/171577
Approved by: re
Sponsored by: ADARA Networks

7 years agoMerge r238182 by theraven@:
glebius [Mon, 17 Sep 2012 19:25:24 +0000 (19:25 +0000)]
Merge r238182 by theraven@:
  Restore the __collate_load_error global that was accidentally removed in the
  xlocale refactoring.

Approved by: re (kib)

7 years agoMFC r240514:
jimharris [Mon, 17 Sep 2012 16:39:32 +0000 (16:39 +0000)]
MFC r240514:

isci(4): Fix SCSI/ATA translation for SCSI_WRITE_BUFFER w/ mode==0x7
(download microcode with offsets, save, and activate).

SATI translation layer was incorrectly using allocation length instead
of blocks, and was constructing the ATA command incorrectly.

Also change #define to specify that the 512 block size here is
specific for DOWNLOAD_MICROCODE, and does not relate to the device's
logical block size.

Approved by:   re (kib)

7 years agoMFC r240465:
mav [Sun, 16 Sep 2012 11:02:22 +0000 (11:02 +0000)]
MFC r240465:
Add global and per-module sysctls/tunables to enable/disable metadata taste.
That should help to handle some cases when disk has some RAID metadata that
should be ignored, especially during boot.

Approved by: re (kib)

7 years agoMFC r240286:
mav [Wed, 12 Sep 2012 10:53:08 +0000 (10:53 +0000)]
MFC r240286:
At least from A70M FCH chipsets AMD started to use their real vendor ID
(1022) in HPET. But according to report they still haven't fixed problem
with level-triggered interrupts.
Make workaround used for earlier chipsets apply to this new ID also.

PR: amd64/171355
Approved by: re (kib)

7 years agoMFC r226738:
pjd [Tue, 11 Sep 2012 13:58:03 +0000 (13:58 +0000)]
MFC r226738:

Don't look for includes in userland directories. There is no need for it
and it breaks building the kernel without userland sources.

Reported by: andre, imp
Approved by: re (kib)

7 years agoMFH (r240107, r240111): warn against using these for cryptographic purposes.
des [Tue, 11 Sep 2012 11:05:32 +0000 (11:05 +0000)]
MFH (r240107, r240111): warn against using these for cryptographic purposes.

Approved by: re (kib)

7 years agoMFC r240315:
jpaetzel [Mon, 10 Sep 2012 16:25:52 +0000 (16:25 +0000)]
MFC r240315:

Add TRIM support, enabled by default.
Fix a bug installing components from a localPath.
Allow autosizing of any partition, not just the last partition.
Adjust how ZFS is laid out to work with Boot Environments.

Submitted by: kmoore
Approved by: re (kib)
Obtained from: PC-BSD

7 years agoMFC: r239663, r239664
bapt [Mon, 10 Sep 2012 08:14:58 +0000 (08:14 +0000)]
MFC: r239663, r239664

change ALWAYS_ASSUME_YES to ASSUME_ALWAYS_YES for consistency with pkg(8)
if not on a tty prompt about the missing pkg(8) but default on 'no' except if

Approved by: re (kib)

7 years agoMFC r230454 (pjd):
mm [Sun, 9 Sep 2012 20:26:19 +0000 (20:26 +0000)]
MFC r230454 (pjd):
Use provided name when allocating ksid domain. It isn't really used
on FreeBSD, but should fix a panic when pool is imported from another OS
that is using this.

MFC r240162 (mm):
Make r230454 more readable and vendor-like.

PR: kern/171380
Approved by: re (kib)

7 years agoMFC r239125:
kib [Sat, 8 Sep 2012 16:47:52 +0000 (16:47 +0000)]
MFC r239125:
Do not apply errata 721 workaround when under hypervisor, since
typical hypervisor does not implement access to the required MSR,
causing #GP on boot.

PR: amd64/170388
Approved by: re (kensmith)

7 years agoMFC r232197 (by phk):
kib [Sat, 8 Sep 2012 16:45:48 +0000 (16:45 +0000)]
MFC r232197 (by phk):
Also call the low-level driver if ->c_iflag & (IXON|IXOFF|IXANY) changes.

Approved by: re (kensmith)

7 years agoMFC r238935,238960:
bz [Fri, 7 Sep 2012 09:45:08 +0000 (09:45 +0000)]
MFC r238935,238960:

  Properly apply #ifdef INET and leave a comment that we are (will) apply
  delayed IPv6 checksum processing in ip6_output.c when doing IPsec.

  In case of IPsec he have to do delayed checksum calculations before
  adding any extension header, or rather before calling into IPsec
  processing as we may send the packet and not return to IPv6 output
  processing here.

PR: kern/170116
Approved by: re (kib)

7 years agoMFC r238877-238878:
bz [Fri, 7 Sep 2012 09:22:11 +0000 (09:22 +0000)]
MFC r238877-238878:
 Fix a comment that we do not have an SA yet but need to acquire one.
 For consistency put the IPsec comment iside the #fidef section.

MFC r238934
  Improve the should-never-hit printf to ease debugging in case we'd ever hit
  it again when doing the delayed IPv6 checksum calculations.

Approved by: re (kib)

7 years agoMFS r240157 (MFC r235638,r239348):
mckay [Fri, 7 Sep 2012 00:20:46 +0000 (00:20 +0000)]
MFS r240157 (MFC r235638,r239348):
- Work around failure to compile on FreeBSD 7.x machines.
- Correct a regression introduced during the import of file(1) 5.11.

PR: 170415
Reviewed by: obrien
Approved by: re (kib)

7 years agoMFC rr240007:
tuexen [Thu, 6 Sep 2012 18:31:56 +0000 (18:31 +0000)]
MFC rr240007:

Fix a typo which results in RTT to be off by a factor of 10, if the RTT is
larger than 1 second.

Approved by: re (kib)

7 years agoMFC r239889:
jimharris [Thu, 6 Sep 2012 16:38:55 +0000 (16:38 +0000)]
MFC r239889:

Do not call sati_check_data_io() for SATI_UNMAP sequences.

This routine is intended only for commands such as INQUIRY where
the controller may fill out a smaller amount of data than allocated
by the host.

The end result of this bug was that isci(4) would report non-zero
resid for successful SCSI_UNMAP commands.

Sponsored by:   Intel
Approved by: re (kib)

7 years agoMFH (r239836): align the boot partition on a 4 kB boundary.
des [Thu, 6 Sep 2012 16:27:59 +0000 (16:27 +0000)]
MFH (r239836): align the boot partition on a 4 kB boundary.

Approved by: re (kib)

7 years agoMFS r239854 (including MFC r239601, r239602, r239621):
jamie [Wed, 29 Aug 2012 18:40:12 +0000 (18:40 +0000)]
MFS r239854 (including MFC r239601, r239602, r239621):

 Remember that I'm using length-defined strings in parameters:

  Don't include the null terminator when recomputing the parameter
  length when stripping the netmask from IP addresses.  This was
  causing later addresses in a comma-separated string to disappear.

  Use memcpy instead of strcpy.  This could just cause Bad Things.

  Add a null byte when comma-combining array parameters.

  Pre-separate IP addresses passed on the command line, so they can be
  properly parsed for interface prefixes and netmask suffixes.  This was
  already done for the old-style (fixed) command line, but missed for
  the new-style.

PR: 170832
Approved by: re (kib)

7 years agoMFC r238418: acpi_cpu: separate a notion of current deepest
avg [Wed, 29 Aug 2012 11:28:59 +0000 (11:28 +0000)]
MFC r238418: acpi_cpu: separate a notion of current deepest
allowed+available Cx level from a user-set persistent limit on the said

Reviewed by: jhb, gianni, sbruno
Tested by: sbruno, Vitaly Magerya <>
Approved by: re(kib)

7 years agoMFC: r238933
fjoe [Tue, 28 Aug 2012 17:09:34 +0000 (17:09 +0000)]
MFC: r238933

- Change back "d_ofs" to int8_t to not pessimize padding and size of "struct puc_cfg".
- Use "puc_config_moxa" for Moxa boards that need d_ofs greater than 0x7f

Approved by: re (kib)

7 years agoMFC r239665:
jimharris [Mon, 27 Aug 2012 18:14:22 +0000 (18:14 +0000)]
MFC r239665:

  Clear freeze bit before calling xpt_release_devq.

  This ensures that any ccbs which immediately start during the call to
  xpt_release_devq see an accurate picture of the frozen_lun_mask.

Sponsored by: Intel
Approved by: re (kib)

7 years agoMFC r239655:
jimharris [Mon, 27 Aug 2012 18:12:08 +0000 (18:12 +0000)]
MFC r239655:

  Fix scsi_da's BIO_DELETE->SCSI_UNMAP translation to use correct local
  variable when determining various sizes related to SCSI UNMAP block
  descriptor lists.

Sponsored by: Intel
Approved by: re (kib)