Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10923508imu; Thu, 6 Dec 2018 08:48:30 -0800 (PST) X-Google-Smtp-Source: AFSGD/X+j4SOuPjpiaoIMhrlzO85uHgMiFBo/q+oO0hh/jAfHuy7J145Qi0cEoj/eEQIOoF/5/fa X-Received: by 2002:a63:3c44:: with SMTP id i4mr24318300pgn.286.1544114910059; Thu, 06 Dec 2018 08:48:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544114910; cv=none; d=google.com; s=arc-20160816; b=RIjTxWV+RXg5WO7yaN/gatX2SWBS1Eix4Qb0uzetH/h84Zds54Gm2sQPAl+8yG3zx0 ainolIqLqRn4FQV2COjBmyUGyjymDIka+Vz2mPT4UNyZETfViWUKLW16iiL4TNX0c+kI R238oHuQ8S5J1j/Pte9FFhWLW2K1bpc4QjXf/GwyDFapjlXfWpGMPLQFxV14MCapffGF IjkrfdFnOsDWPcyex9Jrs51EqSK851YMq6I0ZbydeCJbmPJrY2rw3/07pYYK/7n3InJv G5QeSFQnyzJRoB7aRL2mHVzThLUJVn0eTP+T/+Ux5OARk61qS3nYGcH05p7UUr2WnCQV 0jMQ== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=eseVhUyIEk255u0lxdVH3swzVrOMuAtMRlN/gutL4C4=; b=y39trDtIrf1r8/OVXyAM8M6akQ38NpgyOI+GvkTQNVMqVAaAQyn2ubu90M+HzSu+f7 d+cvSma8HB0VnSjoRWD9tpZZWbALT2Gi0IRVR+FYISpeQ2V8GmdEcnAh7sSLO6nUPhhK zq62fHq4yRgaloRwkVFrScWbjmFkX4RTxYpyKUYYefCbqLj7T0HIrErrK5/uER5Xe++L Ik+A6mWpoX2BEOFgcOOPO7rUaFNr3Yg/U2uKy4WhC6tIcb49GEf39TnwkOc55mPPA/N/ MLvp8H6U6wcKxirXrG/NHKDjaYUf9JT0ph/nshbTtaJJ9yXWg7winPWs2TIdp1wNruKL I3bw== 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 x9si616311pge.76.2018.12.06.08.48.01; Thu, 06 Dec 2018 08:48:30 -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; 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 S1725949AbeLFQqY (ORCPT + 99 others); Thu, 6 Dec 2018 11:46:24 -0500 Received: from smtprelay0210.hostedemail.com ([216.40.44.210]:60831 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725896AbeLFQqY (ORCPT ); Thu, 6 Dec 2018 11:46:24 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id BB31C837F24A; Thu, 6 Dec 2018 16:46:22 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::,RULES_HIT:41:355:379:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:1981:2194:2199:2393:2559:2562:2828:2899:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3870:3871:3872:3874:4321:5007:6737:7576:7903:9040:10004:10400:10848:11026:11232:11473:11658:11914:12043:12048:12438:12740:12895:13069:13311:13357:13439:13894:14181:14659:14721:21063:21067:21080:21326:21451:21627:30054:30064:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:27,LUA_SUMMARY:none X-HE-Tag: pear67_71a7fdeeebf3c X-Filterd-Recvd-Size: 2683 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf03.hostedemail.com (Postfix) with ESMTPA; Thu, 6 Dec 2018 16:46:20 +0000 (UTC) Message-ID: <168bc68c9383cd379b3cd7a25b32edc731c8f5e6.camel@perches.com> Subject: Re: [PATCH 2/2] drm/ttm: Use pr_debug for all output from ttm_bo_evict From: Joe Perches To: "Zhang, Jerry(Junwei)" , "Koenig, Christian" , Michel =?ISO-8859-1?Q?D=E4nzer?= , "Huang, Ray" , Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie Cc: "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" Date: Thu, 06 Dec 2018 08:46:19 -0800 In-Reply-To: <357b0045-d2a2-2246-b69d-19e657f6e843@amd.com> References: <20181205165621.5805-1-michel@daenzer.net> <20181205165621.5805-2-michel@daenzer.net> <3198051c-c09d-5bf9-e177-3a90b10b4149@daenzer.net> <357b0045-d2a2-2246-b69d-19e657f6e843@amd.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-12-06 at 17:39 +0800, Zhang, Jerry(Junwei) wrote: > On 12/6/18 5:33 PM, Koenig, Christian wrote: > > Am 06.12.18 um 10:09 schrieb Michel D?nzer: > > > On 2018-12-06 3:43 a.m., Zhang, Jerry(Junwei) wrote: > > > > On 12/6/18 12:56 AM, Michel D?nzer wrote: > > > > > From: Michel D?nzer > > > > > > > > > > All the output is related, so it should all be printed the same way. > > > > > Some of it was using pr_debug, but some of it appeared in dmesg by > > > > > default. The caller should handle failure, so there's no need to spam > > > > > dmesg with potentially quite a lot of output by default. > > > > > > > > > > Signed-off-by: Michel D?nzer > > > > Sounds reasonable, but personally prefer to show error when some > > > > vital incident happens, e.g. no memory on eviction. > > > The amdgpu driver still prints these in that case: > > > > > > [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* amdgpu_cs_list_validate(validated) failed. > > > [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Not enough memory for command submission! Aren't dump_stack()s already done on all these allocation failures? I don't notice any use of __GFP_NOWARN on generic allocations in drm.