From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F38BCC48BDF for ; Fri, 18 Jun 2021 15:00:33 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C20AD61260 for ; Fri, 18 Jun 2021 15:00:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C20AD61260 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=canonical.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=iJTWjk//m61n3Sxj2L3HNxMCuuX2GBA6N0PYRJrvCFs=; b=fAYG7gQSjMPkj/HoyFtKgrQAFg M0EkGLMVnvmhtplw238/k/j6QYnwagxKaykkeqtASYuCFmGStK/JTb0o5h9keXN2JqOW+Nj0tEWUI s9QbaLSEzfLyxRzA+YrOd0ApWCATjJMu307SUVjWevLh9EKgo+pBrff32j+45i3fhf8G6Hq0fAGg2 EdkDM5pBu7MGt8bHK4HNV8cL3LXLJhqNg3soD72EjzFYT8p6avyckDmgMt4QxlJZLRQmiDoo3/lfJ PC9kf/AWwT/Lgxslg3EvtOFo2n4g2mMx/Hp6g35KdvARVRML1NXiACEYeaVJgnsi2Vdw9pJUbtlyY FP4uiM0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1luFxn-00Eana-Bo; Fri, 18 Jun 2021 14:59:19 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1luFxS-00Eagl-AV for linux-arm-kernel@lists.infradead.org; Fri, 18 Jun 2021 14:59:00 +0000 Received: from mail-ed1-f70.google.com ([209.85.208.70]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1luFxO-00035x-Vi for linux-arm-kernel@lists.infradead.org; Fri, 18 Jun 2021 14:58:55 +0000 Received: by mail-ed1-f70.google.com with SMTP id f12-20020a056402150cb029038fdcfb6ea2so1988082edw.14 for ; Fri, 18 Jun 2021 07:58:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=5Z/5PL3eBkRebXYWKW+b6SLWewHHkR+6bShBjGdMm8A=; b=mpDHKr0T9M59uOKjgu4xCybdx1HAVuTsxW/LG5dXsNWKfqf3Z+T2spoyj/XRF5UyEF FMz1Nr3EwSY0REH6r9zfqLfCsmXZdGwWwYQ9wBQco3P7IzYewSfGSdh4FE5a8NXOgY4s P1mh/6U5Vzz0OyVrAhU7DuYNsPb6VGeJQSKK1/ul99eCQpy0mu3sZrbRVERrZsrIslfb x5W7RtpJFOSFSbEbiCKLS0Q92MIPqTrD5wfWAa/0VzVyyZ0caU3l8+OCfq0mrvemxKgu K/ZuFuh9Kjko3sDAHjrMWr25/SCsL9HPfwj6JE5p42XOcSj5ZZ/t8gVyLGN29xDaGxkz pBCw== X-Gm-Message-State: AOAM531+qr5K7OiOfLgV8H76MUKNk9+BABGIzsLAa/j3ZcbYdpVKL3Gq r0vmaVdnDeRycJupGUqhPrUHHQAtEhKf7eb29wZ2OU1lP5ntBLb8yGngXLatEclYOn4l0qkX/Vc 4I5MDnp+uFKlKXlp3lKVeZ/MWOAKJCOmA17/Q2CEFbtT8ya7JVQKY X-Received: by 2002:a17:906:6d15:: with SMTP id m21mr4039999ejr.354.1624028334062; Fri, 18 Jun 2021 07:58:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhdeHkJeM0kQFKATM0CZYSFCNfs1lNKO/HazIpoGNSLJO3DNLKfyHeZMWLJvCIEhHZmKBMXQ== X-Received: by 2002:a17:906:6d15:: with SMTP id m21mr4039991ejr.354.1624028333938; Fri, 18 Jun 2021 07:58:53 -0700 (PDT) Received: from [192.168.1.115] (xdsl-188-155-177-222.adslplus.ch. [188.155.177.222]) by smtp.gmail.com with ESMTPSA id eb8sm6653000edb.22.2021.06.18.07.58.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Jun 2021 07:58:53 -0700 (PDT) Subject: Re: [soc:tegra/memory 19/20] aarch64-linux-gnu-ld: Unexpected GOT/PLT entries detected! To: Thierry Reding Cc: kernel test robot , kbuild-all@lists.01.org, clang-built-linux@googlegroups.com, linux-arm-kernel@lists.infradead.org, arm@kernel.org References: <202106171927.ZsjdP41F-lkp@intel.com> From: Krzysztof Kozlowski Message-ID: <80046ee9-76d0-50d5-90bf-6f1260c53075@canonical.com> Date: Fri, 18 Jun 2021 16:58:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210618_075858_421292_24E054E9 X-CRM114-Status: GOOD ( 25.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 18/06/2021 16:57, Thierry Reding wrote: > On Thu, Jun 17, 2021 at 04:22:56PM +0200, Krzysztof Kozlowski wrote: >> On 17/06/2021 13:54, kernel test robot wrote: >>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git tegra/memory >>> head: 2c1bc371268862a991a6498e1dddc8971b9076b8 >>> commit: 8eb68595475ac5fcaaa3718a173283df48cb4ef1 [19/20] iommu/arm-smmu: tegra: Implement SID override programming >>> config: arm64-randconfig-r016-20210617 (attached as .config) >>> compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401) >>> reproduce (this is a W=1 build): >>> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross >>> chmod +x ~/bin/make.cross >>> # install arm64 cross compiling tool for clang build >>> # apt-get install binutils-aarch64-linux-gnu >>> # https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git/commit/?id=8eb68595475ac5fcaaa3718a173283df48cb4ef1 >>> git remote add soc https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git >>> git fetch --no-tags soc tegra/memory >>> git checkout 8eb68595475ac5fcaaa3718a173283df48cb4ef1 >>> # save the attached .config to linux build tree >>> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 >>> >>> If you fix the issue, kindly add following tag as appropriate >>> Reported-by: kernel test robot >>> >>> All errors (new ones prefixed by >>): >>> >>>>> aarch64-linux-gnu-ld: Unexpected GOT/PLT entries detected! >>>>> aarch64-linux-gnu-ld: Unexpected run-time procedure linkages detected! >>> aarch64-linux-gnu-ld: drivers/iommu/arm/arm-smmu/arm-smmu-nvidia.o: in function `nvidia_smmu_probe_finalize': >>> arm-smmu-nvidia.c:(.text+0xe0): undefined reference to `tegra_mc_probe_device' >>> >>> --- >>> 0-DAY CI Kernel Test Service, Intel Corporation >>> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org >> >> >> Hi Thierry, >> >> Will you take a look at this failure and prepare a follow-up patch? This >> came already from soc tree. > > I thought I had sent out a reply earlier, but that doesn't seem to have > made it through. > > I sent out a patch earlier that fixes this by adding a stub for > tegra_mc_probe_device() if TEGRA_MC is not set. I think that's a bit > better than adding a dependency on TEGRA_MC from the ARM_SMMU driver > because somebody may want to build the ARM_SMMU driver on non-Tegra > configurations. > > Another alternative would've been to add another Kconfig symbol for the > Tegra ARM SMMU implementation, but that would've been more intrusive and > would've prevented the Tegra code from getting broader build coverage. > > Let me know what you think about the fix and if you want a different > solution than the stub. Stub works for me, thanks! Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel