svn commit: r368187 - head/sys/dev/nvme

2020-11-30 Thread Michal Meloun
Author: mmel Date: Mon Nov 30 14:51:48 2020 New Revision: 368187 URL: https://svnweb.freebsd.org/changeset/base/368187 Log: Unbreak r368167 in userland. Decorate unused arguments. Reported by: kp, tuexen, jenkins, and many others MFC with: r368167 Modified:

Re: svn commit: r368167 - head/sys/dev/nvme

2020-11-30 Thread Michal Meloun
On 30.11.2020 11:35, Michael Tuexen wrote: On 30. Nov 2020, at 08:01, Michal Meloun wrote: Author: mmel Date: Mon Nov 30 07:01:12 2020 New Revision: 368167 URL: https://svnweb.freebsd.org/changeset/base/368167 Log: NVME: Don't try to swap data on little endian machines. These swapping

svn commit: r368167 - head/sys/dev/nvme

2020-11-29 Thread Michal Meloun
Author: mmel Date: Mon Nov 30 07:01:12 2020 New Revision: 368167 URL: https://svnweb.freebsd.org/changeset/base/368167 Log: NVME: Don't try to swap data on little endian machines. These swapping functions violate BUSDMA contract - we cannot write to armed (by bus_dmamap_sync(PRE_..))

Re: svn commit: r368187 - head/sys/dev/nvme

2020-11-30 Thread Michal Meloun
On 30.11.2020 17:02, Ian Lepore wrote: On Mon, 2020-11-30 at 14:51 +, Michal Meloun wrote: Author: mmel Date: Mon Nov 30 14:51:48 2020 New Revision: 368187 URL: https://svnweb.freebsd.org/changeset/base/368187 Log: Unbreak r368167 in userland. Decorate unused arguments

svn commit: r368340 - in head/sys: arm/rockchip arm64/rockchip arm64/rockchip/clk

2020-12-04 Thread Michal Meloun
(r368340) @@ -0,0 +1,126 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2019 Michal Meloun + * + * 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: r368367 - in head/sys: arm64/conf modules/dtb/freescale

2020-12-05 Thread Michal Meloun
Author: mmel Date: Sat Dec 5 11:17:54 2020 New Revision: 368367 URL: https://svnweb.freebsd.org/changeset/base/368367 Log: Connect DTB files based on LX2160A SoC to build. Mainly LX2K Honeycomb and ClearFog-CX boards. Added: head/sys/modules/dtb/freescale/

svn commit: r368362 - head/sys/modules/dtb/rockchip

2020-12-05 Thread Michal Meloun
Author: mmel Date: Sat Dec 5 10:00:39 2020 New Revision: 368362 URL: https://svnweb.freebsd.org/changeset/base/368362 Log: Also build DTB files for Asus Tinker board (RK3288 based). Modified: head/sys/modules/dtb/rockchip/Makefile Modified: head/sys/modules/dtb/rockchip/Makefile

svn commit: r368369 - in head/sys: arm/freescale/vybrid arm64/qoriq arm64/qoriq/clk conf dev/ahci dev/iicbus/mux

2020-12-05 Thread Michal Meloun
t Dec 5 12:08:37 2020 (r368369) @@ -0,0 +1,211 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright 2020 Michal Meloun + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions +

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

2020-12-05 Thread Michal Meloun
Author: mmel Date: Sat Dec 5 10:10:25 2020 New Revision: 368363 URL: https://svnweb.freebsd.org/changeset/base/368363 Log: Connect RK3288 to GENERIC kernel. Modified: head/sys/arm/conf/GENERIC Modified: head/sys/arm/conf/GENERIC

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

2020-12-05 Thread Michal Meloun
Author: mmel Date: Sat Dec 5 10:55:09 2020 New Revision: 368364 URL: https://svnweb.freebsd.org/changeset/base/368364 Log: DesignWare PCIe driver: Don't call bus_generic_attach() twice. bus_generic_attach() should be called from the attach function of the real implementation, not from the

svn commit: r368370 - in head/sys/arm64: arm64 include

2020-12-05 Thread Michal Meloun
Author: mmel Date: Sat Dec 5 14:06:01 2020 New Revision: 368370 URL: https://svnweb.freebsd.org/changeset/base/368370 Log: Simplify startup of secondary cores and store MPIDR register to pcpu. - record MPIDR for all started cores in pcpu, they will be used as link between physical

Re: svn commit: r368159 - in head/sys: arm/conf conf

2020-12-05 Thread Michal Meloun
On 05.12.2020 17:18, Mateusz Guzik wrote: On 11/29/20, Michal Meloun wrote: Author: mmel Date: Sun Nov 29 17:42:32 2020 New Revision: 368159 URL: https://svnweb.freebsd.org/changeset/base/368159 Log: Remove unused options. Marvell files and their related SOC_MV_ options should

svn commit: r368373 - in head/sys: conf dev/syscons

2020-12-05 Thread Michal Meloun
Author: mmel Date: Sat Dec 5 19:44:00 2020 New Revision: 368373 URL: https://svnweb.freebsd.org/changeset/base/368373 Log: Remove remaning definition of GFB_ options. They are not used in source files. This fixes build of some arm boards after r368159. Reported by: mjg Modified:

svn commit: r367955 - head/sys/dev/nvme

2020-11-23 Thread Michal Meloun
Author: mmel Date: Mon Nov 23 14:30:22 2020 New Revision: 367955 URL: https://svnweb.freebsd.org/changeset/base/367955 Log: Ensure that the buffer is in nvme_single_map() mapped to single segment. Not a functional change. MFC after:1 week Modified: head/sys/dev/nvme/nvme_private.h

svn commit: r368331 - head/sys/dev/iicbus/pmic

2020-12-04 Thread Michal Meloun
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dev/iicbus/pmic/act8846.c Fri Dec 4 14:57:12 2020 (r368331) @@ -0,0 +1,258 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2019 Michal Meloun

svn commit: r368332 - head/sys/dev/iicbus/rtc

2020-12-04 Thread Michal Meloun
Author: mmel Date: Fri Dec 4 15:09:42 2020 New Revision: 368332 URL: https://svnweb.freebsd.org/changeset/base/368332 Log: Add a driver for HYM8563 based RTC. Added: head/sys/dev/iicbus/rtc/hym8563.c (contents, props changed) Added: head/sys/dev/iicbus/rtc/hym8563.c

svn commit: r368334 - head/sys/dev/iicbus/pmic

2020-12-04 Thread Michal Meloun
+ * + * Copyright (c) 2016 Jared McNeill + * Copyright (c) 2018 Emmanuel Vadot + * Copyright (c) 2019 Michal Meloun + * + * 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: r368126 - in head/sys: arm/arm arm/include conf

2020-11-28 Thread Michal Meloun
Author: mmel Date: Sat Nov 28 15:00:08 2020 New Revision: 368126 URL: https://svnweb.freebsd.org/changeset/base/368126 Log: Remove now unused armv4 and not-INTRNG files. Deleted: head/sys/arm/arm/identcpu-v4.c head/sys/arm/arm/intr.c head/sys/arm/arm/locore-v4.S

svn commit: r368141 - in head/sys/arm: allwinner annapurna/alpine arm freescale/imx include mv versatile

2020-11-29 Thread Michal Meloun
Author: mmel Date: Sun Nov 29 08:40:12 2020 New Revision: 368141 URL: https://svnweb.freebsd.org/changeset/base/368141 Log: Remove the pre-ARMv6 and pre-INTRNG code. ARM has required ARMV6+ and INTRNg for some time now, so remove always false #ifdefs and unconditionally do always true

svn commit: r368154 - in head/sys: arm/arm arm/include arm/mv conf

2020-11-29 Thread Michal Meloun
Author: mmel Date: Sun Nov 29 15:24:00 2020 New Revision: 368154 URL: https://svnweb.freebsd.org/changeset/base/368154 Log: Remove remaining fragments of code for older already ceased ARM versions. Deleted: head/sys/arm/arm/cpufunc_asm_arm9.S head/sys/arm/arm/cpufunc_asm_armv4.S

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

2020-11-29 Thread Michal Meloun
Author: mmel Date: Sun Nov 29 18:59:01 2020 New Revision: 368161 URL: https://svnweb.freebsd.org/changeset/base/368161 Log: Store MPIDR register in pcpu. MPIDR represents physical locality of given core and it should be used as the only viable/robust connection between cpuid (which have

Re: svn commit: r368124 - in head/sys: cam cam/ata cam/ctl cam/mmc cam/nvme cam/scsi compat/linprocfs compat/linux conf contrib/openzfs/module/os/freebsd/zfs dev/ahci dev/ata dev/firewire dev/flash de

2020-11-29 Thread Michal Meloun
On 29.11.2020 18:46, Ed Maste wrote: On Sun, 29 Nov 2020 at 12:36, Konstantin Belousov wrote: I think it is reasonable to return to 128KB for 32bit systems. ... +#ifndef MAXPHYS/* max raw I/O transfer size */ +#ifdef __ILP32__ +#define MAXPHYS

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

2020-11-29 Thread Michal Meloun
Author: mmel Date: Sun Nov 29 15:04:39 2020 New Revision: 368153 URL: https://svnweb.freebsd.org/changeset/base/368153 Log: Remove remaining support of big endian byte order. Big endian support was ceased by removing ARMv4 sub architecture. Modified: head/sys/arm/arm/bcopyinout_xscale.S

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

2020-11-29 Thread Michal Meloun
Author: mmel Date: Sun Nov 29 15:39:54 2020 New Revision: 368155 URL: https://svnweb.freebsd.org/changeset/base/368155 Log: Remove orphaned configs. Deleted: head/sys/arm/conf/ARNDALE head/sys/arm/conf/ARNDALE-OCTA head/sys/arm/conf/EA3250.hints head/sys/arm/conf/SAM9G20EK.hints

Re: svn commit: r368124 - in head/sys: cam cam/ata cam/ctl cam/mmc cam/nvme cam/scsi compat/linprocfs compat/linux conf contrib/openzfs/module/os/freebsd/zfs dev/ahci dev/ata dev/firewire dev/flash de

2020-11-29 Thread Michal Meloun
On 28.11.2020 13:12, Konstantin Belousov wrote: Author: kib Date: Sat Nov 28 12:12:51 2020 New Revision: 368124 URL: https://svnweb.freebsd.org/changeset/base/368124 Log: Make MAXPHYS tunable. Bump MAXPHYS to 1M. Unfortunately, bumping MAXPHYS broke arm kernel. The kernel runs out of KVA

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

2020-11-29 Thread Michal Meloun
Author: mmel Date: Sun Nov 29 16:44:22 2020 New Revision: 368158 URL: https://svnweb.freebsd.org/changeset/base/368158 Log: _ARM_ARCH_5E is always defined, we not support older CPUs. Modified: head/sys/arm/arm/bcopy_page.S head/sys/arm/arm/bcopyinout.S head/sys/arm/arm/in_cksum_arm.S

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

2020-11-29 Thread Michal Meloun
Author: mmel Date: Sun Nov 29 17:42:32 2020 New Revision: 368159 URL: https://svnweb.freebsd.org/changeset/base/368159 Log: Remove unused options. Marvell files and their related SOC_MV_ options should be cleaned up in another pass. Modified: head/sys/arm/conf/NOTES

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

2020-12-01 Thread Michal Meloun
Author: mmel Date: Tue Dec 1 09:18:18 2020 New Revision: 368204 URL: https://svnweb.freebsd.org/changeset/base/368204 Log: Remove duplicated SV_ASLR from the elf flags. Reported by: lattera Modified: head/sys/arm/arm/elf_machdep.c Modified: head/sys/arm/arm/elf_machdep.c

svn commit: r368203 - head/sys/dev/nvme

2020-12-01 Thread Michal Meloun
Author: mmel Date: Tue Dec 1 08:52:13 2020 New Revision: 368203 URL: https://svnweb.freebsd.org/changeset/base/368203 Log: Always use the __unused attribute even for potentially unused parameters. Requested by: ian, imp MFC with: r368167 Modified: head/sys/dev/nvme/nvme.h

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

2020-12-02 Thread Michal Meloun
Author: mmel Date: Wed Dec 2 08:14:56 2020 New Revision: 368273 URL: https://svnweb.freebsd.org/changeset/base/368273 Log: Fix r368153. Wrong branch of #ifdef __ARMEB__ was deleted. Modified: head/sys/arm/arm/support.S Modified: head/sys/arm/arm/support.S

svn commit: r368279 - head/sys/dev/nvme

2020-12-02 Thread Michal Meloun
Author: mmel Date: Wed Dec 2 16:54:24 2020 New Revision: 368279 URL: https://svnweb.freebsd.org/changeset/base/368279 Log: NVME: Multiple busdma related fixes. - in nvme_qpair_process_completions() do dma sync before completion buffer is used. - in nvme_qpair_submit_tracker(), don't do

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

2020-12-14 Thread Michal Meloun
Author: mmel Date: Mon Dec 14 11:57:43 2020 New Revision: 368633 URL: https://svnweb.freebsd.org/changeset/base/368633 Log: Verify (and fix) the context_id argument passed to the mpentry () by PSCI. Some older PSCI implementations corrupt (or do not pass) the context_id argument to newly

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

2020-12-14 Thread Michal Meloun
Author: mmel Date: Mon Dec 14 13:10:19 2020 New Revision: 368634 URL: https://svnweb.freebsd.org/changeset/base/368634 Log: Finish implementation of ARM PMU interrupts. The ARM PMU may use single per-core interrupt or may use multiple generic interrupts, one per core. In this case, special

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

2020-12-14 Thread Michal Meloun
Author: mmel Date: Mon Dec 14 14:00:54 2020 New Revision: 368635 URL: https://svnweb.freebsd.org/changeset/base/368635 Log: Remove unused functions and variables in cpufunc.[ch]. Modified: head/sys/arm/arm/cpufunc.c head/sys/arm/arm/cpufunc_asm.S head/sys/arm/include/cpufunc.h

svn commit: r368698 - head/sys/dev/e1000

2020-12-16 Thread Michal Meloun
Author: mmel Date: Wed Dec 16 14:39:24 2020 New Revision: 368698 URL: https://svnweb.freebsd.org/changeset/base/368698 Log: Use the standard method for localizing of MSI-X table bar. Current way, hardcoded value plus heuristic is not conform to the PCI(e) specification and it fails on

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

2020-12-16 Thread Michal Meloun
Author: mmel Date: Wed Dec 16 14:36:57 2020 New Revision: 368697 URL: https://svnweb.freebsd.org/changeset/base/368697 Log: Allocate right number of pages for the bounced buffers crossing the page. One of the disadvantages of our current busdma code is the fact that we process the

Re: svn commit: r368700 - head/sys/dev/e1000

2020-12-16 Thread Michal Meloun
On 16.12.2020 15:48, Jessica Clarke wrote: Author: jrtc27 Date: Wed Dec 16 14:48:46 2020 New Revision: 368700 URL: https://svnweb.freebsd.org/changeset/base/368700 Log: Fix whitespace in r368698 MFC with: r368698 I just started to be ashamed :( Thanks for fixing the bugs created

svn commit: r367865 - head/sys/kern

2020-11-20 Thread Michal Meloun
Author: mmel Date: Fri Nov 20 09:05:36 2020 New Revision: 367865 URL: https://svnweb.freebsd.org/changeset/base/367865 Log: Also pass interrupt binding request to non-root interrupt controllers. There are message based controllers that can bind interrupts even if they are not implemented as

svn commit: r367447 - in head/sys: kern sys

2020-11-07 Thread Michal Meloun
Author: mmel Date: Sat Nov 7 14:58:01 2020 New Revision: 367447 URL: https://svnweb.freebsd.org/changeset/base/367447 Log: Add a method to determine whether given interrupt is per CPU or not. MFC after:2 weeks Modified: head/sys/kern/subr_intr.c head/sys/sys/intr.h Modified:

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

2020-11-02 Thread Michal Meloun
Author: mmel Date: Mon Nov 2 08:26:19 2020 New Revision: 367268 URL: https://svnweb.freebsd.org/changeset/base/367268 Log: Improve loading of multipage aligned buffers. The multipage alignment requirements is incompatible with many aspects of actual busdma code. Multi-page alignment

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

  1   2   3   4   >