firefly-linux-kernel-4.4.55.git
9 years agork: rename input.h to rk-input.h
Huang, Tao [Wed, 11 Nov 2015 07:21:26 +0000 (15:21 +0800)]
rk: rename input.h to rk-input.h

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agork: rename rockchip_thermal.c to rk_thermal.c
Huang, Tao [Wed, 11 Nov 2015 07:20:26 +0000 (15:20 +0800)]
rk: rename rockchip_thermal.c to rk_thermal.c

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agork: rename spi-rockchip.c to spi-rk.c
Huang, Tao [Wed, 11 Nov 2015 07:13:59 +0000 (15:13 +0800)]
rk: rename spi-rockchip.c to spi-rk.c

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agork: rename pinctrl-rk3368.c to pinctrl-rk.c
Huang, Tao [Wed, 11 Nov 2015 07:12:54 +0000 (15:12 +0800)]
rk: rename pinctrl-rk3368.c to pinctrl-rk.c

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agork: rename rk808 to rk-rk808
Huang, Tao [Wed, 11 Nov 2015 07:02:36 +0000 (15:02 +0800)]
rk: rename rk808 to rk-rk808

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agork: rename rockchip-iommu.c to rk-iommu.c
Huang, Tao [Wed, 11 Nov 2015 06:59:29 +0000 (14:59 +0800)]
rk: rename rockchip-iommu.c to rk-iommu.c

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agork: rename drivers/clk/rockchip to drivers/clk/rk
Huang, Tao [Wed, 11 Nov 2015 06:57:32 +0000 (14:57 +0800)]
rk: rename drivers/clk/rockchip to drivers/clk/rk

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agoRevert "regulator: core: Split devres code out into a separate file"
Huang, Tao [Wed, 11 Nov 2015 06:26:59 +0000 (14:26 +0800)]
Revert "regulator: core: Split devres code out into a separate file"

This reverts commit 85815b087b38caefb0d8e2fdc33d19db05f52a9f.

9 years agoRevert "ANDROID: input: elan_i2c: add elan touchpad driver"
Huang, Tao [Wed, 11 Nov 2015 06:26:08 +0000 (14:26 +0800)]
Revert "ANDROID: input: elan_i2c: add elan touchpad driver"

This reverts commit 5e3d6ba5d843eec107cebe94f51fdda616d0c504.

9 years agoRevert "block: support embedded device command line partition"
Huang, Tao [Wed, 11 Nov 2015 06:25:17 +0000 (14:25 +0800)]
Revert "block: support embedded device command line partition"

This reverts commit d4900b6d2b262b449ecbf70cc340af2c173faa16.

9 years agoRevert "phy: backport generic phy framework from kernel-3.18"
Huang, Tao [Wed, 11 Nov 2015 06:22:45 +0000 (14:22 +0800)]
Revert "phy: backport generic phy framework from kernel-3.18"

This reverts commit 23805582e3bbb67ba5b6c3952ac7a9f77b9913ce.

9 years agoRevert "phy: merge and backport phy core from linux kernel 4.1"
Huang, Tao [Wed, 11 Nov 2015 06:22:30 +0000 (14:22 +0800)]
Revert "phy: merge and backport phy core from linux kernel 4.1"

This reverts commit 97c16b72f3a2d14ad10d7461b116b29a168b74c2.

9 years agoRevert "phy: phy-rockchip-usb: add support of rk33 usb phy"
Huang, Tao [Wed, 11 Nov 2015 06:21:06 +0000 (14:21 +0800)]
Revert "phy: phy-rockchip-usb: add support of rk33 usb phy"

This reverts commit 6d91a06b4e95dfb83a41c9224e853bce579180bc.

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
Conflicts:
arch/arm64/configs/rockchip_defconfig

9 years agoARM: rockchip: rk3228: implement function rk3228_restart
Chen Liang [Tue, 10 Nov 2015 09:53:25 +0000 (17:53 +0800)]
ARM: rockchip: rk3228: implement function rk3228_restart

Change-Id: If6c5630a1ea9a8ebb95f527bd5d1aff082da079f
Signed-off-by: Chen Liang <cl@rock-chips.com>
9 years agoARM: rockchip: rk3228: add cru definition
Chen Liang [Tue, 10 Nov 2015 09:43:58 +0000 (17:43 +0800)]
ARM: rockchip: rk3228: add cru definition

Change-Id: If9fef6aa30685b727f271644eafdebab2ba1e441
Signed-off-by: Chen Liang <cl@rock-chips.com>
9 years agoARM: rockchip: rk3228: add efuse support
Chen Liang [Tue, 10 Nov 2015 08:30:10 +0000 (16:30 +0800)]
ARM: rockchip: rk3228: add efuse support

Change-Id: Ice2a00bd053d26303cc57c45fbc256b57eb95da0
Signed-off-by: Chen Liang <cl@rock-chips.com>
9 years agonet: rockchip: gmac: support RK3228
Roger Chen [Mon, 9 Nov 2015 13:04:35 +0000 (21:04 +0800)]
net: rockchip: gmac: support RK3228

Change-Id: I1cf343d2d7768681b7ec2ad0d95484267d59b82b
Signed-off-by: Roger Chen <roger.chen@rock-chips.com>
9 years agommc: remove bondage between REQ_META and reliable write
Luca Porzio [Tue, 10 Nov 2015 06:30:40 +0000 (14:30 +0800)]
mmc: remove bondage between REQ_META and reliable write

Anytime a write operation is performed with Reliable Write flag enabled,
the eMMC device is enforced to bypass the cache and do a write to the
underling NVM device by Jedec specification; this causes a performance
penalty since write operations can't be optimized by the device cache.

In our tests, we replayed a typical mobile daily trace pattern and found
~9% overall time reduction in trace replay by using this patch. Also the
write ops within 4KB~64KB chunk size range get a 40~60% performance
improvement by using the patch (as this range of write chunks are the ones
affected by REQ_META).

This patch has been discussed in the Mobile & Embedded Linux Storage Forum
and it's the results of feedbacks from many people. We also checked with
fsdevl and f2fs mailing list developers that this change in the usage of
REQ_META is not affecting FS behavior and we got positive feedbacks.
Reporting here the feedbacks:
http://comments.gmane.org/gmane.linux.file-systems/97219
http://thread.gmane.org/gmane.linux.file-systems.f2fs/3178/focus=3183

Change-Id: I2143841c439b47d6ce161ff3ad05277ea867f51b
Signed-off-by: Bruce Ford <bford@micron.com>
Signed-off-by: Luca Porzio <lporzio@micron.com>
Fixes: ce39f9d17c14 ("mmc: support packed write command for eMMC4.5 devices")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
9 years agoARM: dts: fix emmc/sdio/sd clkgates and offset for rk3228
xiaoyao [Tue, 10 Nov 2015 03:31:44 +0000 (11:31 +0800)]
ARM: dts: fix emmc/sdio/sd clkgates and offset for rk3228

Fixes: 2cb01afbb ("ARM: rk3228: dtsi: add SDCard/SDIO/eMMC ...")
Change-Id: Ie1fcd214d6dc3ec7e13ab54ada24dc71b8e7ffd3
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
9 years agoARM: dts: add sdmmc/sdio pinctrl for rk3228
xiaoyao [Tue, 10 Nov 2015 02:56:25 +0000 (10:56 +0800)]
ARM: dts: add sdmmc/sdio pinctrl for rk3228

Change-Id: I0c3f3159d46705de40ca6ff7de4a8aee6ea17a24
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
9 years agommc: rk_sdmmc: support RK3228 chip
xiaoyao [Tue, 10 Nov 2015 02:55:33 +0000 (10:55 +0800)]
mmc: rk_sdmmc: support RK3228 chip

Add a variable to distinguish between types of chips, eg:
DW_MCI_TYPE_RK3228. The purpose is to add a unique code
in the future.

Change-Id: I6608ae7af0579343cabe92deddefe73b8e5d2194
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
9 years agoarm: rockchip: rk3228: dts: add pwm regulator, i2c rtc, wifi & bt
Huang zhibao [Mon, 9 Nov 2015 09:31:19 +0000 (17:31 +0800)]
arm: rockchip: rk3228: dts: add pwm regulator, i2c rtc, wifi & bt

Change-Id: I2836ddab4e214ec43c9969457b7209a6fe948184
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
9 years agoARM: rockchip: rk3228: add grf definition
Chen Liang [Mon, 9 Nov 2015 08:29:52 +0000 (16:29 +0800)]
ARM: rockchip: rk3228: add grf definition

Change-Id: Ifea3e16e7d0141b09d9df26a247e884d0c9f72e7
Signed-off-by: Chen Liang <cl@rock-chips.com>
9 years agork: restore file mode
Huang, Tao [Mon, 9 Nov 2015 09:00:56 +0000 (17:00 +0800)]
rk: restore file mode

Change-Id: I3ac6ae87fc7ed90fa5ece0b6cb0ffe1a2561fa1d
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agoASoC: restore spdif_receiver.c and spdif_transciever.c
Huang, Tao [Mon, 9 Nov 2015 08:32:40 +0000 (16:32 +0800)]
ASoC: restore spdif_receiver.c and spdif_transciever.c

Change-Id: I2eeca8b4be12c35bcc3d172f8b165c417a2561c8
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agork_fb.h: remove multiple definitions
Huang Jiachai [Mon, 9 Nov 2015 01:45:28 +0000 (09:45 +0800)]
rk_fb.h: remove multiple definitions

Change-Id: I34b7d0a4db251521693a5d13ace0d33ccad1717e
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
9 years agoARM: dts: rk3228: add usb node
Yunzhi Li [Thu, 5 Nov 2015 07:30:20 +0000 (15:30 +0800)]
ARM: dts: rk3228: add usb node

Change-Id: I4ccd1fb9ad2cd5b036d0cfde736fe990ad0673d0
Signed-off-by: Yunzhi Li <lyz@rock-chips.com>
9 years agommc: dw_mmc: fix the CardThreshold boundary at CardThrCtl register
Jaehoon Chung [Fri, 6 Nov 2015 03:39:39 +0000 (11:39 +0800)]
mmc: dw_mmc: fix the CardThreshold boundary at CardThrCtl register

According to DesignWare DoC file, CardThreshold bit should be
bit[27:16].
So it's correct to use (0xFFF << 16), not (0x1FFF << 16).

Change-Id: I184fff75e6e72624a22cdfc6b0ffcc236ffb07c2
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
9 years agoARM: dtsi: rk3228: add dram timing node
Tang Yun ping [Thu, 5 Nov 2015 03:23:39 +0000 (11:23 +0800)]
ARM: dtsi: rk3228: add dram timing node

Change-Id: Ieb7c43f6e546e75e72c7db99894d6ca0cfbb31a1
Signed-off-by: Tang Yun ping <typ@rock-chips.com>
9 years agovideo: lcdc: rk3228: fix colorspace for output YCBCR
Mark Yao [Thu, 29 Oct 2015 08:23:14 +0000 (16:23 +0800)]
video: lcdc: rk3228: fix colorspace for output YCBCR

Change-Id: I192a85c6d60a09c5f9a80b518690f0aac025becd
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
9 years agovideo: lcdc: rk3228: add vop tvout support
Mark Yao [Thu, 29 Oct 2015 08:21:16 +0000 (16:21 +0800)]
video: lcdc: rk3228: add vop tvout support

Change-Id: Ibfa16c73735132e0a50f7b52efb75681e61d9b20
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
9 years agovideo: lcdc: rk3228: fix interlace display
Mark Yao [Thu, 29 Oct 2015 08:18:06 +0000 (16:18 +0800)]
video: lcdc: rk3228: fix interlace display

New version H/W don't need yszie div 2 anymore.

Change-Id: I1c8927ad5dd00fd1af16ef9ca60c9979b4db696e
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
9 years agovideo: hdmi: judge interlace mode from vmode bit mask
Mark Yao [Tue, 3 Nov 2015 02:21:26 +0000 (10:21 +0800)]
video: hdmi: judge interlace mode from vmode bit mask

Vmode is a flag with bit mask, we can't judge interlace mode
from equal compare, need mask its bit.

Change-Id: Iad69bd52173c5ea179639deaff25f9a4ed3fc5d3
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
9 years agovideo: lcdc: judge interlace mode from vmode bit mask
Mark Yao [Tue, 3 Nov 2015 02:21:26 +0000 (10:21 +0800)]
video: lcdc: judge interlace mode from vmode bit mask

Vmode is a flag with bit mask, we can't judge interlace mode
from equal compare, need mask its bit.

Change-Id: I0cc53503198f98dc58369f4c9e6dd78b47095968
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
9 years agork_fb: add RGB BT709/BT2020 format
Mark Yao [Thu, 29 Oct 2015 07:57:23 +0000 (15:57 +0800)]
rk_fb: add RGB BT709/BT2020 format

Change-Id: I9581f78955c3efe77375bfa5e8ac571ac1d5aae4
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
9 years agork_fb: set interlace flag for dts timing
Mark Yao [Thu, 29 Oct 2015 07:54:11 +0000 (15:54 +0800)]
rk_fb: set interlace flag for dts timing

Change-Id: I8711cefdf224af88214ed39d9ae225be8bc62304
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
9 years agocamera: rk_camsys: rk3288: change gpio map method in camsys_gpio.h
zyc [Wed, 4 Nov 2015 02:19:46 +0000 (10:19 +0800)]
camera: rk_camsys: rk3288: change gpio map method in camsys_gpio.h

rk3288 gpio bank0 only has 24 pins not 32 pins,so modify the gpio map
method for rk3288.

Change-Id: I1d59b25d9acb0f51f9a1ad8ec74db2952534b1f2
Signed-off-by: ZhongYichong <zyc@rock-chips.com>
9 years agoARM: dts: rk3228-sdk: enable nandc
Zhaoyifeng [Tue, 3 Nov 2015 06:04:59 +0000 (14:04 +0800)]
ARM: dts: rk3228-sdk: enable nandc

Change-Id: I449544595eb93f6cb9d7154aced253bebe1dceb7
Signed-off-by: Zhaoyifeng <zyf@rock-chips.com>
9 years ago ARM: dts: rk3228: add nandc support
Zhaoyifeng [Tue, 3 Nov 2015 03:54:18 +0000 (11:54 +0800)]
 ARM: dts: rk3228: add nandc support

Change-Id: I40ddba4f4ce56a34ca5e448f1dfbcc06c2ad445c
Signed-off-by: Zhaoyifeng <zyf@rock-chips.com>
9 years agommc: Allow forward compatibility for eMMC
Romain Izard [Tue, 3 Nov 2015 08:33:28 +0000 (16:33 +0800)]
mmc: Allow forward compatibility for eMMC

As stated by the eMMC 5.0 specification, a chip should not be rejected
only because of the revision stated in the EXT_CSD_REV field of the
EXT_CSD register.

Remove the control on this value, the control of the CSD_STRUCTURE field
should be sufficient to reject future incompatible changes.

Change-Id: Ib69314bee902a4036183ef9a3565d9f0423ec971
Signed-off-by: Romain Izard <romain.izard.pro@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
9 years agoARM: dts: rk3228-sdk: enable psci
Jianhong Chen [Mon, 2 Nov 2015 02:17:18 +0000 (10:17 +0800)]
ARM: dts: rk3228-sdk: enable psci

Change-Id: I0d965a15e2938f8b54d056d0b7e21ec9ce33ee57
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
9 years agoARM: dtsi: rk3228: add psci support
Jianhong Chen [Mon, 2 Nov 2015 02:16:09 +0000 (10:16 +0800)]
ARM: dtsi: rk3228: add psci support

This is just add psci code into kernel, if you want to enable psci,
you must add psci=enable in the Command Line.

Change-Id: Iaf0e0116cbaba0d210cb99d59c0ee82768bf54bb
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
9 years agoARM: rockchip: support arch32 psci suspend
Jianhong Chen [Mon, 2 Nov 2015 02:10:18 +0000 (10:10 +0800)]
ARM: rockchip: support arch32 psci suspend

Change-Id: I0341d1c019b8c00376af574cd9f51e87fafa8601
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
9 years agoarm: rockchip: rk3228: dts: add pwm remote-ctrl
Huang zhibao [Fri, 30 Oct 2015 09:20:46 +0000 (17:20 +0800)]
arm: rockchip: rk3228: dts: add pwm remote-ctrl

Change-Id: Iccb31c2472238887b24ca61d7c7bdcb54a1e0778
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
9 years agovideo: rockchip: fb: delete DISPLAY_POLICY_BOX_TEMP
Zheng Yang [Fri, 30 Oct 2015 08:52:16 +0000 (16:52 +0800)]
video: rockchip: fb: delete DISPLAY_POLICY_BOX_TEMP

Change-Id: I59147b833754d5417d2813eb902923b4f700a9b0
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agoARM: dts: rk3288-box: set disp-policy to DISPLAY_POLICY_BOX
Zheng Yang [Fri, 30 Oct 2015 08:47:59 +0000 (16:47 +0800)]
ARM: dts: rk3288-box: set disp-policy to DISPLAY_POLICY_BOX

Change-Id: I3ede07d2c26aaef44ec7165353a3b3d6a6177f6e
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agoARM64: dts: rk3368-box: set disp-policy to DISPLAY_POLICY_BOX
Zheng Yang [Fri, 30 Oct 2015 08:42:54 +0000 (16:42 +0800)]
ARM64: dts: rk3368-box: set disp-policy to DISPLAY_POLICY_BOX

Change-Id: Ib97c581b7488926d5f4203ea1d61ff706118bcc5
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agoi2c: rockchip: fix power off issue for rk818
David Wu [Wed, 28 Oct 2015 23:25:37 +0000 (07:25 +0800)]
i2c: rockchip: fix power off issue for rk818

The power off sequence is behind of i2c bus shutdown func,
it would prevent the rk818 to do power off action. The irq was
disabled when rk818 power off, it could let rk818 to power off
through i2c bus.

Change-Id: Ia6155f137ab2fa36dbe19e06878b0228670b1398
Signed-off-by: David Wu <wdc@rock-chips.com>
9 years agohdmi: cec: add HDMI_IOCTL_CECWAKESTATE
Shen Zhenyi [Fri, 30 Oct 2015 05:59:55 +0000 (13:59 +0800)]
hdmi: cec: add HDMI_IOCTL_CECWAKESTATE

android HDMI CEC HAL need to know cec state when resume,
so we add the HDMI_IOCTL_CECWAKESTATE.

Change-Id: Iff942c6085d10891200cd873cc2ba53e9a2d6cad
Signed-off-by: Shen Zhenyi <szy@rock-chips.com>
9 years agoarm64: rockchip: rk3368: dts: modify dvfs_table for core
Xiao Feng [Thu, 29 Oct 2015 08:37:51 +0000 (16:37 +0800)]
arm64: rockchip: rk3368: dts: modify dvfs_table for core

Change-Id: I73c4a277b9fa38160f5206ebd8603984535f0ade
Signed-off-by: Xiao Feng <xf@rock-chips.com>
9 years agopinctrl: rockchip: fix crashed issue during pinctrl suspend
David Wu [Wed, 28 Oct 2015 23:06:04 +0000 (07:06 +0800)]
pinctrl: rockchip: fix crashed issue during pinctrl suspend

if the chip was rk3288, it didn't use pinctrl-rk3368.c,
but pinctrl-rockchip.c, driver of pinctrl-rk3368 was not registered.
It would make the NULL pointer at pinctrl-rk3368 suspend func.

Change-Id: I09dd4fb9b8bf001a4222ed9bef62347785b9906f
Signed-off-by: David Wu <wdc@rock-chips.com>
9 years agork312x, mali_400: upgrade rk_ko_ver to 5.
chenzhen [Thu, 29 Oct 2015 08:06:37 +0000 (16:06 +0800)]
rk312x, mali_400: upgrade rk_ko_ver to 5.

Change-Id: If1851d44e75ef16e1b916ecb910526f749822be0
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
9 years agoion: rockchip-ion: add API to set memory region secured
Jianqun Xu [Tue, 20 Oct 2015 01:15:06 +0000 (09:15 +0800)]
ion: rockchip-ion: add API to set memory region secured

Add ion ioctl command -ION_IOC_SET_SECURED
for user to set memory region secured.

Change-Id: Ic4a7432ab8d2fd9f60fdfe7457e92f7c99768e12
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
9 years agoARM: rockchip-psci: add interface for ion to set memory secured
Jianqun Xu [Tue, 20 Oct 2015 00:42:59 +0000 (08:42 +0800)]
ARM: rockchip-psci: add interface for ion to set memory secured

Add function "psci_set_memory_secure" for device to set memory
region secured.

Change-Id: Ife807c91d37ae66a5e1a0a3d8263c68cd601937d
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
9 years agork312x, mali_400: make it more 'difficult' to dump down in mali_dvfs_list.
chenzhen [Wed, 28 Oct 2015 08:45:04 +0000 (16:45 +0800)]
rk312x, mali_400: make it more 'difficult' to dump down in mali_dvfs_list.

Change-Id: If5fd646aa6ca7f7383db70c84ff71f1570fe23b1
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
9 years agoARM: rockchip: rockchip_defconfig enable IP_MULTICAST
Huang, Tao [Wed, 28 Oct 2015 08:37:41 +0000 (16:37 +0800)]
ARM: rockchip: rockchip_defconfig enable IP_MULTICAST

Change-Id: Ic40cb94753f9fedc548ae6a77b36d0bed5754d88
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agoARM: rockchip: rockchip_defconfig enable UID_CPUTIME
Huang, Tao [Wed, 28 Oct 2015 08:34:00 +0000 (16:34 +0800)]
ARM: rockchip: rockchip_defconfig enable UID_CPUTIME

Change-Id: Ifb92e539e868ed15561ae8698b226422fae5fee8
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agoARM: rockchip: rockchip_defconfig enable kernel-mode NEON and NEON based cypto
Huang, Tao [Wed, 28 Oct 2015 07:03:34 +0000 (15:03 +0800)]
ARM: rockchip: rockchip_defconfig enable kernel-mode NEON and NEON based cypto

Change-Id: Ie3975cd780bbbedaaa2e3384d49e9f90734b65fe
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agoARM: rockchip-psci: add function id for secure memory set
Jianqun Xu [Tue, 20 Oct 2015 00:39:16 +0000 (08:39 +0800)]
ARM: rockchip-psci: add function id for secure memory set

Change-Id: I73c0b2c603a4b72f07804c684cd89bc82e5529c4
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
9 years agoARM: rockchip: psci support arch32 and arch64 smc call
Jianhong Chen [Tue, 27 Oct 2015 08:25:11 +0000 (16:25 +0800)]
ARM: rockchip: psci support arch32 and arch64 smc call

Change-Id: I736c6c15cbb41d52aa9ef1e98cb9ebdd6ac9ebfc
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
9 years agoarm64: rockchip: rockchip_defconfig enable IP_MULTICAST
Huang, Tao [Wed, 28 Oct 2015 06:27:11 +0000 (14:27 +0800)]
arm64: rockchip: rockchip_defconfig enable IP_MULTICAST

Change-Id: I07f7ad04f89c54b582b756c43d9841d99883e6df
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agoarm64: rockchip: rockchip_defconfig enable UID_CPUTIME
Huang, Tao [Wed, 28 Oct 2015 02:36:28 +0000 (10:36 +0800)]
arm64: rockchip: rockchip_defconfig enable UID_CPUTIME

Change-Id: Ia6f86bf86220261eda27ae1bba880fdf61241d5c
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agoARM: dts: rk3228: add ion node
Jianqun Xu [Tue, 13 Oct 2015 08:43:24 +0000 (16:43 +0800)]
ARM: dts: rk3228: add ion node

Add ion node, with two memory reserved region,
cma-heap and system-heap

Change-Id: Ic6c4da56e0c608135653f901f37adfed7bc7cb15
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
9 years agoarm64: rockchip: rockchip_defconfig enable ARM v8 crypto
Huang, Tao [Tue, 27 Oct 2015 11:55:26 +0000 (19:55 +0800)]
arm64: rockchip: rockchip_defconfig enable ARM v8 crypto

Change-Id: I67d9ab8d0e8412e9899e64378beba8dd0764b310
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agoarm64: rockchip: add support for kernel mode NEON
Huang, Tao [Tue, 27 Oct 2015 11:54:13 +0000 (19:54 +0800)]
arm64: rockchip: add support for kernel mode NEON

Change-Id: I964c5dad5562f0342b1d11d9a0483fcac0394e4d
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agorockchip: quiet module_request personality-8
Huang, Tao [Tue, 27 Oct 2015 11:25:27 +0000 (19:25 +0800)]
rockchip: quiet module_request personality-8

In Android-M, below change in bionic was introduced
https://android-review.googlesource.com/122131

Which caused lot of SELinux denials to be logged regarding
module_request (similar to below one) for 32bit systems,
There is quite a lot of module_request denials when any 32bit
executable is executed.

type=1400 audit(946685139.719:12): avc: denied { module_request }
for pid=1970 comm="tzdatacheck" kmod="personality-8"
scontext=u:r:tzdatacheck:s0 tcontext=u:r:kernel:s0 tclass=system
permissive=1

So we patch the kernel to not attempt module loading for alternate
execution environments.

Change-Id: I7bd2c5fc08fd00fa7ff53d3ced401564b474fad4
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
9 years agommc: dw_mmc: fix the max_blk_count in IDMAC
Shawn Lin [Tue, 27 Oct 2015 09:53:06 +0000 (17:53 +0800)]
mmc: dw_mmc: fix the max_blk_count in IDMAC

Even though 1MB is reserved for descriptor table in IDMAC,
the dw_mmc host driver is allowed to receive only maximum
128KB block length in one request. This is caused by setting
improper max_blk_count. It needs to be e adjusted so that
descriptor table is used fully. It is found that the performance
is improved with the increased the max_blk_count.

Change-Id: Ie4042f9e1924e0f575b9865aa721b7b61305c13d
Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
9 years agoARM: dts: rk3228: hdmi: add pinctrl and pclk_hdmi_phy
Zheng Yang [Tue, 27 Oct 2015 06:28:46 +0000 (14:28 +0800)]
ARM: dts: rk3228: hdmi: add pinctrl and pclk_hdmi_phy

Change-Id: I5570a3bf1970e6f8748cab55fea06a11af5c4f3e
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
9 years agoMerge branch 'android-3.10'
Huang, Tao [Tue, 27 Oct 2015 09:35:20 +0000 (17:35 +0800)]
Merge branch 'android-3.10'

Exclude:
ext4 crypto
nl80211: fix scheduled scan RSSI matchset attribute confusion
mmc
Add wlan platform partial_resume handler
wlan: Add WLAN_PLAT_AP_FLAG for SOFTAP country code
ipc
zram

9 years agouid_cputime: Check for the range while removing range of UIDs.
Ruchi Kandoi [Sat, 24 Oct 2015 00:49:11 +0000 (17:49 -0700)]
uid_cputime: Check for the range while removing range of UIDs.

Checking if the uid_entry->uid matches the uid intended to be removed will
prevent deleting unwanted uid_entry.
Type cast the key for the hashtable to the same size, as when they were
inserted. This will make sure that we can find the uid_entry we want.

Bug: 25195548
Change-Id: I567942123cfb20e4b61ad624da19ec4cc84642c1
Signed-off: Ruchi kandoi <kandoiruchi@google.com>
(cherry picked from commit 170458885df2e4e081d3f8489cfd4f66a9598995)

9 years agoRevert "android: binder: Change binder mutex to rtmutex."
Riley Andrews [Wed, 14 Oct 2015 18:54:15 +0000 (11:54 -0700)]
Revert "android: binder: Change binder mutex to rtmutex."

This reverts commit ebce7cd30b3e00232c8be23d0f04d7c0599089b5.

This ends up doing more damage than good on most devices. Go back to
using a standard mutex.

(cherry picked from commit ea93186577de4fae3a2273c296bfcf1839048df0)

9 years agoipv6: inet6_sk() should use sk_fullsock()
Eric Dumazet [Mon, 5 Oct 2015 04:08:09 +0000 (21:08 -0700)]
ipv6: inet6_sk() should use sk_fullsock()

SYN_RECV & TIMEWAIT sockets are not full blown, they do not have a pinet6
pointer.

Bug: 24163529
Change-Id: I6ce67a190d67d200c6ebeb81d2daeb9c86cd7581
Fixes: ca6fb0651883 ("tcp: attach SYNACK messages to request sockets instead of listener")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
(cherry picked from commit feee3c175c23ae72ed17154caaa82a3002de0023)

9 years agonet: add sk_fullsock() helper
Eric Dumazet [Mon, 16 Mar 2015 04:12:12 +0000 (21:12 -0700)]
net: add sk_fullsock() helper

We have many places where we want to check if a socket is
not a timewait or request socket. Use a helper to avoid
hard coding this.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[backported from net-next 1d0ab253872cdd3d8e7913f59c266c7fd01771d0]
[lorenzo@google.com: removed TCPF_NEW_SYN_RECV, and added a comment to add it back.]

Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Bug: 24163529
Change-Id: Ibf09017e1ab00af5e6925273117c335d7f515d73
(cherry picked from commit cdab04e3612c55f0906c84c3c05996a0507eab7d)

9 years agolowmemorykiller: trace kill events.
Martijn Coenen [Tue, 26 May 2015 09:28:47 +0000 (11:28 +0200)]
lowmemorykiller: trace kill events.

Allows for capturing lmk kill events and
their rationale.

Change-Id: Ibe215db5bb9806fc550c72c0b9832c85cbd56bf6
Signed-off-by: Martijn Coenen <maco@google.com>
(cherry picked from commit 6cfb58f07af4b913508f087fe551a08f5a21eb88)

9 years agoarm64/crypto: use crypto instructions to generate AES key schedule
Ard Biesheuvel [Mon, 3 Nov 2014 16:50:01 +0000 (16:50 +0000)]
arm64/crypto: use crypto instructions to generate AES key schedule

(cherry pick from commit 12ac3efe74f888a13cb4df88b38bb01e8034dea8)

This patch implements the AES key schedule generation using ARMv8
Crypto Instructions. It replaces the table based C implementation
in aes_generic.ko, which means we can drop the dependency on that
module.

Tested-by: Steve Capper <steve.capper@linaro.org>
Acked-by: Steve Capper <steve.capper@linaro.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 23181629
(cherry picked from commit 60b9dd6043fdc26860d850c364fd92b1f4e170fc)

9 years agoarm64: crypto: Change priority of arm64 aes cipher.
Riley Andrews [Wed, 26 Aug 2015 22:12:00 +0000 (15:12 -0700)]
arm64: crypto: Change priority of arm64 aes cipher.

(cherry pick from commit d802476e8db2eb616d47d0a06310276532cc2ffa)

Change-Id: I0c614e0eca71b65945ff8bd17c65b03a02918b18
Signed-off-by: Riley Andrews <riandrews@google.com>
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 23181629
(cherry picked from commit 52d464160266101140ce95992256c25cc03e2bb3)

9 years agoselinux: do not check open perm on ftruncate call
Jeff Vander Stoep [Fri, 18 Sep 2015 19:39:46 +0000 (12:39 -0700)]
selinux: do not check open perm on ftruncate call

Use the ATTR_FILE attribute to distinguish between truncate()
and ftruncate() system calls. The two other cases where
do_truncate is called with a filp (and therefore ATTR_FILE is set)
are for coredump files and for open(O_TRUNC). In both of those cases
the open permission has already been checked during file open and
therefore does not need to be repeated.

Commit 95dbf739313f ("SELinux: check OPEN on truncate calls")
fixed a major issue where domains were allowed to truncate files
without the open permission. However, it introduced a new bug where
a domain with the write permission can no longer ftruncate files
without the open permission, even when they receive an already open
file.

(cherry picked from commit b21800f304392ee5d20f411c37470183cc779f11)

Bug: 22567870
Change-Id: Id7c305e46beba5091c2c777529bd468216aae1c3

Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <pmoore@redhat.com>
(cherry picked from commit df46bc83c1fc9b64b2e86290935a3ad550b2e56e)

9 years agoFix NULL pointer dereference in tcp_nuke_addr.
Lorenzo Colitti [Mon, 14 Sep 2015 15:14:23 +0000 (00:14 +0900)]
Fix NULL pointer dereference in tcp_nuke_addr.

tcp_nuke addr only grabs the bottom half socket lock, but not the
userspace socket lock. This allows a userspace program to call
close() while the socket is running, which causes a NULL pointer
dereference in inet_put_port.

Bug: 23663111
Bug: 24072792
Change-Id: Iecb63af68c2db4764c74785153d1c9054f76b94f
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
(cherry picked from commit 74d66ee756afcc3269e4c1341f793c52be629af9)

9 years agousb: phy: fix dual role sysfs build if kernel modules are supported
Amit Pundir [Wed, 2 Sep 2015 11:08:31 +0000 (16:38 +0530)]
usb: phy: fix dual role sysfs build if kernel modules are supported

Add a missing ";" after EXPORT_SYMBOL() otherwise we run
into following build error if Kernel Modules are supported:
----------
  CC      drivers/usb/phy/class-dual-role.o
drivers/usb/phy/class-dual-role.c:91:1: error: expected ',' or ';' before 'int'
 int dual_role_get_property(struct dual_role_phy_instance *dual_role,
 ^
make[3]: *** [drivers/usb/phy/class-dual-role.o] Error 1
----------

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
(cherry picked from commit 9ff158f4c245c2fecb1489a4aae62ca67c0846a1)

Change-Id: I7ec77584b3a753448ddc50a74204a20f4636f8a4
(cherry picked from commit f5af56b478111455ce9041d958b83f13bc742af6)

9 years agoion: Handle the memory mapping correctly on x86
Vinil Cheeramvelil [Wed, 8 Jul 2015 02:35:06 +0000 (10:35 +0800)]
ion: Handle the memory mapping correctly on x86

This patch modifies the ion page pool code to address
limitation in x86 PAT. When one physical page is mapped
to multiple virtual pages, the same cache policy
should be used. Add set_memory_wc/uc call to avoid aliases.
If not, all mappings will be cached(write back).

Change-Id: I98ee8902df0c80135dddfa998c4ca4c2bb44e40e
Signed-off-by: Zhebin Jin <zhebin.jin@intel.com>
Signed-off-by: Vinil Cheeramvelil <vinil.cheeramvelil@intel.com>
(cherry picked from commit 6db47cc7e2f1d8dd8fc84912202ed749d6781a76)

Conflicts:
drivers/staging/android/ion/Kconfig
drivers/staging/android/ion/ion_priv.h

9 years agousb: phy: Dual role sysfs class definition
Badhri Jagan Sridharan [Thu, 27 Aug 2015 04:12:54 +0000 (21:12 -0700)]
usb: phy: Dual role sysfs class definition

This CL adds a new class to monitor and change
dual role usb ports from userspace. The usb
phy drivers can register to the dual_role_usb
class and expose the capabilities of the ports.
The phy drivers can decide on whether a specific
attribute can be changed from userspace by
choosing to implement the appropriate callback.

Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Bug: 21615151
Change-Id: I121b4a94437972b5abe8f781e3007efa8531978
(cherry picked from commit f3061b9d608ce2314f24088281131ebadafa3985)

9 years agotrace/events: fix compilation error
Jin Qian [Wed, 26 Aug 2015 18:55:28 +0000 (11:55 -0700)]
trace/events: fix compilation error

include/trace/events/filemap.h: In function 'ftrace_raw_output_mm_filemap_find_page_cache_miss':
include/trace/ftrace.h:232:9: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' [-Werror=format=]

Change-Id: Ic2d76f18fc8802cf1e2246f96d84a06d267a30ad
Signed-off-by: Jin Qian <jinqian@google.com>
(cherry picked from commit c91e2d317307431283b96ce040e8aefd44b0b286)

9 years agosysrq: Emergency Remount R/O in reverse order
Amir Goldstein [Mon, 4 Aug 2014 16:29:32 +0000 (19:29 +0300)]
sysrq: Emergency Remount R/O in reverse order

This change fixes a problem where reboot on Android panics the kernel
almost every time when file systems are mounted over loop devices.

Android reboot command does:
- sync
- echo u > /proc/sysrq-trigger
- syscall_reboot

The problem is with sysrq emergency remount R/O trying to remount-ro
in wrong order.
since /data is re-mounted ro before loop devices, loop device
remount-ro fails to flush the journal and panics the kernel:

  EXT4-fs (loop0): Remounting filesystem read-only
  EXT4-fs (loop0): previous I/O error to superblock detected
  loop: Write error at byte offset 0, length 4096.
  Buffer I/O error on device loop0, logical block 0
  lost page write due to I/O error on loop0
  Kernel panic - not syncing: EXT4-fs panic from previous error

The fix is quite simple. In do_emergency_remount(), use
list_for_each_entry_reverse() on sb list instead of list_for_each_entry().
It makes a lot of sense to umount the file systems in reverse order in
which they were added to sb list.

Change-Id: I4370e39b5873bd16ade5d5f9ddb2704beb02a2bb
Signed-off-by: Amir Goldstein <amir@cellrox.com>
Acked-by: Oren Laadan <orenl@cellrox.com>
(cherry picked from commit 334cc257d864f112b64fb885be908e6cdd644c08)

9 years agopstore: pmsg: return -ENOMEM on vmalloc failure
Mark Salyzyn [Thu, 20 Aug 2015 21:21:34 +0000 (14:21 -0700)]
pstore: pmsg: return -ENOMEM on vmalloc failure

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 23385441
Change-Id: I294cb72c25bddafbba4e64fdb0a18ae46655a05d
(cherry picked from commit 62bb84973c1d55a4cc35cc4d95cb723ce0aa2c0b)

9 years agoPage cache miss tracing using ftrace on mm/filemap
Daniel Campello [Mon, 20 Jul 2015 17:37:56 +0000 (10:37 -0700)]
Page cache miss tracing using ftrace on mm/filemap

This patch includes two trace events on generic_perform_write and
do_generic_file_read to check on the address_space mapping for the
pages to be accessed by the request.

Change-Id: Ib319b9b2c971b9e5c76645be6cfd995ef9465d77
Signed-off-by: Daniel Campello <campello@google.com>
(cherry picked from commit d3952c50853166bd04562766c9603ed86ab0da75)

Conflicts:
include/linux/pagemap.h

9 years agowakeup_reason: use vsnprintf instead of snsprintf for vargs.
Ruchi Kandoi [Thu, 6 Aug 2015 00:09:39 +0000 (17:09 -0700)]
wakeup_reason: use vsnprintf instead of snsprintf for vargs.

Bug: 22368519
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
(cherry picked from commit 26dfa1394af4da60bf8ce7c5e56168b1ad8f2179)

9 years agouid_cputime: Iterates over all the threads instead of processes.
Ruchi Kandoi [Fri, 31 Jul 2015 17:17:54 +0000 (10:17 -0700)]
uid_cputime: Iterates over all the threads instead of processes.

Bug: 22833116
Change-Id: I775a18f61bd2f4df2bec23d01bd49421d0969f87
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
(cherry picked from commit eb9cf7d0d416edc93edfe6e784189f02c82701a1)

9 years agoipv6: sysctl to restrict candidate source addresses
Erik Kline [Wed, 22 Jul 2015 07:38:25 +0000 (16:38 +0900)]
ipv6: sysctl to restrict candidate source addresses

Per RFC 6724, section 4, "Candidate Source Addresses":

    It is RECOMMENDED that the candidate source addresses be the set
    of unicast addresses assigned to the interface that will be used
    to send to the destination (the "outgoing" interface).

Add a sysctl to enable this behaviour.

Signed-off-by: Erik Kline <ek@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[Simplified back-port of net-next 3985e8a3611a93bb36789f65db862e5700aab65e]

Bug: 19470192
Bug: 21832279
Bug: 22464419
Change-Id: Ib74ef945dcabe64215064f15ee1660b6524d65ce
(cherry picked from commit 0633924e7776754ccb473d649e5fa9ee45617a46)

9 years agouid_cputime: fix cputime overflow
Jin Qian [Tue, 14 Jul 2015 01:16:55 +0000 (18:16 -0700)]
uid_cputime: fix cputime overflow

Converting cputime_t to usec caused overflow when the value is greater
than 1 hour. Use msec and convert to unsigned long long to support bigger
range.

Bug: 22461683

Change-Id: I853fe3e8e7dbf0d3e2cc5c6f9688a5a6e1f1fb3e
Signed-off-by: Jin Qian <jinqian@google.com>
(cherry picked from commit 75bf23fe4bfb1805b411965b5ce3c4b81b957898)

9 years agoinitramfs: Add skip_initramfs command line option
Rom Lemarchand [Mon, 6 Jul 2015 23:50:33 +0000 (16:50 -0700)]
initramfs: Add skip_initramfs command line option

Add a skip_initramfs option to allow choosing whether to boot using
the initramfs or not at runtime.

Change-Id: If30428fa748c1d4d3d7b9d97c1f781de5e4558c3
Signed-off-by: Rom Lemarchand <romlem@google.com>
(cherry picked from commit 6f36227aa43c9e4b17a2dcda6a38e79d1b00d1b5)

9 years agocpu_power: Avoids race condition when the task exits.
Ruchi Kandoi [Sat, 27 Jun 2015 02:02:08 +0000 (19:02 -0700)]
cpu_power: Avoids race condition when the task exits.

When the task is terminated, the cpu_power for that particular task is
added to the terminated tasks. cpu_power is set to ULLONG_MAX at this
point to avoid double accounting of the power. It is possible that before the
task releases all the resources, cpu reschedules the task or a timer
interrupt is fired. At this point we will try to add the additional time
to the process, which will cause the accounting to be skewed. This
avoids the case where we change the cpu_power when it is already set to
ULLONG_MAX.

Bug: 22064385
Change-Id: I405733725d535b0a864088516bf52fa3638ee6aa
Signed-off-by: Jin Qian <jinqian@google.com>
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
(cherry picked from commit fd72341df7e6e8b834f5d4ec86a30f248eb96385)

9 years agoFix arch/arm/crypto/sha256_glue.c
Sami Tolvanen [Fri, 19 Jun 2015 09:42:41 +0000 (10:42 +0100)]
Fix arch/arm/crypto/sha256_glue.c

MODULE_ALIAS_CRYPTO is not defined, use MODULE_ALIAS.

Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Change-Id: I24803dbbbf7ac7889bc027f69af371b594eca835
(cherry picked from 5eb3cca16fcf9c62753058aaf73bb12b71acba79)

(cherry picked from commit 9645fcee58b4af5f9f9a530f0fb514e7245012a8)

9 years agoof: add empty of_find_node_by_path() for !OF
Alexander Shiyan [Wed, 16 Apr 2014 06:49:20 +0000 (10:49 +0400)]
of: add empty of_find_node_by_path() for !OF

Add an empty version of of_find_node_by_path().
This fixes following build error for asoc tree:
sound/soc/fsl/fsl_ssi.c: In function 'fsl_ssi_probe':
sound/soc/fsl/fsl_ssi.c:1471:2: error: implicit declaration of function 'of_find_node_by_path' [-Werror=implicit-function-declaration]
  sprop = of_get_property(of_find_node_by_path("/"), "compatible", NULL);

Change-Id: Ib635dffb97877a2820fb80b99db96a285a6d2d14
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Rob Herring <robh@kernel.org>
(cherry picked from commit 9e7f1b065a312062eb8acdb1c505ddb3792b7583)

9 years agouid_cputime: Avoids double accounting of process stime, utime and cpu_power in
Ruchi Kandoi [Fri, 26 Jun 2015 21:19:21 +0000 (14:19 -0700)]
uid_cputime: Avoids double accounting of process stime, utime and cpu_power in
task exit.

This avoids the race where a particular process is terminating and we
read the show_uid_stats. At this time since the task_struct still exists
and we will account for the terminating process as one of the active
task, where as the stats would have been added in the task exit
callback.

Bug: 22064385
Change-Id: Id2ae04b33fcd230eda9683a41b6019d4dd8f5d85
Signed-off-by: Jin Qian <jinqian@google.com>
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
(cherry picked from commit ddd9aac59e0aea3d5a4df485173115e8ecb3e17d)

9 years agoShrink ashmem directly through shmem_fallocate
Tobias Lindskog [Mon, 9 Feb 2015 07:10:39 +0000 (08:10 +0100)]
Shrink ashmem directly through shmem_fallocate

When ashmem_shrink is called from direct reclaim on a user thread, a
call to do_fallocate will check for permissions against the security
policy of that user thread.  It can thus fail by chance if called on a
thread that isn't permitted to modify the relevant ashmem areas.

Because we know that we have a shmem file underneath, call the shmem
implementation of fallocate directly instead of going through the
user-space interface for fallocate.

FIX=DMS06243560
Area: Kernel/Linux Kernel

Bug: 21951515
Change-Id: Ie98fff18a2bdeb535cd24d4fbdd13677e12681a7
Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
(cherry picked from commit 2ecc7f173a30ee7df10240d6944108252a5f5b7d)

9 years agocpufreq: Iterate over all the possible cpus to create powerstats.
Ruchi Kandoi [Sat, 6 Jun 2015 01:21:56 +0000 (18:21 -0700)]
cpufreq: Iterate over all the possible cpus to create powerstats.

For architectures which support a single policy for multiple cpus,
powerstats will not be initalized for all the cores. This change will
make sure powerstats is initialized for all the cores.

Also minor changes to increase code readability.

Bug: 21498425
Change-Id: I938f45e92ff6d5371c32c4d0e37274e6de66769c
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
(cherry picked from commit 5862c50d1970886b5b5a57b5b52ecfd6feb95ebd)

9 years agoMerge tag 'v3.10.92'
Huang, Tao [Tue, 27 Oct 2015 06:09:58 +0000 (14:09 +0800)]
Merge tag 'v3.10.92'

This is the 3.10.92 stable release

9 years agoMerge tag 'lsk-v3.10-15.10-android'
Huang, Tao [Tue, 27 Oct 2015 06:07:45 +0000 (14:07 +0800)]
Merge tag 'lsk-v3.10-15.10-android'

LSK Android 15.10 v3.10

9 years agouart: rockchip: add uart supported for rk3228
David Wu [Thu, 22 Oct 2015 08:51:47 +0000 (16:51 +0800)]
uart: rockchip: add uart supported for rk3228

Change-Id: I86b49f20954a739645b9277e45d6b75058ff9c2b
Signed-off-by: David Wu <wdc@rock-chips.com>
9 years agoARM: dts: rk3228: tsadc: support tsadc for rk3228
zhangqing [Tue, 27 Oct 2015 09:54:03 +0000 (02:54 -0700)]
ARM: dts: rk3228: tsadc: support tsadc for rk3228

add rk3228 tsadc parameter for dtsi.

Change-Id: I74cc9b6c2e4d53aa5e3391d5a820937925f07077
Signed-off-by: zhangqing <zhangqing@rock-chips.com>