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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32A10C61D85 for ; Tue, 21 Nov 2023 15:26:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234448AbjKUP0c (ORCPT ); Tue, 21 Nov 2023 10:26:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234156AbjKUP0a (ORCPT ); Tue, 21 Nov 2023 10:26:30 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FC0CE7 for ; Tue, 21 Nov 2023 07:26:25 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1700580384; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Iiq2mbTgBqjsqnzkJji7amx/RmZznpllsmH5eCktL90=; b=RyxafyiSMvaX486br0yP3gT97bwsZMFyYi2PdfIHpdsbz7WWf0ylTqkmvaAF51YnUPaZzT qETxDEgEW9pnOfGkwx4nBYHgDRp+5ovtAnKzRfNfrqMaVY9KJUYRUUXtjoNVOXPu0yLYQu uertVueEOQoUWyWJ9X84+2G9CcGmmPk5wkXNoQlIUaxD0g9GSep2oaMuXq5u4s683vEmdy wLeceGMJqPQWw3BwBN8Q4prtnLPAMzCBOD+QacZZ00WL2SdIrrKC1+AHxqx4b3Bf8D1nxf vpyH+GiPighoiQpigZAq3YhU2kFvm2hVvgT3Uesd8q5JrGAXXbrOsoO7FrcGBQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1700580384; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Iiq2mbTgBqjsqnzkJji7amx/RmZznpllsmH5eCktL90=; b=czzsI8C6cQomtR9dlzFYm1BeCSClo2GYReA+2n5Hdkzb3vt18cv7ETHq+8pMX175ju5ptX QKLT9Tb8gZ4eHABw== To: Peter Zijlstra , x86@kernel.org Cc: linux-kernel@vger.kernel.org, peterz@infradead.org Subject: Re: [PATCH 0/2] x86/entry: Trade cycles In-Reply-To: <20231120143344.584345121@infradead.org> References: <20231120143344.584345121@infradead.org> Date: Tue, 21 Nov 2023 16:26:24 +0100 Message-ID: <87msv7161r.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 20 2023 at 15:33, Peter Zijlstra wrote: > Two little patches that trade a little performance. First patch optimizes > (although I couldn't get definite numbers showing it makes a difference) the > return to user path by avoiding some PTI specifics in the generic path. > > Second patch then steals some of the won cycles by making a debug check > unconditional. > > This came forth from a discussion with amluto who lamented we only had the > debug check conditional on DEBUG_ENTRY. Reviewed-by: Thomas Gleixner