Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
i915_irq.c File Reference
#include <linux/sysrq.h>
#include <linux/slab.h>
#include <drm/drmP.h>
#include <drm/i915_drm.h>
#include "i915_drv.h"
#include "i915_trace.h"
#include "intel_drv.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define i915_capture_error_state(x)
 

Functions

void i915_enable_pipestat (drm_i915_private_t *dev_priv, int pipe, u32 mask)
 
void i915_disable_pipestat (drm_i915_private_t *dev_priv, int pipe, u32 mask)
 
void intel_enable_asle (struct drm_device *dev)
 
void i915_handle_error (struct drm_device *dev, bool wedged)
 
void i915_hangcheck_elapsed (unsigned long data)
 
void intel_irq_init (struct drm_device *dev)
 

Variables

spinlock_t mchdev_lock
 

Macro Definition Documentation

#define i915_capture_error_state (   x)

Definition at line 1322 of file i915_irq.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 29 of file i915_irq.c.

Function Documentation

void i915_disable_pipestat ( drm_i915_private_t dev_priv,
int  pipe,
u32  mask 
)

Definition at line 74 of file i915_irq.c.

void i915_enable_pipestat ( drm_i915_private_t dev_priv,
int  pipe,
u32  mask 
)

Definition at line 61 of file i915_irq.c.

void i915_handle_error ( struct drm_device dev,
bool  wedged 
)

i915_handle_error - handle an error interrupt : drm device

Do some basic checking of regsiter state at error interrupt time and dump it to the syslog. Also call i915_capture_error_state() to make sure we get a record and make it available in debugfs. Fire a uevent so userspace knows something bad happened (should trigger collection of a ring dump etc.).

Definition at line 1427 of file i915_irq.c.

void i915_hangcheck_elapsed ( unsigned long  data)

This is called when the chip hasn't reported back with completed batchbuffers in a long time. The first time this is called we simply record ACTHD. If ACTHD hasn't changed by the time the hangcheck timer elapses again, we assume the chip is wedged and try to fix it.

Definition at line 1707 of file i915_irq.c.

void intel_enable_asle ( struct drm_device dev)

intel_enable_asle - enable ASLE interrupt for OpRegion

Definition at line 88 of file i915_irq.c.

void intel_irq_init ( struct drm_device dev)

Definition at line 2687 of file i915_irq.c.

Variable Documentation

spinlock_t mchdev_lock