Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10487856imu; Thu, 6 Dec 2018 01:51:23 -0800 (PST) X-Google-Smtp-Source: AFSGD/U3yOA0yXBK2PjCxXS5MW3M+Twqb/uLY3ylUi7maa2kH062nUNQa8EKYiXg2Ux9Z0+uNp9I X-Received: by 2002:a63:7306:: with SMTP id o6mr21896064pgc.343.1544089882939; Thu, 06 Dec 2018 01:51:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544089882; cv=none; d=google.com; s=arc-20160816; b=uOqB7yf1F68o5E3tEwjVlG03+27ybpALEpGernbO9+MS7zrBaqsEn5/EiNZYrV46PB tYWAYWifuPjTahNcy98wN5pnrosmy6XrdQ+xHej1ZOqUZ8XHMJQd2BUw6Y5yR1YSz2cV XgkU+IQBg8IF4EkJSsh8JU83seJ9HSoKoaGUNymTO627Ozj99yDM3ZcC2sB16I9fihNe ZuFZ7r78mW+71LTANenYpstXHCU1i/GoQuf8wUEjoOqNm5Z5uWzER4F/yZsqpsgUaPeV 0u07TxxFxTjQwlUcjCkbOW/voOBpSC5DeTxUfa+YU7emQNawhMkxSYwkja3AgCieaClO 8EyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:reply-to:dkim-signature; bh=SLJYc++pqRvEbdPPcx04NW2WQIDy0+VqRd4VPyqYzUs=; b=ocU0Gf7+znkrjNmt5gaeQv61cvdECUDpcJ4TVZE5+jgeGKQXd6rBimAv2c4obp1du6 tjDCbfNseJPk6Zn/+A07SjVwNKIi9FsI7RO16BReKiVWGL69/ZSi1kVGupuRGSveHLVC VwHdqaGmSNlGaoxsis4SxeIxcYpV6FCFuMg77R+/HycYIcx6TGauUkmIAW0/lv5eK6dg vDMKAh99pTAlQxQ7ecu2n3qNzUxoKCEC4fz8h3pgKMFhYwnClmH/93WgiZ899j/63K3+ IFml65D7QGoqKAE5VT4Q8LW+v+J+6gdGuPt/Qsl/A6RVlipIiu6DSusM/r4nB09nSOBL LZeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pDrsjMhM; 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 f1si20711143pgn.502.2018.12.06.01.51.06; Thu, 06 Dec 2018 01:51:22 -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=pass header.i=@gmail.com header.s=20161025 header.b=pDrsjMhM; 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 S1729369AbeLFJuC (ORCPT + 99 others); Thu, 6 Dec 2018 04:50:02 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39618 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727783AbeLFJuB (ORCPT ); Thu, 6 Dec 2018 04:50:01 -0500 Received: by mail-wr1-f66.google.com with SMTP id t27so22561884wra.6 for ; Thu, 06 Dec 2018 01:50:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=reply-to:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=SLJYc++pqRvEbdPPcx04NW2WQIDy0+VqRd4VPyqYzUs=; b=pDrsjMhMbtUsSRUBecI5Jwpt09ELfZmtOxGrWejSaKdQfbi3yYW+9C4Aikgbhle7yd lX9dk7uYWictvcHa/rpRHFiYYEIeIssQHT3YUVaaM/BcdUednBU+x89H7WwZcAaXHIr/ rofkiMrh2xbOhcb7QZa2Pp31HJ2shzIt6HO71FTaZDUBEdu4t9U8O+r5UmQvLrrgXzVZ 6fIvDTaun/2T5nfC4+FweeJkGU0G5/n5mABO1i1jdXap135INHredODjdlVWk61Wiq0G Ygxywu4aTESvHWtAsk8gBFXP/oYRi+ssk1nv6YCsVcgAhMBv+jQYkkdwoTCPXjWylbRi 2JTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=SLJYc++pqRvEbdPPcx04NW2WQIDy0+VqRd4VPyqYzUs=; b=ca6Jj3Yp8umsyGSSQ6UPjXlfQUQj88lyw09/ZGkqvikSKu2dQqzJYVIINiEUxU92e6 DJ2BYWqJo1XsqhVVDhvDb4lPKGWj1uQRckM/H0zcuWNo+2Kwkp/MvOTLfhe3XCXhBRzC 0+ksYOftra80LG1IyXttmnp6BLZXXUtcMAPEuW5W5XiaJf6UDrljhLghoWmyh2MHk3FW +GoxJMSdgM9kH/UvecLrRTindQrFm8mLFvZwoyWUCfcYVSA9/3TlsS0HWmwXkGTMMWQh 20K7Yor0RP8PiHAzb57SGKRGr49dEd1T9a88yuPNXBmLY0k++1bqNA7JpgphsAIMQOTF j8xg== X-Gm-Message-State: AA+aEWbhftFWqZVY1szv7P6hY88bvv1TpIzFjXFQs0XX7lJntjVgP0Kb m5QRBEftdPS8hhWP6QG6alufDFaL X-Received: by 2002:a5d:538a:: with SMTP id d10mr23924998wrv.202.1544089799868; Thu, 06 Dec 2018 01:49:59 -0800 (PST) Received: from ?IPv6:2a02:908:125b:9a00:a142:2be6:b7be:5a3a? ([2a02:908:125b:9a00:a142:2be6:b7be:5a3a]) by smtp.gmail.com with ESMTPSA id f192sm414735wmd.12.2018.12.06.01.49.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Dec 2018 01:49:59 -0800 (PST) Reply-To: christian.koenig@amd.com Subject: Re: [PATCH 2/2] drm/ttm: Use pr_debug for all output from ttm_bo_evict To: "Zhang, Jerry(Junwei)" , "Koenig, Christian" , =?UTF-8?Q?Michel_D=c3=a4nzer?= , "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> <357b0045-d2a2-2246-b69d-19e657f6e843@amd.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= Message-ID: <50899531-c8ea-6562-f7f3-593481bcef60@gmail.com> Date: Thu, 6 Dec 2018 10:49:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <357b0045-d2a2-2246-b69d-19e657f6e843@amd.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 06.12.18 um 10:39 schrieb Zhang, Jerry(Junwei): > 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! > > That's from cs submit, perhaps it may come from other places by > ttm_bo_evict_mm(). > Is that right? Christian. Yeah, exactly my thinking as well. When we silence the TTM messages we might miss those cases. Additional to that other drivers using TTM might not have those messages either. If TTM is to noisy we should use ratelimit and/or reduce the number and size of the warning messages. A simple "Warning, I ran out of memory during eviction!" should do. Regards, Christian. > > Regards, > Jerry >>> >>> 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. >> >> Christian. > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel