summaryrefslogtreecommitdiff
path: root/intel/tests/gen7-3d.batch
blob: 328ec88170c586e89f2bc85ebce7f4f350d0e545 (plain)
ofshex dumpascii
0000 00 00 04 69 02 00 0d 79 00 00 00 00 00 00 00 00 00 00 00 00 00 00 18 78 01 00 00 00 00 00 02 61 ...i...y...............x.......a
0020 00 00 00 00 00 00 0b 68 08 00 01 61 01 00 00 00 01 a0 1b 09 01 a0 1b 09 01 00 00 00 01 20 1c 09 .......h...a....................
0040 01 00 00 00 01 20 1c 09 01 00 00 00 01 00 00 00 00 00 23 78 e0 7f 00 00 00 00 21 78 80 7f 00 00 ..................#x......!x....
0060 00 00 30 78 c0 02 00 04 00 00 33 78 00 00 00 04 00 00 31 78 00 00 00 04 00 00 32 78 00 00 00 04 ..0x......3x......1x......2x....
0080 00 00 24 78 41 7f 00 00 00 00 0e 78 01 7f 00 00 00 00 25 78 c1 7e 00 00 05 00 16 78 00 00 00 00 ..$xA......x......%x.~.....x....
00a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 00 11 78 00 00 00 00 00 00 00 00 .......................x........
00c0 00 00 00 00 01 04 00 00 00 04 00 00 00 00 00 00 00 00 29 78 00 00 00 00 05 00 19 78 00 00 00 00 ..................)x.......x....
00e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 00 1b 78 00 00 00 00 00 00 00 00 .......................x........
0100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 27 78 00 00 00 00 02 00 1c 78 00 00 00 00 ..................'x.......x....
0120 00 00 00 00 00 00 00 00 05 00 1a 78 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...........x....................
0140 00 00 00 00 04 00 1d 78 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 28 78 .......x......................(x
0160 00 00 00 00 00 00 26 78 40 7c 00 00 00 00 2b 78 20 7c 00 00 00 00 12 79 08 00 00 00 05 00 15 78 ......&x@|....+x.|.....y.......x
0180 02 00 00 00 00 00 00 00 00 7e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 10 78 00 00 00 00 .........~.................x....
01a0 00 00 00 08 00 00 00 00 00 08 10 00 01 04 00 fe 01 00 1e 78 00 00 00 00 00 00 00 00 02 00 12 78 ...................x...........x
01c0 00 04 15 00 26 00 00 98 e0 ff 03 00 0c 00 1f 78 10 08 60 00 00 00 00 00 00 00 00 00 00 00 00 00 ....&..........x..`.............
01e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0200 00 00 00 00 05 00 13 78 03 14 00 00 00 00 00 22 08 08 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 .......x......."...L............
0220 01 00 14 78 40 08 00 a0 00 00 00 00 00 00 2a 78 40 7c 00 00 00 00 2f 78 20 7c 00 00 00 00 16 79 ...x@.........*x@|..../x.|.....y
0240 08 00 08 00 05 00 17 78 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .......x........................
0260 06 00 20 78 40 01 00 00 00 00 00 08 00 00 00 00 03 04 00 55 06 00 04 00 00 00 00 00 40 02 00 00 ...x@..............U........@...
0280 00 00 0f 78 e0 7b 00 00 02 00 00 7a 00 20 00 00 00 00 00 00 00 00 00 00 02 00 00 7a 01 00 00 00 ...x.{.....z...............z....
02a0 00 00 00 00 00 00 00 00 02 00 00 7a 00 20 00 00 00 00 00 00 00 00 00 00 05 00 05 78 00 00 04 e0 ...........z...............x....
02c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 07 78 00 00 00 00 00 00 00 00 .......................x........
02e0 01 00 06 78 00 00 00 00 00 00 00 00 01 00 04 78 00 00 00 00 00 00 00 00 02 00 00 79 00 00 00 00 ...x...........x...........y....
0300 77 00 13 00 00 00 00 00 03 00 08 78 14 40 00 00 00 30 8b 15 ff 2f 8c 15 00 00 00 00 03 00 09 78 w..........x.@...0.../.........x
0320 00 00 85 02 00 00 23 11 08 00 40 02 00 00 13 11 05 00 00 7b 07 00 00 00 04 00 00 00 00 00 00 00 ......#...@........{............
0340 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 ................
a> 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212

/*
 * drm_sysfs.c - Modifications to drm_sysfs_class.c to support
 *               extra sysfs attribute from DRM. Normal drm_sysfs_class
 *               does not allow adding attributes.
 *
 * Copyright (c) 2004 Jon Smirl <jonsmirl@gmail.com>
 * Copyright (c) 2003-2004 Greg Kroah-Hartman <greg@kroah.com>
 * Copyright (c) 2003-2004 IBM Corp.
 *
 * This file is released under the GPLv2
 *
 */

#include <linux/device.h>
#include <linux/kdev_t.h>
#include <linux/err.h>

#include "drm_core.h"
#include "drmP.h"

#define to_drm_minor(d) container_of(d, struct drm_minor, kdev)

/**
 * drm_sysfs_suspend - DRM class suspend hook
 * @dev: Linux device to suspend
 * @state: power state to enter
 *
 * Just figures out what the actual struct drm_device associated with
 * @dev is and calls its suspend hook, if present.
 */
static int drm_sysfs_suspend(struct device *dev, pm_message_t state)
{
	struct drm_minor *drm_minor = to_drm_minor(dev);
	struct drm_device *drm_dev = drm_minor->dev;

	printk(KERN_ERR "%s\n", __FUNCTION__);

	if (drm_dev->driver->suspend)
		return drm_dev->driver->suspend(drm_dev, state);

	return 0;
}

/**
 * drm_sysfs_resume - DRM class resume hook
 * @dev: Linux device to resume
 *
 * Just figures out what the actual struct drm_device associated with
 * @dev is and calls its resume hook, if present.
 */
static int drm_sysfs_resume(struct device *dev)
{
	struct drm_minor *drm_minor = to_drm_minor(dev);
	struct drm_device *drm_dev = drm_minor->dev;

	if (drm_dev->driver->resume)
		return drm_dev->driver->resume(drm_dev);

	return 0;
}

/* Display the version of drm_core. This doesn't work right in current design */
static ssize_t version_show(struct class *dev, char *buf)
{
	return sprintf(buf, "%s %d.%d.%d %s\n", CORE_NAME, CORE_MAJOR,
		       CORE_MINOR, CORE_PATCHLEVEL, CORE_DATE);
}

static CLASS_ATTR(version, S_IRUGO, version_show, NULL);

/**
 * drm_sysfs_create - create a struct drm_sysfs_class structure
 * @owner: pointer to the module that is to "own" this struct drm_sysfs_class
 * @name: pointer to a string for the name of this class.
 *
 * This is used to create DRM class pointer that can then be used
 * in calls to drm_sysfs_device_add().
 *
 * Note, the pointer created here is to be destroyed when finished by making a
 * call to drm_sysfs_destroy().
 */
struct class *drm_sysfs_create(struct module *owner, char *name)
{
	struct class *class;
	int err;

	class = class_create(owner, name);
	if (IS_ERR(class)) {
		err = PTR_ERR(class);
		goto err_out;
	}

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22))
	class->suspend = drm_sysfs_suspend;
	class->resume = drm_sysfs_resume;
#endif

	err = class_create_file(class, &class_attr_version);
	if (err)
		goto err_out_class;

	return class;

err_out_class:
	class_destroy(class);
err_out:
	return ERR_PTR(err);
}