Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1254996rwb; Tue, 29 Nov 2022 10:55:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf7n3ZgvlosYzc9v2fM79ncT8YvAKg6+yH420kISkC8udI/zH2tIlbZeKVeS8pnXm8dUNaPk X-Received: by 2002:a62:4e96:0:b0:56d:a89d:fb9b with SMTP id c144-20020a624e96000000b0056da89dfb9bmr39629088pfb.24.1669748145913; Tue, 29 Nov 2022 10:55:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669748145; cv=none; d=google.com; s=arc-20160816; b=blKl7HgUk7/OPS+UIk7kiGbdq5sHLRulMmIu8XwmpbQ3RhzOsjFAURCG6iVt8h9v4u 7Sdvffsv14dpOBjcdSZmCIneBjkta6vbAPhlzTrIku8T8//lpJb9COZkcxSREsJ+gzwH hNpTHw+q7QeL+vQYx3I3CjoMTZWidMNmoQUjeE1oOlS/RKa+yQx2p1TZqXhQwlfXtot6 BKMdxrBdfE3b+FA1ae+CTnyhxLdS59VMoHuPdXGO8dF5zMe9yvbmC6clajwV81QHBHeV VBk9LZ/n4GMpfNmUEppXCV8/erkiVunR3Q9NYToVqAh4/DTIP6oDSkzBK2hSRDA5kkxU FtyQ== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Q3t6doMXsF/Gf8GaT3mSOeaCS/rV3yA6KGt1ajEdP1I=; b=g3CkFTchGG1uPOg06YxwsIM3+pUiY7oS7n3lV12GVA8E778w9dLwxHpLwOS4XPNTrW Wit/q/RJXZ0G3n8TwE84CmCcnTVbpS/pvoZfE2+fq4kHlGnU8bp/DpsquNpi193QgmVe 5zhCdZ5BDQFA8WLi98/Y113MwBtnLaU3T5VQrpQfxBLrzwNbHKB2c0Aq+AAl6nJRT5ks a/9qVUftVN40PyHusmBbGUiWYodXCsDpdgqyMBVoVFmykStRG4IZt2Pe8CCD1tHKo0CW dfTYmNI2lPamv3eifATrtBTdQ/y8q9sm8VqAMekaroV1Zu+mo+P60TfkGz27HogaZkiT 0Ypg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="Dym7/QJw"; 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=NONE sp=NONE 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 m13-20020a056a00080d00b005754106e36dsi6346909pfk.78.2022.11.29.10.55.35; Tue, 29 Nov 2022 10:55:45 -0800 (PST) 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="Dym7/QJw"; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236060AbiK2Sib (ORCPT + 85 others); Tue, 29 Nov 2022 13:38:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234622AbiK2Sia (ORCPT ); Tue, 29 Nov 2022 13:38:30 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5C0412751 for ; Tue, 29 Nov 2022 10:38:29 -0800 (PST) Received: from [192.168.2.15] (109-252-124-61.nat.spd-mgts.ru [109.252.124.61]) (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 EE5DE6602B2C; Tue, 29 Nov 2022 18:38:25 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1669747107; bh=SMfclwv6QeX+nPT29Ty4W4fFsR6WCOe7dD5ldDTWBkI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Dym7/QJw+bIu/OjIw8TjrDfCVAlijuJzbieOtAMrEXpEh459oT0YAoasyW130JQ5N wozf8QMdG1Mlw9apFEYKYyi0biskEfdgopRMUCHLSlEbuTKxlvkiK3FYLOBLXZfVlg LqAB+m2J9+SKpzfBa3xDSYVAnlTZLQjbcJO5qVNg7s2+8+GGNZgVR7djU/yTXo09m+ LrSXKXf0FaVDqEd0o/krQFOlasvHuJaxTvMVCj94OpLmMtuXdbncTltxmzDvzPqc9H pCcxhRN6J/7pmOxNwjLquH6EZImqo0wmlB/7zP0jvFoKrStXK5aaNeNjmUAks+DCMz xDrHAj5e0F3pQ== Message-ID: <887fa036-c370-c241-94c8-3cb7433e09f8@collabora.com> Date: Tue, 29 Nov 2022 21:38:22 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH] drm/virtio: Spiff out cmd queue/response traces To: Rob Clark , dri-devel@lists.freedesktop.org Cc: Rob Clark , David Airlie , Gerd Hoffmann , Gurchetan Singh , Chia-I Wu , Daniel Vetter , "open list:VIRTIO GPU DRIVER" , open list References: <20221129174330.262751-1-robdclark@gmail.com> Content-Language: en-US From: Dmitry Osipenko In-Reply-To: <20221129174330.262751-1-robdclark@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS 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 11/29/22 20:43, Rob Clark wrote: > From: Rob Clark > > Add a sequence # for more easily matching up cmd/resp, and the # of free > slots in the virtqueue to more easily see starvation issues. > > Signed-off-by: Rob Clark > --- > drivers/gpu/drm/virtio/virtgpu_drv.h | 3 +++ > drivers/gpu/drm/virtio/virtgpu_trace.h | 20 ++++++++++++-------- > drivers/gpu/drm/virtio/virtgpu_vq.c | 13 ++++++++++--- > 3 files changed, 25 insertions(+), 11 deletions(-) Reviewed-by: Dmitry Osipenko -- Best regards, Dmitry