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

2018-06-14 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 reg

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. But

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 Goldbl

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: head/contrib/jemalloc/include

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 Goldbl

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 o

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: head/sys/arm64/arm64/locore.

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 mailto:i...@bsdimp.com>> wrote: On Fri, Jan 12, 2018 at 7:15 AM, Andrew Turner mailto:and...@freebsd.org>> wrote:

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 : On 12.01.2018 15:54, Warner Losh wrote: On Fri, Jan 12, 2018 at 7:52 AM, Andrew Turner mailto:and...@freebsd.org>> wrote: On 12 Jan 2018, at 14:37, Warner Losh mailto:i...@bsdi

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 d

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 translation

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

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

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

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

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

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: head/sys/arm/include/vmpara

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

2017-05-27 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 e

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 weeks

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 increa

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

2016-10-18 Thread Michal Meloun
Author: mmel Date: Tue Oct 18 12:21:45 2016 New Revision: 307556 URL: https://svnweb.freebsd.org/changeset/base/307556 Log: TEGRA: Really implement early printf. The original version was cut&pasted from another SoC. Pointy-hat to: mmel MFC after: 2 weeks Modified: head/sys/arm/nvi

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

2016-10-18 Thread Michal Meloun
Author: mmel Date: Tue Oct 18 12:26:22 2016 New Revision: 307557 URL: https://svnweb.freebsd.org/changeset/base/307557 Log: TEGRA: Attach cpufreq and coretemp drivers only on tegra124 SoC. It's needed by GENERIC kernel. MFC after: 2 weeks Modified: head/sys/arm/nvidia/tegra124/tegra124

svn commit: r307558 - in head/sys: arm/nvidia dev/extres/regulator

2016-10-18 Thread Michal Meloun
Author: mmel Date: Tue Oct 18 12:27:46 2016 New Revision: 307558 URL: https://svnweb.freebsd.org/changeset/base/307558 Log: REGULATOR: Move functions for handling with regulator ranges to common file. They can be useful for other PMICs. MFC after: 2 weeks Modified: head/sys/arm/nvidia/

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

2016-10-19 Thread Michal Meloun
Author: mmel Date: Wed Oct 19 14:28:51 2016 New Revision: 307637 URL: https://svnweb.freebsd.org/changeset/base/307637 Log: TEGRA: Raise minimum voltage for CPU, original 0.9 V was too optimistic. While I'm in, remove duplicated line from CPU frequency table. MFC after: 2 weeks Modified:

svn commit: r308286 - in head/sys/arm/nvidia: . tegra124

2016-11-04 Thread Michal Meloun
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/arm/nvidia/tegra_mc.c Fri Nov 4 11:39:19 2016 (r308286) @@ -0,0 +1,311 @@ +/*- + * Copyright (c) 2016 Michal Meloun + * All rights reserved

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

2016-11-04 Thread Michal Meloun
Author: mmel Date: Fri Nov 4 11:40:11 2016 New Revision: 308287 URL: https://svnweb.freebsd.org/changeset/base/308287 Log: TEGRA: Fix numerous issues in clock code. Define and export clocks related to XUSB driver. Modified: head/sys/arm/nvidia/tegra124/tegra124_car.c head/sys/arm/nvidia/

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

2016-11-06 Thread Michal Meloun
Author: mmel Date: Mon Nov 7 05:34:44 2016 New Revision: 308390 URL: https://svnweb.freebsd.org/changeset/base/308390 Log: Rework NVIDIA Tegra124 XUSBPAD driver. - Adapt it for new, incompatible, DT bindings introduced by r306197. - Add support for USB super speed pads/ports. MFC aft

svn commit: r308391 - in head/sys: arm/conf arm/nvidia arm/nvidia/tegra124 boot/fdt/dts/arm contrib/dev/nvidia

2016-11-06 Thread Michal Meloun
iic arm/nvidia/as3722_regulators.c optionaliic Added: head/sys/arm/nvidia/tegra_xhci.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/arm/nvidia/tegra_xhci.cMon Nov 7 05:37:1

svn commit: r308612 - in head/sys/dev/drm2: . ttm

2016-11-13 Thread Michal Meloun
Author: mmel Date: Sun Nov 13 13:31:23 2016 New Revision: 308612 URL: https://svnweb.freebsd.org/changeset/base/308612 Log: Allow DRM2 code to be built on platforms without AGP. This patch is taken from original drm-3.8 code. Differential Revision: https://reviews.freebsd.org/D8454 MFC

svn commit: r308614 - head/sys/conf

2016-11-13 Thread Michal Meloun
Author: mmel Date: Sun Nov 13 16:31:23 2016 New Revision: 308614 URL: https://svnweb.freebsd.org/changeset/base/308614 Log: Allow embeding DRM2 code into kernel. It's usefull for development (for netboot) and it also helps to boot FreeBSD on some embeded platforms (where we must boot kernel

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

2016-12-04 Thread Michal Meloun
Author: mmel Date: Sun Dec 4 15:27:39 2016 New Revision: 309531 URL: https://svnweb.freebsd.org/changeset/base/309531 Log: Implement fake pmap_mapdev_attr() for ARMv6. This function is referenced, but never called from DRM2 code. Also, real behavior of pmap_mapdev_attr() in ARM world is unc

svn commit: r309532 - head/sys/dev/sound/pci/hda

2016-12-04 Thread Michal Meloun
Author: mmel Date: Sun Dec 4 15:28:30 2016 New Revision: 309532 URL: https://svnweb.freebsd.org/changeset/base/309532 Log: Add IDs for HDA codecs found on Nvidia Tegra SoCs. MFC after: 2 weeks Modified: head/sys/dev/sound/pci/hda/hdac.h head/sys/dev/sound/pci/hda/hdacc.c Modified: he

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

2016-12-04 Thread Michal Meloun
Author: mmel Date: Sun Dec 4 16:02:59 2016 New Revision: 309537 URL: https://svnweb.freebsd.org/changeset/base/309537 Log: Clock framework fixes: - The clk_test_freq() (aka CLK_SET_DRYRUN) doesn't change frequency, don't cache it result. - Fix busy condition for clk_set_freq().

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

2016-12-04 Thread Michal Meloun
Author: mmel Date: Sun Dec 4 16:04:22 2016 New Revision: 309538 URL: https://svnweb.freebsd.org/changeset/base/309538 Log: Fixes for NVIDIA Tegra124 clocks: - EMC clock have standard peripheral clock block. Use it. - Implement full frequency set method for PLLD2. This PLL is used as

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

2016-12-05 Thread Michal Meloun
Author: mmel Date: Mon Dec 5 15:55:51 2016 New Revision: 309553 URL: https://svnweb.freebsd.org/changeset/base/309553 Log: Fix build breakage caused by r309531. Reported by: andrew MFC after: 2 weeks X-MFC with: r309531 Modified: head/sys/arm/include/pmap.h Modified: head/sys/arm/i

Re: svn commit: r309531 - head/sys/arm/include

2016-12-05 Thread Michal Meloun
Fixed in r309553. Sorry for breakage and thanks for report. Michal On 05.12.2016 12:25, Andrew Turner wrote: > On Sun, 4 Dec 2016 15:27:39 + (UTC) > Michal Meloun wrote: > >> Author: mmel >> Date: Sun Dec 4 15:27:39 2016 >> New Revision: 309531 >>

Re: svn commit: r309531 - head/sys/arm/include

2016-12-06 Thread Michal Meloun
27; and 'I have scheduled a meeting @work at now'. You are right of course, I will fix it later today. Michal On 06.12.2016 23:01, John Baldwin wrote: > On Sunday, December 04, 2016 03:27:39 PM Michal Meloun wrote: >> Author: mmel >> Date: Sun Dec 4 15:27:39 2016 >>

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

2019-10-20 Thread Michal Meloun
truct intr_ 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

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

2019-11-08 Thread Michal Meloun
ady registered */ /* Flags passed to clk_set_freq() and clknode_set_freq(). */ #defineCLK_SET_ROUND(x)((x) & (CLK_SET_ROUND_UP | CLK_SET_ROUND_DOWN)) Added: head/sys/dev/extres/clk/clk_link.c == ---

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 Revie

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

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: r355115 - head/sys/arm64/rockchip/clk

2019-11-26 Thread Michal Meloun
Author: mmel Date: Tue Nov 26 17:56:39 2019 New Revision: 355115 URL: https://svnweb.freebsd.org/changeset/base/355115 Log: Finish implementation of RK3299 clocks. - implement of all but mmc clocks. MMC clocks will be added later by own commit. - use 'link' clock type for external clocks.

Re: svn commit: r355145 - head/sys/arm64/arm64

2019-11-28 Thread Michal Meloun
On 27.11.2019 21:33, Alan Cox wrote: > Author: alc > Date: Wed Nov 27 20:33:49 2019 > New Revision: 355145 > URL: https://svnweb.freebsd.org/changeset/base/355145 > > Log: > There is no reason why we need to pin the underlying thread to its current > processor in pmap_invalidate_{all,page,r

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

2019-11-28 Thread Michal Meloun
adc.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/arm64/rockchip/rk_tsadc.c Thu Nov 28 17:01:31 2019 (r355173) @@ -0,0 +1,794 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2019 Michal M

Re: svn commit: r354347 - in head: contrib/compiler-rt/lib/builtins contrib/libunwind/include lib/libcompiler_rt lib/libgcc_s lib/libgcc_s/arm

2019-11-28 Thread Michal Meloun
On 05.11.2019 4:20, Conrad Meyer wrote: > Author: cem > Date: Tue Nov 5 03:20:40 2019 > New Revision: 354347 > URL: https://svnweb.freebsd.org/changeset/base/354347 > > Log: > Fix llvm-libunwind userspace build on ARM > > GCC's libgcc exports a few ARM-specific symbols for ARM EABI, AEA

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 pinctrl

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: 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: 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: head/sys/dev/mmc/ho

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 is

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 suppor

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 Modified

svn commit: r362384 - head/sys/modules/dtb/mv

2020-06-19 Thread Michal Meloun
Author: mmel Date: Fri Jun 19 14:28:56 2020 New Revision: 362384 URL: https://svnweb.freebsd.org/changeset/base/362384 Log: Add DTB files for ARMADA 8040 based boards. MFC after:2 weeks Modified: head/sys/modules/dtb/mv/Makefile Modified: head/sys/modules/dtb/mv/Makefile ===

svn commit: r362385 - in head/sys: arm/mv conf

2020-06-19 Thread Michal Meloun
{ NULL, 0 } }; Added: head/sys/arm/mv/mvebu_gpio.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/arm/mv/mvebu_gpio.cFri Jun 19 15:21:33 2020 (r362385) @@ -0,0 +1,869 @@ +/*-

svn commit: r362386 - head/sys/arm/mv/armada38x

2020-06-19 Thread Michal Meloun
Author: mmel Date: Fri Jun 19 15:32:55 2020 New Revision: 362386 URL: https://svnweb.freebsd.org/changeset/base/362386 Log: Add specific stub for ARMADA 8k SoC to Marvell RTC driver. The AXI bridge is different between ARMADA 38x and 8K, and both platforms needs specific setup to mitigate HW

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

2020-06-19 Thread Michal Meloun
Author: mmel Date: Fri Jun 19 16:15:06 2020 New Revision: 362387 URL: https://svnweb.freebsd.org/changeset/base/362387 Log: Improve DesignWare PCIe driver: - only normal memory window is mandatory, prefetchable memory and I/O windows should be optional - full PCIe configuration space is

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

2020-06-19 Thread Michal Meloun
Author: mmel Date: Fri Jun 19 16:26:42 2020 New Revision: 362388 URL: https://svnweb.freebsd.org/changeset/base/362388 Log: Use native-sized accesses when accessing memory from kdb. Not all MMIO mapped devices supports byte access. MFC after:4 weeks Modified: head/sys/arm64/arm64/d

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

2020-06-19 Thread Michal Meloun
Author: mmel Date: Fri Jun 19 17:25:54 2020 New Revision: 362389 URL: https://svnweb.freebsd.org/changeset/base/362389 Log: diff --git a/sys/dev/pci/pci_dw_mv.c b/sys/dev/pci/pci_dw_mv.c index 06a29fefbdd..571fc00f6c1 100644 --- a/sys/dev/pci/pci_dw_mv.c +++ b/sys/dev/pci/pci_dw_mv.c @@

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

2020-06-19 Thread Michal Meloun
Author: mmel Date: Fri Jun 19 17:32:50 2020 New Revision: 362391 URL: https://svnweb.freebsd.org/changeset/base/362391 Log: Revert r362389, it was committed with .diff instead of .txt as commit log. Modified: head/sys/dev/pci/pci_dw_mv.c Modified: head/sys/dev/pci/pci_dw_mv.c =

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

2020-06-19 Thread Michal Meloun
Author: mmel Date: Fri Jun 19 17:33:54 2020 New Revision: 362392 URL: https://svnweb.freebsd.org/changeset/base/362392 Log: Adapt ARMADA8k PCIe driver to newly imported 5.7 DT. - temporarily disable handling with phy, we don't have driver for it yet - always clear cause for administartive in

svn commit: r362399 - head/sys/dev/dwc

2020-06-19 Thread Michal Meloun
Author: mmel Date: Fri Jun 19 18:04:41 2020 New Revision: 362399 URL: https://svnweb.freebsd.org/changeset/base/362399 Log: Use naming nomenclature used in DesignWare TRM. Use naming nomenclature used in DesignWare TRM. This driver was written by using Altera (now Intel) documentation for Ar

svn commit: r362405 - in head/sys: arm/allwinner arm/amlogic/aml8726 arm64/rockchip dev/altera/dwc dev/dwc

2020-06-19 Thread Michal Meloun
Author: mmel Date: Fri Jun 19 18:34:27 2020 New Revision: 362405 URL: https://svnweb.freebsd.org/changeset/base/362405 Log: Finish renaming in if_dwc. By using DWC TRM terminology, normal descriptor format should be named extended and alternate descriptor format should be named normal.

svn commit: r362415 - head/sys/dev/dwc

2020-06-19 Thread Michal Meloun
Author: mmel Date: Fri Jun 19 19:26:55 2020 New Revision: 362415 URL: https://svnweb.freebsd.org/changeset/base/362415 Log: Improve if_dwc: - refactorize packet receive path. Make sure that we don't leak mbufs and/or that we don't create holes in RX descriptor ring - slightly simplify

svn commit: r363121 - in head/sys/arm: broadcom/bcm2835 mv

2020-07-12 Thread Michal Meloun
Author: mmel Date: Sun Jul 12 07:27:21 2020 New Revision: 363121 URL: https://svnweb.freebsd.org/changeset/base/363121 Log: Fix the module name for some arm drivers. Module name (unlike of the of driver name) must be system wide unique. Reported by: Mark Millard(bcm_pci), andrew(mvebu_gp

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: head/sys/dev/extres/clk/c

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 sett

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

2020-07-24 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 wron

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 t

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: head/sys/modules/cpsw/Makefile

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

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 requ

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

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: 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: 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 head/sys/arm/arm/pmap-v4

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 #ifdef

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 w

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 h

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 head/sys/

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 head/

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 he

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 head/sys/arm/conf

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

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

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: head/sys/dev/nvme/nvme.

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 swa

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

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

  1   2   3   4   >