Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1224444ybl; Wed, 28 Aug 2019 11:24:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDzM6Vu9nfPPtHBNuGDdIFHN1F1ILXOB3n31wbYKZNeuqZu3DUwr9KTc5JT99l1QqT0Wj+ X-Received: by 2002:aa7:957a:: with SMTP id x26mr3259615pfq.16.1567016673152; Wed, 28 Aug 2019 11:24:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567016673; cv=none; d=google.com; s=arc-20160816; b=JyscYytb4JRHUMFpD5oQ61wdzSZmizcP7cecQiKj6ERq8OnrlGemrLfFB2XU3JyKL4 /Zx8zQw6PjwAU+uDTwgHJf6AA2cJNfXo1pAEhrpMwcBSHqxZ6f1jUe3hQWfYJ13jFCoF ujMXNmRqu/TpN8a2GCYXOsOCuNHq7m9KIxl+aDrIxHESwGjJ3eJ4b8SNCFWQretwFiER vz5PMKKAHOdOA347s9GLE9UviC7lYPXFkvp9B7cOYxftPV4EhYX8TMyRr+LaxR+3UqzZ zrBjQUL8yni+g1giELyR3NunKNOp3XeU7J0ErR8oIgLxwWT0613/zYkPI3ImvkJE72PW TqWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=C0j5cwzxzNvKa2W9rnl9Pdr6Jmg7sBvoLzePs3PzC/g=; b=LhNb8m5zF7oPzyIUTth3NT/a82SbfNCplOyievlr7liL/0mQrNV1gXZa2Cb7lwopBs 5en6F7u4U4rhtrZpmyh0c9kvRJZpsVY2xo5rXWIUBtLVC8OktIGFWsHWT2MFFpSADC9C 0sCMoiAZ+HGed9+PSnHZkdhpOipvWqsIKVTA7o95kqXee8HEEZqVJdxap7cllMo6KdlO zexYc0/HZL/QDR4eDtQmT1HTZ86kkCoqEkOl+1Ra+JIhhMEGV8WRmW0v2j3SV5Jp+RCA MCa0KZxEqNFIjf39sux1WciLXQB9hcFdGAWQPS/K82MmFP1ug01zefO/Rct2IpD+wcQJ thRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c11si2486205pll.131.2019.08.28.11.24.16; Wed, 28 Aug 2019 11:24:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726591AbfH1SXY (ORCPT + 99 others); Wed, 28 Aug 2019 14:23:24 -0400 Received: from emh04.mail.saunalahti.fi ([62.142.5.110]:41908 "EHLO emh04.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726315AbfH1SXX (ORCPT ); Wed, 28 Aug 2019 14:23:23 -0400 Received: from darkstar.musicnaut.iki.fi (85-76-76-175-nat.elisa-mobile.fi [85.76.76.175]) by emh04.mail.saunalahti.fi (Postfix) with ESMTP id 40CF5300A0; Wed, 28 Aug 2019 21:23:19 +0300 (EEST) Date: Wed, 28 Aug 2019 21:23:19 +0300 From: Aaro Koskinen To: Arnd Bergmann Cc: Tony Lindgren , Dominik Brodowski , linux-omap , Linux ARM , Greg Kroah-Hartman , Linus Walleij , Bartlomiej Zolnierkiewicz , Tomi Valkeinen , Linux Kernel Mailing List Subject: Re: [PATCH 14/22] ARM: omap1: use pci_ioremap_io() for omap_cf Message-ID: <20190828182318.GL30291@darkstar.musicnaut.iki.fi> References: <20190813103605.GL52127@atomide.com> <20190813181158.GA26798@darkstar.musicnaut.iki.fi> <20190814074918.GA52127@atomide.com> <20190816083403.GB1952@darkstar.musicnaut.iki.fi> <20190827190453.GJ30291@darkstar.musicnaut.iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, Aug 28, 2019 at 03:02:36PM +0200, Arnd Bergmann wrote: > On Tue, Aug 27, 2019 at 9:05 PM Aaro Koskinen wrote: > > On Tue, Aug 27, 2019 at 06:33:01PM +0200, Arnd Bergmann wrote: > > > On Fri, Aug 16, 2019 at 10:34 AM Aaro Koskinen wrote: > > > > However with earlyprintk it seems to hang as soon as kernel tries to print > > > > something. So something goes wrong with early DEBUG_LL mapping code when > > > > CONFIG_DEBUG_UART_VIRT=0xff000000 is used? > > > > > > I just redid the calculation and came out with the same address, so I > > > don't think I put the wrong one there. The address also does not > > > conflict with the PCI mapping, and the address is the same one that > > > is installed later, so that should also be fine. > > > > > > Are you sure you used the correct address in the .config file? If you > > > ran 'make oldconfig', the virtual address would not be changed here > > > as I just modify the default for a fresh 'make omap1_defconfig' > > > run or similar. > > > > Yes... You should be able to try this out also in QEMU to see the hang: > > Haven't tried yet, but I took a look at the dump: > > > $ qemu-system-arm -M sx1 -kernel sx1-zImage -nographic > > > > [ Hangs silently, press Ctrl-a c to enter monitor. ] > > > > QEMU 4.1.0 monitor - type 'help' for more information > > (qemu) info registers > > R00=c0379de1 R01=0000005b R02=00000000 R03=ff000000 > > R04=00000000 R05=00000031 R06=c038f119 R07=00000000 > > R08=00000000 R09=c038f50e R10=600001d3 R11=00000001 > > R12=00000010 R13=c0379de0 R14=c000e07c R15=c000dfcc > > PSR=000001d3 ---- A svc32 > > FPSCR: 00000000 > > > > from System.map: > > c000df7c T printascii > > c000dfe0 T printch > > Ok, that is clearly the "busyloop" macro in > arch/arm/include/debug/8250.S, checking if the data got sent. > > The 'r2' register contains zero, so UART_LSR_TEMT and > UART_LSR_THRE are not set, but presumably the mapping > was installed right since you did not get a page fault. > > I assume you checked that the uart output wasn't already broken > by one of the earlier patches, right? Correct, it's only with the mapping change patch it hangs. > Also, looking at arch/arm/mach-omap1/include/mach/uncompress.h > it seems that SX1 normally uses UART3, not UART1. > Is that different in qemu? In QEMU all uarts can be used, trying with UART3 as early console hangs as well. (It prints Uncompressing... done. but I guess that's done with the physical address.) A.