svn commit: r352503 - stable/12/sys/arm64/arm64

2019-09-18 Thread Jayachandran C.
Author: jchandra Date: Wed Sep 18 23:33:38 2019 New Revision: 352503 URL: https://svnweb.freebsd.org/changeset/base/352503 Log: MFC r348380: arm64 gicv3_its: Fix a typo Fix 'Cavium' spelling in errata description. Reviewed by: andrew Differential Revision:

svn commit: r352502 - stable/12/sys/arm/arm

2019-09-18 Thread Jayachandran C.
Author: jchandra Date: Wed Sep 18 23:30:27 2019 New Revision: 352502 URL: https://svnweb.freebsd.org/changeset/base/352502 Log: MFC r339517: arm generic_timer: fix armv8 timer desc In the FDT based probe, check for "arm,armv8-timer" before "arm,armv7-timer". This gets the

svn commit: r352501 - stable/12/sys/arm64/arm64

2019-09-18 Thread Jayachandran C.
Author: jchandra Date: Wed Sep 18 23:23:34 2019 New Revision: 352501 URL: https://svnweb.freebsd.org/changeset/base/352501 Log: MFC r348377-r348379, r349347 r348377: gic_v3: consolidate per-cpu redistributor information Update 'struct gic_redists' to consolidate all per-cpu

svn commit: r352500 - stable/12/sys/arm64/acpica

2019-09-18 Thread Jayachandran C.
Author: jchandra Date: Wed Sep 18 23:18:26 2019 New Revision: 352500 URL: https://svnweb.freebsd.org/changeset/base/352500 Log: MFC r349348: arm64 acpi_iort: add some error handling Print warnings for some bad kernel configurations (like NUMA disabled with multiple domains). Check

svn commit: r352499 - stable/12/sys/arm64/arm64

2019-09-18 Thread Jayachandran C.
Author: jchandra Date: Wed Sep 18 23:12:07 2019 New Revision: 352499 URL: https://svnweb.freebsd.org/changeset/base/352499 Log: MFC r348291: arm64 nexus: remove incorrect warning acpi_config_intr() will be called when an arm64 system booted with ACPI. We do the interrupt mapping for

svn commit: r352498 - in stable/12/sys: arm64/acpica arm64/arm64 conf dev/acpica dev/pci

2019-09-18 Thread Jayachandran C.
Wed Sep 18 23:08:51 2019 (r352498, copy of r343853, head/sys/arm64/acpica/acpi_iort.c) @@ -0,0 +1,502 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (C) 2018 Marvell International Ltd. + * + * Author: Jayachandran C Nair + * + * Redistribution and use in source and

svn commit: r352497 - in stable/12/sys: arm64/acpica arm64/arm64 conf dev/acpica

2019-09-18 Thread Jayachandran C.
Author: jchandra Date: Wed Sep 18 22:55:24 2019 New Revision: 352497 URL: https://svnweb.freebsd.org/changeset/base/352497 Log: MFC r341743-r341744 r341743: acpica: support parsing of arm64 affinity in acpi_pxm.c ACPI SRAT table on arm64 uses GICC entries to provide CPU locality

svn commit: r352496 - in stable/12/sys: conf dev/acpica x86/acpica

2019-09-18 Thread Jayachandran C.
Author: jchandra Date: Wed Sep 18 22:44:59 2019 New Revision: 352496 URL: https://svnweb.freebsd.org/changeset/base/352496 Log: MFC r341741-r341742 r341741: x86/acpica/srat.c: Add API for parsing proximity tables The SLIT and SRAT ACPI tables needs to be parsed on arm64 as well, on

svn commit: r352473 - stable/12/sys/arm64/arm64

2019-09-18 Thread Jayachandran C.
Author: jchandra Date: Wed Sep 18 07:22:37 2019 New Revision: 352473 URL: https://svnweb.freebsd.org/changeset/base/352473 Log: MFC r340602: gitv3_its: fixes for multiple GIC ITS blocks First pass of support for multiple GIC ITS blocks with ACPI. Changes are to: * register the

svn commit: r352471 - in stable/12/sys/dev: acpica pci

2019-09-18 Thread Jayachandran C.
Author: jchandra Date: Wed Sep 18 07:16:00 2019 New Revision: 352471 URL: https://svnweb.freebsd.org/changeset/base/352471 Log: MFC r340599-r340601 r340599: acpica, pci_host_generic_acpi: redo pci_host_generic_acpi.c This is a major update for pci_host_generic_acpi.c, the current

svn commit: r352470 - in stable/12/sys: arm/arm dev/acpica

2019-09-18 Thread Jayachandran C.
Author: jchandra Date: Wed Sep 18 07:09:16 2019 New Revision: 352470 URL: https://svnweb.freebsd.org/changeset/base/352470 Log: MFC r340598: acpica: rework INTRNG interrupts On arm64 (where INTRNG is enabled), the interrupts have to be mapped with ACPI_BUS_MAP_INTR() before adding

svn commit: r352468 - stable/12/sys/dev/pci

2019-09-18 Thread Jayachandran C.
Author: jchandra Date: Wed Sep 18 06:50:29 2019 New Revision: 352468 URL: https://svnweb.freebsd.org/changeset/base/352468 Log: MFC r340595-r340597 r340595: pci_host_generic: remove unneeded ThunderX2 quirk The current quirk implementation writes a fixed address to the PCI BAR to

svn commit: r349348 - head/sys/arm64/acpica

2019-06-24 Thread Jayachandran C.
Author: jchandra Date: Mon Jun 24 21:24:55 2019 New Revision: 349348 URL: https://svnweb.freebsd.org/changeset/base/349348 Log: arm64 acpi_iort: add some error handling Print warnings for some bad kernel configurations (like NUMA disabled with multiple domains). Check and report some

svn commit: r349347 - head/sys/arm64/arm64

2019-06-24 Thread Jayachandran C.
Author: jchandra Date: Mon Jun 24 21:13:45 2019 New Revision: 349347 URL: https://svnweb.freebsd.org/changeset/base/349347 Log: arm64 gicv3_its: enable all ITS blocks for a CPU We now support multiple ITS blocks raising interrupts to a CPU. Add all available CPUs to the ITS when no NUMA

svn commit: r349345 - head/sys/arm64/arm64

2019-06-24 Thread Jayachandran C.
Author: jchandra Date: Mon Jun 24 21:00:28 2019 New Revision: 349345 URL: https://svnweb.freebsd.org/changeset/base/349345 Log: arm64 gic: Drop unused GICV3_IVAR_REDIST_VADDR Now that GICV3_IVAR_REDIST is available, GICV3_IVAR_REDIST_VADDR is unused and can be removed. Drop the define

svn commit: r348380 - head/sys/arm64/arm64

2019-05-29 Thread Jayachandran C.
Author: jchandra Date: Thu May 30 01:39:07 2019 New Revision: 348380 URL: https://svnweb.freebsd.org/changeset/base/348380 Log: arm64 gicv3_its: Fix a typo Fix 'Cavium' spelling in errata description. Reviewed by: andrew Differential Revision:

svn commit: r348379 - head/sys/arm64/arm64

2019-05-29 Thread Jayachandran C.
Author: jchandra Date: Thu May 30 01:32:00 2019 New Revision: 348379 URL: https://svnweb.freebsd.org/changeset/base/348379 Log: gicv3_its: do LPI init only once per CPU The initialization required for LPIs (setting up pending tables etc.) has to be done just once per CPU, even in the

svn commit: r348378 - head/sys/arm64/arm64

2019-05-29 Thread Jayachandran C.
Author: jchandra Date: Thu May 30 01:24:47 2019 New Revision: 348378 URL: https://svnweb.freebsd.org/changeset/base/348378 Log: gicv3_its: refactor LPI init into a new function Move the per-cpu LPI intialization to a separate function. This is in preparation for a commit that does LPI

svn commit: r348377 - head/sys/arm64/arm64

2019-05-29 Thread Jayachandran C.
Author: jchandra Date: Thu May 30 01:21:08 2019 New Revision: 348377 URL: https://svnweb.freebsd.org/changeset/base/348377 Log: gic_v3: consolidate per-cpu redistributor information Update 'struct gic_redists' to consolidate all per-cpu redistributor information into a new 'struct

svn commit: r348291 - head/sys/arm64/arm64

2019-05-26 Thread Jayachandran C.
Author: jchandra Date: Sun May 26 23:04:21 2019 New Revision: 348291 URL: https://svnweb.freebsd.org/changeset/base/348291 Log: arm64 nexus: remove incorrect warning acpi_config_intr() will be called when an arm64 system booted with ACPI. We do the interrupt mapping for ACPI interrupts

svn commit: r343860 - head/sys/dev/pci

2019-02-06 Thread Jayachandran C.
Author: jchandra Date: Thu Feb 7 04:50:16 2019 New Revision: 343860 URL: https://svnweb.freebsd.org/changeset/base/343860 Log: pci_host_generic_acpi: use IORT data for MSI/MSI-X Use the information from IORT parsing to translate the PCI RID to GIC ITS device ID. And similarly, use the

svn commit: r343856 - head/sys/arm64/arm64

2019-02-06 Thread Jayachandran C.
Author: jchandra Date: Thu Feb 7 03:01:54 2019 New Revision: 343856 URL: https://svnweb.freebsd.org/changeset/base/343856 Log: arm64 gicv3: add IORT and NUMA support acpi_iort.c has added support to query GIC proximity and MSI XREF ID for GIC ITS blocks. Use this when GIC ITS blocks are

svn commit: r343853 - in head/sys: arm64/acpica conf dev/acpica

2019-02-06 Thread Jayachandran C.
2018 Marvell International Ltd. + * + * Author: Jayachandran C Nair + * + * 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 + *n

svn commit: r343764 - head/sys/arm/arm

2019-02-04 Thread Jayachandran C.
Author: jchandra Date: Tue Feb 5 06:25:35 2019 New Revision: 343764 URL: https://svnweb.freebsd.org/changeset/base/343764 Log: arm, acpi: increase size of memory region arrays Bump up MAX_HWCNT and MAX_EXCNT to 32 when ACPI is enabled. These are the sizes of the hwregions and exregions

svn commit: r341744 - in head/sys/arm64: acpica arm64

2018-12-08 Thread Jayachandran C.
Author: jchandra Date: Sat Dec 8 19:42:01 2018 New Revision: 341744 URL: https://svnweb.freebsd.org/changeset/base/341744 Log: arm64: add ACPI based NUMA support Use the newly defined SRAT/SLIT parsing APIs in arm64 to support ACPI based NUMA. Reviewed by: markj Differential

svn commit: r341743 - in head/sys: conf dev/acpica

2018-12-08 Thread Jayachandran C.
Author: jchandra Date: Sat Dec 8 19:32:23 2018 New Revision: 341743 URL: https://svnweb.freebsd.org/changeset/base/341743 Log: acpica: support parsing of arm64 affinity in acpi_pxm.c ACPI SRAT table on arm64 uses GICC entries to provide CPU locality information. These entries use an

svn commit: r341742 - in head/sys: conf dev/acpica x86/acpica

2018-12-08 Thread Jayachandran C.
Author: jchandra Date: Sat Dec 8 19:10:58 2018 New Revision: 341742 URL: https://svnweb.freebsd.org/changeset/base/341742 Log: acpica : move SRAT/SLIT parsing to sys/dev/acpica This moves the architecture independent parts of sys/x86/acpica/srat.c to sys/dev/acpica/acpi_pxm.c, to be

svn commit: r341741 - head/sys/x86/acpica

2018-12-08 Thread Jayachandran C.
Author: jchandra Date: Sat Dec 8 18:34:05 2018 New Revision: 341741 URL: https://svnweb.freebsd.org/changeset/base/341741 Log: x86/acpica/srat.c: Add API for parsing proximity tables The SLIT and SRAT ACPI tables needs to be parsed on arm64 as well, on systems that use UEFI/ACPI

svn commit: r340602 - head/sys/arm64/arm64

2018-11-18 Thread Jayachandran C.
Author: jchandra Date: Mon Nov 19 03:52:56 2018 New Revision: 340602 URL: https://svnweb.freebsd.org/changeset/base/340602 Log: gitv3_its: fixes for multiple GIC ITS blocks First pass of support for multiple GIC ITS blocks with ACPI. Changes are to: * register the correct subset of

svn commit: r340601 - head/sys/dev/pci

2018-11-18 Thread Jayachandran C.
Author: jchandra Date: Mon Nov 19 03:43:10 2018 New Revision: 340601 URL: https://svnweb.freebsd.org/changeset/base/340601 Log: pci_host_generic : move activate/release to generic code Now that the ACPI and FDT implementations for activating and deactivating resources are the same, we

svn commit: r340600 - in head/sys/dev: acpica pci

2018-11-18 Thread Jayachandran C.
Author: jchandra Date: Mon Nov 19 03:34:15 2018 New Revision: 340600 URL: https://svnweb.freebsd.org/changeset/base/340600 Log: pci_host_generic, acpi_resource: drop unneeded code Now that we are handling PCI resources in pci_host_generic_acpi.c, we don't need these change (made by

svn commit: r340599 - in head/sys/dev: acpica pci

2018-11-18 Thread Jayachandran C.
Author: jchandra Date: Mon Nov 19 03:16:16 2018 New Revision: 340599 URL: https://svnweb.freebsd.org/changeset/base/340599 Log: acpica, pci_host_generic_acpi: redo pci_host_generic_acpi.c This is a major update for pci_host_generic_acpi.c, the current implementation has some gaps that

svn commit: r340598 - in head/sys: arm/arm dev/acpica

2018-11-18 Thread Jayachandran C.
Author: jchandra Date: Mon Nov 19 03:02:47 2018 New Revision: 340598 URL: https://svnweb.freebsd.org/changeset/base/340598 Log: acpica: rework INTRNG interrupts On arm64 (where INTRNG is enabled), the interrupts have to be mapped with ACPI_BUS_MAP_INTR() before adding them as resources

svn commit: r340597 - head/sys/dev/pci

2018-11-18 Thread Jayachandran C.
Author: jchandra Date: Mon Nov 19 02:55:18 2018 New Revision: 340597 URL: https://svnweb.freebsd.org/changeset/base/340597 Log: pci_host_generic*: basic implementation of bus range Both ACPI and FDT support bus ranges for pci host bridges. Update pci_host_generic*.[ch] with a default

svn commit: r340596 - head/sys/dev/pci

2018-11-18 Thread Jayachandran C.
Author: jchandra Date: Mon Nov 19 02:43:34 2018 New Revision: 340596 URL: https://svnweb.freebsd.org/changeset/base/340596 Log: pci_host_generic: allocate resources against devices Fix up pci_host_generic.c and pci_host_generic_fdt.c to allocate resources against devices that requested

svn commit: r340595 - head/sys/dev/pci

2018-11-18 Thread Jayachandran C.
Author: jchandra Date: Mon Nov 19 02:38:02 2018 New Revision: 340595 URL: https://svnweb.freebsd.org/changeset/base/340595 Log: pci_host_generic: remove unneeded ThunderX2 quirk The current quirk implementation writes a fixed address to the PCI BAR to fix a firmware bug. The PCI BARs are

svn commit: r339517 - head/sys/arm/arm

2018-10-21 Thread Jayachandran C.
Author: jchandra Date: Sun Oct 21 02:12:26 2018 New Revision: 339517 URL: https://svnweb.freebsd.org/changeset/base/339517 Log: arm generic_timer: fix armv8 timer desc In the FDT based probe, check for "arm,armv8-timer" before "arm,armv7-timer". This gets the description right when the

svn commit: r314318 - head/sys/dev/uart

2017-02-26 Thread Jayachandran C.
Author: jchandra Date: Sun Feb 26 22:05:22 2017 New Revision: 314318 URL: https://svnweb.freebsd.org/changeset/base/314318 Log: Enable pl011 UART FIFOs The pl011 UART has a 16 entry Tx FIFO and a 16 entry Rx FIFO that have not been used so far. Update the driver to enable the FIFOs and

svn commit: r310289 - head/sys/dev/uart

2016-12-19 Thread Jayachandran C.
Author: jchandra Date: Mon Dec 19 19:40:11 2016 New Revision: 310289 URL: https://svnweb.freebsd.org/changeset/base/310289 Log: Fix whitespace issues in pl011 uart driver Fix up trailing whitespace introduced by r310190. While there, fix a couple of earlier whitespace errors as well.

svn commit: r310206 - head/sys/arm64/conf

2016-12-18 Thread Jayachandran C.
Author: jchandra Date: Sun Dec 18 11:15:31 2016 New Revision: 310206 URL: https://svnweb.freebsd.org/changeset/base/310206 Log: Add virtio_pci to GENERIC arm64 conf virtio_pci was missing from the GENERIC arm64 configuration, while other virtio devices are present. Adding it will allow

svn commit: r310204 - in head/sys: arm/arm arm64/arm64

2016-12-18 Thread Jayachandran C.
Author: jchandra Date: Sun Dec 18 08:31:01 2016 New Revision: 310204 URL: https://svnweb.freebsd.org/changeset/base/310204 Log: Initialize GIC[DR]_IGROUPRn registers for GICv3 In case where GICD_CTLR.DS is 1, the IGROUPR registers are RW in non-secure state and has to be initialized to 1

svn commit: r310190 - head/sys/dev/uart

2016-12-17 Thread Jayachandran C.
Author: jchandra Date: Sat Dec 17 18:04:59 2016 New Revision: 310190 URL: https://svnweb.freebsd.org/changeset/base/310190 Log: Simplify interrupt mask programming in pl011 uart Remove unused fields from uart_pl011_softc. Add an interrupt mask field to the softc and use it to set the

svn commit: r309892 - head/sys/arm/arm

2016-12-12 Thread Jayachandran C.
Author: jchandra Date: Mon Dec 12 15:35:57 2016 New Revision: 309892 URL: https://svnweb.freebsd.org/changeset/base/309892 Log: Fix gic_cpu_mask() calculation in ARM GIC r309616 changed the definition of GICD_ITARGETSR(n) to take the irq id as argument, but the usage of the macro in

svn commit: r309890 - head/sys/dev/pci

2016-12-12 Thread Jayachandran C.
Author: jchandra Date: Mon Dec 12 15:17:56 2016 New Revision: 309890 URL: https://svnweb.freebsd.org/changeset/base/309890 Log: Increase interrupt cells in generic_pcie_fdt_route_interrupt ARM GIC specification in device trees use 3 cells, so the current limit of 2 causes the last cell

svn commit: r309276 - head/sys/dev/uart

2016-11-28 Thread Jayachandran C.
Author: jchandra Date: Tue Nov 29 04:32:14 2016 New Revision: 309276 URL: https://svnweb.freebsd.org/changeset/base/309276 Log: Fix interrupt clear in pl011 uart receive function Clear the interrupt state before reading the input char from the input FIFO. In the current code there is a

svn commit: r279368 - head/sys/dev/fdt

2015-02-27 Thread Jayachandran C.
Author: jchandra Date: Fri Feb 27 20:11:02 2015 New Revision: 279368 URL: https://svnweb.freebsd.org/changeset/base/279368 Log: Allow creating subclass of FDT simplebus Provide sys/dev/fdt/simplebus.h with the class declaration so that it is possible to subclass FDT simplebus.

svn commit: r279387 - in head/sys/mips/nlm: . hal

2015-02-27 Thread Jayachandran C.
Author: jchandra Date: Sat Feb 28 00:17:29 2015 New Revision: 279387 URL: https://svnweb.freebsd.org/changeset/base/279387 Log: Whitespace fixes for files in sys/mips/nlm Clean up whitespace issues under sys/mips/nlm (except dev). No functional change in this commit. Modified:

svn commit: r279388 - in head/sys/mips/nlm/dev: net net/ucore sec

2015-02-27 Thread Jayachandran C.
Author: jchandra Date: Sat Feb 28 00:22:10 2015 New Revision: 279388 URL: https://svnweb.freebsd.org/changeset/base/279388 Log: Whitespace fixes for sys/mips/nlm/dev Clean up whitespace issues under sys/mips/nlm/dev. No functional change in this commit. Modified:

svn commit: r279384 - in head/sys/mips/nlm: . dev

2015-02-27 Thread Jayachandran C.
Author: jchandra Date: Fri Feb 27 23:33:53 2015 New Revision: 279384 URL: https://svnweb.freebsd.org/changeset/base/279384 Log: Add subclass of simplebus for Broadcom XLP This will override the resource allocation of simplebus, and also merge the resource allocation code which was in

svn commit: r279341 - head/sys/mips/nlm

2015-02-26 Thread Jayachandran C.
Author: jchandra Date: Fri Feb 27 00:57:09 2015 New Revision: 279341 URL: https://svnweb.freebsd.org/changeset/base/279341 Log: Improve additional interrupt ACK for Broadcom XLP Handling some interrupts in XLP (like PCIe and SATA) involves writing to vendor specific registers as part of

svn commit: r279345 - in head/sys: boot/fdt/dts/mips mips/nlm

2015-02-26 Thread Jayachandran C.
Author: jchandra Date: Fri Feb 27 02:21:52 2015 New Revision: 279345 URL: https://svnweb.freebsd.org/changeset/base/279345 Log: Move PCI bus below simplebus for Broadcom XLP This will enable us to do common allocation code for memory and interrupts for SoC devices as well as PCI devices.

svn commit: r279305 - in head/sys: boot/fdt/dts/mips mips/nlm

2015-02-25 Thread Jayachandran C.
Author: jchandra Date: Thu Feb 26 02:05:45 2015 New Revision: 279305 URL: https://svnweb.freebsd.org/changeset/base/279305 Log: Add netlogic,xlp-pic as interrupt controller for XLP Add an empty driver for netlogic,xlp-pic to ensure that the device tree is correct and has an interrupt

svn commit: r279306 - in head/sys: boot/fdt/dts/mips mips/nlm

2015-02-25 Thread Jayachandran C.
Author: jchandra Date: Thu Feb 26 02:22:47 2015 New Revision: 279306 URL: https://svnweb.freebsd.org/changeset/base/279306 Log: Remove run-time allocation of XLP IRQs Follow the same static IRQ to Interrupt Table Entry mapping as the other OS supported on XLP. Modified:

svn commit: r279304 - in head/sys/mips/nlm: . hal

2015-02-25 Thread Jayachandran C.
Author: jchandra Date: Thu Feb 26 01:53:24 2015 New Revision: 279304 URL: https://svnweb.freebsd.org/changeset/base/279304 Log: Fix up interrupt definitions for Broadcom XLP Gather all the IRQ definitions to interrupt.h. Earlier these were in xlp.h and pic.h. Update the definition of

svn commit: r256045 - head/sys/mips/nlm/dev/sec

2013-10-04 Thread Jayachandran C.
Author: jchandra Date: Fri Oct 4 10:01:20 2013 New Revision: 256045 URL: http://svnweb.freebsd.org/changeset/base/256045 Log: Style fixes for the Netlogic XLP RSA driver Updates to the Netlogic XLP on-chp RSA block driver. The changes are to follow style(9) guidelines, to improve

svn commit: r256046 - head/sys/mips/nlm/dev/sec

2013-10-04 Thread Jayachandran C.
Author: jchandra Date: Fri Oct 4 11:11:51 2013 New Revision: 256046 URL: http://svnweb.freebsd.org/changeset/base/256046 Log: Fixes for the Netlogic XLP on-chip RSA block driver The changes are to: * Use contigmalloc/contigfree which handling microcode buffer * Use a different buffer

svn commit: r255367 - in head/sys: conf mips/mips

2013-09-07 Thread Jayachandran C.
Author: jchandra Date: Sat Sep 7 16:31:30 2013 New Revision: 255367 URL: http://svnweb.freebsd.org/changeset/base/255367 Log: Use a better version of memcpy/bcopy for mips kernel. Use a variant of mips libc memcpy for kernel. This implementation uses 64-bit operations when compiled for

svn commit: r255368 - in head/sys/mips/nlm: . dev/net hal

2013-09-07 Thread Jayachandran C.
Author: jchandra Date: Sat Sep 7 18:26:16 2013 New Revision: 255368 URL: http://svnweb.freebsd.org/changeset/base/255368 Log: Netlogic XLP network driver update Changes are to - update board and network interface detection logic - fix reading onboard CPLD in little-endian config -

svn commit: r249436 - head/sys/kern

2013-04-13 Thread Jayachandran C.
Author: jchandra Date: Sat Apr 13 07:23:37 2013 New Revision: 249436 URL: http://svnweb.freebsd.org/changeset/base/249436 Log: Fix changes made in r249408. In some cases, kern_envp is set by the architecture code and env_pos does not contain the length of the static kernel environment.

svn commit: r249408 - head/sys/kern

2013-04-12 Thread Jayachandran C.
Author: jchandra Date: Fri Apr 12 15:58:53 2013 New Revision: 249408 URL: http://svnweb.freebsd.org/changeset/base/249408 Log: Fix kenv behavior when there is no static environment In case where there are no static kernel environment entries, the function init_dynamic_kenv() adds an

svn commit: r249409 - head/sys/mips/nlm/dev/net

2013-04-12 Thread Jayachandran C.
Author: jchandra Date: Fri Apr 12 16:03:22 2013 New Revision: 249409 URL: http://svnweb.freebsd.org/changeset/base/249409 Log: Fix incorrect KASSERTs in xlpge Fix for crash in Netlogic XLP network accelerator driver when invariants are enabled - use correct the condition for KASSERT.

svn commit: r249415 - in head/sys/mips: include mips

2013-04-12 Thread Jayachandran C.
Author: jchandra Date: Fri Apr 12 17:22:12 2013 New Revision: 249415 URL: http://svnweb.freebsd.org/changeset/base/249415 Log: Move MIPS_MAX_TLB_ENTRIES definition from cpuregs.h to tlb.c Having MIPS_MAX_TLB_ENTRIES defined to 128 is misleading, since it used to be 64 in older releases

Re: svn commit: r249408 - head/sys/kern

2013-04-12 Thread Jayachandran C.
that most architectures do not update the env_pos when they setup kern_envp. If there are no objections, I will check-in the attached change, otherwise I will revert this commit. Thanks for reporting this, and sorry for the mess. JC. On Fri, Apr 12, 2013 at 8:58 AM, Jayachandran C. jchan

svn commit: r245877 - head/sys/mips/nlm

2013-01-24 Thread Jayachandran C.
Author: jchandra Date: Thu Jan 24 11:42:16 2013 New Revision: 245877 URL: http://svnweb.freebsd.org/changeset/base/245877 Log: Little-endian fix for PCI on Broadcom XLP. Update the function xlp_pcib_hardware_swap_enable() to do nothing when BYTE_ORDER is not BIG_ENDIAN. PCIe hardware

svn commit: r245879 - in head/sys/mips/nlm: . hal

2013-01-24 Thread Jayachandran C.
Author: jchandra Date: Thu Jan 24 14:33:25 2013 New Revision: 245879 URL: http://svnweb.freebsd.org/changeset/base/245879 Log: Broadcom XLP updates for the new firmware Support few more versions of board firmware. In case the security block is disabled, enable it at boot. Also increase

svn commit: r245880 - head/sys/mips/nlm/dev/net

2013-01-24 Thread Jayachandran C.
Author: jchandra Date: Thu Jan 24 14:42:58 2013 New Revision: 245880 URL: http://svnweb.freebsd.org/changeset/base/245880 Log: Minor updates to the Broadcom XLP NAE driver Remove unnecessary SGMII initialization code from nae.c. While there clean up some prints and whitespace. Modified:

svn commit: r245881 - in head/sys/mips/nlm: dev/net hal

2013-01-24 Thread Jayachandran C.
Author: jchandra Date: Thu Jan 24 15:14:22 2013 New Revision: 245881 URL: http://svnweb.freebsd.org/changeset/base/245881 Log: Broadcom XLP network driver update for XLP 8xx B1 rev Update MDIO reset code to support Broadcom XLP B1 revisions. Update nlm_xlpge_ioctl, nlm_xlpge_port_enable

svn commit: r245883 - head/sys/mips/nlm/hal

2013-01-24 Thread Jayachandran C.
Author: jchandra Date: Thu Jan 24 15:23:01 2013 New Revision: 245883 URL: http://svnweb.freebsd.org/changeset/base/245883 Log: Fix credit configuration on Broadcom XLP CMS The CMS output queue credit configuration register is 64 bit, so use a 64 bit variable while updating it. Obtained

svn commit: r245884 - in head/sys/mips/nlm: dev/net hal

2013-01-24 Thread Jayachandran C.
Author: jchandra Date: Thu Jan 24 15:49:47 2013 New Revision: 245884 URL: http://svnweb.freebsd.org/changeset/base/245884 Log: Little-endian and other fixes for Broadcom XLP network driver The changes are: - the microcore code loaded into the NAE has to be byteswapped in LE -

Re: svn commit: r243631 - in head/sys: kern sys

2013-01-12 Thread Jayachandran C.
On Fri, Jan 11, 2013 at 11:16 PM, Alan Cox a...@rice.edu wrote: On 01/11/2013 05:38, Jayachandran C. wrote: [...] I see an issue with commit on MIPS XLP platform as well. With 16 GB physical memory, the ncallout is calculated to be 538881 (since it is based on maxfiles - which is now based

Re: svn commit: r243631 - in head/sys: kern sys

2013-01-11 Thread Jayachandran C.
On Tue, Jan 8, 2013 at 3:12 AM, Andre Oppermann an...@freebsd.org wrote: On 07.01.2013 20:32, Alan Cox wrote: On 01/07/2013 12:47, Oleksandr Tymoshenko wrote: On 12/27/2012 6:46 PM, Oleksandr Tymoshenko wrote: On 12/18/2012 1:59 AM, Alan Cox wrote: On 12/17/2012 23:40, Oleksandr

svn commit: r239487 - in head/sys: boot/fdt/dts mips/nlm

2012-08-21 Thread Jayachandran C.
Author: jchandra Date: Tue Aug 21 09:37:23 2012 New Revision: 239487 URL: http://svn.freebsd.org/changeset/base/239487 Log: Add correct range parameter in XLP DTS r239274 added support for ranges. Update XLP DTS to provide the correct range parameter for the XLP SoC bus. Also fix

svn commit: r239413 - head/sys/mips/nlm

2012-08-20 Thread Jayachandran C.
Author: jchandra Date: Mon Aug 20 11:51:49 2012 New Revision: 239413 URL: http://svn.freebsd.org/changeset/base/239413 Log: Define and exclude DRAM regions used by hardware/bootloder on XLP Fix xlp_mem_init() - remove the ad-hoc code for excluding memory regions and use an array of

svn commit: r238289 - head/sys/mips/nlm

2012-07-09 Thread Jayachandran C.
Author: jchandra Date: Mon Jul 9 10:17:06 2012 New Revision: 238289 URL: http://svn.freebsd.org/changeset/base/238289 Log: Fix PCIe hardware swap configuration for Netlogic XLP The last 12 bits of the limit registers have to be set to 1. These bits are not significant in bridge BARs and

svn commit: r238290 - head/sys/mips/nlm

2012-07-09 Thread Jayachandran C.
Author: jchandra Date: Mon Jul 9 10:24:45 2012 New Revision: 238290 URL: http://svn.freebsd.org/changeset/base/238290 Log: Identify Netlogic XLP 8xx B1 chip revisions Add functions to check for 8xx B0 and 3xx Ax revisions which will be used in network block initialization. Modified:

svn commit: r238293 - in head/sys/mips/nlm: dev/net hal

2012-07-09 Thread Jayachandran C.
Author: jchandra Date: Mon Jul 9 10:39:57 2012 New Revision: 238293 URL: http://svn.freebsd.org/changeset/base/238293 Log: Support Netlogic XLP 8xx B1 revisions in xlpge. Updates to the MDIO access code for the new revision of the XLP chip. Modified: head/sys/mips/nlm/dev/net/mdio.c

svn commit: r234646 - head/contrib/jemalloc/include/jemalloc

2012-04-24 Thread Jayachandran C.
Author: jchandra Date: Tue Apr 24 11:42:48 2012 New Revision: 234646 URL: http://svn.freebsd.org/changeset/base/234646 Log: jemalloc: pointer size definition for 64-bit mips platforms LG_SIZEOF_PTR has to be defined as 3 when jemalloc is compiled for 64 bit platforms. Reviewed by:

svn commit: r233776 - head/sys/mips/mips

2012-04-02 Thread Jayachandran C.
Author: jchandra Date: Mon Apr 2 11:41:33 2012 New Revision: 233776 URL: http://svn.freebsd.org/changeset/base/233776 Log: Reinstate the XTLB handler for CPU_NLM and CPU_RMI These platforms set the KX bit even when booted in 32 bit mode. So the XLTB handler is needed even when

svn commit: r233657 - head/sys/mips/nlm/dev/net/ucore

2012-03-29 Thread Jayachandran C.
Author: jchandra Date: Thu Mar 29 11:46:29 2012 New Revision: 233657 URL: http://svn.freebsd.org/changeset/base/233657 Log: Remove unnecessary assembly code. The compiler should generate lw/sw corresponding to register operations. Modified: head/sys/mips/nlm/dev/net/ucore/ucore.h

svn commit: r233532 - head/sys/mips/nlm

2012-03-27 Thread Jayachandran C.
Author: jchandra Date: Tue Mar 27 07:34:27 2012 New Revision: 233532 URL: http://svn.freebsd.org/changeset/base/233532 Log: Fixes to the XLP startup code. Changes are: - Correct the order of calling init functions. - Fix up checking excluding reset area. Modified:

svn commit: r233533 - in head/sys/mips/nlm: . hal

2012-03-27 Thread Jayachandran C.
Author: jchandra Date: Tue Mar 27 07:39:05 2012 New Revision: 233533 URL: http://svn.freebsd.org/changeset/base/233533 Log: Support for XLP4xx and XLP 8xx B0 revision - Add 4xx processor IDs, add workaround in CPU detection code. - Update frequency detection code for XLP 8xx. - Add

svn commit: r233534 - head/sys/mips/nlm

2012-03-27 Thread Jayachandran C.
Author: jchandra Date: Tue Mar 27 07:47:13 2012 New Revision: 233534 URL: http://svn.freebsd.org/changeset/base/233534 Log: Switch to interrupt based message handling for XLP 8xx B0. Fixup some style issues in the file as well. Modified: head/sys/mips/nlm/cms.c Modified:

svn commit: r233535 - head/sys/mips/nlm

2012-03-27 Thread Jayachandran C.
Author: jchandra Date: Tue Mar 27 07:51:42 2012 New Revision: 233535 URL: http://svn.freebsd.org/changeset/base/233535 Log: Update the L1D cache flush sequence when enabling threads. Added more comments to the code. Modified: head/sys/mips/nlm/mpreset.S Modified:

svn commit: r233536 - in head/sys/mips/nlm: . hal

2012-03-27 Thread Jayachandran C.
Author: jchandra Date: Tue Mar 27 07:57:41 2012 New Revision: 233536 URL: http://svn.freebsd.org/changeset/base/233536 Log: XLP PCIe code update. - XLP supports hardware swap for PCIe IO/MEM accesses. Since we are in big-endian mode, enable hardware swap and use the normal bus

svn commit: r233537 - in head/sys: conf dev/iicbus

2012-03-27 Thread Jayachandran C.
Author: jchandra Date: Tue Mar 27 09:48:18 2012 New Revision: 233537 URL: http://svn.freebsd.org/changeset/base/233537 Log: Move driver for DS1374 RTC to sys/dev/iicbus The earlier version of the driver is sys/mips/rmi/dev/iic/ds1374u.c Convert all references to ds1374u to ds1374, and

svn commit: r233538 - head/sys/dev/iicbus

2012-03-27 Thread Jayachandran C.
Author: jchandra Date: Tue Mar 27 10:00:33 2012 New Revision: 233538 URL: http://svn.freebsd.org/changeset/base/233538 Log: Fix property name, r233537 used mime-type instead of svn:mime-type Modified: Directory Properties: head/sys/dev/iicbus/ds1374.c (props changed)

svn commit: r233539 - in head/sys: conf dev/iicbus

2012-03-27 Thread Jayachandran C.
Author: jchandra Date: Tue Mar 27 10:44:32 2012 New Revision: 233539 URL: http://svn.freebsd.org/changeset/base/233539 Log: Driver for OpenCores I2C controller. Add a Simple polled driver iicoc for the OpenCores I2C controller. This is used in Netlogic XLP processors. Submitted by:

svn commit: r233540 - in head/sys/mips: conf nlm

2012-03-27 Thread Jayachandran C.
Author: jchandra Date: Tue Mar 27 11:17:04 2012 New Revision: 233540 URL: http://svn.freebsd.org/changeset/base/233540 Log: I2C support for XLP, add hints for I2C devices and update PCI resource allocation code. Added: head/sys/mips/conf/XLP.hints (contents, props changed) Modified:

svn commit: r233541 - in head/sys/mips: conf nlm nlm/dev nlm/dev/sec nlm/hal

2012-03-27 Thread Jayachandran C.
Author: jchandra Date: Tue Mar 27 11:43:46 2012 New Revision: 233541 URL: http://svn.freebsd.org/changeset/base/233541 Log: Opencrypto driver for XLP Security and RSA/ECC blocks Support for the Security and RSA blocks on XLP SoC. Even though the XLP supports many more algorithms, only

svn commit: r233545 - in head/sys/mips: conf nlm nlm/dev/net nlm/dev/net/ucore nlm/hal

2012-03-27 Thread Jayachandran C.
Author: jchandra Date: Tue Mar 27 14:05:12 2012 New Revision: 233545 URL: http://svn.freebsd.org/changeset/base/233545 Log: xlpge : driver for XLP network accelerator Features: - network driver for the four 10G interfaces and two management ports on XLP 8xx. - Support 4xx and 3xx

svn commit: r233549 - in head/sys/mips/nlm: . dev

2012-03-27 Thread Jayachandran C.
Author: jchandra Date: Tue Mar 27 14:48:40 2012 New Revision: 233549 URL: http://svn.freebsd.org/changeset/base/233549 Log: XLP UART code udpate. Move XLP PCI UART device to sys/mips/nlm/dev/ directory. Other drivers for the XLP SoC devices will be added here as well. Update

svn commit: r233553 - head/sys/dev/cfi

2012-03-27 Thread Jayachandran C.
Author: jchandra Date: Tue Mar 27 15:13:12 2012 New Revision: 233553 URL: http://svn.freebsd.org/changeset/base/233553 Log: CFI fixes for big endian archs. The flash commands and responses are little-endian and have to be byte swapped on big-endian systems. However the raw read of data

svn commit: r233556 - in head/sys/mips: conf nlm nlm/dev

2012-03-27 Thread Jayachandran C.
Author: jchandra Date: Tue Mar 27 15:16:38 2012 New Revision: 233556 URL: http://svn.freebsd.org/changeset/base/233556 Log: NOR flash driver for XLP. The NOR interface on the SoC appears on the top level PCI bus. Add a simple driver for this. Added: head/sys/mips/nlm/dev/cfi_pci_xlp.c

svn commit: r233563 - in head/sys/mips/nlm: . hal

2012-03-27 Thread Jayachandran C.
Author: jchandra Date: Tue Mar 27 15:39:55 2012 New Revision: 233563 URL: http://svn.freebsd.org/changeset/base/233563 Log: Update memory and resource allocation code for SoC devices The XLP on-chip devices have PCI configuration headers, but some of the devices need custom resource

svn commit: r233564 - in head/sys/mips: conf nlm

2012-03-27 Thread Jayachandran C.
Author: jchandra Date: Tue Mar 27 15:43:32 2012 New Revision: 233564 URL: http://svn.freebsd.org/changeset/base/233564 Log: Resource allocation for XLP SoC SDHCI slots The on-chip SD slots do not have PCI BARs corresponding to them, so this has to be handled in the custom SoC memory

svn commit: r233570 - head/sys/mips/nlm

2012-03-27 Thread Jayachandran C.
Author: jchandra Date: Tue Mar 27 18:26:35 2012 New Revision: 233570 URL: http://svn.freebsd.org/changeset/base/233570 Log: Fix size of PCI softc. Modified: head/sys/mips/nlm/xlp_pci.c Modified: head/sys/mips/nlm/xlp_pci.c

Re: svn commit: r233570 - head/sys/mips/nlm

2012-03-27 Thread Jayachandran C.
On Wed, Mar 28, 2012 at 2:51 AM, John Baldwin j...@freebsd.org wrote: On Tuesday, March 27, 2012 2:26:35 pm Jayachandran C. wrote: Author: jchandra Date: Tue Mar 27 18:26:35 2012 New Revision: 233570 URL: http://svn.freebsd.org/changeset/base/233570 Log:   Fix size of PCI softc. Modified

svn commit: r233308 - head/sys/mips/mips

2012-03-22 Thread Jayachandran C.
Author: jchandra Date: Thu Mar 22 15:14:10 2012 New Revision: 233308 URL: http://svn.freebsd.org/changeset/base/233308 Log: Fix return type of mips pmap_kextract() The return type should be vm_paddr_t, not vm_offset_t. Modified: head/sys/mips/mips/pmap.c Modified:

svn commit: r228271 - head/sys/mips/nlm/hal

2011-12-04 Thread Jayachandran C.
Author: jchandra Date: Mon Dec 5 02:56:08 2011 New Revision: 228271 URL: http://svn.freebsd.org/changeset/base/228271 Log: Fix XLP compilation. Add definitions of LSU_DEBUG_ADDR and LSU_DEBUG_DATA0, the code that uses it was added in r227799 Reported by: gonzo Modified:

svn commit: r228272 - head/sys/mips/nlm

2011-12-04 Thread Jayachandran C.
Author: jchandra Date: Mon Dec 5 03:10:01 2011 New Revision: 228272 URL: http://svn.freebsd.org/changeset/base/228272 Log: Fix N32 compilation again for XLP. Disable DDB/KDB related options for N32, and add back a cast that was lost during the last set of updates. Reported by:

  1   2   3   >