From patchwork Wed Jul 6 23:30:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Reim X-Patchwork-Id: 951582 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p66NVNAN022859 for ; Wed, 6 Jul 2011 23:31:43 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 250CB9F304 for ; Wed, 6 Jul 2011 16:31:23 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-bw0-f49.google.com (mail-bw0-f49.google.com [209.85.214.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 1A09A9EDD7 for ; Wed, 6 Jul 2011 16:30:38 -0700 (PDT) Received: by mail-bw0-f49.google.com with SMTP id 12so606891bwf.36 for ; Wed, 06 Jul 2011 16:30:38 -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=MsdLxfea1JXy6z0kT5/vebOK7iLGmKs2/CdrpHzxh+Y=; b=X+UeEBZ+murFfWhM1tHwN/SlpoBlNdUcHMQR+S0EBsApwijMWDVTHbxGPf+T4AbE56 lp0oGL18bzG5xDk88cuTLwCqKnkdK9Sd+albhpYwrlLipZVduh+4Y+T0GO9iq0mvPRyr XGDLxWkvtGXk2Ywl4Ecy4GkfRNWX4tloCq7T4= Received: by 10.205.24.79 with SMTP id rd15mr103066bkb.177.1309995038631; Wed, 06 Jul 2011 16:30:38 -0700 (PDT) Received: from localhost.localdomain (p549DAA48.dip.t-dialin.net [84.157.170.72]) by mx.google.com with ESMTPS id g13sm7952711bkd.10.2011.07.06.16.30.33 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 06 Jul 2011 16:30:34 -0700 (PDT) From: reimth@googlemail.com To: Dave Airlie , Alex Deucher , Mario Kleiner , Jean Delvare , Tyson Whitehead , Jason Wessel Subject: [PATCH 3/3] drm/radeon: Log Subsystem Vendor and Device Information Date: Thu, 7 Jul 2011 01:30:10 +0200 Message-Id: <1309995012-5873-2-git-send-email-reimth@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1309995012-5873-1-git-send-email-reimth@gmail.com> References: <1309995012-5873-1-git-send-email-reimth@gmail.com> In-Reply-To: References: Cc: Thomas Reim , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, stable@kernel.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 (demeter2.kernel.org [140.211.167.43]); Wed, 06 Jul 2011 23:31:43 +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.35, 2.38 and 3.0 on Asus M2A-VM HDMI board Signed-off-by: Thomas Reim Reviewed-by: Alex Deucher --- 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 */