| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
Partial revert https://reviews.freebsd.org/D50017
These files still use devmap_add_entry() and needs sys/devmap.h
Reviewed by: andrew
Approved by: manu (mentor)
Differential revision: https://reviews.freebsd.org/D50574
|
| |
|
|
|
|
|
|
| |
These files don't use it, we can stop including sys/devmap.h.
Reviewed by: mhorne
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D50017
|
| |
|
|
|
| |
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D47675
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.
Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/
Sponsored by: Netflix
|
| |
|
|
| |
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
|
| |
|
|
| |
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| |
|
|
| |
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
| |
|
|
|
|
|
|
|
|
| |
Previously we had an armv4/v5 and armv6/v7 copy of the cpu.h header. As
we have removed armv4/v5 support we can now merge the armv6/v7 code
into cpu.h
Reviewed by: imp
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D41137
|
| |
|
|
|
| |
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D39926
|
| |
|
|
|
|
|
| |
Rename pci_host_generic_attach to pci_host_generic_fdt_attach to be
consistant with the acpi attachment.
Sponsored by: The FreeBSD Foundation
|
| | |
|
| |
|
|
|
|
|
|
| |
It was used for testing armv6 under QEMU, however since then we added
support for the QEMU virt platform.
Reviewed by: imp, manu
Differential Revision: https://reviews.freebsd.org/D29707
|
| |
|
|
|
|
|
|
| |
ARM has required ARMV6+ and INTRNg for some time now, so remove
always false #ifdefs and unconditionally do always true #ifdefs.
Notes:
svn path=/head/; revision=368141
|
| |
|
|
| |
Notes:
svn path=/head/; revision=365068
|
| |
|
|
|
|
|
|
|
|
| |
This files is needed and included in all our config so move it to a common
location.
MFC after: 2 weeks
Notes:
svn path=/head/; revision=346295
|
| |
|
|
|
|
|
| |
These are unneeded with INTRNG.
Notes:
svn path=/head/; revision=336804
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change OF_getencprop_alloc semantics to be combination of malloc and
OF_getencprop and return size of the property, not number of elements
allocated.
For the use cases where number of elements is preferred introduce
OF_getencprop_alloc_multi helper function that copies semantics
of OF_getencprop_alloc prior to this change.
This is to make OF_getencprop_alloc and OF_getencprop_alloc_multi
function signatures consistent with OF_getencprop_alloc and
OF_getencprop_alloc_multi.
Functionality-wise this patch is mostly rename of OF_getencprop_alloc
to OF_getencprop_alloc_multi except two calls in ofw_bus_setup_iinfo
where 1 was used as a block size.
Notes:
svn path=/head/; revision=332341
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
OF_finddevices returns ((phandle_t)-1) in case of failure. Some code
in existing drivers checked return value to be equal to 0 or
less/equal to 0 which is also wrong because phandle_t is unsigned
type. Most of these checks were for negative cases that were never
triggered so trhere was no impact on functionality.
Reviewed by: nwhitehorn
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D14645
Notes:
svn path=/head/; revision=331229
|
| |
|
|
|
|
|
| |
Reported by: ian
Notes:
svn path=/head/; revision=327280
|
| |
|
|
|
|
|
| |
Instead of adding it to every files.vendor, add it to the common arch file.
Notes:
svn path=/head/; revision=327250
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Transition all boards that support arm cortex CPUs to armv7. This
leaves two armv6 kernels in the tree. RPI-B, which uses the BCM2835
which has a ARM1176 core, and VERSATILEPB, which is a qemu board setup
around the time RPI-B went in. Copy std.armv6 to std.armv7, even
though that duplicates a lot of stuff. More work needs to be done to
sort out the duplication.
Differential Revision: https://reviews.freebsd.org/D12027
Notes:
svn path=/head/; revision=324341
|
| |
|
|
|
|
|
| |
This will help move it to be part of GENERIC.
Notes:
svn path=/head/; revision=320643
|
| |
|
|
|
|
|
| |
build system doesn't handle two files with the same name.
Notes:
svn path=/head/; revision=319569
|
| |
|
|
|
|
|
|
|
|
| |
could be overridden in the SoC specific code, but this would break GENERIC
as it is likely to be incorrect.
Remove the versatile implementation of cpu_initclocks as it's unneeded.
Notes:
svn path=/head/; revision=319541
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Use new option SMP_ON_UP instead of (mis)using specific CPU type.
By this, any SMP kernel can be compiled with SMP_ON_UP support.
- Enable runtime detection of CPU multiprocessor extensions only
if SMP_ON_UP option is used. In other cases (pure SMP or UP),
statically compile only required variant.
- Don't leak multiprocessor instructions to UP kernel.
- Correctly handle data cache write back to point of unification.
DCCMVAU is supported on all armv7 cpus.
- For SMP_ON_UP kernels, detect proper TTB flags on runtime.
Differential Revision: https://reviews.freebsd.org/D9133
Notes:
svn path=/head/; revision=313090
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
FDT attachment to a new file. A separate ACPI attachment will then be added
to allow arm64 servers with ACPI to use it over FDT.
This should also help with merging this with the ofwpci driver, with
further work needed to remove restrictions this driver places on resource
allocation.
Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D7319
Notes:
svn path=/head/; revision=308931
|
| |
|
|
|
|
|
|
|
| |
phandle_t and remove the need for including fdt_common.h.
Sponsored by: ABT Systems Ltd
Notes:
svn path=/head/; revision=308639
|
| |
|
|
|
|
|
| |
Sponsored by: ABT Systems Ltd
Notes:
svn path=/head/; revision=308638
|
| |
|
|
|
|
|
| |
Sponsored by: ABT Systems Ltd
Notes:
svn path=/head/; revision=308531
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The exported functions will be used by
Alpine Ethernet driver.
Obtained from: Semihalf
Submitted by: Michal Stanek <mst@semihalf.com>
Sponsored by: Annapurna Labs
Reviewed by: wma
Differential Revision: https://reviews.freebsd.org/D7763
Notes:
svn path=/head/; revision=307669
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds support for MSI-X interrupts
on Annapurna Alpine platform. MSI-X on Alpine
work similarly to GICv2m, i.e. some range of
SPI interrupts is reserved in GIC and individual
SPIs can be triggered by MSI-X messages.
This SPI range is defined in FDT.
Obtained from: Semihalf
Submitted by: Michal Stanek <mst@semihalf.com>
Sponsored by: Annapurna Labs
Reviewed by: nwhitehorn, wma
Differential Revision: https://reviews.freebsd.org/D7579
Notes:
svn path=/head/; revision=307668
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
for later Cortex-A CPUs that support the Multiprocessor Extensions. This
will be needed to support both in a single GENERIC kernel while still
being able to only build for a single SoC.
Reviewed by: mmel
Relnotes: yes
Sponsored by: ABT Systems Ltd
Differential Revision: https://reviews.freebsd.org/D8138
Notes:
svn path=/head/; revision=306672
|
| |
|
|
|
|
|
|
|
| |
Marvell.
Sponsored by: ABT Systems Ltd
Notes:
svn path=/head/; revision=306267
|
| |
|
|
|
|
|
|
|
|
| |
this on a few earlier arm SoCs.
Reviewed by: manu (earlier version)
Sponsored by: ABT Systems Ltd
Notes:
svn path=/head/; revision=306262
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The driver subclasses pci-host-generic and additionally
performs configuration of vendor-specific PCIe registers.
Obtained from: Semihalf
Submitted by: Michal Stanek <mst@semihalf.com>
Sponsored by: Annapurna Labs
Reviewed by: wma
Differential Revision: https://reviews.freebsd.org/D7571
Notes:
svn path=/head/; revision=306021
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Let drivers for Alpine CCU, NB and Serdes take care of internal SoC configuration.
Obtained from: Semihalf
Submitted by: Michal Stanek <mst@semihalf.com>
Sponsored by: Annapurna Labs
Reviewed by: imp,wma
Differential Revision: https://reviews.freebsd.org/D7566
Notes:
svn path=/head/; revision=305523
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit adds drivers for Alpine Cache Coherency Unit
and North Bridge Service whose task is to configure
the system fabric and enable cache coherency.
Obtained from: Semihalf
Submitted by: Michal Stanek <mst@semihalf.com>
Sponsored by: Annapurna Labs
Reviewed by: wma
Differential Revision: https://reviews.freebsd.org/D7565
Notes:
svn path=/head/; revision=305522
|
| |
|
|
|
|
|
|
|
|
|
|
| |
by other architectures.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D6091
Sponsored by: DARPA, AFRL
Sponsored by: HEIF5
Notes:
svn path=/head/; revision=298627
|
| |
|
|
|
|
|
|
|
|
| |
independent code that needs to know about INTRNG such as PCI drivers.
Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/head/; revision=298068
|
| |
|
|
|
|
|
|
|
| |
Linux dts files these are more likely to have cpu nodes we can attach to.
Sponsored by: ABT Systems Ltd
Notes:
svn path=/head/; revision=296155
|
| |
|
|
|
|
|
|
|
|
|
|
| |
intr_pic_init_secondary. Replace them with a direct call. On BCM2836
and ARMADA XP we need to add this function, but it can be empty.
Reviewed by: ian, imp
Sponsored by: ABT Systems Ltd
Differential Revision: https://reviews.freebsd.org/D5460
Notes:
svn path=/head/; revision=296100
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
slightly wrong on the others. We should just check if mp_ncpus is set to
more than one CPU as we may wish to run on a single core even when SMP is
available.
Reviewed by: ian
Sponsored by: ABT Systems Ltd
Differential Revision: https://reviews.freebsd.org/D5458
Notes:
svn path=/head/; revision=296098
|
| |
|
|
|
|
|
|
|
| |
identical.
Sponsored by: ABT Systems Ltd
Notes:
svn path=/head/; revision=296066
|
| |
|
|
|
|
|
|
|
|
| |
Only L2 PIPT cache is supported for __ARM_ARCH >= 6.
In fact, this is just a pure proclamation as this option is used
only in armv4 specific files now.
Notes:
svn path=/head/; revision=295885
|
| |
|
|
|
|
|
|
|
|
| |
include it explicitly when <vm/pmap.h> is already included.
Reviewed by: alc, kib
Differential Revision: https://reviews.freebsd.org/D5373
Notes:
svn path=/head/; revision=295880
|
| |
|
|
| |
Notes:
svn path=/head/; revision=295509
|
| |
|
|
|
|
|
|
| |
pmap_devmap, pmap_devmap_bootstrap() and pmap_devmap[]. It was
replaced in r257660.
Notes:
svn path=/head/; revision=295143
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The ci20 port (by kan@) is going to reuse almost all of the intrng code
since the SoC in question looks suspiciously like someone took an ARM
SoC design and replaced the ARM core with a MIPS core.
* migrate out the code;
* rename ARM_ -> INTR_;
* rename arm_ -> intr_;
* move the interrupt flush routine from intr.c / intrng.c into
arm/machdep_intr.c - removing the code duplication and removing
the ARM specific bits from here.
Thanks to the Star Wars: The Force Awakens premiere line for allowing
me a couple hours of quiet time to finish the universe builds.
Tested:
* make universe
TODO:
* The structure definitions in subr_intr.c still includes machine/intr.h
which requires one duplicates all of the intrng definitions in
the platform code (which kan has done, and I think we don't have to.)
Instead I should break out the generic things (function declarations,
common intr structures, etc) into a separate header.
* Kan has requested I make the PIC based IPI stuff optional.
Notes:
svn path=/head/; revision=292426
|
| |
|
|
|
|
|
|
|
|
| |
definition in a file.* file under sys/arm/arm in the few cases we need it
for non-fdt platforms.
Sponsored by: ABT Systems Ltd
Notes:
svn path=/head/; revision=291133
|
| |
|
|
|
|
|
|
| |
consistently used. It was a carry over from NetBSD that FreeBSD
doesn't use.
Notes:
svn path=/head/; revision=291110
|