Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8789504rwl; Tue, 10 Jan 2023 19:36:30 -0800 (PST) X-Google-Smtp-Source: AMrXdXuR5lZWP1X8D+f8Rdn1eXPGfbL7ZIpHGjMoRSYRBfukmCsN0eY0lv4yU6QkyHV/zmr6AtZP X-Received: by 2002:a05:6a00:a89:b0:583:4126:a09 with SMTP id b9-20020a056a000a8900b0058341260a09mr21834964pfl.21.1673408189845; Tue, 10 Jan 2023 19:36:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673408189; cv=none; d=google.com; s=arc-20160816; b=mmad5VU0HMW96bZlDU529IA9tukhC8y91C9378zLg2v27C5JrFdTJSp/4BuOUDMyzo 0oZUMAXmoSRwIz6zEKLl8TO58njfWRjgtm1u2F+PDRTcB2TUMjpz4jT63mWGC8g4TpS7 1kMUEDDkIcvZrZZIq67uFK352Z7RPa5cqCviHyKFZzqvksb55Y22PeSidqo+DL3EjqRi wcxs0oT9h4WFaMve/FyvVgI/oGChwYS7pCMH6a5nmfBVmo7Hlc8Qr3aFYdzPsQhyzegq Huie0OYbzL3BD4XF/88j3XpZ1dsgdnvFlUUW96K/Tla15HVCKiRBhod+Ax+PU0bBO/48 5d1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:to:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=b2D20Y0GNQSTJ3aNKYMGqLZukQ85bmhN2EPZWSZ5iKk=; b=K9fUMkZlY1LHMpZurbMrX18O5o8hPWhAy//If/D4E1ggM7ky/Qwa9bYF1S5oDUNS3e aTZTKWT3/0IjqDmvaJ12ywDeFaxE7ZSmmoFvxifKY82Z0VRknmbx12ae8Nv6qTcwx1co UY/UDVWNpgg7EuCZ9lmfsel9G6a9WB6x2lmc1LmqIYU4zs1f0Xj8wFjEep1K7qEK5NrY 54mOYyMylTBr58oLIEb4kCDT1gqES0cguVzFi0k0J6p2cHB2bM1FrVKwsxBG2pWwMsdz +3iga6yOhdAyHlykEe/wcjEy8t+B5xy8h4ySAswvaQHCiPvu/bqC3FvlrGG967UgKx2r e4og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mixy8TKW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t17-20020a62ea11000000b00576505a484csi12253200pfh.336.2023.01.10.19.36.22; Tue, 10 Jan 2023 19:36:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mixy8TKW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231174AbjAKDQt (ORCPT + 55 others); Tue, 10 Jan 2023 22:16:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230106AbjAKDQk (ORCPT ); Tue, 10 Jan 2023 22:16:40 -0500 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD60AC769; Tue, 10 Jan 2023 19:16:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673406999; x=1704942999; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=eiUGacdelBh6i4MLgLO5PEcQ0q58R3cpUTNNPuRjubk=; b=mixy8TKW2cbGVTayGXAHNT5gTiRq6DxI1/WeyORvGUEl6UZNMhGHsm9+ c7ZAu93nM6Z2lL7fJfg4J16TE7RheVbh3uFs+zPk4qPVA+MBkFW+cXNR/ Ns+BvGbiqBQ9bakrQ/b/A6MLCy7ij6bInaZtdwu43/42EISq0JydirY/+ 0xHN0vVKD3oSA+kSETX/DfXQHvPUU58mnCCeyB3bHlq96chtLWf3ocQT5 oYfrQoAqfPOKoYXMRT1eMsuCNGcpa8nEK3rRs0M9v7KY4sV3xula9iVbU LsnwY19/a44tKUlkCwN397oiJoxFIn97V+Qb+VtYtz1dEVMXr3azp5RPV w==; X-IronPort-AV: E=McAfee;i="6500,9779,10586"; a="303688159" X-IronPort-AV: E=Sophos;i="5.96,315,1665471600"; d="scan'208";a="303688159" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jan 2023 19:16:39 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10586"; a="607206515" X-IronPort-AV: E=Sophos;i="5.96,315,1665471600"; d="scan'208";a="607206515" Received: from blu2-mobl3.ccr.corp.intel.com (HELO [10.252.188.177]) ([10.252.188.177]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jan 2023 19:16:35 -0800 Message-ID: <7c2af186-5868-d962-f810-ef810fbd074c@linux.intel.com> Date: Wed, 11 Jan 2023 11:16:32 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Cc: baolu.lu@linux.intel.com, Vasant Hegde , Matt Fagnani , Thorsten Leemhuis , Joerg Roedel , "iommu@lists.linux.dev" , LKML , "regressions@lists.linux.dev" , Linux PCI , Bjorn Helgaas , amd-gfx@lists.freedesktop.org Subject: =?UTF-8?Q?Re=3a_=5bregression=2c_bisected=2c_pci/iommu=5d_Bug=c2=a0?= =?UTF-8?Q?216865_-_Black_screen_when_amdgpu_started_during_6=2e2-rc1_boot_w?= =?UTF-8?Q?ith_AMD_IOMMU_enabled?= To: Jason Gunthorpe , Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , "Pan, Xinhui" References: <15d0f9ff-2a56-b3e9-5b45-e6b23300ae3b@leemhuis.info> <5aa0e698-f715-0481-36e5-46505024ebc1@bell.net> <157c4ca4-370a-5d7e-fe32-c64d934f6979@amd.com> <223ee6d6-70ea-1d53-8bc2-2d22201d8dde@bell.net> <6fff9d10-f77f-e55a-9020-8a1bd34cf508@amd.com> Content-Language: en-US From: Baolu Lu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 On 2023/1/10 21:25, Jason Gunthorpe wrote: >> + } else { >> + if (!pdev->bus->self || >> + !pci_acs_path_enabled(pdev->bus->self, NULL, >> + PCI_ACS_RR | PCI_ACS_UF)) >> + return -EINVAL; >> + } > Why would these be exclusive? Both the path and endpoint needs to be > checked If the device is not an MFD, do we still need to check the ACS on it? Perhaps I didn't get your point correctly. -- Best regards, baolu