Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp227937lqh; Mon, 6 May 2024 17:58:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUMOq8DWc0dgrHtegGMlTdsnV7zrAW/pzpaGc92Er+1El1t3/nll9QtnCfmpUCpMtmZN9R14blwgMAnmJI5lYBCDRwjyfPwzSNKqiLCaw== X-Google-Smtp-Source: AGHT+IH0lx/QbHQfuBIUnf7a9TCqgemfRMiJTO/SHsYOZ97cGRFM+0HH5mWRVBadKKyLDegO6Tvn X-Received: by 2002:a05:6359:411d:b0:192:5bd6:74d7 with SMTP id kh29-20020a056359411d00b001925bd674d7mr1005170rwc.13.1715043533234; Mon, 06 May 2024 17:58:53 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q137-20020a632a8f000000b0060a08962dcfsi9179720pgq.86.2024.05.06.17.58.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 17:58:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170533-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=@oracle.com header.s=corp-2023-11-20 header.b=PiMzGA1r; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=cSFcfZs7; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-170533-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170533-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=oracle.com 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 9FD77282FA6 for ; Tue, 7 May 2024 00:58:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBB1E1877; Tue, 7 May 2024 00:58:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="PiMzGA1r"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="cSFcfZs7" Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (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 CBECD138C for ; Tue, 7 May 2024 00:58:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.177.32 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715043526; cv=fail; b=CxDbkQ6KkrF1oNd1X9uuJi3GjTssPasmSVmw+LwZq0paob2mKv0aCvNE6uDMMDYpEHUusZ0tCSESAFagzd8LWRtJk+3Jzt4slnIRhi8wriG8tnOzbZtD9BUUmeMjWRnljcHljNXT4/VIRbJrejVLy/EUjrTatEgqKf8MY6BeeJg= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715043526; c=relaxed/simple; bh=26Fku1mXecUdURCSQLjw1ffPsZhAulo/rvdvRi04HY8=; h=Message-ID:Date:Subject:To:References:From:In-Reply-To: Content-Type:MIME-Version; b=g8l839s2BpoSwDTDInZCnDzOGVkbaHx+GiA9QnBC2V3YJLD8Hwj0mvxqs0SB7prBcWt0dgwiBKCvTJhhjstlB0zFpe+W+11a5AyZi1SkOUlO6V4Ts2vvlzg/VsddZuBEgse5R+QiNBoXuepu6jp1L+pWsZGk24tVF4AJYVcWrss= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=PiMzGA1r; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=cSFcfZs7; arc=fail smtp.client-ip=205.220.177.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 446Mmi2P018449; Tue, 7 May 2024 00:58:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-11-20; bh=nAlmvuwFzKK7B4vljuG3d7d2qkBd3iyKI0gNGaceLwo=; b=PiMzGA1rHneUCh70dlDefkzhyYb4CJgCxXxJ4CFgJrX0rNfs78VIy7No/5+fjpTQSQRc 8qSePdLPS4FLrc/JPVWKo+vVgHJs8WJ2wXwkquFETwIENC4Mq71N2h9Ci8H9iijOxQZ2 0utA1hdJNkv0U+voH8bQLCKzTj5/oRx8hRf0uS5O5UsGPSrBKVSg2x9hbjfY9XPS/VYT dYaRBLupajoG1bsaCLRFOkoxKjnOvrX8pP2Y2GuJZj2vDEpB3gJYBOBG1v+iMHfxNiz5 hZXB5+kZDsY6TsNcWDbfFJc1VGEVlW9ky3Qm7fivDX+L2N0XUulEz/xS5/4rDNFMjDlT Bw== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3xwd2duu48-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 May 2024 00:58:24 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 4470mr8M040905; Tue, 7 May 2024 00:58:24 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2168.outbound.protection.outlook.com [104.47.57.168]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3xwbf6jw2c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 May 2024 00:58:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a/ylmtOX6N9o03RqeVpeJxsnW8KVo0cH/G7CQ5S34Tw4+smZb/60eYonzfU2NmJeO5EyyEpgmsgTT2g8/AzOO9W/MUCZa3Tm1gHLyO7DKcCl+UbB7kP0TNciU4YCBqk1YWBAMQZXAgrqW1xY9Hfw8GfBuqjfZ3p9I4Bm8aBH3yc2Wb2FCNCBtUDNVycqmbSaKMaSUcqTLOyjLivd8PvVjeugnQIpln+D55kI9LSWcemhQOkZ9s1aqpopB9DSE9S5u+U5dsoZg7XeK5CkhFuWyKaf3nROOVHl0XccU979Uvau9IceeXV4/mYdNnnpyUrX18MbvLtXc6PXcJlPBfMrDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nAlmvuwFzKK7B4vljuG3d7d2qkBd3iyKI0gNGaceLwo=; b=N491f2T/5cWcJi2JTWr3NCNTbd/Y1CRRuano6IE4FU4HV7j5GzVuap6De/hQ4KaxHFLnS0iUQB6AkmisDnVr2bLENsRnmfj0P/nFwdax9zCPQWCfByp4UJFW/1xJ2XMogSGPNYiwiGAcltFTjEdZKpwwfwd/CkOuf7OO4xEYdV2FGqTakHZjqXUAx3jJn0gFkjCgOhl4iZUtQyORsuJIPNKdZPwNCAi1UFY8KTmbe/rM6Y59oMNANk7zDqcSXe9E+zV+rMB70z9wPvyb0dWzQfloUU47nWg+4i0+qVzZUOGKbyI0KeD31FZYjMGzqUCHgvq902Oxd5tysM5rn/noHQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nAlmvuwFzKK7B4vljuG3d7d2qkBd3iyKI0gNGaceLwo=; b=cSFcfZs7eLol8dLSoA0WBEoLLIgkhnCzd4vCdDFvp5LDD4jGdYauf67pOfhtG68wKzbH2cNHCKDNOH/R6euGEw1zf0tq/SUpO91DGrhDI4bO3rAB3jAAEx9wkYSxk17E2t1aVqWv+qB2PH4XPUMhEwE56tAhC7qY6YjI3eZTtzA= Received: from CO1PR10MB4468.namprd10.prod.outlook.com (2603:10b6:303:6c::24) by DM4PR10MB5943.namprd10.prod.outlook.com (2603:10b6:8:a1::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.40; Tue, 7 May 2024 00:58:22 +0000 Received: from CO1PR10MB4468.namprd10.prod.outlook.com ([fe80::485e:729e:c0a4:e562]) by CO1PR10MB4468.namprd10.prod.outlook.com ([fe80::485e:729e:c0a4:e562%7]) with mapi id 15.20.7544.041; Tue, 7 May 2024 00:58:22 +0000 Message-ID: Date: Tue, 7 May 2024 10:58:13 +1000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] x86/irq: Use existing helper for pending vector check To: Jacob Pan , X86 Kernel , LKML , Thomas Gleixner , Dave Hansen , "H. Peter Anvin" , Ingo Molnar , Borislav Petkov References: <20240506175612.1141095-1-jacob.jun.pan@linux.intel.com> Content-Language: en-US From: imran.f.khan@oracle.com In-Reply-To: <20240506175612.1141095-1-jacob.jun.pan@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SG2PR01CA0177.apcprd01.prod.exchangelabs.com (2603:1096:4:28::33) To CO1PR10MB4468.namprd10.prod.outlook.com (2603:10b6:303:6c::24) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR10MB4468:EE_|DM4PR10MB5943:EE_ X-MS-Office365-Filtering-Correlation-Id: 9c1a9190-b1df-408f-57e5-08dc6e30cab4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|1800799015|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?QjNHcmd6VmxQbEIvbmV3a0NFNEZISEVFWG4xUUI4QnR1eldhQWJpVXVUQWky?= =?utf-8?B?dFBoV3BnbXZMOUttS3c5Q1VkSnVOMnI2OUxsbDIxdnUyTlhwb3pnbm5xMFg4?= =?utf-8?B?QXEvSTZlUTVpajhwMUJiTkl3dWJsaWx4UGxLczBLekpuamU1S3MwSEU4S1ZN?= =?utf-8?B?dFJPd1Uzd2xwSkMzWE9mNDljaUhwTDk0OXNUUTlsYnBnUGs1Y09SNWtkRHdC?= =?utf-8?B?TytUQjhyUEJvMkdsZml0UmR2SlFlVkMrMFVXekpQZE9oSXJ6ZGZNOVBPcHdW?= =?utf-8?B?d2dwW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f-8?B?TmhMemtnSHdoZmo1MU1XSHZRQ2ZXWllzSWpEYkFxTmt2UWhxQ2NTL0hKTytx?= =?utf-8?B?dkNDWW1ueHBrUzdIL0JBTHpmOHBSeGRvR2NEdjdBZ2Z1c1ZiL2Q4UGpVTFFo?= =?utf-8?B?MVZjSUx1TmxsVVQrSG9xajhlRmlUZklzU3Z3Z1VhQk82aHVLdXlLOG44bGtj?= =?utf-8?B?cXJRRkpGajdQVkJVZUZmY21Pbkp4Mm5zcEZKZWwxYkV2ajI1MTZWSEtvdE5r?= =?utf-8?B?N3VqRXc0TkR2bDFSQnRWZFc5ZG9DSnFuVmVEbFZ1dDM5bzIwMnBXMDc1TEUr?= =?utf-8?B?MEtxZDdNUWZHY0ZkUm96aGM4U3Z0SFNuQzQvSTVTS1JyZEd0M1lUQktKQjMz?= =?utf-8?B?UzNsTjFOc09NZXN1MSthdXExdFV3Vmhpb3lqbzQ0SDhKMkdDdllSSE9vUnRK?= =?utf-8?B?QWxWODVjMWs0RVV2bExQUkI5aEJISW80ZVFUM1BraFJZVGRrSlJMY1VDQTJD?= =?utf-8?B?bmEzaThXRFVCU0ZVVEdKK3JZYTRUdlk4L2tGYW5nZGFiR0tQeDdMWFhRPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR10MB4468.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WjJjTHRXVG5JZFIyckQwalJsNnJBZzZlbHdmRHFiZ25Ca3Z4cDhwRlRjMEdD?= =?utf-8?B?dW0yRWFUUGV5eHU2UlBMT1didHlRYTJodlN0eW9lTWZqMFRtemtwZU9hTHZI?= =?utf-8?B?Y1BsMXNMVXcwd0ZHVXliT3g5U0dpSjJDeXZmZnRZW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IvRklweVhQYWFacFdlS0doa2dJaUlURTZGSTZ1SjdiT1Z3VnBjUmkzOUlv?= =?utf-8?B?MTh6OTJna0pZVEZ5M1B4eG5SemhSeG5mdnpjV3h6bkVEQ2ZrMUNZK1R3VFE0?= =?utf-8?B?MFdJb05OYVM5WWc3b09KVGhqUTNlMzM4eC95anc1L0R1TkM2aWE2OGFvNUpH?= =?utf-8?B?b1hxd2wwVWptNzdBVGNnK01NSEF6c1Z5SERCU2YrZFlRL1FMU2FnanZWckJr?= =?utf-8?B?b2c9PQ==?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: ENSMuiQoNBZZVg0shUHf8xn8dflGfQqJSjNkPubPyh2STnUhPjkShXl/0dxqICE7hI/ldbzbMIdCCdYWU1aZijKJJtZjhSrDa/uVY2Ljg0Df9HZaha344oNe8fhfuQAisTPWCALNasMV0MoIqQVbzYNtzzD07T5a4pXMDuD1b1FklCchABHT5mJV/dyc1IhiO66DvC2fKNbiqtoDuA/DFgTxudB4cG+xDru8WhfweetRswFxyA4OPgF7Q685sDRtVIo84Ymh1F3/gTm6EU+MXY9KalzLXUd702q1MYGZu/SDu7/Rsbx5KnO38FiZwGbBtnDogDjhfPmwzKN8x+JeypjFC4q01qyFHXaDIP6pQdCvzbETN9ZgXOFXDivHKk41oCtHwqbIDImpmuAYJzm6riQAVjy78Gp8tIxTqtEly7PZicV9q7FW7nsm141UdSiycrOxMahdCkV434V4AdeWkXbDkwZiAWaJOp1TC5pPcRRtpMMwimrK/RFQ9FexMGFjvSo17on7qVo1A0ChZ+EP44OkETKmtxRw/OYxPYSoYudYxZCy4lFT+LcNAxLzSpr/NUguLYE6l0s1FSi5XIa+3wzK+Lbg7UxVzYDvOknOWrw= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9c1a9190-b1df-408f-57e5-08dc6e30cab4 X-MS-Exchange-CrossTenant-AuthSource: CO1PR10MB4468.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2024 00:58:22.0446 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: l9ySU0aMYjSXOg++EGvk710lzHBu0Bi183jq/6Oy1/y90YIhAMkr55+1+pKu7pfpjjSG7X8HgjORUj6FPAmZgg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR10MB5943 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-06_18,2024-05-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 spamscore=0 suspectscore=0 adultscore=0 phishscore=0 mlxlogscore=999 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2405070006 X-Proofpoint-GUID: oQOPNYzTa-bMk3DMPcaGr3GhSUc3uZ3F X-Proofpoint-ORIG-GUID: oQOPNYzTa-bMk3DMPcaGr3GhSUc3uZ3F Hello Jacob, This looks good to me. On 7/5/2024 3:56 am, Jacob Pan wrote: > lapic_vector_set_in_irr() is already available, use it for checking > pending vectors at the local APIC. No functional change. > > Signed-off-by: Jacob Pan > Cc: Imran Khan Reviewed-by: Imran Khan > --- > arch/x86/include/asm/apic.h | 8 +------- > 1 file changed, 1 insertion(+), 7 deletions(-) > > diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h > index 9122e93b89ea..d7a8ac961af8 100644 > --- a/arch/x86/include/asm/apic.h > +++ b/arch/x86/include/asm/apic.h > @@ -505,13 +505,7 @@ static inline bool lapic_vector_set_in_irr(unsigned int vector) > > static inline bool is_vector_pending(unsigned int vector) > { > - unsigned int irr; > - > - irr = apic_read(APIC_IRR + (vector / 32 * 0x10)); > - if (irr & (1 << (vector % 32))) > - return true; > - > - return pi_pending_this_cpu(vector); > + return lapic_vector_set_in_irr(vector) || pi_pending_this_cpu(vector); > } > > /*