mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 11:04:51 +03:00
gpu: nvgpu: remove use of struct fence type.
struct fence and fence* APIs have changed to struct dma_fence and dma_fence* respectively. This patch makes the required changes that avoids using the struct fence type to prevent making API changes in nvgpu. Bug 200417423 Change-Id: I566de58a3659cbc2495670136dc2fc65862b46e7 Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1754164 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
74d786dd13
commit
1bc1ff2e92
@@ -58,8 +58,8 @@ int nvgpu_os_fence_sema_wait_gen_cmd(struct nvgpu_os_fence *s,
|
||||
}
|
||||
|
||||
for (i = 0; i < num_wait_cmds; i++) {
|
||||
struct fence *f = sync_fence->cbs[i].sync_pt;
|
||||
struct sync_pt *pt = sync_pt_from_fence(f);
|
||||
struct sync_pt *pt = sync_pt_from_fence(
|
||||
sync_fence->cbs[i].sync_pt);
|
||||
|
||||
sema = gk20a_sync_pt_sema(pt);
|
||||
gk20a_channel_gen_sema_wait_cmd(c, sema, wait_cmd,
|
||||
|
||||
@@ -70,8 +70,8 @@ int nvgpu_os_fence_syncpt_wait_gen_cmd(struct nvgpu_os_fence *s,
|
||||
}
|
||||
|
||||
for (i = 0; i < sync_fence->num_fences; i++) {
|
||||
struct fence *f = sync_fence->cbs[i].sync_pt;
|
||||
struct sync_pt *pt = sync_pt_from_fence(f);
|
||||
struct sync_pt *pt = sync_pt_from_fence(
|
||||
sync_fence->cbs[i].sync_pt);
|
||||
u32 wait_id = nvgpu_nvhost_sync_pt_id(pt);
|
||||
u32 wait_value = nvgpu_nvhost_sync_pt_thresh(pt);
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <linux/file.h>
|
||||
#include <linux/fs.h>
|
||||
#include <linux/hrtimer.h>
|
||||
@@ -324,8 +323,7 @@ struct sync_fence *gk20a_sync_fence_fdget(int fd)
|
||||
return NULL;
|
||||
|
||||
for (i = 0; i < fence->num_fences; i++) {
|
||||
struct fence *pt = fence->cbs[i].sync_pt;
|
||||
struct sync_pt *spt = sync_pt_from_fence(pt);
|
||||
struct sync_pt *spt = sync_pt_from_fence(fence->cbs[i].sync_pt);
|
||||
struct sync_timeline *t;
|
||||
|
||||
if (spt == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user