Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp440778lqo; Wed, 8 May 2024 04:49:21 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUkGYrK2OzKnBzvt1WB4wRdj26CMl3qKmgaFfIZfMbq728zyuDL5S9Krx1BRMIUj3jfCybK3qO1pXD6OubmWaYPy/ORXKor3ftAqSyb5w== X-Google-Smtp-Source: AGHT+IGUFBxGtGUlM3FtGz8mScEgRWZ7cRykmumd4U89rvfF+DrCNmP3T6MI3Y/hvL18IJL7n92E X-Received: by 2002:a17:90a:b78b:b0:2b6:226a:ddac with SMTP id 98e67ed59e1d1-2b6226adfcemr1560811a91.22.1715168961392; Wed, 08 May 2024 04:49:21 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b628a69dd6si1231118a91.81.2024.05.08.04.49.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 04:49:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173179-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-173179-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173179-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A5FBE2847C6 for ; Wed, 8 May 2024 11:47:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C8E884DEE; Wed, 8 May 2024 11:46:50 +0000 (UTC) Received: from mail-yw1-f177.google.com (mail-yw1-f177.google.com [209.85.128.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 767B282C6C for ; Wed, 8 May 2024 11:46:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715168809; cv=none; b=JkKEyJ0tHsW3glKwmP5ERsJqGBhhwDfa8M7a16x6dUnArATsNFcCpeH0oneLXWGR5AYLqS01AOeGsrEriul/YC4pkYC4HExWWvrdWwuy381qcu+z0i4RfUpRXpO4ZhY8j7WWsTU4uBqV0HsPtHNfVhP6fthv2+tGBFZfqBwg31A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715168809; c=relaxed/simple; bh=SAlKIWE//lHoA+nc7JO13tI8bPAbZw4MA+BMyr36N8o=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ayv2llBI2p38r4vIQT69UTuXbm2ffxOtD91Px7DxsL/TbwHWGc+5EqLNqTyQrSj2qgjscoVhx8QSorKrZ48LRgtthHs5p3K27FrD7FDSnL1E1guV/NTAm9Cl8PfJzXw7DTZgeALXKykiZG6EC9VZPcl8vCCNrJKnfmX21A8W0Ys= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.128.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-61bed738438so45181367b3.2 for ; Wed, 08 May 2024 04:46:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715168807; x=1715773607; 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=1UIM/QXFLV/zOyVSdM/iHxl0eTqhK78DGC/2DFVqdW8=; b=GN2Xp8haHj5LPRisZitZZ1d5wajU54Jop2GJWDABFm0ensBePCTTkYKAcp0b+wUcBy j+XHMM2E+HtKuy5sEpepi6INA8DjqJaz2BJjPQzOjeP7VUKAIz7HSsPYJ3Jov+2FxECG JRnj3AYcuRf5LkkcCfKjsAhvFzNE1C03VGpIpOGkMViIyrPrjzH7c3RAgzey7KaLiiXT EQwmqyVnW8pnTM8ejLC7RQE97uzasPjulUWVw3/KeOJH0UMyJZZrpKCgLpfnmAlJWq7K gMy325kXq3pWBfi43aXM86u8yrV0eZOCgSYVcwyAeSweP6xJh0u76cBtg6uuqmui3ADX WV9w== X-Forwarded-Encrypted: i=1; AJvYcCUsm0JxlakeWspClhJ2QGJOTK3hr/oUNeISj2RSOFjz2Z8emhl7WX2zMhEq5vt+t5CLy5Wz9H1jgfnsP6fGmuXHRKGxP87iwhrNV2Nv X-Gm-Message-State: AOJu0YxqLONSvqs8UAkpS26BQcVROVo6vZUaKoaJkNXpvc2+5SnlGm2q 61lFPZi2PJajSkf06WyRt/jzpzYPVsFHzNWoFK5rofEOCo0hIEWbPdjmiJpxnSA= X-Received: by 2002:a81:b045:0:b0:615:1413:95c1 with SMTP id 00721157ae682-6208624132emr21298787b3.19.1715168807102; Wed, 08 May 2024 04:46:47 -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 q13-20020a81430d000000b0061adccb38ecsm3257313ywa.10.2024.05.08.04.46.46 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 May 2024 04:46:46 -0700 (PDT) Received: by mail-yb1-f171.google.com with SMTP id 3f1490d57ef6-dcd7c526cc0so4760395276.1 for ; Wed, 08 May 2024 04:46:46 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCU1vwlKmP89/7w0MC9Z7rb6uJ18FfFQP6PVpc177+Nx0/MEkUUhDZMAWonek2Y78eSKT2UCNZx5fDmuLm9SPgif1Xf7qD2GVXCRJrBD X-Received: by 2002:a25:8050:0:b0:de5:53c0:b9e5 with SMTP id 3f1490d57ef6-debb9d96d92mr2346115276.40.1715168806721; Wed, 08 May 2024 04:46:46 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <480ebd1249d229c6dc1f3f1c6d599b8505483fd8.1714797072.git.fthain@linux-m68k.org> In-Reply-To: <480ebd1249d229c6dc1f3f1c6d599b8505483fd8.1714797072.git.fthain@linux-m68k.org> From: Geert Uytterhoeven Date: Wed, 8 May 2024 13:46:35 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] m68k/mac: Fix reboot hang on Mac IIci To: Finn Thain Cc: Joshua Thompson , Stan Johnson , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, May 4, 2024 at 6:43=E2=80=AFAM Finn Thain w= rote: > Calling mac_reset() on a Mac IIci does reset the system, but what > follows is a POST failure that requires a manual reset to resolve. > Avoid that by using the 68030 asm implementation instead of the C > implementation. > > Apparently the SE/30 has a similar problem as it has used the asm > implementation since before git. This patch extends that solution to > other systems with a similar ROM. > > After this patch, the only systems still using the C implementation are > 68040 systems where adb_type is either MAC_ADB_IOP or MAC_ADB_II. This > implies a 1 MiB Quadra ROM. > > This now includes the Quadra 900/950, which previously fell through to > the "should never get here" catch-all. > > Reported-and-tested-by: Stan Johnson > Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") > Signed-off-by: Finn Thain > --- > Tested on Mac IIci & IIfx, Quadra 630 & 650, Daystar Mac II, QEMU. > > Some corner cases remain problematic. For example, a stock Mac II or > a Mac IIci with a 68040 accelerator will still use the C routine, because > mac_reset() lacks an asm implementation for '020 and '040 systems. LGTM, so Reviewed-by: Geert Uytterhoeven i.e. will queue in the m68k tree for v6.10. > However, amiga_reset(), atari_reset() and mac_reset() do have a lot in > common, which suggests that a generic asm reset function parameterized by > final JMP location may be a useful refactoring. This would provide the > '020 and '040 handling missing here and could potentially replace > hp300_reset(), dn_dummy_reset() and q40_reset(). Sounds like a good idea! Gr{oetje,eeting}s, Geert --=20 Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k= org In personal conversations with technical people, I call myself a hacker. Bu= t when I'm talking to journalists I just say "programmer" or something like t= hat. -- Linus Torvalds