summaryrefslogtreecommitdiff
path: root/meta-phosphor/common/recipes-phosphor/settings
AgeCommit message (Collapse)AuthorFilesLines
2018-06-25phosphor-settings-manager.inc: bump versionAndrew Geissler1-1/+1
Change-Id: Iebf4a7793a981715c5f5d959aa1f04fa0b362b26 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-30phosphor-settings-manager.inc: bump versionAndrew Geissler1-1/+1
Change-Id: I209fadb376fa3b1d63033c2ddc328607d8043215 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-16Factor PS derating into power cap limit validationMatt Spinler1-0/+3
When the BMC sends a system power cap to the host, the host validates it is in a certain range or it will reject it. So, the BMC also checks the range before sending it at all. This range comes out of the MRW (machine readable workbook) XML, and is stored as output power. The user, however, inputs the power cap value as input power, and so the range the BMC code checks it against must also be in input power. To support this, the script that pulls the power cap min and max values out of the MRW for use in settings validation will now convert those output power values into input power by applying the power supply derating factor. Resolves openbmc/openbmc#2944 Tested: Check that the power cap range that the settings manager uses is now the input power versions. Change-Id: Id5c5851d081ad706fda73054b49e67a93d57f76e Signed-off-by: Matt Spinler <spinler@us.ibm.com>
2018-03-13Remove obmc-mrw machine featureBrad Bishop1-2/+2
Using MRW or not is distro policy. As such remove the obmc-mrw machine feature. Do not enable the remaining obmc-mrw distro feature in the base phosphor distro configuration. Create new distro configs for the systems that use MRW today (i.e. Witherspoon) that enables the obmc-mrw distro feature and point the local.conf.sample at the new distro configuration. Change-Id: If4cedc745b3ee942518fbfd4d5cf2cd5b60f346d Tested: Built a Witherspoon image and validate the manifest Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-03-01Add in default for Turbo mode enable/disableJayanth Othayoth1-0/+6
Provide a Turbo mode setting and the ability to enable/disable the processor Turbo mode. Default value is enabled. Change-Id: I17537f845dc17fb850e349a63cd2f93ad25cf225 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
2018-02-28Remove legacy settings serviceAndrew Geissler2-68/+0
xyz.openbmc_project.Settings has replaced this function Resolves openbmc/openbmc#2339 Change-Id: Ifec6a2fda088c4631e3835d3276a54e09b5d7147 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-13Add PowerSupplyRedundancy to default settingsGunnar Mills1-0/+6
Change-Id: I48fc29a730338e9118863745a04486fda54add65 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
2018-02-08Run legacy services with lowest priorityAndrew Geissler1-0/+2
The early boot of the BMC sees a lot of processes start at the same time (right after mapper completes). The loading of these legacy python services contributes a lot of un-needed workload to the CPU during this time. The eventual goal is to simply remove these services but until that is done, ensure they run with the lowest priority. Resolves openbmc/openbmc#2825 Change-Id: I71e14b02ec943ebe3f64e1818c4fbd7699e690bf Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-06phosphor-settings-manager.inc: bump versionAndrew Geissler1-1/+1
Change-Id: I22307fe1e7f6674a3a112b4d397f8197434da260 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-06setings: recipe renamesBrad Bishop3-1/+1
Append -native to native settings recipes according to standard bitbake naming conventions. Change-Id: Ic4a44aefe559ea5cd94b441288d9b80177f9d602 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-01-30Use variables for MRW XML filename and pathMatt Spinler1-1/+2
Create an mrw-xml bbclass that has variables for the MRW XML filename and path to it. Then, changes all users of the MRW XML to inherit that class and use those variables. The filename will default to ${MACHINE}.xml if it hasn't already been set to something else, such as in a .conf file. This is done so that the file can be something other than ${MACHINE}.xml. Change-Id: Ia7021e5a5d5e7946829e58688250aa64250cb00e Signed-off-by: Matt Spinler <spinler@us.ibm.com>
2017-10-24phosphor-settings-read-settings-mrw recipeGunnar Mills3-0/+41
phosphor-settings-read-settings-mrw recipe calls gen_settings.pl to replace any MRW variables in mrw-override-settings.yaml with their MRW value. The file generated by gen_settings.pl, mrw-settings.override.yaml, is then used as an override of phosphor-settings. mrw-override-settings.yaml by default is empty so no settings are actually overwritten. A later commit will modify mrw-override-settings.yaml in the Witherspoon layer. Change-Id: I3134dbb834ff52abe5be589dd1d88444b8577254 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
2017-10-19Fix YAML overriding.Kun Yi2-2/+2
bitbake tasks use python3, under which filter() returns a filter object which doesn't enumerate as list. As a result none of the overriding YAMLs takes effect. Use list expansion instead. Discussion for context: https://lists.ozlabs.org/pipermail/openbmc/2017-October/009521.html Fixes openbmc/openbmc#2469. Change-Id: I37cc7fc14b6f91c4eb1fb199d7cff52d93c9ad2a Signed-off-by: Kun Yi <kunyi@google.com>
2017-10-11phosphor-settings-manager.inc: bump versionAndrew Geissler1-1/+1
Change-Id: I830ccc62b2df9d719d55ea620caefd20eaf4c7c5 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-09-29phosphor-settings-manager.inc: bump versionPatrick Williams1-1/+1
Change-Id: I50fc816b8e5648eec0b34c86b833089fd00af81a Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-09-26phosphor-settings-manager.inc: bump versionPatrick Williams1-1/+1
Change-Id: I161ee6f3797c3af1b5b8c0f9f89219e77ec83070 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-09-08boot settings: add new 'one_time' objectDeepak Kodihalli1-0/+14
Add boot/one_time object to denote boot settings that should apply only to the next boot. Change-Id: I0c422985104b5fd8688e0a5b69176683a6f2cf54 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
2017-09-08boot settings: create single objectDeepak Kodihalli1-3/+1
Now that settings objects can implement multiple interfaces, create a single control/boot object that implements both the Control/Boot/Mode and Control/Boot/Source interfaces. This is more natural to apps interested in this setting, instead of two objects representing the boot mode and boot source. Change-Id: I57c1cd65243b2a334352e6c298ed0572bca4c8cd Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
2017-09-08settings yaml: enable multiple interfacesDeepak Kodihalli2-71/+71
The settings manager now supports multiple interfaces per settings object. For that reason, the settings yaml should contain a list of interfaces under each settings object. Change-Id: Ief5aff4c1305c3ee0629ecd1b7da5868b4b4c73e Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
2017-08-25Enable BMC patching from the /usr/local pathMichael Tritz2-2/+4
This commit enables patches from the /usr/local path by replacing absolute paths to /usr/sbin or /usr/bin in every service file with "/usr/bin/env ". Additionally, SyslogIdentifier is added to each file to ensure that journal entries are still distinct. In two cases, service files also had to change due to references to ${{PATH}}, which doesn't work with /usr/bin/env. These references - and the corresponding definitions - were changed to ${{DEVPATH}}. Resolves openbmc/openbmc#2149 Change-Id: I12c5c6e5101eef6820b985a563313836250ff2c7 Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
2017-08-23Default PowerRestorePolicy to always offAndrew Geissler1-1/+1
Most commercial systems default to "off unless told otherwise". This commit makes this the default for phosphor systems. Resolves openbmc/openbmc#2186 Change-Id: Iafc6bf2556f24d1503de7db4d8db4e278b433ed4 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2017-08-08phosphor-settings-manager.inc: bump versionPatrick Williams1-1/+1
Change-Id: Id941a5fb174ebcf666d9c87fb374d3c635f39dc4 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-08-07settings: MAC address: allow lower case hex charsDeepak Kodihalli1-1/+1
Change-Id: Id18331c04f687f6899df425428e84f5b41778a2c Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
2017-08-03settings: Add MSL settingBrad Bishop1-0/+6
MSL: minimum ship level. Provide a setting store and interface for the minimum ship level DBus setting interface. Change-Id: Ib881fd28605cdfac69aa54bc2c64726d2381a6eb Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2017-08-02Add in default for TPM enable/disableMarri Devender Rao1-0/+6
Resolves openbmc/openbmc#1463 Change-Id: I55eb302638f19a009ff863202b316f93058be804 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
2017-08-01Enable "AutoReboot" property by defaultGeorge Keishing1-1/+1
Resolves openbmc/openbmc#2056 Change-Id: Idff3f01ff84a16c888917eff819b2720f8a7c3e4 Signed-off-by: George Keishing <gkeishin@in.ibm.com>
2017-08-01settings: meta-zaius: add overrideDeepak Kodihalli3-58/+91
Zaius had a way to override the reboot policy setting. Make sure that still works with the new settings application. Change-Id: I51e32705b9aa4787fadab211f57b5fdcf75a3207 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
2017-08-01settings: restriction_mode: set default to NoneDeepak Kodihalli1-0/+6
Change-Id: I61debcb77eda2d7e0ae8ac77aab518df51e392da Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
2017-08-01settings: Add missing phosphor-logging dependencyBrad Bishop1-0/+1
Change-Id: Ib5fcc3bc5d663719bd508810b2ffe87bf1943169 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2017-07-30Settings YAML changes to add settings validation.Patrick Williams2-24/+50
Change-Id: Ied5f585eb6165daccfb606f403f55af9a26f56c3 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
2017-07-20Add host network config settingsRatan Gupta1-0/+14
Change-Id: Ia8c221b91c78717bb564fd7cd8c92eaa28f56679 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
2017-07-07phosphor-settings-manager.inc: bump versionPatrick Williams1-1/+1
Change-Id: I542e7ffdfc82aee6547df3cb17022d428071f468 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-06-30Add in default for power cap enable/disableAndrew Geissler1-0/+1
Per the OCC interface specification, must provide a power cap setting and the ability to enable/disable that power cap. The default will for it to be disabled. Change-Id: I239a4f5a27c0a64650b4d3a28fc24286f02b60a9 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2017-06-26settings: add depends on cerealDeepak Kodihalli1-0/+1
Cereal is used to serialize and thereby persist to the filesystem, changes to settings. Change-Id: I02756e1e785706654cd2ed8a06f513f4aa5c0fa6 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
2017-06-26settings: set default value for Power CapDeepak Kodihalli1-0/+2
Change-Id: Ia315e76c43ca19507fc3fe8faf7a249e9d05e0b8 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
2017-06-03phosphor-settings: bump and use .inc for SRC_URIPatrick Williams2-4/+3
Change-Id: If9a464c49336154f88c74e8c65012740af0672bd Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-06-02Add recipe for the new settings managerDeepak Kodihalli5-0/+94
Change-Id: I28b3454c0066649b0c163616247f9ca1bbf3abb3 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
2017-05-31phosphor-settings.bb: bump versionPatrick Williams1-1/+1
Change-Id: I1003d277ef65113aacbec33accf04b83afc78c2a Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-05-25phosphor-settings: missing dependency on ipyv1.99.6Patrick Williams1-1/+1
Change-Id: Iceb42e654ea5f5a93f203fe9a65eb7df782180d1 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-04-09phosphor-settings: Add task to handle settings overridesXo Wang2-0/+87
Add a BitBake task that merges YAML fragments that overwrite the default settings YAML file. These fragments have the suffix ".override.yml" and allow e.g. machine layers to override the values in settings.yaml without replacing its entire contents. Fixes openbmc/openbmc#1269. Signed-off-by: Xo Wang <xow@google.com> Change-Id: I8d463630deee74ed6d5c18aa98e837a6ca7f7633
2017-04-06phosphor-settings.bb: bump versionv1.99.4Patrick Williams1-1/+1
Change-Id: Ib5acfdb204e493d00c1013f63a35419bd1b7c233 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-04-04phosphor-settings.bb: bump versionPatrick Williams1-1/+1
Change-Id: I1a4de9eb9e848eccdd45136e59ae653d55bf3a45 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-02-10phosphor-settings.bb: bump versionPatrick Williams1-1/+1
Change-Id: I4778252307a303102403ea9f1e73d243f575203a Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-01-24phosphor-settings.bb: bump versionPatrick Williams1-1/+1
Change-Id: Id5798fa98b7b60e852fb8c2eb9b96c27c7f2b6af Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-01-16phosphor-settings.bb: bump versionPatrick Williams1-1/+1
Change-Id: If82414344beff57ab950e18b1b4d9f8341270c41 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2016-12-19phosphor-settings.bb: bump versionPatrick Williams1-1/+1
Change-Id: I683f1eb10bcd64c85fa8267d6b9f3ee67f922978 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2016-12-17Host Settings no longer depends on host controlMatt Spinler1-2/+2
The host settings service can now handle the host control object not being present, so no dependency is required. Change-Id: I860b848c9e49bfce51b78f9af6ca1d86bd86bd23 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
2016-11-22phosphor-settings.bb: bump versionPatrick Williams1-1/+1
Change-Id: I1acda93093e831e2f65c6a36a0decd8d02b696ce Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2016-11-15phosphor-settingsd: add systemd dependsPatrick Williams1-0/+2
settingsd now does queries for specific objects, so we need those objects to be populated. Add 'Before' and 'Wants' directives for the /org/openbmc/control/Host0 object. Additional fixes for openbmc/openbmc#806. Change-Id: Icd3c40180a84cea58da9a43f0449c066c632c8f0 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2016-11-15phosphor-settings.bb: bump versionPatrick Williams1-1/+1
Change-Id: I1f23131b18ec45b39a796a7a1b0bbce3c49b6b04 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>