summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-06-14Implement cpu_rnd_messybits() as a read of the cycle counter register.Christian Weisgerber
ok dlg@ deraadt@
2020-06-14Implement cpu-rnd_messybits() as a read of the cycle counter register.Mark Kettenis
2020-06-14Remove debug code.Mark Kettenis
2020-06-14Enable ahci(4).Mark Kettenis
2020-06-14Provide address space extents. While the firmware does configure the bridgeMark Kettenis
windows it doesn't enable the bus master bit in the command register. This prevents DMA from working. By providing the address space extents ppb(4) will automatically configure the bridge and set the bit.
2020-06-14Make sure SDHC_HOST_CTL2 is consistently controlled using 2-byte accesses,Patrick Wildt
otherwise it would lead to unaligned memory access. Fixes a panic on my MACCHIATObin. ok kettenis@
2020-06-14Get context switching between kernel threads going.Mark Kettenis
Since the stacks for kernel threads are not mapped 1:1 this involves translating virtual addresses into physical addresses when making OPAL calls.
2020-06-14Put a bit more information in the panic message.Mark Kettenis
2020-06-14Parse bootargs.Mark Kettenis
2020-06-14do not need assym.hTheo de Raadt
2020-06-14Add -msoft-float, -mno-altivec and -mno-vsx to the compiler flags.Mark Kettenis
2020-06-14Make soft interrupts work.Mark Kettenis
2020-06-14Minimal >machine/asm.h> to make ffs.S build.Mark Kettenis
2020-06-14crank version numberTheo de Raadt
2020-06-14asm versions of mdrandom() no longer neededTheo de Raadt
2020-06-14rewrite mdrandom() in C. previously this XOR'd against rdrand if available,Theo de Raadt
and alternatively XOR'd against TSC. now always run both sequences, and also support rdseed as a third procedure. ok kettenis naddy
2020-06-14Unstub diskconf().Mark Kettenis
2020-06-14rename our kunmap() to kunmap_va()Jonathan Gray
In linux kunmap() has a page struct * argument our kunmap() has a void * argument which results in uncoverted uses building but doing the wrong thing. Renaming will catch any codepaths that need to be changed at compile time.
2020-06-14convert kunmap() arguments with pointer to page structJonathan Gray
Our kunmap() has a void * argument with the address to unmap which results in unconverted uses compiling but doing the wrong thing. ok kettenis@
2020-06-14fix i915_gem_swizzle_page()Jonathan Gray
our version of kunmap() takes a va not a page like linux problem reported by semarie@ on I945GM
2020-06-14Remove misleading XXX about locking of ps_klist. All of the kqueueVisa Hankala
subsystem and ps_klist handling still run under the kernel lock.
2020-06-14make IS_ERR() and IS_ERR_OR_NULL() return boolJonathan Gray
2020-06-14move tx and rx ring variables into their own structs.David Gwynne
this is a first step toward making mcx work with multiple rings and interrupts. one ring is still hardcoded in the driver, this is just shuffling the deck chairs. ok jmatthew@
2020-06-13Add support for the XIVE interrupt controller found on POWER9 CPUs.Mark Kettenis
2020-06-13Remove a dead store.Visa Hankala
2020-06-13correct a krealloc conversionJonathan Gray
2020-06-13Load CTF section to enable DDB's "show struct"kn
Other platforms use libsa's ELFNAME(), e.g., elf64_exec() on amd64, already to load the kernel's ELF section ".SUNW_ctf". Adapt ofwboot accordingly to enable ddb(4) on sparc64 as well to utilise CTF information for commands like "show struct". Hints from mpi OK kettenis mpi
2020-06-13Add -b flags to insert a window before (like the existing -a for after)Nicholas Marriott
to break-pane, move-window, new-window. GitHub issue 2261.
2020-06-13Some new firmware for ConnectX-5 tries to give pages back whenJonathan Matthew
going from boot to regular operation, which it indicates by returning a negative number of pages from the QUERY_PAGES operation. We previously interpreted this as an unsigned number, causing an allocation failure. We're not actually retrieving the pages and returning them to UVM yet, but if the firmware's memory requirements become more complicated, we'll probably have to do that. problem reported and fix tested by Hrvoje Popovski ok dlg@
2020-06-13remove the reference to tun(4), as suggested by kaya saman,Jason McIntyre
and advised by dlg;
2020-06-13use wakeup_one() in complete()Jonathan Gray
ok kettenis@
2020-06-13use a unique wchan name for wait_for_completion()Jonathan Gray
ok kettenis@
2020-06-13Integrate the bsd-features branch from awk github.Todd C. Miller
Implements the gensub(), systime() and strftime() functions for greater gawk compatibility.
2020-06-13POSIX doesn't permit an unescaped '/' in an extended regular expression.Todd C. Miller
Unlike upstream awk, ours has historically allowed unescaped '/' inside a bracket expression for compatibility with other awk implementations but the check was too simple-minded. This improves the matching to allow things like /[]/]/, /[^]// and '/[abc[:digit:]/@#]/' To enable strict POSIX compliance, set POSIXLY_CORRECT.
2020-06-12Teach powerpc64 ddb to x, w, break, step, trace.gkoehler
Copy and adapt db_memrw.c from amd64, so ddb can read and write kernel memory. It can now insert breakpoints in the kernel text. Change __syncicache() to prevent an infinite loop when len isn't a multiple of cacheline_size. Get breakpoints and single-stepping to work. Single-stepping uses msr bit PSL_SE (single-step trace enable). Adapt db_trace.c db_stack_trace_print() from powerpc 32, but without all its features. For now, powerpc64 trace doesn't print function arguments and doesn't recognize traps. "go for it" kettenis@
2020-06-12add my Copyright and license, which i forgot when adding a significantIngo Schwarze
amount of text, the ERRORS section, in the previous commit
2020-06-12syncTheo de Raadt
2020-06-12On error, drop clients and close the device only if it's still openAlexandre Ratchov
Fixes crashes when USB devices are disconnected, caused by an attempt to close the already closed device: it was closed once when its ref counter drops to zero (after the last client is disconnected) and once with an explicit call to dev_close() on the error code-path.
2020-06-12Add test for passive interfacesdenis
2020-06-12Fix pasto; configure pin as input if it isn't an output.Mark Kettenis
2020-06-12Silence amdgpu_device_resize_fb_bar; supporting resizing of PCI BARs isMark Kettenis
tricky and using the pre-programmed BAR size should always work. Using bigger BARs might improve performance but it we probably need other changes (such as making the driver mpsafe) to benefit from that.
2020-06-12Make amdgpu_irq_add_domain silent; this functionality is only needed toMark Kettenis
support digital audio output which we don't support (yet) in OpenBSD.
2020-06-12Remove superflous space I added with my last commit.remi
noticed by jmc@
2020-06-12add a comment saying that name_cmp() is intentionally undocumented;Ingo Schwarze
tb@ agrees that it should not be part of the public API
2020-06-12don't warn on calls to drm_connector_attach_content_protection_property()Jonathan Gray
calling code is fine with this unimplemented function returning an error ok kettenis@
2020-06-12correct typo, this did not compile..Theo de Raadt
2020-06-12document PEM_ASN1_read(3) and PEM_ASN1_read_bio(3);Ingo Schwarze
tweaks and OK tb@
2020-06-12Do not wait on shutdown for commands started with run -b.Nicholas Marriott
2020-06-12Pay attention to the (Linux) kernel log level.Mark Kettenis
ok jsg@
2020-06-12Since we don't support CONFIG_SWIOTLB, make drm_need_swiotlb() just returnMark Kettenis
false. In theory somebody could plug an old radeon card into a machine with a ridiculous amount of memory (or a really old PCI/AGP card in a machine with >4GB of memory) but supporting that scenario just isn't worth it. ok jsg@