Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5790965rwd; Mon, 5 Jun 2023 08:35:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5QjYVztoQoolzh1vhXauqgXLLYw+zgBFqe/4Q9EwQM2aWP+0954Klm9UtUaduSYww/7NLG X-Received: by 2002:a05:6a20:8426:b0:112:2843:b546 with SMTP id c38-20020a056a20842600b001122843b546mr8495473pzd.58.1685979343699; Mon, 05 Jun 2023 08:35:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685979343; cv=pass; d=google.com; s=arc-20160816; b=gs9FJKxnMWXq+sfhBJII2//8lfbyZJbV/kMDcX9zvzCp36VbKTwvkMZNZwJkJtnTdd KIYPOkb3m1O6xRnGj8s7EMXW0KmRjBliA4POFNGlJvojQenKtf078TJgLqw2gFHJ7YNO IiXAEJ6Y0f/6uldB6tx4Zz2xQPKQFQSV1FxKno1oOEpNDgnXn1ZFNro8eCkdtJwUZnnO GM5rgOkQzSF2ApgBdDjZqbNINU9drBfK6J6cbGTMYV7WTjUgbSoxBKNVVsZvmXYy4atQ xiwlbA4z27jNvzJnzJy6nmbs+g97SmTckR+h1NLiDxNh3MnZJgQBkm47kbH6VnKZfvd3 ZktA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=ZsLhMZ2mjYQFLctcUqqGtwIYERc+AniRGirTI53J+h8=; b=1A6EuoXU3mUjSrlcasYnmHknWCINeQ9iAh9rgn3QoOqGqqU2HfYGcTXMl982eo/DAM eoBDgmN4jkljHLQMwZ2dlM4eflUr2HI4zasxxdw+S2137NlwaVgOYTaX+EfT090bbJn6 v+BYlsNvLGW2l/X5URZ12E9ZQYRslcVGu8oTL75p09G9ohYmv5EV2WwwABN+Oafdd5LC eySwCl4Wlqfa9P15wJrNovZosozgF6Cg4i3D7hgBK8zDaNdn3y2ka49G/nwMtrED862h ap9/f0q/NImUX7OYN1CxsG5sFd2LNW0Ge9bIQvlF/8QnU/76QsUzp1EHRiaPwCYL+bmm YRkQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=sHZGg75O; 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 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 123-20020a630081000000b00541a9b822cdsi5623107pga.520.2023.06.05.08.35.30; Mon, 05 Jun 2023 08:35:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=sHZGg75O; 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 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234062AbjFEP3F (ORCPT + 99 others); Mon, 5 Jun 2023 11:29:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231984AbjFEP3C (ORCPT ); Mon, 5 Jun 2023 11:29:02 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2058.outbound.protection.outlook.com [40.107.237.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C11894 for ; Mon, 5 Jun 2023 08:29:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EZRGk9bg8kkOl0ywdE+SPbldKLxhUiw5JXlTN04+H8iwiOcFKdyr4Kh5FrC70EkPlLvw2dHxWMbOBplf2YU5ZBRri19PcTE1/PN/A2fKs+kp2W71lK0KjZ+x5Qo42wSh0FckGZ8nIAPUhoIRmHFv53SKZE5xktAiPm7aBkQAYtihhP8e7FBGgkA1Lu+L/7xDscUfbr1++v0q1sw6kB/XcnnjXjzywB8GmpHQTK3gfjhbmMWcLosWpsRvTH4+3L+oIpPbgx6UDlB8jAH4M+JvfDx0oPU9HhwnGTfgtjVXzv5+82ICsJKlnE6K1bXrPClmC0FUbL+w+sypTj8BqOO9eQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZsLhMZ2mjYQFLctcUqqGtwIYERc+AniRGirTI53J+h8=; b=L5yww7TyAaJDENEUTHmJe8ZMYp6+TWv+mjqjr/kHqBegUnxkg8YJlzdvSxOUmBhgfPet9mVF2zGwFI/C/hMsEDP73VMgQbq62CssA2Kqv2RqmSYZey7ax1gZklssW2iAAbOviLXY2gC2HVQmPLMdq2od7MxvnIVCepOegiI1SVj33Tt41zGGnC8MZt0WTiLNm+8zs13gw+3IU/yJSxHU8w1Jgxq7qqBk+g85bf8gYnRlsQPYfTMXwb++m+ojGQIg9zd8j+DRIIOqeFYl4xFPvSoyyRGS0hu2wiUsMJEuudrv48d+E6XvZYIp5UXzdXMnd514T9Or6TObj60Rk3aMow== 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=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZsLhMZ2mjYQFLctcUqqGtwIYERc+AniRGirTI53J+h8=; b=sHZGg75OeGYMMWUgqeywwoy3rXVaJek0vGRCIoIrhAD5DYrXdOveA0V2Ah+2xVuzakfgJeCciy3VggeztOMBMnj9oEAo1wv9aFU9fqLPkz64/mZ3Pfwjie8M91WGZuhO+z3bpFZ+XeqN1T/4HxGqBFJVDnkX6wtcbRxwWPhKpms= Received: from BL1PR12MB5144.namprd12.prod.outlook.com (2603:10b6:208:316::6) by CH0PR12MB5138.namprd12.prod.outlook.com (2603:10b6:610:bd::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.32; Mon, 5 Jun 2023 15:28:57 +0000 Received: from BL1PR12MB5144.namprd12.prod.outlook.com ([fe80::c549:4aeb:a02f:56b2]) by BL1PR12MB5144.namprd12.prod.outlook.com ([fe80::c549:4aeb:a02f:56b2%4]) with mapi id 15.20.6455.030; Mon, 5 Jun 2023 15:28:57 +0000 From: "Deucher, Alexander" To: Paul Menzel , "Koenig, Christian" , "Pan, Xinhui" , David Airlie , Daniel Vetter CC: "amd-gfx@lists.freedesktop.org" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] drm/amdgpu: Log if device is unsupported Thread-Topic: [PATCH] drm/amdgpu: Log if device is unsupported Thread-Index: AQHZl8GmBf1fuDCUxkan6FATlzGhAa98VOew Date: Mon, 5 Jun 2023 15:28:57 +0000 Message-ID: References: <20230605152300.171794-1-pmenzel@molgen.mpg.de> In-Reply-To: <20230605152300.171794-1-pmenzel@molgen.mpg.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ActionId=929ec35b-e2c4-4b6d-8fef-54cc674948f3;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ContentBits=0;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Enabled=true;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Method=Standard;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Name=General;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SetDate=2023-06-05T15:27:16Z;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BL1PR12MB5144:EE_|CH0PR12MB5138:EE_ x-ms-office365-filtering-correlation-id: 178d5a55-8064-4a72-be3c-08db65d9941e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: J3wifOQ1vbZz7h3qBHz2cTEUUEZHVEsbvDv4xeymdsspKA262+rVcM2l/9hPhfjEL0kxZXBPRY7kwQEd9LSqBymhdVn6YlZSzEtFziYcaYeumNWQ+F3mpD++F5BPDQvU1SltPaRxfhQtgb84kLCKDvWCb6/xgh+Q47OKOIAv8/1KI81CqPaY3GD3K0VArK0+SoACIXOBzdmFb3lGNj1eZl1zWP8t9jR5CqmYFa2yy8+MsR2ayjtZKRDt8qnOlBbvtCGvLYS6UaBnMQD3TA42rQ0VHm4/xReLZtV2bThJKsbxiop8pdl+a+c9ayQR3cYqtoy8eN4+k1SOn58JIuJZxXgxjZaYCGfaaz30fTDTEevN2mooQs/r/aAQt7IWqAVXsb3PJLDIswpCI1xRoAS2rdtdIWya3Pr6gV8aTStLeCTrAO8NpxZl2prAHcinMrsc72XovJHGE3FsHAzVkIGIhLA16mPaD2fKNFyRvfV+oFsinkRkPaJMDdHO9G2PoK5zegtZRkG3Aadhe3oCRZSYvTutXRdBkQPCW4g7mN3xqBz9napIX+GjB8lTnrJNL9Pv x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL1PR12MB5144.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(346002)(366004)(396003)(39860400002)(376002)(451199021)(110136005)(54906003)(2906002)(38070700005)(71200400001)(33656002)(478600001)(86362001)(52536014)(38100700002)(41300700001)(8936002)(8676002)(5660300002)(55016003)(316002)(4326008)(66556008)(76116006)(64756008)(66476007)(122000001)(83380400001)(66946007)(66446008)(6506007)(9686003)(53546011)(26005)(186003)(966005)(7696005);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?zf1UspMa/L5fHrRQN/LQMG/SSCaI/W0D/9L8ZyMmMD/qSw0z8VD9G+9E23TM?= =?us-ascii?Q?VWX1yaJQHa9uJD4NrSD7U38/dB0O3oqhu3d73Lb0/Z4qdXK7W8b/B+J+McP+?= =?us-ascii?Q?u8daC5ryDS1ifvuD4X396G7cwfZR1N7sB7rYj+JOtBPDbUGuwUpzrVsxS2sw?= =?us-ascii?Q?TZRibnctKof3UtMBPYkivncmcl3ozdVpzQROVyyp4OjNODepzFdQ6OvwYCrw?= =?us-ascii?Q?zX0pcnqi9k7/6SZBz2FijPbVh9ZdHBPtUTR6TZ8E5uBeaPUqUKMOL+GwwFkv?= =?us-ascii?Q?8vzjvLqjHXqIVBS5bjhoL4NMPBIINjPLzCWx4WHCYo3gl4ehEIsRis7CJTJn?= =?us-ascii?Q?MyLlycFH8ciEUBCTgfGOD2ysd4juncF0R0TP3Mc6a1MPCELIh1ozT7k0b2oa?= =?us-ascii?Q?rJVpYl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= =?us-ascii?Q?hMKEz/lPUCxo3q1yMc2MGcZUylrnQfNWmQcigaxabrqrO4OCyU1YtgL/PlGv?= =?us-ascii?Q?6DrxSejKERuamZlnNpL+Jg16CpC8hSKH1Z4nP0JY+mHxWVjIr3OmOYO/NgR5?= =?us-ascii?Q?o0omB5XTZc7Ds78qEEyCS9jkyE51OpzHrGKfzok19aMfOllh1S+i1RhhJWMR?= =?us-ascii?Q?T2axzFaaMWKB8k511NdeNUpSw33X4XPB1O92IqrmL/9fe+y1zlBMKXktPk7b?= =?us-ascii?Q?Z4VdSVfSg1lQGjXogaI=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL1PR12MB5144.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 178d5a55-8064-4a72-be3c-08db65d9941e X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jun 2023 15:28:57.0342 (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: o2oB7g3kuHAvo0FPuOhjhE+NhzVJgJaemDJ2f3lBMlx86HozWzdMTWMzP48bys5Q5DXtUZt1O9OdYcMVy11SHQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5138 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 [AMD Official Use Only - General] > -----Original Message----- > From: Paul Menzel > Sent: Monday, June 5, 2023 11:23 AM > To: Deucher, Alexander ; Koenig, Christian > ; Pan, Xinhui ; David > Airlie ; Daniel Vetter > Cc: Paul Menzel ; amd-gfx@lists.freedesktop.org; > dri-devel@lists.freedesktop.org; linux-kernel@vger.kernel.org > Subject: [PATCH] drm/amdgpu: Log if device is unsupported > > Since there is overlap in supported devices, both modules load, but only = one > will bind to a particular device depending on the model and user's > configuration. > > amdgpu binds to all display class devices with VID 0x1002 and then > determines whether or not to bind to a device based on whether the > individual device is supported by the driver or not. Log that case, so us= ers > looking at the logs know what is going on. > > Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2608 > Signed-off-by: Paul Menzel > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c > b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c > index 86fbb4138285..410ff918c350 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c > @@ -2062,8 +2062,10 @@ static int amdgpu_pci_probe(struct pci_dev > *pdev, > > /* skip devices which are owned by radeon */ > for (i =3D 0; i < ARRAY_SIZE(amdgpu_unsupported_pciidlist); i++) { > - if (amdgpu_unsupported_pciidlist[i] =3D=3D pdev->device) > + if (amdgpu_unsupported_pciidlist[i] =3D=3D pdev->device) { > + DRM_INFO("This hardware is only supported by > radeon."); > return -ENODEV; I think this will confuse users even more. As there will be a new "error" = message reported. I'd suggest either dropping the message in init per my p= roposed patch or just leaving things as is. Alex > + } > } > > if (amdgpu_aspm =3D=3D -1 && !pcie_aspm_enabled(pdev)) > -- > 2.40.1