xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Manish Jaggi <mjaggi@caviumnetworks.com>,
	Sameer Goel <sameer.goel@linaro.org>,
	xen-devel@lists.xenproject.org, julien.grall@arm.com
Cc: sstabellini@kernel.org, shankerd@codeaurora.org,
	andre.przywara@linaro.org
Subject: Re: [RFC v4 6/8] xen/iommu: smmu-v3: Add Xen specific code to enable the ported driver
Date: Tue, 16 Jan 2018 13:13:47 +0000	[thread overview]
Message-ID: <a484db15-c165-183b-a088-788789086037@linaro.org> (raw)
In-Reply-To: <5122539b-0ec0-33d0-b5a4-6f721c754187@caviumnetworks.com>

Hi,

On 16/01/18 12:37, Manish Jaggi wrote:
> On 01/16/2018 02:04 AM, Julien Grall wrote:
>> On 01/03/2018 05:47 AM, Manish Jaggi wrote:
>>>> +int devm_request_threaded_irq(struct device *dev, unsigned int irq, 
>>>> irq_handler_t handler,
>>>> +                  irq_handler_t thread_fn, unsigned long irqflags,
>>>> +                  const char *devname, void *dev_id)
>>>> +{
>>>> +    return devm_request_irq(dev, irq, thread_fn, irqflags, devname, 
>>>> dev_id);
>>>> +}
>>> Is it possible to change the name from threaded to something more 
>>> meaningful as IIUC in xen we dont  have threaded irqs.
>>> Though the code is coming from linux, but it has to be called/named 
>>> in the place it is intended to be used
>>
>> What do you mean? This is a wrapper for Linux. So we should keep the 
>> name as it is.
> It creates confusion as xne doesnt use threads. So we should rename it.
> There is no reason why we cannot rename a function used in linux.

Read my previous e-mail until the end to understand the reason...

>>
>> [...]
>>
>>>> @@ -433,6 +807,7 @@ enum pri_resp {
>>>>       PRI_RESP_SUCC,
>>>>   };
>>>> +#if 0 /* Xen: No MSI support in this iteration */
>>>>   enum arm_smmu_msi_index {
>>>>       EVTQ_MSI_INDEX,
>>>>       GERROR_MSI_INDEX,
>>>> @@ -457,6 +832,7 @@ static phys_addr_t 
>>>> arm_smmu_msi_cfg[ARM_SMMU_MAX_MSIS][3] = {
>>>>           ARM_SMMU_PRIQ_IRQ_CFG2,
>>>>       },
>>>>   };
>>>> +#endif
>>> IMHO can we avoid #if 0 from the code, unless we intend to use the 
>>> code in future.
>>
>> In the past, I made the mistake to remove all unecessary code from 
>> SMMUv2. Few months after, we decided to delete it and import directly 
>> from Linux with limited modifications. This was the best choice 
>> because it is easier to track difference.
>>
>> We are in the same situation here. We want to stay as close as Linux. 
>> This means no renaming, no code removal, and very limited change in 
>> the code to accommodate Xen.

... particularly this paragraph.

Cheers,

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2018-01-16 13:13 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-19  3:16 [RFC v4 0/8] SMMUv3 driver Sameer Goel
2017-12-19  3:16 ` [RFC v4 1/8] Port WARN_ON_ONCE() from Linux Sameer Goel
2018-01-23 11:33   ` Julien Grall
2018-01-23 16:13   ` Wei Liu
2018-01-26  1:45     ` Sameer Goel
2017-12-19  3:16 ` [RFC v4 2/8] xen/bitops: Rename LOG_2 to ilog2 Sameer Goel
2018-01-23 11:36   ` Julien Grall
2018-01-23 11:39   ` Roger Pau Monné
2018-01-23 11:44     ` Julien Grall
2018-01-23 12:10       ` Roger Pau Monné
2018-01-23 12:17         ` Julien Grall
2017-12-19  3:16 ` [RFC v4 3/8] xen/linux_compat: Add a Linux compat header Sameer Goel
2018-01-23 16:28   ` Wei Liu
2018-01-23 16:51   ` Roger Pau Monné
2018-02-09 17:54     ` Sameer Goel
2017-12-19  3:16 ` [RFC v4 4/8] passthrough/arm: Modify SMMU driver to use generic device definition Sameer Goel
2018-01-23 11:41   ` Julien Grall
2017-12-19  3:17 ` [RFC v4 5/8] Add verbatim copy of arm-smmu-v3.c from Linux Sameer Goel
2017-12-19  3:17 ` [RFC v4 6/8] xen/iommu: smmu-v3: Add Xen specific code to enable the ported driver Sameer Goel
2018-01-03  5:47   ` Manish Jaggi
2018-01-15 20:34     ` Julien Grall
2018-01-16 12:37       ` Manish Jaggi
2018-01-16 13:13         ` Julien Grall [this message]
2018-01-23 15:18   ` Julien Grall
2018-02-09 17:56     ` Sameer Goel
2018-02-09 18:11       ` Julien Grall
2017-12-19  3:17 ` [RFC v4 7/8] xen/smmu: Add a new config define for legacy SMMU Sameer Goel
2018-01-23 15:26   ` Julien Grall
2017-12-19  3:17 ` [RFC v4 8/8] drivers/passthrough/arm: Refactor code for arm smmu drivers Sameer Goel
2018-01-03  5:34   ` Manish Jaggi
2018-01-15 20:41     ` Julien Grall
2018-01-16 12:40       ` Manish Jaggi
2018-01-16 13:14         ` Julien Grall
2018-01-16 13:27           ` Manish Jaggi
2018-01-16 13:40             ` Julien Grall
2018-01-17  6:37               ` Manish Jaggi
2018-01-23 15:38   ` Julien Grall

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=a484db15-c165-183b-a088-788789086037@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=andre.przywara@linaro.org \
    --cc=julien.grall@arm.com \
    --cc=mjaggi@caviumnetworks.com \
    --cc=sameer.goel@linaro.org \
    --cc=shankerd@codeaurora.org \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).