Received: by 10.192.165.156 with SMTP id m28csp563487imm; Thu, 19 Apr 2018 03:57:50 -0700 (PDT) X-Google-Smtp-Source: AIpwx48QBwDPTf+4iM2XvkahsOO0EZRU1LAViv9jwZg3J2bB8nSH6rP/w1HxuALS+dJrhPkf4dkD X-Received: by 10.101.80.131 with SMTP id r3mr4720728pgp.284.1524135470710; Thu, 19 Apr 2018 03:57:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524135470; cv=none; d=google.com; s=arc-20160816; b=jWci/7zWzdONJRmrlN152vFHdROze5Xl520XRbEQlGu3SmExwMe5pYizGI6JDlRMf8 A6YIvPrqUdjQeZVjTMKJxqzaZCCvBT/Gfno7mkBUqABgX1f3aTJboY12U8whJP1ah8Ky hMAsUeZlYg7L9Qpdo2KGgqu09AbZNbrdkOxbTJR76itF+cCimDYUPp4X05b8Jo4qsA5q gBddGljjkDZsZXR42Gxqh+Fm1jOve3/IbTJMs6p3lkTEQqTbxS8YG/zbNKUmoFtthFue aHqFrh6T7reLx+Pgpy529ZsH4vm6yay2Drvku/N3Yp7mZdXyIVt/LA1nAV1irYK+7P5G CP3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=XfPPrs/SfUhsGXK4pysaq/gZfhIWPZNiaKCOw0GuvTQ=; b=BjpVrOePPvIF3FFA5TdbNiqgMbb7tu/BxykHjpc3B6yUYBxmS2uXtCVZEnimubQLO4 OD1qauKpbhWypXIo6m/Km5hXO2bUreZEvFYpiKMp2pblHQ7cjQD8sdOk9GcDvauioFk3 w3R2Td5HAeVYRDawfbzTwaOcVrG1aEXAfnxDuFVjoH+1e8nwu7hsHcURIItBFsdKEOph pthgpwcbWczww/bUcGL3UB4mxQIzJ/LBrGo0eqjFfnw4EcQijE+2u1lrSnYZI40CdYwE CT8YQ4VkGFFi8BVzj6Lly5bXGe/Y4UAfDdrSVJYWeoUdwyamJL0HyI/VK7HdGvSqIyVE UgeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H3buFEL2; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y12si2958539pfm.33.2018.04.19.03.57.32; Thu, 19 Apr 2018 03:57:50 -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=@linaro.org header.s=google header.b=H3buFEL2; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752532AbeDSK43 (ORCPT + 99 others); Thu, 19 Apr 2018 06:56:29 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:39428 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752247AbeDSK41 (ORCPT ); Thu, 19 Apr 2018 06:56:27 -0400 Received: by mail-pl0-f68.google.com with SMTP id e7-v6so3022917plt.6 for ; Thu, 19 Apr 2018 03:56:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=XfPPrs/SfUhsGXK4pysaq/gZfhIWPZNiaKCOw0GuvTQ=; b=H3buFEL28DD3Nt/oAqXMiJ1o0L1n7a6OzfQRqvzGk51DIPofAr5zHpbQCMdxlua5Dx fqdqj0CJJmM6tYr6Oh36u3nd9IOoMZ7dvFuPt/LsoQdoNGH154lwQXlQF4Cq84spAyOp bVx2PU8Jd1oCfk7dMLgouT2KXDSXJgaeLSQp4= 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:content-transfer-encoding; bh=XfPPrs/SfUhsGXK4pysaq/gZfhIWPZNiaKCOw0GuvTQ=; b=Aml6xvk36dfsAB2GKCtpNfEULmViX3qsdLU0MMVkeqcPgk10wJeachSTreoUbPK6iL GDK7ska25pNQcXhbYL3LrW/0vtqP6ON9zfc1mpUr/Q0LGrny5cvdb7o1eWYNAMCFLrCR RnnSytGFEbDmJfhrbzv9Nwm0f9sk9ztuthn3yGQszP0rcfHdyTXnBxq9lEX0LUBz100C vRys0R1w8/p+bRq7r/6AuReqPD7i+Rrov2rT9uvS9frJt0IjrajDmx9t35r5lGsLRbZq uRn4da9ySofDpNsMFJMr3+sS98N/NSrMHmg3Z2L7/jupi51AS3Xir2L/ndUUZ0c7B5rW QHHg== X-Gm-Message-State: ALQs6tCWR56FGON3bCDgI1Yq+NtlqsnSQN+Buc40Z+Y1oFWKLgo4X4VN OvrIIM4xgT4ZwOGXvG0Xh0KSQlZV3qydQvnzyJq7gXVgP6s= X-Received: by 2002:a17:902:ac1:: with SMTP id 59-v6mr5691728plp.367.1524135386945; Thu, 19 Apr 2018 03:56:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.174.202 with HTTP; Thu, 19 Apr 2018 03:56:26 -0700 (PDT) In-Reply-To: <664e2827-5237-160b-6ecf-c2da163569e1@amd.com> References: <20180328155340.2253343-1-arnd@arndb.de> <664e2827-5237-160b-6ecf-c2da163569e1@amd.com> From: Anders Roxell Date: Thu, 19 Apr 2018 12:56:26 +0200 Message-ID: Subject: Re: [PATCH] amdkfd: always select MMU_NOTIFIER To: =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: Arnd Bergmann , Oded Gabbay , Alex Deucher , "David (ChunMing) Zhou" , David Airlie , Felix Kuehling , dri-devel , amd-gfx@lists.freedesktop.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28 March 2018 at 18:04, Christian K=C3=B6nig = wrote: > Am 28.03.2018 um 17:53 schrieb Arnd Bergmann: >> >> 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 > > > Acked-by: Christian K=C3=B6nig , but I would wa= it on > what Felix says to that. Tested-by: Anders Roxell Randy sent the same patch [1] and its still required. Cheers, Anders [1] https://patchwork.kernel.org/patch/10340885/ > > >> --- >> drivers/gpu/drm/amd/amdkfd/Kconfig | 1 + >> 1 file changed, 1 insertion(+) >> >> 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 > >