* [U-Boot] [PATCH] ati_radeon: return error with when emulator fails
@ 2010-03-31 14:54 Ed Swarthout
2010-03-31 17:10 ` Anatolij Gustschin
2010-04-08 14:34 ` Anatolij Gustschin
0 siblings, 2 replies; 3+ messages in thread
From: Ed Swarthout @ 2010-03-31 14:54 UTC (permalink / raw)
To: u-boot
Console was being switched to video even if emulator fails and
causing this hang:
Scanning PCI bus 04
04 00 1095 3132 0104 00
PCIE3 on bus 03 - 04
Video: ATI Radeon video card (1002, 5b60) found @(2:0:0)
videoboot: Booting PCI video card bus 2, function 0, device 0
videoboot: Video ROM failed to map!
640x480x8 31kHz 59Hz
radeonfb: FIFO Timeout !
Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
---
I consider this a bug fix. I'm also sending an independent
patch that fixes the problem that caused this error.
drivers/bios_emulator/atibios.c | 3 ++-
drivers/video/ati_radeon_fb.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/bios_emulator/atibios.c b/drivers/bios_emulator/atibios.c
index 5f9bd10..2881449 100644
--- a/drivers/bios_emulator/atibios.c
+++ b/drivers/bios_emulator/atibios.c
@@ -315,7 +315,8 @@ int BootVideoCardBIOS(pci_dev_t pcidev, BE_VGAInfo ** pVGAInfo, int cleanUp)
BE_init(0, 65536, VGAInfo, 0);
/*Post all the display controller BIOS'es*/
- PCI_postController(pcidev, VGAInfo);
+ if (!PCI_postController(pcidev, VGAInfo))
+ return false;
/*Cleanup and exit the emulator if requested. If the BIOS emulator
is needed after booting the card, we will not call BE_exit and
diff --git a/drivers/video/ati_radeon_fb.c b/drivers/video/ati_radeon_fb.c
index 9ebb0b0..529ddae 100644
--- a/drivers/video/ati_radeon_fb.c
+++ b/drivers/video/ati_radeon_fb.c
@@ -597,7 +597,8 @@ int radeon_probe(struct radeonfb_info *rinfo)
rinfo->fb_local_base = INREG(MC_FB_LOCATION) << 16;
DPRINT("rinfo->fb_local_base = 0x%x\n",rinfo->fb_local_base);
/* PostBIOS with x86 emulater */
- BootVideoCardBIOS(pdev, NULL, 0);
+ if (!BootVideoCardBIOS(pdev, NULL, 0))
+ return -1;
/*
* Check for errata
--
1.5.6.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] ati_radeon: return error with when emulator fails
2010-03-31 14:54 [U-Boot] [PATCH] ati_radeon: return error with when emulator fails Ed Swarthout
@ 2010-03-31 17:10 ` Anatolij Gustschin
2010-04-08 14:34 ` Anatolij Gustschin
1 sibling, 0 replies; 3+ messages in thread
From: Anatolij Gustschin @ 2010-03-31 17:10 UTC (permalink / raw)
To: u-boot
On Wed, 31 Mar 2010 09:54:28 -0500
Ed Swarthout <Ed.Swarthout@freescale.com> wrote:
> Console was being switched to video even if emulator fails and
> causing this hang:
>
> Scanning PCI bus 04
> 04 00 1095 3132 0104 00
> PCIE3 on bus 03 - 04
> Video: ATI Radeon video card (1002, 5b60) found @(2:0:0)
> videoboot: Booting PCI video card bus 2, function 0, device 0
> videoboot: Video ROM failed to map!
> 640x480x8 31kHz 59Hz
> radeonfb: FIFO Timeout !
>
> Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Tested-by: Anatolij Gustschin <agust@denx.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] ati_radeon: return error with when emulator fails
2010-03-31 14:54 [U-Boot] [PATCH] ati_radeon: return error with when emulator fails Ed Swarthout
2010-03-31 17:10 ` Anatolij Gustschin
@ 2010-04-08 14:34 ` Anatolij Gustschin
1 sibling, 0 replies; 3+ messages in thread
From: Anatolij Gustschin @ 2010-04-08 14:34 UTC (permalink / raw)
To: u-boot
On Wed, 31 Mar 2010 09:54:28 -0500
Ed Swarthout <Ed.Swarthout@freescale.com> wrote:
> Console was being switched to video even if emulator fails and
> causing this hang:
>
> Scanning PCI bus 04
> 04 00 1095 3132 0104 00
> PCIE3 on bus 03 - 04
> Video: ATI Radeon video card (1002, 5b60) found @(2:0:0)
> videoboot: Booting PCI video card bus 2, function 0, device 0
> videoboot: Video ROM failed to map!
> 640x480x8 31kHz 59Hz
> radeonfb: FIFO Timeout !
>
> Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
> ---
>
> I consider this a bug fix. I'm also sending an independent
> patch that fixes the problem that caused this error.
>
> drivers/bios_emulator/atibios.c | 3 ++-
> drivers/video/ati_radeon_fb.c | 3 ++-
> 2 files changed, 4 insertions(+), 2 deletions(-)
Applied to u-boot-video/master. Thanks!
Anatolij
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-04-08 14:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-31 14:54 [U-Boot] [PATCH] ati_radeon: return error with when emulator fails Ed Swarthout
2010-03-31 17:10 ` Anatolij Gustschin
2010-04-08 14:34 ` Anatolij Gustschin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox