4 years agortc: as3722: add shutdown support
Bibek Basu [Wed, 28 Jan 2015 06:11:13 +0000]
rtc: as3722: add shutdown support

When shutdown process is ongoing, dont allow rtc
read/write/irq activity.Add shutdown hook to the
driver to disable irq and cancel any pending
irq_work

Bug 200072946

Change-Id: I1a68d17ec49ee32e849ad965a144b84be19ba6c5
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/677751
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agortc: add rtc_shutdown api to service pending work
Bibek Basu [Tue, 27 Jan 2015 11:40:15 +0000]
rtc: add rtc_shutdown api to service pending work

During shutdown/reboot process, its better to
finish any pending irqwork so that the work is
not scheduled after devices like i2c are shutdown.
This patch provides hook to be called from rtc driver after disabling
rtc irq. Also any further request to access rtc_class_ops will
be prohibited.

Bug 200072946

Change-Id: I8eb20e5214a31fbc8a280ccfff8e190a5fabbb96
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/677750
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoconfig: add L4T tegra watchdog support
Ximing Chen [Thu, 22 Jan 2015 03:55:56 +0000]
config: add L4T tegra watchdog support

Tegra watchdog is disabled by default.
Users can access /dev/watchdog0 to operate it.

Bug 1557390

Change-Id: I0ee4f787336fc566900ffeb5c26c6fde6530b904
Signed-off-by: Ximing Chen <ximingc@nvidia.com>
Reviewed-on: http://git-master/r/674635
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoFIQ: Implement WDT FIQ debugger
Renn Wu [Thu, 11 Dec 2014 08:11:12 +0000]
FIQ: Implement WDT FIQ debugger

Implement Tegra WDT FIQ debug function.
Default is disabled.

Bug 1581432

Change-Id: Ic81ab4cd3285080016b37191e6e0fab18e330a30
Signed-off-by: Renn Wu <rewu@nvidia.com>
Reviewed-on: http://git-master/r/#/c/271988
Reviewed-on: http://git-master/r/662550
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agotegra: dc: Unsetting DC to default mode in probe
Pankaj Dabade [Tue, 20 Jan 2015 06:36:15 +0000]
tegra: dc: Unsetting DC to default mode in probe

During probe, for L4t-HDMI, monitor specs are read and set
before DC is enabled. DC will fall back to default mode
only when a invalid request is made by monitor.

Bug 200020671
Bug 200031813

Change-Id: I5138e76afe8b2e5bfef1ee1941455827df34a1c0
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/673655
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agovideo: tegra: host: gk20a: invalidate TLB after PDE update
Deepak Nibade [Wed, 3 Dec 2014 13:17:38 +0000]
video: tegra: host: gk20a: invalidate TLB after PDE update

Invalidate TLB after PDE udpate and before freeing the Page
Table memory
Stale TLBs during unmap can lead us to access invalid PTEs

Bug 1577947

Change-Id: I46c6a7a9079570a8e2af8bb2a6687cfeec83a6f7
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/670324
(cherry-picked from commit e4cbdae09949d23ac338209924d35584c5d8d288)
Reviewed-on: http://git-master/r/671197
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agovideo: tegra: host: gk20a: fix PDE update sequence
Deepak Nibade [Mon, 1 Dec 2014 10:55:41 +0000]
video: tegra: host: gk20a: fix PDE update sequence

Current sequence :
- delete page tables memory
- update PDE entry and mark above page tables invalid

With this sequence, it is possible to have valid PDE entries
with already freed page table and this could lead us to
invalid memory accesses.

Fix this by switching the sequence as follows :
- update PDE entry and mark page tables invalid
- delete page tables memory

Bug 1577947

Change-Id: Icc3a8c74bbf1bf59e41e0322cfc279d15690aa9d
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/670323
(cherry-picked from commit 56f738b4c4ee188ec1f69b91615cd9728ff18cf0)
Reviewed-on: http://git-master/r/671196
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agoARM: config: tegra: add ramoops support for Jetson
Ximing Chen [Tue, 9 Dec 2014 10:26:30 +0000]
ARM: config: tegra: add ramoops support for Jetson

Enabling PSTORE configrations for L4T

Bug 1581073

Change-Id: Ic54616379a5a279117ae85cb0e3465ef5c2c70b8
Signed-off-by: Ximing Chen <ximingc@nvidia.com>
Reviewed-on: http://git-master/r/661347
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Rui Zhuo <rzhuo@nvidia.com>
Reviewed-by: Renn Wu <rewu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agotegra: dc: Unsetting DC to default mode in probe
Pankaj Dabade [Fri, 2 Jan 2015 05:56:08 +0000]
tegra: dc: Unsetting DC to default mode in probe

During probe, for L4t, monitor specs are read and set
before DC is enabled. DC will fall back to default mode
only when a invalid request is made by monitor.

Bug 200020671

Change-Id: Ic78dc9883813d1ca6623ccfde47f8a2bd493cf76
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/668839
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Jong Kim <jongk@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoedp: sysedp: NULL terminate of_device_id tables
Timo Alho [Fri, 11 Jul 2014 06:06:44 +0000]
edp: sysedp: NULL terminate of_device_id tables

of_device_id tables need to be NULL terminated. This patch fixes the
missing NULL termination within sysedp_batmon_calc module.

Bug 1539761

Change-Id: I7b1f48b85fce84337d8d2093fe7886f965d0b28f
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/437001
(cherry picked from commit 305fceeceed23782a1170ed60b87059010a83c61)
Reviewed-on: http://git-master/r/671006
Reviewed-by: Steve Rogers <srogers@nvidia.com>

4 years agogpu: nvgpu: Allow suppressing WFI on submit
Terje Bergstrom [Tue, 1 Apr 2014 05:28:44 +0000]
gpu: nvgpu: Allow suppressing WFI on submit

Allow suppressing WFI when submitting work and requesting a fence
back.

Bug 1491545

Change-Id: Ic3d061bb4f116cf7ea68dbd6a1b2ace9f11d0ab5
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/390457
Reviewed-on: http://git-master/r/671029
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sibashis Mohapatra <sibashism@nvidia.com>
Tested-by: Sibashis Mohapatra <sibashism@nvidia.com>
Reviewed-by: Yogesh Kini <ykini@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agoASoC: tegra: unset audio_engine
Bibek Basu [Thu, 8 Jan 2015 10:03:49 +0000]
ASoC: tegra: unset audio_engine

If firmware is not found in case of error, set audio_engine
to NULL so that kernel does not panic while further
processing

Bug 200067781

Change-Id: Ia854c978bd33a2615ab27715e83b4d78a1dbab3a
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/670625
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoarm: tegra: dtb: set sata en to output high
Bibek Basu [Thu, 8 Jan 2015 06:12:48 +0000]
arm: tegra: dtb: set sata en to output high

Set Sata Enable to output High to get sata working

Bug 1551864
Bug 200070681

Change-Id: Ifb01377df3f597304b303487f91a26053e2f1fb6
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/670552
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoarm: tegra12: jetson: Sensorhub power-on
Kamal Kannan Balagopalan [Thu, 4 Dec 2014 07:19:49 +0000]
arm: tegra12: jetson: Sensorhub power-on

Power-up and initialize sensor-hub MCU to start fetching code from
flash storage.

Bug 1560072

Change-Id: I993dc76f34cad8a3ef6aa11c2077a87f62e9ce58
Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com>
Reviewed-on: http://git-master/r/659365
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arun Kannan <akannan@nvidia.com>
Tested-by: Arun Kannan <akannan@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agomisc: nv-sensorhub: tty line disc for sensorhub
Arun Kannan [Mon, 15 Dec 2014 22:58:31 +0000]
misc: nv-sensorhub: tty line disc for sensorhub

Line discipline driver for sensorhub stream.

Bug 1591540

Change-Id: Ic867019b4d06091d27b55ee2560fc337e2e59523
Signed-off-by: Arun Kannan <akannan@nvidia.com>
Reviewed-on: http://git-master/r/664091
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>
Tested-by: Kamal Balagopalan <kbalagopalan@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agogpu: nvgpu: reduce message severity to info
Naveen Kumar S [Thu, 11 Dec 2014 11:55:46 +0000]
gpu: nvgpu: reduce message severity to info

Shader informs user about context switch wait time.
This doesn't affect any functionality. Hence changing print to info.

bug 200015967

Change-Id: I7fbb562e43ee6ec1bc8ac01a51d3c9f19d5cb4cf
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/662657
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agoAR0261: validate with V4L2 for Jetson TK1
Bryan Wu [Wed, 28 May 2014 00:34:53 +0000]
AR0261: validate with V4L2 for Jetson TK1

Change-Id: I1c00d571e294ccf1c4d795bb90e71defd3395293
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/591333
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit b87d110ddc52048944862fb8bf019922333b1dd5)
Reviewed-on: http://git-master/r/665999
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>

4 years agomedia: tegra_v4l2_camera: add dual camera support
Bryan Wu [Wed, 29 Oct 2014 01:05:35 +0000]
media: tegra_v4l2_camera: add dual camera support

Change-Id: I3a358eb3f996917218798ae24eb1b0ef471a223f
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/591332
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit 4011d6570ba8138348ccc45b2acb31526cb73863)
Reviewed-on: http://git-master/r/665998
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agomedia: tegra_v4l2_camera: disable line timeout
Bryan Wu [Wed, 24 Sep 2014 23:40:17 +0000]
media: tegra_v4l2_camera: disable line timeout

Disable line timeout, since some sensor like IMX208 doesn't work with
line timeout enabled.

Bug 1560636

Change-Id: I38e9a03e04ca206cbb65c13829c567d0c0de1c6c
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/539004
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit 8cca4a716c25cecbbc7455d5dd92f3e7fc074b07)
Reviewed-on: http://git-master/r/665997
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agomedia: tegra_v4l2_camera: add CSI_B/CSI_C support
Bryan Wu [Fri, 19 Sep 2014 00:45:35 +0000]
media: tegra_v4l2_camera: add CSI_B/CSI_C support

Bug 1560636

Change-Id: I2d27c631da0f4b6540af9b4da9ba9e212a4a56c5
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/539003
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit e9b82e8a6e6edf5fc00e88c8610b9c2bb67f3872)
Reviewed-on: http://git-master/r/665996
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agomedia: tegra_v4l2_camera: use port num to init clk
Bryan Wu [Thu, 18 Sep 2014 01:04:17 +0000]
media: tegra_v4l2_camera: use port num to init clk

Change clks_init() internal API to use CSI port number to enable clks
instead of using dev_id which is incorrect sometime, since vi.0 might
also assigned to CSI_B/CSI_C port.

Bug 1560636

Change-Id: I0e26308ec885e2e34fe8faa63fca404c911912c4
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/539002
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit c66d8e5880589b0d95dba63d10daff53e47e8628)
Reviewed-on: http://git-master/r/665995
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agomedia: tegra_v4l2_camera: fix format support
Andrew Chew [Sat, 23 Aug 2014 01:36:00 +0000]
media: tegra_v4l2_camera: fix format support

This driver does not demosaic, so when we are working with a bayer sensor,
we can only report the various bayer formats.  Similarly, we only support
rgba for test pattern generator right now, so only report rgba if we are in
test pattern mode.

When in test pattern mode, don't ever query the sensor subdev, since it's
not involved at all.

Also, made some miscellaneous cleanup to some debug prints, and the
conditionals around how CSI gets programmed.

Bug 1560636

Change-Id: I9022ec6a489b20d0847dd9d2a79af2307b7a4af1
Signed-off-by: Andrew Chew <achew@nvidia.com>
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/489066
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit f211247b0151b926f21b989cc031dc928db61aaa)
Reviewed-on: http://git-master/r/665994
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agopcie: tegra: move err print to info print
Bibek Basu [Fri, 2 Jan 2015 08:48:20 +0000]
pcie: tegra: move err print to info print

Change link down print to info print

Bug 200042283

Change-Id: I3c1783e362f9a0e95abb4955640e4cdd70d1f59e
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/668855
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoASoC: Tegra: correct the print loglevel
Bibek Basu [Fri, 2 Jan 2015 08:45:25 +0000]
ASoC: Tegra: correct the print loglevel

Some info prints are wrongly processed as err print

Bug 200042283

Change-Id: I490b4782e5d26d06c0f3c7104ab8c68b94f31888
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/668854
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agofirmware: avoid firmware-loading console log spew
Rajkumar Kasirajan [Fri, 5 Dec 2014 07:02:17 +0000]
firmware: avoid firmware-loading console log spew

Disabled default printing of falcon firmware direct loading
to avoid console log spew.

Bug 200048667

Change-Id: I34b34864f64d44ef009586e7e847041b10b06d67
Signed-off-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-on: http://git-master/r/660016
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agogpu: nvgpu: implement mapping for sparse allocation
Kirill Artamonov [Wed, 26 Feb 2014 20:58:43 +0000]
gpu: nvgpu: implement mapping for sparse allocation

Implement support for partial buffer mappings.

Whitelist gr_pri_bes_crop_hww_esr accessed by
fec during sparse texture initialization.

bug 1456562
bug 1369014
bug 1361532

Change-Id: Ib0d1ec6438257ac14b40c8466b37856b67e7e34d
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-on: http://git-master/r/375012
(cherry picked from commit a24470f69961508412402b9b06d5b71fbf6f7549)
Reviewed-on: http://git-master/r/601754
Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agovideo: tegra: Wait PMU finishes booting
sujeet baranwal [Fri, 29 Aug 2014 20:56:49 +0000]
video: tegra: Wait PMU finishes booting

GPU PMU booting is in a separate thread(workqueue) and currently
there is a race condition that PMU booting doesn't finish when
"nvhost_gk20a_finalize_power_on" is returning.
If the GPU starts to runtime powergate(nvhost_gk20a_prepare_poweroff)
at that time, we left a unfinished PMU booting workqueue task there.
So next time when this task starts running, GPU will be put into
a bad state which causes lots of GPU errors.
This patch adds a wait at the end of "nvhost_gk20a_finalize_power_on"
, so that the race condition can be avoided.

Bug 200055546

Change-Id: I4f2d0798fcadb4effc555a66f3c3e3061b18d246
Signed-off-by: Mark Zhang <markz@nvidia.com>
Signed-off-by: sujeet baranwal <sbaranwal@nvidia.com>
Reviewed-on: http://git-master/r/494065
(cherry picked from commit 3b9866a952ba0a1dea05d20bf32b6bcc9113f38b)
Reviewed-on: http://git-master/r/655952
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agogpu: nvgpu: Add boost once GPU is initialized
Terje Bergstrom [Wed, 6 Aug 2014 07:41:07 +0000]
gpu: nvgpu: Add boost once GPU is initialized

Workaround for GPU hang if boost turns GPU on before it is
initialized.

Bug 1435870

Change-Id: I07d0617049612344ca7c494da8cb8d75789984e5
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/453375
(cherry picked from commit 260cf3d3fab941126eebf4bc977cb408587492eb)
Reviewed-on: http://git-master/r/655951
Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agogpu: nvgpu: Initialize ELPG ref-count early.
Neil Gabriel [Thu, 26 Jun 2014 23:02:32 +0000]
gpu: nvgpu: Initialize ELPG ref-count early.

gk20a_pmu_disable_elpg can be called before the PMU driver has
received and processed the INIT message from the PMU. If change
ensures that the ELPG ref-count has been initialized to zero
before that can happen.

Bug 200016313
Bug 200055546

Change-Id: Ic80ec1ee69b1eb0499effb1abf556f78cb041f5e
Signed-off-by: Neil Gabriel <ngabriel@nvidia.com>
Reviewed-on: http://git-master/r/431927
Reviewed-on: http://git-master/r/436302
(cherry picked from commit dad127648262a76180259525ac660ffa8307f69b)
Reviewed-on: http://git-master/r/655950
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agoKernel: ar0330: add 960p resolution
Ming Wong [Tue, 2 Dec 2014 23:20:25 +0000]
Kernel: ar0330: add 960p resolution

Bug 1552628

Change-Id: I90fdbb99bcfb2c20ed1fa0125af6a999bad7b4fc
Signed-off-by: Ming Wong <miwong@nvidia.com>
Reviewed-on: http://git-master/r/658630
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>
Tested-by: Kamal Balagopalan <kbalagopalan@nvidia.com>

4 years agoarm: tegra: disable pinmux input clamping
Ximing Chen [Thu, 18 Dec 2014 11:15:46 +0000]
arm: tegra: disable pinmux input clamping

Pinmux global control could be configured CLAMP_INPUTS_WHEN_TRISTATED
in bootloader/U-Boot, here is to disable it.

Bug 1551864

Change-Id: If30042237ff4ce8c68ff840b11f438d333285723
Signed-off-by: Ximing Chen <ximingc@nvidia.com>
Reviewed-on: http://git-master/r/665717
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agotegra: dc: Check DC max pixel clock supported
Pankaj Dabade [Fri, 19 Dec 2014 06:32:40 +0000]
tegra: dc: Check DC max pixel clock supported

Check max clock supported by DC before programming it with
that mode. If the requested pixel clock is greater than the
maximum supported then fall back to default mode: 640x480.

Bug 200031813

Change-Id: Icf1f91fe36e29f2c8c6aefe34d3952948743c3a8
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/666089
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agotegra: jetson: Add support for flash module.
Jitendra Kumar [Wed, 17 Dec 2014 06:45:03 +0000]
tegra: jetson: Add support for flash module.

Bug 200062768

Change-Id: I18211dfd4735c868a03bbc62d7f9cea4d0d1af05
Signed-off-by: Jitendra Kumar <jitendrak@nvidia.com>
Reviewed-on: http://git-master/r/662717
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoarm: tegra12: support for embedded 0x80 SKU
Bibek Basu [Fri, 28 Nov 2014 09:05:35 +0000]
arm: tegra12: support for embedded 0x80 SKU

Added DVFS support for CD575MI SKU 0x80
CPU DVFS: Max Freq 2116Mhz. Switch to PLLX below 0 DegC
          and fixed voltage
SOC DVFS: Vmax @ 1100mv constant below 0 DegC
          EMC dvfs max freq 924Mhz
GPU DVFS: Max Freq 924Mhz and thermal bump up of voltage
          by 50mv below 0 DegC. Max gpu freq below 0degC
  is 852Mhz

Bug 1563635

Change-Id: Ic55654c36ed39b96a1262b7243a51d8eaad1b894
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/657110
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agomedia: tegra_camera: correct the return value of vi2_capture_start
Kassey Li [Tue, 25 Nov 2014 20:08:57 +0000]
media: tegra_camera: correct the return value of vi2_capture_start

return the status of nvhost_syncpt_wait_timeout_ext
in vi2_capture_start.

Bug 1583009

Change-Id: I2b2ecaf868d0a05e2fa46b23e7eb40ee76aea380
Signed-off-by: Kassey Li <kasseyl@nvidia.com>
Reviewed-on: http://git-master/r/655521
Reviewed-by: Bryan Wu <pengw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoata: ahci: enable devsleep only for m-sata
Preetham Chandru R [Thu, 11 Dec 2014 05:02:21 +0000]
ata: ahci: enable devsleep only for m-sata

enable devsleep only for m-sata connectors

Bug 1557711

Change-Id: If203e09ec005022e28aa2c4d7ac3816b83419c14
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/662454
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoARM: dts: tegra: add sata connector property node
Preetham Chandru R [Thu, 11 Dec 2014 04:58:49 +0000]
ARM: dts: tegra: add sata connector property node

Bug 1557711

Change-Id: I25dd3b4efb8e25c010f0173b8509785ebb9a9a3d
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/662418
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agopcie: tegra: boost emc frequency for gen1 and gen2
Jeetesh Burman [Thu, 11 Dec 2014 11:10:54 +0000]
pcie: tegra: boost emc frequency for gen1 and gen2

12MHz frequency for emc is not sufficient in case of high data
transfer using PCIE, hence need to increase emc frequency for
gen1 and gen2 pcie devices to 102MHz and 508MHz respectively.

Bug 1566598

Change-Id: I82c5592dc232ba32eaf6ed959ff78a9966dc6ff1
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/663267
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Vidya Sagar <vidyas@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agogpu: nvgpu: update regops whitelist
Matt Craighead [Fri, 12 Dec 2014 20:19:59 +0000]
gpu: nvgpu: update regops whitelist

Remove an undesired register from the regops whitelist.

Bug 1589712

Change-Id: I76e8ff1f4b68d6d5ce2c11adc08d984df7883e5e
Signed-off-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-on: http://git-master/r/663371
(cherry picked from commit 573a71d052ac18d34b5f4e984f8684cedea0396d)
Reviewed-on: http://git-master/r/663998
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoSATA: Add Port Multiplier support
Ximing Chen [Tue, 26 Aug 2014 11:40:04 +0000]
SATA: Add Port Multiplier support

Current SATA controller configuration disables PM.
This CL is to enable it.
Support for direct SATA devices has no change.

Bug 1544067

Change-Id: I8f5e2161b687e07608228b9aafb7018808fe0203
Signed-off-by: Ximing Chen <ximingc@nvidia.com>
Reviewed-on: http://git-master/r/488162
(Cherry-picked from commit 9a2e7092d0d4977ebbb296b3f1352e6847a2496c)
Reviewed-on: http://git-master/r/493955
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoARM: tegra12: update pinmux for jetson-tk1
Bibek Basu [Tue, 25 Nov 2014 06:22:10 +0000]
ARM: tegra12: update pinmux for jetson-tk1

Update pinmux for jetson-tk1 based on
Jetson_TK1_customer_pinmux.xlsm V08

Bug 1551864

Change-Id: I3caee3e1485c95ff1a72b43529aa3c105397b5ac
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/655141
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoarm: tegra12: enable gpu edp capping for jetson
Bibek Basu [Mon, 27 Oct 2014 08:34:43 +0000]
arm: tegra12: enable gpu edp capping for jetson

Enable GPU edp capping for jetson-tk1.Also
update the max_cpu_current and max_gpu_current for
PM375

Bug 1563635

Change-Id: I165440959ba0f23d102f1d89a6c6e9191329305d
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/590332
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoarm: tegra12: add support for 0x80 embedded SKU
Bibek Basu [Wed, 15 Oct 2014 12:07:04 +0000]
arm: tegra12: add support for 0x80 embedded SKU

Added DVFS support for CD575MI SKU 0x80 always on personality
CPU DVFS: Max Freq 1912Mhz. Switch to PLLX below 0 DegC
          and fixed voltage
SOC DVFS: Vmax 1000mv constant. Lesser freq below 0 DegC
          EMC dvfs max freq 792Mhz
GPU DVFS: Max Freq 756Mhz and thermal bump up of voltage
          by 50mv below 0 DegC
Bug 1563635

Change-Id: Ifa66f4d9905be120a3534acd8f3ab9c2b58eea37
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/557951
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agomedia: tegra: nvavp: change prints to dev_dbg
Naveen Kumar S [Thu, 20 Nov 2014 05:48:24 +0000]
media: tegra: nvavp: change prints to dev_dbg

Changing dev_info prints to dev_dbg to avoid them from being
printed repeatedly.

bug 1506870

Change-Id: I4a5cabbcea37556271d5afe6f1d367f3f035989b
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/606666
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

4 years agoARM: tegra: fix max freq selection l4t/l4t-r21.2 tegra-l4t-r21-21.2
Bibek Basu [Thu, 27 Nov 2014 04:40:36 +0000]
ARM: tegra: fix max freq selection

Remove check for required mV less than max mV
because required mV for pllX is different from
dfll

Bug 200059817

Change-Id: Idb34e60479922bdc2913166447d47c5553eafb71
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/656475
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoARM: tegra: pinmux: correct clk3 & pcc1 group
Bibek Basu [Tue, 25 Nov 2014 04:38:37 +0000]
ARM: tegra: pinmux: correct clk3 & pcc1 group

pcc1 & clk3_req_pee1 pins are moved to correct group

Bug 1551864

Change-Id: Icf106aac866eec02afe7e703f879e5e7f6d722be
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/655140
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoarm: tegra12: add support for CD575M 24x7 Chip
Bibek Basu [Thu, 6 Nov 2014 11:04:09 +0000]
arm: tegra12: add support for CD575M 24x7 Chip

Added DVFS support for CD575M Always on behaviour.
With this personality configuration for the chip,the
lifetime of the chip increases to 5 Yrs
Operating Temp : -25 to 105 degC
CPU DVFS: Max Freq 1938Mhz. Max Voltage 1.12V
SOC DVFS: Max Voltage0 1.01V EMC dvfs max freq 792Mhz
GPU DVFS: Max Freq 804Mhz and Ma Voltage 1.09V

Bug 1563635

Change-Id: If7fec38b83ae4de8c5435006207fa3cf717384c0
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/594855
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoRevert "arm: tegra: usb: enable unaligned dma buf support"
Bibek Basu [Wed, 19 Nov 2014 04:39:00 +0000]
Revert "arm: tegra: usb: enable unaligned dma buf support"

This reverts commit 1f73f964718a8752dc285f401749178abc6e3038.
Bug 200055390
Bug 200046201
Bug 200024046

Change-Id: Id97f2e7fde800b3c484aa1e117eea530884922a9
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/605957
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agomedia: tegra_camera: bypass pixel transform
Bryan Wu [Mon, 17 Nov 2014 19:39:35 +0000]
media: tegra_camera: bypass pixel transform

Disable pixel transform for our L4T/V42L use case.
This patch also add some missing settings for CSI-B.

Bug 1579773

Change-Id: I0f7d81799e5edcae80329d9bdf3d5c56fa9c295d
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/604312
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agokernel: driver: modify ar0330 power sequence
Ming Wong [Sat, 8 Nov 2014 01:35:31 +0000]
kernel: driver: modify ar0330 power sequence

Bug 1552628
Bug 1576621

Change-Id: Icc881724f0e4e5c0346aa44ffeb80dc8d498919c
Signed-off-by: Ming Wong <miwong@nvidia.com>
Reviewed-on: http://git-master/r/598929
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoarm64: boot: dts: Change tegra132-jetson Model
Mike Thompson [Thu, 23 Oct 2014 00:57:30 +0000]
arm64: boot: dts: Change tegra132-jetson Model

Change Tegra132 Jetson Model to jetson_t132

Bug 1569387

Change-Id: I67e97f821306b802aaaa475efc690c08926be556
Signed-off-by: Mike Thompson <mikthompson@nvidia.com>
Reviewed-on: http://git-master/r/562627
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agoarm: tegra12: mc: disable vpr dec error interrupts
Krishna Reddy [Wed, 24 Sep 2014 17:40:59 +0000]
arm: tegra12: mc: disable vpr dec error interrupts

Disable vpr dec error interrupts to avoid spurious
mc error messages, which are result of speculative
reads from cpu.

Bug 1550455

Change-Id: I1ea04aec92ba1976dfadbda2e4b1ee7223591296
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/538497
(cherry picked from commit 72d7f6754bae3312140a16626225c3fd14d2e0fb)
Reviewed-on: http://git-master/r/595094
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

4 years agoandroid: lowmemkiller: don't consider CMA memory as free
Krishna Reddy [Sat, 27 Sep 2014 00:14:03 +0000]
android: lowmemkiller: don't consider CMA memory as free

As CMA memory can only be used for Movable allocations,
Android lowmemkiller shouldn't consider this as free memory
for lowmem kill decisions.  If it considered as free memory,
It can delay the killing of apps and lead to slowness of
system as memory allocations start waiting for kswap
daemon to free up the memory.

Bug 1550455

Change-Id: Ica8da48ef48912d89cde526f0ba3676df6ab10f1
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/542209
(cherry picked from commit 24a7d99f9117e250dbf276d453c336b31dc2c127)
Reviewed-on: http://git-master/r/592901
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agovideo: tegra: dc: increase V_REF_TO_SYNC
Jon Mayo [Tue, 22 Jul 2014 17:50:29 +0000]
video: tegra: dc: increase V_REF_TO_SYNC

Increase V_REF_TO_SYNC value to the maximum size. This adjusts where the flip
activation occurs and permits spool up to include more of the front porch
time.

Bug 1528419

Change-Id: I981d3ffca49c694acf0806279bcf87d92084169c
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/440817
(cherry picked from commit 1c9c042b31735bb1b04780037ba5d7b6aee9fcd2)
Reviewed-on: http://git-master/r/441378
(cherry picked from commit 24afa49b1c471bdd90f06a5cee840d8101761b31)
Reviewed-on: http://git-master/r/592932
Reviewed-by: Automatic_Commit_Validation_User

4 years agofs: inode: don't use movable allocations
Krishna Reddy [Tue, 23 Sep 2014 22:15:05 +0000]
fs: inode: don't use movable allocations

Movable allocation requests can get CMA memory.
CMA memory is mapped as non-cached normal memory.
f2fs code can perform test_bit operations on the memory
allocated, which inturn uses ldr/str exclusive instuctions
on ARM. ldr/str exclusive instructions casue unhandled
exceptions and kernel panics.

[ 6934.858377] Unhandled fault: unknown 53 (0x96000035) at 0xffffffc0699c1000
[ 6934.866608] Internal error: : 96000035 [#1] PREEMPT SMP
[ 6934.871883] CPU: 1 PID: 666 Comm: LazyTaskWriterT Tainted: G        W    3.10.40-g3bdd559-dirty #39
[ 6934.880975] task: ffffffc06079a040 ti: ffffffc02a7bc000 task.ti: ffffffc02a7bc000
[ 6934.888565] PC is at test_and_clear_bit+0x14/0x40
[ 6934.893304] LR is at f2fs_delete_entry+0xd8/0x28c

Bug 1550455

Change-Id: I9645296a052301820063b9737bf06c8c9e059986
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/533926
(cherry picked from commit 2bae286b8f91c06f384749120596532af9da04ad)
Reviewed-on: http://git-master/r/592900
GVS: Gerrit_Virtual_Submit

4 years agoRevert "lowmemorykiller: zram space available should be accounted"
Krishna Reddy [Wed, 1 Oct 2014 14:47:31 +0000]
Revert "lowmemorykiller: zram space available should be accounted"

This reverts commit b0a90d9e2cbca96e755f7e385665f1be97fa9a69.

This patch causes slow responsiveness of apps as apps would start
waiting for kswap daemon to free memory when memory reaches
to critically low.

Change-Id: I9b6ed33d93a207c93560443152dfb0231215d31f
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/552601
(cherry picked from commit 5c4229269e32b817feb906953ad2221f4aaa8ed1)
Reviewed-on: http://git-master/r/592899
GVS: Gerrit_Virtual_Submit

4 years agomm: compaction: don't restrict page isolation during CMA page migration
Krishna Reddy [Wed, 3 Sep 2014 19:16:07 +0000]
mm: compaction: don't restrict page isolation during CMA page migration

don't limit the number of pages isolated during CMA page migration.

Bug 1550455

Change-Id: Ib6edcb090b30212302543098a05b85e669ade45d
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/495283
(cherry picked from commit ec9ed2b5c4418c658fe2a3b00b0baf6179b3b452)
Reviewed-on: http://git-master/r/592898
GVS: Gerrit_Virtual_Submit

4 years agomm: avoid allocating CMA memory for stack
Krishna Reddy [Wed, 3 Sep 2014 21:07:41 +0000]
mm: avoid allocating CMA memory for stack

allocation of CMA memory for user stack would cause
permanent migration failures and result in CMA
allocation failures.

Bug 1550455

Change-Id: I75ac13416dbcf1810c89641cefdd0d56726cc36a
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/495322
(cherry picked from commit 3c59fb443605d5975b9d8e250c4ca52ae1650fe5)
Reviewed-on: http://git-master/r/592897
GVS: Gerrit_Virtual_Submit

4 years agoarm: tegra: retry on vpr update config failure
Krishna Reddy [Thu, 28 Aug 2014 22:06:27 +0000]
arm: tegra: retry on vpr update config failure

sleep and retry on vpr update config on failure.

Bug 1517584

Change-Id: Ib3320037aba651de56d2f9f9efcb2cfb9bbdca0a
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/494000
(cherry picked from commit 98bf6523b1b2ddc54529aa392a6ec5f111f17c4b)
Reviewed-on: http://git-master/r/592896
GVS: Gerrit_Virtual_Submit

4 years agoconfig: add ar0330 support
Ming Wong [Thu, 23 Oct 2014 00:28:01 +0000]
config: add ar0330 support

Bug 1552628

Change-Id: I959eb0e54966d0ad163920a187e37b0b76142433
Signed-off-by: Ming Wong <miwong@nvidia.com>
Signed-off-by: Mihir Thakkar <mthakkar@nvidia.com>
Reviewed-on: http://git-master/r/562206
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agokernel: add ar0330 support
Ming Wong [Tue, 23 Sep 2014 22:33:11 +0000]
kernel: add ar0330 support

add support for dual ar0330

Bug 1552628

Change-Id: I6ccd6ea0886f17710de3e241c408788cc608dce9
Signed-off-by: Ming Wong <miwong@nvidia.com>
Reviewed-on: http://git-master/r/558147
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agodts: add ar0261 and ar0330
Ming Wong [Thu, 23 Oct 2014 16:38:39 +0000]
dts: add ar0261 and ar0330

Add ar0261 and ar0330 in the dts

Bug 1552628

Change-Id: I341c979f7980f3635b28cd24f2b2295375096430
Signed-off-by: Ming Wong <miwong@nvidia.com>
Reviewed-on: http://git-master/r/562569
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agogpu:nvgpu: update aelpg parameter
Mahantesh Kumbar [Tue, 12 Aug 2014 08:41:22 +0000]
gpu:nvgpu: update aelpg parameter

Updated aelpg parameter APCTRL_CYCLES_PER_SAMPLE_MAX_DEFAULT
default value to 200

Bug 1536384
Bug 200043556

Change-Id: I090e50d0025f16c006429455d161bee26fc64173
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: http://git-master/r/455440
(cherry picked from commit 4442b73ba0a9fb9d9d6c9c19b319146365ebfa96)
Reviewed-on: http://git-master/r/553687
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agotegra: JetsonTK1: Added NVD9A951 camera support
Tushar Khinvasara [Fri, 10 Oct 2014 11:08:59 +0000]
tegra: JetsonTK1: Added NVD9A951 camera support

Added NVD9A951 camera module support for Jetson TK1.

Bug 1359310

Change-Id: I5be95fdf16de00fe662f20f52ded9de16aa4aa4e
Signed-off-by: Tushar Khinvasara <tkhinvasara@nvidia.com>
Signed-off-by: Mihir Thakkar <mthakkar@nvidia.com>
Reviewed-on: http://git-master/r/555463
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoARM: tegra: laguna-erss: add camera module support
Shreshtha Sahu [Fri, 25 Jul 2014 13:51:05 +0000]
ARM: tegra: laguna-erss: add camera module support

Adds tegra124-pm359-camera-a00.dtsi file and
support for camera module NVD9A951 which consists of
imx135 sensor and dw9718 focuser.

Bug 1359310

Change-Id: I6b377255471566a1e95b2ace8c3f18c5aa230c3f
Signed-off-by: Tushar Khinvasara <tkhinvasara@nvidia.com>
Signed-off-by: Mihir Thakkar <mthakkar@nvidia.com>
Reviewed-on: http://git-master/r/555462
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoARM: tegra: ardbeg: add 2.8V supply for dw9718
Shreshtha Sahu [Fri, 25 Jul 2014 13:45:24 +0000]
ARM: tegra: ardbeg: add 2.8V supply for dw9718

Add 2.8V supply required by dw9718.

Bug 1359310

Change-Id: I5c2a73e69f321793db819618a9bab62d2935e353
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Signed-off-by: Mihir Thakkar <mthakkar@nvidia.com>
Reviewed-on: http://git-master/r/555461
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Tushar Khinvasara <tkhinvasara@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agomedia: tegra: add regulator vana for dw9718
Shreshtha Sahu [Fri, 25 Jul 2014 13:34:35 +0000]
media: tegra: add regulator vana for dw9718

add regulator vana for dw9718

Bug 1259310

Change-Id: I654669b1f02af9b7afbf51e8077a4f8324ead403
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Signed-off-by: Mihir Thakkar <mthakkar@nvidia.com>
Reviewed-on: http://git-master/r/555460
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Tushar Khinvasara <tkhinvasara@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agotegra: hdmi: Add enable functionality to hotplug
Pankaj Dabade [Fri, 17 Oct 2014 07:08:57 +0000]
tegra: hdmi: Add enable functionality to hotplug

Function handle_enable_l will notify virtual terminals about
new hotplug, triggering notifier call chain to blank/unblank
sequence.

Bug 200045281

Change-Id: Iaa6cbf9ca201dd7ac5f390b79af1dae5eac8b3b0
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/558798
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar S <nkumars@nvidia.com>
Tested-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-by: Jeffery Yu <jefferyy@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoarm: tegra12: Enable CPU CVB support
sreenivasulu velpula [Fri, 11 Jul 2014 11:57:25 +0000]
arm: tegra12: Enable CPU CVB support

- Add cl-dvfs platform data
- Add function call to get cpu clock switch cooling
  device trip points.

Bug 1563635

Change-Id: I07e0a9e8d170543906f91979fb35b98c02fe18cb
Signed-off-by: sreenivasulu velpula <svelpula@nvidia.com>
Reviewed-on: http://git-master/r/437195
(cherry picked from commit 55321cec6a72dd9b2e0ad6fb94ff2cc42937a14a)
Reviewed-on: http://git-master/r/559393
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoarm: t12: dvfs: Add CPU CVB entries
sreenivasulu velpula [Fri, 18 Jul 2014 09:06:12 +0000]
arm: t12: dvfs: Add CPU CVB entries

- Add CPU  CVB entries for automotive speedo
- Install clock switch cooling device for automotive speedo

Bug 1563635

Change-Id: Ib318f75ade00d6d174996dbc1eb8e02ae1a2a470
Signed-off-by: sreenivasulu velpula <svelpula@nvidia.com>
Reviewed-on: http://git-master/r/437194
(cherry picked from commit f0cadfa72c91a055b6ce79f89d0c99b7136a17f5)
Reviewed-on: http://git-master/r/559392
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoarm: t12: clock: Change use_dfll behaviour
sreenivasulu velpula [Fri, 18 Jul 2014 09:33:40 +0000]
arm: t12: clock: Change use_dfll behaviour

- If CONFIG_TEGRA_USE_DFLL_RANGE is set to '3'

  then do not allow use_dfll sysfs to control
  dfll range.

  AND

  during kernel init also, by default dfll
  range becomes 0.

Bug 1563635

Change-Id: I886a6ca365a1ee0fd7619312eca1ccd17d73222b
Signed-off-by: sreenivasulu velpula <svelpula@nvidia.com>
Reviewed-on: http://git-master/r/439769
(cherry picked from commit ce3cd984f88d19f5d929c0acbe509486fddcb8bc)
Reviewed-on: http://git-master/r/559391
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoarm: tegra: dvfs: Add cpu clock switch cdev
sreenivasulu velpula [Fri, 18 Jul 2014 09:00:47 +0000]
arm: tegra: dvfs: Add cpu clock switch cdev

- Add cpu clock switch cooling device to switch
  between PLL and DFLL  dynamically based
  on temperature.

Bug 1563635

Change-Id: I098d41eb64ec53a284db310131c4f604c808645c
Signed-off-by: sreenivasulu velpula <svelpula@nvidia.com>
Reviewed-on: http://git-master/r/439762
(cherry picked from commit 5cc4e0b770331dc2096d69b96ee8d27e585d8cde)
Reviewed-on: http://git-master/r/559390
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoarm: tegra: clock: Add dfll clock range control
sreenivasulu velpula [Fri, 18 Jul 2014 07:19:01 +0000]
arm: tegra: clock: Add dfll clock range control

Add function tegra_clk_dfll_range_control to
change dfll range for any value of 0, 1 or 2.

Bug 1563635

Change-Id: I0b76fd48d102e2e702d88749d71c1bd65a610611
Signed-off-by: sreenivasulu velpula <svelpula@nvidia.com>
Reviewed-on: http://git-master/r/439761
(cherry picked from commit 465c6b2738b1b4f7b8a6c3672c47e8d1c5157021)
Reviewed-on: http://git-master/r/559389
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoarm: tegra: Modify TEGRA_USE_DFLL_RANGE
sreenivasulu velpula [Fri, 18 Jul 2014 07:11:29 +0000]
arm: tegra: Modify TEGRA_USE_DFLL_RANGE

Change TEGRA_USE_DFLL_RANGE to add one more range value
  "3" - DFLL usage is controlled by thermal cooling device

Bug 1563635

Change-Id: Ib8443e0f9574632e0e2370618175fd40132a4488
Signed-off-by: sreenivasulu velpula <svelpula@nvidia.com>
Reviewed-on: http://git-master/r/439760
(cherry picked from commit 930c190253d3253a632d8a3c0e12c08a2e490eef)
Reviewed-on: http://git-master/r/559388
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoarm: tegra12 :emc: update dvfs table for Jetson-TK1
Bibek Basu [Mon, 15 Sep 2014 06:09:48 +0000]
arm: tegra12 :emc: update dvfs table for Jetson-TK1

Updated dvfs table for Jetson-tk1 2GB

Bug 200028708

Change-Id: Ia6000916ca7388b6c5f17af6f399a4b11a0ed650
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/495978
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoarm: configs: L4T config for intel7260 wireless
Philip Rakity [Wed, 22 Oct 2014 09:01:30 +0000]
arm: configs: L4T config for intel7260 wireless

bug  1567414

Change-Id: I9f41f991940016ce6b66777ec10703acef1c96b5
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/561969
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agogpu: nvgpu: gk20a: check ctx valid bit
Mayank Kaushik [Fri, 5 Sep 2014 01:35:25 +0000]
gpu: nvgpu: gk20a: check ctx valid bit

When determining the chid for the current context, first check
the ctx valid bit.

Bug 1485555

Change-Id: I6c3096d800a6cef38b656d525437a2c4f8b45774
Signed-off-by: Mayank Kaushik <mkaushik@nvidia.com>
Reviewed-on: http://git-master/r/496140
(cherry picked from commit 20a7a9635e9f969782da6695d99bc99c4ed8fa32)
Reviewed-on: http://git-master/r/555054
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agovideo: tegra: host: Fix channel refcount issues
Arto Merilainen [Mon, 14 Jul 2014 13:43:37 +0000]
video: tegra: host: Fix channel refcount issues

This patch fixes few possible races in channel initialisation and
deinitialisation:
- If two channel initialisations were running concurrently for
the same device and the first initialisation failed, we potentially
gave an uninitialised channel to the second requester
- If putchannel() triggered uninitialisation, we were still able
to give the channel in getchannel().

Bug 200013323

Change-Id: I99fa726db99fbb98401d5703cc2572131907f726
(cherry picked from commit 4fb20fef4a9eaf222c3f6d4c83fcb495f207c478)
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/498509
Reviewed-on: http://git-master/r/538725
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>

4 years agovideo: tegra: host: Fix debug dump
Arto Merilainen [Wed, 28 May 2014 06:00:43 +0000]
video: tegra: host: Fix debug dump

Currently the debug dump routine is vulnerable against tricky races.
As normal operation is more important than getting the full dump
always, this patch reworks mutex usage in debug dump routine:

 - lock the channel list is now before going through channels. This
   ensures that channel states remain valid even if some of the
   channels were finished during dump.
 - this patch modifies mutex_lock() calls to mutex_trylock() calls.
   This ensures that the function call cannot block.

Bug 1517429

Change-Id: Idf170de196bcededbaec6c9031d268cf2d8bc35d
(cherry picked from commit 544cbc483b973ca1c78173edcf2072434c02b5dd)
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/498508
Reviewed-on: http://git-master/r/538724
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>

4 years agovideo: tegra: host: revise channel refcnt API's
Shridhar Rasal [Sun, 29 Jun 2014 03:47:52 +0000]
video: tegra: host: revise channel refcnt API's

Use only one API to subtract channel refcnts.
To check unbanalaced channel refcnt add WARN_ON when count
goes below zero.
Print error number when channel unmap fails.

Bug 1526504

Change-Id: If88f028a44c9b796d8eaae4affcd0026758cfbe8
(cherry picked from commit f98ce1fc2066e2309af2ef7a52801abadbd40f00)
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/496479
Reviewed-on: http://git-master/r/538723
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agovideo: tegra: host: simplify channel map usage
Shridhar Rasal [Tue, 24 Jun 2014 09:45:05 +0000]
video: tegra: host: simplify channel map usage

Use array instead list to hold all channels.
Remove unused references.

Bug 1526504

Change-Id: I49596238d38d5aa78ff32a59b8c0f2c116136a09
(cherry picked from commit 93d7a5f52d3f3aad28187aed15877994d8781cbc)
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/496478
Reviewed-on: http://git-master/r/538722
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoarm: tegra12_defconfig: set 3GB-16MB task size daily-2014.11.07.1_l4t/l4t-r21 tegra-l4t-r21.1
Zheng Liu [Mon, 6 Oct 2014 23:49:08 +0000]
arm: tegra12_defconfig: set 3GB-16MB task size

The previously used 3GB-24MB task size caused relocation failures when
loading kernel modules. This happened because part of the module loading
area got beyond the 32MB relocation range from kernel .text segment.
This problem is ARM32-specific and does not affect ARM64.

Bug 1489463

Change-Id: I255eb605988b3095d49f05d4d4b199bf2c796bfd
Signed-off-by: Zheng Liu <zhliu@nvidia.com>
Reviewed-on: http://git-master/r/553996
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>

4 years agoarm: tegra12_defconfig: make audio drivers inbuilt
Zheng Liu [Tue, 7 Oct 2014 18:17:49 +0000]
arm: tegra12_defconfig: make audio drivers inbuilt

Revert previous changes to modularize the audio drivers. The module
probe/remove paths of these drivers are untested and buggy. Make these
drivers built-in until the bugs are worked out, and schedule allows
for thorough testing.

Bug 1536426

Change-Id: Ic1698e7205b1d97461051cd1e25a513dac9649fe
Signed-off-by: Zheng Liu <zhliu@nvidia.com>
Reviewed-on: http://git-master/r/554287
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agoASoC: tegra: fix avp module remove
Shreshtha SAHU [Tue, 7 Oct 2014 10:07:45 +0000]
ASoC: tegra: fix avp module remove

- avp module remove should not try to release client
  if avp pcm open was never called and client was
  never allocated

- avp module remove should deregister offload ops

Bug 200043253

Change-Id: I11a6d65afab4d88aa5669553809e99fd69cfd000
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/554153
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Zheng Liu <zhliu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agommc: sdhci: tegra: initialize local variable
Bibek Basu [Mon, 29 Sep 2014 07:28:00 +0000]
mmc: sdhci: tegra: initialize local variable

Initialize uninitialized variable
vmin_tap_hole & vmax_tap_hole

Bug 200042035

Change-Id: I5e9303f2b585423d936b289a59228028275ec5ec
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/542582
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agofirmware: enable default printing of direct loading
Bibek Basu [Mon, 29 Sep 2014 07:23:00 +0000]
firmware: enable default printing of direct loading

Move pr_dbg to pr_info for direct firmware loading.

Bug 200026940

Change-Id: I617fde8aac85be01857b963c0e18ae6cf22aa444
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/542581
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoarm: tegra12_defconfig: max98090 as loadable module
Shreshtha SAHU [Wed, 24 Sep 2014 15:37:42 +0000]
arm: tegra12_defconfig: max98090 as loadable module

Bug 1550880

Change-Id: I6278cde7643dd3b298d72c54497cb5274a5de544
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/551903
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agosoc: codecs: max98090: free_irq during module remove
Shreshtha SAHU [Wed, 24 Sep 2014 15:33:35 +0000]
soc: codecs: max98090: free_irq during module remove

Bug 1550880

Change-Id: I54697780893c17a1c117483fd9bf271ba31209d4
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/551902
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agosoc: tegra: max98090: laguna: fix error return paths
Shreshtha SAHU [Wed, 24 Sep 2014 15:21:29 +0000]
soc: tegra: max98090: laguna: fix error return paths

- Remove switch_dev_unregister and call tegra_asoc_switch_unregister
instead in error return path corresponding to tegra_asoc_switch_register.

- Skip max97236 registration for laguna erss platorm.

Issues surfaced out on making max98090 as removable KO module.

Bug 1550880

Change-Id: I6a6c0185a3980efab3592f0733bda214aac4fc81
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/551901
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoasoc: rt5639: fix missing regmap_exit during remove
Shreshtha SAHU [Mon, 29 Sep 2014 11:19:21 +0000]
asoc: rt5639: fix missing regmap_exit during remove

without regmap_exit in remove, next modprobe of
modprobe used to complain of
"Failed to create debugfs directory"
due to stale debugfs directory.

Bug 200038898

Change-Id: Ie6373f40b50c1307ee7d114dc0f44164c4b426eb
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/542646
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agogpu: nvgpu: Increase PBDMA timeout
Terje Bergstrom [Fri, 15 Aug 2014 07:44:51 +0000]
gpu: nvgpu: Increase PBDMA timeout

PBDMA timeout can cause stale data in FIFO. Default value equals 1ms.
Increase it to max.

Bug 1537636

Change-Id: I1c6c6b10abaece3a64b77b9b3ef77ff726ff67cf
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/457047
(cherry picked from commit f516652f567a44e2e1c6313dccd3dc80172a980f)
Reviewed-on: http://git-master/r/457067
(cherry picked from commit f5219cf5888502de3f6cabb2db3e8968b6d20b7c)
Reviewed-on: http://git-master/r/504534
Reviewed-by: Automatic_Commit_Validation_User

4 years agomedia: tegra_v4l2_camera: set clock rate for pll_d
Bryan Wu [Wed, 27 Aug 2014 23:31:13 +0000]
media: tegra_v4l2_camera: set clock rate for pll_d

Test pattern generator in VI needs PLL_D running at certain clock
rate, then CSI clock is a child of PLL_D can get the right clock
for operation.

If DC disable DSI and set PLL_D as a very low frequency and VI driver
forgets to set PLL_D rate back, test pattern generator won't work.

This patch will set PLL_D as 927M when we do test pattern generator
testing.

Bug 1515755

Change-Id: I8fd27d193a436e1057ce2bce8f8153630dc5cdce
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/489043
(cherry picked from commit e09393ad2a02309f63a3baeb567460e1e2f79cd9)
Reviewed-on: http://git-master/r/498938
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agoARM: ardbeg: enable imx135 V4L2 sensor driver
Bryan Wu [Sat, 15 Feb 2014 01:22:06 +0000]
ARM: ardbeg: enable imx135 V4L2 sensor driver

Bug 1380143

Change-Id: I9292465b0652c5287db6bbc97a08c76c1ad48484
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/337471
(cherry picked from commit e83a8827e9888f567a5859ecac6a1041edcf0db9)
Reviewed-on: http://git-master/r/498937
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agomedia: tegra_camera: vi2: support for real sensor
Bryan Wu [Wed, 20 Nov 2013 00:59:23 +0000]
media: tegra_camera: vi2: support for real sensor

Add code to support RAW10 capture from real sensor like IMX135.
Add flag to skip register program from second frame.
Fix sync point operations.

Bug 1380143

Change-Id: I19bcd17ddfba0e16b4b3a34ae8a4e5a0119e85e1
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/337470
(cherry picked from commit ff1055fa436ffb5c1d57eee2e09c17578774d65f)
Reviewed-on: http://git-master/r/498936
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agomedia: soc_camera: add imx135 sensor driver
Bryan Wu [Tue, 19 Nov 2013 23:51:20 +0000]
media: soc_camera: add imx135 sensor driver

Sony IMX135 camera sensor can be found on Ardbeg/Laguna. This patch
introduced sensor driver for imx135 using soc_camera interface.

Bug 1380143

Change-Id: Ifa0becf1ec2d9931ebf9ea3a4e9ea3e1013a9e36
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/337469
(cherry picked from commit 94a04c2c9b614519aab6f718d60bcf1d8032aa8f)
Reviewed-on: http://git-master/r/498935
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agovideo: tegra: nvmap: remove support for Deprecated GET_ID/FROM_ID ioctl's
Maneet Singh [Fri, 12 Sep 2014 03:12:33 +0000]
video: tegra: nvmap: remove support for Deprecated GET_ID/FROM_ID ioctl's

Remove support and add warning message for deprecated IOCTL's -
NVMAP_IOC_FROM_ID and NVMAP_IOC_GET_ID. These ioctl calls
are deprecated by corresponding FD ioctl calls.

Bug 1553082

Change-Id: I3cd531422293f19496687f346692fa91ebe58a40
Signed-off-by: Maneet Singh <mmaneetsingh@nvidia.com>
Reviewed-on: http://git-master/r/498045
(cherry picked from commit 420dce0a99231453ebbd091f110d0de816e4885e)
Reviewed-on: http://git-master/r/538987
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agovideo: tegra: nvmap: fix use-after-free race condition
Maneet Singh [Fri, 12 Sep 2014 03:12:33 +0000]
video: tegra: nvmap: fix use-after-free race condition

Incremented nvmap_handle ref count in utility function
nvmap_get_id_from_dmabuf_fd() before the function release reference
to dma buffer. This is required to avoid race conditions in nvmap
code where nvmap_handle returned by this function could be freed
concurrently while the caller is still using it.

As a side effect of above change, every caller of this utility
function must decrement nvmap_handle ref count after using the
returned nvmap_handle.

Bug 1553082

Change-Id: Iffc2e5819f8b493d5ed95a9d0c422ccd52438965
Signed-off-by: Maneet Singh <mmaneetsingh@nvidia.com>
Reviewed-on: http://git-master/r/498135
(cherry picked from commit afddea745cc4f4a824be501ecbbb50f55e7e6f04)
Reviewed-on: http://git-master/r/538986
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agovideo: tegra: nvmap: cleanup redundant functions
Maneet Singh [Fri, 12 Sep 2014 00:53:42 +0000]
video: tegra: nvmap: cleanup redundant functions

Removed redundant function unmarshal_user_id() and replaced it with
unmarshal_user_handle() which it internally calls without any other
changes.

Bug 1553082

Change-Id: I7d998966c593f11a3322b0503ef11311fc1ae5e7
Signed-off-by: Maneet Singh <mmaneetsingh@nvidia.com>
Reviewed-on: http://git-master/r/498103
(cherry picked from commit 4880b6c2bdf5b10e4a71b5b79e7878343b9e7e3b)
Reviewed-on: http://git-master/r/538985
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agoARM: tegra12: add clock preinit code for U-Boot
Bryan Wu [Fri, 4 Apr 2014 20:52:26 +0000]
ARM: tegra12: add clock preinit code for U-Boot

U-Boot doesn't setup clock as NVTBoot or fastboot, so clocks need to
be preinit before our normal clock init.

Bug 1482099

Change-Id: I5ad8dc7e61f1ad4864410a808c41298a91c7198f
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/408427
(cherry picked from commit 6682ca58527e47fe6db40855d2deba48a6d321d3)
Reviewed-on: http://git-master/r/500873
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agoARM: tegra12: config: enable clock preinit code
Bryan Wu [Wed, 16 Apr 2014 22:56:36 +0000]
ARM: tegra12: config: enable clock preinit code

Enable clock preinit code by default for U-Boot.

Bug 1482099

Change-Id: I72fa1e9b45f580813846c7506efec5a03347efcd
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/408428
(cherry picked from commit 8f2ff20c410a8b7a25e4132e6a194117e4f74361)
Reviewed-on: http://git-master/r/500874
Reviewed-by: Winnie Hsu <whsu@nvidia.com>