CHROMIUM: video: tegra: host: Do not dump channel if error

Do not dump channel state if the channel could not be initialized.

BUG=chrome-os-partner:29063
TEST=visit
https://www.khronos.org/registry/webgl/conformance-suites/1.0.0/extra/lots-of-polys-example.html
and let it run, see if it crashes the system

Change-Id: Ib1d8d0ccad0eb1254584e3fa6093c66921f36688
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Reviewed-on: https://chromium-review.googlesource.com/201071
(cherry picked from commit 0de3a927714852fea0f2fd5b424f1999b24ee615)
Reviewed-on: https://chromium-review.googlesource.com/203570
Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-by: Andrew Bresticker <abrestic@chromium.org>
Commit-Queue: Kirill Artamonov <kartamonov@nvidia.com>
Tested-by: Kirill Artamonov <kartamonov@nvidia.com>
CHROMIUM: ARM: dts: blaze: fix blaze sdhci calibration

The mask was incorrect for calibration.  It was not being done
for SDR104 cards.

BUG=chrome-os-partner:29586
TEST=test on blaze, confirm enable this dts can make the calibration value workable.

Change-Id: If384fd012a5695bd24e1d04dbbfea85d623cddae
Signed-off-by: Christopher Freeman <cfreeman@nvidia.com>
Reviewed-on: https://chromium-review.googlesource.com/202989
Tested-by: Neil Chen <neilc@nvidia.com>
Reviewed-by: Andrew Bresticker <abrestic@chromium.org>
Commit-Queue: Andrew Bresticker <abrestic@chromium.org>
(cherry picked from commit 3cde6d9baf25fdb1c838a278f619030676edf6cc)
Reviewed-on: https://chromium-review.googlesource.com/203931
Reviewed-by: Katie Roberts-Hoffman <katierh@chromium.org>
Commit-Queue: Neil Chen <neilc@nvidia.com>
CHROMIUM: ARM: dts: blaze: update T-SKIN trip temperature

Update T-skin trip temperature to 54 Celsius.

BUG=chrome-os-partner:29791
TEST=build, download and verified by thermal test

Change-Id: I74f1be93e1955bad8ca6ea1416ec0c3a226cbae0
Signed-off-by: Neil Chen <neilc@nvidia.com>
Reviewed-on: https://chromium-review.googlesource.com/204476
Tested-by: Chen Wisley <wisley.chen@quantatw.com>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Dylan Reid <dgreid@chromium.org>
(cherry picked from commit 62464a8038f131684b78f7bd074d0cd74f66e74b)
Reviewed-on: https://chromium-review.googlesource.com/204820
Reviewed-by: Katie Roberts-Hoffman <katierh@chromium.org>
CHROMIUM: ARM: dts: blaze: update skin temp tuned data

Update the skin temperature tuned coefficients and toffset as below.

Array 0 Thermal_Device_ID_NCT_EXT:
-1 0 0 -1
0 0 -1 -1
-1 -1 -1 -1
-1 -2 -2 -3
-4 -5 -6 -9

Array 1 Thermal_Device_ID_NCT_INT:
16 9 5 3
4 4 4 7
5 5 4 4
6 7 4 5
4 6 8 16

Skin temp offset: 2862

BUG=chrome-os-partner:29411
TEST=emerged blaze kenrel, cat values under
/sys/device/soc0/therm-est.11/, got correct values.

Change-Id: I18d71bb10aa949c0fb7dea3d0452c9775cde976c
Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: https://chromium-review.googlesource.com/202566
Reviewed-by: Andrew Bresticker <abrestic@chromium.org>
Commit-Queue: Andrew Bresticker <abrestic@chromium.org>
Tested-by: Andrew Bresticker <abrestic@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/202581
(cherry picked from commit bdd9766448f223c263c23b9ee3b28cdeeb97bdc5)
Reviewed-on: https://chromium-review.googlesource.com/204477
Tested-by: Neil Chen <neilc@nvidia.com>
Reviewed-by: Katie Roberts-Hoffman <katierh@chromium.org>
Commit-Queue: Benjamin Lu <benjaminl@nvidia.com>
CHROMIUM: video: tegra: dc: handle dp sink device out of sync

After a successful dp link training, check DPCD address 00205h,
SINK STATUS register, to see if the sink device is in synchronization
with the receiving main stream.

If the sink device is out of synchronization, go through dp disable
and enable procedures to re-do link training.

BUG=chrome-os-partner:29088
TEST=panel works fine with suspend/resume and hdmi hotplug tests on
big and blaze. checked the kernel log, below prints were observed on
the failing blaze unit, this indicates the panel is out of sync and
can be recovered by re-doing the link training procedure.

[  133.107284] tegradc tegradc.0: SINK receive port 0 is out of synchronization, 0
[  606.575804] tegradc tegradc.0: SINK receive port 0 is out of synchronization, 0

Change-Id: I584effa495f158a02c82534906d733d543b68f3a
Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: https://chromium-review.googlesource.com/203359
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Dylan Reid <dgreid@chromium.org>
Tested-by: Dylan Reid <dgreid@chromium.org>
(cherry picked from commit 0b9bffcd573ec9ad14f75195111635848c33f871)
Reviewed-on: https://chromium-review.googlesource.com/204891
Reviewed-by: Katie Roberts-Hoffman <katierh@chromium.org>
CHROMIUM: video: tegra: host: using WARN() instead of BUG()

BUG=chrome-os-partner:28847
TEST=pass "Graphic stress test" two runs on each 9 pics DUT

Signed-off-by: Ken Chang <kenc@nvidia.com>

Change-Id: Ic5bb29d23f3e2412b6278a2285c2acdbe0c9b984
Reviewed-on: https://chromium-review.googlesource.com/204902
Tested-by: Neil Chen <neilc@nvidia.com>
Reviewed-by: Katie Roberts-Hoffman <katierh@chromium.org>
Commit-Queue: Neil Chen <neilc@nvidia.com>