Commit Graph

299767 Commits

Author SHA1 Message Date
mlelstv 2a1d6c3e6b Really compute selection coordinates from buffer offset, don't assume
that row=0 col=offset is equivalent.
2023-02-07 20:37:48 +00:00
christos 6135670d36 remap arm directory names, the same way the source does. 2023-02-07 20:37:30 +00:00
christos 51f66c08e6 regen arm32 2023-02-07 20:36:47 +00:00
wiz 8cc36d1a3b less-608 is out. 2023-02-07 20:34:01 +00:00
tsutsui b97271817d Make sure to specify volatile explicitly on DMA register accesses.
It looks booting from SCSI disks on next68k have been broken
since NetBSD 1.6 days, but now it works.
Should be pulled up to netbsd-10 and netbsd-9.
2023-02-07 14:27:59 +00:00
hgutch dfb464e676 Avoid using (1<<64)-1 for VM_MAX{,USER}_ADDRESS as rounding that up to
the next page boundary gives 0 and instead make the VA space end one
page earlier.

Fixes PR sparc64/57219.
2023-02-07 14:11:16 +00:00
macallan d7b0f677cf fix logic-reversing tpyo in putone() 2023-02-07 09:25:51 +00:00
mrg 02b3973ae9 apply -g1 to the gallium sources as well. saves another couple of 100MB. 2023-02-07 06:19:03 +00:00
mrg 8139e6cefc fix code attempting to skip adding "-g" if "-g*" already is used.
in bsd.lib.mk there's a check for "MKDEBUG != no" that will add
-g to CFLAGS (maybe) and to CSHLIBFLAGS (always), given that it
isn't in CFLAGS already.. except the conditional is "||" instead
of "&&" and since the MKDEBUG/NODEBUG checks pass, the CFLAGS
check isn't even performed.

additionally, check CXXFLAGS as well as CFLAGS.

this fixes the attempt to use "-g1" in the llvmrt build, which
fails because the compile lines end up being "... -g1 .. -g ..",
(the "-g" comes from the CSHLIBFLAGS variable in that case.)

this reduces the size of llvm-enabled gallium debug by ~1.5GiB
on amd64.
2023-02-07 04:53:54 +00:00
mrg d9186ff839 bump xorg-server version. 2023-02-07 04:46:00 +00:00
gutteridge 1b7584da6c bpf.c: fix a few typos and grammatical issues in comments 2023-02-07 01:46:37 +00:00
gutteridge a15cb1624e bpf.4: fix a garbled item heading
Make the BIOCSDIRECTION & BIOCGDIRECTION entry like those around it.
2023-02-07 01:17:41 +00:00
chs 10ec3626c6 dtrace: re-fix aggregations to report from all online CPUs
Reapply the fix to dt_status() from rev 1.10
("Don't return success when the target CPU is offline")
which was lost in rev 1.12 ("sync with FreeBSD").
The FreeBSD version that we have been using since then does run on NetBSD
but always reports that CPU 0 is online and all other CPUs are offline,
because the sysctl that it uses does not exist on NetBSD.
2023-02-06 22:22:12 +00:00
rillig 15a1e93882 tests/lint: sync reference to platform properties generator 2023-02-06 21:20:58 +00:00
rillig 456342a5d0 lint: eliminate unnecessary indirection
No functional change.
2023-02-06 21:01:55 +00:00
rillig 17a1c02c4f lint: condense code for handling initializations
Remove the assertion for a non-null initialization, as each code path
immediately dereferences it.

No functional change.
2023-02-06 20:50:34 +00:00
rillig e583192ebc lint: inline separate Makefile 2023-02-06 20:26:05 +00:00
tsutsui 9f695b2196 Remove an obsolete comment. 2023-02-06 13:30:02 +00:00
tsutsui 3fd8a3268a Add a support for gpx(4) color framebuffer found on VAXstation 3100.
Poted from OpenBSD/vax. Note smg(4) monochrome onboard framebuffer
driver is also changed attached only if gpx(4) is not installed
or flags 1 is specified in config files, as OpenBSD did.

Tested on my VAXstation 3100/m30 with and without 8bpp gpx(4).
Revied on port-vax@ and "Please go ahead!" from ragge@.
 https://mail-index.netbsd.org/port-vax/2023/01/thread1.html#004147

Worth to pullup to netbsd-10.
2023-02-06 13:13:05 +00:00
simonb caf73dab9c Enable UFS_DIRHASH (missed with previous change) and UFS_EXTATTR
(mistakenly commented out with previous change).
2023-02-06 12:59:13 +00:00
martin faf47f20b7 If /etc/iscsi/volumes does not exist, explicitly exit with 0 status 2023-02-06 11:53:03 +00:00
hannken daf1598ec9 Set IMNT_MPSAFE only if all lower layers have it set. 2023-02-06 10:33:32 +00:00
hannken 6017299f5f Set IMNT_MPSAFE only if the lower layer has it set. 2023-02-06 10:32:58 +00:00
mrg 932cf2b587 fix root detection on evbarm when raid is involved
there are several problems solved in this change:
- lots of work was re-done when we already have determined the
  device booted from, so several new early returns introduced
  if booted_device has been set
- due to the lack of cpu_bootconf(), raidframe softroot would
  override "root=xxx" on the boot command line (note that
  platforms that use eg, device_register() to detect the boot
  device are not affected by this issue as they find the
  boot device much earlier.)
- in the new cpu_bootconf(), switch the order of the platform
  boot-config with the set_root_device() call.  this avoids a
  problem where "root=xxx" is checked after automated methods,
  and is thus ignored.
- in fdt_detect_root_device(), remove the code to add "root=xxx""
  string to the boot_args[] that would be later parsed by the
  set_root_device() call, and simply set booted_device and, for
  mbr installs, booted_partition directly.  also, for any
  successful call, perform an early return.
- define __HAVE_CPU_BOOTCONF so early boot calls cpu_bootconf().


tested on:
- rockpro64 booting from emmc, sata (big, and little endian)
- rockpro64 loading kernel from msdos partition
- rockpro64 booting from network (fails to auto-detect, with or
  without this change)
- quartz64 booting from nvme
- lx2k booting from nvme

XXX: pullup-10
2023-02-05 22:42:39 +00:00
mlelstv ada6af92ce With MKISCSI we need all files. 2023-02-05 21:20:14 +00:00
mrg e3659678a5 avoid pserialize usage in early boot
there are DEBUG-only aprint_normal() calls early in eg, ksyms
setup that may happen before eg curcpu() is setup.  this is the
case in sparc64, where it sets up ksyms as early as it can so
that DDB has symbols early, which is before the curcpu() setup
is created, and thus the calls to pserialize_read_enter() and
pserialize_read_exit() attempt to access unmapped cpu_info and
due to being so early, the system faults to the prom.

simply use "cold" to determine whether to skip these pserialize
calls or not.

ok riastradh

XXX: pullup-10
2023-02-05 21:18:05 +00:00
rillig f1b2140bb8 tests/lint: fix source directory for looking up the .exp-ln files 2023-02-05 17:23:01 +00:00
rillig 6d1c4d2bf4 tests/lint1: the redundantly listed files contained .exp-ln as well 2023-02-05 16:11:56 +00:00
rillig d81c1a19b2 tests/lint: fix resolving of wildcards in builds from other directories 2023-02-05 15:11:19 +00:00
christos b703c4f4c2 switch the remainder to binutils 2.39 2023-02-05 14:53:38 +00:00
mlelstv f04e506ba4 Fix build without MKISCSI 2023-02-05 13:39:42 +00:00
rillig f85ba885c0 tests/lint: update instructions for adding a new test
The redundant variable 'FILES' no longer needs up be updated.
2023-02-05 13:06:36 +00:00
rillig cd59f013cc tests/lint: merge tests for initialization 2023-02-05 13:01:28 +00:00
rillig 6730036cf8 tests/lint: remove redundancy from Makefile
The list of test files is already kept in distrib/sets/lists/tests/mi.
2023-02-05 12:36:56 +00:00
rillig 134e5c5e76 tests/lint: remove redundant tests
The names of the tests were misleading: 'recursive' should have been
'nested', and the interesting topic in the 'cast' tests was not the cast
but the pointer dereference.
2023-02-05 12:25:11 +00:00
rillig 9de3085848 tests/lint: clean up
The .exp files are no longer kept under version control, so there's no
reason anymore to forcefully trigger a warning or an error.
2023-02-05 10:57:48 +00:00
wiz c85a8c014b doc: mention xfwp removal 2023-02-04 16:35:31 +00:00
wiz b17ce4f0d4 stop building and installing xfwp
As proposed on tech-x11
https://mail-index.netbsd.org/tech-x11/2022/12/29/msg002333.html
2023-02-04 16:34:36 +00:00
tsutsui 51e4b0bff4 Remove trailing spaces and TABs. 2023-02-04 14:38:09 +00:00
christos 7a0279c013 Remove unused stuff, and limit the scope of some of the used ones.
(from des@freebsd)
2023-02-04 14:34:28 +00:00
tsutsui 88f1864e93 Remove leftover "last kernel PT page" settings derived from hp300.
Whilehere, also remove VM definitions for obsolete COMPAT_HPUX stuff.

All hp300 machines has RAMs at a region from the highest address
i.e. 0xFFFFFFFF to smaller address (as HP claims "it's the MSB first"),
so kernels have to prepare PA==KVA mappings as the "last PT page" to
guarantee the running kernel works both before and after the MMU is
turned on.  For such a special mapping, we have to set up necessary
segment table and page table during early startup, in pmap_bootstrap()
invoked from locore.s.

On the other hand, NeXT machines have RAMs at a region from 0x40000000
to below (i.e. to larger address) so we still need a PA==KVA mapping.
However currently NetBSD/next68k just uses the transparent translation
registers to achieve the PA==KVA mapping, so unlike hp300 we don't have
to prepare special segment table and page table for it.

Note many other m68k ports (like luna68k, news68k, x68k etc.) have
RAMs at a region from 0x00000000 so usually we can assume PA==KVA
and don't have to bother to prepare such speicial mappings.

No user visible changes (except now freed wasted pages for the tables).
Tested on my NeXTstation slab.
2023-02-04 08:42:45 +00:00
tsutsui 559b3de455 Remove #ifdef'ed out hp300 specific stuff. 2023-02-04 07:07:41 +00:00
tsutsui e2d073377d Misc KNF and cleanup. 2023-02-04 02:08:03 +00:00
tsutsui a5230482b9 Misc KNF and cosmetics. 2023-02-03 23:22:34 +00:00
tsutsui d03d803db7 Use proper C99 int types. 2023-02-03 23:21:17 +00:00
tsutsui 3ce5dd2b0e Use proper LIST(3) macro. 2023-02-03 23:19:03 +00:00
tsutsui 9b65c61f73 Make local functions static. 2023-02-03 23:17:49 +00:00
tsutsui dbbb6b146d Misc cleanup.
- use C99 designated initializer
- misc KNF
- TAB/space cleanup
2023-02-03 23:16:07 +00:00
tsutsui 1d39c7845c Misc KNF and cosmetics. 2023-02-03 23:13:00 +00:00
tsutsui eaea85e929 Remove trailing TABs. 2023-02-03 23:07:47 +00:00