Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp875157ybl; Tue, 13 Aug 2019 04:06:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjCNdTWWKGCtO3tucnCqUHkMQ2ObWbJjOtJrasMhD4xy0lXCTeI210gh+T4upugPqXeeI4 X-Received: by 2002:a17:902:6b0c:: with SMTP id o12mr36233617plk.113.1565694415895; Tue, 13 Aug 2019 04:06:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565694415; cv=none; d=google.com; s=arc-20160816; b=D9PIC+DlymnSDPzw4RDxBC6tXMvzvW9DVN3GNEulQafWweGSR6qLKjwQyYGxdljBqe SCFpNtrZ1rtoSA4oK9G2X3qHELUsFxhyZy5bvo1GWElAPlQGgpzztA4Qdg+1gMEwGMF2 pEXKwNjGkz6fivzuhoTWgl9sBfcb3Z3ivVK339KAbdjgd8KZ96GQ1rBaARmJuxwTG5Xl lMYT637kO8pNzw+8Bqrcg33XV06UhJ8IHsYh3fc6ed8pLB25XbdCmnXgi9rxCLWim7Es b+KL0QVP9PuiR29dSkzk8gjyywYbmWXp86+MVlftXUfB1gXoZBTZ/FKuetidl2fOOXLm 1wew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=WIVPRunU/w1dyBYpE62jjyhKpZiqDaIeAA95Lfp6mlw=; b=A5cLzBr1m789jWid+cHtMlU4QJ926hQL4+Yk56XKQZQMD27b22ykXRv//J9y2eKPcZ IN4Q0CQ8YDm6JqiyiE3vs2ZzqzQi08srXnps1P2h/qNm629sZN++H6+fIbpgo8tmsph8 VHNa4TP4n/4Vdy4AKoslvHChf543KiAgZ/QgxzSuF+Y/hSdgjNazYEvUwgfZkC3SQJqM 0Dyxn+/0Gy3Tk/A5eNjOK3qrXpKDVpKPjLTK4oAkBLlg59dpeRn+raCXMVavXNRbHk5d +/ia/TvmBOmigMXhUZyKxVfRrQoIWyt7r57DBJ/U1da4JJQXmYb63niZL8i9ptP5LHsf zD1g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5si11660867pfq.86.2019.08.13.04.06.40; Tue, 13 Aug 2019 04:06:55 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728575AbfHMLCg (ORCPT + 99 others); Tue, 13 Aug 2019 07:02:36 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:34118 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726900AbfHMLCf (ORCPT ); Tue, 13 Aug 2019 07:02:35 -0400 Received: by mail-qk1-f193.google.com with SMTP id m10so4086812qkk.1; Tue, 13 Aug 2019 04:02:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WIVPRunU/w1dyBYpE62jjyhKpZiqDaIeAA95Lfp6mlw=; b=ZEudSP3Rw+qf2YvMwh5BDUd1UJgkmAtYV7pZokIHc27y3Px7SF4IJ3bB8RQHAGHsno Q+dPaa2AKkRutdAEhGgg7GCTcEWtG/xWU9KbKUZ+0HmhHH3mWz3aexD0fh6+x+YEC8ma PqDO5vlUKJkPwOAwKUo8E3eG3OSqwsc294aJ93CHtrUJ0mzWFzlizrWoJ52IBzCoBVep crW2F7pkqO8CmtzcCCeJL12gZeyXSP/kTLp2bcQL/oHAXKSagosQkO2SK8Q4lFZUGamN P8hmUlfU+XA/rRJXKCJ09VsrAyQtyHbPygzdI5jQG/i/dEdd8KVlQugqEahSVZuAdSyY GGKw== X-Gm-Message-State: APjAAAVHPSleOEVHabzPjwy9z2iVk4XBYaHDp5J1V3pF2J3XZ/g2roLU NmGM0fAcxSxs6ajtvfTDekE2u/avrInGblb3Gtg= X-Received: by 2002:a05:620a:b:: with SMTP id j11mr33354187qki.352.1565694153731; Tue, 13 Aug 2019 04:02:33 -0700 (PDT) MIME-Version: 1.0 References: <20190808212234.2213262-1-arnd@arndb.de> <20190808212234.2213262-15-arnd@arndb.de> <20190813103605.GL52127@atomide.com> In-Reply-To: <20190813103605.GL52127@atomide.com> From: Arnd Bergmann Date: Tue, 13 Aug 2019 13:02:16 +0200 Message-ID: Subject: Re: [PATCH 14/22] ARM: omap1: use pci_ioremap_io() for omap_cf To: Tony Lindgren Cc: Aaro Koskinen , Dominik Brodowski , linux-omap , Linux ARM , Greg Kroah-Hartman , Linus Walleij , Bartlomiej Zolnierkiewicz , Tomi Valkeinen , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 13, 2019 at 12:36 PM Tony Lindgren wrote: > * Arnd Bergmann [190808 21:34]: > > The ISA I/O space handling in omap_cf is incompatible with > > PCI drivers in a multiplatform kernel, and requires a custom > > mach/io.h. > > > > Change the driver to use pci_ioremap_io() like PCI drivers do, > > so the generic ioport access can work across platforms. > > > > To actually use that code, we have to select CONFIG_PCI > > here. > > > > Signed-off-by: Arnd Bergmann > > Looks like this series boots for me on 5912osk up to this > patch Ok, that's something. Thanks for testing! >, but this patch breaks booting somehow. > > Any ideas for fixes? I can think of multiple possible issues: - I force CONFIG_PCI to be enabled here in order to keep the asm/io.h logic unchanged. If PCI support in itself is an issue, then turning on CONFIG_PCI without the rest of this patch should also break. - I see that osk is the one board that actually has a CF slot. If it crashes while trying to access a CF device, then I most likely screwed up the I/O port mapping itself, so it uses the wrong virtual and/or physical address for the access. - I made on the assumption that only CF devices use inb/outb on any OMAP1 machine. If there is a driver that uses inb/outb instead of readb/writeb, it would have worked by chance before but stopped working now. Arnd