Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3488869rdh; Thu, 28 Sep 2023 13:13:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHvpUPEGBia1ZA/v80wcQjrsnYA0SOE7De3MCQ2LCLC7GRQeEEbzDa/U4UqqP+jZ4JVUuyP X-Received: by 2002:a17:90b:fd0:b0:270:1614:11c7 with SMTP id gd16-20020a17090b0fd000b00270161411c7mr3570137pjb.2.1695931981259; Thu, 28 Sep 2023 13:13:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695931981; cv=pass; d=google.com; s=arc-20160816; b=LvYWa8fJbDoi+Mt/qWFkNLxtNgVZatGoGnBfXN7Cupjdb4z+5tkyk14ad99qu1T9oT qKAfxNfnNJFCsjs1j/ikPcCnNXBgEcLhsoU0qxY89Pj9cZMHvX5/FMVl9PDJX5isOpYK FgHyPqSMETPxcJ2A3fhMZG7lA2pDXp1U00dIA87t/7YCQZQ99lbOt3DFdngxMxqtKtRd GuN62/Dxh67mnmU+Yocu8ibQ6g1HQmKhU26xWcttTmJAU00cwTZlX61UvXctJoscPHXb 2RQkEmrIgJb6NGtcA91RK7TEaogXbSRvKr7/FqonBJhApYZGzO1Yj5s1rlIHOvAgxaym z33Q== 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 :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=BU36oH8KD8nke11hz4CMuuzBEc1nIHs4Gkf1h/uVV2U=; fh=8BTtaUAUCQipgVwcTv3oN/ArADwxMxJOv7TXn99JXd8=; b=wIaTGh8gFLtQfTq5vpEZOS0xVG4uVQTA/83Q/R+CIyeyey+HCrax6BZqaoZ2c94pq3 g4M9rjHkydGyu6m5jZ+AM+NSC7HEoVBX6Hqvg3kXCgyMkawlHT03Q88a8hG6YmoaWo4H Na8ruhMKxFF12v0ajKSRspFK98yEqPKuJa8133qFbOPsDcld3udte3wkyQItAZsz4KtJ FgcXbbEl3SOqx46wKpIYX4DbuvgCbJNLLyzvZAQptgl6vdJZPUtXwyNXfPoS55fCwe+6 1ovX2McOT1it9XJR4+Vn3VktoodkK7kQBOYzivgBBBfF6JECrmk1xYxzHfTdWAKeDnfd iNbw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=jk6XOaX8; 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 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id s16-20020a17090aba1000b0026d034f6baesi10147184pjr.117.2023.09.28.13.13.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 13:13:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=jk6XOaX8; 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 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id D3D1C80BB521; Thu, 28 Sep 2023 08:39:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231847AbjI1Piy (ORCPT + 99 others); Thu, 28 Sep 2023 11:38:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231332AbjI1Pix (ORCPT ); Thu, 28 Sep 2023 11:38:53 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2079.outbound.protection.outlook.com [40.107.237.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91A69B7 for ; Thu, 28 Sep 2023 08:38:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iSteXhysSi62zOO8DRRx5bukuwJKyqmYQ2lzrXQz95LO3vN/KSMpwXyJCzFERnLnqJugdyzxCyl9dp90T57qptA3TFA8v1Y0wf2pTBvydAcAG+zmPNBDohzx1U7X6h/b3M65onpyt5TJ2Dz446IqsQrF55mc5NnYz2oNK5GUQnuuLNVhm5wQfdHq2qqyeSY1qX+h0C/1bcaGss+DmpadbT4jRLieGJXUQZb7r4W0nSZtM5llX8Ef2KVl6zI5Xvcp550cLN07nyQd3ccSR6bsA847waKh39yQOviLiFLxeEo1bCtBXrbXPWLc2KUOOzXUgv/44F+Lfa12yxiUo+Uu2Q== 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=BU36oH8KD8nke11hz4CMuuzBEc1nIHs4Gkf1h/uVV2U=; b=T9oA3CeRKk3dMowqkyCpPIIuBHRj7OD5u1FOF0Goow2Yi0oecvNLwlMy93v0ClnSUWkVZhJ7cQAiKXGt3bQU1NnXtoaOllEMhnYotoxtEdeYm4VsrOt3fGa+6aSJnh6gpJPXEVK+OmG7b5SBdUZFGhs49hafvKLNqi1PvxiW+pPdyNBl+GwzavY5ivgMPlQAALQCf07ztzsI8mwPFe8gD6Ih98wRtmvoLgTyWcXfPVWDw+6FzZGJfaH4zQULFytGKxxsW6Goa79tyI5q80tb3+29vUbw56HN5mga9L6mz1i9QwtoiSgxIxTq2d1cSyr4sQAcagOZ35qj/puL4MH8gA== 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=BU36oH8KD8nke11hz4CMuuzBEc1nIHs4Gkf1h/uVV2U=; b=jk6XOaX8MICLOErG11TJyy290efPTaji1xTzAdDRIbpW5/P299QFp1l9DjcslpDsc2IUGmeU4uTiHKnJP1R5u3rqfGKnkJ3mxkl+Xzwq1XYnxedYyOx4kQyP9o3uQfRQc/SnzeIUHryTes91LTcEjJkyG/Qr3qbcAdk8txl1hdE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from SJ0PR12MB5673.namprd12.prod.outlook.com (2603:10b6:a03:42b::13) by DM4PR12MB5325.namprd12.prod.outlook.com (2603:10b6:5:390::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.21; Thu, 28 Sep 2023 15:38:46 +0000 Received: from SJ0PR12MB5673.namprd12.prod.outlook.com ([fe80::24b9:2521:84eb:2471]) by SJ0PR12MB5673.namprd12.prod.outlook.com ([fe80::24b9:2521:84eb:2471%6]) with mapi id 15.20.6813.024; Thu, 28 Sep 2023 15:38:46 +0000 Message-ID: <8c9c3b5b-ba1e-ba07-3001-242eab9ca1a6@amd.com> Date: Thu, 28 Sep 2023 17:38:38 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v2 1/1] drm/amdkfd: Fix unaligned doorbell absolute offset for gfx8 Content-Language: en-US To: Felix Kuehling , "Joshi, Mukul" , "Yadav, Arvind" , "Koenig, Christian" , "Deucher, Alexander" , "Pan, Xinhui" , "airlied@gmail.com" , "daniel@ffwll.ch" Cc: "dri-devel@lists.freedesktop.org" , "amd-gfx@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" References: <20230928095427.4337-1-Arvind.Yadav@amd.com> <20230928095427.4337-2-Arvind.Yadav@amd.com> <8cd0539d-5d5e-e670-9577-7db72393b784@amd.com> From: Shashank Sharma In-Reply-To: <8cd0539d-5d5e-e670-9577-7db72393b784@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: BE1P281CA0363.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:82::23) To SJ0PR12MB5673.namprd12.prod.outlook.com (2603:10b6:a03:42b::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR12MB5673:EE_|DM4PR12MB5325:EE_ X-MS-Office365-Filtering-Correlation-Id: 9fe207ec-ac3f-4c22-996f-08dbc03900df X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cqO0Ag17ujtaD8Pnq4T6lwkEgAHmjdJ9+hj66tRsHeJ13yh2JnEH+claTjZMhHJ1yXI4ZCW9Iz62BV5p+oR6Xh+xKOBCRaFHRuBcfgUbTlefa4MEudWE8V4ZbwqJ916ahUOXplkvtc0m77GEGTOeIKPWLrVPQE7eTNUiloQki5HH83wOu9cZ2yPbWMyJCWBxcPaOKiJAX5QQE+uTrsgQEAlgiANUaVxxdA1YBsnjr5D/plsD48Sd2SJDmINKupc2u6YwrrYL4RXHS3rntM1izBQ0LH1sHmDGfge4dN6XlYU1L/yHvqZdXCbPdUwQuoaNBEJmnQXPrDSLS/Ht9dQWA5Ea6Mz3xlPddLC9qgiUO4ImQlLGZM9yI5QE4xFYF98wsn9JYtqXndAiISQSnsFUONALoNg/6Ei4fNI3P+PHvud0aN+Yma1oCdHjECp1X9bTRj/AjVXIk3/ukiBcyG9Odsm4gCfRh3HHbq3z4juU0GcL2vL7D7nl+OHrr+0qth2sqpNVxyiKG5J7Xp6l5Uz4XWePUc+qVLH/0qlJO46iFQKLYHo3cAUR8JkM7iyGcjFMmyGoXTqaA33Vs0l5qfOaPnp2NRmZr3qcOpxbGS32X5nz2JDIyiBntt80VbOKwSQmJm+n86cI9a9Gp3Q5xnGaOhSLFSbBW1tDzlou/TJM8OM= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR12MB5673.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(346002)(366004)(376002)(39860400002)(136003)(230922051799003)(1800799009)(64100799003)(451199024)(186009)(921005)(86362001)(31696002)(5660300002)(44832011)(41300700001)(8676002)(4326008)(8936002)(2906002)(38100700002)(6486002)(6666004)(478600001)(6512007)(6506007)(36756003)(53546011)(83380400001)(2616005)(31686004)(26005)(66476007)(66556008)(316002)(54906003)(66946007)(110136005)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MjIzbG5Sd0t6cUNpTW9wbWRJQTJpd2FGc1FtT0Z2RzB4Nm9nMXZJZlpJSTRT?= =?utf-8?B?Z3hqWlN5cmNGUFpkcERVWlo2QzB1MFltNlpLa3hLK29xbi9YRGZBbi81d1FF?= =?utf-8?B?MlZJZXJqZUNwdy94ZjVoeVdUY0xBMjV2UUF1bGVwVlIxVTBWRERLa3dyeG80?= =?utf-8?B?VkRTN2FxO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TEVPZ3RFTXpi?= =?utf-8?B?UXJ0YmM2bnRPQjl0WjVuSFdjSTBiQ09RZjdobjZLOW9ZTGd3ZUpPeHFZZWRK?= =?utf-8?B?SThjOEJwb21pU0NVWTJpZVB6clp4TTlGbHhNSTZjLzREbXovQXpuME9SM3Nm?= =?utf-8?Q?RKu2tnVjgUjrm6mv7Uq8DG9wB?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9fe207ec-ac3f-4c22-996f-08dbc03900df X-MS-Exchange-CrossTenant-AuthSource: SJ0PR12MB5673.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2023 15:38:46.6834 (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: safzMhXVXg0//VM7N9NHuTF3suW7UGf7z5CZnjnDiDC9EeLCC18SYXMVJ8xvcCdwUNDww/4fKM9QiZDBFqsSjg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5325 X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 28 Sep 2023 08:39:12 -0700 (PDT) Hello Felix, Mukul, On 28/09/2023 17:30, Felix Kuehling wrote: > On 2023-09-28 10:30, Joshi, Mukul wrote: >> [AMD Official Use Only - General] >> >>> -----Original Message----- >>> From: Yadav, Arvind >>> Sent: Thursday, September 28, 2023 5:54 AM >>> To: Koenig, Christian ; Deucher, Alexander >>> ; Sharma, Shashank >>> ; Kuehling, Felix ; >>> Joshi, Mukul ; Pan, Xinhui ; >>> airlied@gmail.com; daniel@ffwll.ch >>> Cc: amd-gfx@lists.freedesktop.org; dri-devel@lists.freedesktop.org; >>> linux- >>> kernel@vger.kernel.org; Yadav, Arvind ; Koenig, >>> Christian >>> Subject: [PATCH v2 1/1] drm/amdkfd: Fix unaligned doorbell absolute >>> offset >>> for gfx8 >>> >>> This patch is to adjust the absolute doorbell offset against the >>> doorbell id >>> considering the doorbell size of 32/64 bit. >>> >>> v2: >>> - Addressed the review comment from Felix. >>> >>> Cc: Christian Koenig >>> Cc: Alex Deucher >>> Signed-off-by: Shashank Sharma >>> Signed-off-by: Arvind Yadav >>> --- >>>   drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 9 ++++++++- >>>   1 file changed, 8 insertions(+), 1 deletion(-) >>> >>> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c >>> b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c >>> index 0d3d538b64eb..c54c4392d26e 100644 >>> --- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c >>> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c >>> @@ -407,7 +407,14 @@ static int allocate_doorbell(struct >>> qcm_process_device *qpd, >>> >>>        q->properties.doorbell_off = amdgpu_doorbell_index_on_bar(dev- >>>> adev, >>>                                                                  qpd- >>>> proc_doorbells, >>> -                                                               q- >>>> doorbell_id); >>> +                                                               0); >>> + >> It looks like amdgpu_doorbell_index_on_bar() works only for 64-bit >> doorbells. >> Shouldn't it work for both 32-bit and 64-bit doorbells considering >> this is common >> doorbell manager code? Yes, You are right that the calculations to find a particular doorbell in the doorbell page considers a doorbell width of 64-bit. > > I could see this argument going either way. KFD is the only one that > cares about managing doorbells for user mode queues on GFXv8 GPUs. > This is not a use case that amdgpu cares about. So I'm OK with KFD > doing its own address calculations to make sure doorbells continue to > work on GFXv8. > > It may not be worth adding complexity to the common doorbell manager > code to support legacy GPUs with 32-bit doorbells. I was thinking about adding an additional input parameter which will indicate if the doorbell width is 32-bit vs 64-bit (like is_doorbell_64_bit), and doorbell manager can alter the multiplier while calculating the final offset. Please let me know if that will work for both the cases. - Shashank > > > Regards, >   Felix > > >> >> Thanks, >> Mukul >> >>> +     /* Adjust the absolute doorbell offset against the doorbell id >>> considering >>> +      * the doorbell size of 32/64 bit. >>> +      */ >>> +     q->properties.doorbell_off += q->doorbell_id * >>> + dev->kfd->device_info.doorbell_size / 4; >>> + >>>        return 0; >>>   } >>> >>> -- >>> 2.34.1