From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (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 4A2951D554 for ; Tue, 21 Jan 2025 07:26:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737444370; cv=none; b=KwJHL5kpvx3zM/PXpHhWwTAD3WxA9scX7DBikF6z6CLfoQRkjbJRKxR2nAqLTG2xIsRDI8gUab5ZYG0oUyR2qODDSC/8VOoEA1lJcu2bUpney31ggKkeQvMHpUimlZnojsTgQYdY0goQZ4w3igNQOHG8Y/e6w07maJam51VGk8s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737444370; c=relaxed/simple; bh=u1pGI+oXdXEJ0xcEZG+V8d4Br5RMEGIaZxt/hvewBlc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=U5x+VFxUIh4nRsVjAzkYQR9o8zrQq1rvpDDg+F4VvP/mZ2X8SJrj+9a2r+ZyGk139m7xGrCbMMTA4dARnwROUWl2Ks8hVBkBRBZesJUs2eo7gVWM3c4KC27d4b4fIp+25/o7aa4HZX10VLaOh/RNrF3RB+qE87ltEF+vEaLIC10= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=iyafctot; arc=none smtp.client-ip=148.163.156.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="iyafctot" Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50L18dAZ021870; Tue, 21 Jan 2025 07:25:51 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=Azndoz JTjkLVxy0qduiZn2CUNFaoxEeg43gazZF1GGw=; b=iyafctotc+U/hZKzpFsrkh /VfBkEMu3Nt5b2Z5HCu2tGigwCiMe3pdfLYl4O/aAJq5tnGQY9qr2zq0FMgiaEFS jNxyeyr8TFvZhzUik1pL1C4upCHbv2iqtSssassTsu9P4b6TCCFNjiQ412enDYs0 NheQdHpNi21VZsVpotVF5ByYQDGrwAzIZ4hTxVyzm+u007lnfTYrqH0Ii2mP0lWc f/VbA9RiCcxpzGKee/14kIixDSigi43Tbq4yH5I2Dgoh30qnDzD/j/Y9GcXH6sYL ulCJRY6U3ahE7gucc21ztLveESddEvPEuBuSbW06j9w8zwy4dI8Poa2UWfJXESuA == Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 44a1n9997b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Jan 2025 07:25:51 +0000 (GMT) Received: from m0360083.ppops.net (m0360083.ppops.net [127.0.0.1]) by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 50L79a4I025235; Tue, 21 Jan 2025 07:25:50 GMT Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 44a1n99977-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Jan 2025 07:25:50 +0000 (GMT) Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 50L6MP7V022378; Tue, 21 Jan 2025 07:25:49 GMT Received: from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 448r4k1v4t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Jan 2025 07:25:49 +0000 Received: from smtpav07.fra02v.mail.ibm.com (smtpav07.fra02v.mail.ibm.com [10.20.54.106]) by smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 50L7PlI850004248 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 21 Jan 2025 07:25:47 GMT Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 642B220040; Tue, 21 Jan 2025 07:25:47 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id ADF7E20043; Tue, 21 Jan 2025 07:25:45 +0000 (GMT) Received: from [9.39.27.2] (unknown [9.39.27.2]) by smtpav07.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 21 Jan 2025 07:25:45 +0000 (GMT) Message-ID: Date: Tue, 21 Jan 2025 12:55:44 +0530 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 v3 0/1] powerpc: Enable dynamic preemption To: mpe@ellerman.id.au, maddy@linux.ibm.com, linuxppc-dev@lists.ozlabs.org Cc: npiggin@gmail.com, christophe.leroy@csgroup.eu, linux-kernel@vger.kernel.org, Sebastian Andrzej Siewior , Ankur Arora References: <20250106051919.55020-1-sshegde@linux.ibm.com> From: Shrikanth Hegde Content-Language: en-US In-Reply-To: <20250106051919.55020-1-sshegde@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: zjFgmHztCo8orL7MXRQe3T-IVSEa6jVN X-Proofpoint-GUID: BKl-3A4jdPS4HCMikxF_9UR7t3LQEKEF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-21_03,2025-01-21_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 bulkscore=0 suspectscore=0 adultscore=0 clxscore=1015 priorityscore=1501 spamscore=0 impostorscore=0 lowpriorityscore=0 mlxscore=0 mlxlogscore=437 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2501210056 On 1/6/25 10:49, Shrikanth Hegde wrote: > Now that preempt=lazy patches[1] are in powerpc-next tree, sending out the > patch to support dynamic preemption based on DYNAMIC_KEY. > > base: powerpc-next > +ankur, sebastian; sorry for not cc'ing earlier. > Once the arch supports static inline calls, it would be needed to > evaluate to see if that gives better performance. > > v2->v3: > - fixed a build error reported by linux test robot by including jump > label header. > > v1->v2: > - Instead of copying asm-generic preempt.h content include it in > arch/asm preempt.h. (Christophe Leroy) > - Merge the patches into one patch (Christophe Leroy) > > v1: https://lore.kernel.org/all/20241125042212.1522315-1-sshegde@linux.ibm.com/ > v2: https://lore.kernel.org/all/20250102191856.499424-1-sshegde@linux.ibm.com/ > [1]: https://lore.kernel.org/all/173572211264.1875638.9927288574435880962.b4-ty@linux.ibm.com/ > > Shrikanth Hegde (1): > powerpc: Enable dynamic preemption > > arch/powerpc/Kconfig | 1 + > arch/powerpc/include/asm/preempt.h | 12 ++++++++++++ > arch/powerpc/kernel/interrupt.c | 6 +++++- > arch/powerpc/kernel/traps.c | 6 +++++- > arch/powerpc/lib/vmx-helper.c | 2 +- > 5 files changed, 24 insertions(+), 3 deletions(-) > create mode 100644 arch/powerpc/include/asm/preempt.h > Hi maddy, mpe, christophe. Now that preempt=lazy is merged upstream, is would be start to enable dynamic preemption to make use of all preemption models at runtime. Are there any concerns with this patch? Thanks.