Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp334033pxm; Wed, 2 Mar 2022 16:38:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYpX8btthR/VMPOuWifR0oQ5Ys/1CyDEoboRBixYrFi3Nh9ZHA0Qy+Fu2fKWkJoxECgb3I X-Received: by 2002:a17:90a:eb07:b0:1be:f354:940a with SMTP id j7-20020a17090aeb0700b001bef354940amr2489194pjz.43.1646267928928; Wed, 02 Mar 2022 16:38:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646267928; cv=none; d=google.com; s=arc-20160816; b=ewR+YdfUX4Saoifgr9813tjgGeyjjvVZVoE3kHEiQbGNvSDXE0TWoU2pDvxlBB+T/Z NgaRPKkgMKRkIAkINCD+47dEROgibiYCgy010As5l+FrET9GW2gPN50+9Uj8J+QsIaWj GzYMUwZc717SfrOs09rYR8MY+VxS+SPe3avhlgja2iskpQE8HfEyQMTsiEDn1eWqQYKs v9BxvHrEwKp6jpBUL6k5ZBC9u6J9bdXRRnygfABCgIQW8THdkJR0x78uST4JORuK+dt0 C7lJfUdo5Ot61o7bKCtdlwtFg0KUba506nlyR80pL3B1fpYl5KEmRlr2TTpFlcf7dqCS bmSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-filter; bh=5KvOsKwug+N0UsgvLNjMfAoBITxIY5JfWuFek8c6W6I=; b=t9yo3dGH/uGVS9fKEr8tujGjCyiCV57NK4+3nUHPjvf8EJUxr/FSW5PVK3/gon8Z30 zZpMmkf7SpxL5EZiLs+GemKYNvvAE//2PfDFV8QWp60UWOozhsdm1cl+gKF7VjNw1elA BoYE6KuX5Md1uZnrVIox22BzN5BHTGp2QdeqQcgJQwKw2dHYbGGn6voAcl4fOhia68Ki oGQb/lhCi0m2gO8AW2duV3BnbHE6M8J9Cl5tOAmfj1hcPVMmH4YQr4/M0xBGzTf1IxRi k/PyD2oqHhCFgtBxPJYzSRsym8hKLZHWkWHt6gGjI9RdVz17b4DPVQ072Kk3HzgtHTeD 2dow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=N9dJI5zE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x1-20020a170902ec8100b001519d03da99si581835plg.407.2022.03.02.16.38.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 16:38:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=N9dJI5zE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 54E23C7E72; Wed, 2 Mar 2022 15:52:26 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229715AbiCBXxD (ORCPT + 99 others); Wed, 2 Mar 2022 18:53:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229731AbiCBXwr (ORCPT ); Wed, 2 Mar 2022 18:52:47 -0500 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 54B4B1A802; Wed, 2 Mar 2022 15:52:02 -0800 (PST) Received: from [192.168.1.17] (unknown [192.182.151.181]) by linux.microsoft.com (Postfix) with ESMTPSA id 8952E20B7178; Wed, 2 Mar 2022 15:27:56 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 8952E20B7178 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1646263676; bh=5KvOsKwug+N0UsgvLNjMfAoBITxIY5JfWuFek8c6W6I=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=N9dJI5zEX5kl97tkKa4n/yyeKwGJSfbPRAjJRdRj2cYT0nvf7a5CWWu5WO2ahrD3X BBrg5BYPR2rNIwfmni5dyoOL5gK3KVGc6I5IbM/zQkn1Zbiua4k2zM+uj+NVZSu/qW oN8LIYkoxJZyUJdS3hD0OYDnm1Spjh/PsMGUCfJY= Message-ID: <6b691648-96ce-f28e-436e-f5eb4137e73b@linux.microsoft.com> Date: Wed, 2 Mar 2022 15:27:56 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH v3 02/30] drivers: hv: dxgkrnl: Driver initialization and loading Content-Language: en-US To: Greg KH Cc: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, spronovo@microsoft.com, spronovo@linux.microsoft.com References: <719fe06b7cbe9ac12fa4a729e810e3383ab421c1.1646163378.git.iourit@linux.microsoft.com> <739cf89e71ff72436d7ca3f846881dfb45d07a6a.1646163378.git.iourit@linux.microsoft.com> From: Iouri Tarassov In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/1/2022 12:45 PM, Greg KH wrote: > On Tue, Mar 01, 2022 at 11:45:49AM -0800, Iouri Tarassov wrote: > > - Create skeleton and add basic functionality for the > > hyper-v compute device driver (dxgkrnl). > > > > + > > +#undef pr_fmt > > +#define pr_fmt(fmt) "dxgk: " fmt > > Use the dev_*() print functions, you are a driver, and you always have a > pointer to a struct device. There's no need to ever call pr_*(). > There is no struct device during module initialization until the /dev/dxg device is created. Is it ok to use pr_* functions in this case? Should dev_*(NULL,...) be used? I see other drivers use the pr_* functions in this case (mips.c as an example). Thanks Iouri > thanks, > > greg k-h