Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15047769rwd; Sun, 25 Jun 2023 09:07:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6r0VRJzn3A7ssMSYc/bsiDM8Be7496Hoo+j38H52E4x2x/KrUI+KGb+pwiJwyJWWIcCLOA X-Received: by 2002:a05:6808:1792:b0:39e:b986:6609 with SMTP id bg18-20020a056808179200b0039eb9866609mr31847221oib.38.1687709221349; Sun, 25 Jun 2023 09:07:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687709221; cv=none; d=google.com; s=arc-20160816; b=hYQmx7wrHeylxo3U2Gf6VK6xvv1zIN9iwMpFhVIyp7OgNvKYujXssmBJNjA36DSNm1 mlIo/p4C8WpGSX5M/xEsU0ht9vXu26nuXelPD0kkmmloPkQQgA1t7l8Zl0vSfHaEDVUH mgbK79/SQl1DWZMkcya+g8lh7iMz1PYbDIOyiQgaiu27fdDfU4f/VuXuTt4F7GMTBgoc ZLY+1b9vts+SjIIq0ILvtzplT8Z5jsd2uEkTRwUw1YKpe/Ujxvq/G8SH+dUId9SZaJbf 7D9mV5R+1iyjTsJM47CyWwXPEjX6NSmBA6PoQM4S6fp7/2OYH3BQHUEE2KBG5raCDrXP uKqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=0eKTzckoWp+PABJgz6VA5/Nko/YjK5VBHW1wEVUQJBo=; fh=LqfaK29H1jqTKSWtlmLWt/drwOb/nZiNQDIGGJ5ovH4=; b=WEgyspk+9GUohtvExF/c6Jad7o8QLm7Q7GA3VqHe4SitcrUhbJ0AwDZ3p3bU41Bjon Eov6KFhEnjbwA7asdM3GsCj/3AVn//O1NNUpYjl97swQOuVL/N8WyZ5hB1kkKva4EQhf lsTjSR94N9jJRmBlMAzD4lt5+uECZ2n4OJazqdPoPaZs9cc5jZmLIvIAIvfqvr6+BVAA o+6VD8xdB7al7beY3/12MLTvOpot83WQKD089YejBMDwLeWYxk0Rss5/KDO4S9zL0yXN OgTjdxO8BBwVlZUpXfy0OSu1JkS+5lt7GuPb2dUaGWKPg/F2rOv9zH0tqdLGwBjkkL1d Q6Zw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s63-20020a635e42000000b0054fa5eb5283si3670663pgb.165.2023.06.25.09.06.49; Sun, 25 Jun 2023 09:07:01 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230185AbjFYPg2 convert rfc822-to-8bit (ORCPT + 99 others); Sun, 25 Jun 2023 11:36:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230010AbjFYPg1 (ORCPT ); Sun, 25 Jun 2023 11:36:27 -0400 Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com [209.85.128.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E231E4C for ; Sun, 25 Jun 2023 08:36:22 -0700 (PDT) Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-576918f4cf7so15303197b3.3 for ; Sun, 25 Jun 2023 08:36:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687707381; x=1690299381; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=t6hADTvRtybxnAgwb/MiYU3LVBKmH7BajnYoRP9HcuU=; b=Syx/rBRG3+kD1JPCjAE7Jck5LSHZk7iC61ODQFaW6dpVgO6RIVA5QazWpWgI54JpSb Rz0MQerrcff5D9W70dutgNWJerYT1X6Mk7/reH2GZiMwhUpUkn2hmiiQPEiTOHgEGRMV 5HGkiwzpmB5xcal0lQqvMW2QlQo1gLtBquMwOQ76oFoL/qhQ/+V6doAJcqG3jncUDRHW MAPum4RvYLEeiaotGeiXRem4XLagLS0UXgm9RwbNFyDk57wrHcgJbZFGIBTePJHOCmSW NDPQUhtZ6lDGOWDXAw5N5eYQskVGPY7HHI1K04lmVJ/w4hIMx4lVJOR8vCg4Qtfr0u8I jwxA== X-Gm-Message-State: AC+VfDwQVrvwnSXxxO3uMmEfZ5Y+dsl4ODcpAs2i289+dbIByauut9oh UZ52P7gIZkkmkgQfe6ZMKtRMMZryJQ4WTQ== X-Received: by 2002:a0d:f7c6:0:b0:576:6b83:2466 with SMTP id h189-20020a0df7c6000000b005766b832466mr7475746ywf.25.1687707381554; Sun, 25 Jun 2023 08:36:21 -0700 (PDT) Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com. [209.85.219.182]) by smtp.gmail.com with ESMTPSA id u15-20020a81a50f000000b00559be540b56sm836264ywg.134.2023.06.25.08.36.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 25 Jun 2023 08:36:19 -0700 (PDT) Received: by mail-yb1-f182.google.com with SMTP id 3f1490d57ef6-bff27026cb0so2429439276.1 for ; Sun, 25 Jun 2023 08:36:18 -0700 (PDT) X-Received: by 2002:a0d:d649:0:b0:56d:c02:58a7 with SMTP id y70-20020a0dd649000000b0056d0c0258a7mr27473610ywd.18.1687707378531; Sun, 25 Jun 2023 08:36:18 -0700 (PDT) MIME-Version: 1.0 References: <20230416115237.798604-1-dmitry.osipenko@collabora.com> <20230416115237.798604-4-dmitry.osipenko@collabora.com> <0ca8034d-0377-26b9-51c8-8caff6c4174a@collabora.com> In-Reply-To: <0ca8034d-0377-26b9-51c8-8caff6c4174a@collabora.com> From: Geert Uytterhoeven Date: Sun, 25 Jun 2023 17:36:07 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 3/3] drm/virtio: Support sync objects To: Dmitry Osipenko 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 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" ;-) Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds