Commit Graph

238022 Commits

Author SHA1 Message Date
msaitoh 9cc673ab14 x86: Add PCI Extended Configuration Space support.
pci(3): Decode Extended Capability in PCI Extended Configuration Space.
2015-10-02 05:33:07 +00:00
msaitoh 605f564f52 PCI Extended Configuration stuff written by nonaka@:
- Add PCI Extended Configuration Space support into x86.
- Check register offset of pci_conf_read() in MD part. It returns (pcireg_t)-1
  if it isn't accessible.
- Decode Extended Capability in PCI Extended Configuration Space.
  Currently the following extended capabilities are decoded:
   - Advanced Error Reporting
   - Virtual Channel
   - Device Serial Number
   - Power Budgeting
   - Root Complex Link Declaration
   - Root Complex Event Collector Association
   - Access Control Services
   - Alternative Routing-ID Interpretation
   - Address Translation Services
   - Single Root IO Virtualization
   - Page Request
   - TPH Requester
   - Latency Tolerance Reporting
   - Secondary PCI Express
   - Process Address Space ID
   - LN Requester
   - L1 PM Substates
  The following extended capabilities are not decoded yet:
   - Root Complex Internal Link Control
   - Multi-Function Virtual Channel
   - RCRB Header
   - Vendor Unique
   - Configuration Access Correction
   - Multiple Root IO Virtualization
   - Multicast
   - Resizable BAR
   - Dynamic Power Allocation
   - Protocol Multiplexing
   - Downstream Port Containment
   - Precision Time Management
   - M-PCIe
   - Function Reading Status Queueing
   - Readiness Time Reporting
   - Designated Vendor-Specific
2015-10-02 05:22:49 +00:00
ozaki-r 0e7ec84c8c Fix typo 2015-10-02 03:08:26 +00:00
joerg defe89daaf List source name, not object name to unbreak AFLAGS.*. 2015-10-01 23:00:12 +00:00
riz f2d2d6c3e9 Redo previous so as to not break non-arm MKDTRACE=yes builds. 2015-10-01 20:51:19 +00:00
riz 41784a61b4 Only declare 'ldn' where it's actually used. Fixes build on arm
with MKDTRACE=yes.
2015-10-01 19:45:37 +00:00
rjs 5d347183ce Build Xorg server and wsfb driver for mac68k. 2015-09-30 22:58:02 +00:00
christos c29d517558 Import the dtrace toolkit from FreeBSD; simple scripts such as dtruss work
unmodified. For others we'll need to add the missing probes and adjust.
This is not attached to the build.
2015-09-30 22:01:06 +00:00
christos ae335351bb Add proc:::exit
XXX: I am going to kill that soon and make the providers register automagically
with linker sets. This can't scale.
2015-09-30 20:59:44 +00:00
christos 7264d1b96c recognize the proc provider as belonging to sdt 2015-09-30 20:59:13 +00:00
phx cd5e999b29 Reduce MAXDSIZ from 416MB back to 224MB.
Due to limitations by the current pmap implementation our virtual address
space is limited to 512MB. A MAXDSIZ of 416MB would leave only a little bit
more than 30MB for shared objects and heap allocations, so 224MB seems like
a good compromise.
2015-09-30 20:36:28 +00:00
macallan 95d8a6292b don't MIPS_PHYS_TO_KSEG1() the hardware address for O2's serial ports
now serial console works again
2015-09-30 19:46:27 +00:00
macallan e57b94ff3d pass the port's hardware address in COM_INIT_REGS() so the com driver can
figure out wether this is the console or not
2015-09-30 19:44:58 +00:00
phx 20d6d7ec56 Disable CFI in the GENERIC kernel again, as currently only cmdset 1.3
is supported, which is not present in all flash chips.
Add lmtemp(4), an LM75 temperature sensor, which is found in some
Synology NAS models.
2015-09-30 14:22:02 +00:00
phx 1e4196c6b6 Now more than a single I2C device per model may be configured directly.
An additional flags argument makes the configuration depend on the model-
flags in an optional BTINFO_MODEL bootinfo node.
Print the model name together with the vendor name, when known.
2015-09-30 14:18:54 +00:00
phx 97d339f97e Pass a name and flags precisely describing the current model and its
features via a new bootinfo node (currently Synology only). This allows
for example the configuration of model-specific temperature I2C sensors
and fan control.
Support for the Synology DS207 and DS209 drive LEDs and wait until the
2nd drive is completely powered up.
2015-09-30 14:14:32 +00:00
knakahara 5428e90392 fix IVARs offset for 82580 and newer. 2015-09-30 08:42:04 +00:00
ozaki-r 99284d7cc5 Make GATEWAY (fastforward) work again
With GATEWAY (fastforward), the whole forwarding processing runs in
hardware interrupt context. So we cannot use rwlock for lltable and
llentry in that case.

This change replaces rwlock with mutex(IPL_NET) for lltable and llentry
when GATEWAY is enabled. We need to tweak locking only around rtree
in lltable_free. Other than that, what we need to do is to change macros
for locks.

I hope fastforward runs in softint some day in the future...
2015-09-30 07:12:32 +00:00
ozaki-r ad91e721ff Remove extra opt_gateway.h 2015-09-30 06:25:59 +00:00
ozaki-r 3f3bb7d2ee Add delay to improve stability of test 2015-09-30 06:08:36 +00:00
msaitoh acd3bf9e12 - Add workaround for 82574 Errata 25 and 82583 Errata 12 "Dropped RX packets"
and for 82573 (unknown). Set GCR_L1_ACT_WITHOUT_L0S_RX bit. The NVM Image
  version 2.1.4 and newer have this workaround.
- Print the NVM image version on 82583, too.

 Pointed out by joerg@.
2015-09-30 04:28:04 +00:00
ozaki-r 4f5bd10ca4 Add lockdebug_barrier
ok pooka@
2015-09-30 02:45:33 +00:00
ozaki-r 63e037b63a Remove redundant UNLOCKED and LOCKED
UNLOCKED and LOCKED are done inside mutex_exit and mutex_enter respectively
so we don't need to do them outside mutex_exit and mutex_enter.

Reviewed by pooka@
2015-09-30 01:31:56 +00:00
christos 12713a4b5d We switched to newer versions in elftoolchain a while ago. 2015-09-30 00:35:46 +00:00
christos 35d37febae do the stack protector stuff like the other files. 2015-09-30 00:17:09 +00:00
christos 5a76c68ec9 detect dynamically if we need -e for echo 2015-09-29 23:50:52 +00:00
christos 85c412e566 - make the generated file rules depend on the source files
- hack for clang on Darwin
2015-09-29 23:50:17 +00:00
christos acb11aeb8e fix the native build 2015-09-29 22:14:14 +00:00
christos ec4b0d739b for the endian macros don't use the _ names, Darwin does not define them. 2015-09-29 20:43:16 +00:00
christos f651117f07 no other ctf program needs -lrt, why does this one? 2015-09-29 20:31:43 +00:00
christos b97202a0e1 make this tools friendly. 2015-09-29 19:43:39 +00:00
phx 0a756912e8 The disk's unittag is not equal to the channel, so we need an additional
unitchan entry to make lba_read() work in all cases.
The libsa-printf() does not seem to support 64-bit output, so cast the
block number to unsigned when printing an error message.
2015-09-29 15:12:52 +00:00
christos 302f5a4b29 return an error for actions we don't understand. 2015-09-29 14:31:22 +00:00
christos f05010c404 - PR/50291: Fix memory leak
- estrdup/emalloc
- use EXIT_FAILURE instead of 1
2015-09-29 14:27:00 +00:00
roy e3c65ae6e7 Note import of openresolv-3.7.1 2015-09-29 09:14:11 +00:00
roy 2f705eb612 Sync 2015-09-29 09:11:47 +00:00
roy a4b92b41fa Import openresolv-3.7.1 with the following changes:
*  Typo's, thanks to Herbert Parentes Fortes Neto
  *  Clarify that private_interfaces="*" will not forward the root zone
  *  ensure that domain-insecure always appears in a server clause for
     the unbound subscriber
2015-09-29 09:10:07 +00:00
ozaki-r 837fd81e06 Let ftp use a different output file from httpd's one
Previously the target file served by httpd and the output file of ftp
were identical (both index.html) on the filesystem.
2015-09-29 08:27:24 +00:00
hannken d5f14318c4 Compat libproc.so.0.0.debug and librtld_db.so.0.0.debug depend on "dtrace". 2015-09-29 08:01:29 +00:00
hannken a484921197 Typo (ompat -> compat). 2015-09-29 08:00:59 +00:00
hannken 71a9213721 Typo (trailing comma). 2015-09-29 08:00:22 +00:00
wiz 1a48e143e6 Reduce whitespace. 2015-09-29 07:59:15 +00:00
wiz ff1e46a1cb Remove reference to mdb(1). 2015-09-29 06:33:01 +00:00
ozaki-r 05cf8927fd Add _KERNEL_OPT
It's needed for nbmake RUMP_LOCKDEBUG=yes.
2015-09-29 01:44:57 +00:00
wiz 963ab8d75f Fix typo. 2015-09-28 22:11:40 +00:00
wiz f3752eafe8 Fix Dt. New sentence, new line. Fix xrefs.
Still leaves:
trailing Xref to mdb(1)
trailing Xref to libctf(3)
2015-09-28 22:00:26 +00:00
wiz 1ea70fc5bf Add RCS Id, serial comma, use Fx, fix xref.
XXX: libproc(3) does not exist, but is referenced three times.
2015-09-28 21:50:48 +00:00
christos 091269df14 describe libproc, librtld_db 2015-09-28 21:07:47 +00:00
christos 628c957c7a Add libproc/librtld_db 2015-09-28 21:05:57 +00:00
christos 3644045c3c neither libproc or librtld_db require CTF 2015-09-28 17:12:46 +00:00