Update kgsl and msm_fb from caf jb_chocolate

Current as of 9f50d27978515e62323231539cdb44f897386b29
msm_fb: hdmi: Correct checksum value

Signed-off-by: Evan McClain <aeroevan@gmail.com>
Revert "Update kgsl and msm_fb from caf jb_chocolate"

This reverts commit 97f044c19fa57ec77781cbf1b38d8c312445f082.

Going to need to do this a bit more carefully...
cpufreq: hopefully fixed CONFIG_VDD_USERSPACE to allow for undervolting.

Signed-off-by: Evan McClain <aeroevan@gmail.com>
net: wireless: bcm4329: Try to fix possible typo.

Signed-off-by: Evan McClain <aeroevan@gmail.com>
net: wireless: bcm4329_204: Try to fix possible typo.

Signed-off-by: Evan McClain <aeroevan@gmail.com>
msm: kgsl: Add TLB flush for each submit in case of 8x25/7x2xa

Add TLB flush for each submit to prevent target freeze
in case of 8x25/7x27a/7x25a targets.

CRs-fixed: 379991
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
(cherry picked from commit 22a06d18c6eb100419616ddf7a2c4ac403420a9e)

Change-Id: I7c34660128c791c9329b41246af39879625d64d3
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
i2c: chips: update akm8975 from vivo source.

Cherry-picked from: Evan McClain <aeroevan@gmail.com>

Change-Id: If06e906c8fffc4fe769fa25d744b2c1e91d4f4e0
i2c: chips: update bma150 from vivo source.

Cherry-picked from: Evan McClain <aeroevan@gmail.com>

Change-Id: I25f175201df14c9a73a547292c39ef70886a8794
i2c: chips: update cm3628 from vivo source.

Cherry-picked from: Evan McClain <aeroevan@gmail.com>

Change-Id: Icd30002667e3718bc8743e9951886e9a1042b7be
lib: genalloc: Change chunk allocation to vmalloc

Change the chunk allocation from kmalloc to vmalloc for
allocations greater than a page. This allows large
chunks to be allocated from physically non-contiguous
memory and increases the chance of the allocation
succeeding.

CRs-fixed: 387655
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
(cherry picked from commit 0614b96dc8e4c8a0dd0db41aec5a79daa3bdf091)

Conflicts:

	lib/genalloc.c

Change-Id: Ic0dedbad9d277d0842591b1f075ce3b80c8c05de
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
i2c: chips: corrected a warning for BMA150

Change-Id: Iec6d0fe0fe159007b7c4a7a9e5ac6a8c6fbec41e
msm: kgsl: use correct 2d ringbuffer offset in resume

The 2d timestamp is used as an index into the ringbuffer.
Now that z180_dev->current_timestamp is preserved across
resume, make sure that ADDR_VGV3_NEXTADDR is set to the
gpu address that corresponds to the current timestamp.

CRs-Fixed: 347025
Change-Id: Ib7dc4579943ab24e04279ede1555539ec21adabd
Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
msm: kgsl: Do bounds checking on user supplied GPU addresses

Add bounds checking to kgsl_sharedmem_find_region to ensure that GPU
addresses supplied by the user via KGSL_IOCTL_SHAREMEM_FREE and
KGSL_IOCTL_CFF_SYNCMEM are within a valid range for the MMU scheme of
choice.

CRs-Fixed: 380296
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
(cherry picked from commit e22e21d93260cee3aff0dff7247635d9624c8aa5)

Change-Id: Ic0dedbad2d55d1029ff512bc4e7bf3acd1e67841
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
msm: kgsl: Increase REG_RBBM_CNTL value to 0xFFFF for A200

Increase number of clocks that RBBM will wait before de-asserting
the Register Clock Active signal. This fixes kernel panics during
stability tests on multiple devices

Change-Id: I50ad69f28b50444e88239c2332bd5756db1ae089
CRs-fixed: 372793
Signed-off-by: Rammohan Basavaraju <rammoh@codeaurora.org>
msm: kgsl: Update pagetable on context destruction for A20x

Ensure that pagetable is updated during context destruction. This
resolves stability issues during Camera launch/exit scenarios. Applies
only to A20x GPUs. This change is already done for Z180 device.

Change-Id: I955c7220aa8234009f5bca0a273093e47147279d
Signed-off-by: Rammohan Basavaraju <rammoh@codeaurora.org>
vidc: send flush done if flush is issued in EoS while encoding

There is a race condition in encoder, when an input buffer
is received with an EoS flag but doesn't have an output
buffer to process that and if simultaneously flush is issued.
This is fixed by sending flush done if flush is issued in EoS.

CRs-Fixed: 353081
Change-Id: I925f49779ed5cb91bfab805ba4b7102c1e3f728b
Signed-off-by: Rajeshwar Kurapaty <rkurapat@codeaurora.org>
(cherry picked from commit 602d62927c6db96f8d636f7795203b19e8c412c3)