Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E14EC636C8 for ; Sun, 18 Jul 2021 18:42:40 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5C9146109E for ; Sun, 18 Jul 2021 18:42:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5C9146109E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3E4538039D; Sun, 18 Jul 2021 20:42:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="WQvo6jgh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 736A1805E7; Sun, 18 Jul 2021 20:42:36 +0200 (CEST) Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EAA358039D for ; Sun, 18 Jul 2021 20:42:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=daniel.schwierzeck@gmail.com Received: by mail-wm1-x32d.google.com with SMTP id q18-20020a1ce9120000b02901f259f3a250so9069530wmc.2 for ; Sun, 18 Jul 2021 11:42:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=+3KsTzs49ILzK/8tDsQ5JBgc0v8zisYb41Pjy9Fc7Go=; b=WQvo6jghJscYpTC7lfyIx1OxoLpwuYH7aNMG75CL5OR4oAAn1ufYIkvCmDpLytRbG6 e3TqKLXhT18VIAyxtjo32Ogc1NM4AopJaLvr4+7cvFoLuP/Z/3Un1Dqfr5fBJLJRPqkB y788FCIbXITGZIxMPBv5CB7ghfTMzY/LIUzNBJEXOl+FrRuD8QDNsjNKTTgdUFSpGlUa IjPc7gix3Z26dK+6d0fXnk3NrEscLTudjoehxcGyLXpdOM3QZQgEky0xACJwN8Axrn3Q 4gdDtVK66KArSob7cyi2Yt++Bq0R7e+BxNKpE0WE8bvIubS9TumeVhK6erbJRGZb3z2U hy6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=+3KsTzs49ILzK/8tDsQ5JBgc0v8zisYb41Pjy9Fc7Go=; b=TBmzN6o1lAVGfJwUaAkRubVQweEpZtXNU1Gzb5RAyFK4cDvOLTSUXjna+Jh6zPjnro 2vD1EwW4w7Vi6HDOypJpocT5wAPP4GFBpgzo2cHOIODWeoWO7g4ZyrENoHYO6h/k2Vgf 2ImpF57FtstH2dUEcf0koNA7STTUxU0X+yBjuTQI1xmFCB8I25m2CuzPuhqe1VQl7m9k 9kJt6sKU0d1z3SJOoY2+fXMKc+/X4FkW6YhVl4Y1VylYlsYuRy7TSa+ldrW5/j3XYL/A 06vssSHNi0zfNwgXYGmtp61Gsc7QMRnz7bTInaX6qxFCkTpPUOV6ITVYCGY5ACH6OGuY a/Qw== X-Gm-Message-State: AOAM533oR+FROd1W3zlenEqkrt4KNoygKTDA9JRq7syp/dKo3NICOy6y r/0GK/OXYfn/Sv/AzuU99jLHjmdZndw= X-Google-Smtp-Source: ABdhPJyDr8IQwJ6gTyxw8dSv0f49PXqd3Aa9SpS1FBbzQD6j/sVLsPApnT/eR57y+zKPfIoG2QfTBQ== X-Received: by 2002:a7b:c762:: with SMTP id x2mr20256333wmk.21.1626633753467; Sun, 18 Jul 2021 11:42:33 -0700 (PDT) Received: from workstation.lan.schwierd.dedyn.io (i5E86073A.versanet.de. [94.134.7.58]) by smtp.googlemail.com with ESMTPSA id n5sm8270080wmd.4.2021.07.18.11.42.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Jul 2021 11:42:32 -0700 (PDT) Message-ID: <9c6183d50628639a20076043abf3c72eeba43123.camel@gmail.com> Subject: Re: [PATCH v2 0/6] Convert MIPS Malta boards to PCI DM From: Daniel Schwierzeck To: u-boot@lists.denx.de Cc: Simon Glass , Tom Rini , Stefan Roese Date: Sun, 18 Jul 2021 20:42:31 +0200 In-Reply-To: <20210715185401.301211-1-daniel.schwierzeck@gmail.com> References: <20210706142222.497569-1-daniel.schwierzeck@gmail.com> <20210715185401.301211-1-daniel.schwierzeck@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Am Donnerstag, den 15.07.2021, 20:53 +0200 schrieb Daniel Schwierzeck: > This series converts the PCI host controller drivers used by MIPS > Malta and the board-specific PCI setup code to PCI driver model. > Because the AMD PCNET driver is already converted to ETH driver > model, simply enable CONFIG_DM_ETH as well. > > A patch in PCI uclass core is currently required for MIPS wanting > to use PCI DM (except Octeon MIPS64) due to CONFIG_SYS_SDRAM_BASE > being used as a virtual address on all MIPS boards. > > The series for now is only tested with Qemu and the GT64120 PCI > controller. The Malta Qemu tests are already covered by U-Boot CI > Support for the MSC01 controller is prepared. The used PCI controller > depends on the plugged core card (Qemu emulates the CoreLV card with > GT64120). > > Dynamic selection of the according PCI DT nodes via > CONFIG_OF_BOARD_FIXUP > is prepared but not yet enabled. This requires fixing of the call > order of > fix_fdt() in board_init_f, otherwise the passed-in rw_fdt_blob > pointer > will point to a read-only NOR flash address. I'll send a separate > RFC patch for this. > > I'll send a cleanup series for removing non-DM code after the merge > windows has closed and the PCI DM conversion deadline has been > enforced. > > Changes in v2: > - add empty line before return statements > - add empty line before return statements > - use dm_pci_clrset_config32() where possible > > Daniel Schwierzeck (6): > dm: pci: add option to map virtual system memory base address > pci: gt64120: convert to driver model > pci: msc01: convert to driver model > MIPS: malta: add DT bindings for PCI host controller > MIPS: malta: add support for PCI driver model > MIPS: malta: enable PCI driver model > > arch/mips/Kconfig | 4 ++ > arch/mips/dts/mti,malta.dts | 28 +++++++++++++ > board/imgtec/malta/malta.c | 80 > ++++++++++++++++++++++++++++++++++++- > drivers/pci/Kconfig | 13 ++++++ > drivers/pci/pci-uclass.c | 9 +++-- > drivers/pci/pci_gt64120.c | 74 +++++++++++++++++++++++++++++++++- > drivers/pci/pci_msc01.c | 72 ++++++++++++++++++++++++++++++++- > 7 files changed, 274 insertions(+), 6 deletions(-) > applied to u-boot-mips -- - Daniel