Re: [Kgdb-bugreport] [PATCH 2.6.20-rc7] 8139too KGDBoE fix
Status: Beta
Brought to you by:
jwessel
From: Sergei S. <ssh...@ru...> - 2007-02-21 19:35:25
|
Hello. Sergei Shtylyov wrote: > This patch gets rid of annoying (and seemingly unavoidable) messages emitted > by the 8139too driver when using it for KGDBoE. It also makes KGDBoE work at > least somehow on my PowerPC board -- without it cross-gdb just doesn't connect. > Signed-off-by: Sergei Shtylyov <ssh...@ru...> > --- > Even with this patch, the packets probably get stuck somewhere in the driver, > as cross-gdb sees tail of the $g packet reply only in reply to next packet... Argh! That's all because of the CONFIG_NETPOLL_TRAP that CONFIG_KGDBOE* options select -- since the initial breakpoint enables trapping via KGDBoE's pre_exception() handler, netif_{stop/wake}_queue() stop to work and that causes KGDBoE to literally flood 8139too with packets (although it can't queue up more than 4). Looks like a general design issue to me... :-/ WBR, Sergei |