228131 Commits

Author SHA1 Message Date
msaitoh
fdfbcc0346 Fix some entries:
- Desc 0x55 and 0xb1 are Instruction TLB but not fixed to 4K.
 - Desc 0x5a and 0xc0 are Data TLB but not fixed to 4K.
 - Desc 0x57 and 0x59 are 4K fixed DTLB.
 - Fix string of desc 0xc2 and it's not fixed to 4K.
 - Desc 0xca is 4K fixed L2 shared TLB.
 - Add desc 0xa0.

BUG: A lot of CPUs have multiple CAI_DTLB and/or CAI_DTLB2 entries. Currently
TLB info is indexed in ci_cinfo[CAI_COUNT], so some info is overwritten.

Nowadays CPUs have very complexed TLBs. It's hard to manage with CAI_* index.
We should think to separate TLB info structure from ci_cinfo[CAI_COUNT]
in struct cpu_info.
2014-07-03 17:24:33 +00:00
maxv
57fd3cffd6 Change the pattern of KMEM_REDZONE so that the first byte is never '\0'.
From me and lars@.
2014-07-03 08:43:49 +00:00
skrll
a65e94de03 Trailing whitespace. 2014-07-03 07:18:42 +00:00
msaitoh
74aebcc5ae Exclude descriptor 0xff of CPUID leaf 2. 0xff means the cacheinfo is in leaf 4. 2014-07-03 04:11:37 +00:00
msaitoh
c825b49f6f Add BCM5706. 2014-07-02 22:35:10 +00:00
msaitoh
1f3dc9f187 Regen. 2014-07-02 22:33:39 +00:00
msaitoh
d307be223c Add BCM5706 1000BASE-T/SX. 2014-07-02 22:33:18 +00:00
msaitoh
7675d4bbb7 Don't use the PHY Auto Poll Mode on many chips. This fixes a bug that MII
Fiber NIC drop packet about 50%. Same as {Free,Open}BSD.
Tested on HP Moonshot. Thanks zafer@ for testing.
2014-07-02 22:25:14 +00:00
msaitoh
810b75bb0d - 5720S and 5709S share the same PHY id. Assume 5720S PHY if parent device
is bge(4). Same as FreeBSD. Tested on HP Moonshot.
- Fix media detect on some Fiber chips. Tested on my own BCM5709 card.
  Same as {Free,Open}BSD.
2014-07-02 22:21:50 +00:00
msaitoh
2335973bfc Don't check BNX_CHIP_NUM. Check MII PHY ID because this check is used
for both bge(4) and bnx(4).
2014-07-02 22:01:44 +00:00
msaitoh
e94caa28a8 - Remove extra delay in brgphy_mii_phy_auto. Same as {Free,Open}BSD.
- s/u_int/uint/
- KNF.
2014-07-02 21:51:36 +00:00
msaitoh
bb61a2d5cd Regen. 2014-07-02 21:22:05 +00:00
msaitoh
fa76105435 Add Intel DH89xx devices. 2014-07-02 21:21:38 +00:00
pettai
ff9e38a866 Update mDNSResponder in-tree version 2014-07-02 21:10:32 +00:00
pettai
d48bc192e9 Update heimdal current and in-tree version 2014-07-02 21:07:34 +00:00
christos
43d09e61a5 remember to call deregister. 2014-07-02 20:17:30 +00:00
riastradh
1ae3be0a56 Register a null pmf handler even if we failed to attach.
Keeps ichsmb(4) from preventing suspend even if it's broken because
of ichlpcib(4) grodiness.
2014-07-02 19:49:38 +00:00
riastradh
f1257be5b0 If we register with pmf on attach, deregister on detach. 2014-07-02 18:58:42 +00:00
maxv
11febc641e Fix the KMEM_POISON check: it should check the whole buffer, otherwise some
write-after-free's wouldn't be detected (those occurring in the 8 last bytes
of the allocated buffer).

Was here before my changes, spotted by lars@.
2014-07-02 15:00:28 +00:00
shm
d1ed37e48d Handle ENAMETOOLONG to return 404 error instead of 500.
OK mrg@
2014-07-02 13:58:09 +00:00
alnsn
fd9487092d Move t_bpfjit.debug entries back to mi and add "sljit" tag to them. 2014-07-02 13:38:05 +00:00
martin
86b32edaf5 Restore file for playstation2 accidently overlooked in the big revitilazation 2014-07-02 13:33:22 +00:00
martin
294d08149c Add -msoft-float to AFLAGS as well 2014-07-02 13:27:14 +00:00
martin
377dd2856e The correct toolchain tuple is mipsel--netbsd (not netbsdelf) 2014-07-02 12:44:15 +00:00
ozaki-r
a4bec2dd1b Protect bridge_list with a mutex 2014-07-02 09:51:08 +00:00
ozaki-r
1aecea656e Remove obsolete codes for if_snd 2014-07-02 09:43:16 +00:00
ozaki-r
ec381ed29d Restore RPS of pktq_enqueue unless _RUMPKERNEL
It's a workaround and would be fixed in rump soon.

ok pooka@
2014-07-02 07:30:37 +00:00
ozaki-r
2fef08800f Add NET_MPSAFE to ALL 2014-07-02 07:18:32 +00:00
htodd
aeac1fdec4 Move t_bpfjit.debug to md lists. 2014-07-02 05:23:20 +00:00
christos
1cc43e12bf new acpica is out 2014-07-02 00:32:05 +00:00
jakllsch
e19789a30b fix boot code maximum size.
From OpenBSD if_wpireg.h 1.19.
2014-07-02 00:15:41 +00:00
jakllsch
a05ebdd179 No need to duplicate the members of the wpi_cmd_data structure within
the wpi_scan_hdr structure when we can just put the wpi_cmd_data
structure within the wpi_scan_hdr structure.

This also brings our if_wpireg.h mostly in line with OpenBSD's 1.18.
2014-07-02 00:04:18 +00:00
justin
de6ed608dd On ARM the variable name 'delay' shadows a function here, rename to avoid
-Wshadow objecting.
2014-07-01 23:01:54 +00:00
riastradh
e905ac69e4 Implement i915drmkms wsdisplay blank/backlight/brightness controls. 2014-07-01 20:03:21 +00:00
msaitoh
a34b33f4fa Print some information (ASIC revision, PCI status, etc). From FreeBSD. 2014-07-01 17:11:35 +00:00
riastradh
2ef3036b03 Honour write-combining flag in drm_ioremap. 2014-07-01 16:29:57 +00:00
riastradh
1f41368568 Tweak debug printf directives. 2014-07-01 16:27:25 +00:00
alnsn
c676220d8a Move the main loop in bpfjit_generate_code() to a new function and make few
small changes.
2014-07-01 16:18:55 +00:00
msaitoh
a18760cfb6 No functional change.
- s/u_int/uint/
- Modify comment a bit (sync with OpenBSD)
2014-07-01 15:23:35 +00:00
msaitoh
d917e28845 KNF. No functional change. 2014-07-01 15:03:58 +00:00
ozaki-r
5b9b847dc4 Unbreak lib/libc/net/getifaddrs.c
--- getifaddrs.o ---
  In file included from /tmp/bracket/build/2014.07.01.10.35.18-i386/src/lib/libc/net/getifaddrs.c:39:0:
  /tmp/bracket/build/2014.07.01.10.35.18-i386/src/sys/net/if.h:208:2: error: unknown type name 'kmutex_t'
    kmutex_t *ifq_lock;
      ^
2014-07-01 14:04:40 +00:00
shm
ca5b33a5e8 * bozo_clean_request free(3) clean up (removed needless checks)
* HEAD method no longer returns response body on error
* fixed bug with multiple bozo_http_error calls caused by fix_url_percent

OK @mrg
2014-07-01 13:41:21 +00:00
rtr
72ab703a46 Bump to version 6.99.45 for removal of struct lwp * parameter from pr_ioctl 2014-07-01 13:25:21 +00:00
maxv
0d191e1f54 1) Define a malloc(9)-like kmem_header structure for KMEM_SIZE. It is in
fact more consistent, and more flexible (eg if we want to add new fields).
2) When I say "page" I actually mean "kmem page". It may not be clear, so
   replace it by "memory chunk" (suggested by lars@).
3) Minor changes for KMEM_REDZONE.
2014-07-01 12:08:33 +00:00
ozaki-r
6ccb0c0e23 Make if_wm MPSAFE
- Make it MPSAFE only when NET_MPSAFE
  - otherwise, its instructions are almost same as before
  - the only change is IFQ_POLL/IFQ_DEQUEUE which
    is now single IFQ_DEQUEUE
- Protect driver operations with a lock
  - further work would make it separate
- Apply MPSAFE flag to
  - callout_init
  - pci_intr_establish
- Stop proceeding packets when the driver is likely
  to stop for graceful ifconfig down

Tested on Rangeley (I354) and KVM (e1000)
Reviewed by msaitoh@
2014-07-01 10:35:18 +00:00
ozaki-r
3745c9bdf3 Lock IFQ operations when NET_MPSAFE
- Introduce NET_MPSAFE
  - not defined by default
- Add ifq_lock to protect ifnet#if_snd
- Initialize ifq_lock and lock IFQ operations
  when NET_MPSAFE

When NET_MPSAFE isn't defined, this modification
doesn't change its behavior and adds trivial
performance overheads.

Discussed with matt@ on tech-net
2014-07-01 10:16:02 +00:00
ozaki-r
f3479d05c4 Stop using callout randomly
nd6_dad_start uses callout when xtick > 0 while doesn't when
xtick == 0. So if we pass a random value ranging from 0 to N,
nd6_dad_start uses callout randomly. This behavior makes
debugging difficult.

Discussed in http://mail-index.netbsd.org/tech-kern/2014/06/25/msg017278.html
2014-07-01 07:51:29 +00:00
rtr
0dedd9772f fix parameter types in pr_ioctl, called xx_control() functions and remove
abuse of pointer to struct mbuf type.

param2 changed to u_long type and uses parameter name 'cmd' (ioctl command)
param3 changed to void * type and uses parameter name 'data'
param4 changed to struct ifnet * and uses parameter name 'ifp'
param5 has been removed (formerly struct lwp *) and uses of 'l' have been
       replaced with curlwp from curproc(9).

callers have had (now unnecessary) casts to struct mbuf * removed, called
code has had (now unnecessary) casts to u_long, void * and struct ifnet *
respectively removed.

reviewed by rmind@
2014-07-01 05:49:18 +00:00
htodd
0076051d87 Fix build for ipf tests. 2014-07-01 03:43:09 +00:00
htodd
1dc17e30a9 Fix build for debug with bpfjit. 2014-07-01 03:42:41 +00:00