Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2613272lqb; Tue, 28 May 2024 05:40:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUXayOpt7satfHRC73cGpfTrS4lMzQwZX+kchhiN93bexKMtg+j/aFP0iUZgVsSPTcGYulCoX3RkLdfFkXkv1bK8dctYsfU9yKNPGfjTw== X-Google-Smtp-Source: AGHT+IHYSlLYmzNho2lGJ2FXIaZtfgtkfu7CJNUJTLVXb89BJmDT+odujIK7WcNF8PHEdvnEauw8 X-Received: by 2002:a05:622a:48e:b0:43d:f57f:3ebb with SMTP id d75a77b69052e-43fb0ef087cmr133770001cf.55.1716900041801; Tue, 28 May 2024 05:40:41 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43fdd95521bsi3647301cf.809.2024.05.28.05.40.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 05:40:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192320-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="afXj/rzm"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-192320-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192320-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 79E391C21EC2 for ; Tue, 28 May 2024 12:40:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A5DC16D9C0; Tue, 28 May 2024 12:40:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="afXj/rzm" Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2085.outbound.protection.outlook.com [40.107.223.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B571F1EB3F for ; Tue, 28 May 2024 12:40:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.223.85 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716900022; cv=fail; b=oJM0dd+Adsv/lz1b6Wyu2+f3xHYiQm8+d0xZg3HxgpP23NaPQHONwMszUOFTBIob8YFsGPV0RlUtUigMF5L0CnrEDYZftRYwcP1i3JLHmiBpyrujXgim4HiCV/yNqbBvjnf8oVO9g04nh6OQ3uWQeEx0YhJZ3+UXhpA7+Ij7dyU= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716900022; c=relaxed/simple; bh=XG/5mh0vrWP5JocJ9eXlHp7OYCA63g1SSbOWc/FzV0M=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=luLHbQ7vY5R9rc+d6AqmU7bc+ZblBw/qHbiWO1pWKeELvkcNQSuHJpyJhywQ+wLToXcu/WHzYH9Oyu+d71cS6X5KzbJ5rLnVdTfCFXmT36RZSSswqHsiWND7XDx3++Mm1bwcnY8U6GlMo970WCAHjcrnTRGYncdI8+ttD2DMnSk= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=afXj/rzm; arc=fail smtp.client-ip=40.107.223.85 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QUYG7+YWw9dfRL2i5JDHs/ObjrU/1q/lTAoCMLSdchoyWBARF2BZen6MPBFGERqQKUSGgnKesUIoj/hKuILbxZ9y8lTgkaxmrVu815P5wFMJ3VJsLU54C8kuiw3PRKpGcFLpPQvJpfjmgbsIuv6afTK+NSrvpPPHR2LZrt+N7vKyUZrT5T38c3DZetYt7nqQk6wJphoP/qejSHldOhRqcmQeXE3k1eJA52x0Ix8/SzJVE81BRhkKvboPbbO8e59D0IpHAIC2iU5aa8GusNXiLzZwZWtRmrwQhTv7A2GmNVZrrHvEgRCI0JJZV3k6YCAe9wwaDvEq3EBQ38Y1LgD5ww== 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=2jQpNfX1SrUVJzJfxjbFzWhHCjtrdV0lSYqgud9qHcg=; b=TBq+kYgvYZUXZhoDTD4yjTcnsesNTSCIT+xM6sSdrepdwpS5uBzhfFC3bAOHETBt33DIO9BLWHfrqO/qVIBRZhhcNPEzHDp19ly1PavcAAVhLv7944AkO8oyGpzvtbr3HWuuUG7BRsZq+MOpz4RnVLov+0pWFAJ/unP5zpX36KyT6l3NWqLexf3yGiLh3VvKkPiP1Yo7MKH5CoaHx2K46Qa6FMwVJjhat9Vnle84a2Gco4Ln7d+0MepKIxIgR15eK2MANtEX0tH+B/5ZTn5Da5g1qXEsDoIWBJ7b9vJ8Rw8n6rNrhWja79yc7FcmzmbE+wP5IkIncF5O7NcUNaWYBg== 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=2jQpNfX1SrUVJzJfxjbFzWhHCjtrdV0lSYqgud9qHcg=; b=afXj/rzmR+TaK/5LD/iM0C8Ou/JZCD/MGma3zb46J5i4tG8KWk/UhPvHyU1ZX2VbWWtLqQEm4fTx8IzQ54iKxL8/R1RS6QF6lY+IyrVUlmL9KyPxhDKfaAIxZUdGcbB4AVZhGcnvsDhmQuHJKOD1Q2aKgMyqhi1vIoOBDNt7dsI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DS0PR12MB7804.namprd12.prod.outlook.com (2603:10b6:8:142::5) by CY5PR12MB6035.namprd12.prod.outlook.com (2603:10b6:930:2d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.30; Tue, 28 May 2024 12:40:16 +0000 Received: from DS0PR12MB7804.namprd12.prod.outlook.com ([fe80::8327:d71a:ce21:a290]) by DS0PR12MB7804.namprd12.prod.outlook.com ([fe80::8327:d71a:ce21:a290%5]) with mapi id 15.20.7633.017; Tue, 28 May 2024 12:40:16 +0000 Message-ID: <70b0c2dc-0ec7-4b04-9742-e54b6e56e6bb@amd.com> Date: Tue, 28 May 2024 18:10:05 +0530 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/amdkfd: select CONFIG_CRC16 To: Arnd Bergmann , Felix Kuehling Cc: Arnd Bergmann , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Harish Kasiviswanathan , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20240528115050.2831206-1-arnd@kernel.org> Content-Language: en-US From: "Lazar, Lijo" In-Reply-To: <20240528115050.2831206-1-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PN2PR01CA0214.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:ea::9) To DS0PR12MB7804.namprd12.prod.outlook.com (2603:10b6:8:142::5) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR12MB7804:EE_|CY5PR12MB6035:EE_ X-MS-Office365-Filtering-Correlation-Id: 32cbecf1-4edc-4933-a662-08dc7f13538f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|366007|1800799015; X-Microsoft-Antispam-Message-Info: =?utf-8?B?eHA5N0kzRzMxZ3BvSW5XY3BGOVl2V21abThTL0hKdEM4TVZBN2dHNTFEbmJM?= =?utf-8?B?TEVKejNVMThtaUo2RlpKRDgrakJtRHdVYTBtc1pVSkRJY0NPblJvazhtdDZj?= =?utf-8?B?QWZ0bldCWkdRemVZekttRE91OEtpSU5sVmxSNG1HaExoUXk5akJKZlo2SVBB?= =?utf-8?B?by9ROUdJWXNZbUlUbXgvTThLeEFKOE5BbktMNVZsa0Q1a0dycWRBVmN6NGJZ?= =?utf-8?B?RnZkNTgxOE82TXNJZ2JjWkVFd1pCeUd3SzIxUHViYVR5WXR5NzNTMkk2SHJz?= =?utf-8?B?aklOMjhybXJ5RWdEZzlHejFJQ3ltc000Z1BMWU1YcVA4VVZzOFpyNG41aEFS?= =?utf-8?B?VXR4UFhFOUc4Qmg0bWxHSlFVZnFiRUFZclNaTkF1MDBJSUhkbFd4ME5kSVBm?= =?utf-8?B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=?utf-8?B?K1laOVJlWjFhQVRBMUhRVmR4S053Mkw3SElEbEtZQm83cVF6ZjRUdmdPbGd1?= =?utf-8?B?NnNoL2lTWTZDQVRNQXNlcTlOYWY5cW1qT2NrZlBZRDBldHNsb0Z5OVpsKzhP?= =?utf-8?B?WUhPaWgzdHpMU2RQTzQ0ZnM3b0tyQzlKUEQxSmY5dmcwaXpLUkVoT1c4N05Y?= =?utf-8?B?bUR2bXhuQ0JURDVqRHBOZHFMOFY1eHg1Sk1zKzRmZjVYK2tRcFNQVXIzOU0v?= =?utf-8?B?MkdhTFA2VlpXM2tPelpWV3JNaFZzeHZwOEFIcFR3NXlpRk9LOTY0ZW5wTFM5?= =?utf-8?Q?a+0bE9DKzoWUkh6J3DAesCjzDpkWqr4+pqqoJra905zo=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR12MB7804.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(366007)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QStYWVluVThNNW9GejNaaTd0cmFhT3lOMFBBUEhnTmo2S0pBU055b25qcTJx?= =?utf-8?B?K09sd2hUTkkxSk5OWmtieERsYU45YUs1SFI1eW0xaTZoRm8rQ1ZjZURoRUcr?= =?utf-8?B?RFExeStVT3A1cEt5OG1QdW54by9uRmdRQmZhZzZNS1hJZmpOeDd6cW10NUhQ?= =?utf-8?B?VVFaWE8yNFpRSXZzc2ZGd3BPWWhobEl1MjhFWG9mMzlISDhGOEdZLzZlSXhx?= =?utf-8?B?ZXNRbElvVG5pWU9aV1dXb0d2aGhGTFcvZGtqMDl0NkN0OCtPaUduZURqSFlX?= =?utf-8?B?MWN1YlhzL0NxTTBXYURBbW93Y2dhaDlmRk95WjJNKzZQVTI4UEdGd2JaZ0c2?= =?utf-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CrossTenant-Network-Message-Id: 32cbecf1-4edc-4933-a662-08dc7f13538f X-MS-Exchange-CrossTenant-AuthSource: DS0PR12MB7804.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2024 12:40:16.6808 (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: q9m64DHDtOnFFGGWpxAJ9ElXmAkUqAfLXEEr422XAMkn/DlSChkHoZVygNXFteM3 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6035 On 5/28/2024 5:20 PM, Arnd Bergmann wrote: > From: Arnd Bergmann > > The amdkfd support fails to link when CONFIG_CRC16 is disabled: > > aarch64-linux-ld: drivers/gpu/drm/amd/amdkfd/kfd_topology.o: in function `kfd_topology_add_device': > kfd_topology.c:(.text+0x3a4c): undefined reference to `crc16' > > This is a library module that needs to be selected from every user. > > Fixes: 3ed181b8ff43 ("drm/amdkfd: Ensure gpu_id is unique") > Signed-off-by: Arnd Bergmann Thanks for the patch; this is already addressed with - https://patchwork.freedesktop.org/patch/594816/ Thanks, Lijo > --- > drivers/gpu/drm/amd/amdkfd/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/amd/amdkfd/Kconfig b/drivers/gpu/drm/amd/amdkfd/Kconfig > index d3c3d3ab7225..f82595af34bf 100644 > --- a/drivers/gpu/drm/amd/amdkfd/Kconfig > +++ b/drivers/gpu/drm/amd/amdkfd/Kconfig > @@ -6,6 +6,7 @@ > config HSA_AMD > bool "HSA kernel driver for AMD GPU devices" > depends on DRM_AMDGPU && (X86_64 || ARM64 || PPC64) > + select CRC16 > select HMM_MIRROR > select MMU_NOTIFIER > select DRM_AMDGPU_USERPTR