Linux Kernel
3.7.1
|
#include <linux/device.h>
#include <drm/drmP.h>
#include <drm/i915_drm.h>
#include "i915_drv.h"
#include "i915_trace.h"
#include "intel_drv.h"
#include <linux/console.h>
#include <linux/module.h>
#include <drm/drm_crtc_helper.h>
Go to the source code of this file.
Macros | |
#define | INTEL_VGA_DEVICE(id, info) |
#define | INTEL_PCH_DEVICE_ID_MASK 0xff00 |
#define | INTEL_PCH_IBX_DEVICE_ID_TYPE 0x3b00 |
#define | INTEL_PCH_CPT_DEVICE_ID_TYPE 0x1c00 |
#define | INTEL_PCH_PPT_DEVICE_ID_TYPE 0x1e00 |
#define | INTEL_PCH_LPT_DEVICE_ID_TYPE 0x8c00 |
#define | NEEDS_FORCE_WAKE(dev_priv, reg) |
#define | __i915_read(x, y) |
#define | __i915_write(x, y) |
Functions | |
module_param_named (modeset, i915_modeset, int, 0400) | |
MODULE_PARM_DESC (modeset,"Use kernel modesetting [KMS] (0=DRM_I915_KMS from .config, ""1=on, -1=force vga console preference [default])") | |
module_param_named (fbpercrtc, i915_fbpercrtc, int, 0400) | |
module_param_named (panel_ignore_lid, i915_panel_ignore_lid, int, 0600) | |
MODULE_PARM_DESC (panel_ignore_lid,"Override lid status (0=autodetect [default], 1=lid open, ""-1=lid closed)") | |
module_param_named (powersave, i915_powersave, int, 0600) | |
MODULE_PARM_DESC (powersave,"Enable powersavings, fbc, downclocking, etc. (default: true)") | |
module_param_named (semaphores, i915_semaphores, int, 0600) | |
MODULE_PARM_DESC (semaphores,"Use semaphores for inter-ring sync (default: -1 (use per-chip defaults))") | |
module_param_named (i915_enable_rc6, i915_enable_rc6, int, 0400) | |
MODULE_PARM_DESC (i915_enable_rc6,"Enable power-saving render C-state 6. ""Different stages can be selected via bitmask values ""(0 = disable; 1 = enable rc6; 2 = enable deep rc6; 4 = enable deepest rc6). ""For example, 3 would enable rc6 and deep rc6, and 7 would enable everything. ""default: -1 (use per-chip default)") | |
module_param_named (i915_enable_fbc, i915_enable_fbc, int, 0600) | |
MODULE_PARM_DESC (i915_enable_fbc,"Enable frame buffer compression for power savings ""(default: -1 (use per-chip default))") | |
module_param_named (lvds_downclock, i915_lvds_downclock, int, 0400) | |
MODULE_PARM_DESC (lvds_downclock,"Use panel (LVDS/eDP) downclocking for power savings ""(default: false)") | |
module_param_named (lvds_channel_mode, i915_lvds_channel_mode, int, 0600) | |
MODULE_PARM_DESC (lvds_channel_mode,"Specify LVDS channel mode ""(0=probe BIOS [default], 1=single-channel, 2=dual-channel)") | |
module_param_named (lvds_use_ssc, i915_panel_use_ssc, int, 0600) | |
MODULE_PARM_DESC (lvds_use_ssc,"Use Spread Spectrum Clock with panels [LVDS/eDP] ""(default: auto from VBT)") | |
module_param_named (vbt_sdvo_panel_type, i915_vbt_sdvo_panel_type, int, 0600) | |
MODULE_PARM_DESC (vbt_sdvo_panel_type,"Override/Ignore selection of SDVO panel mode in the VBT ""(-2=ignore, -1=auto [default], index in VBT BIOS table)") | |
module_param_named (reset, i915_try_reset, bool, 0600) | |
MODULE_PARM_DESC (reset,"Attempt GPU resets (default: true)") | |
module_param_named (enable_hangcheck, i915_enable_hangcheck, bool, 0644) | |
MODULE_PARM_DESC (enable_hangcheck,"Periodically check GPU activity for detecting hangs. ""WARNING: Disabling this can cause system wide hangs. ""(default: true)") | |
module_param_named (i915_enable_ppgtt, i915_enable_ppgtt, int, 0600) | |
MODULE_PARM_DESC (i915_enable_ppgtt,"Enable PPGTT (default: true)") | |
module_param_named (preliminary_hw_support, i915_preliminary_hw_support, int, 0600) | |
MODULE_PARM_DESC (preliminary_hw_support,"Enable preliminary hardware support. ""Enable Haswell and ValleyView Support. ""(default: false)") | |
void | intel_detect_pch (struct drm_device *dev) |
bool | i915_semaphore_is_enabled (struct drm_device *dev) |
int | i915_suspend (struct drm_device *dev, pm_message_t state) |
int | i915_resume (struct drm_device *dev) |
int | intel_gpu_reset (struct drm_device *dev) |
int | i915_reset (struct drm_device *dev) |
module_init (i915_init) | |
module_exit (i915_exit) | |
MODULE_AUTHOR (DRIVER_AUTHOR) | |
MODULE_DESCRIPTION (DRIVER_DESC) | |
MODULE_LICENSE ("GPL and additional rights") | |
__i915_read (8, b) | |
int | i915_reg_read_ioctl (struct drm_device *dev, void *data, struct drm_file *file) |
Variables | |
unsigned int i915_fbpercrtc | __always_unused = 0 |
int | intel_agp_enabled |
whitelist [] | |
Definition at line 1146 of file i915_drv.c.
#define INTEL_PCH_CPT_DEVICE_ID_TYPE 0x1c00 |
Definition at line 401 of file i915_drv.c.
#define INTEL_PCH_DEVICE_ID_MASK 0xff00 |
Definition at line 399 of file i915_drv.c.
#define INTEL_PCH_IBX_DEVICE_ID_TYPE 0x3b00 |
Definition at line 400 of file i915_drv.c.
#define INTEL_PCH_LPT_DEVICE_ID_TYPE 0x8c00 |
Definition at line 403 of file i915_drv.c.
#define INTEL_PCH_PPT_DEVICE_ID_TYPE 0x1e00 |
Definition at line 402 of file i915_drv.c.
Definition at line 131 of file i915_drv.c.
Definition at line 1063 of file i915_drv.c.
__i915_read | ( | 8 | , |
b | |||
) |
Definition at line 1167 of file i915_drv.c.
int i915_reg_read_ioctl | ( | struct drm_device * | dev, |
void * | data, | ||
struct drm_file * | file | ||
) |
Definition at line 1207 of file i915_drv.c.
int i915_reset | ( | struct drm_device * | dev | ) |
i915_reset - reset chip after a hang : drm device to reset
Reset the chip. Useful if a hang is detected. Returns zero on successful reset or otherwise an error code.
Procedure is fairly simple:
Definition at line 759 of file i915_drv.c.
int i915_resume | ( | struct drm_device * | dev | ) |
Definition at line 570 of file i915_drv.c.
bool i915_semaphore_is_enabled | ( | struct drm_device * | dev | ) |
Definition at line 446 of file i915_drv.c.
int i915_suspend | ( | struct drm_device * | dev, |
pm_message_t | state | ||
) |
Definition at line 499 of file i915_drv.c.
void intel_detect_pch | ( | struct drm_device * | dev | ) |
Definition at line 405 of file i915_drv.c.
int intel_gpu_reset | ( | struct drm_device * | dev | ) |
Definition at line 709 of file i915_drv.c.
MODULE_AUTHOR | ( | DRIVER_AUTHOR | ) |
MODULE_DESCRIPTION | ( | DRIVER_DESC | ) |
module_exit | ( | i915_exit | ) |
module_init | ( | i915_init | ) |
MODULE_LICENSE | ( | "GPL and additional rights" | ) |
module_param_named | ( | modeset | , |
i915_modeset | , | ||
int | , | ||
0400 | |||
) |
module_param_named | ( | fbpercrtc | , |
i915_fbpercrtc | , | ||
int | , | ||
0400 | |||
) |
module_param_named | ( | panel_ignore_lid | , |
i915_panel_ignore_lid | , | ||
int | , | ||
0600 | |||
) |
module_param_named | ( | semaphores | , |
i915_semaphores | , | ||
int | , | ||
0600 | |||
) |
module_param_named | ( | i915_enable_rc6 | , |
i915_enable_rc6 | , | ||
int | , | ||
0400 | |||
) |
module_param_named | ( | i915_enable_fbc | , |
i915_enable_fbc | , | ||
int | , | ||
0600 | |||
) |
module_param_named | ( | lvds_downclock | , |
i915_lvds_downclock | , | ||
int | , | ||
0400 | |||
) |
module_param_named | ( | lvds_channel_mode | , |
i915_lvds_channel_mode | , | ||
int | , | ||
0600 | |||
) |
module_param_named | ( | lvds_use_ssc | , |
i915_panel_use_ssc | , | ||
int | , | ||
0600 | |||
) |
module_param_named | ( | vbt_sdvo_panel_type | , |
i915_vbt_sdvo_panel_type | , | ||
int | , | ||
0600 | |||
) |
module_param_named | ( | enable_hangcheck | , |
i915_enable_hangcheck | , | ||
bool | , | ||
0644 | |||
) |
module_param_named | ( | i915_enable_ppgtt | , |
i915_enable_ppgtt | , | ||
int | , | ||
0600 | |||
) |
module_param_named | ( | preliminary_hw_support | , |
i915_preliminary_hw_support | , | ||
int | , | ||
0600 | |||
) |
MODULE_PARM_DESC | ( | modeset | , |
"Use kernel modesetting (0=DRM_I915_KMS from .config, ""1=on, -1=force vga console preference [default])" | [KMS] | ||
) |
MODULE_PARM_DESC | ( | panel_ignore_lid | , |
"Override lid status (0=autodetect [default], 1=lid open, ""-1=lid closed)" | |||
) |
MODULE_PARM_DESC | ( | powersave | , |
"Enable | powersavings, | ||
fbc | , | ||
downclocking | , | ||
etc.(default:true)" | |||
) |
MODULE_PARM_DESC | ( | semaphores | , |
"Use semaphores for inter-ring sync (default: -1 (use per-chip defaults))" | |||
) |
MODULE_PARM_DESC | ( | i915_enable_rc6 | , |
"Enable power-saving render C-state 6. ""Different stages can be selected via bitmask values ""(0 = disable; 1 = enable rc6; 2 = enable deep rc6; 4 = enable deepest rc6). ""For | example, | ||
3 would enable rc6 and deep | rc6, | ||
and 7 would enable everything.""default:-1(use per-chip default)" | |||
) |
MODULE_PARM_DESC | ( | i915_enable_fbc | , |
"Enable frame buffer compression for power savings ""(default: -1 (use per-chip default))" | |||
) |
MODULE_PARM_DESC | ( | lvds_downclock | , |
"Use panel (LVDS/eDP) downclocking for power savings ""(default: false)" | |||
) |
MODULE_PARM_DESC | ( | lvds_channel_mode | , |
"Specify LVDS channel mode ""(0=probe BIOS [default], 1=single-channel, 2=dual-channel)" | |||
) |
MODULE_PARM_DESC | ( | lvds_use_ssc | , |
"Use Spread Spectrum Clock with panels ""(default: auto from VBT)" | [LVDS/eDP] | ||
) |
MODULE_PARM_DESC | ( | vbt_sdvo_panel_type | , |
"Override/Ignore selection of SDVO panel mode in the VBT ""(-2=ignore, -1=auto [default], index in VBT BIOS table)" | |||
) |
MODULE_PARM_DESC | ( | enable_hangcheck | , |
"Periodically check GPU activity for detecting hangs. ""WARNING: Disabling this can cause system wide hangs. ""(default: true)" | |||
) |
MODULE_PARM_DESC | ( | i915_enable_ppgtt | , |
"Enable PPGTT (default: true)" | |||
) |
MODULE_PARM_DESC | ( | preliminary_hw_support | , |
"Enable preliminary hardware support. ""Enable Haswell and ValleyView Support. ""(default: false)" | |||
) |
unsigned int i915_fbpercrtc __always_unused = 0 |
Definition at line 47 of file i915_drv.c.
int intel_agp_enabled |
Definition at line 17 of file intel-agp.c.
whitelist[] |
Definition at line 1203 of file i915_drv.c.