svn commit: r367758 - in head/sys/powerpc: aim include powerpc

2020-11-17 Thread Leandro Lupori
Author: luporl Date: Tue Nov 17 11:36:31 2020 New Revision: 367758 URL: https://svnweb.freebsd.org/changeset/base/367758 Log: [PowerPC] Don't overwrite vm.pmap sysctl node After r367417, both mmu_oea64 and mmu_radix were defining the vm.pmap sysctl node, resulting in the later definition

svn commit: r367427 - in head/sys: conf powerpc/aim

2020-11-06 Thread Leandro Lupori
Author: luporl Date: Fri Nov 6 18:50:00 2020 New Revision: 367427 URL: https://svnweb.freebsd.org/changeset/base/367427 Log: Fix powerpc and LINT builds Fix build errors introduced by r367417 and r367390: - Guard label reached only by powerpc64 - Guard vm_reserv_level_iffullpop

svn commit: r367417 - in head/sys: powerpc/aim powerpc/include powerpc/powernv powerpc/powerpc powerpc/pseries vm

2020-11-06 Thread Leandro Lupori
Author: luporl Date: Fri Nov 6 14:12:45 2020 New Revision: 367417 URL: https://svnweb.freebsd.org/changeset/base/367417 Log: Implement superpages for PowerPC64 (HPT) This change adds support for transparent superpages for PowerPC64 systems using Hashed Page Tables (HPT). All pmap

svn commit: r367397 - head/sys/powerpc/include

2020-11-05 Thread Leandro Lupori
Author: luporl Date: Thu Nov 5 20:18:00 2020 New Revision: 367397 URL: https://svnweb.freebsd.org/changeset/base/367397 Log: Fix powerpc and powerpcspe builds This change fixes 32-bit PowerPC builds, that r367390 broke (shift count >= width of type). Modified:

svn commit: r367392 - head/lib/libpmcstat

2020-11-05 Thread Leandro Lupori
Author: luporl Date: Thu Nov 5 16:47:23 2020 New Revision: 367392 URL: https://svnweb.freebsd.org/changeset/base/367392 Log: pmcstat: fix PPC kernel symbol resolution PowerPC kernel is of DYN type and it has a base address where it is initially loaded, before being relocated. As the

svn commit: r367391 - head/lib/libpmc

2020-11-05 Thread Leandro Lupori
Author: luporl Date: Thu Nov 5 16:41:28 2020 New Revision: 367391 URL: https://svnweb.freebsd.org/changeset/base/367391 Log: libpmc: add support for POWER8/9 PMCs This change adds support for POWER8/9 performance counters. Reviewed by: jhibbits Sponsored by: Eldorado Research

svn commit: r367390 - in head/sys: dev/hwpmc modules/hwpmc powerpc/include sys

2020-11-05 Thread Leandro Lupori
Author: luporl Date: Thu Nov 5 16:36:39 2020 New Revision: 367390 URL: https://svnweb.freebsd.org/changeset/base/367390 Log: [PowerPC] hwpmc: add support for POWER8/9 PMCs This change adds support for POWER8 and POWER9 PMCs (bare metal and pseries). All PowerISA 2.07B non-random

svn commit: r367383 - in head/sys: dev/hwpmc powerpc/include powerpc/powerpc

2020-11-05 Thread Leandro Lupori
Author: luporl Date: Thu Nov 5 14:15:50 2020 New Revision: 367383 URL: https://svnweb.freebsd.org/changeset/base/367383 Log: [PowerPC] Make PPC 970 PMC SPRs the standard ones And add a _74XX suffix to 74XX SPRs. This is a preparation for adding support to POWER8/9 PMCs, which have

svn commit: r365033 - head/sys/powerpc/include

2020-09-01 Thread Leandro Lupori
Author: luporl Date: Tue Sep 1 11:34:05 2020 New Revision: 365033 URL: https://svnweb.freebsd.org/changeset/base/365033 Log: [PowerPC] Fix PMCLOG address width PMCLOG macros were always using 32-bit addresses, even on PPC64. This resulted in truncated addresses in logs, when running on

svn commit: r365032 - head/sys/powerpc/powerpc

2020-09-01 Thread Leandro Lupori
Author: luporl Date: Tue Sep 1 11:30:39 2020 New Revision: 365032 URL: https://svnweb.freebsd.org/changeset/base/365032 Log: [PowerPC] Move pmc_hook out of critical section Calling pmc_hook inside a critical section may result in a panic. This happens when the user callchain is

svn commit: r364675 - head/sys/powerpc/powerpc

2020-08-24 Thread Leandro Lupori
Author: luporl Date: Mon Aug 24 13:40:35 2020 New Revision: 364675 URL: https://svnweb.freebsd.org/changeset/base/364675 Log: [PowerPC] Make new auxv format default Assume ELF images without OSREL use the new auxv format. This is specially important for rtld, that is not tagged. Using

svn commit: r363222 - head/sys/powerpc/aim

2020-07-15 Thread Leandro Lupori
Author: luporl Date: Wed Jul 15 13:43:48 2020 New Revision: 363222 URL: https://svnweb.freebsd.org/changeset/base/363222 Log: [PowerPC] Use PVO_PADDR to get the PA from PVO Use PVO_PADDR macro to get the physical address from a PVO, instead of explicitly ANDing pvo_pte.pa with LPTE_RPGN

svn commit: r362958 - head/libexec/rtld-elf

2020-07-06 Thread Leandro Lupori
Author: luporl Date: Mon Jul 6 11:57:59 2020 New Revision: 362958 URL: https://svnweb.freebsd.org/changeset/base/362958 Log: Handle non-PLT GNU IFUNC relocations in rtld In the last IFUNC related changes to rtld, the code that handled non-PLT GNU IFUNC relocations ended up getting lost.

svn commit: r359716 - head/stand/powerpc/ofw

2020-04-07 Thread Leandro Lupori
Author: luporl Date: Tue Apr 7 19:46:00 2020 New Revision: 359716 URL: https://svnweb.freebsd.org/changeset/base/359716 Log: Add support to MSDOS FS in PPC loader Although PPC OFW loader already had a LOADER_MSDOS_SUPPORT option, a few lines were missing in conf.c, in order to support

svn commit: r359687 - head/stand/powerpc/ofw

2020-04-07 Thread Leandro Lupori
Author: luporl Date: Tue Apr 7 12:46:26 2020 New Revision: 359687 URL: https://svnweb.freebsd.org/changeset/base/359687 Log: [PPC] Fix loader call to instantiate-rtas OpenFirmware (OF) method instantiate-rtas was being called with a wrong rtas-base-address argument. It must use the

svn commit: r359329 - head/sys/dev/ipmi

2020-03-26 Thread Leandro Lupori
Author: luporl Date: Thu Mar 26 12:17:49 2020 New Revision: 359329 URL: https://svnweb.freebsd.org/changeset/base/359329 Log: [PowerPC64] Fix OPAL IPMI driver This change fixes a couple of issues with OPAL IPMI driver and implements a mechanism to detect timeouts and discard old messages

svn commit: r359069 - in head/libexec/rc: . rc.d

2020-03-18 Thread Leandro Lupori
Author: luporl Date: Wed Mar 18 13:09:47 2020 New Revision: 359069 URL: https://svnweb.freebsd.org/changeset/base/359069 Log: Add fsck_flags config option On UFS with SU+J, sometimes fsck's default recovery from journal marks the filesystem as clean but some errors remain. With SU

svn commit: r358908 - in head/sys: conf modules powerpc/conf

2020-03-12 Thread Leandro Lupori
Author: luporl Date: Thu Mar 12 12:47:10 2020 New Revision: 358908 URL: https://svnweb.freebsd.org/changeset/base/358908 Log: Enable ixl device on PowerPC64 The ixl driver now works on PowerPC64 and may be compiled in-kernel and as a module. Reviewed by: alfredo, erj Sponsored

svn commit: r358814 - head/sys/dev/aacraid

2020-03-09 Thread Leandro Lupori
Author: luporl Date: Mon Mar 9 19:01:17 2020 New Revision: 358814 URL: https://svnweb.freebsd.org/changeset/base/358814 Log: [aacraid] Handle both AIF and SYNC interrupts Without this change, if an AIF interrupt comes at the same time a SYNC command is finished, the SYNC interrupt will

svn commit: r358698 - head/sys/dev/ixl

2020-03-06 Thread Leandro Lupori
Author: luporl Date: Fri Mar 6 12:37:04 2020 New Revision: 358698 URL: https://svnweb.freebsd.org/changeset/base/358698 Log: ixl: Add missing conversions from/to LE16 This fixes some errors on PPC64, during attach and when trying to assign an IP to an interface. With this change, basic

svn commit: r358684 - in head/sys: amd64/conf conf dev/aacraid modules modules/aacraid powerpc/conf

2020-03-05 Thread Leandro Lupori
[0]; + status = le32toh(((u_int32_t *)cm->cm_fib->data)[0]); if (cm->cm_flags & AAC_CMD_RESET) { ccb->ccb_h.status = CAM_SCSI_BUS_RESET; @@ -1146,6 +1155,7 @@ aac_cam_complete(struct aac_command *cm) fwprintf(sc, HBA_FLAGS_DBG_FUNCTION_EN

svn commit: r358613 - head/sys/dev/aacraid

2020-03-04 Thread Leandro Lupori
Author: luporl Date: Wed Mar 4 12:21:38 2020 New Revision: 358613 URL: https://svnweb.freebsd.org/changeset/base/358613 Log: [aacraid] Add missing unmap call for SYNC mode This issue was observed on a PowerPC64 machine with an Adaptec RAID Controller with PCI device ID 0x028d. After

svn commit: r358550 - head/sys/dev/aacraid

2020-03-02 Thread Leandro Lupori
Author: luporl Date: Mon Mar 2 16:11:25 2020 New Revision: 358550 URL: https://svnweb.freebsd.org/changeset/base/358550 Log: [aacraid] Prevent sense data from causing a buffer overflow This issue was observed on a PowerPC64 machine with an Adaptec RAID Controller with PCI device ID

svn commit: r357615 - in head: lib/libkvm sys/sys

2020-02-06 Thread Leandro Lupori
3 == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libkvm/kvm_kerndisp.3 Thu Feb 6 13:21:59 2020 (r357615) @@ -0,0 +1,57 @@ +.\" +.\" Copyright (c) 2020 Leandro Lup

svn commit: r357570 - head/sys/kern

2020-02-05 Thread Leandro Lupori
Author: luporl Date: Wed Feb 5 11:34:10 2020 New Revision: 357570 URL: https://svnweb.freebsd.org/changeset/base/357570 Log: Add SYSCTL to get KERNBASE and relocated KERNBASE This change adds 2 new SYSCTLs, to retrieve the original and relocated KERNBASE values. This provides an easy,

svn commit: r357262 - head/sys/powerpc/powernv

2020-01-29 Thread Leandro Lupori
Author: luporl Date: Wed Jan 29 18:13:44 2020 New Revision: 357262 URL: https://svnweb.freebsd.org/changeset/base/357262 Log: [PPC64] Fix NUMA on POWER8 On some POWER8 machines, 'ibm,associativity' property may have 6 cells, which would overflow the 5 cells buffer being used. There was

svn commit: r356831 - head/sys/powerpc/include

2020-01-17 Thread Leandro Lupori
Author: luporl Date: Fri Jan 17 14:43:58 2020 New Revision: 356831 URL: https://svnweb.freebsd.org/changeset/base/356831 Log: [PPC] Fix wrong comment pcb_context[20] holds r12-r31 and not r14-r31, as the comment said. Modified: head/sys/powerpc/include/pcb.h Modified:

svn commit: r356788 - in head: share/man/man4 sys/modules sys/powerpc/conf

2020-01-16 Thread Leandro Lupori
Author: luporl Date: Thu Jan 16 11:33:15 2020 New Revision: 356788 URL: https://svnweb.freebsd.org/changeset/base/356788 Log: [PowerPC64] Enable virtio drivers This enables virtio modules on PowerPC* target. On PowerPC64, drivers are also kernel builtin. QEMU currently needs to be

svn commit: r356767 - head/lib/libc/powerpc64/string

2020-01-15 Thread Leandro Lupori
Author: luporl Date: Wed Jan 15 20:25:52 2020 New Revision: 356767 URL: https://svnweb.freebsd.org/changeset/base/356767 Log: [PPC64] memcpy/memmove/bcopy optimization For copies shorter than 512 bytes, the data is copied using plain ld/std instructions. For 512 bytes or more, the copy

svn commit: r356766 - in head/lib/libc: powerpc64/string string

2020-01-15 Thread Leandro Lupori
/string/strncpy.cWed Jan 15 19:53:03 2020 (r356766) @@ -0,0 +1,33 @@ +/*- + * Copyright (c) 2019 Leandro Lupori + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions

svn commit: r356765 - in head/lib/libc: powerpc64/string string

2020-01-15 Thread Leandro Lupori
) @@ -0,0 +1,33 @@ +/*- + * Copyright (c) 2019 Leandro Lupori + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice

svn commit: r355801 - in head/sys: gdb powerpc/include powerpc/powerpc

2019-12-16 Thread Leandro Lupori
Author: luporl Date: Mon Dec 16 13:17:39 2019 New Revision: 355801 URL: https://svnweb.freebsd.org/changeset/base/355801 Log: [PPC] Handle qOffsets packet On PowerPC, this is needed in order for the debugger to find out the memory offset where the kernel image was loaded on the remote

svn commit: r355557 - head/lib/libkvm

2019-12-09 Thread Leandro Lupori
(r37) @@ -0,0 +1,202 @@ +/*- + * Copyright (c) 2006 Peter Wemm + * Copyright (c) 2019 Leandro Lupori + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source

svn commit: r355556 - in head/sys: dev/vt/hw/ofwfb powerpc/ofw powerpc/pseries

2019-12-09 Thread Leandro Lupori
Author: luporl Date: Mon Dec 9 13:40:23 2019 New Revision: 36 URL: https://svnweb.freebsd.org/changeset/base/36 Log: Enable use of ofwcons for early debug This change enables the use of OpenFirmware Console (ofwcons), even when VGA is available, allowing early kernel messages

svn commit: r355555 - in head/sys: conf powerpc/powernv powerpc/pseries

2019-12-09 Thread Leandro Lupori
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/powerpc/powernv/opal_dbg.c Mon Dec 9 13:09:32 2019 (r35) @@ -0,0 +1,151 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (C) 2019 Leandro

svn commit: r355209 - head/sys/powerpc/pseries

2019-11-29 Thread Leandro Lupori
Author: luporl Date: Fri Nov 29 11:34:11 2019 New Revision: 355209 URL: https://svnweb.freebsd.org/changeset/base/355209 Log: [PPC] Remove extra \0 char inserted on vty by QEMU Since version 2.11.0, QEMU became bug-compatible with PowerVM's vty implementation, by inserting a \0 after

svn commit: r355093 - in head/sys: conf powerpc/pseries

2019-11-25 Thread Leandro Lupori
+ * + * Copyright (C) 2019 Leandro Lupori + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of conditions

svn commit: r354239 - head/contrib/gdb/gdb

2019-11-01 Thread Leandro Lupori
Author: luporl Date: Fri Nov 1 11:28:43 2019 New Revision: 354239 URL: https://svnweb.freebsd.org/changeset/base/354239 Log: [PPC64] Fix GDB sigtramp detection Current implementation of ppcfbsd_pc_in_sigtramp() seems to take only 32-bit PowerPC in account, as on 64-bit PowerPC most

svn commit: r354214 - in head/sys/powerpc: include powerpc

2019-10-31 Thread Leandro Lupori
Author: luporl Date: Thu Oct 31 12:03:47 2019 New Revision: 354214 URL: https://svnweb.freebsd.org/changeset/base/354214 Log: Fix GDB machdep code for PPC/PPC64 There was a couple issues with GDB machdep code for PPC/PPC64, the main ones being: - wrong register sizes being returned -

svn commit: r354213 - head/sys/powerpc/aim

2019-10-31 Thread Leandro Lupori
Author: luporl Date: Thu Oct 31 11:59:00 2019 New Revision: 354213 URL: https://svnweb.freebsd.org/changeset/base/354213 Log: [PPC64] Fix trapstk overflow In some scenarios, the 4K trapstk may overflow, corrupting tmpstk. This was observed during remote debugging, with the following

svn commit: r353897 - head/sys/powerpc/ofw

2019-10-22 Thread Leandro Lupori
Author: luporl Date: Tue Oct 22 18:28:58 2019 New Revision: 353897 URL: https://svnweb.freebsd.org/changeset/base/353897 Log: [PPC] Avoid underflows in NUMA domains On POWER8 systems with only one memory domain, the "ibm,associativity" number that corresponds to it is 0, unlike POWER9

svn commit: r353795 - head/sys/powerpc/aim

2019-10-21 Thread Leandro Lupori
Author: luporl Date: Mon Oct 21 11:56:57 2019 New Revision: 353795 URL: https://svnweb.freebsd.org/changeset/base/353795 Log: [PPC64] Add minidump support to PowerNV Implementation of PowerNV specific minidump code. Reviewed by: jhibbits Differential Revision:

svn commit: r353500 - in head/sys/powerpc: aim powerpc

2019-10-14 Thread Leandro Lupori
Author: luporl Date: Mon Oct 14 19:06:17 2019 New Revision: 353500 URL: https://svnweb.freebsd.org/changeset/base/353500 Log: Fix powerpc/powerpcspe builds Revision 353489 introduced some new function calls in common powerpc code, but these must be called only on powerpc64. Modified:

svn commit: r353489 - in head/sys: conf kern powerpc/aim powerpc/include powerpc/powerpc powerpc/pseries vm

2019-10-14 Thread Leandro Lupori
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/powerpc/powerpc/minidump_machdep.c Mon Oct 14 13:04:04 2019 (r353489) @@ -0,0 +1,442 @@ +/*- + * Copyright (c) 2019 Leandro Lupori + * All rights reserved. + * + * Redistribut

svn commit: r352255 - head/lib/csu/powerpc64

2019-09-12 Thread Leandro Lupori
atexit(_mcleanup); Added: head/lib/csu/powerpc64/reloc.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/csu/powerpc64/reloc.c Thu Sep 12 16:45:07 2019 (r352255) @@

svn commit: r352175 - head/lib/libkvm

2019-09-10 Thread Leandro Lupori
Author: luporl Date: Tue Sep 10 18:46:32 2019 New Revision: 352175 URL: https://svnweb.freebsd.org/changeset/base/352175 Log: Add powerpc support to libkvm probe function PowerPC kernels are of DYN type, instead of EXEC. Reviewed by: jhibbits Differential Revision:

svn commit: r352140 - head/sys/sys

2019-09-10 Thread Leandro Lupori
Author: luporl Date: Tue Sep 10 16:16:05 2019 New Revision: 352140 URL: https://svnweb.freebsd.org/changeset/base/352140 Log: Add R_PPC_IRELATIVE relocation Pre-requisite for most ifunc related changes. Reviewed by: jhibbits Differential Revision:

svn commit: r346600 - head/sys/powerpc/pseries

2019-09-03 Thread Leandro Lupori
Author: luporl Date: Tue Apr 23 17:11:45 2019 New Revision: 346600 URL: https://svnweb.freebsd.org/changeset/base/346600 Log: [PPC64] Fix wrong KASSERT in mphyp_pte_insert() As mphyp_pte_unset() can also remove PTE entries, and as this can happen in parallel with PTEs evicted by

svn commit: r350953 - head/sys/powerpc/include

2019-08-12 Thread Leandro Lupori
Author: luporl Date: Mon Aug 12 19:44:57 2019 New Revision: 350953 URL: https://svnweb.freebsd.org/changeset/base/350953 Log: Fix style and clarify comment Fix code style in proc.h and clarify comment about empty structs. Modified: head/sys/powerpc/include/proc.h Modified:

svn commit: r350902 - head/sys/powerpc/include

2019-08-12 Thread Leandro Lupori
Author: luporl Date: Mon Aug 12 17:18:20 2019 New Revision: 350902 URL: https://svnweb.freebsd.org/changeset/base/350902 Log: [ppc] avoid empty mdproc struct Avoid empty structs, that have undefined behavior in C99 and make compilers complain about it (empty struct has size 0 in C,

svn commit: r350899 - head/sys/powerpc/powerpc

2019-08-12 Thread Leandro Lupori
Author: luporl Date: Mon Aug 12 12:51:47 2019 New Revision: 350899 URL: https://svnweb.freebsd.org/changeset/base/350899 Log: [PPC64] Save FPU registers before enabling VSX Fixed trap handler logic, in order to make it save FPU registers, if FPU is enabled, before enabling VSX. Without

svn commit: r350589 - head/tools/build/mk

2019-08-05 Thread Leandro Lupori
Author: luporl Date: Mon Aug 5 13:28:21 2019 New Revision: 350589 URL: https://svnweb.freebsd.org/changeset/base/350589 Log: [PPC64] Don't mark ld.bfd as obsolete PowerPC64 still needs ld.bfd for 32-bit binaries/libraries. This will be needed when ELFv2 becomes default, but there is

svn commit: r350587 - head/libexec/rtld-elf/powerpc64

2019-08-05 Thread Leandro Lupori
Author: luporl Date: Mon Aug 5 13:22:02 2019 New Revision: 350587 URL: https://svnweb.freebsd.org/changeset/base/350587 Log: [PPC64] Fix rtld direct exec mode Instead of restoring the saved values of argc, argv and envp, these must be loaded from the stack that _rtld() modifies.

svn commit: r350485 - head/stand/powerpc/ofw

2019-07-31 Thread Leandro Lupori
(empty, because file is newly added) +++ head/stand/powerpc/ofw/cas.cWed Jul 31 20:31:36 2019 (r350485) @@ -0,0 +1,225 @@ +/*- + * Copyright (c) 2019 Leandro Lupori + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provide

svn commit: r350467 - head/contrib/llvm/tools/lld/ELF

2019-07-31 Thread Leandro Lupori
Author: luporl Date: Wed Jul 31 16:22:05 2019 New Revision: 350467 URL: https://svnweb.freebsd.org/changeset/base/350467 Log: [PPC64] Backport fix for missing IRELATIVE relocations This is a backport of LLVM commit 8331f61a51a7a0a1efbf5ed398e181593023d151, llvm-svn: 353981: ELF:

svn commit: r350323 - head/sys/powerpc/aim

2019-07-25 Thread Leandro Lupori
Author: luporl Date: Thu Jul 25 15:27:05 2019 New Revision: 350323 URL: https://svnweb.freebsd.org/changeset/base/350323 Log: powerpc: Improve pvo allocation code Added allocation retry loop in alloc_pvo_entry(), to wait for memory to become available if the caller specifies the M_WAITOK

svn commit: r349885 - head/sys/powerpc/pseries

2019-07-10 Thread Leandro Lupori
Author: luporl Date: Wed Jul 10 13:36:17 2019 New Revision: 349885 URL: https://svnweb.freebsd.org/changeset/base/349885 Log: [PPC64] pseries: fix realmaxaddr calculation On POWER9/pseries, QEMU passes several regions of memory, instead of a single region containing all memory, as the

svn commit: r349833 - head/sys/powerpc/aim

2019-07-08 Thread Leandro Lupori
Author: luporl Date: Mon Jul 8 13:01:54 2019 New Revision: 349833 URL: https://svnweb.freebsd.org/changeset/base/349833 Log: [PPC] Add missing SLB allocation KASSERT Although PPC SLB code doesn't handle allocation failures, which are rare, in most places it asserts that the pointer

svn commit: r349723 - head/sys/powerpc/pseries

2019-07-04 Thread Leandro Lupori
Author: luporl Date: Thu Jul 4 12:31:24 2019 New Revision: 349723 URL: https://svnweb.freebsd.org/changeset/base/349723 Log: [PPC64] pseries llan: fix MAC address There was an issue in pseries llan driver, that resulted in the first 2 bytes of the MAC address getting stripped, and the

svn commit: r349510 - head/contrib/elftoolchain/readelf

2019-06-28 Thread Leandro Lupori
Author: luporl Date: Fri Jun 28 16:00:55 2019 New Revision: 349510 URL: https://svnweb.freebsd.org/changeset/base/349510 Log: [PowerPC64] readelf: print description for 'e_flags' in ELF header (ABI type) This prints out description text with the meaning of 'Flags' value in PowerPC64.

svn commit: r349509 - head/contrib/file/magic/Magdir

2019-06-28 Thread Leandro Lupori
Author: luporl Date: Fri Jun 28 15:52:40 2019 New Revision: 349509 URL: https://svnweb.freebsd.org/changeset/base/349509 Log: [PowerPC64] Add ABI flags to 'file' magic The distinction between ELF header version and OpenPOWER ELF ABI version is confusing for most of people, so this adds

svn commit: r349508 - head/share/mk

2019-06-28 Thread Leandro Lupori
Author: luporl Date: Fri Jun 28 15:49:14 2019 New Revision: 349508 URL: https://svnweb.freebsd.org/changeset/base/349508 Log: Fix missing powerpc64 in _LLVM_TARGET_FILT This change was originally in D20378. Making it in a new diff since it's a bugfix. Submitted by:

svn commit: r349377 - in head/sys: net sys

2019-06-25 Thread Leandro Lupori
Author: luporl Date: Tue Jun 25 17:15:44 2019 New Revision: 349377 URL: https://svnweb.freebsd.org/changeset/base/349377 Log: [PowerPC64] Don't mark module data as static Fixes panic when loading ipfw.ko and if_epair.ko built with modern compiler. Similar to arm64 and riscv, when

svn commit: r349188 - head/stand/ofw/libofw

2019-06-19 Thread Leandro Lupori
Author: luporl Date: Wed Jun 19 11:37:43 2019 New Revision: 349188 URL: https://svnweb.freebsd.org/changeset/base/349188 Log: [PPC] Fix loader input with newer QEMU versions At least since version 4.0.0, QEMU became bug-compatible with PowerVM's vty, by inserting a \0 after every \r. As

svn commit: r348900 - head/sys/powerpc/pseries

2019-06-11 Thread Leandro Lupori
Author: luporl Date: Tue Jun 11 11:23:15 2019 New Revision: 348900 URL: https://svnweb.freebsd.org/changeset/base/348900 Log: [PPC] Fix build error when POWERNV is disabled When building a kernel supporting PSERIES but not POWERNV, the compiler would complain about an error variable

svn commit: r348899 - head/sys/powerpc/ofw

2019-06-11 Thread Leandro Lupori
Author: luporl Date: Tue Jun 11 11:16:41 2019 New Revision: 348899 URL: https://svnweb.freebsd.org/changeset/base/348899 Log: [PPC64] Fix ofw_initrd Before this change, OFW initrd (as md) handling code was simulating an ofwbus device. But as there isn't really a Device Tree (DT) node

svn commit: r348783 - in head/sys/powerpc: aim pseries

2019-06-07 Thread Leandro Lupori
Author: luporl Date: Fri Jun 7 17:58:59 2019 New Revision: 348783 URL: https://svnweb.freebsd.org/changeset/base/348783 Log: [PPC64] Support QEMU/KVM pseries without hugepages This set of changes make it possible to run FreeBSD for PowerPC64/pseries, under QEMU/KVM, without requiring

svn commit: r348248 - head/sys/powerpc/conf

2019-05-24 Thread Leandro Lupori
Author: luporl Date: Fri May 24 18:41:31 2019 New Revision: 348248 URL: https://svnweb.freebsd.org/changeset/base/348248 Log: Make options MD_ROOT_MEM default on PPC64 Having this option enabled by default on PowerPC64 kernels makes booting ISO images much easier when on PowerNV.

svn commit: r348112 - in head/sys: conf powerpc/aim powerpc/powerpc

2019-05-22 Thread Leandro Lupori
Author: luporl Date: Wed May 22 15:56:41 2019 New Revision: 348112 URL: https://svnweb.freebsd.org/changeset/base/348112 Log: Fix PPC64 kernel build with clang8 + lld8 This patch fixes the following lld link errors: - unsupported dynamic relocations on read-only sections -

svn commit: r348005 - in head: cddl/contrib/opensolaris/lib/libzfs/common stand/common stand/ofw/libofw stand/powerpc/boot1.chrp stand/powerpc/kboot stand/powerpc/ofw

2019-05-20 Thread Leandro Lupori
Author: luporl Date: Mon May 20 19:21:35 2019 New Revision: 348005 URL: https://svnweb.freebsd.org/changeset/base/348005 Log: [PowerPC64] stand: fix build using clang 8 as compiler This change fixes "stand" build issues when using clang 8 as compiler. Submitted by:

svn commit: r347992 - head/gnu/usr.bin/binutils

2019-05-20 Thread Leandro Lupori
Author: luporl Date: Mon May 20 16:00:32 2019 New Revision: 347992 URL: https://svnweb.freebsd.org/changeset/base/347992 Log: [PPC] Enable build/install of ld.bfd on base When using LLVM+clang+lld on PowerPC64, ld.bfd is also needed, to link 32-bit binaries correctly, as lld support for

svn commit: r347445 - head/usr.bin/dtc

2019-05-10 Thread Leandro Lupori
Author: luporl Date: Fri May 10 17:05:40 2019 New Revision: 347445 URL: https://svnweb.freebsd.org/changeset/base/347445 Log: Fix build issue with clang 8.0.1 The algorithm header is needed to use std::remove_if Modified: head/usr.bin/dtc/fdt.hh Modified: head/usr.bin/dtc/fdt.hh

svn commit: r346897 - in head/sys: conf powerpc/conf

2019-04-29 Thread Leandro Lupori
Author: luporl Date: Mon Apr 29 16:50:33 2019 New Revision: 346897 URL: https://svnweb.freebsd.org/changeset/base/346897 Log: [PPC64] Turn opal_flash.c into a device This change makes it easier to enable/disable the inclusion of OPAL flash in the kernel. Reviewed by: jhibbits

svn commit: r346600 - head/sys/powerpc/pseries

2019-04-23 Thread Leandro Lupori
Author: luporl Date: Tue Apr 23 17:11:45 2019 New Revision: 346600 URL: https://svnweb.freebsd.org/changeset/base/346600 Log: [PPC64] Fix wrong KASSERT in mphyp_pte_insert() As mphyp_pte_unset() can also remove PTE entries, and as this can happen in parallel with PTEs evicted by

svn commit: r344620 - head/usr.sbin/kldxref

2019-02-27 Thread Leandro Lupori
Author: luporl Date: Wed Feb 27 13:24:42 2019 New Revision: 344620 URL: https://svnweb.freebsd.org/changeset/base/344620 Log: Fix kldxref on PowerPC64 When using kldxref on kernel modules built with clang8 + lld8, kldxref would be unable to find the modules metadata information,

svn commit: r344534 - head/cddl/contrib/opensolaris/tools/ctf/cvt

2019-02-25 Thread Leandro Lupori
Author: luporl Date: Mon Feb 25 18:52:47 2019 New Revision: 344534 URL: https://svnweb.freebsd.org/changeset/base/344534 Log: Increase ctfconvert buffer size Reviewed by: markj Differential Revision:https://reviews.freebsd.org/D19353 Modified:

svn commit: r344123 - head/sys/powerpc/powerpc

2019-02-14 Thread Leandro Lupori
Author: luporl Date: Thu Feb 14 15:15:32 2019 New Revision: 344123 URL: https://svnweb.freebsd.org/changeset/base/344123 Log: [PPC64] Fix mismatch between thread flags and MSR When sigreturn() restored a thread's context, SRR1 was being restored to its previous value, but pcb_flags was

svn commit: r344109 - head/lib/libthr/arch/powerpc/include

2019-02-13 Thread Leandro Lupori
Author: luporl Date: Wed Feb 13 18:28:53 2019 New Revision: 344109 URL: https://svnweb.freebsd.org/changeset/base/344109 Log: silence cast-align warnings from clang on powerpc64 silence the following warning when compiling libthr with clang 8 for powerpc64 architecture:

svn commit: r344049 - head/sys/powerpc/aim

2019-02-12 Thread Leandro Lupori
Author: luporl Date: Tue Feb 12 11:29:03 2019 New Revision: 344049 URL: https://svnweb.freebsd.org/changeset/base/344049 Log: [ppc64] prevent infinite loop on icache sync At moea64_sync_icache(), when the 'va' argument has page size alignment, round_page() will return the same value as

svn commit: r343872 - head/sys/powerpc/powerpc

2019-02-07 Thread Leandro Lupori
Author: luporl Date: Thu Feb 7 17:30:44 2019 New Revision: 343872 URL: https://svnweb.freebsd.org/changeset/base/343872 Log: [ppc64] fix /dev/kmem For direct mapped kernel addresses, ppc64 function was not performing the dmap to physical conversion, before jumping to the code that

svn commit: r343791 - head/sys/powerpc/pseries

2019-02-05 Thread Leandro Lupori
Author: luporl Date: Tue Feb 5 18:16:14 2019 New Revision: 343791 URL: https://svnweb.freebsd.org/changeset/base/343791 Log: [ppc64] llan: fix fatal kernel trap when system is low on memory When running several builders in parallel, on QEMU, with 8GB of memory, a fatal kernel trap

svn commit: r343744 - head/sys/powerpc/aim

2019-02-04 Thread Leandro Lupori
Author: luporl Date: Mon Feb 4 16:02:03 2019 New Revision: 343744 URL: https://svnweb.freebsd.org/changeset/base/343744 Log: powerpc64: Add a trap stack area Currently, the trap code switches to the the temporary stack in the dbtrap section. It works in most cases, but in the beginning

svn commit: r341797 - in head/sys/powerpc: aim include powerpc

2018-12-10 Thread Leandro Lupori
Author: luporl Date: Mon Dec 10 14:54:28 2018 New Revision: 341797 URL: https://svnweb.freebsd.org/changeset/base/341797 Log: ppc64: handle exception 0x1500 (soft patch) This change adds a hypervisor trap handler for exception 0x1500 (soft patch), normalizing all VSX registers and

svn commit: r339589 - head/sys/powerpc/powernv

2018-10-22 Thread Leandro Lupori
Author: luporl Date: Mon Oct 22 13:40:50 2018 New Revision: 339589 URL: https://svnweb.freebsd.org/changeset/base/339589 Log: ppc64: limited 32-bit DMA address range Further investigation of issues with 32-bit DMA on PowerNV revealed that its window is hardcoded by OPAL (at least in

svn commit: r339360 - head/sys/powerpc/powerpc

2018-10-15 Thread Leandro Lupori
Author: luporl Date: Mon Oct 15 16:43:07 2018 New Revision: 339360 URL: https://svnweb.freebsd.org/changeset/base/339360 Log: Initialize SPRG0 before its first possible use At early boot, PCPU_GET(), that obtains a pointer from SPRG0, was being used with SPRG0 not yet initialized. If it

svn commit: r337537 - in head/sys: kern netinet netinet6

2018-08-09 Thread Leandro Lupori
Author: luporl Date: Thu Aug 9 14:04:51 2018 New Revision: 337537 URL: https://svnweb.freebsd.org/changeset/base/337537 Log: [ppc] Fix kernel panic when using BOOTP_NFSROOT On PowerPC (and possibly other architectures), that doesn't use EARLY_AP_STARTUP, the config task queue may be

svn commit: r336760 - head/sys/dev/ahci

2018-07-27 Thread Leandro Lupori
Author: luporl Date: Fri Jul 27 13:11:05 2018 New Revision: 336760 URL: https://svnweb.freebsd.org/changeset/base/336760 Log: Fixed endianess issue in AHCI driver There were some bits that were being set in cmd_flags (a field of AHCI's command list structure) after cmd_flags was

svn commit: r334113 - in head: share/misc usr.bin/calendar/calendars

2018-05-23 Thread Leandro Lupori
g\n2008/10/06"] +luporl [label="Leandro Lupori\nlup...@freebsd.org\n2018/05/21"] manu [label="Emmanuel Vadot\nm...@freebsd.org\n2016/04/24"] marcel [label="Marcel Moolenaar\nmar...@freebsd.org\n1999/07/03"] marius [label="Marius Strobl\nmar...@freebsd.or