From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 1 19:58:14 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BCA481065670 for ; Sat, 1 Jan 2011 19:58:14 +0000 (UTC) (envelope-from darmawan_salihun@yahoo.com) Received: from web76811.mail.sg1.yahoo.com (web76811.mail.sg1.yahoo.com [124.108.123.115]) by mx1.freebsd.org (Postfix) with SMTP id ECAC68FC16 for ; Sat, 1 Jan 2011 19:58:13 +0000 (UTC) Received: (qmail 10861 invoked by uid 60001); 1 Jan 2011 19:58:12 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1293911892; bh=i9/ODwvZh09/gGnLBK+wjKjK4TNw3YNS4YBkKwHFMmg=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=JeypmedteVf/hW8QQljcBxo4JHOtE5l6rd7edlAS/u45T1GadbWkHUpLPHmisOM98dOtWIUgNdLmb13ByLIS1muV3Korhus3lwLDvuDPM3pwf06d4743DdkP82m2oJAFTOk/B6jgmJylqd5nVFaEt1itgSkN4EWR1950Mkny5m8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=5EWYOhPty8w9BNcp+sVtUZXf70TDy1e5OzJxDs5I+wM+lYJ6v17I/LTlgLXzpL4VfYTpIsGsUNcaQDWDZn7SYDWp7eZPEIKXDpS4xY2nLnuuKlHBrvbHzVOVvd/rhoYrvZTiTwQ/XwJjXwdwXZOkD+grFiWerjPiU+YWmVEFsi0=; Message-ID: <745749.9930.qm@web76811.mail.sg1.yahoo.com> X-YMail-OSG: PcNVlN8VM1nSKKEkd.Gi7e7HNj5BNU1pIN9NJtns8Uo0aHV ltfxpJ8c2MAkypevjqD5NJyTAPP3D7p.HMgGWJMXQbcSW59A6k1IFoRw6LnE ffC01D_qHl045PcUJqRjCFQL3OugfbGn6fH5XeXB2p9nT7ySYSYt7Cc1hGqs 86Q8y6LOA7IPQP8CJhKLVs0mdN3dgc8HdYHO0Th7MpAxZ3GFrhFIzEXvH.ob YsnWtwqD4VUAtaWkjgUZnTJ1yEGqJl0r_uGZmrAcNAIvBwb5RKBZa8xNlO6F IMgzt4nYao_drKItrGZfXgljMPv0463mmkXgjqDw7BmTHbLcwI5NF40rN4xy gnxAiOqqGTeSW2wb9wQ-- Received: from [114.57.146.37] by web76811.mail.sg1.yahoo.com via HTTP; Sun, 02 Jan 2011 03:58:12 SGT X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.107.285259 Date: Sun, 2 Jan 2011 03:58:12 +0800 (SGT) From: Darmawan Salihun To: John Baldwin In-Reply-To: <693941.72410.qm@web76815.mail.sg1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: PCI IDE Controller Base Address Register setting X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jan 2011 19:58:14 -0000 --- On Thu, 12/30/10, Darmawan Salihun wrote: > From: Darmawan Salihun > Subject: Re: PCI IDE Controller Base Address Register setting > To: "John Baldwin" > Cc: freebsd-hackers@freebsd.org > Date: Thursday, December 30, 2010, 3:28 PM > --- On Tue, 12/28/10, John Baldwin > > wrote: >=20 > > From: John Baldwin > > Subject: Re: PCI IDE Controller Base Address Register > setting > > To: "Darmawan Salihun" > > Cc: freebsd-hackers@freebsd.org > > Date: Tuesday, December 28, 2010, 2:22 PM > > On Tuesday, December 28, 2010 2:10:59 > > pm Darmawan Salihun wrote: > > > Hi,=20 > > >=20 > > > --- On Tue, 12/28/10, John Baldwin > > wrote: > > >=20 > > > > From: John Baldwin > > > > Subject: Re: PCI IDE Controller Base > Address > > Register setting > > > > To: "Darmawan Salihun" > > > > Cc: freebsd-hackers@freebsd.org > > > > Date: Tuesday, December 28, 2010, 1:52 PM > > > > On Tuesday, December 28, 2010 1:38:05 > > > > pm Darmawan Salihun wrote: > > > > > Hi, > > > > >=20 > > > > > --- On Tue, 12/28/10, John Baldwin > > > > > wrote: > > > > >=20 > > > > > > From: John Baldwin > > > > > > Subject: Re: PCI IDE Controller > Base > > Address > > > > Register setting > > > > > > To: freebsd-hackers@freebsd.org > > > > > > Cc: "Darmawan Salihun" > > > > > > Date: Tuesday, December 28, 2010, > 10:20 > > AM > > > > > > On Monday, December 27, 2010 > 6:07:35 > > > > > > am Darmawan Salihun wrote: > > > > > > > Hi,=20 > > > > > > >=20 > > > > > > > I'm trying to install FreeBSD > 8.0 > > on AMD > > > > Geode LX800 > > > > > > (CS5536 "southbridge").=20 > > > > > > However, it cannot detect the IDE > > controller (in > > > > the > > > > > > CS5536) correctly. It=20 > > > > > > says something similar to this:=20 > > > > > > > "IDE controller not present" > > > > > >=20 > > > > > > Hmm, I can't find a message like > that > > > > anywhere.=A0 Can > > > > > > you get the exact message=20 > > > > > > you are seeing? > > > > > >=20 > > > > >=20 > > > > > It says:=20 > > > > >=20 > > > > > "No disks found! Please verify that > your > > disk > > > > controller is being properly > > > > > probed at boot time." > > > >=20 > > > > Oh, so this is a message from the > > installer.=A0 Can you > > > > capture a verbose dmesg > > > > via a serial console perhaps?=A0=20 > > >=20 > > > I'm not sure if I can do this because I've tried > a > > couple of times=20 > > > but nothing comes out of the serial console. > Perhaps a > > wrong baud rate setting?=20 > > > I set it to 96bps and 8-N-1 back then. Is that > > correct?=20 > >=20 > > Yes, that should be correct.=A0 You have to turn the > > console on however (it is > > not enabled by default).=A0 The simplest way to do > this > > is probably to hit the > > key option to break into the loader prompt when you > see the > > boot menu (I think > > it is option '6').=A0 Then enter 'boot -D' at the 'OK' > > prompt.=A0 This should boot > > with both the video and serial consoles enabled with > the > > video console as the > > primary console.=A0 For a verbose boot, use 'boot -Dv' > >=20 >=20 > Thanks, I tested this option and it worked.=20 > I could see the debugging messages.=20 >=20 > FreeBSD cannot detect the disk in all of the IDE > interfaces.=A0=20 > (The AMDCS5536 only implemented the primary channel) >=20 > Anyway, I manage to change the mapping in BAR4 of the IDE > controller.=20 > However, I'm confused as to how to "force" FreeBSD to > recognize the=20 > IDE controller to work only in compatibility mode.=20 > Because, I'm not sure if the physical IDE controller chip > supports=20 > Native-PCI mode correctly at all.=20 > If I set BAR4 to "disabled"(i.e. not decoding any I/O > addresses at all),=20 > would FreeBSD use compatibility mode? or would it consider > the=20 > IDE controller not present? >=20 > Here's some notes about the IDE controller PCI > configuration registers: > 1. The Programming Interface register contains 80h (which > means _only_=20 > compatibility mode supported). I have yet to be able to > write new values=20 > into this register. That's the state of the register right > now.=20 > I noticed in your previous reply that for FreeBSD to be > forced to use=20 > compatibility mode, the programming interface register bits > in the PCI configuration register must be set accordingly=20 > (I suppose the bits in the lower nibble). >=20 > 2. BAR0-BAR3 cannot be changed and contains 00h.=20 > I have yet to experiment with BAR5.The default value is > 00h >=20 Silly me that I didn't know about the SFF-8038i standard=20 (PCI IDE Bus mastering). So, I found out that it seems the=20 allocation of I/O ports for the IDE controller is just fine.=20 However, the primary IDE channel is shared between=20 an IDE interface and a CF card. Moreover, Linux detects=20 DMA bug, because all drives connected to the interface would be=20 in PIO mode :-/ If all drives on the primary channel are "forced" to PIO mode, then=20 shouldn't the "IDE PCI bus master register" (offset 20h per SFF-8038i) along with the command register (offset 4h), are set to indicate the=20 controller doesn't support bus mastering?=20 TIA,=20 Darmawan=0A=0A=0A