Skip to contentSkip to conversation

Problematic simba PCI bridge code in xorg

DISCUSSION Jurij Smakov 2 participants 3 messages Oct 14, 2006 – Oct 15, 2006

lore
Share & tools
lore
#0 lore raw

Hi Dave,

Recently we've got a report of xorg crashing on an Ultra10 box, and corrupting the filesystem in the process. After some investigation I found the bug 8020 which you've filed against xorg at

https://bugs.freedesktop.org/show_bug.cgi?id€20

That looked like it could be the reason for the crash, as the box in question has this simba PCI bridge. So I disabled the call to the sparcPciPciBridge function, by not defining ARCH_PCI_PCI_BRIDGE in hw/xfree86/os-support/bus/Pci.h and rebuilt it. The resulting server worked fine both on my Ultra5 (it has simba bridge in it, but it has worked even before the change) and Ultra10, which was crashing before. The problem seems to be solved, however I feel a bit uneasy about removing the code without understading the possible impact. Are there any possible negative consequences for such a removal? If the code is not useful, why is it still in xorg anyway?

Thanks a lot,

Signature · 2 lines
Jurij Smakov                                           [email protected]
Key: http://www.wooyd.org/pgpkey/                      KeyID: C99E03CC
#1 lore raw

From: Jurij Smakov <[email protected]>
Date: Sat, 14 Oct 2006 09:43:25 -0700

Quoted 6 lines

Recently we've got a report of xorg crashing on an Ultra10 box, and corrupting the filesystem in the process. After some investigation I found the bug 8020 which you've filed against xorg at

https://bugs.freedesktop.org/show_bug.cgi?id€20

Quoted 10 lines

That looked like it could be the reason for the crash, as the box in question has this simba PCI bridge. So I disabled the call to the sparcPciPciBridge function, by not defining ARCH_PCI_PCI_BRIDGE in hw/xfree86/os-support/bus/Pci.h and rebuilt it. The resulting server worked fine both on my Ultra5 (it has simba bridge in it, but it has worked even before the change) and Ultra10, which was crashing before. The problem seems to be solved, however I feel a bit uneasy about removing the code without understading the possible impact. Are there any possible negative consequences for such a removal? If the code is not useful, why is it still in xorg anyway?

That code was the code author's poor attempt to add VGA routing support for SIMBA based sparc boxes.

Unless you're doing some weird multi-head setup, you won't notice if that code is removed. And since it makes the box crash, the code is totally pointless.

I disabled it in order to get my ultra5 and ultra10 working.

It's amazing that an obvious disk-eater bug with a proposed solution sits in the XORG bug database for months.

#2 lore raw
In reply to Jurij Smakov
Quoted 11 lines · David Miller

That code was the code author's poor attempt to add VGA routing support for SIMBA based sparc boxes.

Unless you're doing some weird multi-head setup, you won't notice if that code is removed. And since it makes the box crash, the code is totally pointless.

I disabled it in order to get my ultra5 and ultra10 working.

It's amazing that an obvious disk-eater bug with a proposed solution sits in the XORG bug database for months.

Thanks for the information. I'll disable this code in Debian, and will prod upstream to remove it too.

Best regards,

Signature · 2 lines
Jurij Smakov                                           [email protected]
Key: http://www.wooyd.org/pgpkey/                      KeyID: C99E03CC