From: Baruch Siach Subject: Re: rockchip-vpu driver usability Date: Thu, 5 Jul 2018 15:14:47 +0300 Message-ID: <20180705121447.e65uehk5q2vung7e@tarshish> References: <20180524121824.fdtyjez3lc5pftfz@tarshish> <5B07DCF9.2090709@rock-chips.com> <20180702072458.gcvwf24m63u2zg4m@tarshish> <20180702145707.kogqcuuqqofyugoc@tarshish> <20180704085537.vglkza6bwllx3573@sapphire.tkos.co.il> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+glpar-linux-rockchip=m.gmane.org-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org To: Tomasz Figa Cc: "open list:ARM/Rockchip SoC..." , Jeffy , myy-tmjzNUIc0P1+EYZtW95mkQ@public.gmane.org, Alpha Lin List-Id: linux-rockchip.vger.kernel.org Hi Tomasz, On Wed, Jul 04, 2018 at 06:04:35PM +0900, Tomasz Figa wrote: > On Wed, Jul 4, 2018 at 5:55 PM Baruch Siach wrote: > > So to get the rockchip-vpu driver working with current kernel I need to > > also forward-port the embryonic Request API as well. I'll look into this. > > > > Are you aware of any other dependencies? > > I think V4L2 compound controls, but that should be already in > upstream. I'll try to look up relevant Chromium kernel patches for you > a bit later. > > > The alternative for me is to back-port rkisp1 video capture driver to vendor > > provided 4.4 kernel so I can use the MPP shim driver. I hope to not get there. > > > > The easiest option, of course, is to just wait for the Request API and the new > > codec driver. I'm not sure I can afford to wait though. > > I think you could also try to remove the use of config stores and make > the driver latch control values in QBUF(OUTPUT). You would also need > to adjust the plugin code accordingly. I'm trying to wrap me head around the config_store implementation in the 'chromeos-4.4' kernel branch (commit a36974eae81a). I think I get the general idea. Still need to figure out the details. I'm not sure I get your QBUF(OUTPUT) suggestion, though. Does "latch" means that the driver attaches the same controls to all buffers, essentially behaving like a traditional V4L2 device? Something else? The limitation of being able to encode only one stream at a time is acceptable for my application. Thanks, baruch -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org - tel: +972.52.368.4656, http://www.tkos.co.il -