aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc/pseries/phyp_console.c
Commit message (Collapse)AuthorAgeFilesLines
* sys: Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* Remove unused uart_devclass.John Baldwin2022-05-061-1/+1
|
* [PowerPC64LE] pseries: Fix input buffering logic.Brandon Bergren2021-02-251-5/+4
| | | | | | | | | | | | | | | | | | | | | | In uart_phyp_get(), when the internal buffer is empty, we make a hypercall to retrieve up to 16 bytes of input data from the hypervisor. As this is specified to be returned in BE format, we need to do a 64-bit byte swap on the first and second half of the data. If the buffer being passed in was insufficient to return the fetched data, we store the remainder in the internal buffer and use it to satisfy the following calls to uart_phyp_get() until it is drained. However, in this case, we were accidentally byteswapping the internal buffer again. Move the byteswapping code to just after the hypercall so it only gets swapped when we're filling the buffer. Fixes arrow keys in qemu on pseries, among other console oddities. Sponsored by: Tag1 Consulting, Inc. MFC after: 3 days
* [PowerPC64LE] Fix endianness issues in phyp and opal consoles.Brandon Bergren2020-09-231-2/+8
| | | | | | | | | | This applies to both pseries and powernv, which were tested at different points during the patchset development. Sponsored by: Tag1 Consulting, Inc. Notes: svn path=/head/; revision=366036
* powerpc: clean up empty lines in .c and .h filesMateusz Guzik2020-09-011-4/+3
| | | | Notes: svn path=/head/; revision=365073
* [PPC] Remove extra \0 char inserted on vty by QEMULeandro Lupori2019-11-291-4/+25
| | | | | | | | | | | | | | Since version 2.11.0, QEMU became bug-compatible with PowerVM's vty implementation, by inserting a \0 after every \r going to the guest. Guests are expected to workaround this issue by removing every \0 immediately following a \r. Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D22171 Notes: svn path=/head/; revision=355209
* sys/powerpc: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326261
* Where appropriate, use the endian-flipping OF_getencprop() instead ofNathan Whitehorn2015-11-171-2/+2
| | | | | | | | | | | | | | | | OF_getprop() to get encode-int encoded values from the OF tree. This is a no-op at present, since all existing PowerPC ports are big-endian, but it is a correctness improvement and will be required if we have a little-endian kernel at some future point. Where it is totally impossible for the code ever to be used on a little-endian system (much of powerpc/powermac, for instance), I have not necessarily made the appropriate changes. MFC after: 1 month Notes: svn path=/head/; revision=290989
* CALLOUT_MPSAFE has lost its meaning since r141428, i.e., for more than tenJung-uk Kim2015-05-221-1/+1
| | | | | | | | | | | | | years for head. However, it is continuously misused as the mpsafe argument for callout_init(9). Deprecate the flag and clean up callout_init() calls to make them more consistent. Differential Revision: https://reviews.freebsd.org/D2613 Reviewed by: jhb MFC after: 2 weeks Notes: svn path=/head/; revision=283291
* This driver doesn't need the /options node, so don't check for it.Nathan Whitehorn2013-11-271-3/+1
| | | | Notes: svn path=/head/; revision=258697
* Take care to handle the full 16 byte buffer in the get/put routines. Also,Andreas Tobler2013-11-261-8/+26
| | | | | | | | | | skip the VTERM header once when receiving data from the hypervisor call when we have a HVTERMPROT connection. MFC after: 1 week Notes: svn path=/head/; revision=258615
* Fix bug where UART unit number was not set properly, which preventedNathan Whitehorn2013-09-261-4/+1
| | | | | | | | | | | operation on systems with multiple serial ports. Also turn on interrupts for the UART device, which were disabled due to a now-fixed bug in QEMU. Approved by: re (gjb) Notes: svn path=/head/; revision=255895
* Merge in support for PAPR-compliant (Power Architecture PlatformNathan Whitehorn2013-09-171-0/+420
Requirements) systems from the projects/pseries branch. This in principle includes all IBM POWER hardware released in the last 15 years with the exception of POWER3-based systems when run in 64-bit mode. The main development target, however, has been the PAPR logical partition support that is the default target in KVM on POWER and QEMU -- mileage may vary on actual hardware at present. Much of the heavy lifting here was done by Andreas Tobler. Approved by: re (kib) Notes: svn path=/head/; revision=255643