aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2016-01-16TRX: some comments dscribing the scheduler.[ch] APIHarald Welte2-5/+36
2016-01-16sysmoBTS: port 'press Ctrl+C twice for immediate exit' from osmo-bts-trxHarald Welte1-2/+5
2016-01-16TRX: Add stub bts_model_change_power() functionHarald Welte1-0/+6
This just fixes linking. It still needs to be properly implemented
2016-01-16TRX: remove obsolete get_mac() functionHarald Welte1-37/+0
2016-01-16Merge branch 'sysmocom/octphy'Harald Welte19-1/+4985
2016-01-16OCTPHY: Obtain information from PHY and expose it in VTYHarald Welte4-4/+136
This adds 'show trx 0 system-information' command to the VTY indicating various version information obtained from the DSP/PHY.
2016-01-16OCTPHY: Implement command re-transmission after message lossHarald Welte2-39/+216
We re-use the 'wait_l1_conf' structure for implementing the unacknowledge command window towards the PHY. This means that thre will unconditionally be a 'wait_l1_conf' now, even for requests where the caller didn't provide a call-back.
2016-01-16OCTPHY: Print NOTICE message if we receive supervisory frameHarald Welte1-1/+26
2016-01-16OCTPHY: Block PHY indications until it is confirmed openHarald Welte3-0/+12
When re-starting OsmoBTS after unclean shutdown, the PHY is already sending notifications (PH-DATA.ind, PH-TIME.ind, etc.) for the previous physical channel / timeslot configuration. At the point those messages are received, OsmoBTS might not even have A-bis OML up yet, and thus has no clue how to process such messages (and subsequently likely crashes). Let's block such primitives from passing further up the code until we have received the TRX-OPEN response.
2016-01-16OCTPHY: Fix various memory leaks and add comments on msgb ownershipHarald Welte3-37/+98
2016-01-16OCTPHY: Exit gracefully if config file specifies no phy-netdevHarald Welte1-0/+5
2016-01-16OCTPHY: Ensure we write the phy-netdev parameterHarald Welte1-0/+4
When writing the config file from the command line, we must not forget to write the phy-netdev parameter, otherwise the program will fail to re-start later :/
2016-01-16OCTPHY: Replace '-lortp' with the proper pkg-config/autofoo versionHarald Welte1-2/+2
2016-01-16Add support for Octasic OCTSDR-2G GSM PHYHarald Welte18-0/+4568
This adds support for a new PHY to OsmoBTS, the Octasic OCTSDR-2G PHY. This is a proprietary GSM PHY running on a familty of Octasic DSPs.
2016-01-16LAPDm: Use T200 settings from OML rather than libosmocore defaultsHarald Welte3-1/+65
2016-01-16print a NOTICE message if lchan not activ in get_active_lchan_by_chan_nr()Harald Welte1-2/+5
2016-01-15fix some format specifiersAlexander Huemer2-6/+8
2016-01-11sysmobts-calib: Warn about firmware and header mismatchHolger Hans Peter Freyther1-1/+18
sysmobts-calib might be easily patched by a user that does not know that firmware and firmware headers form a contract that should be matched. Compare the version numbers and print a warning if it does not look correct. This should be enough for a user to see that something is not right. Continue anyway as the firmware might still be compatible (because the ABI has not changed). Fixes: SYS#1172
2016-01-11sysmobts-v2/eepromreader: Add userspace program to read EEPROMHolger Hans Peter Freyther1-0/+91
If using a too old kernel on newer devices the eeprom reading will fail and maybe it is not possible to update the kernel after the unit has been deployed. Add a utility to read the EEPROM of revD+ from userspace to be used to fix up the thing.
2016-01-08sysmobts: add missing break statement in l1if_handle_ind()Harald Welte1-0/+1
this was introduced in 21b020b33633683d7c785af15c773aab0f79d0de and luckily spotted by coverity (CID 1347446)
2016-01-08l1sap: Whitespace fixes.Alexander Chemeris1-2/+2
2016-01-04fix large amount of compiler warnings in common and sysmobts codeHarald Welte10-8/+13
2016-01-04sysmobts: Clarify msgb ownership / fix memory leaksHarald Welte1-21/+30
2015-12-07sysmobts: Catch up with the API changes and specify the versionHolger Hans Peter Freyther2-0/+15
API revision 5.1 allows us to pass a version number for the rx/tx calibration and the DSP/FPGA will inform us about clock errors.
2015-12-07sysmobts: support eeprom map version 2Minh-Quang Nguyen2-61/+446
[hfreyther: Accept the mixing of whitespace to ease future merges]
2015-12-06use talloc pool for msgb and ortp libraryHarald Welte2-2/+6
by using a talloc pool, we avoid having to go back to the libc malloc pool all the time. The msgb allocations and libortp allocations happen quite frequently during processing and show up as one of the high priority items in osmo-bts profiles on sysmoBTS with 14 concurrent TCH/H calls (highest load scenario). talloc still consumes significant CPU, this is mostly due to the zero-initialization of all the associated buffers. Strictly speaking we shouldn't need this, but any change there would require lots of testing, as there might be hidden assumptions in the code? In some percentage of cases, talloc still seems to fall back on malloc for msgb allocations, which is currently a bit of a mystery. The pools certainly are large enough, talloc_reprt() rarely reports more than a few tens of kilobytes used by the msgb pool.
2015-12-05osmo-bts-sysmo: Disable DSP trace flags by defaultHarald Welte2-2/+2
2015-12-05l1sap: Ensure we only pass PHY primitives of active lchansHarald Welte1-45/+41
In some situations, a PHY might send us a primitive for a logical channel that is not (or no longer) active. Passing such primitives higher up the stack is asking for trouble. Specifically, LAPDm instances cannot accept messages once their instance has been released. We introduce two new helper functions: get_lchan_by_chan_nr() as well as get_active_lchan_by_chan_nr(). The former just centralizes the look-up of the lchan by timeslot number and sub-slot number. The latter also checks to ensure the lchan is active, which is used for PH-DATA / PH-RTS primitives. To the contrary, MPH primitives generally don't require the cahnnel to be active for processing.
2015-12-03common/rsl.c: The presence of a valied measurement result is DEBUGHarald Welte1-1/+1
we shouldn't consider the presence of a valid measurement result as something NOTICEable
2015-11-20sysmobts: Dont recycle PHY primitive for L1SAP in PH-DATA.indHarald Welte1-20/+14
2015-11-20sysmobts: fix ph_data_req() msgb handling + alignmentHarald Welte1-24/+16
The way we recycle the msgb with a l1sap header when transforming a PH-DATA.req L1SAP primitive into a PHY/L1 primitive was flawed in several ways: 1) the way the L1SAP header was stored in the buffer didn't provide sufficient tailroom for the L1 primitive 2) the alignment of the data in L1SAP is at a 32bit bounadry, but not in the L1 primitive, causing unaligned accesses.
2015-11-20cope with 'struct gsm_bts' without a tsc memberHarald Welte2-3/+3
This was introduced in openbsc.git a2bbc5ec0e6481bb5b65da7bdbde03a424437af4
2015-11-05tests/Makefile.am: Don't use sysmobts SUBDIRS twiceHarald Welte1-4/+0
probably a git merge artefact of some sort...
2015-11-05TRX: catch up with trhe amr_mode naming changesHarald Welte2-11/+11
OpenBSC introduced a naming change in 615ed46a6ab25f71a7ab0d8201d33b4dbf8fc5b0 but osmo-bts fixes were only about osmo-bts-sysmo, not osmo-bts-trx. This updates osmo-bts-trx accordingly.
2015-11-05Don't blindly link against '-lortp' but use pkg-config for thatHarald Welte7-12/+13
This also ensures that a missing ortp library dependency is discovered at configure time already
2015-11-05Revert "configure.ac: Add subdir-objects to suppress warnings"Harald Welte1-1/+1
This reverts commit 94a05abb98fcb1a5002f327888635f3af860c9a9. The tests don't work well with subdir-objects, so we have to live with the warnings meanwhile until somebody finds time to find the magic spell to solve the autotools quest.
2015-10-12configure.ac: Better description for --enable-sysmocom-bts and --enable-trxHarald Welte1-4/+4
2015-10-12configure.ac: Add subdir-objects to suppress warningsHarald Welte1-1/+1
automake: warning: possible forward-incompatibility. automake: At least a source file is in a subdirectory, but the 'subdir-objects' automake: automake option hasn't been enabled. For now, the corresponding output automake: object file(s) will be placed in the top-level directory. However, automake: this behaviour will change in future Automake versions: they will automake: unconditionally cause object files to be placed in the same subdirectory automake: of the corresponding sources. automake: You are advised to start using 'subdir-objects' option throughout your automake: project, to avoid future incompatibilities.
2015-10-12configure.ac: Depend on libosmotrau 0.3.2 (ortp statistics)Harald Welte1-1/+1
2015-10-12configure.ac: Only require libgps if building for sysmoBTSHarald Welte1-1/+3
2015-10-03amr: Catch-up for the non-RTP mode after amr renameHolger Hans Peter Freyther1-1/+1
2015-10-03amr: Catch up with the amr_mode changesHolger Hans Peter Freyther2-11/+11
Use the bts_modes for all the types. As there are two instances know. One for the ms and one for the bts. Manual compile fix and not tested on HW
2015-09-22Merge branch '201509-trx-rebase'0.4.0Harald Welte54-34/+10123
2015-09-22TRX: Add missing call to abis_init()Harald Welte1-0/+2
This somehow got lost during the latest rebase.
2015-09-22make osmo-bts-trx provide bts_model_adjst_ms_pwr()Harald Welte1-0/+7
2015-09-22fixup tests after bts_model_adjst_ms_pwrHarald Welte1-0/+1
2015-09-22tests: Update busrsts_test build.Alexander Chemeris2-1/+4
We've added logging calls to the bursts processing. Add logging facility initializatoin to the test code.
2015-09-22trx: fix potential use of uninitialized toa variable.Alexander Chemeris1-1/+1
Not really a bug, as we're smart about it down the stream, but it's better to be strict here as well.
2015-09-22trx: Send POWERON/OFF commands to osmo-bts only for the first channel.Alexander Chemeris1-2/+8
osmo-trx never supported separate power control for trx's, but now it started to be more strict about it.
2015-09-22trx: Assume 100% BER if total decoded bits is 0 in l1if_process_meas_res()Alexander Chemeris1-1/+2