Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2224429/?format=api
{ "id": 2224429, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2224429/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260417120626.77415-1-antonb@tenstorrent.com/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/1.2/projects/14/?format=api", "name": "QEMU Development", "link_name": "qemu-devel", "list_id": "qemu-devel.nongnu.org", "list_email": "qemu-devel@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260417120626.77415-1-antonb@tenstorrent.com>", "list_archive_url": null, "date": "2026-04-17T12:06:26", "name": "target/riscv: rvv: Handle mask/source overlap of vector reduction instructions", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "8da7e218d90d1fbfa6ca6d9f95d47e8010273e95", "submitter": { "id": 89071, "url": "http://patchwork.ozlabs.org/api/1.2/people/89071/?format=api", "name": "Anton Blanchard", "email": "antonb@tenstorrent.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260417120626.77415-1-antonb@tenstorrent.com/mbox/", "series": [ { "id": 500318, "url": "http://patchwork.ozlabs.org/api/1.2/series/500318/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=500318", "date": "2026-04-17T12:06:26", "name": "target/riscv: rvv: Handle mask/source overlap of vector reduction instructions", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/500318/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2224429/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2224429/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=tenstorrent.com header.i=@tenstorrent.com\n header.a=rsa-sha256 header.s=google header.b=TWVNkpxk;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\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 4fxtsk6WNWz1yDF\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 17 Apr 2026 22:07:06 +1000 (AEST)", "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wDhyG-0005Uu-Vs; Fri, 17 Apr 2026 08:06:53 -0400", "from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <antonb@tenstorrent.com>)\n id 1wDhy4-0005SU-Fu\n for qemu-devel@nongnu.org; Fri, 17 Apr 2026 08:06:42 -0400", "from mail-oo1-xc30.google.com ([2607:f8b0:4864:20::c30])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <antonb@tenstorrent.com>)\n id 1wDhy2-0006eV-MQ\n for qemu-devel@nongnu.org; Fri, 17 Apr 2026 08:06:40 -0400", "by mail-oo1-xc30.google.com with SMTP id\n 006d021491bc7-68be75dc734so155827eaf.1\n for <qemu-devel@nongnu.org>; Fri, 17 Apr 2026 05:06:38 -0700 (PDT)", "from ausc-rvsw-c-01-anton.tenstorrent.com ([38.104.49.66])\n by smtp.gmail.com with ESMTPSA id\n 006d021491bc7-69464fe4084sm744062eaf.12.2026.04.17.05.06.34\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 17 Apr 2026 05:06:35 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=tenstorrent.com; s=google; t=1776427597; x=1777032397; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=D7Rc6tnNGYnMJDZo//oFhE/boIZ5aw0YgE9oBeIZlIU=;\n b=TWVNkpxkRsuGqcH8Lk9l1/9T2z13e3eXhTWi8Xzzwh02L0nQGVc1kA7KYVZ9e/2IbG\n oo3bCovJotSsMr4bJD8BvAgLemnDJqwVIBifs5nNarmZEk5vqWUFiI/7UWUiSkjv66f3\n hmwfEgCG+q5q0LDZKE/sj1IpqNQt/8y8koHplW63YtfXbLhX1dwk6t2GQP01huxaiKhn\n 48Sx0FV+rYHID3Pf5uJMd+8xBKsdOnFnGb/fHqaTeeBl11/hUWnieSqf76I5QPhYmgTB\n A2zHqPU38H7fR/3/1cpmwEurdv9C+F26yfbkyb2Mcu5EpduCwzA6/9mdSkxqzoPIT2No\n jZZw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776427597; x=1777032397;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=D7Rc6tnNGYnMJDZo//oFhE/boIZ5aw0YgE9oBeIZlIU=;\n b=RbQLkuooVvalUz1mL1fdG66MJDYYmcAutHrJ8Rkul2Yhx8tHH7XNM/SWaJ9gVKoLbA\n nliuEWg7btlqjGLPcFykFAlea0Yf0xtsMEEz92p2WXR0U5Sgq3V+hIoHintoPDahygMC\n DnwHr6ZoLGYIJx27QQdys5+iKjcfai68IR8yI8NQ8wDs3IWcStOZlZrIa3DnfxowoI4v\n 7GBmLpxaC6qPkBnjY0Dsx+lIgjh62iYik4NRbWWBxtQ7mH1sTFbKEkWvah4ZJ04o31VB\n wGaA0i24rj6r2u2KNnWi4VR6AuC7PwEjuuET5SkNiYHSHvYmJjOf/Ae62kUVWK0r8012\n zaHQ==", "X-Gm-Message-State": "AOJu0YzSNFpYbf87jekib+sxyQVXk3kH8KUubOa/PSD7JBp4USVkK5gn\n ayVN0R+/3xqxA9BeRuooM3VWaU2moU1BcLVsO02FsP8OfqN79i2F+zZHdbXfCSpUwiFpIigl0hu\n hiO+xJPk=", "X-Gm-Gg": "AeBDievy6qqoGe2WOsi5KYWG9Gq9KSyzSF68qHkd6m4bI2iCrNm7DD6A/TBnle2VoD3\n zJmEdpZNZK3g9JCfF8+qKnXz1dFk0rfa9Lllg6MfgiaE16uL3o7Apl8gMK4lG59rkmE1I+vBYNp\n XjtDu2dwicA5fHWfzQxvZrVsFBBnumFIw3gYkxi8VNHgmuNilJ9wj75PxE8nq+CJeE04FqI09ub\n Cbv6BJgfVYhMcdo+iYQuYLENI9Pp9B7PNRoQMvF6720s9lpDlsHpD/HKdIRluIxb20dofz44Gjl\n qaPITHdQG94CKXea1Q/ijTJByfQF1Pkf1U+4yjMe3KTkmtXoMm8qHq35+FgoN6hcozea0r7GQFk\n Tsbhss27xvWSk9JcOXfsz+X/SrE30vaHz+ncmxU/FQlw3q64YLRd3UoGSmT4CBzgvZpvQ17+fBD\n E43PkqSDEcUUXY26F7ETrLUEQI+ZHBHwDvUTxUVi9m97BlHxNdExZp147G55FDhws++6fnfOPBZ\n jCp7g==", "X-Received": "by 2002:a05:6820:3092:b0:692:9c90:8e9a with SMTP id\n 006d021491bc7-69462f2036dmr1185825eaf.45.1776427596686;\n Fri, 17 Apr 2026 05:06:36 -0700 (PDT)", "From": "Anton Blanchard <antonb@tenstorrent.com>", "To": "qemu-devel@nongnu.org,\n\tqemu-riscv@nongnu.org", "Cc": "palmer@dabbelt.com, alistair.francis@wdc.com, liwei1518@gmail.com,\n daniel.barboza@oss.qualcomm.com, zhiwei_liu@linux.alibaba.com,\n liujingqi@lanxincomputing.com, max.chou@sifive.com,\n Anton Blanchard <antonb@tenstorrent.com>", "Subject": "[PATCH] target/riscv: rvv: Handle mask/source overlap of vector\n reduction instructions", "Date": "Fri, 17 Apr 2026 12:06:26 +0000", "Message-Id": "<20260417120626.77415-1-antonb@tenstorrent.com>", "X-Mailer": "git-send-email 2.34.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Received-SPF": "pass client-ip=2607:f8b0:4864:20::c30;\n envelope-from=antonb@tenstorrent.com; helo=mail-oo1-xc30.google.com", "X-Spam_score_int": "-20", "X-Spam_score": "-2.1", "X-Spam_bar": "--", "X-Spam_report": "(-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no", "X-Spam_action": "no action", "X-BeenThere": "qemu-devel@nongnu.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "qemu development <qemu-devel.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>", "List-Post": "<mailto:qemu-devel@nongnu.org>", "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>", "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org" }, "content": "Masked vector reduction instructions must not use v0 as a source register.\nCheck rs1 and rs2 against the mask register when vm=0.\n\nSigned-off-by: Anton Blanchard <antonb@tenstorrent.com>\n---\n target/riscv/insn_trans/trans_rvv.c.inc | 2 ++\n 1 file changed, 2 insertions(+)", "diff": "diff --git a/target/riscv/insn_trans/trans_rvv.c.inc b/target/riscv/insn_trans/trans_rvv.c.inc\nindex d9a0027e0b..6e8d32636e 100644\n--- a/target/riscv/insn_trans/trans_rvv.c.inc\n+++ b/target/riscv/insn_trans/trans_rvv.c.inc\n@@ -3046,6 +3046,8 @@ static bool reduction_check(DisasContext *s, arg_rmrr *a)\n {\n return require_rvv(s) &&\n vext_check_isa_ill(s) &&\n+ require_vm(a->vm, a->rs1) &&\n+ require_vm(a->vm, a->rs2) &&\n vext_check_reduction(s, a->rs2);\n }\n \n", "prefixes": [] }