Commit Graph

405228 Commits

Author SHA1 Message Date
Sai Charan Gurrappadi
c35afbfcbe cpuquiet: Enable cpuquiet by default
Enable cpuquiet by default if autohotplug is enabled. Cpuquiet will now
replace autohotplug as the hotplugging infrastructure. The down_delay in
the balanced governor has also been increased to 2s from 500ms to match
a similar patch for autohotplug.

Change-Id: I36747af67c55547b3dee95f7d435f9ebc075d393
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/123851
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
2015-05-18 16:07:07 +08:00
Sai Charan Gurrappadi
f5532b9866 cpuquiet: Fix cpuquiet for k3.4
Change-Id: I75d8dba6c9c4c43152c819e08beeccb1e3c07c0c
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/123850
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
2015-05-18 16:07:07 +08:00
Sai Charan Gurrappadi
904aa6c75f ARM: tegra: cpuquiet: Notify the cpuquiet governor when the driver is busy
Added generic busy/free notifiers that the driver can invoke to let the
governor know that it cannot process further core online/offline
requests (invoked in our case whenever we switch to the LP cluster).

Change-Id: I5e3f7f28f38806a7f87050e8d0c8d2f2cf7521aa
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/114807
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
2015-05-18 16:07:07 +08:00
Sai Charan Gurrappadi
6856f09610 cpuquiet: Account for the corner case frequency when setting state
Now consider frequency greater than or equal to idle_top_freq as UP

Change-Id: I1332d46d1e42a00b3b31897b158eaf4ccfbaf8f5
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/113678
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
GVS: Gerrit_Virtual_Submit

Rebase-Id: Rd67b2870e4916d1e616adf61f4bd4f3ef8916d1f
2015-05-18 16:07:07 +08:00
Sai Charan Gurrappadi
53a8c569a6 cpuquiet: Fix compiler warning
Change-Id: I03c11c295b40ebd500a715974f7fdca560d9a43a
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/111286
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R843b536a90d042c7849fa3a44246e473f89e715f
2015-05-18 16:07:07 +08:00
Sai Charan Gurrappadi
eed1adba23 cpuquiet: Update stats only on successful operations
Change-Id: I0584fba7458b3a860f9ab3751a8eb5f0345864ad
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/111285
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R8fb05f5e99be6262ec28d7e733904c450f3985f6
2015-05-18 16:07:06 +08:00
Sai Charan Gurrappadi
e2de804b94 cpuquiet: Properly return the first registered governor
Change-Id: I8a21a15d5cf8e4c91a166810387b5d8f1dd7cdb6
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/111284
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R5df2ed43a42e0bd32eee1601a6f945bf6df90227
2015-05-18 16:07:06 +08:00
Peter De Schrijver
a9b2c1b41b ARM: tegra: add sysfs support for tegra cpuquiet driver
Change-Id: I215c5de8e98d139a93113978e1e27adb5a6b252c
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/111283
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
2015-05-18 16:07:06 +08:00
Peter De Schrijver
4bb5a83520 cpuquiet: Makefile for cpuquiet framework
Change-Id: Ia071b03c6073c514b99457e35ebbd65ef32a6906
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/105273
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

Rebase-Id: Rafb8e4b976fac62210bc2e0e95837d4bdce7e61a
2015-05-18 16:07:06 +08:00
Sai Charan Gurrappadi
6ea2a90845 cpuquiet: Updated balanced governor to use the runnable threads patch
The balanced governor now looks at the average number of runnable
threads when bringing cores online and offline. The balanced governor
parameters have also been updated to reflect a similar patch for
autohotplug.

Change-Id: I8dac26659ba43d95a68830c6cc268591a7f03f80
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/111282
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: Raeb86f51e0e21475ee9b96f97ce95f00883dac11
2015-05-18 16:07:06 +08:00
Peter De Schrijver
471c33a1f0 drivers: cpuquiet: fix error message
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>

Change-Id: If04c699e002542bd8ce4b37b2367d7ec496c284e
Reviewed-on: http://git-master/r/107959
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Tested-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

Rebase-Id: R97cd3cf7f09c2dd919177aea88f618df7fa6a0a1
2015-05-18 16:07:05 +08:00
Peter De Schrijver
89957e090c cpuquiet: Makefile for governors
Change-Id: I33018bb5db39f2881a3defc55758681cfb1d6284
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/105272
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

Rebase-Id: R667765931c89762f949113e9132232391b952592
2015-05-18 16:07:05 +08:00
Peter De Schrijver
5db2060089 cpuquiet: balanced governor
This is a port of the existing governor logic in cpu-tegra3.c.

Change-Id: Id79e6fc697dd0de85242fb2471bbed3d10101693
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/105271
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

Rebase-Id: Rf6addc1b20f47ccee2180380d021b54c41adff57
2015-05-18 16:07:05 +08:00
Peter De Schrijver
4ad50468ce cpuquiet: userspace governor
Change-Id: If9830d423b1751cbe9493eda0a85f88e7003173f
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/105270
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

Rebase-Id: R382af37ab50a08c17c635bb1fee7e16afd0d9a18
2015-05-18 16:07:05 +08:00
Peter De Schrijver
58642f2786 cpuquiet: governor support
Change-Id: I05b9dedc04bb3b2ddba6202a002c1e5514ec4777
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/105269
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

Rebase-Id: R481f3df7610b737f6c054370efbe3bdb95a5e78d
2015-05-18 16:07:05 +08:00
Peter De Schrijver
e3a297a363 cpuquiet: sysfs interfaces
Change-Id: Idb454f7380c48e2f4bab20e6ae51fef577b0f6c5
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/105267
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

Rebase-Id: R30228222507c41e129cbc2700fdd4c19c2db8be8
2015-05-18 16:07:05 +08:00
Peter De Schrijver
780c6ada7d cpuquiet: driver support
Change-Id: I4f3f67d4459eeda519efdfd80e1283bef2d597e3
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/105266
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

Rebase-Id: R23fdadebbf0644ed585f4d4d5ff8dad556773d2a
2015-05-18 16:07:04 +08:00
Peter De Schrijver
b25f8f9e49 cpuquiet: public interfaces for cpuquiet
Change-Id: Ie391d6d11fad7b76b0bf5daff67ac46663651dc0
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/105265
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

Rebase-Id: R7d711a55352cde2eac5ddbe86be2f97bb576dd57
2015-05-18 16:07:04 +08:00
Sai Charan Gurrappadi
64bb95b6de cpuquiet: Kconfig
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>

Change-Id: I930dedaa3bf7b2c64bc61f28c3461f125cca2f44
Reviewed-on: http://git-master/r/105264
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

Rebase-Id: R99b786496aad17710bd9d878d7844c50aa105fbb
2015-05-18 16:07:04 +08:00
Peter De Schrijver
a5e58931d5 cpuquiet: base files
Change-Id: I611b72a2e63fffc788bc6c7594c738d5ad65e06f
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/105263
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

Rebase-Id: Rcace74f9483c6a9f2e345c206ba7ddc4c5f8c066
2015-05-18 16:07:04 +08:00
Sugar Zhang
f35632784e ASoC: es8316: reduce power consumption.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2015-05-18 15:49:06 +08:00
xubilv
4b65c867cb 3368sdk: TP: Support GT911.
Signed-off-by: xubilv <xbl@rock-chips.com>
2015-05-18 10:10:06 +08:00
xxx
47e09bd9fe efuse: change PSCI_OS_ACCESS_REG to 0xa600ffb0 2015-05-16 17:36:14 +08:00
xubilv
4c72ed2af6 EDP: avoid repeatedly enable.
Signed-off-by: xubilv <xbl@rock-chips.com>
2015-05-16 14:24:14 +08:00
xubilv
cb1633da01 MIPI: 3368sdk : screen driver of tv080wum.
Signed-off-by: xubilv <xbl@rock-chips.com>
2015-05-16 11:25:18 +08:00
Xiao Feng
ee6ce60d63 rk3368: dvfs: clk_ddr enable
Signed-off-by: Xiao Feng <xf@rock-chips.com>
2015-05-16 10:41:12 +08:00
xubilv
f7bd9ae7f9 Mipi: 312x: set shutd_active_low default value of 0.
Signed-off-by: xubilv <xbl@rock-chips.com>
2015-05-16 10:24:24 +08:00
Aiyoujun
d3f6158acb mailbox: rockchip: modify the default time out value of scpi command from immediate
to a const define.
        If you would use another timeout value with your command, you shoul do it
        as below:
                   SCPI_SETUP_DBUF(sdata, mdata, SCPI_CL_CLOCKS,
                        SCPI_CMD_GET_CLOCK_VALUE, clk_id, buf);
                   sdata.timeout_ms = YOUR_CMD_DEFAULT_TIMEOUT_MS;

Signed-off-by: Aiyoujun <ayj@rock-chips.com>
2015-05-15 18:35:16 +08:00
Simon
551c61b2ce rk3368: iommu: remove hjc's commit
Signed-off-by: Simon <xxm@rock-chips.com>
2015-05-15 15:29:22 +08:00
Simon
6f24f43f6e rk3368: iommu: fix warning when compiling
Signed-off-by: Simon <xxm@rock-chips.com>
2015-05-15 15:26:54 +08:00
Simon
9a16e83fe9 rk3368: iommu: delete region list if map failed
Signed-off-by: Simon <xxm@rock-chips.com>
2015-05-15 15:26:54 +08:00
Simon
41e5a72d1b rk3368: iommu: add page fault call back for master
Signed-off-by: Simon <xxm@rock-chips.com>
2015-05-15 15:26:53 +08:00
chenjh
c1ea5e1d90 rk818-battery: fix index of array CHRG_CVCC_HOUR error
Signed-off-by: chenjh <chenjh@rock-chips.com>
2015-05-15 15:00:04 +08:00
hjc
a0745c0d83 rk31xx lvds: compatible with rk31xx and rk3368
Signed-off-by: hjc <hjc@rock-chips.com>
2015-05-15 12:45:23 +08:00
Zheng Yang
7be81dbf24 HDMI:rk3288: fix pinctrl mode switch error.
For 3288, i25 pinctrl gpio mode name is "sleep",
	not "gpio" any more.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>

Conflicts:
	drivers/video/rockchip/hdmi/rockchip-hdmiv2/rockchip_hdmiv2.c
2015-05-15 11:38:45 +08:00
Mark Yao
f7391f8382 rockchip: rk312x: vop: fix iommu crash when resume
Maybe win is enabled and H/W address is not a vaild
iommu mapped addr, So we need delay to ensure H/W
switch done before enable iommu.

Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2015-05-15 10:21:13 +08:00
Wenlong Zhuang
ace5108985 video: rockchip: rk312x lcdc: Refine lcdc standby
add wait for lcdc hold valid when standby and add standby when
lcdc timing is changing at the moment of switch hdmi.

Signed-off-by: Wenlong Zhuang <daisen.zhuang@rockchips.com>
2015-05-15 10:20:05 +08:00
hjc
ada8a223c6 rk iommu: fix system panic when iommu pagefault
Signed-off-by: Simon <xxm@rock-chips.com>
Signed-off-by: cmy <cmy@rock-chips.com>
2015-05-15 09:29:30 +08:00
hjc
e66280cea3 rk3368 lcdc: add lcdc extend function for some special config
Signed-off-by: hjc <hjc@rock-chips.com>
2015-05-15 09:22:13 +08:00
hjc
be4e96f7c3 rk fb: add for iommu pagefault debug
Signed-off-by: hjc <hjc@rock-chips.com>
2015-05-15 09:21:36 +08:00
hjc
0e018e3c29 rk fb: add interface for debug
Signed-off-by: hjc <hjc@rock-chips.com>
2015-05-14 15:20:16 +08:00
Tang Yun ping
6b68cd05df RK3368 DDR: change get ddr freq method
The old method get ddr freq from MCU through mailbox,and new method get ddr
freq from ddrpctl register

Signed-off-by: Tang Yun ping <typ@rock-chips.com>
2015-05-14 09:59:10 +08:00
smj
862e9c8a84 rk3368 hdmi : fix the hdmi bitstream connot idenfify sometimes
Signed-off-by: smj <smj@rock-chips.com>
2015-05-13 20:15:12 +08:00
RK_ywj
38640e3950 mend rk1000 display ,remove some code in lcdc 2015-05-12 14:10:08 +08:00
RK_ywj
b2e9b75b5e After insert HDMI reboot only, insert cvbs display become green 2015-05-12 14:06:06 +08:00
RK_ywj
2016b53197 when uboot logo on ,first cvbs display no need init rk1000 2015-05-12 14:06:05 +08:00
RK_ywj
073313449c mend rk1000 cvbs display when open uboot logo 2015-05-12 14:06:05 +08:00
xxx
cefefef538 add suspend ctrl in rk3368-tb_8846.dts 2015-05-11 16:06:51 +08:00
Tang Yun ping
ce118b8a83 RK3368 MCU: add MCU suspend and resume function
Signed-off-by: Tang Yun ping <typ@rock-chips.com>
2015-05-11 14:54:22 +08:00
hjc
65841919f8 rk3288 lcdc: delete unused message and update coding style
Signed-off-by: hjc <hjc@rock-chips.com>
2015-05-09 16:30:32 +08:00