From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=nv35euM/; spf=pass (domain: linaro.org, ip: 209.85.166.66, mailfrom: ard.biesheuvel@linaro.org) Received: from mail-io1-f66.google.com (mail-io1-f66.google.com [209.85.166.66]) by groups.io with SMTP; Fri, 24 May 2019 06:08:26 -0700 Received: by mail-io1-f66.google.com with SMTP id n5so1543264ioc.7 for ; Fri, 24 May 2019 06:08:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=RoGvjE7wUQkiFAtsbMoRUnmNVanqvDqa3DBMrURvY9E=; b=nv35euM/rJHwEyriR7roNQirN8HSQ8VyNTw6XpgiV3tdmNxknYl9umdrRXY0zSL01b Xima9OKBY21YBK/CZq/tu6H9NhKH62ssbd74pCInQOFNYTS5qXfcq+yx1YZDeZxU2gyw DkYj1Fy6e/YnSNO62+9gCnL3Z/dJVw1vAEB8nKo3rZkxBbgS+wneqHIJFMKu4fO5S2lq DYOBeO7dCVen4uzrF8Tu6YbAifWFT4j+QBEGNP3R6kNS6dkDUFfyLwVDswu8hHcIi1ac GCpS2jr2AVSsgevUW8va1bVHENNBu3RQNiih2LR+sCH89B8Pogq2CRUIENYOVxaBvgCq Pr2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=RoGvjE7wUQkiFAtsbMoRUnmNVanqvDqa3DBMrURvY9E=; b=daJ6oI/AISg4it0EfiB2W9pf+eeb6g9bOrB3QmANk2Nh9JIdJ28vEjV4yQSClapiFR 15PVJo7fQNxo4Q8Gh5ikXtDBS3N1QNdtiHJrxOLpdXJFJ5nxr/pmLiOA1vnUNX1q7qMC ePl9Yb/c7Ezyu+KQgDVvKSszFRTxuvMJcOLS+V7Od0lof9kKnPY3N+1uYlb1OuwcrdHs 0Trd2q2j8vQ9m9vxBKVnQaT50v+tICYjRXHKl53VnxvtRkf094NI3+C8I8db2u8Uirh+ A134yEx9HKrVb47B3Rp75Bv7IGC+1c1uYwK+rJFXz08RQTP37ZHNoRJFGEqIo1hMl4nH XrQw== X-Gm-Message-State: APjAAAW+OkGfMMnD9NgWhhp7t3cNEREfO1te6azMUQ1zOAZqGcuDYU+b xRzHk+PyVMPmELnI35Fu+i/Cs1quTI8Y+Cmvwsjq+g== X-Google-Smtp-Source: APXvYqzHgtC0ZXjDyV0okVxquSKOXUW2cZVIfFMXKzDICUHoVxf4NRsz077huhRTl3tzm8oLYBFbAs4gRhR2lQpZB7I= X-Received: by 2002:a5e:9411:: with SMTP id q17mr22402578ioj.65.1558703305962; Fri, 24 May 2019 06:08:25 -0700 (PDT) MIME-Version: 1.0 References: <1558366047-15994-1-git-send-email-mw@semihalf.com> <1558366047-15994-7-git-send-email-mw@semihalf.com> In-Reply-To: From: "Ard Biesheuvel" Date: Fri, 24 May 2019 15:08:14 +0200 Message-ID: Subject: Re: [edk2-platforms: PATCH v2 06/14] Marvell/Armada7k8k: Add PciExpressLib implementation To: Marcin Wojtas Cc: edk2-devel-groups-io , Leif Lindholm , =?UTF-8?B?SmFuIETEhWJyb8Wb?= , Grzegorz Jaszczyk , Kostya Porotchkin , Jici Gao , Rebecca Cran , Mark Kettenis Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 24 May 2019 at 15:03, Marcin Wojtas wrote: > > pt., 24 maj 2019 o 14:50 Ard Biesheuvel napis= a=C5=82(a): > > > > On Mon, 20 May 2019 at 17:27, Marcin Wojtas wrote: > > > > > > From: Ard Biesheuvel > > > > > > Implement a special version of PciExpressLib that takes the quirky > > > nature of the Synopsys Designware PCIe IP into account. In particular= , > > > we need to ignore config space accesses to all devices on the first > > > bus except device 0, because the broadcast nature of type 0 configura= tion > > > cycles will result in whatever device is in the slot to appear at eac= h > > > of the 32 device positions. > > > > > > > I never bothered to implement multisegment support for this SoC, since > > MacchiatoBin has only one segment wired up, but since your interest is > > in generic support, it might make sense to drop this patch and > > implement PciSegmentLib instead (without depending on any of the other > > library classes that the generic PciExpressLib depends on) > > > > This was (and still is) my plan, but I've been having some serious > time shortages for extra development. In order not to postpone this > support any longer I prefer to get merged, what I have and possibly > rework on top. > > About depending on a generic PciExpressLib - do you mean I can filter > out devices from bus0 in PciSegmentLib? > Yes, please look at Silicon/Socionext/SynQuacer/Library/SynQuacerPciSegment= Lib If you follow the same approach, you no longer need PciLib or PciExpressLib, it is all flattened into PciSegmentLib.