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 5ABA8155A5C for ; Tue, 9 Jul 2024 10:04:08 +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=1720519450; cv=none; b=VG9BP6rAWwafrJGuBUygOILn2ulSPUEGO4xaGzEtNTKBbcZLPTV99jSFdM1jO8wfXe/wOh/xlXMQ2UgxpIkKI8vaIjNTYw/z1LoBEfFTfbQBnuAKjfvFwRZvriGdW0ZuVRis3XIbjBtfIUC+j+ryLNgT4rk4tjZzj3Ub1PRJeJ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720519450; c=relaxed/simple; bh=snCPj8enqmXPG191f5IdWS+jgLOReKNRMgOU4fLIsDw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=cgEVcK4NV1MhE0AB5hzLgmmB7nf9QfcDATh63tmDfQVDAaH6CfN4JnbYDW8SX7TPizVFXVqSF087xmNZeoww2lJPfZ4ZlnQOcYBaq8/Um9X/kdAtjOLU5Jzst866VkB/ngpqE4TioC797xbPcGRbIXK56+H9XX/Cz+pNapd5GA8= 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=QNz928wQ; 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="QNz928wQ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1720519447; 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=tpy09mrz7GMKI4NSvK7MGNBVjEFB/bqkDusvYImFW+s=; b=QNz928wQ+5sJ46F00zP6itWt35+VRL4xjY1/z0vjjT24kksLR+U7E0hglcYAKAEMOGhNrh Oh5Uwcvo0mo9u3qVFoXTlOfgR4sFaDxIHfSNs6/4qHH4vWPvDGR6NdhhpZMRG4pOCbTjLs sw9SW27rSbVrecz1h3gWvjzFyqu7Kio= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-378-7ZKAYWLxNtuA4i5CVWDMcw-1; Tue, 09 Jul 2024 06:04:06 -0400 X-MC-Unique: 7ZKAYWLxNtuA4i5CVWDMcw-1 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-4265d3bf59dso22339545e9.3 for ; Tue, 09 Jul 2024 03:04:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720519445; x=1721124245; 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=tpy09mrz7GMKI4NSvK7MGNBVjEFB/bqkDusvYImFW+s=; b=aeVd9IefDEqL2aC5+jB5wb4aflSxUEXYoba9N8lvw8QlH9KaDJGINh82R+TbSr2bPO Aq8XS9V1U/kenJ6YbpLvsCaC+nqr6CBLZETXwXRMmaqNtuOWhKip+yfFpvRRClX4Brk4 P276fUBi9QTQ8/jAeNkQtqHTr4hQu14yb+o0VC/d8Azx6pI/qhT0jnc7xTNM5Pi0EUjn Ndc2hZB6Sx+WQ8QO90bxF3dCrVbkz4Odu8PBwsdoh2hu6TzrOLZcvdweoGS4uPSMYsFY rMIXSf378wiCHV+AMUxFE4FlWInQB51Cu5AAgMypnB0SyLu3JF5jo73LXoOFm9HA2O8Q JdnQ== X-Forwarded-Encrypted: i=1; AJvYcCXua6YSbUHElRgrIhLqPf+mXrBB+haP+4C1Yb36kb6gKr28gltqt0nTVRmQv96fXGgfOe62S0nOkDOL0ElN0Etunkp/CCkU4NlAT+LHeJk= X-Gm-Message-State: AOJu0YwfNMJUcz4JqoUsdBqTxjiF+SdU6Izy7U2xnqDmOb2Yt1pE3Xtb LYT+cIsdlQiUlnl9IVSNOh4TiiEjqSRN1Xf38GVggf4Fg6NIYiO/XMwRdzqkMNQr2ASPla59skj Ut49kZY8ebYSj1/ge2Y/W1R684J7GKaBdrBvaYAPaULAi6mVW6Wd5JxVM6dLF0urJ X-Received: by 2002:a5d:5f48:0:b0:35f:1161:e1a3 with SMTP id ffacd0b85a97d-367cea46c6fmr1621706f8f.5.1720519445094; Tue, 09 Jul 2024 03:04:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG3iuKpr/2eO4/gcMobO6ZU2lCVEnjdpbfxjc4M2aoAaKUj61p40UKF3EXkfLoCHaXC2OhfCQ== X-Received: by 2002:a5d:5f48:0:b0:35f:1161:e1a3 with SMTP id ffacd0b85a97d-367cea46c6fmr1621657f8f.5.1720519444402; Tue, 09 Jul 2024 03:04:04 -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-367df88b1c5sm19168f8f.4.2024.07.09.03.04.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Jul 2024 03:04:03 -0700 (PDT) Message-ID: Date: Tue, 9 Jul 2024 12:04:02 +0200 Precedence: bulk X-Mailing-List: rust-for-linux@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> From: Jocelyn Falempe In-Reply-To: <2024070947-exorcism-purchase-2f28@gregkh> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US, fr Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 It uses the pako js library to uncompress the zlib data, which is also under MIT/Zlib licence https://github.com/nodeca/pako/ 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. Best regards, -- Jocelyn > > thanks, > > greg k-h >