All times are UTC - 6 hours




Post new topic Reply to topic  [ 51 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject:
PostPosted: Thu Aug 19, 2010 12:45 pm 
Offline
Site Admin


Fri Sep 24, 2004 1:39 am

1589

Alamo Heights, TX
blu wrote:
hey, Matt, justice prevailed!

fixing that routine you suggested brought the crucial blow to the last head of the hydra known as freescale's mxc display code. my TV is chirping happily under 2.6.31-TO3 now ; )

apropos, in my version of the kernel codebase the routine is called 'adapt_panel_to_ipu_restricitions' - still with the signature spelling error. and i see that the name is still the same in the efikamx-10.07.11 bsp branch (btw, very nice initiative with the git repo - thanks!).

i absolutely agree that the display code needs rewriting. it's classic spaghetti code, full of gems like this one:

Code:
if (pixel_clock == 37000 ) /* NTSC 480i */
            rate = (u32) ((((PICOS2KHZ(pixel_clock)))/1000)*1000000)*2;
        else
            rate =  (((u32)(PICOS2KHZ(pixel_clock) ))*1000 * 2);

holy parenthesis abuse, batman!

now, onto the tracks of the missing front SD card slot..

apropos, 2.6.31-TO3 does not seem to cope with the available z430 modules either, which greatly reduces its value to me.


You should grab the code from the git repo and compile it.

The #if/#else/#endif for the prototype definition is gone (yay!) because even I had problems with it. I am currently discussing with Pegatron why this is even in there.

There's several updates to stability of NEON and suchlike, but for a TO2 user.. you will lose it completely (this is not bad, it will lock if you try..)

I think I also fixed the SD card problem, but... it seems different with each SD card. Have a try. If you are desperate for a precompiled version give me a nudge.
Matt Sealey, Genesi USA Inc.
Product Development Analyst


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 19, 2010 8:36 pm 
Offline


Tue Mar 31, 2009 10:24 pm

171
Neko wrote:
You should grab the code from the git repo and compile it.

ack, grabbing as i type. apropos, is mx51_efikamx_defconfig from the efikamx-10.07.11 branch good to go?

Quote:
There's several updates to stability of NEON and suchlike, but for a TO2 user.. you will lose it completely (this is not bad, it will lock if you try..)

i skimmed through the respective commit log - what's the deal with neon there?

Quote:
I think I also fixed the SD card problem, but... it seems different with each SD card. Have a try.

i've got a few cards waiting here.

update: front SD is still not there for me. tried two cards, one HC and one non-HC - same result. at each ejection the driver reports (timestamp nonwithstanding):
Code:
[  313.018922] mmc1: Card removed and resetting controller.


the only other place in the kernel log where mmc1 is met is early on:
Code:
[    4.361561] mxsdhci: MXC Secure Digital Host Controller Interface driver
[    4.372080] mxsdhci: MXC SDHCI Controller Driver.
[    4.380857] mmc0: SDHCI detect irq 128 irq 1 INTERNAL DMA
[    4.390095] mxsdhci: MXC SDHCI Controller Driver.
[    4.398936] mmc1: SDHCI detect irq 136 irq 2 INTERNAL DMA


on an unrelated note, 2.6.31.14 seems to shutdown properly for me, in contrast to 2.6.31-TO3.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 25, 2010 7:27 pm 
Offline
Site Admin


Fri Sep 24, 2004 1:39 am

1589

Alamo Heights, TX
blu wrote:
Neko wrote:
You should grab the code from the git repo and compile it.

ack, grabbing as i type. apropos, is mx51_efikamx_defconfig from the efikamx-10.07.11 branch good to go?


It is now. Wireless should work pretty well (rt2870sta driver, please get the firmware from ralink and rename it to rt3070.bin :)

Quote:
Quote:
There's several updates to stability of NEON and suchlike, but for a TO2 user.. you will lose it completely (this is not bad, it will lock if you try..)

i skimmed through the respective commit log - what's the deal with neon there?


NEON on TO2 MX51 chips is broken due to a memory controller issue. Essentially unaligned data of large sizes can cause it to lock up. It happens only
for NEON code because of the way the data is fetched. Actually, you may never have seen a NEON lockup, or you may have seen a crash where you didn't think it could be NEON..

Quote:
update: front SD is still not there for me. tried two cards, one HC and one non-HC - same result. at each ejection the driver reports (timestamp nonwithstanding)


I really cannot understand why the card is not detecting in the front slot. The code seems fine to me.. it picks the right IOMUX for the board (internal for sdhc1, registers sdhc1) and then determines it is a 1.1 board and therefore sdhc2 can be configured in IOMUX and registers sdhc2.

It should work, I've seen it work in the past.. I am just really confused as to why not today. It does report ejections just fine..
Matt Sealey, Genesi USA Inc.
Product Development Analyst


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 26, 2010 3:21 pm 
Offline


Tue Mar 31, 2009 10:24 pm

171
Neko wrote:
It is now. Wireless should work pretty well (rt2870sta driver, please get the firmware from ralink and rename it to rt3070.bin :)

thanks, but as i'm wireful the original version did fine for me.

Quote:
NEON on TO2 MX51 chips is broken due to a memory controller issue. Essentially unaligned data of large sizes can cause it to lock up. It happens only
for NEON code because of the way the data is fetched. Actually, you may never have seen a NEON lockup, or you may have seen a crash where you didn't think it could be NEON..


oh. good thing i did not succumb to autovectorisation and neon compiler optimisations then.

so is there nothing that could be done about TO2 there? perhaps put the memory controller into some peculiar granularity mode to counter the neon fetch hazard? i'd really love to be able to use neon at some point in the future.

Quote:
I really cannot understand why the card is not detecting in the front slot. The code seems fine to me.. it picks the right IOMUX for the board (internal for sdhc1, registers sdhc1) and then determines it is a 1.1 board and therefore sdhc2 can be configured in IOMUX and registers sdhc2.

It should work, I've seen it work in the past.. I am just really confused as to why not today. It does report ejections just fine..

well, it's not a priority for me now as i'm stuck in 2.6.31.12.3 land anyway due to the z430 modules (un)availability. i might try to do a quick cross-reference between 2.6.31.12.3 and 2.6.31.14 to find clues about the sd issue.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 27, 2010 7:43 am 
Offline
Site Admin


Fri Sep 24, 2004 1:39 am

1589

Alamo Heights, TX
blu wrote:
well, it's not a priority for me now as i'm stuck in 2.6.31.12.3 land anyway due to the z430 modules (un)availability. i might try to do a quick cross-reference between 2.6.31.12.3 and 2.6.31.14 to find clues about the sd issue.


No extra modules for 3D required now. It's all in the 2.6.31.14 release. What you will need though is a new userspace and we're stuck on a bug :)
Matt Sealey, Genesi USA Inc.
Product Development Analyst


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 21, 2011 12:59 pm 
Offline


Thu Apr 21, 2011 12:28 pm

9
Neko wrote:
czp wrote:
I tried to use vmode=800x600@60 (and also with MR), but no success. It mentions 800x600 in dmesg quite early, but at the end it still tries to set the preferred resolution of 1280x1024 and fails.


My bad. The autodetection code will override any command-line specified modelines..

This will be fixed in the kernel next week.


Hello, dear Sirs. Has this been fixed? I'm still getting the same thing. I cannot get any picture to my Sony KDL-52W5500 via HDMI. The Efika MX box tries to set some very bizarre refresh rate that the Sony won't accept. After listing unsupported and supported modes, dmesg says "SIIHDMI: Setting Resolution: 1920x1080@10.7". Whaaaaat??? 10.7 Hz refresh rate?

The unsupported and supported lists don't make much sense either. It claims that for example 1920x1080@25 and 1920x1080@30 are unsupported by the Sony TV. How can that be? The only full HD resolution listed as "supported" is 1920x1080@24.

I added vmode=1920x1080@24 to the kernel boot parameters, and it is indeed printed in the beginning of dmesg, but it doesn't have any effect.

What do I have to do? Do I have the wrong version of the kernel or something? It's the latest 2.6.31.14.20.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 26, 2011 11:12 am 
Offline


Tue Mar 31, 2009 10:24 pm

171
Osta Olkaimet wrote:
Hello, dear Sirs. Has this been fixed? I'm still getting the same thing. I cannot get any picture to my Sony KDL-52W5500 via HDMI. The Efika MX box tries to set some very bizarre refresh rate that the Sony won't accept. After listing unsupported and supported modes, dmesg says "SIIHDMI: Setting Resolution: 1920x1080@10.7". Whaaaaat??? 10.7 Hz refresh rate?

That dmesg line is misleading - I seems like a bug in the printout calculation. To see what clock the display is really getting, you need to either see the display's own OSD (apparently not possible in your case) or see what the following says:

Code:
$ cat /sys/class/graphics/fb0/mode


Quote:
The unsupported and supported lists don't make much sense either. It claims that for example 1920x1080@25 and 1920x1080@30 are unsupported by the Sony TV. How can that be? The only full HD resolution listed as "supported" is 1920x1080@24.

The driver has a rather sophisticated logic for filtering out modes that the display reports as supported. Each rejected-mode line is prepended with a single-character 'reason for rejection' code in the kernel log. Their loosely-translated meanings are:

Code:
c - mode is non-CEA and has a CEA861 duplicate (we prefer the CEA mode)
m - mode is non-detailed and has a detailed duplicated (we prefer the detailed one)
i - mode is interlaced (we don't like those)
d - mode is line-doubling (we don't like those)
p - mode has too high a pixel clock (the most likely reason an otherwise-good 1080p mode is rejected)
v - mode has an non-compliant-by-current-HDMI-standards vertical margin (we don't like those)


Quote:
I added vmode=1920x1080@24 to the kernel boot parameters, and it is indeed printed in the beginning of dmesg, but it doesn't have any effect.

What do I have to do? Do I have the wrong version of the kernel or something? It's the latest 2.6.31.14.20.

I've never tried the vmode argument, but one temporary workaround for you is to stick with 720p for the time being i.e. pass boot parameter 'siihdmi.teneighty=0'.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 27, 2011 1:37 pm 
Offline


Thu Apr 21, 2011 12:28 pm

9
So is there a way to force a particular video mode? Or not?

I also tried the demonstrational Android image, and it did get a display mode going with the Sony.

Anyway, there was one full HD mode listed as supported, the one with 24 frames per second. What was wrong with that then? I don't know about the level of "sophistication". How sophisticated is it that after doing all this so-called logic, it finally decides to set a mode that the Sony TV cannot display?

I'll try the teneighty thing, so let's see what it does.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 27, 2011 5:36 pm 
Offline


Tue Mar 31, 2009 10:24 pm

171
Osta Olkaimet wrote:
So is there a way to force a particular video mode? Or not?

I just looked up the standard way to set a particular mode to a KMS kernel at boot time, and one needs DRM for that. So no, you cannot do that for now.

Currently the HDMI driver's logic appears to be:

1. unless asked not to, try the highest-refresh mode among some low-refresh (<= 30Hz) 1080p modes (subject to aforementioned filtering)
2. unless asked not to, try the closest to a 'default' 720p mode (ditto)
3. pick the mode that is closest to the monitor's preferred mode (as declared by the monitor itself) - i.e. could be the preferred mode itself, if that was not filtered out (but chances are the preferred mode gets filtered out in your case, if that's a native 1080p set). Preferred mode is marked with an asterisk in the list of accepted modes, or with a captialized rejection code, in the rejected modes list.
4. if everything else fails, set the most vanilla 720p mode known (not subject to filtering).

From your description of the problem, the driver most likely gets 'stuck' somewhere on step 1 - it picks a low-refresh 1080p mode which, when attempted to be actually fed to the display, is met by a refusal.

Quote:
I also tried the demonstrational Android image, and it did get a display mode going with the Sony.

That just indicates that Android is not trying to feed your monitor the exact same mode the stock HDMI driver is. Another mode, by the same display/HDMI driver combo, could be absolutely fine. Apropos, what does the display say about the mode supplied by the Andorid image? There should be a source-signal info box somewhere in the display's on-board menus.

Quote:
Anyway, there was one full HD mode listed as supported, the one with 24 frames per second. What was wrong with that then? I don't know about the level of "sophistication". How sophisticated is it that after doing all this so-called logic, it finally decides to set a mode that the Sony TV cannot display?

Normally that should not be the case. Bar bugs in the kernel driver and/or monitor's firmware (yes, some monitors/tvsets report modes the former cannot actually reproduce). Definitely give the teneighty=0 option a try.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 30, 2011 2:37 am 
Offline


Tue Apr 19, 2011 3:01 am

12

Helsinki, Finland
blu wrote:
Normally that should not be the case. Bar bugs in the kernel driver and/or monitor's firmware (yes, some monitors/tvsets report modes the former cannot actually reproduce). Definitely give the teneighty=0 option a try.


Now, it is a bit unclear whether the correct parameter is sii9022.teneighty=0 or siihdmi.teneighty=0 with the official Ubuntu 10.10 image. Guess just need to try...


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 30, 2011 6:29 pm 
Offline
Genesi


Tue Feb 07, 2006 4:49 pm

145

San Antonio, TX
It's siihdmi; The Genesi driver is siihdmi, the Freescale driver is sii902x
Steev Klimaszewski, Genesi USA Inc.
Senior Software Engineer


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 01, 2011 8:59 pm 
Offline
Site Admin


Fri Sep 24, 2004 1:39 am

1589

Alamo Heights, TX
steev wrote:
It's siihdmi; The Genesi driver is siihdmi, the Freescale driver is sii902x


Actually I cannot be sure which one we shipped: I think "sii9022" for 2.6.31.14.20, "siihdmi" for 2.6.31.14.21 and above, and if we get 2.6.35 out of the door, "sii902x" will be the Freescale driver and we will stick with "siihdmi".

Sorry about the churn.

This is all going to be cleared up this week: 2.6.31.14.22 will have "siihdmi.teneighty=0" by default, and try to go for a 720p mode. There'll be a boot script update so you can edit this in really easily to get 1080p back if you want it.
Matt Sealey, Genesi USA Inc.
Product Development Analyst


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 01, 2011 9:03 pm 
Offline
Site Admin


Fri Sep 24, 2004 1:39 am

1589

Alamo Heights, TX
blu wrote:
Osta Olkaimet wrote:
dmesg says "SIIHDMI: Setting Resolution: 1920x1080@10.7". Whaaaaat??? 10.7 Hz refresh rate?


That dmesg line is misleading - I seems like a bug in the printout calculation.


Aaaand you just fixed it, we committed it to the repo this afternoon. The kernel update will go out this week.
Matt Sealey, Genesi USA Inc.
Product Development Analyst


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 01, 2011 9:12 pm 
Offline
Site Admin


Fri Sep 24, 2004 1:39 am

1589

Alamo Heights, TX
Osta Olkaimet wrote:
How sophisticated is it that after doing all this so-called logic, it finally decides to set a mode that the Sony TV cannot display


It's very sophisticated - it's almost impossible for it to send a mode your TV cannot display unless your TV is lying through it's teeth about what modes it can display.

The only time it will force a mode is if there is not a single mode in the list the TV sent that is capable of being displayed, at which point it will fall back to a CEA standard 720p mode, and if your TV doesn't display that, it is frankly a poor purchase :)
Matt Sealey, Genesi USA Inc.
Product Development Analyst


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 02, 2011 2:42 pm 
Offline


Thu Apr 21, 2011 12:28 pm

9
Disabling 1080 doesn't help, and Efika's "logic" feels as weird as ever.

Quote:
[ 1.964464] SIIHDMI: Supported modelines:
[ 1.964481] SIIHDMI: C "1920x1080@24" 74.250 1920 2558 2602 2750 1080 1089 1094 1130 +hsync -vsync
[ 1.964502] SIIHDMI: C "640x480@60" 25.175 640 656 752 800 480 492 494 527 -hsync -vsync
[ 1.964522] SIIHDMI: C "720x480@60" 27.00 720 736 798 858 480 495 501 531 -hsync -vsync
[ 1.964542] SIIHDMI: C "720x576@50" 27.00 720 732 796 864 576 586 591 630 -hsync -vsync
[ 1.964563] SIIHDMI: C "1280x720@60" 74.250 1280 1390 1430 1650 720 730 735 755 +hsync -vsync
[ 1.964583] SIIHDMI: C "1280x720@50" 74.250 1280 1720 1760 1980 720 730 735 755 +hsync -vsync
[ 1.964604] SIIHDMI: "1024x768@60" 65.02 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
[ 1.964622] SIIHDMI: Setting Resolution: 1280x720@20.93


If I understood correctly, the "20.93" rate is some kind of number-to-text conversion bug, but whatever 1280x720 mode is eventually being attempted, the Sony TV cannot display it any more than the 1920x1080 modes. Sound is working through the HDMI, however.

To tell the truth, it never even crossed my mind that getting a working picture to an HDMI display isn't a plain vanilla standard piece of cake these days. So far I've been able to get all HDMI devices I've tried to work with the Sony W5500 TV, including PS3, Xbox360, Denon AV amplifier, Samsung DVD recorder, various Canon and Sony cameras, and a Samsung laptop PC.

The unsupported modelines are these:

Quote:
[ 1.964116] SIIHDMI: Unsupported modelines:
[ 1.964137] SIIHDMI: i "1440x480@60i" 13.500 1440 1478 1602 1716 480 494 500 531 -hsync -vsync
[ 1.964160] SIIHDMI: i "1440x576@50i" 13.500 1440 1464 1590 1728 576 586 592 631 -hsync -vsync
[ 1.964183] SIIHDMI: i "1920x1080@60i" 74.250 1920 2008 2052 2200 1080 1094 1104 1135 +hsync -vsync
[ 1.964204] SIIHDMI: i "1920x1080@50i" 74.250 1920 2448 2492 2640 1080 1094 1104 1135 +hsync -vsync
[ 1.964226] SIIHDMI: p "1920x1080@60" 148.500 1920 2008 2052 2200 1080 1089 1094 1130 +hsync -vsync
[ 1.964248] SIIHDMI: p "1920x1080@50" 148.500 1920 2448 2492 2640 1080 1089 1094 1130 +hsync -vsync
[ 1.964270] SIIHDMI: i "1920x1080@100i" 74.250 1920 2448 2492 2640 1080 1084 1094 1124 +hsync +vsync
[ 1.964292] SIIHDMI: i "1920x1080@120i" 74.250 1920 2008 2052 2200 1080 1084 1094 1124 +hsync +vsync
[ 1.964314] SIIHDMI: c "1280x720@50" 74.250 1280 1720 1760 1980 720 725 730 750 +hsync +vsync
[ 1.964335] SIIHDMI: p "1920x1080@50" 148.500 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
[ 1.964357] SIIHDMI: v "1280x1024@60" 108.03 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
[ 1.964379] SIIHDMI: v "800x600@60" 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync
[ 1.964399] SIIHDMI: c "640x480@60" 25.200 640 656 752 800 480 490 492 525 -hsync -vsync
[ 1.964420] SIIHDMI: c "1280x720@60" 74.250 1280 1390 1430 1650 720 725 730 750 +hsync +vsync
[ 1.964441] SIIHDMI: P "1920x1080@60" 148.500 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 51 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group