board-x3-panel: 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>
video: tegra: add ioctl to expose CMU
video: tegra: dc: power host1x during HDCP link

Add tegra_dc_io_start/end to take host1x references while negotiating HDCP.
Without these the module can be turned off and some state won't be
programmed properly.

Bug 1176386

Change-Id: I1893b017f09a406965b478b0a9de1730b16ca0ac
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/164809
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Conflicts:
	drivers/video/tegra/dc/hdmi.c
video: tegra: fix memory leak on pin
video: tegra: host: Compress debug dump

UART is slow for long debug spews. Compress the output by removing
decoding into opcodes.

We also remove KERN_INFO from each printk, as that causes a newline
between each word.

Bug 1175902

Change-Id: I9f2c2baa5483e5c1eb82c9c4c3c2133ecb3209ac
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/164733
Tested-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
video: tegra: wait for idle before regread
video: tegra: move crc messages to dev_dbg
video: tegra: new job submit interface

Conflicts:
	drivers/video/tegra/host/nvhost_job.c
video: tegra: fix memory leak in dmabuf
module_param: make bool parameters really bool (drivers & misc)

module_param(bool) used to counter-intuitively take an int.  In
fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
trick.

It's time to remove the int/unsigned int option.  For this version
it'll simply give a warning, but it'll break next kernel version.

Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

Conflicts:
	drivers/mmc/core/core.c
	kernel/printk.c