summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2022-09-15recognise Neoverse V2 (Demeter)Jonathan Gray
2022-09-14AF_UNIX bind() must use UNVEIL_CREATE for namei() because it is creatingTheo de Raadt
a file in the filesystem. Spotted by martijn. A review of AF_UNIX binding programs has been done by benno, and we think it is worth commiting this semantic change now and watching for fallout.
2022-09-13Split out the code that collects data from acpiac(4), acpibat(4) andMark Kettenis
acpisbs(4) for apm(4) and hook it up to the arm64 version of apm(4) on systems with ACPI. ok kn@
2022-09-13Change pru_rcvd() return type to the type of void. We have no interestVitaliy Makkoveev
on pru_rcvd() return value. Drop "pru_rcvd != NULL" check within pru_rcvd() wrapper. We only call it if the socket's protocol have PR_WANTRCVD flag set. Such sockets are route domain, tcp(4) and unix(4) sockets. ok guenther@ bluhm@
2022-09-13Do soreceive() with shared netlock for raw sockets.Vitaliy Makkoveev
ok bluhm@
2022-09-12Enable acpiac(4) and acpibat(4).Mark Kettenis
ok deraadt@
2022-09-12Store mod/ref flags using md pg_flags values rather than a specific field inMiod Vallat
vm_page_md, which allows this struct to shrink a bit.
2022-09-12Store mod/ref flags using md pg_flags values rather than a specific field inMiod Vallat
vm_page_md, which allows this struct to shrink a bit.
2022-09-12Drop orphaned pv_flags values.Miod Vallat
2022-09-12Add support for level-triggered GPIO events.Mark Kettenis
ok mlarkin@
2022-09-12disable Panel Self Refresh (PSR) by default in inteldrmJonathan Gray
After i915_drv.c 1.144 PSR changed to being on by default. On a TUXEDO InfinityBook Pro 14 Gen6 (Tiger Lake) this introduced screen flicker. Reported and tested by Matthias Schmidt. Should also avoid flicker problem on Dell XPS 13 7390 (Comet Lake) reported by James Cook.
2022-09-12acpihpet(4): acpihpet_delay: only use lower 32 bits of counterScott Soule Cheloha
We can't use acpihpet_r() to implement acpihpet_delay(). Even if we made acpihpet_r() atomic on amd64, i386 would still be incapable of doing atomic 8-byte reads. As-is, the code does a split read on all platforms, which may or may not already be causing problems with TSC calibration: https://marc.info/?l=openbsd-tech&m=166220561709496&w=2 Switch from acpihpet_r() to bus_space_read_4() and only use the lower 32 bits of the counter. This makes acpihpet_delay() slightly larger, but unless we want two acpihpet_delay() implementations we have no choice. Link: https://marc.info/?l=openbsd-tech&m=166165347220077&w=2 ok jsg@
2022-09-11Remove the DKF_LABELVALID flag from struct disk. Instead, trust disk driversMiod Vallat
to always be able to provide a duid, and keep ignoring whole zero duids. This fixes a race in vnd setup where the disk_attach callback could run before any I/O occurs on the vnd, thus not having a label available yet. noticed by otto@ and kn@; ok kn@
2022-09-11Add the new inout vmm(4) tracepoint to dt(4).Dave Voutila
Forgot to put it in the list of static tracepoints when I committed the tracepoint at g2k22. Woops.
2022-09-11Register the I2C controller with ACPI. Skip this on the SC8280XP SoC forMark Kettenis
now as the AML on the Lenovo X13S tries to do I2C transactions to a device that doesn't respond leading to the ACPI thread spinning until the transaction times out. ok mlarkin@, deraadt@
2022-09-11drop the -betaTheo de Raadt
2022-09-11Add #define's for GPT partition attribute bits REQUIRED, IGNOREKenneth R Westerback
and BOOTABLE, set BOOTABLE attribute bit instead of using the incorrect GPTDOSACTIVE value, have 'fdisk -v' print out GPT partition attributes if any of the 64 bits are set, don't spoof any partition with REQUIRED bit set. Prompted by kettenis@ stumbling across a machine with 40+ (!!) REQUIRED GPT partitions. Tested & ok kettenis@
2022-09-11Add wsmux(4) such that systems with multiple keyboards work in bsd.rd.Mark Kettenis
ok deraadt@, mpi@
2022-09-11On smmu(4) instances without coherent page table walk we need to make surePatrick Wildt
changes to the page tables are made visible, as needed on the Lenovo x13s.
2022-09-11Make an attempt at taking over existing streams on Qualcomm machines. SomePatrick Wildt
of the stream mappings on the Lenovo x13s match on a single stream id, and others use a mask to match on multiple stream ids. For now we only care about the single ones, which is enough to capture e.g. the xhci(4) nodes.
2022-09-11Handle if pci_intr_establish() failed. This actually happens if manyYASUOKA Masahiko
VMXNET3 are configured. from IIJ. ok jmatthew
2022-09-11Change OF_getnodebyname() such that lokking up a node using just the nameMark Kettenis
without a unit number (so without the @1234 bit) works as well. ok patrick@, gkoehler@
2022-09-10Remove pmap_collect() when a no-op, define __HAVE_PMAP_COLLECT otherwise.Miod Vallat
Use that define to shunt uvm_swapout_threads(), which is a noop when pmap_collect() does nothing. ok mpi@
2022-09-10Get rid of the extra vnode reference known as UVM_VNODE_CANPERSIST.Martin Pieuchot
Back in the 4.4BSD days the VM subystem had a OBJ_CANPERSIST flag to enter objects in a global cached list. Some of this logic seem to have been copied to UVM but without the global list. Unfortunately keeping UVM vnode objects alive after munmap(2)ing the corresponding region without incrementing the reference count of the related vnode led to many bugs when the vnode was recycled and/or when it data where written back to disk (via the page daemon). The problem is that VM pages might have a non-accounted reference to a vnode via `pg->uobject'. Fix "vref used where vget required" panic reported by bluhm@, gkoehler@ and Andrew Krasavinseen on bugs@. Thanks a lot to semarie@ for co-debugging this issue! Tested by bluhm@, tb@, miod@. ok kettenis@, semarie@
2022-09-10Add another pin to the SC7180 map function.Mark Kettenis
2022-09-10Don't restrict GPIO events to pin numbers below 256. With the _EVT()Mark Kettenis
method events corresponding to larger numbers are possible. Fixes lid state detection on the x13s. ok patrick@
2022-09-10Generalize the code such that it works on SC7180 SoCs as well.Mark Kettenis
ok mglocker@, patrick@
2022-09-10Add _HID for SC7180 SoCs.Mark Kettenis
ok mglocker@
2022-09-10Finally, only allocate the number of frames for isoc transfers which weMarcus Glocker
really need. The static allocation workaround in the code (DWC2_MAXISOCPACKETS) was required because the NetBSD allocx USB method has a second argument to pass nframes already there, which we don't have. Regression tested with video play, audio play, audio record. ok mpi@
2022-09-10amd64, i386: lapic_initclocks: install i8254 before lapic_startclock()Scott Soule Cheloha
In the future, the clock interrupt code will need a working timecounter to do its job. In lapic_initclocks(), call i8254_inittimecounter_simple() before lapic_startclock(). The i8254 may be be a piece of junk, but one timecounter is better than none.
2022-09-09Let pool_get(9) do the memory initialisation directly.Marcus Glocker
ok kettenis@
2022-09-09Recognize Qualcomm Krys 400 series cores.Mark Kettenis
ok jsg@
2022-09-09Clarify/typofix commentsKlemens Nanni
OpenBSD is not FreeBSD and has no stf(4) interface. No object change.
2022-09-09The DSDT on the snapdragon 7c based Acer Aspire 1 (A114-61) uses a bogusMark Kettenis
compatible ID. Add its hardware ID to the list to work around this. ok patrick@, mlarkin@, mglocker@
2022-09-09drm/i915: Skip wm/ddb readout for disabled pipesJonathan Gray
From Ville Syrjala 1787ec7dcc3761e040d0cd9896d3a40b4efac4cf in linux 5.15.y/5.15.66 0211c2a0ea600e25db3044daaeff4fe41c3ed6d9 in mainline linux
2022-09-09drm/i915/glk: ECS Liva Q2 needs GLK HDMI port timing quirkJonathan Gray
From Diego Santa Cruz f9a0f49be767a45aa1dc7d846a2745bb7849268a in linux 5.15.y/5.15.66 919bef7a106ade2bda73681bbc2f3678198f44fc in mainline linux
2022-09-09drm/i915/reg: Fix spelling mistake "Unsupport" -> "Unsupported"Jonathan Gray
From Colin Ian King 0522550aeed4ec899d16e237be0ae67f8aa1319b in linux 5.15.y/5.15.66 233f56745be446b289edac2ba8184c09365c005e in mainline linux
2022-09-09drm/i915/display: avoid warnings when registering dual panel backlightJonathan Gray
From Arun R Murthy 7828b5d0080a4621973ab5c680c4df0bc6d96437 in linux 5.15.y/5.15.66 868e8e5156a1f8d92ca83fdbac6fd52798650792 in mainline linux
2022-09-09add backlight_device_get_by_name() used by 5.15.66 drmJonathan Gray
2022-09-09drm/i915/backlight: extract backlight code to a separate fileJonathan Gray
From Jani Nikula 630ab29120b5dd1c543150da5e1aa304a5aece2e in linux 5.15.y/5.15.66 6cc42fbeb150ff33b17cbf108713ca4be23994d8 in mainline linux
2022-09-08There is no need to uncomment the clock gating exit/enter gadget functions,Marcus Glocker
since we define them void anyway.
2022-09-08The SC7180 (snapdragon 7c) needs the SMMU quirk as well.Mark Kettenis
It seems reasonable that SC8180X/XP needs the quirk too, so preemtively add these to the list as well. ok patrick@
2022-09-08There is no need to uncomment the call_gadget macro, since in our driverMarcus Glocker
it's getting defined void anyway.
2022-09-08Zap inactive gadget functions.Marcus Glocker
2022-09-08Move bitmap functions to a new home.Marcus Glocker
ok kettenis@
2022-09-08Remove old debug code knobs, wrong comments, and unused pv entry flags.Miod Vallat
ok kettenis@
2022-09-08initialise inteldrm device params from module paramsJonathan Gray
In inteldrm_attach() we need to call i915_params_copy(). Matching the changes made to i915_driver_create() in linux 8a25c4be583d8a9e38fbadcc49d4de32b1aa8906 (5.10) drm/i915/params: switch to device specific parameters This makes DisplayPort MST work again as the value of enable_dp_mst changes from false to true. Set enable_guc as 0 as I suspect that needs more work. Set request_timeout_ms to 0 as otherwise I see "Fence expiration time out" running Xorg on Broadwell. Problem reported and debugged by Paul Kelly.
2022-09-08Rename global ifnet TAILQKlemens Nanni
Naming the list like the struct itself makes for awful grepping. Call the global variable "ifnetlist" from now on. There used to be kvm(3) consumers in base picking up this symbol, but those have long been converted to other interfaces. A few potential ports users remain, same deal as sys/net/if_var.h r1.116 "Remove struct ifnet's unused if_switchport member": they get bumped. Previous users pointed out by deraadt OK bluhm
2022-09-08Remove vm_page_md fields which were only needed for pre-v7 arm ports.Miod Vallat
2022-09-08Use generic PNP ID to match HID-over-I2C devices.Mark Kettenis
ok patrick@, drahn@