From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C130C433EF for ; Fri, 5 Nov 2021 23:37:10 +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 46B3E61053 for ; Fri, 5 Nov 2021 23:37:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 46B3E61053 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 21F5B8374A; Sat, 6 Nov 2021 00:37:07 +0100 (CET) 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="PorCX+Df"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 770B08373C; Sat, 6 Nov 2021 00:37:05 +0100 (CET) Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) (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 108858374A for ; Sat, 6 Nov 2021 00:37:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mibodhi@gmail.com Received: by mail-yb1-xb2d.google.com with SMTP id v64so26630796ybi.5 for ; Fri, 05 Nov 2021 16:36:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=f5+PsgRw4MZ7EZ5ibFq9ieHN535n9sYonUo0TpiCemc=; b=PorCX+Df5J/TRF+UUen3MgKuxwQkpKn0L6qcRmjR3YjzOovm/+/uBj68ErEh0uwU0/ qxP//R2Rb73B0NDEm66EC/GmiejS6Y2FIXPoo1vdPAHdwaTXze402RnQSNOCaFEYdb4K k3cgzPUZc+xLMqiRzP+DEaCUKGD+Ge+zwvsB/9ooqnMIzwygjgYan4hYn8qJC6qmI0eu BBGFC5WNHBqbXTytMI+MZYnoRMzGBn9jJH1+2DwlE/GJ9dMBFtFGPxSfVXSPrE+JvE4l ghqi0FuedLg6tL//9uJq8/OzW89OIoE8QvFE8EZQTU53lURfP9WdZNjBceE8S14p/4pv O6ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=f5+PsgRw4MZ7EZ5ibFq9ieHN535n9sYonUo0TpiCemc=; b=lmfOp69/RdqBCCAMRjNngCoaN02AjMef/Yj8NTgMbd5OuvDLBfPjZcoEn4aqThhjkh 4wBFv6BgluvrFB3j/dSo9CMsNVyF9Wync7iNpOn2uwg8LMemKLM3Rvv7xW2gEiMkGD6f FXmPAS9Oh+DGm5fcR6tg7x3Pohu2EmccAFDeqnPSTs40n73QF5156vGo3Xy85PQOs55i uAJxMclRCK4BgVzFmzt3oKm9DLz7QLVF5HVLYgvMFX6yNkFai46wOVNzhphian+TZ8h5 dsm1+7VpyRfzRp8F7YOCIAn8WHSUff8PAk+ZlJLYSxKyH+g5f6GFODjfLuOrubDwiYna UATA== X-Gm-Message-State: AOAM533+aLnaVHoEj2L6Xi9EYK0mPnqKyCBO5OrVSMoBLsE6HCwcXn5Z 1nkbEV4+bErPhpwfetap5+JaAujL+Vaz6TjcLiA= X-Google-Smtp-Source: ABdhPJzUI3jzj3dk3BZxjy+tm9DwPjV/vmFVL1ksZWj8lFiNPFFkJjAQ8rzGNCQudbBCSDei6f5J5a5AE57YyZFkr8k= X-Received: by 2002:a25:ac9:: with SMTP id 192mr67115265ybk.234.1636155418593; Fri, 05 Nov 2021 16:36:58 -0700 (PDT) MIME-Version: 1.0 References: <20211105083828.42khuykdskzk6shn@pali> <20211105101920.kdaadsp2wj5hstj4@pali> <20211105213857.lyfk7ogik3atqsdw@pali> <20211105221511.ii2unxveulvzgqly@pali> In-Reply-To: <20211105221511.ii2unxveulvzgqly@pali> From: Tony Dinh Date: Fri, 5 Nov 2021 16:36:47 -0700 Message-ID: Subject: Re: kwboot: Testing latest kwboot with Kirkwood SoC boards To: =?UTF-8?Q?Pali_Roh=C3=A1r?= Cc: =?UTF-8?B?TWFyZWsgQmVow7pu?= , Stefan Roese , Tom Rini , U-Boot Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 Hi Pali, On Fri, Nov 5, 2021 at 3:15 PM Pali Roh=C3=A1r wrote: > > On Friday 05 November 2021 15:07:17 Tony Dinh wrote: > > > > Also, I have several Kirkwood boards (with various old BootROM > > > > versions) that I can run the kwboot tests on. Will keep you posted. > > > > > > Ok! Do you have some Kirkwood board with PCIe slot? If yes, I would l= ike > > > to see dumps from config space of Kirkwood PCIe Root Port, see: > > > https://lore.kernel.org/u-boot/20211104154921.b6zxjpczj7t6qlct@pali/ > > > > I have these Kirwood boards with PCI: > > - No slot (host bus for USB 3.0): Pogoplug V4 (6192), Zyxel NSA325v2 > > (6282). These 2 boards can be kwboot. > > - Iomega iConnect (6281), with PCIe slot for Wifi card. This board > > does not have kwboot booting support. > > What do you mean that it 'does not have kwboot booting support'? > 88F6281 is also Kirkwood and UART booting with kwboot should work. Most of the Kirkwood boards do have UART booting support. However, in my past experience, some Kirkwood boxes did not work with kwboot booting. It was observed experimentally that certain BootROM versions (depending on the time of manufacturing) on the 88F6281 SoC have problems with UART booting. But we have not proven this to be the real reason. These boards failed UART booting (the behavior is like the UART magic string handshake never occur): Seagate Dockstar (all), Iomega iConnect (all), Sheevaplug (some models probably do work), Seagate GoFlex Net (most boxes work, but a few models don't, and they have a different BootROM version from ones that do work). > > I'll take a look at your link above and get back to you about the > > config space dumps. > > > > By the way, I'm starting to look at the driver/pci/pci_mvebu.c to see > > if it can be made to work with Kirkwood SoCs. I think there are many > > differences in the addresses and memory space. I would appreciate it > > if you have a general assessment whether I can use that driver for > > Kirkwood. > > pci_mvebu.c should work with Kirkwood SoCs and also with all these > 32-bit Marvell SoCs: Orion, Discovery, Kirkwood, Dove, A370, AXP, A375, > A38x and A39x. According to Functional Specifications all these SoCs > have common PCIe register set. That's great to hear! > > If there is any issue with it, I could try to look at it. At the moment, pci_mvebu.c is not included in the build for Kirkwood boards because ./drivers/pci/Kconfig excludes it: config PCI_MVEBU bool "Enable Armada XP/38x PCIe driver" depends on ARCH_MVEBU When I removed the above dependency, the build had errors. Because different soc.h and cpu.h are brought into pci_mvebu.c when ARCH_KIRWOOD is enabled and ARCH_MVEBU is disabled. #include #include Thanks, Tony