From patchwork Fri Jul 29 14:28:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Reim X-Patchwork-Id: 1020862 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p6TEVl95023973 for ; Fri, 29 Jul 2011 14:32:08 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CE659A0926 for ; Fri, 29 Jul 2011 07:31:47 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-fx0-f49.google.com (mail-fx0-f49.google.com [209.85.161.49]) by gabe.freedesktop.org (Postfix) with ESMTP id F21B09E89F for ; Fri, 29 Jul 2011 07:29:40 -0700 (PDT) Received: by mail-fx0-f49.google.com with SMTP id 20so3037402fxd.36 for ; Fri, 29 Jul 2011 07:29:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :in-reply-to:references; bh=rBT1Gd6rRFI/PUh8krktT5utBA+Gbfm2LAj0nAcxbn0=; b=Cllbi89RgsFY7CnPdiHT0fpuhOtlBtTIRWmy0aVlKmi9BMGIUVbSVum3Bct2XImt0i d35jlzwjFV05cf5cmWVx4RYklMNhDikWs5+FOUp4MwKFhOTF2wwyGGE3VePL90Q2+d1b NFgZJmmfarYda7xq8iHLW0i3SaGTCbTbxrR38= Received: by 10.223.61.211 with SMTP id u19mr1847401fah.146.1311949780595; Fri, 29 Jul 2011 07:29:40 -0700 (PDT) Received: from localhost.localdomain (p5B2FE4CF.dip.t-dialin.net [91.47.228.207]) by mx.google.com with ESMTPS id g20sm602304fai.45.2011.07.29.07.29.39 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 29 Jul 2011 07:29:40 -0700 (PDT) From: reimth@googlemail.com To: Dave Airlie Subject: [PATCH 3/4] drm/radeon: Log Subsystem Vendor and Device Information Date: Fri, 29 Jul 2011 16:28:59 +0200 Message-Id: <1311949740-14637-4-git-send-email-reimth@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1311949740-14637-1-git-send-email-reimth@gmail.com> References: <1311949740-14637-1-git-send-email-reimth@gmail.com> In-Reply-To: References: Cc: stable@kernel.org, dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 29 Jul 2011 14:32:08 +0000 (UTC) From: Thomas Reim Log PCI subsystem vendor and subsystem device ID in addition to PCI vendor and device ID during kernel mode initialisation. This helps to better identify radeon devices of third-party vendors, e. g. for bug analysis. Tested for kernel 2.6.35, 2.6.38 and 3.0 on Asus M2A-VM HDMI board Cc: Signed-off-by: Thomas Reim Reviewed-by: Alex Deucher Acked-by: Stephen Michaels --- drivers/gpu/drm/radeon/radeon_device.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index 7cfaa7e..440e6ec 100644 --- a/drivers/gpu/drm/radeon/radeon_device.c +++ b/drivers/gpu/drm/radeon/radeon_device.c @@ -704,8 +704,9 @@ int radeon_device_init(struct radeon_device *rdev, rdev->gpu_lockup = false; rdev->accel_working = false; - DRM_INFO("initializing kernel modesetting (%s 0x%04X:0x%04X).\n", - radeon_family_name[rdev->family], pdev->vendor, pdev->device); + DRM_INFO("initializing kernel modesetting (%s 0x%04X:0x%04X 0x%04X:0x%04X).\n", + radeon_family_name[rdev->family], pdev->vendor, pdev->device, + pdev->subsystem_vendor, pdev->subsystem_device); /* mutex initialization are all done here so we * can recall function without having locking issues */