Return-path: Received: from sabertooth02.qualcomm.com ([65.197.215.38]:20494 "EHLO sabertooth02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758909AbaD3QO4 (ORCPT ); Wed, 30 Apr 2014 12:14:56 -0400 From: Kalle Valo To: "John W. Linville" CC: Johannes Berg , Bing Zhao , "linux-wireless@vger.kernel.org" , Amitkumar Karwar , Avinash Patil , Maithili Hinge , Xinming Hu Subject: Re: [PATCH 2/5] mwifiex: add firmware dump feature for PCIe References: <1397760423-11455-1-git-send-email-bzhao@marvell.com> <1397760423-11455-2-git-send-email-bzhao@marvell.com> <87a9bb5c2c.fsf@purkki.adurom.net> <20140425013756.GA3410@tuxdriver.com> <477F20668A386D41ADCC57781B1F70430F70A2AE8E@SC-VEXCH1.marvell.com> <1398413370.4152.0.camel@jlt4.sipsolutions.net> <8738gvp8md.fsf@qca.qualcomm.com> <1398846593.5408.0.camel@jlt4.sipsolutions.net> <20140430132246.GB3635@tuxdriver.com> Date: Wed, 30 Apr 2014 19:14:55 +0300 In-Reply-To: <20140430132246.GB3635@tuxdriver.com> (John W. Linville's message of "Wed, 30 Apr 2014 09:22:47 -0400") Message-ID: <87y4ymn69s.fsf@qca.qualcomm.com> (sfid-20140430_181459_996809_1F2D3D99) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: linux-wireless-owner@vger.kernel.org List-ID: "John W. Linville" writes: > On Wed, Apr 30, 2014 at 10:29:53AM +0200, Johannes Berg wrote: >> On Wed, 2014-04-30 at 10:41 +0300, Kalle Valo wrote: >> > Johannes Berg writes: >> > >> > > On Thu, 2014-04-24 at 20:35 -0700, Bing Zhao wrote: >> > > >> > >> Sorry about the hassle. We will find a proper way to implement this. >> > > >> > > FWIW, a pretty simple way is to trigger a uevent or so and have a >> > > debugfs file that all the info can be read out from in userspace. >> > >> > I think we need a similar feature in ath10k as well. Should we have a >> > generic interface this, would that make any sense? >> >> We have it in iwlwifi as well - we were considering a generic uevent but >> beyond that I don't think there's much that could be done? > > There is an ethtool op for that, no? Do you mean this one: * @get_dump_flag: Get dump flag indicating current dump length, version, * and flag of the device. * @get_dump_data: Get dump data. * @set_dump: Set dump specific flags to the device. int (*get_dump_flag)(struct net_device *, struct ethtool_dump *); int (*get_dump_data)(struct net_device *, struct ethtool_dump *, void *); int (*set_dump)(struct net_device *, struct ethtool_dump *); Yeah, maybe we could use that in wireless as well. -- Kalle Valo