Dear Richard,
i'm sorry for i need your help again, i just resolve the kernel crash,
this was caused by call spin_lock twice in stmmac mac driver, but another
problem come out.
when i run "./ptp4l -i eth0 -H -p /dev/ptp0 -m", an error display
"*increasing
tx_timestamp_timeout may correct this issue, but it is likely caused by a
driver bug*", i'm not sure this was caused by mac driver or phy driver.
and i run ptp4l in SOFTWARE mode, all goes correctlly.
2014-04-11 17:35 GMT+08:00 Arnold kang <arnold0k...@gmail.com>:
> Dear Richard,
> thanks your help
>
>
> 2014-04-11 17:26 GMT+08:00 Richard Cochran <richardcoch...@gmail.com>:
>
> On Fri, Apr 11, 2014 at 04:07:02PM +0800, Arnold kang wrote:
>> > Dear Richard,
>> > i get my kernel from my chip vendor, yes, the mac driver is modified
>> by
>> > them. maybe this is why the kernel crashed. but i really don't
>> understand
>> > what* skb_tx_timestamp() *mean. i search in google, there is no
>> answer,
>> > and there is no prototype in kernel or other use in kernel code. can you
>> > tell me how to add it? thanks...
>>
>> Regarding skb_tx_timestamp(), the prototype is found in
>> include/linux/skbuff.h, and it has been there since v2.6.36.
>>
>> * skb_tx_timestamp() - Driver hook for transmit timestamping
>> *
>> * Ethernet MAC Drivers should call this function in their hard_xmit()
>> * function immediately before giving the sk_buff to the MAC hardware.
>>
>> Once you fix your kernel crash, then you will need to add this into
>> the MAC driver as well.
>>
>> The kernel crash has nothing to do with skb_tx_timestamp().
>> Unfortunately, I cannot help you with your vendor kernel.
>>
>> Good luck,
>> Richard
>>
>
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel