Received: by 10.223.176.5 with SMTP id f5csp1359899wra; Fri, 9 Feb 2018 18:19:12 -0800 (PST) X-Google-Smtp-Source: AH8x224nu2T/mVO42Vz5S3ZwjkFsPQqLW3WzVsAkjqzdGxT2MN63mH2MLK/DwoywdOFwEhC+17ea X-Received: by 10.99.114.24 with SMTP id n24mr2816316pgc.400.1518229152162; Fri, 09 Feb 2018 18:19:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518229152; cv=none; d=google.com; s=arc-20160816; b=hWsuah0ZtGuAue6J4p6AOBgnXbsxblvgJZ/8LnQe/G9zA1/ydIHKR9W6DLG7dVHreD ijLmZIGF6VAql2d9bccNy6ojSGVilziSPQIwof4b96BS9KXS5P8ve0wmX3hY+/0ncGhF lc4RtCpM6wXPyZahDfwGVSnQi4i3k3uYHRJgC5WdHpmSfmktSMPCCZmysoxHwko4phAr UmVYzgR3PALMIXnKtB5MC2Ak9GSOwpRqV4ENhj/c7ZicOeEjVQG8VqlPbetzz0fZWEX9 iLAJit0umHwMkFr2h/sXySJHWxuBIbvcM0mz02zW/Ws++ll+8txoq0ZbVMSmfbiY+5ee uqZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature:arc-authentication-results; bh=szEmW12x0R9bIZNpkaTr2QMrAly847XuwnRoJkvOB1k=; b=YX2KDCiOu7TcwblTv7629sopcfB0Vmvy99QFhrGGuO0IKcCa+Y89rr2wOSIJFlBZcp 8pBEk4CB+AcTxw/il1NiIAErHzbGn0sBw5Hk+fZdCD//0SAZuHnnMzKSjFCHu++zQVSf if5wuy88x23TDVePVn4I7hYC48swiuLEt6b45sPwUFlF5aYVAUGllIzMlM3JqPW6Heio UljRU7MCol8ZJWvBvh0uCzAEC/7st6RWDT/ClJZHxdY6VgUJZcel8/2LA0CZ22CcE3rP KPCkz9ev5k/kd1JN2Avhe8hjyy+iVQoY/r8NG+3Qrh+5GUDSE78XscuR/QHP5YCgpilV esdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GgSwpZjR; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si636164plc.205.2018.02.09.18.18.21; Fri, 09 Feb 2018 18:19:12 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GgSwpZjR; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751034AbeBJCQc (ORCPT + 99 others); Fri, 9 Feb 2018 21:16:32 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:46788 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750832AbeBJCQb (ORCPT ); Fri, 9 Feb 2018 21:16:31 -0500 Received: by mail-pg0-f68.google.com with SMTP id a11so4816744pgu.13 for ; Fri, 09 Feb 2018 18:16:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=szEmW12x0R9bIZNpkaTr2QMrAly847XuwnRoJkvOB1k=; b=GgSwpZjRvNF6DWseXoBP+knNYNJZj9aMDOHU81KM3Imv3BR3yZy8sm4lQVEZkz+trO +SfsMXhywiNMYrO2fL4MOVzsmKU2MSZQedjOB/kXOmFSWYcOKsRyPQuj5k4m6nyLS7XE TjW3S9YYnyp89cWr2/LLFtJBsLs1AxM1NyP6/P4HQEY83DMPVGHeRUKZ8hqN6hMrkADb sg1Mvrmv0TnitE1jd3pHUS2pRewbXbS8u81GAM6GeMqeqlBRfUnI7amc/u5tPn6JvRN6 vN9LF0t/++aLh79vekspuVGi50b5An7FXtGYHs3zD28VKA3RNa4AjiUHig/UrizaYkEw GFsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=szEmW12x0R9bIZNpkaTr2QMrAly847XuwnRoJkvOB1k=; b=S7dr56q8FPAm7rNIRXtD7R3cDhFjmz+gst4ktQC+jwlDfj1FHfI/o9+A5FjhnzhlAE ldg8EajCg2GBinWBwLr1ed0OqXmcHU4BzNIS587v59y0ZP7MKOzAjkzAtWXXSziapm0X uoGBduFaEXi82lDKJwD48jb6DrONKThy0M3nRNRQPbLrL9P5/9jN0laALLxqFu8WIBqM +g8jKXQvkemwKk6m06Y5yQ/PBM8m5lGjw0DN5898H/vPIG7Is3cZ+6vGHln2c7N/UL2q Dn70Ql3+KdhIx8hCZI9vbxknCzpehovAZBZANIOv5k2GZoVEhGDd3Ox335wO4XqpszOD 4MxQ== X-Gm-Message-State: APf1xPAX0g3h1p8zEdNEELiu6E1r+9rEM2eWEM8aNZIxz8MWbrDjmPpj wdYaEq3mKy8GQGBCq5FmtkQ= X-Received: by 10.98.196.13 with SMTP id y13mr4800900pff.73.1518228990559; Fri, 09 Feb 2018 18:16:30 -0800 (PST) Received: from [192.168.0.103] ([59.12.167.210]) by smtp.gmail.com with ESMTPSA id x124sm8240381pfx.105.2018.02.09.18.16.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Feb 2018 18:16:30 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: [PATCH] irqchip: Use %px to print pointer value From: Jaedon Shin In-Reply-To: <6bf05e81-2334-f3ac-08a7-e53ee59bb4c0@arm.com> Date: Sat, 10 Feb 2018 11:16:22 +0900 Cc: Florian Fainelli , Thomas Gleixner , Jason Cooper , Kevin Cernekee , Brian Norris , Gregory Fong , bcm-kernel-feedback-list@broadcom.com, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20180209021031.20631-1-jaedon.shin@gmail.com> <45424653-235D-4C4B-8908-417943F5283C@gmail.com> <6bf05e81-2334-f3ac-08a7-e53ee59bb4c0@arm.com> To: Marc Zyngier X-Mailer: Apple Mail (2.3445.5.20) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 10 Feb 2018, at 1:04 AM, Marc Zyngier wrote: >=20 > On 09/02/18 15:54, Florian Fainelli wrote: >> On February 9, 2018 12:51:33 AM PST, Marc Zyngier = wrote: >>> On 09/02/18 02:10, Jaedon Shin wrote: >>>> Since commit ad67b74d2469 ("printk: hash addresses printed with = %p") >>>> pointers printed with %p are hashed. Use %px instead of %p to print >>>> pointer value. >>>>=20 >>>> Signed-off-by: Jaedon Shin >>>> --- >>>> drivers/irqchip/irq-bcm7038-l1.c | 2 +- >>>> drivers/irqchip/irq-bcm7120-l2.c | 2 +- >>>> drivers/irqchip/irq-brcmstb-l2.c | 2 +- >>>> 3 files changed, 3 insertions(+), 3 deletions(-) >>>>=20 >>>> diff --git a/drivers/irqchip/irq-bcm7038-l1.c >>> b/drivers/irqchip/irq-bcm7038-l1.c >>>> index 55cfb986225b..f604c1d89b3b 100644 >>>> --- a/drivers/irqchip/irq-bcm7038-l1.c >>>> +++ b/drivers/irqchip/irq-bcm7038-l1.c >>>> @@ -339,7 +339,7 @@ int __init bcm7038_l1_of_init(struct = device_node >>> *dn, >>>> goto out_unmap; >>>> } >>>>=20 >>>> - pr_info("registered BCM7038 L1 intc (mem: 0x%p, IRQs: %d)\n", >>>> + pr_info("registered BCM7038 L1 intc (mem: 0x%px, IRQs: %d)\n", >>>> intc->cpus[0]->map_base, IRQS_PER_WORD * intc->n_words); >>>>=20 >>>> return 0; >>>> diff --git a/drivers/irqchip/irq-bcm7120-l2.c >>> b/drivers/irqchip/irq-bcm7120-l2.c >>>> index 983640eba418..1cc4dd1d584a 100644 >>>> --- a/drivers/irqchip/irq-bcm7120-l2.c >>>> +++ b/drivers/irqchip/irq-bcm7120-l2.c >>>> @@ -318,7 +318,7 @@ static int __init bcm7120_l2_intc_probe(struct >>> device_node *dn, >>>> } >>>> } >>>>=20 >>>> - pr_info("registered %s intc (mem: 0x%p, parent IRQ(s): %d)\n", >>>> + pr_info("registered %s intc (mem: 0x%px, parent IRQ(s): %d)\n", >>>> intc_name, data->map_base[0], = data->num_parent_irqs); >>>>=20 >>>> return 0; >>>> diff --git a/drivers/irqchip/irq-brcmstb-l2.c >>> b/drivers/irqchip/irq-brcmstb-l2.c >>>> index 691d20eb0bec..6760edeeb666 100644 >>>> --- a/drivers/irqchip/irq-brcmstb-l2.c >>>> +++ b/drivers/irqchip/irq-brcmstb-l2.c >>>> @@ -262,7 +262,7 @@ static int __init = brcmstb_l2_intc_of_init(struct >>> device_node *np, >>>> ct->chip.irq_set_wake =3D irq_gc_set_wake; >>>> } >>>>=20 >>>> - pr_info("registered L2 intc (mem: 0x%p, parent irq: %d)\n", >>>> + pr_info("registered L2 intc (mem: 0x%px, parent irq: %d)\n", >>>> base, parent_irq); >>>>=20 >>>> return 0; >>>>=20 >>>=20 >>> Why is that something useful to do? This just tells you where the >>> device >>> is mapped in the VA space, and I doubt that's a useful information, >>> hashed pointers or not. Am I missing something obvious? >>=20 >> No you are right there is not much value in printing the register >> virtual address (sometimes there is e.g: on MIPS) either we fix the >> prints to show the physical address of the base register or we could >> possibly drop the prints entirely. >=20 > Displaying the PA can be useful if you have several identical blocks = in > your system and you want to be able to identify them. Given that there > is probably only one of these controllers per system, the address is > pretty pointless. >=20 > If you send me a patch removing the prints, I'll queue it. >=20 > Thanks, >=20 > M. > --=20 > Jazz is not dead. It just smells funny... I'll submit a new one to drop the entire print. Thanks, Jaedon=