Message ID | 20221212070627.1372402-1-ira.weiny@intel.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> 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 <rfc822;jeantsuru.cumc.mandola@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <dan.j.williams@intel.com> Cc: Ira Weiny <ira.weiny@intel.com>, Bjorn Helgaas <bhelgaas@google.com>, Alison Schofield <alison.schofield@intel.com>, Vishal Verma <vishal.l.verma@intel.com>, Davidlohr Bueso <dave@stgolabs.net>, Jonathan Cameron <Jonathan.Cameron@huawei.com>, Dave Jiang <dave.jiang@intel.com>, 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 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> 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?= |
Series |
CXL: Process event logs
|
|
Message
Ira Weiny
Dec. 12, 2022, 7:06 a.m. UTC
From: Ira Weiny <ira.weiny@intel.com>
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
Comments
On Sun, 11 Dec 2022 23:06:18 -0800 ira.weiny@intel.com wrote: > From: Ira Weiny <ira.weiny@intel.com> > > 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/ Because I'm in a grumpy mood (as my colleagues will attest!)... This is dependent on the patch that moves the trace definitions and that's not upstream yet except in cxl/preview which is optimistic place to use for a base commit. The id isn't the one below either which isn't in either mailine or the current CXL trees. Not that I actually checked the cover letter until it failed to apply (and hence already knew what was missing) but still, please call out dependencies unless they are in the branches Dan has queued up to push. I just want to play with Dave's fix for the RAS errors so having to jump through these other sets. Thanks, Jonathan > > > 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
Jonathan Cameron wrote: > On Sun, 11 Dec 2022 23:06:18 -0800 > ira.weiny@intel.com wrote: > > > From: Ira Weiny <ira.weiny@intel.com> > > > > 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/ > > Because I'm in a grumpy mood (as my colleagues will attest!)... > This is dependent on the patch that moves the trace definitions and > that's not upstream yet except in cxl/preview which is optimistic > place to use for a base commit. The id isn't the one below either which > isn't in either mailine or the current CXL trees. I do not want to commit to a new baseline until after -rc1, so yes this is in a messy period. > Not that I actually checked the cover letter until it failed to apply > (and hence already knew what was missing) but still, please call out > dependencies unless they are in the branches Dan has queued up to push. > > I just want to play with Dave's fix for the RAS errors so having to jump > through these other sets. Yes, that is annoying, apologies. > > Thanks, > > Jonathan > > > > > > > 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 > I think going forward these base-commits need to be something that are reachable on cxl.git. For now I have pushed out a baseline for both Dave and Ira's patches to cxl/preview which will rebase after -rc1 comes out. Just the small matter of needing some acks/reviews on those lead in patches so I can move them to through cxl/pending to cxl/next: http://lore.kernel.org/r/167051869176.436579.9728373544811641087.stgit@dwillia2-xfh.jf.intel.com http://lore.kernel.org/r/20221212070627.1372402-2-ira.weiny@intel.com
On Fri, Dec 16, 2022 at 09:01:13AM -0800, Dan Williams wrote: > Jonathan Cameron wrote: > > On Sun, 11 Dec 2022 23:06:18 -0800 > > ira.weiny@intel.com wrote: > > > > > From: Ira Weiny <ira.weiny@intel.com> > > > > > > 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/ > > > > Because I'm in a grumpy mood (as my colleagues will attest!)... > > This is dependent on the patch that moves the trace definitions and > > that's not upstream yet except in cxl/preview which is optimistic > > place to use for a base commit. The id isn't the one below either which > > isn't in either mailine or the current CXL trees. > > I do not want to commit to a new baseline until after -rc1, so yes this > is in a messy period. > > > Not that I actually checked the cover letter until it failed to apply > > (and hence already knew what was missing) but still, please call out > > dependencies unless they are in the branches Dan has queued up to push. > > > > I just want to play with Dave's fix for the RAS errors so having to jump > > through these other sets. > > Yes, that is annoying, apologies. > > > > > Thanks, > > > > Jonathan > > > > > > > > > > > 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 > > > > I think going forward these base-commits need to be something that are > reachable on cxl.git. Agreed. I thought this was in preview. But even preview is not stable and I should have waited and asked to see this land in next first. Ira > For now I have pushed out a baseline for both Dave > and Ira's patches to cxl/preview which will rebase after -rc1 comes out. > > Just the small matter of needing some acks/reviews on those lead in > patches so I can move them to through cxl/pending to cxl/next: > > http://lore.kernel.org/r/167051869176.436579.9728373544811641087.stgit@dwillia2-xfh.jf.intel.com > http://lore.kernel.org/r/20221212070627.1372402-2-ira.weiny@intel.com
On Fri, 16 Dec 2022 09:01:13 -0800 Dan Williams <dan.j.williams@intel.com> wrote: > Jonathan Cameron wrote: > > On Sun, 11 Dec 2022 23:06:18 -0800 > > ira.weiny@intel.com wrote: > > > > > From: Ira Weiny <ira.weiny@intel.com> > > > > > > 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/ > > > > Because I'm in a grumpy mood (as my colleagues will attest!)... > > This is dependent on the patch that moves the trace definitions and > > that's not upstream yet except in cxl/preview which is optimistic > > place to use for a base commit. The id isn't the one below either which > > isn't in either mailine or the current CXL trees. > > I do not want to commit to a new baseline until after -rc1, so yes this > is in a messy period. Fully understood. I only push trees out as 'testing' for 0-day to hit until I can rebase on rc1. > > > Not that I actually checked the cover letter until it failed to apply > > (and hence already knew what was missing) but still, please call out > > dependencies unless they are in the branches Dan has queued up to push. > > > > I just want to play with Dave's fix for the RAS errors so having to jump > > through these other sets. > > Yes, that is annoying, apologies. Not really a problem I just felt like grumbling :) Have a good weekend. Jonathan > > > > > Thanks, > > > > Jonathan > > > > > > > > > > > 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 > > > > I think going forward these base-commits need to be something that are > reachable on cxl.git. For now I have pushed out a baseline for both Dave > and Ira's patches to cxl/preview which will rebase after -rc1 comes out. > > Just the small matter of needing some acks/reviews on those lead in > patches so I can move them to through cxl/pending to cxl/next: Don't move too fast with Ira's. Some issues coming up in testing.. (admittedly half of them were things where QEMU hadn't kept up with what the kernel code now uses). > > http://lore.kernel.org/r/167051869176.436579.9728373544811641087.stgit@dwillia2-xfh.jf.intel.com > http://lore.kernel.org/r/20221212070627.1372402-2-ira.weiny@intel.com