Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2024191lqa; Tue, 30 Apr 2024 06:30:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX5LRv5jCXuccKx1pGtOL2lRLJhlO/G8DLXVlvKmgVEUnmMqBdBwNJ0xPihtkvif99MmhLGCNM/XICD8qDNdkXHDmuWCNtALcZNFiGAig== X-Google-Smtp-Source: AGHT+IGVd5MEr5uxchJiGS1k/72cx77jSpXllFiLSdAjmdup4Z6s/HldQIDRmXiRFWQNrqLQkJtb X-Received: by 2002:a05:6a00:1a93:b0:6f3:ed26:e4f5 with SMTP id e19-20020a056a001a9300b006f3ed26e4f5mr12705931pfv.7.1714483831563; Tue, 30 Apr 2024 06:30:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714483831; cv=pass; d=google.com; s=arc-20160816; b=hSwtmHt+T5n+oFiex5m8VeE7obrqW2yc5zOg9RPsuGI60DuMcb40sGj1Iuo5CTf3u5 3zxyI5f3MWM5aTBY99xyW5wR56brrA6+L63yQ6fy5ajp3r32S7en28wBwgyHKCJIeAJ7 sks4oFyg9gebrlVykLe24EtPtvw4rCE1gMvIxYPqPLbptFbSXWJRmIRhm6D37S0+RuFX R4eu5fKvHmkbtRGrgIhQ9S1q3rRRrYazr5TNqx84zNR0wxdp8E+k0v5To3P39NxPMfgi AonJjRz2ndg+L1b225CDRr/XV/vepPIv9Xg2LZzJHs7nAmUdfAclBuKmP4juAMRWF2mw I18g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=lbZrpFUQ+xGp/ymxdXSJF6hdEB2SrOiJ4Nxfp4CJY4I=; fh=N4bZgZMW/rLDe6Z09/T3wS2I1M5AIBsfzh1+3u82kPs=; b=UGaH0/bzDbkylHDqy9HKCJpawmNvszzTwwCGvsNeHxVKPyN1ht0KyakTC+y8CiYrM8 lYnd0WzhVtnzJ8e/i/jKWlyiRg4EstO5Q3xxgHoj8ZPhIZ6/dCZYjRcAQ3ggdy6P3ccq Qb9k7p95bSUDhSuoSTsvb8Pwp2tHhbMSMtH7k8Ic2A7hM0cIFcfh+NczXxRP0I03Z/TF b4F9RyvFTenlvtRNNclIC21G7vvvASeWVCCfI5v5Zi5fiYEtMeht0mBFwgNzet+BzSFl YGmUaIy5gk3hS4i2cGuoMXMuDH3fywU22AodGD5edeGFqWX50XkGV542VV7sRaw8we3T fgxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="y4w92E//"; dkim=neutral (no key) header.i=@linutronix.de; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-164008-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164008-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a186-20020a6390c3000000b0060013d7c3a8si15478073pge.121.2024.04.30.06.30.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 06:30:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164008-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="y4w92E//"; dkim=neutral (no key) header.i=@linutronix.de; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-164008-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164008-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 30E48282B27 for ; Tue, 30 Apr 2024 13:30:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 993E4176FBD; Tue, 30 Apr 2024 13:28:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="y4w92E//"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="rNlcGb6m" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 C9F53172BA8; Tue, 30 Apr 2024 13:28:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714483728; cv=none; b=DOcJ01BpaUOTTqTzdWt4TneRrOhHogXfbqqsFE+ueSoOc8gI9GLZykcgBLxFMiccy96tvs67KSmOvwgY81z6sz8Cm+dUwgECgEz+59KksLHQDh1cNKJZ2q4i/qy97zABCtsLeAs0gXGUoyulAEoO6oTQxf/TwFp/Q6PTsOB2cSA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714483728; c=relaxed/simple; bh=CyYZ3ZY/IIk1KXmtX/hhlKbKAMxkGWEO+vbM270J5J0=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=DljVYpU4ZfLy2pq1BX1y2Xz/VDXeuwimVuE6dVC2EQuEgh/fGOdth7Yk0arFKzL7Gje69JKbyYTAbx789Z+qTFMG7Rn2RiLOW7xRrdBIGCMhv+8nusSK3Kfq8NlUJCOHhs+EmaqqcSQs8my2uL+dpIIEatYqY9ap2Oc4/DhKlxw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=y4w92E//; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=rNlcGb6m; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Tue, 30 Apr 2024 13:28:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1714483723; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lbZrpFUQ+xGp/ymxdXSJF6hdEB2SrOiJ4Nxfp4CJY4I=; b=y4w92E//9haorJvNnZoC9fbTn86JgChziFb8qzQEwB8Yl+IIZGEZoMRPsjt2xe7SGpBwfr PSpLLi55T1iTgjn7MXIM69KDC96bu+QAbWxTw4awcNjhew5ATQAQJMndGyLVLQYw6RFGs4 we/jvvo6hfaQV67gW7dUE4+gKEIpK3Sck1XwVFU6tN+S5HuoCKCeHyoxihxc2CDrUQpbYY 49/55ddyAxbfzhsLgeE+S7lAXrx2NOJYg9BTBaZ42VRZeqEHYoC4N7V1tJGOZOjK7T3A0m VFp/E/59e+BYGyGvVJfMlXDIylOC+UiZjKq1RHACmH9TYbuVbOLfKlJAZu3K+g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1714483723; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lbZrpFUQ+xGp/ymxdXSJF6hdEB2SrOiJ4Nxfp4CJY4I=; b=rNlcGb6myQQPiVBfLnP4k75Hj7YbSDB8h/s1JMNcHq3zCEzJbCYbhxKgav5SdPr5Oc5msw qVFCwHyVolo3ZDDQ== From: "tip-bot2 for Jacob Pan" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/irq] x86/irq: Unionize PID.PIR for 64bit access w/o casting Cc: Thomas Gleixner , Jacob Pan , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240423174114.526704-3-jacob.jun.pan@linux.intel.com> References: <20240423174114.526704-3-jacob.jun.pan@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171448372276.10875.2354227749649106662.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the x86/irq branch of tip: Commit-ID: 4ec8fd037139a4d8afb2a5c7edb4a17f9449a035 Gitweb: https://git.kernel.org/tip/4ec8fd037139a4d8afb2a5c7edb4a17f9449a035 Author: Jacob Pan AuthorDate: Tue, 23 Apr 2024 10:41:04 -07:00 Committer: Thomas Gleixner CommitterDate: Tue, 30 Apr 2024 00:54:42 +02:00 x86/irq: Unionize PID.PIR for 64bit access w/o casting Make the PIR field into u64 such that atomic xchg64 can be used without ugly casting. Suggested-by: Thomas Gleixner Signed-off-by: Jacob Pan Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20240423174114.526704-3-jacob.jun.pan@linux.intel.com --- arch/x86/include/asm/posted_intr.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/posted_intr.h b/arch/x86/include/asm/posted_intr.h index f0324c5..acf237b 100644 --- a/arch/x86/include/asm/posted_intr.h +++ b/arch/x86/include/asm/posted_intr.h @@ -9,7 +9,10 @@ /* Posted-Interrupt Descriptor */ struct pi_desc { - u32 pir[8]; /* Posted interrupt requested */ + union { + u32 pir[8]; /* Posted interrupt requested */ + u64 pir64[4]; + }; union { struct { /* bit 256 - Outstanding Notification */