Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4194395rwb; Tue, 20 Sep 2022 10:05:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7q8d14PP0SXHLRzsDevM2vDRl2Rasqjg/CZyFjxneqr4Dd7tXstTxUYbGJCImGgrdcJVCZ X-Received: by 2002:a65:6e0d:0:b0:42d:707c:94ee with SMTP id bd13-20020a656e0d000000b0042d707c94eemr20669382pgb.260.1663693531959; Tue, 20 Sep 2022 10:05:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663693531; cv=none; d=google.com; s=arc-20160816; b=P+C/VuiEx9bsVEKiBu2paPMkZGBlm09/OKQEqOhNuKD/llLCFn3UTO1acNe4ttNnTJ 7WYNu6NUPbL8LoMBE1WEJwcmBKk/12Jo4BIK87zuonJEGWXM8NeWanojziPXrGb/IeYj ahpfd3U0fZe40VMqMFKurjS1+goaSpGtCmcZLpGqeixFsf2+c8lBEMaxOTT86Z/lc+oL kkCJp98a4r84YlsEYYqjd6OXRoq/g1iG5WFGVOgpclegDBlrdES2zaBZVyhsgz+3gFsG 1lb2yHbv8tksGqTmbE68d1GafK1QHYHEn74/1ySV+mQojg14diLXIN+soeNMVFeF+5+x 1yVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=t+ckINJ8wohqza8ptCAs+9tVuuWws/b67m2PJSkHO5c=; b=nK+6DW401DQ2Kw1sEqw2j5xZDvtw8WWwHt2jRPT3729sU0K6ttWdjOMfyjRl9RzpsB 1nAt6ZC/ls8CyE2/w0sEZTioOpxuZT+3dVYXPD0Q45ebu2M/Sg/ejxnyaBjZPU7QTKw6 LY4bnGKcspkGa7YwLwRnLe/ZMtr95fHl7RDhHcejVJseH0icoepqv++zd59ZUr7HgCZk 0ejRJ2Xe3YlvAlG9NAb/rKJwwXuFKdT1YU+yVJDm7G0LtkXAhNitj8f4GNZO5CuPa1wY huEC9RyylXFN+8c1s+cxSDTfxSlRsCKWMtp31E3WuJ1WIfsJ4MSHdE7fX86h7Wh0qtqy jDPw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q21-20020a056a00085500b005363fa9e126si185185pfk.358.2022.09.20.10.05.16; Tue, 20 Sep 2022 10:05:31 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231496AbiITQUk (ORCPT + 99 others); Tue, 20 Sep 2022 12:20:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230182AbiITQUT (ORCPT ); Tue, 20 Sep 2022 12:20:19 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 804316D9DE; Tue, 20 Sep 2022 09:17:52 -0700 (PDT) Received: from fraeml740-chm.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4MX6B70Dssz67hlj; Wed, 21 Sep 2022 00:16:47 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (7.191.163.240) by fraeml740-chm.china.huawei.com (10.206.15.221) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 20 Sep 2022 18:17:49 +0200 Received: from localhost (10.202.226.42) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 20 Sep 2022 17:17:49 +0100 Date: Tue, 20 Sep 2022 17:17:48 +0100 From: Jonathan Cameron To: Ira Weiny CC: Dan Williams , Alison Schofield , Vishal Verma , "Ben Widawsky" , Steven Rostedt , Davidlohr Bueso , , Subject: Re: [RFC PATCH 7/9] cxl/test: Add generic mock events Message-ID: <20220920171748.00001260@huawei.com> In-Reply-To: References: <20220813053243.757363-1-ira.weiny@intel.com> <20220813053243.757363-8-ira.weiny@intel.com> <20220825123119.00000705@huawei.com> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.29; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.42] X-ClientProxiedBy: lhrpeml500001.china.huawei.com (7.191.163.213) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 Thu, 15 Sep 2022 11:53:29 -0700 Ira Weiny wrote: > On Thu, Aug 25, 2022 at 12:31:19PM +0100, Jonathan Cameron wrote: > > On Fri, 12 Aug 2022 22:32:41 -0700 > > ira.weiny@intel.com wrote: > > > > > From: Ira Weiny > > > > > > Facilitate testing basic Get/Clear Event functionality by creating > > > multiple logs and generic events with made up UUID's. > > > > > > Data is completely made up with data patterns which should be easy to > > > spot in trace output. > > Hi Ira, > > > > I'm tempted to hack the QEMU emulation for this in with appropriately > > complex interface to inject all the record types... > > Every time I look at the QEMU code it makes my head spin. :-( You get used to it ;)` > > I really thought about adding some support there. And I think for irq's it may > work better? But after your talk today I did a quick search to see what it > would take to do irqs in QEMU and got even more confused. :-( Copy an example - though we haven't upstreamed any yet... Either... https://gitlab.com/jic23/qemu/-/commit/958fec58582b5cc910d2da4e2b855e134bb2c0c3#3dfd54f69a5f2382ddf5a6c00a52546d8b57316e_0_169 Or the CPMU one. https://lore.kernel.org/all/20220831153336.16165-2-Jonathan.Cameron@huawei.com/ to setup then look for msix_notify in https://lore.kernel.org/all/20220831153336.16165-4-Jonathan.Cameron@huawei.com/ > > > Lots to do there though, so not sure where this fits in my priority list! > > I bet it is higher on mine! ;-) :) > > > > > > > > > Test traces are easy to obtain with a small script such as this: > > > > > > #!/bin/bash -x > > > > > > devices=`find /sys/devices/platform -name cxl_mem*` > > > > > > # Generate fake events if reset is passed in > > > > reset is rather unintuitive naming. > > > > fill_event_queue maybe or something more in that direction? > > Fair enough... Naming is hard and I'm one of the worst. > > I've changed to > > /.../event_fill_queue > /.../event_trigger > > Thoughts? Works for me. .. J