From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 03 Nov 2009 00:54:17 +0100 (CET) Received: from out4.smtp.messagingengine.com ([66.111.4.28]:50879 "EHLO out4.smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by ftp.linux-mips.org with ESMTP id S1493961AbZKBXyL (ORCPT ); Tue, 3 Nov 2009 00:54:11 +0100 Received: from compute1.internal (compute1.internal [10.202.2.41]) by gateway1.messagingengine.com (Postfix) with ESMTP id 652D4BE49D; Mon, 2 Nov 2009 18:54:09 -0500 (EST) Received: from web8.messagingengine.com ([10.202.2.217]) by compute1.internal (MEProxy); Mon, 02 Nov 2009 18:54:09 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=message-id:from:to:cc:mime-version:content-transfer-encoding:content-type:in-reply-to:references:subject:date; s=smtpout; bh=3fA6qLwogNQIr5/OdupuPfyakQk=; b=aC91UXON69tfLkkFFIN6Nbdf7trptqTpi2AAyG+4oWdU38Iil6I68A7GtbINwbl2J1bgbJwY6goAaIctJtpeXSfN0CgP4tlxjQ1asCGoQyeDt6ex4qKyOEs7ABL5976rBH+2cTCZZ9Rly/u6ZZi7XxqMeDmAlIrpplEBz1J2zhQ= Received: by web8.messagingengine.com (Postfix, from userid 99) id 2B50D16666; Mon, 2 Nov 2009 18:54:09 -0500 (EST) Message-Id: <1257206049.25795.1343240289@webmail.messagingengine.com> X-Sasl-Enc: X/hn4I7LZwVTOOyezzJ0exHVb2NtTGq6VqE9625qpp7R 1257206049 From: myuboot@fastmail.fm To: "Shmulik Ladkani" Cc: "Sergei Shtylyov" , "Florian Fainelli" , linux-kernel@vger.kernel.org, "linux-mips" , shmulik@jungo.com MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <20091029102652.76d42b8c@pixies.home.jungo.com> References: <1255735395.30097.1340523469@webmail.messagingengine.com><4AD906D8.3020404@caviumnetworks.com><1255996564.10560.1340920621@webmail.messagingengine.com><200910200817.24018.florian@openwrt.org><1256676013.24305.1342273367@webmail.messagingengine.com><20091028103551.0b4052d8@pixies.home.jungo.com><4AE82520.4090607@ru.mvista.com><1256758575.4093.1342456105@webmail.messagingengine.com> <20091029102652.76d42b8c@pixies.home.jungo.com> Subject: Re: serial port 8250 messed up after coverting from little endian to big endian on kernel 2.6.31 Date: Mon, 02 Nov 2009 17:54:09 -0600 Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 24624 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: myuboot@fastmail.fm Precedence: bulk X-list: linux-mips The CONFIG_SWAP_IO_SPACE was set to Y, but I don't even see it using xconfig or menuconfig. So I set it manually to n into .config file and then did a compile - I am using buildroot. But somehow the value always comes back to y after I type in command "make". The kernel image still messes up the console after the console is handovered from early printk to really ttyS01. Thanks. On Thu, 29 Oct 2009 10:26 +0200, "Shmulik Ladkani" wrote: > On Wed, 28 Oct 2009 14:36:15 -0500 myuboot@fastmail.fm wrote: > > I just tried UPIO_MEM32 without adding a offset of 3. But the result is > > bad - after the kernel initializes the serial console, the console print > > out messes up. The early printk is fine because the u-boot initialises > > the serial port fine. > > > > Did I miss anything? Thanks again for your help. > > I guess you did fine with UPIO_MEM32. > > Keeping the UPIO_MEM32 approach, I suggest also to fiddle Y/N with > CONFIG_SWAP_IO_SPACE (might be that you have it set to Y while you don't > really need it, or vice versa). > This is since 'readl' uses 'ioswabl' for (potential) byte-swapping of the > read > value. Take a look at asm/io.h and mangle-port.h. > > Most important, read your hardware documentation to determine correct > access > to the memory mapped serial registers. > > -- > Shmulik Ladkani Jungo Ltd.