Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1199455rwl; Sat, 25 Mar 2023 20:31:56 -0700 (PDT) X-Google-Smtp-Source: AKy350Z0lBKSan6+wY2y2C3qcZqEhZmaSlTXBGDy8Rl/AzduXNQZyepqjiFlvZnMcLetPuXyCW/D X-Received: by 2002:a17:90a:e7c4:b0:23b:4f4c:a8b with SMTP id kb4-20020a17090ae7c400b0023b4f4c0a8bmr8542297pjb.11.1679801515866; Sat, 25 Mar 2023 20:31:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679801515; cv=none; d=google.com; s=arc-20160816; b=sp3rHNxlyVEY2l3fB8fiiYK6OghFTso1u1ZPQL9SxKoCB9YoLM0Ty4wXk13D6/t/tH vAv1UMzohHwEGGir5GRq06kSFvv3/1AOV/0TyQd4IHAfFtPUkDqD8FqHxTeb08UV3gOi Q0WlKZxRaIZ7MHwEmPSjZ3LtVMipu0Lph7C/lPvFAPeVWYmaFzT1vo6nzhNUpKZQytHw 9wwu0bOAE5nJQpl1O/2VBoeRGUuW+R91+HdG1XVofQH6yWxfV/IUk5UQZUqycBY9/kJN GylLm5X9agqAGF6lGnvfWQVrrzQOux8VPVnIfv6pRdUzsxEOWNYcovltjeIaWn8AM+TE sHMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:feedback-id:dkim-signature; bh=3UntI3/+PCVTgDIuGFOF1Ecl1yOb72vFBAvaAjk/4Pk=; b=hG0f/k46V+xTdtHkxqgyqKhdQtDJjpdRdGF28574mpuTQctaJGHeDZCaRTq2yGhIGC GtGOwLdgMlJWvc/y7SDEdRovNpQT/5/nEG/QkKOTOuCgeWnLWcoawzzQ+evJXDV63Jqw NAcP/tLqe+eChcdjDhReSdPC4ABJdAVoxM5XBSRSxTBdLb4uB1zrGr/hFsd7KhwRPvBy v9I9iT0/cHZYDzOsLxm0BB+AcAu6Pmcife2eGDW+glzpYdFg80d3fwawl0XfuCyNjBNh se5rRGiz+GTussAeRruKdOuOmzAgCUO9SnUSy5r/8W3mV3CzCFDmbu66nkL6uHK5ADIA IJ7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=MVPMXGCR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020a17090a8a8500b00237c54c1643si7847755pjn.139.2023.03.25.20.31.40; Sat, 25 Mar 2023 20:31:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=MVPMXGCR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230286AbjCZDT2 (ORCPT + 99 others); Sat, 25 Mar 2023 23:19:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbjCZDTZ (ORCPT ); Sat, 25 Mar 2023 23:19:25 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C413EB455 for ; Sat, 25 Mar 2023 20:19:23 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 4BB5F5C00D8; Sat, 25 Mar 2023 23:19:21 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sat, 25 Mar 2023 23:19:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1679800761; x=1679887161; bh=3UntI3/+PCVTg DIuGFOF1Ecl1yOb72vFBAvaAjk/4Pk=; b=MVPMXGCRwlm3K+F0ilbAPfuvy6lkd 3hS3mt49wzQCCk7aNzzZrRsV61rI+kjBvwiDO/Zj7IRjkMkzurs9Kz4FFb7al6c2 fC8Mc2HF/CslE0pINnCrf2R/oJ0shKgndd/MwmONsCJUS9nDe/qUKnYv952ogucv OslATkKfzJugje6eCvVxBGUInDgda3qZwrOK6vFCn8JEFqvkAv+SuIQj1XdUvd7W SWhllxEHzH0m9vG6gvtw2fFl/uIbSY8HWUgggCqfDS1uWQeSeU1YH6sVXlQzlY+e TSVDfuXui0CmDvupWNyMkrFhZ7H9fP8tpzfzDe6XU3cMTLpHq1uk5T33Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdegledgheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevufgjkfhfgggtsehttdertddttddvnecuhfhrohhmpefhihhnnhcu vfhhrghinhcuoehfthhhrghinheslhhinhhugidqmheikehkrdhorhhgqeenucggtffrrg htthgvrhhnpeelueehleehkefgueevtdevteejkefhffekfeffffdtgfejveekgeefvdeu heeuleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hfthhhrghinheslhhinhhugidqmheikehkrdhorhhg X-ME-Proxy: Feedback-ID: i58a146ae:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 25 Mar 2023 23:19:18 -0400 (EDT) Date: Sun, 26 Mar 2023 14:22:14 +1100 (AEDT) From: Finn Thain To: Brad Boyer cc: Geert Uytterhoeven , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] nubus: Don't list card resources by default In-Reply-To: <20230326000056.GA31801@allandria.com> Message-ID: <2b42fa38-18f3-971f-635c-b37609b4beae@linux-m68k.org> References: <5b7c473247d66776343d82a55b9815195b1b11fb.1679551394.git.fthain@linux-m68k.org> <072fd894-ec50-ae5f-2be5-ebbeb0e7b39b@linux-m68k.org> <20230324085927.GA6354@allandria.com> <0cd7f288-ba43-7764-01a7-2e1e5c7a1640@linux-m68k.org> <20230326000056.GA31801@allandria.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_NONE autolearn=unavailable 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 On Sat, 25 Mar 2023, Brad Boyer wrote: > On Sat, Mar 25, 2023 at 10:35:52AM +1100, Finn Thain wrote: > > > > > I think those cards are in the same category as video cards in the > > sense that userspace drivers would need /dev/mem. > > Probably. I was just thinking that having some of the information > already parsed out might be useful. It's hard to say without having > anything written to use it. > If someone wanted to write something that uses the procfs information they could still do so, but they would have to enable a kernel parameter first. > ... > However, the system ROM doesn't use exactly the same structure as a > NuBus expansion ROM. That might complicate such work. It might be easier > to use the firmware infrastructure to load them from files and extract > the drivers from the latest system software that still supported > anything with an IOP. The updated IOP drivers are each separate > resources in the system file that could be extracted with native > developer utilities in MacOS. Then we presumably have the latest. I've > never found any hint that the IOP hardware was any different between > models that have them. > My thinking was that a firmware cutter (whether it was for ROM resources or slot resources) would remain separate from the kernel, as that seems to be the usual pattern. The existing mechanisms for distributing to /lib/firmware and loading from /lib/firmware could be leveraged. > > I can't figure out why procfs access to the slot resources from pseudo > > slot 0 would be desirable (?) > > I'm not sure. Someone clearly thought it was useful in the past. That's not clear to me. Someone clearly thought that the procfs files may be useful for some unknown purpose in userspace. And someone clearly thought that the slot 0 resources may be useful for configuring drivers in kernelspace. Neither of those panned out. The only possible use I can think of for slot 0 resources in userspace (e.g. a "TechTool" for Linux) would be better served by mmap'ing the ROM using /dev/mem. > I don't think I have any models with anything interesting there. I > suspect the main thing would be an equivalent to the ROM on a video card > for the built-in display adapter on those systems. > Only to the extent that such hardware cannot be probed or simply inferred from bootinfo records already provided (like gestalt id). But the slot 0 vs. bootinfo question seems unrelated to the procfs question, right?