Commit Graph

286074 Commits

Author SHA1 Message Date
ryo
a41b701065 Numeric modifiers conflict with the syntax interpretation of ddb, so use 'b', 'w', 'l', 'q' instead.
Also, change load/store('l','s') to 'r','w' like the other arch.

 >db{0}> machine watch/1 hostname
 >Bad modifier

 >db{0}> machine watch/s1 hostname
 >add watchpoint 0 as ffffc00001087848
2021-03-11 10:34:34 +00:00
nia
00c9e6ab61 Move nvme where I expected to find it (disk controllers section) 2021-03-11 10:33:36 +00:00
nia
2c68c9ba50 Split wifi cards into a separate section, add many more. 2021-03-11 10:28:53 +00:00
ryo
060a3f1bf4 - fixed a problem where hardware {break,watch}points other than #0 could not be cleared
- hardware {break,watch}point addresses are now strictly checked
2021-03-11 09:48:40 +00:00
simonb
b85b508a3b Use ifdef _KERNEL_OPT instead of ifdef _KERNEL before including
"opt_ppcarch.h".
2021-03-11 08:33:34 +00:00
thorpej
94d7e1d6e5 Tidy up initialization of the kernel SRs just a bit. 2021-03-11 04:43:47 +00:00
msaitoh
49cf423314 Add "TX " to "Queue No Descriptor Available" to make it more understandable.
Same as ixgbe.c rev. 1.278.
2021-03-11 02:30:47 +00:00
msaitoh
5c0df95076 Whitespace fixes. No functional change. 2021-03-11 01:23:33 +00:00
msaitoh
44f4353477 s/skiping/skipping/ 2021-03-11 01:13:11 +00:00
christos
23448aee49 byte-flipping a random number is not very useful. 2021-03-10 22:28:26 +00:00
christos
6fbc6295cf remove htons, it is pointless (thanks joerg@) 2021-03-10 22:18:17 +00:00
jkoshy
86dd7541e7 Update to upstream elftoolchain revision r3933. 2021-03-10 21:36:29 +00:00
macallan
9db155512c switch G5 iMacs to full speed 2021-03-10 19:45:41 +00:00
thorpej
f67047dab3 - In pmap_bootstrap1(), make sure to initialize pmap_kernel()->pm_vsid
with the kernel's base VSID.
- In va_to_vsid(), always compute the VSID from the base VSID in the
  pmap and the effective segment ID (ESID), rather than extracting it
  from the pmap's segment register value for that ESID.  Not only does
  this make the code the same between OEA and OEA64, but is also lets
  us compute the correct VSID for that pmap/ESID even if the cached SR
  for that ESID currently contains something else, such as an I/O segment
  mapping (as might be the case on a 601).

With this change, we can temporarily toggle between an I/O segment and
and HTAB-mapped segment if needed (e.g. when calling OpenFirmware on
a 601-based system).
2021-03-10 18:29:07 +00:00
christos
7d0690d809 remove extra arguments 2021-03-10 18:26:16 +00:00
christos
dd9009b9ef remove args from ip_randomid() (John D. Baker). When does this file get built? 2021-03-10 15:21:11 +00:00
christos
9c2964a923 Use __pthread_volatile for ptc_waiters (Greg A. Woods) 2021-03-10 15:05:11 +00:00
simonb
b2de856f1a Add manpage links for asysctl(3) and asysctlbyname(3), already described
in sysctl(3).
2021-03-10 13:30:34 +00:00
simonb
996bea5137 Add printf_nostamp(9), kernel printf() without prepending a timestamp. 2021-03-10 13:27:51 +00:00
mlelstv
54f59924b2 Add PCIe driver to build.
You still need:

bcm2838pcie* at fdt?                        # STB PCIe host controller

in kernel config, and DTB entries like:

        pci@7d500000 {
                compatible = "brcm,bcm2711-pcie\0brcm,pci-plat-dev";
                device_type = "pci";
                #address-cells = <0x03>;
                #size-cells = <0x02>;
                bus-range = <0x00 0x01>;
                reg = <0x00 0x7d500000 0x80000>;
                ranges = <0x2000000 0x00 0xf8000000 0x06 0x00 0x00 0x4000000>;
                #interrupt-cells = <0x01>;
                interrupt-map = <0x00 0x00 0x00 0x01 0x01 0x00 0x8f 0x04>;
                interrupt-map-mask = <0x00 0x00 0x00 0x07>;
                linux,pci-domain = <0x00>;
                phandle = <0x90>;
        };

and
                pcie0 = "/scb/pci@7d500000";

in __symbols__
2021-03-10 11:03:48 +00:00
wiz
279c4abbec drm(4): allow limiting maximum X/Y resolution
With some drivers (at least radeon(4)), in some cases the driver
does not choose the resolution correctly.  The options
DRM_MAX_RESOLUTION_HORIZONTAL and DRM_MAX_RESOLUTION_VERTICAL allow
limiting the maximum resolution in X and Y direction.
2021-03-10 07:23:42 +00:00
msaitoh
334d1ee9f2 Add micphy(4). 2021-03-10 06:38:44 +00:00
simonb
4e642ca22c Remove Network ATM soft intr queue reporting, we don't have that in the
kernel anymore.
2021-03-10 00:32:15 +00:00
rillig
5edf0687f7 lint: disable check for enum type mismatch in switch statement
This check has been too quick and broke the lint build.  Among others,
lib/libpuffs has -w included in LINTFLAGS, which means that the build
can fail even for new warnings, not only for errors.

libpuffs compares a uint16_t with constants from an unnamed enum type.
Since the enum type is completely unnamed (neither a tag nor a typedef),
there is no way to define a struct member having this type. This was a
scenario that I just didn't consider when I added the check to lint.

For now, disable the new check completely.  The previously existing lint
checks stay enabled, including the one that warns about mismatched
anonymous enum types in the '==' operator, which is very similar to the
now disabled check.
2021-03-10 00:02:00 +00:00
rillig
4b24f8a1b1 tests/lint: add example for anonymous enum type in switch expression 2021-03-09 23:40:43 +00:00
rillig
4fa1602dd1 tests/lint: add tests for comparison between unnamed enums
Since unnamed enum types cannot be used in type casts, there is no
sensible way that this type mismatch could be resolved, without changing
the definition of the enum type itself, but that may be in a
non-modifiable header.

Therefore, comparisons with enum constants of unnamed types cannot be
sensibly warned about.
2021-03-09 23:09:48 +00:00
rillig
c280f5e623 tests/indent: demonstrate strange alignment for global variables 2021-03-09 20:43:19 +00:00
rillig
ee51961c3d indent: extract search_brace from main
No functional change.
2021-03-09 19:46:28 +00:00
rillig
4ca89b5791 indent: extract capsicum code out of the main function
No functional change.
2021-03-09 19:32:41 +00:00
rillig
d60ce5707b indent: rename a few more token types
The previous names were either too short or ambiguous.

No functional change.
2021-03-09 19:23:08 +00:00
rillig
ed0fd2fe70 indent: make token names more precise
The previous 'casestmt' was wrong since a case label is not a statement
at all.

The previous 'swstmt' was overly short, and wrong as well, since it
represents only the 'switch (expr)' part, which is not a complete switch
statement.  Same for 'ifstmt', 'whilestmt', 'forstmt'.

The previous word 'head' was not precise enough since it didn't specify
exactly where the head ends and the body starts.  Especially for
handling the dangling else, this distinction is important.

No functional change.
2021-03-09 19:14:39 +00:00
rillig
d64e8288e4 indent: rename a few tokens to be more obvious
For casual readers it is not obvious whether the 'sp' meant 'special' or
'space' or something entirely different.
2021-03-09 18:28:10 +00:00
rillig
bd056b6eea indent: extract reduce_stmt from reduce
This refactoring reduces the indentation of the code, as well as
removing any ambiguity as to which 'switch' statement a 'break' belongs,
as there are no more nested 'switch' statements.

No functional change.
2021-03-09 18:21:01 +00:00
rillig
6cabfe5cb2 indent: manually indent comments
It's strange that indent's own code is not formatted by indent itself,
which would be a good demonstration of its capabilities.

In its current state, I don't trust indent to get even the tokenization
correct, therefore the only safe way is to format the code manually.
2021-03-09 16:48:28 +00:00
ryo
bc288328f6 Add support hardware breakpoint and watchpoint again.
Limited support for hardware watchpoint has been available for some time, but it
has not been working properly. In addition, it stopped working at the time of
the PTRACE support commit on 2018-12-13. This has been fixed to work correctly,
and also fixed to be practical by sharing hardware watchpoints and breakpoints
between CPUs on MULTIPROCESSOR.

Also fixed a bug that causes a malfunction when switching CPUs with
"machine cpu N" when entering ddb mode from other than cpu_Debugger().

I have confirmed that the CPU can be switched by "machine cpu N" and return from
ddb properly in each case where ddb is called triggered by ddb break/watchpoint,
hardware break/watchpoint, and cpu_Debugger().
2021-03-09 16:44:27 +00:00
ryo
d206f2c033 "machine cpu" command shows pc of trapframe and the symbol 2021-03-09 16:43:13 +00:00
ryo
7eef28f19b match the macro name to the order of the arguments. NFC. 2021-03-09 16:42:36 +00:00
ryo
52f8f20d27 fixed mask width of DBGWVR_MASK, and added definition of DBGBVR_MASK 2021-03-09 16:41:43 +00:00
ryo
41d796ff07 fix build error without options DDB.
kvtopte() is referenced from arm/acpi/acpi_machdep.c
2021-03-09 16:40:59 +00:00
ryo
8b5a03c80a regen 2021-03-09 16:39:18 +00:00
ryo
b4aadafec0 Add ASUSTEK AURALED 2021-03-09 16:38:49 +00:00
ryo
e939ac6bfc Add CoolerMaster, and AMD SR4 lamplight Control device (Wraith Prism RGB CPU Cooler) 2021-03-09 16:37:23 +00:00
christos
1261169451 PR/50933: Uwe Toenjes: Document hardware limitations 2021-03-09 14:39:43 +00:00
christos
9c9223617d Move the offset addition in one place and mask the random generated value
to make sure that the isn is monotonic.
2021-03-09 13:48:16 +00:00
sborrill
4f6c3ffcd1 Need to explicitly load value of zfs variable as zfs=YES may be set in
/etc/rc.conf.d/zfs, not /etc/rc.conf.
2021-03-09 12:42:46 +00:00
wiz
55d4a9403e Improve wording, use more macros. 2021-03-09 12:02:24 +00:00
msaitoh
47293c3f8d Modify some parameters to reduce packet dropping.
- Background: ixgbe doesn't use common MCLGET() interface and use the
   driver specific cluster allocation mechanism (jcl). The cluster is
   pre-allocated with a fixed number and the current number per queue
   is num_rx_desc * 2 (2048*2=4096). It's too small. It also has a problem
   that the max length of the pcq which is used in the TX path is big
   (4096). Example:

    100M <----- [ixg0                                      ixg1] <----- 1G
                2048 TX descs <--- 4096 pcqs <---- 2048 RX descs

   If a machine forwards a traffic from 1G interface to 100M interface,
   It would require 2048+4096+2048=8192 descriptors, but the current number
   is 2048*2=4096. It's too small. Even if the both interface's link speed
   is the same and only small number of packet is queued in the pcq, 4096
   jcl is small because 2048(RX)+TX(2048)=4096. If jcl is exhausted, not only
   forwarding from ixg1 to ixg0 is dropped, but also another forwarding path
   from ixg1 to another interface(e.g. wm0) is also dropped. Sockets also
   queue packets, so if a lot of sockets are used and/or a socket buffer
   size is changed to bigger one, it'll also become a problem. If the jcl
   is exhausted, evcnt(9) counter "ixgX qY Rx no jumbo mbuf" is incremented.
   Example:
     vmstat -ev | grep ixg1 | grep "no jumbo"
     ixg1 q0 Rx no jumbo mbuf                           0     0 misc
     ixg1 q1 Rx no jumbo mbuf                           0     0 misc
     ixg1 q2 Rx no jumbo mbuf                      141326     0 misc
     ixg1 q3 Rx no jumbo mbuf                           0     0 misc


 - To solve this problem:
   - Add new config parameter IXGBE_JCLNUM_MULTI and set the default to 3
     (2048 * 3). The minimum number is 2. The total number of jcl per queue
     is available with hw.ixgN.num_jcl_per_queue sysctl.
   - Reduce the max length of the pcq() which is used in the TX path from
     4096 to 2048.

 - Reviewed by knakahara@ and ozaki-r@.

 - TODO: Use MCLGET().
2021-03-09 10:03:18 +00:00
macallan
405aa7c502 add support for the CPU temperature sensor found in iMac G5s 2021-03-09 01:17:37 +00:00
christos
baa2f24833 We don't need libwrap anymore; libhack replaces it. 2021-03-09 00:08:04 +00:00
christos
58e21b67a6 Add a stubbed version of libwrap (tcpwrappers) 2021-03-09 00:06:44 +00:00