Commit Graph

405890 Commits

Author SHA1 Message Date
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
Sugar Zhang
f79898f20d ASoC: rockchip: implement suspend/resume for i2s
use regmap_reinit_cache to restore hw registers after power loss
during a suspend/resume cycle.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2015-07-09 16:56:43 +08:00
huang zhibao
31978a7a94 dts: 3368 box dts add dcdc eta3558 2015-07-08 09:41:51 +08:00
Shawn Lin
de9ae09c64 mmc: rk_sdmmc: fix wrong skip condiction of post_tmo
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2015-07-07 10:06:54 +08:00
ShenZhengyi
07c21e30c7 tve:rk1000: fix rk1000 suspend and resume error
Signed-off-by: ShenZhengyi <szy@rock-chips.com>
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-07-07 09:46:26 +08:00
Zheng Yang
bdd4afceea dts:rk3288-box: enable uboot logo. 2015-07-07 09:26:51 +08:00
ShenZhengyi
790604ebcb tve:gm7122: When gm7122 init, do not switch fb.
it can avoid green screen, when HDMI switch to CVBS.

Signed-off-by: ShenZhengyi <szy@rock-chips.com>
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-07-07 09:11:08 +08:00
Sugar Zhang
765e9818ae ASoC: hdmi_spdif: config hdmi audio when hdmi using spdif source.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2015-07-06 17:12:37 +08:00
Sugar Zhang
cd25e45290 ASoC: spdif: fill channel status sample freq.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2015-07-06 17:12:29 +08:00
guoyi
339fa0568e rk3368: pmic: rk808:adjust dcdc voltage step
Signed-off-by: guoyi <gy@rock-chips.com>
Signed-off-by: zhangqing <zhangqing@rock-chips.com>
2015-07-06 15:04:11 +08:00
Shengqin.Zhang
cd247b7fd4 change RGA2 dtsi name for all platform
Signed-off-by: Shengqin.Zhang <zsq@rock-chips.com>
2015-07-06 13:59:24 +08:00
hwg
c09601bb44 bcmdhd wifi: auto recognize for AP62x2 2015-07-03 19:23:38 +08:00
Sugar Zhang
e890a32bcb ASoC: rockchip: rename rk30_i2s.c to rk_i2s.c
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2015-07-02 20:09:01 +08:00
Sugar Zhang
b1ce30ae22 ASoC: rockchip: refactor i2s driver.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2015-07-02 20:08:52 +08:00
Sugar Zhang
6e7b61dec1 HDMI: add a helper function for config hdmi audio.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2015-07-02 20:08:39 +08:00
Zheng Yang
88b3b00769 rockchip_defconfig: support rk1000.
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-07-01 15:11:30 +08:00
Zheng Yang
47164f08f7 rk1000: fix ypbpr compile error.
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-07-01 15:09:39 +08:00
Zheng Yang
854d107fac dts: rk3288 box: fix some error.
1. fix audio codec.
	2. framebuffer size set to 1080P.
	3. fix hdmi setting error.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-07-01 15:06:57 +08:00
hwg
1641459cac bcmdhd wifi: nvram auto recognize for AP6335 2015-07-01 14:53:29 +08:00
Zheng Yang
c8d70b24d0 dts: add rk3288-box.dts.
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-07-01 12:02:04 +08:00
Zheng Yang
efb19b784d dtsi:rk3288: add remotectl pwm.
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-07-01 11:59:02 +08:00
Zheng Yang
216f682fbc HDMI:rk3368/rk3288: delete some unused code.
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-06-30 11:26:10 +08:00
Zheng Yang
9077ac8603 HDMI:rk3368/rk3288: add debugfs node regs_phy to modify phy regs.
and rename debugfs node hdmi to regs_ctrl.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-06-30 11:19:31 +08:00
Aiyoujun
9613a31cdd dts:rk3368-box-r88_808: add dts support for the BOX board of R88(RK3368)_PMU_Vxx
Signed-off-by: Aiyoujun <ayj@rock-chips.com>
2015-06-30 10:07:18 +08:00
huang zhibao
5ab0e37174 delete unused code and update coding style 2015-06-26 18:28:05 +08:00
David Wu
b517a4ebbf rk3368: tsadc: support print temp from console
Signed-off-by: David Wu <wdc@rock-chips.com>
2015-06-26 16:57:36 +08:00
David Wu
1f667f18ff rk3368: tsadc: add hw shut temp
if temp reached hw_shut_temp three times continuously, system would power off.

Signed-off-by: David Wu <wdc@rock-chips.com>
2015-06-26 16:15:12 +08:00