Received: by 10.213.65.68 with SMTP id h4csp2314043imn; Mon, 2 Apr 2018 05:25:11 -0700 (PDT) X-Google-Smtp-Source: AIpwx488Uocei905X5SyxgdcjHQdaBAWhBWLN4nSvxkUo4GD2sZiPrbBSw0b8QMM5opLGjvpb/8z X-Received: by 10.99.113.94 with SMTP id b30mr6164142pgn.196.1522671911268; Mon, 02 Apr 2018 05:25:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522671911; cv=none; d=google.com; s=arc-20160816; b=l0xRjbuDuHUxdeXw/svG92DfqFtynPYU5xWxCbhR6beVERvzTT1L1dBgBJpFFtU69L AkpQ7UBq5mvkkE/2RPtOpjAeIv3PQSH/i9jvoeWaTmrrS4iOLtE0wSLNutKG1t+4LOO2 ZONZZQo7EhgF7R7tMf9afWzgHMvwcm0LJsmaYDgozQIdCoAgDO4fO42BANrDNRJg2uD+ NqsPrI3n70VQ89CTB85SFy/sIszg/ZNVfUcDVJdmib7NsYLufe0r1hF2zurI6FDYtbbe PfFIBTgOFrm4kCuz0yZ870+Wz26cYCTrwnEBHf4FLXtsLrJW8BKgF+ObkB0NQvNb+14m +AdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=S+Gc7P0GbHnu9RoJls+pZWfLK/iLS8eHQ3j+NlIz6gk=; b=WJqaGhJUn8E6QispHdietlqnprFnm8pMtDb6PCO8wFGjnS+7pLPULL2icRYvhIcrYn rA9BzdZKZkvnrzyXuGcrbvFMVTIENHy6zzrC47OTkglDgTO8kXuZFkW7Lt6JV9RAo04T RHQVBctsvxwsxrpOBAf45fOLxe92RVV5x+fL/Lr4P34U2jowvqMRzBmYPacUWKcOXFM8 nBOTbkqxdAk+u7rmrx50tCYuCfqks8q+cXdzU0CAc5QHSDjms9OpQ99IiVPUz32r6MSW yRQA0QNo260NRXUmcczluLCOdpYTUe2mepl/cpmlx9oS6xB5h+sfWmNNdnJ3XGWkzQKx TvGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=KzT1tTBJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e8si149753pgc.772.2018.04.02.05.24.57; Mon, 02 Apr 2018 05:25:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=KzT1tTBJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751642AbeDBMWG (ORCPT + 99 others); Mon, 2 Apr 2018 08:22:06 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:48796 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751198AbeDBMWB (ORCPT ); Mon, 2 Apr 2018 08:22:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=S+Gc7P0GbHnu9RoJls+pZWfLK/iLS8eHQ3j+NlIz6gk=; b=KzT1tTBJSk+JpeGw4ruGgXH7rRbIlvyAY2ZqOXWwNq1KdA08h/MoW1Zgk6KBnLi2hrLYGueCusxE4s0gDxCd3Lhzg8MqyEnFJAlLGdy1Ma4yCWuEFv1Rug9+0NhbDgGEeIzT3GG+XZ6SMCKaugEe5F9m8E8Ix2WhSGaH24w+mp4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1f2ySy-0002NV-EK; Mon, 02 Apr 2018 14:21:40 +0200 Date: Mon, 2 Apr 2018 14:21:40 +0200 From: Andrew Lunn To: Jiri Pirko Cc: "Eric W. Biederman" , Rahul Lakkireddy , "netdev@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "kexec@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "davem@davemloft.net" , "viro@zeniv.linux.org.uk" , "stephen@networkplumber.org" , "akpm@linux-foundation.org" , "torvalds@linux-foundation.org" , Ganesh GR , Nirranjan Kirubaharan , Indranil Choudhury Subject: Re: [PATCH net-next v2 1/2] fs/crashdd: add API to collect hardware dump in second kernel Message-ID: <20180402122140.GB8159@lunn.ch> References: <296ffbd47fd4f30238689e636bd2480683224227.1521888444.git.rahul.lakkireddy@chelsio.com> <20180330103907.GC3313@nanopsycho> <20180330105156.GA24344@chelsio.com> <87k1tt2yo7.fsf@xmission.com> <20180402091143.GD3313@nanopsycho> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180402091143.GD3313@nanopsycho> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > >> The sysfs approach proposed here had been dropped in favour exporting > >> the dumps as ELF notes in /proc/vmcore. > >> > >> Will be posting the new patches soon. > > > >The concern was actually how you identify which device that came from. > >Where you read the identifier changes but sysfs or /proc/vmcore the > >change remains valid. > > Yeah. I still don't see how you link the dump and the device. Hi Jiri You can see in the third version the core code accept a free form name. The driver builds a name using the driver name and the adaptor name. What i think would be good is to try to have one API to the driver that can be used for both crash dumps and devlink snapshots. These are used at different times, but have basically the same purpose, get state from the device. Andrew