Skip to contentSkip to conversation

CS5536 mfgpt timer setup register hangs board

DISCUSSION Hasan Rashid 1 participant 1 message Jan 26, 2008

lore
Share & tools
lore
#0 lore raw

This is what TinyBios posts
-------------------------------------------
PC Engines ALIX.2 v0.99
640 KB Base Memory
130048 KB Extended Memory

01F0 Master 848A CF 128MB
Phys C/H/S 1002/8/32 Log C/H/S 1002/8/32

BIOS setup:

(9) 9600 baud (2) 19200 baud *3* 38400 baud (5) 57600 baud (1) 115200 baud *C* CHS mode (L) LBA mode (W) HDD wait (V) HDD slave (U) UDMA enable
(M) MFGPT workaround
(P) late PCI init
*R* Serial console enable
(E) PXE boot enable
(X) Xmodem upload
(Q) Quit

The MFGPT workaround is disabled, and I deleted the workaround code that came with voyage linux's distribution. Anyhow I will try the fix and see if that solves my problem.

Quoted 34 lines · Hasan Rashid
Quoted 8 lines

Hi,

I have been working on a watchdog timer using the mfgpt on AMD Geode CS5536. I initialize the setup register MFGPT0_SETUP (0x6206) with hex value 0x306 (1100000110b). However, after this first initialization if I ever read/write to the register it hangs the system.

Quoted 5 lines

I have been through all the documentation, tried several different methods
but all the efforts, frustratingly, to no avail.

Does anyone have any idea as to why would this be? TIA!

It looks like you are using TinyBIOS. Make sure that if you are using v0.99
that you do *not* enable the MFGPT workaround. If you are using an older version, then you will need this patch:

http://lkml.org/lkml/2008/1/23/372

And enable mfgptfix on the command line. There seems to be a problem with the MFGPT "workaround" that causes hangs exactly like you are seeing.

Jordan

--
Jordan Crouse
Systems Software Development Engineer
Advanced Micro Devices, Inc.

Signature · 2 lines
Regards,
Hasan Rashid