Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2979803rdg; Tue, 17 Oct 2023 00:10:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF9t5GA/GrUyFAnBczLu2PPNQW2z/xuBjxXbK2vM7wEioj9HaKZPOyx/xY1n9+wYf2nF0AB X-Received: by 2002:a05:6870:c194:b0:1e9:feb7:71db with SMTP id h20-20020a056870c19400b001e9feb771dbmr1771060oad.36.1697526646647; Tue, 17 Oct 2023 00:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697526646; cv=none; d=google.com; s=arc-20160816; b=wLdwAgnPRPlk18AdZ26EDXg267UZOCav1hDnTRTwc0BvhsordZSHHe78YU3OAw2IrV 92kqJ0crJN14Q15WnY93QtkSGhWvqjEoGa8GPdspQj4qVM+bNDzK8p8O0k8uG2Zwdxuu nBYm57XHWhqOJReQs5aNKoNOPI+jLxUNo5SzRwYcf7zqpWrEJEyA/Dnpc+m7o/WiDYFJ nnfytkCYhmGFjFCkbcyH1cJJ2XoL1sUg/SdgWleiecuBvVZuqwn1fyn3tiHfK4LgjD9s UHrsBtqKKiBvHWdAPlzDta3dX+Nd5+Jzjr0HGZpT4VM6y7UnHZFi+jYl5ZWQuDI6+T+f Si+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ttadKFv/SMnkyWmHPdIzwLkP/HzbKjeMBYXXWVpzf20=; fh=R5K7hII9wLE4ReWLuIEIOvNQcf639s/f/6Vk2NrhVYE=; b=zUjkjUm9at4G2Zc31UrSvMyLM3t3EUuv06VFve8WCLLgxsb+qUlvVLTC/7Eco9b3Ad D0/MQ7a5O4E/qbPJfMQpb65yur0lel7DNNxTaVO+geDcmJzWjLAUF4VzqqsLT+gIoC3M jLJFyHCwB9nvoou0piZ0NijMWQdE7QYDyvOcLchpSSYwt/W/um3q2MPFOsYzatBFGFcU KO8AH4R7DL7KB26uMVnwySt/5RrN7UkYwgJsi3WK6d/yNKutLCkJS/8nXhRoMMyDYEup FsF1VkOQqrN5vT+Vzfc+O3Y2nx7SibrVknZldV1Owr2CbzSxgQrZ89EtgCG0R3cRjkF9 1OgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id b28-20020a63715c000000b005b7e3ee181fsi1107828pgn.642.2023.10.17.00.10.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 00:10:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id C0C378065322; Tue, 17 Oct 2023 00:10:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234503AbjJQHKV (ORCPT + 99 others); Tue, 17 Oct 2023 03:10:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229666AbjJQHKU (ORCPT ); Tue, 17 Oct 2023 03:10:20 -0400 Received: from bmailout1.hostsharing.net (bmailout1.hostsharing.net [83.223.95.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CABEA8E; Tue, 17 Oct 2023 00:10:17 -0700 (PDT) Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.hostsharing.net", Issuer "RapidSSL Global TLS RSA4096 SHA256 2022 CA1" (verified OK)) by bmailout1.hostsharing.net (Postfix) with ESMTPS id D6555300000A6; Tue, 17 Oct 2023 09:10:14 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id CE0DA4DD3C9; Tue, 17 Oct 2023 09:10:14 +0200 (CEST) Date: Tue, 17 Oct 2023 09:10:14 +0200 From: Lukas Wunner To: Ricky WU Cc: Kai-Heng Feng , "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" Subject: Re: [PATCH] PCI: pciehp: Prevent child devices from doing RPM on PCIe Link Down Message-ID: <20231017071014.GA4592@wunner.de> References: <20231016040132.23824-1-kai.heng.feng@canonical.com> <20231016093210.GA22952@wunner.de> <24f72eea9fba45c4b1cd85836b17f251@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <24f72eea9fba45c4b1cd85836b17f251@realtek.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Tue, 17 Oct 2023 00:10:44 -0700 (PDT) [cc -= unrelated mailing lists bpf, kernel-hardening] On Tue, Oct 17, 2023 at 05:44:13AM +0000, Ricky WU wrote: > > From: Kai-Heng Feng > > On Mon, Oct 16, 2023 at 5:32???PM Lukas Wunner wrote: > > > On Mon, Oct 16, 2023 at 12:01:31PM +0800, Kai-Heng Feng wrote: > > > > When inserting an SD7.0 card to Realtek card reader, it can trigger > > > > PCI slot Link down and causes the following error: > > > > > > Why does *inserting* a card cause a Link Down? > > > > Ricky, do you know the reason why Link Down happens? > > Because SD7.0 card is use pcie-nvme driver, reader need to re-link > then just do the pcie channel I don't quite follow. I don't see a pcie-nvme driver in Linus' current master branch. Which driver are you referring to? What does "re-link" mean? Rebind to a different driver? Thanks, Lukas