From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7A6E041C2E9 for ; Thu, 22 Jan 2026 10:49:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769078954; cv=none; b=B5JF000mtLYvn2maOiqxk9kLHad0rdXMwmbr36bZltBWC2xkp1Su6S7/aZWT04vIHpLWSurlZ773HPNpzHJICk6uY5p3tpoiRiVDxFWjFI19d7rEydlMzzV7+cokq9dohSlSEfN3W5I9NRF7yJrS0MLnv0AsMUNNKo1xP+N9icY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769078954; c=relaxed/simple; bh=899+KQ+C/AkTUNVlsmhBnoYgZLqrkK6jNm34LzhoNKM=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=EgLdzwMF6IXdeNxwUsnigr3HnPEz3ctEzD0bzdMsTfW5KU682nj8x0QBa4N0OronzifXqH4zzgg2p6bJb4atSkD0EZns0I/dNTV1r+5J6vAvH8Rvh2DRxKOen3KLkLoVq9kUGCKA80+pYfeITyAOl+POKY5WZlB4TRjjQmFLHsc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sgw3bjbF; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sgw3bjbF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F565C19424; Thu, 22 Jan 2026 10:49:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769078954; bh=899+KQ+C/AkTUNVlsmhBnoYgZLqrkK6jNm34LzhoNKM=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=sgw3bjbF4+A2uz4fYgMk21kNejazmNux1LHEv+VBMyYrDq9lnU0+K4cPkrJhl2cum eCm3R5DsbLP1VgZ+nbXUHq+rgVowHOls7zOk/M4am6e0Tx1rAbwgcr/fG4CDknlg+z JXI0UvwFydzeRDhyE1sPZiWjjTvsApOJyd7DFFGKZGL2ENOSHquL0SsdX5rBYSr7gF I+gFLvtwBKXfA9qbG+DPiklCfR02h8Yerzdqy/FYWHlAARzbfDfjs/giTqSYn1NjCM fD2tsi9yoCAsxqN8f7a9sQV6NfjaVJfLo6EcYo8aRy3s88dNFlLEausclQgbDZW2UM r8p1KredAYnrA== Message-ID: <19755142-0f2a-4cdb-a746-50ff06e297a0@kernel.org> Date: Thu, 22 Jan 2026 11:49:09 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] powerpc/vdso: Provide clock_getres_time64() From: "Christophe Leroy (CS GROUP)" To: =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , "Sverdlin, Alexander" Cc: "npiggin@gmail.com" , "luto@kernel.org" , "maddy@linux.ibm.com" , "tglx@kernel.org" , "mpe@ellerman.id.au" , "vincenzo.frascino@arm.com" , "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" References: <20260114-vdso-powerpc-align-v1-1-acf09373d568@linutronix.de> <20260122104257-3124dc96-5916-4d25-bbce-9b868b30ee18@linutronix.de> Content-Language: fr-FR In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Again, Le 22/01/2026 à 11:27, Christophe Leroy (CS GROUP) a écrit : > Hi Thomas, > > Le 22/01/2026 à 10:50, Thomas Weißschuh a écrit : >> Hi Alexander, >> Could you also share your configuration? > > I've just been able to reproduce it with ppc64_defconfig + > CONFIG_CC_OPTIMIZE_FOR_SIZE > >   VDSO32L arch/powerpc/kernel/vdso/vdso32.so.dbg > arch/powerpc/kernel/vdso/vdso32.so.dbg: dynamic relocations are not > supported > make[2]: *** [arch/powerpc/kernel/vdso/Makefile:79: arch/powerpc/kernel/ > vdso/vdso32.so.dbg] Error 1 > make[1]: *** [arch/powerpc/Makefile:388: vdso_prepare] Error 2 > make: *** [Makefile:248: __sub-make] Error 2 > Comes from here, a call to memset(): 000007c0 <__c_kernel_clock_getres>: 7c0: 94 21 ff d0 stwu r1,-48(r1) 7c4: 7c 08 02 a6 mflr r0 7c8: bf a1 00 24 stmw r29,36(r1) 7cc: 7c 7e 1b 78 mr r30,r3 7d0: 7c bd 2b 78 mr r29,r5 7d4: 7c 9f 23 78 mr r31,r4 7d8: 38 a0 00 10 li r5,16 7dc: 90 01 00 34 stw r0,52(r1) 7e0: 38 80 00 00 li r4,0 7e4: 38 61 00 08 addi r3,r1,8 7e8: 48 00 00 01 bl 7e8 <__c_kernel_clock_getres+0x28> 7e8: R_PPC_REL24 memset 7ec: 7f c4 f3 78 mr r4,r30 7f0: 7f a3 eb 78 mr r3,r29 7f4: 38 a1 00 08 addi r5,r1,8 7f8: 4b ff f8 09 bl 0 <__cvdso_clock_getres_common> 7fc: 2c 03 00 00 cmpwi r3,0 800: 40 82 00 24 bne 824 <__c_kernel_clock_getres+0x64> 804: 38 00 00 f7 li r0,247 808: 7f c3 f3 78 mr r3,r30 80c: 7f e4 fb 78 mr r4,r31 810: 44 00 00 02 sc 814: 40 e3 00 08 bns+ 81c <__c_kernel_clock_getres+0x5c> 818: 7c 63 00 d0 neg r3,r3 81c: 39 61 00 30 addi r11,r1,48 820: 48 00 00 00 b 820 <__c_kernel_clock_getres+0x60> 820: R_PPC_REL24 _restgpr_29_x 824: 2c 1f 00 00 cmpwi r31,0 828: 41 82 00 14 beq 83c <__c_kernel_clock_getres+0x7c> 82c: 81 21 00 0c lwz r9,12(r1) 830: 91 3f 00 00 stw r9,0(r31) 834: 81 21 00 14 lwz r9,20(r1) 838: 91 3f 00 04 stw r9,4(r31) 83c: 38 60 00 00 li r3,0 840: 4b ff ff dc b 81c <__c_kernel_clock_getres+0x5c>