devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Generic DT binding for IPIs
@ 2015-10-14 10:18 Qais Yousef
       [not found] ` <561E2BE6.2090807-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 14+ messages in thread
From: Qais Yousef @ 2015-10-14 10:18 UTC (permalink / raw)
  To: devicetree-u79uwXL29TY76Z2rM5mHXA
  Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8,
	mark.rutland-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg,
	galak-sgV2jX0FEOL9JmXXK+q4OQ, tglx-hfZtesqFncYOwBW4kG4KsQ,
	jason-NLaQJdtUoK4Be96aLqz0jA, marc.zyngier-5wv7dgnIgG8,
	jiang.liu-VuQAYsv1563Yd54FQh9/CA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

Hi,

This is an attempt to revive a discussion on the right list this time 
with all the correct people hopefully on CC.

While trying to upstream a driver, Thomas and Marc Zyngier pointed out 
the need for a generic IPI support in the kernel to allow driver to 
reserve and send ones. Hopefully my latest RFC patch will help to 
clarify what's being done.

     https://lkml.org/lkml/2015/10/13/227

We need a generic DT binding support to accompany that to allow a driver 
to reserve an IPI using this new mechanism.

MarcZ had the following suggestion:

     https://lkml.org/lkml/2015/8/24/628

Which in summary is

	mydevice@f0000000 {
		interrupt-source = <&intc INT_SPEC 2 &inttarg1 &inttarg1>;
	};

	inttarg1: mydevice@f1000000 {
		interrupt-sink = <&intc HWAFFINITY1>;
	};

	inttarg2: cpu@1 {
		interrupt-sink = <&intc HWAFFINITY2>;
	};


interrupt-sink requests to reserve an IPI that it will receive at 
HWAFFINITY cpumask. interrupt-source will not do any reservation. It 
will simply connect an IPI reserved by interrupt-sink to the device that 
will be responsible for generating that IPI. This description should 
allow connecting any 2 devices.
Correct me Marc if I got it wrong please.

I suggested a simplification by assuming that IPIs will only be between 
host OS and a coprocessor which would gives us this form which I think 
is easier to deal with

	coprocessor {
              interrupt-source = <&intc INT_SPEC COP_HWAFFINITY>;
              interrupt-sink = <&intc INT_SPEC CPU_HWAFFINITY>;
	}


interrupt-source here reserves an IPI to be sent from host OS to 
coprocessor at COP_HWAFFINITY. interrupt-sink will reserve an IPI to be 
received by host OS at CPU_HWAFFINITY. Less generic but I don't know how 
important it is for host OS to setup IPIs between 2 external 
coprocessors and whether it should really be doing that.

What do the DT experts think? Any preference or a better suggestion?

I tried to keep this short and simple, please let me know if you need 
more info or if there's anything that needs more clarification.

Thanks,
Qais
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-12-22  4:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-14 10:18 Generic DT binding for IPIs Qais Yousef
     [not found] ` <561E2BE6.2090807-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
2015-10-22 10:44   ` Qais Yousef
     [not found]     ` <5628BE00.4020106-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
2015-10-22 11:55       ` Jason Cooper
     [not found]         ` <20151022115551.GI3953-fahSIxCzskDQ+YiMSub0/l6hYfS7NtTn@public.gmane.org>
2015-12-09 15:27           ` Qais Yousef
2015-12-09 16:50             ` Rob Herring
     [not found]               ` <CAL_Jsq+yv1UnBhrR+x+DEA41yETVANY9_-5W0DSQJVEQ4+Mx_w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-12-10  0:49                 ` David Gibson
2015-12-10 10:20                 ` Qais Yousef
     [not found]                   ` <56695201.2070807-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
2015-12-11  0:39                     ` David Gibson
     [not found]                       ` <20151211003902.GE20139-RXTfZT5YzpxwFLYp8hBm2A@public.gmane.org>
2015-12-11 10:47                         ` Qais Yousef
     [not found]                           ` <566AA9DD.6040404-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
2015-12-14  1:40                             ` David Gibson
2015-12-17 11:31                               ` Qais Yousef
2015-12-22  4:38                                 ` David Gibson
2015-10-22 13:43   ` Rob Herring
2015-10-23 10:28     ` Qais Yousef

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).