Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp647584ybl; Fri, 16 Aug 2019 01:37:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIm+7mUAoF1w31Rht0HiUo4p0g028E9Cfqb4Q79Xj9ROj2BgnY95XKd3LqVgy6JWqdpIVJ X-Received: by 2002:a17:902:b28b:: with SMTP id u11mr7810763plr.11.1565944646858; Fri, 16 Aug 2019 01:37:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565944646; cv=none; d=google.com; s=arc-20160816; b=R6gh/JDAEEIhHgPY3q41sMu66Vsk0JVbIZCrNz1cM6i/UwedG13JMZREt1H2bmRAi9 1quoMrLkTVmkPSG0A3/G6jh0Dsvba34APc8I4rq/t3bWWmzjjBp9SwmcerqjSKtT1Inx ZcLWNBvT96HmtCbZoRXPNfPuUmGWYqhVdJJH12t4gSq7FjOb/EdRp3O6AdPOSKpXOotv j0Ygx5tsSk0ptkEfiJnW0WQ6yJLWmz10LInxbEhBThY1u71iwQbx5JM9oAsx9LwzzHbo zeUKwbaNWfrezGh50fBcq7M/aB2Np6os7XOtXM6OAPyzAaIdKwRvTXa3aTXhhYCe6AJS dvIQ== 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=x1mHUCFmenhgPh7exjOyRc+jkqPuHOMlKa9TYZomle4=; b=MTUP1WTZODZoW6xSHgV4qrm+ayisCkTA30QGlLa6t82QXbnjlMVVzUmVxXMBlIsCuN Fr8Urp84YHe2grPiKbt0bb761reIXZ6tdQvUmQUGq5NhRbzyzjc5lBi2mX5UczuwKr87 PHCLpgDdlsp75CR8Y9tmRzl5hwwrSmgIXjU0JY5yzeUVbw/JQT19tf8sxSrPElSu6XKJ 3lH2LxukFIQoLP+XEpdzJf2CzpRhP8lG6lCLOmV0xtIEhnBafZlt2gr8KoohbzoUSx/V Z40sOxcMxerb1H2yZaqp6Q6ZeijvTU9y7O2mVdCfqb+qszT+atnTfT6xHyu3bxMmY26+ gjwQ== 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 t18si3533126plo.328.2019.08.16.01.37.09; Fri, 16 Aug 2019 01:37:26 -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 S1727092AbfHPIeI (ORCPT + 99 others); Fri, 16 Aug 2019 04:34:08 -0400 Received: from emh01.mail.saunalahti.fi ([62.142.5.107]:49476 "EHLO emh01.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726482AbfHPIeI (ORCPT ); Fri, 16 Aug 2019 04:34:08 -0400 Received: from darkstar.musicnaut.iki.fi (85-76-65-201-nat.elisa-mobile.fi [85.76.65.201]) by emh01.mail.saunalahti.fi (Postfix) with ESMTP id 4776820418; Fri, 16 Aug 2019 11:34:04 +0300 (EEST) Date: Fri, 16 Aug 2019 11:34:03 +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: <20190816083403.GB1952@darkstar.musicnaut.iki.fi> References: <20190808212234.2213262-1-arnd@arndb.de> <20190808212234.2213262-15-arnd@arndb.de> <20190813103605.GL52127@atomide.com> <20190813181158.GA26798@darkstar.musicnaut.iki.fi> <20190814074918.GA52127@atomide.com> 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 14, 2019 at 12:36:40PM +0200, Arnd Bergmann wrote: > On Wed, Aug 14, 2019 at 9:49 AM Tony Lindgren wrote: > > * Arnd Bergmann [190813 19:34]: > > > -#define OMAP1_IO_OFFSET 0x01000000 /* Virtual IO > > > = 0xfefb0000 */ > > > +#define OMAP1_IO_OFFSET 0x00fb0000 /* Virtual IO > > > = 0xff000000 */ > > > #define OMAP1_IO_ADDRESS(pa) IOMEM((pa) - OMAP1_IO_OFFSET) > > > > Oh OK yeah sounds like that's the issue. > > > > > There may be additional locations that hardcode the virtual address. > > > > Those should be in mach-omap1/io.c, and I recall innovator had some > > hardcoded fpga address that should also be checked. > > I see four boards with hardcoded I/O addresses, but they are all below > the PCI I/O virtual address range, and are not affected by that change. > > For the innovator FPGA access, this was ok, it uses the correct address > in the OMAP1_IO_OFFSET range. I tried testing this on OSK board. If I boot with earlyprintk disabled, it boots OK and everything works (also CF card) with your playground commit 5723b6686943. 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? A.