Commit Graph

276990 Commits

Author SHA1 Message Date
macallan d4e6a9fda0 new binutils/gcc started emitting R_PPC_UADDR32 reloc entries, so for now
treat them like R_PPC_ADDR32
XXX
these relocs have been observed in the xf86-video-radeon driver, but only in
the AtomBios support code, which is unused on PowerPC. This allows the driver
to load but it's not clear if the affected parts would actually function.
2020-05-24 02:33:11 +00:00
ad 0eaaa024ea Move proc_lock into the data segment. It was dynamically allocated because
at the time we had mutex_obj_alloc() but not __cacheline_aligned.
2020-05-23 23:42:41 +00:00
ad 78019db5d6 Oops. If a SCHED_RR thread is preempted and has exceeded its timeslice it
needs to go to the back of the run queue so round-robin actually happens,
otherwise it should go to the front.
2020-05-23 23:37:17 +00:00
ad f0f2e2fbc8 PR kern/55237: Panic: vrelel: bad ref count (9.99.54)
Adjust v_writecount with v_interlock held.
2020-05-23 22:16:17 +00:00
ad f24dc28303 NetBSD 9.99.64 - struct lwp changed 2020-05-23 21:49:43 +00:00
ad d4834fad58 Oops. If a SCHED_RR thread is preempted and has exceeded its timeslice it
needs to go to the back of the run queue so round-robin actually happens,
otherwise it should go to the front.
2020-05-23 21:24:41 +00:00
ad bbfbd151dc sched_bestcpu(): There is a fallback CPU, in case the user manages to set
the system up so no CPU is permitted to run a given LWP.  Fix a bug where
that fallback CPU would sometimes get picked even if there was another CPU
that could legitimately run the LWP.
2020-05-23 21:14:55 +00:00
ad 20180cb18f - Replace pid_table_lock with a lockless lookup covered by pserialize, with
the "writer" side being pid_table expansion.  The basic idea is that when
  doing an LWP lookup there is usually already a lock held (p->p_lock), or a
  spin mutex that needs to be taken (l->l_mutex), and either can be used to
  get the found LWP stable and confidently determine that all is correct.

- For user processes LSLARVAL implies the same thing as LSIDL ("not visible
  by ID"), and lookup by ID in proc0 doesn't really happen.  In-tree the new
  state should be understood by top(1), the tty subsystem and so on, and
  would attract the attention of 3rd party kernel grovellers in time, so
  remove it and just rely on LSIDL.
2020-05-23 20:45:10 +00:00
ad a5899d2545 uvm_pglistfree(): just use uvm_pagefree(). 2020-05-23 20:22:42 +00:00
rmind 07861232b4 Backport selected NPF fixes from the upstream (to be pulled up):
- npf_conndb_lookup: protect the connection lookup with pserialize(9),
  instead of incorrectly assuming that the handler always runs at IPL_SOFNET.
  Should fix crashes reported on high load (PR/55182).

- npf_config_destroy: handle partially initialized config; fixes crashes
  with some invalid configurations.

- NAT policy creation / destruction: set the initial reference and do not
  wait for reference draining on destruction; destroy the policy on the
  last reference drop instead.  Fixes a lockup with the dynamic NAT rules.

- npf_nat_{export,import}: fix a regression since dynamic NAT rules.

- npfctl: fix a regression and restore the default group behaviour.

- Add npf_cache_tcp() and validate the TCP data offset (from maxv@).
2020-05-23 19:56:00 +00:00
rmind 82ca45b101 thmap(9): merge changes from the upstream -- primarily, switch to the
C11-style memory fences and atomic primitives; in NetBSD, this translates
to using the atomic_loadstore(9) primitives.

To be pulled up (just in case).
2020-05-23 19:52:12 +00:00
nia 91cb42c31c strip(4) was removed 2020-05-23 18:42:17 +00:00
ryo 164f546e0d Not only the kernel thread, but also the userland PAC keys
(APIA,APIB,APDA,APDB,APGA) are now randomly initialized at exec, and switched
when context switch.
userland programs are able to perform pointer authentication on ARMv8.3+PAC cpu.

reviewd by maxv@, thanks.
2020-05-23 18:08:58 +00:00
christos d7d0096664 Use -Z to pass arguments to ccp(1) directly. Can be used as:
-Z-include -Zfile.h
2020-05-23 17:28:27 +00:00
jmcneill 6f52454d94 When MACHINE_ARCH is missing, give direction on how to get a list of valid options 2020-05-23 17:26:32 +00:00
thorpej 0cf633cc36 If a device tree overlay does not have a "compatible" match, don't
load it.  (Oops, missing return statement.)
2020-05-23 16:40:41 +00:00
rin b33c006653 Add missing entries. 2020-05-23 14:52:45 +00:00
rin 741c26fd94 Fix typo in comment. 2020-05-23 14:51:49 +00:00
jdolecek 039d6c365c switch back to PHYSDEVOP_alloc_irq_vector for non-MSI interrupts - on my
computer it works the same as PHYSDEVOP_map_pirq, but seems it doesn't
on other systems

fixes PR port-xen/55285 for Patrick Welche, but not yet for another system
by Frank Kardel
2020-05-23 14:51:19 +00:00
rin 9c6297bd2c sort 2020-05-23 14:14:55 +00:00
rin 6b1738109c Fix typo in comment: IMX21_OLINUXINO --> IMX23_OLINUXINO 2020-05-23 14:10:47 +00:00
jmcneill c19ad3985c GC toaster drivers 2020-05-23 13:48:08 +00:00
jmcneill 6111315fe3 GC toastersensors driver 2020-05-23 13:46:36 +00:00
jmcneill 46eaf32b21 GC TOASTER kernel 2020-05-23 13:43:34 +00:00
rin 53a7835cfc Oops, two more missing clk dependencies... 2020-05-23 13:39:24 +00:00
skrll 0a6d4780d8 imx6 kernels are part of GENERIC now 2020-05-23 13:24:07 +00:00
jmcneill 419c54deae Use GENERIC instead. 2020-05-23 12:22:57 +00:00
ad 5959644557 - In ubc_alloc() take initial offset into account in the UBC_FAULTBUSY case
or one too few pages can be mapped.

- In ubc_release() with UBC_FAULTBUSY, chances are that pages are newly
  allocated and freshly enqueued, so avoid uvm_pageactivate() if possible

- Keep track of the pages mapped in ubc_alloc() in an array on the stack,
  and use this to avoid calling pmap_extract() in ubc_release().
2020-05-23 11:59:03 +00:00
simonb bcb013ef36 The Cavium CN70xx PRID covers both the CN70xx and CN71xx CPU families. 2020-05-23 11:33:56 +00:00
jmcneill b56e20a9c6 GC unused INSTALL kernel configs. 2020-05-23 11:32:02 +00:00
jmcneill 79601d3674 Remove references to defunct arm and earm arches 2020-05-23 11:06:23 +00:00
jmcneill 6437518a34 Remove plain "earm" targets, and require an explicit MACHINE_ARCH for
evbarm instead of selecting a default.
2020-05-23 11:04:43 +00:00
jmcneill a7f3ee8944 Remove evbarm OABI targets 2020-05-23 10:59:25 +00:00
simonb f043d1d314 Add SiByte SB-1 rev 0x11 cores and CN70xx CPUs to the CPU table. 2020-05-23 10:48:43 +00:00
simonb 9912003350 Add CX73xx and CXF75xx Cavium Octeon PRIDs. 2020-05-23 10:39:25 +00:00
maxv 36a49950f5 Bump copyrights. 2020-05-23 08:25:32 +00:00
maxv f4eb15a831 Extract putc(). 2020-05-23 08:23:28 +00:00
maxv 115686a30c Hum, forgot to include this file in my "Clarify." commit on mm.c:rev1.27
and elf.c:rev1.21.
2020-05-23 08:10:50 +00:00
rin befdca6fca Deduplicate "options IMXUARTCONSOLE". 2020-05-23 06:22:34 +00:00
rin 0cbdc0ad4a imxpcie also depends on clk. 2020-05-23 06:21:36 +00:00
rin 61129b72da imxpwm depends on clk. 2020-05-23 06:21:15 +00:00
rin adca343339 Simplify. No need to use sed... 2020-05-23 02:11:24 +00:00
rin 6ce10d32d6 Fix fallout from NO_STATIC_MODULES -> OPENPAM_STATIC_MODULES changes;
libpam.a fails to load any modules and does not work at all.

At the moment, openpam_load.c at least must be compiled with and without
OPENPAM_STATIC_MODULES for static and shared libraries, respectively.

Therefore, use CSHLIBFLAGS again, in order to build objects for static and
shared libraries separately.

This may be ugly, but seems better for me than adding further hacks in
libpam/libpam/Makefile, which is already complicated enough...
2020-05-23 00:43:33 +00:00
rin 10afa7e5af GCC8 needs -Wno-stringop-overflow also for m68000 (sun2). 2020-05-23 00:32:42 +00:00
rin 4322d47d74 Revive entrypoint heuristics, accidentally removed in the previous.
Now, e.g., "b main" works again for "gdb /bin/echo" as expected.

See more details:
http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/gdb/dist/gdb/alpha-tdep.c#rev1.2

XXX
Single-stepping into shared libraries still fails sometimes;
tracee does not stop at a function in shared library.
We need further analysis...
2020-05-23 00:30:40 +00:00
rin a25231544b Fix previous; add hack to prevent NetBSD RCSID from being expanded... 2020-05-23 00:07:27 +00:00
tsutsui f184828963 Now Xserver works on hp425e built-in EVRX framebuffer. 2020-05-23 00:02:10 +00:00
rin 3886d0713a Add one more auto-generated file. 2020-05-22 23:59:01 +00:00
rin b4dc77fc88 Regen 2020-05-22 23:58:22 +00:00
rin 2c1a5e05e7 update-sets:
- sort entries
- add NetBSD RCSID
- add "DO NOT EDIT" comment
2020-05-22 23:57:13 +00:00