Commit graph

303985 commits

Author SHA1 Message Date
Saurabh Shah
4c241bf133 msm: display: Allow MDP clocks to use Max clock.
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>
2013-03-04 12:47:02 -08:00
Ajay Dudani
8a7c73e5b9 staging: android: lowmemorykiller: Change default debug_level to 1
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>
2013-03-04 12:47:01 -08:00
Ajay Dudani
6efdaee3ca staging: android: lowmemorykiller: Don't count reserved free memory
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>
2013-03-04 12:47:01 -08:00
Ajay Dudani
036ffe8786 staging: android: lowmemorykiller: Add config option to support oom_adj values
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>
2013-03-04 12:47:00 -08:00
Glenn Kasten
29e4b90027 No world-writable files in debugfs
Change-Id: I60c9107b9f6aef53efbe6fa67f1465b2f1a7c2bb
Signed-off-by: Glenn Kasten <gkasten@google.com>
2013-03-04 12:47:00 -08:00
SathishKumar Mani
69b1f52a8d apq8064: Add support for hdmi multichannel
Provide support for hdmi channel fixup.
Fix channel map order to WAV format.

BUG-ID: 7156174
Signed-off-by: SathishKumar Mani <smani@codeaurora.org>
2013-03-04 12:46:59 -08:00
Naseer Ahmed
6c9ad4d7e6 msm: fb: make the pan task interruptible 2013-03-04 12:46:58 -08:00
Deva Ramasubramanian
299732780b vidc: handle secure and non-secure session concurrency
Non-secure session should be rejected if a secure session is
running.

Change-Id: I13364a7bc4417a682728be333681278e7de8a1f7
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
2013-03-04 12:46:58 -08:00
Naseer Ahmed
6c79a98a56 msm_fb: display: empty pending queue during suspend
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>
2013-03-04 12:46:57 -08:00
Saurabh Shah
001200a326 msm_fb: HDMI: HDCP: Start HDCP authentication as a work item
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>
2013-03-04 12:46:57 -08:00
Jeff Johnson
d3fac45a34 mako: Update Prima WLAN driver configuration to enable roaming 2013-03-04 12:46:56 -08:00
Iliyan Malchev
e85fc2bf64 prima: release v3.2.1.6
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>
2013-03-04 12:46:55 -08:00
Naseer Ahmed
8f8c3d414d msm: mdp: vsync sysfs bug
Make the read interruptible

Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:46:55 -08:00
Naseer Ahmed
c5ab413277 mdp: Do not start LUT for overlay0
The post processing daemon is not used currently.
Enabling the LUT without using it can potentially
cause display hangs.
2013-03-04 12:46:54 -08:00
ty.lee
e5246e9224 mako: audio: change ear_sense gpio for rev 1.1
MAKO Rev.1.1: GPIO 82 ==> GPIO 81

Change-Id: Ic753cc3e20125483ca185772e473f00058b016f5
2013-03-04 12:46:54 -08:00
Devin Kim
0aae1cfdce mako: camera: set vcm_en as high
New sekonix lens's vcm_en will be controlled by regulator cam1_vaf,
because vcm_en is pulled up with LDO L17.

Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:46:53 -08:00
insup.choi
c5d0a09962 mako: camera: add sekonix actuator driver
basic functional driver for Sekonix

Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:46:52 -08:00
insup.choi
a66f0c1d4c camera: add sekonix actuator driver
- basic functional driver for Sekonix
- adjust focus step
- check write count

Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:46:52 -08:00
insup.choi
66aec5bf7a camera: imx111: tune driver for sekonix lens
- 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>
2013-03-04 12:46:51 -08:00
Naseer Ahmed
8b804aaf0b msm: display: buf sync enhancement
Support waiting for acquire fences in the buffer sync ioctl.

Signed-off-by: Ken Zhang <kenz@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2013-03-04 12:46:51 -08:00
Naseer Ahmed
504021da52 msm: display: add display commit ioctl
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>
2013-03-04 12:46:50 -08:00
Naseer Ahmed
c2f0fb04a0 msm: display: make pan display as a non-blocking call
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>
2013-03-04 12:46:49 -08:00
Naseer Ahmed
e0501cd8dd msm: display: add sync point support in overlay commit
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>
2013-03-04 12:46:49 -08:00
Naseer Ahmed
7bf0610f43 msm_fb: display: Send vsync events using sysfs for MDP4 targets
Replace sending of vsync timestamp using uevents with sysfs entry
as uevent result in increase in power numbers due to broadcast in
nature. Also, for smart panel, wait4vsync is removed.

Change-Id: I5219e85b837b8bab9d00a9f40c1048d2a2355194
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>

Conflicts:

	drivers/video/msm/mdp4_overlay_dsi_video.c

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2013-03-04 12:46:48 -08:00
Naseer Ahmed
55a848bcdb msm_fb: display: add support of mdp clocks controlled by vsync
Mdp related clocks are controlled through vsync enable/disable
ioctl from userspace frame work.

Crs-fixed: 384482
Change-Id: I5999ad17955e0f862f64036a6390016ff3a6782f
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>

Conflicts:

	drivers/video/msm/mdp4_overlay_dsi_cmd.c

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2013-03-04 12:46:48 -08:00
Naseer Ahmed
5e6d6c1c23 msm_fb: display: add dcs command list for dsi command mode
DSI dcs commands and mdp pixel stream share same dsi link.
Add dcs command list to serialize sending dcs command and mdp
pixel stream to avoid contention which may cause dsi controller
to stall.

Change-Id: Ie0e687f45be479d2137eb7b56b8d32040fba2044
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>

Conflicts:

	drivers/video/msm/mdp4.h

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2013-03-04 12:46:47 -08:00
Iliyan Malchev
5947f6f74c mako_defconfig: enable te interactive governor
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:46:46 -08:00
Iliyan Malchev
800362a852 soc-pcm: WARN_ON invalid playback route
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:46:46 -08:00
Ajay Dudani
cfd35bb3ea msm: rq_stats: Support to know cpu utilization in userspace
Support to read utilization stats from userspace, used by
mpdecision. This implementation is independent of governor
and sampling rates.

Change-Id: I678c7462ba77d84ce4c51c36a61da7ac99ffecc8
Signed-off-by: Narayanan Gopalakrishnan <nargop@codeaurora.org>
Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
2013-03-04 12:46:45 -08:00
Naseer Ahmed
f212305887 msm: mdp: Release all fences on blank
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:46:45 -08:00
Iliyan Malchev
0d312d6ec3 Revert "mako: display: change color value to displayed in case of underflow"
Reverting this change allows display underflows to cause flashes of blue, which
will help prove that underflows are occurring.

This reverts commit e6f596dbcd307e33e4e4842914a027c7f7138bd9.
2013-03-04 12:46:44 -08:00
Martijn Coenen
990fed5756 Mako: NFC: Return proper error code from address change ioctl.
We're tracking a problem where NFC on Mako does not come up
sometimes. As a software workaround, we want to retry the
reset procedure a few times. Since the user-space stack
calls the address change ioctl first on Mako (which
does some i2c writes), return error code from that
ioctl so we can see if NFC didn't come up.

Bug: 7258919
Change-Id: I01584a69cb294134d5bd3c16b4b15b56739c4fe3
Signed-off-by: Martijn Coenen <maco@google.com>
2013-03-04 12:46:43 -08:00
Iliyan Malchev
295ae8e3cd prima: release v3.2.1.5b
git://codeaurora.org/external/wlan/prima.git

f0de27e wlan: Release 3.2.1.5b
47ce79d Reduce the age count only for valid scan entries
d0b91b1 wlan: Release 3.2.1.5a
2409064 Do not drop coming late probe response
0e1e7d3 Fix for BMPS workaround kicking in after SSR
d5c3a24 Update Kconfig and Makefile to support roaming
9ff8b97 wlan: Release 3.2.1.5
a5cae50 Changes to acquire wakelock to avoid the apps suspend during the scan.
0c3229e Reduce PE logging
ea72fd5 If the WDI Join fails not able to tun off the WLAN
f354457 Host Crash fix for set and clear Packet filter
6237972 p2p-GO not clearing the Use Protection bit
f9b3e85 Reduce the log level of a P2P listen duration to INFO HIGH
16e7aa0 wlan: Fix for crash during wlan unloading

Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:46:43 -08:00
Devin Kim
f3fe5ec66c msm: kgsl: Hold the pm_qos vote at all times when ACTIVE
The GPU needs access to the L2 cache while running.  If the
CPU is not also active using the cache can lead to stability
issues.  Keep the CPU out of idle power collapse at all times
while the GPU is running.

CRs-Fixed: 397489
Change-Id: Iab2d8c601e903aadc4060f7c6d67bc128840edbf
Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>
2013-03-04 12:46:42 -08:00
Devin Kim
68866784f6 backlight: lm3530: set CABC register on first bootup
If we don't apply CABC register setting at the first bootup, then it makes a
power difference between the bootup time and the first suspend and resume,
approximately 38mA.

Change-Id: I91c915af31e9ff6934ce733f3fb2c8b96e1adf31
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:46:42 -08:00
Mekala Natarajan
e1a25b7d31 wcnss: Set PMU register bit to indicate SSR
wcnss subsystem needs to distinguish between device boot up
and subsystem restart during its initialization. Setting this
spare bit in PMU register before reinitializing wcnss would
let the wcnss know whether this is cold boot or SSR

Change-Id: I4e535c0c46a20ddcc02c33b7ecd8d0f7fb1fca7f
Signed-off-by: Sunny Kapdi <sunnyk@codeaurora.org>
Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
2013-03-04 12:46:41 -08:00
Ajay Dudani
18ffec4a52 vidc: close instance if securing session fails.
Video driver will close the instance if secure call fails.

Change-Id: I39147272a9183f011529078fe8a18ac8cb2726fd
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:46:40 -08:00
Ajay Dudani
53dd2c1689 msm: sysmon: recognize ungraceful shutdowns
The sysmon_send_shutdown() API sends a shutdown request to a subsystem
and reads the response. The response is expected to be simply an
acknowledgment that the subsystem has received the request.

Change-Id: Ic68ee69434a2a2f6ea4f88b4f7aa73dfe3cca90b
Signed-off-by: Joel King <joelking@codeaurora.org>

Conflicts:

	arch/arm/mach-msm/sysmon.c

Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:46:40 -08:00
Deva Ramasubramanian
5b896d7477 msm: vidc: Allow client to request sps/pps per IDR frame
Expose SET_SPS_PPS_FOR_IDR to allow client request sps/pper per IDR
frame.

Change-Id: I0316d751bd1e0b412972cba9d4d59b142500a51d
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
2013-03-04 12:46:39 -08:00
Saurabh Shah
736cf9db3b msm_fb: display: Add MSMFB_OVERLAY_COMMIT ioctl.
MSMFB_OVERLAY_COMMIT ioctl is used to display on external.
This is used instead of the default PAN mechanism to avoid delays in that path.
This ioctl for external also waits for DMAE thus fixing tearing.

Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Signed-off-by: Arun Kumar K.R <akumarkr@codeaurora.org>
2013-03-04 12:46:38 -08:00
Ajay Dudani
d4e24fdbb1 USB: ci13xxx_udc: Set QMULT for ISO endpoints
Currently not setting QMULT for ISO endpoints. Set this
value appropriately  to indicate to the USB controller the
number of transactions to be done in microframe.

Change-Id: If80c003464024f8dfebcda13fefb33744618d043
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>

b/6968587
2013-03-04 12:46:38 -08:00
Ajay Dudani
64e994d018 USB: gadget: f_audio_source: Fix use after free in audio_unbind
When USB was disconnected, we were freeing our audio_dev struct in audio_unbind
before the audio system had cleaned up, resulting in a hang in audio_pcm_close.
We now statically allocate the audio_dev struct to avoid this problem.

Signed-off-by: Mike Lockwood <lockwood@google.com>
Change-Id: I58ad21eaa20dcf4aa74ee614ef3b6ed2c91d52a1
2013-03-04 12:46:37 -08:00
Ajay Dudani
85b68f0e9d USB: gadget: f_audio_source: Fix error handling and increase packet size
Fixes watchdog reset on USB disconnect
Larger packet size fixes performance in fullspeed mode

Signed-off-by: Mike Lockwood <lockwood@google.com>
Change-Id: I495c3c02f965d64538eb8adcd62a12a18a723cef
2013-03-04 12:46:37 -08:00
Ajay Dudani
7e61ab3d1a USB: gadget: f_audio_source: Adjust packet timing to reduce glitches
Increase max packet size and clean up timing logic so we can better
recover from not getting an interrupt in time for a SOF.

Signed-off-by: Mike Lockwood <lockwood@google.com>
Change-Id: Ie0e11853997e7f0c8320e79de3b3de0321c779ca
2013-03-04 12:46:36 -08:00
Ajay Dudani
735f020060 USB: gadget: f_audio_source: New gadget driver for audio output
This driver presents a standard USB audio class interface to the host
and an ALSA PCM device to userspace

Signed-off-by: Mike Lockwood <lockwood@google.com>
Change-Id: Ie20264ac86d21a1b1366491273034b755366d3c3
2013-03-04 12:46:36 -08:00
Ajay Dudani
0b7283e0de USB: gadget: f_accessory: Add support for HID input devices
Signed-off-by: Mike Lockwood <lockwood@google.com>
Change-Id: I4f5722bfa26a0d73419c54709b2f1672491bf56a
2013-03-04 12:46:35 -08:00
Ajay Dudani
c0230fd35b Add ACCESSORY_SET_AUDIO_MODE control request and ioctl
The control request will be used by the host to enable/disable USB audio
and the ioctl will be used by userspace to read the audio mode

Signed-off-by: Mike Lockwood <lockwood@google.com>
Change-Id: I48082ce473eb6577b0bf613be9ec27f2f5c19384
2013-03-04 12:46:34 -08:00
Ajay Dudani
c430f7825c usb: gadget: Initialize non zero ep max packet size to 0xFFFF
usb device controller driver initializes all endpoint's max packet
size to 64 bytes. At the time of function driver bind gadget
framework chooses endpoint by comparing it with endpoint
descriptor of the function driver in ep_matches(). Driver bind
fails for the function driver having isochronous endpoints, as
ep max packet size is less than endpoint descriptor's max packet
size. Hence set ep max packet size to 0xFFFF for non-zero
endpoint which will be set to endpoint descriptor's max packet
size when endpoint is enabled at the time of enumeration.

Change-Id: I9fc0a19bd4502812b8659222d60274ad8b9fef34
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>

b/6968587
2013-03-04 12:46:34 -08:00
ty.lee
86764568ee mako: audio: change LDO voltage for headset mic bias(1.8V ->2.5V)
Change-Id: I190b414251a04cd06e927c6977a14ec7f9f5ec8c
2013-03-04 12:46:33 -08:00
Devin Kim
206181f0c8 mako: pmic: store Real Time Clock(RTC)
Enable to store the AP8064 RTC.
It will fix the RTC reset issue after reboot.

AP8064 doesn't have the problem of rtc being written by modem since
the modem is external with its own rtc

This reverts commit 375ccb564347e826caf20c87c9778bc351adaead.
2013-03-04 12:46:33 -08:00