Received: by 10.223.148.5 with SMTP id 5csp7122565wrq; Thu, 18 Jan 2018 00:55:27 -0800 (PST) X-Google-Smtp-Source: ACJfBouUJB8Sg/thj0IKIC31Qn6OwGfifsIZF2Xp9FiI7g9QIdi+lSfqngX3/VR/gsYyeFK9zAAe X-Received: by 10.98.141.141 with SMTP id p13mr41086183pfk.185.1516265727754; Thu, 18 Jan 2018 00:55:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516265727; cv=none; d=google.com; s=arc-20160816; b=yogXotJOEveX6yNo3ApU3khX8vkFK93TyrYTijpmFo3oKdd9CT4l2IP1wJYzp2jc+1 6loLWHMY8rVbbUrFHccQ3QuNFlaZPpfbVgx9MhTwKpUbQWKWc/LDBxjuATiv6Md40ieg d3qeCFYQsrZYGO0dIKEGH/VCKS6ge3mnZ6fKvoUVVXG0E+Cz8rQMT9yYOllzxKgVpFDh PtF+hOrWcb2u/BpQlpbkXo4HCcPNYVBeREFo78wicOaZiFoTLUiajWj57Pl8Tf6Mt5yx 5xWxt+jzYy4suDWjoyuH8r/s5OzjNiAAimxF7IjzXXkenAygReyLLznKjmfFLW+VPE53 oyAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=0rdd0p+iDp87PLPaiDNKa1QnVLldadoxnSutEPQ+xP0=; b=LevRQzMgd9KCauyJ/q1/30aJROzwoLZ73mguhqsqgn0HGVLmsGghoOT7ZuhQ0b7hVt 4qrZM8zG4CKc0aUiXp6lwPW4F4xyAJbDs5XEq4GPXVTr3KbU/QG23Y1JqoeqLVEgtOaD qHi6po9T53s+JMkVU2mdcRGtmuYz1DDvwVeGp2/55uUHssw1xB7xXmKzAsOFMU5qNbBs BF1qvnP5o4XLTKuOPHJb9FmyXY3X4MCJTipbqF3o57ubV5Y2JWC3BlKNx/oPEqNEySLx CfnoGDU8PmI37kMfhsKepYAVhQo3NN3iPOeTY6dC3pN6ZiHQXrS5d7g04NPFDQuB8ruP HFIQ== 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 m8si5545480pgn.343.2018.01.18.00.55.13; Thu, 18 Jan 2018 00:55:27 -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 S1755210AbeARIyL (ORCPT + 99 others); Thu, 18 Jan 2018 03:54:11 -0500 Received: from foss.arm.com ([217.140.101.70]:51978 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755250AbeARIyK (ORCPT ); Thu, 18 Jan 2018 03:54:10 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2E2DE1529; Thu, 18 Jan 2018 00:54:10 -0800 (PST) Received: from [10.1.207.62] (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 552A33F487; Thu, 18 Jan 2018 00:54:09 -0800 (PST) Subject: Re: [PATCH] irqdomain: provide useful debugging information for irq domain To: "Yang, Shunyong" , "tglx@linutronix.de" Cc: "linux-kernel@vger.kernel.org" , "Zheng, Joey" 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> From: Marc Zyngier Organization: ARM Ltd Message-ID: Date: Thu, 18 Jan 2018 08:54:07 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <1516240404.15644.23.camel@hxt-semitech.com> Content-Type: text/plain; charset=iso-8859-15 Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > > 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/? Sure. If you think something is missing, feel free to send an additional patch. Thanks, M. -- Jazz is not dead. It just smells funny...