Skip to contentSkip to conversation

radeonfb monid i2c bus

DISCUSSION Jean Delvare 4 participants 8 messages Jun 6, 2008 – Jun 9, 2008 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

Hi Ben,

Can you explain what is the "monid" i2c bus on Radeon adapters? I have two Radeon chips here, an M6 in my old laptop and a 9200 in my desktop system. On the M6 there is nothing on the monid bus. On the 9200, the monid bus doesn't even work, every access results in timeout. The radeonfb driver doesn't even look for EDID EEPROMs on that bus (except in debug code.)

So I'm curious why you create this i2c bus if you don't need it. Have you ever seen a Radeon adapter where there is something on that bus?

Thanks,

Signature · 7 lines
Jean Delvare

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
#1 lore raw
Quoted 9 lines · Jean Delvare

Hi Ben,

Can you explain what is the "monid" i2c bus on Radeon adapters? I have two Radeon chips here, an M6 in my old laptop and a 9200 in my desktop system. On the M6 there is nothing on the monid bus. On the 9200, the monid bus doesn't even work, every access results in timeout. The radeonfb driver doesn't even look for EDID EEPROMs on that bus (except in debug code.)

Quoted 3 lines

So I'm curious why you create this i2c bus if you don't need it. Have you ever seen a Radeon adapter where there is something on that bus?

There are several i2c busses available on radeons and different OEMs use different combinations. The bus used by each display output is listed in the connector table in the vbios rom on x86 cards. Other uses include controlling external TMDS or DAC chips on some cards. This info is also available via the bios tables on x86 cards.

Alex

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

#2 lore raw
In reply to Jean Delvare
Quoted 9 lines · Jean Delvare

Hi Ben,

Can you explain what is the "monid" i2c bus on Radeon adapters? I have two Radeon chips here, an M6 in my old laptop and a 9200 in my desktop system. On the M6 there is nothing on the monid bus. On the 9200, the monid bus doesn't even work, every access results in timeout. The radeonfb driver doesn't even look for EDID EEPROMs on that bus (except in debug code.)

Quoted 3 lines

So I'm curious why you create this i2c bus if you don't need it. Have you ever seen a Radeon adapter where there is something on that bus?

The BIOS connector tables might make us use it. Otherwise, it tends to have the external TMDS transmitter on it for which we'll one day get proper support for re-initializing on wakeup from sleep...

Ben.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

#3 lore raw
Quoted 8 lines · Benjamin Herrenschmidt
Quoted 7 lines · Jean Delvare

Can you explain what is the "monid" i2c bus on Radeon adapters? I have two Radeon chips here, an M6 in my old laptop and a 9200 in my desktop system. On the M6 there is nothing on the monid bus. On the 9200, the monid bus doesn't even work, every access results in timeout. The radeonfb driver doesn't even look for EDID EEPROMs on that bus (except in debug code.)

Quoted 5 lines
Quoted 3 lines

So I'm curious why you create this i2c bus if you don't need it. Have you ever seen a Radeon adapter where there is something on that bus?

The BIOS connector tables might make us use it.

Where is the code handling this? In radeon_monitor.c I can only see radeon_probe_i2c_connector() being called on ddc_vga, ddc_dvi and ddc_crt2. No reference to ddc_monid.

Quoted 3 lines

Otherwise, it tends to
have the external TMDS transmitter on it for which we'll one day get proper support for re-initializing on wakeup from sleep...

But apparently not all chips have the "monid" bus? Or is it a card property, and other cards using the same Radeon 9200 might have it while mine doesn't? I wouldn't care about an empty i2c bus, but a broken bus as I get now affects the whole i2c subsystem and its users in unpleasant ways. That's why I am wondering if there's a way to avoid it.

Thanks,

Signature · 7 lines
Jean Delvare

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
#4 lore raw
Quoted 6 lines · Jean Delvare

Where is the code handling this? In radeon_monitor.c I can only see radeon_probe_i2c_connector() being called on ddc_vga, ddc_dvi and ddc_crt2. No reference to ddc_monid.

You will find several patches that make use of that functionality. The current radeonfd driver is quite incomplete and is unusable for the never cards that use an atom bios. The driver needs also to be patched. Some of the ati x800 family cards like the one i own will only work with the ddc_monid and one or more of the patches i mentioned.

Quoted 7 lines

But apparently not all chips have the "monid" bus? Or is it a card property, and other cards using the same Radeon 9200 might have it while mine doesn't? I wouldn't care about an empty i2c bus, but a broken bus as I get now affects the whole i2c subsystem and its users in unpleasant ways. That's why I am wondering if there's a way to avoid it.

There are certainly many good reasons why the driver will stay unchanged. One reason could be, it is stable for most of the users and "easily" patchable to fit particular needs. Like me, you need particular needs :)

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

#5 lore raw
In reply to Jean Delvare
Quoted 13 lines · Jean Delvare
Quoted 12 lines · Benjamin Herrenschmidt
Quoted 10 lines · Jean Delvare

Can you explain what is the "monid" i2c bus on Radeon adapters? I have two Radeon chips here, an M6 in my old laptop and a 9200 in my desktop system. On the M6 there is nothing on the monid bus. On the 9200, the monid bus doesn't even work, every access results in timeout. The radeonfb driver doesn't even look for EDID EEPROMs on that bus (except in debug code.)

So I'm curious why you create this i2c bus if you don't need it. Have you ever seen a Radeon adapter where there is something on that bus?

Quoted 5 lines
Quoted 1 line

The BIOS connector tables might make us use it.

Where is the code handling this? In radeon_monitor.c I can only see radeon_probe_i2c_connector() being called on ddc_vga, ddc_dvi and ddc_crt2. No reference to ddc_monid.

There are 4 or 5 ddc buses (really just gpios) and each oem can choose to wire up to a connector. The bios connector table contains this map. ddc_vga and ddc_dvi are the most commonly used, but I've seen cards with other settings. If you want the full story take a look at the xorg radeon driver (xf86-video-ati).

Quoted 5 lines
Quoted 4 lines

Otherwise, it tends to
have the external TMDS transmitter on it for which we'll one day get proper support for re-initializing on wakeup from sleep...

Quoted 7 lines

But apparently not all chips have the "monid" bus? Or is it a card property, and other cards using the same Radeon 9200 might have it while mine doesn't? I wouldn't care about an empty i2c bus, but a broken bus as I get now affects the whole i2c subsystem and its users in unpleasant ways. That's why I am wondering if there's a way to avoid it.

They are just gpio pads. All the cards supported by radeonfb have then, but only certain ones are wired up as per the bios connector tables on x86 cards. Mac cards and we currently hard code them based on lots of investigation. I suppose, ideally, you check the connector tables and some of the other bios tables (powerplay, external tmds, ext dac, multimedia. etc.) and only init the buses you have a particular card.

Alex

Quoted 4 lines

Thanks,
--
Jean Delvare

Quoted 10 lines

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Linux-fbdev-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

#6 lore raw

Hi Alex,

Thanks for your answers.

Quoted 8 lines · Alex Deucher
Quoted 6 lines · Jean Delvare

But apparently not all chips have the "monid" bus? Or is it a card property, and other cards using the same Radeon 9200 might have it while mine doesn't? I wouldn't care about an empty i2c bus, but a broken bus as I get now affects the whole i2c subsystem and its users in unpleasant ways. That's why I am wondering if there's a way to avoid it.

Quoted 7 lines

They are just gpio pads. All the cards supported by radeonfb have then, but only certain ones are wired up as per the bios connector tables on x86 cards. Mac cards and we currently hard code them based on lots of investigation. I suppose, ideally, you check the connector tables and some of the other bios tables (powerplay, external tmds, ext dac, multimedia. etc.) and only init the buses you have a particular card.

That would indeed make sense. If these are GPIOs, do we even have any guarantee that they aren't used for other purposes when not used for I2C? I've always considered the monid I2C bus on my adapters to be non-existent (i2c-algo-bit can't control the lines) and that's the reason why I wanted it to not be created, but maybe the GPIO lines are actually used for something different and creating the non-existent I2C bus could break that?

So if it is possible to create the I2C buses (by default, at least) only when the BIOS connector tables say they are present, I'm in favor of doing that.

Signature · 7 lines
Jean Delvare

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
#7 lore raw
Quoted 21 lines · Jean Delvare

Hi Alex,

Thanks for your answers.

Quoted 8 lines · Alex Deucher
Quoted 6 lines · Jean Delvare

But apparently not all chips have the "monid" bus? Or is it a card property, and other cards using the same Radeon 9200 might have it while mine doesn't? I wouldn't care about an empty i2c bus, but a broken bus as I get now affects the whole i2c subsystem and its users in unpleasant ways. That's why I am wondering if there's a way to avoid it.

Quoted 7 lines

They are just gpio pads. All the cards supported by radeonfb have then, but only certain ones are wired up as per the bios connector tables on x86 cards. Mac cards and we currently hard code them based on lots of investigation. I suppose, ideally, you check the connector tables and some of the other bios tables (powerplay, external tmds, ext dac, multimedia. etc.) and only init the buses you have a particular card.

Quoted 7 lines

That would indeed make sense. If these are GPIOs, do we even have any guarantee that they aren't used for other purposes when not used for I2C? I've always considered the monid I2C bus on my adapters to be non-existent (i2c-algo-bit can't control the lines) and that's the reason why I wanted it to not be created, but maybe the GPIO lines are actually used for something different and creating the non-existent I2C bus could break that?

In theory they could be used for other things, but I'm pretty sure this set (monid, dvi, vga, crt2) is only used for i2c.

Quoted 4 lines

So if it is possible to create the I2C buses (by default, at least) only when the BIOS connector tables say they are present, I'm in favor of doing that.

That would be ideal, unfortunately, I don't have the time to implement anything like that for radonhd. For anyone interested, the code in the Xorg radeon driver would be a good guide. The drm modesetting work should also alleviate this, once it's done for radeon hw.

Alex

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php