<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/sys/dev/bhnd/bcma, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2020-09-01T21:43:05Z</updated>
<entry>
<title>bhnd: clean up empty lines in .c and .h files</title>
<updated>2020-09-01T21:43:05Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2020-09-01T21:43:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=ab3fad6ea26bda380ecb9ddc3bc4e9014ab3d4b2'/>
<id>urn:sha1:ab3fad6ea26bda380ecb9ddc3bc4e9014ab3d4b2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bhnd(4): include a subset of the ChipCommon capability flags in bhnd_chipid;</title>
<updated>2018-03-29T19:44:15Z</updated>
<author>
<name>Landon J. Fuller</name>
<email>landonf@FreeBSD.org</email>
</author>
<published>2018-03-29T19:44:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=f3524ec8ed3e8a18683c4a5f9ba2d3db62a136fe'/>
<id>urn:sha1:f3524ec8ed3e8a18683c4a5f9ba2d3db62a136fe</id>
<content type='text'>
this provides early access to device capability flags required by bhnd(4)
bus and bhndb(4) bridge drivers.
</content>
</entry>
<entry>
<title>dev/bhnd: Make use of mallocarray(9).</title>
<updated>2018-01-11T15:44:03Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2018-01-11T15:44:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=92e1020a5296adc35b7190c597adc701d60a06f2'/>
<id>urn:sha1:92e1020a5296adc35b7190c597adc701d60a06f2</id>
<content type='text'>
This makes a calloc-like definition check for overflows as is common
practice.
</content>
</entry>
<entry>
<title>bhnd(4)/bwn(4): Fix a number of small issues reported by Coverity.</title>
<updated>2017-12-15T04:51:47Z</updated>
<author>
<name>Landon J. Fuller</name>
<email>landonf@FreeBSD.org</email>
</author>
<published>2017-12-15T04:51:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=6467a17b496dc646991f60d8aaab674bc421ac4a'/>
<id>urn:sha1:6467a17b496dc646991f60d8aaab674bc421ac4a</id>
<content type='text'>
- Fix reference of uninitialized error value in bhndb_generic_resume() if
  the dynamic window count is 0.

- Fix incorrect bhnd_pmu(4) UPTME_MASK and PLL0_PC2_WILD_INT_MASK
  constants.

- Variable definitions referenced by our generated SPROM layouts will never
  be NULL, but add explicit asserts to make that clear.

- Add missing variable initialization in bhnd_nvram_sprom_ident().

- Fix leak of driver array in bhnd_erom_probe_driver_classes().

- Fix zero-length memset() in bhndb_pci_eio_init().

- Fix an off-by-one error and potential invalid OOBSEL bit shift operation
  in bcma_dinfo_init_intrs().

- Remove dead code in siba_suspend_hw().

- Fix duplicate call to bhnd_pmu_enable_regulator() in both the enable and
  disable code paths of bhnd_compat_cc_pmu_set_ldoparef().

Reported by:	Coverity
CIDs:		1355194, 1362020, 1362022, 1373114, 1366563, 1373115,
		1381569, 1381579, 1383555, 1383566, 1383571
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>SPDX: license IDs for some ISC-related files.</title>
<updated>2017-12-08T15:57:29Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-12-08T15:57:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=6e778a7efdc0e804471750157f6bacd1ef7d1580'/>
<id>urn:sha1:6e778a7efdc0e804471750157f6bacd1ef7d1580</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bhnd(4): Fix bcma/siba core reset behavior</title>
<updated>2017-11-27T22:13:30Z</updated>
<author>
<name>Landon J. Fuller</name>
<email>landonf@FreeBSD.org</email>
</author>
<published>2017-11-27T22:13:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=ac59515b9800732037d8147e96afd9927d3a7ae7'/>
<id>urn:sha1:ac59515b9800732037d8147e96afd9927d3a7ae7</id>
<content type='text'>
Add missing support for specifying I/O control flags during core reset,
and resolve a number of siba(4)-specific reset issues:

- Add missing check for target reject flags in siba_is_hw_suspended().
- Remove incorrect wait on SIBA_TMH_BUSY when modifying any target state
  register; this should only be done when waiting for initiated
  transactions to clear.
- Add missing wait on SIBA_IM_BY when asserting SIBA_IM_RJ.
- Overwrite any previously set SIBA_TML_REJ flag when bringing the core
  out of reset. This fixes a lockup that occured when we brought up a core
  (after reboot) that had previously been placed into RESET by siba_bwn(4).

Approved by:	adrian (mentor, implicit)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D13039
</content>
</entry>
<entry>
<title>bhnd(4): extend the PMU APIs to support bwn(4)</title>
<updated>2017-11-22T20:27:46Z</updated>
<author>
<name>Landon J. Fuller</name>
<email>landonf@FreeBSD.org</email>
</author>
<published>2017-11-22T20:27:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=4e96bf3a37e326dcb741f289d8adfac8884cca78'/>
<id>urn:sha1:4e96bf3a37e326dcb741f289d8adfac8884cca78</id>
<content type='text'>
The bwn(4) driver requires a number of extensions to the bhnd(4) PMU
interface to support external configuration of PLLs, LDOs, and other
parameters that require chipset or PHY-specific workarounds.

These changes add support for:

- Writing raw voltage register values to PHY-specific LDO regulator
  registers (required by LP-PHY).
- Enabling/disabling PHY-specific LDOs (required by LP-PHY)
- Writing to arbitrary PMU chipctrl registers (required for common PHY PLL
  reset support).
- Requesting chipset/PLL-specific spurious signal avoidance modes.
- Querying clock frequency and latency.

Additionally, rather than updating legacy PWRCTL support to conform to the
new PMU interface:

- PWRCTL API is now provided by a bhnd_pwrctl_if.m interface.
- Since PWRCTL is only found in older SSB-based chipsets, translation from
  bhnd(4) bus APIs to corresponding PWRCTL operations is now handled
  entirely within the siba(4) driver.
- The PWRCTL-specific host bridge clock gating APIs in bhnd_bus_if.m have
  been lifted out into a standalone bhnd_pwrctl_hostb_if.m interface.

Approved by:	adrian (mentor, implicit)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D12664
</content>
</entry>
<entry>
<title>bhnd(4): implement MIPS and PCI(e) interrupt support</title>
<updated>2017-11-21T23:15:20Z</updated>
<author>
<name>Landon J. Fuller</name>
<email>landonf@FreeBSD.org</email>
</author>
<published>2017-11-21T23:15:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=caeff9a3c2626660d3e080d4d3b35bc53ec4417f'/>
<id>urn:sha1:caeff9a3c2626660d3e080d4d3b35bc53ec4417f</id>
<content type='text'>
On BHND MIPS SoCs, this replaces the use of hard-coded MIPS IRQ#s in the
common bhnd(4) core drivers; we now register an INTRNG child PIC that
handles routing of backplane interrupt vectors via the MIPS core.

On BHND PCI devices, backplane interrupt vectors are now routed to the
PCI/PCIe host bridge core when bus_setup_intr() is called, where they are
dispatched by the PCI core via a host interrupt (e.g. INTx/MSI).

The bhndb(4) bridge driver tracks registered interrupt handlers for the
bridged bhnd(4) devices and manages backplane interrupt routing, while
delegating actual bus interrupt setup/teardown to the parent bus on behalf
of the bridged cores.

Approved by:	adrian (mentor, implicit)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D12518
</content>
</entry>
<entry>
<title>bhnd: Add support for supplying bus I/O callbacks when initializing an EROM</title>
<updated>2017-09-27T19:48:34Z</updated>
<author>
<name>Landon J. Fuller</name>
<email>landonf@FreeBSD.org</email>
</author>
<published>2017-09-27T19:48:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=89294a783a51c4dfc6382017c2d86646c14fb6bc'/>
<id>urn:sha1:89294a783a51c4dfc6382017c2d86646c14fb6bc</id>
<content type='text'>
parser.

This allows us to use the EROM parser API in cases where the standard bus
space I/O APIs are unsuitable. In particular, this will allow us to parse
the device enumeration table directly from bhndb(4) drivers, prior to
full attach and configuration of the bridge.

Approved by:	adrian (mentor)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D12510
</content>
</entry>
<entry>
<title>Add support for dumping bcma/siba EROM tables to the console via a new</title>
<updated>2017-04-24T18:35:25Z</updated>
<author>
<name>Landon J. Fuller</name>
<email>landonf@FreeBSD.org</email>
</author>
<published>2017-04-24T18:35:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=eb23aa80089c0ebd3b3c54f39e6cc77cdc00dc12'/>
<id>urn:sha1:eb23aa80089c0ebd3b3c54f39e6cc77cdc00dc12</id>
<content type='text'>
BHND_EROM_DUMP() method.

Dump the EROM tables to the coneole on mips/broadcom devices if bootverbose
is enabled; this functionality is primarily useful when debugging SoC EROM
parsing and device matching issues during early boot.

Reviewed by:	mizhka
Approved by:	adrian (mentor)
Sponsored by:	Plausible Labs
Differential Revision:	https://reviews.freebsd.org/D10122
</content>
</entry>
</feed>
