msm: mdss: Fix the ctx num for virtual ctl

When virtual ctl is allocated during simultaneous wb line and block mode
operation, the virtual ctl num should be the same as original ctl. This
is essential for color space conversion programing.

Change-Id: I1294a8f813e5b534cf10f9d4f721b42ce0bb6141
Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>
Merge commit '1926293d83f02da9e736dc6f579563ee03177555' into HEAD
ARM: dts: msm: Add entry for relocatable pil heaps

Add device tree entry for relocatable pil heaps to
be loaded using the ion framework.

Change-Id: Ib1e31d2e479376043240a4763b381ab38b1d2e4d
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
Merge "Merge commit '1926293d83f02da9e736dc6f579563ee03177555' into HEAD"
arm/dt: msm8974pro: Add nodes for multiple partitions in msm_vidc

Modify dts files to support multiple partitions
and corresponding buffer types in each context
bank domain for msm8974pro

Change-Id: I3ba950bdde909785de9c7416a2311ef3f4fac44b
Signed-off-by: Eric Ho <yinlokh@codeaurora.org>
Revert "ARM: dts: msm: Run HS200 @ 100MHz for msm8974pro AB/AC mtp"

This reverts commit f62c91210c699391967e369e8d2e2740e42c0628.
This change is no longer required. The AB/AC MTP boards have been fixed
to support HS200 @ 200MHz.

Change-Id: I72cfb836cfd89e79105a50b8a6ca40e302373466
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
netfilter: xt_qtaguid: report only uid tags to non-privileged processes

In the past, a process could only see its own stats (uid-based summary,
and details).
Now we allow any process to see other UIDs uid-based stats, but still
hide the detailed stats.

Change-Id: I7666961ed244ac1d9359c339b048799e5db9facc
Signed-off-by: JP Abgrall <jpa@google.com>
Git-commit: 776488328c5e70ee917e320e6d8d09ecfc85ec14
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
netfilter: xt_qtaguid: fix error exit that would keep a spinlock.

qtudev_open() could return with a uid_tag_data_tree_lock held
when an kzalloc(..., GFP_ATOMIC) would fail.
Very unlikely to get triggered AND survive the mayhem of running out of mem.

Change-Id: I442dd68826a8f5ff7a02423f6f3832228c2f21ab
Signed-off-by: JP Abgrall <jpa@google.com>
Git-commit: fc36cc2104855ca64ab74b76d20ff27259cdae62
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
netfilter: qtaguid: Don't BUG_ON if create_if_tag_stat fails

If create_if_tag_stat fails to allocate memory (GFP_ATOMIC) the
following will happen:

qtaguid: iface_stat: tag stat alloc failed
...
kernel BUG at xt_qtaguid.c:1482!

Change-Id: I46bee5b6eacc070e604df15ed69f46edf87c148a
Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Git-commit: 0310b9d5c7a0cd38433148b05992b180ec358676
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
netfilter: xt_qtaguid: extend iface stat to report protocols

In the past the iface_stat_fmt would only show global bytes/packets
for the skb-based numbers.
For stall detection in userspace, distinguishing tcp vs other protocols
makes it easier.
Now we report
  ifname total_skb_rx_bytes total_skb_rx_packets total_skb_tx_bytes
  total_skb_tx_packets {rx,tx}_{tcp,udp,ohter}_{bytes,packets}

Bug: 6818637
Change-Id: Ic5041f61bc010e535e119f769a65caa4779a5a81
Signed-off-by: JP Abgrall <jpa@google.com>
Git-commit: 01d1733e27c7c03dc700cd8cd7658b326bc0b1b2
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
netfilter: xt_qtaguid: remove AID_* dependency for access control

qtaguid limits what can be done with /ctrl and /stats based on group
membership.
This changes removes AID_NET_BW_STATS and AID_NET_BW_ACCT, and picks
up the groups from the gid of the matching proc entry files.

Signed-off-by: JP Abgrall <jpa@google.com>
Git-commit: 7c060bfc57364ee541b1d9b534262f73c1b42b0d
Git-repo: https://android.googlesource.com/kernel/common/
Change-Id: I42e477adde78a12ed5eb58fbc0b277cdaadb6f94
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
netfilter: xt_qtaguid: Allow tracking loopback

In the past it would always ignore interfaces with loopback addresses.
Now we just treat them like any other.
This also helps with writing tests that check for the presence
of the qtaguid module.

Change-Id: If0b5444b0a6e23a4089b0dd00a0d820f262f9fa7
Signed-off-by: JP Abgrall <jpa@google.com>
Git-commit: ab3801efc6d2e7b4610071ac87c6977ac9042ad9
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
netfilter: qtaguid: rate limit some of the printks

Some of the printks are in the packet handling path.
We now ratelimit the very unlikely errors to avoid
kmsg spamming.

Change-Id: If03d6b90bf367a356069f46aa5926a96fa508966
Signed-off-by: JP Abgrall <jpa@google.com>
Git-commit: bd91f6b21861cde78d800deede8ebeca0cc0cdd2
Git-repo: https://android.googlesource.com/kernel/common/
[subbaram@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Merge "Revert "ARM: dts: msm: Run HS200 @ 100MHz for msm8974pro AB/AC mtp""
USB: msm_otg: Correct USB PHY Reset sequence on newer platform

On few legacy platforms, USB PHY is having dedicated reset clk.
It is used to reset USB PHY after putting USB PHY into low power
mode and for calibration of USB PHY. Putting USB PHY into low
power mode is causing ulpi read/write timeout as expected USB PHY
reset clk is not available on newer platform. Hence remove USB PHY
reset clk usage and related reset code.

For 28nm PHY, Reset USB PHY after resestting USB LINK. Also reset
USB PHY using USB_PHY_PON bit with USB_OTG_HS_PHY_CTRL register
after programming USB PHY Override registers as suggested with
hardware programming guidelines. Also debug out important USB
register when ulpi read/write timeout is seen with USB PHY.

CRs-Fixed: 511102
CRs-Fixed: 511397
Change-Id: I8f0f49211a64aa6eac7643cd91a652aed40132e3
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
msm:camera: Add support for LED flash as i2c node

Add LED flash driver for adp1660 as i2c node.
Create v4l2 node and add control logic for i2c
LED Flash driver.

Change-Id: Iccdd341c280e58dfa5b374d06b16c2d9d344f748
Signed-off-by: Lokesh Kumar Aakulu <lkumar@codeaurora.org>
msm: camera: Update UB size for stats

Update UB size for BG stats to avoid overflow.

Change-Id: I88f73887bd5343a44f9911ff9ecfa4dba8449e17
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
msm: camera: Fix for raw snapshot

Issue a reg update command in case of raw
snapshot to fix the failure of raw snapshot

Change-Id: I38dce970979d34ad720ba61fb8a1b65dc53cff66
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
Merge "USB: msm_otg: Correct USB PHY Reset sequence on newer platform"
ASoC: msm8x10: fix missing iounmap after ioremapped memory

If ioremap is used, iounmap has to be called. Missing iounmap call
cause flooding vmalloc table which will end up with random crashes.

CRs-fixed: 502923
Change-Id: I7fd9bc1367ef50afe9b586e66c014f4af677bc4e
Signed-off-by: Fred Oh <fred@codeaurora.org>