summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
* gpu-paging: Functions to support initial working versionrtss22-aegpu-pagingJoshua Bakita2022-05-24
| | | | | | - Buffer deallocation (+IOCTL) - Buffer reallocation - Private dmabuf user list and accessor
* platform: tegra: mc: add option to disable L3 alloc hint from mss nvlinkBrad Griffis2022-02-02
| | | | | | | | | | | | | | Accessing memory beyond 64GB boundary from GPU on Xavier needs L3 cache alloc hint disabled at mss nvlink. Bug 3486025 Change-Id: Iac3a8932a6877b371df15d3e0d8dc9ebe1e48bdd Signed-off-by: Brad Griffis <bgriffis@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2662169 Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> GVS: Gerrit_Virtual_Submit
* tegra: cache: fix dcache flush retryADIGUPTA2022-02-02
| | | | | | | | | | | | | | | | | | Presently we have number of retries as 10 to flush cache, each flush operation takes around 95-100 us Increased number of retries to 20, and enabled debug version of flush code which profiles latency, executing the flush instruction. Bug 200782744 Change-Id: Ie32c17bacdb9d091e9e21a8384727a6479d83b47 Signed-off-by: Aditya Gupta <adigupta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2648815 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Rohit Upadhyay <rupadhyay@nvidia.com> GVS: Gerrit_Virtual_Submit
* nvadsp: Add more error logs and fix crashUday Gupta2022-01-24
| | | | | | | | | | | | | | | | | - Change adds more error logs in case of APP init failure. - Also potentially fixes the crash issue Bug 3374437 Bug 3498407 Change-Id: If6baf6e2e11250815cff4a6b8a2abe553e893e34 Signed-off-by: Uday Gupta <udayg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2593021 (cherry picked from commit b051fae2faffafbffed99b94914bbd9bc370240f) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2658565 Reviewed-by: Dipesh Gandhi <dipeshg@nvidia.com> Reviewed-by: Phoenix Jung <pjung@nvidia.com> GVS: Gerrit_Virtual_Submit
* ufs: Changes to support provision for UFS3.1 and UFS2.1Mallikarjun Kasoju2022-01-18
| | | | | | | | | | | | | | | | | Get the device UFS spec and populate the descriptor offsets as per the respective specs. Bug 200765373 Change-Id: Id9a0d90d1aaf465cc6e581f7155b98cc5bcf0182 Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2645541 Tested-by: Prakhar Gupta <prakharg@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Vikram Kanigiri <vkanigiri@nvidia.com> Reviewed-by: Rohit Upadhyay <rupadhyay@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* driver:imx185:Add info message for expected i2c error.Praveen AC2022-01-18
| | | | | | | | | | | | | | | | | | Sensor not return ACK when SW_RESET is transferred. bug 200741759 Change-Id: I77639f84bcda653ba2d3adfd68727725a0c00e1f Signed-off-by: Praveen AC <pac@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2653996 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Anubhav Rai <arai@nvidia.com> Reviewed-by: Shubham Chandra <shubhamc@nvidia.com> Reviewed-by: Ajith Kumar <ajithk@nvidia.com> Reviewed-by: Sudhir Vyas <svyas@nvidia.com> Reviewed-by: Frank Chen <frankc@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* video: tegra: nvmap: Fix race between write and freeAshish Mhetre2022-01-11
| | | | | | | | | | | | | | | | | | | | | | When NvRmMemWrite() and NvRmMemFree() are called simultaneously on same handle then it could lead to race where dmabuf freed from NvRmMemFree() call could get used by nvmap_get_cachebility() and cause kernel crash. When dmabuf is freed, its exported functions such as get_drvdata() won't be valid anymore and will give error value or NULL. Fix this by checking if get_drvdata() returns error value or NULL and act accordingly. Bug 3457360 Change-Id: Ibcd238bfde8775347a9f8c6266ed3ab3825d945d Signed-off-by: Ashish Mhetre <amhetre@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2651952 Reviewed-by: Ketan Patil <ketanp@nvidia.com> Reviewed-by: Puneet Saxena <puneets@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* driver: imx219: Fix for i2c error write modePraveen AC2022-01-10
| | | | | | | | | | | | | | | | | | | Add enough time delay after sensor soft reset to avoid i2c error write mode. bug 200768012 Change-Id: Iacabee71957168f4eec15da45194d52bd1464fbf Signed-off-by: Praveen AC <pac@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2649706 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Nithin Varghese <nvarghese@nvidia.com> Reviewed-by: Anubhav Rai <arai@nvidia.com> Reviewed-by: Shubham Chandra <shubhamc@nvidia.com> Reviewed-by: Sudhir Vyas <svyas@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* media: tegra: camera: vi2: refactor low-latency mode codeKen Chang2022-01-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A frame capture may fail somewhere between the frame start and the frame end,e.g., the below error prints: 2021-11-04T10:11:31.561+00:00 kernel: [ 794.777229] tc358840 1-001f: event: resolution change (EQ_BYPS=1): 3840x2160p29.94 (4400x2250) 2021-11-04T10:11:32.167+00:00 kernel: [ 795.379917] video4linux video0: TEGRA_VI_CSI_ERROR_STATUS 0x00000000 2021-11-04T10:11:32.167+00:00 kernel: [ 795.386292] video4linux video0: TEGRA_VI_CSI_ERROR_STATUS 0x00000000 2021-11-04T10:11:32.191+00:00 kernel: [ 795.404274] vi 54080000.vi: tegra_channel_error_status:error 20022 frame 0 This means checking SOF in the capture thread doesn't help avoid a failure in the release thread. Hence we can simplify the capture thread to program only the capture released settings, skip the checking of SOF and leave the checking of vi/csi status and the recovery process to be done in the release thread. Also simplify vi2_channel_stop_streaming() to not invoke tegra_channel_capture_done() as the buffers shall be well handled in tegra_channel_queued_buf_done() with VB2_BUF_STATE_ERROR state. In the original implementation, chan->syncpt[index][] will be re-allocated for every single stop_streaming()/start_streaming() pair, so the syncpt IDs may change. This is causing the problem: the syncpt IDs armed for the previous failing capture are still queued in the FIFO and will be used for the next successfull frame capture, however new syncpt IDs are allocated for the new coming frames, e.g, the below error prints: 2021-11-23T08:12:59.038+00:00 kernel: [ 590.029312] tegra_channel_capture_frame_multi_thread[570]: rv 4, cv 3, stm Y 2021-11-23T08:12:59.038+00:00 kernel: [ 590.036865] tegra_channel_enable_stream[212] -- begin 2021-11-23T08:12:59.044+00:00 kernel: [ 590.042437] tegra_channel_enable_stream[221] -- end 2021-11-23T08:12:59.263+00:00 kernel: [ 590.251676] video4linux video0: frame start syncpt timeout!0 2021-11-23T08:12:59.263+00:00 kernel: [ 590.257419] tegra_channel_ec_recover[337] -- begin 2021-12-03T11:14:36.763+00:00 kernel: [ 1049.109289] vi2_channel_start_streaming[912] -- begin 2021-12-03T11:14:36.763+00:00 kernel: [ 1049.115121] vi2_channel_start_streaming[949]: syncpt id 24, max 5064, min 5064 2021-12-03T11:14:36.771+00:00 kernel: [ 1049.123116] vi2_channel_start_streaming[949]: syncpt id 28, max 1614, min 1614 --> the syncpt id being used for this streaming are 24/28, these two syncpts are used since the first streaming ... 2021-12-03T11:14:39.244+00:00 kernel: [ 1051.597885] tegra_channel_capture_frame_multi_thread[624] -- end: release_thresh 5101 2021-12-03T11:14:39.303+00:00 kernel: [ 1051.663550] tegra_channel_release_frame[701] -- end: buf->thresh 5101 2021-12-03T11:14:39.350+00:00 kernel: [ 1051.703617] vi2_channel_stop_streaming[1065] -- end --> no problem observed, and capture cancelled due to stop_streaming ... 2021-12-03T11:15:09.524+00:00 kernel: [ 1081.871259] vi2_channel_start_streaming[912] -- begin 2021-12-03T11:15:09.524+00:00 kernel: [ 1081.876860] vi2_channel_start_streaming[949]: syncpt id 36, max 0, min 0 2021-12-03T11:15:09.524+00:00 kernel: [ 1081.884187] vi2_channel_start_streaming[949]: syncpt id 38, max 0, min 0 --> the syncpt id being used now are changed to 36/38 ... 2021-12-03T11:15:09.534+00:00 kernel: [ 1081.891728] tegra_channel_capture_frame_multi_thread[514] -- begin 2021-12-03T11:15:09.534+00:00 kernel: [ 1081.891771] vi2_channel_start_streaming[992] -- end 2021-12-03T11:15:09.552+00:00 kernel: [ 1081.904384] tegra_channel_capture_frame_multi_thread[569]: rv 119, cv 119, stm N 2021-12-03T11:15:09.606+00:00 kernel: [ 1081.958030] tegra_channel_capture_frame_multi_thread[624] -- end: release_thresh 1 2021-12-03T11:15:09.606+00:00 kernel: [ 1081.958086] tegra_channel_release_frame[669] -- begin 2021-12-03T11:15:09.817+00:00 kernel: [ 1082.162133] video4linux video0: tegra_channel_release_frame: MW_ACK_DONE syncpoint time out!0 2021-12-03T11:15:09.817+00:00 kernel: [ 1082.170683] tegra_channel_release_frame[680]: buf->thresh[0] 1 2021-12-03T11:15:09.817+00:00 kernel: [ 1082.176972] tegra_channel_release_frame[683]: syncpt 36, hw val 0 2021-12-03T11:15:09.829+00:00 kernel: [ 1082.183715] tegra_channel_ec_recover[337] -- begin Given Hw doesn't support SYNCPT FIFO reset per stream, reuse the same syncpt IDs until the channel is powered off. Also skip invoking tegra_channel_capture_done() from vi2_channel_stop_streaming() and tegra_channel_release_frame() from tegra_channel_stop_kthreads() as streaming shall be stoped immediately and the queued buffers shall be well handled in tegra_channel_queued_buf_done() with the VB2_BUF_STATE_ERROR state. Bug 3423623 Change-Id: I53280bc9b1b3c33054d766aa920eb082b3311d92 Signed-off-by: Ken Chang <kenc@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2645502 Reviewed-by: Frank Chen <frankc@nvidia.com> Reviewed-by: Jerry Chang <jerchang@nvidia.com> Reviewed-by: Anubhav Rai <arai@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* tegra: hdcp: update policy init valueAhung Cheng2022-01-07
| | | | | | | | | | | | | | | Update hdcp policy init value based on availability of HDCP TA for L4T Bug 3167119 Change-Id: I81e4f02b20214fb23c94756804448fa0ae80246b Signed-off-by: Ahung Cheng <ahcheng@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2632879 Reviewed-by: Ilhan Gurel <igurel@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* video: tegra: fb: Set default fb state to RUNNING for DSI onlyWayne Wang (SW-TEGRA)2022-01-03
| | | | | | | | | | | | | | | | | | | | Since tegra dsi driver will not call tegra_fb_update_monspecs, the default fb_info->info->state is always FBINFO_STATE_SUSPENDED. Under such situation, fbconsole will not be enabled and affect some usecases. Thus, set default fb state to FBINFO_STATE_RUNNING for DSI case only. Bug 200515788 Change-Id: Ie6336b54aa804f7cf42d3b3dcf209d8e28dcb36c Signed-off-by: Wayne Wang(SW-TEGRA) <waywang@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2645581 GVS: Gerrit_Virtual_Submit Reviewed-by: Naveen Kumar S <nkumars@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* tegra: mc: Restore value of nvlink registers on resumeKetan Patil2021-12-20
| | | | | | | | | | | | | | | | | NvLink registers are not getting restored after suspend resume. Restore these registers during resume. Bug 3418979 Change-Id: I8dff27d03c43df61d1a2c64e1aa77e0cec926645 Signed-off-by: Ketan Patil <ketanp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2642340 (cherry picked from commit eb0b8117551011bbde82f8ef3504e36160c9ece3) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2642845 Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* tegra: mc: Add resume function for mcKetan Patil2021-12-10
| | | | | | | | | | | | | | | | | | | | mc_err is not reported after device resume as MC_INTMASK register is in reset state. Restore this register in resume. Bug 3418979 Change-Id: I04884b81164a4b95e1f11e6e78e35499b6f5e977 Signed-off-by: Ketan Patil <ketanp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2622984 (cherry picked from commit c9638f54e8b3dc48158cce548c24bae6dbf09adc) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2638812 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Puneet Saxena <puneets@nvidia.com> Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* misc: eventlib: fix building kernel with gcc 11Igor Nabirushkin2021-11-30
| | | | | | | | | | | | | | | | Eventlib: Add local implementation of __sync_fetch_and_or and __sync_fetch_and_and builtin functions. This fixes eventlib build errors with GCC 11. Bug 3375927 Change-Id: I1a8ed9dcc383242a5fa125df3cfb220c867adaf3 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2629717 Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* video: tegra: host: fix tsec_hdcp syncpoint stuckAhung Cheng2021-11-29
| | | | | | | | | | | | | | | Add lock to prevent channel being freed while executing method Bug 200692849 Change-Id: Ic567b1c43d924234a962e662df954593ee14659b Signed-off-by: Ahung Cheng <ahcheng@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2628743 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* media:i2c: fix imx477 unable streamingsnchen2021-11-24
| | | | | | | | | | | | | | | | Fix timeout for VI mode capture on second camera. bug 3429708 Change-Id: I18c2a3ec6585325124da1393275bd1406f74720a Signed-off-by: snchen <snchen@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2622692 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Anubhav Rai <arai@nvidia.com> Reviewed-by: Frank Chen <frankc@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* eqos: stop mac,phy,clk in eqos open/resume failSushil Singh2021-11-09
| | | | | | | | | | | | | | | | | | | | | | | Issue: - failure cases during ifconfig up and eqos resume paths skips stopping mac, phy and disabling clocks. Fix: - Add corresponding deinit code for MAC/PHY and clocks disable during ifconfig up and resume failures. Bug 200745168 Change-Id: I82cbbcf1adffa78c989ffd25abd0a015cb687a2c Signed-off-by: Sushil Singh <sushilkumars@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2562581 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Mohan Thadikamalla <mohant@nvidia.com> Reviewed-by: Bhadram Varka <vbhadram@nvidia.com> Reviewed-by: Ashutosh Jha <ajha@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* camera: modify debugfs_name size avoid boot failedsnchen2021-10-29
| | | | | | | | | | | | | | | | | fixed when the size of debugfs_name in sensor driver more than 9 cause system can't boot. bug 200759786 Change-Id: Ic34c7a2118095c82c58a1ef01561cedbacd27b2f Signed-off-by: Shan Neng Chen <snchen@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2571796 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Anubhav Rai <arai@nvidia.com> Reviewed-by: Sudhir Vyas <svyas@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* net: eqos: ethtool: resolve the fixed ptp clock issueWayne Wang(SW-TEGRA)2021-10-21
| | | | | | | | | | | | | | | | | When using ethtool to determine which ptp clock is register to the eqos. It will always report ptp0. And it may not be true. This causes issues when using ptp4l as the clocks do not line up with the interfaces. Bug 3392620 Change-Id: I97192952817dadea9ce795cff548e97d2cd65477 Signed-off-by: Wayne Wang(SW-TEGRA) <waywang@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2612151 Reviewed-by: Sushil Kumar Singh <sushilkumars@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* capture: Added NULL check for buf_ctxDevang Kubavat2021-10-18
| | | | | | | | | | | | | | | | | | | | Added NULL check for capture->buf_ctx before using it in vi_capture_shutdown. Bug 200769105 Change-Id: Icf38a287054f0d264ed493d919dc06e1bfee8424 Signed-off-by: Devang Kubavat <dkubavat@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2589937 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Jerry Chang <jerchang@nvidia.com> Reviewed-by: Aditya Tomar <adtomar@nvidia.com> Reviewed-by: Anubhav Rai <arai@nvidia.com> Reviewed-by: Frank Chen <frankc@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: Jerry Chang <jerchang@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* rel-32:eqos Drop Rx pkt if MTU and pkt len differsSushil Singh2021-10-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue: The len of buffers allocated is based on the MTU configured at the DUT. In case a Rx packet received is more than the MTU configured, then the packet appears in the ring with LD bit set which further gets processed even if the buffers length allocated is less than the received packet len. The frame hence consumes more than 1 rx desc and kfree for an skb with no LD bit set and neither error bits set got called causing kernel panic. Fix: Drops such pkts for which the configured MTU and received pkt len is different to avoid packects consuming more than 1 rx desc, and always accommodate single packet in single rx desc buffer. Bug 200712686 Change-Id: I798185ff584507fc31906c0977d3c53e447ae48f Signed-off-by: Sushil Singh <sushilkumars@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2602767 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Bhadram Varka <vbhadram@nvidia.com> Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* tegra-smmu: Fix grep in 12000000.iommu debugfs.Achal Verma2021-10-06
| | | | | | | | | | | | | | | | | | | | | | | | grep in /sys/kernel/debug/12000000.iommu/ failing because inside masters/ some devices didn't have pointers set for cfg, so added check in debugfs show for NULL pointer. And other issue is accessing registers inside gnsr dir. These registers are not ioremapped or access to them is not allowed in case of hypervisor. So removed gnsr node creation in hypervisor case. Bug 200772838 Change-Id: I2dc0cbe9f71db90246a60de5db27158b555737a4 Signed-off-by: Achal Verma <achalv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2597304 Reviewed-by: Dmitry Pervushin <dpervushin@nvidia.com> Reviewed-by: Amrita Deshmukh <amritad@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2606024 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
* tegra-vic: Make pdata->falcon_data NULL.Achal Verma2021-10-06
| | | | | | | | | | | | | | | | | | | | | | | | | | In case firmware load failed 15340000.vic for whatever reason, we need to reassign pdata->falcon_data NULL else based on check if (pdata->falcon_data), non NULL , code will assume that firmware is loaded properly last time and will go ahead submitting the job, which may result in SMMU-fault. We need that when it tries next time it sees pdata->falcon_data is NULL and does allocation and firmware loading before job submission, Bug 200764796 Change-Id: Ia949ceb19b6b07db94b8a310a6c00363f8e58a6d Signed-off-by: Achal Verma <achalv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2598619 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Dmitry Pervushin <dpervushin@nvidia.com> Reviewed-by: Amrita Deshmukh <amritad@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2606002 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
* video: tegra: dc: Register AUX channels as i2c busWayne Wang (SW-TEGRA)2021-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add an i2c-over-AUX i2c adapter to tegra_dc_dp. With this i2c adapter, end-user shall be able to send MCCS commands to monitor with ddc/ci tool. Also,since it needs to use I2CWR for i2c-dpaux transactions but not MOTWR, add below changes: * Add two wrapper functions: tegra_dc_dp_edid_i2c_xfer and tegra_dc_dp_ddc_i2c_xfer * Make tegra_dc_dp_i2c_xfer as a helper function: Take different write cmd coming from above 2 wrapper functions. Bug 200740788 Change-Id: Ibaca75a239d76c2356c9f95241e38aa0af0e070f Signed-off-by: Wayne Wang(SW-TEGRA) <waywang@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2601080 Reviewed-by: Shu Zhong <shuz@nvidia.com> Reviewed-by: Ujwal Patel <ujwalp@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* hw_random: add tegra hw_random driverHarinarayan Bhatta2021-10-04
| | | | | | | | | | | | | | | | Add Tegra HW random driver to support /dev/hwrng. This driver calls into the tegra rng using the kernel crypto framework APIs. Bug 3326341 Change-Id: I628632d52d24c29ea55eb5f6e2b86627b91594f6 Signed-off-by: Harinarayan Bhatta <hbhatta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2569911 Reviewed-by: Dmitry Pervushin <dpervushin@nvidia.com> Reviewed-by: Rohit Upadhyay <rupadhyay@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* crypto: tegra: return error upon wait timeoutHarinarayan Bhatta2021-09-24
| | | | | | | | | | | | | | | | | | | Return an error value from process_crypt_req if wait_for_completion_timeout returns 0 in case of a timeout waiting for crypto operation to complete. Bug 200771660 Change-Id: Ie7597a053274cace6b930895e3f969622a813d76 Signed-off-by: Harinarayan Bhatta <hbhatta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/#/c/linux-nvidia/+/2596050 (cherry picked from commit f62687d53e0437b6138c02a4463acee21361cd26) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2599867 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* dc: check user-supplied arguments before usedmitry pervushin2021-09-23
| | | | | | | | | | | | | | | | | CID 27937 Bug 200741055 Change-Id: I3aaf094bf616f9cc56accece0f1818b9b6ba7c8a Signed-off-by: dmitry pervushin <dpervushin@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2592115 Reviewed-by: Rahul Jain (SW-TEGRA) <rahuljain@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2592167 Tested-by: Achal Verma <achalv@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Achal Verma <achalv@nvidia.com> Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
* tegra-vhost: Check ptr for NULL before accessing.Achal Verma2021-09-14
| | | | | | | | | | | | | | | | This fix coverity issue: 18628 Bug 200741055 Change-Id: Icbf2a7ad85dd055ac1904a7e9a82b60557c8d447 Signed-off-by: Achal Verma <achalv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2593221 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Dmitry Pervushin <dpervushin@nvidia.com> Reviewed-by: Rahul Jain (SW-TEGRA) <rahuljain@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* eqos: remove sequencedmitry pervushin2021-09-01
| | | | | | | | | | | | | | | | | | removing of any module should be supported, eqos is not an exception Bug 200763721 Change-Id: I1e98154be068e43370f703e7ae216b1f1d4916c1 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2578062 Reviewed-by: Hardik T Shah <hardikts@nvidia.com> Reviewed-by: Amrita Deshmukh <amritad@nvidia.com> Signed-off-by: dmitry pervushin <dpervushin@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2586706 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* vblk: ignore invalid requestsdmitry pervushin2021-08-27
| | | | | | | | | | | | | | | | | | | The virtual block device driver knows about capabilities of the device Based on this, we can early reject (complete with -ENOTSUPP) invalid requests. Bug 200511281 Change-Id: I54d457e7ccab293e48df7283e53236ec628a159b Signed-off-by: dmitry pervushin <dpervushin@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2582114 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Vikram Kanigiri <vkanigiri@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* nvhost: Fix comparison of unsigned against >= 0.Achal Verma2021-08-24
| | | | | | | | | | | | | | | | | | | This fixes coverity issue: 3116774 Bug 200741055 Change-Id: I512d3cadc5c4312cf8885acd7b3c9d9b9a00d8b8 Signed-off-by: Achal Verma <achalv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2528357 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Dmitry Pervushin <dpervushin@nvidia.com> Reviewed-by: Rahul Jain (SW-TEGRA) <rahuljain@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2575306 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* crypto: vse: fix rng generate return valueHarinarayan Bhatta2021-08-19
| | | | | | | | | | | | | | | | Fix the return value of rng generate() function according to the Linux crypto framework's header file include/crypto/rng.h. Also, return -EAGAIN error code if SE server returns timeout (-13) when trying to acquire RNG1 mutex. Bug 200753491 Change-Id: I29d13f457b15ee8c8d02d01b5c1216b694d70680 Signed-off-by: Harinarayan Bhatta <hbhatta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2574509 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
* dla: kmd: Reflect updates to dla_os_interface.hAnup Mahindre2021-08-16
| | | | | | | | | | | | | | | | | | | | - dla_os_interface in FW was updated to switch to enums - Reflect this update in this copy of the file Jira DLA-3750 JIRA DLA-4908 Bug 3352716 Change-Id: I9132f689fb82a6a89cc88e96033c486023e11a3a Signed-off-by: Anup Mahindre <amahindre@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2559410 (cherry picked from commit cdf7e2222915203bddfbdfd19dc944bb42cffad9) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2572194 Tested-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* nvdla: kmd: Expose full set of limits for task parametersAnup Mahindre2021-08-16
| | | | | | | | | | | | | | | | | | | | | - Certain task parameter limits were not exposed to UMD / Users - Expose these limits and rename to provide consistent KMD interface across linux / qnx Jira DLA-4467 JIRA DLA-4908 Bug 3352716 Change-Id: Ibcf1de5f4d442d9b1f3fefaf71195bc6e58fff5c Signed-off-by: Anup Mahindre <amahindre@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2558254 (cherry picked from commit ccb23fdbb6da2908893cfebcdcd0d219f9b255e0) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2572193 Tested-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* nvdla: kmd: add support for stride signal actionArvind M2021-08-16
| | | | | | | | | | | | | | | | | | | | NVDEV_FENCE_SIGNAL_STRIDE fence action translates to ACTION_INCREMENT_SEM firmware action. Jira DLA-4445 JIRA DLA-4908 Bug 3352716 Change-Id: Idb537ea784614d031f66c570359dbc7dd74374af Signed-off-by: Arvind M <am@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2548309 (cherry picked from commit 55093de292c83d787ee3cb5d74bcb1c89a65e8fc) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2572192 Tested-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* nvdla: kmd: add bypass exec support with submitArvind M2021-08-16
| | | | | | | | | | | | | | | | | | | | | | | | | [1] NVDLA_SUBMIT_FLAGS_BYPASS_EXEC flag allows its clients (UMD or nvdla_kmd_sanity) to bypass execution for a submission. This flag is a property of submission and shall directly apply on all tasks within that submit. [2] With above flag set, it propagates information to firmware through task descriptor and firmware shall be responsible for bypassing the execution. Jira DLA-4443 JIRA DLA-4908 Bug 3352716 Change-Id: I70000ef486905c812fec65f265a378a99844c10a Signed-off-by: Arvind M <am@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2544802 (cherry picked from commit 72da3fde9aa1624722359573d37ec6e73017ca98) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2572191 Tested-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* video: tegra: host: nvdla: Add support for internal buffersAnup Mahindre2021-08-16
| | | | | | | | | | | | | | | | | | | | | | | - Add buffer type field to nvdla_mem_handle - For internal buffers, skip pin and unpin operations and pass the offset as final adress - Also update error handling in nvdla_map_task_memory to match with convention Jira DLA-4376 JIRA DLA-4908 Bug 3352716 Change-Id: I662da30cb9c606d2f67b792f09e026af391c89d1 Signed-off-by: Anup Mahindre <amahindre@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2503708 (cherry picked from commit a2cc66a3f318394e65f6f126bbb7eaa5ccdae3e2) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2572190 Tested-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* video: tegra: host: nvdla: Update KMD-FW handshake mechanismAnup Mahindre2021-08-16
| | | | | | | | | | | | | | | | | | | | Update handshake mechanism to signal interuppt handling complete which avoids race condition. Jira DLA-4201 JIRA DLA-4908 Bug 3352716 Change-Id: I23e24a0c9b95a413e4600e24444244498cc8c414 Signed-off-by: Anup Mahindre <amahindre@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2468166 (cherry picked from commit 0f5e5d6c46cd8160425f4375cec57004a07d81c5) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2572187 Tested-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* EQOS: Enable DMA selection with filtering.Achal Verma2021-08-13
| | | | | | | | | | | | | | | | | This change allows to configure filtering such that specified DMA channel is selected for packets which match filtering criteria. Bug 200743454 Change-Id: If990de0b499c36466258ce7f7cd79e1abe717537 Signed-off-by: Achal Verma <achalv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2575326 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* tegra-hv-vse: Check ptr against NULL,before access.Achal Verma2021-08-13
| | | | | | | | | | | | | | | | | | This fix coverity issue: 9625627 Bug 200741055 Change-Id: I33c686ae973a44fbd7ed86e4b5a36f18683568fd Signed-off-by: Achal Verma <achalv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2527699 GVS: Gerrit_Virtual_Submit Reviewed-by: Dmitry Pervushin <dpervushin@nvidia.com> Reviewed-by: Rahul Jain (SW-TEGRA) <rahuljain@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2575325 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* tegra-dc: Check ptr against NULL before access.Achal Verma2021-08-13
| | | | | | | | | | | | | | | | | | | This fix coverity issue: 2907007 Bug 200741055 Change-Id: Ib79759e5b2dc83bdf77e659a30a0d9f891e2a899 Signed-off-by: Achal Verma <achalv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2528297 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Dmitry Pervushin <dpervushin@nvidia.com> Reviewed-by: Rahul Jain (SW-TEGRA) <rahuljain@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2575322 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
* nct1008: Check return value.Achal Verma2021-08-13
| | | | | | | | | | | | | | | | | | Check return value of sscanf and let the user know if he entered invalid value. This fixes coverity issue : 10055695, 10055711 Bug 200741055 Change-Id: I8a8a8dd1887d9ebc75598848bd40449c11a95a31 Signed-off-by: Achal Verma <achalv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2575318 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* mttcan: Fix uninitialized stack variable.Achal Verma2021-08-13
| | | | | | | | | | | | | | | | | Stack variable should be initialized before use. This fix coverity issue : 20384, 20383, 20382 Bug 200697818 Change-Id: Ibf6eab6c51f2348850bf3139146c513baf8657d0 Signed-off-by: Achal Verma <achalv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2575317 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* tegra-vi: Fix return value check.Achal Verma2021-08-13
| | | | | | | | | | | | | | | This fixes coverity issue: 7112979, 7112981 Bug 200741055 Change-Id: Ie9eb8daa31eaed930889008a5fb20b5d87b86463 Signed-off-by: Achal Verma <achalv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2575311 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* hv-net: add more debug printsAchal Verma2021-08-13
| | | | | | | | | | | | | | | | Bug 3283221 Change-Id: I038834db630c6751f03f8c1114ba9b9181fa2201 Signed-off-by: Achal Verma <achalv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2516881 Reviewed-by: Dmitry Pervushin <dpervushin@nvidia.com> Reviewed-by: Rahul Jain (SW-TEGRA) <rahuljain@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2575307 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
* ahci: Fix potential NULL ptr dereference.Achal Verma2021-08-13
| | | | | | | | | | | | | | | | | | This fixes coverity issue: 20360 Bug 200741055 Change-Id: I6bfdaf58b4d7d03a3c4edde6c229e9c1bc4164f7 Signed-off-by: Achal Verma <achalv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2528439 Tested-by: Rahul Jain (SW-TEGRA) <rahuljain@nvidia.com> Reviewed-by: Rahul Jain (SW-TEGRA) <rahuljain@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2575305 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* tegra-ahci: Fix potential null ptr dereference.Achal Verma2021-08-12
| | | | | | | | | | | | | | | | | | | | | | Condition to check ptr being non-null before use. This fix coverity issue: 9820675 Bug 200741055 Change-Id: I815d79fa899437c0bf24dc96505470b23b7990c1 Signed-off-by: Achal Verma <achalv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2515237 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Dmitry Pervushin <dpervushin@nvidia.com> Reviewed-by: Rahul Jain (SW-TEGRA) <rahuljain@nvidia.com> GVS: Gerrit_Virtual_Submit (cherry picked from commit 940245b31a1569cb4d1227b86a51b2f366714135) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2574549 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* tegra-camera: Fix potential NULL ptr dereferenceAchal Verma2021-08-12
| | | | | | | | | | | | | | | | | | | | This fix coverity issue : 9741833, 9741834 Bug 200741055 Change-Id: I0d6ab11a32fb7f29430adfe28c54a7b2b2a22698 Signed-off-by: Achal Verma <achalv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2571929 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Dmitry Pervushin <dpervushin@nvidia.com> Reviewed-by: Amrita Deshmukh <amritad@nvidia.com> GVS: Gerrit_Virtual_Submit (cherry picked from commit 954e8d421ec24359a64542dd2777267b3d9bdb81) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2574546 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* i2c-ivc: Check return value.Achal Verma2021-08-12
| | | | | | | | | | | | | | | | | | | This fixes the coverity issue: 3008845 Bug 200741055 Change-Id: I57112e37a16aec516a21363038c1e6dc511a7f9c Signed-off-by: Achal Verma <achalv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2527774 GVS: Gerrit_Virtual_Submit Reviewed-by: Dmitry Pervushin <dpervushin@nvidia.com> Reviewed-by: Rahul Jain (SW-TEGRA) <rahuljain@nvidia.com> (cherry picked from commit efb34ee4c7f2f48ac7910a6936f5e2c1fc8b42af) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2574544 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* tegra-uart: Fix redundant expression.Achal Verma2021-08-12
| | | | | | | | | | | | | | | | | | | | This fix coverity issue : 2886348 Bug 200741055 Change-Id: I92e926400cbb3361bc312660e2193bcbec5265e5 Signed-off-by: Achal Verma <achalv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2527642 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Dmitry Pervushin <dpervushin@nvidia.com> Reviewed-by: Rahul Jain (SW-TEGRA) <rahuljain@nvidia.com> GVS: Gerrit_Virtual_Submit (cherry picked from commit 49031c7477ae4c4a59ad9e433e6be2839193c4ea) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2574543 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>