Re: [PATCH] media: zoran: move to dma-mapping interface

From: Trent Piepho
Date: Wed Apr 25 2018 - 13:44:29 EST


On Wed, 2018-04-25 at 14:22 -0300, Mauro Carvalho Chehab wrote:
> Em Wed, 25 Apr 2018 17:58:25 +0200
> Arnd Bergmann <arnd@xxxxxxxx> escreveu:
>
> > On Wed, Apr 25, 2018 at 5:26 PM, Christoph Hellwig <hch@xxxxxxxxxxx
> > rg> wrote:
> > > On Wed, Apr 25, 2018 at 01:15:18PM +0200, Arnd Bergmann wrote:
> > > > That thought had occurred to me as well. I removed the oldest ISDN
> > > > drivers already some years ago, and the OSS sound drivers
> > > > got removed as well, and comedi got converted to the dma-mapping
> > > > interfaces, so there isn't much left at all now. This is what we
> > > > have as of v4.17-rc1:
> > >
> > > Yes, I've been looking at various grotty old bits to purge. Usually
> > > I've been looking for some non-tree wide patches and CCed the last
> > > active people to see if they care. In a few cases people do, but
> > > most often no one does.
> >
> > Let's start with this one (zoran) then, as Mauro is keen on having
> > all media drivers compile-testable on x86-64 and arm.
> >
> > Trent Piepho and Hans Verkuil both worked on this driver in the
> > 2008/2009 timeframe and those were the last commits from anyone
> > who appears to have tested their patches on actual hardware.
>
> Zoran is a driver for old hardware. I don't doubt that are people
> out there still using it, but who knows?
>
> I have a few those boards packed somewhere. I haven't work with PCI
> hardware for a while. If needed, I can try to seek for them and
> do some tests. I need first to unpack a machine with PCI slots...
> the NUCs I generally use for development don't have any :-)
>
> Anyway, except for virt_to_bus() and related stuff, I think that this
> driver is in good shape, as Hans did a lot of work in the past to
> make it to use the current media framework.

I still have a zoran board. And my recently purchased ryzen system has
PCI slots. To my surprise they are not uncommon on new socket AM4
boards. However, I think the zoran board I have is 5V PCI and that is
rather uncommon. Also becoming uncommon is analog NTSC/PAL video that
this chip is designed for!

If anyone is using these still, they would be in legacy systems for
these legacy video formats.