From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B4B2A155A5D for ; Fri, 7 Aug 2026 03:31:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786073499; cv=none; b=U26+2QCKDDiWd5xGOw17uZOFhUQ+hnaoiRDck2n2L7WRYcaRCgDbO2n6wth5GIY46jApfdOxsZkc7eQMmQ7e2lOYAIKA6dRN8IXUAUEVf7eT4c4Xs8+S4Lg2HgkbL+e8H9b6HBTfqolDqaIdXzPWjrBBAYBhYruZ7NaPCcELzZk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786073499; c=relaxed/simple; bh=FPOrDX64iDdZ+lXvddM3KY7AVjOyt4athW3xhG4jwQM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=KyoZ/zmANqDfM8iebjeDYShqau/SmW3h8j6oIYdyPGMQS0vgFtfpm49aHkt8hJfwzVdisc8q2oOfCfOJ/b1kR4fSvkSrIQh62Ra3K5mw3uRItKIGkD+mZcKdtztgpkbqiglw5FNpq3ggKXwdzOn1UH5uF1uPmxD2PHeSa/PP87k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: 7a50bbfc921011f1aa26b74ffac11d73-20260807 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.12,REQID:4ffe52b2-c9d2-4a82-8f95-d7f12485106e,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:e7bac3a,CLOUDID:da1f8b0372836705dd0ef92178018158,BulkI D:nil,BulkQuantity:0,Recheck:0,SF:102|865|898,TC:nil,Content:0|15|50,EDM:- 3,IP:nil,URL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,A V:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 2,SSN|SDN X-CID-BAS: 2,SSN|SDN,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-CID-RHF: D41D8CD98F00B204E9800998ECF8427E X-UUID: 7a50bbfc921011f1aa26b74ffac11d73-20260807 X-User: liuxixin@kylinos.cn Received: from [127.0.1.1] [(10.44.16.150)] by mailgw.kylinos.cn (envelope-from ) (Generic MTA with TLSv1.3 TLS_AES_256_GCM_SHA384 256/256) with ESMTP id 209916283; Fri, 07 Aug 2026 11:31:29 +0800 From: Xixin Liu To: linuxppc-dev@lists.ozlabs.org Cc: maddy@linux.ibm.com, mpe@ellerman.id.au, npiggin@gmail.com, chleroy@kernel.org, linux-kernel@vger.kernel.org, liuxixin@kylinos.cn Subject: [PATCH v1 0/4] powerpc: assorted fixes (gpci, imc, energy, iommu) Date: Fri, 07 Aug 2026 11:11:14 +0800 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Mailer: patches/scripts/send-local.py Hi, This series fixes some bugs in powerpc paths found by static review of linux-next: 1) hv-gpci sysfs hex formatting can overflow the PAGE_SIZE show buffer; switch to sysfs_emit_at() and return -EFBIG 2) opal-imc debugfs names use char[16] with sprintf for a u32 id 3) pseries energy walks H_BEST_ENERGY cnt and sprintf()s without page bounds 4) iommu debugfs uses char[10] with %08lx while it_index is unsigned long Patches are independent. Please review. Thanks, Xixin Liu --- Xixin Liu (4): powerpc/perf: hv-gpci: bound sysfs hex formatting to PAGE_SIZE powerpc/powernv: opal-imc: fix debugfs name buffer size powerpc/pseries: energy: bound H_BEST_ENERGY cnt and sysfs output powerpc/iommu: fix debugfs name buffer for 64-bit it_index arch/powerpc/kernel/iommu.c | 9 +++-- arch/powerpc/perf/hv-gpci.c | 77 +++++++++++++++--------- arch/powerpc/platforms/powernv/opal-imc.c | 7 +++-- arch/powerpc/platforms/pseries/pseries_energy.c | 16 ++++- 4 files changed, 75 insertions(+), 34 deletions(-) -- 2.43.0