[Bug 190186] [patch] i915 driver: enable opregion handling

2015-03-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190186

John Baldwin j...@freebsd.org changed:

   What|Removed |Added

 Resolution|--- |FIXED
 CC||j...@freebsd.org
 Status|Open|Closed

--- Comment #19 from John Baldwin j...@freebsd.org ---
I think this might be a bit risky to merge to 9, so I've only merged it to 10. 
If a user reports it working fine on 9 then I will be happy to do the merge
then.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to freebsd-bugs-unsubscr...@freebsd.org


[Bug 190186] [patch] i915 driver: enable opregion handling

2015-03-07 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190186

Mark Linimon lini...@freebsd.org changed:

   What|Removed |Added

   Keywords||patch

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to freebsd-bugs-unsubscr...@freebsd.org


[Bug 190186] [patch] i915 driver: enable opregion handling

2014-09-14 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190186

Ed Maste ema...@freebsd.org changed:

   What|Removed |Added

   Keywords||i915

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to freebsd-bugs-unsubscr...@freebsd.org


[Bug 190186] [patch] i915 driver: enable opregion handling

2014-09-09 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190186

jan.kokemuel...@gmail.com changed:

   What|Removed |Added

 CC||jan.kokemuel...@gmail.com

--- Comment #15 from jan.kokemuel...@gmail.com ---
When I test the new i915 code (r270990 snapshot iso or backported to 10-stable,
doesn't matter) on my gen4 Intel GPU (GMA 4500MHD), I'm getting reproducible
interrupt storms from irq16: uhci0 after loading the i915kms module. It does
not matter if I start X or not. This looks very similar to the situation here:

https://lists.freebsd.org/pipermail/freebsd-hackers/2014-June/045369.html

Setting hw.drm.msi=0 in /boot/loader.conf doesn't help. One suspend/resume
cycle makes the problem go away. When I revert commit r270516 (the opregion
changes) the problem goes away, too. Then there is no irq16 at all in the
output of vmstat -i.

Some more info:

$ grep 'irq 16' /var/run/dmesg.boot
vgapci0: VGA-compatible display port 0x1800-0x1807 mem
0xf240-0xf27f,0xd000-0xdfff irq 16 at device 2.0 on pci0
uhci0: Intel 82801I (ICH9) USB controller port 0x1820-0x183f irq 16 at device
26.0 on pci0
sdhci_pci0: JMicron JMB38X SD mem 0xf2300400-0xf23004ff irq 16 at device 0.2
on pci2
pcib2: ACPI PCI-PCI bridge irq 16 at device 28.1 on pci0
pcib6: ACPI PCI-PCI bridge irq 16 at device 28.5 on pci0


pciconf -lvc for vgapci0:

vgapci0@pci0:0:2:0: class=0x03 card=0x213a17aa chip=0x2a428086 rev=0x07
hdr=0x00
vendor = 'Intel Corporation'
device = 'Mobile 4 Series Chipset Integrated Graphics Controller'
class  = display
subclass   = VGA
cap 05[90] = MSI supports 1 message enabled with 1 message
cap 01[d0] = powerspec 3  supports D0 D3  current D0


Should I open a new bug? Can somebody reproduce? Let me know if you need more
logs.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to freebsd-bugs-unsubscr...@freebsd.org


[Bug 190186] [patch] i915 driver: enable opregion handling

2014-09-09 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190186

--- Comment #16 from Ed Maste ema...@freebsd.org ---
Yes - please open a new bug for tracking.

I planned to MFC r270516 for 10.1 but will wait pending the resolution here. 
FWIW the issue is not reproducible on my Thinkpad X220 w/ r270516 MFC'd.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to freebsd-bugs-unsubscr...@freebsd.org


[Bug 190186] [patch] i915 driver: enable opregion handling

2014-09-09 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190186

Ed Maste ema...@freebsd.org changed:

   What|Removed |Added

 Status|In Discussion   |Needs MFC

--- Comment #17 from Ed Maste ema...@freebsd.org ---
Update status: opregion patch is committed to HEAD.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to freebsd-bugs-unsubscr...@freebsd.org


[Bug 190186] [patch] i915 driver: enable opregion handling

2014-09-09 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190186

--- Comment #18 from jan.kokemuel...@gmail.com ---
I've opened a bug concerning the interrupt issue:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193500

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to freebsd-bugs-unsubscr...@freebsd.org


[Bug 190186] [patch] i915 driver: enable opregion handling

2014-08-25 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190186

Ivan Klymenko fi...@ukr.net changed:

   What|Removed |Added

 CC||fi...@ukr.net

--- Comment #13 from Ivan Klymenko fi...@ukr.net ---
(In reply to commit-hook from comment #12)
 A commit references this bug:
 
 Author: adrian
 Date: Mon Aug 25 05:03:10 UTC 2014
 New revision: 270516
 URL: http://svnweb.freebsd.org/changeset/base/270516
 
 Log:
   i915 driver - enable opregion handle; program CADL.
 

Should we expect MFC for STABLE 10?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to freebsd-bugs-unsubscr...@freebsd.org


[Bug 190186] [patch] i915 driver: enable opregion handling

2014-08-25 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190186

--- Comment #14 from Adrian Chadd adr...@freebsd.org ---
Maybe eventually! Someone else can do the MFC though!

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to freebsd-bugs-unsubscr...@freebsd.org


[Bug 190186] [patch] i915 driver: enable opregion handling

2014-08-24 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190186

--- Comment #11 from Adrian Chadd adr...@freebsd.org ---
Sorry for letting this go too long - lemme re-test it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to freebsd-bugs-unsubscr...@freebsd.org


[Bug 190186] [patch] i915 driver: enable opregion handling

2014-08-24 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190186

--- Comment #12 from commit-h...@freebsd.org ---
A commit references this bug:

Author: adrian
Date: Mon Aug 25 05:03:10 UTC 2014
New revision: 270516
URL: http://svnweb.freebsd.org/changeset/base/270516

Log:
  i915 driver - enable opregion handle; program CADL.

  add opregion handling for drm2 - which exposes some ACPI video configuration
  pieces that some Lenovo laptop models use to flesh out which video device
  to speak to.  This enables the brightness control in ACPI to work these
models.

  The CADL bits are also important - it's used to figure out which ACPI
  events to hook the brightness buttons into.  It doesn't yet seem to work
  for me, but it does for the OP.

  Tested:

  * Lenovo X230 (mine)
  * OP: ASUS UX51VZ

  PR:190186
  Submitted by:Henry Hu henry.hu...@gmail.com
  Reviewed by:dumbbell

Changes:
  head/sys/dev/drm2/i915/i915_drv.h
  head/sys/dev/drm2/i915/i915_irq.c
  head/sys/dev/drm2/i915/intel_opregion.c

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to freebsd-bugs-unsubscr...@freebsd.org


[Bug 190186] [patch] i915 driver: enable opregion handling

2014-06-14 Thread bz-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190186

--- Comment #9 from Adrian Chadd adr...@freebsd.org ---
ok lemme sit down and try it again.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to freebsd-bugs-unsubscr...@freebsd.org


[Bug 190186] [patch] i915 driver: enable opregion handling

2014-06-09 Thread bz-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190186

--- Comment #8 from Henry Hu henry.hu...@gmail.com ---
(In reply to Adrian Chadd from comment #7)
 root@sabrina:/home/adrian # acpi_call -p \VIGD
 1
 root@sabrina:/home/adrian # acpi_call -p \_SB.PCI0.VID.DRDY
 1
 
 
 and yes:
 
 acpi_call -p \_SB.PCI0.VID.LCD0._BCM -i x
 
 works, but unpredictably.
 
 I can't go 5, then 99. I have to go 5, 10, 20, 30, 40, .. 99 or going
 straight to 99 doesn't work.

That's strange. Setting hw.acpi.video.lcd0.brightness should be the same as
calling _BCM.
Have you tried calling _BCM without calling VBRC(14) first?

For the brightness levels, only the ones in hw.acpi.video.lcd0.levels are
accepted, but I still have no idea why you can't change the brightness level
directly.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to freebsd-bugs-unsubscr...@freebsd.org


[Bug 190186] [patch] i915 driver: enable opregion handling

2014-06-06 Thread bz-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190186

--- Comment #2 from Adrian Chadd adr...@freebsd.org ---
It didn't do anything for me. Lenovo Thinkpad X230; Ivy Bridge CPU. But yes,
it's now showing up as lcd0.active=1.

If I set hw.acpi.video.lcd0.brightness to something other than 99, then the
value is taken but the brightness doesn't change. If I use the keyboard to
change the LCD  brightness - up or down - it resets the value to 99.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to freebsd-bugs-unsubscr...@freebsd.org


[Bug 190186] [patch] i915 driver: enable opregion handling

2014-06-06 Thread bz-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190186

--- Comment #3 from Adrian Chadd adr...@freebsd.org ---
So if I then do this:

# cd /usr/ports/sysutils/acpi_call  make install clean 
# rehash 
# kldload acpi_ibm 
# kldload acpi_call 
# acpi_call -p '\VBRC' -i 14

.. then if I use sysctl hw.acpi.video.lcd0.brightness=X, things work fine. I
can even set it to 99 and it works fine. The buttons don't work fine - they
only vary the brightness a couple of values around whatever I set it.

So I wonder what else is problematic with this thing! Any ideas/suggestions?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to freebsd-bugs-unsubscr...@freebsd.org


[Bug 190186] [patch] i915 driver: enable opregion handling

2014-06-06 Thread bz-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190186

--- Comment #4 from Henry Hu henry.hu...@gmail.com ---
(In reply to Adrian Chadd from comment #3)
 So if I then do this:
 
 # cd /usr/ports/sysutils/acpi_call  make install clean 
 # rehash 
 # kldload acpi_ibm 
 # kldload acpi_call 
 # acpi_call -p '\VBRC' -i 14
 
 .. then if I use sysctl hw.acpi.video.lcd0.brightness=X, things work fine. I
 can even set it to 99 and it works fine. The buttons don't work fine - they
 only vary the brightness a couple of values around whatever I set it.
 
 So I wonder what else is problematic with this thing! Any ideas/suggestions?

I don't have \VBRC in my ACPI DSDT. Maybe you can post your DSDT and we can
have a look at it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to freebsd-bugs-unsubscr...@freebsd.org


[Bug 190186] [patch] i915 driver: enable opregion handling

2014-06-06 Thread bz-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190186

--- Comment #6 from Henry Hu henry.hu...@gmail.com ---
(In reply to Adrian Chadd from comment #5)
 Absolutely!
 
 http://people.freebsd.org/~adrian/laptop/lenovo_x230/
 
 
 -a

Have you tried 
acpi_call -p \_SB.PCI0.VID.LCD0._BCM -i brightness

And what's the value of
acpi_call -p \VIGD
acpi_call -p \_SB.PCI0.VID.DRDY

VBRC() calls SMI directly. I have no idea what it is doing inside SMI.

_SB.PCI0.VID.LCD0._BCM stores brightness in BRLV and calls
_SB.PCI0.LPC.EC.BRNS() and UCMS(0x16). UCMS() calls SMI directly so I have no
idea what it is doing. If _SB.PCI0.VID.DRDY is true, it calls
_SB.PCI0.VID.AINT(). AINT() triggers an ASLE interrupt to set the brightness
through the driver. I'm not sure what went wrong here.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to freebsd-bugs-unsubscr...@freebsd.org


[Bug 190186] [patch] i915 driver: enable opregion handling

2014-06-06 Thread bz-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190186

--- Comment #7 from Adrian Chadd adr...@freebsd.org ---
root@sabrina:/home/adrian # acpi_call -p \VIGD
1
root@sabrina:/home/adrian # acpi_call -p \_SB.PCI0.VID.DRDY
1


and yes:

acpi_call -p \_SB.PCI0.VID.LCD0._BCM -i x

works, but unpredictably.

I can't go 5, then 99. I have to go 5, 10, 20, 30, 40, .. 99 or going straight
to 99 doesn't work.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to freebsd-bugs-unsubscr...@freebsd.org