From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 0250612DDAE for ; Tue, 9 Jul 2024 12:02:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720526567; cv=none; b=DH9ENg7K7ZOmkSDXfaWAg99of7WCMmzY0vlzOmXCp5zCw6coZHX5QB0C4gZa1dPOhMlWyaQaXkEYwtxYKb+lYtHz5mJf1O9QffQ+pMtmtMK1tnCdkOgfX3TZw1qq3dVT/d3AmBR5hopPgV0pv6IjehtweAu6xOArHGcremvs4ho= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720526567; c=relaxed/simple; bh=GPEKrnIfXI200uTTi3YvU/7kaTjsuMuRW1oNuL96hNg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=I5+rdQduJBleSRdG7fQ86dW+9Bd55+myJsH5ZksEPetdU1macwLESwITl+DOqfBjSCatzRfhki9ZpC9gkIcju2f+IgOh8NiTKlnqw2HovnzegZVN4JGYFjnl5fIwoTrze+HRuSmA6KlEgjUNRXtOaTm/Hwyx+yqcaOJBWNd9J5U= 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=CHmeeePA; arc=none smtp.client-ip=170.10.133.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="CHmeeePA" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1720526564; 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=dy4YRqqLNlf0j0FOWn3tiz8LkZrh0YUIypGbDuzRZ3A=; b=CHmeeePA8HfjQ3i6p4S+teXMD1LcDi49vO9EZicWc0NZQpdVBxzdjXGh8sbAAP/NdASxHx uBBhCJX20fiuG4mhpgS2vp9qTJPJlNF6pPVV6/9tBLzQBk6HO7aobO0C8dQyF7fENRMBOj W0w2sYhstMdS0Ao1+spg/bmA3+u+njQ= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-608-c_qdNWy2PpGTy1EKmYFbfA-1; Tue, 09 Jul 2024 08:02:42 -0400 X-MC-Unique: c_qdNWy2PpGTy1EKmYFbfA-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-426d316a96cso3199725e9.0 for ; Tue, 09 Jul 2024 05:02:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720526561; x=1721131361; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dy4YRqqLNlf0j0FOWn3tiz8LkZrh0YUIypGbDuzRZ3A=; b=DHYmELE3+IZBOM3H5lL4bFDnhKHXmUfcHY71tD30kGF8hZuQaWXUNnQRVEbNkQK8oZ Q4BmYUbw1b/FrDG4idyrCYz7bqlSau3mahBvjPnfrEQqDLScYpGJRv8TR+LB19xnBIc/ NLRd4IzWfce7ff0AiFAqjUEOCl6YyUS3EyjTuyDfIkQcycsA+OGdt+oF4f+5ggz5S1qV cn0SBZPOF/Z3DvGS+WJb9SJ4V3k2Jdye92QHHaVKrtsvDEjTEECVaLTlGfHZVrBHUZe+ t7EJx+NhpvJ4K6OZqz06Ss154FvTK4ID7Ku8n2OdpuTWCfZwpMDMNHZ9vsEViujzg+6y fcEg== X-Forwarded-Encrypted: i=1; AJvYcCUNrbMxeUXkfUB2nv/9Kfbxw0EDgwZEdCcGYydFvCPPSlx8bqqB1qMuahQT8Pu7H4di/V6L6gFsBttRhR3LedAUXyIYngrEH17mdAfJ X-Gm-Message-State: AOJu0YyGfp6ffdhanGnQTHuunabSATHLEIK0wo3wYmKejYexI/YZ0qby pNr4h8Ev/kThgmnzBNu50vnbhSFzoPxZsC9S4Bq5BocTgZQK2DmDjISMQGZOvndc7761+rCRmow acXvWHO6a2kMDzXLpSVIX6cjm1LY4OOhFUXnB9nP5bEHsFNYimnrxqoYrm1sECA== X-Received: by 2002:a05:600c:3226:b0:426:59ec:17a9 with SMTP id 5b1f17b1804b1-426707d7c9fmr16596905e9.22.1720526561307; Tue, 09 Jul 2024 05:02:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFSrbJt0jJlRogPAw/bQ1qZ0Lbp/49hLv8AiWFs4Pgl2/5UBg3dAYp6ZylEW9+XrxlA+vNo9w== X-Received: by 2002:a05:600c:3226:b0:426:59ec:17a9 with SMTP id 5b1f17b1804b1-426707d7c9fmr16596635e9.22.1720526560952; Tue, 09 Jul 2024 05:02:40 -0700 (PDT) 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 ffacd0b85a97d-367cde7deeasm2422525f8f.8.2024.07.09.05.02.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Jul 2024 05:02:40 -0700 (PDT) Message-ID: <48cb6b5e-3685-4661-9183-080e25348892@redhat.com> Date: Tue, 9 Jul 2024 14:02:39 +0200 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: [PATCH v2 4/4] drm/panic: Add a qr_code panic screen To: Greg KH Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , Bjorn Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, rust-for-linux@vger.kernel.org, Danilo Krummrich References: <20240709084458.158659-1-jfalempe@redhat.com> <20240709084458.158659-5-jfalempe@redhat.com> <2024070951-tall-effective-c916@gregkh> <2024070947-exorcism-purchase-2f28@gregkh> <2024070944-follow-crazy-ff95@gregkh> Content-Language: en-US, fr From: Jocelyn Falempe In-Reply-To: <2024070944-follow-crazy-ff95@gregkh> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 09/07/2024 12:12, Greg KH wrote: > On Tue, Jul 09, 2024 at 12:04:02PM +0200, Jocelyn Falempe wrote: >> >> >> On 09/07/2024 11:12, Greg KH wrote: >>> On Tue, Jul 09, 2024 at 11:11:35AM +0200, Greg KH wrote: >>>> On Tue, Jul 09, 2024 at 10:40:10AM +0200, Jocelyn Falempe wrote: >>>>> +config DRM_PANIC_SCREEN_QR_CODE_URL >>>>> + string "Base url of the QR code in the panic screen" >>>>> + depends on DRM_PANIC_SCREEN_QR_CODE >>>>> + help >>>>> + This option sets the base url to report the kernel panic. If it's set >>>>> + the qr code will contain the url and the kmsg compressed with zlib as >>>>> + url parameter. If it's empty, the qr code will contain the kmsg as >>>>> + uncompressed text only. >>>> >>>> meta-comment, should we by default do this on a kernel.org domain so >>>> that no specific distro has to worry about hosing this type of web >>>> service? >>> >>> Also, do you have the backend source for this to show how anyone can >>> host it themselves as well? We can't add features to the kernel that no >>> one but closed-source implementations will use for obvious reasons. >> >> I've made a proof of concept backend here: >> https://github.com/kdj0c/panic_report/ >> >> And the javascript to decode the kmsg trace is here (under MIT licence): >> https://github.com/kdj0c/panic_report/blob/main/docs/panic_report.js > > SPDX lines are your friend, you might want to look into that for this > stuff :) Sure, I've added the SPDX header for this file. > >> It uses the pako js library to uncompress the zlib data, which is also under >> MIT/Zlib licence https://github.com/nodeca/pako/ > > Great, can you put that in the Kconfig help area for this option in your > next version? Yes, I will add a link to the panic_report github project. > >> If kernel.org want to host a default service for that, that would be great. >> It can be linked with https://bugzilla.kernel.org to easily create a bug, or >> look for similar bugs. > > Someone should at least propose it if this is going to be an option that > the kernel supports. I hope someone will volunteer to do that, as I'm not really into web development. Also it's a bit early, drm panic is quite new, and needs more driver support to be really useful. > thanks, > > greg k-h > -- Jocelyn