Received: by 10.223.148.5 with SMTP id 5csp7318319wrq; Thu, 18 Jan 2018 04:06:42 -0800 (PST) X-Google-Smtp-Source: ACJfBour6Ty0qXbVzsEr6c8Uwi6a+CUuu23tO6JPW94m/VbP8SZcuBCCL9ueySAclQZ4UO1p9sZU X-Received: by 10.98.18.150 with SMTP id 22mr36707588pfs.180.1516277202077; Thu, 18 Jan 2018 04:06:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516277202; cv=none; d=google.com; s=arc-20160816; b=xUsYG60NZMWjYty9tnAKXQSET/C1MiSIfdX/Z7kZi88jnPPmA4VI5dUoC6Xmax4gYl siQ4VzZPhB0ZOXKDEJjov1k6N0qS+EdkhAjoWkLZxG5tlOQZhsfLl2jj3FDkSj4lFZ5s F8mWL7cYeiWcnhoRVOQwzsBADiGdysmxugv3TfwmKakpOY9uhHpyR71DOW3atIdEAHEm fBewk41lm/Ax4gIjRsaJF2qooXZA+KqZBJ3Z6E8NkHzv7A3UeyTifZ54LkS63+w3GqYO QsUqdd564zIUsrOPPWSbLs8k+l/VmHxBxW43NkJE0SIS+TUoCdEZKGuNj2CSzs4U1RA2 Saeg== 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=CBI5MJWX8SIW3K1RgdFLiP3q45kJqrZAM5+L7S3damQ=; b=IaccddrUiBkMMf3ktywJAqkvTN21GzRnlCLH+DM9y2I8zUR7B7cI+RewcztyXFz37O wNjaOP4UbYxZ5uW/Xp/rltp4rVdLTaxdFWV/FkNbzPTqd6wfxpikFvuJ+APYBAXn0VOq rXCxamHLgOTikyFoCVvlobhV1fmMkmu+SUkkXjpNGEs8IOePz49Pdbjmo6GcGMTrTQsT 9edWdwlSZn3StxnspZPydTmhL1Ok24jgq5Mg+bltuJALRvGuBmDYO1fSgWsOtaLyifmk ivxK2fTGxwXnFr5+994koW//8KTz1+cTLBr+jtltFXrF+pCyZdOHc8y8dl5pIpG1LKn3 5qzA== 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 w6si3814793pgo.491.2018.01.18.04.06.27; Thu, 18 Jan 2018 04:06:42 -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 S1755255AbeARMGH convert rfc822-to-8bit (ORCPT + 99 others); Thu, 18 Jan 2018 07:06:07 -0500 Received: from mx01.hxt-semitech.com.96.203.223.in-addr.arpa ([223.203.96.7]:60251 "EHLO barracuda.hxt-semitech.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750724AbeARMGF (ORCPT ); Thu, 18 Jan 2018 07:06:05 -0500 X-ASG-Debug-ID: 1516277159-093b7e099d026a0001-xx1T2L Received: from HXTBJIDCEMVIW01.hxtcorp.net (localhost [10.128.0.14]) by barracuda.hxt-semitech.com with ESMTP id tfDCOrkoGCS0YGwm (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 18 Jan 2018 20:05:59 +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 20:06:06 +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 20:06:06 +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+PKWkEOXafu6N4WSMAgAB1jICAADWaAA== Date: Thu, 18 Jan 2018 12:06:06 +0000 Message-ID: <1516277158.15644.43.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> <1516240404.15644.23.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: <4089A9CBD552234E895B1FCEDE33E8A5@hxt-semitech.com> Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Barracuda-Connect: localhost[10.128.0.14] X-Barracuda-Start-Time: 1516277159 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.5743 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.47003 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 Thu, 2018-01-18 at 08:54 +0000, Marc Zyngier wrote: > On 18/01/18 01:53, Yang, Shunyong wrote: > > > > 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); > Have you investigated whether %pK would work in a debug context? Although build name with physical address makes it straightforward when working with tables like MADT. I agree with you about the security concern. As it's just a name, hashed address is OK. But it brings new issues. Currently, component like GIC calls this function with virtual address and ITS with physical address. Is there possibility that GIC/ITS name is different in each boot? Should we change GIC/ITS fw handle allocate to name/name-id style? Thanks Shunyong?