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

2015-11-10 Thread Michal Meloun
Author: mmel Date: Tue Nov 10 11:45:41 2015 New Revision: 290647 URL: https://svnweb.freebsd.org/changeset/base/290647 Log: ARM: Improve robustness of locore_v6.S and fix errors. - boot page table is not allocated in data section, so must be cleared before use - map only one section (1

svn commit: r290648 - head/sys/arm/include

2015-11-10 Thread Michal Meloun
Author: mmel Date: Tue Nov 10 12:02:41 2015 New Revision: 290648 URL: https://svnweb.freebsd.org/changeset/base/290648 Log: ARM: Remove trailing whitespace from sys/arm/include No functional changes. Approved by:kib (mentor) Modified: head/sys/arm/include/_stdint.h

svn commit: r290661 - head/sys/arm/include

2015-11-10 Thread Michal Meloun
Author: mmel Date: Tue Nov 10 13:47:28 2015 New Revision: 290661 URL: https://svnweb.freebsd.org/changeset/base/290661 Log: ARM: Refactor interrupt_enable/disable/restore. Allow manipulation with PSR_A bit on ARMv6+. Remove declaration of unused functions. This effectively enables

svn commit: r290234 - head/share/misc

2015-11-01 Thread Michal Meloun
mlaier [label="Max Laier\nmla...@freebsd.org\n2004/02/10"] +mmel [label="Michal Meloun\nm...@freebsd.org\n2015/11/01"] monthadar [label="Monthadar Al Jaberi\nmontha...@freebsd.org\n2012/04/02"] mp [label="Mark Peek\n...@freebsd.org\n2001/07/27"] mr [label=&

Re: svn commit: r289759 - in head/sys/arm: arm include

2015-11-01 Thread Michal Meloun
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dne 01.11.2015 v 14:01 Jason Harmening napsal(a): > > > On Sat, Oct 31, 2015 at 4:55 AM, Jason Harmening > > > wrote: > > > > On 10/31/15 03:21, Ganbold Tsagaankhuu wrote: >> On Fri,

Re: svn commit: r290234 - head/share/misc

2015-11-02 Thread Michal Meloun
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dne 02.11.2015 v 11:37 Gleb Smirnoff napsal(a): > On Mon, Nov 02, 2015 at 07:13:46AM +, Alexey Dokuchaev wrote: > A> On Sun, Nov 01, 2015 at 04:54:55PM +0000, Michal Meloun wrote: > A> > New Revision: 290234

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

2015-11-18 Thread Michal Meloun
Author: mmel Date: Wed Nov 18 16:07:01 2015 New Revision: 291018 URL: https://svnweb.freebsd.org/changeset/base/291018 Log: ARM: Fix dma_dcache_sync() for early allocated memory. Drivers can request DMA to buffers that are not in memory represented in the vm page arrays. Because of this,

svn commit: r291648 - head/sys/dev/ofw

2015-12-02 Thread Michal Meloun
Author: mmel Date: Wed Dec 2 14:21:16 2015 New Revision: 291648 URL: https://svnweb.freebsd.org/changeset/base/291648 Log: OFW: Move code for searching interrupt parent into separate function. It can be used by interrupt controller drivers. Approved by: kib (mentor) Modified:

svn commit: r291650 - head/sys/arm/include

2015-12-02 Thread Michal Meloun
Author: mmel Date: Wed Dec 2 14:24:14 2015 New Revision: 291650 URL: https://svnweb.freebsd.org/changeset/base/291650 Log: ARM: Define PCI_RES_BUS resource for platforms having NEW_PCIB enabled. Approved by: kib (mentor) Modified: head/sys/arm/include/resource.h Modified:

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

2015-12-02 Thread Michal Meloun
Author: mmel Date: Wed Dec 2 14:22:58 2015 New Revision: 291649 URL: https://svnweb.freebsd.org/changeset/base/291649 Log: ARM: Fix of detection of root interrupt controller. This fixes detection of root interrupt controller for cases, when interrupt parent is not defined at all or it's

svn commit: r292156 - head/sys/dev/ofw

2015-12-13 Thread Michal Meloun
Author: mmel Date: Sun Dec 13 08:17:49 2015 New Revision: 292156 URL: https://svnweb.freebsd.org/changeset/base/292156 Log: OFW: Add helper functions for parsing xref based lists. By using this functions, we can parse a list of tuples, each of them holds xref and variable number of values.

svn commit: r292157 - head/sys/dev/ofw

2015-12-13 Thread Michal Meloun
Author: mmel Date: Sun Dec 13 08:23:45 2015 New Revision: 292157 URL: https://svnweb.freebsd.org/changeset/base/292157 Log: OFW_IICBUS: Register ofw_iicbus node. The iicbus can be referenced from other nodes in DT. Approved by: kib (mentor) Modified: head/sys/dev/ofw/ofw_iicbus.c

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

2015-12-13 Thread Michal Meloun
Author: mmel Date: Sun Dec 13 09:05:55 2015 New Revision: 292159 URL: https://svnweb.freebsd.org/changeset/base/292159 Log: SIMPLEBUS: Don't panic if child device doesn't have devinfo set. Strictly speaking, missing devinfo is error which can be caused by instantiating child using

svn commit: r292260 - in head/sys/arm: arm include

2015-12-15 Thread Michal Meloun
Author: mmel Date: Tue Dec 15 12:52:45 2015 New Revision: 292260 URL: https://svnweb.freebsd.org/changeset/base/292260 Log: ARM: Remove outdated katelib.h. Approved by: kib (mentor) Deleted: head/sys/arm/include/katelib.h Modified: head/sys/arm/arm/trap.c

svn commit: r292259 - head/sys/arm/conf

2015-12-15 Thread Michal Meloun
Author: mmel Date: Tue Dec 15 12:51:58 2015 New Revision: 292259 URL: https://svnweb.freebsd.org/changeset/base/292259 Log: ARM: option PPC_PROBE_CHIPSET is applicable only for x86. Don't enable it for ARM LINT config. Approved by: kib (mentor) Modified: head/sys/arm/conf/NOTES

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

2015-11-28 Thread Michal Meloun
Author: mmel Date: Sat Nov 28 12:09:36 2015 New Revision: 291424 URL: https://svnweb.freebsd.org/changeset/base/291424 Log: ARM: Cumulative fixes for GIC - fix detection of interrupt root controller - allow (but warn) unsupported configuration bits - dont send EOI for spurious

svn commit: r291426 - head/sys/arm/include

2015-11-28 Thread Michal Meloun
Author: mmel Date: Sat Nov 28 12:12:28 2015 New Revision: 291426 URL: https://svnweb.freebsd.org/changeset/base/291426 Log: ARM: Implement atomic_swap_int(9). It's used in DRM2 code. Approved by: kib (mentor) Modified: head/sys/arm/include/atomic-v4.h head/sys/arm/include/atomic-v6.h

svn commit: r291425 - in head/sys/arm: arm include

2015-11-28 Thread Michal Meloun
Author: mmel Date: Sat Nov 28 12:11:44 2015 New Revision: 291425 URL: https://svnweb.freebsd.org/changeset/base/291425 Log: ARM: Add support for new KRAIT 300 CPU revision. Approved by: kib (mentor) Modified: head/sys/arm/arm/cpufunc.c head/sys/arm/arm/identcpu.c

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

2015-11-28 Thread Michal Meloun
Author: mmel Date: Sat Nov 28 14:30:42 2015 New Revision: 291427 URL: https://svnweb.freebsd.org/changeset/base/291427 Log: AHCI: Use bus_dmamap_sync(9) when accessing DMA buffers. Reviewed by: mav Approved by: kib (mentor) Differential Revision: https://reviews.freebsd.org/D4240

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

2015-11-29 Thread Michal Meloun
Author: mmel Date: Sun Nov 29 11:28:04 2015 New Revision: 291444 URL: https://svnweb.freebsd.org/changeset/base/291444 Log: AHCI: Fix AHCI driver for ARM. On ARM, we must ensure proper interdevice write ordering. The AHCI interrupt status register must be updated in HW before registers in

svn commit: r291492 - in head/sys/arm: arm include

2015-11-30 Thread Michal Meloun
Author: mmel Date: Mon Nov 30 17:09:25 2015 New Revision: 291492 URL: https://svnweb.freebsd.org/changeset/base/291492 Log: ARM: create new memory attribute for writethrough cacheable memory. - add new TEX class for WT cacheable memory - export new TEX class to kernel as VM_MEMATTR_WT

svn commit: r301539 - in head/sys: dev/gpio kern sys

2016-06-06 Thread Michal Meloun
Author: mmel Date: Tue Jun 7 05:08:24 2016 New Revision: 301539 URL: https://svnweb.freebsd.org/changeset/base/301539 Log: INTRNG: As follow up of r301451, implement mapping and configuration of gpio pin interrupts by new way. Note: This removes last consumer of intr_ddata machinery and

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

2016-05-29 Thread Michal Meloun
Author: mmel Date: Sun May 29 07:39:56 2016 New Revision: 300951 URL: https://svnweb.freebsd.org/changeset/base/300951 Log: ARM GIC: Allow to setup interrupt without configuration data. In some cases, like for PCI devices, only interrupt numbers are enumerated from HW. In this case, use

svn commit: r295252 - in head/sys/arm: arm include

2016-02-04 Thread Michal Meloun
Author: mmel Date: Thu Feb 4 12:11:18 2016 New Revision: 295252 URL: https://svnweb.freebsd.org/changeset/base/295252 Log: ARM: Don't use ugly (and hidden) global variable, control register is readable at any time. Modified: head/sys/arm/arm/cpufunc.c head/sys/arm/arm/identcpu.c

svn commit: r295348 - head/sys/cddl/dev/fbt/arm

2016-02-06 Thread Michal Meloun
Author: mmel Date: Sat Feb 6 11:16:15 2016 New Revision: 295348 URL: https://svnweb.freebsd.org/changeset/base/295348 Log: ARM: Rename remaining ARMv4 specific function in DTrace code. I missed it in r295319. Pointed by: tuexen Modified: head/sys/cddl/dev/fbt/arm/fbt_isa.c Modified:

svn commit: r295319 - in head/sys: arm/allwinner/a20 arm/altera/socfpga arm/amlogic/aml8726 arm/arm arm/broadcom/bcm2835 arm/freescale/imx arm/include arm/mv/armada38x arm/mv/armadaxp arm/rockchip ...

2016-02-05 Thread Michal Meloun
Author: mmel Date: Fri Feb 5 14:57:41 2016 New Revision: 295319 URL: https://svnweb.freebsd.org/changeset/base/295319 Log: ARM: Use new ARMv6 naming conventions for cache and TLB functions in all but ARMv4 specific files. Expand ARMv6 compatibility stubs in cpu-v4.h. Use physical address

Re: svn commit: r295254 - head/sys/arm/arm

2016-02-04 Thread Michal Meloun
lder-ARMs-ARM11.patch> > > If you don't mind I will add you to the review on Phabricator. > > Best regards > zbb > > 2016-02-04 14:32 GMT+01:00 Michal Meloun <m...@freebsd.org > <mailto:m...@freebsd.org>>: > > Author: mmel > Date:

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

2016-02-04 Thread Michal Meloun
Author: mmel Date: Thu Feb 4 13:32:29 2016 New Revision: 295254 URL: https://svnweb.freebsd.org/changeset/base/295254 Log: ARM: RPI-B kernel was broken by r294740. Make it functional again. Modified: head/sys/arm/arm/debug_monitor.c Modified: head/sys/arm/arm/debug_monitor.c

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

2016-02-04 Thread Michal Meloun
Author: mmel Date: Thu Feb 4 14:32:48 2016 New Revision: 295259 URL: https://svnweb.freebsd.org/changeset/base/295259 Log: ARM: For ARMv6/v7, code in locore.S initializes SCTLR and ACTRL registers. Don't duplicate this initialization in cpu_setup(). Modified: head/sys/arm/arm/cpufunc.c

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

2016-02-04 Thread Michal Meloun
Author: mmel Date: Thu Feb 4 17:01:38 2016 New Revision: 295267 URL: https://svnweb.freebsd.org/changeset/base/295267 Log: Replace broken implementation of fuswintr() and suswintr() by functions which return -1 as well as on tier 1 archs. Remove block_userspace_access used only in these

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

2016-02-04 Thread Michal Meloun
Author: mmel Date: Thu Feb 4 14:02:42 2016 New Revision: 295256 URL: https://svnweb.freebsd.org/changeset/base/295256 Log: ARM: Set UNAL_ENABLE bit in SCTLR CP15 register. This bit is RAO/SBOP for ARMv7. For ARMv6, it controls ARMv5 compatible alignment support. This bit have no effect

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

2016-02-11 Thread Michal Meloun
Author: mmel Date: Fri Feb 12 05:14:58 2016 New Revision: 295557 URL: https://svnweb.freebsd.org/changeset/base/295557 Log: UART: Fix spurious interrupts generated by ns8250 and lpc drivers: - don't enable transmitter empty interrupt before filling TX FIFO. - add missing uart_barrier()

svn commit: r295037 - in head/sys: arm/arm conf

2016-01-29 Thread Michal Meloun
Greenman + * Copyright (c) 2005-2010 Alan L. Cox <a...@cs.rice.edu> + * Copyright (c) 2014 Svatopluk Kraus <onw...@gmail.com> + * Copyright (c) 2014 Michal Meloun <mel...@miracle.cz> + * All rights reserved. + * + * This code is derived from software contributed to Berkeley

svn commit: r295036 - in head/sys: arm/arm arm/conf arm/include conf

2016-01-29 Thread Michal Meloun
Author: mmel Date: Fri Jan 29 10:31:54 2016 New Revision: 295036 URL: https://svnweb.freebsd.org/changeset/base/295036 Log: ARM: remove old pmap-v6 code. The new pmap-v6 is mature enough, and dual implementation is showstopper for major cleanup. This patch only removes old code from

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

2016-01-31 Thread Michal Meloun
Author: mmel Date: Sun Jan 31 16:55:52 2016 New Revision: 295097 URL: https://svnweb.freebsd.org/changeset/base/295097 Log: ARM: Fix END() symbol for cpu_ident function. I forgot to rename it in r295096. Modified: head/sys/arm/arm/cpufunc_asm.S Modified: head/sys/arm/arm/cpufunc_asm.S

svn commit: r295122 - in head/sys/arm: arm include

2016-02-01 Thread Michal Meloun
Author: mmel Date: Mon Feb 1 13:13:53 2016 New Revision: 295122 URL: https://svnweb.freebsd.org/changeset/base/295122 Log: ARM: Remove never used cpu_tlb_flushI and cpu_tlb_flushI_SE() functions and their implementations. Modified: head/sys/arm/arm/cpufunc.c

svn commit: r295201 - head/sys/arm/xscale/i8134x

2016-02-03 Thread Michal Meloun
Author: mmel Date: Wed Feb 3 10:39:29 2016 New Revision: 295201 URL: https://svnweb.freebsd.org/changeset/base/295201 Log: ARM: Remove C++ comments erroneously committed in r295200. Modified: head/sys/arm/xscale/i8134x/i80321reg.h Modified: head/sys/arm/xscale/i8134x/i80321reg.h

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

2016-02-03 Thread Michal Meloun
Author: mmel Date: Wed Feb 3 08:12:21 2016 New Revision: 295198 URL: https://svnweb.freebsd.org/changeset/base/295198 Log: ARM: acle-compat.h is arm specific header, don't include it for aarch64. This fixes aarch64 buildkernel. Modified: head/sys/arm/arm/devmap.c Modified:

svn commit: r295200 - in head/sys: arm/arm arm/conf arm/include arm/xscale/i80321 arm/xscale/i8134x conf

2016-02-03 Thread Michal Meloun
Author: mmel Date: Wed Feb 3 09:15:44 2016 New Revision: 295200 URL: https://svnweb.freebsd.org/changeset/base/295200 Log: ARM: Remove support for xscale i80219 and i80321 CPUs. We haven't single supported config/board with these CPUs. Deleted: head/sys/arm/xscale/i80321/ Modified:

svn commit: r295213 - in head/sys/arm: arm at91 cavium/cns11xx include xscale/i8134x xscale/ixp425 xscale/pxa

2016-02-03 Thread Michal Meloun
Author: mmel Date: Wed Feb 3 16:44:06 2016 New Revision: 295213 URL: https://svnweb.freebsd.org/changeset/base/295213 Log: ARM: Consistently use cpu_setttb() instead of setttb(). Remove unused #define for drain_writebuf. Modified: head/sys/arm/arm/machdep.c

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

2016-02-03 Thread Michal Meloun
Author: mmel Date: Thu Feb 4 06:39:20 2016 New Revision: 295235 URL: https://svnweb.freebsd.org/changeset/base/295235 Log: ARM: Remove unused symbols from genassym.c. Modified: head/sys/arm/arm/genassym.c Modified: head/sys/arm/arm/genassym.c

svn commit: r295066 - in head/sys: arm/arm conf

2016-01-30 Thread Michal Meloun
Author: mmel Date: Sat Jan 30 08:02:12 2016 New Revision: 295066 URL: https://svnweb.freebsd.org/changeset/base/295066 Log: ARM: Split swtch.S into common, ARMv4 and ARMv6 parts. Cleanup them. Added: head/sys/arm/arm/swtch-v4.S - copied, changed from r295065, head/sys/arm/arm/swtch.S

svn commit: r295067 - head/sys/dev/usb/controller

2016-01-30 Thread Michal Meloun
Author: mmel Date: Sat Jan 30 08:27:09 2016 New Revision: 295067 URL: https://svnweb.freebsd.org/changeset/base/295067 Log: EHCI: Correct address of EHCI_USBMODE_LPM register is 0xC8, not 0xA8. Modified: head/sys/dev/usb/controller/ehcireg.h Modified: head/sys/dev/usb/controller/ehcireg.h

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

2016-01-30 Thread Michal Meloun
Author: mmel Date: Sat Jan 30 10:10:29 2016 New Revision: 295068 URL: https://svnweb.freebsd.org/changeset/base/295068 Log: ARM: Don't misuse ARM_TP_ADDRESS as ARMv4 / ARMv6 selector. Modified: head/sys/arm/arm/machdep.c Modified: head/sys/arm/arm/machdep.c

svn commit: r295073 - in head/sys/arm: arm include

2016-01-30 Thread Michal Meloun
Author: mmel Date: Sat Jan 30 13:11:13 2016 New Revision: 295073 URL: https://svnweb.freebsd.org/changeset/base/295073 Log: ARM: Remove TLB IPI. We don't support SMP on ARMv6. All ARMv7 multicore cpus already uses hardware broadcast for TLB and cache operations. Modified:

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

2016-01-30 Thread Michal Meloun
Author: mmel Date: Sat Jan 30 12:23:28 2016 New Revision: 295071 URL: https://svnweb.freebsd.org/changeset/base/295071 Log: ARM: Cleanup mp_machdep.c. SMP is supported only on ARMv6 and later. Modified: head/sys/arm/arm/mp_machdep.c Modified: head/sys/arm/arm/mp_machdep.c

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

2016-01-31 Thread Michal Meloun
Author: mmel Date: Sun Jan 31 08:53:53 2016 New Revision: 295090 URL: https://svnweb.freebsd.org/changeset/base/295090 Log: ARM: Convert spaces to tabs, fix formatting. Not a functional change. Modified: head/sys/arm/arm/swtch-v4.S head/sys/arm/arm/swtch-v6.S Modified:

svn commit: r295091 - head/sys/arm/include

2016-01-31 Thread Michal Meloun
Author: mmel Date: Sun Jan 31 09:16:20 2016 New Revision: 295091 URL: https://svnweb.freebsd.org/changeset/base/295091 Log: ARM: Rename ARM specific VM_MEMATTR_WT memory attribute to standard one. Modified: head/sys/arm/include/vm.h Modified: head/sys/arm/include/vm.h

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

2016-01-31 Thread Michal Meloun
Author: mmel Date: Sun Jan 31 08:06:22 2016 New Revision: 295089 URL: https://svnweb.freebsd.org/changeset/base/295089 Log: ARM: Next round of cleanup in swtch-v*.S. - remove now useless #if __ARM_ARCH conditional - use macro for accessing CP15 registers - remove unused PCPU_SIZE

svn commit: r295149 - in head/sys: arm/arm arm/include conf

2016-02-02 Thread Michal Meloun
Author: mmel Date: Tue Feb 2 14:53:34 2016 New Revision: 295149 URL: https://svnweb.freebsd.org/changeset/base/295149 Log: ARM: All remaining functions in cpufunc_asm_arm10.S are identical with functions in cpufunc_asm_arm9.S. Use arm9 variants and remove cpufunc_asm_arm10.S completly.

svn commit: r295145 - in head/sys/arm: arm include

2016-02-02 Thread Michal Meloun
Author: mmel Date: Tue Feb 2 10:50:32 2016 New Revision: 295145 URL: https://svnweb.freebsd.org/changeset/base/295145 Log: ARM: Remove last unused function, cpu_flush_prefetchbuf(), from cpu_functions table. Modified: head/sys/arm/arm/cpufunc.c head/sys/arm/arm/cpufunc_asm_arm11x6.S

svn commit: r295123 - in head/sys/arm: arm mv/armadaxp ti

2016-02-01 Thread Michal Meloun
Author: mmel Date: Mon Feb 1 14:28:58 2016 New Revision: 295123 URL: https://svnweb.freebsd.org/changeset/base/295123 Log: ARM: Rename remaining instances of cpufunc_id() to cpu_ident(), forgotten in r295096. Remove tlb_flushI/tlb_flushI_SE functions forgotten in r295122. Modified:

svn commit: r295096 - in head/sys/arm: arm include

2016-01-31 Thread Michal Meloun
Author: mmel Date: Sun Jan 31 16:34:06 2016 New Revision: 295096 URL: https://svnweb.freebsd.org/changeset/base/295096 Log: ARM: cpufunc_domains, cpufunc_faultstatus and cpufunc_faultaddress functions are equal for all ARM variants. Remove them from cpu_functions table. Modified:

svn commit: r295095 - in head/sys/arm: arm include

2016-01-31 Thread Michal Meloun
Author: mmel Date: Sun Jan 31 15:36:13 2016 New Revision: 295095 URL: https://svnweb.freebsd.org/changeset/base/295095 Log: ARM: Next round of cpufunc.* cleaning. Nobody uses flush_brnchtgt* functions, delete them. Modified: head/sys/arm/arm/cpufunc.c head/sys/arm/arm/cpufunc_asm_fa526.S

svn commit: r295092 - in head/sys/arm: arm include

2016-01-31 Thread Michal Meloun
Author: mmel Date: Sun Jan 31 13:59:16 2016 New Revision: 295092 URL: https://svnweb.freebsd.org/changeset/base/295092 Log: ARM: First round of cpufunc.* cleaning. All abort_fixup functions are not currently used or defined. Delete them. Modified: head/sys/arm/arm/cpufunc.c

svn commit: r294989 - in head/sys: arm/freescale/vybrid arm/xilinx dev/usb/controller mips/atheros powerpc/ps3

2016-01-28 Thread Michal Meloun
Author: mmel Date: Thu Jan 28 14:11:59 2016 New Revision: 294989 URL: https://svnweb.freebsd.org/changeset/base/294989 Log: EHCI: Make core reset and port speed reading more generic. Use driver settable callbacks for handling of: - core post reset - reading actual port speed

svn commit: r294660 - in head/sys: conf dev/extres dev/extres/clk

2016-01-24 Thread Michal Meloun
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dev/extres/clk/clk.c Sun Jan 24 11:00:38 2016 (r294660) @@ -0,0 +1,1261 @@ +/*- + * Copyright 2016 Michal Meloun <m...@freebsd.org> + * All rights re

svn commit: r294661 - in head/sys: conf dev/extres/hwreset

2016-01-24 Thread Michal Meloun
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dev/extres/hwreset/hwreset.c Sun Jan 24 11:03:35 2016 (r294661) @@ -0,0 +1,186 @@ +/*- + * Copyright 2016 Michal Meloun <m...@freebsd.org> +

Re: svn commit: r295557 - head/sys/dev/uart

2016-02-15 Thread Michal Meloun
Dne 13.02.2016 v 1:58 Marius Strobl napsal(a): > On Sat, Feb 13, 2016 at 06:53:25AM +1100, Bruce Evans wrote: >> On Fri, 12 Feb 2016, Marius Strobl wrote: >> >>> On Fri, Feb 12, 2016 at 05:14:58AM +, Michal Meloun wrote: >>>> Author: mmel >>>>

svn commit: r297011 - head/sys/arm/nvidia

2016-03-18 Thread Michal Meloun
Author: mmel Date: Fri Mar 18 07:13:09 2016 New Revision: 297011 URL: https://svnweb.freebsd.org/changeset/base/297011 Log: TEGRA: Fix tegra_pcie driver after rman_res_t size change. Modified: head/sys/arm/nvidia/tegra_pcie.c Modified: head/sys/arm/nvidia/tegra_pcie.c

svn commit: r296903 - head/sys/dev/extres/clk

2016-03-15 Thread Michal Meloun
Author: mmel Date: Tue Mar 15 15:25:26 2016 New Revision: 296903 URL: https://svnweb.freebsd.org/changeset/base/296903 Log: CLK: Remove forgotten mutex from clk_fixed class. Modified: head/sys/dev/extres/clk/clk_fixed.c head/sys/dev/extres/clk/clk_fixed.h Modified:

svn commit: r296905 - head/sys/dev/extres/clk

2016-03-15 Thread Michal Meloun
Author: mmel Date: Tue Mar 15 15:28:24 2016 New Revision: 296905 URL: https://svnweb.freebsd.org/changeset/base/296905 Log: CLK: Add and use explicit locking for access to clock device registers. Implicit locking (for read/write/modify) is not sufficient for complex cases. Modified:

svn commit: r296906 - in head/sys: conf dev/extres/regulator

2016-03-15 Thread Michal Meloun
egulator/regdev_if.m == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dev/extres/regulator/regdev_if.m Tue Mar 15 15:30:17 2016 (r296906) @@ -0,0 +1,56 @@ +#- +# Copyright 2016 Michal Meloun <m...@freebsd.org&

svn commit: r296901 - in head/sys/dev: gpio ofw

2016-03-15 Thread Michal Meloun
Author: mmel Date: Tue Mar 15 15:24:18 2016 New Revision: 296901 URL: https://svnweb.freebsd.org/changeset/base/296901 Log: Use EARLY_DRIVER_MODULE() with BUS_PASS_BUS priority for ofw_gpiobus and ofw_iicbus. This causes enumeration of gpiobus/iicbus at the base driver attach time. Due to

svn commit: r296904 - in head/sys: conf dev/extres/clk

2016-03-15 Thread Michal Meloun
is newly added) +++ head/sys/dev/extres/clk/clk_bus.c Tue Mar 15 15:27:15 2016 (r296904) @@ -0,0 +1,93 @@ +/*- + * Copyright 2016 Michal Meloun <m...@freebsd.org> + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are pe

svn commit: r296907 - in head/sys: conf dev/extres/phy

2016-03-15 Thread Michal Meloun
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dev/extres/phy/phy.c Tue Mar 15 15:31:17 2016 (r296907) @@ -0,0 +1,235 @@ +/*- + * Copyright 2016 Michal Meloun <m...@freebsd.org> + * All

svn commit: r297026 - head/sys/arm/conf

2016-03-19 Thread Michal Meloun
Author: mmel Date: Fri Mar 18 15:27:57 2016 New Revision: 297026 URL: https://svnweb.freebsd.org/changeset/base/297026 Log: TEGRA: Connect TEGRA124 to universe build. Added: head/sys/arm/conf/TEGRA124 - copied, changed from r297025, head/sys/arm/conf/TEGRA124.common Deleted:

svn commit: r296936 - in head/sys: arm/conf arm/nvidia arm/nvidia/tegra124 boot/fdt/dts/arm

2016-03-19 Thread Michal Meloun
=== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/arm/nvidia/as3722.cWed Mar 16 13:01:48 2016 (r296936) @@ -0,0 +1,411 @@ +/*- + * Copyright (c) 2016 Michal Meloun <m...@freebs

Re: svn commit: r297047 - head/sys/conf

2016-03-22 Thread Michal Meloun
Dne 19.03.2016 v 0:55 Bjoern A. Zeeb napsal(a): > Author: bz > Date: Fri Mar 18 23:55:25 2016 > New Revision: 297047 > URL: https://svnweb.freebsd.org/changeset/base/297047 > > Log: > Allow pci_host_generic to be compiled into ARM kernels, used, e.g., in > simulators. > > Sponsored by:

svn commit: r297284 - in head/sys/arm: arm at91 conf include

2016-03-26 Thread Michal Meloun
Author: mmel Date: Sat Mar 26 06:55:55 2016 New Revision: 297284 URL: https://svnweb.freebsd.org/changeset/base/297284 Log: ARM: Teach LINUX_BOOT_ABI to recognize DT blob. This allow us to boot FreeBSD kernel (using uImage encapsulation) directly from U-boot using 'bootm' command or by

svn commit: r297288 - head/sys/arm/nvidia

2016-03-26 Thread Michal Meloun
Author: mmel Date: Sat Mar 26 10:09:28 2016 New Revision: 297288 URL: https://svnweb.freebsd.org/changeset/base/297288 Log: TEGRA: Fixes for UART driver: - add mising 'or' in tegra_uart_attach() Pointed by: kan - fix indentation of tegra_softc - remove forgoten debug printf

svn commit: r297286 - in head/sys: arm/arm dev/fdt

2016-03-26 Thread Michal Meloun
Author: mmel Date: Sat Mar 26 06:59:01 2016 New Revision: 297286 URL: https://svnweb.freebsd.org/changeset/base/297286 Log: ARM: Parse command line delivered by U-Boot: - in atags - in DT blob (by using 'fdt chosen' U-Boot command) The command line must start with guard's string

svn commit: r297285 - in head/sys/arm: arm include

2016-03-26 Thread Michal Meloun
Author: mmel Date: Sat Mar 26 06:57:36 2016 New Revision: 297285 URL: https://svnweb.freebsd.org/changeset/base/297285 Log: ARM: Fix ATAG handling in LINUX_BOOT_API: - Don't convert atags address passed from U-Boot. It's real physical address (and we have 1:1 mapping). - Size of tags

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

2016-03-26 Thread Michal Meloun
Author: mmel Date: Sat Mar 26 12:19:27 2016 New Revision: 297292 URL: https://svnweb.freebsd.org/changeset/base/297292 Log: ARM: Fix bug introduced in r297286. - don't put command line without guard to kernel environment. - kernel environment delivered from ubldr must have absolute

svn commit: r296982 - head/sys/arm/allwinner

2016-03-19 Thread Michal Meloun
Author: mmel Date: Thu Mar 17 08:57:41 2016 New Revision: 296982 URL: https://svnweb.freebsd.org/changeset/base/296982 Log: A20: Gpiobus can be attached only after full gpio driver initialization. While i'm in, remove now unused global variable. Submited by: Emmanuel Vadot

svn commit: r296269 - head/sys/dev/gpio

2016-03-01 Thread Michal Meloun
Author: mmel Date: Tue Mar 1 16:10:15 2016 New Revision: 296269 URL: https://svnweb.freebsd.org/changeset/base/296269 Log: OFW_GPIOBUS: Add utility functions for easier handling of OFW GPIO pins. Reviewed by: ian, loos (paritaly) Modified: head/sys/dev/gpio/gpiobusvar.h

svn commit: r297576 - head/sys/arm/nvidia/tegra124

2016-04-05 Thread Michal Meloun
Author: mmel Date: Tue Apr 5 09:20:52 2016 New Revision: 297576 URL: https://svnweb.freebsd.org/changeset/base/297576 Log: TEGRA: Fix CPU frequency switching. The PLL_X, base CPU frequency source, doesn't have a bypass switch and thus we must use another frequency source for CPU while

svn commit: r297579 - in head/sys: arm/nvidia dev/usb/controller

2016-04-05 Thread Michal Meloun
Author: mmel Date: Tue Apr 5 12:13:53 2016 New Revision: 297579 URL: https://svnweb.freebsd.org/changeset/base/297579 Log: ehci_interrupt is MPSAFE code. Most drivers in tree calls bus_setup_intr with MPSAFE, some are not. Fix those. Submitted by: Howard Su

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

2016-04-28 Thread Michal Meloun
Author: mmel Date: Thu Apr 28 12:05:07 2016 New Revision: 298740 URL: https://svnweb.freebsd.org/changeset/base/298740 Log: ARM: Use kernel pmap as intermediate mapping in context switch. On ARM, we can directly switch between translation tables only when the size of the mapping for any

svn commit: r298738 - in head/sys: dev/gpio kern sys

2016-04-28 Thread Michal Meloun
Author: mmel Date: Thu Apr 28 12:03:22 2016 New Revision: 298738 URL: https://svnweb.freebsd.org/changeset/base/298738 Log: GPIO: Add support for gpio pin interrupts. Add new function gpio_alloc_intr_resource(), which allows an allocation of interrupt resource associated to given gpio pin.

svn commit: r298739 - in head/sys: dev/gpio kern sys

2016-04-28 Thread Michal Meloun
Author: mmel Date: Thu Apr 28 12:04:12 2016 New Revision: 298739 URL: https://svnweb.freebsd.org/changeset/base/298739 Log: INTRNG: Define 'INTR_IRQ_INVALID' constant and use it consistently as error indicator. Modified: head/sys/dev/gpio/gpiobus.c head/sys/kern/subr_intr.c

svn commit: r298742 - head/sys/arm/nvidia

2016-04-28 Thread Michal Meloun
Author: mmel Date: Thu Apr 28 13:00:40 2016 New Revision: 298742 URL: https://svnweb.freebsd.org/changeset/base/298742 Log: TEGRA: Add interrupt support for Tegra GPIO controller. Modified: head/sys/arm/nvidia/tegra_gpio.c Modified: head/sys/arm/nvidia/tegra_gpio.c

svn commit: r299853 - head/sys/dev/gpio

2016-05-15 Thread Michal Meloun
Author: mmel Date: Sun May 15 14:43:52 2016 New Revision: 299853 URL: https://svnweb.freebsd.org/changeset/base/299853 Log: OFWGPIOBUS: Make ofwgpiobus_devclass externaly visible. It's needed for binding of gpio controllers. Modified: head/sys/dev/gpio/ofw_gpiobus.c Modified:

svn commit: r299854 - head/sys/arm/nvidia

2016-05-15 Thread Michal Meloun
Author: mmel Date: Sun May 15 14:47:50 2016 New Revision: 299854 URL: https://svnweb.freebsd.org/changeset/base/299854 Log: TEGRA: Don't use common name 'gpio' for tegra specific GPIO driver. Using commn name for different drivers breaks generic kernel creation. Modified:

svn commit: r299855 - head/sys/dev/ofw

2016-05-15 Thread Michal Meloun
Author: mmel Date: Sun May 15 15:13:56 2016 New Revision: 299855 URL: https://svnweb.freebsd.org/changeset/base/299855 Log: OFWIICBUS: Make ofwiicbus_devclass externaly visible. It's needed for binding of iic controllers. Modified: head/sys/dev/ofw/ofw_iicbus.c Modified:

svn commit: r299858 - head/sys/arm/nvidia

2016-05-15 Thread Michal Meloun
Author: mmel Date: Sun May 15 15:31:44 2016 New Revision: 299858 URL: https://svnweb.freebsd.org/changeset/base/299858 Log: TEGRA: Also attach gpioc to tegra_gpio driver. Forgotten in r299854. Modified: head/sys/arm/nvidia/tegra_gpio.c Modified: head/sys/arm/nvidia/tegra_gpio.c

svn commit: r299856 - head/sys/arm/nvidia

2016-05-15 Thread Michal Meloun
Author: mmel Date: Sun May 15 15:14:46 2016 New Revision: 299856 URL: https://svnweb.freebsd.org/changeset/base/299856 Log: TEGRA: Don't use common name 'iicb' for tegra specific IIC driver. Using commn name for different drivers breaks generic kernel creation. Modified:

Re: svn commit: r301453 - in head/sys: arm/arm arm64/arm64 dev/fdt dev/gpio dev/iicbus dev/ofw dev/pci dev/vnic kern mips/mips sys

2016-07-24 Thread Michal Meloun
Dne 23.07.2016 v 20:35 Nathan Whitehorn napsal(a): > > > On 07/23/16 03:45, Michal Meloun wrote: >> Dne 21.07.2016 v 17:53 Nathan Whitehorn napsal(a): >>> >>> On PowerPC, GENERIC64 supports FDT systems (some IBM hardware), OFW >>> systems (Macs, some I

Re: svn commit: r301453 - in head/sys: arm/arm arm64/arm64 dev/fdt dev/gpio dev/iicbus dev/ofw dev/pci dev/vnic kern mips/mips sys

2016-07-24 Thread Michal Meloun
Dne 24.07.2016 v 17:32 Nathan Whitehorn napsal(a): > > > On 07/24/16 00:45, Michal Meloun wrote: >> Dne 23.07.2016 v 20:35 Nathan Whitehorn napsal(a): >>> >>> >>> On 07/23/16 03:45, Michal Meloun wrote: >>>> Dne 21.07.2016 v 17:53 Nathan

Re: svn commit: r301453 - in head/sys: arm/arm arm64/arm64 dev/fdt dev/gpio dev/iicbus dev/ofw dev/pci dev/vnic kern mips/mips sys

2016-07-24 Thread Michal Meloun
I'm sorry for the blank response sent by mistake. Dne 24.07.2016 v 17:32 Nathan Whitehorn napsal(a): > > > On 07/24/16 00:45, Michal Meloun wrote: >> Dne 23.07.2016 v 20:35 Nathan Whitehorn napsal(a): >>> >>> >>> On 07/23/16 03:45, Michal Meloun wrote: &g

svn commit: r304071 - head/sys/dev/ofw

2016-08-13 Thread Michal Meloun
Author: mmel Date: Sun Aug 14 05:10:26 2016 New Revision: 304071 URL: https://svnweb.freebsd.org/changeset/base/304071 Log: OFWPCI: Don't strip RF_ACTIVE from flags when parent bus method is called. Reviewed by: nwhitehorn MFC after:3 weeks Modified: head/sys/dev/ofw/ofwpci.c

Re: svn commit: r301453 - in head/sys: arm/arm arm64/arm64 dev/fdt dev/gpio dev/iicbus dev/ofw dev/pci dev/vnic kern mips/mips sys

2016-07-21 Thread Michal Meloun
Dne 20.07.2016 v 17:45 Nathan Whitehorn napsal(a): > > > On 07/20/16 04:28, Michal Meloun wrote: >> Dne 19.07.2016 v 17:06 Nathan Whitehorn napsal(a): >>> >>> >>> On 07/19/16 04:13, Michal Meloun wrote: >>>> Dne 19.07.2016 v 2:11 Natha

svn commit: r302951 - head/sys/dev/ofw

2016-07-17 Thread Michal Meloun
Author: mmel Date: Sun Jul 17 13:43:00 2016 New Revision: 302951 URL: https://svnweb.freebsd.org/changeset/base/302951 Log: OFWPCI: Improve resource handling. - add new rman for prefetchable memory. Is used only if given 'ranges' property contains prefetchable memory range. - not all

svn commit: r302952 - head/sys/dev/ofw

2016-07-17 Thread Michal Meloun
Author: mmel Date: Sun Jul 17 13:43:46 2016 New Revision: 302952 URL: https://svnweb.freebsd.org/changeset/base/302952 Log: OFWPCI: Add support for NEW_PCIB. MFC after: 3 weeks Modified: head/sys/dev/ofw/ofwpci.c head/sys/dev/ofw/ofwpci.h Modified: head/sys/dev/ofw/ofwpci.c

svn commit: r302961 - head/sys/arm/nvidia

2016-07-17 Thread Michal Meloun
Author: mmel Date: Sun Jul 17 14:45:15 2016 New Revision: 302961 URL: https://svnweb.freebsd.org/changeset/base/302961 Log: TEGRA: Subclass Tegra PCIE driver from ofw_pci base driver. Remove now redundant code. Modified: head/sys/arm/nvidia/tegra_pcie.c Modified:

Re: svn commit: r301453 - in head/sys: arm/arm arm64/arm64 dev/fdt dev/gpio dev/iicbus dev/ofw dev/pci dev/vnic kern mips/mips sys

2016-07-19 Thread Michal Meloun
Dne 19.07.2016 v 2:11 Nathan Whitehorn napsal(a): Hi Nathan, I’m afraid that skra is on vacation, for next 2 weeks (at minimum), so please don’t expect quick response. > Could you please describe what this change is in more detail? Short description is appended. > > It breaks a lot of

Re: svn commit: r301453 - in head/sys: arm/arm arm64/arm64 dev/fdt dev/gpio dev/iicbus dev/ofw dev/pci dev/vnic kern mips/mips sys

2016-07-20 Thread Michal Meloun
Dne 19.07.2016 v 17:06 Nathan Whitehorn napsal(a): > > > On 07/19/16 04:13, Michal Meloun wrote: >> Dne 19.07.2016 v 2:11 Nathan Whitehorn napsal(a): >> Hi Nathan, >> I’m afraid that skra is on vacation, for next 2 weeks (at minimum), so >> please don’t expect

svn commit: r302528 - in head/sys: arm/allwinner arm/allwinner/clk arm/nvidia arm/nvidia/tegra124 dev/dwc dev/extres/clk dev/extres/hwreset dev/extres/phy dev/extres/regulator dev/iicbus/twsi dev/u...

2016-07-10 Thread Michal Meloun
Author: mmel Date: Sun Jul 10 18:28:15 2016 New Revision: 302528 URL: https://svnweb.freebsd.org/changeset/base/302528 Log: EXTRES: Add OF node as argument to all _get_by_ofw_() functions. In some cases, the driver must handle given properties located in specific OF subnode. Instead of

svn commit: r302560 - head/sys/dev/ofw

2016-07-11 Thread Michal Meloun
Author: mmel Date: Mon Jul 11 08:24:04 2016 New Revision: 302560 URL: https://svnweb.freebsd.org/changeset/base/302560 Log: OFWPCI: Fix style(9). No functional change. MFC after: 3 weeks Modified: head/sys/dev/ofw/ofwpci.c Modified: head/sys/dev/ofw/ofwpci.c

Re: svn commit: r301453 - in head/sys: arm/arm arm64/arm64 dev/fdt dev/gpio dev/iicbus dev/ofw dev/pci dev/vnic kern mips/mips sys

2016-07-23 Thread Michal Meloun
Dne 21.07.2016 v 17:53 Nathan Whitehorn napsal(a): > > > On 07/21/16 00:34, Michal Meloun wrote: >> Dne 20.07.2016 v 17:45 Nathan Whitehorn napsal(a): >>> >>> >>> On 07/20/16 04:28, Michal Meloun wrote: >>>> Dne 19.07.2016 v 17:06 Nathan Wh

  1   2   3   4   >