From patchwork Wed Mar 28 15:53:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 132534 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp640568ljb; Wed, 28 Mar 2018 08:53:55 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+m4ZwBWOWD5ekjvS2uJqNCXhc0YmsSE7qWysUOzJRYgOFAyJ0SN2hJ/f+SwI8R8ms8X57K X-Received: by 2002:a17:902:b2c4:: with SMTP id x4-v6mr4425755plw.83.1522252434947; Wed, 28 Mar 2018 08:53:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522252434; cv=none; d=google.com; s=arc-20160816; b=CjZQcJp2uZ+celziaK0XnCxs91HSuriYY4+6NUQzB0Gq8DIpK7EcTMotGB/10g0HUM GOex5ykmSR3u8OjjFsbmBiwoSqVlURKhUtqmQihd+/+lQamVYm4MHW0K9XcxVcMBgx3t mHlKfQMj0z4XYVFtdBPYOmdK8IYx+zDrUsW8iNKPUFlCDn9tyJZQkCZnonmOTzBKkESK tF/iHcuPHYmEKISBO8ocAeFlwMpLVhFG3a2TrhVyjip0I7Rbku7z9+dpoc4x0pbTEaBE Q9we3UsFEMK0dIsfk3eAVSGAfGKz82qcEqzC04RikKkS/iINxTxlV5pBM2AuVSLWtOlc JoiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=t0+gsv0FW3uU0kGvdAU1UUkmn7ogvFH/JqqExXatc8U=; b=xPsG3jm8UXEcnoGUA+xpI7IxgrKLqn1sUtlyRTkBdmvcRSPN3Py+QC7XJG6Sxap4wH Gi8kwFRbdKOzsz/oOZM40gsymLeJOqrBfaCiM9NQTJKwdPRZvd91S/HkH7y7D0uDbaJp Sl5qKBlMJB9MaDWxdyoNlqTW4p7RUdnybeYj4kVBtg5dkDfDPg4s6NivwmCHC8ukvszk 1MSy0xZeokrpEV6U8FxXtRQKbZSM9qY64J+aDo6EzuB7WBPUDiRNOPFoOHt+Wl2nOAwe IKYUh8UriB+VUS35REzdJT1GW0PC5oixCP62L85Wyx0Oj70EMYyNch0J70JShCuusXdB NyCA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i74si2621194pgc.262.2018.03.28.08.53.54; Wed, 28 Mar 2018 08:53:54 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754088AbeC1Pxv (ORCPT + 28 others); Wed, 28 Mar 2018 11:53:51 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:57255 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753816AbeC1Pxu (ORCPT ); Wed, 28 Mar 2018 11:53:50 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0LwZJ9-1eUMmH0iQ3-018O9C; Wed, 28 Mar 2018 17:53:42 +0200 From: Arnd Bergmann To: Oded Gabbay , Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , "David (ChunMing) Zhou" , David Airlie Cc: Arnd Bergmann , Felix Kuehling , dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] amdkfd: always select MMU_NOTIFIER Date: Wed, 28 Mar 2018 17:53:32 +0200 Message-Id: <20180328155340.2253343-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:WgGORML7OESKfZOITBTxHB0FzdjS2ap01YdNwv1mLjXSF6R0gxZ fAcoTQ83zkbpJ8r2VzbcdK0kVlLuOEwYxlkyZuzzy5W1h/ZQMsUrHuicN/eKKyYRVxGwWcL HQgomRE7o7AX1J84mRZrsQrpMk/W38fgNd3hgb6Th86Pfb0Utbw69KRO0vKHplpGfnUxile /YllLKIOv838zWkfBQPWA== X-UI-Out-Filterresults: notjunk:1; V01:K0:uI+zreIlG34=:xkm3iT4RWtL4TeEnwT5hap j80egPif2aHKiwuwgcWNvPjsPn6afcMqYLkpw41qAYk6bFkzhxTLQdxl3jw/Lwe50A2gLwN3a 2OxNLPcgmttVpNpMU8STV0hiS0vONDjNa7I/xZeBl33oqZZn2QCRqn+ekgvkcX4ZmRNHJBKZw bEhGaAXRfTew4anI1voGGI/wzEEYDLOWkVTYmZZlffC6ncRFemTb0mOTWc7ekDASY00vWbENJ v/jWQ/jEw0/eGLBcNbP1/3U38lssYC39iR4/tJ8ncXtIhWMr2kCMwBT81ZAkfbA3FwYzBSGzw Jh9anl54u2Xek+AJ9bG85j6ZdoAXzlOrhuDF+BdE7P4Javd0BwQQcCQ04XKUmRDkGcfaFc+yW yf6KG/NaVYpehTsq/G0ilVD7HbcOU6cUTl8VFOcyrktiOJiqn0/Z9Iu7gQ9LAgGIBldZvrZdT ivXwm/+ZK/DcYbFH26gOiyfAAGDcikHtv+AJU7QMEj07VZ93KdvlMB1w8d5nmwU1MOISd/h4U admNpezHvDPDdaivfwCoSq6fR1xQ/TlkdB3iHqjhMDu4TOhLSlNiwqXVNnyv2xP5nFefJc5a5 f22k5nLM8YouyU96gfRCaDfxGYMkkBvux9iauAEY43xRNSPPfzcPTYzL6aEkpVUGmavqDQU+P jl0fmDWHuWogVGfMLUC1W9Rn/VewvRZIUR6tK/Ibfqg7R75gLkSLb7WQq8kjaZyfAOlYUbKU/ /TnbYiXZ/EdV46JCxAN7ST7Y9fwzRg6YTFC/3A== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Building amdkfd without MMU notifiers is broken: In file included from drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c:28: drivers/gpu/drm/amd/amdkfd/kfd_priv.h:584:22: error: field 'mmu_notifier' has incomplete type This adds the missing 'select MMU_NOTIFIER' line to make it build cleanly all the time. Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/amdkfd/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.9.0 Acked-by: Christian König , but I would wait Tested-by: Anders Roxell diff --git a/drivers/gpu/drm/amd/amdkfd/Kconfig b/drivers/gpu/drm/amd/amdkfd/Kconfig index ed2f06c9f346..5a26acb90e19 100644 --- a/drivers/gpu/drm/amd/amdkfd/Kconfig +++ b/drivers/gpu/drm/amd/amdkfd/Kconfig @@ -4,6 +4,7 @@ config HSA_AMD tristate "HSA kernel driver for AMD GPU devices" + select MMU_NOTIFIER depends on DRM_AMDGPU && X86_64 imply AMD_IOMMU_V2 help