Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2132473/?format=api
{ "id": 2132473, "url": "http://patchwork.ozlabs.org/api/patches/2132473/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/b3abc13e13eb893f98251c2eb11871a85495a635.1756973061.git.massimiliano.pellizzer@canonical.com/", "project": { "id": 15, "url": "http://patchwork.ozlabs.org/api/projects/15/?format=api", "name": "Ubuntu Kernel", "link_name": "ubuntu-kernel", "list_id": "kernel-team.lists.ubuntu.com", "list_email": "kernel-team@lists.ubuntu.com", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<b3abc13e13eb893f98251c2eb11871a85495a635.1756973061.git.massimiliano.pellizzer@canonical.com>", "list_archive_url": null, "date": "2025-09-04T08:11:31", "name": "[SRU,J,06/12] perf vendor events s390: Add cache metrics for z16", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "613226f94bf298a26488f45fc718965bfd5d6df0", "submitter": { "id": 89057, "url": "http://patchwork.ozlabs.org/api/people/89057/?format=api", "name": "Massimiliano Pellizzer", "email": "massimiliano.pellizzer@canonical.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/b3abc13e13eb893f98251c2eb11871a85495a635.1756973061.git.massimiliano.pellizzer@canonical.com/mbox/", "series": [ { "id": 472179, "url": "http://patchwork.ozlabs.org/api/series/472179/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ubuntu-kernel/list/?series=472179", "date": "2025-09-04T08:11:25", "name": "CPU-MF Counters for new IBM Z hardware - perf part (LP: #2103415)", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/472179/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2132473/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2132473/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<kernel-team-bounces@lists.ubuntu.com>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com\n (client-ip=185.125.189.65; helo=lists.ubuntu.com;\n envelope-from=kernel-team-bounces@lists.ubuntu.com;\n receiver=patchwork.ozlabs.org)", "Received": [ "from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4cHXKg4Lxtz1xyS\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 4 Sep 2025 18:13:11 +1000 (AEST)", "from localhost ([127.0.0.1] helo=lists.ubuntu.com)\n\tby lists.ubuntu.com with esmtp (Exim 4.86_2)\n\t(envelope-from <kernel-team-bounces@lists.ubuntu.com>)\n\tid 1uu55c-0001oh-Th; Thu, 04 Sep 2025 08:13:04 +0000", "from smtp-relay-internal-0.internal ([10.131.114.225]\n helo=smtp-relay-internal-0.canonical.com)\n by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.86_2) (envelope-from <massimiliano.pellizzer@canonical.com>)\n id 1uu55Z-0001bu-Bu\n for kernel-team@lists.ubuntu.com; Thu, 04 Sep 2025 08:13:01 +0000", "from mail-ej1-f72.google.com (mail-ej1-f72.google.com\n [209.85.218.72])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id BDEAE3F7BC\n for <kernel-team@lists.ubuntu.com>; Thu, 4 Sep 2025 08:12:59 +0000 (UTC)", "by mail-ej1-f72.google.com with SMTP id\n a640c23a62f3a-b042eb3ac03so53985366b.2\n for <kernel-team@lists.ubuntu.com>; Thu, 04 Sep 2025 01:12:59 -0700 (PDT)", "from framework-canonical.lan\n (net-31-156-181-205.cust.vodafonedsl.it. [31.156.181.205])\n by smtp.gmail.com with ESMTPSA id\n a640c23a62f3a-b041565ca98sm1131743766b.86.2025.09.04.01.12.56\n for <kernel-team@lists.ubuntu.com>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 04 Sep 2025 01:12:57 -0700 (PDT)" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1756973578; x=1757578378;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=GS3PUHrsMNphJqOpuAojCfW3wtNed8v08/zEvsZ4PbU=;\n b=CdVy6r34o+JnIafBPcNOIBkTmlAWTF7DEKKlrgMA1BrFkjlzRCiLOzVU0wbvqZyVML\n q5OOhBU43GDJW/z8a00pnBoUXfQwqo/f2H6XK88r5Jg61gVQXHszejM8AnskdHaK/0nz\n HdJAXCtXofRGS6WbrTsQIKdKxP80ctv7HLy3KSgixPIEGKemsHqtTu8NR5ACTiqUXu1+\n SzgBvO7Qjwz16SDnbclci+dlhVeE/hNvj7HQWkb9XK7daadhN4IesTycu1MHGGwzSAqr\n z0j3PEmTOmw8gG2HjGH42YR51DTopfb/dd4VNALm1P57nTlJGFzm5eW8D3BpHczNIRxE\n gINQ==", "X-Gm-Message-State": "AOJu0Yy+wV6BDRX1uxDFFTN3k5rO0KR9Lq0Lt8B+FZkwtc56bj4Da8w3\n b2ytMXzyWdBmsbwjGw9WJkLmlUEiiBUjVB5BlQ5VuJ5oeHF4QzCSTdfQ20NqhDU0Z8FMFiChFEG\n cDETja9ddGX/bqHu9wROvkisdDcAUD0l/vhc+y2YQSsbXyQdo4msn/3whtnDQN0JBJa1SDktpbV\n 6oTW9db3oObXVKoA==", "X-Gm-Gg": "ASbGncttII/804vvakQxlfQXrYTkneBQ1iQLl2upK5/RplI/RdtvwA2hItQ8uzOQZSf\n kbzD3bVScz7oavJ9j0ByA37BxGwCXbm2kFatVY+jcASqOk0XuBwxwYs7sXiJDNdYLS96iLS3yDq\n cRfFomlNl+Xd4W3boTntXQQTTDwTUZ5zlHh9L7O69SaqFI6Id2KlEbN2MVxr8p15l0NnCkS9bS+\n Ug+QZpoGMGejqXlLmM5FmbgmvI2xDamNwurWiZXh36RzypMJAPh/cwa878MnjMRt1OTdnQzSGaP\n /qFq+xwLkPFEiXiU5tU6VZNwlLtv0V7Tcpg0xOyB7p/MxfL4qKJ1v2Z0Qz6Cuf+r6IN68dO6fH/\n c64UvCtqnrNCBtUBkbswlcQqd2+4FekDZ5MW+v1K82XpI", "X-Received": [ "by 2002:a17:906:6a1a:b0:ae8:4776:fbb1 with SMTP id\n a640c23a62f3a-b01d8a30b9dmr1717399866b.11.1756973577898;\n Thu, 04 Sep 2025 01:12:57 -0700 (PDT)", "by 2002:a17:906:6a1a:b0:ae8:4776:fbb1 with SMTP id\n a640c23a62f3a-b01d8a30b9dmr1717396066b.11.1756973577400;\n Thu, 04 Sep 2025 01:12:57 -0700 (PDT)" ], "X-Google-Smtp-Source": "\n AGHT+IEqiSy5EzAHdjxiWN3duyorjITlahOqpn6GLvS5LL9kE/vTD55mpQBbIgPqA19gsrrS1MFIfw==", "From": "Massimiliano Pellizzer <massimiliano.pellizzer@canonical.com>", "To": "kernel-team@lists.ubuntu.com", "Subject": "[SRU][J][PATCH 06/12] perf vendor events s390: Add cache metrics for\n z16", "Date": "Thu, 4 Sep 2025 10:11:31 +0200", "Message-ID": "\n <b3abc13e13eb893f98251c2eb11871a85495a635.1756973061.git.massimiliano.pellizzer@canonical.com>", "X-Mailer": "git-send-email 2.48.1", "In-Reply-To": "<cover.1756973061.git.massimiliano.pellizzer@canonical.com>", "References": "\n <175697071248.21594.2440727989420834998@framework-canonical.public>\n <cover.1756973061.git.massimiliano.pellizzer@canonical.com>", "MIME-Version": "1.0", "X-BeenThere": "kernel-team@lists.ubuntu.com", "X-Mailman-Version": "2.1.20", "Precedence": "list", "List-Id": "Kernel team discussions <kernel-team.lists.ubuntu.com>", "List-Unsubscribe": "<https://lists.ubuntu.com/mailman/options/kernel-team>,\n <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe>", "List-Archive": "<https://lists.ubuntu.com/archives/kernel-team>", "List-Post": "<mailto:kernel-team@lists.ubuntu.com>", "List-Help": "<mailto:kernel-team-request@lists.ubuntu.com?subject=help>", "List-Subscribe": "<https://lists.ubuntu.com/mailman/listinfo/kernel-team>,\n <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe>", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Errors-To": "kernel-team-bounces@lists.ubuntu.com", "Sender": "\"kernel-team\" <kernel-team-bounces@lists.ubuntu.com>" }, "content": "From: Thomas Richter <tmricht@linux.ibm.com>\n\nBugLink: https://bugs.launchpad.net/bugs/2103415\n\nAdd metrics for s390 z16\n\n- Percentage sourced from Level 2 cache\n- Percentage sourced from Level 3 on same chip cache\n- Percentage sourced from Level 4 Local cache on same book\n- Percentage sourced from Level 4 Remote cache on different book\n- Percentage sourced from memory\n\nFor details about the formulas see this documentation:\nhttps://www.ibm.com/support/pages/system/files/inline-files/CPU%20MF%20Formulas%20including%20z16%20-%20May%202022_1.pdf\n\nOutput after:\n\n # ./perf stat -M l4rp -- dd if=/dev/zero of=/dev/null bs=10M count=10K\n .... dd output deleted\n\n Performance counter stats for 'dd if=/dev/zero of=/dev/null bs=10M count=10K':\n\n 0 IDCW_OFF_DRAWER_CHIP_HIT # 0.00 l4rp\n 431,866 L1I_DIR_WRITES\n 2,395 IDCW_OFF_DRAWER_IV\n 0 ICW_OFF_DRAWER\n 0 IDCW_OFF_DRAWER_DRAWER_HIT\n 1,437 DCW_OFF_DRAWER\n 425,960,793 L1D_DIR_WRITES\n\n 12.165030699 seconds time elapsed\n\n 0.001037000 seconds user\n 12.162140000 seconds sys\n #\n\nSigned-off-by: Thomas Richter <tmricht@linux.ibm.com>\nAcked-by: Ian Rogers <irogers@google.com>\nAcked-By: Sumanth Korikkar <sumanthk@linux.ibm.com>\nCc: Heiko Carstens <hca@linux.ibm.com>\nCc: Sven Schnelle <svens@linux.ibm.com>\nCc: Vasily Gorbik <gor@linux.ibm.com>\nLink: https://lore.kernel.org/r/20230313080201.2440201-1-tmricht@linux.ibm.com\nSigned-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>\n(cherry picked from commit f8a6cea4839bc8c76804b301dbb5522a6cacf6d5)\nSigned-off-by: Massimiliano Pellizzer <massimiliano.pellizzer@canonical.com>\n---\n .../arch/s390/cf_z16/transaction.json | 25 +++++++++++++++++++\n 1 file changed, 25 insertions(+)", "diff": "diff --git a/tools/perf/pmu-events/arch/s390/cf_z16/transaction.json b/tools/perf/pmu-events/arch/s390/cf_z16/transaction.json\nindex 86bf83b4504e..dde0735a7d22 100644\n--- a/tools/perf/pmu-events/arch/s390/cf_z16/transaction.json\n+++ b/tools/perf/pmu-events/arch/s390/cf_z16/transaction.json\n@@ -18,5 +18,30 @@\n \"BriefDescription\": \"Level One Miss per 100 Instructions\",\n \"MetricName\": \"l1mp\",\n \"MetricExpr\": \"((L1I_DIR_WRITES + L1D_DIR_WRITES) / INSTRUCTIONS) * 100\"\n+ },\n+ {\n+ \"BriefDescription\": \"Percentage sourced from Level 2 cache\",\n+ \"MetricName\": \"l2p\",\n+ \"MetricExpr\": \"((DCW_REQ + DCW_REQ_IV + ICW_REQ + ICW_REQ_IV) / (L1I_DIR_WRITES + L1D_DIR_WRITES)) * 100\"\n+ },\n+ {\n+ \"BriefDescription\": \"Percentage sourced from Level 3 on same chip cache\",\n+ \"MetricName\": \"l3p\",\n+ \"MetricExpr\": \"((DCW_REQ_CHIP_HIT + DCW_ON_CHIP + DCW_ON_CHIP_IV + DCW_ON_CHIP_CHIP_HIT + ICW_REQ_CHIP_HIT + ICW_ON_CHIP + ICW_ON_CHIP_IV + ICW_ON_CHIP_CHIP_HIT) / (L1I_DIR_WRITES + L1D_DIR_WRITES)) * 100\"\n+ },\n+ {\n+ \"BriefDescription\": \"Percentage sourced from Level 4 Local cache on same book\",\n+ \"MetricName\": \"l4lp\",\n+ \"MetricExpr\": \"((DCW_REQ_DRAWER_HIT + DCW_ON_CHIP_DRAWER_HIT + DCW_ON_MODULE + DCW_ON_DRAWER + IDCW_ON_MODULE_IV + IDCW_ON_MODULE_CHIP_HIT + IDCW_ON_MODULE_DRAWER_HIT + IDCW_ON_DRAWER_IV + IDCW_ON_DRAWER_CHIP_HIT + IDCW_ON_DRAWER_DRAWER_HIT + ICW_REQ_DRAWER_HIT + ICW_ON_CHIP_DRAWER_HIT + ICW_ON_MODULE + ICW_ON_DRAWER) / (L1I_DIR_WRITES + L1D_DIR_WRITES)) * 100\"\n+ },\n+ {\n+ \"BriefDescription\": \"Percentage sourced from Level 4 Remote cache on different book\",\n+ \"MetricName\": \"l4rp\",\n+ \"MetricExpr\": \"((DCW_OFF_DRAWER + IDCW_OFF_DRAWER_IV + IDCW_OFF_DRAWER_CHIP_HIT + IDCW_OFF_DRAWER_DRAWER_HIT + ICW_OFF_DRAWER) / (L1I_DIR_WRITES + L1D_DIR_WRITES)) * 100\"\n+ },\n+ {\n+ \"BriefDescription\": \"Percentage sourced from memory\",\n+ \"MetricName\": \"memp\",\n+ \"MetricExpr\": \"((DCW_ON_CHIP_MEMORY + DCW_ON_MODULE_MEMORY + DCW_ON_DRAWER_MEMORY + DCW_OFF_DRAWER_MEMORY + ICW_ON_CHIP_MEMORY + ICW_ON_MODULE_MEMORY + ICW_ON_DRAWER_MEMORY + ICW_OFF_DRAWER_MEMORY) / (L1I_DIR_WRITES + L1D_DIR_WRITES)) * 100\"\n }\n ]\n", "prefixes": [ "SRU", "J", "06/12" ] }