238052 Commits

Author SHA1 Message Date
hannken
7de3300bb9 Remove dubious vhold()/holdrele() from lfs_reserve().
The vnodes are always referenced on entry.

If we changed ulfs_remove() and ulfs_rmdir() to return the locked dvp
the vnodes were always locked on entry.

Remove an outdated comment from lfs_reserveavail(), unlocking/relocking
the vnode was removed in rev 1.49.
2015-10-03 09:31:29 +00:00
dholland
da7186290f The per-inode state 'id_entryno' is used by pass1 for a block count,
so widen it to 'long long'. pass2 uses it for the number of entries in
a directory (IIUC) which does not need to be wider than int, but for
now let's not try to split into two fields. FUTURE...
2015-10-03 08:30:13 +00:00
dholland
a07fd0a2a2 Use daddr_t instead of uint32_t for the in-memory copy of the inode
block pointers.
2015-10-03 08:30:02 +00:00
dholland
896006c986 Drop an explicit sign-extension in fsck that shouldn't be needed any
more.
2015-10-03 08:29:48 +00:00
dholland
93f2a7d5e8 Add lfs_checkword type for reading checksum data out of structures.
This is always uint32_t, but having a name for it both makes things
clearer and avoids confusion about whether it should be 32 or 64 bit.

Note: deployed in only one place (that was erroneously tagged
ondisk32) so far.
2015-10-03 08:29:34 +00:00
dholland
db7a6054ae Fix hardwired 32-bit stuff in fsck:
- compute the maximum file size using LFS_BLKPTRSIZE()
   - use the new IINFO in pass 6 instead of uint32_t pointers
   - use accessors to read and write indirect blocks
2015-10-03 08:29:21 +00:00
dholland
b82b54bc04 Remove a dead data structure. 2015-10-03 08:29:06 +00:00
dholland
4cb9c64ab0 Use accessors for another batch of indirect block accesses, this time
in dumplfs.
2015-10-03 08:28:56 +00:00
dholland
7f7a5fa1e3 Apply IINFO in the other userland tools. 2015-10-03 08:28:46 +00:00
dholland
c4e7149610 Use IINFO in the cleaner. 2015-10-03 08:28:30 +00:00
dholland
a407c8d218 Use IINFO in lfs_writeinode().
(both the kernel and the userland copies)
2015-10-03 08:28:15 +00:00
dholland
99646ab5f8 Use the new IINFO in the rfw code, eliminating hardwired 32-bit values. 2015-10-03 08:27:55 +00:00
dholland
8f0c85a18e Add an IINFO struct, which is like the FINFO struct but for the inode
blocks portion of the segment summary.

A segment summary block begins with a header (SEGSUM); the rest of the
block contains FINFO structures describing file blocks growing upward
from the bottom (after the header), and IINFO structures describing
inode blocks grown downward from the end of the block. (When they meet
the segment is full regardless of how many blocks might be left.)

IINFO contains just a block number, and until now this information was
handled by just using uint32_t*; switching to a structure will make
the code a lot easier to read, and also make it easier to have 32-bit
and 64-bit versions without making a mess.

This commit just adds the structures and accessors; they'll be
deployed into the code in subsequent commits.
2015-10-03 08:27:38 +00:00
riz
4795d98711 Fix up setlists for new debug compat libs. 2015-10-02 22:17:22 +00:00
riz
ee3b021d7b Restore some defines lost in last update, and don't include sys/cpuvar.h
MKDTRACE=yes now builds for arm platforms again.
2015-10-02 22:16:38 +00:00
riz
701e808f1d Update signature of unimplemented function to match prototype. 2015-10-02 22:15:18 +00:00
joerg
a309080e06 Make usage static and dead. 2015-10-02 20:42:15 +00:00
joerg
91018e0967 Support per-target AFLAGS. 2015-10-02 20:36:54 +00:00
christos
a786eb43af PR/50295: Fix clock_nanosleep return value documentation. 2015-10-02 19:52:49 +00:00
christos
3415810083 PR/50295: clock_nanotime() should not set errno, but return the error. 2015-10-02 19:47:08 +00:00
christos
aef619cb8a put back the DTRACE macros 2015-10-02 17:28:57 +00:00
christos
75a404098e we don't need any of this now. 2015-10-02 17:13:58 +00:00
christos
46b66d3b89 Merge conflicts 2015-10-02 17:13:32 +00:00
christos
d1b373115b Adapt to NetBSD modules and link set access.
XXX: We don't have an event system so that we can issue callback that
     will be run on construction or destruction to enable and disable probes
XXX: We don't have a way to use link_sets across modules properly.
2015-10-02 16:59:23 +00:00
christos
db70f1818e Change SDT (Statically Defined Tracing) probes to use link sets so that it
is easier to add probes. (From FreeBSD)
2015-10-02 16:54:15 +00:00
bouyer
df886f2958 Based on suggestion from jared, redo previous using a specific print callback
to avoid the extra line. Now output looks like:
gpio0 at awingpio0 port B: 18 pins
gpio1 at awingpio0 port C: 25 pins
gpio2 at awingpio0 port D: 28 pins
gpio3 at awingpio0 port E: 12 pins
gpio4 at awingpio0 port G: 12 pins
gpio5 at awingpio0 port H: 28 pins
gpio6 at awingpio0 port I: 22 pins
2015-10-02 16:04:40 +00:00
bouyer
9a50fed12e Print the port name when gpio(4) attaches, makes it much easier to find
what port is connected to what gpio instance:
gpio0 at awingpio0: 18 pins
gpio0: port B
gpio1 at awingpio0: 25 pins
gpio1: port C
gpio2 at awingpio0: 28 pins
gpio2: port D
gpio3 at awingpio0: 12 pins
gpio3: port E
gpio4 at awingpio0: 12 pins
gpio4: port G
gpio5 at awingpio0: 28 pins
gpio5: port H
gpio6 at awingpio0: 22 pins
gpio6: port I
2015-10-02 14:06:02 +00:00
msaitoh
8113600ff9 Fix comiple error. plum(4) is not PCI... 2015-10-02 09:05:33 +00:00
mbalmer
2b8a421a52 Fix case. 2015-10-02 09:01:23 +00:00
msaitoh
2c52906dd1 Fix a bug that the TPH ST Table is wrongly decoded. Found by llvm. 2015-10-02 07:04:17 +00:00
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