Re: [PATCH v2 16/28] thunderbolt: Discover preboot PCIe paths the boot firmware established

2019-02-13 Thread Mika Westerberg
On Tue, Feb 12, 2019 at 08:42:49PM +0100, Lukas Wunner wrote: > On Wed, Feb 06, 2019 at 04:17:26PM +0300, Mika Westerberg wrote: > > +static struct tb_port *tb_port_remote(struct tb_port *port) > > +{ > > + struct tb_port *remote = port->remote; > > + > > + /* > > +* If we have a dual link,

Re: [PATCH v2 16/28] thunderbolt: Discover preboot PCIe paths the boot firmware established

2019-02-12 Thread Lukas Wunner
On Wed, Feb 06, 2019 at 04:17:26PM +0300, Mika Westerberg wrote: > +static struct tb_port *tb_port_remote(struct tb_port *port) > +{ > + struct tb_port *remote = port->remote; > + > + /* > + * If we have a dual link, the remote is available through the > + * primary link. > +

Re: [PATCH v2 16/28] thunderbolt: Discover preboot PCIe paths the boot firmware established

2019-02-12 Thread Mika Westerberg
On Tue, Feb 12, 2019 at 06:49:42PM +0100, Lukas Wunner wrote: > On Wed, Feb 06, 2019 at 04:17:26PM +0300, Mika Westerberg wrote: > > /* dword 0 */ > > hop.next_hop = path->hops[i].next_hop_index; > > hop.out_port = path->hops[i].out_port->port; > > - /*

Re: [PATCH v2 16/28] thunderbolt: Discover preboot PCIe paths the boot firmware established

2019-02-12 Thread Lukas Wunner
On Wed, Feb 06, 2019 at 04:17:26PM +0300, Mika Westerberg wrote: > /* dword 0 */ > hop.next_hop = path->hops[i].next_hop_index; > hop.out_port = path->hops[i].out_port->port; > - /* TODO: figure out why these are good values */ > - h

[PATCH v2 16/28] thunderbolt: Discover preboot PCIe paths the boot firmware established

2019-02-06 Thread Mika Westerberg
In Apple Macs the boot firmware (EFI) connects all devices automatically when the system is started, before it hands over to the OS. Instead of ignoring we discover all those PCIe tunnels and record them using our internal structures, just like we do when a device is connected after the OS is alrea