Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp28701rdg; Tue, 10 Oct 2023 03:21:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH4+zzMORTiOLkEqB3AsaZMN/zqpGNyTTCEo+x+k6NgIhQB37QVf+JYD0h4eYbkVxid3+jk X-Received: by 2002:a05:6a21:33a1:b0:169:3769:2739 with SMTP id yy33-20020a056a2133a100b0016937692739mr15728209pzb.14.1696933280375; Tue, 10 Oct 2023 03:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696933280; cv=none; d=google.com; s=arc-20160816; b=S8OhXLZ+FUkpcQLfB3WNLWEoeYrBCCV8c4co7uzX4G7GjIZJyYptPLvl4MxHvR13c3 FXZjwBONaHIDAYgkpVQliteNZBT1oKGep8qqzs4luLM3HotacCBdVDz7LAnM5DdYyBak 3A3rK590RpF2/+dXwR1JvOvdq6Rrbe+9761qj00uMx+3F6UUMeYyEUiLy6e1I/JDT9qs 1QZ5qyUWvEi8qgogeu0vCTG9z9683CdOru333KXnTwcgxldtZPIaS9uD5qwU2+pT/55N GopCCkWXgq83brVcNXIdPGLGshFqF6Kpxmse8K2CRwy2FCYqtYTF9rBv28yBT3IdkCiJ 3pQQ== 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=GWvTo/P83spKa+A/D9FMPdC1Ske2gIZHo6R0G09uKtk=; fh=xYN9wxDxuL+Bet1WVWsQnXOGuHRhAOXZM7c/SDlEiHM=; b=DX5/lPwTS42ueciJJ2yuVLirqtDPKpkpdJUkdCdRO1oaqNzkkBIv98fKUAcTQ41j/P Lqd4f+flHZadggwciXLBRVhxEj1nsjA4BBd5/Bz2ECHbuMB2RQc8gJeQwY2Z/S/3B36t 7i/DzTm3zfK/v1JDWDZC3zp7yt1epuwrIXwVhGrcvW4Cm15q4qjBE44zLkRS6lRGmYAe JEgQOf82lX/VK7wHekGWtKJgOvV2IQPWspLRRAQ7NQBqfRuVqvnCIyKoRtXhcSZ6RLZS BWrEaeysZaClWC2uX3L7Tb3gOUhtty9endQsULspEqpxaigahCbY+3c+1MAWyx+CfSWx 6ShQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=OllMAyke; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id z9-20020a170903018900b001c8888f6287si9478359plg.518.2023.10.10.03.21.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 03:21:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=OllMAyke; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id BEAB58093486; Tue, 10 Oct 2023 03:20:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230400AbjJJKUM (ORCPT + 99 others); Tue, 10 Oct 2023 06:20:12 -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 S229516AbjJJKUK (ORCPT ); Tue, 10 Oct 2023 06:20:10 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92632A4 for ; Tue, 10 Oct 2023 03:20:08 -0700 (PDT) Received: from [192.168.2.166] (109-252-153-31.dynamic.spd-mgts.ru [109.252.153.31]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dmitry.osipenko) by madras.collabora.co.uk (Postfix) with ESMTPSA id D7B966607038; Tue, 10 Oct 2023 11:20:05 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1696933207; bh=YSDyKgPNyiB+QTT7s4ufQBw3fEv/PdNJkCJQZQDh4Vo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=OllMAykefJP7nIDKcFzhsjRzHS2mMNgFI7SoNBpkaxC58mEK3CGDkFBOXWKizChPg 5wR8Pj7AjMHTvbvd6ck2SwHFaIwbTA5NRbbUC/43iliwVWXxDna0yhbM1uyiPjqxUu PgXolgxHtzowAUIia0bplggbIBX8th0NB+m5/OazWCZXYFicE/gghwvu500apL28HP NTSdMaSgEV4dd2sQ5fQlCIr7PHO+quq3TvbxQ7hopEPRgetANb02cmoZHb35TG3kWb yexjBY7gjE4jthNmyBYp2h2a8N7PBXgPBSRLWhDoYiQ3P8DEGK4C0MbzSl+eby021A HsazYPe0HQclQ== Message-ID: <245f993a-72f2-7834-34b4-345f97737be1@collabora.com> Date: Tue, 10 Oct 2023 13:20:03 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2] drm/virtio: add definitions for gfxstream and venus capset Content-Language: en-US To: Huang Rui , dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, David Airlie , Gerd Hoffmann , Gurchetan Singh , Chia-I Wu , Daniel Vetter , Akihiko Odaki , =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= Cc: Alex Deucher , Xenia Ragiadakou , Stefano Stabellini , Honglei Huang , Julia Zhang , Chen Jiqian References: <20231010032553.1138036-1-ray.huang@amd.com> From: Dmitry Osipenko In-Reply-To: <20231010032553.1138036-1-ray.huang@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_SBL_CSS,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 howler.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 (howler.vger.email [0.0.0.0]); Tue, 10 Oct 2023 03:20:30 -0700 (PDT) Hi, On 10/10/23 06:25, Huang Rui wrote: > These definitions are used fro qemu, and qemu imports this marco in the > headers to enable gfxstream or venus for virtio gpu. So it should add it > even kernel doesn't use this. > > Signed-off-by: Huang Rui > --- > > Changes V1 -> V2: > - Add all capsets including gfxstream and venus in kernel header (Dmitry Osipenko) > > v1: https://lore.kernel.org/lkml/20230915105918.3763061-1-ray.huang@amd.com/ > > include/uapi/linux/virtio_gpu.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/uapi/linux/virtio_gpu.h b/include/uapi/linux/virtio_gpu.h > index f556fde07b76..327792658bdc 100644 > --- a/include/uapi/linux/virtio_gpu.h > +++ b/include/uapi/linux/virtio_gpu.h > @@ -309,6 +309,8 @@ struct virtio_gpu_cmd_submit { > > #define VIRTIO_GPU_CAPSET_VIRGL 1 > #define VIRTIO_GPU_CAPSET_VIRGL2 2 > +#define VIRTIO_GPU_CAPSET_GFXSTREAM 3 > +#define VIRTIO_GPU_CAPSET_VENUS 4 > > /* VIRTIO_GPU_CMD_GET_CAPSET_INFO */ > struct virtio_gpu_get_capset_info { By the "all" capsets, I meant to pick up all definitions from crosvm. There should be VIRTIO_GPU_CAPSET_DRM at minimum, could you please add it? -- Best regards, Dmitry