Re: [Intel-gfx] drm-i915-mst + Ubuntu 14.04 + HP 840

2014-11-17 Thread David Airlie

can you boot with drm.debug=6 and send me a copy?

Dave.

- Original Message -
 From: Michal Nazarewicz min...@mina86.com
 To: David Airlie airl...@redhat.com
 Cc: intel-gfx@lists.freedesktop.org
 Sent: Tuesday, 11 November, 2014 2:54:11 AM
 Subject: Re: drm-i915-mst + Ubuntu 14.04 + HP 840
 
 On Fri, Nov 07 2014, David Airlie airl...@redhat.com wrote:
  Just try a 3.17 based kernel if you can.
 
 I've tried with 3.17.2 and have similar results.  I got no BUGs during
 boot and even:
 
   Console: switching to colour frame buffer device 240x67
   i915 :00:02.0: fb0: inteldrmfb frame buffer device
   i915 :00:02.0: registered panic notifier
 
 but trying to startx gives:
 
   $ fgrep -e intel -e i915 -e '(EE)' /var/log/Xorg.0.log.old
   (==) Matched intel as autoconfigured driver 0
   (==) Matched intel as autoconfigured driver 1
   (II) LoadModule: intel
   (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
   (II) Module intel: vendor=X.Org Foundation
   (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
   (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
   (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
   (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
   (II) intel(0): SNA compiled: xserver-xorg-video-intel 2:2.99.910-0ubuntu1.2
   (Maarten Lankhorst maarten.lankho...@ubuntu.com)
   (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 4400
   (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx, avx2
   (II) intel(0): Creating default Display subsection in Screen section
   (==) intel(0): Depth 24, (--) framebuffer bpp 32
   (==) intel(0): RGB weight 888
   (==) intel(0): Default visual is TrueColor
   (**) intel(0): Framebuffer tiled
   (**) intel(0): Pixmaps tiled
   (**) intel(0): Tear free disabled
   (**) intel(0): Forcing per-crtc-pixmaps? no
   (II) intel(0): Output eDP1 has no monitor section
   (--) intel(0): found backlight control interface intel_backlight (type
   'raw')
   (II) intel(0): Output DP1 has no monitor section
   (II) intel(0): Output HDMI1 has no monitor section
   (II) intel(0): Output DP2 has no monitor section
   (II) intel(0): Output HDMI2 has no monitor section
   (EE) intel(0): No outputs and no modes.
   (II) UnloadModule: intel
   (EE) Screen(s) found, but none have a usable configuration.
   (EE)
   (EE) no screens found(EE)
   (EE)
   (EE) Please also check the log file at /var/log/Xorg.0.log for additional
   information.
   (EE)
   (EE) Server terminated with error (1). Closing log file.
 
 If I disconnect the laptop from docking station X starts, but then
 connecting it back (while X is running) gives [1] and xrandr -q shows
 only eDP1 (i.e. the built in laptop display).
 
 So the bug seems to be present in 3.17 as well.
 
 
 [1] - 8 ---
   i915 :00:02.0: BAR 6: [??? 0x flags 0x2] has bogus alignment
   i915 :00:02.0: BAR 6: [??? 0x flags 0x2] has bogus alignment
   [ cut here ]
   WARNING: CPU: 0 PID: 57 at drivers/gpu/drm/drm_dp_mst_topology.c:1242
   process_single_tx_qlock+0x48c/0x510 [drm_kms_helper]()
   fail
   Modules linked in: xt_NFLOG(E) nfnetlink_log(E) nfnetlink(E) xt_comment(E)
   xt_multiport(E) xt_connmark(E) xt_mark(E) ctr(E) ccm(E) ip6t_REJECT(E)
   nf_log_ipv6(E) xt_hl(E) ip6t_rt(E) ipt_REJECT(E) nf_log_ipv4(E)
   nf_log_common(E) xt_LOG(E) nf_conntrack_ipv6(E) nf_defrag_ipv6(E)
   xt_recent(E) xt_limit(E) xt_tcpudp(E) nf_conntrack_ipv4(E)
   nf_defrag_ipv4(E) xt_addrtype(E) arc4(E) xt_owner(E) hp_wmi(E)
   sparse_keymap(E) xt_conntrack(E) dm_multipath(E) scsi_dh(E)
   ip6table_filter(E) ip6_tables(E) xt_state(E) xt_helper(E) nf_nat_tftp(E)
   intel_rapl(E) nf_conntrack_tftp(E) x86_pkg_temp_thermal(E)
   intel_powerclamp(E) coretemp(E) nf_nat_irc(E) kvm_intel(E) iwlmvm(E)
   nf_conntrack_irc(E) kvm(E) mac80211(E) nf_nat_ftp(E) nf_nat(E)
   nf_conntrack_ftp(E) nf_conntrack(E) iptable_filter(E) ip_tables(E)
   rtsx_pci_ms(E) serio_raw(E) uvcvideo(E) x_tables(E) iwlwifi(E) memstick(E)
   videobuf2_vmalloc(E) cfg80211(E) joydev(E) videobuf2_memops(E)
   videobuf2_core(E) v4l2_common(E) lpc_ich(E) videodev(E) btusb(E)
   hp_accel(E) lis3lv02d(E) input_polldev(E) intel_smartconnect(E)
   hp_wireless(E) tpm_infineon(E) snd_hda_codec_idt(E) mac_hid(E) mei_me(E)
   snd_hda_codec_generic(E) mei(E) snd_hda_codec_hdmi(E) snd_hda_intel(E)
   snd_hda_controller(E) snd_hda_codec(E) snd_hwdep(E) snd_pcm(E)
   snd_seq_midi(E) snd_seq_midi_event(E) snd_rawmidi(E) snd_seq(E)
   snd_seq_device(E) snd_timer(E) snd(E) soundcore(E) parport_pc(E) ppdev(E)
   lp(E) parport(E) bnep(E) rfcomm(E) bluetooth(E) btrfs(E) xor(E)
   raid6_pq(E) dm_crypt(E) dm_mirror(E) dm_region_hash(E) dm_log(E) e1000e(E)
   crct10dif_pclmul(E) crc32_pclmul(E) ghash_clmulni_intel(E) i915(E)
   hid_generic(E) i2c_algo_bit(E) 

[Intel-gfx] drm-i915-mst + Ubuntu 14.04 + HP 840

2014-11-10 Thread Michal Nazarewicz
Hi Dave,

I'm trying to get your drm-i915-mst-v3.16[1] branch applied on top of
Ubuntu[2] kernel[3] to get HP's 840 notebook to handle two DPs port on
the docking station but I'm hitting some problems with your patches.  Or
so I think.

If I start and boot with the laptop connected to the docking station and
the screens, I'm getting BUGs (full dmesg attached) and X refuses to
start at all.  E.g.:

 8 
[   12.493151] [drm:intel_pipe_config_compare] *ERROR* mismatch in 
adjusted_mode.crtc_clock (expected 119000, found 0)
[   12.493171] WARNING: CPU: 0 PID: 61 at 
/home/mpn/code/linux/drivers/gpu/drm/i915/intel_display.c:10221 
check_crtc_state+0x235/0x350 [i915]()

[   12.503272] [drm:intel_pipe_config_compare] *ERROR* mismatch in 
adjusted_mode.crtc_clock (expected 119000, found 0)
[   12.503284] WARNING: CPU: 0 PID: 61 at 
/home/mpn/code/linux/drivers/gpu/drm/i915/intel_display.c:10221 
check_crtc_state+0x235/0x350 [i915]()

[   12.503449] [drm:intel_pipe_config_compare] *ERROR* mismatch in 
adjusted_mode.crtc_clock (expected 119000, found 0)
[   12.503460] WARNING: CPU: 0 PID: 61 at 
/home/mpn/code/linux/drivers/gpu/drm/i915/intel_display.c:10221 
check_crtc_state+0x235/0x350 [i915]()
 8 

If I boot up with laptop disconnected from the docking station and
connect it later on, I'm getting the following errors:

 8 
[  248.615216] i915 :00:02.0: BAR 6: [??? 0x flags 0x2] has bogus 
alignment
[  248.629843] i915 :00:02.0: BAR 6: [??? 0x flags 0x2] has bogus 
alignment
[  248.630412] acpi PNP0501:00: Still not present
[  252.261562] usb 3-1: new SuperSpeed USB device number 5 using xhci_hcd
[  252.277626] usb 3-1: New USB device found, idVendor=0424, idProduct=5534
[  252.277630] usb 3-1: New USB device strings: Mfr=2, Product=3, SerialNumber=0
[  252.277632] usb 3-1: Product: USB5534B
[  252.277633] usb 3-1: Manufacturer: SMSC
[  252.278047] hub 3-1:1.0: USB hub found
[  252.278067] hub 3-1:1.0: 4 ports detected
[  252.517255] usb 2-1: new high-speed USB device number 16 using xhci_hcd
[  252.645530] usb 2-1: New USB device found, idVendor=0424, idProduct=2134
[  252.645534] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  252.645536] usb 2-1: Product: USB2134B
[  252.645538] usb 2-1: Manufacturer: SMSC
[  252.645970] hub 2-1:1.0: USB hub found
[  252.646024] hub 2-1:1.0: 4 ports detected
[  252.693505] i915 :00:02.0: BAR 6: [??? 0x flags 0x2] has bogus 
alignment
[  252.704220] i915 :00:02.0: BAR 6: [??? 0x flags 0x2] has bogus 
alignment
[  252.704478] acpi PNP0501:00: Still not present
 8 

Needless to say, “xrandr -q” did not detect any of the DisplayPort
screens.

I was wondering if you had any idea what could be a problem?  Perhaps
there is a newer version of your patchset that I should try?

[1] http://cgit.freedesktop.org/~airlied/linux/log/?h=drm-i915-mst-v3.16
[2] Which probably wouldn't by your choice of a distro. ;)
[3] 
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-utopic.git;a=shortlog;h=refs/heads/master

-- 
Best regards, _ _
.o. | Liege of Serenely Enlightened Majesty of  o' \,=./ `o
..o | Computer Science,  Michał “mina86” Nazarewicz(o o)
ooo +--m...@google.com--xmpp:min...@jabber.org--ooO--(_)--Ooo--
[0.00] CPU0 microcode updated early to revision 0x1c, date = 2014-07-03
[0.00] Initializing cgroup subsys cpuset
[0.00] Initializing cgroup subsys cpu
[0.00] Initializing cgroup subsys cpuacct
[0.00] Linux version 3.16.0-25-generic (root@mpn-glaptop) (gcc version 
4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #33 SMP Fri Nov 7 18:45:25 CET 2014 (Ubuntu 
3.16.0-25.33-generic 3.16.7)
[0.00] Command line: BOOT_IMAGE=/vmlinuz-3.16.0-25-generic 
root=/dev/mapper/sysvg-root ro elevator=deadline acpi_backlight=vendor text
[0.00] KERNEL supported cpus:
[0.00]   Intel GenuineIntel
[0.00]   AMD AuthenticAMD
[0.00]   Centaur CentaurHauls
[0.00] e820: BIOS-provided physical RAM map:
[0.00] BIOS-e820: [mem 0x-0x0009dbff] usable
[0.00] BIOS-e820: [mem 0x0009dc00-0x0009] reserved
[0.00] BIOS-e820: [mem 0x000e-0x000f] reserved
[0.00] BIOS-e820: [mem 0x0010-0xbab7efff] usable
[0.00] BIOS-e820: [mem 0xbab7f000-0xbbe7efff] reserved
[0.00] BIOS-e820: [mem 0xbbe7f000-0xbbf7efff] ACPI NVS
[0.00] BIOS-e820: [mem 0xbbf7f000-0xbbffefff] ACPI data
[0.00] BIOS-e820: [mem 0xbbfff000-0xbbff] usable
[0.00] BIOS-e820: [mem 

Re: [Intel-gfx] drm-i915-mst + Ubuntu 14.04 + HP 840

2014-11-10 Thread Michal Nazarewicz
On Fri, Nov 07 2014, David Airlie airl...@redhat.com wrote:
 Just try a 3.17 based kernel if you can.

I've tried with 3.17.2 and have similar results.  I got no BUGs during
boot and even:

  Console: switching to colour frame buffer device 240x67
  i915 :00:02.0: fb0: inteldrmfb frame buffer device
  i915 :00:02.0: registered panic notifier

but trying to startx gives:

  $ fgrep -e intel -e i915 -e '(EE)' /var/log/Xorg.0.log.old 
  (==) Matched intel as autoconfigured driver 0
  (==) Matched intel as autoconfigured driver 1
  (II) LoadModule: intel
  (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
  (II) Module intel: vendor=X.Org Foundation
  (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
   E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
  (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
  (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
  (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
  (II) intel(0): SNA compiled: xserver-xorg-video-intel 2:2.99.910-0ubuntu1.2 
(Maarten Lankhorst maarten.lankho...@ubuntu.com)
  (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 4400
  (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx, avx2
  (II) intel(0): Creating default Display subsection in Screen section
  (==) intel(0): Depth 24, (--) framebuffer bpp 32
  (==) intel(0): RGB weight 888
  (==) intel(0): Default visual is TrueColor
  (**) intel(0): Framebuffer tiled
  (**) intel(0): Pixmaps tiled
  (**) intel(0): Tear free disabled
  (**) intel(0): Forcing per-crtc-pixmaps? no
  (II) intel(0): Output eDP1 has no monitor section
  (--) intel(0): found backlight control interface intel_backlight (type 'raw')
  (II) intel(0): Output DP1 has no monitor section
  (II) intel(0): Output HDMI1 has no monitor section
  (II) intel(0): Output DP2 has no monitor section
  (II) intel(0): Output HDMI2 has no monitor section
  (EE) intel(0): No outputs and no modes.
  (II) UnloadModule: intel
  (EE) Screen(s) found, but none have a usable configuration.
  (EE) 
  (EE) no screens found(EE) 
  (EE) 
  (EE) Please also check the log file at /var/log/Xorg.0.log for additional 
information.
  (EE) 
  (EE) Server terminated with error (1). Closing log file.

If I disconnect the laptop from docking station X starts, but then
connecting it back (while X is running) gives [1] and xrandr -q shows
only eDP1 (i.e. the built in laptop display).

So the bug seems to be present in 3.17 as well.


[1] - 8 ---
  i915 :00:02.0: BAR 6: [??? 0x flags 0x2] has bogus alignment
  i915 :00:02.0: BAR 6: [??? 0x flags 0x2] has bogus alignment
  [ cut here ]
  WARNING: CPU: 0 PID: 57 at drivers/gpu/drm/drm_dp_mst_topology.c:1242 
process_single_tx_qlock+0x48c/0x510 [drm_kms_helper]()
  fail
  Modules linked in: xt_NFLOG(E) nfnetlink_log(E) nfnetlink(E) xt_comment(E) 
xt_multiport(E) xt_connmark(E) xt_mark(E) ctr(E) ccm(E) ip6t_REJECT(E) 
nf_log_ipv6(E) xt_hl(E) ip6t_rt(E) ipt_REJECT(E) nf_log_ipv4(E) 
nf_log_common(E) xt_LOG(E) nf_conntrack_ipv6(E) nf_defrag_ipv6(E) xt_recent(E) 
xt_limit(E) xt_tcpudp(E) nf_conntrack_ipv4(E) nf_defrag_ipv4(E) xt_addrtype(E) 
arc4(E) xt_owner(E) hp_wmi(E) sparse_keymap(E) xt_conntrack(E) dm_multipath(E) 
scsi_dh(E) ip6table_filter(E) ip6_tables(E) xt_state(E) xt_helper(E) 
nf_nat_tftp(E) intel_rapl(E) nf_conntrack_tftp(E) x86_pkg_temp_thermal(E) 
intel_powerclamp(E) coretemp(E) nf_nat_irc(E) kvm_intel(E) iwlmvm(E) 
nf_conntrack_irc(E) kvm(E) mac80211(E) nf_nat_ftp(E) nf_nat(E) 
nf_conntrack_ftp(E) nf_conntrack(E) iptable_filter(E) ip_tables(E) 
rtsx_pci_ms(E) serio_raw(E) uvcvideo(E) x_tables(E) iwlwifi(E) memstick(E) 
videobuf2_vmalloc(E) cfg80211(E) joydev(E) videobuf2_memops(E) 
videobuf2_core(E) v4l2_common(E) lpc_ich(E) videodev(E) btusb(E) hp_accel(E) 
lis3lv02d(E) input_polldev(E) intel_smartconnect(E) hp_wireless(E) 
tpm_infineon(E) snd_hda_codec_idt(E) mac_hid(E) mei_me(E) 
snd_hda_codec_generic(E) mei(E) snd_hda_codec_hdmi(E) snd_hda_intel(E) 
snd_hda_controller(E) snd_hda_codec(E) snd_hwdep(E) snd_pcm(E) snd_seq_midi(E) 
snd_seq_midi_event(E) snd_rawmidi(E) snd_seq(E) snd_seq_device(E) snd_timer(E) 
snd(E) soundcore(E) parport_pc(E) ppdev(E) lp(E) parport(E) bnep(E) rfcomm(E) 
bluetooth(E) btrfs(E) xor(E) raid6_pq(E) dm_crypt(E) dm_mirror(E) 
dm_region_hash(E) dm_log(E) e1000e(E) crct10dif_pclmul(E) crc32_pclmul(E) 
ghash_clmulni_intel(E) i915(E) hid_generic(E) i2c_algo_bit(E) ptp(E) 
drm_kms_helper(E) rtsx_pci_sdmmc(E) aesni_intel(E) aes_x86_64(E) usbhid(E) 
lrw(E) gf128mul(E) glue_helper(E) ablk_helper(E) cryptd(E) hid(E) pps_core(E) 
psmouse(E) ahci(E) rtsx_pci(E) libahci(E) drm(E) wmi(E) video(E)
  CPU: 0 PID: 57 Comm: kworker/u16:1 Tainted: GE  3.17.2-mpn+ #1
  Hardware name: Hewlett-Packard HP EliteBook 840 G1/198F, BIOS L71 Ver. 01.11 
04/29/2014
  Workqueue: i915-dp 

Re: [Intel-gfx] drm-i915-mst + Ubuntu 14.04 + HP 840

2014-11-07 Thread David Airlie

Just try a 3.17 based kernel if you can.

and make sure you have a new enough intel userspace driver.

Dave.

- Original Message -
 From: Michal Nazarewicz min...@mina86.com
 To: airl...@redhat.com
 Cc: intel-gfx@lists.freedesktop.org
 Sent: Saturday, 8 November, 2014 5:55:00 AM
 Subject: drm-i915-mst + Ubuntu 14.04 + HP 840
 
 Hi Dave,
 
 I'm trying to get your drm-i915-mst-v3.16[1] branch applied on top of
 Ubuntu[2] kernel[3] to get HP's 840 notebook to handle two DPs port on
 the docking station but I'm hitting some problems with your patches.  Or
 so I think.
 
 If I start and boot with the laptop connected to the docking station and
 the screens, I'm getting BUGs (full dmesg attached) and X refuses to
 start at all.  E.g.:
 
  8 
 [   12.493151] [drm:intel_pipe_config_compare] *ERROR* mismatch in
 adjusted_mode.crtc_clock (expected 119000, found 0)
 [   12.493171] WARNING: CPU: 0 PID: 61 at
 /home/mpn/code/linux/drivers/gpu/drm/i915/intel_display.c:10221
 check_crtc_state+0x235/0x350 [i915]()
 
 [   12.503272] [drm:intel_pipe_config_compare] *ERROR* mismatch in
 adjusted_mode.crtc_clock (expected 119000, found 0)
 [   12.503284] WARNING: CPU: 0 PID: 61 at
 /home/mpn/code/linux/drivers/gpu/drm/i915/intel_display.c:10221
 check_crtc_state+0x235/0x350 [i915]()
 
 [   12.503449] [drm:intel_pipe_config_compare] *ERROR* mismatch in
 adjusted_mode.crtc_clock (expected 119000, found 0)
 [   12.503460] WARNING: CPU: 0 PID: 61 at
 /home/mpn/code/linux/drivers/gpu/drm/i915/intel_display.c:10221
 check_crtc_state+0x235/0x350 [i915]()
  8 
 
 If I boot up with laptop disconnected from the docking station and
 connect it later on, I'm getting the following errors:
 
  8 
 [  248.615216] i915 :00:02.0: BAR 6: [??? 0x flags 0x2] has bogus
 alignment
 [  248.629843] i915 :00:02.0: BAR 6: [??? 0x flags 0x2] has bogus
 alignment
 [  248.630412] acpi PNP0501:00: Still not present
 [  252.261562] usb 3-1: new SuperSpeed USB device number 5 using xhci_hcd
 [  252.277626] usb 3-1: New USB device found, idVendor=0424, idProduct=5534
 [  252.277630] usb 3-1: New USB device strings: Mfr=2, Product=3,
 SerialNumber=0
 [  252.277632] usb 3-1: Product: USB5534B
 [  252.277633] usb 3-1: Manufacturer: SMSC
 [  252.278047] hub 3-1:1.0: USB hub found
 [  252.278067] hub 3-1:1.0: 4 ports detected
 [  252.517255] usb 2-1: new high-speed USB device number 16 using xhci_hcd
 [  252.645530] usb 2-1: New USB device found, idVendor=0424, idProduct=2134
 [  252.645534] usb 2-1: New USB device strings: Mfr=1, Product=2,
 SerialNumber=0
 [  252.645536] usb 2-1: Product: USB2134B
 [  252.645538] usb 2-1: Manufacturer: SMSC
 [  252.645970] hub 2-1:1.0: USB hub found
 [  252.646024] hub 2-1:1.0: 4 ports detected
 [  252.693505] i915 :00:02.0: BAR 6: [??? 0x flags 0x2] has bogus
 alignment
 [  252.704220] i915 :00:02.0: BAR 6: [??? 0x flags 0x2] has bogus
 alignment
 [  252.704478] acpi PNP0501:00: Still not present
  8 
 
 Needless to say, “xrandr -q” did not detect any of the DisplayPort
 screens.
 
 I was wondering if you had any idea what could be a problem?  Perhaps
 there is a newer version of your patchset that I should try?
 
 [1] http://cgit.freedesktop.org/~airlied/linux/log/?h=drm-i915-mst-v3.16
 [2] Which probably wouldn't by your choice of a distro. ;)
 [3]
 http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-utopic.git;a=shortlog;h=refs/heads/master
 
 --
 Best regards, _ _
 .o. | Liege of Serenely Enlightened Majesty of  o' \,=./ `o
 ..o | Computer Science,  Michał “mina86” Nazarewicz(o o)
 ooo +--m...@google.com--xmpp:min...@jabber.org--ooO--(_)--Ooo--
 
___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx