mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
init_pbdma_intr_descs HAL ops is used to update the internal values of the struct intr within struct fifo_gk20a. Three kinds of intr_descriptors are filled i.e. device_fatal_0, channel_fatal_0 and restartable_0. Breaking them into separate HALs has the advantage of reusing the h/w headers corresponding to the device_fatal_0 as they are same across all the architectures while those of channel_fatal_0 varies. Another advantage is to now decouple pbdma from filling in values within the fifo_gk20a struct. A new method gk20a_fifo_init_pbdma_descs is constructed that initializes the above intr struct by calling the separate HAL ops for these. Jira NVGPU-2950 Change-Id: I78ddc61a5d9b2088d34259af90f8b85817bf19d9 Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2072741 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
34 lines
1.4 KiB
C
34 lines
1.4 KiB
C
/*
|
|
* Copyright (c) 2016-2019, NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
* to deal in the Software without restriction, including without limitation
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
* DEALINGS IN THE SOFTWARE.
|
|
*/
|
|
|
|
#ifndef NVGPU_PBDMA_GP10B_H
|
|
#define NVGPU_PBDMA_GP10B_H
|
|
|
|
#include <nvgpu/types.h>
|
|
|
|
struct gk20a;
|
|
|
|
u32 gp10b_pbdma_get_signature(struct gk20a *g);
|
|
u32 gp10b_pbdma_channel_fatal_0_intr_descs(void);
|
|
|
|
#endif /* NVGPU_PBDMA_GP10B_H */
|