* [PATCH 2/2] drm/i915/audio: Extend audio sync rate support for DP MST
2016-11-15 7:04 [PATCH 1/2] " libin.yang
@ 2016-11-15 7:04 ` libin.yang
2016-11-29 16:33 ` Jani Nikula
0 siblings, 1 reply; 13+ messages in thread
From: libin.yang @ 2016-11-15 7:04 UTC (permalink / raw)
To: intel-gfx, jani.nikula, ville.syrjala, daniel.vetter,
dhinakaran.pandiyan, jeeja.kp, tiwai
From: Libin Yang <libin.yang@intel.com>
This patch extends the support of audio sample rate
sync up to DP MST.
Signed-off-by: Libin Yang <libin.yang@intel.com>
---
drivers/gpu/drm/i915/intel_audio.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/intel_audio.c b/drivers/gpu/drm/i915/intel_audio.c
index c8a1345..88ed869 100644
--- a/drivers/gpu/drm/i915/intel_audio.c
+++ b/drivers/gpu/drm/i915/intel_audio.c
@@ -807,7 +807,8 @@ static int i915_audio_component_sync_audio_rate(struct device *kdev, int port,
intel_encoder = get_saved_enc(dev_priv, port, pipe);
if (!intel_encoder || !intel_encoder->base.crtc ||
(intel_encoder->type != INTEL_OUTPUT_HDMI &&
- intel_encoder->type != INTEL_OUTPUT_DP)) {
+ intel_encoder->type != INTEL_OUTPUT_DP &&
+ intel_encoder->type != INTEL_OUTPUT_DP_MST)) {
DRM_DEBUG_KMS("Not valid for port %c\n", port_name(port));
err = -ENODEV;
goto unlock;
--
2.7.4
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [PATCH 2/2] drm/i915/audio: Extend audio sync rate support for DP MST
2016-11-15 7:04 ` [PATCH 2/2] drm/i915/audio: Extend audio sync rate support for DP MST libin.yang
@ 2016-11-29 16:33 ` Jani Nikula
2016-11-29 16:50 ` Ville Syrjälä
2016-11-30 8:10 ` Yang, Libin
0 siblings, 2 replies; 13+ messages in thread
From: Jani Nikula @ 2016-11-29 16:33 UTC (permalink / raw)
To: libin.yang, intel-gfx, ville.syrjala, daniel.vetter,
dhinakaran.pandiyan, jeeja.kp, tiwai
On Tue, 15 Nov 2016, libin.yang@intel.com wrote:
> From: Libin Yang <libin.yang@intel.com>
>
> This patch extends the support of audio sample rate
> sync up to DP MST.
>
> Signed-off-by: Libin Yang <libin.yang@intel.com>
> ---
> drivers/gpu/drm/i915/intel_audio.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_audio.c b/drivers/gpu/drm/i915/intel_audio.c
> index c8a1345..88ed869 100644
> --- a/drivers/gpu/drm/i915/intel_audio.c
> +++ b/drivers/gpu/drm/i915/intel_audio.c
> @@ -807,7 +807,8 @@ static int i915_audio_component_sync_audio_rate(struct device *kdev, int port,
> intel_encoder = get_saved_enc(dev_priv, port, pipe);
> if (!intel_encoder || !intel_encoder->base.crtc ||
> (intel_encoder->type != INTEL_OUTPUT_HDMI &&
> - intel_encoder->type != INTEL_OUTPUT_DP)) {
> + intel_encoder->type != INTEL_OUTPUT_DP &&
> + intel_encoder->type != INTEL_OUTPUT_DP_MST)) {
I think the better option is to make absolutely sure we never store
other kinds of encoders in dev_priv->av_enc_map[pipe] to begin with. I
think that's true already, but please add
if (WARN_ON(intel_encoder->type != INTEL_OUTPUT_HDMI &&
intel_encoder->type != INTEL_OUTPUT_DP &&
intel_encoder->type != INTEL_OUTPUT_DP_MST))
return;
near the beginning of intel_audio_codec_enable(), and remove the type
checks here. This reduces the confusion about different kinds of checks
after calling get_saved_enc().
BR,
Jani.
> DRM_DEBUG_KMS("Not valid for port %c\n", port_name(port));
> err = -ENODEV;
> goto unlock;
--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 2/2] drm/i915/audio: Extend audio sync rate support for DP MST
2016-11-29 16:33 ` Jani Nikula
@ 2016-11-29 16:50 ` Ville Syrjälä
2016-11-30 8:18 ` Yang, Libin
2016-11-30 8:10 ` Yang, Libin
1 sibling, 1 reply; 13+ messages in thread
From: Ville Syrjälä @ 2016-11-29 16:50 UTC (permalink / raw)
To: Jani Nikula
Cc: tiwai, intel-gfx, dhinakaran.pandiyan, jeeja.kp, daniel.vetter
On Tue, Nov 29, 2016 at 06:33:50PM +0200, Jani Nikula wrote:
> On Tue, 15 Nov 2016, libin.yang@intel.com wrote:
> > From: Libin Yang <libin.yang@intel.com>
> >
> > This patch extends the support of audio sample rate
> > sync up to DP MST.
> >
> > Signed-off-by: Libin Yang <libin.yang@intel.com>
> > ---
> > drivers/gpu/drm/i915/intel_audio.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_audio.c b/drivers/gpu/drm/i915/intel_audio.c
> > index c8a1345..88ed869 100644
> > --- a/drivers/gpu/drm/i915/intel_audio.c
> > +++ b/drivers/gpu/drm/i915/intel_audio.c
> > @@ -807,7 +807,8 @@ static int i915_audio_component_sync_audio_rate(struct device *kdev, int port,
> > intel_encoder = get_saved_enc(dev_priv, port, pipe);
> > if (!intel_encoder || !intel_encoder->base.crtc ||
> > (intel_encoder->type != INTEL_OUTPUT_HDMI &&
> > - intel_encoder->type != INTEL_OUTPUT_DP)) {
> > + intel_encoder->type != INTEL_OUTPUT_DP &&
> > + intel_encoder->type != INTEL_OUTPUT_DP_MST)) {
>
> I think the better option is to make absolutely sure we never store
> other kinds of encoders in dev_priv->av_enc_map[pipe] to begin with. I
> think that's true already, but please add
>
> if (WARN_ON(intel_encoder->type != INTEL_OUTPUT_HDMI &&
> intel_encoder->type != INTEL_OUTPUT_DP &&
> intel_encoder->type != INTEL_OUTPUT_DP_MST))
> return;
>
> near the beginning of intel_audio_codec_enable(), and remove the type
> checks here. This reduces the confusion about different kinds of checks
> after calling get_saved_enc().
This while encoder->type thing is pretty broken actually. Currently
we're semi-randomly flipping DDI encoders between UNKNOWN,HDMI and DP.
I want to eliminate that so that their type will always be just "DDI".
For iguring out what kind of signal we are driving out you should be
looking at crtc_state->output_types.
--
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 2/2] drm/i915/audio: Extend audio sync rate support for DP MST
2016-11-29 16:33 ` Jani Nikula
2016-11-29 16:50 ` Ville Syrjälä
@ 2016-11-30 8:10 ` Yang, Libin
2016-11-30 15:51 ` Jani Nikula
1 sibling, 1 reply; 13+ messages in thread
From: Yang, Libin @ 2016-11-30 8:10 UTC (permalink / raw)
To: Jani Nikula, intel-gfx@lists.freedesktop.org,
ville.syrjala@linux.intel.com, Vetter, Daniel,
Pandiyan, Dhinakaran, Kp, Jeeja, tiwai@suse.de
>-----Original Message-----
>From: Jani Nikula [mailto:jani.nikula@linux.intel.com]
>Sent: Wednesday, November 30, 2016 12:34 AM
>To: Yang, Libin <libin.yang@intel.com>; intel-gfx@lists.freedesktop.org;
>ville.syrjala@linux.intel.com; Vetter, Daniel <daniel.vetter@intel.com>;
>Pandiyan, Dhinakaran <dhinakaran.pandiyan@intel.com>; Kp, Jeeja
><jeeja.kp@intel.com>; tiwai@suse.de
>Cc: Yang, Libin <libin.yang@intel.com>
>Subject: Re: [PATCH 2/2] drm/i915/audio: Extend audio sync rate support for
>DP MST
>
>On Tue, 15 Nov 2016, libin.yang@intel.com wrote:
>> From: Libin Yang <libin.yang@intel.com>
>>
>> This patch extends the support of audio sample rate sync up to DP MST.
>>
>> Signed-off-by: Libin Yang <libin.yang@intel.com>
>> ---
>> drivers/gpu/drm/i915/intel_audio.c | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/i915/intel_audio.c
>> b/drivers/gpu/drm/i915/intel_audio.c
>> index c8a1345..88ed869 100644
>> --- a/drivers/gpu/drm/i915/intel_audio.c
>> +++ b/drivers/gpu/drm/i915/intel_audio.c
>> @@ -807,7 +807,8 @@ static int
>i915_audio_component_sync_audio_rate(struct device *kdev, int port,
>> intel_encoder = get_saved_enc(dev_priv, port, pipe);
>> if (!intel_encoder || !intel_encoder->base.crtc ||
>> (intel_encoder->type != INTEL_OUTPUT_HDMI &&
>> - intel_encoder->type != INTEL_OUTPUT_DP)) {
>> + intel_encoder->type != INTEL_OUTPUT_DP &&
>> + intel_encoder->type != INTEL_OUTPUT_DP_MST)) {
>
>I think the better option is to make absolutely sure we never store other kinds
>of encoders in dev_priv->av_enc_map[pipe] to begin with. I think that's true
>already, but please add
>
> if (WARN_ON(intel_encoder->type != INTEL_OUTPUT_HDMI &&
> intel_encoder->type != INTEL_OUTPUT_DP &&
> intel_encoder->type != INTEL_OUTPUT_DP_MST))
> return;
>
>near the beginning of intel_audio_codec_enable(), and remove the type
>checks here. This reduces the confusion about different kinds of checks after
>calling get_saved_enc().
We can't put the check at the beginning of the function.
We still need the check in the same place as we need get intel_encoder at first.
Regards,
Libin
>
>BR,
>Jani.
>
>
>> DRM_DEBUG_KMS("Not valid for port %c\n",
>port_name(port));
>> err = -ENODEV;
>> goto unlock;
>
>--
>Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 2/2] drm/i915/audio: Extend audio sync rate support for DP MST
2016-11-29 16:50 ` Ville Syrjälä
@ 2016-11-30 8:18 ` Yang, Libin
0 siblings, 0 replies; 13+ messages in thread
From: Yang, Libin @ 2016-11-30 8:18 UTC (permalink / raw)
To: Ville Syrjälä, Jani Nikula
Cc: tiwai@suse.de, Vetter, Daniel, intel-gfx@lists.freedesktop.org,
Pandiyan, Dhinakaran, Kp, Jeeja
>-----Original Message-----
>From: Ville Syrjälä [mailto:ville.syrjala@linux.intel.com]
>Sent: Wednesday, November 30, 2016 12:50 AM
>To: Jani Nikula <jani.nikula@linux.intel.com>
>Cc: Yang, Libin <libin.yang@intel.com>; intel-gfx@lists.freedesktop.org; Vetter,
>Daniel <daniel.vetter@intel.com>; Pandiyan, Dhinakaran
><dhinakaran.pandiyan@intel.com>; Kp, Jeeja <jeeja.kp@intel.com>;
>tiwai@suse.de
>Subject: Re: [PATCH 2/2] drm/i915/audio: Extend audio sync rate support for
>DP MST
>
>On Tue, Nov 29, 2016 at 06:33:50PM +0200, Jani Nikula wrote:
>> On Tue, 15 Nov 2016, libin.yang@intel.com wrote:
>> > From: Libin Yang <libin.yang@intel.com>
>> >
>> > This patch extends the support of audio sample rate sync up to DP
>> > MST.
>> >
>> > Signed-off-by: Libin Yang <libin.yang@intel.com>
>> > ---
>> > drivers/gpu/drm/i915/intel_audio.c | 3 ++-
>> > 1 file changed, 2 insertions(+), 1 deletion(-)
>> >
>> > diff --git a/drivers/gpu/drm/i915/intel_audio.c
>> > b/drivers/gpu/drm/i915/intel_audio.c
>> > index c8a1345..88ed869 100644
>> > --- a/drivers/gpu/drm/i915/intel_audio.c
>> > +++ b/drivers/gpu/drm/i915/intel_audio.c
>> > @@ -807,7 +807,8 @@ static int
>i915_audio_component_sync_audio_rate(struct device *kdev, int port,
>> > intel_encoder = get_saved_enc(dev_priv, port, pipe);
>> > if (!intel_encoder || !intel_encoder->base.crtc ||
>> > (intel_encoder->type != INTEL_OUTPUT_HDMI &&
>> > - intel_encoder->type != INTEL_OUTPUT_DP)) {
>> > + intel_encoder->type != INTEL_OUTPUT_DP &&
>> > + intel_encoder->type != INTEL_OUTPUT_DP_MST)) {
>>
>> I think the better option is to make absolutely sure we never store
>> other kinds of encoders in dev_priv->av_enc_map[pipe] to begin with. I
>> think that's true already, but please add
>>
>> if (WARN_ON(intel_encoder->type != INTEL_OUTPUT_HDMI &&
>> intel_encoder->type != INTEL_OUTPUT_DP &&
>> intel_encoder->type != INTEL_OUTPUT_DP_MST))
>> return;
>>
>> near the beginning of intel_audio_codec_enable(), and remove the type
>> checks here. This reduces the confusion about different kinds of
>> checks after calling get_saved_enc().
>
>This while encoder->type thing is pretty broken actually. Currently we're semi-
>randomly flipping DDI encoders between UNKNOWN,HDMI and DP.
>I want to eliminate that so that their type will always be just "DDI".
>For iguring out what kind of signal we are driving out you should be looking at
>crtc_state->output_types.
Do you mean the code should be like:
@@ -807,10 +807,7 @@ static int i915_audio_component_sync_audio_rate(struct device *kdev, int port,
/* 1. get the pipe */
intel_encoder = get_saved_enc(dev_priv, port, pipe);
- if (!intel_encoder || !intel_encoder->base.crtc ||
- (intel_encoder->type != INTEL_OUTPUT_HDMI &&
- intel_encoder->type != INTEL_OUTPUT_DP &&
- intel_encoder->type != INTEL_OUTPUT_DP_MST)) {
+ if (!intel_encoder || !intel_encoder->base.crtc) {
DRM_DEBUG_KMS("Not valid for port %c\n", port_name(port));
err = -ENODEV;
goto unlock;
@@ -819,7 +816,12 @@ static int i915_audio_component_sync_audio_rate(struct device *kdev, int port,
/* pipe passed from the audio driver will be -1 for Non-MST case */
crtc = to_intel_crtc(intel_encoder->base.crtc);
crtc_state = crtc->config;
+ if (WARN_ON((crtc_state->output_types &
+ ((1 << INTEL_OUTPUT_HDMI) |
+ (1 << INTEL_OUTPUT_DP) |
+ (1 << INTEL_OUTPUT_DP_MST))) == 0))
+ return 0;
+
pipe = crtc->pipe;
I did the test, and it seems intel_encoder->type can show the correct type
on my platform. It is similar with crtc_state->output_types.
Regards,
Libin
>
>--
>Ville Syrjälä
>Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 2/2] drm/i915/audio: Extend audio sync rate support for DP MST
2016-11-30 8:10 ` Yang, Libin
@ 2016-11-30 15:51 ` Jani Nikula
2016-12-01 1:35 ` Yang, Libin
0 siblings, 1 reply; 13+ messages in thread
From: Jani Nikula @ 2016-11-30 15:51 UTC (permalink / raw)
To: Yang, Libin, intel-gfx@lists.freedesktop.org,
ville.syrjala@linux.intel.com, Vetter, Daniel,
Pandiyan, Dhinakaran, Kp, Jeeja, tiwai@suse.de
On Wed, 30 Nov 2016, "Yang, Libin" <libin.yang@intel.com> wrote:
>>-----Original Message-----
>>From: Jani Nikula [mailto:jani.nikula@linux.intel.com]
>>Sent: Wednesday, November 30, 2016 12:34 AM
>>To: Yang, Libin <libin.yang@intel.com>; intel-gfx@lists.freedesktop.org;
>>ville.syrjala@linux.intel.com; Vetter, Daniel <daniel.vetter@intel.com>;
>>Pandiyan, Dhinakaran <dhinakaran.pandiyan@intel.com>; Kp, Jeeja
>><jeeja.kp@intel.com>; tiwai@suse.de
>>Cc: Yang, Libin <libin.yang@intel.com>
>>Subject: Re: [PATCH 2/2] drm/i915/audio: Extend audio sync rate support for
>>DP MST
>>
>>On Tue, 15 Nov 2016, libin.yang@intel.com wrote:
>>> From: Libin Yang <libin.yang@intel.com>
>>>
>>> This patch extends the support of audio sample rate sync up to DP MST.
>>>
>>> Signed-off-by: Libin Yang <libin.yang@intel.com>
>>> ---
>>> drivers/gpu/drm/i915/intel_audio.c | 3 ++-
>>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/gpu/drm/i915/intel_audio.c
>>> b/drivers/gpu/drm/i915/intel_audio.c
>>> index c8a1345..88ed869 100644
>>> --- a/drivers/gpu/drm/i915/intel_audio.c
>>> +++ b/drivers/gpu/drm/i915/intel_audio.c
>>> @@ -807,7 +807,8 @@ static int
>>i915_audio_component_sync_audio_rate(struct device *kdev, int port,
>>> intel_encoder = get_saved_enc(dev_priv, port, pipe);
>>> if (!intel_encoder || !intel_encoder->base.crtc ||
>>> (intel_encoder->type != INTEL_OUTPUT_HDMI &&
>>> - intel_encoder->type != INTEL_OUTPUT_DP)) {
>>> + intel_encoder->type != INTEL_OUTPUT_DP &&
>>> + intel_encoder->type != INTEL_OUTPUT_DP_MST)) {
>>
>>I think the better option is to make absolutely sure we never store other kinds
>>of encoders in dev_priv->av_enc_map[pipe] to begin with. I think that's true
>>already, but please add
>>
>> if (WARN_ON(intel_encoder->type != INTEL_OUTPUT_HDMI &&
>> intel_encoder->type != INTEL_OUTPUT_DP &&
>> intel_encoder->type != INTEL_OUTPUT_DP_MST))
>> return;
>>
>>near the beginning of intel_audio_codec_enable(), and remove the type
>>checks here. This reduces the confusion about different kinds of checks after
>>calling get_saved_enc().
>
> We can't put the check at the beginning of the function.
> We still need the check in the same place as we need get intel_encoder at first.
We do not need to duplicate the checks here if we ensure only good stuff
is ever put into av_enc_map.
>
> Regards,
> Libin
>
>>
>>BR,
>>Jani.
>>
>>
>>> DRM_DEBUG_KMS("Not valid for port %c\n",
>>port_name(port));
>>> err = -ENODEV;
>>> goto unlock;
>>
>>--
>>Jani Nikula, Intel Open Source Technology Center
--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 2/2] drm/i915/audio: Extend audio sync rate support for DP MST
2016-11-30 15:51 ` Jani Nikula
@ 2016-12-01 1:35 ` Yang, Libin
0 siblings, 0 replies; 13+ messages in thread
From: Yang, Libin @ 2016-12-01 1:35 UTC (permalink / raw)
To: Jani Nikula, intel-gfx@lists.freedesktop.org,
ville.syrjala@linux.intel.com, Vetter, Daniel,
Pandiyan, Dhinakaran, Kp, Jeeja, tiwai@suse.de
>-----Original Message-----
>From: Jani Nikula [mailto:jani.nikula@linux.intel.com]
>Sent: Wednesday, November 30, 2016 11:52 PM
>To: Yang, Libin <libin.yang@intel.com>; intel-gfx@lists.freedesktop.org;
>ville.syrjala@linux.intel.com; Vetter, Daniel <daniel.vetter@intel.com>;
>Pandiyan, Dhinakaran <dhinakaran.pandiyan@intel.com>; Kp, Jeeja
><jeeja.kp@intel.com>; tiwai@suse.de
>Subject: RE: [PATCH 2/2] drm/i915/audio: Extend audio sync rate support for
>DP MST
>
>On Wed, 30 Nov 2016, "Yang, Libin" <libin.yang@intel.com> wrote:
>>>-----Original Message-----
>>>From: Jani Nikula [mailto:jani.nikula@linux.intel.com]
>>>Sent: Wednesday, November 30, 2016 12:34 AM
>>>To: Yang, Libin <libin.yang@intel.com>;
>>>intel-gfx@lists.freedesktop.org; ville.syrjala@linux.intel.com;
>>>Vetter, Daniel <daniel.vetter@intel.com>; Pandiyan, Dhinakaran
>>><dhinakaran.pandiyan@intel.com>; Kp, Jeeja <jeeja.kp@intel.com>;
>>>tiwai@suse.de
>>>Cc: Yang, Libin <libin.yang@intel.com>
>>>Subject: Re: [PATCH 2/2] drm/i915/audio: Extend audio sync rate
>>>support for DP MST
>>>
>>>On Tue, 15 Nov 2016, libin.yang@intel.com wrote:
>>>> From: Libin Yang <libin.yang@intel.com>
>>>>
>>>> This patch extends the support of audio sample rate sync up to DP MST.
>>>>
>>>> Signed-off-by: Libin Yang <libin.yang@intel.com>
>>>> ---
>>>> drivers/gpu/drm/i915/intel_audio.c | 3 ++-
>>>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>>>
>>>> diff --git a/drivers/gpu/drm/i915/intel_audio.c
>>>> b/drivers/gpu/drm/i915/intel_audio.c
>>>> index c8a1345..88ed869 100644
>>>> --- a/drivers/gpu/drm/i915/intel_audio.c
>>>> +++ b/drivers/gpu/drm/i915/intel_audio.c
>>>> @@ -807,7 +807,8 @@ static int
>>>i915_audio_component_sync_audio_rate(struct device *kdev, int port,
>>>> intel_encoder = get_saved_enc(dev_priv, port, pipe);
>>>> if (!intel_encoder || !intel_encoder->base.crtc ||
>>>> (intel_encoder->type != INTEL_OUTPUT_HDMI &&
>>>> - intel_encoder->type != INTEL_OUTPUT_DP)) {
>>>> + intel_encoder->type != INTEL_OUTPUT_DP &&
>>>> + intel_encoder->type != INTEL_OUTPUT_DP_MST)) {
>>>
>>>I think the better option is to make absolutely sure we never store
>>>other kinds of encoders in dev_priv->av_enc_map[pipe] to begin with. I
>>>think that's true already, but please add
>>>
>>> if (WARN_ON(intel_encoder->type != INTEL_OUTPUT_HDMI &&
>>> intel_encoder->type != INTEL_OUTPUT_DP &&
>>> intel_encoder->type != INTEL_OUTPUT_DP_MST))
>>> return;
>>>
>>>near the beginning of intel_audio_codec_enable(), and remove the type
>>>checks here. This reduces the confusion about different kinds of
>>>checks after calling get_saved_enc().
>>
>> We can't put the check at the beginning of the function.
>> We still need the check in the same place as we need get intel_encoder at
>first.
>
>We do not need to duplicate the checks here if we ensure only good stuff is
>ever put into av_enc_map.
Yes, I agree. I will remove the type judgement.
Regards,
Libin
>
>>
>> Regards,
>> Libin
>>
>>>
>>>BR,
>>>Jani.
>>>
>>>
>>>> DRM_DEBUG_KMS("Not valid for port %c\n",
>>>port_name(port));
>>>> err = -ENODEV;
>>>> goto unlock;
>>>
>>>--
>>>Jani Nikula, Intel Open Source Technology Center
>
>--
>Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH 1/2] drm/i915/audio: extend get_saved_enc() to support more scenarios
@ 2016-12-01 5:17 libin.yang
2016-12-01 5:17 ` [PATCH 2/2] drm/i915/audio: extend audio sync rate support for DP MST libin.yang
2016-12-01 6:15 ` ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915/audio: extend get_saved_enc() to support more scenarios Patchwork
0 siblings, 2 replies; 13+ messages in thread
From: libin.yang @ 2016-12-01 5:17 UTC (permalink / raw)
To: intel-gfx, jani.nikula, ville.syrjala, daniel.vetter,
dhinakaran.pandiyan, tiwai
Cc: Libin Yang
From: Libin Yang <libin.yang@linux.intel.com>
In initialization, audio driver will call functions get_eld() and etc.
But at that time, audio driver may not know whether it is DP MST or not.
In the original function get_saved_enc(), if it is DP MST, it requires to
set the pipe to the correct value, otherwise, pipe to be -1.
Although audio driver can get the knowledge whether it is in DP MST mode
or not by reading the codec register. It will drop performance each time
before it calls the get_eld and other similar functions. As gfx driver can
easily know whether it is in DP MST mode or not. Let's extend the
get_saved_enc() function to handle the situation that audio driver
still sends the device id info even it is in DP SST mode and return
the correct intel_encoder instead of panic.
Signed-off-by: Libin Yang <libin.yang@linux.intel.com>
---
drivers/gpu/drm/i915/intel_audio.c | 32 ++++++++++++++++++++++++++++----
1 file changed, 28 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_audio.c b/drivers/gpu/drm/i915/intel_audio.c
index 49f1053..c8a1345 100644
--- a/drivers/gpu/drm/i915/intel_audio.c
+++ b/drivers/gpu/drm/i915/intel_audio.c
@@ -737,25 +737,49 @@ static int i915_audio_component_get_cdclk_freq(struct device *kdev)
return dev_priv->cdclk_freq;
}
+/*
+ * get the intel_encoder according to the parameter port and pipe
+ * intel_encoder is saved by the index of pipe
+ * MST & (pipe >= 0): return the av_enc_map[pipe],
+ * when port is matched
+ * MST & (pipe < 0): this is invalid
+ * Non-MST & (pipe >= 0): only pipe = 0 (the first device entry)
+ * will get the right intel_encoder with port matched
+ * Non-MST & (pipe < 0): get the right intel_encoder with port matched
+ */
static struct intel_encoder *get_saved_enc(struct drm_i915_private *dev_priv,
int port, int pipe)
{
+ struct intel_encoder *encoder;
if (WARN_ON(pipe >= I915_MAX_PIPES))
return NULL;
/* MST */
- if (pipe >= 0)
- return dev_priv->av_enc_map[pipe];
+ if (pipe >= 0) {
+ encoder = dev_priv->av_enc_map[pipe];
+ /*
+ * when bootup, audio driver may not know it is
+ * MST or not. So it will poll all the port & pipe
+ * combinations
+ */
+ if (encoder != NULL && encoder->port == port &&
+ encoder->type == INTEL_OUTPUT_DP_MST)
+ return encoder;
+ }
/* Non-MST */
- for_each_pipe(dev_priv, pipe) {
- struct intel_encoder *encoder;
+ if (pipe > 0)
+ return NULL;
+ for_each_pipe(dev_priv, pipe) {
encoder = dev_priv->av_enc_map[pipe];
if (encoder == NULL)
continue;
+ if (encoder->type == INTEL_OUTPUT_DP_MST)
+ continue;
+
if (port == encoder->port)
return encoder;
}
--
2.7.4
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 2/2] drm/i915/audio: extend audio sync rate support for DP MST
2016-12-01 5:17 [PATCH 1/2] drm/i915/audio: extend get_saved_enc() to support more scenarios libin.yang
@ 2016-12-01 5:17 ` libin.yang
2016-12-02 6:47 ` Yang, Libin
2016-12-01 6:15 ` ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915/audio: extend get_saved_enc() to support more scenarios Patchwork
1 sibling, 1 reply; 13+ messages in thread
From: libin.yang @ 2016-12-01 5:17 UTC (permalink / raw)
To: intel-gfx, jani.nikula, ville.syrjala, daniel.vetter,
dhinakaran.pandiyan, tiwai
From: Libin Yang <libin.yang@intel.com>
Remove the type judgement in i915_audio_component_sync_audio_rate().
Audio rate sync is necessary for all i915 digital audio now.
Signed-off-by: Libin Yang <libin.yang@intel.com>
---
drivers/gpu/drm/i915/intel_audio.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_audio.c b/drivers/gpu/drm/i915/intel_audio.c
index c8a1345..3bbc96c 100644
--- a/drivers/gpu/drm/i915/intel_audio.c
+++ b/drivers/gpu/drm/i915/intel_audio.c
@@ -805,9 +805,7 @@ static int i915_audio_component_sync_audio_rate(struct device *kdev, int port,
/* 1. get the pipe */
intel_encoder = get_saved_enc(dev_priv, port, pipe);
- if (!intel_encoder || !intel_encoder->base.crtc ||
- (intel_encoder->type != INTEL_OUTPUT_HDMI &&
- intel_encoder->type != INTEL_OUTPUT_DP)) {
+ if (!intel_encoder || !intel_encoder->base.crtc) {
DRM_DEBUG_KMS("Not valid for port %c\n", port_name(port));
err = -ENODEV;
goto unlock;
--
2.7.4
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 13+ messages in thread
* ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915/audio: extend get_saved_enc() to support more scenarios
2016-12-01 5:17 [PATCH 1/2] drm/i915/audio: extend get_saved_enc() to support more scenarios libin.yang
2016-12-01 5:17 ` [PATCH 2/2] drm/i915/audio: extend audio sync rate support for DP MST libin.yang
@ 2016-12-01 6:15 ` Patchwork
1 sibling, 0 replies; 13+ messages in thread
From: Patchwork @ 2016-12-01 6:15 UTC (permalink / raw)
To: libin.yang; +Cc: intel-gfx
== Series Details ==
Series: series starting with [1/2] drm/i915/audio: extend get_saved_enc() to support more scenarios
URL : https://patchwork.freedesktop.org/series/16200/
State : success
== Summary ==
Series 16200v1 Series without cover letter
https://patchwork.freedesktop.org/api/1.0/series/16200/revisions/1/mbox/
Test kms_busy:
Subgroup basic-flip-default-a:
skip -> PASS (fi-ivb-3770)
Subgroup basic-flip-default-b:
skip -> PASS (fi-ivb-3770)
Subgroup basic-flip-default-c:
skip -> PASS (fi-ivb-3770)
Test kms_cursor_legacy:
Subgroup basic-busy-flip-before-cursor-legacy:
skip -> PASS (fi-ivb-3770)
Subgroup basic-busy-flip-before-cursor-varying-size:
skip -> PASS (fi-ivb-3770)
Subgroup basic-flip-after-cursor-legacy:
skip -> PASS (fi-ivb-3770)
Subgroup basic-flip-after-cursor-varying-size:
skip -> PASS (fi-ivb-3770)
Subgroup basic-flip-before-cursor-legacy:
skip -> PASS (fi-ivb-3770)
Subgroup basic-flip-before-cursor-varying-size:
skip -> PASS (fi-ivb-3770)
Test kms_force_connector_basic:
Subgroup force-connector-state:
skip -> PASS (fi-ivb-3770)
Subgroup force-edid:
skip -> PASS (fi-ivb-3770)
Subgroup force-load-detect:
skip -> PASS (fi-ivb-3770)
Subgroup prune-stale-modes:
skip -> PASS (fi-ivb-3770)
Test kms_pipe_crc_basic:
Subgroup hang-read-crc-pipe-a:
skip -> PASS (fi-ivb-3770)
Subgroup suspend-read-crc-pipe-a:
skip -> PASS (fi-ivb-3770)
Subgroup suspend-read-crc-pipe-b:
skip -> PASS (fi-ivb-3770)
Subgroup suspend-read-crc-pipe-c:
skip -> PASS (fi-ivb-3770)
Test prime_vgem:
Subgroup basic-fence-flip:
skip -> PASS (fi-ivb-3770)
fi-bdw-5557u total:245 pass:230 dwarn:0 dfail:0 fail:0 skip:15
fi-bsw-n3050 total:245 pass:205 dwarn:0 dfail:0 fail:0 skip:40
fi-bxt-t5700 total:245 pass:217 dwarn:0 dfail:0 fail:0 skip:28
fi-byt-j1900 total:245 pass:217 dwarn:0 dfail:0 fail:0 skip:28
fi-byt-n2820 total:245 pass:213 dwarn:0 dfail:0 fail:0 skip:32
fi-hsw-4770 total:245 pass:225 dwarn:0 dfail:0 fail:0 skip:20
fi-hsw-4770r total:245 pass:225 dwarn:0 dfail:0 fail:0 skip:20
fi-ilk-650 total:245 pass:192 dwarn:0 dfail:0 fail:0 skip:53
fi-ivb-3520m total:245 pass:223 dwarn:0 dfail:0 fail:0 skip:22
fi-ivb-3770 total:245 pass:223 dwarn:0 dfail:0 fail:0 skip:22
fi-kbl-7500u total:245 pass:223 dwarn:0 dfail:0 fail:0 skip:22
fi-skl-6260u total:245 pass:231 dwarn:0 dfail:0 fail:0 skip:14
fi-skl-6700hq total:245 pass:224 dwarn:0 dfail:0 fail:0 skip:21
fi-skl-6700k total:245 pass:223 dwarn:1 dfail:0 fail:0 skip:21
fi-skl-6770hq total:245 pass:231 dwarn:0 dfail:0 fail:0 skip:14
fi-snb-2520m total:245 pass:213 dwarn:0 dfail:0 fail:0 skip:32
fi-snb-2600 total:245 pass:212 dwarn:0 dfail:0 fail:0 skip:33
51c6c255aa05775bcfb3f5790a3b9249e5990f3e drm-tip: 2016y-11m-30d-16h-12m-19s UTC integration manifest
a6d27e4 drm/i915/audio: extend audio sync rate support for DP MST
99235be drm/i915/audio: extend get_saved_enc() to support more scenarios
== Logs ==
For more details see: https://intel-gfx-ci.01.org/CI/Patchwork_3156/
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 2/2] drm/i915/audio: extend audio sync rate support for DP MST
2016-12-01 5:17 ` [PATCH 2/2] drm/i915/audio: extend audio sync rate support for DP MST libin.yang
@ 2016-12-02 6:47 ` Yang, Libin
2016-12-02 14:25 ` Jani Nikula
0 siblings, 1 reply; 13+ messages in thread
From: Yang, Libin @ 2016-12-02 6:47 UTC (permalink / raw)
To: intel-gfx@lists.freedesktop.org, jani.nikula@linux.intel.com,
ville.syrjala@linux.intel.com, Vetter, Daniel,
Pandiyan, Dhinakaran, tiwai@suse.de, Liang.Xiao1@dell.com
Any comments? Thanks.
Regards,
Libin
>-----Original Message-----
>From: Yang, Libin
>Sent: Thursday, December 1, 2016 1:17 PM
>To: intel-gfx@lists.freedesktop.org; jani.nikula@linux.intel.com;
>ville.syrjala@linux.intel.com; Vetter, Daniel <daniel.vetter@intel.com>;
>Pandiyan, Dhinakaran <dhinakaran.pandiyan@intel.com>; tiwai@suse.de
>Cc: Yang, Libin <libin.yang@intel.com>
>Subject: [PATCH 2/2] drm/i915/audio: extend audio sync rate support for DP
>MST
>
>From: Libin Yang <libin.yang@intel.com>
>
>Remove the type judgement in i915_audio_component_sync_audio_rate().
>Audio rate sync is necessary for all i915 digital audio now.
>
>Signed-off-by: Libin Yang <libin.yang@intel.com>
>---
> drivers/gpu/drm/i915/intel_audio.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
>diff --git a/drivers/gpu/drm/i915/intel_audio.c
>b/drivers/gpu/drm/i915/intel_audio.c
>index c8a1345..3bbc96c 100644
>--- a/drivers/gpu/drm/i915/intel_audio.c
>+++ b/drivers/gpu/drm/i915/intel_audio.c
>@@ -805,9 +805,7 @@ static int
>i915_audio_component_sync_audio_rate(struct device *kdev, int port,
>
> /* 1. get the pipe */
> intel_encoder = get_saved_enc(dev_priv, port, pipe);
>- if (!intel_encoder || !intel_encoder->base.crtc ||
>- (intel_encoder->type != INTEL_OUTPUT_HDMI &&
>- intel_encoder->type != INTEL_OUTPUT_DP)) {
>+ if (!intel_encoder || !intel_encoder->base.crtc) {
> DRM_DEBUG_KMS("Not valid for port %c\n",
>port_name(port));
> err = -ENODEV;
> goto unlock;
>--
>2.7.4
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 2/2] drm/i915/audio: extend audio sync rate support for DP MST
2016-12-02 6:47 ` Yang, Libin
@ 2016-12-02 14:25 ` Jani Nikula
2016-12-03 13:22 ` Yang, Libin
0 siblings, 1 reply; 13+ messages in thread
From: Jani Nikula @ 2016-12-02 14:25 UTC (permalink / raw)
To: Yang, Libin, intel-gfx@lists.freedesktop.org,
ville.syrjala@linux.intel.com, Vetter, Daniel,
Pandiyan, Dhinakaran, tiwai@suse.de, Liang.Xiao1@dell.com
On Fri, 02 Dec 2016, "Yang, Libin" <libin.yang@intel.com> wrote:
> Any comments? Thanks.
Both pushed to dinq, thanks for the patches.
Libin and/or Dhinakaran, please improve the documentation of struct
i915_audio_component_ops to describe the parameters of sync_audio_rate
and get_eld hooks. For example, there's nothing about pipe being -1 for
non-MST.
BR,
Jani.
>
> Regards,
> Libin
>
>
>>-----Original Message-----
>>From: Yang, Libin
>>Sent: Thursday, December 1, 2016 1:17 PM
>>To: intel-gfx@lists.freedesktop.org; jani.nikula@linux.intel.com;
>>ville.syrjala@linux.intel.com; Vetter, Daniel <daniel.vetter@intel.com>;
>>Pandiyan, Dhinakaran <dhinakaran.pandiyan@intel.com>; tiwai@suse.de
>>Cc: Yang, Libin <libin.yang@intel.com>
>>Subject: [PATCH 2/2] drm/i915/audio: extend audio sync rate support for DP
>>MST
>>
>>From: Libin Yang <libin.yang@intel.com>
>>
>>Remove the type judgement in i915_audio_component_sync_audio_rate().
>>Audio rate sync is necessary for all i915 digital audio now.
>>
>>Signed-off-by: Libin Yang <libin.yang@intel.com>
>>---
>> drivers/gpu/drm/i915/intel_audio.c | 4 +---
>> 1 file changed, 1 insertion(+), 3 deletions(-)
>>
>>diff --git a/drivers/gpu/drm/i915/intel_audio.c
>>b/drivers/gpu/drm/i915/intel_audio.c
>>index c8a1345..3bbc96c 100644
>>--- a/drivers/gpu/drm/i915/intel_audio.c
>>+++ b/drivers/gpu/drm/i915/intel_audio.c
>>@@ -805,9 +805,7 @@ static int
>>i915_audio_component_sync_audio_rate(struct device *kdev, int port,
>>
>> /* 1. get the pipe */
>> intel_encoder = get_saved_enc(dev_priv, port, pipe);
>>- if (!intel_encoder || !intel_encoder->base.crtc ||
>>- (intel_encoder->type != INTEL_OUTPUT_HDMI &&
>>- intel_encoder->type != INTEL_OUTPUT_DP)) {
>>+ if (!intel_encoder || !intel_encoder->base.crtc) {
>> DRM_DEBUG_KMS("Not valid for port %c\n",
>>port_name(port));
>> err = -ENODEV;
>> goto unlock;
>>--
>>2.7.4
>
--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 2/2] drm/i915/audio: extend audio sync rate support for DP MST
2016-12-02 14:25 ` Jani Nikula
@ 2016-12-03 13:22 ` Yang, Libin
0 siblings, 0 replies; 13+ messages in thread
From: Yang, Libin @ 2016-12-03 13:22 UTC (permalink / raw)
To: Jani Nikula, intel-gfx@lists.freedesktop.org,
ville.syrjala@linux.intel.com, Vetter, Daniel,
Pandiyan, Dhinakaran, tiwai@suse.de, Liang.Xiao1@dell.com
>-----Original Message-----
>From: Jani Nikula [mailto:jani.nikula@linux.intel.com]
>Sent: Friday, December 2, 2016 10:25 PM
>To: Yang, Libin <libin.yang@intel.com>; intel-gfx@lists.freedesktop.org;
>ville.syrjala@linux.intel.com; Vetter, Daniel <daniel.vetter@intel.com>;
>Pandiyan, Dhinakaran <dhinakaran.pandiyan@intel.com>; tiwai@suse.de;
>Liang.Xiao1@dell.com
>Subject: RE: [PATCH 2/2] drm/i915/audio: extend audio sync rate support for
>DP MST
>
>On Fri, 02 Dec 2016, "Yang, Libin" <libin.yang@intel.com> wrote:
>> Any comments? Thanks.
>
>Both pushed to dinq, thanks for the patches.
>
>Libin and/or Dhinakaran, please improve the documentation of struct
>i915_audio_component_ops to describe the parameters of sync_audio_rate
>and get_eld hooks. For example, there's nothing about pipe being -1 for non-
>MST.
Thanks. Get it. I will update it next week.
Regards,
Libin
>
>BR,
>Jani.
>
>
>>
>> Regards,
>> Libin
>>
>>
>>>-----Original Message-----
>>>From: Yang, Libin
>>>Sent: Thursday, December 1, 2016 1:17 PM
>>>To: intel-gfx@lists.freedesktop.org; jani.nikula@linux.intel.com;
>>>ville.syrjala@linux.intel.com; Vetter, Daniel
>>><daniel.vetter@intel.com>; Pandiyan, Dhinakaran
>>><dhinakaran.pandiyan@intel.com>; tiwai@suse.de
>>>Cc: Yang, Libin <libin.yang@intel.com>
>>>Subject: [PATCH 2/2] drm/i915/audio: extend audio sync rate support
>>>for DP MST
>>>
>>>From: Libin Yang <libin.yang@intel.com>
>>>
>>>Remove the type judgement in i915_audio_component_sync_audio_rate().
>>>Audio rate sync is necessary for all i915 digital audio now.
>>>
>>>Signed-off-by: Libin Yang <libin.yang@intel.com>
>>>---
>>> drivers/gpu/drm/i915/intel_audio.c | 4 +---
>>> 1 file changed, 1 insertion(+), 3 deletions(-)
>>>
>>>diff --git a/drivers/gpu/drm/i915/intel_audio.c
>>>b/drivers/gpu/drm/i915/intel_audio.c
>>>index c8a1345..3bbc96c 100644
>>>--- a/drivers/gpu/drm/i915/intel_audio.c
>>>+++ b/drivers/gpu/drm/i915/intel_audio.c
>>>@@ -805,9 +805,7 @@ static int
>>>i915_audio_component_sync_audio_rate(struct device *kdev, int port,
>>>
>>> /* 1. get the pipe */
>>> intel_encoder = get_saved_enc(dev_priv, port, pipe);
>>>- if (!intel_encoder || !intel_encoder->base.crtc ||
>>>- (intel_encoder->type != INTEL_OUTPUT_HDMI &&
>>>- intel_encoder->type != INTEL_OUTPUT_DP)) {
>>>+ if (!intel_encoder || !intel_encoder->base.crtc) {
>>> DRM_DEBUG_KMS("Not valid for port %c\n",
>port_name(port));
>>> err = -ENODEV;
>>> goto unlock;
>>>--
>>>2.7.4
>>
>
>--
>Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2016-12-03 13:22 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-01 5:17 [PATCH 1/2] drm/i915/audio: extend get_saved_enc() to support more scenarios libin.yang
2016-12-01 5:17 ` [PATCH 2/2] drm/i915/audio: extend audio sync rate support for DP MST libin.yang
2016-12-02 6:47 ` Yang, Libin
2016-12-02 14:25 ` Jani Nikula
2016-12-03 13:22 ` Yang, Libin
2016-12-01 6:15 ` ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915/audio: extend get_saved_enc() to support more scenarios Patchwork
-- strict thread matches above, loose matches on Subject: below --
2016-11-15 7:04 [PATCH 1/2] " libin.yang
2016-11-15 7:04 ` [PATCH 2/2] drm/i915/audio: Extend audio sync rate support for DP MST libin.yang
2016-11-29 16:33 ` Jani Nikula
2016-11-29 16:50 ` Ville Syrjälä
2016-11-30 8:18 ` Yang, Libin
2016-11-30 8:10 ` Yang, Libin
2016-11-30 15:51 ` Jani Nikula
2016-12-01 1:35 ` Yang, Libin
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).