Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1197977pxv; Fri, 23 Jul 2021 02:19:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytbVSMnu8NFROfHBX3JMc0hTv8tFjEwtUy+jVBoLzl3cRGhoTruUfT/Bv/g8N7ysbAf0vK X-Received: by 2002:a6b:7619:: with SMTP id g25mr3182383iom.151.1627031974585; Fri, 23 Jul 2021 02:19:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627031974; cv=none; d=google.com; s=arc-20160816; b=i0ZKvXL+PSqrZXws0PsarMu6I1N/Nfpbg2hmQQUGiOkrjGxzrfQptkRJx4AG12BrqA xUAnej8awEe/uKLq1zv9icQvPOBgSPuKqd/JVDAO4j9yvdjcof9UFSFJiCeihhFqd42Q U+RX/pyAuefvdPu2Fml6sZBYZZ/KEulJI2nw54abFA1yqBRqIqg4HS8nv7RDET47hCVr UULCSxagY4TbpbpGxmcdymE7DWGrwOnsRqaTfquy7XM648SExDIkHRG8dz+RpSh1uhce hZQYONoaHCYsAqxk6DPzIMG2S5W64YyezMYGJfeL34CINgwykpNEp1er1U1S9ib/RnQd +mLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=JtK3F4ur0xXfBHq8xF2md1hvbLFHPIXsScOT7FC0TmA=; b=v/UkdvJTIVn8nl8hVOYhkjpkRNgkvBAR1TItjGgtsgqTHK/zULFRFDJwQoD4hT2Kjf d4YZBLaygaRvKe2gzmxohrel7Oe2jG5tAZfSmtshLridsmzlR0KpLP/nfx02xJUj+LIL +ag+nNbXoRJPWmsffyVyaDu9GP2nlXL/9O23vBmdJ5azhxa6xMt/8IBSQLGNda7FPwSp hBOi7s/mXxIwfLI9++d/IFe+wpFc1MtRxNWmdzB5Gz1Y3aBvJUETZmVTBDY8RFlOcaHl HjWfkX2uJk3TB6RLStM1bgIK59TfLWdMGkzHVWp5FGqeyrlaqszLcrXMWEhrfyAQxXoK q8XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kapsi.fi header.s=20161220 header.b=14617pCI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l17si24510612ilk.49.2021.07.23.02.19.23; Fri, 23 Jul 2021 02:19:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@kapsi.fi header.s=20161220 header.b=14617pCI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233231AbhGWIh2 (ORCPT + 99 others); Fri, 23 Jul 2021 04:37:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232394AbhGWIh1 (ORCPT ); Fri, 23 Jul 2021 04:37:27 -0400 Received: from mail.kapsi.fi (mail.kapsi.fi [IPv6:2001:67c:1be8::25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26D56C061575; Fri, 23 Jul 2021 02:18:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=JtK3F4ur0xXfBHq8xF2md1hvbLFHPIXsScOT7FC0TmA=; b=14617pCIhQkbwxkrZKJUiAaqsS G73+8csRqRRchneM8D5h9nEY7r68bTusQyVhYoXRFixZhkZfQBBps9y+otlHNFp5vyFGEaKXvpqM7 sOd5YDjjvOxGp5SIecm16We7x42yZtpxeql7roGROnm6QP3vJxHIs0L7Qx29LDG+zJDeE1onQu3uh NQznJUuvDO5ZfqDcIidnTtz5/MoWQ+kr4NXSzXpym/Sx0CEc++t8Sy4FoTgop9V3xN+TmprbPcMKW xnJ9512y5lS1uaRiywjTK/5SfqdlrlNFSwW/Xi8Il3szZMNmiBoGvA/RqhIxhXgwKJ7DIevM6EifA heWuK52w==; Received: from dsl-hkibng22-54f986-236.dhcp.inet.fi ([84.249.134.236] helo=[192.168.1.10]) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1m6rJc-0006dv-Rh; Fri, 23 Jul 2021 12:17:56 +0300 Subject: Re: [PATCH] gpu: host1x: select CONFIG_SYNC_FILE To: Arnd Bergmann , Thierry Reding , Mikko Perttunen Cc: Arnd Bergmann , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210723091424.1682193-1-arnd@kernel.org> From: Mikko Perttunen Message-ID: <0f4d1f0a-c313-a60e-6a72-fd4b0c757bc3@kapsi.fi> Date: Fri, 23 Jul 2021 12:17:56 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <20210723091424.1682193-1-arnd@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 84.249.134.236 X-SA-Exim-Mail-From: cyndis@kapsi.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, I think the best fix for this is to just remove that function -- it is currently not used anywhere. I posted a patch to do that, but Thierry is currently on vacation so it hasn't been picked up yet. thanks, Mikko On 7/23/21 12:14 PM, Arnd Bergmann wrote: > From: Arnd Bergmann > > With the addition of the DMA fence, the host1x driver now fails to > build without the sync_file helper: > > arm-linux-gnueabi-ld: drivers/gpu/host1x/fence.o: in function `host1x_fence_create_fd': > fence.c:(.text+0x624): undefined reference to `sync_file_create' > > Fixes: ad0529424def ("gpu: host1x: Add DMA fence implementation") > Signed-off-by: Arnd Bergmann > --- > drivers/gpu/host1x/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/host1x/Kconfig b/drivers/gpu/host1x/Kconfig > index 6dab94adf25e..6f7ea1720a39 100644 > --- a/drivers/gpu/host1x/Kconfig > +++ b/drivers/gpu/host1x/Kconfig > @@ -3,6 +3,7 @@ config TEGRA_HOST1X > tristate "NVIDIA Tegra host1x driver" > depends on ARCH_TEGRA || (ARM && COMPILE_TEST) > select IOMMU_IOVA > + select SYNC_FILE > help > Driver for the NVIDIA Tegra host1x hardware. > >