Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3045216lqp; Mon, 25 Mar 2024 18:32:08 -0700 (PDT) X-Forwarded-Encrypted: i=4; AJvYcCVetv63pzS5amNvvpheWFCCDlL0vv1tmYbQ+IdACuMv4r8YZ0b7KH2qjF7Ewn1PI4fEWuLZTn42PSryU8ebv7NiyXtAr+TafY/h5b+flw== X-Google-Smtp-Source: AGHT+IEFY1UA7lYSWLQAvwW+TNuccst6aMZwBlYHsklZqs4AWfFKpDr4wIzRCJ2j7dXLl+qtwqil X-Received: by 2002:a17:902:f688:b0:1e0:c0dd:c5eb with SMTP id l8-20020a170902f68800b001e0c0ddc5ebmr5075254plg.9.1711416727840; Mon, 25 Mar 2024 18:32:07 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1711416727; cv=pass; d=google.com; s=arc-20160816; b=cjgexs7xaYaDdd+fzWpx1rxVfWyOnfjjWZyvJdcuh4CBeNpVWr8aB0gjIgC521+iwD G3M0Ydfc3+2MrTd9QZV87Uai5WI+yYqwGoKnEWKEgkG+Kh6WLXA8g3KgYP5Pd18V+Ewi G3pGmGsxRrSJZwf3SIBLXZwCuI2Tvg0VfTEKZA8rNr8VzEiZs7RlBOI+R/tmhf8zoOQg U3zdA4YjjxnbMHF0+bBPZwbEpPiiCI2G36Ju93vmrZnWbhGoTdCRrHC3wQQHoOBRfnKN ewDxtjeTa1/rj6N2Vo17W1xklaqjXLdW2KJeb2Pqm6shasgOP+jB61Ul1U7WpQC9nm77 4N5A== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=5syhqyGKayQD79m3bj55ZP0GtVHOmxoOvlT2cxDiOlA=; fh=2NQhIAqMIo0UcXEfANtGZT+LsFK+1sRAQSWrbIhXaMs=; b=Y6639IhZbZvQQCJvQ1icrpSaXtwojRGzxqd9VegwbO+0aSNZNzCXr8x3BT+fdlacw5 d9w8Rfeczss62y11VqKf0Ns6yGjhcuyYSOMK7SFfn3CpsgWhYuQoZDMHteU3S6Q3Lt5i 9Ft9A4Q8V5gD33vqGwUvdID8Cr3U962uaepIf+HXtIiokA8Ka5EtwjSUs5DT1EvaVTgP 5ac52j/j+7cl1wtPj83pEDpQT1c/4RduUE4nEbl7YIlosxgpiQwglkCfpzQX5U7P1BDj ZMSGPLJRFc0mSU5XEsjQedTbHaZDwmgrZQXWWdXSRg6eaUiOjWSTd5rMoFCHP45AmftB hOJA==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@stgolabs.net header.s=dreamhost header.b=XI5ZRsC1; arc=pass (i=2 spf=pass spfdomain=stgolabs.net dkim=pass dkdomain=stgolabs.net); spf=pass (google.com: domain of linux-kernel+bounces-118118-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118118-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id jf20-20020a170903269400b001e05d7b6a38si5933141plb.400.2024.03.25.18.32.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 18:32:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118118-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@stgolabs.net header.s=dreamhost header.b=XI5ZRsC1; arc=pass (i=2 spf=pass spfdomain=stgolabs.net dkim=pass dkdomain=stgolabs.net); spf=pass (google.com: domain of linux-kernel+bounces-118118-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118118-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0A665B3DC0C for ; Mon, 25 Mar 2024 22:33:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85C3480044; Mon, 25 Mar 2024 22:31:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=stgolabs.net header.i=@stgolabs.net header.b="XI5ZRsC1" Received: from silver.cherry.relay.mailchannels.net (silver.cherry.relay.mailchannels.net [23.83.223.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BDDC6763EE; Mon, 25 Mar 2024 22:31:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=23.83.223.166 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711405918; cv=pass; b=pbP//WzOn/B48LWJ6VST3zCyiY375/FN0jSyEoqdBnfKJGHnPDT1nHaOaz+er6wtHwtYGZWUPh3Zhuqpzl66eJzp606bwbjQoxdnOv4T8SQ/Ha/wL8L/ehabA86KMKCNnRyrP/QEk7NVny93PLTNNui9uZ7YhuLqIeXq7mvUyV8= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711405918; c=relaxed/simple; bh=2klrCOGU3u+3RDtQus/+ny8XUXjCLoWlje16CaT227M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=avjQnRh238F7ngFnCyDaGw/WDSPCZxTuQvjkGRrw9++cjEnWJ15lw4RampBWCm+pQwdUnmjXqhz92Dbwp4in2etotCtXL+gVpzOiv44QSHyWGkG1Mga6zNcaHDmNMc/JSf+4RIWqrIK6NediDGkJZPclnpQKJ08qgdyYvhHrXso= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=stgolabs.net; spf=pass smtp.mailfrom=stgolabs.net; dkim=pass (2048-bit key) header.d=stgolabs.net header.i=@stgolabs.net header.b=XI5ZRsC1; arc=pass smtp.client-ip=23.83.223.166 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=stgolabs.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=stgolabs.net X-Sender-Id: dreamhost|x-authsender|dave@stgolabs.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id E75C76C3523; Mon, 25 Mar 2024 22:26:26 +0000 (UTC) Received: from pdx1-sub0-mail-a262.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 3C2C16C38BD; Mon, 25 Mar 2024 22:26:26 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1711405586; a=rsa-sha256; cv=none; b=YQA9zDOSngd6sHY5S60GgMJ7Ym131iPm4G1ZymSNXBY0JJhQ6n35cKp8hCRza4XYkRhbsJ eVOTjYoR+TYMMoIaY9SXQ4cAS1x6df+BTpIslcVc1xU2yYKoDcOwh7mcgGWUavb4VW2/zC gTDFlWNbt6GJCwkSyl20RGICexQQ4qAgn47Rj9anezIIEcRIv/U+eVasabpW5GWnWiYY19 7D70NPhDgiiOC277ztnx81lkgnWUYDVBlSaVKoOGtS8W9LwNE484/w7FFdsrH4ZRvBzCRn Hpt4vwjdEY0ZrAOwpKdR1QPADM5qHyNUHoAoBMKZPC0TAGQfSTnGA0U1JgX79g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1711405586; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=5syhqyGKayQD79m3bj55ZP0GtVHOmxoOvlT2cxDiOlA=; b=2UmD3JWvU4wahOIOdhkx0DmXt8FK+NO/h7XMMb+R2z+PXNtk4/7Zx4SAfmrxv/3PKzBRQO 8ql9HEg0aJr5vQN6N71jxCYkIo01z1IpFyD3X+ATG3cUGxCdxUOPzVPSID64YVfLt7nezn E+86ErgPFuCNbjPc6DXCPR05syWVOKxsoBGVAdKtLs1nrD5zWpBb0lKs5jIQ2AJcZ8fYge HK/ZAHAEs/xnyhZt1GxZ8lkhn+e+Zwq8RZWdowK86lgD94NaJ0So43WtHYw2PhBQIrWThH ToOK8OChrEygKyscGDw7WB8NdwCUoVTV20JlMGaCaDYDUhPP3MEwen36Qbge7w== ARC-Authentication-Results: i=1; rspamd-6c65898bb7-xrm8z; auth=pass smtp.auth=dreamhost smtp.mailfrom=dave@stgolabs.net X-Sender-Id: dreamhost|x-authsender|dave@stgolabs.net X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|dave@stgolabs.net X-MailChannels-Auth-Id: dreamhost X-Eight-Vacuous: 26d43d7f28717ef5_1711405586586_1544570442 X-MC-Loop-Signature: 1711405586585:3795176681 X-MC-Ingress-Time: 1711405586585 Received: from pdx1-sub0-mail-a262.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.96.203.156 (trex/6.9.2); Mon, 25 Mar 2024 22:26:26 +0000 Received: from offworld (unknown [108.175.208.151]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dave@stgolabs.net) by pdx1-sub0-mail-a262.dreamhost.com (Postfix) with ESMTPSA id 4V3SFs15d6zN1; Mon, 25 Mar 2024 15:26:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stgolabs.net; s=dreamhost; t=1711405586; bh=5syhqyGKayQD79m3bj55ZP0GtVHOmxoOvlT2cxDiOlA=; h=Date:From:To:Cc:Subject:Content-Type; b=XI5ZRsC1S8FPlpQm7y4WKFVbzXHiVRN17R7zjz9dewK2tJ26c8Yosq+jRGgMIm/lk 9IMZRIomOK2OPFiYdfkmb8sgL9uDRScWcvxvs5C1AbcJ2P1zt2AaVW6TirhgFtAbwI NnxGmqWISIZuZDM3lRZHcRoSdedW1vemdaGtG5B8W+KQUNAiTrC7ObgDiPKo4G0QiU vNctyiCS4vd7E9vmc2xEdtueyOtqgUcuIlLt0h5Z5+b1aTafzhjwMwP3JkKk6FkBs8 q9X85d+1VgEHggYk7EIZ0Ah5oN1LtbtYCKgV85yfqlAz/WLBhj2Z8Rz7aa3xw5epNQ APJNIwMquGQWQ== Date: Mon, 25 Mar 2024 15:26:21 -0700 From: Davidlohr Bueso To: Ira Weiny Cc: Dave Jiang , Fan Ni , Jonathan Cameron , Navneet Singh , Dan Williams , Alison Schofield , Vishal Verma , linux-btrfs@vger.kernel.org, linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 11/26] cxl/pci: Delay event buffer allocation Message-ID: <7zwoy5okwoow3tnjjs5tfpsabbbflbagqjm7z2la7ekguxlhvk@gxm5vmaiqovp> References: <20240324-dcd-type2-upstream-v1-0-b7b00d623625@intel.com> <20240324-dcd-type2-upstream-v1-11-b7b00d623625@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20240324-dcd-type2-upstream-v1-11-b7b00d623625@intel.com> User-Agent: NeoMutt/20231221 On Sun, 24 Mar 2024, Ira Weiny wrote: >The event buffer does not need to be allocated if something has failed >in setting up event irq's. > >In prep for adjusting event configuration for DCD events move the buffer >allocation to the end of the event configuration. The above could be removed and just picked up independet of dcd. Reviewed-by: Davidlohr Bueso > >Signed-off-by: Ira Weiny >--- > drivers/cxl/pci.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/drivers/cxl/pci.c b/drivers/cxl/pci.c >index cedd9b05f129..ccaf4ad26a4f 100644 >--- a/drivers/cxl/pci.c >+++ b/drivers/cxl/pci.c >@@ -756,10 +756,6 @@ static int cxl_event_config(struct pci_host_bridge *host_bridge, > return 0; > } > >- rc = cxl_mem_alloc_event_buf(mds); >- if (rc) >- return rc; >- > rc = cxl_event_get_int_policy(mds, &policy); > if (rc) > return rc; >@@ -777,6 +773,10 @@ static int cxl_event_config(struct pci_host_bridge *host_bridge, > if (rc) > return rc; > >+ rc = cxl_mem_alloc_event_buf(mds); >+ if (rc) >+ return rc; >+ > rc = cxl_event_irqsetup(mds, &policy); > if (rc) > return rc; > >-- >2.44.0 >