Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1181635ybt; Thu, 9 Jul 2020 00:16:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0Od+nBLuV5tb7j+17dTh2V5ok6C9N6lnW4RlxRUvwNFEpQu8gaR3fUXqAsx7lshUJSeyn X-Received: by 2002:a17:907:9c6:: with SMTP id bx6mr55301307ejc.43.1594279014279; Thu, 09 Jul 2020 00:16:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594279014; cv=pass; d=google.com; s=arc-20160816; b=oa29JdMGCV541I+LYGZMvih680e+OuhEtxjDI1napIVyyQTAhT3sYjpkxZvouuuZuc xsbeOs3nVsWpuzz6RTIHdewLSCJkR9NeW1oSCKVe1fgf1D2ZxCcatH0z7pCisXFcXuTT HFk+NPXK/nZtH1dqwxKZaYksLFxQTXqnyFKuM2tfzXMRuHKYB+a4mYvYmYkSrQUcjoC2 5V9g6K8+paoGgbJ/gJEv2uHPySr4PxDvzfnLgbGRU8mf+DW+wm8D1GMhjbS1+e2S62j1 xPapyo0vPQjbi0/YLseYyEbImRjp3JpdaYCaNh3Zt31VP/MYZvZn8irPKGl27MgIQW74 kmHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-language :content-transfer-encoding:in-reply-to:user-agent:date:message-id :from:references:cc:to:subject:dkim-signature; bh=IiBfUsRoPbicrFS00U00A9dfXz4h58ZLnfTvFVuOioc=; b=m+NnbjWtHOpbxRbDqJG4jVvoUorNGawtEJl4tt30AlAWiyZ8Uq3nGoTFJvz+fiQwO8 wW+pci/6Kz93thuSK/mMYTGA9IlN9e422FAXCD278kgco8TxR1z74RxxZfHDhU8/54Jm vSu0NZg9/B95MmkO7H9WIKsZSNNL+HKYcDVgMXAMcyQ1phiVGmI07QvzvDuPTcVTHkaV zOJ0bFndtlsfGJl8kEDAWpkj7AN37EpH0oKbAhkQHEt8sFWMz596kbuhi9fuJXon1+pa v++rijKzCGbRQWvmrF59IP+DP+xElRXFueZW4s8yOR4d5d9kZXprYC5WHM82K5FrvlWb mz+Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b="t0Hc5/hu"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v6si1558376edy.149.2020.07.09.00.16.31; Thu, 09 Jul 2020 00:16:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b="t0Hc5/hu"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726272AbgGIHOY (ORCPT + 99 others); Thu, 9 Jul 2020 03:14:24 -0400 Received: from mail-bn8nam11on2044.outbound.protection.outlook.com ([40.107.236.44]:6093 "EHLO NAM11-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726183AbgGIHOY (ORCPT ); Thu, 9 Jul 2020 03:14:24 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bajAfyBEv39jU6HeINw2E5cN4t1Xan9TRk4evE5LhT/bAS/OK+zzZsnv8hL4bge1JI4M+8kZLxI/xadckH7aPaJDgV5n1rtIfaVDtHyfswifSOHv4Nq7D2mXeqSoQgiYZBfZlkBN/txFxVEwFr9+QQ0inLh5kLzvBv9q4r7OlvwJg+MHCL4HAtec/+jbHsFDTgJjjTiPmJW0NwV6VAhSZrSA3PnINfi5vShzzhMsNYotgxUkFE1JI03s2PsQUmcvAr25LFYTEuBeQbuw6dNuZsIAvEJkQR2BYVkCm9VvJFdKRHAcz8Wsm5m9ivfx8JtQCNhbPS7DhQq46ZmFvZGixQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IiBfUsRoPbicrFS00U00A9dfXz4h58ZLnfTvFVuOioc=; b=L+G8JCWRBAHfBl89B6bJ2rhh6z2yXIg0/txrjwSyamsqOrou496nBMUwUlFu6JS4gin8oKNUeD7nZN/churo9xC4P3wVasCzwEVspsqp6Pg7Z9XQTvLinrKrbV/+5aUQ0SPq0K3bdPDH2cFn3S6LQUCOvXcveKQeL8TwCybPqJkw9MtE9WTYWYVguDfCQCjcJeWBsFOui3VQrcTXoxW+t9ey7yS8zbNxo4IduNIvVPUSeIKCEI1CVxfgbshFy41dl7EEkvfozFlpqi14LMfqU1XJjZjE0m2o7vqiJxmUkyTB5Y9gbIIGyWIH6/xp4cXr+UsADHTppt9gMQqfHPis8Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IiBfUsRoPbicrFS00U00A9dfXz4h58ZLnfTvFVuOioc=; b=t0Hc5/huO7JtwcnXLwGX2bL3KZBGS8XfPG1n4S6zJI1gk2HfZ9HFCX4ibpHY4m326oMkBpnMfW1Xc1X0emsx9jazR7CjSn6i6iPqlUJrW1ROKvEERZAOLl1NptzZKp2PoWqWm/QZNoWlgApBELOmx438E68cUOYjYMd/tYY69xo= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=amd.com; Received: from MN2PR12MB3775.namprd12.prod.outlook.com (2603:10b6:208:159::19) by MN2PR12MB4375.namprd12.prod.outlook.com (2603:10b6:208:24f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.22; Thu, 9 Jul 2020 07:14:21 +0000 Received: from MN2PR12MB3775.namprd12.prod.outlook.com ([fe80::a16e:8812:b4c0:918d]) by MN2PR12MB3775.namprd12.prod.outlook.com ([fe80::a16e:8812:b4c0:918d%6]) with mapi id 15.20.3174.021; Thu, 9 Jul 2020 07:14:20 +0000 Subject: Re: [Proposal] DRM: AMD: Convert logging to drm_* functions. To: Suraj Upadhyay , alexander.deucher@amd.com Cc: amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20200708161123.GA30962@blackclown> From: =?UTF-8?Q?Christian_K=c3=b6nig?= Message-ID: Date: Thu, 9 Jul 2020 09:14:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 In-Reply-To: <20200708161123.GA30962@blackclown> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-ClientProxiedBy: AM0P190CA0015.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::25) To MN2PR12MB3775.namprd12.prod.outlook.com (2603:10b6:208:159::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [IPv6:2a02:908:1252:fb60:be8a:bd56:1f94:86e7] (2a02:908:1252:fb60:be8a:bd56:1f94:86e7) by AM0P190CA0015.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21 via Frontend Transport; Thu, 9 Jul 2020 07:14:19 +0000 X-Originating-IP: [2a02:908:1252:fb60:be8a:bd56:1f94:86e7] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 0fc1c0dc-345f-4738-179f-08d823d7b347 X-MS-TrafficTypeDiagnostic: MN2PR12MB4375: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rObzAwXJYvw/f8+kT+BbDns/5wnNamYJpJpix6YxsP95KrlrxH8J4HeoPbA9CPyL3i5I2tx3/Dj92rOCPM/+jscSIaOeEuj5Mz8bcBAOkZfKGTWCasykJnitRtvIvxn69y9Zp7LpZJb4/4VSpoJZGyYwuCYoG3lzlPO6QUws1qV5HbdpS9wSwi2BNTws0S+YnoZrHrQGYPdkyKhQPFkOcB7hisjNgKHiAbvgYxwtdHEZBAXfY4DKhl+K4y/qzvtvWYl8cCMO0bzAocJC5DvPfpLq+2I6L7vTxVGQfl/exI/Rz8SVTzZLXeJ51l+vl563Gn9FOAmOM6DWjFJhAoZ18x6yFSbkGbRvoDSjz8lTMxSeWTPnFoLQrpdZef5WPc+1LCJdTRiIg476An/tLxZ+MH4hEH68gywRgBHQ6cG4WdI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3775.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(346002)(396003)(39860400002)(136003)(366004)(376002)(5660300002)(4326008)(86362001)(52116002)(31686004)(2616005)(6486002)(6666004)(8676002)(478600001)(6636002)(66946007)(66476007)(66556008)(186003)(16526019)(966005)(8936002)(2906002)(31696002)(36756003)(316002)(83380400001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: hkE4Q73nKoYamwbV6zq6wWUTXGLjjjY5PeWWzpmqZk6bl78G43VYEo5z3CVUTbrhJ3Kug++D8YL0asNwQRm/E131b6dAUbUp7U3iemmwqUfjOoIWqify951XpuZy8kgycqSWvD7FZLXHJ7w4RVb9DoZmA7SE6MAQ1qokqADqt1XQw+AaUAbgD5YxQW4bCPTLXFT1O5MGtbilUOify1KxzQeUuzgk0xrlJGha+ETCPYk9g6U7i0fTflAIISj90NJfriXA2zsgDcYUxYomnoqjqe6cc/rGA1KBcDG3lU0PYtoL2KTSMuyIeZf70RiC6IPfMUH2Rss9gKUqY9hKZlgzS5l6vFDP7b0CrmDkIA/o6zWKbLdEzdSfjNehbww96eNfesgRCKbHa5UNi90vUZuH6f7pXJbn4b/mKI1cMapid+uPsnv+rYhrvvuhHQ8xMWE23uAJrOkDvbcrpfiQG1/WWkgb9ClYrcb8Y8bL/gO/SJh+SiQEuSFugPPygZMJg/zejrSfYZ+JJlAzBbdw8JnJAXASMcujhJyKILtovvhOE01sjgrloyrUplyO1r8uS7qN X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0fc1c0dc-345f-4738-179f-08d823d7b347 X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3775.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2020 07:14:20.7095 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Viuqak/Z/Nya7Lqsxu1Skw20pJ2+uooWlyop35BrsuH2U15TxorQ8zbCzAat///V X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4375 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 08.07.20 um 18:11 schrieb Suraj Upadhyay: > Hii AMD Maintainers, > I plan to convert logging of information, error and warnings > inside the AMD driver(s) to drm_* functions and macros for loggin, > as described by the TODO list in the DRM documentation[1]. > > I need your approval for the change before sending any patches, to make > sure that this is a good idea and that the patches will be merged. > > The patches will essentially convert all the dev_info(), dev_warn(), > dev_err() and dev_err_once() to drm_info(), drm_warn(), drm_err() and > drm_err_once() respectively. Well to be honest I would rather like see the conversion done in the other direction. I think the drm_* functions are just an unnecessary extra layer on top of the core kernel functions and should probably be removed sooner or later because of midlayering. Regards, Christian. > > Thank You, > > Suraj Upadhyay. > > [1] https://dri.freedesktop.org/docs/drm/gpu/todo.html#convert-logging-to-drm-functions-with-drm-device-paramater >