Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4148589rwi; Wed, 12 Oct 2022 11:16:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7oP9Cg5ofZJg99FIzpwq/7Gp1PfFbK3pNICrrCv5rw0LPRYw3lcHWL7YSqWbRIDa9jlsFH X-Received: by 2002:a17:907:760b:b0:78d:9d67:83b9 with SMTP id jx11-20020a170907760b00b0078d9d6783b9mr16366564ejc.568.1665598574349; Wed, 12 Oct 2022 11:16:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1665598574; cv=pass; d=google.com; s=arc-20160816; b=Td3zBnbWAIXNGNvcH8SuQB85VQcAvYJ4LwlB13ADuidrEHaqVQjErze3O93qJNgRZp JAVlyH6bT4G2uwFliXJztNH8XX1AU/y0gEAnOJ77hpu4DsI/zaLeMHz3JRiHwOdt9Aq6 IwtWFpAo6e0udI9jVX8fhps0i1Bo1yYF47JlkMWVye9IfA/HFmgFupo6hGUbB+KEYMQq tIyyIlU/ZSKoVsIsV4wfoZ4RmpLcXfhX3hfEXzBnU1Y9dlerLtVNxcwErW1s24uWDZRm mFFbtxN/dG5fSG3EJkpaoBysuOL14PBQmN02FoSzIWWdkTwqEBkzgLPIN0wy+z/VIgTu FLaQ== ARC-Message-Signature: i=2; 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 :dkim-signature; bh=Azo9u6vmwQjmSBLUFi8/jPp/M7Ky8iFJDRjtNAbVVcU=; b=LaprAxGrxUZ9BzMJnRYN95RBdGOBq27yteeSCD9hxLT5hCgY0yH4RUeboypd++FT9m OnUWucP0k79QSHFDs4DpzsV6G343RGvg2/2ijgiHIBLWUSVueeSH8tF08bOQ+133eKTp NHLQTZ6dnyMU/H2qD5BoWH80GPYASEEbHK55E5SrMgM6QufC6VONhyYV7cc+Qk+V4CBH UG062dZlqFsWzl26mMZ8ag6iNSe8YNC+7xntlPkSOyYmayXVnAHEUAo8aAh+Vsf5s5/B +xHm/v4fB0neX8NR2vJ0tCaG+rP5y9M1D1NyIR56U/P6n2Ic2BTi0aOlF9Cr/1LyoDG1 0XRw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@stgolabs.net header.s=dreamhost header.b=fdlc1Hni; arc=pass (i=1); 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt15-20020a170907728f00b0077f4a46a179si1405728ejc.454.2022.10.12.11.15.24; Wed, 12 Oct 2022 11:16:14 -0700 (PDT) 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=@stgolabs.net header.s=dreamhost header.b=fdlc1Hni; arc=pass (i=1); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229480AbiJLSBu (ORCPT + 99 others); Wed, 12 Oct 2022 14:01:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbiJLSBs (ORCPT ); Wed, 12 Oct 2022 14:01:48 -0400 Received: from beige.elm.relay.mailchannels.net (beige.elm.relay.mailchannels.net [23.83.212.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9BC1FBCF6; Wed, 12 Oct 2022 11:01:43 -0700 (PDT) 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 3CAFF5C0D08; Wed, 12 Oct 2022 18:01:41 +0000 (UTC) Received: from pdx1-sub0-mail-a274.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 802BF5C0E3F; Wed, 12 Oct 2022 18:01:40 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1665597700; a=rsa-sha256; cv=none; b=0lst7vhA9KXl0BlodcmFdXLLZnM+x1RONigwbyhU8YAfOubeu4FyF7EFXcVs3B2HU5EIk7 G63URJOktCMk82zgBGpvIk6oRHbXtWkrDGdDPlQMYVBsxmFji7rMBZ/T4XYteX21PR8I9J xYqi/wrX5NZvAvm/ioWYMHLMO8jqONyf2X8RgXD4qulxWyQKn5TCSugCFR/zkXB0YxebBw IwtZZc/MpEmlbzCg8aHvla+utDKFBf9J8thfYg/HcQL5MAJzDMceASdJZiiloY+39jhSFK ljisgF2iA2XitA5NBb2ZGwhDnlMC7g3gD/G6qjBjdVv3bCD6NNcYfqfasfGNPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1665597700; 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=Azo9u6vmwQjmSBLUFi8/jPp/M7Ky8iFJDRjtNAbVVcU=; b=N2iY9VJE9bgfsoS0d8LUQQ0OumugEGE8p3ovQ31isgCcfcs882Sd5J4mGvTR/Bw1kEb5Dl a4IIdZ+wT3I00iaQPbBUIKTje2ZsXb99B2rlMynnD7uwWzAhglYDZGTfZJylarKbs6IwpM bV47iU7JbBWCOt+avco15FVa8NvjxzuXjWxGBq3w7SWso3rSkvYIn7veF9eTmx8Sn6v5GB zTDXw5w/Z2gpWvSGVb+J6uPYufrpBU9giKktlrlC/uiDNW+RJzMI481AbA6CnlQVBUwOic HyZU1KzPSkLBKlwIl4nbROc3WJt1Zwl89Sa+Tqh/BQtvZg1psIa8Qf7jmsG/vA== ARC-Authentication-Results: i=1; rspamd-7c485dd8cf-gbptx; 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-Shade-Occur: 1123a4d62971cc82_1665597700946_3907678197 X-MC-Loop-Signature: 1665597700946:1268412590 X-MC-Ingress-Time: 1665597700946 Received: from pdx1-sub0-mail-a274.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.126.129.213 (trex/6.7.1); Wed, 12 Oct 2022 18:01:40 +0000 Received: from offworld (ip72-199-50-187.sd.sd.cox.net [72.199.50.187]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dave@stgolabs.net) by pdx1-sub0-mail-a274.dreamhost.com (Postfix) with ESMTPSA id 4MngSz4SgDz2l; Wed, 12 Oct 2022 11:01:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stgolabs.net; s=dreamhost; t=1665597700; bh=Azo9u6vmwQjmSBLUFi8/jPp/M7Ky8iFJDRjtNAbVVcU=; h=Date:From:To:Cc:Subject:Content-Type; b=fdlc1Hni/YpMgQn4bNby6ioIjqrq6tUchl1LgX/qM7tuvwy2qTsNF3erQkYrh5iD5 NkYXWGbgK0saY4jqyAguyXEh58wUBH7CcIMwJbovKqQDxuuUlTmtVZi7wDCVJBRxSD 2uttD+J8P8cSk3HgSAV4JWSrdRDkN56pRsxRMlXeompyVVMoXWIHe7Jptb1YbE4ho7 mkFc9so21D/hdUKjneaEe4QoG9lExH2i4PxDuyQDSGeMzydddjT9cXnVTtT4OmkBsh SsweFUIvpwSx6EZpaRSrpAsfW4WDjXssBiiz6V3P8xPPZY6dbDdjNXlHVPJCQIrVWt DM+KOy60hxutQ== Date: Wed, 12 Oct 2022 11:01:36 -0700 From: Davidlohr Bueso To: ira.weiny@intel.com Cc: Dan Williams , Alison Schofield , Vishal Verma , Ben Widawsky , Steven Rostedt , Jonathan Cameron , linux-kernel@vger.kernel.org, linux-cxl@vger.kernel.org Subject: Re: [RFC V2 PATCH 11/11] cxl/mem: Wire up event interrupts Message-ID: <20221012180136.tc3ryjumquvnaqk2@offworld> References: <20221010224131.1866246-1-ira.weiny@intel.com> <20221010224131.1866246-12-ira.weiny@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20221010224131.1866246-12-ira.weiny@intel.com> User-Agent: NeoMutt/20220429 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 Mon, 10 Oct 2022, ira.weiny@intel.com wrote: >From: Ira Weiny > >CXL device events are signaled via interrupts. Each event log may have >a different interrupt message number. These message numbers are >reported in the Get Event Interrupt Policy mailbox command. > >Create an infrastructure to query the max vectors required for the CXL >device. Add event interrupt information that infrastructure. Set up a >handler for each event log. > >Davidlohr suggested the generic vector code. So this should be a separate patch, and out of the event series altogether. There are a number of interested parties for irq support, and imo the generic vector stuff should be a first dependency to all of them. I've sent out a patch with some updates you did. I also kept the whole table populated with nil callbacks as I believe this documents the TODO nicely. Thanks, Davidlohr