28 Apr, 2016
4 commits
-
Add configure which support uid_cputime.
Signed-off-by: zhang sanshan
-
Revert "uid_cputime: Extends the cputime functionality to report power per uid"
This reverts commit 33d456aa219c3828d4e8f8370ebd6ce52714b6d9.
Signed-off-by: zhang sanshan
Conflicts:
drivers/misc/uid_cputime.c -
Revert "uid_cputime: Avoids double accounting of process stime, utime and cpu_power in"
This reverts commit ffa68f9e2758bd184eb246ee35acff27ab82d112.
Signed-off-by: zhang sanshan
-
Virtual display uses 32bpp as render target.
But framebuffer uses 16bpp as render target.
EGL can't handle different bpp configuration in one thread.
So, it will lose some precision when do 32bpp render.
change 6sx display bpp to 32 to match CTS test.Signed-off-by: Xiaowen Liu
26 Apr, 2016
2 commits
-
Add the LDB clock parents to the device tree.
Signed-off-by: Fabio Estevam
Signed-off-by: Ranjani Vaidyanathan
(cherry picked from commit 1a6cd019c1ab62ca0dc23bbc6b033df3f15850a5) -
performance governor is not added in scaling_available_governors,
need support performance governor as some benchmark should test
on performance mode.BSP set CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y, it will auto add
CPU_FREQ_GOV_PERFORMANCE in drivers/cpufreq/Kconfig, but android
set CONFIG_CPU_FREQ_DEFAULT_GOV_INTERACTIVE=y so we need indicate
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y in imx_v7_android_defconfig.Signed-off-by: Richard Liu
22 Apr, 2016
1 commit
-
In 4.1 the sendmsg will use the iov_iter in
skb sending. The pppopns driver failed to assign its
value. So that the sendmsg will always failed.This issue will block the ppp application like VPN.
Assign correct msg_iter from skb will fix the issue.
Signed-off-by: Wang Haoran
21 Apr, 2016
1 commit
20 Apr, 2016
2 commits
-
For imx6sx-sabreauto board, the usdhc4 is used for the sd slot locate on the
base board, so need to improve the pad drive strength, otherwise we will meet
many CRC error or timeout error when insert a sd card.Signed-off-by: Haibo Chen
(cherry picked from commit 1cbfce01e4e076d7f7e3b879c2c41d217d8afa48) -
Unable to handle kernel paging request at virtual address 0af37d40
pgd = d4dec000
[0af37d40] *pgd=00000000
Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[] (_raw_spin_lock) from [] (list_lru_count_one+0x14/0x28)
[] (list_lru_count_one) from [] (super_cache_count+0x40/0xa0)
[] (super_cache_count) from [] (debug_shrinker_show+0x50/0x90)
[] (debug_shrinker_show) from [] (seq_read+0x1ec/0x48c)
[] (seq_read) from [] (__vfs_read+0x20/0xd0)
[] (__vfs_read) from [] (vfs_read+0x7c/0x104)
[] (vfs_read) from [] (SyS_read+0x44/0x9c)
[] (SyS_read) from [] (ret_fast_syscall+0x0/0x3c)
Code: e1a04000 e3a00001 ebd66b39 f594f000 (e1943f9f)
---[ end trace 60c74014a63a9688 ]---
Kernel panic - not syncing: Fatal exceptionshrink_control.nid is used but not initialzed.
set shrink_control.nid to trace NUMA NUMNODES to fix this issue.Signed-off-by: Xiaowen Liu
19 Apr, 2016
3 commits
-
SRTC needs to be kept enabled during system poweroff,
SNVS_LP control register bit 0 SRTC_ENV must be set
to enable RTC, for software poweroff, kernel just
read the register offset and value from dtb and write
to SNVS_LP control register to poweroff system, need
to make sure bit 0 SRTC_ENV is set to enable RTC during
system poweroff.Previous setting did NOT enable it which will cause
RTC stop running if using software poweroff.Signed-off-by: Anson Huang
-
Need to make sure build pass with single SOC
config, in current build for single SOC config,
if both SOC_IMX7D and SOC_IMX6SX are NOT selected,
below build error will occur, add MU module
config to fix this build issue.LD init/built-in.o
arch/arm/mach-imx/built-in.o: In function `busfreq_probe':
:(.text+0x5370): undefined reference to `imx_mu_lpm_ready'
arch/arm/mach-imx/built-in.o: In function `bus_freq_pm_notify':
:(.text+0x5d50): undefined reference to `imx_mu_lpm_ready'
:(.text+0x5d68): undefined reference to `imx_mu_lpm_ready'
make: *** [vmlinux] Error 1Signed-off-by: Anson Huang
15 Apr, 2016
1 commit
-
The warning is caused by closing unsignaled fence objects,
without wait in _DequeueBuffer can improve performance,
gpu kernel hal has mechanism to guarantee singal a freed
sync_point is safe, remove this warning to avoid confuse.Signed-off-by: Richard Liu
14 Apr, 2016
3 commits
-
When CONFIG_MMC=m, compile error shows up
ERROR: "of_alias_max_index" [drivers/mmc/core/mmc_core.ko] undefined!
ERROR: "mmc_get_reserved_index" [drivers/mmc/card/mmc_block.ko] undefined!
ERROR: "mmc_first_nonreserved_index" [drivers/mmc/card/mmc_block.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
make: *** Waiting for unfinished jobs....This patch export the upper three symbol for module runtime load.
Signed-off-by: Haibo Chen
-
Bootloader decide to enter recovery or bootloader mode through SNVS register.
Kernel set the SNVS register through reboot notification.Signed-off-by: zhang sanshan
-
kernel 4.1 will use cma configuration in DTS as the first priority.
cma configuration in bootargs will be invalid in this case.
So remove cma configuration in DTS.Signed-off-by: Xiaowen Liu
13 Apr, 2016
3 commits
-
This reverts commit 3588b032b6710c0f801eb149506b1ed6ad064225.
Signed-off-by: zhang sanshan
-
Enable ARM_CRYPTO to support XTS-AES-NEON
crypto driver in kernel.This patch fixed the CTS error:
android.security.cts.EncryptionTest#testConfig FAIL
junit.framework.AssertionFailedError: /proc/crypto is missing
xts-aes-neon (or xts-aes-neonbs)Signed-off-by: Wang Haoran
-
GPU 3D clock will still enable/disable when video playback,
actually there is no 3D usage, to saving power we should
avoid 3D clock enable/disable. This patch optimize event
synchronization by not pass signal/sync_point to gpu when
current gcoHARDWARE is already sync'ed GPU and no command
buffer required.Date: Apr 13, 2016
Signed-off-by: Richard Liu
Signed-off-by: Meng Mingming
12 Apr, 2016
4 commits
-
Correct the mag3110 and mma8451 initial position
attribute to 3.Signed-off-by: Wang Haoran
-
In the OCOTP fuse map, the speed grading[1:0] define the MAX
CPU speed the chip can run. The detailed definition is below:
2b'00: Reserved;
2b'01: 528000000Hz;
2b'10: 696000000Hz;
2b'11: Reserved;We need to disable the illegal setpoints according to the fuse map.
Signed-off-by: Bai Ping
(cherry picked from commit 1fc5419ba08a8da302cfcddb0ea76226d7bdc8c3) -
According to the latest datasheet(Rev. 0, 12/2015),
When the chip is run at LDO enabled mode, the highest
setpoint can be set to 700MHz in overdrive mode.Signed-off-by: Bai Ping
(cherry picked from commit 9838ff4b9dfaaacdea01b2bf5f54020ccf991f23) -
On i.MX6UL EVK board, we use a external GPIO DC regulator to control
the VDD_ARM_SOC_IN voltage, if default voltage is 1.4V when the system
is bootup. Per design team, when the highest setpoint freq is not
bigger than 528MHz, we can decrease this regulator voltage to 1.3V.
On i.MX6UL TO1.1, we add a 700MHz setpoint. When the highest setpoint
freq is 700MHz, the DC regulator should be at 1.4V to to cover the IR
drop.Signed-off-by: Bai Ping
(cherry picked from commit 0e3293e53f4bd5b122abc250b610dd61850e3ce9)
11 Apr, 2016
1 commit
-
According to IPU sepc, the pixel format for yuv422sp should be 3.
Add related code for yuv422sp.Signed-off-by: fang hui
07 Apr, 2016
1 commit
-
The cause is that PWM4_OUT is always on event when enter suspend.
Add configure of PWM4 in 4.1 dts.Signed-off-by: zhang sanshan
01 Apr, 2016
1 commit
-
This patch prevent our board into suspend when connect usb device.
Signed-off-by: zhang sanshan
31 Mar, 2016
3 commits
-
when do vte test it meets follow dump in small probability.
Add against-0 check to resovle this.$ v4l_emma.sh 1 1
$ v4l_emma.sh 1 9------------[ cut here ]------------
: /dev/video1 Set PARM sucessfulWARNING: CPU: 0 PID: 1123 at /home/bamboo/build/4.1.X-1.0.0_ga/fsl-
imx-fb/temp_build_dir/build_fsl-imx-fb/tmp/work-shared/imx6qdlsolo/kernel-source/mm/page_alloc.c:266
5 __alloc_pages_nodemask+0x3c8/0x894()
ly
v4l_capture_testapp 0 TINModules linked in:FO : /dev/video1 input formatti mx6s_captureng pass
v4l_capture_testapp 0 ov5640_camera TINFO : PRP_ENC_ON_D gpRGBcon evbugv_buf malloc pass!CPU: 0 PID: 1123 Comm: v4l2_capture_em Not tainted 4.1.8-1.0.0+g87e6c2f #1
Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[] (unwind_backtrace) from [] (show_stack+0x10/0x14)
[] (show_stack) from [] (dump_stack+0x84/0xc4)
[] (dump_stack) from [] (warn_slowpath_common+0x80/0xb0)
[] (warn_slowpath_common) from [] (warn_slowpath_null+0x1c/0x24)
[] (warn_slowpath_null) from [] (__alloc_pages_nodemask+0x3c8/0x894)
[] (__alloc_pages_nodemask) from [] (__dma_alloc_buffer.isra.3+0x2c/0x84)
[] (__dma_alloc_buffer.isra.3) from [] (__alloc_remap_buffer.isra.6+0x1c/0x8c)
[] (__alloc_remap_buffer.isra.6) from [] (__dma_alloc+0x1fc/0x228)
[] (__dma_alloc) from [] (arm_dma_alloc+0x8c/0xa0)
[] (arm_dma_alloc) from [] (vb2_dc_alloc+0x68/0x100)
[] (vb2_dc_alloc) from [] (__vb2_queue_alloc+0x134/0x4d0)
[] (__vb2_queue_alloc) from [] (__reqbufs.isra.17+0x1a8/0x304)
[] (__reqbufs.isra.17) from [] (__video_do_ioctl+0x2b0/0x324)
[] (__video_do_ioctl) from [] (video_usercopy+0x1b8/0x480)
[] (video_usercopy) from [] (v4l2_ioctl+0x118/0x150)
[] (v4l2_ioctl) from [] (do_vfs_ioctl+0x3e8/0x608)
[] (do_vfs_ioctl) from [] (SyS_ioctl+0x34/0x5c)
[] (SyS_ioctl) from [] (ret_fast_syscall+0x0/0x3c)
---[ end trace 55ed68f89eca4805 ]---
mx6s-csi 21c4000.csi: dma_alloc_coherent of size 0 failedSigned-off-by: Robby Cai
(cherry picked from commit 2c1fa9347a50e05c79b76de35f84192af796f677) -
Q901 (IRLML6401) is p-channel MOSET, need set pin1 (LCD_nPWREN) to low
to let pin3 output be 3V3. Normally when pin1 is high, then pin3
output should be gated. It was working previously due to some leakage.
Correct the enable logic from the software viewpoint.Signed-off-by: Robby Cai
(cherry picked from commit c70398a0b2e860d0bd9478d956d077eff8e7ea4f) -
systrace depends on ftrace in kernel
add ftrace support for process context switches and eventsSigned-off-by: Winter Wang
Conflicts:
arch/arm/configs/imx_v7_android_defconfig
30 Mar, 2016
1 commit
28 Mar, 2016
3 commits
-
During the read of NOR, the kernel actually calls the inline_map_copy_from()
to read the data out. And inline_map_copy_from() will use the memcpy_fromio()
to do the real job.The memcpy_fromio macro maps _memcpy_fromio() in the current code.
But the _memcpy_fromio() will use readb() to do the copy work one byte
by one byte. This makes the read performance of NOR very slow(about 2~3MB/s).A similiar discussion could be found in:
http://lists.infradead.org/pipermail/linux-arm-kernel/2009-November/003860.htmlThis patch replace the memcpy_fromio with memcpy which is optimized by the
kernel.The following is the result from mtd_speedtest with M29W256GL7AN6E:
=================================================
mtd_speedtest: MTD device: 2
mtd_speedtest: not NAND flash, assume page size is 512 bytes.
mtd_speedtest: MTD device size 4194304, eraseblock size 131072, page size 512,
count of eraseblocks 32, pages per eraseblock 256, OOB size 0
mtd_speedtest: testing eraseblock write speed
mtd_speedtest: eraseblock write speed is 845 KiB/s
mtd_speedtest: testing eraseblock read speed
mtd_speedtest: eraseblock read speed is 19504 KiB/s
mtd_speedtest: testing page write speed
mtd_speedtest: page write speed is 845 KiB/s
mtd_speedtest: testing page read speed
mtd_speedtest: page read speed is 19140 KiB/s
mtd_speedtest: testing 2 page write speed
mtd_speedtest: 2 page write speed is 846 KiB/s
mtd_speedtest: testing 2 page read speed
mtd_speedtest: 2 page read speed is 19320 KiB/s
mtd_speedtest: Testing erase speed
mtd_speedtest: erase speed is 233 KiB/s
mtd_speedtest: Testing 2x multi-block erase speed
mtd_speedtest: 2x multi-block erase speed is 225 KiB/s
mtd_speedtest: Testing 4x multi-block erase speed
mtd_speedtest: 4x multi-block erase speed is 224 KiB/s
mtd_speedtest: Testing 8x multi-block erase speed
mtd_speedtest: 8x multi-block erase speed is 225 KiB/s
mtd_speedtest: Testing 16x multi-block erase speed
mtd_speedtest: 16x multi-block erase speed is 225 KiB/s
mtd_speedtest: Testing 32x multi-block erase speed
mtd_speedtest: 32x multi-block erase speed is 225 KiB/s
mtd_speedtest: Testing 64x multi-block erase speed
mtd_speedtest: 64x multi-block erase speed is 224 KiB/s
mtd_speedtest: finished
=================================================(cherry-picked from: f1e5914ffd82d5326cbd30507d4f37d02a0da099)
Signed-off-by: Huang Shijie
-
When userspace unbinds gadget functions through configfs, the
.free_func() callback is always invoked. (in config_usb_cfg_unlink())
Implement it as a no-op to avoid the following crash:[ 68.125679] configfs-gadget gadget: unbind function 'accessory'/ffffffc0720bf000
[ 68.133202] configfs-gadget gadget: unbind function 'audio_source'/ffffffc0012ca3c0
[ 68.142668] tegra-xudc 700d0000.usb-device: ep 0 disabled
[ 68.148186] Bad mode in Synchronous Abort handler detected, code 0x86000006
[ 68.155144] CPU: 2 PID: 1 Comm: init Tainted: G U W 3.18.0-09419-g87296c3-dirty #561
[ 68.163743] Hardware name: Google Tegra210 Smaug Rev 1,3+ (DT)
[ 68.169566] task: ffffffc0bc8d0000 ti: ffffffc0bc8bc000 task.ti: ffffffc0bc8bc000
[ 68.177039] PC is at 0x0
[ 68.179577] LR is at usb_put_function+0x14/0x1c
....BUG=chrome-os-partner:49140
TEST="setprop sys.usb.config accessory,audio_source" on A44 and then
switch back to default: "setprop sys.usb.config mtp,adb", no crash will
be seen.Change-Id: I5b6141964aab861e86e3afb139ded02d4d122dab
Signed-off-by: Mark Kuo
Reviewed-on: https://chromium-review.googlesource.com/321013
Commit-Ready: Andrew Bresticker
Tested-by: Andrew Bresticker
Reviewed-by: Andrew Bresticker -
This reverts commit 9645dbfe75f657160c8693d718de911b4d16f726.
25 Mar, 2016
3 commits
-
Add missing .release callback in file_operations of vidmem_operations in order to release the allocated memory.
Date: Mar 18, 2016
Signed-off-by: Yuchou Gan
(cherry picked from commit bf8499286426bd48f00e83a7e794b2309da502bc) -
The patch removes the dependence between cache flush operation and node.
Node is not used anymore when flush cache. Cache flush can work with only
logical address passed into underlying functions does not need physical
address.Signed-off-by: Richard Liu
(cherry picked from commit ad65770512d2baeb45f5d0622d985f9856b7cc1e) -
It has converted sync to fence api in kernel_imx/drivers/staging/android/sync.h,
so make it done in gpu driver to match kernel.Signed-off-by: Meng Mingming
Signed-off-by: Richard Liu
(cherry picked from commit d69c57557a2ef782d0daa617a30945f41a608fd5)
24 Mar, 2016
1 commit
-
Fix NULL pointer dereference while trying to unlink audio_source.
If unlink audio_source function, got a NULL pointer dereference:
---------------
[00000000] *pgd=28ad1831, *pte=00000000, *ppte=00000000
Internal error: Oops: 80000007 [#1] PREEMPT SMP ARM
Modules linked in:
CPU: 1 PID: 1 Comm: init Not tainted 4.1.15-03448-g3749667-dirty #41
Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
task: d8070000 ti: d8056000 task.ti: d8056000
PC is at 0x0
LR is at config_usb_cfg_unlink+0xfc/0x10c
pc : [] lr : [] psr: a00f0013[] (config_usb_cfg_unlink) from [] (configfs_unlink+0x110/0x1a4)
[] (configfs_unlink) from [] (vfs_unlink+0xcc/0x1a8)
[] (vfs_unlink) from [] (do_unlinkat+0x230/0x264)
...
---------------Add sanity check for NULL pointer in usb_put_function, as some
functions doesn't have func->fre_func implemented.Signed-off-by: Winter Wang
22 Mar, 2016
2 commits
-
commit 398a708ed5f3ef771d96dfb9b95b5d5170d17eb7
usb: u_ether: Add workqueue as bottom half handler for rx data pathset up a worker for the rx data path but missed a case where the
work_struct needed to be initialized.This patch adds the missing 'INIT_WORK'
Change-Id: I2daabd39d35b3e17a3054837282d649d9c78a0aa
Signed-off-by: Matthew Moeller -
enable ZRAM relevant kernel configure.
Signed-off-by: Xiaowen Liu