GPU_KMS still not working CURRENT X220

Andrey Fesenko f0andrey at gmail.com
Thu Jun 28 15:45:59 UTC 2012


I have lenovo thinkpad x220

# uname -a
FreeBSD bsdx220 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r237683: Thu Jun
28 08:41:40 MSK 2012     root at bsdx220:/usr/obj/usr/src/sys/MY_INTEL
amd64

# pciconf -lvb
vgapci0 at pci0:0:2:0:     class=0x030000 card=0x21da17aa chip=0x01268086
rev=0x09 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '2nd Generation Core Processor Family Integrated
Graphics Controller'
    class      = display
    subclass   = VGA
    bar   [10] = type Memory, range 64, base 0xf0000000, size 4194304, enabled
    bar   [18] = type Prefetchable Memory, range 64, base 0xe0000000,
size 268435456, enabled
    bar   [20] = type I/O Port, range 32, base 0x6000, size 64, enabled

After # kldload i915kms screen is black, if # kldunload i915kms panic

# kldstat
Id Refs Address            Size     Name
 1   23 0xffffffff80200000 15d3268  kernel
 2    1 0xffffffff81a12000 a9f3     fuse.ko
 3    1 0xffffffff81a1d000 690a4    i915kms.ko
 4    1 0xffffffff81a87000 1ba2     iicbb.ko
 5    4 0xffffffff81a89000 1dd7     iicbus.ko
 6    1 0xffffffff81a8b000 1cd5     iic.ko
 7    1 0xffffffff81a8d000 32271    drm2.ko


# sysctl -a | grep hw.dri | less
hw.dri.0.name: i915 0x9c
hw.dri.0.vm:
hw.dri.0.clients:
hw.dri.0.vblank:
hw.dri.0.info.i915_capabilities: gen: 6
hw.dri.0.info.i915_gem_objects: 8 objects, 4636672 bytes
hw.dri.0.info.i915_gem_gtt:    0xfffffe00084cca00: p         4KiB 0001
0001 0 0 snooped (LLC) (gtt offset: 00000000, size: 00001000) (p
mappable)
hw.dri.0.info.i915_gem_active: Active:
hw.dri.0.info.i915_gem_flushing: Flushing:
hw.dri.0.info.i915_gem_inactive: Inactive:
hw.dri.0.info.i915_gem_pinned: Pinned:
hw.dri.0.info.i915_gem_deferred_free: Deferred free:
hw.dri.0.info.i915_gem_pageflip: No flip due on pipe A (plane A)
hw.dri.0.info.i915_gem_request: No requests
hw.dri.0.info.i915_gem_seqno: Current sequence (render ring): 0
hw.dri.0.info.i915_gem_fence_regs: Reserved fences = 0
hw.dri.0.info.i915_gem_interrupt: North Display Interrupt enable:
         8c248080
hw.dri.0.info.i915_gem_hws: 0x00000000: 0x00000000 0x00000000
0x00000000 0x00000000
hw.dri.0.info.i915_gem_hws_blt: 0x00000000: 0x00000000 0x00000000
0x00000000 0x00000000
hw.dri.0.info.i915_gem_hws_bsd: 0x00000000: 0x00000000 0x00000000
0x00000000 0x00000000
hw.dri.0.info.i915_ringbuffer_data: 00000000 :  00000000
hw.dri.0.info.i915_ringbuffer_info: Ring render ring:
hw.dri.0.info.i915_bsd_ringbuffer_data: 00000000 :  00000000
hw.dri.0.info.i915_bsd_ringbuffer_info: Ring gen6 bsd ring:
hw.dri.0.info.i915_blt_ringbuffer_data: 00000000 :  00000000
hw.dri.0.info.i915_blt_ringbuffer_info: Ring blt ring:
hw.dri.0.info.i915_error_state: no error state collected
hw.dri.0.info.i915_rstdby_delays: w/ctx: 0, w/o ctx: 0
hw.dri.0.info.i915_cur_delayinfo: GT_PERF_STATUS: 0x00000d83
hw.dri.0.info.i915_delayfreq_table: P00VIDFREQ: 0x00000000 (VID: 0)
hw.dri.0.info.i915_inttoext_table: INTTOEXT01: 0x00000000
hw.dri.0.info.i915_drpc_info: RC information accurate: yes
hw.dri.0.info.i915_emon_status: Not supported
hw.dri.0.info.i915_ring_freq_table: GPU freq (MHz)      Effective CPU freq (MHz)
hw.dri.0.info.i915_gfxec: GFXEC: 0
hw.dri.0.info.i915_fbc_status: FBC disabled: no outputs
hw.dri.0.info.i915_sr_status: self-refresh: disabled
hw.dri.0.info.i915_gem_framebuffer: fbcon size: 1366 x 768, depth 24,
32 bpp, obj 0xfffffe000846da00: p      4128KiB 0041 0000 0 0 uncached
(gtt offset: 00064000, size: 00408000) (p mappable)
hw.dri.0.info.i915_gen6_forcewake_count_info: forcewake count = 0
hw.dri.0.info.i915_swizzle_info: bit6 swizzle for X-tiling = bit9/bit10
hw.dri.0.info.i915_ppgtt_info: GFX_MODE: 0x00000a00
hw.dri.0.info.i915_gem_wired_pages: 1132
hw.dri.0.wedged: 0
hw.dri.0.max_freq: 1300
hw.dri.0.cache_sharing: 0
hw.dri.0.sync_exec: 0
hw.dri.0.fix_mi: 0
hw.dri.0.intr_pf: 0
hw.dri.0.busid: pci:0000:00:02.0
hw.dri.0.modesetting: 1
hw.dri.debug: 2
hw.dri.notyet: 0
hw.dri.vblank_offdelay: 5000
hw.dri.timestamp_precision: 20


# less /var/log/messages
Jun 28 17:32:17 bsdx220 kernel: drmn0: <Intel SandyBridge (M)> on vgapci0
Jun 28 17:32:17 bsdx220 kernel: info: [drm] MSI enabled 1 message(s)
Jun 28 17:32:17 bsdx220 kernel: info: [drm] AGP at 0xe0000000 256MB
Jun 28 17:32:17 bsdx220 kernel: iicbus0: <Philips I2C bus> on iicbb0 addr 0xff
Jun 28 17:32:17 bsdx220 kernel: iic0: <I2C generic I/O> on iicbus0
Jun 28 17:32:17 bsdx220 kernel: iic1: <I2C generic I/O> on iicbus1
Jun 28 17:32:17 bsdx220 kernel: iicbus2: <Philips I2C bus> on iicbb1 addr 0xff
Jun 28 17:32:17 bsdx220 kernel: iic2: <I2C generic I/O> on iicbus2
Jun 28 17:32:17 bsdx220 kernel: iic3: <I2C generic I/O> on iicbus3
Jun 28 17:32:17 bsdx220 kernel: iicbus4: <Philips I2C bus> on iicbb2 addr 0xff
Jun 28 17:32:17 bsdx220 kernel: iic4: <I2C generic I/O> on iicbus4
Jun 28 17:32:17 bsdx220 kernel: iic5: <I2C generic I/O> on iicbus5
Jun 28 17:32:17 bsdx220 kernel: iicbus6: <Philips I2C bus> on iicbb3 addr 0xff
Jun 28 17:32:17 bsdx220 kernel: iic6: <I2C generic I/O> on iicbus6
Jun 28 17:32:17 bsdx220 kernel: iic7: <I2C generic I/O> on iicbus7
Jun 28 17:32:17 bsdx220 kernel: iicbus8: <Philips I2C bus> on iicbb4 addr 0xff
Jun 28 17:32:17 bsdx220 kernel: iic8: <I2C generic I/O> on iicbus8
Jun 28 17:32:17 bsdx220 kernel: iic9: <I2C generic I/O> on iicbus9
Jun 28 17:32:17 bsdx220 kernel: iicbus10: <Philips I2C bus> on iicbb5 addr 0xff
Jun 28 17:32:17 bsdx220 kernel: iic10: <I2C generic I/O> on iicbus10
Jun 28 17:32:17 bsdx220 kernel: iic11: <I2C generic I/O> on iicbus11
Jun 28 17:32:17 bsdx220 kernel: iicbus12: <Philips I2C bus> on iicbb6 addr 0xff
Jun 28 17:32:17 bsdx220 kernel: iic12: <I2C generic I/O> on iicbus12
Jun 28 17:32:17 bsdx220 kernel: iic13: <I2C generic I/O> on iicbus13
Jun 28 17:32:17 bsdx220 kernel: iicbus14: <Philips I2C bus> on iicbb7 addr 0xff
Jun 28 17:32:17 bsdx220 kernel: iic14: <I2C generic I/O> on iicbus14
Jun 28 17:32:17 bsdx220 kernel: iic15: <I2C generic I/O> on iicbus15
Jun 28 17:32:17 bsdx220 kernel: info: [drm] Supports vblank timestamp
caching Rev 1 (10.10.2010).
Jun 28 17:32:17 bsdx220 kernel: info: [drm] Driver supports precise
vblank timestamp query.
Jun 28 17:32:17 bsdx220 kernel: [drm:KMS:pid844:intel_detect_pch]
Found CougarPoint PCH
Jun 28 17:32:17 bsdx220 kernel: [drm:KMS:pid844:init_vbt_defaults] Set
default to SSC at 100MHz
Jun 28 17:32:17 bsdx220 kernel: [drm:KMS:pid844:intel_parse_bios]
Using VBT from OpRegion: $VBT SANDYBRIDGE-M  d
Jun 28 17:32:17 bsdx220 kernel:
[drm:KMS:pid844:parse_general_features] BDB_GENERAL_FEATURES
int_tv_support 0 int_crt_su
pport 1 lvds_use_ssc 0 lvds_ssc_freq 120 display_clock_mode 0
Jun 28 17:32:17 bsdx220 kernel:
[drm:KMS:pid844:parse_general_definitions] crt_ddc_bus_pin: 2
Jun 28 17:32:17 bsdx220 kernel: [drm:KMS:pid844:parse_lfp_panel_data]
Found panel mode in BIOS VBT tables:
Jun 28 17:32:17 bsdx220 kernel:
[drm:KMS:pid844:drm_mode_debug_printmodeline] Modeline 0:"1366x768" 0
75200 1366 1414 1478 1582 768 772 779 792 0x8 0xa
Jun 28 17:32:17 bsdx220 kernel: [drm:KMS:pid844:parse_sdvo_panel_data]
Found SDVO panel mode in BIOS VBT tables:
Jun 28 17:32:17 bsdx220 kernel:
[drm:KMS:pid844:drm_mode_debug_printmodeline] Modeline 0:"1600x1200" 0
162000 1600 1664 1856 2160 1200 1201 1204 1250 0x8 0xa
Jun 28 17:32:17 bsdx220 kernel:
[drm:KMS:pid844:parse_sdvo_device_mapping] No SDVO device info is
found in VBT
Jun 28 17:32:17 bsdx220 kernel: [drm:KMS:pid844:intel_modeset_init] 2
display pipes available.
Jun 28 17:32:17 bsdx220 kernel: [drm:KMS:pid844:intel_crt_init] pch
crt adpa set to 0xf40000
Jun 28 17:32:17 bsdx220 kernel: [drm:KMS:pid844:intel_setup_outputs]
HDMIB 1 PCH_DP_B 1 HDMIC 1 HDMID 1 PCH_DP_C 1 PCH_DP_D 1 LVDS 1
Jun 28 17:32:17 bsdx220 kernel: [drm:KMS:pid844:intel_sdvo_read_byte]
i2c transfer returned 2
Jun 28 17:32:17 bsdx220 kernel: [drm:KMS:pid844:intel_sdvo_init] No
SDVO device found on SDVOB
Jun 28 17:32:17 bsdx220 kernel: [drm:KMS:pid844:intel_dp_i2c_init]
i2c_init DPDDC-B
Jun 28 17:32:17 bsdx220 kernel: [drm:KMS:pid844:intel_dp_aux_ch]
dp_aux_ch timeout status 0x5145003f
Jun 28 17:32:17 bsdx220 kernel: [drm:KMS:pid844:intel_dp_i2c_aux_ch]
aux_ch failed -60


More information about the freebsd-x11 mailing list