Commit Graph

405916 Commits

Author SHA1 Message Date
dalon.zhang
809bc041c8 uvc: support the query of iommu_enabled 2015-07-17 15:46:35 +08:00
hwg
ff8dfccbb0 bcmdhd wifi: support ap6356 nvram auto recognize 2015-07-16 20:32:53 +08:00
Zheng Yang
6a9f5a9abe eDP:rk3288:ignore grf probe error when probe.
rockhip,grf node is not exist on rk3288,  we
need to ignore grf probe error.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-07-16 17:45:14 +08:00
linwei
858c057af9 eDP:RK3288 check format for rk32_dp.c rk32_dp.h
Signed-off-by: linwei <buluo.lin@rock-chips.com>
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-07-16 12:41:44 +08:00
zhangqing
4a8a2ed2a7 rk3288: clk: slove make warning for clk-ops.c
Signed-off-by: zhangqing <zhangqing@rock-chips.com>
2015-07-16 04:49:42 -07:00
zhangqing
e6240182f3 rk3288: clk: support clk_vop set 594M.
Signed-off-by: zhangqing <zhangqing@rock-chips.com>
2015-07-16 04:11:36 -07:00
zhangqing
4e31fe5041 rk3288: clk: support aclk_vio 594M.
Signed-off-by: zhangqing <zhangqing@rock-chips.com>
2015-07-15 11:05:22 -07:00
zhangqing
ea6b0ae3dd rk: pmic: rk818: add interface to set ldo sleep state.
add interface to set ldo sleep state,
which hope can dynamically modify the ldo sleep state.

Signed-off-by: chenjianhong <chenjianhong@rock-chips.com>
2015-07-15 10:35:55 -07:00
Alpha Lin
2a9e6a67a2 VPU: pmu idle request before cru operation.
pmu idle request before cru operation to ensure the hardware
don't be reset during runing. without this hardware maybe hang
up for bus access failure.

Signed-off-by: Alpha Lin <alpha.lin@rock-chips.com>
2015-07-15 14:49:51 +08:00
Alpha Lin
13b95ebabe RK3288 VPU: add cru reset resource.
Signed-off-by: Alpha Lin <alpha.lin@rock-chips.com>
2015-07-14 17:59:06 +08:00
zhangqing
6e30d4ffb7 rk3x:pmic: rk818:enable hdmi5v in sleep mode and improve buck efficiency
enable hdmi5v in sleep mode for low power.
improve buck efficiency for low power.

Signed-off-by: chenjianhong <chenjianhong@rock-chips.com>
2015-07-14 08:19:40 -07:00
xubilv
248ccf1164 MIPI: fix the first wake-up not display bug.
Signed-off-by: xubilv <xbl@rock-chips.com>
2015-07-14 13:55:42 +08:00
Jianhong Chen
9e30271c2c power: rk81x battery: use get_monotonic_boottime to get system run time
local_clock will lose the suspend time, so we use get_monotonic_boottime instead

Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
Signed-off-by: 许盛飞 <xsf@rock-chips.com>
2015-07-14 13:51:49 +08:00
Jianhong Chen
40cec762a6 power: rk81x-battery: modify low power check threshold voltage
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
Signed-off-by: 许盛飞 <xsf@rock-chips.com>
2015-07-14 13:51:49 +08:00
Jianhong Chen
d189c1ff7c power: rk81x-battery: add calc seconds availability check
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
Signed-off-by: 许盛飞 <xsf@rock-chips.com>
2015-07-14 13:51:49 +08:00
Jianhong Chen
7f83176b5a power: rk81x-battery: add debug message dump limit
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
Signed-off-by: 许盛飞 <xsf@rock-chips.com>
2015-07-14 13:51:49 +08:00
Jianhong Chen
7614e3b9ba power: rk81x-battery: optimize zero discharge algorithm
avoid display_soc to be initialed in some case which makes dsoc
drop too quick

Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
Signed-off-by: 许盛飞 <xsf@rock-chips.com>
2015-07-14 13:51:48 +08:00
Jianhong Chen
7f46fa8319 power: rk81x-battery: get charger type by usb notifier instead of polling
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
Signed-off-by: 许盛飞 <xsf@rock-chips.com>
2015-07-14 13:51:48 +08:00
Sugar Zhang
17e911149a dts: rk3368-p9_818: disable vcc_codec when system sleep.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2015-07-14 10:24:42 +08:00
Zheng Yang
c8dad637ef hdmi:rk3036/rk3128: fix picture flicker error when setting audio.
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-07-14 10:02:37 +08:00
Zheng Yang
fabbdfab96 hdmi:rk3288/rk3368: modify avi colorimetry information according to input colorimetry.
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-07-14 09:52:18 +08:00
Zheng Yang
edbf5b6446 hdmi: support parse and modify colorimetry.
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-07-14 09:33:45 +08:00
Shengqin.Zhang
d90ca2aa69 fix rga2 3368 first proc scale bug
Signed-off-by: Shengqin.Zhang <zsq@rock-chips.com>
2015-07-13 15:05:44 +08:00
Shengqin.Zhang
49e1213c4a fix rga2 soft reset may cause rga status uncorrect
Signed-off-by: Shengqin.Zhang <zsq@rock-chips.com>
2015-07-12 18:56:52 +08:00
Shengqin.Zhang
fb3eecdb28 fix rga miss flush cmd reg to DDR bug
Signed-off-by: Shengqin.Zhang <zsq@rock-chips.com>
2015-07-12 18:51:06 +08:00
Sugar Zhang
1aa4889524 ASoC: es8316: reinit codec when resume from deep sleep.
because codec power will be cut off when enter deep sleep.
so need reinit codec when resume.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2015-07-10 16:54:59 +08:00
Sugar Zhang
fbe8dc221a ASoC: rockchip: i2s: move pinctrl_pm_* to suspend/resume.
some codec initializtion depends on i2s's mclk/lrck, when codec enter
deep sleep, codec power loss, then codec resume and reinit
codec logic which need mclk/lrck, if these clk is not ready, codec will
work abnormally.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2015-07-10 16:54:51 +08:00
Zheng Yang
ff3fd603a0 hdmi: move show sink info to debug node.
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-07-10 17:13:26 +08:00
Zheng Yang
20e295642e hdmi: modify debug string mode.
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-07-10 16:03:59 +08:00
Zheng Yang
411efa27e3 hdmi: mute output before disabled or suspended.
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-07-10 15:12:53 +08:00
guoyi
6fe9516f79 Drivers: TP: disable vcc_tp when gt9xx in suspend mode
Signed-off-by: guoyi <gy@rock-chips.com>
2015-07-10 14:57:15 +08:00
guoyi
6fe948ae68 rk3368: rk3368-p9_818.dts: set vcc_tp sleep mode to disabled
Signed-off-by: guoyi <gy@rock-chips.com>
2015-07-10 14:57:15 +08:00
guoyi
d93c0c43bf PMIC:rk818.dtsi: remove rk818_reg_ldo2 aways-on,
then we can disable it during OS is running

Signed-off-by: guoyi <gy@rock-chips.com>
2015-07-10 14:57:14 +08:00
Alpha Lin
244c71a550 RK3368: add vpu cru reset resource.
Add cru reset resource according to RESET CONTROLLER.

Signed-off-by: Alpha Lin <alpha.lin@rock-chips.com>
2015-07-10 14:38:05 +08:00
Alpha Lin
b1b0cf98bf VPU: add cru reset support.
This depend on RESET_CONTROLLER enable on kernel.

Signed-off-by: Alpha Lin <alpha.lin@rock-chips.com>
2015-07-10 14:37:51 +08:00
Shawn Lin
013d60efce mmc: rk_sdmmc: enhance recovery flow
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2015-07-10 14:05:03 +08:00
Shawn Lin
8a8e0eb8b8 dts: rockchip: add cru regmap refnode for mmc
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2015-07-10 14:05:02 +08:00
Jens Axboe
7479f23c2a direct-io: only inc/dec inode->i_dio_count for file systems
do_blockdev_direct_IO() increments and decrements the inode
->i_dio_count for each IO operation. It does this to protect against
truncate of a file. Block devices don't need this sort of protection.

For a capable multiqueue setup, this atomic int is the only shared
state between applications accessing the device for O_DIRECT, and it
presents a scaling wall for that. In my testing, as much as 30% of
system time is spent incrementing and decrementing this value. A mixed
read/write workload improved from ~2.5M IOPS to ~9.6M IOPS, with
better latencies too. Before:

clat percentiles (usec):
|  1.00th=[   33],  5.00th=[   34], 10.00th=[   34], 20.00th=[   34],
| 30.00th=[   34], 40.00th=[   34], 50.00th=[   35], 60.00th=[   35],
| 70.00th=[   35], 80.00th=[   35], 90.00th=[   37], 95.00th=[   80],
| 99.00th=[   98], 99.50th=[  151], 99.90th=[  155], 99.95th=[  155],
| 99.99th=[  165]

After:

clat percentiles (usec):
|  1.00th=[   95],  5.00th=[  108], 10.00th=[  129], 20.00th=[  149],
| 30.00th=[  155], 40.00th=[  161], 50.00th=[  167], 60.00th=[  171],
| 70.00th=[  177], 80.00th=[  185], 90.00th=[  201], 95.00th=[  270],
| 99.00th=[  390], 99.50th=[  398], 99.90th=[  418], 99.95th=[  422],
| 99.99th=[  438]

In other setups, Robert Elliott reported seeing good performance
improvements:

https://lkml.org/lkml/2015/4/3/557

The more applications accessing the device, the worse it gets.

Add a new direct-io flags, DIO_SKIP_DIO_COUNT, which tells
do_blockdev_direct_IO() that it need not worry about incrementing
or decrementing the inode i_dio_count for this caller.

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Theodore Ts'o <tytso@mit.edu>
Cc: Elliott, Robert (Server Storage) <elliott@hp.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Tested-and-Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
2015-07-10 13:17:35 +08:00
Shawn Lin
5f99dc40c3 defconfig: rockchip: enable CONFIG_MMC_DW_SKIP_CACHE_OP
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2015-07-10 12:53:16 +08:00
Shawn Lin
b685cff6eb fs: direct-io: convert rw from READ to KERNEL_READ
KERNEL_READ equal READ puls REQ_KERNEL, which indicates
this brq comes from direct-io. Any block-layer devices who
care this req type can get it now.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2015-07-10 12:53:16 +08:00
Shawn Lin
0ae90e7e63 mmc: rk_sdmmc: add MMC_DW_SKIP_CACHE_OP for data manipulation
Direct IO of filesystem  had recursive searched and map the addr
itself, so mmc drivers can avoid to do the same ops in order to
improve throughput. We got 30% improvement for 4KB bs packet test.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2015-07-10 12:53:16 +08:00
Shawn Lin
b80f2f6899 arm64: dma-mapping: conditional skip map_sg by attrs
Add if statement(DMA_ATTR_SKIP_CPU_SYNC) for __swiotlb_map_sg_attrs
to skip invalidating each sg element

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2015-07-10 12:53:16 +08:00
Zheng Yang
f1d8317f7f hdmi:rk3368/rk3288: modify phy termination resistance.
Set single-ended source termination resistance
        to 100ohm for HDMI1.4 and 50ohm for HDMI2.0.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-07-10 11:33:57 +08:00
Zheng Yang
132ad528d0 hdmi:rk3368/rk3288: set color format in avi to RGB before mute output.
For some sink, it will random recognize YCbCr as RGB when swithing
        hdmi format, picture will covered with purple. If we set color
        fomat in avi to RGB and reset avi to YCbCr, picture will be ok. So
        we set avi to RGB before mute ouput when switching hdmi format.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-07-10 11:00:49 +08:00
hecanyang
4c335b30ec dts:sdmmc: slow down sdmmc frequence to 37.5MHz for SDK board
SDK board sdmmc can't run 50MHz, otherwise SD initialising will return error.
log as below. slow down sdmmc frequence to 37.5MHz can fix it.

<4>[  802.611901]  [0:    kworker/0:2:  644] rk_sdmmc: BOOT   The card is inserted.  ===!!!!!!==[mmc1]
<6>[  802.838728]  [0:  kworker/u16:0:    6] mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 400000Hz, actual 3
96825HZ div = 63)
<4>[  802.838858]  [0:  kworker/u16:0:    6] rk_sdmmc: BOOT dw_mci_setup_bus: argue clk_mmc workaround out 800000Hz for
init[mmc1]
<6>[  802.990527]  [0:  kworker/u16:0:    6] mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual
50000000HZ div = 0)
<4>[  802.990671]  [0:  kworker/u16:0:    6] rk_sdmmc: BOOT dw_mci_setup_bus: argue clk_mmc workaround out normal clock
[mmc1]
<3>[  802.996461]  [0:  kworker/u16:0:    6] mmc1: error -84 whilst initialising SD card

Signed-off-by: hecanyang <hcy@rock-chips.com>
2015-07-10 10:51:59 +08:00
Zheng Yang
1f46b29d3e tve:rk1000: set default cvbd mode to PAL.
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-07-10 10:42:55 +08:00
Zheng Yang
1778e2e2af dts:rk3368-box: enable uboot logo
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-07-10 10:40:58 +08:00
hwg
346a731e43 rfkill-wlan: repair vref pmu ctrl problem 2015-07-09 19:00:15 +08:00
Mark Yao
47c351de32 rk_vop: rk3288: fix kernel logo crash with iommu enable
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2015-07-09 18:04:28 +08:00
Sugar Zhang
0bf4fb5a1f ASoC: hdmi_spdif: support format SNDRV_PCM_FMTBIT_S24_LE
because of DMA_SLAVE_BUSWIDTH_4_BYTES, we support SNDRV_PCM_FMTBIT_S24_LE
which store data in low three bytes. not support SNDRV_PCM_FMTBIT_S24_3LE

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2015-07-09 16:56:54 +08:00