]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/log
hercules2020/nv-tegra/linux-4.4.git
7 years agopcie: host: tegra: fix bus data memory permissions l4t/l4t-r27.1
Vidya Sagar [Fri, 6 Jan 2017 14:52:10 +0000 (20:22 +0530)]
pcie: host: tegra: fix bus data memory permissions

this patch removes privileged mode executable permission
for bus mapping data region to avoid any un-intentional
execution happening in kernel space from this region by
using pgprot_device(PAGE_KERNEL) which internally applies
both PTE_PXN and PTE_UXN flags.
Note:- user mode executable permission is already removed
for this region

Bug 1858964

Change-Id: Ia691dc95f5316088a768a8c05941798bf02468ea
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/1281369
(cherry picked from commit 7cc334339fb96320e45cd1c42ff476528d95d4a7)
Reviewed-on: http://git-master/r/1300540
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
7 years agoARM64: config: t18x: Enable USB_SERIAL and FTDI
Rohit Vaswani [Tue, 21 Feb 2017 23:19:58 +0000 (15:19 -0800)]
ARM64: config: t18x: Enable USB_SERIAL and FTDI

Enable USB SERIAL and FTDI defconfigs for L4T for enumerating
ttyUSB devices.

The boot.img/Image size increased by 121584 bytes.

Bug 1880030

Change-Id: Iafec436253613390026d82659c3a73e5c65b2ec4
Signed-off-by: Rohit Vaswani <rvaswani@nvidia.com>
Reviewed-on: http://git-master/r/1310331
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
7 years agoALSA: hda/tegra: use AZX_DCAPS_PM_RUNTIME flag for android
Ravindra Lokhande [Wed, 15 Feb 2017 09:15:25 +0000 (14:45 +0530)]
ALSA: hda/tegra: use AZX_DCAPS_PM_RUNTIME flag for android

Use AZX_DCAPS_PM_RUNTIME flag for HDA driver only for android.

Bug 1826800

Change-Id: I37c0bfd4848a55aa803c544ee362a4b463183a81
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/1305264
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Tested-by: Shaunak Gupte <shaunakg@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
7 years agoALSA: hda: allow pcm_open to be successful
Ravindra Lokhande [Tue, 7 Feb 2017 10:10:59 +0000 (15:40 +0530)]
ALSA: hda: allow pcm_open to be successful

Remove code to check for valid eld which causes pcm_open to fail if
no monitor is connected. Also remove condition which earlier allowed
pcm_open to succeed if atleast pcm capabilities are known from eld.

Bug 1826800

Change-Id: Id5768b61e3a1aa21c4485cb22169e94432daadf6
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/1300462
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
7 years agoisomgr: remove vi client
Krishna Sitaraman [Thu, 26 Jan 2017 01:43:18 +0000 (17:43 -0800)]
isomgr: remove vi client

All ISO bandwidth required by camera is reserved through the
TEGRA_ISO_CLIENT_TEGRA_CAMERA. VI client is not used by camera
software. This patch removes TEGRA_ISO_CLIENT_TEGRA_VI for t18x
and moves ISO bandwidth restriction on vi hardware to camera client.

Bug 200239357
Bug 1755923
Bug 200267652

Change-Id: I165bafee38e747db220ba8e33868481a487602e5
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/1294782
(cherry picked from commit af92b528061e728493a61237c0b65e768356120b)
Reviewed-on: http://git-master/r/1300487
Reviewed-by: Shubham Chandra <shubhamc@nvidia.com>
Tested-by: Shubham Chandra <shubhamc@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
7 years agopcie: host: tegra: fix remove/shutdown hook
Vidya Sagar [Fri, 10 Feb 2017 12:16:09 +0000 (17:46 +0530)]
pcie: host: tegra: fix remove/shutdown hook

PCIe platform device resources are freed if there
are no end point devices enumerated, hence, it is not
required to attempt to do it once again during shutdown
process. This patch takes care of that.

Bug 200278486

Change-Id: Ie7ee07ef96f5a8f26be664086ab2efe78110987a
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/1303015
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoxhci: prevent runtime suspend when process command
JC Kuo [Tue, 17 Jan 2017 09:26:18 +0000 (17:26 +0800)]
xhci: prevent runtime suspend when process command

When xhci driver queues a command to the controller, runtime suspend
should be avoided, otherwise, xhci driver might never see the command
completion (since controller is suspended).

This commit increases xhci controller's runtime PM usage count at the
time a new command is going to be queued, and decreases usage count
at the time receives the command completion.

Bug 200264294
Bug 200269133

Change-Id: I4cabdcde8ed35cadaf0f590b4af83d25c641ddde
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Signed-off-by: Allie Liu <alliel@nvidia.com>
Reviewed-on: http://git-master/r/1293603
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: WK Tsai <wtsai@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
7 years agopcie: host: tegra: add shutdown hook
Vidya Sagar [Wed, 8 Feb 2017 08:48:53 +0000 (14:18 +0530)]
pcie: host: tegra: add shutdown hook

adds shutdown hook to undo all the things
that were done during probe to leave hardware
in a sane state before shutting down the system

Bug 200268782

Change-Id: I2dd197128a0d107d42247aef23e6911667a18019
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/1301271
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
7 years agodefconfig: t186: Provide configs for GPU frequency table calculations
Rohit Vaswani [Thu, 2 Feb 2017 02:30:54 +0000 (18:30 -0800)]
defconfig: t186: Provide configs for GPU frequency table calculations

The GPU frequency table needs the configs to provide
values that are used as inputs to calculate the
frequency table in a platform independent way.
L4T needs the minimum frequency to be 140250000 and step
size to be 7 to generate the appropriate tables.

Bug 1869602

Change-Id: Ifee4e63245b51fd7ff2a119cbcc5f0918cff64e6
Signed-off-by: Rohit Vaswani <rvaswani@nvidia.com>
Reviewed-on: http://git-master/r/1297662
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
7 years agoarm64: kernel: set Debug Mask bit in disable_dbg
Sumit Gupta [Mon, 23 Jan 2017 17:21:50 +0000 (22:51 +0530)]
arm64: kernel: set Debug Mask bit in disable_dbg

disable_dbg macro is unmasking Debug Exception Mask bit which will
enable debug state instead of disabling. Changing "daifclr" to
"daifset" to mask debug bit for disabling debug state. This prevents
recursive entry at the Exception level that debug exceptions are
targeted to.

Bug 1860947

Change-Id: Ibda2796f252a48937cfd528efaaefd0408c69e9c
Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
Reviewed-on: http://git-master/r/1292571
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
7 years agonet: wireless: bcmdhd: protect platform driver probe from IFUP
Manikanta [Sat, 28 Jan 2017 12:17:52 +0000 (17:47 +0530)]
net: wireless: bcmdhd: protect platform driver probe from IFUP

Issue: Sequence of bcmdhd driver load;
- platform driver probe registers sdio client driver
- sdio client driver registers wlan0 interface
- After creating wlan0 interface, it will free resource
which includes but not limited to few structures,
turning OFF WiFi chip & switching mmc host to power save mode.
- sdio client driver returns back to platform driver probe,
which will set WiFi power state as OFF.

At same time network manager is trying bring up wlan0 interface,
which is causing multiple issues such as;
- Data abort because of freeing si_t structure memory
- mmc time out because setting mmc host in power save
- mmc time out because of mismatch in WiFi power state

Fix: Use mutex lock to protect platform driver probe from IFUP.

bug 200267444
bug 200273388

Change-Id: I532d51065cfe74b22804565cfa4b5c7aca139e23
Signed-off-by: Manikanta <mmaddireddy@nvidia.com>
Reviewed-on: http://git-master/r/1295667
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
7 years agommc: tegra: Change clock rate before enabling clock
Pavan Kunapuli [Tue, 3 Jan 2017 12:01:28 +0000 (17:31 +0530)]
mmc: tegra: Change clock rate before enabling clock

Frequency configuration should be done before enabling clock.
T186 SDMMC4 controller is the exception to this where clock
needs to be enabled for changing frequency. Added support to
take care of this condition.

Bug 200267453
Bug 200264911

Change-Id: I070ac7845f18740cd8939d8359c0f21d465d1df9
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/1279529
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-on: http://git-master/r/1292975
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
7 years agoarm64: tegra: config: enable NVPMODEL_EMC
Terry Wang [Tue, 17 Jan 2017 14:12:07 +0000 (22:12 +0800)]
arm64: tegra: config: enable NVPMODEL_EMC

NVPMODEL_EMC_CAP driver add an EMC bwmgr client and
expose related cap Sysfs to user space, this make the Nvpmodel
to cap EMC BW through Sysfs possible.
The cap value is based on different Nvpmodel usecase.

boot.img size changed 2k.

bug 1843348

Change-Id: I093525257016bbe0ef7c48287bf665b52427b888
Signed-off-by: Terry Wang <terwang@nvidia.com>
Reviewed-on: http://git-master/r/1286607
(cherry picked from commit 4a93f833715a71cf6ebe93e86d1461f1deaade94)
Reviewed-on: http://git-master/r/1287945
Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
7 years agonvpmodel: add nvpmodel_emc_cap driver and sysfs
Terry Wang [Mon, 16 Jan 2017 16:52:32 +0000 (00:52 +0800)]
nvpmodel: add nvpmodel_emc_cap driver and sysfs

Add nvpmodel_emc_cap driver
Add /sys/kernel/nvpmodel_emc_cap/emc_iso_cap sysfs

bug 1843348

Change-Id: Ifc0091ebbd4ecf5950a80083c01196e24ac93472
Signed-off-by: Terry Wang <terwang@nvidia.com>
Reviewed-on: http://git-master/r/1282877
(cherry picked from commit a294f9adc5c3043bcf7855bfbfa500471e5822f4)
Signed-off-by: Terry Wang <terwang@nvidia.com>
Reviewed-on: http://git-master/r/1287944
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
7 years agomisc: mods: irq: Update Irq Mapping
Ellis [Thu, 1 Dec 2016 23:07:45 +0000 (15:07 -0800)]
misc: mods: irq: Update Irq Mapping

Irq Mapping has changed. Irq's are now domain
specific. Update Interrupt management in the
driver to reflect this.

Bug 1798084

Change-Id: I87184c7bdde03a849d3bc60aecd7234d474536e0
Signed-off-by: Ellis Roberts <ellisr@nvidia.com>
Reviewed-on: http://git-master/r/1263408
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/1284448
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
7 years agoarm64: kernel: handle SError exception
Krishna Reddy [Wed, 9 Nov 2016 19:56:48 +0000 (11:56 -0800)]
arm64: kernel: handle SError exception

Don't treat SError exception entry as bad mode always and panic.
Log the SError, clear it and continue if doesn't need system
reboot.

Bug 1767985
Bug 1860947

Change-Id: Ibc9f3cf97cc1cffba6878fbefa4caa8990ca492e
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/1250627
(cherry picked from commit 506570845b1eb6921cdde85c4ac27a0a229f5ef0)
Reviewed-on: http://git-master/r/1284161
GVS: Gerrit_Virtual_Submit
Tested-by: Sumit Gupta <sumitg@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
7 years agocamera: graph: removed extra of_node_put
Sandipan Patra [Tue, 10 Jan 2017 06:41:43 +0000 (12:11 +0530)]
camera: graph: removed extra of_node_put

of_node_put is invoked for more than of_node_get is invoked in function
tegra_vi_graph_build_one and tegra_vi_graph_build_links Because of which
last of_node_put fails saying node should be detached before removing.

Hence additional of_node_put is not needed in tegra_vi_graph_build_one and
tegra_vi_graph_build_links. Respective of_node_put is properly taken care
in of_graph_get_next_endpoint.

Bug 200266295

Change-Id: Id6839aff0b01a0495375e07e6efb51fa152b7e96
Signed-off-by: Sandipan Patra <spatra@nvidia.com>
Reviewed-on: http://git-master/r/1282586
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
(cherry picked from commit 88db98e0eb617ef79ca5356999b9d1a2b31b6e23)
Reviewed-on: http://git-master/r/1283886

7 years agoiio: imu: nvi: Fix false error message
Erik Lilliebjerg [Sat, 31 Dec 2016 21:37:41 +0000 (14:37 -0700)]
iio: imu: nvi: Fix false error message

- Due to Invensense parts being register incompatible (even the HW ID),
  there were false error messages during the driver process of identifying
  the part.  This patch suppresses those error messages until the part is
  identified and the errors become legitimate.

Bug 200260974

Change-Id: Ibd7c6fe6e4b6424cfc2f7bf04f1a64405b03e539
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/1278897
GVS: Gerrit_Virtual_Submit
(cherry picked from commit 010a8eaf597e519d5c1a258bf0015c719e0928c6)
Reviewed-on: http://git-master/r/1283880
Tested-by: Sandipan Patra <spatra@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
7 years agotracer: banner: printing banner with pr_debug
Sandipan Patra [Tue, 10 Jan 2017 05:50:24 +0000 (11:20 +0530)]
tracer: banner: printing banner with pr_debug

Printing banner with pr_debug instead of pr_warning
to remove the warning logs due to banner print messages.

Bug 200269430

Change-Id: I032f1d4b6387a9de5032eb3f16a394c7dc34e6ed
Signed-off-by: Sandipan Patra <spatra@nvidia.com>
Reviewed-on: http://git-master/r/1282547
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
7 years agoarm64: t186: Enabling tracer config in kernel-4.4
Sandipan Patra [Tue, 10 Jan 2017 05:34:07 +0000 (11:04 +0530)]
arm64: t186: Enabling tracer config in kernel-4.4

Enabled ENABLE_DEFAULT_TRACERS config in kernel-4.4.
This tracer allows to pick and choose which trace point
to be traced.

boot.img size is increased by 2154728 bytes

Bug 200269430

Change-Id: I3a856692588148b31f1eb4fa786911893ac08842
Signed-off-by: Sandipan Patra <spatra@nvidia.com>
Reviewed-on: http://git-master/r/1282537
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
7 years agodc: add usr config field to nvdisp bw struct
Shu Zhong [Mon, 9 Jan 2017 08:10:15 +0000 (00:10 -0800)]
dc: add usr config field to nvdisp bw struct

Add a user config field to the nvdisp bw struct to
keep track of user requested bw settings.

Bug 200207347
Bug 200190234
JIRA TDS-1569

Change-Id: I592632f19134f244942b84fa6b098cce88e98cf9
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/1282014
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
7 years agocpuset: Add allow_attach hook for cpusets on android.
Riley Andrews [Sat, 6 Jun 2015 01:59:29 +0000 (18:59 -0700)]
cpuset: Add allow_attach hook for cpusets on android.

This patch provides a allow_attach hook for cpusets,
which resolves lots of the following logcat noise.

W SchedPolicy: add_tid_to_cgroup failed to write '2816' (Permission denied); fd=29
W ActivityManager: Failed setting process group of 2816 to 0
W System.err: java.lang.IllegalArgumentException
W System.err:    at android.os.Process.setProcessGroup(Native Method)
W System.err:    at com.android.server.am.ActivityManagerService.applyOomAdjLocked(ActivityManagerService.java:18763)
W System.err:    at com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:19028)
W System.err:    at com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:19106)
W System.err:    at com.android.server.am.ActiveServices.serviceDoneExecutingLocked(ActiveServices.java:2015)
W System.err:    at com.android.server.am.ActiveServices.publishServiceLocked(ActiveServices.java:905)
W System.err:    at com.android.server.am.ActivityManagerService.publishService(ActivityManagerService.java:16065)
W System.err:    at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:1007)
W System.err:    at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2493)
W System.err:    at android.os.Binder.execTransact(Binder.java:453)

Bug 200260900

Change-Id: Ic1b61b2bbb7ce74c9e9422b5e22ee9078251de21
[Ported to 4.4, added commit message]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Reviewed-on: http://git-master/r/1269274
(cherry picked from commit 5554a30e1b623e14b14ae4a78e6fc0c2d84072ad)
Reviewed-on: http://git-master/r/1281179
Tested-by: Sumit Gupta <sumitg@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
7 years agocpuset: Make cpusets restore on hotplug
Riley Andrews [Tue, 6 Sep 2016 22:16:25 +0000 (15:16 -0700)]
cpuset: Make cpusets restore on hotplug

This deliberately changes the behavior of the per-cpuset
cpus file to not be effected by hotplug. When a cpu is offlined,
it will be removed from the cpuset/cpus file. When a cpu is onlined,
if the cpuset originally requested that that cpu was part of the cpuset,
that cpu will be restored to the cpuset. The cpus files still
have to be hierachical, but the ranges no longer have to be out of
the currently online cpus, just the physically present cpus.

Bug 200260900

Change-Id: I22cdf33e7d312117bcefba1aeb0125e1ada289a9
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Reviewed-on: http://git-master/r/1269271
(cherry picked from commit 7ec5a325e8e1c39850423d5fe1f7bb3d171a3e61)
Reviewed-on: http://git-master/r/1282573
Tested-by: Sumit Gupta <sumitg@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
7 years agoarm64: tegra18: enable CONFIG_CPUSETS for L4T
Sumit Gupta [Tue, 13 Dec 2016 12:37:12 +0000 (18:07 +0530)]
arm64: tegra18: enable CONFIG_CPUSETS for L4T

Enabling CONFIG_CPUSETS for L4T.
It also enables CONFIG_PROC_PID_CPUSET.

boot.img size is increased by 20096 bytes.

bug 200260900

Change-Id: I7c1c65428c822d509d9b537ef2d2c2bb6068814e
Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
Reviewed-on: http://git-master/r/1270292
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-on: http://git-master/r/1279942
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
7 years agoarm64: config: tegra18: enable GRHOST TSEC
Bibek Basu [Tue, 3 Jan 2017 06:42:38 +0000 (12:12 +0530)]
arm64: config: tegra18: enable GRHOST TSEC

tsec clock is always high leading to higher vdd_core
idle power.
Reason being, TSEC driver is not enabled which brings
down the clock if not used.
Solution is to enable TSEC Driver for L4T

Boot.img size is increased by 32208 Bytes

Bug 1809882

Change-Id: If9e64b169280562234f2fa65b902e8bdf3d3a4ab
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/1279405
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
7 years agoclk: core: struct fops declaration needed
Sandipan Patra [Wed, 28 Dec 2016 09:09:32 +0000 (14:39 +0530)]
clk: core: struct fops declaration needed

file_operation structure declaration is required by
driver/clk/clk.c under CONFIG_COMMON_CLK_FREQ_STATS_ACCOUNTING.

Bug 200162084

Change-Id: I36cb2061e81a771b1db486f5071658acd0ec958b
Signed-off-by: Sandipan Patra <spatra@nvidia.com>
Reviewed-on: http://git-master/r/1277570
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
7 years agoarm64: t186: Disabling tracer config in kernel-4.4
Sandipan Patra [Wed, 28 Dec 2016 06:55:34 +0000 (12:25 +0530)]
arm64: t186: Disabling tracer config in kernel-4.4

Disabled ENABLE_DEFAULT_TRACERS in kernel-4.4 config to disable
warning log banner.

boot.img size is reduced by 2154728 bytes

Bug 200162084

Change-Id: I96717afc38a39ec0cebe06d1e3d224a51116fe6b
Signed-off-by: Sandipan Patra <spatra@nvidia.com>
Reviewed-on: http://git-master/r/1277526
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
7 years agomedia: tegra: camera: add control for alignment
Ken Chang [Wed, 30 Nov 2016 06:07:14 +0000 (14:07 +0800)]
media: tegra: camera: add control for alignment

The driver needs to know alignment constraints in order to
update bytesperline and sizeimage correctly based on the
hardware requirements. Thus the values can be used to configure
VI to make streaming data written into memory buffers as expected
based on the selected pixel format. Add v4l2 controls to
make the alignment variables configurable for applications:

height_alignment (int)    : min=1 max=2160 step=1 default=1 value=1
size_alignment (intmenu): min=0 max=2 default=0 value=0
               0: 1 (0x1)
               1: 65536 (0x10000)
               2: 131072 (0x20000)

In addition, the height in struct v4l2_pix_format shall never
include the padding lines thus fix the code to keep it as is.

Bug 200256176

Change-Id: I9ef4c823141334a0a4088f8e1bac190b41f31775
Signed-off-by: Ken Chang <kenc@nvidia.com>
(cherry picked from commit f05475d4f424fdf42bfc1692ba0d7044a5bbcad8)
Reviewed-on: http://git-master/r/1276515
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
7 years agokernel: arm64: Add "model name" for 64bit tasks
Ninad Malwade [Fri, 9 Dec 2016 05:24:35 +0000 (13:24 +0800)]
kernel: arm64: Add "model name" for 64bit tasks

Currently we have restriction to display processor model name under
cpuinfo structure for 32 bit tasks only and thus, ubuntu unity center
application or the /proc/cpuinfo does not display processor model name
for 64 bit tasks.

With this we are removing the restriction of displaying model name and
/proc/cpuinfo and ubuntu unity center can display the processor
information to the user for 64 bit tasks.

Bug 200242461

Change-Id: Ia7c6dde58d799e7de1c45d608e4156d921f266b0
Reviewed-on: http://git-master/r/1268144
(cherry picked from commit 3f205d8e989c0bd6b03f25f7b9bbc695672d146b)
Signed-off-by: Ninad Malwade <nmalwade@nvidia.com>
Reviewed-on: http://git-master/r/1275517
Reviewed-by: Sumit Gupta <sumitg@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
7 years agoclk: tegra: correct afi parent
Peter De Schrijver [Tue, 13 Dec 2016 11:50:29 +0000 (13:50 +0200)]
clk: tegra: correct afi parent

The parent for afi is actually mselect, not clk_m.

Change-Id: I0ec39e0d2314a62092fe8e55cfa171e3c1067c65
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/1270267
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho <talho@nvidia.com>
7 years agodriver: fix compiler warning in power/domain.c
Wahed Syed [Tue, 22 Nov 2016 18:19:25 +0000 (12:19 -0600)]
driver: fix compiler warning in power/domain.c

Bug 1844115

Here is the warning resolved by this change

drivers/base/power/domain.c:2851:12: warning: â€˜pm_genpd_summary_one’ defined but not used [-Wunused-function]
 static int pm_genpd_summary_one(struct seq_file *s,
            ^

Change-Id: Id3e7f77ed056b8363ecb1830b8780245c0dbda55
Signed-off-by: Wahed Syed <wsyed@nvidia.com>
Reviewed-on: http://git-master/r/1258265
Reviewed-on: http://git-master/r/1267819
GVS: Gerrit_Virtual_Submit
Reviewed-by: Brian Sloan <bsloan@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
7 years agosoc/tegra: edp: Clean-up GPU EDP error handling
Jon Hunter [Wed, 14 Dec 2016 09:34:07 +0000 (09:34 +0000)]
soc/tegra: edp: Clean-up GPU EDP error handling

Clean-up and simplify the error handling in the GPU EDP probe. Update
the driver to use dev_err() instead of WARN() or pr_err() where
applicable.

Bug 1811732

Change-Id: I4f79a166ac0196d5124879a8a1d2f2022deabea5
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: http://git-master/r/1271036
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
7 years agosoc/tegra: edp: Fix CPU EDP error handling
Jon Hunter [Wed, 14 Dec 2016 12:25:25 +0000 (12:25 +0000)]
soc/tegra: edp: Fix CPU EDP error handling

Fix the error handling in the CPU EDP probe to ensure all errors are
checked and the appropriate clean-up is performed on failure.

Bug 1811732

Change-Id: If6b229c78d3a4d8111cebaee3941fd33400d265a
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: http://git-master/r/1271035
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
7 years agosoc/tegra: edp: Update CPU EDP clock handling
Jon Hunter [Wed, 14 Dec 2016 12:05:44 +0000 (12:05 +0000)]
soc/tegra: edp: Update CPU EDP clock handling

Update the CPU EDP driver to use device-tree to lookup the CPU clock
instead of using the legacy clk_get_sys() API.

Bug 1811732

Change-Id: I02242052a2a8821892f708e6c6cb2fe71950dbd3
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: http://git-master/r/1271034
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
7 years agodriver: fix compiler warnings in qspi_mtd.c
Wahed Syed [Tue, 22 Nov 2016 18:22:43 +0000 (12:22 -0600)]
driver: fix compiler warnings in qspi_mtd.c

Bug 1844115

Here are the warnings fixed by this change

drivers/mtd/devices/qspi_mtd.c: In function â€˜qspi_quad_flag_set’:
drivers/mtd/devices/qspi_mtd.c:325:21: warning: unused variable â€˜m’ [-Wunused-variable]
  struct spi_message m;
                     ^
drivers/mtd/devices/qspi_mtd.c:324:22: warning: unused variable â€˜t’ [-Wunused-variable]
  struct spi_transfer t[2];
                      ^
drivers/mtd/devices/qspi_mtd.c:323:37: warning: unused variable â€˜comp’ [-Wunused-variable]
  int status = PASS, err, tried = 0, comp = QUAD_ENABLE;
                                     ^
drivers/mtd/devices/qspi_mtd.c:323:26: warning: unused variable â€˜tried’ [-Wunused-variable]
  int status = PASS, err, tried = 0, comp = QUAD_ENABLE;
                          ^
drivers/mtd/devices/qspi_mtd.c:323:21: warning: unused variable â€˜err’ [-Wunused-variable]
  int status = PASS, err, tried = 0, comp = QUAD_ENABLE;
                     ^
drivers/mtd/devices/qspi_mtd.c:322:10: warning: unused variable â€˜tx_buf’ [-Wunused-variable]
  uint8_t tx_buf[5], regval;
          ^
drivers/mtd/devices/qspi_mtd.c: At top level:
drivers/mtd/devices/qspi_mtd.c:270:12: warning: â€˜qspi_qpi_flag_set’ defined but not used [-Wunused-function]
 static int qspi_qpi_flag_set(struct qspi *flash, uint8_t is_set)
            ^

Change-Id: I86eeaa58f151b6c544484d7407ca00a03e2c550d
Signed-off-by: Wahed Syed <wsyed@nvidia.com>
Reviewed-on: http://git-master/r/1258266
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dmitry Pervushin <dpervushin@nvidia.com>
Reviewed-by: Brian Sloan <bsloan@nvidia.com>
Reviewed-on: http://git-master/r/1267812
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
7 years agoplatform: powergate: correct sclg clock names for APE
Peter De Schrijver [Fri, 9 Dec 2016 11:29:41 +0000 (13:29 +0200)]
platform: powergate: correct sclg clock names for APE

Change-Id: I7d7059b08711d2fb4a9c1d5d4656f3ef5fb35c61
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/1268494
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
7 years agoclk: tegra: add connection IDs for aclk and sclg_ovr clocks
Peter De Schrijver [Fri, 9 Dec 2016 11:28:13 +0000 (13:28 +0200)]
clk: tegra: add connection IDs for aclk and sclg_ovr clocks

Also shorten the d_audio_sclg_ovr name to fit within the 16 character conid
limit.

Change-Id: Ib8b376a6b035c192108910d45c59c8f0df3d21d6
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/1268493
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
7 years agoclk: tegra: add aclk_slcg_ovr clock
Peter De Schrijver [Fri, 9 Dec 2016 11:24:51 +0000 (13:24 +0200)]
clk: tegra: add aclk_slcg_ovr clock

This is needed for ADSP (aka APE) powergating.

Change-Id: I603953cf04d7496377ec018412f9343750a85bb7
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/1268492
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
7 years agosoc: tegra: Add temperature depend DVFS for GPU
Peter De Schrijver [Mon, 12 Dec 2016 13:24:28 +0000 (15:24 +0200)]
soc: tegra: Add temperature depend DVFS for GPU

Change-Id: I51ed8f2baf6ab55dce608444fb8ee85e0e0c0734
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/1269545
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho <talho@nvidia.com>
7 years agosoc: tegra: pass DT node pointer to SoC specific parts
Peter De Schrijver [Mon, 12 Dec 2016 13:21:07 +0000 (15:21 +0200)]
soc: tegra: pass DT node pointer to SoC specific parts

Some DVFS information in DT is SoC specific, so we need to parse this in the
SoC specific part of the DVFS code.

Change-Id: Id4d6fd805656a608983377aeb8714e28e5a412fa
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/1269544
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho <talho@nvidia.com>
7 years agosoc: tegra: Support for temperature depend DVFS
Peter De Schrijver [Mon, 12 Dec 2016 13:05:39 +0000 (15:05 +0200)]
soc: tegra: Support for temperature depend DVFS

Change-Id: I252cf05e07b3a3022cf81b415d0519f4fb2aaeef
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/1269543
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho <talho@nvidia.com>
7 years agosoc: tegra: remove useless ;
Peter De Schrijver [Mon, 12 Dec 2016 12:40:09 +0000 (14:40 +0200)]
soc: tegra: remove useless ;

Change-Id: Id0cc69788ff3ecd141b1ae34d1967fdf5a3375e6
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/1269541
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho <talho@nvidia.com>
7 years agosoc: tegra: Introduce GPU rail debugfs node
Peter De Schrijver [Mon, 12 Dec 2016 12:20:32 +0000 (14:20 +0200)]
soc: tegra: Introduce GPU rail debugfs node

OPPs for the GPU rail are temperature dependent. So add a new debugfs file
to dump the resulting table.

Change-Id: I05a99d041a94dd86f85eb79defc68e0e08c269a7
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/1269540
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho <talho@nvidia.com>
7 years agoclk: add clk_set_rate_nocache
Peter De Schrijver [Mon, 12 Dec 2016 12:12:12 +0000 (14:12 +0200)]
clk: add clk_set_rate_nocache

This will be used to retrigger DVFS and update the NA PLL settings on
temperature change.

Change-Id: I0204956f1c4251d698b69eba31b810c09a321f9a
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/1269539
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho <talho@nvidia.com>
7 years agoata: ahci_tegra:Get rid of chip specific defconfig
Preetham Chandru R [Thu, 8 Dec 2016 14:12:19 +0000 (19:42 +0530)]
ata: ahci_tegra:Get rid of chip specific defconfig

Bug 200257393

Change-Id: I3918da3bad91b7f80584de6a9d5c1691aad8102a
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/1265899
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
7 years agofuse: tegra: unify fuse burn driver
Shardar Shariff Md [Mon, 12 Dec 2016 11:19:40 +0000 (16:49 +0530)]
fuse: tegra: unify fuse burn driver

Currently there is separate fuse burn drivers for T210 & T186, unify
the driver to avoid duplication code.

Bug 200243956

Change-Id: Ief2b8df2645fcaa98c6ff5db99323e1a7c99e6f2
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/1269527
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
7 years agopmc: tegra: add fuse mirroing enable/disable apis
Shardar Shariff Md [Mon, 12 Dec 2016 12:19:06 +0000 (17:49 +0530)]
pmc: tegra: add fuse mirroing enable/disable apis

Add functions to enable/disable fuse mirroring support
which is part pmc address space.

Bug 200243956

Change-Id: Ia6519d4ad3035b0fa2e3232e6ee8c524e991f723
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/1269518
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
7 years agosoc: tegra: Build for Tegra
Laxman Dewangan [Mon, 12 Dec 2016 07:07:54 +0000 (12:37 +0530)]
soc: tegra: Build for Tegra

There is two configs for the Tegra SoC build
ARCH_TEGRA and PLATFORM_TEGRA

soc/tegra get build for the ARCH_TEGRA but some of SoCs
have not enabled the ARCH_TEGRA and hence it can not be build.

Add the new config ARCH_OR_PLATFORM_TEGRA which is enabled for
all SoCs and build this folder for all SoCs.

The driver specific source will be build for ARCH_TEGRA to maintain
original build.

This helps to remove the duplication on driver per SoCs, unified the
kernel build for all SoCs.

bug 200260692

Change-Id: I2df6c67e7b30c77eba04bf58a0ff0ad9cf51dec7
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1269329
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shardar Mohammed <smohammed@nvidia.com>
Tested-by: Shardar Mohammed <smohammed@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoserial: tegra: get the required rate before adjusting to tolerance level
Shardar Shariff Md [Wed, 14 Dec 2016 12:29:08 +0000 (17:59 +0530)]
serial: tegra: get the required rate before adjusting to tolerance level

Save the required clock rate before calculating the adjusted clock rate

Bug 200249272

Change-Id: I8c6f6eeafb7809cc072f2584dff6622e02554c40
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/1271004
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
7 years agodrivers: fix compiler warnings in qspi_mtd.c
Wahed Syed [Tue, 22 Nov 2016 18:03:27 +0000 (12:03 -0600)]
drivers: fix compiler warnings in qspi_mtd.c

Bug 1844115

Here are the warnings fixed by this change

drivers/mtd/devices/qspi_mtd.c: In function â€˜qspi_probe’:
drivers/mtd/devices/qspi_mtd.c:1187:23: warning: format â€˜%x’ expects argument of type â€˜unsigned int’, but argument 7 has type â€˜uint64_t {aka long long unsigned int}’ [-Wformat=]
    dev_err(&spi->dev, "%s SSErr %x %x %x %x\n", id->name,
                       ^
In file included from drivers/mtd/devices/qspi_mtd.c:25:0:
drivers/mtd/devices/qspi_mtd.c:1192:23: warning: format â€˜%x’ expects argument of type â€˜unsigned int’, but argument 7 has type â€˜uint64_t {aka long long unsigned int}’ [-Wformat=]
   dev_info(&spi->dev, "%s SSG %x %x %x %x\n", id->name,
                       ^

Change-Id: Ib31d889ec20cd98bc54b9b1cda1f3a80dbcb3b9a
Signed-off-by: Wahed Syed <wsyed@nvidia.com>
Reviewed-on: http://git-master/r/1258258
Reviewed-on: http://git-master/r/1267833
GVS: Gerrit_Virtual_Submit
Reviewed-by: Brian Sloan <bsloan@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
7 years agoipv6: fix compiler error when disabling ipv6
Wahed Syed [Sat, 22 Oct 2016 00:08:39 +0000 (19:08 -0500)]
ipv6: fix compiler error when disabling ipv6

Bug 1830122

Change-Id: I76d6b31e0dc84862c5b3321bf7a613c867b98a1e
Signed-off-by: Wahed Syed <wsyed@nvidia.com>
Reviewed-on: http://git-master/r/1240925
GVS: Gerrit_Virtual_Submit
Reviewed-by: Brian Sloan <bsloan@nvidia.com>
Reviewed-on: http://git-master/r/1267815
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
7 years agomm: kmemleak: fix compiler warning in kmemleak.c
Wahed Syed [Tue, 22 Nov 2016 17:08:49 +0000 (11:08 -0600)]
mm: kmemleak: fix compiler warning in kmemleak.c

Bug 1844115

Here is the warning fixed by this change

mm/kmemleak.c: In function â€˜kmemleak_scan_thread’:
mm/kmemleak.c:1438:13: warning: unused variable â€˜first_run’ [-Wunused-variable]
  static int first_run = 1;
             ^

Change-Id: I1be480c32366d8476eb1ed62187cd65e9d163233
Signed-off-by: Wahed Syed <wsyed@nvidia.com>
Reviewed-on: http://git-master/r/1258234
Reviewed-on: http://git-master/r/1267814
GVS: Gerrit_Virtual_Submit
Reviewed-by: Brian Sloan <bsloan@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
7 years agodt-bindings: gpio: Add tegra186-gpio.h
Mikko Perttunen [Mon, 12 Dec 2016 13:29:55 +0000 (15:29 +0200)]
dt-bindings: gpio: Add tegra186-gpio.h

Moved tegra186-gpio.h from t18x as part of kernel 4.9 work.

Bug 1834068

Change-Id: I6ac2765e8ee821c862c6ad994b88c64b0ef6ab7a
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-on: http://git-master/r/1269547
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho <talho@nvidia.com>
7 years agoplatform: tegra: Add tegra_chipid
Mikko Perttunen [Mon, 12 Dec 2016 08:43:05 +0000 (10:43 +0200)]
platform: tegra: Add tegra_chipid

Moved driver from t18x repository. The driver is no longer
used on kernel 4.9.

Bug 1834068

Change-Id: I4fba7eb5c016f7d9231d060cca6fbb5f57ce717c
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-on: http://git-master/r/1269364
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
7 years agoclk: tegra: only build PLL resume for Tegra210
Peter De Schrijver [Thu, 8 Dec 2016 15:51:20 +0000 (17:51 +0200)]
clk: tegra: only build PLL resume for Tegra210

Change-Id: I40a5c16378f28047345e5ca7a1ada03d6feb9c66
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/1267684
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho <talho@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
7 years agocrypto: move tegra-se-elp to kernel-4.4
Shravani Dingari [Thu, 8 Dec 2016 06:55:08 +0000 (12:25 +0530)]
crypto: move tegra-se-elp to kernel-4.4

merge tegra-se-pka1 in kernel-4.4 and
tegra-se-elp in t18x together to kernel-4.4
repo. Both have common code for PKA1 (applicable
for both T214 and T186) and tegra-se-elp has
extra code for RNG1 (applicable for only T186)

Bug 200260842

Change-Id: Ife8c1a4bb20cf654856eccebb5ce1536cdba9600
Signed-off-by: Shravani Dingari <shravanid@nvidia.com>
Reviewed-on: http://git-master/r/1267336
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
7 years agodevfreq: don't set last_scale for same freq
Deepak Nibade [Mon, 5 Dec 2016 14:22:35 +0000 (19:52 +0530)]
devfreq: don't set last_scale for same freq

In nvhost_pod_estimate_freq(), we have *freq = 0
in case we decide to keep same frequency
In that case we set *freq as current frequency and
then set last_scale timestamp

This can result in keeping same frequency for
long duration due to less delta from last_scale

To fix this, return immediately in case *freq
is zero and do not set last_scale timestamp

Bug 200255163

Change-Id: Ie13bf54e2415c4016a101b9ea12a9abda83240fd
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1265185
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
7 years agoplatform: powergate: tegra: control SATA pll sequencer input
Peter De Schrijver [Mon, 5 Dec 2016 12:43:17 +0000 (14:43 +0200)]
platform: powergate: tegra: control SATA pll sequencer input

Change-Id: I401a8a229cd4c1837d657fcc54d5e096a31baf6b
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/1265131
GVS: Gerrit_Virtual_Submit
Reviewed-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
7 years agoclk: tegra: Add sata seq input control
Peter De Schrijver [Mon, 5 Dec 2016 12:39:59 +0000 (14:39 +0200)]
clk: tegra: Add sata seq input control

This is used by the powergating driver ensure proper sequencer state when the
SATA domain is powergated.

Change-Id: I881282856282cccef857b513ce60ac9ad6becc51
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/1265130
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
7 years agomedia:platform:tegra: Move mipical calls to fops
Wenjia Zhou [Fri, 9 Dec 2016 23:29:23 +0000 (15:29 -0800)]
media:platform:tegra: Move mipical calls to fops

T210 and T186 CSI is different
 Rewrite csi2_mipi_cal
 Implement csi4_mipi_cal
 Add fops->mipical
Modify set_stream to ensure sensor is
enabled first before csi
Remove hardcode T186 specific folder reference
in Makefile to ensure T210 compatible for k4.4

bug 1798951

Change-Id: I8ba752094065274bd34d165fbca900068776545a
Signed-off-by: Wenjia Zhou <wenjiaz@nvidia.com>
Reviewed-on: http://git-master/r/1213249
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
7 years agoarm64: tegra18: configs: hypervisor security virtual CAN driver
Yong Zhang [Tue, 29 Nov 2016 15:03:42 +0000 (15:03 +0000)]
arm64: tegra18: configs: hypervisor security virtual CAN driver

boot.img size is increased by 327931 bytes

Jira MAKO-212
bug 1825351

Change-Id: I30eaa3efd1bd578f33fff22f7ef66fba1cd72075
Signed-off-by: Yong Zhang <yongz@nvidia.com>
Reviewed-on: http://git-master/r/1261619
Reviewed-by: Samuel Payne <spayne@nvidia.com>
Tested-by: Samuel Payne <spayne@nvidia.com>
7 years agodrivers: hypervisor security virtual CAN driver
Yong Zhang [Fri, 30 Sep 2016 09:35:47 +0000 (10:35 +0100)]
drivers: hypervisor security virtual CAN driver

Jira MAKO-212
bug 1825351

Change-Id: Iea2e024d838f9bbfbe9000a01a80a1185ae36dc9
Signed-off-by: Yong Zhang <yongz@nvidia.com>
Reviewed-on: http://git-master/r/1262283
GVS: Gerrit_Virtual_Submit
Tested-by: Andy Guiver <aguiver@nvidia.com>
Reviewed-by: Bernd Weber <bweber@nvidia.com>
Reviewed-on: http://git-master/r/1252387
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
7 years agoi2c: tegra-vi: remove redundant I2C init code in probe and resume
Joseph Lo [Tue, 6 Dec 2016 02:40:06 +0000 (10:40 +0800)]
i2c: tegra-vi: remove redundant I2C init code in probe and resume

We only need to init the I2C when it doesn't support powergate
function. For powergate supported platform, it has been integrated with
power up function.

Bug 1811733
Bug 1798951

Change-Id: I2a9e9c3b097c0b47220d45b6378628a8134dd275
Signed-off-by: Joseph Lo <josephl@nvidia.com>
Reviewed-on: http://git-master/r/1265711
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
7 years agoclk: tegra: move tegra_dvfs_set_dfll_range to cpufreq driver
Peter De Schrijver [Tue, 29 Nov 2016 14:07:41 +0000 (16:07 +0200)]
clk: tegra: move tegra_dvfs_set_dfll_range to cpufreq driver

The DVFS constraints apply to cclk_g, not to dfll clock itself. Therefor
set the CPU rail to DFLL mode in the cpufreq driver as that driver knows
when we source cclk_g from the DFLL. This also prevents the call from
happening before the DVFS layer is initialized.

Change-Id: Idcea614f4cf173f6cf11424301e8299554875052
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/1261578
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoclk: correct error message for debugfs
Peter De Schrijver [Tue, 29 Nov 2016 13:22:11 +0000 (15:22 +0200)]
clk: correct error message for debugfs

Change-Id: I64d11c07014e4be2190811416ec4b705cffcb7ea
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/1261550
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho <talho@nvidia.com>
7 years agoclk: tegra: remove non-existing pll_m_out1 clock
Peter De Schrijver [Tue, 29 Nov 2016 13:21:45 +0000 (15:21 +0200)]
clk: tegra: remove non-existing pll_m_out1 clock

Change-Id: I92b484ac497306802f066bed9474f5bb0c17d077
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/1261549
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
7 years agopcie: host: tegra: remove uphy dependency
Vidya Sagar [Tue, 29 Nov 2016 11:12:17 +0000 (16:42 +0530)]
pcie: host: tegra: remove uphy dependency

removes accessing TX_RDET_STATUS bit to findout end point's
presence on the other side of the link early in the link-up process

Bug 200257937

Change-Id: I84030a53182e06e12616e993924964db822f053f
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/1261438
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
7 years agopcie: host: tegra: disable clocks in no EP case
Vidya Sagar [Sat, 26 Nov 2016 11:53:25 +0000 (17:23 +0530)]
pcie: host: tegra: disable clocks in no EP case

disables clocks when no end points are detected during
enumeration

Bug 1842979

Change-Id: I27b12fe8a0939cd8d11ad80c70933d257adbd537
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/1260199
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
7 years agoPM / clk: export pm_clk_destroy APIs
Vidya Sagar [Tue, 29 Nov 2016 12:53:59 +0000 (18:23 +0530)]
PM / clk: export pm_clk_destroy APIs

exports pm_clk_destroy API

Bug 200182225

Change-Id: Ia3fcae2087a4b72008e6d83925b8714a305799ac
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/1261507
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
7 years agomisc: fuse: make type of tegra_get_chip_id() to consistent
Laxman Dewangan [Fri, 9 Dec 2016 17:01:33 +0000 (22:31 +0530)]
misc: fuse: make type of tegra_get_chip_id() to consistent

For some Tegra SOCs, the function tegra_get_chip_id() returns u8
and for some other it returns u32.

Make the return type to be consistent and should return u8 data type.

bug 200260692

Change-Id: I1a2204ed2b34f706543a7b9630546c7fcb16de5a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1268604
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shardar Mohammed <smohammed@nvidia.com>
Reviewed-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
7 years agofirmware: tegra: Get rid of mach/irq.h include
Laxman Dewangan [Fri, 9 Dec 2016 13:47:53 +0000 (19:17 +0530)]
firmware: tegra: Get rid of mach/irq.h include

firmware/tegra/main_t210 driver is including the mach/irq.h
which are unnecessarily. Remove this include.

bug 200259459

Change-Id: I62da9c925ed4e7649de5f30eb9b4024c75bb64e6
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1268555
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
7 years agoplatform: tegra: Get rid of mach/irq.h include
Laxman Dewangan [Fri, 9 Dec 2016 13:42:42 +0000 (19:12 +0530)]
platform: tegra: Get rid of mach/irq.h include

Some of platform/tegra driver are including the mach/irq.h
which are unnecessarily. Remove this include.

bug 200259459

Change-Id: Ic7fea0f3b4864ec93ddd12b0f7cdc7ab0b544ec8
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1268554
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
7 years agousb: tegra: Get rid of board.h include
Laxman Dewangan [Fri, 9 Dec 2016 13:19:40 +0000 (18:49 +0530)]
usb: tegra: Get rid of board.h include

The tegra ehci/otg driver are including the mach-tegra/board.h
unnecessarily. Remove this include.

bug 200259459

Change-Id: Iadb37341dca1d57c06248ef4e813dc43fcc0dc3e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1268553
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
7 years agoplatform: tegra: dumper:Get rid of board.h include
Laxman Dewangan [Fri, 9 Dec 2016 13:18:08 +0000 (18:48 +0530)]
platform: tegra: dumper:Get rid of board.h include

The nvdumper source code is including the mach-tegra/board.h
unnecessarily. Remove this include.

bug 200259459

Change-Id: I3f3a90fc0c2b629b6ee2d2cc06b083a004ef932a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1268552
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
7 years agoarm64: mm: dma-mapping: Fix incorrect align of start and end
Krishna Reddy [Tue, 6 Dec 2016 19:21:21 +0000 (11:21 -0800)]
arm64: mm: dma-mapping: Fix incorrect align of start and end

Fix incorrect align of start and end of dma contiguous
region during remap of it.

Bug 1769772

Change-Id: I6b94393085c27e924474c2622f5d024938839e75
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/1266021
GVS: Gerrit_Virtual_Submit

7 years agoiio: imu: nvi: v.337 Fix DMP gyro
Erik Lilliebjerg [Tue, 1 Nov 2016 15:54:52 +0000 (08:54 -0700)]
iio: imu: nvi: v.337 Fix DMP gyro

- Fix ICM DMP gyroscope data output to match the standard FIFO data output.

Bug 1831500

Change-Id: Ie26071fe211c390a03d4f912815ed00a89beff8b
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/1245846
(cherry picked from commit d686b0fd4d60b0a9fc8f7bfd5408f6e557a16684)
Reviewed-on: http://git-master/r/1267106
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
7 years agomods_clock: Add list of clocks for T210
Michael Wang [Wed, 31 Aug 2016 23:19:51 +0000 (16:19 -0700)]
mods_clock: Add list of clocks for T210

Add list of clocks for T210, since T210 will be using the Common Clock
Framework in kernel 4.4.

Change-Id: I278087c52ba58809d64930d95e5a504ae8b34700
Signed-off-by: Michael Wang <michawang@nvidia.com>
Reviewed-on: http://git-master/r/1217249
Reviewed-by: Vivek Aseeja <vaseeja@nvidia.com>
Tested-by: Vivek Aseeja <vaseeja@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
7 years agodevfreq: clip max/min frequencies in store APIs
Deepak Nibade [Wed, 7 Dec 2016 08:13:09 +0000 (13:43 +0530)]
devfreq: clip max/min frequencies in store APIs

In max_freq_store(), we allow any large to be
stored as max_freq
Similarly in min_freq_store() we allow any
lower value as min_freq

Fix this so that we clip max_freq to highest
freq value supported and clip min_freq to
lowest freq value supported

Bug 200260336

Change-Id: I6b11f6a5fd31f9411299dbeea1d3a528e1077bc5
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1266463
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
7 years agoarm: mach-tegra: Get rid of devices.h
Laxman Dewangan [Thu, 8 Dec 2016 12:43:55 +0000 (18:13 +0530)]
arm: mach-tegra: Get rid of devices.h

The devices.h export all Tegra devices to get it registered
from board files. However, all Tegra platforms has moved to
DT and hence it is not required to register the devices from
DT.

Remove the header devices.h.

bug 200259459

Change-Id: Ic452f6ef720f154638f641ab96bdefe97c28032f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1267576
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
7 years agoarm: mach-tegra: Get rid of apbio.{c,h}
Laxman Dewangan [Thu, 8 Dec 2016 12:12:08 +0000 (17:42 +0530)]
arm: mach-tegra: Get rid of apbio.{c,h}

The apbio.c and apbio.h neither compiled nor used.
Remove these files from the tree as these were just
copied from older kernel version.

bug 200259459

Change-Id: Ie93c5efd690f2bec207e8a97ef60c166fa8627c1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1267575
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
7 years agoarm: mach-tegra: Get rid of gpio-names header
Laxman Dewangan [Thu, 8 Dec 2016 11:59:59 +0000 (17:29 +0530)]
arm: mach-tegra: Get rid of gpio-names header

The header gpio-names are no more required as everything
moved to DT.

Remove the header file and correct the source code which has
included this unnecessarily.

bug 200259459

Change-Id: Icd3764fe6b743c29282776e23dc73982109913be
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1267555
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
7 years agosound: soc: tegra-alt: Move mach/tegra_asoc_pdata.h to include/linux
Laxman Dewangan [Thu, 8 Dec 2016 09:29:24 +0000 (14:59 +0530)]
sound: soc: tegra-alt: Move mach/tegra_asoc_pdata.h to include/linux

The include header mach/tegra_asoc_pdata.h is moved to
include/linux/platform_data in order to keep all generic platform
data to this folder and get rid of mach-tegra/include/mach/*.h.
Refer the correct header location for tegra-alt drivers.

bug 200259459

Change-Id: Iaf793e3f4505a1e3ad722dbbb3e5b5dad38580ca
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1267478
Reviewed-by: Timo Alho <talho@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoarm: mach-tegra: include: Remove unused header tegra-board-id.h
Laxman Dewangan [Wed, 7 Dec 2016 10:07:00 +0000 (15:37 +0530)]
arm: mach-tegra: include: Remove unused header tegra-board-id.h

The header file tegra-board-id.h is no more used by any source
code and hence removing this header. This header contains the
board IDS which is not required any more after everything moved
to DT.

bug 200259459

Change-Id: I339e16148c16a87b21b6d3a06e4dba3075854996
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1266565
Reviewed-by: Timo Alho <talho@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agosoc/tegra: switch to CVB PLL table for Tegra210 CPU DVFS
Joseph Lo [Thu, 1 Dec 2016 02:45:19 +0000 (10:45 +0800)]
soc/tegra: switch to CVB PLL table for Tegra210 CPU DVFS

Drop the static CPU freq/volt table, the table was used for when using
PLL as CPU clock source. This patch replaces it by CVB PLL table, which
will determine the DVFS table based on some calculations of the table,
speedo and voltage scale vaules.

The table is based on DVFS table version p4v64_p4Av07.

Bug 200255986

Change-Id: I6af57f8c6d0c59bdbd615f7ae407173b17693010
Signed-off-by: Joseph Lo <josephl@nvidia.com>
Reviewed-on: http://git-master/r/1262765
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agosoc/tegra: fuse: update speedo IDs for Tegra210
Joseph Lo [Wed, 30 Nov 2016 03:50:25 +0000 (11:50 +0800)]
soc/tegra: fuse: update speedo IDs for Tegra210

Bug 200255986

Change-Id: Iacf188f4cccea03d3a82f7ad18455c18681c506d
Signed-off-by: Joseph Lo <josephl@nvidia.com>
Reviewed-on: http://git-master/r/1262213
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agosoc/tegra: update Tegra210 CPU DVFS table
Joseph Lo [Wed, 30 Nov 2016 06:04:56 +0000 (14:04 +0800)]
soc/tegra: update Tegra210 CPU DVFS table

Update Tegra210 CPU DVFS table according to version p4v64_p4Av07.

Bug 200255986

Change-Id: Id7fc63a69883c03c9a307c472d62f38cc0699162
Signed-off-by: Joseph Lo <josephl@nvidia.com>
Reviewed-on: http://git-master/r/1262212
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoclk: tegra: dfll: update Tegra210 CPU DVFS table
Joseph Lo [Wed, 30 Nov 2016 09:07:44 +0000 (17:07 +0800)]
clk: tegra: dfll: update Tegra210 CPU DVFS table

Update Tegra210 CPU DVFS table according to version p4v64_p4Av07.

Bug 200255986

Change-Id: I60cbc6648e219ef58a3233fa90bbc02d1cdd403a
Signed-off-by: Joseph Lo <josephl@nvidia.com>
Reviewed-on: http://git-master/r/1262211
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agodefconfig: Enable HDMI2FPDLINK config
Deepak Bhosale [Thu, 24 Nov 2016 00:52:52 +0000 (16:52 -0800)]
defconfig: Enable HDMI2FPDLINK config

P2394 AIC card supports HDMI2FPDLINK path for
P2382-10 board. Enable config option in kernel config
to make sure driver gets built for this support.

zImage is increased by 3734 bytes
Image is increased by 17152 bytes

EVLR-438

Change-Id: I7d9fe5a14c20efca23ff62967a364cb25ecc2e76
Signed-off-by: Deepak Bhosale <dbhosale@nvidia.com>
Reviewed-on: http://git-master/r/1259180
Reviewed-by: Tow Wang <toww@nvidia.com>
Reviewed-by: Sungwook Kim <sungwookk@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vladislav Buzov <vbuzov@nvidia.com>
7 years agoARM64: tegra210: Enable Bluetooth on Kernel-4.4
Gaurav Asati [Thu, 1 Dec 2016 04:35:50 +0000 (10:05 +0530)]
ARM64: tegra210: Enable Bluetooth on Kernel-4.4

Bug 200244810

boot.img size is increased by 18432 bytes

Change-Id: I6bb130afb66ac5731e5ba1ce7293ed9d27471104
Signed-off-by: Gaurav Asati <gasati@nvidia.com>
Reviewed-on: http://git-master/r/1262794
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
7 years agovideo: tegra: cleanup panel selection code
Santosh Reddy Galma [Thu, 3 Nov 2016 04:52:38 +0000 (10:22 +0530)]
video: tegra: cleanup panel selection code

-remove macro HDMI_NODE used for chips less than T210
-remove dc_or_node_names global array and make
 dc_or_node_name a member of tegra_dc_platform_data.

TDS-1305

Change-Id: I574b17aa43ac190e2d415b7b58a5f352df94bd22
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: http://git-master/r/1246842
Reviewed-by: Jani Uusi-Rantala <juusirantala@nvidia.com>
Tested-by: Jani Uusi-Rantala <juusirantala@nvidia.com>
7 years agoplatform: tegra: enable denver_serr only for t18x
Rohit Khanna [Mon, 21 Nov 2016 20:46:58 +0000 (12:46 -0800)]
platform: tegra: enable denver_serr only for t18x

Enable denver_serr_init only for t18x.

Bug 1844100
Bug 200235747

Change-Id: I1d2145464fbf3dbd5bc3add689374ce88ca57b9d
Signed-off-by: Rohit Khanna <rokhanna@nvidia.com>
Reviewed-on: http://git-master/r/1257457
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Navneet Kumar <navneetk@nvidia.com>
7 years agoarm: mach: include: Move mach/gpufuse.h to include/soc/tegra
Laxman Dewangan [Thu, 8 Dec 2016 10:00:23 +0000 (15:30 +0530)]
arm: mach: include: Move mach/gpufuse.h to include/soc/tegra

The include header mach/mach/gpufuse.h is moved to include/soc/tegra
in order to keep all SOC specific header in include/soc/<chip>
and get rid of mach-tegra/include/mach/*.h.

bug 200259459

Change-Id: I7a528a092312a94de8cd9bb27293d3ab7eeaac39
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1267496
Reviewed-by: Timo Alho <talho@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agomisc: mod: Use linux/tegra_smmu.h instead of mach/tegra_smmu.h
Laxman Dewangan [Thu, 8 Dec 2016 08:42:03 +0000 (14:12 +0530)]
misc: mod: Use linux/tegra_smmu.h instead of mach/tegra_smmu.h

There is duplication of header tegra_smmu.h in include/linux and
mach-tehra/include/mach.

Get rid of mach/tegra_smmu.h and change the client driver to use
the include/linux/tegra_smmu.h.

bug 200259459

Change-Id: I830f509338bd18d2ab3687dfbb7f94d09b0d3a59
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1267458
Reviewed-by: Lovie Wang <loview@nvidia.com>
Tested-by: Lovie Wang <loview@nvidia.com>
Reviewed-by: Timo Alho <talho@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoarm: mach-tegra: include: Remove unused header memory.h
Laxman Dewangan [Thu, 8 Dec 2016 08:29:38 +0000 (13:59 +0530)]
arm: mach-tegra: include: Remove unused header memory.h

The header file memory.h is no more used by any source
code and hence removing this header.

bug 200259459

Change-Id: Ia3e454aab4ff59d0fac09943d2dbfd8c2b373974
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1267457
Reviewed-by: Timo Alho <talho@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoarm: mach-tegra: include: Remove unused header edp.h
Laxman Dewangan [Thu, 8 Dec 2016 08:26:24 +0000 (13:56 +0530)]
arm: mach-tegra: include: Remove unused header edp.h

The header file edp.h is no more used by any source
code and hence removing this header.

bug 200259459

Change-Id: Ie8fc599e06d14ad70e1bc0b679eff09fbeddbf3e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1267456
Reviewed-by: Timo Alho <talho@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoarm: mach-tegra: include: Remove unused header board_id.h
Laxman Dewangan [Thu, 8 Dec 2016 08:24:44 +0000 (13:54 +0530)]
arm: mach-tegra: include: Remove unused header board_id.h

The header file board_id.h is no more used by any source
code and hence removing this header. This header contains the
board IDS structure which is not required any more after
everything moved to DT.

bug 200259459

Change-Id: I60ee4e868e34ce5ff9ee31e76787a6ff4c6da024
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1267455
Reviewed-by: Timo Alho <talho@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agosoc/tegra: fuse: export tegra_get_platform
Vivek Aseeja [Mon, 5 Dec 2016 19:16:42 +0000 (11:16 -0800)]
soc/tegra: fuse: export tegra_get_platform

the mods kernel driver is compiled as a module and requires
tegra_get_platform() to be exported as a symbol to compile correctly.

Bug 1834200

Change-Id: I9bc2ef421ea377083f5ce8aa4f218275b0b3b690
Signed-off-by: Vivek Aseeja <vaseeja@nvidia.com>
Reviewed-on: http://git-master/r/1265312
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
7 years agoARM64: config: t18: enable UASP gadget protocol
Venkat Reddy Talla [Tue, 6 Dec 2016 10:46:38 +0000 (16:16 +0530)]
ARM64: config: t18: enable UASP gadget protocol

Enabling UASP gadget protocol config which is
required to communicate with a USB Host.
Enabling below configs for kernel unification.
CONFIG_TARGET_CORE=y
CONFIG_TCM_IBLOCK=y
CONFIG_TCM_FILEIO=y

boot.img size increased by 288768 bytes

Bug 200256189

Change-Id: Idc5a5d54ed0efbe1f036c61f32a99e23630992ac
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/1265807
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
7 years agocrypto:pka1: fix private key check in driver
Shravani Dingari [Tue, 6 Dec 2016 08:40:40 +0000 (14:10 +0530)]
crypto:pka1: fix private key check in driver

compare private key and order in a loop
instead of memcmp due to endianness issues

Change-Id: If937c6d9eda7355d9be3ebdaf0272d2f799fcffc
Signed-off-by: Shravani Dingari <shravanid@nvidia.com>
Reviewed-on: http://git-master/r/1265724
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
7 years agodefconfig: Add t210 gnu linux defconfig
sreenivasulu velpula [Tue, 29 Nov 2016 18:16:54 +0000 (23:46 +0530)]
defconfig: Add t210 gnu linux defconfig

Initial config copied from tegra21_defconfig

Bug  200251658

Change-Id: I10ca61235d318f2deb5a1ee1aea9ad17fd0ccfbb
Signed-off-by: sreenivasulu velpula <svelpula@nvidia.com>
Reviewed-on: http://git-master/r/1256315
GVS: Gerrit_Virtual_Submit
Reviewed-by: Amlan Kundu <akundu@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>