3 years agopci: hda: Limit sleep time when codec is off
Sumit Bhattacharya [Tue, 1 Dec 2015 07:17:07 +0000]
pci: hda: Limit sleep time when codec is off

Limit sleep time to 10ms if none of the HDA pcm streams are
active. This will reduce suspend time for HDA when HDMI is
not connected.

Bug 200063987

Change-Id: I27a57486f51dd97dac18967e376c3c05ecd32539
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/839657
Reviewed-by: Sanjay Singh Chauhan <schauhan@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
GVS: Gerrit_Virtual_Submit

3 years agomedia: platform: tegra: OV5693: fix invalid regulator pointers
Kerwin Wan [Fri, 11 Dec 2015 06:08:04 +0000]
media: platform: tegra: OV5693: fix invalid regulator pointers

If devm_regulator_get fails in ov5693_regulator_get then regulator
is assgined as error vaule but not NULL. This will cause invalid
pointers when calling regulator_enable which then causes kernel crash.

Bug 200160201

Change-Id: I0d1643d6353ccc84122ab333219274c3291b9fd9
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/921758
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agovideo:tegra:nvmap: fix dump-stack for nvmap test
Jeetesh Burman [Thu, 26 Nov 2015 11:32:58 +0000]
video:tegra:nvmap: fix dump-stack for nvmap test

to get cpu-id use local_clock instead of smp_processor_id,
as it calls to debug_smp_processor_id, which causes stack_dump.

Bug 200155945

Change-Id: Ibd5c8990eca9a83c7e8384a375495dd18c4a18e6
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/838528
(cherry picked from commit 16d34b4dd7e161f71383e79dccadb45ed6e2924c)
Reviewed-on: http://git-master/r/843460
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agomedia: platform: tegra: vi: Fix config flags
Bhanu Murthy V [Thu, 17 Dec 2015 02:41:29 +0000]
media: platform: tegra: vi: Fix config flags

Bug 200161694

Change-Id: I5bd6022854d575bdab1623b4e60aad553941e003
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: http://git-master/r/923989
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Schalig <dschalig@nvidia.com>
Tested-by: David Schalig <dschalig@nvidia.com>
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>

3 years agoarm64: tegra: jetson_cv: add node for eeprom manager
Kerwin Wan [Wed, 16 Dec 2015 08:47:51 +0000]
arm64: tegra: jetson_cv: add node for eeprom manager

Bug 200142736

Change-Id: Id0b6398c7c5560781b069f2edb58904a4e07c72f
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/923514
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agobindings: mmc: tegra: correct KSO mode dump
Bitan Biswas [Wed, 16 Dec 2015 07:15:41 +0000]
bindings: mmc: tegra: correct KSO mode dump

Updated bindings file with correct spelling of
KSO dump disable attribute

bug 200161173
bug 200138403

Change-Id: I8246926a17a6d23dbe31871e5e2486a110af1d53
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/923485
(cherry picked from commit 52063daaac23bb1b0f182a978bbc6b591b2ae59d)
Reviewed-on: http://git-master/r/924086
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agoARM64: DT: tegra21: correct KSO dump disable
Bitan Biswas [Tue, 15 Dec 2015 05:36:49 +0000]
ARM64: DT: tegra21: correct KSO dump disable

Correct spelling of attribute to disable KSO
register dump for sdmmc.

bug 200161173
bug 200138403

Change-Id: I506d87fee955fc0db924beffa35a0d77fe424985
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/922884
(cherry picked from commit 6f85cc4d63449248179b7c9cda4f59d03197829b)
Reviewed-on: http://git-master/r/924082
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agovideo: tegra: hdmi: add deep color support
Michael Frydrych [Mon, 7 Dec 2015 14:49:13 +0000]
video: tegra: hdmi: add deep color support

support deep color for yuv422 and yuv444 and
rgb444 formats.

Bug 200144997

Change-Id: I7d6b5b36b28b857fba5d057a536d5cddd478b2f6
Reviewed-on: http://git-master/r/819580
(cherry picked from commit 4bb2a4a770e314006dd42f322f618520b8535a0c)
Signed-off-by: Michael Frydrych <mfrydrych@nvidia.com>
Reviewed-on: http://git-master/r/842394
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agodts: arm64: updated PU/PD_offset for sdmmc3
Anubhav jain [Wed, 22 Jul 2015 09:33:05 +0000]
dts: arm64: updated PU/PD_offset for sdmmc3

-Added the PD/PU offset value for p2290 hawkeye.

-Bug 200111979

Change-Id: I523da1b7adae2e7c852f0295342242285fcecf40
Signed-off-by: Anubhav jain <anubhavj@nvidia.com>
Reviewed-on: http://git-master/r/773382
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-on: http://git-master/r/923458
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agovideo: tegra: host: t210: Set lowest clk for nvdec
Soumen Kumar Dey [Tue, 8 Dec 2015 09:15:28 +0000]
video: tegra: host: t210: Set lowest clk for nvdec

Set default clock of nvdec to lowest value.
User mode code set it to max at the start of playback
and then start video dfs to control nvdec clk.

This change will help to reduce power of osidle
usecase as nvdec clock is kept on all the time.
Keeping at lower clock will help to reduce the power.

bug 200141342

Change-Id: I3f2eaa5d08b58dcd199d3d6bbd29b291c652d5a4
Signed-off-by: Soumen Kumar Dey <sdey@nvidia.com>
(cherry picked from commit 67e2313a8faa97d998e305dbb28722f491685c8e)
Reviewed-on: http://git-master/r/923394
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agoarm64: tegra: disable sharp panel in DT
Bibek Basu [Tue, 15 Dec 2015 10:17:41 +0000]
arm64: tegra: disable sharp panel in DT

Disable Sharp panel panel-s-wqxga-10-1 by default
and  also in devkit DT

Bug 200158761
Bug 200159814

Change-Id: Ifa70d39f6da744f944ada8e0c3e551d797925ac3
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/923065
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoARM64: dts; Hawkeye: Disable SAR for wifi SKU
Akhilesh Reddy Khumbum [Mon, 14 Dec 2015 23:59:10 +0000]
ARM64: dts; Hawkeye: Disable SAR for wifi SKU

Bug 1712009

Change-Id: I24398165440055c37237596510882d443661844d
Signed-off-by: Akhilesh Reddy Khumbum <akhumbum@nvidia.com>
Reviewed-on: http://git-master/r/922762
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Rogers <srogers@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
GVS: Gerrit_Virtual_Submit

3 years agoarm64: dts: t210: update cpu-emc frequency table
Somdutta Roy [Mon, 14 Dec 2015 22:59:20 +0000]
arm64: dts: t210: update cpu-emc frequency table

updated the cpu-emc freq ratio table based on
loki-e for power and perf optimization

Bug 200154205

Change-Id: I0679b6fb3ac969b3006c97e7827842a2549d8664
Signed-off-by: Somdutta Roy <somduttar@nvidia.com>
Reviewed-on: http://git-master/r/922735
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Shih <rshih@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agoAudio: update fw and driver to resolve codec issues
Mark Pereira [Fri, 11 Dec 2015 04:16:57 +0000]
Audio: update fw and driver to resolve codec issues

Change summary:
Updated xml files provided by Audience to resolve issues
with CTS capture and playback failures on Hawkeye.
Update to Hawkeye latest FW is B62297.

Bug 200155576

Change-Id: Iacf4537e1b8bac96edc85adea5fe5a405d9c5976
Signed-off-by: Mark Pereira <mpereira@nvidia.com>
Reviewed-on: http://git-master/r/921696
GVS: Gerrit_Virtual_Submit
Tested-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

3 years agovideo: tegra: host: finish actmon work if pending
Shridhar Rasal [Thu, 10 Dec 2015 05:15:00 +0000]
video: tegra: host: finish actmon work if pending

- this make sure that, pending work is finished before deinit
  complete to avoid scheduled work queued after deinit.

Bug 200155744

Change-Id: Id0a3a93f4a9b07bf39758be58e4e3c37834b5e5e
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/921169
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Xianhui Wang <xianhuiw@nvidia.com>

3 years agovideo: tegra: host: don't init actmon workers always
Shridhar Rasal [Wed, 9 Dec 2015 10:51:20 +0000]
video: tegra: host: don't init actmon workers always

- This enables actmon workers only when work actmon interrupt
 configured. Enabling actmon workers polling based scaling doesn't
 make sense.

Bug 200155744

Change-Id: I0a9f65daa92d5b95292240587527a1d17d9f095e
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/843494
GVS: Gerrit_Virtual_Submit

3 years agoarm64: tegra: jetson_cv: add shunt volt offset
Rajkumar Kasirajan [Mon, 7 Dec 2015 11:04:55 +0000]
arm64: tegra: jetson_cv: add shunt volt offset

added shunt voltage offset to hangle INA
channel inaccuracy on high voltage rails.

Bug 1677375

Change-Id: I78292e7447f06f2b743b7eef60c19d4d4814c22d
Signed-off-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-on: http://git-master/r/842256
(cherry picked from commit 6faf46c0441698bb5d3aaa2e0947b820c1467e82)
Reviewed-on: http://git-master/r/923385
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoiio: meter: ina3221: support to offset shunt volt
Rajkumar Kasirajan [Mon, 23 Nov 2015 10:29:50 +0000]
iio: meter: ina3221: support to offset shunt volt

added support to offset shunt voltage reading to hangle INA
channel inaccuracy on high voltage rails.

example:
    p2180_shuntv_offset: shuntv-offset {
        offset = <40>;
        conditional_offset@0 {
            shunt_volt_start = <40>;
            shunt_volt_end = <120>;
            offset = <33>;
        };
    conditional_offset@1 {
            shunt_volt_start = <200>;
            shunt_volt_end = <400>;
            offset = <80>;
        };
};

channel@0 {
reg = <0x0>;
ti,rail-name = "VDD_IN";
ti,shunt-resistor-mohm = <20>;
ti,current-critical-limit-ma = <2105>;
shunt-volt-offset-uv = <&p2180_shuntv_offset>;
};

which means,
 if shunt voltage reading is  from 40 to 120, offset -33 will be applied
 if shunt voltage reading is  from 200 to 400, offset -80 will be applied
 for all other readings offset -40 will be applied.

Bug 1677375

Change-Id: I67c12a6b105011a0a8ca2aae2c5764df6e21ce8b
Signed-off-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-on: http://git-master/r/836475
(cherry picked from commit e1613a0534cc372160090e9e60b52349ffee9ade)
Reviewed-on: http://git-master/r/923383
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ninad Malwade <nmalwade@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

3 years agoarch: arm64: config: Enable soft plat watchdog
Bibek Basu [Tue, 15 Dec 2015 07:09:23 +0000]
arch: arm64: config: Enable soft plat watchdog

Enable Soft Platform Watchdog and panic timeout
so that pstore features can be used.

Bug 200141646
Bug 200160647

Change-Id: I3f202b85701b91a3e41c2c2079ce2e01aa9639e2
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/922941
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agomm: consolidate code to setup pte
Kirill A. Shutemov [Thu, 3 Apr 2014 21:48:16 +0000]
mm: consolidate code to setup pte

Extract and consolidate code to setup pte from do_read_fault(),
do_cow_fault() and do_shared_fault().

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Rik van Riel <riel@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Matthew Wilcox <matthew.r.wilcox@intel.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 3bb977946998ae0d756279c5a108435d04636e2b)
Change-Id: I2af7640de17d93d81c5f7f1d83662ac3909dd15f
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/840996
(cherry picked from commit 0aecc2ad054e227a41072bb8de353fc330eca550)
Reviewed-on: http://git-master/r/842901
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agothermal: soctherm: use zone_enable for DT case
Santosh Katvate [Wed, 2 Dec 2015 09:45:34 +0000]
thermal: soctherm: use zone_enable for DT case

therm->tz is populated only in non-DT case.
So Use zone_enable to decide if thermal zone is disabled in DT case.

Bug 200157257

Change-Id: I5fd679fe7c4aad76231c82bd8cc7d94c3971cff4
Signed-off-by: Santosh Katvate <skatvate@nvidia.com>
Reviewed-on: http://git-master/r/840338
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Navneet Kumar <navneetk@nvidia.com>
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

3 years agovideo: fbmon: identify cea vic modes
Ivan Raul Guadarrama [Wed, 18 Nov 2015 18:19:49 +0000]
video: fbmon: identify cea vic modes

Add the FB_VMODE_IS_DETAILED flag to identify detailed modes.
Add the FB_VMODE_IS_CEA flag and correctly identify
detailed timings which are also valid CEA modes.

Bug 1691633
bug 1689283

Change-Id: I04a1b6e6c6c725fb8d1e467994f071b9855f56a0
Signed-off-by: Ivan Raul Guadarrama <iguadarrama@nvidia.com>
(cherry picked from commit ddce3ef0a203b490c5b471b7d379254534c2ceac)
Reviewed-on: http://git-master/r/836952
(cherry picked from commit f8e90255e6b29506c360b898b67f6d4bc20e0aee)
Reviewed-on: http://git-master/r/834735
Reviewed-by: Tuomas Kulve <tkulve@nvidia.com>
Tested-by: Tuomas Kulve <tkulve@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agogpu: nvgpu: Add comptag offset to part mappings
Terje Bergstrom [Tue, 24 Nov 2015 23:17:40 +0000]
gpu: nvgpu: Add comptag offset to part mappings

Add offset to comptags when mapping partial buffers.

Bug 1704834

Change-Id: I3405b465bb1373bcc79eb5ecbd93dd1b866abfb4
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry-picked from commit 19b6e48ce0536b6716fd4e680bacefff0efec383)
Reviewed-on: http://git-master/r/922044
Reviewed-by: Automatic_Commit_Validation_User

3 years agopagemap: do not leak physical addresses to non-privileged userspace
Kirill A. Shutemov [Mon, 7 Dec 2015 23:24:08 +0000]
pagemap: do not leak physical addresses to non-privileged userspace

[ Upstream commit ab676b7d6fbf4b294bf198fb27ade5b0e865c7ce ]

As pointed by recent post[1] on exploiting DRAM physical imperfection,
/proc/PID/pagemap exposes sensitive information which can be used to do
attacks.

This disallows anybody without CAP_SYS_ADMIN to read the pagemap.

[1] http://googleprojectzero.blogspot.com/2015/03/exploiting-dram-rowhammer-bug-to-gain.html

[ Eventually we might want to do anything more finegrained, but for now
  this is the simple model.   - Linus ]

bug 200160374

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Acked-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Acked-by: Andy Lutomirski <luto@amacapital.net>
Cc: Pavel Emelyanov <xemul@parallels.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Mark Seaborn <mseaborn@chromium.org>
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Change-Id: I85acefa5c77fcd26d4fde436c37870d41bb8062e
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/842648
Reviewed-on: http://git-master/r/921920
GVS: Gerrit_Virtual_Submit

3 years agoARM64: dts: jetson-cv: enable ina3221 device for P2180-A03
Venkat Reddy Talla [Mon, 7 Dec 2015 08:35:38 +0000]
ARM64: dts: jetson-cv: enable ina3221 device for P2180-A03

Enabling ina3221 device for P2180-A03 Jetson-CV platform
using plugin manager.Adding plugin-manager dtsi file for
jetson-cv platform to overide dts node properties.

Bug 200155382

Change-Id: Idf77e7f42dd3e60a53d8eac4084fc4bc9e11927d
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/842175
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agoasoc: tegra-alt: es755: Remove unnecessay print
Gagan Grover [Fri, 11 Dec 2015 06:05:25 +0000]
asoc: tegra-alt: es755: Remove unnecessay print

Removed unnecessary print which was cluttering the UART logs.

Bug 200147434

Change-Id: I9bfee373d6894435ac27654496c6d5837f368adb
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/921757
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>

3 years agopower: extcon-xlate: logging cable names for debug
Venkat Reddy Talla [Thu, 12 Mar 2015 08:47:18 +0000]
power: extcon-xlate: logging cable names for debug

Add debug prints to log cable names to debug scenarios where
cable is inserted but extcon xlate driver fail to detect cable
type, set last cable in state to 0 when all the connected cables
detached from device.

Bug 1571110

Change-Id: I436c1e52f351e53788bc67b6feedf439bc3d2ee7
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/716730
(cherry picked from commit 78d8733fb37a559ae4414e6b23f7103b0dd43a3e)
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/839248
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agopower: lc709203f: Change to support both Yoku, Byd
Petlozu Pravareshwar [Wed, 16 Sep 2015 17:58:11 +0000]
power: lc709203f: Change to support both Yoku, Byd

This change is to support both Yoku and Byd
batteries from the same DTS file based on
the command line option.

Change-Id: Iad8e14ecdcaaba49648847267fc8215c67857580
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/800230
(cherry picked from commit 24e1eaa70e0934b94fbe887b5b6920388519447e)
Reviewed-on: http://git-master/r/830742
GVS: Gerrit_Virtual_Submit
Tested-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agoARM: dts: Add child nodes to battery, fuelgauge DT
Petlozu Pravareshwar [Wed, 16 Sep 2015 17:34:13 +0000]
ARM: dts: Add child nodes to battery, fuelgauge DT

Add child nodes battery0, battery1 to battery and
fuel gauge DT nodes. battery0 node is for Yoku,
battery1 node is for Byd.

Change-Id: Ifb827aafc84737f0887bf01b5f734be26b19ba31
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/800228
(cherry picked from commit fe79616be0991f0be26ef6944f274a58ad5c0296)
Reviewed-on: http://git-master/r/830718
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agoarm: tegra: Add parsing function to get battery id
Petlozu Pravareshwar [Wed, 16 Sep 2015 17:27:50 +0000]
arm: tegra: Add parsing function to get battery id

Add parsing function to get battery id from the
command line. Battery id 0 represents Yoku,
and 1 represents Byd.

Change-Id: I60119e332bb3341c3a7b9efb2808ab967e66c97c
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/800165
(cherry picked from commit 2df03ecbf1bece0e1601b792be5a18d0f652faf6)
Reviewed-on: http://git-master/r/830717
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agopower: bq2419x: Change to support both Yoku, Byd
Petlozu Pravareshwar [Tue, 20 Oct 2015 11:10:36 +0000]
power: bq2419x: Change to support both Yoku, Byd

This change is to support both Yoku and Byd
batteries from the same DTS file based on
the command line option.

Change-Id: Ifdafb1a1e3bfed8919a2abeb47f587965f163a7d
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/800229
(cherry picked from commit ddc5f1bd7b06c07fe733cdb6a5ee5c0c5fa25b0f)
Reviewed-on: http://git-master/r/830716
GVS: Gerrit_Virtual_Submit
Tested-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agoarm64: dts: t210-jetsoncv: Enable sharp 25x16 panel
Santosh Reddy Galma [Wed, 9 Dec 2015 09:57:44 +0000]
arm64: dts: t210-jetsoncv: Enable sharp 25x16 panel

enables support for sharp 25x16 panel on JetsonCV
platform.

Bug 200158761

Change-Id: I195ef74636ad9223155a7ed3ab8ef05a57a42b97
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: http://git-master/r/921431
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoARM: dts: ST8: update cable new states table
Venkat Reddy Talla [Thu, 10 Dec 2015 05:09:21 +0000]
ARM: dts: ST8: update cable new states table

Some times, PMIC is not generating ID interrupt
when RID-B cable removed.Due to this RID-B cable
remove event not getting reported to tegra-udc layer.
Updating cable new states table to handle RID-B cable
remove event if previous connected cable is RID-B.

Bug 200158890
Bug 200145974

Change-Id: I9ccaf1172ae0c7e543a222f76cd157aa30e7b0c9
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/921166
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agobcmdhd: set correct bw for p2p connection
Bibhay Ranjan [Thu, 3 Dec 2015 13:04:19 +0000]
bcmdhd: set correct bw for p2p connection

if the bw sent from the upper layers does
not match with the bw of the AP connection,
p2p connection happens on MCC always. With
this fix, the bw of the p2p connection is
set as AP's bw.

Bug 1694567

Change-Id: I5f9c73bc51e360e2b3e5e7cf6443d1de4434a136
Signed-off-by: Bibhay Ranjan <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/842842
Reviewed-by: Mohan Thadikamalla <mohant@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-by: Kasturi Raghavender <kraghavender@nvidia.com>

3 years agogpu: nvgpu: Enable ELPG when disabled due to reset
Mahantesh Kumbar [Fri, 11 Dec 2015 11:09:41 +0000]
gpu: nvgpu: Enable ELPG when disabled due to reset

Enable ELPG back whenever ELPG disable is done due to reset or recovery.
Otherwise elpg_refcnt mismatch doesn’t engage ELPG correctly

Bug 200156347

Change-Id: I68644c42f80ce3cab6fb77664fe6d23699107f8b
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: http://git-master/r/921915
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

3 years agogpu: nvgpu: fixed NV_PBUS_INTR_0 value on pbus isr
Thomas Fleury [Thu, 19 Nov 2015 14:38:37 +0000]
gpu: nvgpu: fixed NV_PBUS_INTR_0 value on pbus isr

bug 200139995

Change-Id: I81d2eb4461e92fbb33db8554779f6566f6b002c1
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: http://git-master/r/835307
(cherry picked from commit 6acc35bd1bcc706fbde8d11521cf1d0f64a16fe4)
Reviewed-on: http://git-master/r/921299
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years agogpu: nvgpu: gm20b: use jiffies for wait on PMU
Vijayakumar [Tue, 24 Nov 2015 07:06:58 +0000]
gpu: nvgpu: gm20b: use jiffies for wait on PMU

bug 200153970
bug 1707442

Change-Id: Ia5f616269bfeb834540bf4da6ecfc6e399682819
Reviewed-on: http://git-master/r/836966
(cherry picked from commit 9bc019e3b62984b3d1f12da5edc3221ee44a86b1)
Signed-off-by: Vijayakumar <vsubbu@nvidia.com>
Reviewed-on: http://git-master/r/841356
(cherry picked from commit b2c3b851ad5c235cb49cca8fc110e3893c14de6c)
Reviewed-on: http://git-master/r/921846
Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agomedia: tegra: ov5693: create node if HW is present
Shreshtha SAHU [Mon, 16 Nov 2015 15:46:31 +0000]
media: tegra: ov5693: create node if HW is present

Create video dev node ov5693.1 only if HW is present/detected.

Bug 1693452
Bug 1692979

Change-Id: Ic4c9172798f243471d2d87b6eddab81e79a240aa
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/833358
(cherry picked from commit ddc3a10206b81a62692822adf91804432edfa0fb)
Reviewed-on: http://git-master/r/842667
Reviewed-by: Rakesh Sharma <rasharma@nvidia.com>
Tested-by: Rakesh Sharma <rasharma@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agomedia: v4l2-core: Migration from upstream
Bhanu Murthy V [Thu, 1 Oct 2015 21:32:03 +0000]
media: v4l2-core: Migration from upstream

Adds required upstream files to support
unified VI driver
Add minimal changes in existing files without
breaking the current interface

Bug 1617777

Change-Id: Iaa2b63aed4ac028fd3b3a7920a3781d7186ca03f
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: http://git-master/r/786823
(cherry picked from commit 230d024056fb256a741ac4da94624f463cad6574)
Reviewed-on: http://git-master/r/832143
(cherry picked from commit f867ba2a2cf1eb05bb2b4396ae30f2174326c2b7)
Reviewed-on: http://git-master/r/841853
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agoarch: arm64: configs: Moving VI config
Bhanu Murthy V [Thu, 29 Oct 2015 23:43:53 +0000]
arch: arm64: configs: Moving VI config

Remove GRHOST_VI as part of defconfig
Add TEGRA_VI for l4t to compile as module

Bug 1617777

Change-Id: Ia48be53d8529ab35a438a8abc16a94e7e38d83db
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: http://git-master/r/825017
(cherry picked from commit d9aed46d431443740cd82b15fccbface2d8d2dc0)
Reviewed-on: http://git-master/r/832136
(cherry picked from commit 46c0454c6cadafd390f54888ed1f348327eb0cfc)
Reviewed-on: http://git-master/r/841852
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agodrivers: Restructure GRHOST_VI
Bhanu Murthy V [Fri, 30 Oct 2015 18:51:53 +0000]
drivers: Restructure GRHOST_VI

Remove GRHOST_VI. VI code moved from
drivers/video/tegra/host/ to
drivers/media/platform/tegra/vi/

Bug 1617777

Change-Id: I54350ddf178229c9975419a77d2fe0d9836e844f
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: http://git-master/r/825018
(cherry picked from commit 9bf60d57e2ddbc273e25ce7cb022ebaacedaac3a)
Reviewed-on: http://git-master/r/832137
(cherry picked from commit b2f61635c048f6f003a6cf807d105b96ab426dde)
Reviewed-on: http://git-master/r/841851
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agousb: gadget: composite: Fix cdev null after rmmod
Peter Chiang [Fri, 25 Sep 2015 10:04:17 +0000]
usb: gadget: composite: Fix cdev null after rmmod

Avoid to disconnect gadget again after unbinding

bug 200141741
bug 200143079

Change-Id: I6fadcb4c5b5262d861a865f24ba2d8666e126923
Signed-off-by: Peter Chiang <pchiang@nvidia.com>
Reviewed-on: http://git-master/r/805175
Reviewed-on: http://git-master/r/819566
(cherry picked from commit ee4de1c8a825ed6c0edcb7f6820aabef6596ca02)
Reviewed-on: http://git-master/r/839818
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agoarm64: dts: t210: update jetson cpu-emc table
Rajkumar Kasirajan [Fri, 13 Nov 2015 06:46:29 +0000]
arm64: dts: t210: update jetson cpu-emc table

updated jetson cpu-to-emc ratio table based on loki-e
to optimize power and performance.

Bug 200146718

Change-Id: Icd6aad5b27a6c36a7ec598be87f051fa9c84148f
Signed-off-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-on: http://git-master/r/832619
(cherry picked from commit 69f00966c2881b6803b13769ffe30b0a2e9b3bec)
Reviewed-on: http://git-master/r/839327
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Ninad Malwade <nmalwade@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agovideo: tegra: dc: remove redundant flag check
Naveen Kumar S [Thu, 3 Dec 2015 10:25:37 +0000]
video: tegra: dc: remove redundant flag check

While identifying VIC, aspect ratio flag is again being
checked after comparing few basic mode parameters. Hence
removing the redundant flag comparision. This avoids failure
in VIC identification when a mode does not specify  aspect ratio.

bug 200148145

Change-Id: I6298480b7d7a12c05c393276e5432bcd5e7dcd38
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/840954
(cherry picked from commit ebde085958fdcb26110fa85e7e347c9835eb173a)
Reviewed-on: http://git-master/r/842422
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agovideo: tegra: dc: update VIC identification
Naveen Kumar S [Thu, 26 Nov 2015 09:55:39 +0000]
video: tegra: dc: update VIC identification

Adding few more checks to help VIC identification.
Comparing 1001/1000 value of pixclock to take care of
pclk rounding-off issue. Also, comparing mode->flag value
helps in choosing the CEA mode with matching aspect ratio.

bug 200148145
bug 200145631
bug 1689283

Change-Id: Ia80ba4dd3337772b24b74ee355a1032d59b31d9d
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/838452
(cherry picked from commit 1ee939ea33c893a5b98652cef4d0fae5c7f25c32)
Reviewed-on: http://git-master/r/842421
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agodrivers: video: tegra: dc: Fix VIC for a few modes
Naveen Kumar S [Fri, 20 Nov 2015 14:15:10 +0000]
drivers: video: tegra: dc: Fix VIC for a few modes

This change fixes the VIC not being set correctly on a few modes. For
1000/1001 modes, the pixclock is now reverted back to the mode
corresponding to the CEA modedb before it is compared.

Since the refresh in the mode database is also not trustable, it
compares the modes from the CEA modedb with a +/- 1 offset

Bug 200148145
Bug 200145631
Bug 1689283

Change-Id: I3742b4d090c26d6c1fc3e2f4af44fd1389079d1a
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/837681
(cherry picked from commit 2046174796fc8ad124b7b34d641ed5acf9f5640c)
Reviewed-on: http://git-master/r/835919
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoARM64: dts; Hawkeye: add A04 and A05 wifi SKU dts
Venkat Reddy Talla [Fri, 11 Dec 2015 10:19:55 +0000]
ARM64: dts; Hawkeye: add A04 and A05 wifi SKU dts

Adding device tree files to support A04 and A05
Hawkeye wifi board revision platforms.

Bug 1710164

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

3 years agotegra-alt: adsp: request ACK when closing PCM stream
Viraj Karandikar [Wed, 18 Nov 2015 07:01:13 +0000]
tegra-alt: adsp: request ACK when closing PCM stream

Request ACK and wait when closing PCM stream.

Bug 200100724

Change-Id: I1a12a3a8efff0e25152c148e4b74b163f0b4f63d
Signed-off-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-on: http://git-master/r/834456
(cherry picked from commit 21b996e65952154add4238e87c690a7e086c89c5)
Reviewed-on: http://git-master/r/840362
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

3 years agomedia: tegra_camera: support YUV CSI input
Frank Shi [Fri, 20 Nov 2015 03:13:48 +0000]
media: tegra_camera: support YUV CSI input

Program VI to support YUV CSI input

Bug 200153901

Change-Id: I791e55a24cea59ad32a9af99f8d0c3be8eb5919d
Signed-off-by: Frank Shi <fshi@nvidia.com>
Reviewed-on: http://git-master/r/835644
(cherry picked from commit 18f32d874f50cbf091688f47560f5ac68a4e18ad)
Reviewed-on: http://git-master/r/841879
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agonet: wireless: bcmdhd / bcmdhd_88: initialize scan policy work
Michael Hsu [Tue, 8 Dec 2015 03:24:32 +0000]
net: wireless: bcmdhd / bcmdhd_88: initialize scan policy work

When wifi is turned on, initialize scan policy work(s) in case
prior shutdown did not clean up properly.

bcmdhd_88 driver requires extra TEGRA_SCAN_DONE() macro calls
because it does not use a common scan cleanup function like
the bcmdhd driver.

Bug 200159210

Change-Id: Ia1d5fb93f75bed8c03f2e5d825952d1c6af4a2d6
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/842669
Reviewed-by: Nagaraj Annaiah <nannaiah@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Tested-by: Nagaraj Annaiah <nannaiah@nvidia.com>

3 years agoplatform: tegra: Fix typo in setmode function
Frank Chen [Mon, 7 Dec 2015 21:47:21 +0000]
platform: tegra: Fix typo in setmode function

Fix typo in IMX132 driver set mode fuction

Bug 1662157

Change-Id: I94d8ef249773d2707fa6ff36dc744e2450f1d2b5
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/842533
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Schalig <dschalig@nvidia.com>
Reviewed-by: Joshua Widen <jwiden@nvidia.com>
Reviewed-by: Charles Kong <charlesk@nvidia.com>
Reviewed-by: Steve Rogers <srogers@nvidia.com>

3 years agonvi: udpate period time when aux device is enabled
wahsu [Mon, 7 Dec 2015 11:31:57 +0000]
nvi: udpate period time when aux device is enabled

bug 200158162

Change-Id: Ie684d6da30ac26ebb54488e25163f3852343267c
Signed-off-by: wahsu <wahsu@nvidia.com>
Reviewed-on: http://git-master/r/842270
(cherry picked from commit 2b87f9dbcb49569a782232f00eb7ad89ada5b204)
Reviewed-on: http://git-master/r/842599
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Robert Collins <rcollins@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>

3 years agogpu: nvgpu: bitmap allocator for comptags
Konsta Holtta [Tue, 1 Dec 2015 09:55:27 +0000]
gpu: nvgpu: bitmap allocator for comptags

Restore comptags to be bitmap-allocated, like they were before we had
the buddy allocator.

The new buddy allocator introduced by
e99aa2485f8992eabe3556f3ebcb57bdc8ad91ff (originally
6ab2e0c49cb79ca68d2f83f1d4610783d2eaa79b) is fine for the big VAs, but
unsuitable for the small compbit store.

This commit reverts partially the combination of the above commit and
also one after it, 86fc7ec9a05999bea8de320840b962db3ee11410, that fixed
a bug which is not present when using a bitmap. With a bitmap allocator,
pruning the extra allocation necessary for user-mapped mode is possible,
so that is also restored.

The original generic bitmap allocator is not restored; instead, a
comptag-only allocator is introduced.

Bug 200145635

Change-Id: I87f3a911826a801124cfd21e44857dfab1c3f378
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/837180
(cherry picked from commit 5a504aeb54f3e89e6561932971158a397157b3f2)
Reviewed-on: http://git-master/r/840869
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agogpu: nvgpu: disable ELPG while accessing gr_gpcs_tpcs_sm_sch_macro_sched_r
Thomas Fleury [Mon, 2 Nov 2015 14:26:54 +0000]
gpu: nvgpu: disable ELPG while accessing gr_gpcs_tpcs_sm_sch_macro_sched_r

bug 200139995

Any GR register access should disable ELPG and clock gating before
access and enable it back after it is done. Disable ELPG while tweaking
perf parameters in gk20a_alloc_obj_ctx.

Also output NV_PBUS_INTR_0 in case of interrupt.

Change-Id: Ic9ddc514207ff91631dbd96c5ab0c70ebae0b6d1
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: http://git-master/r/826272
(cherry picked from commit 498d5efc8a75ed2d6b8ee8444bcbfd44645b1e16)
Reviewed-on: http://git-master/r/838841
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years agotegra: dc: set color depth of fake dsi correctly
Sam Payne [Wed, 16 Sep 2015 00:21:14 +0000]
tegra: dc: set color depth of fake dsi correctly

fake dsi was initialized to the most recent value
this produces inconsistent CRC values for different
platforms. This patch fixes the issue.

Change-Id: Ie53ce946e4ea527d4972d60227d559f9bbb11d7a
Signed-off-by: Sam Payne <spayne@nvidia.com>
Reviewed-on: http://git-master/r/836914
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Tested-by: Kerwin Wan <kerwinw@nvidia.com>

3 years agoARM64: dts: fix E3326 direction on jetson cv
Joshua Widen [Wed, 2 Dec 2015 23:24:45 +0000]
ARM64: dts: fix E3326 direction on jetson cv

Fix E3326 camera direction on jetson cv board.

Bug 1709060

Change-Id: Ia590ea5880f94849de11581b691dab6dd8c50d92
Signed-off-by: Joshua Widen <jwiden@nvidia.com>
Reviewed-on: http://git-master/r/840669
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Gigon Bae <gbae@nvidia.com>
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: David Schalig <dschalig@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agoarm64: mm: dma-mapping: fix the overflow issue
Krishna Reddy [Fri, 6 Nov 2015 22:21:20 +0000]
arm64: mm: dma-mapping: fix the overflow issue

Fix the overflow of variable "start" holding the start bit number.
It should be of same type mapping->bits, which is size_t, to avoid
overflow for IOVA range beyond 4GB boundary.

Bug 200150063

Change-Id: Ie2ab3ce12293beadac4a1a21d26ed6d1fef41176
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/834822
(cherry picked from commit 9849c32e75616cc77cd3cedb968b379e64d2290d)
Reviewed-on: http://git-master/r/841173
GVS: Gerrit_Virtual_Submit

3 years agoi2c: tegra: Fix printout typo
Benjamin Lu [Fri, 23 Oct 2015 06:49:37 +0000]
i2c: tegra: Fix printout typo

Bug 1687777

Change-Id: I145849ac45a32ed90c345ff8f5f4ae1f8960e3b9
Signed-off-by: Benjamin Lu <benjaminl@nvidia.com>
Reviewed-on: http://git-master/r/822436
(cherry picked from commit 5fb5166bb3881772a5a6940dfb9ecf0eec3d2daa)
Reviewed-on: http://git-master/r/842569
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agovideo: tegra: fb: intimate fbcon to blank/unblank
Naveen Kumar S [Tue, 20 Oct 2015 14:55:55 +0000]
video: tegra: fb: intimate fbcon to blank/unblank

Upon a hotplug/unplug, intimate fbcon to unblank or
blank accordingly. This helps in keeping dc and fbcon
in sync.

bug 1693204

Change-Id: I96b83bd8420e68ebb6048d50d9d9a422cd1fb706
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/820822
(cherry picked from commit 8d0ddee571ba5057816bd422053ae5a7ab142a53)
Reviewed-on: http://git-master/r/842405
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agovideo: fbcon: Keep atleast one mode in modelist
Naveen Kumar S [Fri, 18 Sep 2015 13:53:31 +0000]
video: fbcon: Keep atleast one mode in modelist

Framebuffer console init requires atleast one valid
mode to exist for it to succeed.
Virtual terminals relies on the success of fbcon_init
without really checking the return value of this function.

bug 200036424
bug 200130124
bug 200129681

Change-Id: I288034537eaca72eaec78f8c02f7edaca3478421
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/801325
(cherry picked from commit 3ce9d23f4697d5f781ac9dde51580710ab89236d)
Reviewed-on: http://git-master/r/842413
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agovideo: tegra: dc: define tegra_dc_vga_mode once
Naveen Kumar S [Mon, 7 Dec 2015 15:09:34 +0000]
video: tegra: dc: define tegra_dc_vga_mode once

Removed multiple definitions of structure tegra_dc_vga_mode
by declaring it in dc.h

bug 200036424
bug 200130124
bug 200129681

Change-Id: If532d0e94fddfa0735f3e24eeed5de4abcf1ccaa
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/801322
(cherry picked from commit 3003b743cdd579fc77d2b08fe0ed456e7c8f0246)
Reviewed-on: http://git-master/r/842412
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agovideo: fb: update VC before fbcon during hotplug
Naveen Kumar S [Sat, 10 Oct 2015 14:01:35 +0000]
video: fb: update VC before fbcon during hotplug

fbcon depends on the modes known to virtual console while updating
its own mode. Hence during a hotplug event, update virtual consoles
with new modes before updating fbcon mode.

bug 1693204

Change-Id: I6430ef27d186b8ac529a7e2c2929e383b0c2806e
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/820819
(cherry picked from commit 764d0e97d6edc05d8e028e30b4c0adff7cb03891)
Reviewed-on: http://git-master/r/842400
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agoarch: arm64: configs: disable r8169 realtek driver
Martin Gao [Mon, 7 Dec 2015 20:34:26 +0000]
arch: arm64: configs: disable r8169 realtek driver

- due to conflict of r8169 and r8168 driver, we should only
  use r8168 driver. therefore, disabling r8169 driver here.

Bug 200159265

Change-Id: I240bea3eed80495d89f55922b23d6cd821aec841
Signed-off-by: Martin Gao <marting@nvidia.com>
Reviewed-on: http://git-master/r/842504
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vidya Sagar <vidyas@nvidia.com>
Tested-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agoof: plugin-manager: fix section mismatch error
Laxman Dewangan [Tue, 10 Nov 2015 02:49:53 +0000]
of: plugin-manager: fix section mismatch error

Fix following section mismatch error:

/**
WARNING: vmlinux.o(.text+0x8ba968): Section mismatch in reference
from the function update_target_node() to the variable .init.text:$x
The function update_target_node() references
the variable __init $x.
This is often because update_target_node lacks a __init
annotation or the annotation of $x is wrong.
**/

Change-Id: I853c3b4f77ebed587ec122be550acd024bb132a8
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/831096
(cherry picked from commit 5a0b1037f77e168e421e80598f924180ab2aeaa9)
Reviewed-on: http://git-master/r/842361
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>

3 years agoof: plugin-manager: add support for deleting property from target node
Laxman Dewangan [Wed, 28 Oct 2015 12:48:48 +0000]
of: plugin-manager: add support for deleting property from target node

Add support for deleting the property from the target node using
plugin-manager.

Change-Id: I404013473f4955e1e82f12670f1c207c005cf2dc
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/824182
(cherry picked from commit d460849d546c236c0797a7dfa9a6de79466ca1d2)
Reviewed-on: http://git-master/r/842360
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>

3 years agoof: plugin-manager: copy properties for adding/updating
Laxman Dewangan [Wed, 14 Oct 2015 08:56:18 +0000]
of: plugin-manager: copy properties for adding/updating

Create copied version of properties before updating or
adding in target node as this is permanently used by
target node.

Change-Id: I1831391097baaae8b345725180b71fe238960b75
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/817450
(cherry picked from commit 756d0ccd51f1f98b45766963c87094d91cf99a45)
Reviewed-on: http://git-master/r/842357
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>

3 years agovideo: tegra: nvmap: fix error handling in __nvmap_map
Amit Sharma (SW-TEGRA) [Thu, 26 Nov 2015 09:42:45 +0000]
video: tegra: nvmap: fix error handling in __nvmap_map

Fix potential nvmap_handle's refcount mismatch in failure path
of kzalloc from within __nvmap_map.

Bug 200149089

Change-Id: Ib2c93f8e45e2fd8679409f547e7e9177b72c5c04
Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/838451
(cherry picked from commit 8494b7bbd18b9d9c73016d1fa2f587862a848734)
Reviewed-on: http://git-master/r/839026
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

3 years agoASoC: tegra: Notify SAR about speaker state
Sumit Bhattacharya [Tue, 3 Nov 2015 09:42:32 +0000]
ASoC: tegra: Notify SAR about speaker state

Notify SAR about when speaker is enabled/disabled so that it
can tune sensor response accordingly. This is a WAR for hawkeye.

Bug 200137195

Change-Id: I3750eb7f6409cfa329c8931d7eb6ba3fe7662282
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/826889
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>
Reviewed-by: Pierre Gervais <pgervais@nvidia.com>

3 years agodma:tegra: avoid int overflow for transferred cnt
Christopher Freeman [Tue, 6 May 2014 20:13:58 +0000]
dma:tegra: avoid int overflow for transferred cnt

bytes_transferred will overflow during long audio playbacks.  Since the
driver only ever consults this value modulo bytes_requested, store the value
modulo bytes_requested to prevent overflow.

BUG=chrome-os-partner:28376
TEST=Video/audio playback for >4 hours

Bug 200157067

Change-Id: I67ec972a6abcda0944728592c6c6ff319ea2486b
Reviewed-on: https://chromium-review.googlesource.com/198540
(cherry picked from commit a7ca1e2b0d1bbfa8ea480ac30fee73b85039881e)
Signed-off-by: Christopher Freeman <cfreeman@nvidia.com>
Signed-off-by: Diwakar Paliwal <dpaliwal@nvidia.com>
Reviewed-on: http://git-master/r/840880
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>
Reviewed-by: Pierre Gervais <pgervais@nvidia.com>

3 years agopower: bq27441: disable irq line while shutdown
Venkat Reddy Talla [Thu, 3 Dec 2015 06:06:29 +0000]
power: bq27441: disable irq line while shutdown

Disabling interrupt line while device shutting down.
triggering or handling interrupt while powering off
may lead to i2c transactions after i2c bus shutdown.

Bug 200155467

Change-Id: Ibcf2de1e005b06abcf29993d3a6af4ab1d5ebd77
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/840831
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agodriver: hid-nvidia-blake: fix allocation size of loc
Pritesh Raithatha [Tue, 17 Nov 2015 12:31:32 +0000]
driver: hid-nvidia-blake: fix allocation size of loc

Bug 200116059
Coverity id: 13435, 13439

Change-Id: I8d777b745b2f8b6722d8bc0e21c634449594ed4f
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/833282
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Ankita Garg <ankitag@nvidia.com>

3 years agogpu: nvgpu: create sync_fence only if needed
Deepak Nibade [Wed, 7 Oct 2015 10:50:07 +0000]
gpu: nvgpu: create sync_fence only if needed

Currently, we create sync_fence (from nvhost_sync_create_fence())
for every submit
But not all submits request for a sync_fence.

Also, nvhost_sync_create_fence() API takes about 1/3rd of the total
submit path.

Hence to optimize, we can allocate sync_fence
only when user explicitly asks for it using
(NVGPU_SUBMIT_GPFIFO_FLAGS_FENCE_GET &&
NVGPU_SUBMIT_GPFIFO_FLAGS_SYNC_FENCE)

Also, in CDE path from gk20a_prepare_compressible_read(),
we reuse existing fence stored in "state" and that can
result into not returning sync_fence_fd when user asked
for it
Hence, force allocation of sync_fence when job submission
comes from CDE path

Bug 200141116

Change-Id: Ia921701bf0e2432d6b8a5e8b7d91160e7f52db1e
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/818190
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years agojetson-CV/E: Set Ignore susp for all codec links
Viswanath L [Mon, 7 Dec 2015 06:03:58 +0000]
jetson-CV/E: Set Ignore susp for all codec links

[Missing integration to I2S4 node in Jetson-CV/E DT files]:
Set Ignore suspend bit for all codec dai links.
It will help to avoid dapm sync calls during
suspend operation which is consuming significant
time and causing delay in entering lp0 state.

Bug 200152856
Bug 200155912

Change-Id: I77e88b1eefa48092ab24af0bd16744a621db5fd2
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: http://git-master/r/842103
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

3 years agopcie: host: tegra: fix port register access
Vidya Sagar [Tue, 24 Nov 2015 18:08:35 +0000]
pcie: host: tegra: fix port register access

access root port registers only if rootport is active

Bug 1705758

Change-Id: Iac2f2b673d30824188220ddddf3a037535ab1f34
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/837265
(cherry picked from commit be8e3f837be5cdf3ed8daec91ac0dedc29d0c7a7)
Reviewed-on: http://git-master/r/841724
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agomfd: max77620: add support for active and suspend FPS period
Laxman Dewangan [Thu, 5 Nov 2015 15:33:55 +0000]
mfd: max77620: add support for active and suspend FPS period

Add support to configure device FPS period different for the
active and suspend state of the device.

Change-Id: Ia34ffbcb283a2011de4a50a4c99e06881fb8e5e9
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/828480
(cherry picked from commit e40bbe6035ea76178f8bbf07311e7a4772ab9dcc)
Reviewed-on: http://git-master/r/829137
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/840914
GVS: Gerrit_Virtual_Submit

3 years agoresource: Coverity fixes
Pavitrakumar [Thu, 18 Jun 2015 15:17:20 +0000]
resource: Coverity fixes

Coverity fixes
Initializing counter 'l' to 0 in 'r_next', which is
incremented to keep track of the resource position during
resource tree traversal.

Coverit ID 13503

Bug 200083369

Change-Id: Iea3d1390686b4c418a9bf40571921dbd9ca8d2fa
Signed-off-by: Pavitrakumar <pavitrak@nvidia.com>
Reviewed-on: http://git-master/r/759698
(cherry picked from commit 73ee1c6332a0725dd28dbe5fdb7fa84a96f8f987)
Reviewed-on: http://git-master/r/839215
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

3 years agoARM64: dts: darcy: copy power tree data for darcy
Venkat Reddy Talla [Wed, 18 Nov 2015 07:01:16 +0000]
ARM64: dts: darcy: copy power tree data for darcy

Copy foster power tree dts file content to darcy
as darcy will be subset of Foster,using seperate
power tree dts file for darcy to avoid any
issues when changes made for Foster platform
only.

Bug 1700499

Change-Id: I8077319b88f64003febdb171892c36b9b20640ff
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/834458
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agomm: Coverity fixes
Pavitrakumar [Fri, 19 Jun 2015 15:35:35 +0000]
mm: Coverity fixes

Coverity fixes
Initialized the dummy1 & dummy2 variables to 0, to avoid
using these two un-initialized. Though the returned count
value is not used in the calling function, its better to
have clean code.

Coverity ID 13508 13509

Bug 200083369

Change-Id: Ia9d1d9eccd9079c2973d07ce9e2ce17f2e33ee9b
Signed-off-by: Pavitrakumar <pavitrak@nvidia.com>
Reviewed-on: http://git-master/r/760156
(cherry picked from commit 6c696464c6719ab2679d93519656b200aa5f784f)
Reviewed-on: http://git-master/r/805188
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

3 years agotegra-nor: Coverity fixes
Pavitrakumar [Tue, 7 Jul 2015 13:54:12 +0000]
tegra-nor: Coverity fixes

Coverity fixes
memsetting 'nor_cs_info' to avoid uninitialzied usage of
the fields in code.

Coverity ID 18089

Bug 200083369

Change-Id: I08f1b308feb08a8953a51ec868fb493c00f29790
Signed-off-by: Pavitrakumar <pavitrak@nvidia.com>
Reviewed-on: http://git-master/r/767141
(cherry picked from commit 472fdd0ee0cc438e10f15aa1ec58e85de9740286)
Reviewed-on: http://git-master/r/805187
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

3 years agoPCI: Fix use of uninitialized MPS value
Bjorn Helgaas [Tue, 29 Apr 2014 18:51:55 +0000]
PCI: Fix use of uninitialized MPS value

If "pcie_bus_config == PCIE_BUS_PERFORMANCE", we don't initialize "smpss",
so we pass a pointer to garbage into pcie_bus_configure_set(), where we
compute "mps" based on the garbage.  We then pass the garbage "mps" to
pcie_write_mps(), which ignores it in the PCIE_BUS_PERFORMANCE case.

Coverity isn't smart enough to deduce that we ignore the garbage (it's a
lot to expect from a human, too), so initialize "smpss" to a safe value in
all cases.

Cherry-picked from vanilla kernel commit ID 1e358f94c0

Coverity ID 13477

Bug 200083369

Change-Id: I33131de68a8e47d65e9ae1a01a931cb76116a886
Signed-off-by: Pavitrakumar <pavitrak@nvidia.com>
Reviewed-on: http://git-master/r/759248
(cherry picked from commit dfc76a7e9d62465948bd51c0439ae61016a8f310)
Reviewed-on: http://git-master/r/805186
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

3 years agoarm64: tegra210: fix DT for node xusb_padctl
Hans Yang [Fri, 4 Dec 2015 09:11:38 +0000]
arm64: tegra210: fix DT for node xusb_padctl

This commit fixed xusb_padctl node in DT source files
by means of "check_padctl_dt_auto_fix.sh"

It automatically checks .dtb and does following actions
in .dts/.dtsi files

1) Replace padctl@0 by xusb_padctl.
2) Correct "nvidia,enable-sata-port" if sata is enabled/disabled.
3) Correct "nvidia,lane-map=0x??" if pcie is enabled/disabled.
4) Correct "status=??" depends on sata/pcie/xusb lane owner.
5) Add needed regulators depends on sata/pcie/xusb lane owner.

Bug 200153624

Change-Id: I1546a1ab2dd6217ca17bb5433206dd672aac84d1
Signed-off-by: Hans Yang <hansy@nvidia.com>
Reviewed-on: http://git-master/r/841580
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agoarm64: dts: remove vbus detection for Darcy
Daniel Fu [Fri, 27 Nov 2015 09:16:51 +0000]
arm64: dts: remove vbus detection for Darcy

- Darcy will use sysfs node to control device/host mode.
  No need to have vbus detection for otg.

Bug 1695353
Bug 1709564

Change-Id: Iad80af2fd6d445b9c1e543970dea9991707e535e
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/838793
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agoloki:foster: emc update to 983 v11
David Dastous St Hilaire [Mon, 19 Oct 2015 23:12:04 +0000]
loki:foster: emc update to 983 v11

v9:
-Update MRW command to use MRS_SHORT_WAIT_CNT for bug 200099624
-Fix W2W/R2R for lp4 dual rank usage for bug 1616889
-Add 5 new lp4 mappings
-Reduce PutermExtra by 2
-Fix unterminated CA/DQ vref to 42%
-DVFS_gen_script update to V1.4 from V1.3 for Vcore(mV)

v10:
-Change receiver mode for 665MHz from HSSA to DIFF to expand the OB margin
-Update 1600MHz Vcore from 875mV to 887mV to address 1600MHz regression failure on A02p silicon qual
-Vcore DVFS Table Update
EMC Freq. Vcore (mV)
1600MHz 887
1331.2MHz 850
1065.6MHz 837
800MHz 825
665MHz 825
408MHz 812
<=204MHz 800

V11:
Update DVFS table format to rev0x7
-Support moving average method for periodic calibration. It will improve the stability due to MEMIO noise.

Bug 1636958
Bug 1541472

This reverts commit 3b7bafd46987c26e1bba2143c1b25907d3e1e527.

Change-Id: I50edbf8b69bbad007e9e650bfe6b2364c40808f7
Signed-off-by: David DSH <ddastoussthi@nvidia.com>
Reviewed-on: http://git-master/r/819946
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agotegra: host: pcie: fix D3_Hot test code
Vidya Sagar [Fri, 27 Nov 2015 11:52:16 +0000]
tegra: host: pcie: fix D3_Hot test code

fixes D3_Hot test code w.r.t checking device's
entry into D3_Hot state

Bug 200143348

Change-Id: I74b874b8c0e105b69da086a9edc3f9a29718eb7e
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/838881
(cherry picked from commit 1bc402e93b3e1d854288c350b7eabc27324552ce)
Reviewed-on: http://git-master/r/839231
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>

3 years agoiio: proximity: SAR v.21
Erik Lilliebjerg [Wed, 2 Dec 2015 01:07:13 +0000]
iio: proximity: SAR v.21

- Add device tree byte streams for external state low and high.
  When an external entity writes a status state to the SAR driver's external
  function sar_external_status, the corresponding DT byte stream is executed
  depending on the value written (0 or 1).
- Update documentation that explains this.

Bug 200137195

Change-Id: Ie1e3dd606f764d9cafa1b6bc170f46e86206a5f6
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/840111
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Wayne Hsu <wahsu@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

3 years agoneigh: Better handling of transition to NUD_PROBE state
Erik Kline [Wed, 2 Dec 2015 10:01:20 +0000]
neigh: Better handling of transition to NUD_PROBE state

[1] When entering NUD_PROBE state via neigh_update(), perhaps received
from userspace, correctly (re)initialize the probes count to zero.

This is useful for forcing revalidation of a neighbor (for example
if the host is attempting to do DNA [IPv4 4436, IPv6 6059]).

[2] Notify listeners when a neighbor goes into NUD_PROBE state.

By sending notifications on entry to NUD_PROBE state listeners get
more timely warnings of imminent connectivity issues.

The current notifications on entry to NUD_STALE have somewhat
limited usefulness: NUD_STALE is a perfectly normal state, as is
NUD_DELAY, whereas notifications on entry to NUD_FAILURE come after
a neighbor reachability problem has been confirmed (typically after
three probes).

Bug 200154120

Change-Id: I3ee05ab3489173824d38a4b3790bcf0840e0dc40
Signed-off-by: Erik Kline <ek@google.com>
Acked-By: Lorenzo Colitti <lorenzo@google.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: kraghavender <kraghavender@nvidia.com>
Reviewed-on: http://git-master/r/840346
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Tested-by: Om Prakash Singh <omp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agoarm64:dts:jetson-CV/E: Support for i2s4 loopback
Viswanath L [Mon, 30 Nov 2015 06:04:30 +0000]
arm64:dts:jetson-CV/E: Support for i2s4 loopback

Add I2S4 node in Jetson-CV and Jetson-E DTS. This node will be used
for remote-submix loopback path.

Bug 200155912

Change-Id: I4d02531f978b07d4407b79aec1b9c2d836b0b40e
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: http://git-master/r/839102
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

3 years agoST8: DTS: disable ltr proxmity device
wahsu [Sun, 29 Nov 2015 06:03:24 +0000]
ST8: DTS: disable ltr proxmity device

Proximity is not used in data only and wifi sku on ST8 device.

Bug 200148651

Change-Id: I01f2d5f960ccdf1dacbb92fe802426a9839fd1dd
Signed-off-by: wahsu <wahsu@nvidia.com>
Reviewed-on: http://git-master/r/839015
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Chuang <echuang@nvidia.com>
Reviewed-on: http://git-master/r/839370
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

3 years agoARM: tegra: hawkeye:added touch_clk_sel gpio
David Pu [Fri, 20 Nov 2015 19:54:33 +0000]
ARM: tegra: hawkeye:added touch_clk_sel gpio

added touch_clk_sel gpio which need to be explictly pull low/high
to select touch clock(external or internal clock)

Bug 1706267

Change-Id: I1b70bdddbc362a7a2eb2dd42d5c3087cc3fbf2f3
Signed-off-by: David Pu <dpu@nvidia.com>
Reviewed-on: http://git-master/r/836030
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agoinput: touch: sharp:add touch_clk_sel control.
David Pu [Fri, 20 Nov 2015 19:57:00 +0000]
input: touch: sharp:add touch_clk_sel control.

touch_clk_sel GPIO need to be configured correctly no matter active
stylus feature is enabled or not.

Bug 1706267

Change-Id: I5381a60b4e86e1562804eed08bb7165b58eb6921
Signed-off-by: David Pu <dpu@nvidia.com>
Reviewed-on: http://git-master/r/836029
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoRevert "Revert "input: touch: sharp: turn off TOUCH_CLK by default.""
David Pu [Mon, 23 Nov 2015 06:29:28 +0000]
Revert "Revert "input: touch: sharp: turn off TOUCH_CLK by default.""

This reverts commit aea857137f1733436bde5f4b0a9a6b0552e16adc.

Change-Id: I1628c717030cdc05fdc235f4aaf22591c1966108
Signed-off-by: David Pu <dpu@nvidia.com>
Reviewed-on: http://git-master/r/836392
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoarm64: dts: update fastboot usb pid for darcy
Daniel Fu [Wed, 18 Nov 2015 02:47:51 +0000]
arm64: dts: update fastboot usb pid for darcy

Bug 1695353

Change-Id: I29ba6d6d2d5f8eaacf2a627567716a563ac69f66
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/834320
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoARM64: t210: jetson: add enable/disable/ramptime for rails
Venkat Reddy Talla [Mon, 16 Nov 2015 08:59:05 +0000]
ARM64: t210: jetson: add enable/disable/ramptime for rails

Adding enable, disable and ramptime details for Jetson-CV
platform pmic rails.
enable, disable and ramptime data for different rails
provided by sys-eng team.

Bug 200148181

Change-Id: Ia9cf063aee4286062f9d38a961c80b75239e11ff
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/833207
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agommc: tegra: Update is_calibration_done flag status
Naveen Kumar Arepalli [Mon, 30 Nov 2015 10:21:03 +0000]
mmc: tegra: Update is_calibration_done flag status

-Set is_calibration_done to true only if device is present in
the slot.
-when sd card is removed corresponding rails are turned off
hence no need to run calibration, set is_calibration_done to false
when sd card is removed.
-In suspend set is_calibration_done to false as sd rails are
turned off.

Bug 1661177

Change-Id: I3291c820067b53a72b81e82a5da0cb5eb9fa8363
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/839222
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agovideo: tegra: dc: Setup hda presence on hotplug
Shaunak Gupte [Tue, 20 Oct 2015 07:00:31 +0000]
video: tegra: dc: Setup hda presence on hotplug

Setup hda presence automatically when hdmi is plugged in.

Bug 200130740
Bug 200128816

Change-Id: I846300c9808956ac25dba94792793321cad61af2
Signed-off-by: Shaunak Gupte <shaunakg@nvidia.com>
Reviewed-on: http://git-master/r/838499
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>

3 years agogpu: nvgpu: move check_gp_put() and update_gp_get() to worker
Deepak Nibade [Mon, 30 Nov 2015 10:39:48 +0000]
gpu: nvgpu: move check_gp_put() and update_gp_get() to worker

We currently call check_gp_put() and update_gp_get()
in submit path and this takes about 5uS for both checks
check_gp_put() - 3.5 uS
update_gp_get() - 1.5 uS

But this book keeping can be moved to gk20a_channel_update()
to save some submit time

Note that check_gp_put() needs to be done inside submit
lock

Bug 200141116

Change-Id: I276400111be0421eb673695e2f2899ff52e344b4
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/839232
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years agogpu: nvgpu: Fix alignment calculation overflow
Ari Hirvonen [Thu, 19 Nov 2015 09:12:26 +0000]
gpu: nvgpu: Fix alignment calculation overflow

Bug 200150865

Change-Id: If4f0e01bdeb95c303675b63444bd497b65d934f3
Signed-off-by: Ari Hirvonen <ahirvonen@nvidia.com>
Reviewed-on: http://git-master/r/835151
(cherry picked from commit d172eea1fd0a329c62f5a8229e8d8af7b24c4b4c)
Reviewed-on: http://git-master/r/836551
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years agoarm64: tegra21: config: enable USB_SERIAL_FTDI_SIO
Jeetesh Burman [Wed, 25 Nov 2015 06:04:31 +0000]
arm64: tegra21: config: enable USB_SERIAL_FTDI_SIO

Enable USB_SERIAL_FTDI_SIO.

Bug 1705825

Change-Id: I928642b23c8fcf561137edcd5d326ed5029bd03d
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/837612
(cherry picked from commit 8bb3bb40a5ad0ec2e4a78b79d2ceafabe1addc3a)
Reviewed-on: http://git-master/r/838831
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agoASoC:tegra-alt:Set Ignore susp for all codec links
Manoj Gangwal [Tue, 24 Nov 2015 10:29:08 +0000]
ASoC:tegra-alt:Set Ignore susp for all codec links

Set Ignore suspend bit for all codec dai links.
It will help to avoid dapm sync calls during
suspend operation which is consuming significant
time and causing delay in entering lp0 state.

Bug 200152856

Change-Id: Iea70de203233fbc5e5140a3d8773ed69ab64d42e
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/837085
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoirqchip: tegra: set FIQ shadows offset
Ian Chang [Wed, 25 Nov 2015 08:41:16 +0000]
irqchip: tegra: set FIQ shadows offset

Set FIQ shadows offset to fix kernel
warnning.

bug 200117915

Change-Id: I3c27df9183d46f6ff8c4a3cc784089b34f6035c8
Signed-off-by: Ian Chang <ianc@nvidia.com>
Reviewed-on: http://git-master/r/837727
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>