svn commit: r308927 - head/sys/mips/conf

2016-11-21 Thread Ruslan Bukin
Author: br Date: Mon Nov 21 15:35:56 2016 New Revision: 308927 URL: https://svnweb.freebsd.org/changeset/base/308927 Log: Move FDT option to the main SoC file and mark boards config as NO_UNIVERSE. Pointed out by: andrew Sponsored by: DARPA, AFRL Modified: head/sys/mips/conf/CA

svn commit: r308928 - head/sys/mips/ingenic

2016-11-21 Thread Ruslan Bukin
(r308928) @@ -0,0 +1,68 @@ +/*- + * Copyright (c) 2016 Ruslan Bukin + * All rights reserved. + * + * This software was developed by SRI International and the University of + * Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237 + * ("CTSRD"), as part of the D

svn commit: r309018 - head/sys/kern

2016-11-22 Thread Ruslan Bukin
Author: br Date: Tue Nov 22 18:31:43 2016 New Revision: 309018 URL: https://svnweb.freebsd.org/changeset/base/309018 Log: Revert r306186 ("Adjust the sopt_val pointer on bigendian systems"). This logic doesn't work with bigger sopt_valsize (e.g. when ipfw passing 2048 bytes rule). Re

svn commit: r309053 - head/sys/mips/include

2016-11-23 Thread Ruslan Bukin
Author: br Date: Wed Nov 23 11:30:40 2016 New Revision: 309053 URL: https://svnweb.freebsd.org/changeset/base/309053 Log: Increase pcpu size to 512 so it become both denominator of PAGE_SIZE and aligned to CACHE_LINE_SIZE. This fixes CTASSERT. Sponsored by: DARPA, AFRL Modified: h

svn commit: r309055 - head/sys/mips/conf

2016-11-23 Thread Ruslan Bukin
Author: br Date: Wed Nov 23 11:56:22 2016 New Revision: 309055 URL: https://svnweb.freebsd.org/changeset/base/309055 Log: Split MALTA board config to big and little endian versions. This fixes compilation after r308807 ("Pass MACHINE_ARCH on command line for MIPS kernels.") Sponsored

svn commit: r309188 - head/sys/mips/conf

2016-11-26 Thread Ruslan Bukin
Author: br Date: Sat Nov 26 10:20:33 2016 New Revision: 309188 URL: https://svnweb.freebsd.org/changeset/base/309188 Log: Don't build Ingenic kernels until we have non-static FDT support for them. Sponsored by: DARPA, AFRL Modified: head/sys/mips/conf/JZ4780 head/sys/mips/conf/X1000

Re: r306186 broke ipfw for MIPS32-BE

2016-11-27 Thread Ruslan Bukin
On Sun, Nov 27, 2016 at 11:12:13PM +0700, Eugene Grosbein wrote: > Hi! > > Ruslan, please take a look. > > > For reference - this breaks sooptcopyin() on MIPS32 BE. Undoing this > > commit fixes things. :) > > > > (it breaks ipfw. ) > > I acknowledge this running FreeBSD 12/mips with real MIP32

svn commit: r309673 - head/sys/dev/sound/pci

2016-12-07 Thread Ruslan Bukin
== --- head/sys/dev/sound/pci/hdspe-pcm.c Wed Dec 7 09:40:06 2016 (r309672) +++ head/sys/dev/sound/pci/hdspe-pcm.c Wed Dec 7 13:19:19 2016 (r309673) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2012 Ruslan Bukin

svn commit: r309715 - head/sys/mips/ingenic

2016-12-08 Thread Ruslan Bukin
newly added) +++ head/sys/mips/ingenic/jz4780_codec.cThu Dec 8 16:28:34 2016 (r309715) @@ -0,0 +1,242 @@ +/*- + * Copyright (c) 2016 Ruslan Bukin + * All rights reserved. + * + * This software was developed by SRI International and the University of + * Cambridge Computer Laboratory

svn commit: r309739 - head/sys/mips/ingenic

2016-12-09 Thread Ruslan Bukin
(r309739) @@ -0,0 +1,74 @@ +/*- + * Copyright (c) 2016 Ruslan Bukin + * All rights reserved. + * + * This software was developed by SRI International and the University of + * Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237 + * ("CTSRD"), as part of the DARPA CRAS

svn commit: r309896 - head/sys/mips/ingenic

2016-12-12 Thread Ruslan Bukin
Author: br Date: Mon Dec 12 17:08:52 2016 New Revision: 309896 URL: https://svnweb.freebsd.org/changeset/base/309896 Log: Apply clear_mask correctly. Reviewed by: jmcneill, kan Sponsored by: DARPA, AFRL Modified: head/sys/mips/ingenic/jz4780_clock.c Modified: head/sys/mips/ingenic/jz

svn commit: r353390 - in head: contrib/processor-trace/include contrib/processor-trace/include/posix contrib/processor-trace/include/windows contrib/processor-trace/libipt contrib/processor-trace/l...

2019-10-10 Thread Ruslan Bukin
Author: br Date: Thu Oct 10 12:46:34 2019 New Revision: 353390 URL: https://svnweb.freebsd.org/changeset/base/353390 Log: Update Intel Processor Trace decoder library. Its latest version merged from: ^/vendor/processor-trace/892e12c5a27bda5806d1e63269986bb4171b5a8b Sponsored by: DARP

svn commit: r353393 - in head: contrib/opencsd/decoder/include/common contrib/opencsd/decoder/include/i_dec contrib/opencsd/decoder/include/interfaces contrib/opencsd/decoder/include/mem_acc contri...

2019-10-10 Thread Ruslan Bukin
Author: br Date: Thu Oct 10 13:30:13 2019 New Revision: 353393 URL: https://svnweb.freebsd.org/changeset/base/353393 Log: Update ARM CoreSight trace decoder library. Its latest version merged from: ^/vendor/opencsd/a1961c91b02a92f3c6ed8b145c636ac4c5565aca Sponsored by: DARPA, AFRL A

svn commit: r353394 - head/contrib/opencsd/decoder/include

2019-10-10 Thread Ruslan Bukin
Author: br Date: Thu Oct 10 13:44:12 2019 New Revision: 353394 URL: https://svnweb.freebsd.org/changeset/base/353394 Log: Remove a stale file left after merging. Sponsored by: DARPA, AFRL Deleted: head/contrib/opencsd/decoder/include/ocsd_if_version.h

svn commit: r353431 - head/lib/libopencsd

2019-10-11 Thread Ruslan Bukin
Author: br Date: Fri Oct 11 09:18:45 2019 New Revision: 353431 URL: https://svnweb.freebsd.org/changeset/base/353431 Log: Install the libopencsd version header (other headers now depend on it). Sponsored by: DARPA, AFRL Modified: head/lib/libopencsd/Makefile Modified: head/lib/libopencs

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

2019-10-14 Thread Ruslan Bukin
== --- head/sys/dev/mmc/host/dwmmc.c Mon Oct 14 15:33:53 2019 (r353492) +++ head/sys/dev/mmc/host/dwmmc.c Mon Oct 14 15:52:59 2019 (r353493) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2014 Ruslan Bukin + * Copyright (c) 2014-2019 Ruslan Bukin * All rights reserved

Re: svn commit: r353493 - head/sys/dev/mmc/host

2019-10-14 Thread Ruslan Bukin
On Mon, Oct 14, 2019 at 06:10:51PM +0200, Emmanuel Vadot wrote: > > On Mon, 14 Oct 2019 15:53:00 + (UTC) > Ruslan Bukin wrote: > > > Author: br > > Date: Mon Oct 14 15:52:59 2019 > > New Revision: 353493 > > URL: https://svnweb.freebsd.org/changeset/bas

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

2019-10-15 Thread Ruslan Bukin
Author: br Date: Tue Oct 15 17:24:21 2019 New Revision: 353575 URL: https://svnweb.freebsd.org/changeset/base/353575 Log: Fix dwmmc(4) driver attachment when ext_resources are not present. Ignore only ENOENT (no DTS properties found) and ENODEV (driver not present) non-zero return values

Re: svn commit: r353575 - head/sys/dev/mmc/host

2019-10-15 Thread Ruslan Bukin
On Tue, Oct 15, 2019 at 07:34:51PM +0200, Emmanuel Vadot wrote: > On Tue, 15 Oct 2019 17:24:22 + (UTC) > Ruslan Bukin wrote: > > > Author: br > > Date: Tue Oct 15 17:24:21 2019 > > New Revision: 353575 > > URL: https://svnweb.freebsd.org/changeset/base/35357

Re: svn commit: r353493 - head/sys/dev/mmc/host

2019-10-16 Thread Ruslan Bukin
On Mon, Oct 14, 2019 at 06:45:26PM +0200, Emmanuel Vadot wrote: > On Mon, 14 Oct 2019 17:27:51 +0100 > Ruslan Bukin wrote: > > > On Mon, Oct 14, 2019 at 06:10:51PM +0200, Emmanuel Vadot wrote: > > > > > > On Mon, 14 Oct 2019 15:53:00 + (UTC) > > >

svn commit: r345581 - head/sys/riscv/riscv

2019-09-03 Thread Ruslan Bukin
Author: br Date: Wed Mar 27 16:26:03 2019 New Revision: 345581 URL: https://svnweb.freebsd.org/changeset/base/345581 Log: Grab timer frequency from FDT. RISC-V timer has no dedicated DTS node and we have to get timer frequency from cpus node. Tested on Government Furnished Equipment

svn commit: r345796 - head/sys/riscv/riscv

2019-09-03 Thread Ruslan Bukin
Author: br Date: Tue Apr 2 12:02:35 2019 New Revision: 345796 URL: https://svnweb.freebsd.org/changeset/base/345796 Log: o Grab the number of devices supported by PLIC from FDT. o Fix bug in PLIC_ENABLE macro when irq >= 32. Tested on the real hardware, which is HiFive Unleashed board.

Re: svn commit: r346250 - in head: share/man/man4 share/man/man9 sys/dev/random sys/kern sys/libkern sys/sys

2019-09-03 Thread Ruslan Bukin
Hi I just got this: UART 16550 configured with options: baud = 115200 | freq = 5000 bbl loader r vv rrr

svn commit: r346633 - head/sys/riscv/riscv

2019-09-03 Thread Ruslan Bukin
Author: br Date: Wed Apr 24 13:41:46 2019 New Revision: 346633 URL: https://svnweb.freebsd.org/changeset/base/346633 Log: Implement pic_pre_ithread(), pic_post_ithread(). Reviewed by: markj Sponsored by: DARPA, AFRL Differential Revision:https://reviews.freebsd.org/D19819 Modi

svn commit: r346634 - head/sys/dev/cadence

2019-09-03 Thread Ruslan Bukin
Author: br Date: Wed Apr 24 13:44:30 2019 New Revision: 346634 URL: https://svnweb.freebsd.org/changeset/base/346634 Log: Add support for Cadence network controller found in HiFive Unleashed board. Reviewed by: markj Sponsored by: DARPA, AFRL Differential Revision:https://revie

svn commit: r351817 - in head/sys: arm/altera/socfpga dev/gpio/dwgpio

2019-09-04 Thread Ruslan Bukin
(r351817) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2015 Ruslan Bukin + * Copyright (c) 2015, 2019 Ruslan Bukin * All rights reserved. * * This software was developed by SRI International and the University of @@ -29,15 +29,12 @@ */ /* - * SOCFPGA General-Purpose I/O Interface

svn commit: r351818 - in head/sys: arm/conf arm64/conf conf

2019-09-04 Thread Ruslan Bukin
Author: br Date: Wed Sep 4 15:55:44 2019 New Revision: 351818 URL: https://svnweb.freebsd.org/changeset/base/351818 Log: Include dwgpio to the build. Sponsored by: DARPA, AFRL Modified: head/sys/arm/conf/GENERIC head/sys/arm64/conf/GENERIC head/sys/conf/files Modified: head/sys/arm

svn commit: r351880 - head/sys/conf

2019-09-05 Thread Ruslan Bukin
Author: br Date: Thu Sep 5 17:54:57 2019 New Revision: 351880 URL: https://svnweb.freebsd.org/changeset/base/351880 Log: Add dwgpio to NOTES so it gets built in LINT kernels. Sponsored by: DARPA, AFRL Modified: head/sys/conf/NOTES Modified: head/sys/conf/NOTES =

Re: svn commit: r351818 - in head/sys: arm/conf arm64/conf conf

2019-09-05 Thread Ruslan Bukin
On Wed, Sep 04, 2019 at 11:16:00AM -0600, Ian Lepore wrote: > On Wed, 2019-09-04 at 15:55 +0000, Ruslan Bukin wrote: > > Author: br > > Date: Wed Sep 4 15:55:44 2019 > > New Revision: 351818 > > URL: https://svnweb.freebsd.org/changeset/base/351818 > > > >

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

2019-09-06 Thread Ruslan Bukin
On Fri, Sep 06, 2019 at 12:15:07PM +0800, Philip Paeps wrote: > On 2019-09-06 11:15:12 (+0800), Ian Lepore wrote: > > On Fri, 2019-09-06 at 01:19 +, Philip Paeps wrote: > >> Author: philip > >> Date: Fri Sep 6 01:19:31 2019 > >> New Revision: 351918 > >> URL: https://svnweb.freebsd.org/changes

svn commit: r352301 - in head/sys: conf dev/psci

2019-09-13 Thread Ruslan Bukin
c_res *res); #endif /* _PSCI_SMCCC_H_ */ Added: head/sys/dev/psci/smccc_arm.S == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dev/psci/smccc_arm.S Fri Sep 13 15:56:33 2019 (r352301) @@ -0,0 +1,74 @@ +/*-

svn commit: r352302 - in head/sys: arm64/conf arm64/intel conf

2019-09-13 Thread Ruslan Bukin
(empty, because file is newly added) +++ head/sys/arm64/intel/firmware.c Fri Sep 13 16:50:57 2019 (r352302) @@ -0,0 +1,122 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2019 Ruslan Bukin + * + * This software was developed by SRI International and the

svn commit: r352487 - in head: lib/libpmc sys/conf sys/dev/hwpmc sys/sys

2019-09-18 Thread Ruslan Bukin
--- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dev/hwpmc/hwpmc_beri.c Wed Sep 18 16:13:50 2019 (r352487) @@ -0,0 +1,540 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2019 Ruslan Bu

Re: svn commit: r347930 - head/sys/dev/pci

2019-05-28 Thread Ruslan Bukin
On Fri, May 17, 2019 at 05:05:17PM +, Emmanuel Vadot wrote: > Author: manu > Date: Fri May 17 17:05:16 2019 > New Revision: 347930 > URL: https://svnweb.freebsd.org/changeset/base/347930 > > Log: > pci: ecam: Correctly parse memory and IO region > > When activating a resource do not com

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

2019-05-29 Thread Ruslan Bukin
Author: br Date: Wed May 29 15:53:33 2019 New Revision: 348363 URL: https://svnweb.freebsd.org/changeset/base/348363 Log: Pass pci_base address instead of physical address to rman_manage_region(). This should had been part of r347930 ("pci: ecam: Correctly parse memory and IO region").

svn commit: r348364 - head/sys/dev/xdma

2019-05-29 Thread Ruslan Bukin
Author: br Date: Wed May 29 16:01:34 2019 New Revision: 348364 URL: https://svnweb.freebsd.org/changeset/base/348364 Log: Don't copy the data from bounce buffer back to the mbuf if channel does not use bounce buffering. Sponsored by: DARPA, AFRL Modified: head/sys/dev/xdma/xdma_sg.c M

svn commit: r349466 - in head/sys: conf dev/altera/msgdma mips/conf

2019-06-27 Thread Ruslan Bukin
Author: br Date: Thu Jun 27 18:08:18 2019 New Revision: 349466 URL: https://svnweb.freebsd.org/changeset/base/349466 Log: Add support for extended descriptor format to Altera mSGDMA driver. The format to use depends on hardware configuration (synthesis-time), so make it compile-time kerne

svn commit: r349727 - in head/sys/dev: altera/softdma xdma xilinx

2019-07-04 Thread Ruslan Bukin
Author: br Date: Thu Jul 4 14:04:08 2019 New Revision: 349727 URL: https://svnweb.freebsd.org/changeset/base/349727 Log: Negate the logic of XCHAN_CAP_NOBUFS macro and rename it to XCHAN_CAP_BOUNCE. The only application that uses bounce buffering for now is the Government Furnished Equ

svn commit: r349732 - head/sys/dev/xdma

2019-07-04 Thread Ruslan Bukin
Author: br Date: Thu Jul 4 15:26:02 2019 New Revision: 349732 URL: https://svnweb.freebsd.org/changeset/base/349732 Log: Fix transfers that don't use busdma or bounce buffer (e.g. software dmas). Busdma data loaded by different function (the bug introduced in r349727). Sponsored by: DARP

svn commit: r350212 - in head/sys: conf dev/altera/msgdma dev/xdma mips/beri

2019-07-22 Thread Ruslan Bukin
ase(struct xdma_iommu *xio); #endif /* !_DEV_XDMA_XDMA_H_ */ Modified: head/sys/dev/xdma/xdma_if.m ====== --- head/sys/dev/xdma/xdma_if.m Mon Jul 22 10:37:56 2019(r350211) +++ head/sys/dev/xdma/xdma_if.m Mon J

svn commit: r350213 - head/sys/dev/xdma

2019-07-22 Thread Ruslan Bukin
Author: br Date: Mon Jul 22 16:50:37 2019 New Revision: 350213 URL: https://svnweb.freebsd.org/changeset/base/350213 Log: Remove unused header. Sponsored by: DARPA, AFRL Modified: head/sys/dev/xdma/xdma_iommu.c Modified: head/sys/dev/xdma/xdma_iommu.c ===

svn commit: r350415 - head/sys/dev/mii

2019-07-29 Thread Ruslan Bukin
i/micphy.c Mon Jul 29 14:58:29 2019(r350415) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2014 Ruslan Bukin + * Copyright (c) 2014,2019 Ruslan Bukin * All rights reserved. * * This software was developed by SRI International and the University of @@ -32,7 +32,7 @@ __FBSDID

svn commit: r350418 - in head/sys: arm64/conf conf dev/altera/dwc

2019-07-29 Thread Ruslan Bukin
/altera/dwc/if_dwc_socfpga.cMon Jul 29 16:32:23 2019 (r350418) @@ -0,0 +1,113 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2019 Ruslan Bukin + * + * This software was developed by SRI International and the University of + * Cambridge Computer Laboratory

svn commit: r350440 - in head/sys: arm64/conf conf dev/mmc/host

2019-07-30 Thread Ruslan Bukin
Author: br Date: Tue Jul 30 12:51:14 2019 New Revision: 350440 URL: https://svnweb.freebsd.org/changeset/base/350440 Log: Add support for the SD/MMC controller found in Terasic DE10-Pro (an Intel Stratix 10 GX/SX FPGA Development Kit). Set the bus speed manually due to lack of clock manag

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

2019-07-30 Thread Ruslan Bukin
Author: br Date: Tue Jul 30 14:21:00 2019 New Revision: 350443 URL: https://svnweb.freebsd.org/changeset/base/350443 Log: Fix MMCCAM kernel build. Sponsored by: DARPA, AFRL Modified: head/sys/dev/mmc/host/dwmmc_altera.c Modified: head/sys/dev/mmc/host/dwmmc_altera.c

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

2019-07-30 Thread Ruslan Bukin
Author: br Date: Tue Jul 30 14:54:18 2019 New Revision: 350444 URL: https://svnweb.freebsd.org/changeset/base/350444 Log: Fix EFI loader build when LOADER_NET_SUPPORT=no. Sponsored by: DARPA, AFRL Modified: head/stand/efi/loader/conf.c Modified: head/stand/efi/loader/conf.c

Re: svn commit: r350444 - head/stand/efi/loader

2019-07-30 Thread Ruslan Bukin
ally left untouched? > > rgds, > toomas > > > On 30 Jul 2019, at 17:54, Ruslan Bukin wrote: > > > > Author: br > > Date: Tue Jul 30 14:54:18 2019 > > New Revision: 350444 > > URL: https://svnweb.freebsd.org/changeset/base/350444 > >

svn commit: r362278 - in head/sys: arm64/coresight conf

2020-06-17 Thread Ruslan Bukin
/coresight/coresight.cWed Jun 17 15:54:51 2020 (r362278) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2018 Ruslan Bukin + * Copyright (c) 2018-2020 Ruslan Bukin * All rights reserved. * * This software was developed by SRI International and the University of @@ -41,78 +41,11

svn commit: r362780 - head/sys/arm64/coresight

2020-06-29 Thread Ruslan Bukin
Author: br Date: Mon Jun 29 12:59:09 2020 New Revision: 362780 URL: https://svnweb.freebsd.org/changeset/base/362780 Log: Coresight: provide device_attach method for FDT bus. Sponsored by: DARPA, AFRL Modified: head/sys/arm64/coresight/coresight_funnel_fdt.c head/sys/arm64/coresight/co

svn commit: r363177 - in head/sys: sys x86/iommu

2020-07-14 Thread Ruslan Bukin
Author: br Date: Tue Jul 14 10:55:19 2020 New Revision: 363177 URL: https://svnweb.freebsd.org/changeset/base/363177 Log: Start splitting-out the Intel DMAR busdma backend to a generic place, so it can be used on other IOMMU systems. Provide MI iommu_unit, iommu_domain and iommu_ctx struc

svn commit: r363274 - in head/sys: arm64/acpica dev/acpica

2020-07-17 Thread Ruslan Bukin
Author: br Date: Fri Jul 17 14:51:51 2020 New Revision: 363274 URL: https://svnweb.freebsd.org/changeset/base/363274 Log: Add acpi_iort_map_pci_smmuv3(). This new function allows us to find the SMMU instance assigned for a particular PCI RID. Reviewed by: andrew Sponsored by: DARP

svn commit: r363310 - in head/sys: sys x86/iommu

2020-07-18 Thread Ruslan Bukin
Author: br Date: Sat Jul 18 13:10:31 2020 New Revision: 363310 URL: https://svnweb.freebsd.org/changeset/base/363310 Log: o Move iommu_test_boundary() to sys/iommu.h o Rename DMAR -> IOMMU in comments o Add IOMMU_PAGE_SIZE / IOMMU_PAGE_MASK macroses o x86 only: dmar_quirks_pre_use() / dmar

svn commit: r363387 - in head/sys: conf dev/iommu x86/iommu

2020-07-21 Thread Ruslan Bukin
Author: br Date: Tue Jul 21 10:38:51 2020 New Revision: 363387 URL: https://svnweb.freebsd.org/changeset/base/363387 Log: Move the Intel DMAR busdma backend to a generic place so it can be used on other IOMMU systems. Reviewed by: kib Sponsored by: DARPA/AFRL Differential Revision:

svn commit: r363388 - in head/sys: dev/iommu sys x86/iommu

2020-07-21 Thread Ruslan Bukin
Author: br Date: Tue Jul 21 13:50:10 2020 New Revision: 363388 URL: https://svnweb.freebsd.org/changeset/base/363388 Log: Move sys/iommu.h to dev/iommu/ as a part of generic IOMMU busdma backend. Reviewed by: kib Sponsored by: DARPA/AFRL Differential Revision:https://reviews.fr

svn commit: r363515 - in head/sys: dev/iommu x86/iommu

2020-07-25 Thread Ruslan Bukin
Author: br Date: Sat Jul 25 09:28:38 2020 New Revision: 363515 URL: https://svnweb.freebsd.org/changeset/base/363515 Log: Split-out the Intel GAS (Guest Address Space) management component from Intel DMAR support, so it can be used on other IOMMU systems. Reviewed by: kib Sponsored by:

svn commit: r363524 - in head/sys: conf dev/iommu x86/iommu

2020-07-25 Thread Ruslan Bukin
Author: br Date: Sat Jul 25 11:34:50 2020 New Revision: 363524 URL: https://svnweb.freebsd.org/changeset/base/363524 Log: Move Intel GAS to dev/iommu/ as now a part of generic iommu framework. Reviewed by: kib Sponsored by: DARPA/AFRL Differential Revision:https://reviews.freeb

svn commit: r363533 - in head/sys: dev/iommu x86/iommu

2020-07-25 Thread Ruslan Bukin
Author: br Date: Sat Jul 25 19:07:12 2020 New Revision: 363533 URL: https://svnweb.freebsd.org/changeset/base/363533 Log: o Move iommu gas prototypes, DMAR flags to iommu.h; o Move hw.dmar sysctl node to iommu_gas.c. Reviewed by: kib Sponsored by: DARPA/AFRL Differential Revision:

svn commit: r363534 - in head/sys: dev/iommu x86/iommu

2020-07-25 Thread Ruslan Bukin
Author: br Date: Sat Jul 25 21:37:07 2020 New Revision: 363534 URL: https://svnweb.freebsd.org/changeset/base/363534 Log: o Make the _hw_iommu sysctl node non-static; o Move the dmar sysctl knobs to _hw_iommu_dmar. Reviewed by: kib Sponsored by: DARPA/AFRL Differential Revision:

svn commit: r363560 - in head/sys: dev/iommu x86/iommu

2020-07-26 Thread Ruslan Bukin
Author: br Date: Sun Jul 26 12:29:22 2020 New Revision: 363560 URL: https://svnweb.freebsd.org/changeset/base/363560 Log: Rename DMAR flags: o DMAR_DOMAIN_* -> IOMMU_DOMAIN_* o DMAR_PGF_* -> IOMMU_PGF_* Reviewed by: kib Sponsored by: DARPA/AFRL Differential Revision:https:/

svn commit: r363650 - in head/sys: dev/iommu dev/ntb/ntb_hw x86/include x86/iommu x86/x86

2020-07-28 Thread Ruslan Bukin
Author: br Date: Tue Jul 28 16:08:14 2020 New Revision: 363650 URL: https://svnweb.freebsd.org/changeset/base/363650 Log: o Move the buswide_ctxs bitmap to iommu_unit and rename related functions. o Rename bus_dma_dmar_load_ident() as well. Reviewed by: kib Sponsored by: DARPA/AFRL D

svn commit: r363663 - in head/sys: dev/iommu x86/include x86/iommu

2020-07-29 Thread Ruslan Bukin
Author: br Date: Wed Jul 29 13:23:27 2020 New Revision: 363663 URL: https://svnweb.freebsd.org/changeset/base/363663 Log: o Move iommu_set_buswide_ctx, iommu_is_buswide_ctx to the generic iommu busdma backend; o Move bus_dma_iommu_set_buswide, bus_dma_iommu_load_ident prototypes to iom

svn commit: r363666 - head/sys/dev/ntb/ntb_hw

2020-07-29 Thread Ruslan Bukin
Author: br Date: Wed Jul 29 15:46:17 2020 New Revision: 363666 URL: https://svnweb.freebsd.org/changeset/base/363666 Log: Fix build. Reviewed by: kib Sponsored by: DARPA/AFRL Differential Revision:https://reviews.freebsd.org/D25879 Modified: head/sys/dev/ntb/ntb_hw/ntb_hw_in

svn commit: r363669 - head/sys/x86/x86

2020-07-29 Thread Ruslan Bukin
Author: br Date: Wed Jul 29 19:22:50 2020 New Revision: 363669 URL: https://svnweb.freebsd.org/changeset/base/363669 Log: Fix !ACPI_DMAR build. Reviewed by: kib Sponsored by: DARPA/AFRL Differential Revision:https://reviews.freebsd.org/D25882 Modified: head/sys/x86/x86/busdm

svn commit: r363675 - in head/sys: dev/iommu dev/ntb/ntb_hw x86/iommu

2020-07-29 Thread Ruslan Bukin
Author: br Date: Wed Jul 29 22:08:54 2020 New Revision: 363675 URL: https://svnweb.freebsd.org/changeset/base/363675 Log: o Don't include headers from iommu.h, include them from the header consumers instead; o Order includes properly. Reviewed by: kib Sponsored by: DARPA/AFRL Dif

svn commit: r363747 - in head/sys: dev/iommu x86/iommu

2020-07-31 Thread Ruslan Bukin
Author: br Date: Fri Jul 31 23:02:17 2020 New Revision: 363747 URL: https://svnweb.freebsd.org/changeset/base/363747 Log: Add iommu_domain_map_ops virtual table with map/unmap methods so x86 can support Intel DMAR and AMD IOMMU simultaneously. Reviewed by: kib Sponsored by: DARPA/AFRL

svn commit: r363864 - head/sys/x86/iommu

2020-08-04 Thread Ruslan Bukin
Author: br Date: Tue Aug 4 20:51:05 2020 New Revision: 363864 URL: https://svnweb.freebsd.org/changeset/base/363864 Log: Add a few macroses for conversion between DMAR unit, domain, ctx and IOMMU unit, domain, ctx. Reviewed by: kib Sponsored by: DARPA, AFRL Differential Revision:

svn commit: r363865 - head/sys/dev/iommu

2020-08-04 Thread Ruslan Bukin
Author: br Date: Tue Aug 4 20:54:12 2020 New Revision: 363865 URL: https://svnweb.freebsd.org/changeset/base/363865 Log: Remove unneeded cast to struct iommu_domain *. Sponsored by: DARPA, AFRL Modified: head/sys/dev/iommu/iommu_gas.c Modified: head/sys/dev/iommu/iommu_gas.c ==

svn commit: r363929 - in head/sys: amd64/include dev/iommu i386/include x86/include

2020-08-05 Thread Ruslan Bukin
Author: br Date: Wed Aug 5 19:11:31 2020 New Revision: 363929 URL: https://svnweb.freebsd.org/changeset/base/363929 Log: o Add machine/iommu.h and include MD iommu headers from it, so we don't ifdef for every arch in busdma_iommu.c; o No need to include specialreg.h for x86, remove it.

svn commit: r363946 - in head/sys: dev/iommu x86/iommu

2020-08-06 Thread Ruslan Bukin
Author: br Date: Thu Aug 6 08:48:23 2020 New Revision: 363946 URL: https://svnweb.freebsd.org/changeset/base/363946 Log: Add iommu_domain constructor and destructor. Reviewed by: kib Sponsored by: DARPA/AFRL Differential Revision:https://reviews.freebsd.org/D25956 Modified:

svn commit: r363949 - in head/sys: dev/iommu x86/iommu

2020-08-06 Thread Ruslan Bukin
Author: br Date: Thu Aug 6 12:49:25 2020 New Revision: 363949 URL: https://svnweb.freebsd.org/changeset/base/363949 Log: Move dmar_domain_unload_task to busdma_iommu.c. Reviewed by: kib Sponsored by: DARPA/AFRL Differential Revision:https://reviews.freebsd.org/D25972 Modified

svn commit: r366701 - head/sys/dev/iommu

2020-10-14 Thread Ruslan Bukin
Author: br Date: Wed Oct 14 13:39:50 2020 New Revision: 366701 URL: https://svnweb.freebsd.org/changeset/base/366701 Log: Rename a header protection macro. Sponsored by: DARPA, AFRL Modified: head/sys/dev/iommu/iommu.h Modified: head/sys/dev/iommu/iommu.h ===

svn commit: r366702 - head/sys/dev/iommu

2020-10-14 Thread Ruslan Bukin
Author: br Date: Wed Oct 14 14:12:15 2020 New Revision: 366702 URL: https://svnweb.freebsd.org/changeset/base/366702 Log: Add iommu_get_ctx_domain() that allows to get iommu domain for a given iommu context. Submitted by: andrew Sponsored by: Innovate DSbD Modified: head/sys/dev/iomm

svn commit: r366704 - in head/sys: dev/iommu i386/include

2020-10-14 Thread Ruslan Bukin
Author: br Date: Wed Oct 14 14:51:11 2020 New Revision: 366704 URL: https://svnweb.freebsd.org/changeset/base/366704 Log: Add a per-each macro IOMMU_DOMAIN_UNLOAD_SLEEP which allows to sleep during iommu guest address space entries unload. Suggested by: kib Sponsored by: Innovate DSbD

svn commit: r366710 - head/sys/dev/iommu

2020-10-14 Thread Ruslan Bukin
Author: br Date: Wed Oct 14 21:22:23 2020 New Revision: 366710 URL: https://svnweb.freebsd.org/changeset/base/366710 Log: Split-out iommu type definitions to a separate header. Reviewed by: kib Sponsored by: Innovate DSbD Differential Revision:https://reviews.freebsd.org/D26780

svn commit: r366724 - head/sys/dev/iommu

2020-10-15 Thread Ruslan Bukin
Author: br Date: Thu Oct 15 13:47:52 2020 New Revision: 366724 URL: https://svnweb.freebsd.org/changeset/base/366724 Log: Split-out Guest Address Space (GAS) macroses to a separate header. Sponsored by: Innovate DSbD Added: head/sys/dev/iommu/iommu_gas.h (contents, props changed) Modif

svn commit: r366833 - in head/sys: dev/iommu kern sys

2020-10-19 Thread Ruslan Bukin
Author: br Date: Mon Oct 19 13:10:21 2020 New Revision: 366833 URL: https://svnweb.freebsd.org/changeset/base/366833 Log: Manage MSI iommu pages. This allows the interrupt controller driver only need a small change to create a map for the page the device will write to raise an interrupt.

svn commit: r366835 - in head/sys: dev/iommu x86/iommu

2020-10-19 Thread Ruslan Bukin
Author: br Date: Mon Oct 19 15:50:58 2020 New Revision: 366835 URL: https://svnweb.freebsd.org/changeset/base/366835 Log: Assign the reserved apic region (GAS entry) to the iommu domain msi_entry. Requested by: kib Reviewed by: kib Sponsored by: Innovate DSbD Differential Revision:

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

2020-10-19 Thread Ruslan Bukin
Author: br Date: Mon Oct 19 21:27:27 2020 New Revision: 366863 URL: https://svnweb.freebsd.org/changeset/base/366863 Log: Add IOMMU_BUSWIDE ahci quirk. Some controllers use PCI function 1 as the requester ID for DMA transfers, but the controllers are not PCI multifunction. Set the io

Re: svn commit: r366833 - in head/sys: dev/iommu kern sys

2020-10-19 Thread Ruslan Bukin
On Mon, Oct 19, 2020 at 03:08:32PM +0100, Jessica Clarke wrote: > On 19 Oct 2020, at 14:10, Ruslan Bukin wrote: > > > > +#ifndef _DEV_IOMMU_IOMMU_MSI_H_ > > +#define _DEV_IOMMU_IOMMU_MSI_H_ > > + > > +#include > > + > > +struct iommu_unit; > &

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

2020-10-19 Thread Ruslan Bukin
Author: br Date: Mon Oct 19 22:32:36 2020 New Revision: 366865 URL: https://svnweb.freebsd.org/changeset/base/366865 Log: Fix build: only set iommu buswide flag if IOMMU code is included. Sponsored by: Innovate DSbD Modified: head/sys/dev/ahci/ahci_pci.c Modified: head/sys/dev/ahci/ahci

svn commit: r366980 - in head/sys: dev/ahci kern x86/x86

2020-10-23 Thread Ruslan Bukin
Author: br Date: Fri Oct 23 21:27:48 2020 New Revision: 366980 URL: https://svnweb.freebsd.org/changeset/base/366980 Log: Move the iommu stubs to a generic place, so they are available on all the platforms. This allows to not depend on the IOMMU macro in AHCI driver. Requested by: ki

svn commit: r367016 - in head/sys: dev/iommu kern

2020-10-24 Thread Ruslan Bukin
Author: br Date: Sat Oct 24 20:09:27 2020 New Revision: 367016 URL: https://svnweb.freebsd.org/changeset/base/367016 Log: o Add iommu de-initialization method for MSI interface. o Add iommu_unmap_msi() to release the msi GAS entry. o Provide default implementations for iommu init/deinit meth

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

2020-10-25 Thread Ruslan Bukin
Author: br Date: Sun Oct 25 10:08:46 2020 New Revision: 367037 URL: https://svnweb.freebsd.org/changeset/base/367037 Log: Add IOMMU support to GICv3 Interrupt Translation Service (ITS) driver. Submitted by: andrew Sponsored by: Innovate DSbD Differential Revision:https://reviews

svn commit: r367085 - head/sys/arm64/include

2020-10-27 Thread Ruslan Bukin
Author: br Date: Tue Oct 27 15:29:53 2020 New Revision: 367085 URL: https://svnweb.freebsd.org/changeset/base/367085 Log: o Add the domain member to the struct bus_dma_tag_common as required by busdma_iommu.c. o Add tag_set_domain() pointer to the struct bus_dma_impl as well. Sponsore

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

2020-10-27 Thread Ruslan Bukin
Author: br Date: Tue Oct 27 15:18:10 2020 New Revision: 367084 URL: https://svnweb.freebsd.org/changeset/base/367084 Log: Take the ITS device lock around gicv3_its_release_irqsrc() since that function checks that the mutex lock is owned. This fixes 'devctl disable re0' operation. Spo

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

2020-11-02 Thread Ruslan Bukin
Author: br Date: Mon Nov 2 19:56:15 2020 New Revision: 367282 URL: https://svnweb.freebsd.org/changeset/base/367282 Log: Add routines for ARM System MMU (SMMU) pmap management. Reviewed by: markj Discussed with: kib Sponsored by: DARPA, Innovate UK Differential Revision:

svn commit: r367725 - in head/sys: dev/iommu x86/iommu

2020-11-16 Thread Ruslan Bukin
Author: br Date: Mon Nov 16 15:29:52 2020 New Revision: 367725 URL: https://svnweb.freebsd.org/changeset/base/367725 Log: Add device_t member to struct iommu. This is needed on arm64 for the interface between iommu framework and iommu controller drivers. Reviewed by: kib Sponsored

svn commit: r367726 - head/sys/dev/iommu

2020-11-16 Thread Ruslan Bukin
Author: br Date: Mon Nov 16 15:37:09 2020 New Revision: 367726 URL: https://svnweb.freebsd.org/changeset/base/367726 Log: Fix a bug in assertion: entry flags also includes IOMMU_MAP_ENTRY_UNMAPPED. The entry->flags field is initialized in iommu_gas_init_domain(). Reviewed by: kib Spons

svn commit: r367736 - in head/sys: arm64/include arm64/iommu conf

2020-11-16 Thread Ruslan Bukin
55:52 2020 (r367736) @@ -0,0 +1,397 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2020 Ruslan Bukin + * + * This software was developed by SRI International and the University of + * Cambridge Computer Laboratory (Department of Computer Science and + * Technology) u

svn commit: r368113 - in head/sys: amd64/conf i386/conf

2020-11-27 Thread Ruslan Bukin
Author: br Date: Fri Nov 27 21:37:48 2020 New Revision: 368113 URL: https://svnweb.freebsd.org/changeset/base/368113 Log: o Move options IOMMU from Debugging section back to the Bus section where it originally was. The bug introduced in r366267. o Remove options IOMMU from i386/MINIMAL as

svn commit: r356202 - head/sys/riscv/riscv

2019-12-30 Thread Ruslan Bukin
Author: br Date: Mon Dec 30 13:29:30 2019 New Revision: 356202 URL: https://svnweb.freebsd.org/changeset/base/356202 Log: Round the kernel stack allocation up as required. Submitted by: James Clarke Sponsored by: DARPA, AFRL Differential Revision:https://reviews.freebsd.org/D22

svn commit: r356203 - head/sys/riscv/riscv

2019-12-30 Thread Ruslan Bukin
Author: br Date: Mon Dec 30 14:38:06 2019 New Revision: 356203 URL: https://svnweb.freebsd.org/changeset/base/356203 Log: Don't hard-code size of struct riscv_bootparams. Submitted by: James Clarke Sponsored by: DARPA, AFRL Differential Revision:https://reviews.freebsd.org/D229

svn commit: r356205 - head/sys/riscv/riscv

2019-12-30 Thread Ruslan Bukin
Author: br Date: Mon Dec 30 17:18:50 2019 New Revision: 356205 URL: https://svnweb.freebsd.org/changeset/base/356205 Log: Don't hard-code field offsets of struct riscv_bootparams. Submitted by: James Clarke Sponsored by: DARPA, AFRL Differential Revision:https://reviews.freebsd

Re: svn commit: r356438 - head/sys/riscv/sifive

2020-01-07 Thread Ruslan Bukin
On Tue, Jan 07, 2020 at 09:02:14AM +, Kristof Provost wrote: > Author: kp > Date: Tue Jan 7 09:02:14 2020 > New Revision: 356438 > URL: https://svnweb.freebsd.org/changeset/base/356438 > > Log: > sifive: Fix incorrect tx/rx ctrl defines > > Happily these were never used, but they shoul

svn commit: r356834 - head/sys/riscv/riscv

2020-01-17 Thread Ruslan Bukin
== --- head/sys/riscv/riscv/bus_space_asm.SFri Jan 17 15:55:14 2020 (r356833) +++ head/sys/riscv/riscv/bus_space_asm.SFri Jan 17 16:48:20 2020 (r356834) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2016 Ruslan Bukin

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

2020-01-24 Thread Ruslan Bukin
Jan 24 16:08:06 2020 (r357083) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2015 Ruslan Bukin + * Copyright (c) 2015, 2020 Ruslan Bukin * Copyright (c) 2014 The FreeBSD Foundation * All rights reserved. * @@ -53,21 +53,6 @@ __FBSDID("$FreeBSD$"); #include #include

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

2020-01-24 Thread Ruslan Bukin
57085) @@ -0,0 +1,47 @@ +/*- + * Copyright (C) 2018 Cavium Inc. + * Copyright (c) 2015 Ruslan Bukin + * Copyright (c) 2014 The FreeBSD Foundation + * All rights reserved. + * + * This software was developed by Semihalf under + * the sponsorship of the FreeBSD Foundation. + * + * Redistribution and use in sou

svn commit: r357086 - in head/sys/riscv: conf include

2020-01-24 Thread Ruslan Bukin
Author: br Date: Fri Jan 24 16:50:51 2020 New Revision: 357086 URL: https://svnweb.freebsd.org/changeset/base/357086 Log: Enable NEW_PCIB on riscv. Sponsored by: DARPA, AFRL Modified: head/sys/riscv/conf/DEFAULTS head/sys/riscv/include/resource.h Modified: head/sys/riscv/conf/DEFAULTS

svn commit: r357087 - in head/sys: conf riscv/conf

2020-01-24 Thread Ruslan Bukin
Author: br Date: Fri Jan 24 17:10:21 2020 New Revision: 357087 URL: https://svnweb.freebsd.org/changeset/base/357087 Log: Include the PCI stack to the riscv GENERIC kernel. It will be used by an upcoming PCI root complex driver. Sponsored by: DARPA, AFRL Modified: head/sys/conf/file

svn commit: r357258 - in head/sys: conf dev/xilinx

2020-01-29 Thread Ruslan Bukin
) +++ head/sys/dev/xilinx/xlnx_pcib.c Wed Jan 29 16:52:12 2020 (r357258) @@ -0,0 +1,794 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2020 Ruslan Bukin + * + * This software was developed by SRI International and the University of + * Cambridge Computer Laboratory

<    1   2   3   4   5   6   7   >