Commit Graph

41129 Commits

Author SHA1 Message Date
mdlewisfb
b5eed90664 Adding -fshort-enums flag to fix Linux stack smashing error. 2018-10-08 13:38:31 -07:00
Kashif Ali
1fc35ca263 Adding LTE B3 1W front-end module 2018-10-08 13:38:30 -07:00
mdlewisfb
5f1dff5124 Reverting common/inc move 2018-10-08 13:38:30 -07:00
mdlewisfb
61e58969a4 Updating CCS project to point to inc/ instead of common/ 2018-10-08 13:38:29 -07:00
mdlewisfb
690719deba Consolidating inc/ and common/inc directories all under inc/. 2018-10-08 13:38:29 -07:00
mdlewisfb
612d821f8f Renaming Devices to devices for consistent directory naming. 2018-10-08 13:38:29 -07:00
Omar Ramadan
fbe17b1204 Build osmo-bts recipe from local fork 2018-10-08 13:38:28 -07:00
Omar Ramadan
c13a6a8c44 Add OC-2G examples and systemd services 2018-10-08 13:38:28 -07:00
Omar Ramadan
fafabeca7e Merge osmo-bts-oc2g to upstream master
Some TODOs regarding OML alarm, and HO measurements
2018-10-08 13:38:22 -07:00
Omar Ramadan
a57a20321e Add src/osmo-bts-oc2g from nrw_noa/osmo-bts nrw/next 49ae5d
Squashed:
49ae5d1fee8b8fa5a995f6ce64055dd51070f36b        2018-09-07      oc-2g: adjust log level of DSP alive message to debug.
15d90a885adc106f4380dc88cf2772a8a76b420c        2018-04-18      L1-IF: fix memory leak problem during TS connect and disconnect procedure
21cc797c29b0985cf50f4eb08f1d7cbb91fdba90        2018-03-28      oc2g-vty: drop ambiguous 'show lchan' command
8a82cc6d43811fa88636ce59cfcbf8c0b4e56f12        2018-03-22      OC-2G: update L1 interface due to changes in upper layer L1SAP
c5c0457ab24b7926c9abb19eeca2d7f3531ff7a6        2018-01-19      GPS: access GPSD daemon to check for 3D fix
72e4585cc2813fda5f0bf465f52bdedd4e3445e7        2017-12-21      mgr: correct GPS 3D fix caching period
e362785ae98d71eb6f00816c800f67488bcc2500        2017-12-21      OC-2G: fix preventive action
69432db0f5150d3bd111df1a1c298c416bb670b7        2017-12-21      OC-2G: fix missing main power supply voltage monitor
41fb208aca491b7f21a5137936775966d55ee524        2017-12-21      mgr: improve GPS 3D fix alarm
1e19b3033f962563d5d2b66caafe5106f39ebeb6        2017-12-15      mgr: make sure initial cache files are created
7a92127c9c9a271fa7350a65864a9ee6917a5b46        2017-12-15      Change log level to display useful information in notice level
7d09c424b7e5e2e5b46a7bf5ecec0e9d9d9a6ce7        2017-11-23      DTX: Fix RTP marker for UL DTX
2c4e4ca56b1be6bda4c322161a546bfa8736bb42        2017-11-09      OC-2G: Always enable PA GPIO pin
738307abcf93986dc6cdc89d1e0a068c44b15754        2017-11-07      OC-2G: Fix configuration indentation
49ba5cda0149990e5d0dce5d9130d1d45cbcdf7f        2017-09-28      OC-2G: enable OC-2G BTS variant feature report
fd82ae0719810c5f9fceb75473b29de2fcb9f929        2017-09-28      OC2G: implement C0 idle slot power reduction feature
659aebbbdf770cb092ec1ce028ca1a3baf5ed6d5        2017-09-28      OC2G: remove obsolete 8-PSK power reduction in RF activation request
7400a24ab545e2611498509455f1da33637dc9fc        2017-09-28      Merge branch 'nrw/master-sync' into nrw/oc2g-merge-master-13092017
1179c2aee5b591689138956800e205be3e547def        2017-08-15      OC2G: Tx nominal power is retrieved from TX calibration file
770d4b7c1fdb917698c646a292b5c831c7eb1b50        2017-06-16      Fix application failure to start in auto-band mode when using GSM-850.
a03c3630d5bb290fe6a5205b2e8345dba1dd2084        2017-06-09      oc2gbts-mgr: Remove unused blink pattern.
a655fcf5d88bae295454526cfbbaaf28a8f752d4        2017-06-08      Adjust led pattern priority and fix many compilation warnings.
cc77c6ac1aca8745fd2b6116310448a274a7dc1e        2017-06-07      Add limit backdoor command to change the thresholds of all manager parameters.
f18bb829598978447ec91df06e1c6b21ba98ef7b        2017-06-06      Adapt manager to OC-2G.
05452378bac8c9dd94982ccddaedc9592ea0bfc4        2017-05-19      OC2G: Initial commit
2018-10-08 13:21:55 -07:00
Omar Ramadan
4886f718b0 Use HTTPs for pypi 2018-10-01 18:39:08 -07:00
Omar Ramadan
6fc9638cf7 Add OC-2G OE machine type 2018-10-01 18:39:00 -07:00
Omar Ramadan
a0733c1744 Add OC-2G firmware from gitlab.com/nrw_oc2g/oc2g-fw 2018-10-01 18:38:41 -07:00
Omar Ramadan
fce35390a8 Clone OC-2G systemd config from LC15 2018-10-01 18:38:39 -07:00
Omar Ramadan
ccb2e99afe Add OC-2G sysdev map from gitlab.com/nrw_oc2g/meta-nrw-bsp 2018-10-01 18:38:37 -07:00
Omar Ramadan
013d3536f9 Add OC-2G u-boot from gitlab.com/nrw_oc2g/meta-nrw-bsp 2018-10-01 18:38:28 -07:00
Omar Ramadan
718d67ecc5 Add OC-2G Linux from gitlab.com/nrw_oc2g/meta-nrw-bsp 2018-10-01 18:38:22 -07:00
Omar Ramadan
54fb9e71f9 Add system-images OC-2G target to Makefile 2018-10-01 18:38:17 -07:00
Omar Ramadan
f554159165 Merge commit 'c263ce2f41e27c99bba611763279cf434b893ed9' as 'software/osmo/system-images/git/meta-sysmocom-bsp/recipes-sysmobts/osmo-bts/files/osmo-bts' 2018-10-01 18:37:54 -07:00
Omar Ramadan
c263ce2f41 Squashed 'software/osmo/system-images/git/meta-sysmocom-bsp/recipes-sysmobts/osmo-bts/files/osmo-bts/' content from commit 33da462a2b
git-subtree-dir: software/osmo/system-images/git/meta-sysmocom-bsp/recipes-sysmobts/osmo-bts/files/osmo-bts
git-subtree-split: 33da462a2bf37f2688d79530b11f9e65b5c93502
2018-10-01 18:37:53 -07:00
Omar Ramadan
47e2e8cc95 Merge commit '7bfde8ddecb4b21a357fe43d52ce344c2896da68' as 'software/osmo/system-images/git/meta-sysmocom-bsp' 2018-10-01 18:37:41 -07:00
Omar Ramadan
7bfde8ddec Squashed 'software/osmo/system-images/git/meta-sysmocom-bsp/' content from commit 8e88c736b0
git-subtree-dir: software/osmo/system-images/git/meta-sysmocom-bsp
git-subtree-split: 8e88c736b03cb66ce5a18964fd6ac488e62715d7
2018-10-01 18:37:40 -07:00
Omar Ramadan
ee9c71856d Merge commit 'fdad12c5475421b225bc0580848e1414577479dd' as 'software/osmo/system-images' 2018-10-01 18:37:35 -07:00
Omar Ramadan
fdad12c547 Squashed 'software/osmo/system-images/' content from commit 9303288071
git-subtree-dir: software/osmo/system-images
git-subtree-split: 9303288071ba7ca97c4b257216b823e7dae461f7
2018-10-01 18:37:32 -07:00
Kashif Ali
31d75a0ffd Re-addig coding style guide for OCWare 2018-10-01 09:56:42 -07:00
Kashif Ali
65304fd118 Merge pull request #25 from Telecominfraproject/OCWareMerge
Merging of OpenCellular OCware repo to OpenCellular TIP repo.
2018-09-29 07:08:21 -07:00
Vishal Thakur
0b08f7a126 Updated unit test makefile with respect to the repository structure. 2018-09-28 23:40:21 -07:00
Vishal Thakur
b9761dc1cc Added Copyright header to Unit test files. 2018-09-28 23:40:16 -07:00
Vishal Thakur
973eb3b3d1 OpenCellular OCware repo merged to OpenCellular TIP repo.
> Changes done :
> 1. Shared schema between host and embedded controller.
2. Commands messages are handled at driver level.
3. Debug message type added to enable debugging on i2c, spi and gpio's.
4. Auto test capabilities added to ethernet module.
5. Unit test cases written for multiple devices like LTC4275, LTC4274, LTC4015,ADT7481, PCA9557, SX1509.
2018-09-28 23:40:11 -07:00
Kashif Ali
58fab76787 Merge pull request #24 from Telecominfraproject/feature_request_template_update
Updating issue templates so that checkboxes will not be created
2018-09-27 14:46:08 -07:00
Mark Lewis
aadfff45f4 Updating issue templates so that checkboxes will not be created, which create status tracking. 2018-09-27 11:23:08 -07:00
Kashif Ali
09782587b3 Fix bug report template 2018-09-27 07:43:26 -07:00
Kashif Ali
b637b2b7a0 Removed duplication 2018-09-20 14:45:01 -07:00
Kashif Ali
29098242a1 Update issues templates (bug, feature, evt/dvt) 2018-09-20 14:44:19 -07:00
Kashif Ali
36badf8d23 Added GBCv2 (Elgon), PSU (Rev-A), BBU (Rev-C), clean up version for LED and updated new dir in README 2018-09-18 00:24:36 -07:00
David Hendricks
25516fbbf2 Revert "firmware/coreboot: Subtree merge 3rdparty/blobs"
This reverts commit ace6f50fbe, reversing
changes made to ebd9237de9.

The files landed in the wrong place...

Signed-off-by: David Hendricks <dhendricks@fb.com>
2018-09-09 02:19:17 -07:00
David Hendricks
ace6f50fbe firmware/coreboot: Subtree merge 3rdparty/blobs
Signed-off-by: David Hendricks <dhendricks@fb.com>
2018-09-09 00:59:16 -07:00
David Hendricks
ebd9237de9 firmware/coreboot: Subtree merge coreboot
Signed-off-by: David Hendricks <dhendricks@fb.com>
2018-09-09 00:50:06 -07:00
Caveh Jalali
41979d862a mb/google/poppy/variants/atlas: enable NVMe
This adds support for a x2 NVMe device on PCIe bus PCIe lines 5+6 and
clock#4.

BUG=b:113369699
TEST=booted on atlas

Change-Id: I08e7c4d65662ddbb7d936915c896eb1fcb240ba8
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://review.coreboot.org/28535
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
2018-09-07 23:40:08 +00:00
Patrick Georgi
dce4d465a6 util/crossgcc: Tell gcc that it'll use gnu as and ld
Otherwise it reduces its expectations on what as and ld take in terms
of arguments, which breaks some edk2 related builds because tons of
-I$path_to_stuff arguments aren't passed along.

Change-Id: I53f87442de03d5ead8a6632d3102d5502065b828
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/28534
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Martin Roth <martinroth@google.com>
2018-09-07 19:17:15 +00:00
Richard Spiegel
7160766ebf lib/gpio.c: Fix _gpio_base3_value invalid shift
Coverity CID 1395334: (BAD_SHIFT) - In function _gpio_base3_value(), if
gpio_num is 32 and gpio[31] is floating, the end result is 1 << 32, which
does not fit into a int. To avoid a possible error, make it an error to have
num_gpio > 31. Function _gpio_base2_value also have the same issue, but the
limit would be 32. As in practice it'll never be used with more than 20 GPIO,
create a helper function to limit it to 31 and call it everywhere needed.

BUG=b:113788440
TEST=Add a fake code to southbridge_final calling the function and printing
the result. Build and boot grunt, check result.

Change-Id: I0b79725bcbaf120587c7440e176643aaa7a1d5bb
Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Reviewed-on: https://review.coreboot.org/28445
Reviewed-by: Martin Roth <martinroth@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2018-09-07 14:53:54 +00:00
Marshall Dawson
653f760b13 amd/stoneyridge: Construct ACPI BERT table
Add a Boot Error Record Table to the ACPI information.  Avoid a driver
error message by skipping the table altogether when no errors are found,
or support isn't built in.

BUG=b:65446699
TEST=inspect BERT region, and dmesg, on full patch stack.  Use test
     data plus a failing Grunt system.

Change-Id: I6fe38eefacaad0bc73d0cb4ae44a339a45857128
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/28478
Reviewed-by: Martin Roth <martinroth@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2018-09-07 14:52:53 +00:00
Marshall Dawson
64e1fcaaf9 amd/stoneyridge: Construct BERT region from machine check
Add functions to build a Boot Error Record Table region based on
settings found in the MCA registers.

Two entries are reported for each error due to the nature of the ACPI
driver.  The first is a Generic Processor Error, which the OS recognizes
and parses.  Generic errors cannot convey much error description or
processor context.  Therefore an IA32/X64 Processor Error is also added,
which allows reporting the values found in the MCA MSR registers.

Follow-on work could decode the MC errors more precisely, and better
completing the Generic Error and the Check structure.  The current
level of support is sufficient to identify a (i.e., human readable)
problem in dmesg, and provides adequate context information for
analysis.

BUG=b:65446699
TEST=inspect BERT region, and dmesg, on full patch stack.  Use test
     data plus a failing Grunt system.

Change-Id: I4d4ce29ddefa22aa29e6d3184f1adeaea1d5f837
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/28477
Reviewed-by: Martin Roth <martinroth@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2018-09-07 14:52:32 +00:00
Marshall Dawson
e1bd38bec5 amd/stoneyridge: Create an MCA structure
Convert the Machine Check reporting to use a newly defined structure.
This will facilitate later patches that will pass pointers to the MSR
values.

BUG=b:65446699
TEST=inspect BERT region, and dmesg, on full patch stack.  Use test
     data plus a failing Grunt system.

Change-Id: I0a98aecc83a0fa1c5ca7926849a89145a595d9ff
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/28476
Reviewed-by: Martin Roth <martinroth@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2018-09-07 14:52:03 +00:00
Marshall Dawson
0b4a1e220a amd/stoneyridge: Relocate MCA error identification
Move the process of interrogating the Machine Check registers into
its own file.  This rearranges source code in preparation of supporting
a Boot Error Record Table, which stoneyridge will use to report latent
MC errors to the OS.

BUG=b:65446699
TEST=inspect BERT region, and dmesg, on full patch stack.  Use test
     data plus a failing Grunt system.

Change-Id: Ia3275e9135dc96ba4a717c9371f38843fa1e3e64
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/28475
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
2018-09-07 14:51:42 +00:00
Marshall Dawson
4b0f6fa156 amd/stoneyridge: Adjust memory map for reserved
Carve out memory to be reported to the OS as reserved.  This makes
room for a region usable for Boot Error Record Table information.
The BERT region reserved size is larger than likely requried, however
the SMM region's base must be on a boundary matching the granularity
of its size.

BUG=b:65446699
TEST=inspect BERT region, and dmesg, on full patch stack.  Use test
     data plus a failing Grunt system.

Change-Id: I0958f6b6bab3fe9dae36c83e1fd9ae6ed0290a18
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/28474
Reviewed-by: Martin Roth <martinroth@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2018-09-07 14:51:31 +00:00
Marshall Dawson
bb7f1b41e7 amd/fam15: Add more MCA information
Add more definitions to be used for Machine Check Architecture
support, mainly for determining the type of error that is being
interpreted.  MCA is described in detail in the BKDG.

BUG=b:65446699
TEST=inspect BERT region, and dmesg, on full patch stack.  Use test
     data plus a failing Grunt system.

Change-Id: I0682288aa58c69aee323fb43f74027f7a1905b68
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/28473
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
2018-09-07 14:51:03 +00:00
Marshall Dawson
1d8d369dad x86/acpi: Add BERT table
Create a structure for the Boot Error Record Table, and a generic
table generator function.

BUG=b:65446699
TEST=inspect BERT region, and dmesg, on full patch stack.  Use test
     data plus a failing Grunt system.

Change-Id: Ibeef4347678598f9f967797202a4ae6b25ee5538
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/28472
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
2018-09-07 14:50:34 +00:00
Marshall Dawson
44705c6e5e x86/acpi: Add BERT to the revision table
Add the proper table revision level for the Boot Error Record Table.

BUG=b:65446699
TEST=inspect BERT region, and dmesg, on full patch stack.  Use test
    data plus a failing Grunt system.

Change-Id: Ib4596fe8c0dd2a4e2e98df3a1bb60803c48d0256
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/28471
Reviewed-by: Martin Roth <martinroth@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2018-09-07 14:50:16 +00:00
Marshall Dawson
991467da4d arch/x86: Add BERT region support functions
Add code for generating the region pointed to in an ACPI Boot Error
Record Table.

The BERT region must be reported as Reserved to the OSPM, so this
code calls out to a system-specific region locator.  cbmem is
reported as type 16 and is not usable for the BERT region.

Events reported via BERT are Generic Error Data, and are constructed
as follows (see ACPI and UEFI specs for reference):
 * Each event begins with a Generic Error Status Block, which may
   contain zero or more Generic Data Entries
 * Each Generic Data Entry is identifiable by its Section Type field,
   and the data structures associated are also in the UEFI spec.
     * The GUIDs are listed in the Section Type field of the CPER
       Section Descriptor structure.  BERT doesn't use this structure
       but simply uses its GUIDs.
     * Data structures used in the Generic Data Entry are named as
       Error Sections in the UEFI spec.
         * Some sections may optionally include a variable number of
           additional structures, e.g. an IA32/X64 processor error
           can report error information as well as machine contexts.

It is worth noting that the Linux kernel (as of v4.4) does not attempt
to parse IA32/X64 sections, and opts to hexdump them instead.

BUG=b:65446699
TEST=inspect BERT region, and dmesg, on full patch stack.  Use test
     data plus a failing Grunt system.

Change-Id: I54826981639b5647a8ca33b8b55ff097681402b9
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/28470
Reviewed-by: Martin Roth <martinroth@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2018-09-07 14:50:02 +00:00