From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from duke.felloff.net ([216.126.196.34]) by ur; Wed Jul 27 15:30:57 EDT 2016 Message-ID: Date: Wed, 27 Jul 2016 21:30:49 +0200 From: cinap_lenrek@felloff.net To: 9front@9front.org Subject: Re: [9front] core-i5(TypeSNB) and vesa mode In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: database core database - p->fdi->txctl.v &= ~(7<<8 | 1); /* clear auto training bits */ - p->fdi->txctl.v &= ~(1<<31); - p->fdi->rxctl.v |= (1<<14); /* enable pll */ - loadreg(igfx, p->fdi->txctl); - sleep(5); + if(igfx->type == TypeSNB){ /* K.Okamoto */ + p->fdi->txctl.v |= (1<<14); /* enable FDI pll K.Okamoto */ + loadreg(igfx, p->fdi->txctl); + sleep(5); + }else{ + p->fdi->txctl.v &= ~(7<<8 | 1); /* clear auto training bits */ + p->fdi->txctl.v &= ~(1<<31); /* disable */ + p->fdi->rxctl.v |= (1<<14); /* DMI link reversal strap RO bit */ + loadreg(igfx, p->fdi->txctl); + sleep(5); + } this is interesting... in SNB code, you set txtctl bit 14, but in my previous code i set *RX*ctl bit 14, which is not even used because it is never written to hardware afterwards. so i wonder if the special case for SNB is actually needed... given that this looks like a typo on my side but it apparently has no problems on my IVY bridge machine. i propose you change the code to: p->fdi->txctl.v &= ~(7<<8 | 1); /* clear auto training bits */ p->fdi->txctl.v &= ~(1<<31); /* disable */ p->fdi->txctl.v |= (1<<14); /* DMI link reversal strap RO bit */ loadreg(igfx, p->fdi->txctl); sleep(5); and see if this still works. can you do that? -- cinap