On Tue, Jun 14, 2016 at 09:32:28AM +0800, Yong, Jonathan wrote: > On 06/14/2016 02:56, Bjorn Helgaas wrote: > >I'm also a little confused about how Root Complex Integrated Endpoints > >are supposed to use PTM, since they don't have an upstream bridge. > >Maybe it has to do with an RCRB (Root Complex Register Block, spec > >r3.1, sec 7.2.3)? I don't think Linux really has any support for that > >(yet). > > The spec (7.32.3 PTM Control Register) says: > > For Root Complex Integrated Endpoints, system software must set this > field to the value reported in the Local Clock Granularity field by > the associated PTM Time Source. > > I'm not familiar with RC integrated endpoints either. I'm guessing > whatever device 0, function 0 on the "bus"? Just copy the > granularity value over? I don't know what the answer is, but I don't think device 0, function 0 is it. There's no reason to expect that to be related to an integrated endpoint. I suspect it has to do with the RCRB, but I haven't had a chance to work through that yet. For now, I just made it use zero (unknown) for the effective granularity of integrated endpoints. Bjorn -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html