Attached is the net result of what I've done to try to figure out what's going on with the cn700, right now it reboots part of the way through initram, probably as a result of the GP3 timer not getting reset like it should. I'm heading into finals week, so I probably won't be able to get back to this until late December.
-Corey
On Tue, Dec 9, 2008 at 12:15 PM, Corey Osgood corey.osgood@gmail.comwrote:
Attached is the net result of what I've done to try to figure out what's going on with the cn700, right now it reboots part of the way through initram, probably as a result of the GP3 timer not getting reset like it should. I'm heading into finals week, so I probably won't be able to get back to this until late December.
-Corey
Ignore that patch, something Carl-Daniel quoted that I just read reminded me what the problem was, it was my 1Mbit flash chip not being set up properly. Attached patch fixes that, checks for CAR area and ROM collision (for C7 at least), and....well, just look at the patch.
-Corey
(This applies cleanly to v3 trunk.)
Corey Osgood wrote:
- Moves non-DRAM early init code out of initram and into stage1, where it should have been in the first place
- Fixes an issue with GP3 timer causing system reboot (possibly not present in current svn, but was present in my local copy)
- Fixes serial garbage from stage1 on jetway j7f2
- Fixes ROM mapping for flash > 512k on vt8237
- Checks that the CAR base + size allows for the selected ROM size
- Makes a couple minor whitespace changes
- Moves some function prototypes to the headers where they belong
- Nukes some phase2 hackery that belongs in phase4 (eventually)
- Comments out early_mtrr_init() for via/epia-cn, this breaks booting on jetway j7f2
- Moves troublesome SATA init code into stage1 - change of device class hangs coreboot
- Gets to vt8237 IDE phase6 init and dies on jetway/j7f2: Phase 6: Initializing devices... Phase 6: Root Device init. Phase 6: PCI: 00:10.1 init. Primary IDE interface enabled Secondary IDE interface enabled
<hang>
Signed-off-by: Corey Osgood corey.osgood@gmail.com
Acked-by: Peter Stuge peter@stuge.se
On 10.12.2008 11:00, Corey Osgood wrote:
On Tue, Dec 9, 2008 at 12:15 PM, Corey Osgood corey.osgood@gmail.comwrote:
Attached is the net result of what I've done to try to figure out what's going on with the cn700, right now it reboots part of the way through initram, probably as a result of the GP3 timer not getting reset like it should. I'm heading into finals week, so I probably won't be able to get back to this until late December.
-Corey
Ignore that patch, something Carl-Daniel quoted that I just read reminded me what the problem was, it was my 1Mbit flash chip not being set up properly. Attached patch fixes that, checks for CAR area and ROM collision (for C7 at least), and....well, just look at the patch.
This patch:
- Moves non-DRAM early init code out of initram and into stage1, where it should have been in the first place
- Fixes an issue with GP3 timer causing system reboot (possibly not present in current svn, but was present in my local copy)
- Fixes serial garbage from stage1 on jetway j7f2
- Fixes ROM mapping for flash > 512k on vt8237
- Checks that the CAR base + size allows for the selected ROM size
Could you move the CAR base + size checks into a separate patch? That would be great.
- Makes a couple minor whitespace changes
- Moves some function prototypes to the headers where they belong
- Nukes some phase2 hackery that belongs in phase4 (eventually)
- Comments out early_mtrr_init() for via/epia-cn, this breaks booting on jetway j7f2
early_mtrr_init is broken for ALL chipsets and processors because it disables CAR. I plan to nuke it or at least rewrite it completely. Don't just comment the call out, remove the call altogether.
- Moves troublesome SATA init code into stage1 - change of device class hangs coreboot
- Gets to vt8237 IDE phase6 init and dies on jetway/j7f2: Phase 6: Initializing devices... Phase 6: Root Device init. Phase 6: PCI: 00:10.1 init. Primary IDE interface enabled Secondary IDE interface enabled
<hang>
Signed-off-by: Corey Osgood corey.osgood@gmail.com
Acked-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
One question remains, though. You removed some code which I didn't see reappear anywhere. Example follows.
Index: northbridge/via/cn700/initram.c
--- northbridge/via/cn700/initram.c (revision 1066) +++ northbridge/via/cn700/initram.c (working copy) @@ -353,10 +262,6 @@ pci_conf1_write_config8(dev->d0f3, 0x74, 0x04); pci_conf1_write_config8(dev->d0f3, 0x75, 0x04); pci_conf1_write_config8(dev->d0f3, 0x76, 0x00);
- /* Thanks to Urbez Santana Roma for this */
- pci_conf1_write_config8(dev->d1f0, 0x19, 0x1);
- pci_conf1_write_config8(dev->d1f0, 0x1a, 0x1);
}
/**
Is that code obsolete? I couldn't find any mentioning of it in your commit message.
Regards, Carl-Daniel
Carl-Daniel Hailfinger wrote:
early_mtrr_init is broken for ALL chipsets and processors because it disables CAR. I plan to nuke it or at least rewrite it completely.
Seems a rewrite would be in place then, we do want those MTRRs to get the caching, right?
Don't just comment the call out, remove the call altogether.
If we're going to still have the function come back in full strength at some point I think the comment is a good thing.
//Peter
On 10.12.2008 12:54, Peter Stuge wrote:
Carl-Daniel Hailfinger wrote:
early_mtrr_init is broken for ALL chipsets and processors because it disables CAR. I plan to nuke it or at least rewrite it completely.
Seems a rewrite would be in place then, we do want those MTRRs to get the caching, right?
We currently do all that caching setup in stage0.S. See also my other mail with a patch and extensive comments.
Don't just comment the call out, remove the call altogether.
If we're going to still have the function come back in full strength at some point I think the comment is a good thing.
It's only used on the CN700 targets. The other targets don't use it at all. If we want to enable ROM caching from C code (instead of asm), we need to talk about the best location for it anyway.
Your point about having the function come back some time is absolutely valid, though.
Regards, Carl-Daniel
On Wed, Dec 10, 2008 at 05:00:51AM -0500, Corey Osgood wrote:
On Tue, Dec 9, 2008 at 12:15 PM, Corey Osgood corey.osgood@gmail.comwrote:
Attached is the net result of what I've done to try to figure out what's going on with the cn700, right now it reboots part of the way through initram, probably as a result of the GP3 timer not getting reset like it should. I'm heading into finals week, so I probably won't be able to get back to this until late December.
-Corey
Ignore that patch, something Carl-Daniel quoted that I just read reminded me what the problem was, it was my 1Mbit flash chip not being set up properly. Attached patch fixes that, checks for CAR area and ROM collision (for C7 at least), and....well, just look at the patch.
Something needs fixing here, I think, epia-cn will no longer compile:
northbridge/via/cn700/cn700.h:87: error: redefinition of ‘struct board_info
Haven't yet looked into it.
Uwe.
On Wed, Dec 10, 2008 at 7:52 AM, Uwe Hermann uwe@hermann-uwe.de wrote:
On Wed, Dec 10, 2008 at 05:00:51AM -0500, Corey Osgood wrote:
On Tue, Dec 9, 2008 at 12:15 PM, Corey Osgood <corey.osgood@gmail.com wrote:
Attached is the net result of what I've done to try to figure out
what's
going on with the cn700, right now it reboots part of the way through initram, probably as a result of the GP3 timer not getting reset like
it
should. I'm heading into finals week, so I probably won't be able to
get
back to this until late December.
-Corey
Ignore that patch, something Carl-Daniel quoted that I just read reminded
me
what the problem was, it was my 1Mbit flash chip not being set up
properly.
Attached patch fixes that, checks for CAR area and ROM collision (for C7
at
least), and....well, just look at the patch.
Something needs fixing here, I think, epia-cn will no longer compile:
northbridge/via/cn700/cn700.h:87: error: redefinition of 'struct board_info
Haven't yet looked into it.
Can you try the attached patch? I never got that specific error, but got a couple others and fixed them. I also cut out the CAR size check per Carl-Daniel's request.
Thanks, Corey
On 10.12.2008 17:35, Corey Osgood wrote:
On Wed, Dec 10, 2008 at 7:52 AM, Uwe Hermann uwe@hermann-uwe.de wrote:
On Wed, Dec 10, 2008 at 05:00:51AM -0500, Corey Osgood wrote:
On Tue, Dec 9, 2008 at 12:15 PM, Corey Osgood <corey.osgood@gmail.com wrote:
Attached is the net result of what I've done to try to figure out
what's
going on with the cn700, right now it reboots part of the way through initram, probably as a result of the GP3 timer not getting reset like
it
should. I'm heading into finals week, so I probably won't be able to
get
back to this until late December.
-Corey
Ignore that patch, something Carl-Daniel quoted that I just read reminded
me
what the problem was, it was my 1Mbit flash chip not being set up
properly.
Attached patch fixes that, checks for CAR area and ROM collision (for C7
at
least), and....well, just look at the patch.
Something needs fixing here, I think, epia-cn will no longer compile:
northbridge/via/cn700/cn700.h:87: error: redefinition of 'struct board_info
Haven't yet looked into it.
Can you try the attached patch? I never got that specific error, but got a couple others and fixed them. I also cut out the CAR size check per Carl-Daniel's request.
Thanks!
Acked-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
Regards, Carl-Daniel
On Wed, Dec 10, 2008 at 12:37 PM, Carl-Daniel Hailfinger < c-d.hailfinger.devel.2006@gmx.net> wrote:
On 10.12.2008 17:35, Corey Osgood wrote:
On Wed, Dec 10, 2008 at 7:52 AM, Uwe Hermann uwe@hermann-uwe.de wrote:
On Wed, Dec 10, 2008 at 05:00:51AM -0500, Corey Osgood wrote:
On Tue, Dec 9, 2008 at 12:15 PM, Corey Osgood <corey.osgood@gmail.com wrote:
Attached is the net result of what I've done to try to figure out
what's
going on with the cn700, right now it reboots part of the way through initram, probably as a result of the GP3 timer not getting reset like
it
should. I'm heading into finals week, so I probably won't be able to
get
back to this until late December.
-Corey
Ignore that patch, something Carl-Daniel quoted that I just read
reminded
me
what the problem was, it was my 1Mbit flash chip not being set up
properly.
Attached patch fixes that, checks for CAR area and ROM collision (for
C7
at
least), and....well, just look at the patch.
Something needs fixing here, I think, epia-cn will no longer compile:
northbridge/via/cn700/cn700.h:87: error: redefinition of 'struct
board_info
Haven't yet looked into it.
Can you try the attached patch? I never got that specific error, but got
a
couple others and fixed them. I also cut out the CAR size check per Carl-Daniel's request.
Thanks!
Acked-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
Committed in r1070
Thanks, Corey