LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-27-2010, 05:10 AM   #1
ysudhakarnaidu
LQ Newbie
 
Registered: Jan 2010
Posts: 3

Rep: Reputation: 0
Is Linux kernel contains source code to handle AMD southbridge initialization ?


Hi all,

I need to understand southbridge related code in linux source code.
For that I have downloaded Linux source code version:2.6.28 .
I have seen the code but didn't find code specific to southbridge handling.
Is Linux source code contains southbridge specific code?If so where can I find the code?

Can anyone help me to solve this? Please bear in mind that I am new to this .

Thanks in advance.
 
Old 01-27-2010, 05:48 AM   #2
cladisch
Member
 
Registered: Oct 2008
Location: Earth
Distribution: Slackware
Posts: 228

Rep: Reputation: 54
Southbridge initialization is usually done by the BIOS.

Most southbridge devices are PCI devices, i.e., they are handled by the appropriate PCI drivers.
Do you have some specific southbridge in mind?
 
Old 01-28-2010, 03:32 AM   #3
ysudhakarnaidu
LQ Newbie
 
Registered: Jan 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Hi Cladisch,

Thanks for your quick reply.

As you said most of the southbridge devices are pci devices, corresponding pci drivers of linux handle those devices.

I have some doubts regarding southbridge initialization.
Is bios handles complete southbridge chipset initialization?If so what Bios does to initialize southbridge?
 
Old 01-28-2010, 08:14 AM   #4
cladisch
Member
 
Registered: Oct 2008
Location: Earth
Distribution: Slackware
Posts: 228

Rep: Reputation: 54
Quote:
what Bios does to initialize southbridge?
Read the manual of the respective southbridge.
In most cases, this involves initializing the I/O interrupt controller, configuring any PCI or PCI-E channels that are present on the motherboard, and enabling or disabling any devices that are or are not connected to some jack or helper chip on the motherboard.
 
Old 01-29-2010, 02:34 AM   #5
ysudhakarnaidu
LQ Newbie
 
Registered: Jan 2010
Posts: 3

Original Poster
Rep: Reputation: 0
I have a doubt regarding this southbridge initialization.

Some how i have loaded the OS with out initializing the Southbridge during BIOS.
Then the linux PCI drivers of Southbridge devices will work as normal as they work under general condition?
If not whether the linux PCI drivers will work when include SB initialization in the linux kernel?
 
Old 01-29-2010, 03:52 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,363

Rep: Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335
Southbridge initialisation is actually a vague term.
The BIOS talks to the Southbridge, and the system has to find the disks connected to the Southbridge. If this is true to form, the pc spec will specify a way for the bios to do this, and to be pc compatible, a system will have to answer that approach on power on. Like, for example, the video comes up at 640x480 @60hz
Some time during the boot process, the kernel fine tunes everything using the drivers at it's disposal. You will see numbers being sent to registers, and you'd need the data sheet to figure it out. There is actually huge significance in these numbers. Get some data sheet for a Southbridge. Grab a kernel source and cd to ~/drivers/ide. Grok some of the code by Vojtech Pavlik. He writes well commented code and is an experienced programmer with SuSE. If you need to make sense of something, that is the way to go. The rest is done by the BIOS, which is 2MB of Assembler (Or uncommented C if you are very lucky)!
 
Old 01-29-2010, 04:07 AM   #7
cladisch
Member
 
Registered: Oct 2008
Location: Earth
Distribution: Slackware
Posts: 228

Rep: Reputation: 54
Quote:
Some how i have loaded the OS with out initializing the Southbridge during BIOS.
This is not possible on standard hardware.

Quote:
Then the linux PCI drivers of Southbridge devices will work as normal as they work under general condition?
If not whether the linux PCI drivers will work when include SB initialization in the linux kernel?
Again, this depends on what devices in the southbridge are to be used.
 
Old 01-29-2010, 07:46 AM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

To the OP; Look at 'BIOS'.

You need to understand that the 'BIOS' does initialize the hardware. If the Linux kernel supports the hardware then appropriate drivers are used to refine or use the hardware. Sometimes the Linux kernel will use the driver without interface/use of the 'BIOS'.

Not all legacy chipsets are supported and if the chipset is to new it may utilize a extended driver/module if at all. If you have questions about a specific chipset then check the '.config' of a particular kernel.

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: AMD unleashes open-source 3D code LXer Syndicated Linux News 0 12-31-2008 12:30 AM
LXer: AMD Releases Open-Source R600/700 3D Code LXer Syndicated Linux News 0 12-29-2008 07:50 PM
source code of linux kernel rohit83.ken Linux - Newbie 3 02-08-2008 06:49 PM
LXer: AMD, Gigabyte Release Source-Code for Mainboard’s BIOS LXer Syndicated Linux News 0 02-24-2007 05:01 PM
linux kernel source code legolas_t Programming 1 09-17-2004 06:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration