问题描述
CtsCameraTestCases
android.hardware.camera2.cts.RecordingTest#testBasicRecording
android.hardware.camera2.cts.RecordingTest#testRecordingFramerateLowToHigh
android.hardware.camera2.cts.RecordingTest#testBurstVideoSnapshot
android.hardware.camera2.cts.BurstCaptureTest#testYuvBurst
合入7月安全补丁导致 fail
Fail:
junit.framework.AssertionFailedError: Camera 0: Video duration doesn't match: recorded 3613.000000ms, expected [3003.000000,3003.000000]ms.
junit.framework.AssertionFailedError: Camera 0: Video frame drop rate too high: 9.859155%, tolerance 5.000000%. Video size: 3840x2160, expectedDuration [2666.666504,2666.666504], expectedFrameDuration 33.333332, frameDropCnt 7, frameCount 71
junit.framework.AssertionFailedError: Camera 0: Video frame drop rate too high: 6.024096%, tolerance 5.000000%. Video size: 3840x2160, expectedDuration [2733.333252,2733.333252], expectedFrameDuration 33.333332, frameDropCnt 5, frameCount 83
junit.framework.AssertionFailedError: Cam 3: Burst frame duration mean 62401588.0 ns is larger than acceptable, expecting below 50000000 ns, allowing below 55000000
Line 77985: 01-01 02:17:56.552341 738 20835 W MDP : DpIsp: 0xfb26a6c0, src 220 ms, 0, 0, 0, 0
解决方案
Root Cause: CMDQ security patch flow 走到不正確的 flow,導致 PMQoS 機制沒有正常生效,CTS 測項 MDP HW 跑在低檔。
影響 Branch: O/P 的 kernel-4.9 系列
alps-mp-p0.mp1
alps-mp-p0.mp3
申请patch:ALPS05247489