4 years agoreboot: checkpatch.pl the new kernel/reboot.c file
Robin Holt [Mon, 8 Jul 2013 23:01:34 +0000]
reboot: checkpatch.pl the new kernel/reboot.c file

Get the new file to pass scripts/checkpatch.pl

Change-Id: I4266d6d8be6a5ca0051b5dc0f1c200708f4e6f6e
Signed-off-by: Robin Holt <holt@sgi.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Russ Anderson <rja@sgi.com>
Cc: Robin Holt <holt@sgi.com>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/603278
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoreboot: move shutdown/reboot related functions to kernel/reboot.c
Robin Holt [Mon, 8 Jul 2013 23:01:32 +0000]
reboot: move shutdown/reboot related functions to kernel/reboot.c

This patch is preparatory.  It moves reboot related syscall, etc
functions from kernel/sys.c to kernel/reboot.c.

Change-Id: I4eae662ffdf7d3b86f96bd47a71e18a0c29ad303
Signed-off-by: Robin Holt <holt@sgi.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Russ Anderson <rja@sgi.com>
Cc: Robin Holt <holt@sgi.com>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/603288
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoRevert "arm64: kernel: init pm_restart with mdesc->restart"
Varun Wadekar [Fri, 14 Nov 2014 06:41:30 +0000]
Revert "arm64: kernel: init pm_restart with mdesc->restart"

This reverts commit 751d1de359af1894f0bc6b1af5c5b0f986a16c90 as
we want to move to a more sophisticated reboot mechanism.

Change-Id: I573af6c9db5d46c20d8728a581603b71ca5f6d0b
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/606073
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoarm: tegra: p1859-vm: enable GPU virtualization
Bo Kim [Tue, 25 Nov 2014 16:17:00 +0000]
arm: tegra: p1859-vm: enable GPU virtualization

When running a single Linux instance in a virtualized
environment, GPU virtualization needs to be enabled
to ensure proper graphics functionality.

Bug 200052836

Change-Id: If84f4b85df210415c5cf30db73ce9f4b7fb3ad94
Signed-off-by: Bo Kim <bok@nvidia.com>
Reviewed-on: http://git-master/r/656423
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

4 years agotegra: adsp: dfs: add adsp freq step
Puneet Saxena [Wed, 26 Nov 2014 09:55:20 +0000]
tegra: adsp: dfs: add adsp freq step

Adds adsp freq steps to reach max adsp
clk freq allowed in hw.

bug 200059658

Change-Id: Ib349a10bb918dfbefb36fbbb0ae1746de8fae203
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/656032
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>

4 years agotegra: clocks: Parse dfll_boot_khz kernel cmd
sreenivasulu velpula [Wed, 26 Nov 2014 18:28:58 +0000]
tegra: clocks: Parse dfll_boot_khz kernel cmd

1.
Parse dfll_boot_khz kernel command line parameter
in early init to initialize dfll frequency clock
rate varaible.

This is required to make sure that SW clock rate
variable to be in sync with HW dfll freq rate and
for not to have sw cpu feq as zero.

With this change, below issue won't occur:

In a Virtual guest platform, where kernel is
not required to do any clock operations on CPU,
existing frequency in cpufreq coming a zero.

2.
Add appropriate check to cl_dvfs APIs for
not to invoke when not initialized

Bug 200052836

Change-Id: Idf102c5f27f9c2c623075c55f01adf2baf7e7c96
Signed-off-by: sreenivasulu velpula <svelpula@nvidia.com>
Reviewed-on: http://git-master/r/656289
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

4 years agojetson: update extcon config for jetson board.
Hayden Du [Thu, 27 Nov 2014 08:01:15 +0000]
jetson: update extcon config for jetson board.

bug 200059987

Change-Id: Ia46238705173186c75dc166177c89d45db9cb4e9
Reviewed-on: http://git-master/r/656426
(cherry picked from commit aa4db223fd5253585c040e3d94fa1a92559ba2f0)
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/656936
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agotegra: dc: hdmi: fix device_shutdown setting
Allen Yu [Mon, 24 Nov 2014 04:57:51 +0000]
tegra: dc: hdmi: fix device_shutdown setting

device_shutdown should be set to true in shutdown callback

Bug 200058307

Change-Id: I0a480b45ab91ba77248b71bd1c1aa9fbf14a1c22
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/654530
(cherry picked from commit 1c0ea878a847daffbe526357c50097b26ef9a554)
Reviewed-on: http://git-master/r/655145
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoarm: tegra: p1859: remove incorrect setting
Bo Kim [Thu, 27 Nov 2014 05:15:47 +0000]
arm: tegra: p1859: remove incorrect setting

We don't need nframes and frame-size for ivc7.

Change-Id: Ic9d5cbbaa41b6b95843a81349b182303d613b498
Signed-off-by: Bo Kim <bok@nvidia.com>
Reviewed-on: http://git-master/r/656611
Reviewed-by: Nitin Sehgal <nsehgal@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

4 years agoARM: tegra: vcm30t124: p1855 - DTS file added for p1855 Board
Pravin [Thu, 20 Nov 2014 14:37:28 +0000]
ARM: tegra: vcm30t124: p1855 - DTS file added for p1855 Board

Dedicated device tree support added for p1855

bug 1446454

Change-Id: I1aa023fcb252dc919dddc5d375e436c134fdb978
Signed-off-by: Pravin <pt@nvidia.com>
Reviewed-on: http://git-master/r/653946
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
Tested-by: Sandeep Trasi <strasi@nvidia.com>

4 years agoARM: tegra: vcm30t124: p1855 - Enable HSIC
Pravin [Thu, 20 Nov 2014 14:45:19 +0000]
ARM: tegra: vcm30t124: p1855 - Enable HSIC

Ethernet ports in p1855 board are interfaced to a
"USB 2.0 TO 10/100 ETHERNET" chip (LAN9730i).so
T124 UTMI2 and UTMI2 controllers are configured
for HSIC based on ODMDATA.

bug 1446454

Change-Id: Ia70baa9ae1afa6d9d1e42aa3f999f517d8e668c2
Signed-off-by: Pravin <pt@nvidia.com>
Reviewed-on: http://git-master/r/653947
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

4 years agoARM: tegra: Add annotation for IO_TO_VIRT
Shridhar Rasal [Thu, 27 Nov 2014 07:25:05 +0000]
ARM: tegra: Add annotation for IO_TO_VIRT

Adds _iomem annotation for IO_TO_VIRT to fix sparse warning

Bug 1573777

Change-Id: I349512275813e4795d00a462712f3d6193cb54b7
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/656592
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>

4 years agommc: tegra: Enable SD2.0 cards support
R Raj Kumar [Tue, 18 Nov 2014 09:17:38 +0000]
mmc: tegra: Enable SD2.0 cards support

- Enabled SD2.0 (which runs at 3.3V) on T210 based
A01Q chips by using fuse opt_subrevision data
- Below are the opt_subrevision values for T210 chips
  A01: 0x0
  A01P: 0x1
  A01Q: 0x2

Bug 200056821

Change-Id: I8d5a32090dc6823fa7fdc0896a491d9266c77218
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/655178
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agoV3A: Add CONFIG_ARM_PSCI
Wayne Lin [Mon, 17 Nov 2014 19:30:52 +0000]
V3A: Add CONFIG_ARM_PSCI

Add CONFIG_ARM_PSCI in defconfig

Bug 200015488

Change-Id: I7e4558c3734bbd447b55824de9bed703714a8d71
Signed-off-by: Wayne Lin <wlin@nvidia.com>
Reviewed-on: http://git-master/r/655682
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

4 years agoARM64: DT: tegra210: sdhci: remove max volt limit node
R Raj Kumar [Tue, 18 Nov 2014 10:42:14 +0000]
ARM64: DT: tegra210: sdhci: remove max volt limit node

- Removed "limit-vddio-max-volt" dt entry from sdhci
to support SD2.0 (which runs at 3.3V) on A01Q chips
- Added is-sd-device entry in sdhci DT to identify
SD devices

Bug 200056821

Change-Id: I847946f03c684b968da0315922d552c83c38342c
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/655177
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agotegra: clocks: Fix NULL instead of integer
Amit Sharma [Thu, 27 Nov 2014 07:24:48 +0000]
tegra: clocks: Fix NULL instead of integer

Fixed sparse warning by using proper NULL instead of '0'.

Bug 200032218

Change-Id: Ibfa6f66c8fa591c453cb33257746bd421dc0961f
Signed-off-by: Amit Sharma <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/656589
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

4 years agomisc: tegra-fuse: add api to read fuse opt subrevision
R Raj Kumar [Wed, 19 Nov 2014 09:08:23 +0000]
misc: tegra-fuse: add api to read fuse opt subrevision

- Added a API in tegra fuse driver to read the fuse
opt subrevision of the device.
- Set tegra_chip_get_revision() api as public

Bug 200056821

Change-Id: I5d4008e27d828e1060d4ffbdd2cdc7f8bff80648
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/655176
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agoarm64: p2595: add HDMI power tree for Jetson-e
Shreshtha SAHU [Thu, 20 Nov 2014 05:14:42 +0000]
arm64: p2595: add HDMI power tree for Jetson-e

Bug 200044360

Change-Id: I1624931d75d62bcd94828a1b6aad4d52e086086e
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/606626
(cherry picked from commit ae6c0b6eb470f7e6121f04402448f58c3cc1661a)
Reviewed-on: http://git-master/r/656654
Tested-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoarm64: jetson: add emc dvfs support
Kerwin Wan [Thu, 20 Nov 2014 06:31:04 +0000]
arm64: jetson: add emc dvfs support

Bug 200044360

Change-Id: Ib21b4a1eb697d60a6bfb93a35b71a0668193a6bc
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/606674
(cherry picked from commit 735d5204983c0e814f2b6bfae663112cdf66d27f)
Reviewed-on: http://git-master/r/656653
Reviewed-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoarm64: jetson: add sensors support
Kerwin Wan [Thu, 20 Nov 2014 06:27:55 +0000]
arm64: jetson: add sensors support

Also remove unused dt node ak8975@0c on t210 platforms.

Bug 200044360

Change-Id: I808b0f976edd8218a04052f9c68416ed89474c7c
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/606673
(cherry picked from commit bf70dee35fc1fc1ab5385e0c85bb6cb6838c4e0c)
Reviewed-on: http://git-master/r/656652
Reviewed-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoarm64: jetson: add touch support for 25x16 sharp panel
Kerwin Wan [Thu, 20 Nov 2014 04:58:59 +0000]
arm64: jetson: add touch support for 25x16 sharp panel

Bug 200044360

Change-Id: I5bf9eb6d5685a863279ab7c480e2af97af5c57a4
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/606672
GVS: Gerrit_Virtual_Submit
(cherry picked from commit 8263395936730852dd1fc22f6f0bafb2b980948b)
Reviewed-on: http://git-master/r/656651
Reviewed-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoarm: tegra: add E2145 panel support
Kerwin Wan [Thu, 20 Nov 2014 02:51:31 +0000]
arm: tegra: add E2145 panel support

Bug 200044360

Change-Id: Ia1ad87eb64490d86003cb4e456c673d10e52b273
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/606585
(cherry picked from commit 78c91325b5397e5d7c07d9fe33fa6433466b49d1)
Reviewed-on: http://git-master/r/656650
Reviewed-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoarm64: p2595: add backlight dt node
Kerwin Wan [Sat, 15 Nov 2014 01:49:52 +0000]
arm64: p2595: add backlight dt node

Bug 200044360

Change-Id: If855ed8bcfa2bb6d2c425ea22f3f37a155c3ee97
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/603774
(cherry picked from commit a25cb79fed0c0d000b70514c2bca5530e6fded97)
Reviewed-on: http://git-master/r/656649
Reviewed-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoarm64: tegra: p2595: add Sharp 25x16 10.1' panel support
Kerwin Wan [Wed, 12 Nov 2014 04:58:00 +0000]
arm64: tegra: p2595: add Sharp 25x16 10.1' panel support

tegra210-common.dtsi already includes tegra-gpio.h so there
is no need to include it twice.

Bug 200044360

Change-Id: I3900e9ac8e3f221bd13649772491275b0022f693
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/601436
(cherry picked from commit f86fec8a1b23657403462527f6c3e2ac7087bf0c)
Reviewed-on: http://git-master/r/656648
Reviewed-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoarm64: tegra: add jetson-e dt board compat
Shreshtha SAHU [Tue, 21 Oct 2014 07:07:28 +0000]
arm64: tegra: add jetson-e dt board compat

Bug 200044360

Change-Id: Ie8101e6e8cbb6f1ce583741308ecff627ff7e227
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/601599
(cherry picked from commit 0a8a89698a88c8daf1057a9e6e466c2fbe24deef)
Reviewed-on: http://git-master/r/656647
Tested-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoARM64: DT: tegra210: e2190/e2220: Fix sdmmc pinmux settings
R Raj Kumar [Tue, 18 Nov 2014 14:21:04 +0000]
ARM64: DT: tegra210: e2190/e2220: Fix sdmmc pinmux settings

Move auto generated sdmmc pinmux settings to right settings.

Bug 200056383

Change-Id: Idf39367a6f52618a099be12e32a8be9af2451b9c
Reviewed-on: http://git-master/r/604832
(cherry picked from commit 05489a565a412299e2143f05646ac6323f71110f)

Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Change-Id: Id3050b0435a1b326ba6e0bfd2eed9a975bf18c9e
Reviewed-on: http://git-master/r/656663
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agoARM64: DT: tegra210: sdhci: Update SD tap values
R Raj Kumar [Tue, 25 Nov 2014 05:44:34 +0000]
ARM64: DT: tegra210: sdhci: Update SD tap values

Updated tap value settings for SD device as per
SDMMC IAS doc

Bug 200058726

Change-Id: I710ea04b54e7b052c5c6ead722c5cb96d113ca80
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/655123
(cherry picked from commit 2fa2a61fe4695ad48d9ecc916123312c7c142564)
Reviewed-on: http://git-master/r/656629
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agoarm64: Fix for the arm64 kern_addr_valid() function
Dave Anderson [Tue, 15 Apr 2014 17:53:24 +0000]
arm64: Fix for the arm64 kern_addr_valid() function

Fix for the arm64 kern_addr_valid() function to recognize
virtual addresses in the kernel logical memory map.  The
function fails as written because it does not check whether
the addresses in that region are mapped at the pmd level to
2MB or 512MB pages, continues the page table walk to the
pte level, and issues a garbage value to pfn_valid().

Tested on 4K-page and 64K-page kernels.

Bug 1526131

Signed-off-by: Dave Anderson <anderson@redhat.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit da6e4cb67c6dd1f72257c0a4a97c26dc4e80d3a7)
Change-Id: I8537624b62adf00efa34af7534cef0cd05d7fd98
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/653880
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>

4 years agoarm: tegra: vcm30t124: add iommu node for virtual audio slave
Nitin Sehgal [Wed, 26 Nov 2014 09:25:44 +0000]
arm: tegra: vcm30t124: add iommu node for virtual audio slave

- map virtual audio slave to PPCS2
- add PPCS2 domain to VM_2

Change-Id: I68c7f6b18b09b251cb686c1d7a69ad8871982ce9
Signed-off-by: Nitin Sehgal <nsehgal@nvidia.com>
Reviewed-on: http://git-master/r/656016
Reviewed-by: Vladislav Buzov <vbuzov@nvidia.com>
Tested-by: Aniket Bahadarpurkar <aniketb@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

4 years agousb:gadget: remove unbind_config from acm_function
George Zhou [Tue, 18 Nov 2014 03:29:03 +0000]
usb:gadget: remove unbind_config from acm_function

unbind_config of acm is to remove usb_function of acm,
which is also done in usb_remove_config() generically.
usb_remove_function() should not be called in unbind_config of
acm_function.

bug 200056064

Change-Id: Iead128225f628510d6a143a6da1a028ff9b87b9b
Signed-off-by: George Zhou <gzhou@nvidia.com>
Reviewed-on: http://git-master/r/605814
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

4 years agoextcon: class: return edev only if cable is in supported range
Laxman Dewangan [Thu, 20 Nov 2014 20:14:53 +0000]
extcon: class: return edev only if cable is in supported range

Return the proper extcon dev from extcon_get_extcon_cable() only if
requested cable index is within the supported range.

bug 200056602

Change-Id: I0176c081de33e29aeca33678f7f4abd86ffd5fea
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/607090
(cherry picked from commit 721490dbe291f263a8e3557626ee4eb4ae736264)
Reviewed-on: http://git-master/r/656196

4 years agoRevert "arm64: configs: tegra21: Enable FIQ debugger"
Bharat Nihalani [Thu, 27 Nov 2014 12:22:17 +0000]
Revert "arm64: configs: tegra21: Enable FIQ debugger"

This reverts commit 7e0fa797d0434836bad4141f91cf985eaa8a95c6.

This helps fix the following two bugs:
Bug 1581367
Bug 200059093

Change-Id: I399714fc5a44e2496fc95cc886fde710e7bb864a
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/656544

4 years agoTEMP: arm64: tegra21: config: disable USB XHCI
Bharat Nihalani [Thu, 27 Nov 2014 06:45:01 +0000]
TEMP: arm64: tegra21: config: disable USB XHCI

XHCI driver is causing multiple bugs in suspend-resume path.
Hence disable this driver temporarily.

Bug 1577814
Bug 200052921
Bug 1581367

Change-Id: Id5de02452a6c71e462bdcea639596c61af854696
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/656526

4 years agoarm: boot: dts: Disable unaligned dma buf support
Rohith Seelaboyina [Thu, 20 Nov 2014 04:44:45 +0000]
arm: boot: dts: Disable unaligned dma buf support

Enable the SW work around for the unaligned dma
buffer support

Bug 1505123

Change-Id: I6bd4fb381a705e1fda75f162e95ee3176b98caf6
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/606611
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agousb: phy: tegra: Disable unaligned dma buf support
Rohith Seelaboyina [Thu, 20 Nov 2014 04:45:59 +0000]
usb: phy: tegra: Disable unaligned dma buf support

Enable the SW work around for unaligned dma buffer
support

Bug 1505123

Change-Id: I02ba8951cc73ccde496e93e5fe0611e7bfb227c0
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/606612
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoarm: tegra: 124: Disable unaligned dma buf support
Rohith Seelaboyina [Thu, 20 Nov 2014 04:40:52 +0000]
arm: tegra: 124: Disable unaligned dma buf support

Enable the SW work around for the unaligned dma buffer support.

Bug 1505123

Change-Id: I2076080f6d63b4f0458bb4b12bf7b6dd66129d3e
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/606610
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agostaging: iio: ads:handle negative threshold values
Venkat Reddy Talla [Thu, 20 Nov 2014 16:36:08 +0000]
staging: iio: ads:handle negative threshold values

add support to read negative threshold values from DT and update
to ADS chip to generate interrupt when ID GND detected as negative voltage.

Bug 200056961

Change-Id: I9413e3773500ad8a104dee489361f4609ed6818e
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/607012
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/656101
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>

4 years agoplatform: tegra: mc: Fix NULL instead of integer
Amit Sharma [Thu, 27 Nov 2014 06:49:49 +0000]
platform: tegra: mc: Fix NULL instead of integer

Fixed sparse warning by using proper NULL instead of '0'.

Bug 200032218

Change-Id: I905178a192f315bade06d613cf8dfc7d39b72ff6
Signed-off-by: Amit Sharma <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/656563
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoplatform: tegra: nvadsp: fix prints & Indentation
Ajay Nandakumar [Tue, 25 Nov 2014 19:03:42 +0000]
platform: tegra: nvadsp: fix prints & Indentation

Fixing prints as in from pr_*() to dev_*() and also a few Indetation.

Bug 200007507

Change-Id: I6b7ba53fb7b5f5f6657adc2a0aceadd6aa46605e
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/655481
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

4 years agovideo: tegra: hdmi: Deep color clk config
Animesh Kishore [Tue, 25 Nov 2014 14:22:07 +0000]
video: tegra: hdmi: Deep color clk config

Bug 200056546

Change-Id: Ifedfa48b8afabae195ae4fe9ed6d42ea085f7e7b
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/656315
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoplatform: nvadsp: assign priv.pdev on success
Ajay Nandakumar [Tue, 25 Nov 2014 18:09:17 +0000]
platform: nvadsp: assign priv.pdev on success

Assign priv.pdev to platform device on successful probe. The prov.pdev
is used to check if driver is initialized or not across the driver.

Bug 200007507

Change-Id: I0d8a4907e965724bffdfe8fd4d9cb118d45839b8
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/655480
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

4 years agopower: bq27441: print low battery log only once
Venkat Reddy Talla [Mon, 24 Nov 2014 14:16:54 +0000]
power: bq27441: print low battery log only once

print system on low battery log message only once even though
framework layer read battery properties many times through
sysfs nodes.

Change-Id: Iba7894fa59e8604a3dbf96cd5c102809c653cdd2
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/654766
(cherry picked from commit 5cfc85be372fe2213abbdf564c734436f9164643)

4 years agopower: bq27441: return EINVAL if no battery temp support
Venkat Reddy Talla [Tue, 18 Nov 2014 17:03:41 +0000]
power: bq27441: return EINVAL if no battery temp support

return EINVAL when requested for battery temp from other
modules if platform does not support reporting battery temperature
due to hardware limitations.

Bug 1579878

Change-Id: I27998a2b49aff604bfc7eea4190660eb8c523566
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/604882
(cherry picked from commit e400a4aaf2a04fb09f8abe029561211adeef9535)
Reviewed-on: http://git-master/r/604876
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoARM64: tegra: dts: provide negative adc threshold values
Venkat Reddy Talla [Thu, 20 Nov 2014 16:29:02 +0000]
ARM64: tegra: dts: provide negative adc threshold values

provide negative adc threshold values to generate interrupt
when ADC chip detecting ID GND as negative voltage.

Bug 200056961

Change-Id: I9ebdb331cc7fde3479ec0fcd55166aea351431a3
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/656102
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoplatform: tegra: nvadsp: Add timeout for wfe wait
Ajay Nandakumar [Tue, 25 Nov 2014 16:05:34 +0000]
platform: tegra: nvadsp: Add timeout for wfe wait

Adding timeout for wfe wait for completion, as there is a possiblity
that ADSP is hard hang state and is not in a position to handle.

Bug 200007507

Change-Id: I096c93ae2ad6258d39cf43d4b8ebdf518b901adf
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/655478
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoARM64: DTS: Enable ads1015 continuous mode
Mallikarjun Kasoju [Wed, 29 Oct 2014 10:57:47 +0000]
ARM64: DTS: Enable ads1015 continuous mode

- Enable ADS1015 ADC conversion in continuous mode
- Provided valid threshold adc values

Bug: 1555564

Change-Id: Ib5a1709104dbaea8018d862d562ceb5b5ef7fd3c
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/602637
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoplatform: nvadsp: Add wait for app timeout API
Ajay Nandakumar [Mon, 24 Nov 2014 12:52:52 +0000]
platform: nvadsp: Add wait for app timeout API

Adding wait for app timeout API, which enables threads to wait for an
app for a duration and exit with a return value depending on if it is
timeout, interrupted or completed within the specific time.

Bug 200055512

Change-Id: I030424d11e8eefe818516ac84f8522eec32cb567
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/654740
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agovideo: tegra: hdmi: Add gcp support
Animesh Kishore [Tue, 25 Nov 2014 10:27:17 +0000]
video: tegra: hdmi: Add gcp support

Adding General Control Packet support

Bug 200056546

Change-Id: I9ad59a5bf319d8dbe63409e7b8ebd3055edc039d
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/656314
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agopca953x: power management -- proper resume
dmitry pervushin [Tue, 25 Nov 2014 16:45:53 +0000]
pca953x: power management -- proper resume

Bug 200059386

Change-Id: Ib245854fc824601843c51ce66eed16b3183f13a3
Signed-off-by: dmitry pervushin <dpervushin@nvidia.com>
Reviewed-on: http://git-master/r/655434
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

4 years agoARM: tegra: Provide the enable/disable time for gpio controlled load switches
Laxman Dewangan [Fri, 21 Nov 2014 15:03:02 +0000]
ARM: tegra: Provide the enable/disable time for gpio controlled load switches

Add the enable/disable time for the gpio controlled load switches for
ERS as per measurements.

bug 1559684

Change-Id: I74760dfa48bd2d8a512d90d92f9faa1c0d3147c7
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 9bb4710c8190520f5a8d80090c4377f507c008ce)

4 years agopower: extcon: Free extcon cable memory in error case
Mallikarjun Kasoju [Wed, 26 Nov 2014 04:51:41 +0000]
power: extcon: Free extcon cable memory in error case

Free extcon cable memory if the registration is failed.

Bug 200057819

Change-Id: Id399b84ff30e39cc0510d5594113658fe5607df5
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/655170
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoextcon: class: Add support to free extcon cable memory
Mallikarjun Kasoju [Wed, 26 Nov 2014 04:46:46 +0000]
extcon: class: Add support to free extcon cable memory

Add support to free extcon cable memory.

Bug 200057819

Change-Id: I49ec2ad3e104b4d5138a2f47bce383b1181c2aaa
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/655764
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoARM: tegra: Add enable/disable and ramp delay for Loki E02
Laxman Dewangan [Fri, 21 Nov 2014 19:41:30 +0000]
ARM: tegra: Add enable/disable and ramp delay for Loki E02

Add enable/disable and ramp time for the Loki E02 and later.

bug 1559689

Change-Id: Iff674c84bd99375b8c01d395b3a8ec1b44fc2496
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/654228
(cherry picked from commit 67f18446e5e4867f078ee9fdd0ad569da7f9cb1a)
Reviewed-on: http://git-master/r/656198

4 years agoRevert "platform: tegra: padctrl: Fix bias pad ownership"
Rohith Seelaboyina [Tue, 25 Nov 2014 09:04:12 +0000]
Revert "platform: tegra: padctrl: Fix bias pad ownership"

This reverts commit 8a9deb96f46a89631fa3b0079e33303fb0126f90.

Bug 200059220
Bug 200049196

Change-Id: I9d760f881ec5612210e64ed662b7ba561c40d130
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/655257
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoi2c: tegra: define chip_data structure for T124
Shardar Shariff Md [Wed, 19 Nov 2014 12:34:45 +0000]
i2c: tegra: define chip_data structure for T124

define seperate tegra124_i2c_chipdata structure
for T124 with correct clk_divisor_fast_plus_mode
value.

Bug 200056684

Change-Id: Ib84c6611a8d73b45aa7078c0c5b7bafc3ccf516f
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/606258
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoarm: dt: tegra12: vm1/p1859: disable dvfs, therm
Bo Kim [Fri, 14 Nov 2014 09:07:40 +0000]
arm: dt: tegra12: vm1/p1859: disable dvfs, therm

Disable dvfs, soc therm, vdd_cpu and
vdd_gpu regulators.

Add vdd_gpu ovveride to enable, otherwise
kernel will disable vdd_gpu.

Bug 200052836

Change-Id: If375c0129282e884f1d8b2b11c588b3254eff737
Signed-off-by: Bo Kim <bok@nvidia.com>

4 years agoarm: dt: p1859: update for GPU IOVA space sharing
Bo Kim [Mon, 10 Nov 2014 18:58:19 +0000]
arm: dt: p1859: update for GPU IOVA space sharing

Limit the useable GPU IOVA space of android VM1.

Bug 1418425
Bug 200049638

Change-Id: I2117f3ea648805816808391545146165a45f5236
Signed-off-by: Bo Kim <bok@nvidia.com>

4 years agoRevert "USB: phy: tegra: Fix full-speed resume"
Petlozu Pravareshwar [Fri, 7 Nov 2014 11:42:46 +0000]
Revert "USB: phy: tegra: Fix full-speed resume"

This reverts commit 4151c3960f6550158fa1bac2486b631b19ceb29b.
This is to prevent the reset observed during FS remotewakeup.

Bug 200018091

Change-Id: Icc7072270f348d7799a37367268c577e44b73c78
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/591539
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoarm: tegra: p1859: add smmu virtualization
Bo Kim [Thu, 6 Nov 2014 08:18:45 +0000]
arm: tegra: p1859: add smmu virtualization

Enable virtual smmu driver support

Bug 141825
Bug 200049638

Change-Id: Ie98d53d82ec4514942b73620eb7b4a81baff552c
Signed-off-by: Bo Kim <bok@nvidia.com>

4 years agomisc: tegra-baseband: remove PWR_DET WAR
Mark Kuo [Wed, 26 Nov 2014 03:37:01 +0000]
misc: tegra-baseband: remove PWR_DET WAR

In http://git-master/r/#/c/487100/ we had a WAR to set voltage rail by
calling a function in powerdetect driver. Since we have pad control
driver for PMC now, we don't need to call this anymore, hence remove it
in modem power driver.

Bug 200059366

Change-Id: Ic183feee01987d479c243743d6838efad8893bb3
Signed-off-by: Mark Kuo <mkuo@nvidia.com>
Reviewed-on: http://git-master/r/655745
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rajkumar Jayaraman <rjayaraman@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agospi: tegra124-slave: Fix SPI_LSB_FIRST mode
Sanket Parmar [Thu, 20 Nov 2014 07:37:55 +0000]
spi: tegra124-slave: Fix SPI_LSB_FIRST mode

SPI_LSB_FIRST mode was not working if it is set from
userspace application. This patch will fix this issue.

Bug 200057396

Change-Id: I1c3cc5ad736d7ed2c4a0ebbb9ad091c96f72669d
Signed-off-by: Sanket Parmar <sparmer@nvidia.com>
Reviewed-on: http://git-master/r/606712
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kirankumar Bobbu <kbobbu@nvidia.com>
Reviewed-by: Amlan Kundu <akundu@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

4 years agotegra12: dvfs: Update GPU Vmax for Automotive
Jinyoung Park [Tue, 18 Nov 2014 16:36:39 +0000]
tegra12: dvfs: Update GPU Vmax for Automotive

Updated GPU Vmax to 1130mV to allow the cold mode Vmax.
In normal mode, Vmax is 1120mV which is generated by valid speedo values
via CVB calculations.
In cold mode, Vmax is 1130mV which is fixed voltage from characterization.

Bug 200055112

Change-Id: I8aa02f00ea41663c90e6f587a71dd12155fe9277
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/606184
Reviewed-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-by: Sreenivasulu Velpula <svelpula@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>

4 years agoarm: tegra12: add new dts for android vm
Nitin Sehgal [Fri, 31 Oct 2014 14:26:10 +0000]
arm: tegra12: add new dts for android vm

- add separate dts for controlling virtualization features ie. smmu

bug 1418245

Change-Id: Ib62fbf8b18a028e313da3056976f3b0e3d475941
Signed-off-by: Nitin Sehgal <nsehgal@nvidia.com>
Reviewed-on: http://git-master/r/592141
Reviewed-by: Bo Kim <bok@nvidia.com>
Tested-by: Bo Kim <bok@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>

4 years agoarm: tegra: vcm30t124: enable GPU virtualization
Aingara Paramakuru [Tue, 25 Nov 2014 16:17:00 +0000]
arm: tegra: vcm30t124: enable GPU virtualization

When running a single Linux instance in a virtualized
environment, GPU virtualization needs to be enabled
to ensure proper graphics functionality.

Bug 200052836

Change-Id: I0a6dedd22d17e7f54f57525a79c90fffde0f2f77
Signed-off-by: Aingara Paramakuru <aparamakuru@nvidia.com>
Reviewed-on: http://git-master/r/655431
Reviewed-by: Vladislav Buzov <vbuzov@nvidia.com>
Reviewed-by: Nitin Sehgal <nsehgal@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

4 years agopowergate: tegra: fix mc flush sequence
Prashant Gaikwad [Tue, 25 Nov 2014 11:40:27 +0000]
powergate: tegra: fix mc flush sequence

Use correct mc_client_bit to mark flush done and return true
from hotreset check.

Change-Id: I5696620b4b7feca6e9874720e7505be2f0c6d6a8
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/655339
Reviewed-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agousb: gadget: f_fs: do not override descriptors
JC Kuo [Wed, 12 Nov 2014 11:20:13 +0000]
usb: gadget: f_fs: do not override descriptors

The descriptors buffer gets overridden in __ffs_func_bind_do_descs()
by accident. That causes f_fs driver de-references from an invalid
(struct ffs_ep *) pointer and cause "two fullspeed descriptors for EP"
problem.

f_fs driver should make a local copy of the descriptors buffer in
bind function, ffs_func_bind().

bug 200035400
bug 200045160

Change-Id: Id63cf25b8a1c97075f748ce91cb39dc6c6731608
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/601656
Tested-by: George Zhou <gzhou@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

4 years agoiommu/smmu: fix swgid truncation above 32 bits
Nitin Sehgal [Wed, 26 Nov 2014 08:34:33 +0000]
iommu/smmu: fix swgid truncation above 32 bits

bug 200059210

Change-Id: I913f5e4ea369d0ad81bb4d4cd255b47d0dbc232e
Signed-off-by: Nitin Sehgal <nsehgal@nvidia.com>
Reviewed-on: http://git-master/r/656015
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: Vladislav Buzov <vbuzov@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Aniket Bahadarpurkar <aniketb@nvidia.com>

4 years agoASoC: tegra-alt: Cleanup dai link utility
Arun Shamanna Lakshmi [Wed, 26 Nov 2014 01:56:45 +0000]
ASoC: tegra-alt: Cleanup dai link utility

Use devm_kzalloc to free automatically when device is removed

coverity id: 27709

Bug 200059102

Change-Id: Ie0554e5e8d1204d116fffae975681bef7aaa3d41
Signed-off-by: Arun Shamanna Lakshmi <aruns@nvidia.com>
Reviewed-on: http://git-master/r/655645

4 years agoarm64: dts: tegra210: match thermal zone names from prior chips
Matt Longnecker [Thu, 20 Nov 2014 23:24:27 +0000]
arm64: dts: tegra210: match thermal zone names from prior chips

Chips prior to T210 have used the names CPU-therm and GPU-therm for
the CPU and GPU thermal zones respectively. Adjust T210 dtsi files to
do the same.

Bug 1576205

Change-Id: Idd6a623fa0dbef58b65efebed363c7d1e76ac5a7
Signed-off-by: Matt Longnecker <mlongnecker@nvidia.com>
Cc: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/607170
(based on commit 2f19dc1ee5ea7a79184dd3fd260f523818d16f48)
Reviewed-on: http://git-master/r/655524
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

4 years agotegra: themal: throttle: check table size is right
Diwakar Tundlam [Thu, 20 Nov 2014 21:50:34 +0000]
tegra: themal: throttle: check table size is right

Read the DT property, get size and check against size specified in DT.

Change-Id: I4eac518c7603a7f941ee6f0b2be1f50c63185d07
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/607108
(cherry picked from commit e51623f52463653e30cb9dd1cf97dd75c9840fc0)
Reviewed-on: http://git-master/r/655497

4 years agocpuidle: denver: skip disabled cpu DT nodes
Mark Young [Mon, 28 Jul 2014 23:28:47 +0000]
cpuidle: denver: skip disabled cpu DT nodes

skip cpu nodes marked as disabled in the device tree.

Change-Id: I40f7dc35bd1cecdeb97d29b0256611d0c554e0bf
Signed-off-by: Mark Young <myoung@nvidia.com>
Reviewed-on: http://git-master/r/448275
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>

4 years agoASoC: tegra-alt: Fix T124 coverity issues
Arun Shamanna Lakshmi [Wed, 26 Nov 2014 00:41:18 +0000]
ASoC: tegra-alt: Fix T124 coverity issues

coverity id: 27872, 27873, 27874, 27875

Bug 200059102

Change-Id: I0c6793760c03651fe706a647e44fc87424d36a42
Signed-off-by: Arun Shamanna Lakshmi <aruns@nvidia.com>
Reviewed-on: http://git-master/r/655600

4 years agoARM64: configs: Enable MMC_FFU config.
Naveen Kumar Arepalli [Wed, 15 Oct 2014 09:03:19 +0000]
ARM64: configs: Enable MMC_FFU config.

-Enable MMC_FFU option to support eMMC FFU functionality.

Bug 1513913

Change-Id: Ica51d6507c88840af25fb9cd79bc52529895484b
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/602609
(cherry picked from commit 1de53243acd6f09eabee9c63692a5a33333406b0)
Reviewed-on: http://git-master/r/557316
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agommc: add FFU support for eMMC5.0
Avi Shchislowski [Wed, 15 Oct 2014 09:02:09 +0000]
mmc: add FFU support for eMMC5.0

-Patch is received from below link.
http://www.spinics.net/lists/linux-mmc/msg26519.html
-Patch owner has pointed to this change.
-Once the change is available in upstream, will revert
this change.

Bug 1513913

Change-Id: I9c487f4d1aeba5a9c4126a5a8f58edd68bdf6a3b
Signed-off-by: Avi Shchislowski <avi.shchislowski@sandisk.com>
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/602608
(cherry picked from commit 02a507abb9ee59c8c5b5679234a3741a4d380ab5)
Reviewed-on: http://git-master/r/501088
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agommc: tegra: Don't set dqs trim delay by default.
Naveen Kumar Arepalli [Fri, 21 Nov 2014 06:20:46 +0000]
mmc: tegra: Don't set dqs trim delay by default.

-dqs trim delay is valid for eMMC HS400 mode.
-uhs_signalling function will set dqs trim delay for
HS400 mode.

Bug 200057983

Change-Id: I501a8055629183e842605b928792b88ce87ad7b8
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/653910
(cherry picked from commit e45548c80044f23a539fcf979f04d1dc16a2314e)
Reviewed-on: http://git-master/r/655109
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agousb: host: Enable Werror flag
Sumit Singh [Tue, 11 Nov 2014 14:15:47 +0000]
usb: host: Enable Werror flag

Enable Werror for all the files directly under
drivers/usb/host directory.

Bug 1566945

Change-Id: I2972f32ec4d4d308401b50f1f31961901e3b5dd4
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/601131
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agousb: xhci: tegra: Fix build warnings
Sumit Singh [Tue, 25 Nov 2014 14:20:31 +0000]
usb: xhci: tegra: Fix build warnings

Fix below build warning:
- format '%d' expects argument of type 'int',
but argument has type 'long unsigned int', in
file xhci-tegra.c.

Bug 1566945

Change-Id: I63abe8b5f43b6e428158719b240852b182ee2c8f
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/655408
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agovideo: fbmon: fix spurious modes warning
Santosh Reddy [Mon, 17 Nov 2014 07:05:20 +0000]
video: fbmon: fix spurious modes warning

perform hdmi vendor block parsing only when ieee
registration number is 0x000c03 in fb_edid_add_monspecs.

Bug 200056032

Change-Id: I3b4719eebf4d04825ae72148efd34c63d6f9cddf
Signed-off-by: Santosh Reddy <galmar@nvidia.com>
Reviewed-on: http://git-master/r/603980
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agogpu: nvgpu: cde: remove unused obj_ids
Konsta Holtta [Tue, 25 Nov 2014 11:51:21 +0000]
gpu: nvgpu: cde: remove unused obj_ids

obj_id from gk20a_alloc_obj_ctx is not used and calling free_obj_ctx is
effectively a no-op, since the corresponding channel is also freed.

Bug 200059216

Change-Id: Icbe2cf5dc21d50cb007bf73829705451ada106ac
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/655368
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agoserial: tegra: use locked version for tty buffer copy
Shardar Shariff Md [Sat, 22 Nov 2014 19:41:39 +0000]
serial: tegra: use locked version for tty buffer copy

Use locked version of the string insert API to tty buffer
to avoid any race condition.

bug 200042027

Change-Id: I57ae167725ecbe0777ecbab89be0fb90fa90e5c7
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/654458
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agogpu: nvgpu: add gk20a_scale_exit()
Konsta Holtta [Wed, 5 Nov 2014 16:18:52 +0000]
gpu: nvgpu: add gk20a_scale_exit()

When removing the module, remove the device from devfreq and free
resources allocated when scaling is initialized.

Bug 1476801

Change-Id: I7bb0f8112a5bf7e5ce2fc56cf8af7059d910002c
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/594444
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agotty: add support for string insert on tty buffer with lock
Shardar Shariff Md [Sat, 22 Nov 2014 19:36:55 +0000]
tty: add support for string insert on tty buffer with lock

Add locked version of the string insert function to copy
client buffer to tty buffer with buffer locked.

This will make sure that there should not be any race condition
when reading and writing the buffer from two different context.

bug 200042027

Change-Id: I23d11edd426209a33fcb5328200877146debb9a2
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/654462
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agogpu: nvgpu: remove platform device on exit
Konsta Holtta [Wed, 5 Nov 2014 16:09:26 +0000]
gpu: nvgpu: remove platform device on exit

Add ->remove() for undoing the ->probe() and ->late_probe() in
gk20a_platform devices, and call it when gk20a is removed.

Bug 1476801

Change-Id: Ic9b29c0a7ea4a4cae7b5a0f66774bd799eb28434
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/594443
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agovideo: tegra: dc: Fix screen size api
Animesh Kishore [Mon, 17 Nov 2014 10:44:40 +0000]
video: tegra: dc: Fix screen size api

Populated screen size if specified in DT or edid.

Bug 200046486

Change-Id: I07fabd829d7ec02c8a2621479d167b0167e3dea6
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/604112
(cherry picked from commit feed465e7631ac325f59d0114a6b647ab2c4a44e)
Reviewed-on: http://git-master/r/606688
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

4 years agommc: tegra: Set percentage of pass window to 50%
Naveen Kumar Arepalli [Fri, 21 Nov 2014 10:08:11 +0000]
mmc: tegra: Set percentage of pass window to 50%

Bug 1547083

Change-Id: I13f73865a6f026af5dec0e45dd9ec92755fd8f89
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/654042
(cherry picked from commit b1eadb53c6526c36b77e9b5ab772d83efa8d77fa)
Reviewed-on: http://git-master/r/655108
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agoASoC: tegra-alt: Add default reg values
Sumit Bhattacharya [Tue, 11 Nov 2014 16:50:42 +0000]
ASoC: tegra-alt: Add default reg values

Set default register values for AHUB modules in regmap. This will
ensure after runtime suspend/resume AHUB register POR values
does not get reset to 0.

Bug 200039212

Change-Id: I38e4c04721450b7511404c0db2911b314b68a880
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/603339

4 years agoplatform: tegra: adsp: fix clk unbind in err cases
Puneet Saxena [Fri, 21 Nov 2014 09:46:32 +0000]
platform: tegra: adsp: fix clk unbind in err cases

If error occurs while configuring actmon device, unbind
clk and other acquired resources.

bug 200057923

Change-Id: Ie300a5062d00fb5ce287d77d5f10525d24288bda
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/654022
Reviewed-by: Ajay Nandakumar M <anandakumarm@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agotegra: adsp: actmon: fix pr_*() to dev_*()
Puneet Saxena [Thu, 20 Nov 2014 15:51:37 +0000]
tegra: adsp: actmon: fix pr_*() to dev_*()

As dev_*() print the name of the relevant device
in standard form, ensuring that it's always possible
to associate a message with the device that generated it,
replacing pr_*() prints.

bug 200057923

Change-Id: I1e3f45a28e71f6286be207eb7f617fa334f2d52f
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/607006
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agotegra: adsp: fix race in ape_actmon and adsp_dfs
Puneet Saxena [Thu, 20 Nov 2014 11:32:31 +0000]
tegra: adsp: fix race in ape_actmon and adsp_dfs

Disable actmon interrupts before adsp_dfs exits out.

When adsp goes in wfe ape actmon interrupts still comes.
instead of freeing irq, disabling irq and enabling
in next init fixes this.

bug 200057923

Change-Id: Id0135ef1859b69a7538c396af921f6516e3e0f53
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/606883
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agodvfs: tegra: Update DFLL range entry detection
Alex Frid [Wed, 29 Oct 2014 06:55:12 +0000]
dvfs: tegra: Update DFLL range entry detection

On Tegra architecture without HMP support changing clock rate from
PLLX range to DFLL range during cluster switch is not treated as DFLL
range entry because it is possible for target cluster to run on PLLX
short time after the switch.

On the other hand, Tegra architecture with HMP support guarantees for
any target rate in DFLL range that only DFLL is used as a clock source
after the cluster switch. Respectively, updated DFLL range entry
detection interface.

Moved DFLL range entry and related DFLL scale interfaces from header to
source file.

Bug 1572128

Change-Id: I9d7a69bf9fc7f6b223ff2e1547482cecc7e02ae0
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/655189
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

4 years agodvfs: tegra: Export voltage predict interface
Alex Frid [Thu, 23 Oct 2014 23:39:49 +0000]
dvfs: tegra: Export voltage predict interface

Exported interface to predict voltage for frequency taking into account
maximum thermal floor. Updated predict interfaces comments.

Bug 1572128

Change-Id: Ie0b0ffff4882c182383d887c7589bf85162efb7e
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/655188
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

4 years agoclock: tegra21: add host1x clock over vii2c
Charlie Huang [Sat, 22 Nov 2014 00:45:27 +0000]
clock: tegra21: add host1x clock over vii2c

sw rely on host1x interface to access vii2c registers, if the host1x
clock is disable, vii2c access will fail.

bug 1563965

Change-Id: I8705f1c9462901e6f1435bdbedd7ade3adc995de
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/654386
Reviewed-by: Frank Chen <frankc@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

4 years agodrivers: i2c: bus: enable host1x clk control
Charlie Huang [Sat, 22 Nov 2014 01:10:40 +0000]
drivers: i2c: bus: enable host1x clk control

In the case host1x clk is off, vii2c will become un-accessable

bug 1563965

Change-Id: Idb3d8fdd54c721efae5b9b9ab32c1eb5ae766d92
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/654387
Reviewed-by: Frank Chen <frankc@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

4 years agoarm64: dts: grenada: define t210 asim device node
Bo Yan [Tue, 25 Nov 2014 19:08:13 +0000]
arm64: dts: grenada: define t210 asim device node

asim needs an address to handle shutdown. define it in
device tree.

bug 1582942

Change-Id: I9655909df848584b0bf227f15cc10344b74ab6b0
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/655477
Reviewed-by: Adeel Raza <araza@nvidia.com>
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>

4 years agodrivers: media: platform: tegra: get pdata from DT
Charlie Huang [Fri, 31 Oct 2014 19:19:02 +0000]
drivers: media: platform: tegra: get pdata from DT

add support of reading platform and config data from DT.

bug 200021510

Change-Id: I8fc1cd0fe790cabc976fb9166e134656f87045d4
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/592193
Reviewed-by: Frank Chen <frankc@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agoARM64: t210ref: remove camera static data
Charlie Huang [Fri, 31 Oct 2014 18:47:26 +0000]
ARM64: t210ref: remove camera static data

remove camera device platform data to minimize board file usage.
most camera platform and config data are moved into DT.

bug 200021510

Change-Id: Iecac2592c4868e0d7e07c4e00412831bd2cf7efd
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/592192
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agoARM: tegra: dts: ers: update device pdata & config
Charlie Huang [Fri, 31 Oct 2014 18:41:30 +0000]
ARM: tegra: dts: ers: update device pdata & config

update camera device's platform data and configurations to minimize
usage of board file.

bug 200021510

Change-Id: I800857eb0174cbc00a81a3dba05b43a3da68cc59
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/592191
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

4 years agotegra: ivc: fix two counter-handling issues
Peter Newman [Fri, 21 Nov 2014 22:10:40 +0000]
tegra: ivc: fix two counter-handling issues

1) Add a function for re-synchronizing local w_pos and r_pos indices
   with the shared w_count and r_count counters. The local r/w index
   must always remain in sync with the r/w counters in shared memory.
   However, when a client guest reboots and the server's channel is
   still active, the client must recover its queue positions using only
   the information available in shared memory. The easiest way to do
   this is to take the read and write frame count and modulus it with
   the frame count. However, because the frame counts overflow at 2^32,
   this only works if the frame count is a power of 2, so this
   is imposed as a frame count requirement on all services.

   Once IVC reset is implemented, this requirement can be lifted,
   because the channel will be resynchronized by the client re-reserving
   the active channel.

2) Without a range check in the empty check, it's too easy to perform a
   denial of service attack against a server by placing the read and
   write counters very far apart. We therefore require that a queue not
   be over-full in order to be called non-empty to prevent receive loops
   from processing billions of non-existent messages. Instead, the
   receive queue from the malicious client will appear to go silent.

Bug 1581562
Bug 1582085

Change-Id: Ia949a0cd1df7217e247d7012a18a16242d311d1d
Signed-off-by: Peter Newman <pnewman@nvidia.com>
Reviewed-on: http://git-master/r/654391
Tested-by: Dawid Ciezarkiewicz <dawidc@nvidia.com>
Reviewed-by: Vladislav Buzov <vbuzov@nvidia.com>
Reviewed-by: Nitin Sehgal <nsehgal@nvidia.com>
Tested-by: Nitin Sehgal <nsehgal@nvidia.com>
Reviewed-by: Bahadir Balban <bbalban@nvidia.com>
Tested-by: Bahadir Balban <bbalban@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>

4 years agoarch: arm: p1859: modified APBIF to VM allocation
Simon Je [Fri, 21 Nov 2014 07:51:52 +0000]
arch: arm: p1859: modified APBIF to VM allocation

This is to enable APBIF channel allocation to android VM through DT.

Bug 200056681

Change-Id: I9275fd9bbe7c85cdfcde60611ccaca97ad71c196
Signed-off-by: Simon Je <sje@nvidia.com>
Reviewed-on: http://git-master/r/653957
Reviewed-by: Arun Shamanna Lakshmi <aruns@nvidia.com>
Tested-by: Arun Shamanna Lakshmi <aruns@nvidia.com>

4 years agoASoC: tegra-alt: Initialize default regmap values
Arun Shamanna Lakshmi [Fri, 21 Nov 2014 02:58:25 +0000]
ASoC: tegra-alt: Initialize default regmap values

Set default register values for AHUB modules in regmap. This will
ensure regmap is initilized and also does not reset to 0 after
runtime suspend/resume.

Bug 200057640
Bug 200049131

Change-Id: I75e5ed68dc025ed16053e8bd5a06057af2d1d4b7
Signed-off-by: Arun Shamanna Lakshmi <aruns@nvidia.com>
Reviewed-on: http://git-master/r/607974