[haiku-bugs] Re: [Haiku] #11619: No USB on Poulsbo hardware

  • From: "edglex" <trac@xxxxxxxxxxxx>
  • Date: Sat, 20 Aug 2016 21:18:49 -0000

#11619: No USB on Poulsbo hardware
--------------------------------+----------------------------
   Reporter:  edglex            |      Owner:  mmlr
       Type:  bug               |     Status:  new
   Priority:  normal            |  Milestone:  R1
  Component:  Drivers/USB/EHCI  |    Version:  R1/Development
 Resolution:                    |   Keywords:
 Blocked By:                    |   Blocking:  12749
Has a Patch:  1                 |   Platform:  x86
--------------------------------+----------------------------

Comment (by edglex):

 I've been having another look at this. The ubuntu bug I linked to above
 mentions that the issue was fixed upstream. I found that bug report [1]
 and there is a really good explanation of what is going on. I don't have a
 strong understanding, but it appears the space for the USB controllers PCI
 registers might be getting allocated over the framebuffer space. This is
 why we see:

 {{{
 KERN: add_memory_type_range(458, 0x942c4000, 0x1000, 0)
 KERN: PCI: can't read config for domain 0, bus 0, device 29, function 7,
 offset 255, size 4
 }}}

 The EHCI base register is at 0x942c4000. The giveaway was the PCI error,
 the rest of the EHCI errors are misleading.

 It looks like this is caused by ignoring the e820 reserved ranges when
 doing the MTRR allocation? I think this is probably beyond me to fix
 (without spending a lot of time learning how this works anyway), it would
 be great if someone could have a further look at it.

 [1] https://bugzilla.kernel.org/show_bug.cgi?id=22132

--
Ticket URL: <https://dev.haiku-os.org/ticket/11619#comment:25>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: