Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1591180rdb; Thu, 7 Dec 2023 03:46:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IEPxMwBOmcbvIoleZpVoURXiOfZKzHMYDdHdbdodl435c9GSgj/0k3hI4tp7cBFtQVeaUg1 X-Received: by 2002:a05:6358:9499:b0:16f:f75e:9844 with SMTP id i25-20020a056358949900b0016ff75e9844mr3485617rwb.32.1701949587431; Thu, 07 Dec 2023 03:46:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701949587; cv=none; d=google.com; s=arc-20160816; b=rbYQ7By71gUxsGYIdLQzB5Ewu9yCXNQEVEjCq6OKAOT1XPPsSnyRSrCa2RgZSqo8EJ voD8n0jESodiTBEx/XsXoa7l10bbYf9Pz72mXsBp+C/IXwwXPGAJGLhWPKl4NLIGfH/X Xjk+fhZ0FHExghK4+Nu8f9EVsguBZlwQ+a6n2MgNgaoJ6fWzd0oMTGQwYx+ydPGj6CcH HRY8uSqhsOKmAP93di5/w7sbF6QDe+/L9LxEhDTPFOZMOiAJWAxpXJ/P6J8A1hjUQ0gF ostbnBYJz9Hzd3BD33QZ73G60xfsDjYImew4IoxwTCHjFT82U7Un0RrNdalEoZVhGksX 3cjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=4h8jetIDTiMMxcaqV48eppm/9fnxYPXbIamxBD/c+Mo=; fh=KWvyQxL3Ff+3WPSMjlYu+P4255AmcMULAsFol6M1vNI=; b=IoHx1zSaQlO4pZCJ8Mhx+9UcgXbKbH19idq6KZuhclagZDGvByXOjIQjbTWXQYTyA6 hJIajWduE4MZqL9w7TrpuwGuTeKOL8/CxbHfxvcoAZPsdU+X/KmP8MjZdhmbLn/WwFoH TatymsEfoZAXDLJM9QHIGeo1lVtojliOhisuJq/1SMSNZIjwM9jGx/MvHsfEIpA9m9eY EtfiOOtpIDhbe1tRfTsrbfE1AqZtZt28w4fhxeMkVTb+OHDhLFoAXawJE8Rh2pJ+YWs+ DWnu43Ymw21XywWkVCDbxoCp7a1QmMCrcMkFKSgQvnutCgiwIyAzp0bQiF5WONHrd0jJ rVdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id k1-20020aa788c1000000b006ce702c02absi1097778pff.159.2023.12.07.03.46.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 03:46:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 7A5968054EE5; Thu, 7 Dec 2023 03:46:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232262AbjLGLqH (ORCPT + 99 others); Thu, 7 Dec 2023 06:46:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231439AbjLGLqE (ORCPT ); Thu, 7 Dec 2023 06:46:04 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C117DD4A; Thu, 7 Dec 2023 03:46:10 -0800 (PST) Received: from kwepemi500006.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4SmC6L1hJVzShwn; Thu, 7 Dec 2023 19:41:46 +0800 (CST) Received: from localhost.localdomain (10.67.165.2) by kwepemi500006.china.huawei.com (7.221.188.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 7 Dec 2023 19:46:08 +0800 From: Junxian Huang To: , CC: , , , Subject: [PATCH v2 for-next 1/5] RDMA/hns: Rename the interrupts Date: Thu, 7 Dec 2023 19:42:27 +0800 Message-ID: <20231207114231.2872104-2-huangjunxian6@hisilicon.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20231207114231.2872104-1-huangjunxian6@hisilicon.com> References: <20231207114231.2872104-1-huangjunxian6@hisilicon.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.165.2] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemi500006.china.huawei.com (7.221.188.68) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 07 Dec 2023 03:46:23 -0800 (PST) From: Chengchang Tang Now, different devices may have the same interrupt name, which makes it difficult for users to distinguish between these interrupts. Modify the naming style to be consistent with our network devices. Before: "hns-aeq-0" "hns-ceq-0" ... Now: "hns-0000:35:00.0-aeq-0" "hns-0000:35:00.0-ceq-0" ... Signed-off-by: Chengchang Tang Signed-off-by: Junxian Huang --- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c index 5d0a7a1394fc..4258b6daaded 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c @@ -6473,15 +6473,16 @@ static int __hns_roce_request_irq(struct hns_roce_dev *hr_dev, int irq_num, /* irq contains: abnormal + AEQ + CEQ */ for (j = 0; j < other_num; j++) snprintf((char *)hr_dev->irq_names[j], HNS_ROCE_INT_NAME_LEN, - "hns-abn-%d", j); + "hns-%s-abn-%d", pci_name(hr_dev->pci_dev), j); for (j = other_num; j < (other_num + aeq_num); j++) snprintf((char *)hr_dev->irq_names[j], HNS_ROCE_INT_NAME_LEN, - "hns-aeq-%d", j - other_num); + "hns-%s-aeq-%d", pci_name(hr_dev->pci_dev), j - other_num); for (j = (other_num + aeq_num); j < irq_num; j++) snprintf((char *)hr_dev->irq_names[j], HNS_ROCE_INT_NAME_LEN, - "hns-ceq-%d", j - other_num - aeq_num); + "hns-%s-ceq-%d", pci_name(hr_dev->pci_dev), + j - other_num - aeq_num); for (j = 0; j < irq_num; j++) { if (j < other_num) -- 2.30.0