tegra: dc: hdmi: Add 720p CVT mode

Add 720p mode in supported CVT video mode list.

Bug 1065850
Signed-off-by: Shashank Sharma <shashanks@nvidia.com>
Change-Id: I19b90254aa3b4a82965ae43fc7e09b38dad46cd8
Reviewed-on: http://git-master/r/149130
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
video: tegra: nvmap: Clean up fast_cache_maint()

Get rid of ifdef in a function for readability.

Bug 1158336

Change-Id: I31e9521f97dda91fecf523bcd49ff5b34db86e45
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/161207
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
video: tegra: host: Fix error handling of reg read

Check value of mem_sgt and check value of mem_dma only after setting it.

Change-Id: I949cbc3b3496e959234c8ad8c24d9f60250dcb1a
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/161566
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
arm: mm: cpa: configurable cache_maint_{inner,outer}_threshold
video: tegra: nvmap: Configurable cache_maint_{inner,outer}_threshold

Introduce configurable cache_maint_{inner,outer}_threshold via debugfs.

Bug 1158336

Change-Id: I0b20d44ddf1e8e88954ac8fac7750b4e31959564
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/161208
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
video: tegra: allow r/w of cmu_enable sysfs node
video: tegra: add Tegra MSENC module support
video: tegra: backport Tegra SD Gen2 support from Tegra 4
video: tegra: Select BACKLIGHT_CLASS_DEVICE (smartdimmer depends on this)
x3: add Tegra SD Gen2 support
video: tegra: host: Fix resource leak

Free fw_name before exiting msenc_get_fw_name on failure.

Change-Id: I9b7917103657df3adf61887f28cc88372327c387
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/161598
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
video: tegra: enable 2D power gating
video: tegra: host: Skip dmabuf handles in nvmap

Skip dmabuf handles in nvmap specific code. This fixes a kernel panic
when nvmap is asked to give the physical address of a dmabuf fd.

Change-Id: Ia1a5aa6bbd90608434f206a80b11f008a9a0b88c
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/161169
Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
ARM: 7493/1: use generic unaligned.h
patch: add __rcu_reclaim()
video: tegra: nvmap: Return error for re-allocation request.

Bug 898294

Change-Id: I176918d07d0f622db36b9be18ac726c06dc59432
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/161826
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
video: tegra: nvmap: Fix heap compactor under OOM

The carveout heap compactor wasn't really prepared for running out of
memory, and would trigger a BUG_ON instead.

Bug 1024556

Change-Id: I661942d787a1fe59ab35e035d124e4cfaeed69b3
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/131889
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
video: tegra: dc: remove HDMI mode restrictions

Bug 1167856

Change-Id: I63dfa156cb394f6459bbce7b0a7daf26dfeada31
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/162555
Reviewed-by: Automatic_Commit_Validation_User
video: tegra: host: Fix resource leak on error

Free allocated memory on error.

Change-Id: I80f290a5696744d1375137f7a57c6291e16c7abd
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/161609
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
video: tegra: host: handle function return value

-fix Coverity issue of unchecked return value
-use pr_err to report error

Coverity id : 20846

Bug 1046331

Change-Id: Id90be48d700d0098e9e4761be33090e7a44ce9e3
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/163958
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>