Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6263557rwb; Sun, 11 Dec 2022 22:30:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf7UR4i5wkyKfFsYWk2sJ07k5ngJzf4gUr7aQoA2AkE2MX7Eiv1AxqTo/fhjb1ykC7tc0ZOc X-Received: by 2002:a17:902:da87:b0:186:91e8:8a5b with SMTP id j7-20020a170902da8700b0018691e88a5bmr25092480plx.48.1670826602489; Sun, 11 Dec 2022 22:30:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670826602; cv=none; d=google.com; s=arc-20160816; b=U5YTFTxl+dJYpxLF37G8WqKQjfKpFJztp5OuYUEg0QTvkKmi7xLKpph5i2w9YVW5DE SztT9mcaOj+gSqud5J4FXjHdEWMWT/HFX4v9XEmo6jZvNEbc7YP8AAQ4JCvryPKc58F4 J8rB2JQ3apMBbv0jlUtJMkBxL8U37WF9hOSQ5qcf4E34KhKdIflOmH+fY92dYG1pS5NL E+NiLh1pHB6qGa8Wpx36bcNBe1sv1Sk0RHxiK0n1nGFyZ4e8kWIjnqzlCIiaPMiz/xzO n5uCVPLUQ6Li3dMtRLQTCnfxiE7HwBJ0L5+nf2Znr69OknhZaS3DUDHuLb5epD24UhxO sfAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rJDIrrfZ6pKY0fdPzb7u1Hz3ky/yqEehDLfRjjY+yeQ=; b=CVkrKha1XPluE9dyvRz77TsMdd9rW/wgTDZWNEN1G+FREbFODOCp0UyHPF9bELG5tK tFPeGd4qAkoVcR/pZN/9jlUlLSxCcLmA+LQ/jR2vZN64z+Sb/jNay8JvD36DuhB+OKdN iMZrbGMu3fB/PBG0QuRSvbwH4feqtrODaXevt8wTswTSnXB6FomgiBVVW6qGKuqy5Kjb MPV2vYgN4hZR6VEaRxP08m+7tkd5hIoyusevYZ5FlHtmrMVs2m2joe43DxVEWrSmFkcE Q7n5d/I/E3tIcESFsWv4ueP/1xSNcui4zFl9+6o8eDbUXpGLbDmcvaAubJVgAbmlPjtt Rirw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=c8DSQrhY; 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 m12-20020a170902bb8c00b00189c8b6e603si7829785pls.583.2022.12.11.22.29.51; Sun, 11 Dec 2022 22:30:02 -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=c8DSQrhY; 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 S231294AbiLLGVA (ORCPT + 77 others); Mon, 12 Dec 2022 01:21:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbiLLGU4 (ORCPT ); Mon, 12 Dec 2022 01:20:56 -0500 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 765D7B1F9; Sun, 11 Dec 2022 22:20:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670826055; x=1702362055; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=BGA3bKvoLuXx98MJqwsoe6Ky+jzhPr21suEXFjXfC6I=; b=c8DSQrhY9cTT59vq2ShEXLcO5DcnZg411YdBELDfDeAmmy9njPMjhsQi ep9f/FVUwVYH2gb7AJzUL/IDWvq2xXwTBcDPg+J2WsuYz8HDKs51aJpno ZIRar/nMs11Sm4pCSlcZWQqpMnrGLHQIptkNvdIFUSGYvXLheDg+M/uYS kSMIq/v/J8p1bWmT8qsePMV0HxQLe1g3vvxRv7X6ssVFHH4YhfGzMIWSQ bBzEnHDALdR3b86Up7Lx7Me0kPUjTi+x0d/M5VSTAphuhVus0cRQ2UWyl 02y/DTygW5pCjnWHgR1yd6tMpM7RHGGHhWAoIU/LQCBEvugkEgyBmCNYA g==; X-IronPort-AV: E=McAfee;i="6500,9779,10558"; a="315415837" X-IronPort-AV: E=Sophos;i="5.96,237,1665471600"; d="scan'208";a="315415837" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Dec 2022 22:20:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10558"; a="716678314" X-IronPort-AV: E=Sophos;i="5.96,237,1665471600"; d="scan'208";a="716678314" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga004.fm.intel.com with ESMTP; 11 Dec 2022 22:20:53 -0800 Received: by black.fi.intel.com (Postfix, from userid 1001) id A5081179; Mon, 12 Dec 2022 08:21:22 +0200 (EET) Date: Mon, 12 Dec 2022 08:21:22 +0200 From: Mika Westerberg To: Bjorn Helgaas Cc: Sathyanarayanan Kuppuswamy , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Helgaas Subject: Re: [PATCH v3] PCI/portdrv: Allow AER service only for Root Ports & RCECs Message-ID: References: <20221210002922.1749403-1-helgaas@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221210002922.1749403-1-helgaas@kernel.org> X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,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 Hi Bjorn, On Fri, Dec 09, 2022 at 06:29:22PM -0600, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > Previously portdrv allowed the AER service for any device with an AER > capability (assuming Linux had control of AER) even though the AER service > driver only attaches to Root Port and RCECs. > > Because get_port_device_capability() included AER for non-RP, non-RCEC > devices, we tried to initialize the AER IRQ even though these devices > don't generate AER interrupts. > > Intel DG1 and DG2 discrete graphics cards contain a switch leading to a > GPU. The switch supports AER but not MSI, so initializing an AER IRQ > failed, and portdrv failed to claim the switch port at all. The GPU itself > could be suspended, but the switch could not be put in a low-power state > because it had no driver. > > Don't allow the AER service on non-Root Port, non-Root Complex Event > Collector devices. This means we won't enable Bus Mastering if the device > doesn't require MSI, the AER service will not appear in sysfs, and the AER > service driver will not bind to the device. > > Link: https://lore.kernel.org/r/20221207084105.84947-1-mika.westerberg@linux.intel.com > Based-on-patch-by: Mika Westerberg > Signed-off-by: Bjorn Helgaas Reviewed-by: Mika Westerberg I asked our GPU folks to try this out too. Hoping to get some results during the week.