Re: [Linuxptp-users] issue with NetXtreme II BCM57810
- Original Message - > From: "Luke Bigum" > To: "linuxptp-users" > Sent: Tuesday, 4 October, 2016 15:18:05 > Subject: Re: [Linuxptp-users] issue with NetXtreme II BCM57810 > - Original Message - >> From: "Richard Cochran" >> To: "Luke Bigum" >> Cc: "linuxptp-users" >> Sent: Tuesday, 4 October, 2016 14:28:39 >> Subject: Re: [Linuxptp-users] issue with NetXtreme II BCM57810 > >> I don't have this card nor was I involved in reviewing the driver. >> The file, drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c, contains >> the PHC stuff. >> >> Looking at bnx2x_init_cyclecounter(), they have mult = shift = 1. >> That implies that >> >> nanoseconds = ticks / 2 >> >> and that their internal clock runs at 2 GHz! >> >> Maybe they meant to have shift=0, or maybe your card has a (model >> specific 1 GHz clock). >> >> Anyhow, the testptp result is clear enough. You should take this up >> with the driver maintainers. >> >> Thanks, >> Richard > > Thanks Richard, that's helpful. I'll track it down. For the Internet record, Qlogic have fixed this in version 7.14.05 of their 10Gig driver pack. I've compiled this bnx2x driver against a 3.18 kernel and the PHC advances at regular speed. The source and some binaries are available here: http://driverdownloads.qlogic.com/QLogicDriverDownloads_UI/SearchByProduct.aspx?ProductCategory=322&Product=1249&Os=65 I don't know when they will be added to the mainline kernel. -Luke --- LMAX Exchange, Yellow Building, 1A Nicholas Road, London W11 4AN http://www.LMAX.com/ Recognised by the most prestigious business and technology awards 2016 Best Trading & Execution, HFM US Technology Awards 2016, 2015, 2014, 2013 Best FX Trading Venue - ECN/MTF, WSL Institutional Trading Awards 2015 Winner, Deloitte UK Technology Fast 50 2015, 2014, 2013, One of the UK's fastest growing technology firms, The Sunday Times Tech Track 100 2015 Winner, Deloitte EMEA Technology Fast 500 2015, 2014, 2013 Best Margin Sector Platform, Profit & Loss Readers' Choice Awards --- FX and CFDs are leveraged products that can result in losses exceeding your deposit. They are not suitable for everyone so please ensure you fully understand the risks involved. This message and its attachments are confidential, may not be disclosed or used by any person other than the addressee and are intended only for the named recipient(s). This message is not intended for any recipient(s) who based on their nationality, place of business, domicile or for any other reason, is/are subject to local laws or regulations which prohibit the provision of such products and services. This message is subject to the following terms (http://lmax.com/pdf/general-disclaimers.pdf), if you cannot access these, please notify us by replying to this email and we will send you the terms. If you are not the intended recipient, please notify the sender immediately and delete any copies of this message. LMAX Exchange is the trading name of LMAX Limited. LMAX Limited operates a multilateral trading facility. LMAX Limited is authorised and regulated by the Financial Conduct Authority (firm registration number 509778) and is a company registered in England and Wales (number 6505809). LMAX Hong Kong Limited is a wholly-owned subsidiary of LMAX Limited. LMAX Hong Kong is licensed by the Securities and Futures Commission in Hong Kong to conduct Type 3 (leveraged foreign exchange trading) regulated activity with CE Number BDV088. -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users
Re: [Linuxptp-users] issue with NetXtreme II BCM57810
- Original Message - > From: "Richard Cochran" > To: "Luke Bigum" > Cc: "linuxptp-users" > Sent: Tuesday, 4 October, 2016 14:28:39 > Subject: Re: [Linuxptp-users] issue with NetXtreme II BCM57810 > I don't have this card nor was I involved in reviewing the driver. > The file, drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c, contains > the PHC stuff. > > Looking at bnx2x_init_cyclecounter(), they have mult = shift = 1. > That implies that > > nanoseconds = ticks / 2 > > and that their internal clock runs at 2 GHz! > > Maybe they meant to have shift=0, or maybe your card has a (model > specific 1 GHz clock). > > Anyhow, the testptp result is clear enough. You should take this up > with the driver maintainers. > > Thanks, > Richard Thanks Richard, that's helpful. I'll track it down. --- LMAX Exchange, Yellow Building, 1A Nicholas Road, London W11 4AN http://www.LMAX.com/ Recognised by the most prestigious business and technology awards 2016 Best Trading & Execution, HFM US Technology Awards 2016, 2015, 2014, 2013 Best FX Trading Venue - ECN/MTF, WSL Institutional Trading Awards 2015 Winner, Deloitte UK Technology Fast 50 2015, 2014, 2013, One of the UK's fastest growing technology firms, The Sunday Times Tech Track 100 2015 Winner, Deloitte EMEA Technology Fast 500 2015, 2014, 2013 Best Margin Sector Platform, Profit & Loss Readers' Choice Awards --- FX and CFDs are leveraged products that can result in losses exceeding your deposit. They are not suitable for everyone so please ensure you fully understand the risks involved. This message and its attachments are confidential, may not be disclosed or used by any person other than the addressee and are intended only for the named recipient(s). This message is not intended for any recipient(s) who based on their nationality, place of business, domicile or for any other reason, is/are subject to local laws or regulations which prohibit the provision of such products and services. This message is subject to the following terms (http://lmax.com/pdf/general-disclaimers.pdf), if you cannot access these, please notify us by replying to this email and we will send you the terms. If you are not the intended recipient, please notify the sender immediately and delete any copies of this message. LMAX Exchange is the trading name of LMAX Limited. LMAX Limited operates a multilateral trading facility. LMAX Limited is authorised and regulated by the Financial Conduct Authority (firm registration number 509778) and is a company registered in England and Wales (number 6505809). LMAX Hong Kong Limited is a wholly-owned subsidiary of LMAX Limited. LMAX Hong Kong is licensed by the Securities and Futures Commission in Hong Kong to conduct Type 3 (leveraged foreign exchange trading) regulated activity with CE Number BDV088. -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users
Re: [Linuxptp-users] issue with NetXtreme II BCM57810
On Tue, Oct 04, 2016 at 10:49:46AM +, Luke Bigum wrote: > If I do some simple tests with linux/Documentation/ptp/testptp.c, it > appears the PHC is spinning at about half the Hz it should be doing > (it takes roughly 2 real seconds for the PHC to advance 1 > second). While it is an anecdotal observation, half as fast seems > rather uniform a problem, like there's a /2 somewhere gone wrong in > the driver code... If I wanted to dig into the bnx2x source, any > pointers on where to start looking? I don't have this card nor was I involved in reviewing the driver. The file, drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c, contains the PHC stuff. Looking at bnx2x_init_cyclecounter(), they have mult = shift = 1. That implies that nanoseconds = ticks / 2 and that their internal clock runs at 2 GHz! Maybe they meant to have shift=0, or maybe your card has a (model specific 1 GHz clock). Anyhow, the testptp result is clear enough. You should take this up with the driver maintainers. Thanks, Richard -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users