Revert "video: tegra: remove irq_requested flags"

This reverts commit 6ee3cc5b6978f9e4a90e353a02b32f722e81c613.
video: tegra: nvmap: implement fast api functions

Implement optimized nvmap_pin_array() for fast pinning
of array of nvmap_handles.

Implement fast nvmap functions which skip slow validation
step if it is possible:

_nvmap_duplicate_handle_id()
_nvmap_free()
_nvmap_pin()

bug 1158533

Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Change-Id: I4639973bf9cf507ed68a03087ec6a91449f8453e
Reviewed-on: http://git-master/r/147505
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
video: tegra: dc: Fix computation of h offset

Change-Id: I5eeae496dc167202fc9e6133e88c39ecd5734bd0
Signed-off-by: Michael Frydrych <mfrydrych@nvidia.com>
Reviewed-on: http://git-master/r/146920
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
video: tegra: optimize nvhost pin operations

Conflicts:
	drivers/video/tegra/host/nvhost_job.c
drivers: video: tegra: dc: Expose HBR capability

Enable HBR bit in HDMI_NV_PDISP_SOR_AUDIO_SPARE0_0 register
This exposes HBR pin capability in HD-Audio codec

Bug 966764

Change-Id: I5253daf9e2864b728bf8aab1a71a2f0e4230debd
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/159550
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
PM: Drop generic_subsys_pm_ops

Since the PM core is now going to execute driver callbacks directly
if the corresponding subsystem callbacks are not present,
forward-only subsystem callbacks (i.e. such that only execute the
corresponding driver callbacks) are not necessary any more.  Thus
it is possible to remove generic_subsys_pm_ops, because the only
callback in there that is not forward-only, .runtime_idle, is not
really used by the only user of generic_subsys_pm_ops, which is
vio_bus_type.

However, the generic callback routines themselves cannot be removed
from generic_ops.c, because they are used individually by a number
of subsystems.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
config: update configs
video: tegra: fix EOT packet length
video: tegra: remove dummy devices for display & dsi
video: tegra: fix shift clk divider

Conflicts:
	drivers/video/tegra/dc/clock.c
video: tegra: dc: remove log spam on mode change

Bug 1159399

Change-Id: I0c359fc080e9b45dcd068b73c97d8c8ca0c487fa
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/159920
Reviewed-by: Automatic_Commit_Validation_User
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: 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>
video: tegra: allow r/w of cmu_enable sysfs node
video: tegra: Select BACKLIGHT_CLASS_DEVICE (smartdimmer depends on this)
video: tegra: add Tegra MSENC module support
video: tegra: backport Tegra SD Gen2 support from Tegra 4
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