From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com [209.85.128.174]) (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 9A4F12165EA for ; Sat, 30 May 2026 20:25:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780172760; cv=none; b=GxMOsAm0AI8RZdIE4oNflMGj9vUg/PZn76RDPaYtuqJ9zJrA8G8frQmyIZaRnES7CoGwazzleWH+uJ4MhXMHgxzH9EbTsQAbAqXiW9UaqwGaNZv9qHYyrQJc4p/3V7CXnPYQVSjGrSPwerLgPnYC+q7jcoeyxVPl7AaZQf4O6v0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780172760; c=relaxed/simple; bh=n4AGz24M5GLwEPKVk9GktKTYqeRU516otaiicLFGZiU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=KG6VH0z136n6f+drGSRR8GWaEiQE5tFz95X2U1UGBTiZQ2DGuQs6B8hwyf57ImBjBw+73CnQjzay4WANwY4GLkAdL2LrviH5mmvm/rCHDW8In6Q8+IKRhJnYRRy4JR+FHuk02GZUARRqaV2trWC/ekntauBfPfL5r05lgX7E7rM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=PTooW571; arc=none smtp.client-ip=209.85.128.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PTooW571" Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-7dbe0943b21so47469397b3.1 for ; Sat, 30 May 2026 13:25:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780172759; x=1780777559; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=iHK+S2glwuPmsOgGedv4oHCNosQeePFYhqMY+PrJ7Og=; b=PTooW571KEckH1DP+bjqgWuaKosZufCOsJY408xKkCrH+V8ei/q8fgcJF/PCCQkJzZ oG4/7oDZm+DTe3KCqIo6pLdPIGAs8Ho7T2xjvboI2cNf5UiOIDEuIYCptFWB3QPI+Bvo eA7F5dGXuKkhwN1xYeBId1vG+rbMIwafXCDoxpyXqtoYTSli1iInE4gryexaK5GzOJSA yG6/8PNLHindKNuWHfGWpu2yRjrqi5I+miaJrwAFDY2mU6FL/e4sheZXyvx7EOhDJknb Yq5zAlyjevQIgctQ4iHz9gohusDpEoIF+tZxaJHrwv3UgwEe28w2mhKN9deLf3WpCt5K 7DBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780172759; x=1780777559; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=iHK+S2glwuPmsOgGedv4oHCNosQeePFYhqMY+PrJ7Og=; b=Dxs9rlbxJekVTUieD5wQ7y8cqHvkfMypSvAZPPvyLDo/VWgXb9nJQZ5SPkfjUmd30v 7PmqZsq5fGqCLG75rz/VFcA+zWPvITY7IHAoKooJ47o+kV4p4WMB53ixWIHdXEcSiffs 4SOrvxVb9QHQzCw+5WfZoPIwtI61tLD4zytE5vlzNf4MkvLhrCG256Hqf27G+LzdCAy+ IoQNSJ26yU5lD7gQpLBW9lsoLfnXOw/v/8abYBu0HAwKlAzFBFH+vxIiSRs9NbnNm3HT yu6FWogqQ/j5R83IYUDlGt3RfbcbH3W0r4SjUyjDZoPGH3f7luEOkcBVFCqU5Us7zLUH TQhA== X-Gm-Message-State: AOJu0YyS62DfMf//nyWepRnIdMf9mQRTDgdwS7HL5kMLztrfL3OV68Hg Bzmf1Wu9TEl5bAyfaURnxfQ4dyWfCt17hXihXhpof311LoVeBkYZOYrZ X-Gm-Gg: Acq92OHvAEgVuCszOks2yozoNAfnMByJsaZKQYEbuLoZLe7gIeuhQ8wfYp0Ta1XUH0r Af1idwgxH1gYhfuIdJGUua3c2HjGW7N3i6uHMdUVWplD/epylfkTkSgvQZgPETuDdZjK/V8Rh6y TOYbXLOfIJ+n6ll8MQxM3Y7SWS5SdsCNr42j9wxkvbSoxmRfoIiijDoF1v0Bah3Kjx+fDm3NN6f fUhy9LBdem+YxnI/Ke8tqwM1Ebv5oGUoxPZ5FpyUGBdqaVzPkCLERqhPHJe6m7fSppnQn1XZytJ +SE7wVf6GDOcvBuBAr54YHfursoPmKwpQqOCW+87LZi+vydzIhk3/MC2bLVUVJoCa0bgc256npJ wwycd0JDY+Az3BAiD+zHBO3N0A6wjxULFijSMQB0FcQ3NyeObh2WTXg001F2bkKMPA4VWw3gPEE vKKlRrDJu3AYGJL8b9ahfgro3Wa/GU/yq1nw== X-Received: by 2002:a05:690c:2f09:b0:7b9:f136:56d8 with SMTP id 00721157ae682-7de26ed84c7mr48015747b3.30.1780172758537; Sat, 30 May 2026 13:25:58 -0700 (PDT) Received: from localhost ([2600:1702:7a90:6f9f:8bc4:8aec:108d:7a04]) by smtp.gmail.com with ESMTPSA id 00721157ae682-7e17ae7e1b5sm12633007b3.28.2026.05.30.13.25.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 May 2026 13:25:57 -0700 (PDT) From: Matt Turner To: linux-alpha@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Richard Henderson , Magnus Lindholm , Ivan Kokshaysky , Matt Turner Subject: [PATCH 0/3] alpha SMP fixes for EV7/Marvel Date: Sat, 30 May 2026 16:25:41 -0400 Message-ID: <20260530202544.59231-1-mattst88@gmail.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I acquired an AlphaServer ES47 in 2010, and it's never been stable -- deadlocking after random amounts of time. I could never make any connections with load, uptime, etc. The only dots I could connect was that the git test suite would always trigger the deadlock. I spent some time over the last week playing with Claude and have found *a* solution. With the first two patches in place, I've successfully run the git test suite 6 times in a row. I've never previously seen it run successfully without deadlocking the system. The first patch is generally applicable (not specific to EV7/Marvel). I'm unsure why this would never have caused problems on other systems (or why it would only be relevant for EV7/Marvel). That gives me some pause. The second patch applies only to EV7/Marvel, I believe. tl;dr: IPIs seem to be lost. The third patch adds some accounting to /proc/interrupts to report the number of lost interrupts, confirming the problem from patch 2. Please review. Matt Matt Turner (3): alpha: smp: Serialize all synchronous IPI operations to fix SMP deadlock alpha: Fix SMP IPI loss when target CPU is in interrupt handler alpha: Break down rescued IPI counter by type in /proc/interrupts arch/alpha/include/asm/smp.h | 12 +++++ arch/alpha/kernel/irq.c | 12 +++++ arch/alpha/kernel/irq_alpha.c | 29 ++++++++++- arch/alpha/kernel/proto.h | 1 + arch/alpha/kernel/smp.c | 97 +++++++++++++++++++++++++++++++++++ arch/alpha/mm/tlbflush.c | 3 ++ 6 files changed, 153 insertions(+), 1 deletion(-) -- 2.53.0