From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Scholz Subject: Re: HPA and failed opcode was: 0x37 ? Date: Wed, 31 Jan 2007 14:08:55 +0100 Message-ID: <45C094E7.7040500@imc-berlin.de> References: <45BF5003.3000503@imc-berlin.de> <20070130164401.295f9913@localhost.localdomain> <45BF7658.1090204@imc-berlin.de> <20070130172629.70ad628d@localhost.localdomain> <45BF7E21.7010605@imc-berlin.de> <20070130180727.594b35d0@localhost.localdomain> <45BF88B9.3050802@imc-berlin.de> <45BF8F33.3070008@ru.mvista.com> <311601c90701301156nb135de6g996eaff8b2f95a6c@mail.gmail.com> <45C0536F.5020005@imc-berlin.de> <45C09172.1030304@ru.mvista.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mail.imc-berlin.de ([217.110.46.186]:4324 "EHLO mail.imc-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933238AbXAaNI5 (ORCPT ); Wed, 31 Jan 2007 08:08:57 -0500 In-Reply-To: <45C09172.1030304@ru.mvista.com> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Sergei Shtylyov Cc: "Eric D. Mudama" , linux-ide@vger.kernel.org Sergei, >> The FPGA does nothing except decoding adresseses from the ARM cpu, >> controlling the A[2..0], CS[1..0], IOR, IOW lines of the HDD. > > I've not seen you quoting the code that sets ofsset for the > IDE_CONTROL_REG, BTW... Without this register, LBA48 is completely broken for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) { hw.io_ports[i] = ide_virt_base + (i << 1); } hw.io_ports[IDE_CONTROL_OFFSET] = ide_virt_base + 0x10; Thus it has an offset 0x10 from the base address. ide0 at 0xc3856000-0xc3856007,0xc3856010 on irq 27 But I just noticed that A[2..0] should look like "110" when accessing the "Device Control Register". Thus the offset should be 0x16 instead! Right? -- Steven