From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oa1-f49.google.com (mail-oa1-f49.google.com [209.85.160.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE4F76DCE5 for ; Thu, 14 Dec 2023 21:45:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=purestorage.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=purestorage.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=purestorage.com header.i=@purestorage.com header.b="UHh9nBU3" Received: by mail-oa1-f49.google.com with SMTP id 586e51a60fabf-1ef36a04931so12754fac.2 for ; Thu, 14 Dec 2023 13:45:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purestorage.com; s=google2022; t=1702590347; x=1703195147; darn=vger.kernel.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=c10wTDKGWx40+Vti3rmzZrdQoTCm+JYREO+5RZnJZkA=; b=UHh9nBU3Xdq01s1oEUuoT38ZK58dwPgY2PHrkz1BmwdZoq0x01v5neOTR9/dDLVh+h jsS/+BMpel1ld5j4vec+pNps+oPrayssaTNHp/EEfmwugqTuEe0FMPahM2S6Q9f6speQ kMzN4NGwmIh5PzvILKCq7w66E3jsNFsPxk3RNwiPf3JPS+Kmfx0+Ok4YySEyK0IdGsTw Nvdsl+QL/LBVJH1sprhxEe5dkeMjkHALodFtkAxUipWu1jrkwQS+/Z7784LC36sfhL62 +Vcso19toDLtUfmcP+NLo7j74+BBz1ycqjNy93b/BpR/V6jRBDZYlgZcpHEVsEtjZJkg 69XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702590347; x=1703195147; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=c10wTDKGWx40+Vti3rmzZrdQoTCm+JYREO+5RZnJZkA=; b=Jnz17cqsvEoSrph7t308LTi3+odxaIePn8KWp2X3g5OwyL9ybkbyWLme0ivdS3akgX MraLbFO0slC1Thphzql7uKYSraevsjQtw0Ic6X/i9JhzDdxv/MwmGMhHmyvLj75Dw3KX ygOLiZypsZla/RDj8ccFTG+F/mMbfo8Z8xfsTSMQhSOPi/deAo11rRYqzFF1WAL0KD6U 66YTmGYSDOBTtBQeUYiRbfgSHGsID3X/973RU7vvEO/TvwMi2MpFHWGBWgEgaDAJjJH1 jLVzdvWynqVRPLgFowQn2GZHajH8giIe4mVz9Qwp7xHh5pJ2AqCaRW7EMkJrLms7/Mwk 1p3Q== X-Gm-Message-State: AOJu0Yx5jYPwiqoNjDwND9Q/4MLf746GzLCRIWhSu/xI/d5ywRsjnEbB g2XUu/aebKQI+4e07aAZBBGrrw== X-Google-Smtp-Source: AGHT+IF+GBfzMrtU6Y1DmkKONVgvTc0x2UUy7AoaDhukMf1eYZovRHxpOzRj+/aiUMtMj7rChQaPaA== X-Received: by 2002:a05:6871:5b22:b0:1fb:75a:c442 with SMTP id op34-20020a0568715b2200b001fb075ac442mr10423148oac.107.1702590346704; Thu, 14 Dec 2023 13:45:46 -0800 (PST) Received: from dev-mattc2.dev.purestorage.com ([208.88.159.128]) by smtp.googlemail.com with ESMTPSA id pf11-20020a0568717b0b00b001faebb7ff77sm4729234oac.56.2023.12.14.13.45.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 13:45:46 -0800 (PST) From: Matthew W Carlis To: helgaas@kernel.org Cc: bhelgaas@google.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, mattc@purestorage.com, mika.westerberg@linux.intel.com, sathyanarayanan.kuppuswamy@linux.intel.com Subject: [PATCH v3] PCI/portdrv: Allow AER service only for Root Ports & RCECs Date: Thu, 14 Dec 2023 14:45:40 -0700 Message-Id: <20231214214540.4542-1-mattc@purestorage.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231214202856.GA1101963@bhelgaas> References: <20231214202856.GA1101963@bhelgaas> Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Hi Bjorn. Thank you for the quick response, it looks correct that this is first in v6.2. My thinking is that the kernel should use DPC on a switch port if it would use it on a root port when dpc-native is not set. I would be happy to post a formal patch for this. Maybe using host->native_aer is the correct way to ensure that the kernel in this system will be using AER, maybe not on this device but it will on some device. Then, can proceed to use DPC on the device. I will submit something in the next few days here. Also, sorry if you received this email twice.. Mistake on my part. Cheers! -Matt