Re: GPU_KMS still not working CURRENT X220

2012-06-29 Thread Erich Dollansky
Hi,

On Thursday, June 28, 2012 11:15:54 PM Kevin Oberman wrote:
> On Thu, Jun 28, 2012 at 8:45 AM, Andrey Fesenko  wrote:
> > 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@bsdx220:/usr/obj/usr/src/sys/MY_INTEL
> > amd64

it works for me with this:

FreeBSD X220.ovitrap.com 10.0-CURRENT FreeBSD 10.0-CURRENT #7: Thu Jun 28 
09:09:16 WIT 2012

> >
> > # pciconf -lvb
> > vgapci0@pci0:0:2:0: class=0x03 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 0xf000, size 4194304, 
> > enabled
> >bar   [18] = type Prefetchable Memory, range 64, base 0xe000,
> > 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
> 
> Don't do this. It has been clearly stated that i915kms my not be
> unloaded and that attempting to unload it WILL panic the system.
> 
> Also, don't load i945kms. This WILL lock up the system with a blank screen.
> 
it works for me. I use this kind of script to start X:

sudo kldload i915kms
sudo kldload acpi_call
sudo chmod 666 /dev/acpi
startx

> The modules required are autoloaded during Xorg initialization. Just
> make absolutely sure that you have the latest version of
> xf-video-intel. (If you installed a rather early version of the KMS
> code, it is possible that you have two xf-video.intel* ports in your
> tree, thought I don't expect this is the case.

This could be the real reason why it fails

But I must say that it hangs on rare occasions. It might has to do with playing 
with the mouse or the keyboard during the start-up phase of X. At least, I did 
not notice a freeze when I did not play around with them during the start of X.

Erich
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: GPU_KMS still not working CURRENT X220

2012-06-29 Thread Andrey Fesenko
On Thu, Jun 28, 2012 at 8:15 PM, Kevin Oberman  wrote:
> On Thu, Jun 28, 2012 at 8:45 AM, Andrey Fesenko  wrote:
>> 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@bsdx220:/usr/obj/usr/src/sys/MY_INTEL
>> amd64
>>
>> # pciconf -lvb
>> vgapci0@pci0:0:2:0:     class=0x03 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 0xf000, size 4194304, enabled
>>    bar   [18] = type Prefetchable Memory, range 64, base 0xe000,
>> 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
>
> Don't do this. It has been clearly stated that i915kms my not be
> unloaded and that attempting to unload it WILL panic the system.
>
> Also, don't load i945kms. This WILL lock up the system with a blank screen.
>
> The modules required are autoloaded during Xorg initialization. Just
> make absolutely sure that you have the latest version of
> xf-video-intel. (If you installed a rather early version of the KMS
> code, it is possible that you have two xf-video.intel* ports in your
> tree, thought I don't expect this is the case.
> --
> R. Kevin Oberman, Network Engineer
> E-mail: kob6...@gmail.com

Thank you so much, it worked :)
necessary as it is written in the wiki
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: GPU_KMS still not working CURRENT X220

2012-06-28 Thread Kevin Oberman
On Thu, Jun 28, 2012 at 8:45 AM, Andrey Fesenko  wrote:
> 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@bsdx220:/usr/obj/usr/src/sys/MY_INTEL
> amd64
>
> # pciconf -lvb
> vgapci0@pci0:0:2:0:     class=0x03 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 0xf000, size 4194304, enabled
>    bar   [18] = type Prefetchable Memory, range 64, base 0xe000,
> 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

Don't do this. It has been clearly stated that i915kms my not be
unloaded and that attempting to unload it WILL panic the system.

Also, don't load i945kms. This WILL lock up the system with a blank screen.

The modules required are autoloaded during Xorg initialization. Just
make absolutely sure that you have the latest version of
xf-video-intel. (If you installed a rather early version of the KMS
code, it is possible that you have two xf-video.intel* ports in your
tree, thought I don't expect this is the case.
-- 
R. Kevin Oberman, Network Engineer
E-mail: kob6...@gmail.com
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


GPU_KMS still not working CURRENT X220

2012-06-28 Thread Andrey Fesenko
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@bsdx220:/usr/obj/usr/src/sys/MY_INTEL
amd64

# pciconf -lvb
vgapci0@pci0:0:2:0: class=0x03 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 0xf000, size 4194304, enabled
bar   [18] = type Prefetchable Memory, range 64, base 0xe000,
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 AddressSize Name
 1   23 0x8020 15d3268  kernel
 21 0x81a12000 a9f3 fuse.ko
 31 0x81a1d000 690a4i915kms.ko
 41 0x81a87000 1ba2 iicbb.ko
 54 0x81a89000 1dd7 iicbus.ko
 61 0x81a8b000 1cd5 iic.ko
 71 0x81a8d000 32271drm2.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:0xfe00084cca00: p 4KiB 0001
0001 0 0 snooped (LLC) (gtt offset: , size: 1000) (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: 0x: 0x 0x
0x 0x
hw.dri.0.info.i915_gem_hws_blt: 0x: 0x 0x
0x 0x
hw.dri.0.info.i915_gem_hws_bsd: 0x: 0x 0x
0x 0x
hw.dri.0.info.i915_ringbuffer_data:  :  
hw.dri.0.info.i915_ringbuffer_info: Ring render ring:
hw.dri.0.info.i915_bsd_ringbuffer_data:  :  
hw.dri.0.info.i915_bsd_ringbuffer_info: Ring gen6 bsd ring:
hw.dri.0.info.i915_blt_ringbuffer_data:  :  
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: 0x0d83
hw.dri.0.info.i915_delayfreq_table: P00VIDFREQ: 0x (VID: 0)
hw.dri.0.info.i915_inttoext_table: INTTOEXT01: 0x
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 0xfe000846da00: p  4128KiB 0041  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: 0x0a00
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::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:  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 0xe000 256MB
Jun 28 17:32:17 bsdx220 kernel: iicbus0:  on iicbb0 addr 0xff
Jun 28 17:32:17 bsdx220 kernel: iic0:  on iicbus0
Jun 28 17:32:17 bsdx220 kernel: iic1:  on iicbus1
Jun 28 17:32:17 bsdx220 kernel: iicbus2:  on iicbb1 addr 0xff
Jun 28 17:32:17 bsdx220 kernel: iic2:  on iicbus2
Jun 28 17:32:17 bsdx220 kernel: iic3:  on iicbus3
Jun 28 17:32:17 bsdx220 kernel: iicbus4:  on iicbb2 addr 0xff
Jun 28 17:32:17 bsdx220 kernel: iic4:  on iicbus4
Jun 28 17:32:17 bsdx220 kernel: iic5:  on iicbus5
Jun 28 17:32:17 bsdx220 kernel: iicbus6:  on iicbb3 addr 0xff
Jun 28 17:32:17 bsdx220 kernel: iic6:  on iicbus6
Jun 28 17:32:17 bsdx220 kernel: iic7:  on iicbus7
Jun 28 17:32:17 bsdx220 kernel: iicbus8:  on iicbb4 addr 0xff
Jun 28 17:32:17 bsdx220 kernel: iic8:  on iicbus8
Jun 28 17:32:17 bsdx220 kernel: iic9:  on iicbus9
Jun 28 17:32:17