aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-01-22Merge remote-tracking branch ↵integration-linux-qcomlt-20190122-134742-v5.0-rc3-229-gedb4f86e7a6dLinaro CI
'qcs404-ethernet/tracking-qcomlt-qcs404-ethernet' into integration-linux-qcomlt
2019-01-22Merge remote-tracking branch 'qcs404-cpufreq/qcomlt/qcs404-cpufreq' into ↵Linaro CI
integration-linux-qcomlt
2019-01-22Merge remote-tracking branch 'qcs404-dt/tracking-qcomlt-qcs404-dt' into ↵Linaro CI
integration-linux-qcomlt # Conflicts: # arch/arm64/boot/dts/qcom/qcs404.dtsi
2019-01-22Merge remote-tracking branch ↵Linaro CI
'qcs404-defconfig/tracking-qcomlt-qcs404-defconfig' into integration-linux-qcomlt
2019-01-22Merge remote-tracking branch 'tsens-thermal/integration/thermal-automerge' ↵Linaro CI
into integration-linux-qcomlt
2019-01-22Merge remote-tracking branch 'apq8064-cpufreq/qcomlt-apq8064-cpufreq' into ↵Linaro CI
integration-linux-qcomlt
2019-01-22Merge remote-tracking branch 'db600c/qcomlt-db600c' into ↵Linaro CI
integration-linux-qcomlt
2019-01-22Merge remote-tracking branch 'bus-scaling-consumers/bus-scaling-consumers' ↵Linaro CI
into integration-linux-qcomlt
2019-01-22Merge remote-tracking branch 'bus-scaling/bus-scaling' into ↵Linaro CI
integration-linux-qcomlt # Conflicts: # arch/arm64/boot/dts/qcom/msm8996.dtsi
2019-01-22Merge remote-tracking branch 'sdm845-dt/tracking-qcomlt-sdm845-dt' into ↵Linaro CI
integration-linux-qcomlt
2019-01-22Merge remote-tracking branch 'sdm845-rproc-mss/qcomlt/rproc-mss' into ↵Linaro CI
integration-linux-qcomlt # Conflicts: # arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi # arch/arm64/boot/dts/qcom/msm8996.dtsi # arch/arm64/boot/dts/qcom/sdm845.dtsi
2019-01-22Merge remote-tracking branch 'sdm845-rproc-pas/qcomlt/rproc-pas' into ↵Linaro CI
integration-linux-qcomlt
2019-01-22Merge remote-tracking branch ↵Linaro CI
'distro.config/tracking-qcomlt-config-fragments' into integration-linux-qcomlt
2019-01-22Merge remote-tracking branch ↵Linaro CI
'arm64-defconfig/tracking-qcomlt-arm64-defconfig' into integration-linux-qcomlt
2019-01-22Merge remote-tracking branch 'iommu/tracking-qcomlt-iommu' into ↵Linaro CI
integration-linux-qcomlt
2019-01-22Merge remote-tracking branch 'drm-msm/tracking-qcomlt-drm-msm' into ↵Linaro CI
integration-linux-qcomlt
2019-01-22Merge remote-tracking branch ↵Linaro CI
'fixes/tracking-qcomlt-fixes-without-devfreq-reverts' into integration-linux-qcomlt
2019-01-22Merge remote-tracking branch 'fastrpc/tracking-qcomlt-fastrpc' into ↵Linaro CI
integration-linux-qcomlt
2019-01-22Merge remote-tracking branch 'audio/tracking-qcomlt-audio' into ↵Linaro CI
integration-linux-qcomlt
2019-01-22Merge remote-tracking branch 'wcd9335/tracking-qcomlt-wcd9335' into ↵Linaro CI
integration-linux-qcomlt
2019-01-22Merge remote-tracking branch 'msm8996-dt/tracking-qcomlt-msm8996-dt' into ↵Linaro CI
integration-linux-qcomlt # Conflicts: # arch/arm64/boot/dts/qcom/msm8996.dtsi
2019-01-22Merge remote-tracking branch 'cpufreq-8996/tracking-qcomlt-8996-dvfs' into ↵Linaro CI
integration-linux-qcomlt
2019-01-22Merge branch 'integration/thermal-throttling-testing' into ↵Amit Kucheria
integration/thermal-automerge * integration/thermal-throttling-testing: arm64: dts: sdm845: wireup the thermal trip points to cpufreq cpufreq: scpi: Use auto-registration of thermal cooling device cpufreq: scmi: Use auto-registration of thermal cooling device cpufreq: qoriq: Use auto-registration of thermal cooling device cpufreq: mediatek: Use auto-registration of thermal cooling device cpufreq: cpufreq-dt: Use auto-registration of thermal cooling device cpufreq: imx6q: Use auto-registration of thermal cooling device cpufreq: qcom-hw: Register as a cpufreq cooling device cpufreq: Auto-register the driver as a thermal cooling device if asked thermal: cpu_cooling: Require thermal core to be compiled in cpufreq: qcom-hw: Move to device_initcall DONT POST: Add cpufreq DT definition cpufreq: Replace open-coded << with BIT()
2019-01-22arm64: defconfig: Enable PMIC thermalAmit Kucheria
QCOM_SPMI_ADC5 is required on 8998, SDM845 and QCS404. Compile SPMI_TEMP_ALARM into the kernel to ease testing. Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2019-01-22dt: pms405: Export PMIC temperature to thermal frameworkAmit Kucheria
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2019-01-22dt-bindings: iio: adc: Add binding for ADC on pms405 PMICAmit Kucheria
PMS405 contains a variant of the spmi-adc-rev2 ADC. Create a new compatible inorder to handle any differences. Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2019-01-22arm64: dts: qcom: qcs404: Add thermal zones for each sensorAmit Kucheria
qcs404 has 10 sensors connected to the single TSENS IP. Define a thermal zone for each of those sensors to expose the temperature of each zone. Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2019-01-22arm64: dts: qcom: qcs404: Add tsens controllerAmit Kucheria
qcs404 has a single TSENS IP block with 10 sensors. The calibration data is stored in an eeprom (qfprom) that is accessed through the nvmem framework. We add the qfprom node to allow the tsens sensors to be calibrated correctly. Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org> Signed-off-by: Vinod Koul <vkoul@kernel.org>
2019-01-22dt: thermal: tsens: Add bindings for qcs404Amit Kucheria
qcs404 uses v1 of the TSENS IP block. Create a fallback DT property "qcom,tsens-v1" to gather common code. Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org> Signed-off-by: Vinod Koul <vkoul@kernel.org>
2019-01-22drivers: thermal: tsens: Add generic support for TSENS v1 IPAmit Kucheria
qcs404 has a single TSENS IP block with 10 sensors. It uses version 1.4 of the TSENS IP, functionality for which is encapsulated inside qcom,tsens-v1 compatible. Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org> Reviewed-by: Vinod Koul <vkoul@kernel.org> Tested-by: Vinod Koul <vkoul@kernel.org>
2019-01-21Merge branch 'up/cpufreq/auto-register-cooling-dev-v2' into ↵Amit Kucheria
integration/thermal-throttling-testing * up/cpufreq/auto-register-cooling-dev-v2: cpufreq: scpi: Use auto-registration of thermal cooling device cpufreq: scmi: Use auto-registration of thermal cooling device cpufreq: qoriq: Use auto-registration of thermal cooling device cpufreq: mediatek: Use auto-registration of thermal cooling device cpufreq: cpufreq-dt: Use auto-registration of thermal cooling device cpufreq: imx6q: Use auto-registration of thermal cooling device cpufreq: qcom-hw: Register as a cpufreq cooling device cpufreq: Auto-register the driver as a thermal cooling device if asked thermal: cpu_cooling: Require thermal core to be compiled in cpufreq: Replace open-coded << with BIT()
2019-01-21Merge branch 'up/thermal/sdm845-thermal-throttling-v3' into ↵Amit Kucheria
integration/thermal-throttling-testing * up/thermal/sdm845-thermal-throttling-v3: arm64: dts: sdm845: wireup the thermal trip points to cpufreq
2019-01-21arm64: dts: sdm845: wireup the thermal trip points to cpufreqAmit Kucheria
Since all cpus in the big and little clusters, respectively, are in the same frequency domain, use all of them for mitigation in the cooling-map. We end up with two cooling devices - one each for the big and little clusters. We throttle lightly at the first trip point, just removing the boost frequency. At the next trip point we allow ourselves to be throttled to any extent. Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2019-01-21cpufreq: scpi: Use auto-registration of thermal cooling deviceAmit Kucheria
Use the CPUFREQ_AUTO_REGISTER_COOLING_DEV flag to allow cpufreq core to automatically register as a thermal cooling device. This allows removal of boiler plate code from the driver. Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org> Acked-by: Sudeep Holla <sudeep.holla@arm.com>
2019-01-21cpufreq: scmi: Use auto-registration of thermal cooling deviceAmit Kucheria
Use the CPUFREQ_AUTO_REGISTER_COOLING_DEV flag to allow cpufreq core to automatically register as a thermal cooling device. This allows removal of boiler plate code from the driver. Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org> Acked-by: Sudeep Holla <sudeep.holla@arm.com>
2019-01-21cpufreq: qoriq: Use auto-registration of thermal cooling deviceAmit Kucheria
Use the CPUFREQ_AUTO_REGISTER_COOLING_DEV flag to allow cpufreq core to automatically register as a thermal cooling device. This allows removal of boiler plate code from the driver. Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2019-01-21cpufreq: mediatek: Use auto-registration of thermal cooling deviceAmit Kucheria
Use the CPUFREQ_AUTO_REGISTER_COOLING_DEV flag to allow cpufreq core to automatically register as a thermal cooling device. This allows removal of boiler plate code from the driver. Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2019-01-21cpufreq: cpufreq-dt: Use auto-registration of thermal cooling deviceAmit Kucheria
Use the CPUFREQ_AUTO_REGISTER_COOLING_DEV flag to allow cpufreq core to automatically register as a thermal cooling device. This allows removal of boiler plate code from the driver. Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2019-01-21cpufreq: imx6q: Use auto-registration of thermal cooling deviceAmit Kucheria
Use the CPUFREQ_AUTO_REGISTER_COOLING_DEV flag to allow cpufreq core to automatically register as a thermal cooling device. This allows removal of boiler plate code from the driver. Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2019-01-21cpufreq: qcom-hw: Register as a cpufreq cooling deviceAmit Kucheria
Add the CPUFREQ_AUTO_REGISTER_COOLING_DEV flag to allow the cpufreq core to auto-register the driver as a cooling device. Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> Tested-by: Matthias Kaehlcke <mka@chromium.org> Reviewed-by: Stephen Boyd <swboyd@chromium.org>
2019-01-21cpufreq: Auto-register the driver as a thermal cooling device if askedAmit Kucheria
All cpufreq drivers do similar things to register as a cooling device. Provide a cpufreq driver flag so drivers can just ask the cpufreq core to register the cooling device on their behalf. This allows us to get rid of duplicated code in the drivers. In order to allow this, we add a struct thermal_cooling_device pointer to struct cpufreq_policy so that drivers don't need to store it in a private data structure. Suggested-by: Stephen Boyd <swboyd@chromium.org> Suggested-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> Tested-by: Matthias Kaehlcke <mka@chromium.org>
2019-01-21thermal: cpu_cooling: Require thermal core to be compiled inAmit Kucheria
The CPU cooling driver (cpu_cooling.c) allows the platform's cpufreq driver to register as a cooling device and cool down the platform by throttling the CPU frequency. In order to be able to auto-register a cpufreq driver as a cooling device from the cpufreq core, we need access to code inside cpu_cooling.c which, in turn, accesses code inside thermal core. CPU_FREQ is a bool while THERMAL is tristate. In some configurations (e.g. allmodconfig), CONFIG_THERMAL ends up as a module while CONFIG_CPU_FREQ is compiled in. This leads to following error: drivers/cpufreq/cpufreq.o: In function `cpufreq_offline': cpufreq.c:(.text+0x407c): undefined reference to `cpufreq_cooling_unregister' drivers/cpufreq/cpufreq.o: In function `cpufreq_online': cpufreq.c:(.text+0x70c0): undefined reference to `of_cpufreq_cooling_register' Given that platforms using CPU_THERMAL usually want it compiled-in so it is available early in boot, make CPU_THERMAL depend on THERMAL being compiled-in instead of allowing it to be a module. Suggested-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2019-01-21cpufreq: qcom-hw: Move to device_initcallAmit Kucheria
subsys_initcall causes problems registering the driver as a thermal cooling device. If "faster boot" is the main reason for doing subsys_initcall, this should be handled in the bootloader or another boot constraint framework. Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2019-01-21DONT POST: Add cpufreq DT definitionAmit Kucheria
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2019-01-21cpufreq: Replace open-coded << with BIT()Amit Kucheria
Minor clean-up to use BIT() and keep checkpatch happy. Clean up the comment formatting while we're at it to make it easier to read. Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2019-01-21add ndo_select_queueVinod Koul
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2019-01-21enable arVinod Koul
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2019-01-21dsa slave changes, need explanationVinod Koul
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2019-01-21[DONT UPSTREAM]: Enable QCA8K Phy for testingVinod Koul
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2019-01-21[DONT UPSTREAM]: Enable AR8035 Phy for testingVinod Koul
Signed-off-by: Vinod Koul <vkoul@kernel.org>