From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0E540C2BA18 for ; Mon, 17 Jun 2024 09:47:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=usGpbKfnBPC6WUjY1RuxzYU4ZgAbIRTvzZTlT0vlyVY=; b=UfPhWTfsddnQez3WVPjAsnWeeB C90Hj+U+bkWGXZNuCNt3xX94DqOKawyTRtoqFBiHk843qvb8ZVNzccrmsbYvbzObMAxaznX1/Jvtw i2FD1bpMywTmiix1d6w9RYXchg2UtI4VRNJFTlfTscejeQK+bR3w/yaw+nS/kcnR/JRqE66rHol42 lXxFVWOMhgAxPcJFlHP5eWqp/4M78wEUBRmofYNlnDFUde41+OCRCRCTTad9+Bh2ffvPk5XX7SudC 3uvZbYoll7YDt7XryvTeRYqXuC+UvW+vU25y7iabfHDFP6qgfMjoOvSVtmpbSRIZFLSuMv65wDZJq mSHIxG2w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ8xn-0000000A7lW-0W7f; Mon, 17 Jun 2024 09:47:47 +0000 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ8xj-0000000A7k8-3WLo; Mon, 17 Jun 2024 09:47:45 +0000 Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-704313fa830so3156429b3a.3; Mon, 17 Jun 2024 02:47:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718617663; x=1719222463; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=usGpbKfnBPC6WUjY1RuxzYU4ZgAbIRTvzZTlT0vlyVY=; b=C9AVoUysktx10hNuHximDqNV8M2gE7sWIjUoqnBPzBTFaYDUJEdZC7UVCGTASmG1oP vpQDZtr2/X7RK71uRKwYVXg4Wj7FnlddnaDLmiaIiLyspGXnE8ToBoYREUTg17f5N+wa 8aPZu/oyglDAJ2F4e6Rm8RGZAPdoOAyjmAhSsoGcbNlDl0JRSgIeQ1aWHegQrIA0AUJF /s0NeX/W4djnwjrZrOBhcEnUvZigWk6Jk/q+RmbEeSHGSz08eKpMqcaEnNznGdl7MNgn MHh9+fDFfS3boHAPhdM5A/jni8lQrzLjogs7VRsjjOrmTWCE2YDoWjeaesdnQXI4mzdH JKqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718617663; x=1719222463; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=usGpbKfnBPC6WUjY1RuxzYU4ZgAbIRTvzZTlT0vlyVY=; b=MyRsHh5RZbQEGGz6oRSOrzCG1OsF0KR4KtoAPkom9QCIaf6NjJYm7e4wTkHA+VFWd7 o8K7d4G+3hJj5EOAXkqUwuqT7p48XQuBlXICEcJrHLg8X+Hvt0Suhv1d9zynfshEFjcb KEOUDR2qIP/EWEV/9X/ZbwZdJtfF8N3bX4LwupALB8226Xz8nz8l+Mu5VsLu5X8BWD1v JsKSfRFLuLNW/ChOms7YNtJvioFzUf1xDieV58+3FHdoAOSWVJlnPwwj5Tk6jszq8duY n66DHE+H6Eec8piRWDjJyfQhLtZ6ieI6H5CsOIzmpJbNITyzhpRSDnYGVH5xpkNeKzsn TVog== X-Forwarded-Encrypted: i=1; AJvYcCWXRauXC9yXzWXyPMI8hEBOwQ8YbvfwTbXHLgL/SwkTtgbSWnMJ60Aa8Gyfx9cYoQbeCSBTyxIgMTKoc0/bMVeOPfH/B9b3PyF9UGMZy3odbnGMluuK+CLke1d5L4Rb38sbkREVIs52Zq/8kO/QyAg64Xv5pKfEnrI= X-Gm-Message-State: AOJu0YySMs+3LthdIPA9sIm+xGD0gvNH3pyhyXPDFtYcp/myyLUh0JFg M5/GWsHugtdPUgLw+QNhzGaIjhZ9oHg/gzqLrHCRlVZVT3eKsBYA X-Google-Smtp-Source: AGHT+IFyxj6DeLjbzNAUMQS9A9wQr543YPl1rLY7vjP9jo76xxnmD/MsXV8euv4MDQM0ooApWPY5Kw== X-Received: by 2002:a05:6a20:da92:b0:1b5:b214:efcc with SMTP id adf61e73a8af0-1bae82fd317mr10638457637.53.1718617662752; Mon, 17 Jun 2024 02:47:42 -0700 (PDT) Received: from localhost.localdomain ([221.220.133.99]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c4c46701absm8576488a91.40.2024.06.17.02.47.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jun 2024 02:47:42 -0700 (PDT) From: Jianfeng Liu To: detlev.casanova@collabora.com Cc: alchark@gmail.com, andy.yan@rock-chips.com, conor+dt@kernel.org, cristian.ciocaltea@collabora.com, devicetree@vger.kernel.org, didi.debian@cknow.org, dsimic@manjaro.org, gregkh@linuxfoundation.org, heiko@sntech.de, krzk+dt@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, mchehab@kernel.org, robh@kernel.org, sebastian.reichel@collabora.com Subject: Re: [PATCH 1/3] media: rockchip: Introduce the rkvdec2 driver Date: Mon, 17 Jun 2024 17:47:34 +0800 Message-Id: <20240617094735.27928-1-liujianfeng1994@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240615015734.1612108-2-detlev.casanova@collabora.com> References: <20240615015734.1612108-2-detlev.casanova@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240617_024743_910141_88C981F6 X-CRM114-Status: GOOD ( 10.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Detlev, Thanks a lot for your work! I try to use rkvdec2 with chromium but it can't play h264 video. Here is the log of chromium: [5799:5873:0617/171224.850061:VERBOSE2:video_decoder_pipeline.cc(473)] Initialize(): config: codec: h264, profile: h264 high, level: not available, alpha_mode: is_opaque, coded size: [1920,1080], visible rect: [0,0,1920,1080], natural size: [1920,1080], has extra data: true, encryption scheme: Unencrypted, rotation: 0°, flipped: 0, color space: {primaries:BT709, transfer:BT709, matrix:BT709, range:LIMITED} [5799:5886:0617/171224.850915:VERBOSE2:v4l2_video_decoder.cc(182)] V4L2VideoDecoder(): [5799:5886:0617/171224.851218:VERBOSE1:v4l2_device.cc(128)] Open(): No devices supporting H264 for type: 0 [5799:5886:0617/171224.851346:VERBOSE4:v4l2_queue.cc(1069)] This queue does support requests.: No such file or directory (2) [5799:5886:0617/171224.851426:VERBOSE1:v4l2_video_decoder.cc(476)] InitializeBackend(): Using a stateless API for profile: h264 high and fourcc: S264 [5799:5886:0617/171224.851687:VERBOSE1:v4l2_video_decoder.cc(598)] SetupInputFormat(): Input (OUTPUT queue) Fourcc: S264 [5799:5886:0617/171224.851797:VERBOSE1:v4l2_video_decoder.cc(636)] AllocateInputBuffers(): Requesting: 17 OUTPUT buffers of type V4L2_MEMORY_MMAP [5799:5886:0617/171224.867687:VERBOSE1:v4l2_queue.cc(1511)] Streamon(): (OUTPUT_MPLANE) VIDIOC_STREAMON failed: Invalid argument (22) [5799:5886:0617/171224.867902:VERBOSE1:v4l2_video_decoder.cc(937)] StartStreamV4L2Queue(): Failed to streamon V4L2 queue. [5799:5886:0617/171224.868009:VERBOSE1:v4l2_video_decoder.cc(1377)] SetState(): Error occurred, stopping queues. [5799:5886:0617/171224.868105:ERROR:v4l2_video_decoder.cc(120)] StartStreamV4L2Queue failed at Decode@media/gpu/v4l2/v4l2_video_decoder.cc:915 [5799:5886:0617/171224.871898:WARNING:v4l2_video_decoder_backend_stateless.cc(126)] There is/are 0 pending CAPTURE queue buffers pending dequeuing. This might be fine or a problem depending on the destruction semantics (of theclient code. Here is the chromium code failed when calling VIDIOC_STREAMON: https://github.com/chromium/chromium/blob/125.0.6422.60/media/gpu/v4l2/v4l2_queue.cc#L1508 I'm running chromium v125.0.6422.60 and I can decode 1080p h264 with hantro g1 decoder on rk3588. Best regards, Jianfeng