Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2947364rdg; Mon, 16 Oct 2023 22:46:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEeNcOyF++sL4j/Q1+fNw/M4encv8ejdGvQEGs1Mk6i8UsUkCN2gCGM7cZt+Obvpvjvuxs3 X-Received: by 2002:a17:902:e74d:b0:1c5:d0ba:429 with SMTP id p13-20020a170902e74d00b001c5d0ba0429mr1373719plf.4.1697521590607; Mon, 16 Oct 2023 22:46:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697521590; cv=none; d=google.com; s=arc-20160816; b=GcuRm0OoxqKGL5WPN0fBNV4oig9rdDzKhgCytttnYeMJPhxOkSzwihyR5aMPlIKlpi VjHrihYrj8697hL4Ci5Z0dtm2RBvky5sS4g1RO44b1gyfMy5EY3EP6C7/3U0HX57hBoC fRtOiYKSezkvhRRdll+qukOCJqfBLgYUU2zR09/cvW2mRtJobXZRUQobxZlFAPgEbQvt 3SRxT9u31JJI+g8/fZ7uJfumc1lXOqQ0mW8A5UBQQlmpd0GEvvY3F+OFNl/+tGhjAFjj u4IQ3T05NuU0zubzgsLKtah53tCZpcNd4V3h+MRZ06UqCrdIBCQpSRTkLXQ7OGuJTflX qFgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=ivliuzjkmXznqkG7s6nQ38sLc3EhI+ccmlQiFckBLOA=; fh=cuJsvtSbE4GWJuBlPR7DimYdOBSuKsQyrwtD2lt7DjU=; b=E3GIcV6zTA2gE7sG8mFWCxZbtGPY+pFYLru7NOgYBrOv6sy0vLU/bLVxxoHy9Hjslw VsDXJZFxjgR+DZF4ohndQGlQaU46TIyi3rp4kchryp8KbTGsYj0kDgyP7+eH3Ia4O/OY TBvczQeDaPthud0TVcoM55baSYGuaaJIxL/YK0n0+T73VsOtF2Ei/gL+j7MFl1V3DfIi qwuQZOMdtAQUI//Pk7QHv82oPQ0KiovHJRNaVi8+T2sny/RhGlwC2wNo2kQwVdil2Ecc tuwLznkJNwHUyiShlbuYnbvlZHdHBvORVRSXPzZvXNTGbxcGeY07vhCVsaAL7iN8MsgH 8EMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id x4-20020a170902ea8400b001ca7295810bsi988108plb.411.2023.10.16.22.46.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 22:46:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 7F4698069F13; Mon, 16 Oct 2023 22:45:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234562AbjJQFpf (ORCPT + 99 others); Tue, 17 Oct 2023 01:45:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234471AbjJQFpZ (ORCPT ); Tue, 17 Oct 2023 01:45:25 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79247EA; Mon, 16 Oct 2023 22:45:20 -0700 (PDT) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 39H5iEadD3730461, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.93/5.92) with ESMTPS id 39H5iEadD3730461 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 17 Oct 2023 13:44:15 +0800 Received: from RTEXMBS02.realtek.com.tw (172.21.6.95) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Tue, 17 Oct 2023 13:44:13 +0800 Received: from RTEXMBS01.realtek.com.tw (172.21.6.94) by RTEXMBS02.realtek.com.tw (172.21.6.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Tue, 17 Oct 2023 13:44:13 +0800 Received: from RTEXMBS01.realtek.com.tw ([fe80::9cb8:8d5:b6b3:213b]) by RTEXMBS01.realtek.com.tw ([fe80::9cb8:8d5:b6b3:213b%5]) with mapi id 15.01.2375.007; Tue, 17 Oct 2023 13:44:13 +0800 From: Ricky WU To: Kai-Heng Feng , Lukas Wunner CC: "bhelgaas@google.com" , "linux-pm@vger.kernel.org" , "linux-mmc@vger.kernel.org" , Kees Cook , Tony Luck , "Guilherme G. Piccoli" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hardening@vger.kernel.org" , "bpf@vger.kernel.org" Subject: RE: [PATCH] PCI: pciehp: Prevent child devices from doing RPM on PCIe Link Down Thread-Topic: [PATCH] PCI: pciehp: Prevent child devices from doing RPM on PCIe Link Down Thread-Index: AQHZ/+WX29Sx+yjN7keHtkFSV38Z/LBLoV4AgAE/YwCAAJeMcA== Date: Tue, 17 Oct 2023 05:44:13 +0000 Message-ID: <24f72eea9fba45c4b1cd85836b17f251@realtek.com> References: <20231016040132.23824-1-kai.heng.feng@canonical.com> <20231016093210.GA22952@wunner.de> In-Reply-To: Accept-Language: zh-TW, en-US Content-Language: zh-TW x-originating-ip: [172.22.81.100] x-kse-serverinfo: RTEXMBS02.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Mon, 16 Oct 2023 22:45:55 -0700 (PDT) DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogS2FpLUhlbmcgRmVuZyA8 a2FpLmhlbmcuZmVuZ0BjYW5vbmljYWwuY29tPg0KPiANCj4gT24gTW9uLCBPY3QgMTYsIDIwMjMg YXQgNTozMuKAr1BNIEx1a2FzIFd1bm5lciA8bHVrYXNAd3VubmVyLmRlPiB3cm90ZToNCj4gPg0K PiA+IE9uIE1vbiwgT2N0IDE2LCAyMDIzIGF0IDEyOjAxOjMxUE0gKzA4MDAsIEthaS1IZW5nIEZl bmcgd3JvdGU6DQo+ID4gPiBXaGVuIGluc2VydGluZyBhbiBTRDcuMCBjYXJkIHRvIFJlYWx0ZWsg Y2FyZCByZWFkZX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