Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1042070rwb; Tue, 27 Sep 2022 07:44:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5nX59uNVpOJxkJlxl/ySE9vP5JE2lyRG2lMPIOM8T2+0bKEGObl+PikNx5Lv73l0Jwk39B X-Received: by 2002:a17:907:1c12:b0:783:a788:9bbc with SMTP id nc18-20020a1709071c1200b00783a7889bbcmr7516390ejc.497.1664289884207; Tue, 27 Sep 2022 07:44:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664289884; cv=none; d=google.com; s=arc-20160816; b=OkPhb0/Vz0D9anT7Akioaosd2cZ+75V74wF2Oy3VmVCtxibW8kg8JqLUyP2nSXTKA7 3PLCwmRxifTTVqOG4OwDKu7/iVlp0SzurgK7rqXlg+zgAh10q/DoJVSiU/3ijNMXZ16I 6i0i8++2sJj4+3d9dnJZUrntuQmuDoQFYHE3y9jxU5ud1vh8nf1ZN7iX6fImpnuvoVNK 6h/V2xBqzkDwNEHu/Kj9eR8N42gGHHXgy+LnL6t/J2CbtWnpvPQtkFS7kDvdeqTituBW 1dbEP2nR0qqntmYAE/ysjYVWEutIngVfVmDIrKujZ0btqLh23GwqSdeRaC+yzNyn39+x Moww== 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=jVo8d0Xgw4/UUsDzjIYCHQ8qztDUP2z3t6gaTreTfFo=; b=XHpqiFNGk14QgQ++fCkCEPQMCCL8ZIDHPObrONg633zf+ZEZ2L2MgbG2S28/M/4qoK 7F7TAaFk/5z1khb6PvdtuhRm7AkNWxLfj4P69FDGSlqw8GcVPDYEfHxC+UXVJD2+jt10 cWI3tFYJCGkRzHJ+Js0+C9YRoeTFNaMJR+aQ8rqiCHH9IW9qvVgDsiu8qTtA7AKX+r0S BhthYQIRVEToU6wX56vQFvvS0W776HQ08XR3BxmoW2Dy3p1+qux3aYGNn0UO4l7YJq76 YE/YW/aPpySVZj6Vqj5JHLXizjl/CehTOWpkMksba0N2VJycUQiAYeCOFHu69UOrqtN7 D/8A== 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 o9-20020a509b09000000b00457137b2571si1874633edi.346.2022.09.27.07.44.17; Tue, 27 Sep 2022 07:44:44 -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 S232101AbiI0N4d (ORCPT + 99 others); Tue, 27 Sep 2022 09:56:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231906AbiI0N4a (ORCPT ); Tue, 27 Sep 2022 09:56:30 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37ED989CF4; Tue, 27 Sep 2022 06:56:27 -0700 (PDT) Received: from fraeml704-chm.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4McLjX2qPPz68967; Tue, 27 Sep 2022 21:55:12 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (7.191.163.240) by fraeml704-chm.china.huawei.com (10.206.15.53) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2375.31; Tue, 27 Sep 2022 15:56:24 +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, 27 Sep 2022 14:56:24 +0100 Date: Tue, 27 Sep 2022 14:56:23 +0100 From: Jonathan Cameron To: Ira Weiny CC: "Williams, Dan J" , "Schofield, Alison" , "Verma, Vishal L" , Ben Widawsky , Steven Rostedt , Davidlohr Bueso , "linux-kernel@vger.kernel.org" , "linux-cxl@vger.kernel.org" Subject: Re: [RFC PATCH 7/9] cxl/test: Add generic mock events Message-ID: <20220927145623.0000040d@huawei.com> In-Reply-To: References: <20220813053243.757363-1-ira.weiny@intel.com> <20220813053243.757363-8-ira.weiny@intel.com> <20220825123119.00000705@huawei.com> <20220920171748.00001260@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: lhrpeml500004.china.huawei.com (7.191.163.9) 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 Mon, 26 Sep 2022 14:39:52 -0700 Ira Weiny wrote: > On Tue, Sep 20, 2022 at 09:17:48AM -0700, Jonathan Cameron wrote: > > 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'm trying... :-/ > > Question though: > > Is there a call in qemu which is equivalent to cpu_to_leXX()? The > exec/cpu-all.h is having compilation issues for me because the > TARGET_BIG_ENDIAN is not defined (it is defined in a meson generated header). > > So I'm afraid that the tswapXX() calls are not what I'm supposed to use. Is > this true? Are those some sort of internal call? I'm confused. There is cpu_to_le16 in "qemu/bswap.h" I suspect we've played a bit fast and loose with endianness in a few places in current qemu code and should probably check all that sometime. Jonathan > > Ira