Received: by 10.223.176.5 with SMTP id f5csp4066439wra; Tue, 30 Jan 2018 01:25:08 -0800 (PST) X-Google-Smtp-Source: AH8x226K6TbYLIRAvKxf2qkvZwWnelGCHEExmTlhd4mhzag7+AX9qsqwqfDIrZ+CjYTOgjbeFrq0 X-Received: by 2002:a17:902:6006:: with SMTP id r6-v6mr8502696plj.78.1517304308635; Tue, 30 Jan 2018 01:25:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517304308; cv=none; d=google.com; s=arc-20160816; b=FddCkXXKTeJHzqG/MDum9EHiRilIgSejvvF+c/qQX4LqWDbUGQ0+Pog9uxil011/Yp +xtZ9OO2PF/ltMlcEFAQUV6MeTKqAZZM3RzP8I6BLOLXiVZOr3I3ZlKX9K1+Wmt4UqdB nV6sOJC/ruQbascjks7xNMQpuy8a/IHw+VRuMjniRsf+rhnfvTG4kdU6Y8r5xbouBhHK qngUn4hlo1ANsOOnjJ9jRC9JJwom1eVZVnUpZ9WY4ReGRcV/ENNUN/j637Z0yznTMN3z ZIJZV/lLjaquqAe/tK6HJucRZEYteDhK2GjS3nh529Io3ClT8nMnn3vnydGLVFt+hvwz VrPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=QSMOlTn48IjylSMInUbHSNzEmaHJ3jXA9GG1E/mHLrA=; b=QJKD6MhUyNW7Bd0r5cXZfsn5HdwMMBqD3jSbduDKq4JIFP/zthd06B6ZL9MyMPjr96 EIJsTAnmWyY5+HTSMlTNJ/zeSHPXd1fXULEhu7fZoOTZ89xPDkru6Pd88Q6MiqaWMtCr kPtMG96YAaRCMUStssRuxegccoK0+1P3OGBioDnCnm13MIISX2mdLNC3YJFoXB2+Ay61 jBwQWFB8P8PW/hZFflRzM729IHDl9sZ+wl9cMRT9zCApvrdpuE2xWQR2Gx63wRAjBPdq gJkO3CJaiKAryccMOvb/X1+MZd1PJvwcfgvmKkcgce+3ZZktuAMiv0yZ4owVsxfkm5Y3 qZfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=NAYAgn2T; 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 w12-v6si11287078plz.111.2018.01.30.01.24.54; Tue, 30 Jan 2018 01:25:08 -0800 (PST) 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=fail header.i=@ffwll.ch header.s=google header.b=NAYAgn2T; 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 S1751556AbeA3JYV (ORCPT + 99 others); Tue, 30 Jan 2018 04:24:21 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:50694 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751402AbeA3JYR (ORCPT ); Tue, 30 Jan 2018 04:24:17 -0500 Received: by mail-wm0-f65.google.com with SMTP id f71so19583914wmf.0 for ; Tue, 30 Jan 2018 01:24:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=QSMOlTn48IjylSMInUbHSNzEmaHJ3jXA9GG1E/mHLrA=; b=NAYAgn2TnMgs95klDnQII/v30TfNvUGnjp7tr+jfiyNchrFGiWG4RUrQX7sS3YTuYd 1wIA8tMB6GBmYEpxgE4LTj5maHp4u+sscxgN8ruachJrdUkimaFRsrL4L7WJ0B2YsBc9 bTe/7CYHvnffvXYFPjCQ2eGuxK1PqnNsAP1wA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=QSMOlTn48IjylSMInUbHSNzEmaHJ3jXA9GG1E/mHLrA=; b=cJK7IxezJbE7JxTpNyBq+HSsXWxC+0ZWZuRhFfCSBRa4AjAIL1V1FzVCaLl0GQr89g bgemNoAHctVuWtfJrOz3UVD+qdxc9jqv1e2qFsdgn7qLB+GUk3/aIyQOiavFLvSiuEgr 8ka6q8WhL9Q/OMHy9n2fbIDfCGLDhxDnjyUW5gCD1Tgdogm9rZMOSlYiFLWQmivHDu1s JM48At0OYqADNQjfSa226Ze9R3j9e5MkL/D6ZUMwos/k9UHZuqWdv+ExUREuxtTudQh6 KE+FQUetnx8aAZlnnUSNEqS1oTF1cKyStiSyP7hnGriMcXmaoF7+LEHO29+xfnBokKSn Nl5Q== X-Gm-Message-State: AKwxyteHCjdg2HbRo/3VAVFdSysIvksa1/zF2lcv5jJvkhFaujx3rWLH r2BPD48N4zg0pf/vHLiAESuHxg== X-Received: by 10.80.220.3 with SMTP id q3mr23252020edk.176.1517304255959; Tue, 30 Jan 2018 01:24:15 -0800 (PST) Received: from phenom.ffwll.local ([2a02:168:56e6:0:e4bc:76a0:8042:669e]) by smtp.gmail.com with ESMTPSA id z42sm7516144edz.39.2018.01.30.01.24.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 Jan 2018 01:24:15 -0800 (PST) Date: Tue, 30 Jan 2018 10:24:13 +0100 From: Daniel Vetter To: Andrey Grodzovsky Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, Christian.Koenig@amd.com Subject: Re: [PATCH 4/4] drm/amdgpu: Use drm_oom_badness for amdgpu. Message-ID: <20180130092413.GD25930@phenom.ffwll.local> Mail-Followup-To: Andrey Grodzovsky , linux-kernel@vger.kernel.org, linux-mm@kvack.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, Christian.Koenig@amd.com References: <1516294072-17841-1-git-send-email-andrey.grodzovsky@amd.com> <1516294072-17841-5-git-send-email-andrey.grodzovsky@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1516294072-17841-5-git-send-email-andrey.grodzovsky@amd.com> X-Operating-System: Linux phenom 4.14.0-1-amd64 User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 18, 2018 at 11:47:52AM -0500, Andrey Grodzovsky wrote: > Signed-off-by: Andrey Grodzovsky > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c > index 46a0c93..6a733cdc8 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c > @@ -828,6 +828,7 @@ static const struct file_operations amdgpu_driver_kms_fops = { > #ifdef CONFIG_COMPAT > .compat_ioctl = amdgpu_kms_compat_ioctl, > #endif > + .oom_file_badness = drm_oom_badness, Would be neat if we could roll this out for all gem drivers (once it's no longer an RFC ofc). -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch