Received: by 10.213.65.68 with SMTP id h4csp2581284imn; Mon, 9 Apr 2018 05:58:16 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+gM0TSQm0J3MqryBpbP4HvIpvjXLm+EBPdr/CUOOd3kmtvbYcFXD8+HffZIAH6rm2HzArC X-Received: by 2002:a17:902:9893:: with SMTP id s19-v6mr1444052plp.304.1523278696792; Mon, 09 Apr 2018 05:58:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523278696; cv=none; d=google.com; s=arc-20160816; b=NHjJ5CEqjyE+rhZLgRy2chyeBTgq5eirZCMPRsz/mq8w7r3XUswemF/sxwPpThw6E/ KbvrUQrBiLzuaTQ6VF6BPptywzd0kNdL8OelGxuMy/Ug0V6EKspPRIghIvrl+CF3hQiU rpyEYdllBNsrigis1gYizty7DsflJlZQqui5JiHn6ovFZdBt9xD6NtVB162RfYOW9nJS VLSWQsYIIaEEn2htjLKX36eMySwJe6XCls9vn0lA/HaWUWuT6Dcx4uOxY1YVRGA8NMiE +fD3msx5TufxX0ncLCiBxq2glw7X7FlLeBqLVhDxnNe1fngPKKSM/NxOG+z6ch/B7vKE LBaA== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=fGEwhEsT9HOfIl3GVSAauGiAbgI3dMHBHmd9X9rxqiU=; b=F//TfqQozb9N2Ij0HAJz122288NGTmApZPp75BYViwBaa/r+NVsMKKkBqcVvNLiILU 32DwtYvJ+Jp7q5QUIRZXratFPmuu0i7QN83MqlQ4HPL+vYym7inqbugMkSdN4JHehSJ5 +7vsKNidjwh+/E6sj9ajhhrhngaER1wDwEs/1P6y36t9ReFweaDUA5fN0FXAl+aaZX1+ JMc11wAiEQLgtBwdjTF3fKWRMyna/W6MR/JAc46m2fA5W2CvgAdgMCtM1rkm80PS+Zqc pZ/T89xL6T7Q5jQni97+Uv4gZwxWD9+NfiYTcwlFSAzouUk9A08aFEj2Zllkbxhsyhbf 09WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=BSVGB4k2; 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 e13si199583pff.238.2018.04.09.05.57.39; Mon, 09 Apr 2018 05:58:16 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=BSVGB4k2; 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 S1751877AbeDIMyd (ORCPT + 99 others); Mon, 9 Apr 2018 08:54:33 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:46999 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751522AbeDIMyb (ORCPT ); Mon, 9 Apr 2018 08:54:31 -0400 Received: by mail-qk0-f195.google.com with SMTP id p67so9072407qke.13 for ; Mon, 09 Apr 2018 05:54:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=fGEwhEsT9HOfIl3GVSAauGiAbgI3dMHBHmd9X9rxqiU=; b=BSVGB4k2Kf49vkvEn6vlqEtWyibEgFtSZN7CVi+VYpWrWxKUnrT9c6X5hzjRe0hing mXgqcRyDJAk9Gv4ZDVWhW0a+bu+7Sd9qAS0AhLFjD7hswTnULkH5QlllGf8PbAsOM3kc b8QUX11LTzQ7rf/AulrCqxck+EecmtQ0PXs/qIkjEvhv8cKT5F1qoN44R1EzXshdLCQ7 8YK9Vm9BG7PFGjkmpVQX5X0hoODsXj+2t1tHLrmbj9P/WESOUaieXd0kGZSL660fjlh1 Ms16KDcbwuBmsCch0x9EfVehMn/PQK0GL5OR/TpUC8lu5YzeplEkdXnOM1R8lbAzzRjK BY4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=fGEwhEsT9HOfIl3GVSAauGiAbgI3dMHBHmd9X9rxqiU=; b=Fm/MQJVeUoFDJ4QSbrDcdjEmFi114z1xrJ5DzEtZxKPK7qRGK+hJPWSGdccHG+rh5Z Q83zG7Av8/jn+swcUGTwRb52bHaJZpSa7iyHw7zx+qPTGoTw/XLmi94MxBfTAnJJFJdb Igav6g+fhqJ1Eu7sIr+I7oa06au8endmZjrm8/6RyAQqdxAmg01Whcg4zhSXybFhvWZD EXVn5AwZfd6qoyfrPoUPUWtMQNlV4S7jB5NjE49Lur9q4fiA8ADMFV+EawYmm73DuuPm k8KruNda3dp2KC/Q1b3x/UEgPC5qQ0vkD0yt2YMCQGLuWKaM7e+7fi2gHOrEJ04pPSnL Wkdw== X-Gm-Message-State: ALQs6tAHwTVb41h2mNivoio6EQUKCi9dxfZxDALLB2Yyf+SaZnYLqvdS j4yD8JqWo7tYKdNvrsPXEvopoaSDTQ0oEPzHQ1w= X-Received: by 10.55.128.67 with SMTP id b64mr50532638qkd.78.1523278470747; Mon, 09 Apr 2018 05:54:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.54.147 with HTTP; Mon, 9 Apr 2018 05:54:30 -0700 (PDT) In-Reply-To: References: From: Geert Uytterhoeven Date: Mon, 9 Apr 2018 14:54:30 +0200 X-Google-Sender-Auth: 0Ea0KBS5JrYmayLdlwanrUO24eI Message-ID: Subject: Re: [PATCH 03/12] m68k/mac: Don't remap SWIM MMIO region To: Finn Thain Cc: Laurent Vivier , Jens Axboe , linux-m68k , 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 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? > --- 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? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds