Received: by 10.213.65.68 with SMTP id h4csp3303784imn; Mon, 9 Apr 2018 18:39:01 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/0uvUdH4ASSl9RtvtMe3Uyerek8qm/8xr5qnYZ3kKSLQ1ck/hGiSiZPxmAsOCxe/FCIS00 X-Received: by 10.101.98.72 with SMTP id q8mr26484516pgv.338.1523324341661; Mon, 09 Apr 2018 18:39:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523324341; cv=none; d=google.com; s=arc-20160816; b=Tl0tnwF+04LMX4bwBKiDOrWQbIgFR8qnz/kT3jqaOpDpAezC6t+STJKQjFG0iPaLtL AUDWPh0+iiuXFtpLXvUoI4zqBqWr+bLuSOBj9qCMmR0zaAnT0wf5Jf5LELEmI0LIwILL CQdxKVghrszFFv8D7uKjVKnmYa6i7h4DrV3ml2vHqOVH5PpF+8jTs0G+zaxwCteG2iIn 1a/1cgwZ8zT1aLOHsrQxZ8/JbyTcUzM3fe0XcqWMJ1NxYyQiHg6OIykubaKqvqGATq2U fHGsMwPKShDHsG4FJJPgqsy6A7hGKGLjnjIb5c2lGSp0PbzV1bddORu5NocmLtJT9Eqx QvpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date:arc-authentication-results; bh=Rw+R393UgeNSjz2b5if/sTx6TtpIIQzATvP3+3bkNbQ=; b=orZCKRhX6IQED7/1LyxeMmlZAD5S6sBodBjsNSI6p+m1WlFnPqPXG496BCzpqmdE6b cJG/QfPnDXnkfDOVYGqJLQvcn8OJkuLfxDHMSkCUIEBK6zek7d1u/jjXZvqnw7+wgv+3 mLbvBCVQasjMrKvj/0DEgp7o2JKueqrQ6Z1eRevKJQMJFBGyf1joqBzg1aNaf2lQ7+RN tuATmzDYdUW6rUNuBP8NKmNZoKd5s1uC/pA37mJwGdUnD2r76b+8Yxvrcgs+dWDZwfOw u5fgbrLXXQPWNL4aQPxom7Qp75rf7jAnAHlGOBtiRtUvWef2KTd2czlDRw660hhETRis WkVA== 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 h6-v6si1479162pln.61.2018.04.09.18.38.24; Mon, 09 Apr 2018 18:39:01 -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 S1751918AbeDJBf1 (ORCPT + 99 others); Mon, 9 Apr 2018 21:35:27 -0400 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:42212 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751767AbeDJBf0 (ORCPT ); Mon, 9 Apr 2018 21:35:26 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by kvm5.telegraphics.com.au (Postfix) with ESMTP id 5E2AB29635; Mon, 9 Apr 2018 21:35:15 -0400 (EDT) Date: Tue, 10 Apr 2018 11:35:13 +1000 (AEST) From: Finn Thain To: Geert Uytterhoeven cc: Laurent Vivier , Jens Axboe , linux-m68k , Linux Kernel Mailing List Subject: Re: [PATCH 03/12] m68k/mac: Don't remap SWIM MMIO region In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 9 Apr 2018, Geert Uytterhoeven wrote: > Hi Finn, > > On Sun, Apr 1, 2018 at 3:41 AM, Finn Thain > wrote: > > For reasons I don't understand, calling ioremap() then iounmap() on > > the SWIM MMIO region causes a hang on 68030 (but not on 68040). > > Michael Schmitz also notices strange things with ioremap() on '030. > > > There's no need to call ioremap() for the SWIM address range, as it > > lies within the usual IO device region at 0x5000 0000, which is > > already mapped. > > by head.S, right? > Right. I'll mention that in the commit log when I re-submit this series. > > --- a/drivers/block/swim.c > > +++ b/drivers/block/swim.c > > @@ -911,7 +911,7 @@ static int swim_probe(struct platform_device *dev) > > goto out; > > } > > > > - swim_base = ioremap(res->start, resource_size(res)); > > + swim_base = (struct swim __iomem *)res->start; > > I guess you need a __force to please sparse? > No, sparse did not find any new issues. It appears there's an old issue elsewhere in the driver though. I'll prepare a new patch for that. -- > Gr{oetje,eeting}s, > > Geert > > --