Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5789155imu; Wed, 26 Dec 2018 09:01:25 -0800 (PST) X-Google-Smtp-Source: ALg8bN5ATAHHke86TYKETa3YXBOQBaDw34dblLQPEwZxIHZvitLCGHJHzKyZdFi2fDMdh15HfONm X-Received: by 2002:a17:902:33c2:: with SMTP id b60mr20453035plc.211.1545843685731; Wed, 26 Dec 2018 09:01:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545843685; cv=none; d=google.com; s=arc-20160816; b=hfXwK3bBkF7Fm/DQ2UA982rnABQAhGei4NGcUgDjEQ6GGnd9M2F6ZF4vDBLMVvV8AJ cMQxu6OF4N2182p+JgWOOLcHamT2UzFk/NJ3R+FNa2f048fscjiauqjQTnTNLU0HnyYv WHfUjjYXh6YtnVyErqdPkQ/ilGiDGl0xP/f7XBtNMnfm+Q/4CXC9fDQbt1U97krlMoa2 wnw1cjC/vvHezcxxZrbhXOJs6dNuK3hoZ1Vu7CvgWVkBjM+kJKmbPQGRfYbo6ZIGXb/7 QZUrLKFDuX+HH3xUt9GyGUjKEF3m55SlSS3bMj1Sy8x5WbLMByLO+uo8Vo5LVJX2HA5/ nhDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=KwMLCwUPmTyjB5Pj1lp5mz4Va0BflBJ0qIj28Vl0AYs=; b=XVbVv/ksJRYmiG4IIZPSwzZuEp9ehteAqnki933GOULPdyXnaDMrQE9/sRuo0/iX6R g7zgR6josA86/cw5oLOgOFXgKp2RMmPTHM8/QXYyF7trMJ+OFWDz34sXXs/M+4iT3R+K OOmU1vRu4gqZKEHRkZL6cfD9tDNUvXcRGyUtfK1FQfoA59wKl9uV6iT/1Kr/PR39bsah DYGggDo9O5XpG9yMXfVTO2IFEc/SJ0zIsLmaoNbPIGyifXTGT0oabIu3zI/42EHAz8j2 D35/mBOlrNK9+RfmgdsbSCX6qHizjd7kSL0B46UihXbQoAzlPl3BMbii5xXAS7ZgwhMK nEXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=F1VZ9JvA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si14686660pfy.29.2018.12.26.09.01.10; Wed, 26 Dec 2018 09:01:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=F1VZ9JvA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727345AbeLZQwv (ORCPT + 99 others); Wed, 26 Dec 2018 11:52:51 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:42480 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726847AbeLZQwv (ORCPT ); Wed, 26 Dec 2018 11:52:51 -0500 Received: by mail-qt1-f195.google.com with SMTP id d19so17740561qtq.9 for ; Wed, 26 Dec 2018 08:52:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=KwMLCwUPmTyjB5Pj1lp5mz4Va0BflBJ0qIj28Vl0AYs=; b=F1VZ9JvABZHl0spaxH2eIKcRy2rGKk48H4bG+bpEEY8FbuHPaFkODM9Q4dOoi/eYi9 6dPfETCJ7pNBpZSMCofZIGKP8I8Mahx3jf/HDWUp2m0UlpBp6+PCWrQQyngSPiA/P8GO 1gYeVvFFg6TFfNEdrBC2NMm3wdT2BGVCBHvNVtt7Fp6HX4iReVMyrAyqC5wVvJorq180 foE6YeRZA51+vND9CEy8xgtW8pwVkRHwmiBokeGDUKJvnMcF1Nhf5ZXMpKWnJ6IaEyPW cCRXiQeCGxJ0Y0CN0i5s9hP15DX0dYl/ntquyGGUN1xxG4OznOk+YToKSWoBNNtTzCzR lX8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=KwMLCwUPmTyjB5Pj1lp5mz4Va0BflBJ0qIj28Vl0AYs=; b=Zq+eDME29HddYAPCPTl25frABUzgq1LgS+D5EbyKrEP7WXvhw8jjiYI1DpM5iLycdr RRW1HdmXdj7vlnRPL6+ouQezIGrpHUGPxkGXfbf0qOtRO9Hi3dpWhHrAXdqzQ/8ZvNHC 9WGk0qBIvNM2OYlqUyfZVotfgix/2Lg0VNLfQ7mnamLiBNTE9TP5Wg3BCylelvLrC2jo 3oOr28X2Oh7xaIVgOTFSUe2sG7GeGiS5n6Ag8okBOx6L0GfPnofaTmRD/YF2JuhPcRQg ANVILY/4npI4EYFxNm3Cg2gyG102YpdjejDJyL5Tp15pTqjzrXP31EKSNjRT88IOo0+s A9VA== X-Gm-Message-State: AJcUukepfyKZ30zWf6jj/LO2vZrEayCIf5FqgQjET5VbMwQZx3NiSTTy mSGgK2SDwer7eolDwGmjd7ceZw== X-Received: by 2002:a0c:b0db:: with SMTP id p27mr19603568qvc.73.1545843169671; Wed, 26 Dec 2018 08:52:49 -0800 (PST) Received: from localhost ([2601:182:c980:96c:8dd:4488:90b1:59d1]) by smtp.gmail.com with ESMTPSA id v22sm13500839qkl.27.2018.12.26.08.52.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Dec 2018 08:52:48 -0800 (PST) Date: Wed, 26 Dec 2018 08:52:48 -0800 (PST) X-Google-Original-Date: Wed, 26 Dec 2018 08:31:47 PST (-0800) Subject: Re: [PATCH] RISC-V: defconfig: Enable Generic PCIE by default In-Reply-To: CC: Alistair Francis , Paul Walmsley , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: Paul Walmsley Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 21 Dec 2018 11:27:39 PST (-0800), Paul Walmsley wrote: > > On Fri, 21 Dec 2018, Alistair Francis wrote: > >> When the MicroSemi driver does eventually go upstream this will >> probably have to be discussed though as either the config or device >> tree will need to be edited to ensure only one PCIe device is present. > > The right way to do that is to have two separate DT files: one for the > HiFive-U board alone; the other for the HiFive-U plus the expansion board > combo. There shouldn't be any problems with keeping both drivers enabled > in the defconfig. We actually need at least three: * One for the HiFive Unleashed * One for the HiFive Unleashed, when attached to the Micro Semi expansion board. * One for the HiFive Unleashed, when attached to a VC707. We may end up needing additional device trees for the newer Xilinx boards, depending on if it's possible to probe for that 32-bit DMA limit on the VC707 or not. Then, of course, we'll need an image-specific device tree whenever we put an accelerator on the FPGA. Ideally we'd have a discoverable bus, but that's going to be a bit of a way out. For now we'll have to get by with different device trees, but that should get significantly easier when we get a proper bootloader working.