Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10479203imu; Thu, 6 Dec 2018 01:39:58 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vz47IWMy8cH9k5QKm9qJ0sVR7drYpWS3f5CHiFMPxshLf+rZkc0ru/Pppoeqb1Kf4whE7i X-Received: by 2002:a17:902:a03:: with SMTP id 3mr27766387plo.112.1544089198094; Thu, 06 Dec 2018 01:39:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544089198; cv=none; d=google.com; s=arc-20160816; b=OkYvUtaPZW0a9DTMt4neAjQjZHNIMsRUfVkLFEkitWiDT+XPxSH6fzHPWseERq7Rvs dC/rgNLur1JEP2ZVCXy0SiYQV0XWKCYvuOrXyYxtawo68lMXIMm+bU9UKitGRwFOJAaE w9Et/6fOq/ixisfYjFQ6DqsZtRQxm3jh2Aru+1LwtLf6doLhBJlY4BGg8Sm5kYoIhwrp b2FVIeHrFiUPHWAFi0AdbCnN57vYNtbCV6Rto2Y0YeeG3HKotyWz9SKCwdmUIBku/qGJ EA3jGe+ouhbDh16H0qdXbwtuk2uSdeEjNl114rrHUIsmubUtLaL+R4aSCbXOsyXqxVCI 7ksg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=xGhCUlCfivkD4aiCXd7/Qqw1gdhYPn/FkkqP8vnlBxw=; b=TAHLOSflyzoZCUuiF5+I3I3zAqrM8tdfHVA31wumSTfwHQoca/LMi43Q/nCDFSjxPO oNacOR998Hoz00SChHH3jTqByUbuDVEi3dMQfRCHHM8iYXOrLNftQB4uiMqK9S5MgJWE fMGTynnXwVucZa4Q1psCbAshRGQKj/6S6HRTeNLvejrSMo/a0nzPHoFAW4ittRYIBqoC IKA2smmF8o1qJNQddCFV0ElDdggKUTStlef6AY3NjGSr21w0m4b5M1+YYd3R6PWxAU9o pVhQ+buNRbmfxI0Y5ElpFE6r5HdCsXyuqBo5RP/1hXgneaFe0JD0Ehw+d9mtUDESiwqI PgSw== 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 g6si21864373plp.132.2018.12.06.01.39.42; Thu, 06 Dec 2018 01:39:58 -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 S1729372AbeLFJip (ORCPT + 99 others); Thu, 6 Dec 2018 04:38:45 -0500 Received: from mail.netline.ch ([148.251.143.178]:55656 "EHLO netline-mail3.netline.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727575AbeLFJip (ORCPT ); Thu, 6 Dec 2018 04:38:45 -0500 Received: from localhost (localhost [127.0.0.1]) by netline-mail3.netline.ch (Postfix) with ESMTP id 7EE852A604C; Thu, 6 Dec 2018 10:38:42 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at netline-mail3.netline.ch Received: from netline-mail3.netline.ch ([127.0.0.1]) by localhost (netline-mail3.netline.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id KXTPqqCRR69o; Thu, 6 Dec 2018 10:38:41 +0100 (CET) Received: from thor (39.1.199.178.dynamic.wline.res.cust.swisscom.ch [178.199.1.39]) by netline-mail3.netline.ch (Postfix) with ESMTPSA id 4E45E2A604B; Thu, 6 Dec 2018 10:38:41 +0100 (CET) Received: from localhost ([::1]) by thor with esmtp (Exim 4.91) (envelope-from ) id 1gUq7E-0003mx-Vo; Thu, 06 Dec 2018 10:38:41 +0100 Subject: Re: [PATCH 2/2] drm/ttm: Use pr_debug for all output from ttm_bo_evict To: "Koenig, Christian" , "Zhang, Jerry" , "Huang, Ray" , Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie Cc: "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" References: <20181205165621.5805-1-michel@daenzer.net> <20181205165621.5805-2-michel@daenzer.net> <3198051c-c09d-5bf9-e177-3a90b10b4149@daenzer.net> From: =?UTF-8?Q?Michel_D=c3=a4nzer?= Openpgp: preference=signencrypt Autocrypt: addr=michel@daenzer.net; prefer-encrypt=mutual; keydata= mQGiBDsehS8RBACbsIQEX31aYSIuEKxEnEX82ezMR8z3LG8ktv1KjyNErUX9Pt7AUC7W3W0b LUhu8Le8S2va6hi7GfSAifl0ih3k6Bv1Itzgnd+7ZmSrvCN8yGJaHNQfAevAuEboIb+MaVHo 9EMJj4ikOcRZCmQWw7evu/D9uQdtkCnRY9iJiAGxbwCguBHtpoGMxDOINCr5UU6qt+m4O+UD /355ohBBzzyh49lTj0kTFKr0Ozd20G2FbcqHgfFL1dc1MPyigej2gLga2osu2QY0ObvAGkOu WBi3LTY8Zs8uqFGDC4ZAwMPoFy3yzu3ne6T7d/68rJil0QcdQjzzHi6ekqHuhst4a+/+D23h Za8MJBEcdOhRhsaDVGAJSFEQB1qLBACOs0xN+XblejO35gsDSVVk8s+FUUw3TSWJBfZa3Imp V2U2tBO4qck+wqbHNfdnU/crrsHahjzBjvk8Up7VoY8oT+z03sal2vXEonS279xN2B92Tttr AgwosujguFO/7tvzymWC76rDEwue8TsADE11ErjwaBTs8ZXfnN/uAANgPLQjTWljaGVsIERh ZW56ZXIgPG1pY2hlbEBkYWVuemVyLm5ldD6IXgQTEQIAHgUCQFXxJgIbAwYLCQgHAwIDFQID AxYCAQIeAQIXgAAKCRBaga+OatuyAIrPAJ9ykonXI3oQcX83N2qzCEStLNW47gCeLWm/QiPY jqtGUnnSbyuTQfIySkK5AQ0EOx6FRRAEAJZkcvklPwJCgNiw37p0GShKmFGGqf/a3xZZEpjI qNxzshFRFneZze4f5LhzbX1/vIm5+ZXsEWympJfZzyCmYPw86QcFxyZflkAxHx9LeD+89Elx bw6wT0CcLvSv8ROfU1m8YhGbV6g2zWyLD0/naQGVb8e4FhVKGNY2EEbHgFBrAAMGA/0VktFO CxFBdzLQ17RCTwCJ3xpyP4qsLJH0yCoA26rH2zE2RzByhrTFTYZzbFEid3ddGiHOBEL+bO+2 GNtfiYKmbTkj1tMZJ8L6huKONaVrASFzLvZa2dlc2zja9ZSksKmge5BOTKWgbyepEc5qxSju YsYrX5xfLgTZC5abhhztpYhGBBgRAgAGBQI7HoVFAAoJEFqBr45q27IAlscAn2Ufk2d6/3p4 Cuyz/NX7KpL2dQ8WAJ9UD5JEakhfofed8PSqOM7jOO3LCA== Message-ID: <29939fbd-939e-ca66-b355-d85b51c5a3ae@daenzer.net> Date: Thu, 6 Dec 2018 10:38:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-12-06 10:33 a.m., 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! >> >> That's plenty as far as I'm concerned. :) > > Yeah, but in this case I would rather make the amdgpu messages debug > level and leave the TTM meassages on error level. That makes no sense to me. The amdgpu messages have some value for normal users / bug reports, indicating that something isn't going quite as planned. The TTM messages are orders of magnitude longer, and are basically noise for a normal user. Seems like a no-brainer to me which of these should be visible by default. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer