Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2725308imm; Sat, 9 Jun 2018 23:56:27 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIWqZr/KP2GMsc+KolCuPY+lCYfs+pcA/x41dNjF9dZpNdE5LigRqYAimvK0Iik6W8+B71k X-Received: by 2002:a62:b2c4:: with SMTP id z65-v6mr12659691pfl.21.1528613787414; Sat, 09 Jun 2018 23:56:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528613787; cv=none; d=google.com; s=arc-20160816; b=uh7TKpkUZ+2JFQ4uhWPkdCu/BWoOyaA5Gh+bZAkBk0oGWifL+CXpsAnPIZBxUkiVwt qZRABx74k5Vg30iNL5/qN5GDoPmcJcQxDfEosUUmuhzaJOLfXgDqZyOorphso5nsE3P5 1vXzIVSgDi/8BWjTsQA8jGV/Fc9usJ5vlAQm6gx1nSy2Peo5qoF8XhAkDL4BvP7dupS2 +ImKbmOIv9Dpec6vFO3uwIAycVie4qgO4thjSfTVup9R52wgGYvSR5RLUwCgM58koCkf Hp6FdQ6r6cN3Ch4iPPUTTN0KJd/6B/2S/BUmrCNh6zTqUQ4pYYcC2fycWDKk55ydVUsV 2iHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=7iFblzLwMMgdiztEplbutiMR2q5VpxZqz5ZhBPjGnIQ=; b=gwLfgNaioaMJQCsQE3SkgZp6sfOjtPA7Hh0bT+sq+IK80lOYC07QdjaNyDcFNjt8rQ dK/XQB/sUCjpElKcEJO67UmcsyWUrOzDi7SoNrCsEspcqxfrMkCZsuBSrFDI1WLxePzK BBu+GrG9Hc2ZLN5nefxE/GGlN5o/nivB467Hbz6/MMZZs69ro6SGU9LlPuGr4EoAe6AE N8xHxNVywfbalT/ACVM0jAKfQBZ2C4HvJZ3AGWIYJiy8MkahCpLwyjSwzCUQEo8sFzjf eEhqKLVW8u872uvXlF40/xMGZDohxwpijI0iUtxNqbQBHzbPNErnlxSOKbz9KjDKCLAw NVLw== 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 o19-v6si9535807pgc.299.2018.06.09.23.56.13; Sat, 09 Jun 2018 23:56:27 -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 S1753755AbeFJGzj (ORCPT + 99 others); Sun, 10 Jun 2018 02:55:39 -0400 Received: from gate.crashing.org ([63.228.1.57]:32981 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753674AbeFJGzi (ORCPT ); Sun, 10 Jun 2018 02:55:38 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id w5A6tEgZ008713; Sun, 10 Jun 2018 01:55:16 -0500 Message-ID: <3490f7d6f45ec2586858e4547e97474d93bd2d4d.camel@kernel.crashing.org> Subject: Re: [PATCH v2 08/12] macintosh/via-pmu68k: Don't load driver on unsupported hardware From: Benjamin Herrenschmidt To: Finn Thain , Michael Schmitz Cc: Andreas Schwab , linuxppc-dev@lists.ozlabs.org, linux-m68k@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Date: Sun, 10 Jun 2018 16:55:14 +1000 In-Reply-To: References: <9f015684-4d91-70e4-d2a4-89fe167ff8ab@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.1 (3.28.1-2.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2018-06-09 at 22:21 +1000, Finn Thain wrote: > In anycase, the "v1" and "v2" scheme is obviously inadequate when you > consider the range of m68k powerbook models. Also, consider the > out-of-tree adaptation of via-pmu by the Nubus-PMac project, which has > this ABI break: > > diff --git a/include/linux/pmu.h b/include/linux/pmu.h > index cafe98d9694..9882a185a52 100644 > --- a/include/linux/pmu.h > +++ b/include/linux/pmu.h > @@ -90,6 +90,7 @@ enum { > PMU_HEATHROW_BASED, /* PowerBook G3 series */ > PMU_PADDINGTON_BASED, /* 1999 PowerBook G3 */ > PMU_KEYLARGO_BASED, /* Core99 motherboard (PMU99) */ > + PMU_NUBUS_BASED, /* 1400, 2300, 5300 */ > PMU_68K_V1, /* 68K PMU, version 1 */ > PMU_68K_V2, /* 68K PMU, version 2 */ > }; > > (BTW, these powerbooks are not "nubus based", they are "pre-PCI", so I > wouldn't want this to go upstream in this form. It could be that > PMU_NUBUS_BASED should be PMU_UNKNOWN too.) Pre-PCI is basically "NUBUS" based even in absence of an actual NuBus slot :-) It has to do with the internal HW architecture. The only ones that aren't are the even older designs (the 68000 based ones). What's the situation with those NuBus things ? What do they use as a bootloader ? The old Apple one or BootX ? We should merge that port of it's maintained. Cheers, Ben.