* Re: Fw: [Bug 6421] New: kernel 2.6.10-2.6.16 on alpha: arch/alpha/kernel/io.c, iowrite16_rep() BUG_ON((unsigned long)src & 0x1) triggered [not found] <20060421102757.45d26db0@localhost.localdomain> @ 2006-04-21 17:45 ` Ingo Oeser 2006-04-21 23:12 ` Andrew Morton 0 siblings, 1 reply; 3+ messages in thread From: Ingo Oeser @ 2006-04-21 17:45 UTC (permalink / raw) To: Stephen Hemminger; +Cc: Paul Gortmaker, netdev, linux-kernel, tomri, Ingo Oeser Stephen Hemminger wrote: > Looks like PIO at unaligned addresses doesn't work on alpha... Maybe this should be fixed similiar to ioread32_rep in arch/alpha/kernel/io.c? This may slow it down, but will not break it. > Begin forwarded message: > > Date: Fri, 21 Apr 2006 02:35:45 -0700 > From: bugme-daemon@bugzilla.kernel.org > To: shemminger@osdl.org > Subject: [Bug 6421] New: kernel 2.6.10-2.6.16 on alpha: arch/alpha/kernel/io.c, iowrite16_rep() BUG_ON((unsigned long)src & 0x1) triggered Regards Ingo Oeser ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Fw: [Bug 6421] New: kernel 2.6.10-2.6.16 on alpha: arch/alpha/kernel/io.c, iowrite16_rep() BUG_ON((unsigned long)src & 0x1) triggered 2006-04-21 17:45 ` Fw: [Bug 6421] New: kernel 2.6.10-2.6.16 on alpha: arch/alpha/kernel/io.c, iowrite16_rep() BUG_ON((unsigned long)src & 0x1) triggered Ingo Oeser @ 2006-04-21 23:12 ` Andrew Morton 2006-04-22 7:56 ` alpha @ steudten Engineering 0 siblings, 1 reply; 3+ messages in thread From: Andrew Morton @ 2006-04-21 23:12 UTC (permalink / raw) To: Ingo Oeser, Ivan Kokshaysky, Richard Henderson Cc: shemminger, p_gortmaker, netdev, linux-kernel, tomri, ioe-lkml Ingo Oeser <netdev@axxeo.de> wrote: > > Stephen Hemminger wrote: > > Looks like PIO at unaligned addresses doesn't work on alpha... > > Maybe this should be fixed similiar to ioread32_rep in arch/alpha/kernel/io.c? > I think so, but Ivan thinks networking is bust: Ivan Kokshaysky <ink@jurassic.park.msu.ru> wrote: > > On Fri, Apr 21, 2006 at 04:28:30AM -0700, Andrew Morton wrote: > > Why is it "silently corrupted"? It's just misaligned, isn't it? Networking > > does that sometimes. > > Because networking does read/write "short" fields in various packet > header structures. Results are illustrated in a following example: > > char foo[] __attribute__((aligned(8))) = "0123456701234567"; > > int main() > { > short *bar = (short *)&foo[7]; > printf("%04x\n", *bar); /* 3037 */ > *bar = 0x4241; /* "AB" */ > printf("%s\n", foo); > return 0; > } > -------- > 0037 > ^^ > 0123456A01234567 > ^ > Misalignment by two bytes for ints and longs is often unavoidable in > networking and we can cope with it, but there is no excuse of 1-byte > misalignment. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Fw: [Bug 6421] New: kernel 2.6.10-2.6.16 on alpha: arch/alpha/kernel/io.c, iowrite16_rep() BUG_ON((unsigned long)src & 0x1) triggered 2006-04-21 23:12 ` Andrew Morton @ 2006-04-22 7:56 ` alpha @ steudten Engineering 0 siblings, 0 replies; 3+ messages in thread From: alpha @ steudten Engineering @ 2006-04-22 7:56 UTC (permalink / raw) To: Andrew Morton Cc: Ingo Oeser, Ivan Kokshaysky, Richard Henderson, shemminger, p_gortmaker, netdev, linux-kernel, ioe-lkml Running this on my alpha gives (gcc 4.0.2): 3000 0123456A01234567 Andrew Morton wrote: >> Because networking does read/write "short" fields in various packet >> header structures. Results are illustrated in a following example: >> >> char foo[] __attribute__((aligned(8))) = "0123456701234567"; >> >> int main() >> { >> short *bar = (short *)&foo[7]; >> printf("%04x\n", *bar); /* 3037 */ >> *bar = 0x4241; /* "AB" */ >> printf("%s\n", foo); >> return 0; >> } >> -------- >> 0037 >> ^^ >> 0123456A01234567 >> ^ >> Misalignment by two bytes for ints and longs is often unavoidable in >> networking and we can cope with it, but there is no excuse of 1-byte >> misalignment. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-04-22 18:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20060421102757.45d26db0@localhost.localdomain>
2006-04-21 17:45 ` Fw: [Bug 6421] New: kernel 2.6.10-2.6.16 on alpha: arch/alpha/kernel/io.c, iowrite16_rep() BUG_ON((unsigned long)src & 0x1) triggered Ingo Oeser
2006-04-21 23:12 ` Andrew Morton
2006-04-22 7:56 ` alpha @ steudten Engineering
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
Powered by JetHome