Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1991459ybk; Thu, 21 May 2020 22:15:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxyYHgqTj9fHwETYz5h3QiuAALFsX7jptSwce2KWNoDp9McCZMt1GNds0J292cFqNx+sx8 X-Received: by 2002:a17:906:1313:: with SMTP id w19mr7076258ejb.79.1590124546258; Thu, 21 May 2020 22:15:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590124546; cv=none; d=google.com; s=arc-20160816; b=QfS6vMIVjUBw7VViFGFK48dPqfC6ykgQ8P0Q4Ekua8bX24W/o07C8vrdPmgxCQKXrr A2MJ1i3ou+pOleI5AUJa/kSLz6EwLopXKLLBOfc769CKBm4YwsRhFTLj025wh0UyYX38 SnhDAFfeFumuvl4sJSBhuAaUQihMaTc0U6xTojPPtkPgE3Se5yYFaVxQSkkZwc3GA0PE KFHiJ0hyTOu/uayrbQiBhr2M2BhBh4Kxt0sPdRl6HHGEJXh1vuzSG8oxISgZb+BGudBq 8fmt2Z+k+GkeYZdDmnLw5ftRsxVZjUDRNd1kXX6mEgDZmn+CA7XDsuZs08Au6T+oDiZ9 gAbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=5yruC8ieiL7TwqkjRWBVMs7ndKJLZVQiNT3lPw/qOQU=; b=J+Y5ysXR6lRNLElNOuFCCkzLoe1+eYrLiNl7ZByF4c6hjIEnmgTDDdNotsP/IvGcWp QKc2tJ96732qoPV2XMFS2IVgxmy0nOheC+48nRBqajAgXI6CEq1mSP6fLpQobnoY6BXf Rkym8BhYpKPErgJ5JwXRu7M4mkSECM1BhASUSQms2lsTi2bZBa8ekt68spYCqELhkknh ERyXEmzZEmGAOUiD8TRea8FWjz/W/lwthY4gBghSzRu43g/n7+8h0Rb+xi7VjKXPiKiV JSOcc7pdStBUfqwYlopXrHRit86BHy8j1HGsdHf+Y13fRjVgAY+v/ZWF8tSr64eM/Eq0 V+AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=c7FN9I59; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i60si4162211edd.0.2020.05.21.22.15.08; Thu, 21 May 2020 22:15:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=c7FN9I59; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728161AbgEVFNP (ORCPT + 99 others); Fri, 22 May 2020 01:13:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728056AbgEVFNO (ORCPT ); Fri, 22 May 2020 01:13:14 -0400 Received: from mail-vs1-xe44.google.com (mail-vs1-xe44.google.com [IPv6:2607:f8b0:4864:20::e44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6534AC061A0E; Thu, 21 May 2020 22:13:14 -0700 (PDT) Received: by mail-vs1-xe44.google.com with SMTP id t4so3489080vsq.0; Thu, 21 May 2020 22:13:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5yruC8ieiL7TwqkjRWBVMs7ndKJLZVQiNT3lPw/qOQU=; b=c7FN9I59JUxb822cpZyKQ+6QJIVWr664KHk0nWlcyZuW78SmKtEQN4zjlm51LdGU5g sPunvgH6DLTo6nxtmbrGaUgTML2n+aCw4nUAlfpYvGdCYB7ywLdfLhcrExyn+u9r1mXN z8vr3MLiiL76ZoBiFT4BBjkgquS482zfHeHqMY2IILiPQ1bkaX87zV7D9mMdv+sOcruL iQPCFTchyw9KNXeVLw3StTdhJ9JxBxlBcvhDi/FzuQj+4MY6VE2rRA7nLl9y0WrEY+O2 vbcvKIrsZsgQEzUrlcaHhrPr2+k6mOTFQ/+QJ/gt326m8qBXUGXY/4JDjlP9Fi1ih8F8 gOew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5yruC8ieiL7TwqkjRWBVMs7ndKJLZVQiNT3lPw/qOQU=; b=Re7U5ytEUbfRuhMbuQT9TlYse3mARKHQv1tNstGk/Tfne/EPZZcIUvHYyn/x872l6E MI//01Iuf9z966kI400H7soFeQmz2C3LIcQS/ds2bk+l3VwAljJXMS07uYGDSN1XaSxU 3c+fiNTf95Kl7lCd+s+bT7SNxDpf/3T6Ea8XsDKWaARBqJlY1+jXy819vxpMYnejeGhY Se8G6o+z23yO+1ccEvb42ndHkd+v0T5clmRDmMIlq9UEXGIeyIaId8LJ/ZmShW70TVpv c1QIO9NHdNVOrvRN/mCPRPmFFo5pBphwkDWNxhqHSCgeTJWPnJJVBPIY/pES+03yzH7b gHIw== X-Gm-Message-State: AOAM532dzmcB2oiAqWWUYaIRjKO+hckMkN6Rqzs3VoIFqt7oRWk7ImYe HhILCezRbdR/sEsZltsCtLel7LJ9haiZyiiq64w= X-Received: by 2002:a67:684a:: with SMTP id d71mr9346812vsc.176.1590124392684; Thu, 21 May 2020 22:13:12 -0700 (PDT) MIME-Version: 1.0 References: <20200515212846.1347-1-mcgrof@kernel.org> <20200515212846.1347-13-mcgrof@kernel.org> <2b74a35c726e451b2fab2b5d0d301e80d1f4cdc7.camel@sipsolutions.net> <7306323c35e6f44d7c569e689b48f380f80da5e5.camel@sipsolutions.net> <20200519140212.GT11244@42.do-not-panic.com> In-Reply-To: From: Emmanuel Grumbach Date: Fri, 22 May 2020 08:12:59 +0300 Message-ID: Subject: Re: [PATCH v2 12/15] ath10k: use new module_firmware_crashed() To: Brian Norris Cc: Luis Chamberlain , Johannes Berg , linux-wireless , aquini@redhat.com, peterz@infradead.org, Daniel Vetter , mchehab+samsung@kernel.org, will@kernel.org, bhe@redhat.com, ath10k@lists.infradead.org, Takashi Iwai , mingo@redhat.com, dyoung@redhat.com, pmladek@suse.com, Kees Cook , Arnd Bergmann , gpiccoli@canonical.com, Steven Rostedt , cai@lca.pw, tglx@linutronix.de, Andy Shevchenko , Kalle Valo , "" , schlad@suse.de, Linux Kernel , jeyu@kernel.org, Andrew Morton , "David S. Miller" Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > > On Tue, May 19, 2020 at 10:37 PM Emmanuel Grumbach wrote: > > So I believe we already have this uevent, it is the devcoredump. All > > we need is to add the unique id. > > I think there are a few reasons that devcoredump doesn't satisfy what > either Luis or I want. > > 1) it can be disabled entirely [1], for good reasons (e.g., think of > non-${CHIP_VENDOR} folks, who can't (and don't want to) do anything > with the opaque dumps provided by closed-source firmware) Ok, if all you're interested into is the information that this event happen (as opposed to report a bug and providing the data), then I agree. True, not everybody want or can enable devcoredump. I am just a bit concerned that we may end up with two interface that notify the same event basically. The ideal maybe would be to be able to optionally reduce the content of the devoredump to nothing more that is already in the dmesg output. But then, it is not what it is meant to be: namely, a core dump.. > 2) not all drivers necessarily have a useful dump to provide when > there's a crash; look at the rest of Luis's series to see the kinds of > drivers-with-firmware that are crashing, some of which aren't dumping > anything Fair enouh. > 3) for those that do support devcoredump, it may be used for purposes > that are not "crashes" -- e.g., some provide debugfs or other knobs to > initiate dumps, for diagnostic or debugging purposes Not sure I really think we need to care about those cases, but you already have 2 good arguments :) > > Brian > > [1] devcd_disabled > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/base/devcoredump.c?h=v5.6#n22