From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CF3AACC6B03 for ; Thu, 2 Apr 2026 05:42:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=EORk0tEdXeQE35AkewLeDAgsE7AO1utGOHCLHva2lH8=; b=mRi5AoAg8fcErR/glJDnkD99wd 4fC6pW/nNiRAqUr324x3BkVoCBQ/ACJ5v56/voZ40nXdzYjWISlf/iDesbk8Y2az03bIcx1imKUZb p5oVdeNCsPg8M4B2lovY+9zNwYDQsJ18VVED4wwBmKLpcD99jW3ytLT5TRn12nWk5hYJmP/e6lBSy yakCitxhUTrftTb8CntO5ptP1UXkHn3c5K/6l1LTj8Ox75xlc3kVcmJHQoauQUlzrXrw5YFkjUFtt 3ZZCcirRU9PBbnGePyhwl7W5cYqbpaEjILs5GvRPh5+qz7vxmLMRPxUyMPsBoITQjePI/E+gtfXI0 OYE/UHeA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1w8Aot-0000000GpCZ-39zu; Thu, 02 Apr 2026 05:42:19 +0000 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1w8Aor-0000000GpB6-043Y for linux-arm-kernel@lists.infradead.org; Thu, 02 Apr 2026 05:42:18 +0000 Received: from pps.filterd (m0353729.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 631NtEA1188586; Thu, 2 Apr 2026 05:41:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pp1; bh=EORk0t EdXeQE35AkewLeDAgsE7AO1utGOHCLHva2lH8=; b=tDr7Ge/gXxAE2pYlssE3hx xH8sieMGB924wlnaaxRNLSsYbfYJdKicH0VuY/zWYjwBNhmH/6dpSl9LkuCtICoQ yLZbBnqxAtGFP94073E7647+Txp0LvQDjUSUuV0G4T68Kw6KyH8zXkQykiOqw4v9 cAFjAWJzZlHI/j+O975ZQonjQiO6SA29bBX6EC/iYmYtQvWpfeWgdfgXmT9Dl+Jr cjJ98avooB95Bx+MFAofgaNGBh2+BAxHjdvFms4ZYbw/aWHaPHDbH9K8TpvUTt1/ 4FBh8jJiS2H5qzNzTWdBKsiwjhcRyXsbg3O4myJriQz7G9kt5loP9+mJZ8KmdubA == Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4d66nnue2s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 Apr 2026 05:41:48 +0000 (GMT) Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 6321P5uL008732; Thu, 2 Apr 2026 05:41:47 GMT Received: from smtprelay06.wdc07v.mail.ibm.com ([172.16.1.73]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 4d6v11rkk8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 Apr 2026 05:41:47 +0000 Received: from smtpav06.dal12v.mail.ibm.com (smtpav06.dal12v.mail.ibm.com [10.241.53.105]) by smtprelay06.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 6325fkaB31588960 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 2 Apr 2026 05:41:46 GMT Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4085758055; Thu, 2 Apr 2026 05:41:46 +0000 (GMT) Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A8F5D58043; Thu, 2 Apr 2026 05:41:34 +0000 (GMT) Received: from [9.43.16.154] (unknown [9.43.16.154]) by smtpav06.dal12v.mail.ibm.com (Postfix) with ESMTP; Thu, 2 Apr 2026 05:41:34 +0000 (GMT) Message-ID: <67ba2bd7-9d77-484a-be7c-c49245594e45@linux.ibm.com> Date: Thu, 2 Apr 2026 11:11:32 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RESEND 0/5] bitmap: cleanup bitmaps printing To: Yury Norov , linux-kernel@vger.kernel.org, "Christophe Leroy (CS GROUP)" , "Peter Zijlstra (Intel)" , "Rafael J. Wysocki" , Alexander Shishkin , Daniel Lezcano , Ingo Molnar , James Clark , Kees Cook , Lukasz Luba , Michael Ellerman , Mike Leach , Moritz Fischer , Nicholas Piggin , Russ Weight , Shrikanth Hegde , Suki K Poulose , Tom Rix , =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , Xu Yilun , Yury Norov , Zhang Rui , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-fpga@vger.kernel.org, linux-pm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: Jakub Kicinski References: <20260303200842.124996-1-ynorov@nvidia.com> Content-Language: en-US From: Madhavan Srinivasan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Proofpoint-GUID: q-gRfypHVWLTKOzqQbUHo8Z3Z9Q05fie X-Authority-Analysis: v=2.4 cv=KslAGGWN c=1 sm=1 tr=0 ts=69ce019c cx=c_pps a=aDMHemPKRhS1OARIsFnwRA==:117 a=aDMHemPKRhS1OARIsFnwRA==:17 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=uAbxVGIbfxUO_5tXvNgY:22 a=VwQbUJbxAAAA:8 a=Ikd4Dj_1AAAA:8 a=VnNF1IyMAAAA:8 a=BVaCEM1crgw_HuzovtUA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDAyMDA0NCBTYWx0ZWRfX+LzEahelN8CB K5xjq6K7tuNN9Z6LEY869JOJ/BWdUA5T3hrx2CGUq/W0LFizueDwnkFK3UutliY2VjJ4y4b/y/e RjtACzrvnuqGgRk4MwIj7lTNCnrnuw4rWYDTelhhcWP8OwbtFkhO+aWFmTqllHJVuqq1uT3+/PX ASCCJDGX/fkvHFBpn4+AyhbZwkmZerCH8ed4JukJfZ8NdT73Its1nC6ZujMBj5sAFfq6Ol+OhvA fgQXNCxJnGBHocBh3T29naC3PSRc9/9oSM0hrxM4VvqL8AfhQjAhOgwIZCQkkrVthoA4FWyPizI kN18xwZ5O+bRVP6CYLM46EOWNRg/JCtNMsYaXe2QuY2oPWlVivtcapr1059JPvtVj1Mwn9WyGE6 90MaE8mPWrjOl/4d7jpNemMa1Tl0e9gwy+0NjF752w0EB4kZU36ltbej1CJReXa/0YLyn0gf8lA M4igH8/Rl81iS18thOw== X-Proofpoint-ORIG-GUID: rmybyCQ6Fqx2OWdLNeg6foaJ2qq3aIwi X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-04-02_01,2026-04-01_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 lowpriorityscore=0 priorityscore=1501 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 impostorscore=0 clxscore=1011 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2604020044 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260401_224217_061903_80E5C10A X-CRM114-Status: GOOD ( 14.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 4/2/26 6:27 AM, Yury Norov wrote: > On Thu, Mar 19, 2026 at 04:18:40PM -0400, Yury Norov wrote: >> Ping? > OK, taking 1-4 in bitmap-for-next. Acked-by: Madhavan Srinivasan for powerpc patch > > Thanks, > Yury > >> On Tue, Mar 03, 2026 at 03:08:36PM -0500, Yury Norov wrote: >>> Bitmap API has a bitmap_print_to_pagebuf() function that is intended to >>> print bitmap into a human readable format, making sure that the output >>> string will not get big enough to cross the current page limit. >>> >>> Some drivers use this function immediately before passing the result to >>> scnprintf() with no modification. This is useless because scnprintf(), >>> and helpers based on it like seq_pritf() and sysfs_emit(), take care of >>> not overflowing the buffer by itself, and perfectly print bitmaps with >>> "%*pb[l]". >>> >>> This is a resend of non-networking part of [1]. Patches #3,5 switch from >>> plain scnprintf() to sysfs_emit(), as pointed out by Thomas Weißschuh. >>> >>> [1] https://lore.kernel.org/all/20260219181407.290201-1-ynorov@nvidia.com/ >>> >>> The networking part, for reference: >>> >>> https://lore.kernel.org/all/20260303185507.111841-1-ynorov@nvidia.com/ >>> >>> Each patch can be applied individually per corresponding subsystem. >>> >>> Yury Norov (5): >>> powerpc/xive: simplify xive_spapr_debug_show() >>> thermal: intel: switch cpumask_get() to using >>> cpumask_print_to_pagebuf() >>> coresight: don't use bitmap_print_to_pagebuf() >>> lib/prime_numbers: drop temporary buffer in dump_primes() >>> fpga: m10bmc-sec: switch show_canceled_csk() to using sysfs_emit() >>> >>> arch/powerpc/sysdev/xive/spapr.c | 12 ++----- >>> drivers/fpga/intel-m10-bmc-sec-update.c | 3 +- >>> .../hwtracing/coresight/coresight-cti-sysfs.c | 32 ++++++++----------- >>> drivers/thermal/intel/intel_powerclamp.c | 3 +- >>> lib/math/tests/prime_numbers_kunit.c | 6 ++-- >>> 5 files changed, 21 insertions(+), 35 deletions(-) >>> >>> -- >>> 2.43.0