[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACVXFVPzo2qNGa5DWESS3TXor=u82_SxHb+xzrBCRXtcQxq4Cg@mail.gmail.com>
Date: Wed, 12 Nov 2014 10:12:12 +0800
From: Ming Lei <ming.lei@...onical.com>
To: Lorenzo Pieralisi <lorenzo.pieralisi@....com>
Cc: Bjorn Helgaas <bhelgaas@...gle.com>,
Will Deacon <Will.Deacon@....com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>,
Rob Herring <robh+dt@...nel.org>,
alvise rigo <a.rigo@...tualopensystems.com>
Subject: Re: [PATCH] pci: generic host: make it more generic
On Wed, Nov 12, 2014 at 2:24 AM, Lorenzo Pieralisi
<lorenzo.pieralisi@....com> wrote:
> On Tue, Nov 11, 2014 at 02:02:20PM +0000, Ming Lei wrote:
>
> [...]
>
>> > http://lists.infradead.org/pipermail/linux-arm-kernel/2014-October/296535.html
>> >
>> > Patch above is already queued and applies most of the changes you have posted
>> > above.
>>
>> I should have looked at list first before writing the patch, :-(
>>
>> Could you make it more generic so that other ARCHs(at least ARM64)
>> can benefit from it too?
>
> That's our current goal, we are carrying out clean-ups to remove arch
> dependency and move code to the generic layer PCI layer.
OK, I am glad to test them after you post them out.
At least, the 'struct gen_pci' pointer can be put in driver data
of the platform_device now, which may remove dependency on
pci_sysdata in this driver. But ARCH's pcibios code still may
access 'pci_sysdata', do you have patches or solution to handle
this issue?
Do you think it is doable to introduce a option(from module
parameter, or device tree, ...) to let the driver and PCI core
ignore/bypass all pcibios handling for the generic bus? If that
is OK, it can provide an approach to reach the goal a bit easy.
In reality, generic host controller should be only used by VM,
and VM's firmware shouldn't be very complicated and I think
the option can meet most of demands.
Thanks,
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists