#include <stdio.h>
#include <stdlib.h>
#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
struct eu_rdata {
union {
#include "igt_debugfs.h"
#include "../version.h"
#include "config.h"
+#include "intel_reg.h"
/* This file contains a bunch of wrapper functions to directly use gem ioctls.
* Mostly useful to write kernel tests. */
#define GEN6_TS_STRG_VAL 0x7e04
#define GEN6_TS_RDATA 0x7e08
-/* TD_CTL on gen6 is 0x7000, to not break stuff which depends on this... */
-#ifndef GEN6_TD_CTL
-#define GEN6_TD_CTL 0x8000
-#endif
#define GEN6_TD_CTL_MUX_SHIFT 8
#define GEN6_TD_CTL_EXTERNAL_HALT_R0_DEBUG_MATCH (1 << 7)
#define GEN6_TD_CTL_FORCE_EXTERNAL_HALT (1 << 6)
#define GEN6_TS_STRG_VAL 0x7e04
#define GEN6_TS_RDATA 0x7e08
-/* TD_CTL on gen6 is 0x7000, to not break stuff which depends on this... */
-#ifndef GEN6_TD_CTL
-#define GEN6_TD_CTL 0x8000
-#endif
#define GEN6_TD_CTL_MUX_SHIFT 8
#define GEN6_TD_CTL_EXTERNAL_HALT_R0_DEBUG_MATCH (1 << 7)
#define GEN6_TD_CTL_FORCE_EXTERNAL_HALT (1 << 6)
#ifndef GEN7_MEDIA_H
#define GEN7_MEDIA_H
+#include <stdint.h>
+
#define GEN7_SURFACEFORMAT_R32G32B32A32_FLOAT 0x000
#define GEN7_SURFACEFORMAT_R32G32B32A32_SINT 0x001
#define GEN7_SURFACEFORMAT_R32G32B32A32_UINT 0x002
#ifndef GEN8_MEDIA_H
#define GEN8_MEDIA_H
+#include <stdint.h>
+
#define GEN8_SURFACEFORMAT_R32G32B32A32_FLOAT 0x000
#define GEN8_SURFACEFORMAT_R32G32B32A32_SINT 0x001
#define GEN8_SURFACEFORMAT_R32G32B32A32_UINT 0x002
#ifndef IGT_CORE_H
#define IGT_CORE_H
+#include <stdbool.h>
+
bool __igt_fixture(void);
void __igt_fixture_complete(void);
void __igt_fixture_end(void) __attribute__((noreturn));
#include <stdbool.h>
#include <stdint.h>
-#include <stdio.h>
-#include "igt_display.h"
+enum pipe;
int igt_debugfs_open(const char *filename, int mode);
FILE *igt_debugfs_fopen(const char *filename,
#define __IGT_KMS_H__
#include <stdbool.h>
-
+#include <stdint.h>
#include <drm_fourcc.h>
#include <cairo.h>
-#include <igt_display.h>
+#include "igt_display.h"
struct kmstest_connector_config {
drmModeCrtc *crtc;
#include <stdint.h>
#include "intel_bufmgr.h"
#include "igt_core.h"
+#include "intel_reg.h"
#define BATCH_SZ 4096
#define BATCH_RESERVED 16
#ifndef _INTEL_CHIPSET_H
#define _INTEL_CHIPSET_H
-#include <sys/types.h>
#include <pciaccess.h>
struct pci_device *intel_get_pci_device(void);
int intel_gen(uint32_t devid);
extern enum pch_type intel_pch;
+
enum pch_type {
PCH_NONE,
PCH_IBX,
#define INTEL_GPU_TOOLS_H
#include <stdint.h>
-#include <sys/types.h>
#include <pciaccess.h>
-#include "intel_chipset.h"
-#include "intel_reg.h"
-#include "drmtest.h"
-
/* register access helpers from intel_mmio.c */
extern void *mmio;
void intel_get_mmio(struct pci_device *pci_dev);
#include <err.h>
#include <errno.h>
#include "intel_gpu_tools.h"
+#include "intel_reg.h"
#define TIMEOUT_US 500000
#include "intel_gpu_tools.h"
#include "igt_debugfs.h"
+#include "intel_chipset.h"
#define FAKEKEY 0x2468ace0
#include "intel_gpu_tools.h"
#include "i915_drm.h"
+#include "drmtest.h"
uint64_t
intel_get_total_ram_mb(void)
#include <stdlib.h>
#include <sys/types.h>
#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
static struct intel_register_range gen_bwcl_register_map[] = {
{0x00000000, 0x00000fff, INTEL_RANGE_RW},
#include "media_fill.h"
#include "gen7_media.h"
+#include "intel_reg.h"
#include <assert.h>
#include "media_fill.h"
#include "gen8_media.h"
+#include "intel_reg.h"
#include <assert.h>
#include "intel_gpu_tools.h"
#include "rendercopy.h"
#include "gen6_render.h"
+#include "intel_reg.h"
#define ALIGN(x, y) (((x) + (y)-1) & ~((y)-1))
#define VERTEX_SIZE (3*4)
#include "intel_gpu_tools.h"
#include "rendercopy.h"
#include "gen7_render.h"
+#include "intel_reg.h"
#define ALIGN(x, y) (((x) + (y)-1) & ~((y)-1))
#include "intel_gpu_tools.h"
#include "rendercopy.h"
#include "gen8_render.h"
+#include "intel_reg.h"
#include <intel_aub.h>
#include <stdlib.h>
#include "intel_gpu_tools.h"
+#include "drmtest.h"
#define LC_FREQ 2700
#define LC_FREQ_2K (LC_FREQ * 2000)
#include <err.h>
#include <arpa/inet.h>
#include "intel_gpu_tools.h"
+#include "intel_reg.h"
+#include "intel_chipset.h"
+#include "drmtest.h"
static uint32_t devid;
#include <string.h>
#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
+#include "intel_reg.h"
/* XXX PCH only today */
#include "intel_bios.h"
#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
+#include "drmtest.h"
static uint32_t devid = -1;
#include <err.h>
#include <string.h>
#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
static void usage(char *cmdname)
{
#include <err.h>
#include <string.h>
#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
static void usage(char *cmdname)
{
#include "intel_chipset.h"
#include "intel_gpu_tools.h"
#include "instdone.h"
+#include "intel_reg.h"
static uint32_t
print_head(unsigned int reg)
#include <syslog.h>
#include <unistd.h>
#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
bool daemonized;
#include <sys/wait.h>
#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
+#include "intel_reg.h"
#define SAMPLES_PER_SEC 10000
#endif
#include "intel_gpu_tools.h"
#include "instdone.h"
+#include "intel_reg.h"
+#include "intel_chipset.h"
#define FORCEWAKE 0xA18C
#define FORCEWAKE_ACK 0x130090
#include <unistd.h>
#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
#define KB(x) ((x) * 1024)
#define MB(x) ((x) * 1024 * 1024)
#include <string.h>
#include <getopt.h>
#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
+#include "drmtest.h"
typedef enum {
TRANSC_A = 0,
#include "intel_gpu_tools.h"
#include "intel_reg.h"
#include "intel_bios.h"
+#include "intel_chipset.h"
enum lid_status {
LID_UNKNOWN = -1,
#include <err.h>
#include <string.h>
#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
static void usage(char *cmdname)
{
#include <err.h>
#include <string.h>
#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
static void usage(char *cmdname)
{
#include <sys/types.h>
#include "intel_gpu_tools.h"
+#include "drmtest.h"
#define OPREGION_HEADER_OFFSET 0
#define OPREGION_ACPI_OFFSET 0x100
#include <stdlib.h>
#include <string.h>
#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
+#include "intel_reg.h"
int gen;
#include <err.h>
#include <string.h>
#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
static void usage(char *cmdname)
{
#include <err.h>
#include <string.h>
#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
static void usage(char *cmdname)
{
#include <string.h>
#include <stdbool.h>
#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
static uint32_t devid;
static int gen;
#include <err.h>
#include <unistd.h>
#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
+#include "intel_reg.h"
+#include "drmtest.h"
static uint32_t devid = 0;
#include <err.h>
#include <string.h>
#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
static void bit_decode(uint32_t reg)
{
#include <unistd.h>
#include <assert.h>
#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
int main(int argc, char** argv)
{
#include <stdio.h>
#include <err.h>
#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
int main(int argc, char** argv)
{
#include <err.h>
#include "intel_chipset.h"
#include "intel_gpu_tools.h"
+#include "intel_reg.h"
static void
print_clock(const char *name, int clock) {
#include <unistd.h>
#include <sys/io.h>
#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
static uint8_t read_reg(uint32_t reg, bool use_mmio)
{
#include <unistd.h>
#include <sys/io.h>
#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
static void write_reg(uint32_t reg, uint8_t val, bool use_mmio)
{