Received: by 10.192.165.148 with SMTP id m20csp4445510imm; Tue, 24 Apr 2018 02:55:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx49HaAigeG2xX7jxaZksN9lR2VYsJcLSKBeTgz9BKUxAYw1C7IL7eNkTy+JGPKcb2TxEIPS/ X-Received: by 10.99.109.138 with SMTP id i132mr20111533pgc.314.1524563727459; Tue, 24 Apr 2018 02:55:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524563727; cv=none; d=google.com; s=arc-20160816; b=z5E7JrNb7HGgyZGmi5VXm1PCSimH+rxPvTq22JP1iwNQi5XeR6gv6pSzYsKmF7lNDI 9zF6niQrzi54PaqlpTnrIKqar8oQIvhTdBCtKOx/dxzTStUZPYjiuL6IFD9Q/BhMluui zIMSmnXO3gZMgPMHEoKIP8lG1kDNAkyjm1IYPMCIpaQnmEJB7LmwHIfJZrerUft3G6fA 0YVNbdX9+yPWaeENFoAiiOzoLOFq8pp16cOxw7OllG3I6lWzmKvorjOVrA4t8EN4htR4 Bn2MH830nlZcEOaDpXFvDofUxMagX1gnrgNYjk/wuzQISBjMZk530Gg9Aa4uuBGqDmWv r9JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=O+KQp/2YpxgithZrYy2q3DaicwybQwBEjZCtM/NaFi8=; b=TUIn0ivHACpcUUe6U0MmrSCtFbDiNHwVat2QQYOfragp9ppP0N52EQahMwEaANjnBB 5N6YUafUL8zWcFG8McbdM3ywiiOJC6YK4bsSpgoOa0dlNE2PaUvh6bw1KeJ8vpvvNEVy 1KVwA+BxTVUyNr0sJqoaP61BhvulZKn2ZbFUBGm3Aay6pbKsGkvlIxvau0HkErUs+Y1w o7S3p/PpLJiN7Wh1HSMfSrak3HL47SmqAfLW9fF/+Y0yZ1GjvfOngi05jmvlFKldEMGj ErnoDWrw47APSiXdYYGx6eYszWc/AWjI2hc8qK/vXZzzmviCoRmy9/VVafxO0EgnVG+E 7P1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RtnGdMFr; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g8-v6si3800387pli.75.2018.04.24.02.55.12; Tue, 24 Apr 2018 02:55:27 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RtnGdMFr; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756402AbeDXJw3 (ORCPT + 99 others); Tue, 24 Apr 2018 05:52:29 -0400 Received: from mail-vk0-f65.google.com ([209.85.213.65]:43709 "EHLO mail-vk0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755791AbeDXJw0 (ORCPT ); Tue, 24 Apr 2018 05:52:26 -0400 Received: by mail-vk0-f65.google.com with SMTP id v134so11221503vkd.10; Tue, 24 Apr 2018 02:52:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=O+KQp/2YpxgithZrYy2q3DaicwybQwBEjZCtM/NaFi8=; b=RtnGdMFrib3nkfK86VaTIr8qapPKepEZNUc6NQbURPpHwwUYG0eaypbc2s9UwzDnM5 IRerd4+TwiggBI2nzA3GTiT09uL1xSQo6jGsq3sk6/kMVwcYDqGh0CXw2urtpS/Ak5Y/ yanfdeHZQZTn8R0sUSj7lrZeHr3GkDl4IBmcoZJQ8RAenTIVRoYEUXwPSFju8gByI9iX UDnj+ppOLYT5Za2bJqrSJoDUuzJc1QcyTW2V8fbe7pHWLfJqy2g/+L8+b4FVuZNumyxN /Txusu+sfSdM3VhMPoXk2yvIdtOk0G85KcefBxJY4mVj+uvSljDTJi6xyb1qZ2pnluJa NJRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=O+KQp/2YpxgithZrYy2q3DaicwybQwBEjZCtM/NaFi8=; b=NzoYVFr93vg/uoWuUo6d2/Is+VIoLxT5MaTAGvvPz7TTd8vwBuhkLgGCxKnn5ymW/Z krePH98yaTJTUUHtTOT+FCEdzJa2MlJnZnzlfQTtuLn3VWUJ2qob9FrNZDWv9dNH4wr7 vsLi2An/HfWu8Oy4sLwQXaQIsgplpTbzEU9AaXTky3ro3DoOHg7dZuC7p8ekB7DAcqYv /2VopRMhlV02WMl3IiO5uNft+XZ2TLskl0LCQ7BXJeJtLAmxz8ovfMDyKTyuAuiAJHwO NbuhoZFN5KKF59I8OrrhQrEXkFVTvChGqJR+36lv/6SW7QAo0DzoJ8G9PcogTWDWxHt7 y9Bw== X-Gm-Message-State: ALQs6tC4BL3NgN/YJOKKkvA13BjdaLfcgnhwBx4d6yIHjZ3rYUAMZQiX SixCqMVvwY1uyJr4vlPJ0NrEhs+cL3jDrT9rHjZk8Jdm X-Received: by 10.31.21.208 with SMTP id 199mr16807180vkv.22.1524563546017; Tue, 24 Apr 2018 02:52:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.89.238 with HTTP; Tue, 24 Apr 2018 02:51:55 -0700 (PDT) In-Reply-To: References: <20180414002933.6h3S5%akpm@linux-foundation.org> From: Oded Gabbay Date: Tue, 24 Apr 2018 12:51:55 +0300 Message-ID: Subject: Re: [PATCH] gpu/drm/amd/amdkfd: fix build, select MMU_NOTIFIER To: Anders Roxell Cc: Randy Dunlap , Andrew Morton , Stephen Rothwell , linux-next@vger.kernel.org, Linux Kernel Mailing List , dri-devel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 19, 2018 at 1:46 PM, Anders Roxell wrote: > On 14 April 2018 at 04:49, Randy Dunlap wrote: >> From: Randy Dunlap >> >> When CONFIG_MMU_NOTIFIER is not enabled, struct mmu_notifier has an >> incomplete type definition, which causes build errors. >> >> ../drivers/gpu/drm/amd/amdkfd/kfd_priv.h:607:22: error: field 'mmu_notifier' has incomplete type >> ../include/linux/kernel.h:979:32: error: dereferencing pointer to incomplete type >> ../include/linux/kernel.h:980:18: error: dereferencing pointer to incomplete type >> ../drivers/gpu/drm/amd/amdkfd/kfd_process.c:434:2: error: implicit declaration of function 'mmu_notifier_unregister_no_release' [-Werror=implicit-function-declaration] >> ../drivers/gpu/drm/amd/amdkfd/kfd_process.c:435:2: error: implicit declaration of function 'mmu_notifier_call_srcu' [-Werror=implicit-function-declaration] >> ../drivers/gpu/drm/amd/amdkfd/kfd_process.c:438:21: error: variable 'kfd_process_mmu_notifier_ops' has initializer but incomplete type >> ../drivers/gpu/drm/amd/amdkfd/kfd_process.c:439:2: error: unknown field 'release' specified in initializer >> ../drivers/gpu/drm/amd/amdkfd/kfd_process.c:439:2: warning: excess elements in struct initializer [enabled by default] >> ../drivers/gpu/drm/amd/amdkfd/kfd_process.c:439:2: warning: (near initialization for 'kfd_process_mmu_notifier_ops') [enabled by default] >> ../drivers/gpu/drm/amd/amdkfd/kfd_process.c:534:2: error: implicit declaration of function 'mmu_notifier_register' [-Werror=implicit-function-declaration] >> >> Signed-off-by: Randy Dunlap >> Cc: Oded Gabbay >> Cc: dri-devel@lists.freedesktop.org > > Tested-by: Anders Roxell > >> --- >> From linux-next, not mmotm, but found in mmotm builds. >> >> drivers/gpu/drm/amd/amdkfd/Kconfig | 1 + >> 1 file changed, 1 insertion(+) >> >> --- mmotm-2018-0413-1728.orig/drivers/gpu/drm/amd/amdkfd/Kconfig >> +++ mmotm-2018-0413-1728/drivers/gpu/drm/amd/amdkfd/Kconfig >> @@ -6,5 +6,6 @@ config HSA_AMD >> tristate "HSA kernel driver for AMD GPU devices" >> depends on DRM_AMDGPU && X86_64 >> imply AMD_IOMMU_V2 >> + select MMU_NOTIFIER >> help >> Enable this if you want to use HSA features on AMD GPU devices. >> Thanks, taken to -fixes Oded