firefly-linux-kernel-4.4.55.git
9 years agocpuquiet: Update averaging of nr_runnables
Sai Charan Gurrappadi [Sat, 25 Aug 2012 01:42:36 +0000 (18:42 -0700)]
cpuquiet: Update averaging of nr_runnables

Doing a Exponential moving average per nr_running++/-- does not
guarantee a fixed sample rate which induces errors if there are lots of
threads being enqueued/dequeued from the rq (Linpack mt). Instead of
keeping track of the avg, the scheduler now keeps track of the integral
of nr_running and allows the readers to perform filtering on top.

Implemented a proper exponential moving average for the runnables
governor and a straight 100ms average for the balanced governor. Tweaked
the thresholds for the runnables governor to minimize latency. Also,
decreased sample_rate for the runnables governor to the absolute minimum
of 10msecs.

Updated to K3.4

Change-Id: Ia25bf8baf2a1a015ba188b2c06e551e89b16c5f8
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/131147
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
9 years agocpuquiet: Add notifiers for the runnables governor
Sai Charan Gurrappadi [Wed, 25 Jul 2012 15:41:53 +0000 (08:41 -0700)]
cpuquiet: Add notifiers for the runnables governor

The governor stops sampling whenever the device is busy and starts its
sampling loop when the device is free.

Change-Id: Ifdae4a84e56c2734be48e49f6112b537602a02da
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/124680
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
9 years agocpuquiet: Runnable threads governor
Sai Charan Gurrappadi [Wed, 25 Jul 2012 15:37:14 +0000 (08:37 -0700)]
cpuquiet: Runnable threads governor

[perf] The runnable threads governor only looks at the average number of
runnables in the system to make a decision when bringing cores
offline/online. First pass; tweaks thresholds and delays to reduce
decision latency to about ~50-70ms per core (from ~100-150ms per core)

Change-Id: Idd3b268a74a8f56ad3fc0e5c7f388174d1b6611f
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/124679
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
9 years agocpuquiet: Adding runnable thread knobs
Xiao Bo Zhao [Thu, 2 Aug 2012 23:33:51 +0000 (16:33 -0700)]
cpuquiet: Adding runnable thread knobs

Ported the knobs that select runnable thread profiles from autohotplug
into cpuquiet.

Change-Id: I6858731e238404d33c772767d066cd6d467267a8
Signed-off-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-on: http://git-master/r/123852
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Rebase-Id: R640f1619f85fbf52701b39f5649c950f0d2bf9a0

9 years agocpuquiet: Enable cpuquiet by default
Sai Charan Gurrappadi [Fri, 22 Jun 2012 23:18:02 +0000 (16:18 -0700)]
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>
9 years agocpuquiet: Fix cpuquiet for k3.4
Sai Charan Gurrappadi [Thu, 16 Aug 2012 00:56:11 +0000 (17:56 -0700)]
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>
9 years agoARM: tegra: cpuquiet: Notify the cpuquiet governor when the driver is busy
Sai Charan Gurrappadi [Wed, 11 Jul 2012 00:33:58 +0000 (17:33 -0700)]
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>
9 years agocpuquiet: Account for the corner case frequency when setting state
Sai Charan Gurrappadi [Thu, 5 Jul 2012 17:47:23 +0000 (10:47 -0700)]
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

9 years agocpuquiet: Fix compiler warning
Sai Charan Gurrappadi [Fri, 15 Jun 2012 01:23:17 +0000 (18:23 -0700)]
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

9 years agocpuquiet: Update stats only on successful operations
Sai Charan Gurrappadi [Thu, 14 Jun 2012 21:17:14 +0000 (14:17 -0700)]
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

9 years agocpuquiet: Properly return the first registered governor
Sai Charan Gurrappadi [Fri, 22 Jun 2012 22:42:59 +0000 (15:42 -0700)]
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

9 years agoARM: tegra: add sysfs support for tegra cpuquiet driver
Peter De Schrijver [Mon, 11 Jun 2012 17:43:59 +0000 (20:43 +0300)]
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>
9 years agocpuquiet: Makefile for cpuquiet framework
Peter De Schrijver [Fri, 30 Mar 2012 08:18:38 +0000 (11:18 +0300)]
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

9 years agocpuquiet: Updated balanced governor to use the runnable threads patch
Sai Charan Gurrappadi [Tue, 19 Jun 2012 01:22:33 +0000 (18:22 -0700)]
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

9 years agodrivers: cpuquiet: fix error message
Peter De Schrijver [Mon, 11 Jun 2012 15:41:27 +0000 (18:41 +0300)]
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

9 years agocpuquiet: Makefile for governors
Peter De Schrijver [Fri, 30 Mar 2012 08:46:09 +0000 (11:46 +0300)]
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

9 years agocpuquiet: balanced governor
Peter De Schrijver [Fri, 30 Mar 2012 08:45:48 +0000 (11:45 +0300)]
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

9 years agocpuquiet: userspace governor
Peter De Schrijver [Fri, 30 Mar 2012 08:44:32 +0000 (11:44 +0300)]
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

9 years agocpuquiet: governor support
Peter De Schrijver [Fri, 30 Mar 2012 08:42:17 +0000 (11:42 +0300)]
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

9 years agocpuquiet: sysfs interfaces
Peter De Schrijver [Fri, 30 Mar 2012 08:43:21 +0000 (11:43 +0300)]
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

9 years agocpuquiet: driver support
Peter De Schrijver [Fri, 30 Mar 2012 08:40:44 +0000 (11:40 +0300)]
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

9 years agocpuquiet: public interfaces for cpuquiet
Peter De Schrijver [Fri, 30 Mar 2012 08:38:47 +0000 (11:38 +0300)]
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

9 years agocpuquiet: Kconfig
Sai Charan Gurrappadi [Wed, 23 May 2012 18:30:47 +0000 (11:30 -0700)]
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

9 years agocpuquiet: base files
Peter De Schrijver [Fri, 30 Mar 2012 08:35:36 +0000 (11:35 +0300)]
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

9 years agoASoC: es8316: reduce power consumption.
Sugar Zhang [Mon, 18 May 2015 07:05:36 +0000 (15:05 +0800)]
ASoC: es8316: reduce power consumption.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
9 years ago3368sdk: TP: Support GT911.
xubilv [Mon, 18 May 2015 02:10:06 +0000 (10:10 +0800)]
3368sdk: TP: Support GT911.

Signed-off-by: xubilv <xbl@rock-chips.com>
9 years agowifi driver rtl8188eu: solve warning in rk3368
hwg [Sun, 17 May 2015 03:54:19 +0000 (11:54 +0800)]
wifi driver rtl8188eu: solve warning in rk3368

9 years agoupdate bcmdhd wifi driver to 1.201.59
hwg [Sun, 17 May 2015 03:53:24 +0000 (11:53 +0800)]
update bcmdhd wifi driver to 1.201.59

9 years agoefuse: change PSCI_OS_ACCESS_REG to 0xa600ffb0
xxx [Sat, 16 May 2015 09:36:14 +0000 (17:36 +0800)]
efuse: change PSCI_OS_ACCESS_REG to 0xa600ffb0

9 years agoEDP: avoid repeatedly enable.
xubilv [Sat, 16 May 2015 06:24:14 +0000 (14:24 +0800)]
EDP: avoid repeatedly enable.

Signed-off-by: xubilv <xbl@rock-chips.com>
9 years agoMIPI: 3368sdk : screen driver of tv080wum.
xubilv [Sat, 16 May 2015 03:25:18 +0000 (11:25 +0800)]
MIPI: 3368sdk : screen driver of tv080wum.

Signed-off-by: xubilv <xbl@rock-chips.com>
9 years agork3368: dvfs: clk_ddr enable
Xiao Feng [Fri, 15 May 2015 02:44:36 +0000 (10:44 +0800)]
rk3368: dvfs: clk_ddr enable

Signed-off-by: Xiao Feng <xf@rock-chips.com>
9 years agoMipi: 312x: set shutd_active_low default value of 0.
xubilv [Sat, 16 May 2015 02:24:24 +0000 (10:24 +0800)]
Mipi: 312x: set shutd_active_low default value of 0.

Signed-off-by: xubilv <xbl@rock-chips.com>
9 years agomailbox: rockchip: modify the default time out value of scpi command from immediate
Aiyoujun [Fri, 15 May 2015 10:35:16 +0000 (18:35 +0800)]
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>
9 years agork3368: iommu: remove hjc's commit
Simon [Fri, 15 May 2015 07:29:22 +0000 (15:29 +0800)]
rk3368: iommu: remove hjc's commit

Signed-off-by: Simon <xxm@rock-chips.com>
9 years agork3368: iommu: fix warning when compiling
Simon [Fri, 15 May 2015 07:25:19 +0000 (15:25 +0800)]
rk3368: iommu: fix warning when compiling

Signed-off-by: Simon <xxm@rock-chips.com>
9 years agork3368: iommu: delete region list if map failed
Simon [Fri, 17 Apr 2015 06:27:47 +0000 (14:27 +0800)]
rk3368: iommu: delete region list if map failed

Signed-off-by: Simon <xxm@rock-chips.com>
9 years agork3368: iommu: add page fault call back for master
Simon [Fri, 17 Apr 2015 03:40:28 +0000 (11:40 +0800)]
rk3368: iommu: add page fault call back for master

Signed-off-by: Simon <xxm@rock-chips.com>
9 years agork818-battery: fix index of array CHRG_CVCC_HOUR error
chenjh [Fri, 15 May 2015 06:35:48 +0000 (14:35 +0800)]
rk818-battery: fix index of array CHRG_CVCC_HOUR error

Signed-off-by: chenjh <chenjh@rock-chips.com>
9 years agork31xx lvds: compatible with rk31xx and rk3368
hjc [Fri, 15 May 2015 04:44:30 +0000 (12:44 +0800)]
rk31xx lvds: compatible with rk31xx and rk3368

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agoHDMI:rk3288: fix pinctrl mode switch error.
Zheng Yang [Mon, 11 May 2015 11:21:12 +0000 (19:21 +0800)]
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

9 years agoHDMI: rk3368: add function for HDCP2.2.
Zheng Yang [Tue, 28 Apr 2015 11:17:27 +0000 (19:17 +0800)]
HDMI: rk3368: add function for HDCP2.2.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
Conflicts:
drivers/video/rockchip/hdmi/rockchip-hdmiv2/rockchip_hdmiv2.c
drivers/video/rockchip/hdmi/rockchip-hdmiv2/rockchip_hdmiv2_hw.c

9 years agork3288 lcdc: remove unused file
hjc [Fri, 15 May 2015 02:46:05 +0000 (10:46 +0800)]
rk3288 lcdc: remove unused file

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork fb: recovery need two framebuffer
hjc [Thu, 9 Apr 2015 08:26:57 +0000 (16:26 +0800)]
rk fb: recovery need two framebuffer

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agorockchip: rk312x: vop: fix iommu crash when resume
Mark Yao [Wed, 1 Apr 2015 06:11:43 +0000 (14:11 +0800)]
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>
9 years agovideo: rockchip: rk312x lcdc: Refine lcdc standby
Wenlong Zhuang [Wed, 13 May 2015 07:21:26 +0000 (15:21 +0800)]
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>
9 years agork fb: add for iommu pagefault debug
hjc [Thu, 14 May 2015 07:42:41 +0000 (15:42 +0800)]
rk fb: add for iommu pagefault debug

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork fb: add interface for debug
hjc [Thu, 14 May 2015 07:19:48 +0000 (15:19 +0800)]
rk fb: add interface for debug

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork iommu: fix system panic when iommu pagefault
hjc [Fri, 15 May 2015 01:29:24 +0000 (09:29 +0800)]
rk iommu: fix system panic when iommu pagefault

Signed-off-by: Simon <xxm@rock-chips.com>
Signed-off-by: cmy <cmy@rock-chips.com>
9 years agork3368 lcdc: add lcdc extend function for some special config
hjc [Fri, 15 May 2015 01:22:13 +0000 (09:22 +0800)]
rk3368 lcdc: add lcdc extend function for some special config

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork fb: add for iommu pagefault debug
hjc [Thu, 14 May 2015 07:42:41 +0000 (15:42 +0800)]
rk fb: add for iommu pagefault debug

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agoddrfreq: add vop bandwidth freq table in dts, in order to support more boards
Xiao Feng [Thu, 14 May 2015 07:45:31 +0000 (15:45 +0800)]
ddrfreq: add vop bandwidth freq table in dts, in order to support more boards

Signed-off-by: Xiao Feng <xf@rock-chips.com>
9 years agoddrfreq: fix new_freq=0 when the current load of ddr is between high_load and low_load
Xiao Feng [Wed, 13 May 2015 11:27:56 +0000 (19:27 +0800)]
ddrfreq: fix new_freq=0 when the current load of ddr is between high_load and low_load

Signed-off-by: Xiao Feng <xf@rock-chips.com>
9 years agork fb: add interface for debug
hjc [Thu, 14 May 2015 07:19:48 +0000 (15:19 +0800)]
rk fb: add interface for debug

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agocamsys_drv: v0.0x1f.0
dalon.zhang [Thu, 14 May 2015 03:11:44 +0000 (11:11 +0800)]
camsys_drv: v0.0x1f.0

9 years agoRK3368 DDR: change get ddr freq method
Tang Yun ping [Thu, 14 May 2015 01:59:10 +0000 (09:59 +0800)]
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>
9 years agork3368 hdmi : fix the hdmi bitstream connot idenfify sometimes
smj [Wed, 13 May 2015 12:12:10 +0000 (20:12 +0800)]
rk3368 hdmi : fix the hdmi bitstream connot idenfify sometimes

Signed-off-by: smj <smj@rock-chips.com>
9 years agovideo: rockchip: rk312x lcdc: Refine lcdc standby
Wenlong Zhuang [Wed, 13 May 2015 07:21:26 +0000 (15:21 +0800)]
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>
9 years agoHDMI:rk3128/rk3036:
Zheng Yang [Tue, 12 May 2015 07:37:06 +0000 (15:37 +0800)]
HDMI:rk3128/rk3036:

1. For MID, remove interlace mode support and
   set default mode to be enabled.
2. If HDMI is disabled, disable hotplug irq.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agomend rk1000 display ,remove some code in lcdc
RK_ywj [Tue, 12 May 2015 06:10:08 +0000 (14:10 +0800)]
mend rk1000 display ,remove some code in lcdc

9 years agoAfter insert HDMI reboot only, insert cvbs display become green
RK_ywj [Thu, 7 May 2015 09:36:22 +0000 (17:36 +0800)]
After insert HDMI reboot only, insert cvbs display become green

9 years agowhen uboot logo on ,first cvbs display no need init rk1000
RK_ywj [Thu, 7 May 2015 09:33:00 +0000 (17:33 +0800)]
when uboot logo on ,first cvbs display no need init rk1000

9 years agomend rk1000 cvbs display when open uboot logo
RK_ywj [Thu, 7 May 2015 09:28:12 +0000 (17:28 +0800)]
mend rk1000 cvbs display when open uboot logo

9 years agoHDMI:rk3288: fix pinctrl mode switch error.
Zheng Yang [Mon, 11 May 2015 11:21:12 +0000 (19:21 +0800)]
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>
9 years agoadd suspend ctrl in rk3368-tb_8846.dts
xxx [Mon, 11 May 2015 08:06:51 +0000 (16:06 +0800)]
add suspend ctrl in rk3368-tb_8846.dts

9 years agoRK3368 MCU: add MCU suspend and resume function
Tang Yun ping [Mon, 11 May 2015 06:54:22 +0000 (14:54 +0800)]
RK3368 MCU: add MCU suspend and resume function

Signed-off-by: Tang Yun ping <typ@rock-chips.com>
9 years agork3288 lcdc: delete unused message and update coding style
hjc [Sat, 9 May 2015 08:27:50 +0000 (16:27 +0800)]
rk3288 lcdc: delete unused message and update coding style

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork3288 lcdc: delete unused message and update coding style
hjc [Sat, 9 May 2015 08:27:50 +0000 (16:27 +0800)]
rk3288 lcdc: delete unused message and update coding style

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork3288 lcdc: add overscan for extern screen
hjc [Sat, 9 May 2015 07:48:22 +0000 (15:48 +0800)]
rk3288 lcdc: add overscan for extern screen

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork3368 lcdc: update deflick config for interlace mode ouput
hjc [Sat, 9 May 2015 08:16:52 +0000 (16:16 +0800)]
rk3368 lcdc: update deflick config for interlace mode ouput

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork3288 lcdc: add overscan for extern screen
hjc [Sat, 9 May 2015 07:48:22 +0000 (15:48 +0800)]
rk3288 lcdc: add overscan for extern screen

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork3368 lcdc: add support overscan
hjc [Wed, 4 Mar 2015 07:25:26 +0000 (15:25 +0800)]
rk3368 lcdc: add support overscan

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork_fb: 1. Make sure fb_par->state lowest value is zero.
Zheng Yang [Sat, 28 Mar 2015 05:40:07 +0000 (13:40 +0800)]
rk_fb: 1. Make sure fb_par->state lowest value is zero.
       2. For box, video layer z-order is always zero.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agork fb: add consider vop full mutile area for vsync register check
hjc [Mon, 30 Mar 2015 10:02:23 +0000 (18:02 +0800)]
rk fb: add consider vop full mutile area for vsync register check

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork fb: delay 200ms when extern display switch screen can fix mmu pagefault
hjc [Wed, 6 May 2015 07:56:58 +0000 (15:56 +0800)]
rk fb: delay 200ms when extern display switch screen can fix mmu pagefault

9 years agork fb: kfree envp[1], if we not do real switch screen
hjc [Wed, 29 Apr 2015 06:39:18 +0000 (14:39 +0800)]
rk fb: kfree envp[1], if we not do real switch screen

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork fb: fix iommu page fault when in video test
hjc [Wed, 29 Apr 2015 05:54:42 +0000 (13:54 +0800)]
rk fb: fix iommu page fault when in video test

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork fb: extend output mutex lock in win config
hjc [Sat, 18 Apr 2015 06:01:06 +0000 (14:01 +0800)]
rk fb: extend output mutex lock in win config

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork3368 lcdc: fix some hidden trouble maybe lead to abnormal when shutdown
hjc [Sat, 18 Apr 2015 05:46:43 +0000 (13:46 +0800)]
rk3368 lcdc: fix some hidden trouble maybe lead to abnormal when shutdown

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork fb: if lcdc is suspend ignore set par and display
hjc [Thu, 16 Apr 2015 01:56:32 +0000 (09:56 +0800)]
rk fb: if lcdc is suspend ignore set par and display

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork fb: add fb disp policy for excessive stage
hjc [Wed, 15 Apr 2015 11:28:05 +0000 (19:28 +0800)]
rk fb: add fb disp policy for excessive stage

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork fb: add mutex lock for switch screen to prevent
hjc [Wed, 15 Apr 2015 09:56:02 +0000 (17:56 +0800)]
rk fb: add mutex lock for switch screen to prevent
       hdmi and cvbs call this function at the same
       time.

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork fb: add switch enable status when send uevent
hjc [Tue, 14 Apr 2015 07:42:26 +0000 (15:42 +0800)]
rk fb: add switch enable status when send uevent

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork fb: update message info when page fault
hjc [Mon, 13 Apr 2015 07:54:02 +0000 (15:54 +0800)]
rk fb: update message info when page fault

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork fb: send uevent when change video mode
hjc [Mon, 13 Apr 2015 03:54:36 +0000 (11:54 +0800)]
rk fb: send uevent when change video mode

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork fb: do something when user set invalid config
hjc [Mon, 13 Apr 2015 03:13:32 +0000 (11:13 +0800)]
rk fb: do something when user set invalid config

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork fb: set retire fence fd to -1 when ignore this frame
hjc [Mon, 13 Apr 2015 01:39:50 +0000 (09:39 +0800)]
rk fb: set retire fence fd to -1 when ignore this frame

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork fb: when unplug hdmi,post fb to display
hjc [Thu, 9 Apr 2015 10:06:02 +0000 (18:06 +0800)]
rk fb: when unplug hdmi,post fb to display

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork fb: ignore frame when in hdmi switch or set error config
hjc [Thu, 9 Apr 2015 03:31:27 +0000 (11:31 +0800)]
rk fb: ignore frame when in hdmi switch or set error config

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork fb: hdmi 24hz frame time need 41ms
hjc [Thu, 9 Apr 2015 09:37:15 +0000 (17:37 +0800)]
rk fb: hdmi 24hz frame time need 41ms

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork fb: from rk3368 fb only need to reserved 1 framebuffer
hjc [Thu, 2 Apr 2015 11:11:02 +0000 (19:11 +0800)]
rk fb: from rk3368 fb only need to reserved 1 framebuffer

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agork3368: ddrfreq: add compat_ioctl support
Xiao Feng [Fri, 8 May 2015 07:12:13 +0000 (15:12 +0800)]
rk3368: ddrfreq: add compat_ioctl support

Signed-off-by: Xiao Feng <xf@rock-chips.com>
9 years agork3x: pmic: rk818_battery: fix code style issues from checkpatch.pl
zhangqing [Fri, 8 May 2015 10:18:55 +0000 (03:18 -0700)]
rk3x: pmic: rk818_battery: fix code style issues from checkpatch.pl

Signed-off-by: chenjianhong <chenjh@rock-chips.com>
9 years agork3368-p9: dts: mdify dvfs table
guoyi [Fri, 8 May 2015 02:18:11 +0000 (10:18 +0800)]
rk3368-p9: dts: mdify dvfs table

9 years agork31xx lvds: make sure lvds do init in kernel
hjc [Thu, 7 May 2015 11:51:43 +0000 (19:51 +0800)]
rk31xx lvds: make sure lvds do init in kernel

Signed-off-by: hjc <hjc@rock-chips.com>
9 years agocpufreq: rockchip_big_little: minor cleanups
Huang, Tao [Thu, 7 May 2015 11:14:06 +0000 (19:14 +0800)]
cpufreq: rockchip_big_little: minor cleanups

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agopwm: enable pwm-frequrency less than 1K
许盛飞 [Thu, 7 May 2015 09:15:58 +0000 (17:15 +0800)]
pwm: enable pwm-frequrency less than 1K

Signed-off-by: 许盛飞 <xsf@rock-chips.com>
9 years agork818-battery: update version to 3.0.0
chenjh [Thu, 7 May 2015 08:51:04 +0000 (16:51 +0800)]
rk818-battery: update version to 3.0.0

Signed-off-by: chenjh <chenjh@rock-chips.com>
9 years agork3368-p9: dts: add property of rk818 battery node
chenjh [Thu, 7 May 2015 08:46:22 +0000 (16:46 +0800)]
rk3368-p9: dts: add property of rk818 battery node

Signed-off-by: chenjh <chenjh@rock-chips.com>
9 years agork3368 lcdc: add ccir656 output format support
hjc [Thu, 7 May 2015 00:50:21 +0000 (08:50 +0800)]
rk3368 lcdc: add ccir656 output format support

Signed-off-by: hjc <hjc@rock-chips.com>