Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10207698imu; Wed, 5 Dec 2018 18:41:44 -0800 (PST) X-Google-Smtp-Source: AFSGD/VdYYTmuOxVw8qqd1vfD8C0NbTmcm/Qfgg196APdkCVoCLlOezfHt48dKJuMANAym0fACB4 X-Received: by 2002:a63:c942:: with SMTP id y2mr21256756pgg.331.1544064104778; Wed, 05 Dec 2018 18:41:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544064104; cv=none; d=google.com; s=arc-20160816; b=LnwU36vy74E6jmNK0W5iMwC2EMHvHsmRqSpoR0x6IMP7C7bcknBbv9ztw1cG2lmkhK 5cQj13keUE+1Gqyh3MppINQmNKMTkRCdCITCHIHIXijXQTbMCILA3UcCqRwkUGGo5YO6 W4qu+9hYoVSWBk4QwsUA7bqpyVLHdPMVFVGYl8MJJR8MOGma6T5HOIwZJ6O8QQneb9XK LLPChpYcaIBhcCtimvz97kYsMWSxWaRwu+kkRqtlKVN2EhIpqVS+S1izYfZxogMTV09Y 5QeHW18jqIXro0k/pCne1vhTZKmb/oQn/EwAYscV1hdYsrtyVUeWxCbayKj18zWltLTx 9kbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=+E+e5y4BOkwBDW572H+tyqySbqZVxuhsWuHZiEThvAY=; b=F0I9hP+ZMvRow8not8ggSxf4W0LHYIkcvb0dKANI2jqxDqtSarBiKUW7WpatjoXynh VHVfcibvYBukk6qL2v9N6jH0KaTL6dx0gnBJi9zbo+ZfM2fk0W5qGiyAr1FAdvFKMoFT CNHso6z+3t9XzNzrguQt/mxiLQrfnfuwBSwRFLMNCnXXeeDL70HAz6Al0A+asQf/eTRq wA1HoIwQFSKP/XtNtCvs/IA1mU4jMnB3dXjWtsJklNbX0mMYGLeFydJq89nRHO/2XZRu SgmX8jOZSmBQh06eVg7GAXV6Nln6kYvAi5G1ta9PkT4odWIbFX7WzubhorgQGKVF9wyD p9cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=ZTydS2XA; 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 v141si24801583pfc.260.2018.12.05.18.41.29; Wed, 05 Dec 2018 18:41:44 -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=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=ZTydS2XA; 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 S1728294AbeLFCk4 (ORCPT + 99 others); Wed, 5 Dec 2018 21:40:56 -0500 Received: from mail-eopbgr700067.outbound.protection.outlook.com ([40.107.70.67]:46880 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727514AbeLFCkz (ORCPT ); Wed, 5 Dec 2018 21:40:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+E+e5y4BOkwBDW572H+tyqySbqZVxuhsWuHZiEThvAY=; b=ZTydS2XAwBxgKkavcgJjiPPepv6tiHTw/9KsF1jfOmsTGiU95tG7FbdzUl3qoDFVb4VMxPzjMLHZqtkWhCU0CP+Sd3RE9Ui3RBxYK03xXwKw260rAGH8TMyilh+77PvvTrvBgvkz/64iV8ZX1/fAp63mFmpYgs6VXf21rp5TG7g= Received: from DM5PR12CA0001.namprd12.prod.outlook.com (2603:10b6:4:1::11) by DM6PR12MB2636.namprd12.prod.outlook.com (2603:10b6:5:4a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1382.22; Thu, 6 Dec 2018 02:40:51 +0000 Received: from BY2NAM03FT026.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e4a::206) by DM5PR12CA0001.outlook.office365.com (2603:10b6:4:1::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1404.17 via Frontend Transport; Thu, 6 Dec 2018 02:40:51 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; bootlin.com; dkim=none (message not signed) header.d=none;bootlin.com; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV01.amd.com (165.204.84.17) by BY2NAM03FT026.mail.protection.outlook.com (10.152.84.210) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1404.17 via Frontend Transport; Thu, 6 Dec 2018 02:40:50 +0000 Received: from [10.237.40.91] (10.34.1.3) by SATLEXCHOV01.amd.com (10.181.40.71) with Microsoft SMTP Server (TLS) id 14.3.389.1; Wed, 5 Dec 2018 20:40:49 -0600 Subject: Re: [PATCH 1/2] drm: Only #define DEBUG if CONFIG_DYNAMIC_DEBUG is disabled To: =?UTF-8?Q?Michel_D=c3=a4nzer?= , Christian Koenig , Huang Rui , Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie CC: , References: <20181205165621.5805-1-michel@daenzer.net> From: "Zhang, Jerry(Junwei)" Message-ID: <10fca21a-5d7c-fe9e-07f0-6200e9de538e@amd.com> Date: Thu, 6 Dec 2018 10:40:42 +0800 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: <20181205165621.5805-1-michel@daenzer.net> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [10.34.1.3] X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(346002)(376002)(396003)(136003)(39860400002)(2980300002)(428003)(199004)(189003)(16576012)(356004)(2616005)(6246003)(50466002)(6666004)(6116002)(65826007)(8936002)(305945005)(3846002)(7736002)(2906002)(2870700001)(446003)(11346002)(31686004)(14444005)(476003)(86362001)(2486003)(31696002)(53936002)(65956001)(65806001)(486006)(66574009)(126002)(68736007)(23676004)(47776003)(77096007)(76176011)(426003)(104016004)(186003)(26005)(53546011)(36756003)(336012)(316002)(16526019)(4326008)(478600001)(81156014)(67846002)(105586002)(81166006)(97736004)(8676002)(72206003)(229853002)(106466001)(64126003)(54906003)(110136005)(58126008)(5660300001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB2636;H:SATLEXCHOV01.amd.com;FPR:;SPF:None;LANG:en;PTR:InfoDomainNonexistent;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;BY2NAM03FT026;1:DQZ7f0dumA4uMb8L1/bbGXR7mtI2VuT5CY5LFmPIOxxArV8/xCTn6XtCBgXofkiafIvsDk7NoYUBXuDjX6JDysoyEc9qJc9/oEc5eYXeWI0x2I2nJw2xbp5eXmswoeNv X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 34455a51-7baa-4d43-a6c8-08d65b243c67 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:DM6PR12MB2636; X-Microsoft-Exchange-Diagnostics: 1;DM6PR12MB2636;3:MTl9vvJNfbhnSQ25E/ghOC8RZ107ZahR0QQBxIWuJjUhSFTibJ+B4+82DcgxUOh5e4Mxv+wAdnPVbwY92wcQS1srgdG8wWpUFRd5nYbBoN1D7dEkl/toX8aPOPHX6mMyMJi1/OBmotyVr6T4Bhawhld39sjFl5joEUW+K55bKuktsdRHwGprGQfTrJDl8/Lh/odOZM959y+NkAHVpw8nX9NdtKv8KFSy6rnWxCA/eBq44yMx3Mf0IhqJvToxUITlW++2BGqZIdaadcaz/sy4esA7T/FEA1tkmSjmRg1WEwuS/afYk+4U9tFApizRN9AgPLvzWut9w9knSe/JLTj23gocoG3IG2dApztAfaR8mgg=;25:vShnsmHm+V/UjyRx+5xeWwvh+NlB30wchH2MkTzIdhfdRF1FV1+IuWEDgh3TVdv5Z+cwIPtxvWPTJci5bigB4uQhU2VnJqC31YdoLjRXgVzH5DgTltcPCoxN6Iaq5B8g1v//Ttge5dJ47jqJAUCh9UgljM7Pco2fGUyLOx/tKXUpdNtuCfvZimlM9jRz0n+TLZdTQCmnI3BZ6qbKPjtLZHBYtfEyJTJYFcQNniRpoeKuCbinJuMLxO7hsDaAtj7O2SHkjK66HBlBoY3BPSSusSVRLQCRgvbZnylpctREtXYyy+BsjEg+qw53wwqG3qq3akyOk6fUlojK7E49/FMFhw== X-MS-TrafficTypeDiagnostic: DM6PR12MB2636: X-Microsoft-Exchange-Diagnostics: 1;DM6PR12MB2636;31:NFbzJ/aSL8EPNtc/cyfX29OZJQI66FRWUmfN9ixiOJt2nho2XEr46ayNNoOTZsiASy33OGpXas1NyGLukBBVlf0HRAwSBCksjd5XMW0+/oMV8nV91LhVx3//jZixU340776NGCB+CDU5IWs5gTIv/XdC5/tIO91Po4qQ2pVF9pVvjlIOcqRBszwwLg+STE3C6IU8Muj9hAd0HXxeOaEHoL+erZzrlTs7QxxwNUPuSyw=;20:uPwWpPpFiJG0C98vQL4qz1ORjdzXso/8And+ZPZUWSi2NBMUDJJCLJcbU1/HbvIW/iLwxoZ5uCtzpNCknGpjooQxGFveqnstMA3Ur7oZhjeVwdbFjEJko6qfDP3K0vEFGxhD2KZM/fr1rvmBdfOCuc0jl86gdwUvAfXbbLbOCIElQ4jeS9AymO8lX7QEqFxHGp8bibB/GEk4LR6cgHrVTbyXsLphF4/HZShN/EdfBBk8M64ZEMqmInb7X6aM3o3nxjjEL6YyYcmvav/gDjHSGoT5WAdmsLFBYqlzt+d2784P7h6nvyz/NvKya/f9HkGE/bFAEqaHRM8ErWI4yPLABD7j+6Zj+5ofAdcFwdSfogD7LbZ1ZTOkvnsoIFgzgDflaD+r+oUsmSwOuPQDrdA//fRhOBl43yMsg4Kn8YnRjtA+Li2/S8i3YvcRgBevRV2P7NoHJVYELuLBWuKRmrzBU8n/I37jA0zCUw/zdQDzgabvoi0TDhyYjIqsv7vOGtne X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231455)(999002)(944501520)(52105112)(93006095)(93003095)(3002001)(10201501046)(6055026)(148016)(149066)(150057)(6041310)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699051)(76991095);SRVR:DM6PR12MB2636;BCL:0;PCL:0;RULEID:;SRVR:DM6PR12MB2636; X-Microsoft-Exchange-Diagnostics: 1;DM6PR12MB2636;4:0px4YnyP+ebuN9MPYeeKrPgPmFeCvOcb06VUXGNMuHvmrAIMcb5rvboM88gQ9+S5RNqxV+kTvvb+vgGs9dsOGPM/dHj+vMY4JJcnpWlubOg2jJl4b/mgtRjXqmDZCRwuf+VMMOoRcXLHuRNsGG1y6zpRk0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js9wDhE2xJFp+sgskMOXnPM1MdnGMqsPCyAmEHYK+Zz6zYdUR5YIHmSphvjrbTSbkKcEb4Fgw0gcrg2zYJPCGD21krpr8evGDbRDwAMHY0b/hMb/V6PV6JrfGfHJ0hCdA5DJch1LGpEj8SqLv4hOAp62qRccRNkmzfFA3DvOFFvPK0eq7/497x/taLZh6J9e2eXNqfabhZu7gcq1sMgyMnKhog4eWl2QTBkmfEm6bI34RjxWjVGP5LrewLMTsyM3g3iT8wFaMgJRBJttGRw==;5:0EvRwuL3P77ifAvL69LcqdVFhTpPcNqvAcjXs0uLPGQdISQMvQYCGKrRTrf1078p8hYswksW/BZno1WXLIMfKSEC6EmJmQj//fyPilHagnMGTVsxE+YC0gR5s29NmhHxpmxHzrsX3xW4Uah48PUPiTIdkxhhRWcLr2Ww55JoShA=;7:v2xky/bz3OAjMeak+j5hV5Oye00Azb8oarQW9n4htc+WLiEHloeHLruTquuNDa2naq/I3o6EowdhPKL7yiEdKAcUXkBkRvhjMSeRyxjMKWzb+tCO9ktCvdoKvlUiblubK6Rbq3c8cc6qGSXNorHCtA== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM6PR12MB2636;20:Klywprw92aUHrlMbM1NSpdN7vGr4pAsgua5tDx+DOlC5KHsHKu5w3pk1AUvj2kH+XkHt+O8kTPSt22lABCoCknU0i2ZSPnWbCNs17s+R/Y16PqGzQb7yrmiEC/wABy0ITy4DOe788SnAlUcvJZfxUH6fFhJhQLjAHs+/NPL5VMGV+06BEkIwnbM2a00UCwjjgly0GfFx8qwI31PxT3ODnhbyc58igHKpq7gKXnj4m1znDAhtORnafXJNOdojyo9P X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2018 02:40:50.8004 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 34455a51-7baa-4d43-a6c8-08d65b243c67 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXCHOV01.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB2636 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/6/18 12:56 AM, Michel Dänzer wrote: > From: Michel Dänzer > > The following cases are possible for pr_debug(): > > 1. CONFIG_DYNAMIC_DEBUG disabled > a) DEBUG not defined: pr_debug() translates to no_printk(...), i.e. > it never generates any output. > b) DEBUG defined: pr_debug() translates to printk(KERN_DEBUG ...), > i.e. it generates output which doesn't appear in dmesg by default, > can be enabled dynamically. > > 2. CONFIG_DYNAMIC_DEBUG enabled: pr_debug() translates to > dynamic_pr_debug() > a) DEBUG not defined: dynamic_pr_debug() generates no output by > default, can be enabled dynamically. > b) DEBUG defined: dynamic_pr_debug() generates output by default, > can be disabled dynamically. > > The intention for drm_debug_printer() is to generate output which > doesn't appear in dmesg by default, but can be enabled dynamically, i.e. > cases 1b) and 2a). However, defining DEBUG unconditionally gave us 2b) > instead of 2a) with CONFIG_DYNAMIC_DEBUG enabled. > > Fixes: 79a5ad2fdb3c ("drm: Enable pr_debug() for drm_printer") > Signed-off-by: Michel Dänzer Reviewed-by: Junwei Zhang > --- > drivers/gpu/drm/drm_print.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/drm_print.c b/drivers/gpu/drm/drm_print.c > index 0e7fc3e7dfb4..ee56e4a1b343 100644 > --- a/drivers/gpu/drm/drm_print.c > +++ b/drivers/gpu/drm/drm_print.c > @@ -23,11 +23,13 @@ > * Rob Clark > */ > > -#define DEBUG /* for pr_debug() */ > - > #include > #include > #include > + > +#ifndef CONFIG_DYNAMIC_DEBUG > +#define DEBUG /* for pr_debug() */ > +#endif > #include > > void __drm_puts_coredump(struct drm_printer *p, const char *str)