Re: Some drmkms success on my laptop

2014-09-13 Thread Rhialto
On Sat 13 Sep 2014 at 02:35:11 +0200, Rhialto wrote:
 pms0 at pckbc1 (aux slot)
 pms0: Synaptics touchpad version 6.5
 pms0: Palm detect, One button click pad
 pckbc1: using irq 12 for aux slot
 wsmouse0 at pms0 mux 0

One button click pad - I guess that explains why X only recognizes a
single button. The kernel mis-recognizes it. This is a regression, since
in the 6.x kernels it still works fine.

It is also nothing to do with DRMKMS, it also happens in the GENERIC
kernel. X uses the VESA driver there (which is sub-optimal since it uses
a resolution of 1024 x 768 instead of 1600 x 900).

The assertion failure I mentioned is in this fragment of code, for
reference, line 2833 of src/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c:

2826 static void
2827 i915_gem_object_move_to_inactive(struct drm_i915_gem_object *obj)
2828 {
2829 struct drm_i915_private *dev_priv = obj-base.dev-dev_private;
2830 struct i915_address_space *vm;
2831 struct i915_vma *vma;
2832 
2833 -- BUG_ON(obj-base.write_domain  ~I915_GEM_GPU_DOMAINS);
2834 BUG_ON(!obj-active);
2835 
2836 list_for_each_entry(vm, dev_priv-vm_list, global_link) {
2837 vma = i915_gem_obj_to_vma(obj, vm);
2838 if (vma  !list_empty(vma-mm_list))
2839 list_move_tail(vma-mm_list, vm-inactive_list);
2840 }

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl-- 'this bath is too hot.'


pgpp_W7q6lZf0.pgp
Description: PGP signature


Some drmkms success on my laptop

2014-09-12 Thread Rhialto
I just tried a live image -current on my laptop, and apart from
annoyances with wedges (there is sd0a in the fstab but it is dk7 on my
system (I had transplanted the sd0a partition to sd0f on a
pre-partitioned stick)), X nearly worked.

Only the left mouse button of my touchpad was not recognized.
Which is a weird failure mode that I have never encountered before.
When attaching an usb mouse (actually it was a PS/2 mouse via a
converter), that one worked fine.

Unfortunately, while trying glxgears -fullscreen, there was a reboot
after a while :-(

NetBSD 7.99.1 (DRMKMS) #0: Sat Sep 13 00:46:49 CEST 2014

rhia...@murthe.falu.nl:/mnt/scratch/scratch2/obj.amd64/sys/arch/amd64/compile/DRMKMS
total memory = 3998 MB
avail memory = 3864 MB

pms0 at pckbc1 (aux slot)
pms0: Synaptics touchpad version 6.5
pms0: Palm detect, One button click pad
pckbc1: using irq 12 for aux slot
wsmouse0 at pms0 mux 0

agp0 at pchb0: G4X-family chipset
agp0: detected 65020k stolen memory
agp0: aperture at 0xc000, size 0x1000
i915drmkms0 at pci0 dev 2 function 0: Intel 82GM45 Integrated Graphics Device 
(rev. 0x07)
drm: Memory usable by graphics device = 512M
drm: Supports vblank timestamp caching Rev 2 (21.10.2013).
drm: Driver supports precise vblank timestamp query.
i915drmkms0: interrupting at ioapic0 pin 16 (i915)
intelfb0 at i915drmkms0
i915drmkms0: info: registered panic notifier
i915drmkms0: unable to map VGA registers: 35
intelfb0: framebuffer at 0x800047063000, size 1600x900, depth 32, stride 
6400
wsdisplay0 at intelfb0 kbdmux 1: console (default, vt100 emulation), using 
wskbd0
wsmux1: connecting to wsdisplay0
Intel 82GM45 Integrated Graphics Device (miscellaneous display, revision 0x07) 
at pci0 dev 2 function 1 not configured

sd0 at scsibus0 target 0 lun 0: , USB Flash Memory, 1.00 disk removable
sd0: fabricating a geometry
sd0: 14793 MB, 14793 cyl, 64 head, 32 sec, 512 bytes/sect x 30297216 sectors
sd0: fabricating a geometry
dk6 at sd0: sd0e
dk6: 24004512 blocks at 6291936, type: msdos
dk7 at sd0: sd0f
dk7: 6291873 blocks at 63, type: ffs

mountroot: trying ffs...
root file system type: ffs
init: copying out path `/sbin/init' 11
drm: GMBUS [i915 gmbus vga] timed out, falling back to bit banging on pin 2
drm: GMBUS [i915 gmbus dpb] timed out, falling back to bit banging on pin 5

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl-- 'this bath is too hot.'


pgp54FZ26c3Yk.pgp
Description: PGP signature