msm_fb_blank_sub might be called for UNBLANK from
display update work queue, which is at commit state.
Idle detection is invalid in this situation
Add detection for external snd earlyuspend/resume interface.
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
Currently switching mdp blt mode is done in dmap done isr which could
cause mdp hang for some panels/targets. One option is added: turning
off timing generator when switching blt mode, to avoid hang issues.
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
pm_restore_console() is called from the suspend/resume path, and this
calls vt_move_to_console(), which calls vt_waitactive().
There's a race in this path which causes the process which requests the
suspend to sleep indefinitely waiting for an event which already
happened:
P1 P2
vt_move_to_console()
set_console()
schedule_console_callback()
vt_waitactive()
check n == fg_console +1
console_callback()
switch_screen()
vt_event_post() // no waiters
vt_event_wait() // forever
Fix the race by ensuring we're registered for the event before we check
if it's already completed.
Change-Id: I83ad994a12d40759d6ff3d46796446853c2a88de
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Preview is paused because of delay in msm_actuator_set_default_focus. The code
to fix af mechanical sound are moved to power down function.
Signed-off-by: Iliyan Malchev <malchev@google.com>
git://codeaurora.org/external/wlan/prima.git
e898e0f wlan: Release 3.2.1.8b
cec588a Disable LFR when a concurrent session is active
9405b17 wlan: Release 3.2.1.8a
4566648 Revert "Don't support LFR when concurrent."
3dd2c24 wlan: Release 3.2.1.8
654a74c TX data path hang issue fix
6877698 Kick DXE TX channel when exit IMPS, if any valid pending frame in the ring
af98ff3 TX DXE Channel descriptor async uncovered cover case fix
1ec64d6 State Machine Cleanup during State transitions
5460b45 Log levels changed appropriately
cb96ba4 Don't support LFR when concurrent.
91dc957 Fix buffer overflow and NULL pointer dereference
c9bcca5 Add support for SoftAP Random BSSID
Signed-off-by: Iliyan Malchev <malchev@google.com>
The controller always does posted writes to transfer descriptors.
A transfer completion interrupt may be generated before dTD is
updated in system memory. A software workaround is already in
place to give 10usec delay after receiving the completion interrupt
if the first dTD in the queue is still active. But this delay
is given only for OUT endpoints. In theory this problem is applicable
to both IN and OUT endpoints. But none of the function drivers indicate
any problem with IN endpoints. Hence delay is not given for IN
endpoints.
The status phase of a control transfer may get stuck if the above
issue is hit for EP0 IN endpoint. Hence apply the software workaround
for EP0 IN endpoint.
CRs-fixed: 409573
Change-Id: Ic07a4421c0066645459d2cc566f0df6691084a43
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
There is bug in the code where interpolate_pc is passed temperature in
DegC at one call site vs deciDegCelcius at other.
Use degC consistently.
Change-Id: I3e5e92e39adf904e62d4c5ffcb6d370c0655f7cf
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Since WLC(wireless charger) supply power to battery without PM8921 charger,
the SoC value is not accurate. This patch adjust OCV(open circuit voltage)
and max CV(constant voltage) value to compensate difference between
WLC and pm8921-charger.
Change-Id: I8fa368f706866d93451c2f663da69c010f9b2a35
When the charger is not initialized it returns -EINVAL when asked
whether usb charger is plugged in. Use the restart reason to check
if we started with a charger insertion.
Change-Id: I2e8fcb4a15af3a66331a921d378bfd5d2dfe4533
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
The BMS driver needs to know the restart reason of the pmic. Add
an api in the pm8xxx design to provide the restart reason.
Change-Id: I0bbad22c5fed8c32dd7de387194e94c8d4b9ad75
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
git://codeaurora.org/external/wlan/prima.git
d79e81f wlan: Release 3.2.1.7b
eb0542d Convert VOS_ASSERT to an ERROR log
7f23467 Revert "TL Low resource problem fix"
83a0e64 wlan: Release 3.2.1.7a
af9315b Revert "No longer call csrNeighborRoamHandleEmptyScanResult()"
57be66e wlan: Release 3.2.1.7
aca98a1 Changes to handle gracefully init scan failure in roaming case
1ea8824 Ignore TX completion failure for Data Null (PM=1) mode during roam
2708e06 No longer call csrNeighborRoamHandleEmptyScanResult()
9edea5d TL Low resource problem fix
f76988f wlan: Fix for memory corruption
19d871e Fix for vos_lock_acquire() failing with return code -4 (i.e -EINTR)
ede9643 Not able to connect back to security AP
2c18409 wlan: Release 3.2.1.6d
a6861f9 Included a Missing prototype declaration
02970dc Return an error if a scan is requested while one is ongoing.
0df9a8b Enqueue preauth in sme command queue
c273de3 wlan: Release 3.2.1.6c
925d334 Proper handling of ENTER IMPS/BMPS failure in host side
c4295cb wlan: Release 3.2.1.6b
ddb06c8 Out-of-bound array indexing while preparing scan channel list.
Signed-off-by: Iliyan Malchev <malchev@google.com>
Before execute operation on display, make sure it is complete idle
Because non-blocking display update has been introduced, need make sure
display update has finished in all entrances except the ones for
initialization.
Change-Id: I0660080262b7e5895f5f558c0a9f71aa84b9aa99
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
Verify that the user specified length for a PMEM region is smaller than the
size of the entire region as reported by the kernel APIs.
Change-Id: Ic0dedbad0127bdaed70eafc00238b44f982b093b
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>
While searching for the available buffer entry in the buffer pool the search
should begin from index 1 as zeroth entry is reserved.
Change-Id: I051b0232bb782f073ba9ad0b757a799703814df3
Signed-off-by: Mohan Kumar Gubbihalli Lachma Naik <mgubbi@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>
git://codeaurora.org/external/wlan/prima.git
351e056 wlan: Release 3.2.1.6a
fc26b52 Fixed driver initialization problem in case of init error
Signed-off-by: Iliyan Malchev <malchev@google.com>
- Fixed issues in production test
. ghost touch in high and low temperature
. ghost touch with noisy charger connect
. sensing test
- Stablized thumb operation
- Fixed flapping finger width report
Change-Id: I350ed94b9bfcb5a8feba3e0c9529ea86472097cd
Signed-off-by: Iliyan Malchev <malchev@google.com>
Mako's MIPI line clock is a little bit higher than LGSI's recommendation. Due
to this higher clock, flickering could happen in some panels. This patch
reduces the MIPI line clock as LGSI's recommendation.
This also reduces current consumption by ~10mA when the LCD is on.
Signed-off-by: Iliyan Malchev <malchev@google.com>
Calculated SoC could be fluctuated by system load. This patch
remove these fluctuation by using previous SoC if calculated Soc
is higher than previous value during discharging.
Change-Id: I1d144207125ed3c55030004fee1eb4b2489a298c
some function drivers receive control requests before configuration is
selected, which are not being handled due to configuratiopn checks in
android gadget driver, which is resulting in stall on control endpoint.
Fix this issue, by removing the configuration checks, so that function
driver control requests are handled properly.
Change-Id: I90975bb6a7c0201de7715932469c603fea6954af
Signed-off-by: Chiranjeevi Velempati <cvelempa@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>
Change it to 256 bytes from 384 bytes.
Most USB-AUDIO devices are limited to 256 byte for max iso buffer size. If a
IN_EP_MAX_PACKET_SIZE is bigger than a USB-AUDIO device's max iso buffer size,
it will cause noise. This patch will prevent this case as possibe by reducing
packet size. When using 44.1khz, 2ch, 16bit audio data, if max packet size is
bigger than 176 bytes, it's no problem.
Signed-off-by: Iliyan Malchev <malchev@google.com>
In suspend state, fb_open cannot turn on panel, need save this info
for resume.
In suspend state, blank setting needs be cached to be used at resuming.
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
Allowing the MDP clock to use its Max clock in order to avoid the blt
mode switch issues for both MDP mixers, as blt mode switch resulting
in HW hung
Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org>
The select...to kill messages are not very useful when not debugging
the lowmemorykiller itself. After the change to check TIF_MEMDIE
instead of using a task notifer this message can also get very
noisy.
Change-Id: Ice171c25801d6faa454b885a23b24b002423b754
Signed-off-by: Arve Hjønnevåg <arve@android.com>
The amount of reserved memory varies between devices. Subtract it
here to reduce the amount of devices specific tuning needed for the
minfree values.
Change-Id: I466ae8b18f5972f6f6d8b5a7d8c4ae69660de53a
Signed-off-by: Arve Hjønnevåg <arve@android.com>
The conversion to use oom_score_adj instead of the deprecated oom_adj
values breaks existing user-space code. Add a config option to convert
oom_adj values written to oom_score_adj values if they appear to be
valid oom_adj values.
Change-Id: I68308125059b802ee2991feefb07e9703bc48549
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Non-secure session should be rejected if a secure session is
running.
Change-Id: I13364a7bc4417a682728be333681278e7de8a1f7
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
Overlay_play() adds a pipe into pending queue and pan_display()
will commit those pipes to hardware and empty queue. This patch
will make sure queue is empty at suspend so that no unexpected
pipes will be commited to hardware by pan_display() at resume.
Otherwise, iommu page fault may happen.
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
HDCP authentication should be kicked off as a scheduled work
item so as to ensure that MDP is already configured and frames
are being transmitted over the HDMI channel prior to the start
of the HDCP authentication procedure.
Change-Id: I27cab44babfc24d91a318b0641674f85910cc33f
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
Signed-off-by: Saurabh Shah <saurshah@codeaurora.org>
git://codeaurora.org/external/wlan/prima.git
d29fa4c wlan: Release 3.2.1.6
b074dbb Fix for setting properly the AC mask for TxConn
a66ea5c Stop scan refresh timer while resetting report scan state
5eb765b Set RoamRssiDiff=0 to disable roam hysteresis.
632cb65 Update the Channel Change Reason
efaed58 Inform TL about pending packets whenever Queue is filling up
4f74d03 Enable gEnableBypass11d to reduce the connection time.
9f918a0 Remove gNeighborScanChannelList from cfg.ini
2da87e7 Preferentially scan occupied channels (learned from previous scans).
b340701 Update template cfg.ini for LFR
e10a7e3 Fix for passing proper reason code to supplicant
Signed-off-by: Iliyan Malchev <malchev@google.com>
- Update CCM table and ABF filter for indoor/outdoor color
- Decrease roll off table gain to improve noise reduction on outside picture
- Adjust AWB gain
Signed-off-by: Iliyan Malchev <malchev@google.com>
Display commit ioctl will do what pan_display
can do, addtionally has customized setting, such
as non-blocking call.
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
Schedule a workqueue, do the current job in the workqueue handler.
Block the second entry if the first one has not finished
Change-Id: I9466c7795bd9d6765f468bf30f4021802d904c36
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
Conflicts:
drivers/video/msm/msm_fb.c
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
Wait for fence signaled before commit, signal previous
fence after commit done. Same as pan display
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>