From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 54AC4C433F5 for ; Thu, 31 Mar 2022 17:28:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EF56B10ED99; Thu, 31 Mar 2022 17:28:01 +0000 (UTC) Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by gabe.freedesktop.org (Postfix) with ESMTPS id C109010F43C for ; Thu, 31 Mar 2022 17:15:27 +0000 (UTC) Received: by mail-wr1-x431.google.com with SMTP id m30so754379wrb.1 for ; Thu, 31 Mar 2022 10:15:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=X2OXV90aO+ODMFfuSOMa4DDXkG0Jjwo9L8KTnXeA4Kk=; b=PqBZtpUPmhfAj1raRjgQALlfKWfXQPEXvq3x7gojRbU6+/VShr/zvJvItrBKZpXbLd dBpxrF/b4HTeg8y9AT6zJ81ItjH5NSGldowXm//os/Db0ZpIaTwQ74Q6I8WLdltnV3Vd M6e+NQhaVjl6rquODd2VNjTIdnwzz/2hTY46ZISGHX3BL+LoPs1/kZS8XtxFG82kjTg7 zhs7dTMqfI8vDYTIMPL3q03M+OGdh8HoJYU1LpwHfanHUCYq0PVpurqAMHeq99QiFUoe 4BgeSdT9ZoIaU9nevG92ViaO6GU1mTxXBzxr+MIZWmf93EfSEbb/NhA5I1Kg+djEa82k rgCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=X2OXV90aO+ODMFfuSOMa4DDXkG0Jjwo9L8KTnXeA4Kk=; b=4YhAPIY/8OmYw22BcnmMMJX9nmFlcqnIv/T1x0yd0emIpwDmbHNjCm2C+IlZYzJysU PMlvoTP4Fs8uqrAb0QboRa11bFpOV/bIA67XZekQq02AEPfS3IhMjRULdadNOHeApCIf E11z48l+3H+LfpS/+lyFojd9h3P7rgpl7h/lWyR0ZHVto/dvORuQ2GhRR7cQyF8vKb7f USRas0qSilGHGpyh5cGn1mqWStkwbYGlQS356/7tJdeZ3E18/PWvSj//XtbTJkpKWigr keoxBZpvh5B1KSoio5y0jyvjapg1e75faxa4fqVEm2LZrSKRvs/0ANlB9tabixu9+dED incA== X-Gm-Message-State: AOAM532M8xcY1ftTNJLpdfrelZpJ2XuoHkjBng+mFmCeNb7gekLwrg4K 3RSOr1EK0+I5RShEvIx6MXv28g== X-Google-Smtp-Source: ABdhPJz2ULczMysarpVs35MfQnPspUQoA02V0ccHg5zENWursAdxOTaN4Q79HUBEnAhpNjkSCP3GpQ== X-Received: by 2002:a05:6000:1545:b0:205:a82d:8007 with SMTP id 5-20020a056000154500b00205a82d8007mr4987338wry.88.1648746926278; Thu, 31 Mar 2022 10:15:26 -0700 (PDT) Received: from google.com (cpc155339-bagu17-2-0-cust87.1-3.cable.virginm.net. [86.27.177.88]) by smtp.gmail.com with ESMTPSA id n15-20020a05600c500f00b0038cfb1a43d6sm7968863wmr.24.2022.03.31.10.15.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Mar 2022 10:15:25 -0700 (PDT) Date: Thu, 31 Mar 2022 18:15:23 +0100 From: Lee Jones To: Felix Kuehling Subject: Re: [PATCH v2 1/1] drm/amdkfd: Create file descriptor after client is added to smi_clients list Message-ID: References: <20220331122117.1538913-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailman-Approved-At: Thu, 31 Mar 2022 17:28:01 +0000 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , "Pan, Xinhui" , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Daniel Vetter , Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" On Thu, 31 Mar 2022, Felix Kuehling wrote: > > Am 2022-03-31 um 08:21 schrieb Lee Jones: > > This ensures userspace cannot prematurely clean-up the client before > > it is fully initialised which has been proven to cause issues in the > > past. > > > > Cc: Felix Kuehling > > Cc: Alex Deucher > > Cc: "Christian König" > > Cc: "Pan, Xinhui" > > Cc: David Airlie > > Cc: Daniel Vetter > > Cc: amd-gfx@lists.freedesktop.org > > Cc: dri-devel@lists.freedesktop.org > > Signed-off-by: Lee Jones > > Reviewed-by: Felix Kuehling > > I will apply to patch to amd-staging-drm-next. > > > --- > > > > CAVEAT: This patch is completely untested > > I can't seem to find a configuration strategy to compile test this > > allyesconfig and allmodconfig do not appear sufficient > > That's very strange. It should get compiled if CONFIG_HSA_AMD is > enabled. Okay, I figured it out. Apparently you can't give 'drivers/gpu/drm/amd' as a build param. 'drivers/gpu/drm' works as I expect however. > I will at least compile-test it before I submit. Great, thank you. -- Lee Jones [李琼斯] Principal Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 85493C433F5 for ; Thu, 31 Mar 2022 17:15:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C33BF10F43C; Thu, 31 Mar 2022 17:15:28 +0000 (UTC) Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by gabe.freedesktop.org (Postfix) with ESMTPS id B3D1610F43A for ; Thu, 31 Mar 2022 17:15:27 +0000 (UTC) Received: by mail-wr1-x431.google.com with SMTP id j18so713281wrd.6 for ; Thu, 31 Mar 2022 10:15:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=X2OXV90aO+ODMFfuSOMa4DDXkG0Jjwo9L8KTnXeA4Kk=; b=PqBZtpUPmhfAj1raRjgQALlfKWfXQPEXvq3x7gojRbU6+/VShr/zvJvItrBKZpXbLd dBpxrF/b4HTeg8y9AT6zJ81ItjH5NSGldowXm//os/Db0ZpIaTwQ74Q6I8WLdltnV3Vd M6e+NQhaVjl6rquODd2VNjTIdnwzz/2hTY46ZISGHX3BL+LoPs1/kZS8XtxFG82kjTg7 zhs7dTMqfI8vDYTIMPL3q03M+OGdh8HoJYU1LpwHfanHUCYq0PVpurqAMHeq99QiFUoe 4BgeSdT9ZoIaU9nevG92ViaO6GU1mTxXBzxr+MIZWmf93EfSEbb/NhA5I1Kg+djEa82k rgCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=X2OXV90aO+ODMFfuSOMa4DDXkG0Jjwo9L8KTnXeA4Kk=; b=r60t1zkVgsT3P/36m9aDS7CjJNHtX4GN18IBq0lGqV0ILTfAet+LvH0Awkgj8wsNad 4wwKFwyrcodBVGKDJFfRVLXu2o+GyDB5TDPtCAYdtmbCGHXX8Y/6ygSGeNZ/gzVQKgVk 2ZESEN5UUvqE5yO65Ohe5oP9ZFtuOQV6lJLv5udd/8yuSW1ZLoz40orTQQ+GZUcWpLcK tDUvMVssZWD1SHWWVm+hHQo48m44uzUEDqzbUF3EzKx8o4fG0M8BtkzkMNG2yZiPwyeU CVV8P3jlY4YBv8pvYmTUW0YxTpfpIzYgQKcfBCsuSP4i+tGSPM3KB1T77rZ8qPyNvAzn 9TNw== X-Gm-Message-State: AOAM533HXbZ8Dju4dMJWoVeFCbd7zKdWpfnWu7QB5w6ZGEsXzSDZevj6 JK6HDLPpMt1ULWiIvzP9Mr4DFw== X-Google-Smtp-Source: ABdhPJz2ULczMysarpVs35MfQnPspUQoA02V0ccHg5zENWursAdxOTaN4Q79HUBEnAhpNjkSCP3GpQ== X-Received: by 2002:a05:6000:1545:b0:205:a82d:8007 with SMTP id 5-20020a056000154500b00205a82d8007mr4987338wry.88.1648746926278; Thu, 31 Mar 2022 10:15:26 -0700 (PDT) Received: from google.com (cpc155339-bagu17-2-0-cust87.1-3.cable.virginm.net. [86.27.177.88]) by smtp.gmail.com with ESMTPSA id n15-20020a05600c500f00b0038cfb1a43d6sm7968863wmr.24.2022.03.31.10.15.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Mar 2022 10:15:25 -0700 (PDT) Date: Thu, 31 Mar 2022 18:15:23 +0100 From: Lee Jones To: Felix Kuehling Subject: Re: [PATCH v2 1/1] drm/amdkfd: Create file descriptor after client is added to smi_clients list Message-ID: References: <20220331122117.1538913-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , "Pan, Xinhui" , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Thu, 31 Mar 2022, Felix Kuehling wrote: > > Am 2022-03-31 um 08:21 schrieb Lee Jones: > > This ensures userspace cannot prematurely clean-up the client before > > it is fully initialised which has been proven to cause issues in the > > past. > > > > Cc: Felix Kuehling > > Cc: Alex Deucher > > Cc: "Christian König" > > Cc: "Pan, Xinhui" > > Cc: David Airlie > > Cc: Daniel Vetter > > Cc: amd-gfx@lists.freedesktop.org > > Cc: dri-devel@lists.freedesktop.org > > Signed-off-by: Lee Jones > > Reviewed-by: Felix Kuehling > > I will apply to patch to amd-staging-drm-next. > > > --- > > > > CAVEAT: This patch is completely untested > > I can't seem to find a configuration strategy to compile test this > > allyesconfig and allmodconfig do not appear sufficient > > That's very strange. It should get compiled if CONFIG_HSA_AMD is > enabled. Okay, I figured it out. Apparently you can't give 'drivers/gpu/drm/amd' as a build param. 'drivers/gpu/drm' works as I expect however. > I will at least compile-test it before I submit. Great, thank you. -- Lee Jones [李琼斯] Principal Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 722D3C433F5 for ; Thu, 31 Mar 2022 17:15:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230197AbiCaRRR (ORCPT ); Thu, 31 Mar 2022 13:17:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbiCaRRQ (ORCPT ); Thu, 31 Mar 2022 13:17:16 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3145B7F7 for ; Thu, 31 Mar 2022 10:15:27 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id a1so682174wrh.10 for ; Thu, 31 Mar 2022 10:15:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=X2OXV90aO+ODMFfuSOMa4DDXkG0Jjwo9L8KTnXeA4Kk=; b=PqBZtpUPmhfAj1raRjgQALlfKWfXQPEXvq3x7gojRbU6+/VShr/zvJvItrBKZpXbLd dBpxrF/b4HTeg8y9AT6zJ81ItjH5NSGldowXm//os/Db0ZpIaTwQ74Q6I8WLdltnV3Vd M6e+NQhaVjl6rquODd2VNjTIdnwzz/2hTY46ZISGHX3BL+LoPs1/kZS8XtxFG82kjTg7 zhs7dTMqfI8vDYTIMPL3q03M+OGdh8HoJYU1LpwHfanHUCYq0PVpurqAMHeq99QiFUoe 4BgeSdT9ZoIaU9nevG92ViaO6GU1mTxXBzxr+MIZWmf93EfSEbb/NhA5I1Kg+djEa82k rgCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=X2OXV90aO+ODMFfuSOMa4DDXkG0Jjwo9L8KTnXeA4Kk=; b=Mtgfuy9OPn+K28io9pVEKZHd4szZDzph2cVT1UnabVedyikjDhHHCtI+ssHZL+jDMh j+eFyaM6KQrGr0OiKQfTxeRsDpX+OrDX1b9hMja9nnyc7a9qQ4nxGrlRfTIIPRyWmM8D 2OG64B+NOUJTV0iRPIwJn7Ipfavb9dvGA+2a0HX2nreZczNZRqbuE1kP6APAaxfjjnpd rmo+ZbcNtxLJKUzgoGhb2c4NzXenI/zwfs8rDX95gyHdttUx4OP5HJ0YKRUjYxlQ0zRu OAuHp5tEk+bYKtM9drlP0Yz5A1dUooS0SghVTV/Pv5w8atgCPAugb0px9jLxMbC5Vo+y Nxww== X-Gm-Message-State: AOAM533vDtEucWRTTN66dUv2JvcR5jHIikLFK6ZxIJrObM5BL9zhHGfj CufmtI1e2GXsvR5EXenzfyndCw== X-Google-Smtp-Source: ABdhPJz2ULczMysarpVs35MfQnPspUQoA02V0ccHg5zENWursAdxOTaN4Q79HUBEnAhpNjkSCP3GpQ== X-Received: by 2002:a05:6000:1545:b0:205:a82d:8007 with SMTP id 5-20020a056000154500b00205a82d8007mr4987338wry.88.1648746926278; Thu, 31 Mar 2022 10:15:26 -0700 (PDT) Received: from google.com (cpc155339-bagu17-2-0-cust87.1-3.cable.virginm.net. [86.27.177.88]) by smtp.gmail.com with ESMTPSA id n15-20020a05600c500f00b0038cfb1a43d6sm7968863wmr.24.2022.03.31.10.15.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Mar 2022 10:15:25 -0700 (PDT) Date: Thu, 31 Mar 2022 18:15:23 +0100 From: Lee Jones To: Felix Kuehling Cc: linux-kernel@vger.kernel.org, Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH v2 1/1] drm/amdkfd: Create file descriptor after client is added to smi_clients list Message-ID: References: <20220331122117.1538913-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 31 Mar 2022, Felix Kuehling wrote: > > Am 2022-03-31 um 08:21 schrieb Lee Jones: > > This ensures userspace cannot prematurely clean-up the client before > > it is fully initialised which has been proven to cause issues in the > > past. > > > > Cc: Felix Kuehling > > Cc: Alex Deucher > > Cc: "Christian König" > > Cc: "Pan, Xinhui" > > Cc: David Airlie > > Cc: Daniel Vetter > > Cc: amd-gfx@lists.freedesktop.org > > Cc: dri-devel@lists.freedesktop.org > > Signed-off-by: Lee Jones > > Reviewed-by: Felix Kuehling > > I will apply to patch to amd-staging-drm-next. > > > --- > > > > CAVEAT: This patch is completely untested > > I can't seem to find a configuration strategy to compile test this > > allyesconfig and allmodconfig do not appear sufficient > > That's very strange. It should get compiled if CONFIG_HSA_AMD is > enabled. Okay, I figured it out. Apparently you can't give 'drivers/gpu/drm/amd' as a build param. 'drivers/gpu/drm' works as I expect however. > I will at least compile-test it before I submit. Great, thank you. -- Lee Jones [李琼斯] Principal Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog