svn commit: r314914 - head/sys/dev/sdhci

2017-03-08 Thread Michal Meloun
Author: mmel Date: Wed Mar 8 14:52:03 2017 New Revision: 314914 URL: https://svnweb.freebsd.org/changeset/base/314914 Log: Release all previously allocated resources. Modified: head/sys/dev/sdhci/sdhci_fdt_gpio.c Modified: head/sys/dev/sdhci/sdhci_fdt_gpio.c

Re: svn commit: r315051 - in head: . gnu/usr.bin gnu/usr.bin/diff usr.bin usr.bin/diff usr.bin/diff/tests

2017-03-13 Thread Michal Meloun
On 11.03.2017 6:01, Baptiste Daroussin wrote: > Author: bapt > Date: Sat Mar 11 05:01:29 2017 > New Revision: 315051 > URL: https://svnweb.freebsd.org/changeset/base/315051 > > Log: > Import diff from OpenBSD and remove GNU diff > > Some of the modifications from the previous summer of

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

2017-03-10 Thread Michal Meloun
Author: mmel Date: Sat Mar 11 07:07:41 2017 New Revision: 315059 URL: https://svnweb.freebsd.org/changeset/base/315059 Log: Split overbloated machep.c to multiple files and do basic cleanup of these fragments. Added: head/sys/arm/arm/machdep_boot.c - copied, changed from r315058,

svn commit: r314907 - head/contrib/compiler-rt/lib/builtins

2017-03-08 Thread Michal Meloun
Author: mmel Date: Wed Mar 8 11:40:27 2017 New Revision: 314907 URL: https://svnweb.freebsd.org/changeset/base/314907 Log: Unbreak ARMv6 world. The new compiler_rt library imported with clang 4.0.0 have several fatal issues (non-functional __udivsi3 for example) with ARM specific

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

2017-03-05 Thread Michal Meloun
Author: mmel Date: Sun Mar 5 15:34:32 2017 New Revision: 314703 URL: https://svnweb.freebsd.org/changeset/base/314703 Log: Add support for card detect and write protect gpio pins to Tegra SDHCI. Modified: head/sys/arm/nvidia/tegra_sdhci.c Modified: head/sys/arm/nvidia/tegra_sdhci.c

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

2017-05-09 Thread Michal Meloun
Author: mmel Date: Tue May 9 11:05:32 2017 New Revision: 318021 URL: https://svnweb.freebsd.org/changeset/base/318021 Log: Introduce pmap_remap_vm_attr(), it allows to remap one VM memattr class to another. This function is intent to be used as workaround for various SoC bugs, mainly

Re: svn commit: r318336 - head/sys/arm/mv

2017-05-16 Thread Michal Meloun
On 16.05.2017 6:47, Luiz Otavio O Souza wrote: > Author: loos > Date: Tue May 16 04:47:50 2017 > New Revision: 318336 > URL: https://svnweb.freebsd.org/changeset/base/318336 > > Log: > Add the SDHCI Address Decoder registers and routines for ARMADA 38X. > > Tested on: ClearFog Pro >

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

2017-05-13 Thread Michal Meloun
Author: mmel Date: Sat May 13 10:00:24 2017 New Revision: 318251 URL: https://svnweb.freebsd.org/changeset/base/318251 Log: Clarify usage rules for pmap_remap_vm_attr(). Not a functional change. MFC with: r318021 MFC after:2 weeks Modified: head/sys/arm/arm/pmap-v6.c

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

2017-05-10 Thread Michal Meloun
On 09.05.2017 17:09, Andrew Turner wrote: >> On 9 May 2017, at 13:40, Michal Meloun <melounmic...@gmail.com> wrote: >> >> >> >> On 09.05.2017 13:34, Andrew Turner wrote: >>>> On 9 May 2017, at 12:05, Michal Meloun <m...@freebsd.org> wrote:

svn commit: r318135 - head/contrib/binutils/gas/config

2017-05-09 Thread Michal Meloun
Author: mmel Date: Wed May 10 05:07:41 2017 New Revision: 318135 URL: https://svnweb.freebsd.org/changeset/base/318135 Log: Fix parsing of 'vmov Q.F32,Q.F32' instruction. parse_qfloat_immediate() accidentaly parses register with size qualifier as immediate constant (It takes '.'

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

2017-05-09 Thread Michal Meloun
Author: mmel Date: Tue May 9 12:32:31 2017 New Revision: 318025 URL: https://svnweb.freebsd.org/changeset/base/318025 Log: Revert accidentally changed std.armv6 in r318024. MFC with: r318024 MFC after:2 weeks Modified: head/sys/arm/conf/std.armv6 Modified:

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

2017-05-09 Thread Michal Meloun
On 09.05.2017 13:34, Andrew Turner wrote: >> On 9 May 2017, at 12:05, Michal Meloun <m...@freebsd.org> wrote: >> >> Author: mmel >> Date: Tue May 9 11:05:32 2017 >> New Revision: 318021 >> URL: https://svnweb.freebsd.org/changeset/base/318021 &

svn commit: r318024 - in head: contrib/gcc contrib/gcc/config/arm sys/arm/conf

2017-05-09 Thread Michal Meloun
Author: mmel Date: Tue May 9 12:14:00 2017 New Revision: 318024 URL: https://svnweb.freebsd.org/changeset/base/318024 Log: Fix _Unwind_Backtrace symbol version for ARM. In real GNU libgcc, _Unwind_Backtrace is published with GCC_3.3 version for all architectures but ARM. For ARM it's

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

2017-05-19 Thread Michal Meloun
Author: mmel Date: Fri May 19 11:45:14 2017 New Revision: 318530 URL: https://svnweb.freebsd.org/changeset/base/318530 Log: Increase maximum text segment size. LLVM binaries are huge... MFC after:3 days Modified: head/sys/arm/include/vmparam.h Modified:

svn commit: r319047 - in head/lib/msun: . man src

2017-05-28 Thread Michal Meloun
Author: mmel Date: Sun May 28 06:13:38 2017 New Revision: 319047 URL: https://svnweb.freebsd.org/changeset/base/319047 Log: Implement sincos, sincosf, and sincosl. The primary benefit of these functions is that argument reduction is done once instead of twice in independent calls to sin()

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

2017-06-13 Thread Michal Meloun
Author: mmel Date: Tue Jun 13 12:07:18 2017 New Revision: 319896 URL: https://svnweb.freebsd.org/changeset/base/319896 Log: Implement tunable CPU quirks. These quirks are intended for optimizing CPU performance, not for applying errata workarounds. Nobody can expect that CPU with unfixed

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

2017-06-17 Thread Michal Meloun
Author: mmel Date: Sat Jun 17 14:36:25 2017 New Revision: 320054 URL: https://svnweb.freebsd.org/changeset/base/320054 Log: Manually load tunable CPU quirks. These are needed too early, far before SYSINIT is processed. Reported by: zbb Pointy hat to:mmel MFC after:3

Re: svn commit: r320062 - in head/sys: fs/nfs fs/nfsclient kern sys

2017-06-18 Thread Michal Meloun
On 18.06.2017 0:24, Rick Macklem wrote: > Author: rmacklem > Date: Sat Jun 17 22:24:19 2017 > New Revision: 320062 > URL: https://svnweb.freebsd.org/changeset/base/320062 > > Log: > Make MAXBCACHEBUF a tunable called vfs.maxbcachebuf. > > By making MAXBCACHEBUF a tunable, it can be

svn commit: r324660 - in head: lib/libc/arm/gen sys/arm/arm sys/arm/include

2017-10-16 Thread Michal Meloun
ause file is newly added) +++ head/lib/libc/arm/gen/getcontextx.c Mon Oct 16 12:53:54 2017 (r324660) @@ -0,0 +1,99 @@ +/* + * Copyright (c) 2017 Michal Meloun <m...@freebsd.org> + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * mod

svn commit: r326232 - head/lib/libzstd

2017-11-26 Thread Michal Meloun
Author: mmel Date: Sun Nov 26 16:41:30 2017 New Revision: 326232 URL: https://svnweb.freebsd.org/changeset/base/326232 Log: Addd work around for LLVM bug 35023. Clang crashes when compiling zstd_compress.c with optimization for ARM targets. https://bugs.llvm.org/show_bug.cgi?id=35023

svn commit: r325364 - head/lib/libc/gen

2017-11-03 Thread Michal Meloun
Author: mmel Date: Fri Nov 3 15:57:27 2017 New Revision: 325364 URL: https://svnweb.freebsd.org/changeset/base/325364 Log: Add alignment support to __libc_allocate_tls(). For statically linked binaries, where all relocation are solved by static linker, the linker expect that offset to

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

2017-11-05 Thread Michal Meloun
Author: mmel Date: Sun Nov 5 16:52:54 2017 New Revision: 325438 URL: https://svnweb.freebsd.org/changeset/base/325438 Log: All CP15 registers are bit fields or counters, don't use signed type when accessing them. MFC after:3 weeks Modified: head/sys/arm/include/cpu-v4.h

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

2017-11-05 Thread Michal Meloun
Author: mmel Date: Sun Nov 5 17:14:44 2017 New Revision: 325439 URL: https://svnweb.freebsd.org/changeset/base/325439 Log: Remove support for ARMv6/v7 platform from elf_trampoline. The elf_trampoline.c is not connected to build for ARMv6/v7 for long time and it uses outdated low level

svn commit: r326740 - head/contrib/jemalloc/include/jemalloc/internal

2017-12-10 Thread Michal Meloun
Author: mmel Date: Sun Dec 10 08:55:48 2017 New Revision: 326740 URL: https://svnweb.freebsd.org/changeset/base/326740 Log: Relax too restrictive assert. The problem has been reported to upstream and similar change will be included in next jemalloc release. Submitted by: David

svn commit: r326741 - head/contrib/jemalloc/include/jemalloc/internal

2017-12-10 Thread Michal Meloun
Author: mmel Date: Sun Dec 10 09:15:37 2017 New Revision: 326741 URL: https://svnweb.freebsd.org/changeset/base/326741 Log: Revert r326740. I committed wrong diff. Modified: head/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h Modified:

svn commit: r326742 - head/contrib/jemalloc/include/jemalloc/internal

2017-12-10 Thread Michal Meloun
Author: mmel Date: Sun Dec 10 09:17:21 2017 New Revision: 326742 URL: https://svnweb.freebsd.org/changeset/base/326742 Log: Relax too restrictive assert. The problem has been reported to upstream and similar change will be included in next jemalloc release. Submitted by: David

svn commit: r326794 - head/lib/libc/gen

2017-12-12 Thread Michal Meloun
Author: mmel Date: Tue Dec 12 11:25:30 2017 New Revision: 326794 URL: https://svnweb.freebsd.org/changeset/base/326794 Log: Rework alignment handling in __libc_allocate_tls() for Variant I of TLS layout. There are two versions of variant I of TLS - ARM and aarch64 uses original version

svn commit: r325103 - head/lib/libthr/arch/arm/include

2017-10-29 Thread Michal Meloun
Author: mmel Date: Sun Oct 29 14:26:37 2017 New Revision: 325103 URL: https://svnweb.freebsd.org/changeset/base/325103 Log: Fix misleading comment. Not a functional change. MFC after:3 days Modified: head/lib/libthr/arch/arm/include/pthread_md.h Modified:

svn commit: r324815 - in head: lib/libc/gen sys/sys

2017-10-21 Thread Michal Meloun
head/sys/sys/auxv.h Sat Oct 21 12:06:18 2017 (r324815) @@ -0,0 +1,37 @@ +/*- + * Copyright (c) 2017 Michal Meloun + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. R

svn commit: r324814 - in head/sys: arm/include arm64/include kern mips/include powerpc/include riscv/include sparc64/include sys x86/include

2017-10-21 Thread Michal Meloun
Author: mmel Date: Sat Oct 21 12:05:01 2017 New Revision: 324814 URL: https://svnweb.freebsd.org/changeset/base/324814 Log: Add AT_HWCAP2 ELF auxiliary vector. - allocate value for new AT_HWCAP2 auxiliary vector on all platforms. - expand 'struct sysentvec' by new 'u_long *sv_hwcap2', in

svn commit: r324816 - head/sys/sys

2017-10-21 Thread Michal Meloun
Author: mmel Date: Sat Oct 21 12:15:12 2017 New Revision: 324816 URL: https://svnweb.freebsd.org/changeset/base/324816 Log: Add C++ decoration to auxv.v forgotten in r324815. MFC after:1 month Modified: head/sys/sys/auxv.h Modified: head/sys/sys/auxv.h

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

2017-10-21 Thread Michal Meloun
Author: mmel Date: Sat Oct 21 12:16:21 2017 New Revision: 324817 URL: https://svnweb.freebsd.org/changeset/base/324817 Log: Fullify implementation of AT_HWCAP and AT_HWCAP2 for ARMv6,7. This makes elf_aux_info(3) useable for ARM ports. MFC after:1 month Modified:

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

2017-10-21 Thread Michal Meloun
Author: mmel Date: Sat Oct 21 15:48:16 2017 New Revision: 324821 URL: https://svnweb.freebsd.org/changeset/base/324821 Log: Fix spelling. Reported by: lidl MFC after:1 month Modified: head/sys/arm/arm/cpuinfo.c Modified: head/sys/arm/arm/cpuinfo.c

svn commit: r335249 - head/sys/dev/extres/regulator

2018-06-16 Thread Michal Meloun
Author: mmel Date: Sat Jun 16 08:25:38 2018 New Revision: 335249 URL: https://svnweb.freebsd.org/changeset/base/335249 Log: Fix handling of enable counter for shared GPIO line in fixed regulator. For most regulators, the regulator_stop() method can be transformed to regulator disable.

Re: svn commit: r335173 - head/sys/dev/extres/regulator

2018-06-15 Thread Michal Meloun
On 14.06.2018 22:37, Kyle Evans wrote: > Author: kevans > Date: Thu Jun 14 20:37:25 2018 > New Revision: 335173 > URL: https://svnweb.freebsd.org/changeset/base/335173 > > Log: > extres/regulator: Properly refcount gpio regulators > > regnode::enable_cnt is generally used to refcount

Re: svn commit: r324938 - head/contrib/jemalloc/include/jemalloc/internal

2017-10-27 Thread Michal Meloun
On 23.10.2017 23:31, Dimitry Andric wrote: > Author: dim > Date: Mon Oct 23 21:31:04 2017 > New Revision: 324938 > URL: https://svnweb.freebsd.org/changeset/base/324938 > > Log: > After jemalloc was updated to version 5.0.0 in r319971, i386 executables > linked with AddressSanitizer (even

Re: svn commit: r324938 - head/contrib/jemalloc/include/jemalloc/internal

2017-10-27 Thread Michal Meloun
On 27.10.2017 9:53, Dimitry Andric wrote: > On 27 Oct 2017, at 08:33, Michal Meloun <melounmic...@gmail.com> wrote: >> >> On 23.10.2017 23:31, Dimitry Andric wrote: >>> Author: dim >>> Date: Mon Oct 23 21:31:04 2017 >>> New Revision: 324938 &g

Re: svn commit: r324938 - head/contrib/jemalloc/include/jemalloc/internal

2017-10-27 Thread Michal Meloun
iginal data was copied to unaligned address. because for aligned binary p *tsd is {state = 0 '\000', ... p *(tsd - 8 bytes) is {state = 5 '\005' I'm right? Kib, please, can you help us? On 27.10.2017 9:53, Dimitry Andric wrote: > On 27 Oct 2017, at 08:33, Michal Meloun <melounmic...@gm

Re: svn commit: r325042 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2017-10-27 Thread Michal Meloun
On 27.10.2017 18:23, Ed Maste wrote: > Author: emaste > Date: Fri Oct 27 16:23:45 2017 > New Revision: 325042 > URL: https://svnweb.freebsd.org/changeset/base/325042 > > Log: > libdtrace: replace "DOODAD" with more descriptive string > > Previously some unimplemented libdtrace routines

Re: svn commit: r324938 - head/contrib/jemalloc/include/jemalloc/internal

2017-10-27 Thread Michal Meloun
On 27.10.2017 17:21, Brooks Davis wrote: > On Fri, Oct 27, 2017 at 06:08:41PM +0300, Konstantin Belousov > wrote: >> On Fri, Oct 27, 2017 at 02:53:26PM +0200, Michal Meloun wrote: >>> Sorry for top posting That's pity, we have clear problem in

Re: svn commit: r324938 - head/contrib/jemalloc/include/jemalloc/internal

2017-10-27 Thread Michal Meloun
On Fri, Oct 27, 2017 at 19:48:43 +0200, Michal Meloun wrote: > On 27.10.2017 17:21, Brooks Davis wrote: >> On Fri, Oct 27, 2017 at 06:08:41PM +0300, Konstantin Belousov >> wrote: >>> On Fri, Oct 27, 2017 at 02:53:26PM +0200, Michal Meloun wrote: >>>> Sorry

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

2018-01-11 Thread Michal Meloun
Author: mmel Date: Thu Jan 11 15:03:01 2018 New Revision: 327827 URL: https://svnweb.freebsd.org/changeset/base/327827 Log: Initialize CONTEXTIDR register on secondary cores by zero, not with undefined value from X1 register. MFC after:1 month Modified:

svn commit: r328201 - in head/sys: arm/allwinner arm/nvidia arm/nvidia/tegra124 conf dev/extres/phy dev/usb/controller

2018-01-20 Thread Michal Meloun
Author: mmel Date: Sat Jan 20 17:02:17 2018 New Revision: 328201 URL: https://svnweb.freebsd.org/changeset/base/328201 Log: Convert extres/phy to kobj model. Similarly as other extres pseudo-drivers, implement phy by using kobj model. This detaches it from provider device, so single device

Re: svn commit: r327876 - in head/sys/arm64: arm64 include

2018-01-12 Thread Michal Meloun
On 12.01.2018 15:54, Warner Losh wrote: On Fri, Jan 12, 2018 at 7:52 AM, Andrew Turner > wrote: On 12 Jan 2018, at 14:37, Warner Losh > wrote: On Fri, Jan 12, 2018 at 7:15 AM, Andrew

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

2018-01-27 Thread Michal Meloun
Author: mmel Date: Sat Jan 27 11:19:41 2018 New Revision: 328467 URL: https://svnweb.freebsd.org/changeset/base/328467 Log: Implement mitigation for Spectre version 2 attacks on ARMv7. Similarly as we already do for arm64, for mitigation is necessary to flush branch predictor when we:

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

2018-01-27 Thread Michal Meloun
Author: mmel Date: Sat Jan 27 09:49:47 2018 New Revision: 328466 URL: https://svnweb.freebsd.org/changeset/base/328466 Log: Fix pmap_fault(). - special fault handling for break-before-make mechanism should be also applied for instruction translation faults, not only for data

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

2018-01-28 Thread Michal Meloun
Author: mmel Date: Sun Jan 28 15:02:49 2018 New Revision: 328510 URL: https://svnweb.freebsd.org/changeset/base/328510 Log: Fix handling of I-cache sync operations - pmap_enter_object() can be used for mapping of executable pages, so it's necessary to handle I-cache synchronization

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

2018-01-29 Thread Michal Meloun
Author: mmel Date: Tue Jan 30 04:06:30 2018 New Revision: 328586 URL: https://svnweb.freebsd.org/changeset/base/328586 Log: Use more verbose panic messages. MFC after: 2 weeks Modified: head/sys/dev/extres/clk/clk.c Modified: head/sys/dev/extres/clk/clk.c

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

2018-01-29 Thread Michal Meloun
Author: mmel Date: Tue Jan 30 04:05:03 2018 New Revision: 328585 URL: https://svnweb.freebsd.org/changeset/base/328585 Log: Revert r328511, it was committed with .diff instead of .txt as commit log. Modified: head/sys/dev/extres/clk/clk.c Modified: head/sys/dev/extres/clk/clk.c

Re: svn commit: r328511 - head/sys/dev/extres/clk

2018-01-29 Thread Michal Meloun
On 29.01.2018 18:46, John Baldwin wrote: On Sunday, January 28, 2018 03:20:45 PM Michal Meloun wrote: Author: mmel Date: Sun Jan 28 15:20:45 2018 New Revision: 328511 URL: https://svnweb.freebsd.org/changeset/base/328511 Log: diff --git a/sys/dev/extres/clk/clk.c b/sys/dev/extres/clk

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

2018-01-28 Thread Michal Meloun
Author: mmel Date: Sun Jan 28 15:20:45 2018 New Revision: 328511 URL: https://svnweb.freebsd.org/changeset/base/328511 Log: diff --git a/sys/dev/extres/clk/clk.c b/sys/dev/extres/clk/clk.c index c6a1f466ceb..c3708a0ce27 100644 --- a/sys/dev/extres/clk/clk.c +++ b/sys/dev/extres/clk/clk.c

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

2018-01-28 Thread Michal Meloun
Author: mmel Date: Sun Jan 28 15:33:32 2018 New Revision: 328512 URL: https://svnweb.freebsd.org/changeset/base/328512 Log: Remove #endif forgotten in r328510. Pointy hat: mmel Modified: head/sys/arm64/arm64/pmap.c Modified: head/sys/arm64/arm64/pmap.c

svn commit: r337704 - in head/sys/dev/usb: . net

2018-08-13 Thread Michal Meloun
Author: mmel Date: Mon Aug 13 07:28:25 2018 New Revision: 337704 URL: https://svnweb.freebsd.org/changeset/base/337704 Log: Add USB ID for rebranded RTL8153 found on NVIDIA Jetson TX1 board. MFC after:3 days Modified: head/sys/dev/usb/net/if_ure.c head/sys/dev/usb/usbdevs

Re: svn commit: r337978 - in head/libexec/rtld-elf: . aarch64 arm mips powerpc powerpc64 riscv

2018-08-20 Thread Michal Meloun
On 17.08.2018 18:19, Brooks Davis wrote: > Author: brooks > Date: Fri Aug 17 16:19:47 2018 > New Revision: 337978 > URL: https://svnweb.freebsd.org/changeset/base/337978 > > Log: > Rework rtld's TLS Variant I implementation to match r326794 > > The above commit fixed handling

Re: svn commit: r337978 - in head/libexec/rtld-elf: . aarch64 arm mips powerpc powerpc64 riscv

2018-08-20 Thread Michal Meloun
On 20.08.2018 18:02, Kyle Evans wrote: > On Mon, Aug 20, 2018 at 11:00 AM, Michal Meloun > wrote: >> >> >> On 17.08.2018 18:19, Brooks Davis wrote: >>> Author: brooks >>> Date: Fri Aug 17 16:19:47 2018 >>> New Revision: 337978 >&g

svn commit: r338317 - head/libexec/rtld-elf/arm

2018-08-25 Thread Michal Meloun
Author: mmel Date: Sat Aug 25 16:54:37 2018 New Revision: 338317 URL: https://svnweb.freebsd.org/changeset/base/338317 Log: Fix wrong offset calculation for R_ARM_TLS_TPOFF32 relocations. TLS_TCB_SIZE is already accounted in defobj-> tlsoffset so all these symbols were incorrectly relocated

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

2018-07-18 Thread Michal Meloun
Author: mmel Date: Wed Jul 18 10:33:07 2018 New Revision: 336454 URL: https://svnweb.freebsd.org/changeset/base/336454 Log: Remove the dead code from ARM cpufunc_* files. The elf trampoline was never been supported for ARMv6 and ARMv7 and was disconnected from kernel build many months ago.

Re: svn commit: r324815 - in head: lib/libc/gen sys/sys

2018-09-06 Thread Michal Meloun
On 02.09.2018 18:44, Ian Lepore wrote: > On Sun, 2018-09-02 at 16:16 +0200, Jan Beich wrote: >> Michal Meloun writes: >> >>> >>> Author: mmel >>> Date: Sat Oct 21 12:06:18 2017 >>> New Revision: 324815 >>> URL: https://svnw

Re: svn commit: r327876 - in head/sys/arm64: arm64 include

2018-01-13 Thread Michal Meloun
On 14.01.2018 0:54, Marcin Wojtas wrote: Hi Michal, 2018-01-12 18:15 GMT+01:00 Michal Meloun <melounmic...@gmail.com>: On 12.01.2018 15:54, Warner Losh wrote: On Fri, Jan 12, 2018 at 7:52 AM, Andrew Turner <and...@freebsd.org <mailto:and...@freebsd.org>> wrote:

Re: svn commit: r330072 - in head/sys: arm/broadcom/bcm2835 dts/arm

2018-02-27 Thread Michal Meloun
On 27.02.2018 16:31, Rodney W. Grimes wrote: Author: mmel Date: Tue Feb 27 15:01:17 2018 New Revision: 330072 URL: https://svnweb.freebsd.org/changeset/base/330072 Log: Switch to mainstream DTS for Raspberry Pi-B and Pi-2. This is first step in attempt to make FreeBSD compatible with

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

2018-02-27 Thread Michal Meloun
Author: mmel Date: Tue Feb 27 16:08:08 2018 New Revision: 330074 URL: https://svnweb.freebsd.org/changeset/base/330074 Log: Define meaning of remaining clock rounding flags combinations. MFC after: 2 weeks Modified: head/sys/dev/extres/clk/clk.h Modified: head/sys/dev/extres/clk/clk.h

svn commit: r330073 - head/libexec/rtld-elf/aarch64

2018-02-27 Thread Michal Meloun
Author: mmel Date: Tue Feb 27 15:35:11 2018 New Revision: 330073 URL: https://svnweb.freebsd.org/changeset/base/330073 Log: Make rtld_bind_start() debugger friendly. Save link register and annotate call frame structure so debugger can unwind call frame created by rtld_bind_start(). MFC

svn commit: r330072 - in head/sys: arm/broadcom/bcm2835 dts/arm

2018-02-27 Thread Michal Meloun
Author: mmel Date: Tue Feb 27 15:01:17 2018 New Revision: 330072 URL: https://svnweb.freebsd.org/changeset/base/330072 Log: Switch to mainstream DTS for Raspberry Pi-B and Pi-2. This is first step in attempt to make FreeBSD compatible with all variants of RPi boards. Reviewed by:

Re: svn commit: r340157 - in head: . tools/build tools/tools/nanobsd/embedded

2018-11-05 Thread Michal Meloun
On 05.11.2018 20:51, Alex Richardson wrote: > Author: arichardson > Date: Mon Nov 5 19:51:10 2018 > New Revision: 340157 > URL: https://svnweb.freebsd.org/changeset/base/340157 > > Log: > Allow building world without inheriting $PATH > > Inheriting $PATH during the build phase can

svn commit: r342113 - in head/libexec/rtld-elf: . aarch64 amd64 arm i386 mips powerpc powerpc64 riscv sparc64

2018-12-15 Thread Michal Meloun
Author: mmel Date: Sat Dec 15 10:38:07 2018 New Revision: 342113 URL: https://svnweb.freebsd.org/changeset/base/342113 Log: Improve R_AARCH64_TLSDESC relocation. The original code did not support dynamically loaded libraries and used suboptimal access to TLS variables. New implementation

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

2018-12-01 Thread Michal Meloun
Author: mmel Date: Sun Dec 2 07:39:16 2018 New Revision: 341393 URL: https://svnweb.freebsd.org/changeset/base/341393 Log: Return computed real memory size, not a value from similarly named global variable. MFC after:1 week Modified: head/sys/arm/arm/physmem.c Modified:

svn commit: r341513 - head/libexec/rtld-elf/aarch64

2018-12-05 Thread Michal Meloun
Author: mmel Date: Wed Dec 5 10:30:53 2018 New Revision: 341513 URL: https://svnweb.freebsd.org/changeset/base/341513 Log: Tidy up arm64 reloc_jmpslots() implementation. - don't relocate jump slots multiple times (if LD_BIND_NOW is defined). - process only R_AARCH64_JUMP_SLOT here, other

svn commit: r341511 - head/libexec/rtld-elf/aarch64

2018-12-05 Thread Michal Meloun
Author: mmel Date: Wed Dec 5 10:22:14 2018 New Revision: 341511 URL: https://svnweb.freebsd.org/changeset/base/341511 Log: Fix style(9). Not a functional change. MFC after:1 week Modified: head/libexec/rtld-elf/aarch64/reloc.c head/libexec/rtld-elf/aarch64/rtld_start.S

svn commit: r341512 - head/libexec/rtld-elf/aarch64

2018-12-05 Thread Michal Meloun
Author: mmel Date: Wed Dec 5 10:23:38 2018 New Revision: 341512 URL: https://svnweb.freebsd.org/changeset/base/341512 Log: Implement arm64 version of __tls_get_addr(). MFC after:1 week Modified: head/libexec/rtld-elf/aarch64/reloc.c Modified: head/libexec/rtld-elf/aarch64/reloc.c

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

2018-12-07 Thread Michal Meloun
Author: mmel Date: Fri Dec 7 11:10:27 2018 New Revision: 341679 URL: https://svnweb.freebsd.org/changeset/base/341679 Log: Fix cut typo in atomic_fetchadd_64(). Reported by: Jia-Shiun Li MFC after:1 week Modified: head/sys/arm/include/atomic-v6.h Modified:

svn commit: r341738 - head/libexec/rtld-elf/aarch64

2018-12-08 Thread Michal Meloun
Author: mmel Date: Sat Dec 8 14:58:17 2018 New Revision: 341738 URL: https://svnweb.freebsd.org/changeset/base/341738 Log: Implement R_AARCH64_TLS_DTPMOD64 and A_AARCH64_TLS_DTPREL64 relocations. Although these are slightly obsolete in favor of R_AARCH64_TLSDESC, gcc -mtls-dialect=trad

svn commit: r343498 - head/sys/dev/extres/phy

2019-01-27 Thread Michal Meloun
Author: mmel Date: Sun Jan 27 15:50:36 2019 New Revision: 343498 URL: https://svnweb.freebsd.org/changeset/base/343498 Log: Properly define and declare phynode_topo_lock, it should be single global variable. X-MFC with: r340845 Noticed by: phynode_topo_lock Modified:

svn commit: r345299 - head/sys/dev/psci

2019-03-19 Thread Michal Meloun
Author: mmel Date: Tue Mar 19 15:42:11 2019 New Revision: 345299 URL: https://svnweb.freebsd.org/changeset/base/345299 Log: PSCI: Don't take missing implementation of psci get_version() as fatal. Minimalistic PSCI implementation in U-Boot doesn't implement get_version() method for some SoC.

svn commit: r345297 - head/sys/dev/cpufreq

2019-03-19 Thread Michal Meloun
Author: mmel Date: Tue Mar 19 14:34:53 2019 New Revision: 345297 URL: https://svnweb.freebsd.org/changeset/base/345297 Log: Improve cpufreq_dt. - older DT can use 'cpu0-supply' property for power supply binding. - don't expect that actual CPU frequency is contained in CPU operational

svn commit: r345295 - in head/sys/dev/extres: phy regulator syscon

2019-03-19 Thread Michal Meloun
Author: mmel Date: Tue Mar 19 14:30:54 2019 New Revision: 345295 URL: https://svnweb.freebsd.org/changeset/base/345295 Log: extres: Unify error codes for _get_by_ofw_property() methods. Return: - ENOENT if requested property doesn't exist - ENODEV if producer device is not (yet)

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

2019-03-19 Thread Michal Meloun
Author: mmel Date: Tue Mar 19 14:32:54 2019 New Revision: 345296 URL: https://svnweb.freebsd.org/changeset/base/345296 Log: Use named field's initializer when constructing _platform structure. In current code, the delay argument in FDT_PLATFORM_DEF(2) improperly initialize refs field from

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

2019-02-10 Thread Michal Meloun
Author: mmel Date: Sun Feb 10 14:25:29 2019 New Revision: 343962 URL: https://svnweb.freebsd.org/changeset/base/343962 Log: Properly handle alignment requests bigger that page size. - for now, alignments bigger that page size is allowed only for buffers allocated by bus_dmamem_alloc(),

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

2019-02-10 Thread Michal Meloun
Author: mmel Date: Sun Feb 10 14:30:15 2019 New Revision: 343963 URL: https://svnweb.freebsd.org/changeset/base/343963 Log: Don't allocate same clock twice.. MFC after:1 week Reported by: jah Modified: head/sys/arm/nvidia/tegra_sdhci.c Modified: head/sys/arm/nvidia/tegra_sdhci.c

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

2019-02-10 Thread Michal Meloun
Author: mmel Date: Sun Feb 10 18:28:37 2019 New Revision: 343965 URL: https://svnweb.freebsd.org/changeset/base/343965 Log: Fix bug introduced by r343962. DMAMAP_DMAMEM_ALLOC is property of dmamap, not dmatag. MFC after:1 week Reported by: ian Pointy hat: mmel Modified:

svn commit: r343828 - head/sys/dts/arm

2019-02-05 Thread Michal Meloun
Author: mmel Date: Wed Feb 6 06:03:44 2019 New Revision: 343828 URL: https://svnweb.freebsd.org/changeset/base/343828 Log: Adapt FreeBSD specific DT stub for Jetson TK1 board to be consistent with update of devicetree to 4.19 in r340337. Our build system doesn't provide dependencies for

Re: svn commit: r343566 - in head/lib/libthr: . thread

2019-02-03 Thread Michal Meloun
On 29.01.2019 23:46, Konstantin Belousov wrote: > Author: kib > Date: Tue Jan 29 22:46:44 2019 > New Revision: 343566 > URL: https://svnweb.freebsd.org/changeset/base/343566 > > Log: > Untangle jemalloc and mutexes initialization. > > The need to use libc malloc(3) from some places in

Re: svn commit: r343566 - in head/lib/libthr: . thread

2019-02-04 Thread Michal Meloun
On 04.02.2019 8:00, Konstantin Belousov wrote: > On Mon, Feb 04, 2019 at 07:31:19AM +0100, Michal Meloun wrote: >> On 29.01.2019 23:46, Konstantin Belousov wrote: >>> Author: kib >>> Date: Tue Jan 29 22:46:44 2019 >>> New Revision: 343566 >>> URL: htt

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

2019-08-18 Thread Michal Meloun
Author: mmel Date: Sun Aug 18 09:11:43 2019 New Revision: 351186 URL: https://svnweb.freebsd.org/changeset/base/351186 Log: Improve rk_i2c driver: - Properly handle IIC_M_NOSTOP and IIC_M_NOSTART flags. - add polling mode, so driver can be used even if interrupts are not enabled (this

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

2019-08-18 Thread Michal Meloun
Author: mmel Date: Sun Aug 18 08:08:56 2019 New Revision: 351184 URL: https://svnweb.freebsd.org/changeset/base/351184 Log: Add method for getting of syscon handle from parent device. If simple multifuction device also provides syscon interface, its childern should be able to consume it.

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

2019-08-18 Thread Michal Meloun
Author: mmel Date: Sun Aug 18 09:19:33 2019 New Revision: 351187 URL: https://svnweb.freebsd.org/changeset/base/351187 Log: Improve rk_pinctrl driver: - add support for 'output-low', 'output-high', 'output-low' and 'output-enable' properties. These are use in RK3288 DT files - add

svn commit: r351185 - head/sys/dev/mmc/host

2019-08-18 Thread Michal Meloun
Author: mmel Date: Sun Aug 18 08:54:10 2019 New Revision: 351185 URL: https://svnweb.freebsd.org/changeset/base/351185 Log: Enhance support of extres in dwmmc driver. Handle all clocks, regulators and resets defined by dwmmc bindings. MFC after:2 weeks Modified:

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

2019-08-18 Thread Michal Meloun
Author: mmel Date: Sun Aug 18 15:37:19 2019 New Revision: 351189 URL: https://svnweb.freebsd.org/changeset/base/351189 Log: Fix bug introduced by r351184. We should check the returned handle, not the pointer to it. Noticed by: ian X-MFC with: r351184 MFC after:1 week

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

2019-08-27 Thread Michal Meloun
Author: mmel Date: Tue Aug 27 09:20:01 2019 New Revision: 351543 URL: https://svnweb.freebsd.org/changeset/base/351543 Log: Add support for RK3288 into existing RockChip drivers. This patch ensures only minimal level of compatibility necessary to boot on RK3288 based boards. GPIO and

Re: svn commit: r351187 - head/sys/arm64/rockchip

2019-08-27 Thread Michal Meloun
On 25.08.2019 9:28, Peter Jeremy wrote: > On 2019-Aug-18 09:19:33 +0000, Michal Meloun > wrote: >> Improve rk_pinctrl driver: > > Sorry for the late notice but this breaks my Rock64 (RK3328). > Sorry for late response. Seems like this is caused by unnoticed dependency

svn commit: r354556 - in head/sys: arm64/rockchip/clk conf

2019-11-08 Thread Michal Meloun
2019 (r354556) @@ -0,0 +1,249 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright 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

svn commit: r354558 - head/sys/arm64/rockchip/clk

2019-11-08 Thread Michal Meloun
Author: mmel Date: Fri Nov 8 19:29:14 2019 New Revision: 354558 URL: https://svnweb.freebsd.org/changeset/base/354558 Log: Remove explicit declaration of rk_clk_fract_set_freq() function forgotten in r354556. MFC after:3 weeks MFC with: r354556 Noticed by: manu Modified:

svn commit: r354557 - head/sys/arm64/rockchip/clk

2019-11-08 Thread Michal Meloun
Author: mmel Date: Fri Nov 8 19:15:50 2019 New Revision: 354557 URL: https://svnweb.freebsd.org/changeset/base/354557 Log: Tidy up Rockchip composite clock. - add support for log2 based dividers - use proper write mask when writing to divider register MFC after:3 weeks Reviewed

svn commit: r354555 - head/sys/arm64/rockchip/clk

2019-11-08 Thread Michal Meloun
Author: mmel Date: Fri Nov 8 19:03:34 2019 New Revision: 354555 URL: https://svnweb.freebsd.org/changeset/base/354555 Log: Cleanup Rockchip clocks implementation. - style - unify dprinf defines - make dprinf's 32-bit compatible Not a functional change. MFC after:3 weeks

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

2019-11-08 Thread Michal Meloun
K_SET_ROUND_UP | CLK_SET_ROUND_DOWN)) Added: head/sys/dev/extres/clk/clk_link.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dev/extres/clk/clk_link.c Fri Nov 8 18:57:41 2019

svn commit: r355755 - in head/sys: arm64/rockchip conf

2019-12-14 Thread Michal Meloun
(r355755) @@ -0,0 +1,1411 @@ +/*- + * 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

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

2019-12-15 Thread Michal Meloun
Author: mmel Date: Sun Dec 15 14:28:38 2019 New Revision: 355774 URL: https://svnweb.freebsd.org/changeset/base/355774 Log: Properly synchronize completion DMA buffers. Within command completion processing the callback function may access DMAed data buffer. Synchronize it before use, not

svn commit: r355487 - in head/sys: arm64/arm64 arm64/include conf

2019-12-07 Thread Michal Meloun
Author: mmel Date: Sat Dec 7 16:14:23 2019 New Revision: 355487 URL: https://svnweb.freebsd.org/changeset/base/355487 Log: Add support for booting kernel directly from U-Boot using booti command. In some cases, like is locked bootstrap or device's inability to boot from removable media,

svn commit: r355803 - in head: contrib/libunwind/src lib/libgcc_s lib/libgcc_s/arm

2019-12-16 Thread Michal Meloun
Author: mmel Date: Mon Dec 16 14:08:49 2019 New Revision: 355803 URL: https://svnweb.freebsd.org/changeset/base/355803 Log: Fix LLVM libunwnwind _Unwind_Backtrace symbol version for ARM. In original GNU libgcc, _Unwind_Backtrace is published with GCC_3.3 version for all architectures but

svn commit: r353773 - in head/sys: arm/mv arm64/conf conf

2019-10-20 Thread Michal Meloun
struct mv_ap806_gicp_softc *sc; sc = device_get_softc(dev); + data = mv_ap806_gicp_convert_map_data(sc, data); + if (data == NULL) + return (EINVAL); return (PIC_TEARDOWN_INTR(sc->parent, isrc, res, data)); } Added: head/sys/arm/mv/mv_ap806_sei.c ========

svn commit: r353774 - in head/sys: conf dev/pci

2019-10-20 Thread Michal Meloun
) +++ head/sys/dev/pci/pci_dw.c Sun Oct 20 11:11:32 2019(r353774) @@ -0,0 +1,697 @@ +/*- + * 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

<    1   2   3   4   >