Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2767545rdh; Wed, 27 Sep 2023 12:03:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGJarX+JnZJA+FACIDCkTPdCQsABon9Z69cAjuodqTA09IKs1ajM38ukiMOQCePz62pAdTG X-Received: by 2002:a05:6a00:1404:b0:690:d413:ee13 with SMTP id l4-20020a056a00140400b00690d413ee13mr3073564pfu.23.1695841415758; Wed, 27 Sep 2023 12:03:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695841415; cv=pass; d=google.com; s=arc-20160816; b=GfeqM/GtgoBQIDbT6VyiwCPy2a8ULaLkV1oNf/DiaeW2Tou/HMyMBkRUEhdzFzniPN aKf2dzhFOmWuyASBV/mTxmeIOFRQbxC+LPpt9dWtr3hDpT9JaEKl6MT/E3LzAou4XHyP UiIv1MErhI6iWQsouRXWbx1+sF0dwLcHm+VZ6/Sr/73FkvG6AyptdwpKu+Y58RE2eiEk vLs/E8azxLbmWLkBdKRuvNO9JE/qJv1/hINo782I8I6ZJHFbruY4VuF9hLui1sgN+d8F 6Yl/mevlDlrG43ygTiHlTtW1NVxX1qBOc44+RMoKjO9aof+PVpN1gUjKKw7i56RMrf4Z W7MA== 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:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature; bh=c0Nsa7Qtnrga1lo7WbqdK7bjdH38PJWcNDAlO1V0ocU=; fh=52AoA7F8HVEJPkds0HCSprkzF3dv/jF0UAwZQApbWQY=; b=yHKBRc4Nf+ektN+hPp1OkfKTbEr0Ju+Q6XISQ25VMklWtFQMHviZIDzHB7b68vM2u1 NmLxWi2rLbGseUgbapPmkYSxc7rKm+Ib4mv0lyE3WXnLUCmtsYeRhoSvUrJYb5dfveGG oxUd7oyB3k3QkbdghvPCymAjAs0cX30Gz0nOgsjrggamyJa+Mra7N6ztjcrn2LxjdeWn Fq9dWwm5TCJJeREXpHv/gFap726AjaagIXIdT/gfkNqz+QKtsqd1o/ZxVbYmyn7YXLbI 5yabWpMcR9bBb2Hf7IGU7wNB1fPeQB32QvKgRQd/zg6DF8399K1BGru9kTY+8a60xMW1 PRdg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=LW862p0y; 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::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id u71-20020a63854a000000b00578bdc2ccadsi16684340pgd.197.2023.09.27.12.03.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 12:03:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=LW862p0y; 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::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 7C91980859BD; Wed, 27 Sep 2023 09:26:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231636AbjI0QZp (ORCPT + 99 others); Wed, 27 Sep 2023 12:25:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231659AbjI0QZj (ORCPT ); Wed, 27 Sep 2023 12:25:39 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2073.outbound.protection.outlook.com [40.107.220.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58CF2E6 for ; Wed, 27 Sep 2023 09:25:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e/TmBEeqowe7+jgDsVA94Tq2eal7nTUA+8GmdqQ96xUhBrQ2bV69PzUwb4diY6w2nj8bn5Jl/50RwBG9JEJv2YNdh8bhYUkISvGd1R0c59XQuGToxJ1+2pFWxdRXfRsGKTneNy2U1jYXyXD3YYNW5roSlrB8eQ0VniaJoHjQ6mPzGSsgapoWa9xjhK7FccfTZwOjqFhgPDYKNRwDuQai+9YkSljthXBipqar3JarNOJpvYlRlCAHlVuognRaFfurfmq3DrVg5D3nyJYlYfWFaU4jdDoM5UT9MjQnjaS/TH11+BBj8ldc8JtmNtgOvYAOjfLVKqhGAXcNx6SblY+wFQ== 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=c0Nsa7Qtnrga1lo7WbqdK7bjdH38PJWcNDAlO1V0ocU=; b=DxDfSfN8m34XmWqFCj7TeWdHJwsDWtbgI561yrb4DpioJ8msJIjP7GJwMWkM8t3aPX0VnsrYBuXtmu2E2W5pCImfdSPk8V4mRArla1bceQtw48VvP1d7ry09gTTklhnpkLEsXSKMlhiaOem32qMbEqGz7l0yna+9azVw3OvxtZopCE0/AyXvBH1I3/zq9lLLHISq9lMpNNmbMwNGewvYNScajTXPjiaGY7oqlq9zwLbCUjF5StRTuevzpmwIRYkppXhcm8mDLicRivf/n3x91u8A9ooHMXW7shaXoU4mbagW+pZ8Xm6H1vIPIyZX3jS1GLin996QreJtusUTKMikng== 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=c0Nsa7Qtnrga1lo7WbqdK7bjdH38PJWcNDAlO1V0ocU=; b=LW862p0ysd9+8IalCLozgAnGI3Hl0tGaYAjZNh9e4ae5pdoKBtu0ZW6PFQOiM8xmrjLFVAZgReKyI9hC5aupybSTfgT8QpOhTzRzIlAPBH9zer1hNKoifaluWmYKN8PnBl20A89NXXNUzc6LHC5nvKmdYjYHLcadHbnsm3vx4D8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from PH7PR12MB6000.namprd12.prod.outlook.com (2603:10b6:510:1dc::15) by SJ0PR12MB7457.namprd12.prod.outlook.com (2603:10b6:a03:48d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.22; Wed, 27 Sep 2023 16:25:27 +0000 Received: from PH7PR12MB6000.namprd12.prod.outlook.com ([fe80::65a:db41:7713:c60f]) by PH7PR12MB6000.namprd12.prod.outlook.com ([fe80::65a:db41:7713:c60f%5]) with mapi id 15.20.6813.017; Wed, 27 Sep 2023 16:25:26 +0000 Message-ID: Date: Wed, 27 Sep 2023 21:55:13 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 0/1] drm/amdkfd: Fix unaligned doorbell absolute offset for gfx8 To: Arvind Yadav , Christian.Koenig@amd.com, alexander.deucher@amd.com, shashank.sharma@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, Felix.Kuehling@amd.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20230927161616.3335-1-Arvind.Yadav@amd.com> Content-Language: en-US From: "Yadav, Arvind" In-Reply-To: <20230927161616.3335-1-Arvind.Yadav@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MA1P287CA0007.INDP287.PROD.OUTLOOK.COM (2603:1096:a00:35::24) To PH7PR12MB6000.namprd12.prod.outlook.com (2603:10b6:510:1dc::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH7PR12MB6000:EE_|SJ0PR12MB7457:EE_ X-MS-Office365-Filtering-Correlation-Id: 75efb534-231d-4664-2e20-08dbbf765b82 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: l244lEASqiLDB6tQlG+4MzjSYEiiVT0sxE5wjFcaFgfaudNUWoa9RmDPket/prvd9rF/sIU2yCIMINgmh6lqhpX5ACAb+ELsT1e0xf0pix42PWIP6dg2iwWJtjfYM5gIKzsovAJNYCSbwP/kJwj2EdP6s/1VNTJhuUOd2KP5uqPlKAkJ6lv/FNoRjohck1N2KPJfokxiOxcZkWh6j4vRk0wBKSPNPnMqBdPkntTF8oMZjQxfqdJZflZQfEGORIruxjEquVBbVsCdv1kbLtCh7VdJTFbq1KXOWef2Ko7uYUeuqWrhrex70Cbi0oQW5vEbKofX6+NfMweUgqmfYjBD+Nqo1qmcr0p+TZDoMZlXCNNCdyj/3tptIuSnd7Mfgavb7oRSUMyGrFAE+0SWp/ukgQJHn/NETUw4uB+GbOhIl7jQj+3jFKfghusi5+9jRSWKV4bHh2u3rAQwDcQNIxCf/WbBeOgDH7M6Za1C8dFdAayJJh2blSOjAdS0QYKTGhiD3TCQpaMSUtqj4UDG//jTNaxAOeF+6E4bKSqMACKOLe5hSyCz8ROVDTHCJlJbeqdfBGIdpTzW55+lYHD/8/MICyDzRtUSgkmuuSsOYCEC8e22+TncQOUra4erhG1bX4z0zkTXg8Kuh0H/jj5dzJ5lag== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR12MB6000.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(366004)(376002)(346002)(39860400002)(136003)(230922051799003)(1800799009)(451199024)(186009)(41300700001)(31686004)(66946007)(316002)(8676002)(4326008)(66556008)(66476007)(5660300002)(8936002)(6636002)(83380400001)(4744005)(38100700002)(2906002)(478600001)(6486002)(26005)(6666004)(6512007)(53546011)(2616005)(31696002)(6506007)(36756003)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bHNPR2lKaSt0UFFoZkEzbDVVK1ZUNmNiYm8weGQ4T1BHcXdXSGxoZGg4RzVN?= =?utf-8?B?NlNIM2pvMTA1LysreUFNRXdianppbEY0V2YwWGJZT09od09uV2UxaDhxNC8w?= =?utf-8?B?K3B0RnBDaTlnUXpPTTZFc0psKzJZT0FNbGx6NXNxRHVBNHhUN3Q2dXBsY0gy?= =?utf-8?B?cjhKQU8zWHdtY3Y4ZktYakVVclZoekw5WE1YTkhmUmR4MjVMSThyU0tibnZ1?= =?utf-8?B?aFlWUDU1OXBNM2JmQ29xVDV1Nis4TEN1WVR2dGNpNjhyakJNOEFKWGdhN2Za?= =?utf-8?B?YzNVaHU4cGQrRC9WR3psc3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?= =?utf-8?Q?ruOiSLEYey/6O7VEUAErMqz/s?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 75efb534-231d-4664-2e20-08dbbf765b82 X-MS-Exchange-CrossTenant-AuthSource: PH7PR12MB6000.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2023 16:25:26.9259 (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: 056HHw8OGEmdaJWmVVRJDdwCoQT2zGpIfckn/nRtZQKnntYlGXbJGq1GXr3q0t5vmCDtXgMQQzoSL+Z6ZU8dLQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB7457 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 27 Sep 2023 09:26:02 -0700 (PDT) Adding Felix.Kuehling@amd.com for review. Thanks ~Arvind On 9/27/2023 9:46 PM, Arvind Yadav wrote: > On older chips, the absolute doorbell offset within > the doorbell page is based on the queue ID. > KFD is using queue ID and doorbell size to get an > absolute doorbell offset in userspace. > > This patch is to adjust the absolute doorbell offset > against the doorbell id considering the doorbell > size of 32/64 bit. > > Arvind Yadav (1): > drm/amdkfd: Fix unaligned doorbell absolute offset for gfx8 > > drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) >