Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3988254pxa; Sun, 9 Aug 2020 19:30:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuYBYoECnHzSfgYwb+NAQLuI+h9GTB3+qMrFCGaqPsnGwcWjVEbKW1pPKfU0ZGZKRPxSsm X-Received: by 2002:a17:906:a141:: with SMTP id bu1mr872580ejb.303.1597026651838; Sun, 09 Aug 2020 19:30:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597026651; cv=none; d=google.com; s=arc-20160816; b=SyZrZKO4SF6WMhKrjhthq+Kwb9VqN6skGvil8mSCvT/L8b8gEvdKTuB85AVi56ihhR a4/tWIGazafTAGbm6fmc+gRcwnrCjwBkn4i7gutyf7C5QA6zIrzKnU73xVcXyRjvY+CV ROeGaRA7NyaFBZBrcquxsprjtaR1XHarEb4p6ykBOFvYRDwoPRJIDtcqPbausKewOFLJ JtjUbTNVOIIjf1Kml2azjemTVlzzCs1KDzQEz2AmSMzUn9tFwDC04dwpFLGvG/iyE0+q ecrnQTy+s5wgUuQvbYvZLxvtmEKiJ3xV3IClFNC11TuF7pCB8MvxWG6MC3X/BK0pICDR q+XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:subject:cc :to:from; bh=YJqh0bUEVwi1hmBLVDwkkC0l/PYbyH1a0shBGY9j+78=; b=fH2omeCx5R4I5mkTQO9WO0pBIpdQz7SZh7alU505x3lDASPsE7RtoBqB8Dh/Cc68ah BO54JBgoJiy8nk6r17kKAVVhMOyS51K0a0ILYGxG4ME4UzZCIeYUXElx9WOoOB9rFXzc ecHFL/QfVHK33rmIjhmhpe4cior1VwdIv1jtE1vnmWZWysmrn7fujntGJVNjf2nWCVMn 1rN9vqJuF2jiQzgK+xyJlc7pzqFTHcmpdd5VHY8nUUJFsB8Jmy7qjL+WBbZ5ilmULYP7 U+gmML4xIQ7zSa7r8PZNwET8+EikkF2TsSLTCu10+cDnider+/0cK5zyr1b8vcPWjuiA QOTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gs14si9620430ejb.615.2020.08.09.19.30.29; Sun, 09 Aug 2020 19:30:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726361AbgHJCaE (ORCPT + 99 others); Sun, 9 Aug 2020 22:30:04 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:47902 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726219AbgHJCaE (ORCPT ); Sun, 9 Aug 2020 22:30:04 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 9CA0479A9950FC35D5C4 for ; Mon, 10 Aug 2020 10:30:02 +0800 (CST) Received: from [127.0.0.1] (10.174.177.157) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Mon, 10 Aug 2020 10:29:52 +0800 From: Yunfeng Ye To: CC: , Shiyuan Hu , Hewenliang Subject: [PATCH] genirq/proc: Show percpu irq affinity Message-ID: Date: Mon, 10 Aug 2020 10:29:50 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.157] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When the "affinity=" cmdline parameter is configured, the interrupt affinity displayed in the proc directory does not match with that of the the percu interrupt, and the percu interrupt uses desc->percu_affinity. So show desc->percu_affinity in show_irq_affinity() for percpu interrupt. Signed-off-by: yeyunfeng --- kernel/irq/proc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/irq/proc.c b/kernel/irq/proc.c index 32c071d7bc03..b9d0fa87b4b4 100644 --- a/kernel/irq/proc.c +++ b/kernel/irq/proc.c @@ -52,6 +52,8 @@ static int show_irq_affinity(int type, struct seq_file *m) case AFFINITY: case AFFINITY_LIST: mask = desc->irq_common_data.affinity; + if (irqd_is_per_cpu(&desc->irq_data)) + mask = desc->percpu_affinity; #ifdef CONFIG_GENERIC_PENDING_IRQ if (irqd_is_setaffinity_pending(&desc->irq_data)) mask = desc->pending_mask; -- 1.8.3.1