Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4584929imu; Tue, 15 Jan 2019 02:33:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN7UjkzHgSuJ8Ho0nS+kg+LyGRCut5Py53lmlzjuGmoHoSdLocqb1VYo+IOWTDbczFKwszv0 X-Received: by 2002:a17:902:9a04:: with SMTP id v4mr3447665plp.34.1547548426469; Tue, 15 Jan 2019 02:33:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547548426; cv=none; d=google.com; s=arc-20160816; b=Z6ctItxp7C+llRN3mlVTRbTz8+IX0LWcMXjHOIdIn9WWNslC38hfIF2fHE2tMHL/aB qTqv1WgRffGZZeG19wVLpqcBPUm2tDkTKrMnEmbPxO4oyzXWNUpBqSs7nprW9riTalUu EjNAoM8styQpSQ3yod2wAizqIRCEQj3mKtKap6uqJEJ3wlTw0uiX+oyRFxx2Ep6R5Ch7 qsAFBGwLWRkeg3OHBNxc3TtwM1iTSr99OUbxFkMeLaSiGIhrEiugz4xxpa78pn7D5SRI STCrOC8RKUhQyoCewnPG/RWS0KWknjqYDg2JVXTS3ny4PDeNTkLOo+sNrEi6SGtjfFkk S4zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=xsmyz7XWW2eEaYzv2CZfR3nCl5ExQfnaVoY9bvFRanM=; b=v54Nq0Agobykbmv5JZEx8Nm9l24Pt7xQw3sIwTzdERNLCDgz7DDrOYdIq8ZT9l1k8n L6GyW7I18AlbrYsRxuCdJSgYN8dr0z36D/5sx8BVuSkp7t7YV8+B9V/pk4+dIqBfOGDX GjHhxlcpZDP6eVOmEfEkSiYogMjMpeC3SjZx8hJA+EOUeXkG62nuL3QoH5Jcw1livxO4 kmX1o4tU7hZRjkFt+P/XN7WpxndwW2EEjC4pe2p4pXOj4eVxu5QbLaFpL0p4lg8rgWtX /5Ir6G7rpRxO0+cA8pK413fB7QHONQlQ1VVK4RjPZYETEsBgiVZAVcKYI7nuGLILJlWp oKwA== ARC-Authentication-Results: i=1; mx.google.com; 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 j191si2817267pgd.31.2019.01.15.02.33.30; Tue, 15 Jan 2019 02:33:46 -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; 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 S1728498AbfAOKbH (ORCPT + 99 others); Tue, 15 Jan 2019 05:31:07 -0500 Received: from ozlabs.org ([203.11.71.1]:35775 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727221AbfAOKbG (ORCPT ); Tue, 15 Jan 2019 05:31:06 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 43f67Y0DwVz9s9G; Tue, 15 Jan 2019 21:31:03 +1100 (AEDT) From: Michael Ellerman To: "Jason A. Donenfeld" , benh@kernel.crashing.org, paulus@samba.org, aik@ozlabs.ru, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: "Jason A. Donenfeld" Subject: Re: [PATCH] powerpc: PCI does not require PowerNV In-Reply-To: <20190115004745.9996-1-Jason@zx2c4.com> References: <20190115004745.9996-1-Jason@zx2c4.com> Date: Tue, 15 Jan 2019 21:31:02 +1100 Message-ID: <87d0oyyzyx.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jason, Thanks for the patch. "Jason A. Donenfeld" writes: > Commit 0e759bd75285 moved around the declaration of pnv_npu2_init, but > did not conditionalize it inside of the PCI pSeries driver. This meant > that CONFIG_PCI && CONFIG_PPC_PSERIES && !CONFIG_PPC_POWERNV resulted > in: > > powerpc64le-pc-linux-gnu-ld: arch/powerpc/platforms/pseries/pci.o: in function `pSeries_final_fixup': > pci.c:(.init.text+0x1b0): undefined reference to `pnv_npu2_init' > > This commit therefore wraps that line in an ifdef, so that PCI works > without PowerNV. > > Signed-off-by: Jason A. Donenfeld > Fixes: 0e759bd75285 ("powerpc/powernv/npu: Move OPAL calls away from context manipulation") I think this should actually be: Fixes: 3be2df00e299 ("powerpc/pseries/npu: Enable platform support") Because that's the commit that added the call to pnv_npu2_init() in the pseries code. Prior to that it was only called from powernv code. I'll update the change log to reflect that, unless you disagree. cheers > diff --git a/arch/powerpc/platforms/pseries/pci.c b/arch/powerpc/platforms/pseries/pci.c > index 7725825d887d..37a77e57893e 100644 > --- a/arch/powerpc/platforms/pseries/pci.c > +++ b/arch/powerpc/platforms/pseries/pci.c > @@ -264,7 +264,9 @@ void __init pSeries_final_fixup(void) > if (!of_device_is_compatible(nvdn->parent, > "ibm,power9-npu")) > continue; > +#ifdef CONFIG_PPC_POWERNV > WARN_ON_ONCE(pnv_npu2_init(hose)); > +#endif > break; > } > } > -- > 2.20.1