svn commit: r349593 - head/sys/dev/bwn

2019-07-01 Thread Landon J. Fuller
Author: landonf Date: Tue Jul 2 02:52:05 2019 New Revision: 349593 URL: https://svnweb.freebsd.org/changeset/base/349593 Log: bwn(4): Include SROM revision when printing device identification. Modified: head/sys/dev/bwn/if_bwn.c Modified: head/sys/dev/bwn/if_bwn.c ==

svn commit: r331746 - in head/sys: dev/bhnd/bhndb mips/broadcom

2018-03-29 Thread Landon J. Fuller
Author: landonf Date: Thu Mar 29 19:48:50 2018 New Revision: 331746 URL: https://svnweb.freebsd.org/changeset/base/331746 Log: bhnd(4): Use the new BHND_CAP_BP64 capability flag to exclude DMA translations unsupported by the backplane. Modified: head/sys/dev/bhnd/bhndb/bhndb.c head/sys/mi

svn commit: r331744 - in head: share/man/man9 sys/dev/bhnd sys/dev/bhnd/bcma sys/dev/bhnd/bhndb sys/dev/bhnd/siba

2018-03-29 Thread Landon J. Fuller
Author: landonf Date: Thu Mar 29 19:44:15 2018 New Revision: 331744 URL: https://svnweb.freebsd.org/changeset/base/331744 Log: bhnd(4): include a subset of the ChipCommon capability flags in bhnd_chipid; this provides early access to device capability flags required by bhnd(4) bus and bhndb(

svn commit: r331378 - head/sys/dev/bhnd/nvram

2018-03-22 Thread Landon J. Fuller
Author: landonf Date: Thu Mar 22 22:13:46 2018 New Revision: 331378 URL: https://svnweb.freebsd.org/changeset/base/331378 Log: Add missing NULL checks when calling malloc(M_NOWAIT) in bhnd_nv_strdup/bhnd_nv_strndup. If malloc(9) failed during initial bhnd(4) attach, while allocating the r

svn commit: r329241 - head/sys/dev/bwn

2018-02-13 Thread Landon J. Fuller
Author: landonf Date: Tue Feb 13 20:07:40 2018 New Revision: 329241 URL: https://svnweb.freebsd.org/changeset/base/329241 Log: bwn(4): Conditionalize "RX decryption attempted" message on a new BWN_DEBUG_HWCRYPTO debug flag. The MAC will attempt decryption (and set BWN_RX_MAC_DEC) even if

svn commit: r329228 - head/sys/gnu/dev/bwn/phy_n

2018-02-13 Thread Landon J. Fuller
Author: landonf Date: Tue Feb 13 17:43:54 2018 New Revision: 329228 URL: https://svnweb.freebsd.org/changeset/base/329228 Log: bwn(4): txpid2g/txpid5g[lh] are not defined after sromrev 7; the default indices into the TX power gain table should be used instead. This enables use of bwn(4) w

svn commit: r329184 - in head/sys: conf dev/bwn modules/bwn

2018-02-12 Thread Landon J. Fuller
Author: landonf Date: Mon Feb 12 22:21:11 2018 New Revision: 329184 URL: https://svnweb.freebsd.org/changeset/base/329184 Log: bwn(4): Fix outstanding bug in PHY-G tssi2dbm table generation caught by -Wconstant-conversion, and remove now unnecessary warning suppression flags. Modified: he

svn commit: r329180 - head/sys/dev/bhnd/siba

2018-02-12 Thread Landon J. Fuller
Author: landonf Date: Mon Feb 12 19:36:26 2018 New Revision: 329180 URL: https://svnweb.freebsd.org/changeset/base/329180 Log: siba(4): Ignore disabled per-core address match entries. Previously, the address regions described by disabled admatch entries would be treated as being mapped to

svn commit: r328912 - in head: share/man/man4 sys/conf sys/dev/bhnd sys/dev/bwn sys/dev/siba sys/gnu/dev/bwn/phy_n sys/modules sys/modules/bwn sys/modules/bwn_pci sys/modules/siba_bwn

2018-02-05 Thread Landon J. Fuller
Author: landonf Date: Mon Feb 5 23:38:15 2018 New Revision: 328912 URL: https://svnweb.freebsd.org/changeset/base/328912 Log: bwn(4): migrate bwn(4) to the native bhnd(9) interface, and drop siba_bwn. - Remove the shim interface that allowed bwn(4) to use either siba_bwn or bhnd(4), re

svn commit: r328187 - head/sys/dev/bhnd/cores/chipc

2018-01-19 Thread Landon J. Fuller
Author: landonf Date: Sat Jan 20 01:55:34 2018 New Revision: 328187 URL: https://svnweb.freebsd.org/changeset/base/328187 Log: bhnd_chipc(4): Fix leak of child device ivars by explicitly deleting any children prior to detach. With the newbus child deletion ordering changes introduced in r

svn commit: r328183 - in head: share/man/man9 sys/dev/bhnd sys/dev/bwn

2018-01-19 Thread Landon J. Fuller
Author: landonf Date: Fri Jan 19 22:43:08 2018 New Revision: 328183 URL: https://svnweb.freebsd.org/changeset/base/328183 Log: bhnd/bwn(4): Define a bhnd(4) softmodem device class for the v.90 modem codec core, and mark the core as unpopulated on all BCM4306 bwn(4) devices. Sponsored by:

svn commit: r328182 - head/sys/dev/bwn

2018-01-19 Thread Landon J. Fuller
Author: landonf Date: Fri Jan 19 22:37:48 2018 New Revision: 328182 URL: https://svnweb.freebsd.org/changeset/base/328182 Log: bwn(4): Add missing BCM4306 PCI IDs. Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/bwn/if_bwn_pci.c Modified: head/sys/dev/bwn/if_bwn_pci.c ==

svn commit: r328181 - head/sys/dev/bwn

2018-01-19 Thread Landon J. Fuller
Author: landonf Date: Fri Jan 19 22:33:25 2018 New Revision: 328181 URL: https://svnweb.freebsd.org/changeset/base/328181 Log: bwn(4): Fix DMA translation lookup on devices limited to 30-bit host addressing. The host addressing constraint does not apply to device address space, and shouldn't

svn commit: r328180 - head/sys/dev/bhnd/bhndb

2018-01-19 Thread Landon J. Fuller
Author: landonf Date: Fri Jan 19 22:22:02 2018 New Revision: 328180 URL: https://svnweb.freebsd.org/changeset/base/328180 Log: bhndb_pci(4): Implement bridge support for CardBus-attached devices. - Extend the probe method to accept devclasses that inherit from the pci devclass (e.g. c

svn commit: r328176 - in head/sys/dev/bhnd: cores/chipc/pwrctl siba

2018-01-19 Thread Landon J. Fuller
Author: landonf Date: Fri Jan 19 21:58:48 2018 New Revision: 328176 URL: https://svnweb.freebsd.org/changeset/base/328176 Log: bhnd(4): fix a few bugs in pwrctl/fixed-clock device support. - Do not panic on siba(4) detach when the bhnd(4) bus calls bhnd_get_pmu_info() on a PMU-less de

svn commit: r328174 - head/sys/dev/bhnd/cores/chipc

2018-01-19 Thread Landon J. Fuller
Author: landonf Date: Fri Jan 19 21:36:28 2018 New Revision: 328174 URL: https://svnweb.freebsd.org/changeset/base/328174 Log: bhnd_chipc(4): Fix the assignment of non-wildcard child unit numbers introduced in r326102 and r326109; all chipc children should be added with a wildcard unit (-1).

svn commit: r328098 - head/sys/dev/bwn

2018-01-17 Thread Landon J. Fuller
Author: landonf Date: Wed Jan 17 22:33:19 2018 New Revision: 328098 URL: https://svnweb.freebsd.org/changeset/base/328098 Log: bwn(4): Enable, by default, the opt-in support for bhnd(4) introduced in r326454. bwn(4)/bhnd(4) has been tested with most chipsets currently supported by bwn(4

svn commit: r328071 - in head/sys/dev/bhnd: bhndb cores/pci

2018-01-16 Thread Landon J. Fuller
Author: landonf Date: Wed Jan 17 03:34:26 2018 New Revision: 328071 URL: https://svnweb.freebsd.org/changeset/base/328071 Log: bhndb_pci(4): fix incorrect BHND_PCI_SRSH_PI workaround On a SPROM-less device, the PCI(e) bridge core will be initialized with its power-on-reset defaults; this

svn commit: r327798 - head/sys/powerpc/powermac

2018-01-10 Thread Landon J. Fuller
Author: landonf Date: Wed Jan 10 22:19:11 2018 New Revision: 327798 URL: https://svnweb.freebsd.org/changeset/base/327798 Log: Fix minor locking issues in the Power Mac Uninorth PCI bridge driver. - Call resource_int_value() once during attach, rather than within the pci_(read|write)_co

svn commit: r327558 - head/sys/dev/bhnd/cores/pmu

2018-01-04 Thread Landon J. Fuller
Author: landonf Date: Thu Jan 4 19:47:01 2018 New Revision: 327558 URL: https://svnweb.freebsd.org/changeset/base/327558 Log: bhnd(4): Add missing BCM4312 backplane clock speed entry. The default 80MHz clock speed returned by bhnd_pmu_si_clock() was already correct; this just prevents th

svn commit: r326894 - head/sys/dev/bhnd/nvram

2017-12-15 Thread Landon J. Fuller
Author: landonf Date: Sat Dec 16 05:22:16 2017 New Revision: 326894 URL: https://svnweb.freebsd.org/changeset/base/326894 Log: bhnd(4): Fix the pa0itssit/pa1itssit NVRAM variable type definitions required by bwn(4); idle TSSI target values are expressed as signed integers. Sponsored by:

svn commit: r326893 - head/sys/dev/bhnd/bhndb

2017-12-15 Thread Landon J. Fuller
Author: landonf Date: Sat Dec 16 04:35:37 2017 New Revision: 326893 URL: https://svnweb.freebsd.org/changeset/base/326893 Log: bhndb(4): Enable addrext support on DMA64 devices, and fix an incorrect DMA DMA boundary constraint applied in bhndb_dma_tag_create(). Sponsored by: The FreeBSD F

svn commit: r326871 - in head/sys/dev: bhnd bhnd/bcma bhnd/bhndb bhnd/cores/pmu bhnd/nvram bhnd/siba bwn

2017-12-14 Thread Landon J. Fuller
Author: landonf Date: Fri Dec 15 04:51:47 2017 New Revision: 326871 URL: https://svnweb.freebsd.org/changeset/base/326871 Log: bhnd(4)/bwn(4): Fix a number of small issues reported by Coverity. - Fix reference of uninitialized error value in bhndb_generic_resume() if the dynamic window

svn commit: r326841 - head/sys/dev/bwn

2017-12-13 Thread Landon J. Fuller
Author: landonf Date: Thu Dec 14 06:45:04 2017 New Revision: 326841 URL: https://svnweb.freebsd.org/changeset/base/326841 Log: Add basic bwn(4) support for the (BCMA-based) BCM43224 and BCM43225. - Add the BCM4322X D11 core revision and missing BCM43224 PCI device ID to our device table

svn commit: r326839 - head/sys/dev/bhnd/bhndb

2017-12-13 Thread Landon J. Fuller
Author: landonf Date: Thu Dec 14 03:41:12 2017 New Revision: 326839 URL: https://svnweb.freebsd.org/changeset/base/326839 Log: bhndb(4): Fix two register window overcommit bugs introduced in r326297: - The window target must always be updated when stealing a register window. - Fix missing

svn commit: r326838 - head/sys/dev/bhnd/cores/chipc

2017-12-13 Thread Landon J. Fuller
Author: landonf Date: Thu Dec 14 03:12:05 2017 New Revision: 326838 URL: https://svnweb.freebsd.org/changeset/base/326838 Log: bhnd_chipc(4): Correct typo in flag macros that broke clearing of GPIO pin flags. Approved by: adrian (mentor, implicit) Sponsored by: The FreeBSD Foundation

svn commit: r326837 - in head/sys/dev/bhnd: . tools

2017-12-13 Thread Landon J. Fuller
Author: landonf Date: Thu Dec 14 03:03:08 2017 New Revision: 326837 URL: https://svnweb.freebsd.org/changeset/base/326837 Log: bhnd(4): Add missing enclosing parentheses to the bhnd bus space macros to avoid precedence bugs. Approved by: adrian (mentor, implicit) Sponsored by: The Free

svn commit: r326836 - in head: share/man/man9 sys/dev/bhnd sys/dev/bhnd/bhndb sys/mips/broadcom

2017-12-13 Thread Landon J. Fuller
Author: landonf Date: Thu Dec 14 01:58:05 2017 New Revision: 326836 URL: https://svnweb.freebsd.org/changeset/base/326836 Log: bhnd(4): Include board_devid in the bhnd_board_info structure, and populate the expected default board_vendor value on MIPS SoCs. This is required by bwn(4) to di

Re: svn commit: r326454 - in head/sys: conf dev/bwn gnu/dev/bwn/phy_n modules/bwn modules/bwn_pci

2017-12-02 Thread Landon J Fuller
On Fri, Dec 1, 2017 at 11:21 PM, Kyle Evans wrote: On Dec 1, 2017 8:21 PM, "Landon J. Fuller" wrote: Log: Introduce bwn(4) support for the bhnd(4) bus. Hi, I'm pretty sure we've discussed this, but I don't recall to what detail that was- I recall that the

svn commit: r326454 - in head/sys: conf dev/bwn gnu/dev/bwn/phy_n modules/bwn modules/bwn_pci

2017-12-01 Thread Landon J. Fuller
= siba_sprom_get_mcs2gpo, + .sprom_get_mcs5glpo = siba_sprom_get_mcs5glpo, + .sprom_get_mcs5gpo = siba_sprom_get_mcs5gpo, + .sprom_get_mcs5ghpo = siba_sprom_get_mcs5ghpo, + .pmu_spuravoid_pllupdate= siba_pmu_spuravoid_pllupda

svn commit: r326452 - head/sys/dev/bhnd/cores/pmu

2017-12-01 Thread Landon J. Fuller
Author: landonf Date: Sat Dec 2 01:10:45 2017 New Revision: 326452 URL: https://svnweb.freebsd.org/changeset/base/326452 Log: bhnd_pmu(4): Do not leak our chipc provider reference or clkctl state in failure paths of bhnd_pmu_attach() Approved by: adrian (mentor, implicit) Sponsored by

svn commit: r326451 - head/sys/dev/bhnd/bhndb

2017-12-01 Thread Landon J. Fuller
Author: landonf Date: Sat Dec 2 01:07:41 2017 New Revision: 326451 URL: https://svnweb.freebsd.org/changeset/base/326451 Log: bhndb(4): Fix leak of child devices and MSI vectors. - Add missing call to device_delete_children() in bhndb_detach(), without which we're left with stale child

svn commit: r326450 - head/sys/dev/bhnd/cores/chipc

2017-12-01 Thread Landon J. Fuller
Author: landonf Date: Sat Dec 2 00:52:59 2017 New Revision: 326450 URL: https://svnweb.freebsd.org/changeset/base/326450 Log: bhnd_chipc(4): Break cyclic references to the ChipCommon device bhnd_chipc's children may hold strong provider references to their parent; we must detach any chil

svn commit: r326449 - head/sys/dev/bhnd/bhndb

2017-12-01 Thread Landon J. Fuller
Author: landonf Date: Sat Dec 2 00:09:58 2017 New Revision: 326449 URL: https://svnweb.freebsd.org/changeset/base/326449 Log: bhndb(4): Fix incorrect assertion in bhndb_deregister_intr_handler(). When deregistered, a handler should be in an 'active' state. Approved by: adrian (mentor

svn commit: r326301 - in head/sys: dev/bhnd/siba modules/bhnd/siba

2017-11-27 Thread Landon J. Fuller
Author: landonf Date: Tue Nov 28 00:42:44 2017 New Revision: 326301 URL: https://svnweb.freebsd.org/changeset/base/326301 Log: siba(4): Add support for devices have neither PMU nor PWRCTL support. Very early BHND Wi-Fi devices (e.g. BCM4318) do not support any form of dynamic clock contro

svn commit: r326297 - head/sys/dev/bhnd/bhndb

2017-11-27 Thread Landon J. Fuller
Author: landonf Date: Tue Nov 28 00:12:14 2017 New Revision: 326297 URL: https://svnweb.freebsd.org/changeset/base/326297 Log: bhndb(4): Implement bridge support for the BCM4312 and other PCI_V0 chipsets. Very early (PCI_V0) Broadcom PCI Wi-Fi chipsets have a few quirks when compared to l

svn commit: r326294 - head/sys/dev/bhnd/siba

2017-11-27 Thread Landon J. Fuller
Author: landonf Date: Mon Nov 27 22:38:44 2017 New Revision: 326294 URL: https://svnweb.freebsd.org/changeset/base/326294 Log: siba(4): fix workaround for BCM4312 D11 core backplane timeouts The SIBA_QUIRK_PCIE_D11_SB_TIMEOUT quirk should match on all BCM4312 revisions, and backplane serv

svn commit: r326293 - head/sys/dev/bhnd

2017-11-27 Thread Landon J. Fuller
Author: landonf Date: Mon Nov 27 22:29:35 2017 New Revision: 326293 URL: https://svnweb.freebsd.org/changeset/base/326293 Log: bhnd(4): Print the core's hardware revision in bhnd(4)'s BUS_PROBE_NOMATCH(). Approved by: adrian (mentor, implicit) Sponsored by: The FreeBSD Foundation Modi

svn commit: r326292 - in head: share/man/man9 sys/dev/bhnd sys/dev/bhnd/bcma sys/dev/bhnd/cores/usb sys/dev/bhnd/siba

2017-11-27 Thread Landon J. Fuller
Author: landonf Date: Mon Nov 27 22:13:30 2017 New Revision: 326292 URL: https://svnweb.freebsd.org/changeset/base/326292 Log: bhnd(4): Fix bcma/siba core reset behavior Add missing support for specifying I/O control flags during core reset, and resolve a number of siba(4)-specific reset

svn commit: r326291 - in head: share/man/man4 share/man/man9 sys/dev/bhnd sys/dev/bhnd/nvram

2017-11-27 Thread Landon J. Fuller
Author: landonf Date: Mon Nov 27 21:30:49 2017 New Revision: 326291 URL: https://svnweb.freebsd.org/changeset/base/326291 Log: bhnd(4) update inline documentation comments and man pages. This includes a number of copyedits for the inline code documentation comments, updates to the existin

svn commit: r326174 - head/sys/modules/bhnd

2017-11-24 Thread Landon J. Fuller
Author: landonf Date: Fri Nov 24 19:01:14 2017 New Revision: 326174 URL: https://svnweb.freebsd.org/changeset/base/326174 Log: bhnd(4): Add missing dependency on ofw_bus_if.h Reported by: wma Approved by: adrian (mentor, implicit) Modified: head/sys/modules/bhnd/Makefile Modified: h

svn commit: r326109 - in head/sys: conf dev/bhnd dev/bhnd/cores/chipc mips/conf modules/bhnd

2017-11-22 Thread Landon J. Fuller
Author: landonf Date: Wed Nov 22 23:10:20 2017 New Revision: 326109 URL: https://svnweb.freebsd.org/changeset/base/326109 Log: bhnd(4): Add a basic ChipCommon GPIO driver sufficient to support bwn(4) The driver is functional on both BHND Wi-Fi adapters and MIPS SoCs, but does not currentl

svn commit: r326102 - in head/sys: conf dev/bhnd dev/bhnd/bcma dev/bhnd/bhndb dev/bhnd/cores/chipc dev/bhnd/cores/chipc/pwrctl dev/bhnd/cores/pmu dev/bhnd/siba mips/broadcom modules/bhnd modules/bh...

2017-11-22 Thread Landon J. Fuller
Author: landonf Date: Wed Nov 22 20:27:46 2017 New Revision: 326102 URL: https://svnweb.freebsd.org/changeset/base/326102 Log: bhnd(4): extend the PMU APIs to support bwn(4) The bwn(4) driver requires a number of extensions to the bhnd(4) PMU interface to support external configuration of

svn commit: r326080 - in head/sys: dev/bhnd dev/bhnd/bhndb dev/bhnd/cores/pci dev/bhnd/cores/pcie2 mips/broadcom

2017-11-21 Thread Landon J. Fuller
Author: landonf Date: Tue Nov 21 23:25:22 2017 New Revision: 326080 URL: https://svnweb.freebsd.org/changeset/base/326080 Log: bhnd(4): Add support for querying DMA address translation parameters BHND Wi-Fi chipsets and SoCs share a common DMA engine, operating within backplane address sp

svn commit: r326079 - in head/sys: dev/bhnd dev/bhnd/bcma dev/bhnd/bhndb dev/bhnd/cores/chipc dev/bhnd/cores/pci dev/bhnd/cores/usb dev/bhnd/siba mips/broadcom mips/include mips/mips

2017-11-21 Thread Landon J. Fuller
Author: landonf Date: Tue Nov 21 23:15:20 2017 New Revision: 326079 URL: https://svnweb.freebsd.org/changeset/base/326079 Log: bhnd(4): implement MIPS and PCI(e) interrupt support On BHND MIPS SoCs, this replaces the use of hard-coded MIPS IRQ#s in the common bhnd(4) core drivers; we now

svn commit: r326043 - in head/sys/mips: include mips

2017-11-20 Thread Landon J. Fuller
Author: landonf Date: Tue Nov 21 01:54:48 2017 New Revision: 326043 URL: https://svnweb.freebsd.org/changeset/base/326043 Log: Preemptively map MIPS INTRNG interrupts on non-FDT MIPS targets This replaces a partial workaround introduced in r305527 that was incompatible with nested INTRNG

svn commit: r324071 - in head/sys: dev/bhnd dev/bhnd/bcma dev/bhnd/bhndb dev/bhnd/siba mips/broadcom modules/bhnd/bhndb_pci

2017-09-27 Thread Landon J. Fuller
Author: landonf Date: Wed Sep 27 19:48:34 2017 New Revision: 324071 URL: https://svnweb.freebsd.org/changeset/base/324071 Log: bhnd: Add support for supplying bus I/O callbacks when initializing an EROM parser. This allows us to use the EROM parser API in cases where the standard bus sp

svn commit: r324070 - in head/sys: dev/bhnd dev/bhnd/bhndb dev/bhnd/cores/chipc dev/bhnd/cores/chipc/pwrctl dev/bhnd/cores/pci dev/bhnd/cores/pmu dev/bhnd/nvram dev/bhnd/siba mips/broadcom

2017-09-27 Thread Landon J. Fuller
Author: landonf Date: Wed Sep 27 19:44:23 2017 New Revision: 324070 URL: https://svnweb.freebsd.org/changeset/base/324070 Log: bhnd: Implement bhnd(4) platform device registration. Add bhnd(4) API for explicitly registering BHND platform devices (ChipCommon, PMU, NVRAM, etc) with the bus,

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

2017-09-15 Thread Landon J. Fuller
Author: landonf Date: Fri Sep 15 19:56:21 2017 New Revision: 323621 URL: https://svnweb.freebsd.org/changeset/base/323621 Log: Add MIPS32/64 Rev2 CP0 intctl register definitions. Approved by: adrian (mentor) Differential Revision:https://reviews.freebsd.org/D12300 Modified: he

svn commit: r323251 - head/sys/dev/bhnd/cores/usb

2017-09-06 Thread Landon J. Fuller
Author: landonf Date: Wed Sep 6 23:43:20 2017 New Revision: 323251 URL: https://svnweb.freebsd.org/changeset/base/323251 Log: bhnd: Remove unsupported USB core IDs from the bhnd_usb device table. This resolves a SoC reset triggered by attempting to attach to the BCM5365's USB 1.1 control

svn commit: r318760 - head/sys/dev/bhnd/nvram

2017-05-23 Thread Landon J. Fuller
Author: landonf Date: Tue May 23 22:30:15 2017 New Revision: 318760 URL: https://svnweb.freebsd.org/changeset/base/318760 Log: bhnd(4): Fix a SPROM identification regression introduced in r315866 In r315866, we introduced a direct read of the 8-bit sromrev field from the memory mapped SPR

svn commit: r317380 - in head/sys: dev/bhnd dev/bhnd/bcma dev/bhnd/siba mips/broadcom

2017-04-24 Thread Landon J. Fuller
Author: landonf Date: Mon Apr 24 18:35:25 2017 New Revision: 317380 URL: https://svnweb.freebsd.org/changeset/base/317380 Log: Add support for dumping bcma/siba EROM tables to the console via a new BHND_EROM_DUMP() method. Dump the EROM tables to the coneole on mips/broadcom devices if bo

svn commit: r317379 - head/sys/dev/bhnd/nvram

2017-04-24 Thread Landon J. Fuller
Author: landonf Date: Mon Apr 24 18:09:52 2017 New Revision: 317379 URL: https://svnweb.freebsd.org/changeset/base/317379 Log: Drop unused/unnecessary return statement. Reported by: Coverity CID: 1373118 Approved by: adrian (mentor, implicit) Modified: head/sys/dev/bhnd/nv

svn commit: r315873 - head/sys/dev/bhnd/cores/chipc

2017-03-23 Thread Landon J. Fuller
Author: landonf Date: Thu Mar 23 22:14:08 2017 New Revision: 315873 URL: https://svnweb.freebsd.org/changeset/base/315873 Log: Add Northstar/BCM4706 core ID for ChipCommon. Approved by: adrian (mentor, implicit) Modified: head/sys/dev/bhnd/cores/chipc/chipc.c Modified: head/sys/dev/bhn

svn commit: r315872 - head/sys/dev/bhnd/bcma

2017-03-23 Thread Landon J. Fuller
Author: landonf Date: Thu Mar 23 22:12:14 2017 New Revision: 315872 URL: https://svnweb.freebsd.org/changeset/base/315872 Log: Add a workaround for the BCM4706's dangling core region EROM entries. Approved by: adrian (mentor, implicit) Modified: head/sys/dev/bhnd/bcma/bcma_erom.c Modif

svn commit: r315866 - in head/sys: dev/bhnd/nvram mips/broadcom

2017-03-23 Thread Landon J. Fuller
Author: landonf Date: Thu Mar 23 19:29:12 2017 New Revision: 315866 URL: https://svnweb.freebsd.org/changeset/base/315866 Log: [mips/broadcom]: Early boot NVRAM support Add support for early boot access to NVRAM variables, using a new bhnd_nvram_data_getvar_direct() API to support zero-al

svn commit: r315651 - in head/sys/dev/bhnd/cores: chipc pmu

2017-03-20 Thread Landon J. Fuller
Author: landonf Date: Mon Mar 20 19:27:35 2017 New Revision: 315651 URL: https://svnweb.freebsd.org/changeset/base/315651 Log: Integrate BCM4706 PMU (rev6) support, derived from the ISC-licensed Broadcom sbchipc.h and hndpmu.c sources included in the RT-N16 and later firmware source drops.

svn commit: r315465 - head/sys/mips/broadcom

2017-03-17 Thread Landon J. Fuller
Author: landonf Date: Fri Mar 17 22:02:02 2017 New Revision: 315465 URL: https://svnweb.freebsd.org/changeset/base/315465 Log: Add MIPS boot support for the BCM4706/Northstar ChipCommon core. This adds support for matching against a core lookup table when performing early boot core lookup

svn commit: r313705 - in head/sys: conf dev/bhnd dev/bhnd/bcma dev/bhnd/siba mips/broadcom

2017-02-13 Thread Landon J. Fuller
Author: landonf Date: Mon Feb 13 19:58:55 2017 New Revision: 313705 URL: https://svnweb.freebsd.org/changeset/base/313705 Log: [mips/broadcom] Move MIPS-specific bhnd(4) nexus drivers to sys/mips/broadcom, and add MIPS/BCM4706-specific workaround to bhnd_nexus_is_hw_disabled() -- the BCM4706

svn commit: r310342 - head/sys/dev/bhnd/tools

2016-12-20 Thread Landon J. Fuller
Author: landonf Date: Wed Dec 21 00:50:21 2016 New Revision: 310342 URL: https://svnweb.freebsd.org/changeset/base/310342 Log: bhnd(4): Use a stable sort key to produce deterministic nvram_map_gen.awk output. When ordering SROM layout entries, we now use the unique (var_id, rev_start, r

svn commit: r310297 - in head/sys: conf dev/bhnd/nvram dev/bhnd/tools modules/bhnd

2016-12-19 Thread Landon J. Fuller
Author: landonf Date: Mon Dec 19 20:34:05 2016 New Revision: 310297 URL: https://svnweb.freebsd.org/changeset/base/310297 Log: bhnd(4): NVRAM serialization support. This adds support for: - Serializing an bhnd_nvram_plist (as exported from bhnd_nvram_store, etc) to an arbitrary NVR

svn commit: r310296 - head/sys/dev/bhnd/nvram

2016-12-19 Thread Landon J. Fuller
Author: landonf Date: Mon Dec 19 20:31:27 2016 New Revision: 310296 URL: https://svnweb.freebsd.org/changeset/base/310296 Log: bhnd(4): Add support for exporting all (or a subtree) of NVRAM properties backed by an NVRAM store. This will be used to support: - Serializing the current N

svn commit: r310295 - in head/sys: conf dev/bhnd/nvram modules/bhnd

2016-12-19 Thread Landon J. Fuller
Author: landonf Date: Mon Dec 19 20:28:27 2016 New Revision: 310295 URL: https://svnweb.freebsd.org/changeset/base/310295 Log: bhnd(4): NVRAM device path support. Implements bhnd_nvram_store support for parsing and operating over NVRAM device paths, and device path aliases, as well as tra

svn commit: r310294 - in head/sys: conf dev/bhnd/nvram modules/bhnd

2016-12-19 Thread Landon J. Fuller
Author: landonf Date: Mon Dec 19 20:26:10 2016 New Revision: 310294 URL: https://svnweb.freebsd.org/changeset/base/310294 Log: bhnd(4): add support for wrapping arbitrary pointers in an NVRAM I/O context. Approved by: adrian (mentor) Differential Revision: https://reviews.freeb

svn commit: r310293 - head/sys/dev/bhnd/nvram

2016-12-19 Thread Landon J. Fuller
Author: landonf Date: Mon Dec 19 20:23:19 2016 New Revision: 310293 URL: https://svnweb.freebsd.org/changeset/base/310293 Log: bhnd(4): Add support for three new NVRAM value types; booleans, NULL (which we'll use to denote deleted values in bhnd_nvram_store), and opaque data (aka octet-strin

svn commit: r310292 - in head/sys: conf dev/bhnd/nvram modules/bhnd

2016-12-19 Thread Landon J. Fuller
Author: landonf Date: Mon Dec 19 20:20:33 2016 New Revision: 310292 URL: https://svnweb.freebsd.org/changeset/base/310292 Log: bhnd(4): support direct conversion of bhnd_nvram_val This adds support for bhnd_nvram_val_convert_init() and bhnd_nvram_val_convert_new(), which may be used to pe

svn commit: r310291 - in head/sys: conf dev/bhnd/nvram modules/bhnd

2016-12-19 Thread Landon J. Fuller
Author: landonf Date: Mon Dec 19 20:11:48 2016 New Revision: 310291 URL: https://svnweb.freebsd.org/changeset/base/310291 Log: bhnd(4): Implement a new bhnd_nvram_plist and bhnd_nvram_prop API for representing arbitrary Broadcom NVRAM key/value pairs. This will be used to track pending ch

svn commit: r310290 - in head/sys: dev/bhnd/nvram mips/broadcom

2016-12-19 Thread Landon J. Fuller
Author: landonf Date: Mon Dec 19 20:07:58 2016 New Revision: 310290 URL: https://svnweb.freebsd.org/changeset/base/310290 Log: bhnd(4): minor style(9) fixes Approved by: adrian (mentor) Differential Revision:https://reviews.freebsd.org/D8755 Modified: head/sys/dev/bhnd/nvram/b

svn commit: r309202 - in head/sys: conf dev/bhnd dev/bhnd/nvram dev/bhnd/tools dev/bwn mips/broadcom modules/bhnd

2016-11-26 Thread Landon J. Fuller
Author: landonf Date: Sat Nov 26 23:22:32 2016 New Revision: 309202 URL: https://svnweb.freebsd.org/changeset/base/309202 Log: bhnd(4): Unify NVRAM/SPROM parsing, implement compact SPROM layout encoding. - Defined an abstract NVRAM I/O API (bhnd_nvram_io), decoupling NVRAM/SPROM pars

svn commit: r306287 - in head/sys: dev/bhnd dev/bhnd/bcma dev/bhnd/cores/pmu dev/bhnd/cores/usb dev/bhnd/siba modules/bhnd/bcma modules/bhnd/siba

2016-09-23 Thread Landon J. Fuller
Author: landonf Date: Sat Sep 24 04:08:16 2016 New Revision: 306287 URL: https://svnweb.freebsd.org/changeset/base/306287 Log: bhnd(4): Implement common API for IOST/IOCTL register access and core reset - Added bhnd(4) bus APIs for per-core ioctl/iost register access. - Updated reset/s

svn commit: r305953 - in head/sys: dev/bhnd mips/broadcom

2016-09-18 Thread Landon J. Fuller
Author: landonf Date: Sun Sep 18 21:28:09 2016 New Revision: 305953 URL: https://svnweb.freebsd.org/changeset/base/305953 Log: Split bcm_mipscore.c into bcm_bmips (BMIPS32/BMIPS3300) and bcm_mips74k drivers. The BMIPS32/BMIPS3300 cores use a register layout distinct from the MIPS74K cor

svn commit: r305907 - head/sys/dev/bhnd/cores/chipc

2016-09-17 Thread Landon J. Fuller
Author: landonf Date: Sat Sep 17 22:18:32 2016 New Revision: 305907 URL: https://svnweb.freebsd.org/changeset/base/305907 Log: bhnd(4): Fix regression in BCM4331 SPROM pin reference counting. In r304870, refcount handling was lifted out into a common OTP/SPROM code path, but the refcount

svn commit: r305444 - in head/sys/dev: bhnd bhnd/bcma bhnd/bhndb bhnd/cores/pmu bhnd/siba bwn

2016-09-05 Thread Landon J. Fuller
Author: landonf Date: Mon Sep 5 22:11:46 2016 New Revision: 305444 URL: https://svnweb.freebsd.org/changeset/base/305444 Log: bhnd(4): Implement backplane interrupt handling. This adds bhnd(4) bus-level support for querying backplane interrupt vector routing, and delegating machine/bridg

svn commit: r305443 - head/sys/dev/bwn

2016-09-05 Thread Landon J. Fuller
Author: landonf Date: Mon Sep 5 21:55:27 2016 New Revision: 305443 URL: https://svnweb.freebsd.org/changeset/base/305443 Log: bwn(4): ignore BCM4321's unpopulated USB11 host controller core. Broadcom Intensi-fi chipsets provided a common set of IP cores; on PCI/PCIe devices, the USB11 ho

svn commit: r305442 - head/sys/dev/bhnd

2016-09-05 Thread Landon J. Fuller
Author: landonf Date: Mon Sep 5 21:48:16 2016 New Revision: 305442 URL: https://svnweb.freebsd.org/changeset/base/305442 Log: bhnd(4): Add device classes for USB host/dev/dual-mode controller cores. Approved by: adrian (mentor, implicit) Modified: head/sys/dev/bhnd/bhnd_subr.c head/s

svn commit: r305375 - head/sys/dev/bhnd/bhndb

2016-09-03 Thread Landon J. Fuller
Author: landonf Date: Sun Sep 4 01:47:21 2016 New Revision: 305375 URL: https://svnweb.freebsd.org/changeset/base/305375 Log: bhndb(4): Fix probing of bhndb-attached bhnd_nvram devices. This fixes bhnd(4) nvram handling on devices that map SPROM CSRs via PCI configuration space. The

svn commit: r305374 - head/sys/dev/bhnd/bhndb

2016-09-03 Thread Landon J. Fuller
Author: landonf Date: Sun Sep 4 01:43:54 2016 New Revision: 305374 URL: https://svnweb.freebsd.org/changeset/base/305374 Log: bhndb(4): Skip disabled cores when performing bridge configuration probing. On BCM4321 chipsets, both PCI and PCIe cores are included, with one of the cores poten

svn commit: r305373 - head/sys/dev/bhnd/siba

2016-09-03 Thread Landon J. Fuller
Author: landonf Date: Sun Sep 4 01:25:46 2016 New Revision: 305373 URL: https://svnweb.freebsd.org/changeset/base/305373 Log: siba(4): Add missing bhnd_device/bhnd_device_quirk table terminator entries. This resulted in an over-read on siba chipsets that failed to match the existing entr

svn commit: r305372 - in head/sys: dev/bhnd/pmu dev/bhnd/soc mips/sentry5 modules/bhnd/nvram

2016-09-03 Thread Landon J. Fuller
Author: landonf Date: Sun Sep 4 01:17:16 2016 New Revision: 305372 URL: https://svnweb.freebsd.org/changeset/base/305372 Log: Remove empty directories left by r299241, r302190, r304870, and r301410 Approved by: adrian (mentor, implicit) Deleted: head/sys/dev/bhnd/pmu/ head/sys/dev/bh

svn commit: r305371 - in head/sys: dev/bhnd dev/bhnd/bcma dev/bhnd/bhndb dev/bhnd/cores/chipc dev/bhnd/siba dev/bwn mips/broadcom modules/bhnd/bhndb

2016-09-03 Thread Landon J. Fuller
Author: landonf Date: Sun Sep 4 00:58:19 2016 New Revision: 305371 URL: https://svnweb.freebsd.org/changeset/base/305371 Log: Migrate bhndb(4) to the new bhnd_erom API. Adds support for probing and initializing bhndb(4) bridge state using the bhnd_erom API, ensuring that full bridge conf

svn commit: r305366 - in head/sys: conf dev/bhnd dev/bhnd/bcma dev/bhnd/bhndb dev/bhnd/siba mips/broadcom modules/bhnd modules/bhnd/bcma modules/bhnd/bcma_bhndb modules/bhnd/siba modules/bhnd/siba_...

2016-09-03 Thread Landon J. Fuller
Author: landonf Date: Sat Sep 3 23:57:17 2016 New Revision: 305366 URL: https://svnweb.freebsd.org/changeset/base/305366 Log: Implement a generic bhnd(4) device enumeration table API. This defines a new bhnd_erom_if API, providing a common interface to device enumeration on siba(4) and b

svn commit: r304967 - in head/sys/dev/bhnd: . siba

2016-08-28 Thread Landon J. Fuller
Author: landonf Date: Sun Aug 28 20:39:53 2016 New Revision: 304967 URL: https://svnweb.freebsd.org/changeset/base/304967 Log: bhnd(4): Apply the siba chipid ncore fixup in bhnd_read_chipid(), ensuring that bhndb et al are always operating on a valid core count. Approved by: adrian (ment

svn commit: r304963 - in head/sys/dev/bhnd: . bcma siba

2016-08-28 Thread Landon J. Fuller
Author: landonf Date: Sun Aug 28 19:34:22 2016 New Revision: 304963 URL: https://svnweb.freebsd.org/changeset/base/304963 Log: bhnd(4): Add a bhnd bus method for fetching the device's core table. This will allow us to perform bhndb(4) bridge configuration based on the identified hardware,

svn commit: r304876 - in head/sys/dev/bhnd: . siba

2016-08-26 Thread Landon J. Fuller
Author: landonf Date: Sat Aug 27 00:58:21 2016 New Revision: 304876 URL: https://svnweb.freebsd.org/changeset/base/304876 Log: Implement siba(4) support for bhnd_(read|write)_config. This provides access to the siba(4) bus-mapped per-core cfg0 register block. Approved by: adrian (me

svn commit: r304872 - in head/sys/dev/bhnd: . bcma siba

2016-08-26 Thread Landon J. Fuller
Author: landonf Date: Sat Aug 27 00:07:48 2016 New Revision: 304872 URL: https://svnweb.freebsd.org/changeset/base/304872 Log: bhnd(4): Include the chip model (e.g. BCM4xxx) in bhnd(4) bus's device descriptions. Reviewed by: mizhka Approved by: adrian (mentor) Differential Revision:

svn commit: r304871 - in head/sys: dev/bhnd/cores/chipc dev/bhnd/cores/chipc/pwrctl dev/bhnd/cores/pmu mips/broadcom

2016-08-26 Thread Landon J. Fuller
Author: landonf Date: Sat Aug 27 00:06:20 2016 New Revision: 304871 URL: https://svnweb.freebsd.org/changeset/base/304871 Log: [mips/broadcom]: Replace static frequency table with generic PMU clock handling. - Extended PWRCTL/PMU APIs to support querying clock frequency during very

svn commit: r304870 - in head/sys: conf dev/bhnd dev/bhnd/bcma dev/bhnd/bhndb dev/bhnd/cores/chipc dev/bhnd/cores/chipc/pwrctl dev/bhnd/cores/pmu dev/bhnd/nvram dev/bhnd/pmu dev/bhnd/siba mips/broa...

2016-08-26 Thread Landon J. Fuller
Author: landonf Date: Sat Aug 27 00:03:02 2016 New Revision: 304870 URL: https://svnweb.freebsd.org/changeset/base/304870 Log: bhnd(4): Initial PMU/PWRCTL power and clock management support. - Added bhnd_pmu driver implementations for PMU and PWRCTL chipsets, derived from Broadcom's

svn commit: r304859 - in head/sys: dev/bhnd dev/bhnd/bcma dev/bhnd/cores/chipc mips/broadcom

2016-08-26 Thread Landon J. Fuller
Author: landonf Date: Fri Aug 26 20:16:02 2016 New Revision: 304859 URL: https://svnweb.freebsd.org/changeset/base/304859 Log: [mips/broadcom] Generic platform_reset() support. This adds support for performing platform_reset() on all supported devices, using early boot enumeration of chip

Re: svn commit: r304692 - head/sys/dev/bhnd/bhndb

2016-08-24 Thread Landon J Fuller
On Wed, Aug 24, 2016 at 6:09 AM, Shawn Webb wrote: On Tue, Aug 23, 2016 at 07:03:11PM +, Landon J. Fuller wrote: Author: landonf Date: Tue Aug 23 19:03:11 2016 New Revision: 304692 URL: https://svnweb.freebsd.org/changeset/base/304692 Log: bhndb(4): Fix unsigned integer underflow

svn commit: r304692 - head/sys/dev/bhnd/bhndb

2016-08-23 Thread Landon J. Fuller
Author: landonf Date: Tue Aug 23 19:03:11 2016 New Revision: 304692 URL: https://svnweb.freebsd.org/changeset/base/304692 Log: bhndb(4): Fix unsigned integer underflow in dynamic register window handling. This resulted in the window target being left uninitialized when an underflow occured.

svn commit: r304314 - in head/sys/mips: broadcom conf

2016-08-17 Thread Landon J. Fuller
Author: landonf Date: Wed Aug 17 20:24:14 2016 New Revision: 304314 URL: https://svnweb.freebsd.org/changeset/base/304314 Log: mips/broadcom: Implement CFE-based EARLY_PRINTF support. This adds support for EARLY_PRINTF via the CFE console; the aim is to provide a fix for the otherwise cyc

svn commit: r304243 - in head/sys: conf dev/bhnd dev/bhnd/cores/chipc dev/bhnd/nvram dev/bhnd/tools dev/bwn mips/conf modules/bhnd

2016-08-16 Thread Landon J. Fuller
Author: landonf Date: Tue Aug 16 21:32:05 2016 New Revision: 304243 URL: https://svnweb.freebsd.org/changeset/base/304243 Log: bhnd(4): Implement NVRAM support required for PMU bring-up. - Added a generic bhnd_nvram_parser API, with support for the TLV format used on WGT634U devices, th

svn commit: r304242 - head/sys/dev/bhnd/bhndb

2016-08-16 Thread Landon J. Fuller
Author: landonf Date: Tue Aug 16 21:20:05 2016 New Revision: 304242 URL: https://svnweb.freebsd.org/changeset/base/304242 Log: bhndb(4): Drop MIPS-incompatible __builtin_ctz dependency. This replaces the bitfield representation of the bhndb register window freelist with the bitstring API,

svn commit: r303623 - in head/sys/mips: broadcom conf

2016-08-01 Thread Landon J. Fuller
Author: landonf Date: Mon Aug 1 16:29:32 2016 New Revision: 303623 URL: https://svnweb.freebsd.org/changeset/base/303623 Log: [mips/broadcom] Fetch UART console configuration from CFE. Relying on the boot loader console configuration allows us to use a common set of device hints for all

svn commit: r303621 - head/sys/dev/cfe

2016-08-01 Thread Landon J. Fuller
Author: landonf Date: Mon Aug 1 16:26:08 2016 New Revision: 303621 URL: https://svnweb.freebsd.org/changeset/base/303621 Log: Sync CFE interface with upstream cfe-1.4.2 release. Approved by: adrian (mentor) Obtained from: https://www.broadcom.com/support/communications-processor

svn commit: r302604 - in head/sys/dev/bhnd: . bhndb

2016-07-11 Thread Landon J. Fuller
Author: landonf Date: Tue Jul 12 02:16:48 2016 New Revision: 302604 URL: https://svnweb.freebsd.org/changeset/base/302604 Log: bhnd(4): Add bus pass-aware discovery of platform devices (PMU, NVRAM, ChipCommon, etc). This extends the existing handling of NVRAM core discovery to support l

svn commit: r302603 - head/sys/mips/mips

2016-07-11 Thread Landon J. Fuller
Author: landonf Date: Tue Jul 12 02:12:31 2016 New Revision: 302603 URL: https://svnweb.freebsd.org/changeset/base/302603 Log: mips/ddb: fix MIPS backtrace truncation and MIPS32 register printing. - Cast 32-bit register values to uintmax_t for use with %jx. - Add special-case return add

svn commit: r302602 - head/sys/dev/bhnd/cores/chipc

2016-07-11 Thread Landon J. Fuller
Author: landonf Date: Tue Jul 12 01:15:00 2016 New Revision: 302602 URL: https://svnweb.freebsd.org/changeset/base/302602 Log: bhnd(4): print extra register information on chipc SPI timeout. Submitted by: Michael Zhilin Reviewed by: imp Approved by: adrian (mentor) Differential Rev

svn commit: r302509 - head/sys/dev/bhnd/nvram

2016-07-09 Thread Landon J. Fuller
Author: landonf Date: Sun Jul 10 00:08:40 2016 New Revision: 302509 URL: https://svnweb.freebsd.org/changeset/base/302509 Log: Fix heap overflow in bhnd(4) SPROM parsing. The bus_region_* APIs accept the number of data items to be read, while the code was passing the total number of bytes

svn commit: r302191 - in head/sys/dev/bhnd: . bcma siba

2016-06-24 Thread Landon J. Fuller
Author: landonf Date: Sat Jun 25 04:36:30 2016 New Revision: 302191 URL: https://svnweb.freebsd.org/changeset/base/302191 Log: bhnd(4): Add devinfo allocation and child addition methods, modeled on pci_if. This allows bhnd(4) to manage per-device state (such as per-core pmu/clock refcou

  1   2   >