From patchwork Mon Dec 12 07:06:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Weiny X-Patchwork-Id: 2868 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2088701wrr; Sun, 11 Dec 2022 23:07:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf72VN2wvNnQz7NPiSE31a+pXadWnNwV44ioOFl1cExn5l32JbCWR3RTpUFZV2lcymAeb4aT X-Received: by 2002:a05:6a20:8b18:b0:ac:b2a3:e39c with SMTP id l24-20020a056a208b1800b000acb2a3e39cmr16800329pzh.62.1670828846089; Sun, 11 Dec 2022 23:07:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670828846; cv=none; d=google.com; s=arc-20160816; b=OiR3cUJsWSlEwYp0iKnN1FldKeoxSpo9djPia5U92/sYaqIPSDtvxrbsVTYmalCQ3i pnf0lPeokFn7qmiibVrbQma3St/5APyqtRvjSaH6LMNU5Tb0U8XYEDBOxrvO76Io7exS PWCW3z1397iw/vBiUEqKVHwVaVT1yvJELcIxTiqSzquyCtOm8mbXSKYJ3IP6Cb6qndE4 /+CaD9+U+uENIbJwp6NsaylgevIT8zLwu552ksA37UadVH2GnxYyDwevl0RpvqIs8F6P VPclxhVaY+0pNI02BHOX5zFMtlyEyIbFlOFbIn+DnWUEk6lDTCLSHtyi0ydMuZcSDx6c 68wg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=S0qLuZqpnHVyU9qWqUiV2hr1R1UC8Gq4MjSsb7ebc7s=; b=u7etqZQ+fNx6YIubcbHAEkyiCgUU7jzBfm0DQVfFKqv47ZvCKUi8Hahfr2bqq5vPQA Rc73pWGz56uYxZ7I9OeLhTqfusWVA6yknL/GUkUtmSuarqz4ICjAPgBLll1wY9yZnZWY HYg3Qq2TzqdCX4f9mzASHeWYePIEz6U8Cp5yHQLwTc81/h0IxHnKSovfvtS67VLzoqgn zwP77LjxFWCyEKnm8k20muzgxRF2wKrHCIvToD8r7fFHeCWEFaBnKSXNb4+dGSrPXm1w SVojSEGFYAVQSoEq5ezNk2l22ZJEOO+7ORyHN9DlwQA9Y75s6z6H02ZOg6Al460n/tKI aJ+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lxVddOnq; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c20-20020a6566d4000000b004776a50bd21si7115382pgw.579.2022.12.11.23.07.13; Sun, 11 Dec 2022 23:07:26 -0800 (PST) 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=@intel.com header.s=Intel header.b=lxVddOnq; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231444AbiLLHGj (ORCPT + 99 others); Mon, 12 Dec 2022 02:06:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231428AbiLLHGd (ORCPT ); Mon, 12 Dec 2022 02:06:33 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D88D62647; Sun, 11 Dec 2022 23:06:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670828792; x=1702364792; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=nEaXrgycA1rsCThHCMjC1JksaZH43yXXU6+fyhJL6Ls=; b=lxVddOnqErk9TVSDUJ7I+CYjraNOgFbQ4esN0UOq/AnDxFcQkhOTZ/qe TQY8Q1uEesCexERLSdH90Z3wPvEfDyxV1eIoARva4yd8xPSKHQ/841+Q5 Vu+6K0A1B8b6Ih6G9mzQJEZvhD2B9o2780Krn2Bv9uCNdQqpRsuNDosU+ V3eA2wo/tskNTlHiqqEn7+rLx5e+wLb0OPSDvWiClFlMlW0G9haDYvjS/ jQ0b9dCYqwjDCaWn2xg7giiUE2ADbDfeN4Hc6hpauYBmJMvS1aWIiBXk8 nLBhrY1M4nEpUTH/cQAY9tV9G3BmSUdtAVEoceeiCKNMKGkKySrjWpLlt Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10558"; a="317811819" X-IronPort-AV: E=Sophos;i="5.96,237,1665471600"; d="scan'208";a="317811819" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Dec 2022 23:06:30 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10558"; a="641643030" X-IronPort-AV: E=Sophos;i="5.96,237,1665471600"; d="scan'208";a="641643030" Received: from iweiny-mobl.amr.corp.intel.com (HELO localhost) ([10.209.168.6]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Dec 2022 23:06:29 -0800 From: ira.weiny@intel.com To: Dan Williams Cc: Ira Weiny , Bjorn Helgaas , Alison Schofield , Vishal Verma , Davidlohr Bueso , Jonathan Cameron , Dave Jiang , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, linux-cxl@vger.kernel.org Subject: [PATCH V4 0/9] CXL: Process event logs Date: Sun, 11 Dec 2022 23:06:18 -0800 Message-Id: <20221212070627.1372402-1-ira.weiny@intel.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751991027610688346?= X-GMAIL-MSGID: =?utf-8?q?1751991027610688346?= From: Ira Weiny This code has been tested with a newer qemu which allows for more events to be returned at a time as well an additional QMP event and interrupt injection. Those patches will follow once they have been cleaned up. The series is now in 3 parts: 1) Base functionality including interrupts 2) Tracing specific events (Dynamic Capacity Event Record is defered) 3) cxl-test infrastructure for basic tests Changes from V3 Feedback from Dan Spit out ACPI changes for Bjorn - Link to v3: https://lore.kernel.org/all/20221208052115.800170-1-ira.weiny@intel.com/ Davidlohr Bueso (1): cxl/mem: Wire up event interrupts Ira Weiny (8): PCI/CXL: Export native CXL error reporting control cxl/mem: Read, trace, and clear events on driver load cxl/mem: Trace General Media Event Record cxl/mem: Trace DRAM Event Record cxl/mem: Trace Memory Module Event Record cxl/test: Add generic mock events cxl/test: Add specific events cxl/test: Simulate event log overflow drivers/acpi/pci_root.c | 3 + drivers/cxl/core/mbox.c | 186 +++++++++++++ drivers/cxl/core/trace.h | 479 ++++++++++++++++++++++++++++++++++ drivers/cxl/cxl.h | 16 ++ drivers/cxl/cxlmem.h | 171 ++++++++++++ drivers/cxl/cxlpci.h | 6 + drivers/cxl/pci.c | 236 +++++++++++++++++ drivers/pci/probe.c | 1 + include/linux/pci.h | 1 + tools/testing/cxl/test/Kbuild | 2 +- tools/testing/cxl/test/mem.c | 352 +++++++++++++++++++++++++ 11 files changed, 1452 insertions(+), 1 deletion(-) base-commit: acb704099642bc822ef2aed223a0b8db1f7ea76e