Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4899618rwd; Sun, 4 Jun 2023 15:55:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6WWsmf2bgb9oXyCulqZ3jIBToJ3/NC184WYqtin5ImWwrMb/KdnNi72qW6BTvspWhNbtbk X-Received: by 2002:a05:6808:2981:b0:39a:7830:f253 with SMTP id ex1-20020a056808298100b0039a7830f253mr5189817oib.1.1685919349736; Sun, 04 Jun 2023 15:55:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685919349; cv=none; d=google.com; s=arc-20160816; b=yx9W/hs0/cXfQhF/CHD7SONR+tl2D0leIvpWWpCKCQn+Cu/qDDUejhCAF+okpAMyo4 jO+pUifp8dIQxnsrmDHwqCJZr9I/LBlrh8TGl0vaYeTfmcsxk7e3DcG8wBJjHXONStRn 0EE/J+Zgg4kB4u7Qy6jSLQSO/zA9vBbLB2/NwV0mvhwde5bD2eVF+iDSDEM3oymEVd6m ncEhT3U1+2Tu7rq7FaY7i8RYfJJx1/+Ej97kqAAvzNt85cvgc8ow7B0U9o7Lea6BHX2u m9/59YwygWLipdu+V96MJfLUx+l8tBgfCGiOMISoK0dBPHt28wEo5ltBSoYlAlHZuLyr UNgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=NUSwhZy1/res6awhW/S7wR5GlEYRXerBv2gBnZJoqgk=; b=U6gGNpMx/TNfAGWCKN/VOYqqBadjywPWwyDTxPzEkQ8fMSovF2df7G69hhIYpB/xkR b4/o7CnDRTHRQm8sJqesdYLbyP7fi2xXTgvNG2nNCFlt7E/xGvT2DvY1K1T0sOD9n7Zk u2W/6jDyj4S/Kc5tKKeWrhgV9PEaczwUxvONlHavgmHZ4GWkIK16cOABMg18BNFXgtne ATCS33b9p0uUBK0nWQnrfeU+Z0e4/VLIAa4DP8sRcNrvPu7LBC2OEKVwOLTt4fxnGkKN lhwkFYs/AfX9FpQgceVmr2mFmUNQYNMGkuuupW6g3Wlc/HT15oyAW+4WxX1JEO4UZ3U9 UUoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1jblcwa+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j13-20020a170903024d00b001b1a2c14a48si4696384plh.141.2023.06.04.15.55.35; Sun, 04 Jun 2023 15:55:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1jblcwa+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231368AbjFDVzj (ORCPT + 99 others); Sun, 4 Jun 2023 17:55:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229680AbjFDVzi (ORCPT ); Sun, 4 Jun 2023 17:55:38 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B183A6; Sun, 4 Jun 2023 14:55:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=NUSwhZy1/res6awhW/S7wR5GlEYRXerBv2gBnZJoqgk=; b=1jblcwa+kVG/RLLzLxxruy/Dha 6cqd8127kzAxwgpGf4/0eSSSt0dHgm2fYBCy22Tva4wwOT2WSwohRSAjJ7H5zOa/fxrK/KbvYVaKP AU1JeZsf5RZVLizwWmoaceBBxeXysK+vH4FTFESUwMkIwZFlHSG9CjlMuaFXCZg9CK1yLPYmI3T6f 6odvsfZoixeHSfS1AT7OsbgC4BP/JkxAuwFrIXCZFxJIct0XPxmhooUnNCZa73+w9Z5WgnsOsL5Cx qJtAAEBAYtZ+YWk3iCKJS5nOsC5UTbJGR+JVEw7mVyCEL/BgGF6ga7KbwH1JGzrfeQb4zWrqRAN0M 2VskWFPQ==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1q5vhF-00DGFK-09; Sun, 04 Jun 2023 21:55:33 +0000 Message-ID: Date: Sun, 4 Jun 2023 14:55:32 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: linux-next: Tree for Jun 2 (arch/powerpc/kernel/iommu.c) Content-Language: en-US To: Timothy Pearson , Michael Ellerman Cc: Stephen Rothwell , Linux Next Mailing List , linux-kernel , linuxppc-dev , Alexey Kardashevskiy References: <20230602140143.0af52cee@canb.auug.org.au> <2d188c87-ef34-3812-7330-a985f756d959@infradead.org> <87h6rogjok.fsf@mail.lhotse> <586983120.3136676.1685851048873.JavaMail.zimbra@raptorengineeringinc.com> From: Randy Dunlap In-Reply-To: <586983120.3136676.1685851048873.JavaMail.zimbra@raptorengineeringinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/3/23 20:57, Timothy Pearson wrote: > > > ----- Original Message ----- >> From: "Michael Ellerman" >> To: "Randy Dunlap" , "Stephen Rothwell" , "Linux Next Mailing List" >> >> Cc: "linux-kernel" , "linuxppc-dev" , "Alexey >> Kardashevskiy" , "Timothy Pearson" >> Sent: Saturday, June 3, 2023 7:22:51 PM >> Subject: Re: linux-next: Tree for Jun 2 (arch/powerpc/kernel/iommu.c) > >> Randy Dunlap writes: >>> On 6/1/23 21:01, Stephen Rothwell wrote: >>>> Hi all, >>>> >>>> Changes since 20230601: >>>> >>> >>> On powerpc64, a randconfig failed with: >>> >>> In file included from ../include/linux/list.h:5, >>> from ../include/linux/preempt.h:11, >>> from ../include/linux/spinlock.h:56, >>> from ../include/linux/mmzone.h:8, >>> from ../include/linux/gfp.h:7, >>> from ../include/linux/slab.h:15, >>> from ../arch/powerpc/kernel/iommu.c:15: >>> ../arch/powerpc/kernel/iommu.c: In function >>> 'spapr_tce_setup_phb_iommus_initcall': >>> ../arch/powerpc/kernel/iommu.c:1391:36: error: 'hose_list' undeclared (first use >>> in this function); did you mean 'zonelist'? >>> 1391 | list_for_each_entry(hose, &hose_list, list_node) { >>> | ^~~~~~~~~ >> ... >> >> hose_list is in pci-common.c which is built when PCI=y. >> >> PSERIES and POWERNV force PCI=y. >> >> But this config has neither: >> >> # CONFIG_PPC_POWERNV is not set >> # CONFIG_PPC_PSERIES is not set >> CONFIG_HAVE_PCI=y >> # CONFIG_PCI is not set >> # CONFIG_COMMON_CLK_RS9_PCIE is not set >> >> >> Probably the spapr_tce code should be wrapped in an #ifdef that is only >> enabled when POWERNV || PSERIES is enabled. >> >> cheers > > Sounds reasonable, I was going to look into this further over the weekend. I can put together a patch for Monday if that works? Works for me. Go for it. Thanks. -- ~Randy