Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3233879pxu; Sun, 11 Oct 2020 02:12:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHMgJfyL9xkszodFmtdJc92O6/yxR1LAC2St+SJaD0S9FQZhUGIDk6H71xzt0qbcryMWYP X-Received: by 2002:a17:906:cca9:: with SMTP id or9mr22157017ejb.451.1602407538717; Sun, 11 Oct 2020 02:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602407538; cv=none; d=google.com; s=arc-20160816; b=m0uX5Neyd50GAlqmbv5pC7WdkMx0aw6UIei2anaA6FvDr/WfakJW4nsw5Avks6B1s4 kJdQee1j9qfdrJBb0Uf3Ss7EuU8GetYSN6iMZC28jRFZIrf/HdmYmf42G703qnzNr+c5 ZnVv4QNYX12VUEN0ryDjfoGuLV1ck6FwicRToGX4o2ZMf/8otURghvSbubvak12K/fXZ pe3OhbrOGN9+RAJNHEmAXOu6qe8aTuHG/ZNNZoWymWZG1qR0PhiH1UtFKd9T28tuoEGP iqbzZw5rgV5iHhqRJYyqaepBdvoy2cFOG/JqoFkxaIA0ncqJuE/au6m3TIp3j6sPWZxJ 2Bmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KSgS/yaA0WF+r8iYDZJ1qn48JHFSJ548EMw3n9b8mbU=; b=yOuKdTTJ5oNeqlIhNplUr9k7rS08HyaAsh3wB3YJtsaP7W1f8FC5mnzcb24hwO8iMu iYp8iAaXzfgfGjoZ1PhfmtkMhtelLo2jhqLQlPldwP3dtrpN2E6/SYfa0WphwcPDtM0M 7nvOt3QP3MjznNhBCZYc/6sry3L8z0CCLE+nvf61yHKz451nGO6hmQrDkr1Z6mW9CMEI xB/rCKV7F0PbGUTuzJvJ0D6HKOnNIlR9MpaDc+VEi9zOIkvj56uaMbZQuYrAIIMvRoeW c7K9Lw1qS9lX6bqwjAmQHmPYk30XfZZMVatS+/UEKwkgjVPbDTg4XqhSoJBi1lGvNUDQ 6DeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LssJWxpo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 c11si9771837eds.202.2020.10.11.02.11.55; Sun, 11 Oct 2020 02:12:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=LssJWxpo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1729748AbgJJIBp (ORCPT + 99 others); Sat, 10 Oct 2020 04:01:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728994AbgJJIBd (ORCPT ); Sat, 10 Oct 2020 04:01:33 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D752AC0613CF; Sat, 10 Oct 2020 01:01:32 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id 132so2292123pfz.5; Sat, 10 Oct 2020 01:01:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=KSgS/yaA0WF+r8iYDZJ1qn48JHFSJ548EMw3n9b8mbU=; b=LssJWxpoRbxx7KVR2+T5gSPxakRpYk6ThunpIt+Ve3cPrj5sgsz/qaoCTHtsNkj3HT 4xfTln987yLxtBF9PIfnNjeaQcHir7T4LoSGNVAL1UYj+1WcPU3gdvS5mZTYlE072oph ipJ6quiW3LuChTwlIlHeHy4rOFT7kO6tS4T9+Q972sLdjyxHTG+yIkAVO6G4tEiQw+9B PzgafSNPQsXLYKU0ngebl7SaUu44t3KYiA9P/KjygNRwcGGIAqcxdEca4GrJN0e1L3y+ no5gO6j8h9Dp/yHYFf6/RKnF8ySQjiT+a36TkMzJOLegLjxACtDcIFWTnijcyaLzQOOA 6DBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=KSgS/yaA0WF+r8iYDZJ1qn48JHFSJ548EMw3n9b8mbU=; b=RoxJr+rCTfJrZXIldAnKN2HSRhnCgXIDuHL9AH/XNekQxA3bh9/VHtuRwdLrAgDxGg AqBKrU/7ViA2/pH5R03M7zOLVeoXJRei2ZTbf3OGOFEeiBA7h9nvvL9TjV2WhloiyDiE gkbAEdt7cmaP4YUWmjxxRzTDumaQy50y8mTC5cv6QgzoHqMAcxLQqK5NSYf+CSdirdfG g9qgzp0fp6ZTwKWR3DEDbWMkyhrOr7kbJBa2tXstsMx9dQyb+3M0qlrzEq/Outz1TRD0 xNCABva034Rn1qX/IdxEx2JVXCIO3ycBz4HGgseTRD2OzJ6Dk6jqRZckTQnZuQFRika+ Ovmw== X-Gm-Message-State: AOAM5302TXNn/TxrPQrotLwnLR/XCuzxWARmyamu42rUa4NfFvJ5FAml jSuLKH8ZDnzlrQ/CBUyxMbk= X-Received: by 2002:a65:60d0:: with SMTP id r16mr6494572pgv.348.1602316892230; Sat, 10 Oct 2020 01:01:32 -0700 (PDT) Received: from f3 (ae055068.dynamic.ppp.asahi-net.or.jp. [14.3.55.68]) by smtp.gmail.com with ESMTPSA id 84sm12866551pfx.120.2020.10.10.01.01.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Oct 2020 01:01:31 -0700 (PDT) Date: Sat, 10 Oct 2020 17:01:26 +0900 From: Benjamin Poirier To: Coiby Xu Cc: devel@driverdev.osuosl.org, Shung-Hsi Yu , Manish Chopra , "supporter:QLOGIC QLGE 10Gb ETHERNET DRIVER" , Greg Kroah-Hartman , "open list:QLOGIC QLGE 10Gb ETHERNET DRIVER" , open list Subject: Re: [PATCH v1 5/6] staging: qlge: clean up debugging code in the QL_ALL_DUMP ifdef land Message-ID: <20201010080126.GC14495@f3> References: <20201008115808.91850-1-coiby.xu@gmail.com> <20201008115808.91850-6-coiby.xu@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201008115808.91850-6-coiby.xu@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-10-08 19:58 +0800, Coiby Xu wrote: > The debugging code in the following ifdef land > - QL_ALL_DUMP > - QL_REG_DUMP > - QL_DEV_DUMP > - QL_CB_DUMP > - QL_IB_DUMP > - QL_OB_DUMP > > becomes unnecessary because, > - Device status and general registers can be obtained by ethtool. > - Coredump can be done via devlink health reporter. > - Structure related to the hardware (struct ql_adapter) can be obtained > by crash or drgn. > > Suggested-by: Benjamin Poirier > Signed-off-by: Coiby Xu > --- > drivers/staging/qlge/qlge.h | 82 ---- > drivers/staging/qlge/qlge_dbg.c | 688 ---------------------------- > drivers/staging/qlge/qlge_ethtool.c | 2 - > drivers/staging/qlge/qlge_main.c | 7 +- Please also update drivers/staging/qlge/TODO accordingly. There is still a lot of debugging code IMO (the netif_printk statements - kernel tracing can be used instead of those) but this patch is a substantial improvement.