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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 262FBC00140 for ; Wed, 10 Aug 2022 16:21:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232286AbiHJQVx (ORCPT ); Wed, 10 Aug 2022 12:21:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230209AbiHJQVw (ORCPT ); Wed, 10 Aug 2022 12:21:52 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 039D875FFA; Wed, 10 Aug 2022 09:21:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id ACCC4B81D68; Wed, 10 Aug 2022 16:21:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBBF3C433D6; Wed, 10 Aug 2022 16:21:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660148509; bh=2HoQq0UsSNZf1aWHLoL03WxXB+cIK/OQM6i//CxV3/c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DGdsQo57SIt0wWyUYwQSNbYBxVxfpAYo6jctS1Sn/ZuvDnZM6fCt+NB/iCt7PkD42 CDZBt47wZYXesvHz3MRHaofh705M5Rc8gCvS3dyxADmrbRV5d2PELTxHgSlWxDymNC 479MnjTgePDNRPUvOk0gCReAnq14IWeKSAkRWDGs= Date: Wed, 10 Aug 2022 18:21:46 +0200 From: Greg Kroah-Hartman To: Johannes Berg Cc: Manish Mandlik , Arend van Spriel , marcel@holtmann.org, luiz.dentz@gmail.com, Dan Williams , Jason Gunthorpe , linux-bluetooth@vger.kernel.org, Thomas Gleixner , "Rafael J . Wysocki" , chromeos-bluetooth-upstreaming@chromium.org, Won Chung , Abhishek Pandit-Subedi , linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 1/5] sysfs: Add attribute info for /sys/devices/.../coredump_disabled Message-ID: References: <20220810085753.v5.1.I5622b2a92dca4d2703a0f747e24f3ef19303e6df@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Wed, Aug 10, 2022 at 06:03:37PM +0200, Johannes Berg wrote: > On Wed, 2022-08-10 at 09:00 -0700, Manish Mandlik wrote: > > This patch adds the specification for /sys/devices/.../coredump_disabled > > attribute which allows the userspace to enable/disable devcoredump for a > > particular device and drivers can use it to enable/disable functionality > > accordingly. It is available when the CONFIG_DEV_COREDUMP is enabled and > > driver has implemented the .coredump() callback. > > > > It would be nice to say _why_? What problem does this solve? You could > just create the dump and discard it, instead, for example? Agreed, I do not understand the need for this at all. thanks, greg k-h