Message ID | 20231219213255.604535-1-nabihestefan@google.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9D7DEC41535 for <qemu-devel@archiver.kernel.org>; Tue, 19 Dec 2023 21:34:14 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1rFhiW-0007Ul-Be; Tue, 19 Dec 2023 16:33:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <3FwyCZQwKCmoVIJQPMabMNIVOWWOTM.KWUYMUc-LMdMTVWVOVc.WZO@flex--nabihestefan.bounces.google.com>) id 1rFhiJ-0007Pu-9M for qemu-devel@nongnu.org; Tue, 19 Dec 2023 16:33:19 -0500 Received: from mail-yw1-x114a.google.com ([2607:f8b0:4864:20::114a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <3FwyCZQwKCmoVIJQPMabMNIVOWWOTM.KWUYMUc-LMdMTVWVOVc.WZO@flex--nabihestefan.bounces.google.com>) id 1rFhiC-0003sD-Uf for qemu-devel@nongnu.org; Tue, 19 Dec 2023 16:33:17 -0500 Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-5e526de698cso54252067b3.0 for <qemu-devel@nongnu.org>; Tue, 19 Dec 2023 13:33:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1703021591; x=1703626391; darn=nongnu.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=zoEjLflwDhHYM/fLDGw3tJfFeJRPZlzGNo4WDPgRHZc=; b=xrTPFosK6hIijvhpA0egZj04fuf5wqrTo3kCaVONZkfw9FDOHY1bJzE/G0ZNEaYUXo biSFY7qxYEW6sLD6+sIs3i1hGsWMJ7Os3SAh0AsqhmHrzP5IsOrxIyUNzkyf8xo29ZYk ruYZ7J393h8+FH0I70O0F2r0m0T1bIo3yJwzFy2dwi7BlKNyBSzXjAcG4evl9Sx6FGYv BTSmNnnCsBiGX7nXCPcHfXfzAHrGffUvm3U/ci7o3NNc6sfB+oiAFZNKzHyEpol+qyLK Semyw+OFrR6na7rUHaqWmaabTGIsMYl3hkfikwnTeZCr0l3wisrDBstaDvaHzvjAaifn j64A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703021591; x=1703626391; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=zoEjLflwDhHYM/fLDGw3tJfFeJRPZlzGNo4WDPgRHZc=; b=So+/tGh3kzZI+2fxTn8PswELL4n1dV6MZrNQMLrHxVvqB7wOs4PRjqNemVTND/A+n9 1RAbbibthf9k85VvlWRV6wAa5ix8VGdz01VG4Z4Lkba+DnPBz/kCCypuTPbL1qb2nHtP LmWu3mrAS9n7adKNhjymlN21AbbZfmZgWLFcCBGqy2W65qz+SqWe53X2RNHvqw4wkYL9 bBr1qu4QRlF/Yb6OppC8BseBjlJ29tywirxhl0bka0GpvDk4j/AQfX5aXrs7XQv0L4Ne Bn+ztwOS412nH7ZG64YVjAHbNUxG64BE5LXrT/nty/55bJTsJn6S7ocx3etXN4qjBwjN dXaA== X-Gm-Message-State: AOJu0YykLMIsSzCBWpVNxuVxDkGUv/HK4bCbhwWo/G54eE3LzW6p+Ni7 NDePVAsFdnURDEwoP/fYyxX/5KWHU+BV03pBnM4= X-Google-Smtp-Source: AGHT+IGsQXWujBljqDmJtX0n8bWk/L8RL8GnbivnELmnS9UTZUkGHKDQhvoBoqcx7uyfWuV6tTQ3eMd/v9/WjDe6tXY= X-Received: from nabihestefan.c.googlers.com ([fda3:e722:ac3:cc00:20:ed76:c0a8:2737]) (user=nabihestefan job=sendgmr) by 2002:a05:690c:98a:b0:5e4:35c2:fd37 with SMTP id ce10-20020a05690c098a00b005e435c2fd37mr3297655ywb.6.1703021591239; Tue, 19 Dec 2023 13:33:11 -0800 (PST) Date: Tue, 19 Dec 2023 21:32:45 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog Message-ID: <20231219213255.604535-1-nabihestefan@google.com> Subject: [PATCH v9 00/10] Implementation of NPI Mailbox and GMAC Networking Module From: Nabih Estefan <nabihestefan@google.com> To: peter.maydell@linaro.org Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, kfting@nuvoton.com, wuhaotsh@google.com, jasowang@redhat.com, avi.fishman@nuvoton.com, nabihestefan@google.com, kwliu@nuvoton.com, tomer.maimon@nuvoton.com, Hila.Miranda-Kuzi@nuvoton.com Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::114a; envelope-from=3FwyCZQwKCmoVIJQPMabMNIVOWWOTM.KWUYMUc-LMdMTVWVOVc.WZO@flex--nabihestefan.bounces.google.com; helo=mail-yw1-x114a.google.com X-Spam_score_int: -95 X-Spam_score: -9.6 X-Spam_bar: --------- X-Spam_report: (-9.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_TEMPERROR=0.01, USER_IN_DEF_DKIM_WL=-7.5 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-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <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>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org |
Series |
Implementation of NPI Mailbox and GMAC Networking Module
|
expand
|
From: Nabih Estefan Diaz <nabihestefan@google.com> [Changes since v8] Suggestions and Fixes from Peter Maydell (peter.maydell@linaro.org), also cleaned up changes so nothing is deleted in a later patch that was added in an earlier patch. Patch count decresed by 1 because this cleanup led to one of the patches being irrelevant. [Changes since v7] Fixed patch 4 declaration of new NIC based on comments by Peter Maydell (peter.maydell@linaro.org) [Changes since v6] Remove the Change-Ids from the commit messages. [Changes since v5] Undid remove of some qtests that seem to have been caused by a merge conflict. [Changes since v4] Added Signed-off-by tag and fixed patch 4 commit message as suggested by Peter Maydell (peter.maydell@linaro.org) [Changes since v3] Fixed comments from Hao Wu (wuhaotsh@google.com) [Changes since v2] Fixed bugs related to the RC functionality of the GMAC. Added and squashed patches related to that. [Changes since v1] Fixed some errors in formatting. Fixed a merge error that I didn't see in v1. Removed Nuvoton 8xx references since that is a separate patch set. [Original Cover] Creates NPI Mailbox Module with data verification for read and write (internal and external), wiring to the Nuvoton SoC, and QTests. Also creates the GMAC Networking Module. Implements read and write functionalities with cooresponding descriptors and registers. Also includes QTests for the different functionalities. Hao Wu (5): hw/misc: Add Nuvoton's PCI Mailbox Module hw/arm: Add PCI mailbox module to Nuvoton SoC hw/misc: Add qtest for NPCM7xx PCI Mailbox hw/net: Add NPCMXXX GMAC device hw/arm: Add GMAC devices to NPCM7XX SoC Nabih Estefan Diaz (5): tests/qtest: Creating qtest for GMAC Module include/hw/net: General GMAC Implementation hw/net: GMAC Rx Implementation hw/net: GMAC Tx Implementation tests/qtest: Adding PCS Module test to GMAC Qtest docs/system/arm/nuvoton.rst | 2 + hw/arm/npcm7xx.c | 53 +- hw/misc/meson.build | 1 + hw/misc/npcm7xx_pci_mbox.c | 324 ++++++++++ hw/misc/trace-events | 5 + hw/net/meson.build | 2 +- hw/net/npcm_gmac.c | 943 ++++++++++++++++++++++++++++ hw/net/trace-events | 19 + include/hw/arm/npcm7xx.h | 4 + include/hw/misc/npcm7xx_pci_mbox.h | 81 +++ include/hw/net/npcm_gmac.h | 340 ++++++++++ tests/qtest/meson.build | 2 + tests/qtest/npcm7xx_pci_mbox-test.c | 238 +++++++ tests/qtest/npcm_gmac-test.c | 341 ++++++++++ 14 files changed, 2351 insertions(+), 4 deletions(-) create mode 100644 hw/misc/npcm7xx_pci_mbox.c create mode 100644 hw/net/npcm_gmac.c create mode 100644 include/hw/misc/npcm7xx_pci_mbox.h create mode 100644 include/hw/net/npcm_gmac.h create mode 100644 tests/qtest/npcm7xx_pci_mbox-test.c create mode 100644 tests/qtest/npcm_gmac-test.c