History log of /src/sys/arch/arm/broadcom/bcm53xx_pax.c |
Revision | | Date | Author | Comments |
1.24 |
| 16-Feb-2024 |
skrll | Trailing whitespace
|
1.23 |
| 16-Feb-2024 |
skrll | Fix non-DIAGNOSTIC build
|
1.22 |
| 07-Aug-2021 |
thorpej | branches: 1.22.6; Merge thorpej-cfargs2.
|
1.21 |
| 24-Apr-2021 |
thorpej | branches: 1.21.8; Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments.
Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.)
Remove unnecessary or redundant interface attributes where they're not needed.
There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
|
1.20 |
| 30-Oct-2020 |
skrll | branches: 1.20.4; Retire arm_[di]sb in favour of the isb() and dsb(sy) macro invocations.
|
1.19 |
| 07-Jul-2020 |
thorpej | Overhaul the interface to pci_configure_bus(): - Don't expose how PCI bus configuration resource management is implemented. Provide a new resource provider API:
==> pciconf_resource_init() -- Initialize a PCI configuration resources container. ==> pciconf_resource_add() -- Add a PCI configuration resource to the container (I/O, MEM, or prefetchable MEM). Multiple resources of each type may be added. ==> pciconf_resource_fini() -- Tear down the PCI configurtation resources container once the bus has been configured.
This is much easier to use than the previous method of providing an extent map for each kind of resource, and works better for e.g. ACPI platforms that provide potentially multiple PCI resources in tables provided by firmware.
- Re-implement PCI configuration resource management using vmem arenas, rather than extent maps.
|
1.18 |
| 14-Jun-2020 |
chs | replace EX_NOWAIT with EX_WAITOK in device attach methods. remove checks for failures that can no longer occur.
|
1.17 |
| 16-Nov-2018 |
jmcneill | Add intr_establish_xname support to arm and expose it to intrctl
|
1.16 |
| 03-Sep-2018 |
riastradh | Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int. The generic name min/max should not silently truncate to 32 bits on 64-bit systems. This is purely a name change -- no functional change intended.
HOWEVER! Some subsystems have
#define min(a, b) ((a) < (b) ? (a) : (b)) #define max(a, b) ((a) > (b) ? (a) : (b))
even though our standard name for that is MIN/MAX. Although these may invite multiple evaluation bugs, these do _not_ cause integer truncation.
To avoid `fixing' these cases, I first changed the name in libkern, and then compile-tested every file where min/max occurred in order to confirm that it failed -- and thus confirm that nothing shadowed min/max -- before changing it.
I have left a handful of bootloaders that are too annoying to compile-test, and some dead code:
cobalt ews4800mips hp300 hppa ia64 luna68k vax acorn32/if_ie.c (not included in any kernels) macppc/if_gm.c (superseded by gem(4))
It should be easy to fix the fallout once identified -- this way of doing things fails safe, and the goal here, after all, is to _avoid_ silent integer truncations, not introduce them.
Maybe one day we can reintroduce min/max as type-generic things that never silently truncate. But we should avoid doing that for a while, so that existing code has a chance to be detected by the compiler for conversion to uimin/uimax without changing the semantics until we can properly audit it all. (Who knows, maybe in some cases integer truncation is actually intended!)
|
1.15 |
| 02-Oct-2015 |
msaitoh | branches: 1.15.16; 1.15.18; PCI Extended Configuration stuff written by nonaka@: - Add PCI Extended Configuration Space support into x86. - Check register offset of pci_conf_read() in MD part. It returns (pcireg_t)-1 if it isn't accessible. - Decode Extended Capability in PCI Extended Configuration Space. Currently the following extended capabilities are decoded: - Advanced Error Reporting - Virtual Channel - Device Serial Number - Power Budgeting - Root Complex Link Declaration - Root Complex Event Collector Association - Access Control Services - Alternative Routing-ID Interpretation - Address Translation Services - Single Root IO Virtualization - Page Request - TPH Requester - Latency Tolerance Reporting - Secondary PCI Express - Process Address Space ID - LN Requester - L1 PM Substates The following extended capabilities are not decoded yet: - Root Complex Internal Link Control - Multi-Function Virtual Channel - RCRB Header - Vendor Unique - Configuration Access Correction - Multiple Root IO Virtualization - Multicast - Resizable BAR - Dynamic Power Allocation - Protocol Multiplexing - Downstream Port Containment - Precision Time Management - M-PCIe - Function Reading Status Queueing - Readiness Time Reporting - Designated Vendor-Specific
|
1.14 |
| 25-Feb-2015 |
joerg | Improve inline asm around dsb/dmb/isb: - always use volatile and mark them as memory barrier - use the common version from locore.h in all places not included from userland
|
1.13 |
| 30-Mar-2014 |
matt | branches: 1.13.4; 1.13.6; Update to use new pci_intr_string semantics.
|
1.12 |
| 23-Feb-2014 |
matt | #include <arm/locore.h>
|
1.11 |
| 19-Feb-2014 |
matt | #include <sys/param.h>
|
1.10 |
| 21-Apr-2013 |
msaitoh | branches: 1.10.4; 1.10.8; Delete "PCI_" from PCIX and PICE capability registers.
|
1.9 |
| 19-Feb-2013 |
matt | Add a bounce dmatag which only has the coherent memory region. The coherent dmatag now always has all of memory (both coherent and normal memory).
|
1.8 |
| 19-Feb-2013 |
matt | Use a bit in cf_flags to decide whether to use bounce buffers or not.
|
1.7 |
| 17-Oct-2012 |
matt | branches: 1.7.2; 1.7.4; Add a coherent bus dma tag which marks the first 256MB as having coherent dma (but only for PCIe and ethernet). Make the ethernet and PCIe attachments use this tag instead of the default non-coherent one.
|
1.6 |
| 12-Oct-2012 |
matt | Add a way to force PCI to negotiate gen1 (setting flags 1 in the config file).
|
1.5 |
| 27-Sep-2012 |
matt | Don't initialize PCIe inbound windows. This avoids the 256MB limitation on DMAs.
|
1.4 |
| 22-Sep-2012 |
matt | Add interrupt/iwin/owin / netbsd_configure code.
|
1.3 |
| 16-Sep-2012 |
he | Be consistent with applying __HAVE_PCI_CONF_HOOK around bcmpax_conf_hook implementation as well. Fixes build for BCM5301X evbarm kernel.
|
1.2 |
| 14-Sep-2012 |
matt | Beginnings of PCI support. Interrupts still need to be done.
|
1.1 |
| 01-Sep-2012 |
matt | branches: 1.1.2; Add initial device support for the Broadcom BCM5301x family.
|
1.1.2.5 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.1.2.4 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.1.2.3 |
| 23-Jun-2013 |
tls | resync from head
|
1.1.2.2 |
| 25-Feb-2013 |
tls | resync with head
|
1.1.2.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.7.4.3 |
| 19-Feb-2013 |
matt | Sync with HEAD.
|
1.7.4.2 |
| 28-Nov-2012 |
matt | Merge improved arm support (especially Cortex) from HEAD including OMAP and BCM53xx support.
|
1.7.4.1 |
| 17-Oct-2012 |
matt | file bcm53xx_pax.c was added on branch matt-nb6-plus on 2012-11-28 22:40:23 +0000
|
1.7.2.3 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.7.2.2 |
| 30-Oct-2012 |
yamt | sync with head
|
1.7.2.1 |
| 17-Oct-2012 |
yamt | file bcm53xx_pax.c was added on branch yamt-pagecache on 2012-10-30 17:18:59 +0000
|
1.10.8.2 |
| 15-Feb-2014 |
matt | Merge armv7 support from HEAD, specifically support for the BCM5301X and BCM56340 evbarm kernels.
|
1.10.8.1 |
| 21-Apr-2013 |
matt | file bcm53xx_pax.c was added on branch matt-nb5-mips64 on 2014-02-15 16:18:36 +0000
|
1.10.4.1 |
| 18-May-2014 |
rmind | sync with head
|
1.13.6.2 |
| 27-Dec-2015 |
skrll | Sync with HEAD (as of 26th Dec)
|
1.13.6.1 |
| 06-Apr-2015 |
skrll | Sync with HEAD
|
1.13.4.1 |
| 27-May-2015 |
msaitoh | Pull up following revision(s) (requested by skrll in ticket #805): sys/arch/arm/include/arm32/pmap.h: revision 1.138 sys/arch/arm/arm/cpufunc.c: revision 1.151 sys/arch/arm/arm32/bus_dma.c: revision 1.90 sys/arch/arm/broadcom/bcm53xx_pax.c: revision 1.14 sys/arch/arm/arm32/bus_dma.c: revision 1.91 sys/arch/arm/samsung/exynos_space.c: revision 1.2 sys/arch/arm/arm32/db_machdep.c: revision 1.23 sys/arch/arm/allwinner/awin_space.c: revision 1.4 sys/arch/arm/include/rwlock.h: revision 1.9 sys/arch/arm/amlogic/amlogic_space.c: revision 1.2 sys/arch/arm/zynq/zynq_space.c: revision 1.2 sys/arch/arm/broadcom/bcm2835_space.c: revision 1.7 sys/arch/arm/arm32/pmap.c: revision 1.317 sys/arch/arm/include/locore.h: revision 1.19 sys/arch/arm/include/mutex.h: revision 1.20 sys/arch/arm/include/lock.h: revision 1.31 sys/arch/arm/include/lock.h: revision 1.32 sys/arch/arm/broadcom/bcmgen_space.c: revision 1.5 - Kill redundant semicolons. - Indentation. - Improve inline asm around dsb/dmb/isb: - always use volatile and mark them as memory barrier - use the common version from locore.h in all places not included from userland
|
1.15.18.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.15.16.2 |
| 26-Nov-2018 |
pgoyette | Sync with HEAD, resolve a couple of conflicts
|
1.15.16.1 |
| 06-Sep-2018 |
pgoyette | Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
|
1.20.4.1 |
| 23-Mar-2021 |
thorpej | Convert config_found_ia() call sites where the device only carries a single interface attribute to bare config_found() calls.
|
1.21.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|
1.22.6.2 |
| 18-Feb-2024 |
martin | Pull up following revision(s) (requested by skrll in ticket #597):
sys/arch/evbarm/conf/std.bcm53xx: revision 1.21 sys/arch/arm/broadcom/bcm53xx_eth.c: revision 1.43 sys/arch/arm/broadcom/bcm53xx_pax.c: revision 1.23
Define KERNEL_VOFFSET_RUNTIME=1 to fix build of BCM5301X and BCM56340
Fix non-DIAGNOSTIC build
|
1.22.6.1 |
| 16-Feb-2024 |
skrll | Trailing whitespace
|