Received: by 10.223.148.5 with SMTP id 5csp6705833wrq; Wed, 17 Jan 2018 17:55:17 -0800 (PST) X-Google-Smtp-Source: ACJfBosGj1ZBmO2osXWZNeMhOcFtNDh2NzB4RFix8xgujGa+h/+GvwRTiJRSEiAbA+8RIn4E2242 X-Received: by 10.101.91.196 with SMTP id o4mr34217105pgr.169.1516240516911; Wed, 17 Jan 2018 17:55:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516240516; cv=none; d=google.com; s=arc-20160816; b=TSDOzHCLwUyO+FLjhVxvVrrSBJcnvdbFTGbRdxgDzdsu7mPe9QOEfrBRzkzajKpll/ NtBskzGsH9+HBKPDPYDO49PFb1J6Zrgli6XSmVIJLKSHKN1hNeJHqLeUg+z3c5fa5i5l 1u30u2hzWE9ITrq1uRr9Npdpef680yZeiFTtNQx8eCcwHerXc+NAnoZMy57+u86bjpat xjLTI+zPkfnJu4J0a5qu8/UoYGx4vEIT11muHrS1qBFa5OPKBL+M/d421zD2ib46JTQR NLFWxgOZQjGNYzybt7485TTBTRa4fAjASnTbiXKASUh/G5HqphkakbEj4+wvZo4dATV8 Jkhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=FcplybLpeL4peA+lbtUPMEw4wCiOk5/np7FIn9QrFjo=; b=d6YR2phm1ule/g6suWIZEk+PYdZrjg8uQbhhGBW4Wrwg1RomKDlaMnNnXiqpWFVCKr fDlkPz+lC2g8h4O/6qSQ9ABD0ENLtcHoyzUO+DlBvefwOFTwX/xXAj3D5kAY+o0IcTt9 l8FV2eMPT9IL61Rcu+bq54H64aai/BXVuMahMwsuK1RBN8UcuDyptEbTlJDGlM9W+7OV /XzictXCLn9O59WTEojtZuwtcG2CH7gKHLpBIEjAAedyXdsZOGePNGIZcapWx/LxopIb h20KiDnrptcEViraq3IdKh7O8eMDg52NtontPSOc2TyKo2qsi3LzqQlqq7Q65Ru8geK9 1lxQ== ARC-Authentication-Results: i=1; mx.google.com; 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 k193si5514249pfc.170.2018.01.17.17.55.03; Wed, 17 Jan 2018 17:55:16 -0800 (PST) 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; 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 S1753105AbeARBxb convert rfc822-to-8bit (ORCPT + 99 others); Wed, 17 Jan 2018 20:53:31 -0500 Received: from mx01.hxt-semitech.com.96.203.223.in-addr.arpa ([223.203.96.7]:50040 "EHLO barracuda.hxt-semitech.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752368AbeARBx3 (ORCPT ); Wed, 17 Jan 2018 20:53:29 -0500 X-ASG-Debug-ID: 1516240405-093b7e0d773fef0001-xx1T2L Received: from HXTBJIDCEMVIW01.hxtcorp.net (localhost [10.128.0.14]) by barracuda.hxt-semitech.com with ESMTP id PUUehYYZyxem8E5h (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 18 Jan 2018 09:53:25 +0800 (CST) X-Barracuda-Envelope-From: shunyong.yang@hxt-semitech.com Received: from HXTBJIDCEMVIW02.hxtcorp.net (10.128.0.15) by HXTBJIDCEMVIW01.hxtcorp.net (10.128.0.14) with Microsoft SMTP Server (TLS) id 15.0.847.32; Thu, 18 Jan 2018 09:53:32 +0800 Received: from HXTBJIDCEMVIW02.hxtcorp.net ([fe80::3e:f4ff:7927:a6f6]) by HXTBJIDCEMVIW02.hxtcorp.net ([fe80::3e:f4ff:7927:a6f6%12]) with mapi id 15.00.0847.030; Thu, 18 Jan 2018 09:53:32 +0800 From: "Yang, Shunyong" To: "tglx@linutronix.de" , "marc.zyngier@arm.com" CC: "linux-kernel@vger.kernel.org" , "Zheng, Joey" Subject: Re: [PATCH] irqdomain: provide useful debugging information for irq domain Thread-Topic: [PATCH] irqdomain: provide useful debugging information for irq domain X-ASG-Orig-Subj: Re: [PATCH] irqdomain: provide useful debugging information for irq domain Thread-Index: AQHTj4AHsJhr+18M4E+PKWkEOXafu6N4WSMA Date: Thu, 18 Jan 2018 01:53:32 +0000 Message-ID: <1516240404.15644.23.camel@hxt-semitech.com> References: <1516163877-32396-1-git-send-email-shunyong.yang@hxt-semitech.com> <210f90d0-1588-2185-4845-d5d143183621@arm.com> <1516181177.3280.13.camel@hxt-semitech.com> <1516182426.3280.19.camel@hxt-semitech.com> <1516184428.3280.25.camel@hxt-semitech.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.64.6.73] Content-Type: text/plain; charset="iso-8859-15" Content-ID: <84C5EB80D1875E48A64E1EA80998101C@hxt-semitech.com> Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Barracuda-Connect: localhost[10.128.0.14] X-Barracuda-Start-Time: 1516240405 X-Barracuda-Encrypted: ECDHE-RSA-AES256-SHA X-Barracuda-URL: https://192.168.50.101:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at hxt-semitech.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Bayes: INNOCENT GLOBAL 0.5070 1.0000 0.7500 X-Barracuda-Spam-Score: 0.75 X-Barracuda-Spam-Status: No, SCORE=0.75 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.46989 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Marc On Wed, 2018-01-17 at 10:43 +0000, Marc Zyngier wrote: > On 17/01/18 10:20, Yang, Shunyong wrote: > > > > Hi, Thomas and Marc, > > > > On Wed, 2018-01-17 at 11:01 +0100, Thomas Gleixner wrote: > > > > > > On Wed, 17 Jan 2018, Yang, Shunyong wrote: > > > > > > > > > > > > On Wed, 2018-01-17 at 10:33 +0100, Thomas Gleixner wrote: > > > > > > > > > > > > > > > And how is that different from: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The nodes under debugfs irq/irqs describes information of > > > > > > every > > > > > > single > > > > > > irq. > > > > > Not at all. It contains the complete hierarchical information > > > > > of > > > > > each > > > > > virq. > > > > > > > > > I think irq_domain_mapping can provide some high-level > > > > information > > > > in a > > > > summary style. > > > > For example, we can check all the IRQs connect to a specific > > > > irq > > > > chip > > > > or irq domain. > > > You can retrieve the same information from the irq/irqs files. > > > All it > > > takes > > > is a shell script. > > > > > > Aside of that with hierarchical irq domains the old debug output > > > is > > > just > > > useless. > > > > > Umm...Agree. Need I post a patch to remove it? > I'm on it. > In addition to the "%p" to "%px" change in?IRQ_DOMAIN_DEBUG you have posted patch to remove it, my original patch includes several other changes: 1. change to "%px" in kasprintf() parameters in function?__irq_domain_alloc_fwnode() to build name which reflects the real pointer address from caller, this may be useful when reading debug information. ? n = kasprintf(GFP_KERNEL, "irqchip@%px", data); 2. other 3 changes from "%p" to "%px" in existing?pr_debug(). Could I submit a V2 patch which depends on your "irqdomain: Kill CONFIG_IRQ_DOMAIN_DEBUG" patch to handle this?? Following is the link of your patch, https://patchwork.kernel.org/patch/10169367/? . Thanks Shunyong