Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp30081lqc; Thu, 7 Mar 2024 09:23:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUINgqES1y+pENdRwMFl0Dwf/FrllToellacodGfraLJ/J36C3R/Vh9YeeXHqXBBGRJvfFZFAa0tBGXQ0SXdT/rtSE9Aou8jJLV9g+Gtg== X-Google-Smtp-Source: AGHT+IHWAdAzNHmNRbpSPkDEdTSSmK8awv5PtD54h0Iob2dmOcXhBIrFht/rbk5kAdE95Az/2VhR X-Received: by 2002:a17:903:24d:b0:1dc:6073:a3a4 with SMTP id j13-20020a170903024d00b001dc6073a3a4mr2885765plh.3.1709832229350; Thu, 07 Mar 2024 09:23:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709832229; cv=pass; d=google.com; s=arc-20160816; b=jZ+CI7GCqxA7kSPKmwsq2sNJlrN0K8JtKR1aO1wUkOVoBx0yGI+tChmPssYgDqqqgS 0wSlLXyOo2L3VxIrEM4oInadbYKs7Acwp0nqGG9illHqeakfgKsRK0T+oCBYugUpFSEJ s+0mTh247Fm6vR18ueXpou3vd81gYuZNRPwU+9FgbAHmNy0kArYhuqJpFvqrmLXJQ/oN ao4VAxw5ze/X9vrGCkWgOQ4H4knOWPrSM1iKJotkGc1qLN3pcoNoHv8fPbbVCe+mLQ2e yOEidX23Ss9pUJC4qFKjc4sSf8lxRIqA7tYWJxp7kb0cnAvukhdypB0nQSzVLmOHOgr3 0CAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=gHud0NIMnubYeYck52m3NRwtUWz1SVAUUQWnc4Gem10=; fh=BhCyD/e2zku7L2Yp6ctLBFaaBg4HBG+VQRMXw0tyBX0=; b=MOr7O+EZNGcwuOM6kcrXZY24saatFMUgRlNBzZrXWw+eImOmsVQqROBXnHPvaXqF+e XU3B61pksY9r8Tzw6BFK5n1ohV0PM6riRlnnHkG02y4hpYH9LfIPaUdA824f7rVAsuHq koL/8dPPP9035zIu5O7VQOUu8EwjP1E868LJ3gLZ2xzVgk+xyhFJSYcmo88wYByiYk8+ zwC4jXulZa64UFwUsiw2FkutPqR/IGI2KJUv/6F2bMBUWi9cujP3kJiYGdGuuxySyLyI IYggE/Kt2GfGK00ui1S50TKI0GWLnEgA/ZVYl48r4HEzrA1lF2dpmpmIfL+4GKg9MfjP bdiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EXIdf1Ci; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-95928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95928-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l8-20020a17090270c800b001dc6d48d384si13978966plt.294.2024.03.07.09.23.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 09:23:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EXIdf1Ci; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-95928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95928-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 B79D2286CDF for ; Thu, 7 Mar 2024 17:23:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1298130AF1; Thu, 7 Mar 2024 17:23:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="EXIdf1Ci" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 444C812F5A7 for ; Thu, 7 Mar 2024 17:23:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709832183; cv=none; b=VuZpsA9gUxojnq8hQh5n6xBDlVskp4V8Ozhpe+wVDYGHAs587ILT38+9dlrHrMUkiPaitBsCQgL85vsSh+m5If4zYRcO8kMdeCpfzaVz1MBGNYbIwm+GDI4MuqK/EnWNZcIZLJr1JDIUNsoyFozo5kOMqjnVpr1JEd6RfhbXJUo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709832183; c=relaxed/simple; bh=0vt9FiXpx4GEdr3Xzqy6R1bArKqRNlv3YXX9M7sl3M0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ZICwFQp60xxd57E4g9sbjWne8JtpJYHz4pYP0czg1H/z/l0VVWZvDAYC3lcyDpO3hccGsznRPs0QFTPAcp5OwjtpbjsbMpWmfmeh39YLnOJwUS2vC4NHQYxh6eLHINR+2ukcd4dySGV762G7P7OzdMwi/quUkleTlJdamLuw+MY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=EXIdf1Ci; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709832179; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gHud0NIMnubYeYck52m3NRwtUWz1SVAUUQWnc4Gem10=; b=EXIdf1Cixdyn75ZnfZoJG9tcYcFjZiW7LbklU40YDFT/9qltGycqoZRRrUOC58sLohMZ/F u0gN2Cyftu2eRDlVE81JPNJUkbZiwf+VbGZzGUPK2bZ4wGs03nvkUYtOca061cCXE5nWoh oTB6iP7qIunUyNiE0+Tngq6bUpuQH3U= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-149-Fjv6i2ezNv2Xm2qyXv29ng-1; Thu, 07 Mar 2024 12:22:58 -0500 X-MC-Unique: Fjv6i2ezNv2Xm2qyXv29ng-1 Received: by mail-lf1-f69.google.com with SMTP id 2adb3069b0e04-51333e20813so973557e87.0 for ; Thu, 07 Mar 2024 09:22:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709832177; x=1710436977; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gHud0NIMnubYeYck52m3NRwtUWz1SVAUUQWnc4Gem10=; b=WvFewAwlSwu5xYVdjJSesf5b0kE3GUP7Jdtu0tMT6D7vJ2l2KlbIq+bKw4Z0uMxX65 dd+uNe+Y8+5cgqbw2iTUfL3FIw5tNJdeWDxLyqjNwi8ie2lwmbhoSOx66OeKs7VyrPxU e/c2t7MmmLKgO/k8x7uLHXVyCYBOyQhZtWxGXpWaZM2Bfvs0rajMAy69XD7LpV7hUc1j GFX7Seg1bFHToG6mc8HsTnHeFocbyhcviq0h1+9d/X/sQF9Rgpcf1QNanz5hHHkxkB4C gnW7G/Tixo5Zm/8cy1ULEOAKIaSrY3trcwv/m+Vga3DPX53jGlPvp7BqjmVCz/DGMqWd Eq1A== X-Forwarded-Encrypted: i=1; AJvYcCWbP8ljLO4EYwY5+q485BmD7P2YaGI9ChtAoqETJbjqyQR2JdToHHQTEvVA0fGkbrUTZE+YfbQr4yCUA8RqnWx12PGUoETeo+XDilpC X-Gm-Message-State: AOJu0YyqdecPTYnhZROeqPhfGXfD52xjARm6HQ625eWMMWwHD5/RBiz3 BU7zFyiZCqUGN+ICfZsEcYy9n9+9PhRzvcZbvAgxEdTn88cvcFxAnGWWeKkXNnJ+bsdf/PyFVkU gcbS5tUwFvSHVEiKjWagZggTjAr7vt8c1eligUqsc3W2tDwlWJLScFdEnbZ4qzw== X-Received: by 2002:a19:5e52:0:b0:513:3bb2:325f with SMTP id z18-20020a195e52000000b005133bb2325fmr1784287lfi.24.1709832176883; Thu, 07 Mar 2024 09:22:56 -0800 (PST) X-Received: by 2002:a19:5e52:0:b0:513:3bb2:325f with SMTP id z18-20020a195e52000000b005133bb2325fmr1784268lfi.24.1709832176495; Thu, 07 Mar 2024 09:22:56 -0800 (PST) Received: from ?IPV6:2a01:e0a:c:37e0:ced3:55bd:f454:e722? ([2a01:e0a:c:37e0:ced3:55bd:f454:e722]) by smtp.gmail.com with ESMTPSA id q13-20020a5d61cd000000b0033e11ff6284sm20037347wrv.12.2024.03.07.09.22.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Mar 2024 09:22:55 -0800 (PST) Message-ID: Date: Thu, 7 Mar 2024 18:22:55 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC] How to test panic handlers, without crashing the kernel Content-Language: en-US, fr To: "Guilherme G. Piccoli" , Michael Kelley , John Ogness , Linux Kernel Mailing List , Daniel Vetter , Andrew Morton , "Peter Zijlstra (Intel)" , Josh Poimboeuf , Arnd Bergmann , Kefeng Wang , Lukas Wunner , Uros Bizjak , Petr Mladek , Daniel Thompson , Douglas Anderson Cc: "dri-devel@lists.freedesktop.org" , David Airlie , Thomas Zimmermann References: <266579a9-fde6-40ff-b13d-fb2312db406c@redhat.com> <87edcpn1l3.fsf@jogness.linutronix.de> <15015345-3068-2fb8-aa38-f32acf27e1d0@igalia.com> <3d0c4180-aa6d-4519-d6d8-8f16b98587dc@igalia.com> From: Jocelyn Falempe In-Reply-To: <3d0c4180-aa6d-4519-d6d8-8f16b98587dc@igalia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 05/03/2024 18:50, Guilherme G. Piccoli wrote: > On 05/03/2024 13:52, Jocelyn Falempe wrote: >> [...] >> Or maybe have two lists of panic notifiers, the safe and the destructive >> list. So in case of fake panic, we can only call the safe notifiers. >> > > I tried something like that: > https://lore.kernel.org/lkml/20220427224924.592546-1-gpiccoli@igalia.com/ > > There were many suggestions, a completely refactor of the idea (panic > lists are not really seen as reliable things). Thanks for sharing this, so it's much more complex than what I though. > > Given that, I'm not really sure splitting in lists gonna fly; maybe > restricting the test infrastructure to drm_panic plus some paths of > panic would be enough for this debugfs interface, in principle? I mean, > to unblock your work on the drm panic stuff. For drm_panic, I changed the way the debugfs is calling the drm_panic functions in the last version: https://patchwork.freedesktop.org/patch/581845/?series=122244&rev=9 It doesn't use the panic notifier list, but create a file for each plane of each device directly. It allows to test the panic handler, not in a real panic condition, but that's still better than nothing. > > Cheers, > > > Guilherme > Best regards, -- Jocelyn