Received: by 10.192.165.148 with SMTP id m20csp4445679imm; Tue, 24 Apr 2018 02:55:40 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/JR2OlAd2iTF9JbEX5+rGT4k0MumYyoDLo0FEZFxuSd/hShMkY7/bwfSkdnFq2vrnBbnFF X-Received: by 10.101.91.74 with SMTP id y10mr12372608pgr.243.1524563740162; Tue, 24 Apr 2018 02:55:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524563740; cv=none; d=google.com; s=arc-20160816; b=Wr39kxhOWh97VPA9f6qjvYqSNdsXdB6L8VE1RUeXdJNMHrM/iWrH+EiSSkBWT60Dcu UnvmNE95X4UjrdkBG65WGWWu+LR83VXugrdZh+uClb9rLxOCV9PkSwlN7eSzxwHxkiDN 3bGgsI4rJjaP6S8xEAkvc3f3NgtOrANqd05dLc4ENk5ssK2Yk9V+/olZV/M0NWT1dxbm aqd8jSelVCjcCdtEYmQ2Emzbys11fZmnuLTOmj6Yx9G11zEck0Y2A7qvH6r91GLK7/NX KqperRGREewIQM7BBU9m+mJCKaiQTSgztizx7jeT9nDZloEzrmgFKIB1bmrS3TwONm1n KeCw== 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=tmDjy1aCt8jNb16iy6bvlSFQ6c6AZacrjwtXgTjOKBw=; b=UOtg6xQbEmThnUEbMVei8zJGYy4Mu80sRxleTzzqNuZNZWnBEgfaRUd7nix19v/MPa C/BMNocZRMKKh9P3LhwTo3lpkOs4sQ0RCn3Njq3SOF5WQNNygLQgttv52ML5bX2yLnvc 32HV6OhY+wYB/oV1QI1XFSQ9xgkj0H4svxUEd1Iiw8QFHVvTrNhz26o4CG85vlzwFjHt 6zM9RmmZG9g0XbGE95W3cq6Z6pLlWz+HuFnEu1YZil36BvbCkdBQ6yKgvjAbseFWMU3Q 3hs0XLnZIBLWgxKJOPmgTRHL/cOlLsHACJU60IcIcLGyHiPog2GVZJkoWI/c7+mdbiwO cuoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=O85MNKX+; 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 i12-v6si9989674plk.589.2018.04.24.02.55.25; Tue, 24 Apr 2018 02:55:40 -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=O85MNKX+; 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 S1756694AbeDXJx5 (ORCPT + 99 others); Tue, 24 Apr 2018 05:53:57 -0400 Received: from mail-ua0-f196.google.com ([209.85.217.196]:36514 "EHLO mail-ua0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756286AbeDXJxw (ORCPT ); Tue, 24 Apr 2018 05:53:52 -0400 Received: by mail-ua0-f196.google.com with SMTP id v4so12145748uaj.3 for ; Tue, 24 Apr 2018 02:53:52 -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:content-transfer-encoding; bh=tmDjy1aCt8jNb16iy6bvlSFQ6c6AZacrjwtXgTjOKBw=; b=O85MNKX+QvNk1/TAaWr+xheKa6xaNVYOk1i2FqR8VtktKlFghjmfxHPDYIQqLdsE0b 3czsJYByHEYfuBCQilvjF8Znckn0dLzmdiTBgy6bOzV2Fz5OE49cAw4jjeBWwsLV8Sbn zLAQOA0qYOpVl/w+p2ON5fxz1O5GZpfu7ITuBCw2oGFSBpDzfv9MRDFcrVOSpepQPC5y z7Zs2zjYBNj6U7SHBkepaQ63xDuoXuAr+H655N6M2bHly/YD3ckL31yETotdaDNESTLo 2CefSwD/kCki9YEpXwiPBKnI7KoJmKTxSdeNoLRxUNf6c7GdT4i3F5H/MMPglzdcy/nc TKUQ== 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=tmDjy1aCt8jNb16iy6bvlSFQ6c6AZacrjwtXgTjOKBw=; b=HOx05x6a5h6f+dvZUYLGepTiX+QSF5YuHj0a2rUQW5yCuIqeGGdAgTz1j2vpUvs4Mx lWfSEBk7pNvfCPinnjffiYA5piaZjIes1tsLhrMXiUOSYB+4w2dsYntpUxAQC+mRkxON 7jwERa2d8EE8UFS0dG7KpstxeDnVj8J1x8h2Oc9NImhxTwq/aCp+vHloaNLTRkjmggnb 4ytngQ1Q1w0Fv0jAG6vM1rPHzJYFOrj0xbso8YDZdUfF1gkL2GnCknaaZPipN3HIlReX XdfZqlXwu5olWWGZhO1OWb3xctn6zrNl4dzavb9pPMSsi1MsmXt+S6+epfETznT0uNvo JGfg== X-Gm-Message-State: ALQs6tBEFExbZE6QrxpyXDmgU7QdYSJyESHZettlpNndpJIMnfXX7II4 nrhS89kW3i5+6e9ArlhW0PpqTviugaOKpwwvYD0= X-Received: by 10.176.95.93 with SMTP id z29mr18160683uah.87.1524563632054; Tue, 24 Apr 2018 02:53:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.89.238 with HTTP; Tue, 24 Apr 2018 02:53:21 -0700 (PDT) In-Reply-To: <57c0cfd4-7be6-2572-0bb8-6e1d3e87ef33@amd.com> References: <20180328155340.2253343-1-arnd@arndb.de> <664e2827-5237-160b-6ecf-c2da163569e1@amd.com> <57c0cfd4-7be6-2572-0bb8-6e1d3e87ef33@amd.com> From: Oded Gabbay Date: Tue, 24 Apr 2018 12:53:21 +0300 Message-ID: Subject: Re: [PATCH] amdkfd: always select MMU_NOTIFIER To: Felix Kuehling Cc: Anders Roxell , =?UTF-8?Q?Christian_K=C3=B6nig?= , Arnd Bergmann , Alex Deucher , "David (ChunMing) Zhou" , David Airlie , dri-devel , amd-gfx list , 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 Thanks, but I took Randy's patch as it was earlier in my email queue. Oded On Thu, Apr 19, 2018 at 8:47 PM, Felix Kuehling wr= ote: > On 2018-04-19 06:56 AM, Anders Roxell wrote: >> 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_notifi= er' >>>> 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 = wait 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/ > Yes, looks good. I think this probably broke when we relaxed the > dependency on iommuv2. > > Reviewed-by: Felix Kuehling > > Regards, > Felix > > >> >>> >>>> --- >>>> 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 >>> >