Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
75445a4d
Commit
75445a4d
authored
Nov 08, 2015
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/nvif: split out perfmon interface definitions
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
671e9696
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
75 additions
and
77 deletions
+75
-77
drivers/gpu/drm/nouveau/include/nvif/class.h
drivers/gpu/drm/nouveau/include/nvif/class.h
+2
-77
drivers/gpu/drm/nouveau/include/nvif/if0002.h
drivers/gpu/drm/nouveau/include/nvif/if0002.h
+38
-0
drivers/gpu/drm/nouveau/include/nvif/if0003.h
drivers/gpu/drm/nouveau/include/nvif/if0003.h
+33
-0
drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c
drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c
+2
-0
No files found.
drivers/gpu/drm/nouveau/include/nvif/class.h
View file @
75445a4d
...
...
@@ -3,8 +3,8 @@
/* these class numbers are made up by us, and not nvidia-assigned */
#define NVIF_CLASS_CONTROL
/* if0001.h */
-1
#define NVIF_CLASS_PERFMON
-2
#define NVIF_CLASS_PERFDOM
-3
#define NVIF_CLASS_PERFMON
/* if0002.h */
-2
#define NVIF_CLASS_PERFDOM
/* if0003.h */
-3
#define NVIF_CLASS_SW_NV04
/* if0004.h */
-4
#define NVIF_CLASS_SW_NV10
/* if0005.h */
-5
#define NVIF_CLASS_SW_NV50
/* if0005.h */
-6
...
...
@@ -266,79 +266,4 @@ struct gf119_dma_v0 {
__u8
kind
;
__u8
pad03
[
5
];
};
/*******************************************************************************
* perfmon
******************************************************************************/
#define NVIF_PERFMON_V0_QUERY_DOMAIN 0x00
#define NVIF_PERFMON_V0_QUERY_SIGNAL 0x01
#define NVIF_PERFMON_V0_QUERY_SOURCE 0x02
struct
nvif_perfmon_query_domain_v0
{
__u8
version
;
__u8
id
;
__u8
counter_nr
;
__u8
iter
;
__u16
signal_nr
;
__u8
pad05
[
2
];
char
name
[
64
];
};
struct
nvif_perfmon_query_signal_v0
{
__u8
version
;
__u8
domain
;
__u16
iter
;
__u8
signal
;
__u8
source_nr
;
__u8
pad05
[
2
];
char
name
[
64
];
};
struct
nvif_perfmon_query_source_v0
{
__u8
version
;
__u8
domain
;
__u8
signal
;
__u8
iter
;
__u8
pad04
[
4
];
__u32
source
;
__u32
mask
;
char
name
[
64
];
};
/*******************************************************************************
* perfdom
******************************************************************************/
struct
nvif_perfdom_v0
{
__u8
version
;
__u8
domain
;
__u8
mode
;
__u8
pad03
[
1
];
struct
{
__u8
signal
[
4
];
__u64
source
[
4
][
8
];
__u16
logic_op
;
}
ctr
[
4
];
};
#define NVIF_PERFDOM_V0_INIT 0x00
#define NVIF_PERFDOM_V0_SAMPLE 0x01
#define NVIF_PERFDOM_V0_READ 0x02
struct
nvif_perfdom_init
{
};
struct
nvif_perfdom_sample
{
};
struct
nvif_perfdom_read_v0
{
__u8
version
;
__u8
pad01
[
7
];
__u32
ctr
[
4
];
__u32
clk
;
__u8
pad04
[
4
];
};
#endif
drivers/gpu/drm/nouveau/include/nvif/if0002.h
0 → 100644
View file @
75445a4d
#ifndef __NVIF_IF0002_H__
#define __NVIF_IF0002_H__
#define NVIF_PERFMON_V0_QUERY_DOMAIN 0x00
#define NVIF_PERFMON_V0_QUERY_SIGNAL 0x01
#define NVIF_PERFMON_V0_QUERY_SOURCE 0x02
struct
nvif_perfmon_query_domain_v0
{
__u8
version
;
__u8
id
;
__u8
counter_nr
;
__u8
iter
;
__u16
signal_nr
;
__u8
pad05
[
2
];
char
name
[
64
];
};
struct
nvif_perfmon_query_signal_v0
{
__u8
version
;
__u8
domain
;
__u16
iter
;
__u8
signal
;
__u8
source_nr
;
__u8
pad05
[
2
];
char
name
[
64
];
};
struct
nvif_perfmon_query_source_v0
{
__u8
version
;
__u8
domain
;
__u8
signal
;
__u8
iter
;
__u8
pad04
[
4
];
__u32
source
;
__u32
mask
;
char
name
[
64
];
};
#endif
drivers/gpu/drm/nouveau/include/nvif/if0003.h
0 → 100644
View file @
75445a4d
#ifndef __NVIF_IF0003_H__
#define __NVIF_IF0003_H__
struct
nvif_perfdom_v0
{
__u8
version
;
__u8
domain
;
__u8
mode
;
__u8
pad03
[
1
];
struct
{
__u8
signal
[
4
];
__u64
source
[
4
][
8
];
__u16
logic_op
;
}
ctr
[
4
];
};
#define NVIF_PERFDOM_V0_INIT 0x00
#define NVIF_PERFDOM_V0_SAMPLE 0x01
#define NVIF_PERFDOM_V0_READ 0x02
struct
nvif_perfdom_init
{
};
struct
nvif_perfdom_sample
{
};
struct
nvif_perfdom_read_v0
{
__u8
version
;
__u8
pad01
[
7
];
__u32
ctr
[
4
];
__u32
clk
;
__u8
pad04
[
4
];
};
#endif
drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c
View file @
75445a4d
...
...
@@ -27,6 +27,8 @@
#include <core/option.h>
#include <nvif/class.h>
#include <nvif/if0002.h>
#include <nvif/if0003.h>
#include <nvif/ioctl.h>
#include <nvif/unpack.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment