Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16386189rwd; Mon, 26 Jun 2023 09:17:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7z08EYlYQrF/2qgB1xwjuXWC9qj2Ct+XGN635RnHMg/829FHeTTv/hopNvJUW1KoPRKTjz X-Received: by 2002:a17:907:da9:b0:989:7e02:2929 with SMTP id go41-20020a1709070da900b009897e022929mr15470135ejc.70.1687796223968; Mon, 26 Jun 2023 09:17:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687796223; cv=none; d=google.com; s=arc-20160816; b=oqeA8QN+KnPHluosXiUC6LnNO69q49wjCRFECwEg30sg3xIsU7ZBw+UrtWRs8RoPNX pv99S9KLpiOWjxfpR2dDbu2hzAUHPdwzINAIWY4zdL/5qbGEBdSUSKnpH5U7BHe1OpdR 6wmt/L9yZpjXv4YyeDoxBeGRtUmImYBBddI3FMixZqDvcAJv0DwUB9fz+dHryOqVr6JY 23/KgbbCBrZ8US3Xt4BZzcsZ96sYhUiUW/8Vpxtoluie6yK3fbF50n1XRai5gxF7qR5r E8EUmHydIpVXdcRMU3APW0tFalME2GuX0r68Hrg+Oh91tjWZ3gal0oiDFQwaahUs5+p/ gQEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=4fi8YYRRvagLJR/r2yMqOqGFg5+MpWW6zy6n95efeCE=; fh=KljH3Xr3kinMnuzCUKtFyYzrhi1keKBS5tAc+SB886s=; b=L8jyhh/1eVy0Vnd51QN+UbLAbnnb84I3nyRxAniqvqcdVPzmt/9KelingdYmQTqG2n nQJLWQQNWuaxFbAZQKDp+C8ndxPLoTIVG2SRkb9e/tkidHwlNuSim+kFVOE4eSKhN657 RacMtIc/5T1i8Fhc+XaOWC4wLQHQbWxPxPiHJ7zTmmnb6zTXFZ0J6qS9MGxjnBdfrLPB TU0M0FPoCg+5rhov9YZ4zuQGgl5Je5nyoElGM4I9J1ml6URl3MMBdeGOLl3s0XBo9PSU 58aQEPl4ZNnT6houbujRqtN2hywb+TDh1w1uYtbjFH+dIIVCr7v17fkCFxxgL5tWzZgt XtbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=eW9yYPq6; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ec10-20020a170906b6ca00b009892631e251si3079226ejb.770.2023.06.26.09.16.36; Mon, 26 Jun 2023 09:17:03 -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=@collabora.com header.s=mail header.b=eW9yYPq6; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231743AbjFZQMI (ORCPT + 99 others); Mon, 26 Jun 2023 12:12:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231733AbjFZQMA (ORCPT ); Mon, 26 Jun 2023 12:12:00 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76C1110F6 for ; Mon, 26 Jun 2023 09:11:50 -0700 (PDT) Received: from [192.168.2.254] (109-252-154-132.dynamic.spd-mgts.ru [109.252.154.132]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: dmitry.osipenko) by madras.collabora.co.uk (Postfix) with ESMTPSA id 7E6D566003AC; Mon, 26 Jun 2023 17:11:47 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1687795908; bh=9EZs0izTC9fT3uhYtjpxEXL0MLcsJc+fn/xx7LDWC30=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=eW9yYPq6r+yhdEvGBX0mFerL6rT+zA/f5p+Aq+i+1Gvz7TmqJ3PZZCbxm5O9mxC0q +wsB3qZtEg6L+HAx2svRPhQWQW+uAjqweSzb5ZVPE96+wB2K6lfsiabzOX2s7HHEth vT+clsYUfkiTRmR+8m1P4NMY6iBMVAYZemw2KTMwYfdrud9xHPfIVtghLSrypMxSO1 8mOxPCsDdm7DtudciYaTh1sRBkpx6H0zjiINaLQPalZvz59ETD2dSxQ2K4Us+qd8Nh f7DDiZEqwu3PHqtmtAnUgJaeZtg1Q1W4U9OfbF43uyvrvIQEhg5lpm2KKMvk1lAeW6 7hsT1XtYiMYOA== Message-ID: <2f4d3e96-1e10-3662-bfc5-8c361a4c1366@collabora.com> Date: Mon, 26 Jun 2023 19:11:44 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.1 Subject: Re: [PATCH v6 3/3] drm/virtio: Support sync objects Content-Language: en-US To: Geert Uytterhoeven Cc: David Airlie , Gerd Hoffmann , Gurchetan Singh , Chia-I Wu , Daniel Vetter , Rob Clark , =?UTF-8?B?TWFyZWsgT2zFocOhaw==?= , Pierre-Eric Pelloux-Prayer , Emil Velikov , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel@collabora.com, virtualization@lists.linux-foundation.org References: <20230416115237.798604-1-dmitry.osipenko@collabora.com> <20230416115237.798604-4-dmitry.osipenko@collabora.com> <0ca8034d-0377-26b9-51c8-8caff6c4174a@collabora.com> From: Dmitry Osipenko In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On 6/25/23 18:36, Geert Uytterhoeven wrote: > Hi Dmitry, > > On Sun, Jun 25, 2023 at 2:41 PM Dmitry Osipenko > wrote: >> On 6/25/23 11:47, Geert Uytterhoeven wrote: >>> On Sun, Apr 16, 2023 at 1:55 PM Dmitry Osipenko >>> wrote: >>>> Add sync object DRM UAPI support to VirtIO-GPU driver. Sync objects >>>> support is needed by native context VirtIO-GPU Mesa drivers, it also will >>>> be used by Venus and Virgl contexts. >>>> >>>> Reviewed-by; Emil Velikov >>>> Signed-off-by: Dmitry Osipenko >>> >>> Thanks for your patch! >>> >>>> --- a/drivers/gpu/drm/virtio/virtgpu_submit.c >>>> +++ b/drivers/gpu/drm/virtio/virtgpu_submit.c >>> >>>> +static int >>>> +virtio_gpu_parse_deps(struct virtio_gpu_submit *submit) >>>> +{ >>>> + struct drm_virtgpu_execbuffer *exbuf = submit->exbuf; >>>> + struct drm_virtgpu_execbuffer_syncobj syncobj_desc; >>>> + size_t syncobj_stride = exbuf->syncobj_stride; >>>> + u32 num_in_syncobjs = exbuf->num_in_syncobjs; >>>> + struct drm_syncobj **syncobjs; >>>> + int ret = 0, i; >>>> + >>>> + if (!num_in_syncobjs) >>>> + return 0; >>>> + >>>> + /* >>>> + * kvalloc at first tries to allocate memory using kmalloc and >>>> + * falls back to vmalloc only on failure. It also uses GFP_NOWARN >>> >>> GFP_NOWARN does not exist. >> >> https://elixir.bootlin.com/linux/v6.4-rc7/source/include/linux/gfp_types.h#L38 > > That line defines "__GFP_NOWARN", not "GFP_NOWARN". > C is case- and underscore-sensitive. as is "git grep -w" ;-) The removal of underscores was done intentionally for improving readability of the comment -- Best regards, Dmitry