mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-22 18:44:44 +08:00
0a5239985a
Commita5efb4c9a5
("drm/panfrost: Restructure the GEM object creation") moved the drm_mm_insert_node_generic() call to the gem->open() hook, but forgot to update perfcnt accordingly. Patch the perfcnt logic to call panfrost_gem_open/close() where appropriate. Fixes:a5efb4c9a5
("drm/panfrost: Restructure the GEM object creation") Cc: <stable@vger.kernel.org> Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Steven Price <steven.price@arm.com> Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Signed-off-by: Rob Herring <robh@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20191129135908.2439529-6-boris.brezillon@collabora.com
19 lines
692 B
C
19 lines
692 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright 2019 Collabora Ltd */
|
|
#ifndef __PANFROST_PERFCNT_H__
|
|
#define __PANFROST_PERFCNT_H__
|
|
|
|
#include "panfrost_device.h"
|
|
|
|
void panfrost_perfcnt_sample_done(struct panfrost_device *pfdev);
|
|
void panfrost_perfcnt_clean_cache_done(struct panfrost_device *pfdev);
|
|
int panfrost_perfcnt_init(struct panfrost_device *pfdev);
|
|
void panfrost_perfcnt_fini(struct panfrost_device *pfdev);
|
|
void panfrost_perfcnt_close(struct drm_file *file_priv);
|
|
int panfrost_ioctl_perfcnt_enable(struct drm_device *dev, void *data,
|
|
struct drm_file *file_priv);
|
|
int panfrost_ioctl_perfcnt_dump(struct drm_device *dev, void *data,
|
|
struct drm_file *file_priv);
|
|
|
|
#endif
|