From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 00E6DC636D6 for ; Thu, 23 Feb 2023 12:39:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=upjLv4699mZxqkVSbelmzyQ06XTxZmaM1lP8Nj2yz7w=; b=ScHegILGiq6rKQ Fg9HQvu9DLQqWE8IUJh1sBZ2PvFWxO/zs8JYRv2buuae0kuzHgLp+qwjsVn4te9F+pfnzYMH2pAFT rcICOk+PobUFEkFp+NUayFbPXQku9I9NOtvh2l3FVzLif5DSgBMQbeex1cYanc7/RbJ0alWLGg353 SZfqhklgOHpabnZRdZZQzbjg1VjbcUZK5AUsBK9tgPt51BiXhD9U90hPIhtseBsXt3gx6ozown6P7 LW1NyU+dtPXF5K1wL5gGIoUBXvvRrtFECqPw2KuP5KjRG3vqaKXedKNGTrvJX9rDPeDaqsT9Kx3D0 N5zrOB3bDao5InpY3i5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pVArN-00GJrX-Sc; Thu, 23 Feb 2023 12:38:05 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pVArJ-00GJq9-Le for linux-arm-kernel@lists.infradead.org; Thu, 23 Feb 2023 12:38:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677155876; 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: in-reply-to:in-reply-to:references:references; bh=o5faige4boHy1KDnDJFUMGzlyi7Wgdd7JL40G0EvBo0=; b=DAd69z/mYzo+WhTe+QrdMa5w37mfk94GO5CzaCRSOEbhF+nhiqNXPbPhC/TArBDxe5+B9+ liEk1vMkKXZ/PdYUSmxQYw0OoYAvhg33TEnNA7VnKGnwqpzN2PcPOSVg+edfytRdxDJTkD bSzjTpjE7EMvgAL9ZDqsoUIkwDr3Q1o= Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-516-PD2BZmUcOquFf0GM9zbcbA-1; Thu, 23 Feb 2023 07:37:55 -0500 X-MC-Unique: PD2BZmUcOquFf0GM9zbcbA-1 Received: by mail-io1-f72.google.com with SMTP id v4-20020a6b5b04000000b0074065ea437aso6181748ioh.12 for ; Thu, 23 Feb 2023 04:37:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=o5faige4boHy1KDnDJFUMGzlyi7Wgdd7JL40G0EvBo0=; b=qgfK4dy3OJSLWTjaN3umDuFYn96ISQW7b6lNky7oV/Q+9q/Mk3W2iXT19IJRAO+PiD SbNDueSacJqcMCXzmDKCWWclgZgSM0vVNXQXM4pUYMmG/mCAeD50cOkc+oCzRQhXcfog bMPNLqt4WUQY22XW2C0FYLhFHTK1ZSzg50SZ/Jpaysya1ijDGMOluWf9MaOhmXxh5nAl CJItlcYU6NGckyOXWoY6/X2lGUdxuKuUQ4PAt2Fnc9Ag/b3K9zkVveir64ObQPAJ2T42 XJ8jpo45l155LlrBn6dc5Ef+l2LGNF6V8pbM07vohdDnmgjBK7LQPA/KXh31lOMsHYek fhUw== X-Gm-Message-State: AO0yUKX3sot8mOGf5cr9wFFxO5HPpoCd+5+vhMQoOV+1l7ML0LHWhrPx ZDn2btRSZxwxkMqfJAVAAcvY35T4dIuB9c6IeAEG/XIHW8RlAMBz6pRA6FW/LinMWN10fNpADPI Ynni7y7YEKXJ5D7bVHSnFHqs90ammejCl740= X-Received: by 2002:a05:6e02:1445:b0:316:e54a:828f with SMTP id p5-20020a056e02144500b00316e54a828fmr6493883ilo.6.1677155874578; Thu, 23 Feb 2023 04:37:54 -0800 (PST) X-Google-Smtp-Source: AK7set/6AWA4CAuXGZNmzPhHzcrBdzMdBpWOTtYJucrF1Qv97MIIPEiFDxaTnG32VB1VQ2w0xUjrzA== X-Received: by 2002:a05:6e02:1445:b0:316:e54a:828f with SMTP id p5-20020a056e02144500b00316e54a828fmr6493856ilo.6.1677155874289; Thu, 23 Feb 2023 04:37:54 -0800 (PST) Received: from x1 (c-73-214-169-22.hsd1.pa.comcast.net. [73.214.169.22]) by smtp.gmail.com with ESMTPSA id y22-20020a02bb16000000b0039e89ea68f9sm1759062jan.135.2023.02.23.04.37.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 04:37:53 -0800 (PST) Date: Thu, 23 Feb 2023 07:37:51 -0500 From: Brian Masney To: Mukesh Ojha Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, keescook@chromium.org, tony.luck@intel.com, gpiccoli@igalia.com, catalin.marinas@arm.com, will@kernel.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [RFC PATCH 0/6] Add basic Minidump kernel driver support Message-ID: References: <1676978713-7394-1-git-send-email-quic_mojha@quicinc.com> MIME-Version: 1.0 In-Reply-To: <1676978713-7394-1-git-send-email-quic_mojha@quicinc.com> User-Agent: Mutt/2.2.7 (2022-08-07) X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230223_043801_822037_00E5E174 X-CRM114-Status: GOOD ( 23.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Feb 21, 2023 at 04:55:07PM +0530, Mukesh Ojha wrote: > Minidump is a best effort mechanism to collect useful and predefined data > for first level of debugging on end user devices running on Qualcomm SoCs. > It is built on the premise that System on Chip (SoC) or subsystem part of > SoC crashes, due to a range of hardware and software bugs. Hence, the > ability to collect accurate data is only a best-effort. The data collected > could be invalid or corrupted, data collection itself could fail, and so on. > > Qualcomm devices in engineering mode provides a mechanism for generating > full system ramdumps for post mortem debugging. But in some cases it's > however not feasible to capture the entire content of RAM. The minidump > mechanism provides the means for selecting which snippets should be > included in the ramdump. > > The core of minidump feature is part of Qualcomm's boot firmware code. > It initializes shared memory (SMEM), which is a part of DDR and > allocates a small section of SMEM to minidump table i.e also called > global table of content (G-ToC). Each subsystem (APSS, ADSP, ...) has > their own table of segments to be included in the minidump and all get > their reference from G-ToC. Each segment/region has some details like > name, physical address and it's size etc. and it could be anywhere > scattered in the DDR. > > Existing upstream Qualcomm remoteproc driver[1] already supports minidump > feature for remoteproc instances like ADSP, MODEM, ... where predefined > selective segments of subsystem region can be dumped as part of > coredump collection which generates smaller size artifacts compared to > complete coredump of subsystem on crash. > > [1] > https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/remoteproc/qcom_common.c#n142 > > In addition to managing and querying the APSS minidump description, > the Linux driver maintains a ELF header in a segment. This segment > gets updated with section/program header whenever a new entry gets > registered. I'd like to test this series plus your series that sets the multiple download modes. Can you include documentation about how to actually use this new feature? Also the information that you provided above is really useful. I think that should also go in the documentation file as well. I already have a reliable way to make a board go BOOM and go into ramdump mode. Brian _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel