From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=44295 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P67Vh-0000kP-S3 for qemu-devel@nongnu.org; Wed, 13 Oct 2010 16:01:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P67Ge-0006AV-Gg for qemu-devel@nongnu.org; Wed, 13 Oct 2010 15:45:41 -0400 Received: from mail-qw0-f45.google.com ([209.85.216.45]:58458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P67Ge-0006AR-DA for qemu-devel@nongnu.org; Wed, 13 Oct 2010 15:45:40 -0400 Received: by qwh5 with SMTP id 5so2827611qwh.4 for ; Wed, 13 Oct 2010 12:45:39 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20101013191250.GA59919@triton8.kn-bremen.de> References: <201010122134.o9CLYoxu005707@triton8.kn-bremen.de> <4CB4DA82.3080805@codemonkey.ws> <20101013032837.GA14923@triton8.kn-bremen.de> <20101013191250.GA59919@triton8.kn-bremen.de> From: Blue Swirl Date: Wed, 13 Oct 2010 19:45:19 +0000 Message-ID: Subject: Re: [Qemu-devel] [PATCH] (master, stable-0.13) zaurus: workaround for io base address rounded down Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juergen Lock Cc: qemu-devel@nongnu.org On Wed, Oct 13, 2010 at 7:12 PM, Juergen Lock w= rote: > The 2nd scoop's base address (0x08800040) now gets rounded down to > start of page which causes its io read/write callbacks to be passed > addresses 0x40 higher than the code expects: =C2=A0(as witnessed by > "Bad register offset" messages and failure to attach the internal > CF disk aka microdrive at least.) > > [There may be more bugs of this kind hiding in other targets, this > =C2=A0was just the one I tested...] The devices are passed an offset to base address. Perhaps the real problem is that scoop_init registers too much MMIO: 0x1000, when the real range should be only 0x28. Also the registers are in 4 byte intervals and any access to address between the registers also triggers a warning. What were the messages exactly?