svn commit: r368717 - stable/12/sys/dev/nvme

2020-12-17 Thread Michal Meloun
Author: mmel Date: Thu Dec 17 13:17:26 2020 New Revision: 368717 URL: https://svnweb.freebsd.org/changeset/base/368717 Log: MFC r368167,r368187,r368203: r368167: NVME: Don't try to swap data on little endian machines. These swapping functions violate BUSDMA contract - we

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

2020-12-17 Thread Michal Meloun
Author: mmel Date: Thu Dec 17 12:58:05 2020 New Revision: 368715 URL: https://svnweb.freebsd.org/changeset/base/368715 Log: MFC r368364: DesignWare PCIe driver: Don't call bus_generic_attach() twice. bus_generic_attach() should be called from the attach function of the real

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: 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

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: 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: 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: r368631 - in stable/12/sys/arm: arm include

2020-12-14 Thread Michal Meloun
Author: mmel Date: Mon Dec 14 11:09:07 2020 New Revision: 368631 URL: https://svnweb.freebsd.org/changeset/base/368631 Log: MFC r368161: Store MPIDR register in pcpu. Modified: stable/12/sys/arm/arm/machdep.c stable/12/sys/arm/arm/mp_machdep.c stable/12/sys/arm/include/pcpu.h

svn commit: r368630 - stable/12/sys/dev/nvme

2020-12-14 Thread Michal Meloun
Author: mmel Date: Mon Dec 14 10:16:59 2020 New Revision: 368630 URL: https://svnweb.freebsd.org/changeset/base/368630 Log: MFC r367955: Ensure that the buffer is in nvme_single_map() mapped to single segment. Not a functional change. Modified:

svn commit: r368629 - stable/12/sys/kern

2020-12-14 Thread Michal Meloun
Author: mmel Date: Mon Dec 14 10:14:32 2020 New Revision: 368629 URL: https://svnweb.freebsd.org/changeset/base/368629 Log: MFC r367865: Also pass interrupt binding request to non-root interrupt controllers. There are message based controllers that can bind interrupts even if they

svn commit: r368628 - in stable/12/sys: kern sys

2020-12-14 Thread Michal Meloun
Author: mmel Date: Mon Dec 14 09:49:07 2020 New Revision: 368628 URL: https://svnweb.freebsd.org/changeset/base/368628 Log: MFC r367447: Add a method to determine whether given interrupt is per CPU or not. Modified: stable/12/sys/kern/subr_intr.c stable/12/sys/sys/intr.h Directory

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: 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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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

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

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: 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:

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_..))

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: 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: 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: 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

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: 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

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: 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: 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: r368121 - stable/12/stand/efi/loader

2020-11-28 Thread Michal Meloun
Author: mmel Date: Sat Nov 28 09:06:51 2020 New Revision: 368121 URL: https://svnweb.freebsd.org/changeset/base/368121 Log: MFC r366700: Add 'netserver' command to EFI loader. Modified: stable/12/stand/efi/loader/main.c Directory Properties: stable/12/ (props changed) 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: 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: r367227 - stable/12/sys/arm/arm

2020-10-31 Thread Michal Meloun
Author: mmel Date: Sat Oct 31 17:26:56 2020 New Revision: 367227 URL: https://svnweb.freebsd.org/changeset/base/367227 Log: MFC r366197: Don't send a signal with uninitialized 'sig' and 'code' fields. We have a few shortcuts in the arm trap code to speed up obvious "must fail"

svn commit: r367226 - stable/12/sys/dev/extres/syscon

2020-10-31 Thread Michal Meloun
Author: mmel Date: Sat Oct 31 17:18:18 2020 New Revision: 367226 URL: https://svnweb.freebsd.org/changeset/base/367226 Log: MFC r366312: Fix the inverted condition in mtx_asserts. Mutex should be owned in affected functions. Modified:

svn commit: r367225 - stable/12/sys/dev/extres/syscon

2020-10-31 Thread Michal Meloun
Author: mmel Date: Sat Oct 31 17:10:55 2020 New Revision: 367225 URL: https://svnweb.freebsd.org/changeset/base/367225 Log: MFC r366161: Refine locking inside of syscon driver. In some cases, the syscon driver may be used by consumer requiring better control about locking (ie. it

svn commit: r367224 - in stable/12/sys/dev: extres/syscon fdt

2020-10-31 Thread Michal Meloun
Author: mmel Date: Sat Oct 31 17:09:25 2020 New Revision: 367224 URL: https://svnweb.freebsd.org/changeset/base/367224 Log: MFC r366156: Correctly handle nodes compatible with "syscon", "simple-bus". Syscon can also have child nodes that share a registration file with it. To do

svn commit: r367223 - stable/12/sys/dev/fdt

2020-10-31 Thread Michal Meloun
Author: mmel Date: Sat Oct 31 17:07:43 2020 New Revision: 367223 URL: https://svnweb.freebsd.org/changeset/base/367223 Log: MFC r342008,r363799,r366146: r342008: fdt: Add support for simple-mfd bus r363799: Allow child classes of simplebus to call attach directly

svn commit: r367222 - stable/12/sys/arm64/conf

2020-10-31 Thread Michal Meloun
Author: mmel Date: Sat Oct 31 16:51:19 2020 New Revision: 367222 URL: https://svnweb.freebsd.org/changeset/base/367222 Log: MFC r365929: Adjust DMA alignment for USB stack. It should be at least as large as the maximum value of caheline size for currently known CPUs. Modified:

svn commit: r367220 - stable/12

2020-10-31 Thread Michal Meloun
Author: mmel Date: Sat Oct 31 16:24:11 2020 New Revision: 367220 URL: https://svnweb.freebsd.org/changeset/base/367220 Log: MFC r363123,r363510: r363123: Reverse the processing order of assigned clocks property. Linux processes these clocks in reverse order and some DT

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

2020-10-31 Thread Michal Meloun
Author: mmel Date: Sat Oct 31 16:18:55 2020 New Revision: 367219 URL: https://svnweb.freebsd.org/changeset/base/367219 Log: MFC r362387: Improve DesignWare PCIe driver: - only normal memory window is mandatory, prefetchable memory and I/O windows should be optional - full

svn commit: r367218 - stable/12/sys/arm/mv

2020-10-31 Thread Michal Meloun
Author: mmel Date: Sat Oct 31 16:15:19 2020 New Revision: 367218 URL: https://svnweb.freebsd.org/changeset/base/367218 Log: MFC r363121: Fix the module name for some arm drivers. Module name (unlike of the of driver name) must be system wide unique. Modified:

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

2020-10-31 Thread Michal Meloun
Author: mmel Date: Sat Oct 31 16:05:24 2020 New Revision: 367217 URL: https://svnweb.freebsd.org/changeset/base/367217 Log: MFC r362388: Use native-sized accesses when accessing memory from kdb. Not all MMIO mapped devices supports byte access. Modified:

svn commit: r367216 - in stable/12/sys: arm/mv arm/mv/armada38x conf dev/pci modules/dtb/mv

2020-10-31 Thread Michal Meloun
ot;, 1 }, -#endif { NULL, 0 } }; Copied: stable/12/sys/arm/mv/mvebu_gpio.c (from r362385, head/sys/arm/mv/mvebu_gpio.c) ====== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ st

svn commit: r367215 - stable/12/sys/arm/nvidia

2020-10-31 Thread Michal Meloun
Author: mmel Date: Sat Oct 31 15:58:05 2020 New Revision: 367215 URL: https://svnweb.freebsd.org/changeset/base/367215 Log: MFC r362053: Fix grabbing of tegra uart. An attempt to write to FCR register may corrupt transmit FIFO, so we should wait for the FIFO to be empty before we

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

2020-10-31 Thread Michal Meloun
Author: mmel Date: Sat Oct 31 15:40:52 2020 New Revision: 367214 URL: https://svnweb.freebsd.org/changeset/base/367214 Log: MFC r360466: Export tracing facility of GIC500 ITS block. Possibility of tracing of processing message based interrupts is very useful for debugging of PCIe

svn commit: r367213 - stable/12/sys/kern

2020-10-31 Thread Michal Meloun
Author: mmel Date: Sat Oct 31 15:38:41 2020 New Revision: 367213 URL: https://svnweb.freebsd.org/changeset/base/367213 Log: MFC r360464: Don't try to set frequendcy for enumerated but never started CPUs. Modified: stable/12/sys/kern/kern_cpu.c Directory Properties: stable/12/

svn commit: r367212 - stable/12/libexec/rtld-elf/arm

2020-10-31 Thread Michal Meloun
Author: mmel Date: Sat Oct 31 15:36:41 2020 New Revision: 367212 URL: https://svnweb.freebsd.org/changeset/base/367212 Log: MFC r360463,r360469: r360463: Don't allow to use FPU inside of rtld library. Clang10 may use FPU instructions for optimizing operations with memory

svn commit: r367211 - stable/12/sys/arm64/rockchip

2020-10-31 Thread Michal Meloun
Author: mmel Date: Sat Oct 31 15:30:27 2020 New Revision: 367211 URL: https://svnweb.freebsd.org/changeset/base/367211 Log: MFC r360462: Don't try to re-initialize already preseted regulator. Modified: stable/12/sys/arm64/rockchip/rk805.c Directory Properties: stable/12/ (props

svn commit: r367210 - stable/12/sys/arm64/rockchip

2020-10-31 Thread Michal Meloun
Author: mmel Date: Sat Oct 31 15:28:21 2020 New Revision: 367210 URL: https://svnweb.freebsd.org/changeset/base/367210 Log: MFC r360293,r360461: r360293: Reorder initialization steps for given pin. If pin is switched from fixed function to GPIO, it should have prepared

svn commit: r367208 - in stable/12/sys: arm64/rockchip conf

2020-10-31 Thread Michal Meloun
, copy of r355755, head/sys/arm64/rockchip/rk_pcie_phy.c) @@ -0,0 +1,369 @@ +/*- + * 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 follow

svn commit: r367206 - in stable/12/sys: conf dev/pci

2020-10-31 Thread Michal Meloun
/12/sys/dev/pci/pci_dw.c Sat Oct 31 14:59:39 2020 (r367206, copy of r353774, head/sys/dev/pci/pci_dw.c) @@ -0,0 +1,697 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2019 Michal Meloun + * + * Redistribution and use in source and binary forms

svn commit: r367205 - in stable/12/sys: arm/mv arm64/conf conf

2020-10-31 Thread Michal Meloun
cu_teardown_intr(device_t dev, struct intr_i struct mv_cp110_icu_softc *sc; sc = device_get_softc(dev); + data = mv_cp110_icu_convert_map_data(sc, data); + if (data == NULL) + return (EINVAL); return (PIC_TEARDOWN_INTR(sc->par

svn commit: r366700 - head/stand/efi/loader

2020-10-14 Thread Michal Meloun
Author: mmel Date: Wed Oct 14 13:13:14 2020 New Revision: 366700 URL: https://svnweb.freebsd.org/changeset/base/366700 Log: Add 'netserver' command to EFI loader. In some environments is difficult to access bootp/dhcp configuration as "standard user". Add a command that allows to set

Re: svn commit: r366161 - head/sys/dev/extres/syscon

2020-10-01 Thread Michal Meloun
On 30.09.2020 18:33, Ed Maste wrote: > On Fri, 25 Sep 2020 at 12:44, Michal Meloun wrote: >> >> Author: mmel >> Date: Fri Sep 25 16:44:01 2020 >> New Revision: 366161 >> URL: https://svnweb.freebsd.org/changeset/base/366161 > > The pine64 in CI

svn commit: r366312 - head/sys/dev/extres/syscon

2020-10-01 Thread Michal Meloun
Author: mmel Date: Thu Oct 1 09:50:08 2020 New Revision: 366312 URL: https://svnweb.freebsd.org/changeset/base/366312 Log: Fix the inverted condition in mtx_asserts. Mutex should be owned in affected functions. Reborted by: emaste MFC after:4 weeks MFC with: r366161

Re: svn commit: r366196 - head/sys/arm64/conf

2020-09-28 Thread Michal Meloun
On 27.09.2020 19:51, Bjoern A. Zeeb wrote: > On 27 Sep 2020, at 10:15, Michal Meloun wrote: > >> Author: mmel >> Date: Sun Sep 27 10:15:03 2020 >> New Revision: 366196 >> URL: https://svnweb.freebsd.org/changeset/base/366196 >> >> Log: >>  

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

2020-09-28 Thread Michal Meloun
Author: mmel Date: Mon Sep 28 09:16:27 2020 New Revision: 366219 URL: https://svnweb.freebsd.org/changeset/base/366219 Log: Fix booting arm64 EFI with LINUX_BOOT_ABI enabled. Use address of the pointer passed to kernel to determine whether the pointer is a FDT block (physical address) or a

svn commit: r366200 - head/sys/arm64/qoriq/clk

2020-09-27 Thread Michal Meloun
Author: mmel Date: Sun Sep 27 16:15:03 2020 New Revision: 366200 URL: https://svnweb.freebsd.org/changeset/base/366200 Log: Check the result of the function, not the pointer to it. Modified: head/sys/arm64/qoriq/clk/qoriq_clkgen.c Modified: head/sys/arm64/qoriq/clk/qoriq_clkgen.c

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

2020-09-27 Thread Michal Meloun
Author: mmel Date: Sun Sep 27 11:37:17 2020 New Revision: 366197 URL: https://svnweb.freebsd.org/changeset/base/366197 Log: Don't send a signal with uninitialized 'sig' and 'code' fields. We have a few shortcuts in the arm trap code to speed up obvious "must fail" cases. In these

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

2020-09-27 Thread Michal Meloun
Author: mmel Date: Sun Sep 27 10:15:03 2020 New Revision: 366196 URL: https://svnweb.freebsd.org/changeset/base/366196 Log: Add LINUX_BOOT_ABI back to arm64 GENERIC kernel. It was removed in r355289 but forgot to return it back when new u-boot booti support was committed. Although booti

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

2020-09-27 Thread Michal Meloun
Author: mmel Date: Sun Sep 27 09:27:39 2020 New Revision: 366195 URL: https://svnweb.freebsd.org/changeset/base/366195 Log: Reapply r366193 with proper commit log. Don't map same physical memory multiple times with different cache attributes. This is explicitly stated as architectural

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

2020-09-27 Thread Michal Meloun
Author: mmel Date: Sun Sep 27 09:24:31 2020 New Revision: 366194 URL: https://svnweb.freebsd.org/changeset/base/366194 Log: Revert r366193, it was committed with unsaved commit log. Modified: head/sys/arm64/arm64/locore.S Modified: head/sys/arm64/arm64/locore.S

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

2020-09-27 Thread Michal Meloun
Author: mmel Date: Sun Sep 27 09:14:16 2020 New Revision: 366193 URL: https://svnweb.freebsd.org/changeset/base/366193 Log: Don't map same physical memory multiple times with different cache attributes. This is explicitly stated as architectural undefined behavior, leadint to coherencz

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

2020-09-27 Thread Michal Meloun
Author: mmel Date: Sun Sep 27 09:12:36 2020 New Revision: 366192 URL: https://svnweb.freebsd.org/changeset/base/366192 Log: Don't try to print EFI memeory map if it doesn't exist. MFC after: 1 week Modified: head/sys/arm64/arm64/machdep.c Modified: head/sys/arm64/arm64/machdep.c

svn commit: r366161 - head/sys/dev/extres/syscon

2020-09-25 Thread Michal Meloun
Author: mmel Date: Fri Sep 25 16:44:01 2020 New Revision: 366161 URL: https://svnweb.freebsd.org/changeset/base/366161 Log: Refine locking inside of syscon driver. In some cases, the syscon driver may be used by consumer requiring better control about locking (ie. it may be used as registe

svn commit: r366156 - in head/sys/dev: extres/syscon fdt

2020-09-25 Thread Michal Meloun
Author: mmel Date: Fri Sep 25 13:52:31 2020 New Revision: 366156 URL: https://svnweb.freebsd.org/changeset/base/366156 Log: Correctly handle nodes compatible with "syscon", "simple-bus". Syscon can also have child nodes that share a registration file with it. To do this correctly, follow

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

2020-09-25 Thread Michal Meloun
Author: mmel Date: Fri Sep 25 09:56:50 2020 New Revision: 366146 URL: https://svnweb.freebsd.org/changeset/base/366146 Log: Make simplebus friendlier for subclassing. MFC after:1 week Modified: head/sys/dev/fdt/simplebus.c head/sys/dev/fdt/simplebus.h Modified:

Re: svn commit: r365899 - in head: share/man/man9 sys/arm/include sys/arm64/arm64 sys/arm64/include sys/kern sys/mips/include sys/powerpc/include sys/riscv/include sys/sys sys/tools sys/x86/include

2020-09-24 Thread Michal Meloun
return (bus_space_poke_##width(tag, hnd, offset, value)); \ > ^ > :64:1: note: expanded from here > bus_space_poke_8 > ^ > 2 errors generated. > --- subr_csan.o --- > *** [subr_csan.o] Error code 1 > > >

svn commit: r366107 - head/sys/x86/include

2020-09-24 Thread Michal Meloun
Author: mmel Date: Thu Sep 24 08:40:32 2020 New Revision: 366107 URL: https://svnweb.freebsd.org/changeset/base/366107 Log: Add missing declarations of 64-bit variants of bus_peek/bus_poke on amd64. It fixes GENERIC-KCSAN build. Reported by: rpokala MFC after:1 month MFC with:

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

2020-09-20 Thread Michal Meloun
Author: mmel Date: Sun Sep 20 17:28:24 2020 New Revision: 365929 URL: https://svnweb.freebsd.org/changeset/base/365929 Log: Adjust DMA alignment for USB stack. It should be at least as large as the maximum value of caheline size for currently known CPUs. MFC after:2 weeks

svn commit: r365926 - in head/sys: arm/include mips/include powerpc/include riscv/include x86/include

2020-09-20 Thread Michal Meloun
Author: mmel Date: Sun Sep 20 15:11:52 2020 New Revision: 365926 URL: https://svnweb.freebsd.org/changeset/base/365926 Log: Add missing assignment forgotten in r365899 Noticed by: mav MFC after:1 month MFC with: r365899 Modified: head/sys/arm/include/bus.h

svn commit: r365900 - head/sys/arm64/rockchip

2020-09-19 Thread Michal Meloun
Author: mmel Date: Sat Sep 19 11:27:16 2020 New Revision: 365900 URL: https://svnweb.freebsd.org/changeset/base/365900 Log: Implement workaround for broken access to configuration space. Due to a HW bug in the RockChip PCIe implementation, attempting to access a non-existent register in the

svn commit: r365899 - in head: share/man/man9 sys/arm/include sys/arm64/arm64 sys/arm64/include sys/kern sys/mips/include sys/powerpc/include sys/riscv/include sys/sys sys/tools sys/x86/include

2020-09-19 Thread Michal Meloun
Author: mmel Date: Sat Sep 19 11:06:41 2020 New Revision: 365899 URL: https://svnweb.freebsd.org/changeset/base/365899 Log: Add NetBSD compatible bus_space_peek_N() and bus_space_poke_N() functions. One problem with the bus_space_read_N() and bus_space_write_N() family of functions is that

Re: svn commit: r365445 - head/sys/cam/mmc

2020-09-08 Thread Michal Meloun
On 08.09.2020 9:10, Andriy Gapon wrote: > On 08/09/2020 08:46, Andriy Gapon wrote: >> Author: avg >> Date: Tue Sep 8 05:46:10 2020 >> New Revision: 365445 >> URL: https://svnweb.freebsd.org/changeset/base/365445 >> >> Log: >> mmc_da: make sure that part_index is not used uninitialized in

Re: svn commit: r364737 - head/sys/dev/drm2

2020-09-01 Thread Michal Meloun
On 01.09.2020 15:32, Niclas Zeising wrote: > On 2020-09-01 15:16, Emmanuel Vadot wrote: >> On Tue, 1 Sep 2020 15:13:53 +0200 >> Michal Meloun wrote: >> >>> >>> >>> On 25.08.2020 0:53, Niclas Zeising wrote: >>>> Author: zeising (doc,p

Re: svn commit: r364737 - head/sys/dev/drm2

2020-09-01 Thread Michal Meloun
On 01.09.2020 15:16, Emmanuel Vadot wrote: > On Tue, 1 Sep 2020 15:13:53 +0200 > Michal Meloun wrote: > >> >> >> On 25.08.2020 0:53, Niclas Zeising wrote: >>> Author: zeising (doc,ports committer) >>> Date: Mon Aug 24 22:53:23 2020 >>> Ne

Re: svn commit: r364737 - head/sys/dev/drm2

2020-09-01 Thread Michal Meloun
On 25.08.2020 0:53, Niclas Zeising wrote: > Author: zeising (doc,ports committer) > Date: Mon Aug 24 22:53:23 2020 > New Revision: 364737 > URL: https://svnweb.freebsd.org/changeset/base/364737 > > Log: > drm2: Update deprecation message > > Update the deprecation message in the drm2

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

2020-08-29 Thread Michal Meloun
On 29.08.2020 13:02, Warner Losh wrote: > On Sat, Aug 29, 2020 at 4:38 AM Michal Meloun > wrote: > >> >> >> On 29.08.2020 12:04, Warner Losh wrote: >>> On Sat, Aug 29, 2020 at 1:09 AM Mateusz Guzik wrote: >>> >>>> This crashes on b

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

2020-08-29 Thread Michal Meloun
On 29.08.2020 12:04, Warner Losh wrote: > On Sat, Aug 29, 2020 at 1:09 AM Mateusz Guzik wrote: > >> This crashes on boot for me: >> > > I wasn't able to get it to crash on boot for me, but I was able to recreate > it. It crashed on ofw based systems where some enumerated devices have not a

Re: svn commit: r363700 - in head/sys: arm/ti arm/ti/am335x arm/ti/clk arm/ti/cpsw arm/ti/omap4 arm/ti/usb dev/uart modules

2020-08-01 Thread Michal Meloun
Oups, next module dependency on autogenerated header... Fixed in r363758. Thanks for report Michal On 01.08.2020 6:39, Mateusz Guzik wrote: > This breaks tinderbox for several arm kernels. > > On 7/30/20, Michal Meloun wrote: >> Author: mmel >> Date: Thu Jul 30 14:45:05

svn commit: r363758 - head/sys/modules/cpsw

2020-08-01 Thread Michal Meloun
Author: mmel Date: Sat Aug 1 09:06:16 2020 New Revision: 363758 URL: https://svnweb.freebsd.org/changeset/base/363758 Log: Add missing dependency for cpsw module. Reported by: mjg MFC with: r363700 Modified: head/sys/modules/cpsw/Makefile Modified:

svn commit: r363700 - in head/sys: arm/ti arm/ti/am335x arm/ti/clk arm/ti/cpsw arm/ti/omap4 arm/ti/usb dev/uart modules

2020-07-30 Thread Michal Meloun
Author: mmel Date: Thu Jul 30 14:45:05 2020 New Revision: 363700 URL: https://svnweb.freebsd.org/changeset/base/363700 Log: Move Ti AM335x to dev/extres/clk framework. Re-implement clocks for these SoC by using now standard extres/clk framework. This is necessary for future expansion of

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

2020-07-25 Thread Michal Meloun
Author: mmel Date: Sat Jul 25 06:32:23 2020 New Revision: 363510 URL: https://svnweb.freebsd.org/changeset/base/363510 Log: Revert r363123. As Emanuel poited me the Linux processes these clock assignments in forward order, not in reversed. I misread the original code. Tha problem with

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

2020-07-12 Thread Michal Meloun
Author: mmel Date: Sun Jul 12 07:59:15 2020 New Revision: 363123 URL: https://svnweb.freebsd.org/changeset/base/363123 Log: Reverse the processing order of assigned clocks property. Linux processes these clocks in reverse order and some DT relies on this fact. For example, the frequency

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

2020-07-12 Thread Michal Meloun
Author: mmel Date: Sun Jul 12 07:42:21 2020 New Revision: 363122 URL: https://svnweb.freebsd.org/changeset/base/363122 Log: Assigned clocks: fix off-by-one bug, don't leak allocated memory. MFC after: 1 week Modified: head/sys/dev/extres/clk/clk.c Modified:

  1   2   3   4   5   >