From: Murali Karicheri <m-karicheri2@ti.com>
To: Marc Zyngier <marc.zyngier@arm.com>,
Joao Pinto <Joao.Pinto@synopsys.com>, <kishon@ti.com>,
<bhelgaas@google.com>, <jingoohan1@gmail.com>
Cc: <linux-pci@vger.kernel.org>
Subject: Re: [RFC] pci: adding new interrupt api to pcie-designware
Date: Fri, 12 May 2017 12:05:09 -0400 [thread overview]
Message-ID: <5915DD35.3080405@ti.com> (raw)
In-Reply-To: <764590ed-d7ca-5142-df2e-5bf2ac714c2b@arm.com>
On 05/11/2017 06:05 AM, Marc Zyngier wrote:
> On 11/05/17 10:17, Joao Pinto wrote:
>>
>> Hello,
>>
>> Às 6:00 PM de 5/10/2017, Marc Zyngier escreveu:
>>> On 09/05/17 13:33, Joao Pinto wrote:
>>>> This is a proposal for the update of the interrupt API in pcie-designware.
>>>>
>>>> *SoC specific drivers*
>>>> All SoC specific drivers that use the common infrastructure (pci-qcom,
>>>> pci-artpec6, pci-exynos, pci-imx6) were updated to be compatible.
>>>> Other SoC specific drivers like pci-dra7, pci-armada8k, pci-hisi, pci-spear13xx
>>>> and pci-layerscape will also work fine.
>>>>
>>>> *Work still to be done - need some inputs*
>>>> The pci-keystone driver is the one that I would appreciate some opinions, since
>>>> it uses the "old" dw_pcie_msi_chip. I think we have 3 options:
>>>>
>>>> a) Keep the old API + new API in pcie-designware just for pci-keystone to use
>>>> the dw_pcie_msi_chip structure
>>>> b) Move the old API from pcie-designware to pci-keystone for it to use the
>>>> dw_pcie_msi_chip structure
>>>> c) Adapt pci-keystone to use the new API also
>>>
>>> What is the issue with moving Keystone over to this infrastructure?
>>
>> I don't hardware to test if the Keystone infrastructure porting is right or not
>> and thats my main concern. Also the Keystone SoC driver maintainer can also have
>> the option of keeping the current structure and that's why I sent the e-mail
>> asking for opinions about the subject.
>
> I think the old infrastructure should disappear, full stop (maintaining
> two APIs is hell). It'd be great if you could convert it as well,
> leaving the testing responsibility to the TI guys who I'm sure will
> gladly help (they've done so in the past for different things).
Marc,
Sure! I can help you on the testing part. I haven't had a chance to read this
patch due to my current tasks, but will spend some time on this next week.
Murali
>
>>>>
>>>> *Tests*
>>>> I made tests with a PCI 4.80 Core IP, using pcie-designware-plat driver.
>>>> I used an MSI-only Endpoint and a MSI/MSIX Endpoint and the APi adapted very
>>>> well to the situation.
>>>>
>>>> Signed-off-by: Joao Pinto <jpinto@synopsys.com>
>>>> ---
>>>> drivers/pci/dwc/pci-exynos.c | 18 --
>>>> drivers/pci/dwc/pci-imx6.c | 18 --
>>>> drivers/pci/dwc/pcie-artpec6.c | 18 --
>>>> drivers/pci/dwc/pcie-designware-host.c | 342 +++++++++++++++++----------------
>>>> drivers/pci/dwc/pcie-designware-plat.c | 15 --
>>>> drivers/pci/dwc/pcie-designware.h | 6 +-
>>>> drivers/pci/dwc/pcie-qcom.c | 15 --
>>>> 7 files changed, 179 insertions(+), 253 deletions(-)
>>>
>>> May I suggest something for your next posting? This patch is extremely
>>> difficult to read (not your fault at all), as it deletes a lot of code
>>> and replaces it by code that is mostly unrelated. It would be a lot
>>> better if you had a series that:
>>>
>>> 1: adds the new infrastructure in parallel with the old one, with an
>>> opt-in mechanism.
>>> 2: convert each individual platform (one patch per SoC)
>>> 3: remove the old code entirely.
>>>
>>> This will result in a much more readable series, and will give us a good
>>> way to bisect, should a given platform break.
>>
>> Yep indeed! I will do the 3 patch way as you are suggesting.
>
> Thanks,
>
> M.
>
--
Murali Karicheri
Linux Kernel, Keystone
next prev parent reply other threads:[~2017-05-12 16:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-09 12:33 [RFC] pci: adding new interrupt api to pcie-designware Joao Pinto
2017-05-10 17:00 ` Marc Zyngier
2017-05-11 9:17 ` Joao Pinto
2017-05-11 10:05 ` Marc Zyngier
2017-05-12 16:05 ` Murali Karicheri [this message]
2017-05-12 16:11 ` Marc Zyngier
2017-05-12 16:21 ` Murali Karicheri
2017-05-15 11:13 ` Joao Pinto
2017-05-15 14:01 ` Murali Karicheri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5915DD35.3080405@ti.com \
--to=m-karicheri2@ti.com \
--cc=Joao.Pinto@synopsys.com \
--cc=bhelgaas@google.com \
--cc=jingoohan1@gmail.com \
--cc=kishon@ti.com \
--cc=linux-pci@vger.kernel.org \
--cc=marc.zyngier@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.