Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29650803rwd; Wed, 5 Jul 2023 15:26:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlFjHWDCPllKsBLsHY7RQQjzQ6JXE6Oq4iSvAf2Knj0L3osC5qtHivt/oSmv9L4FB6pAMcz3 X-Received: by 2002:a05:6a20:7fa0:b0:121:ca90:df01 with SMTP id d32-20020a056a207fa000b00121ca90df01mr179362pzj.40.1688596005385; Wed, 05 Jul 2023 15:26:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688596005; cv=none; d=google.com; s=arc-20160816; b=bw2luh3u5edAUxu1EYeix8cBDh8juYPvRg5m5EULoWh1c77hy6eJ6Bx7+GXhc++wyy mt+kUHOfHMbuKhZmRK/nZ8S7jzE2senNj51BYz0lip7G8i3jcQx1RlnMku3IWrpvYpqJ uJn1FuyZLf8yEDEE3OUPnk2Xn3GhbzH3m+p1cK3/b7UeE1eeVEGBLY8+DJBGaeWMQzOL pkgNh9Q4hl/poMfPXMS/CRhUkVlt5M2rCk8zXxGiWIZpBjy9gN9KQR7FwGahlWMbEAlG kdIEw8EJwdvuLxWvmNSp7SimZA9BTSpAQAylVLB7ViBt8N1/lN6Y4O0KpfQX3Fitdfrg oeUQ== 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 :organization:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=uf4yTkyACY6Sm3/2r7kVA5mnD92Tc8vfFv5C+jQfIjk=; fh=3USHKMxRnxRUgYershagLcES4WxsLwifIea0wK/3z6g=; b=InwX2IqgGrH0WY4hxGuTZov90fDNeNxi9IwravELUBCkO6YvPGpG7KJgNmakhTJwjy OnN8F6pdmS79SMEQgzFMSUtt6YUowckdp2yRY5Va+75rE50yGUBiyYYaMYEPQJHcT81z OSNQiuIB6gaExVT7rvzfeyfUY/NtR1tRhoNGbeu6I2/8QjMPmEflZayxtXCIh73zs5uF cWmLlHzuTEQeOn8kiJz0siS/pFECFqt1s2biHsEJaVg2PtM8C7mzIsRrCoYpH4BLiJpM Xt61NgFLhtjObV7CZNmP+xi2WvDhUmcbyv5ZS08pyZNlDFggobnK/VormJQgWbBvBADV mmSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZoBQUB6L; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o11-20020a056a001bcb00b0066d93ab678asi118062pfw.16.2023.07.05.15.26.31; Wed, 05 Jul 2023 15:26:45 -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=@kernel.org header.s=k20201202 header.b=ZoBQUB6L; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232280AbjGEVxQ (ORCPT + 99 others); Wed, 5 Jul 2023 17:53:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230178AbjGEVxP (ORCPT ); Wed, 5 Jul 2023 17:53:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D0D2199E; Wed, 5 Jul 2023 14:53:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9DC4A615C5; Wed, 5 Jul 2023 21:53:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D19AAC433C7; Wed, 5 Jul 2023 21:53:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688593993; bh=3NpsjahjXhaBkqkTtFPAWiphr/jp7w5/2RAssyMlXws=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ZoBQUB6LU3VB4G/xRvhmaA6J+ToJoZ7QUNWY/FUn0JTgPuTOwpeTmQExYNbIiGwbb OKi4Q9K0bGNaGC4K8Sp0aorFtWVZlH/A1loE7e8ShyJzGeglF3cMt4I3omAwVokCgK khVjb3JorAV6tLMDlHPKIqw/lYyatjwRhT1jMWCdG4bJTWfiOGen1T6wu4F1Hlqxe9 AuEvBBgy6qcYie1Ln0Qrh4Q7jfc+fzmVajKPX9YPdiBwyKQF5d9s6ILRQBs7gYzC/d qDw2iZI5vY8maifGxUHM4FO8nJg0AHxGshluFqJWbNPtMOrxHPpP6vny3U4RX2Ynb5 f4ZZ6MMQLRykQ== Message-ID: Date: Thu, 6 Jul 2023 06:53:10 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH] PCI: rcar-ep: Include linux/pci-epf.h instead of linux/pci-epc.h To: =?UTF-8?Q?Krzysztof_Wilczy=c5=84ski?= , Alistair Francis Cc: Alistair Francis , marek.vasut+renesas@gmail.com, yoshihiro.shimoda.uh@renesas.com, linux-pci@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, lpieralisi@kernel.org, robh@kernel.org, bhelgaas@google.com References: <20230705104824.174396-1-alistair@alistair23.me> <7536d9a3-4738-2bc2-e33e-d93347893865@kernel.org> <20230705114443.GA3555378@rocinante> <20230705131546.GA333066@rocinante> Content-Language: en-US From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <20230705131546.GA333066@rocinante> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 7/5/23 22:15, Krzysztof WilczyƄski wrote: > Hello, > >>>>> pci-epc.h doesn't define the members of the pci_epf_header struct, so >>>>> trying to access them results in errors like this: >>>>> >>>>> error: invalid use of undefined type 'struct pci_epf_header' >>>>> 167 | val = hdr->vendorid; >>>>> >>>>> Instead let's include pci-epf.h which not only defines the >>>>> pci_epf_header but also includes pci-epc.h. >>> >>> [...] >>>> It is odd that the the build bot did not detect this... >>> >>> This is a bit of a surprise to me too, especially since none of the usual >>> bots pick this up, and I can't seem to find such a failure in the nightly >>> CI logs either. >>> >>> Alistair, how did you stumble into this issue? Also, which version or >>> a tree would that be? >> >> I was building the kernel with this defconfig [1] inside OpenEmbedded. >> It was the 6.4-rc7 kernel, specifically this one [2]. >> >> 1: https://github.com/damien-lemoal/buildroot/blob/rockpro64_ep_v23/board/pine64/rockpro64_ep/linux.config >> 2: https://github.com/damien-lemoal/linux/tree/rockpro64_ep_v23 > > Thank you! Much appreciated. > > So, the vanilla kernel does not have headers arranged like this custom tree > that Damien maintains for his own needs, per: > > - https://elixir.bootlin.com/linux/v6.4-rc7/source/include/linux/pci-epc.h > - https://elixir.bootlin.com/linux/v6.4-rc7/source/include/linux/pci-epf.h > > I suppose, there are some changes that break it for you, for example: > > https://github.com/damien-lemoal/linux/commit/c7aa8ddd76a141b975a097532050a76c6a58c436 Arg ! Yes, my bad ! The patches in this tree are a work-in-progress and I am waiting for 6.5-rc1 to rebase everything and re-testing before posting them. This is all tested using the rockchip-ep controller and I did not compile test other controllers. I will make sure to do that before posting :) Apologies for the noise. > > So, I cannot take this patch as it would break vanilla kernel for us. :) > > Try building using vanilla kernel, and see if that helps. > > Krzysztof -- Damien Le Moal Western Digital Research