Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4668026rdb; Fri, 15 Sep 2023 08:49:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH77y2xSDPnUwLR3xXjLloTJIWO0ME+LP0H9io2bYeJdEFpqgQphR+TJcoySQweLttUT2ua X-Received: by 2002:a05:6a20:bb02:b0:157:7568:6796 with SMTP id fc2-20020a056a20bb0200b0015775686796mr1765396pzb.60.1694792995307; Fri, 15 Sep 2023 08:49:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694792995; cv=none; d=google.com; s=arc-20160816; b=FpxzVCt5DaFgDeOczFO7rHJi0ddhn7UFtfHp84zxAf2tTWuguaANfAAMJTF9lgPeHc 8h+EEzuecAIow3/pS3/iOByx0bz9vGpiW4dKj5pZu0I3M51LYT3qGENwF8m6xmjOgP/4 1sC+a0+w3gng2ttpXw1YgxZrmuZxqGxAef86JlAJMBhJtF9krzb02Qwiwm7kztw0SFKc RBWWw9mtXJ8wVJeiXcIdSQifBlLe9kyFAf+q8BUNIi5IJXaM4X+SyMmA1aMQaxf35gY4 phzfzCbIUIZ27CYqGxNf7TubIr40o4uF+ZWzpss1mkmoYY4CN3JlfCk28MwbftseSwwM 5k6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=dIhY1M49PUsVmHH3CvN69QI5MMtNNUcBsBjK4tiAUiE=; fh=ZeGxEbLg13x9/Jr47WJ+eosaczjWqd/qJ9R96jzralQ=; b=nLXln9+qHZJxSuc9LeiVLzgSW2XFhDbknHjoIWTRjl74CHEEyj7ejiSpG9K3PAvj3m O3U65m+Dc7lKgSERctEnECy+vt2/IZng4FvSiI3h6xGcKdGfxoytwJ6AYqJAC9hyvMFC Rfh1A8jyyVvOiI1YYxkwQh/jW2aM/MXqriW29aM8BCWEFfFldZaVtjpNm7yE84PSMCTC glgskirbvsY23QRwcDXdvjglWvZtdzdD0S38xQBUIPjHZ4QWHd8sw3p2Sm30UZUSoTLB SyNIeNKOt9wTY8ryO+n+An/eZK/rj7wjixJ+oAlIgVqVmrSBRuoT7naQCbgt1yanNNb0 QCfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id l63-20020a638842000000b00553800fe4dcsi3489049pgd.583.2023.09.15.08.49.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 08:49:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id A959C8485889; Fri, 15 Sep 2023 08:42:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236183AbjIOPmG convert rfc822-to-8bit (ORCPT + 99 others); Fri, 15 Sep 2023 11:42:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236162AbjIOPlf (ORCPT ); Fri, 15 Sep 2023 11:41:35 -0400 Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com [209.85.128.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CE38F3; Fri, 15 Sep 2023 08:41:26 -0700 (PDT) Received: by mail-yw1-f171.google.com with SMTP id 00721157ae682-59bd2e19c95so25278907b3.0; Fri, 15 Sep 2023 08:41:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694792485; x=1695397285; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WLPlFT1v+rGGzpoTjRtF/iJwCpqgzzZDzr6GcDuhBuE=; b=iFG1L0eUhNlmX414AnRdkvGOUv13esixwsZSwFL13Oyt/UoOOcgpCwR5VaicYCCbhd mbWSS+3GVHeUxPqfmuZDdAyQ9eNVMJIcpkj5oVgt43/OpsAYVmk4Wzg0jWnyfBisB3Oa 7PjaamyEgSBjGefydpWzVG0WkahxFeMHCRDLrIuTUB9EB59EP/kDxQRPW5vb6PgqiXP6 VCDebnDxMvuy4dXLKVNzR3hq6B4AY18f3tkrW5p7qHwbbuYC0VpVa6wOmktLqLwUeqaZ TlKexJQaCpriiTWQM4WEn+typ5tiQdob3KHqULdXsowTZhvSSQhVavqL7t13js2zVn91 NMHg== X-Gm-Message-State: AOJu0Yz6tvuPUvBxOhTKYEnXx9y0YcSyfG1OgG7XFrLBLboQilqL3/py vv0w8jKLzOSW7woqc+hNk4Y+Jn2JIwVDyg== X-Received: by 2002:a81:4f81:0:b0:59b:eedc:43ce with SMTP id d123-20020a814f81000000b0059beedc43cemr2250575ywb.4.1694792485227; Fri, 15 Sep 2023 08:41:25 -0700 (PDT) Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com. [209.85.219.171]) by smtp.gmail.com with ESMTPSA id w135-20020a81498d000000b00577139f85dfsm910106ywa.22.2023.09.15.08.41.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Sep 2023 08:41:25 -0700 (PDT) Received: by mail-yb1-f171.google.com with SMTP id 3f1490d57ef6-ccc462deca6so2134901276.0; Fri, 15 Sep 2023 08:41:22 -0700 (PDT) X-Received: by 2002:a25:ab4f:0:b0:d81:aae4:f774 with SMTP id u73-20020a25ab4f000000b00d81aae4f774mr1911127ybi.25.1694792482630; Fri, 15 Sep 2023 08:41:22 -0700 (PDT) MIME-Version: 1.0 References: <20230802184849.1019466-1-arnd@kernel.org> <20230802184849.1019466-4-arnd@kernel.org> <5dad2d86-78ea-4a39-8ee1-98e3eb134d36@app.fastmail.com> <190041c8-2d99-4bc3-adc3-6fbe902c1265@app.fastmail.com> In-Reply-To: <190041c8-2d99-4bc3-adc3-6fbe902c1265@app.fastmail.com> From: Geert Uytterhoeven Date: Fri, 15 Sep 2023 17:41:09 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/4] sh: machvec: remove custom ioport_{un,}map() To: Arnd Bergmann Cc: Arnd Bergmann , John Paul Adrian Glaubitz , linux-sh@vger.kernel.org, Rich Felker , Yoshinori Sato , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 15 Sep 2023 08:42:35 -0700 (PDT) Hi Arnd, On Wed, Sep 13, 2023 at 4:30 PM Arnd Bergmann wrote: > On Wed, Sep 13, 2023, at 16:13, Geert Uytterhoeven wrote: > > On Wed, Sep 13, 2023 at 4:08 PM Arnd Bergmann wrote: > >> On Wed, Sep 13, 2023, at 14:32, Geert Uytterhoeven wrote: > >> > On Wed, Aug 2, 2023 at 8:49 PM Arnd Bergmann wrote: > >> > >> Do you have a link to that series? I don't understand why you'd > >> want to enable GENERIC_IOMAP on sh, given that its PIO accesses > >> are always memory mapped in the end. > > > > "[RESEND RFC PATCH 00/12] DeviceTree support for SH7751 based boards." > > https://lore.kernel.org/linux-sh/cover.1693444193.git.ysato@users.sourceforge.jp/ > > Ok, thanks. > > > In the meantime, there is a v2, which I wasn't aware of when I wrote > > my previous email, so perhaps my comment is no longer valid. > > "[RFC PATCH v2 00/30] Device Tree support for SH7751 based board" > > https://lore.kernel.org/linux-sh/cover.1694596125.git.ysato@users.sourceforge.jp > > Right, it looks like the GENERIC_IOMAP part if gone from that > series, and I also see that the PCI host bridge does not actually No, 02/30 still enables it. > map the port I/O window. That's usually fine because very few > drivers actually need it, and it also means that there should be > no need for GENERIC_IOMAP or the simpler alternative. > > The first version probably only did it accidentally, which is a > common mistake, and I think the ones for hexagon, m68k, and > mips can probably be removed as well with some simplifiations. When not selecting GENERIC_IOMAP in v2, the build fails with: sh4-linux-gnu-ld: lib/devres.o: in function `pcim_iomap_release': devres.c:(.text+0x234): undefined reference to `pci_iounmap' sh4-linux-gnu-ld: lib/devres.o: in function `pcim_iounmap': devres.c:(.text+0x278): undefined reference to `pci_iounmap' sh4-linux-gnu-ld: drivers/pci/quirks.o: in function `disable_igfx_irq': quirks.c:(.text+0x1738): undefined reference to `pci_iounmap' sh4-linux-gnu-ld: drivers/pci/quirks.o: in function `quirk_switchtec_ntb_dma_alias': quirks.c:(.text+0x1a04): undefined reference to `pci_iounmap' sh4-linux-gnu-ld: drivers/pci/quirks.o: in function `reset_hinic_vf_dev': quirks.c:(.text+0x2260): undefined reference to `pci_iounmap' So I'm back to building the part of arch/sh/kernel/ioport.c that provides sh_io_port_base... 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