From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VQMQl-0002oo-Md for mharc-qemu-trivial@gnu.org; Sun, 29 Sep 2013 15:13:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQMQg-0002eB-0K for qemu-trivial@nongnu.org; Sun, 29 Sep 2013 15:13:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VQMQb-0002Ln-HI for qemu-trivial@nongnu.org; Sun, 29 Sep 2013 15:13:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:8945) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQMQS-0002KV-A8; Sun, 29 Sep 2013 15:13:04 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r8TJClTO005378 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 29 Sep 2013 15:12:47 -0400 Received: from yakj.usersys.redhat.com (ovpn-112-30.ams2.redhat.com [10.36.112.30]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r8TJCdWS013943; Sun, 29 Sep 2013 15:12:40 -0400 Message-ID: <52487BAB.4010703@redhat.com> Date: Sun, 29 Sep 2013 21:12:43 +0200 From: Paolo Bonzini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130923 Thunderbird/17.0.9 MIME-Version: 1.0 To: Guenter Roeck References: <1378625945-15525-1-git-send-email-linux@roeck-us.net> <5233E059.8090402@roeck-us.net> In-Reply-To: <5233E059.8090402@roeck-us.net> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Peter Maydell , qemu-trivial , Michael Tokarev , qemu-devel@nongnu.org, Rob Landley Subject: Re: [Qemu-trivial] [PATCH] sh4: Fix serial line access for Linux kernels later than 3.2 X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Sep 2013 19:13:22 -0000 sh4 is ~orphan so nobody should complain if qemu-trivial picks this up as well. Paolo Il 14/09/2013 06:04, Guenter Roeck ha scritto: > On 09/08/2013 12:39 AM, Guenter Roeck wrote: >> With Linux kernel version 3.3 or later, qemu fails with the following >> message: >> >> sh_serial: unsupported read from 0x18 >> Aborted >> >> Reported-and-analyzed-by: Rob Landley >> Signed-off-by: Guenter Roeck > > ping ... > >> --- >> See http://lists.nongnu.org/archive/html/qemu-devel/2012-07/msg03870.html >> for Rob's analysis of the problem. Unfortunately, the patch never made it >> into qemu. >> >> hw/char/sh_serial.c | 2 -- >> 1 file changed, 2 deletions(-) >> >> diff --git a/hw/char/sh_serial.c b/hw/char/sh_serial.c >> index 6223a55..9328dd1 100644 >> --- a/hw/char/sh_serial.c >> +++ b/hw/char/sh_serial.c >> @@ -248,11 +248,9 @@ static uint64_t sh_serial_read(void *opaque, >> hwaddr offs, >> s->flags &= ~SH_SERIAL_FLAG_RDF; >> } >> break; >> -#if 0 >> case 0x18: >> ret = s->fcr; >> break; >> -#endif >> case 0x1c: >> ret = s->rx_cnt; >> break; >> > From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQMQX-0002Zk-9y for qemu-devel@nongnu.org; Sun, 29 Sep 2013 15:13:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VQMQS-0002Ka-HV for qemu-devel@nongnu.org; Sun, 29 Sep 2013 15:13:09 -0400 Message-ID: <52487BAB.4010703@redhat.com> Date: Sun, 29 Sep 2013 21:12:43 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1378625945-15525-1-git-send-email-linux@roeck-us.net> <5233E059.8090402@roeck-us.net> In-Reply-To: <5233E059.8090402@roeck-us.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] sh4: Fix serial line access for Linux kernels later than 3.2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Guenter Roeck Cc: Peter Maydell , qemu-trivial , Michael Tokarev , qemu-devel@nongnu.org, Aurelien Jarno sh4 is ~orphan so nobody should complain if qemu-trivial picks this up as well. Paolo Il 14/09/2013 06:04, Guenter Roeck ha scritto: > On 09/08/2013 12:39 AM, Guenter Roeck wrote: >> With Linux kernel version 3.3 or later, qemu fails with the following >> message: >> >> sh_serial: unsupported read from 0x18 >> Aborted >> >> Reported-and-analyzed-by: Rob Landley >> Signed-off-by: Guenter Roeck > > ping ... > >> --- >> See http://lists.nongnu.org/archive/html/qemu-devel/2012-07/msg03870.html >> for Rob's analysis of the problem. Unfortunately, the patch never made it >> into qemu. >> >> hw/char/sh_serial.c | 2 -- >> 1 file changed, 2 deletions(-) >> >> diff --git a/hw/char/sh_serial.c b/hw/char/sh_serial.c >> index 6223a55..9328dd1 100644 >> --- a/hw/char/sh_serial.c >> +++ b/hw/char/sh_serial.c >> @@ -248,11 +248,9 @@ static uint64_t sh_serial_read(void *opaque, >> hwaddr offs, >> s->flags &= ~SH_SERIAL_FLAG_RDF; >> } >> break; >> -#if 0 >> case 0x18: >> ret = s->fcr; >> break; >> -#endif >> case 0x1c: >> ret = s->rx_cnt; >> break; >> >