Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8613123rwp; Wed, 19 Jul 2023 12:29:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlGi5sBCqtkpPIH52fMtqNZ+qmJIcXLCDaHyt1Fh8GdBxqZDp1lxXp33H6ency9OKHMr6IaH X-Received: by 2002:a17:90b:3750:b0:262:ec74:bb33 with SMTP id ne16-20020a17090b375000b00262ec74bb33mr38784pjb.46.1689794955955; Wed, 19 Jul 2023 12:29:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689794955; cv=none; d=google.com; s=arc-20160816; b=keEXejtiP2BcerFQ9ipMhgyOGdF6vorn1cczRqnh2ruGsMMOcAWv3/0W0E3w5+gG/f Q7IqPWrplgsNpOeCTwZb94pv/Jm9IkQjfVh0I5KgOKocFSCQX8yQDpGct5RjiDAfua6h KA2RoP2lfUpIk0xk6++LmvxjTr6+f1VL3lCb91QNBUSATb8R8sLgox2Id2yeMgSUtFGK 0qjwM3gqElixCoh6lQFV4RXfJM9KdwCwLEXgEeuakKjCqe7w+kXon6uKaz+ogZMhalnB bzOKaTZ5Cp2S2CpFftCc6DzzrJaJnBlHJzV6NrBCCG0S9YHRnK2CZtqVHoydAWGP0z+V wUoA== 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=8YiNw/HLfoGk1Fr8qHh7MnUl+I3lm/EYsRRnXVAjn4k=; fh=5vPFfrSVM6VGFBGvDxwgP+9urURU9Rj5fGt9mAcGcmI=; b=JNgNrgg9/z8C6AgYbd5hPlBS3YZEPAOqTdsZqCYe5iT3U6P4fTYJyjM0tYsBeR17Ae DwYGZzA5j4n+rojz2xx+nzwsFCd5T0ibDzZ7BxUZjUdPVbxBaLwmLUqyPFawUHzN+wjl s5GWfKBCuMFvstF+qAmEoUfOM/mGz2pIDzXNMfUydxT+MlUHDTUlWg7AZ7Np+03gP24D 7fQpBtZQuPZj9vfokjUM4oiOSOUwDfVcVROu0dieBfW35EADLmTyeHOhNES9nZvx5Fcm U23hvBmzNHJtOf8IcjjCwgH8MQ95Q/8l/4HSgyVxTOpam6IHTQRHglzQNfcrM/Q4+0I9 HRuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=QMOeHeeq; 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 pg11-20020a17090b1e0b00b002633c436f4esi2043646pjb.34.2023.07.19.12.29.04; Wed, 19 Jul 2023 12:29:15 -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=QMOeHeeq; 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 S230450AbjGSS6h (ORCPT + 99 others); Wed, 19 Jul 2023 14:58:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230451AbjGSS6f (ORCPT ); Wed, 19 Jul 2023 14:58:35 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3DEA1FC8 for ; Wed, 19 Jul 2023 11:58:33 -0700 (PDT) Received: from [192.168.2.126] (109-252-154-2.dynamic.spd-mgts.ru [109.252.154.2]) (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 741D16607050; Wed, 19 Jul 2023 19:58:31 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689793112; bh=TGv8e/l9mvStXaorCqqEd0PI/jyLliAA3UPEWTX1zOQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=QMOeHeeq581u0o/Yojl7ZQXaaSpfb+YSkQDIJm7JB1gQBXriCBCQ3mOgUNTGc5CjO 9EiaZLo3u5PTyFjPjs/jYOBj0WO54mAhCdD7mQCVvDy0ZUxUqFNQJx1uezHjoqLpSe +SvrpOuuSSZVl632BV6+Qtrj39yFOcsOttrd51MBQtBn5dXNzv6MBWRF6fIt5AQrLC n1kpPFcxRAdWjpYBNKCPZoh+A34ShjsUKT/4sQRUMQxjV4/u5/4st6bnFt23geL4W7 ZggrLuc5zlm2kCmqU+Db2gp41LwdkvlwBhjvbxshPr9M+FIxwHOMgY5mI4Mfw19E8v LrVTlCnM6Qetg== Message-ID: <259ffa89-39d9-5c00-c70c-0cb26a6aab65@collabora.com> Date: Wed, 19 Jul 2023 21:58:28 +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> <2f4d3e96-1e10-3662-bfc5-8c361a4c1366@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, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 27.06.2023 15:01, Geert Uytterhoeven пишет: > Hi Dmitry, > > On Mon, Jun 26, 2023 at 6:11 PM Dmitry Osipenko > wrote: >> On 6/25/23 18:36, Geert Uytterhoeven wrote: >>> 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 > > Please don't do that, as IMHO it actually hampers readability: > 1. For some xxx, both GFP_xxx and __GFP_xxx are defined, > so it does matter which one you are referring to, > 2. After dropping the underscores, "git grep -w" can no longer find > the definition, nor its users. > > Thanks! Alright, I'll change it -- Best regards, Dmitry