All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] Add hwcap2 bits for POWER9
       [not found]     ` <568FE3D0.7080008@linaro.org>
@ 2016-01-11 15:16       ` Tulio Magno Quites Machado Filho
  2016-01-11 15:21         ` Carlos O'Donell
  0 siblings, 1 reply; 8+ messages in thread
From: Tulio Magno Quites Machado Filho @ 2016-01-11 15:16 UTC (permalink / raw)
  To: Adhemerval Zanella; +Cc: libc-alpha, linuxppc-dev, Steve Munroe

Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:

> On 08-01-2016 13:36, Peter Bergner wrote:
>> On Fri, 2016-01-08 at 11:25 -0200, Tulio Magno Quites Machado Filho wrote:
>>> Peter, this solves the issue you reported previously [1].
>>>
>>> [1] https://sourceware.org/ml/libc-alpha/2015-12/msg00522.html
>> 
>> Agreed, thanks.  I'll also add the POWER9 support to the GCC side
>> of the patch now that the glibc code is upstream.
>
> I do not see these bits being added in kernel side yet and GLIBC usual
> only sync these kind of bits *after* they are included in kernel side.
> So I would advise to either get these pieces (kernel support and hwcap
> advertise) in kernel before 2.23 release, otherwise revert the patches.

Ack.
It has just been sent to the correspondent Linux mailing list:
https://lists.ozlabs.org/pipermail/linuxppc-dev/2016-January/137763.html

-- 
Tulio Magno

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

* Re: [PATCH] Add hwcap2 bits for POWER9
  2016-01-11 15:16       ` [PATCH] Add hwcap2 bits for POWER9 Tulio Magno Quites Machado Filho
@ 2016-01-11 15:21         ` Carlos O'Donell
  2016-01-11 19:55           ` Tulio Magno Quites Machado Filho
  0 siblings, 1 reply; 8+ messages in thread
From: Carlos O'Donell @ 2016-01-11 15:21 UTC (permalink / raw)
  To: Tulio Magno Quites Machado Filho, Adhemerval Zanella
  Cc: libc-alpha, linuxppc-dev, Steve Munroe

On 01/11/2016 10:16 AM, Tulio Magno Quites Machado Filho wrote:
> Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:
> 
>> On 08-01-2016 13:36, Peter Bergner wrote:
>>> On Fri, 2016-01-08 at 11:25 -0200, Tulio Magno Quites Machado Filho wrote:
>>>> Peter, this solves the issue you reported previously [1].
>>>>
>>>> [1] https://sourceware.org/ml/libc-alpha/2015-12/msg00522.html
>>>
>>> Agreed, thanks.  I'll also add the POWER9 support to the GCC side
>>> of the patch now that the glibc code is upstream.
>>
>> I do not see these bits being added in kernel side yet and GLIBC usual
>> only sync these kind of bits *after* they are included in kernel side.
>> So I would advise to either get these pieces (kernel support and hwcap
>> advertise) in kernel before 2.23 release, otherwise revert the patches.
> 
> Ack.
> It has just been sent to the correspondent Linux mailing list:
> https://lists.ozlabs.org/pipermail/linuxppc-dev/2016-January/137763.html

Please revert the changes from glibc until you checkin support to linux
kernel mainline.

Leaving these bits in increases the risk that someone uses to deploy a glibc
that then may have the wrong value.

Cheers,
Carlos.
 

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

* Re: [PATCH] Add hwcap2 bits for POWER9
  2016-01-11 15:21         ` Carlos O'Donell
@ 2016-01-11 19:55           ` Tulio Magno Quites Machado Filho
  2016-01-11 20:48             ` Carlos O'Donell
  2016-01-15 22:30             ` Carlos Eduardo Seo
  0 siblings, 2 replies; 8+ messages in thread
From: Tulio Magno Quites Machado Filho @ 2016-01-11 19:55 UTC (permalink / raw)
  To: Carlos O'Donell
  Cc: Adhemerval Zanella, libc-alpha, linuxppc-dev, Steve Munroe

"Carlos O'Donell" <carlos@redhat.com> writes:

> On 01/11/2016 10:16 AM, Tulio Magno Quites Machado Filho wrote:
>> Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:
>> 
>>> On 08-01-2016 13:36, Peter Bergner wrote:
>>>> On Fri, 2016-01-08 at 11:25 -0200, Tulio Magno Quites Machado Filho wrote:
>>>>> Peter, this solves the issue you reported previously [1].
>>>>>
>>>>> [1] https://sourceware.org/ml/libc-alpha/2015-12/msg00522.html
>>>>
>>>> Agreed, thanks.  I'll also add the POWER9 support to the GCC side
>>>> of the patch now that the glibc code is upstream.
>>>
>>> I do not see these bits being added in kernel side yet and GLIBC usual
>>> only sync these kind of bits *after* they are included in kernel side.
>>> So I would advise to either get these pieces (kernel support and hwcap
>>> advertise) in kernel before 2.23 release, otherwise revert the patches.
>> 
>> Ack.
>> It has just been sent to the correspondent Linux mailing list:
>> https://lists.ozlabs.org/pipermail/linuxppc-dev/2016-January/137763.html
>
> Please revert the changes from glibc until you checkin support to linux
> kernel mainline.
>
> Leaving these bits in increases the risk that someone uses to deploy a glibc
> that then may have the wrong value.

Could you clarify this statement, please?
I fail to see how they could have the wrong value.

These bits are enabled if you're running a kernel on a processor that
supports ISA 3.0 and/or VSX IEEE Float 128-bit.  The kernel must also support
this processor.

I see 3 possible scenarios:
 - Processor that doesn't support these features: as these bits are 0 by
   default, they have the correct value.
 - Both processor and kernel support these features: both bits are set,
   which is the correct value.
 - Processor support these features, but an old kernel doesn't support: these
   bits would be 0.  But, that's a valid scenario.

Am I missing another scenario?

However, I do agree with the concerns raised by Peter and Adhemerval: glibc
should be in sync with the kernel by the time of the release in order to
guarantee both bits are reserved for the exact same goal and we should have
both AT_HWCAP and AT_PLATFORM supporting the new processor.
With that said, I was planning to revert both commits d2de9ef7 and b1f19b8e
if we don't get the kernel patch accepted into the powerpc tree in time for
the release 2.23.

-- 
Tulio Magno

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

* Re: [PATCH] Add hwcap2 bits for POWER9
  2016-01-11 19:55           ` Tulio Magno Quites Machado Filho
@ 2016-01-11 20:48             ` Carlos O'Donell
  2016-01-12 16:39               ` Steven Munroe
  2016-01-15 22:30             ` Carlos Eduardo Seo
  1 sibling, 1 reply; 8+ messages in thread
From: Carlos O'Donell @ 2016-01-11 20:48 UTC (permalink / raw)
  To: Tulio Magno Quites Machado Filho
  Cc: Adhemerval Zanella, libc-alpha, linuxppc-dev, Steve Munroe

On 01/11/2016 02:55 PM, Tulio Magno Quites Machado Filho wrote:
> "Carlos O'Donell" <carlos@redhat.com> writes:
> 
>> On 01/11/2016 10:16 AM, Tulio Magno Quites Machado Filho wrote:
>>> Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:
>>>
>>>> On 08-01-2016 13:36, Peter Bergner wrote:
>>>>> On Fri, 2016-01-08 at 11:25 -0200, Tulio Magno Quites Machado Filho wrote:
>>>>>> Peter, this solves the issue you reported previously [1].
>>>>>>
>>>>>> [1] https://sourceware.org/ml/libc-alpha/2015-12/msg00522.html
>>>>>
>>>>> Agreed, thanks.  I'll also add the POWER9 support to the GCC side
>>>>> of the patch now that the glibc code is upstream.
>>>>
>>>> I do not see these bits being added in kernel side yet and GLIBC usual
>>>> only sync these kind of bits *after* they are included in kernel side.
>>>> So I would advise to either get these pieces (kernel support and hwcap
>>>> advertise) in kernel before 2.23 release, otherwise revert the patches.
>>>
>>> Ack.
>>> It has just been sent to the correspondent Linux mailing list:
>>> https://lists.ozlabs.org/pipermail/linuxppc-dev/2016-January/137763.html
>>
>> Please revert the changes from glibc until you checkin support to linux
>> kernel mainline.
>>
>> Leaving these bits in increases the risk that someone uses to deploy a glibc
>> that then may have the wrong value.
> 
> Could you clarify this statement, please?
> I fail to see how they could have the wrong value.

Until it is checked into the mainline kernel it is not canonical.

That's the rule. There are no other discussions to be had.

The single rule avoids discussions like "it can never be wrong because that's
what our ABI says it is."
 
> However, I do agree with the concerns raised by Peter and Adhemerval: glibc
> should be in sync with the kernel by the time of the release in order to
> guarantee both bits are reserved for the exact same goal and we should have
> both AT_HWCAP and AT_PLATFORM supporting the new processor.
> With that said, I was planning to revert both commits d2de9ef7 and b1f19b8e
> if we don't get the kernel patch accepted into the powerpc tree in time for
> the release 2.23.

Exactly. That's perfect. We can backport them to 2.23.1 if you get in later.

Cheers,
Carlos.
 

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

* Re: [PATCH] Add hwcap2 bits for POWER9
  2016-01-11 20:48             ` Carlos O'Donell
@ 2016-01-12 16:39               ` Steven Munroe
  2016-01-12 17:45                 ` Carlos O'Donell
  2016-01-15 23:09                 ` Michael Ellerman
  0 siblings, 2 replies; 8+ messages in thread
From: Steven Munroe @ 2016-01-12 16:39 UTC (permalink / raw)
  To: Carlos O'Donell
  Cc: Tulio Magno Quites Machado Filho, Adhemerval Zanella, libc-alpha,
	linuxppc-dev

On Mon, 2016-01-11 at 15:48 -0500, Carlos O'Donell wrote:
> On 01/11/2016 02:55 PM, Tulio Magno Quites Machado Filho wrote:
> > "Carlos O'Donell" <carlos@redhat.com> writes:
> > 
> >> On 01/11/2016 10:16 AM, Tulio Magno Quites Machado Filho wrote:
> >>> Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:
> >>>
> >>>> On 08-01-2016 13:36, Peter Bergner wrote:
> >>>>> On Fri, 2016-01-08 at 11:25 -0200, Tulio Magno Quites Machado Filho wrote:
> >>>>>> Peter, this solves the issue you reported previously [1].
> >>>>>>
> >>>>>> [1] https://sourceware.org/ml/libc-alpha/2015-12/msg00522.html
> >>>>>
> >>>>> Agreed, thanks.  I'll also add the POWER9 support to the GCC side
> >>>>> of the patch now that the glibc code is upstream.
> >>>>
> >>>> I do not see these bits being added in kernel side yet and GLIBC usual
> >>>> only sync these kind of bits *after* they are included in kernel side.
> >>>> So I would advise to either get these pieces (kernel support and hwcap
> >>>> advertise) in kernel before 2.23 release, otherwise revert the patches.
> >>>
> >>> Ack.
> >>> It has just been sent to the correspondent Linux mailing list:
> >>> https://lists.ozlabs.org/pipermail/linuxppc-dev/2016-January/137763.html
> >>
> >> Please revert the changes from glibc until you checkin support to linux
> >> kernel mainline.
> >>
> >> Leaving these bits in increases the risk that someone uses to deploy a glibc
> >> that then may have the wrong value.
> > 
> > Could you clarify this statement, please?
> > I fail to see how they could have the wrong value.
> 
> Until it is checked into the mainline kernel it is not canonical.
> 
> That's the rule. There are no other discussions to be had.
> 
Well is was posted to to powerpc next:
https://git.kernel.org/powerpc/c/e708c24cd01ce80b1609d8bacc

We have agreement between the kernel and GLIBC (and the ABI). 

The issue is just coordination across communities and individuals that
may not being paying attention to other communities dead lines.

Have you ever tried to push a string, up hill. That is open source
development in nutshell. ;)

So it is in flight and glibc is soft/slush freeze. I would hate to
revert this one day just to add it back to the next. Especially if those
days straddle the hard freeze ...

So can we let this ride a day or too?

> The single rule avoids discussions like "it can never be wrong because that's
> what our ABI says it is."
> 

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

* Re: [PATCH] Add hwcap2 bits for POWER9
  2016-01-12 16:39               ` Steven Munroe
@ 2016-01-12 17:45                 ` Carlos O'Donell
  2016-01-15 23:09                 ` Michael Ellerman
  1 sibling, 0 replies; 8+ messages in thread
From: Carlos O'Donell @ 2016-01-12 17:45 UTC (permalink / raw)
  To: munroesj
  Cc: Tulio Magno Quites Machado Filho, Adhemerval Zanella, libc-alpha,
	linuxppc-dev

On 01/12/2016 11:39 AM, Steven Munroe wrote:
>> That's the rule. There are no other discussions to be had.
>>
> Well is was posted to to powerpc next:
> https://git.kernel.org/powerpc/c/e708c24cd01ce80b1609d8bacc
> 
> We have agreement between the kernel and GLIBC (and the ABI). 
> 
> The issue is just coordination across communities and individuals that
> may not being paying attention to other communities dead lines.
> 
> Have you ever tried to push a string, up hill. That is open source
> development in nutshell. ;)

I know exactly what this is like.

> So it is in flight and glibc is soft/slush freeze. I would hate to
> revert this one day just to add it back to the next. Especially if those
> days straddle the hard freeze ...
> 
> So can we let this ride a day or too?

Sure. I'm not an unreasonable person.

My goal as a glibc steward is to remind IBM that our best practice is that
we *wait* until it goes into mainline before committing to glibc master.

There really isn't any reason to check this in to glibc master right now.
It could wait.

Adhemerval as a release manager is also not an unreasonable person.
I have already discussed with Tulio that he should have just waited to
commit these changes, but gotten an exception from Adhemerval to checkin
the fairly low-risk patches late in the freeze. That's exactly the purpose
of a release managers job, to grant you exceptions as we approach release,
particularly when schedules don't quite line up.

Cheers,
Carlos.

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

* Re: [PATCH] Add hwcap2 bits for POWER9
  2016-01-11 19:55           ` Tulio Magno Quites Machado Filho
  2016-01-11 20:48             ` Carlos O'Donell
@ 2016-01-15 22:30             ` Carlos Eduardo Seo
  1 sibling, 0 replies; 8+ messages in thread
From: Carlos Eduardo Seo @ 2016-01-15 22:30 UTC (permalink / raw)
  To: Tulio Magno Quites Machado Filho, Carlos O'Donell
  Cc: Adhemerval Zanella, libc-alpha, linuxppc-dev, Steve Munroe



On 1/11/16 5:55 PM, Tulio Magno Quites Machado Filho wrote:
>
> However, I do agree with the concerns raised by Peter and Adhemerval: glibc
> should be in sync with the kernel by the time of the release in order to
> guarantee both bits are reserved for the exact same goal and we should have
> both AT_HWCAP and AT_PLATFORM supporting the new processor.
> With that said, I was planning to revert both commits d2de9ef7 and b1f19b8e
> if we don't get the kernel patch accepted into the powerpc tree in time for
> the release 2.23.
>

Kernel patch is in, commit f689b742f217b2ffe7925f8a6521b208ee995309

Regards,

-- 
Carlos Eduardo Seo
Software Engineer - Linux on Power Toolchain
cseo@linux.vnet.ibm.com

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

* Re: [PATCH] Add hwcap2 bits for POWER9
  2016-01-12 16:39               ` Steven Munroe
  2016-01-12 17:45                 ` Carlos O'Donell
@ 2016-01-15 23:09                 ` Michael Ellerman
  1 sibling, 0 replies; 8+ messages in thread
From: Michael Ellerman @ 2016-01-15 23:09 UTC (permalink / raw)
  To: munroesj, Carlos O'Donell
  Cc: linuxppc-dev, libc-alpha, Adhemerval Zanella,
	Tulio Magno Quites Machado Filho



On 13 January 2016 03:39:17 GMT+11:00, Steven Munroe <munroesj@linux.vnet.ibm.com> wrote:
>On Mon, 2016-01-11 at 15:48 -0500, Carlos O'Donell wrote:
>> On 01/11/2016 02:55 PM, Tulio Magno Quites Machado Filho wrote:
>> > "Carlos O'Donell" <carlos@redhat.com> writes:
>> > 
>> >> On 01/11/2016 10:16 AM, Tulio Magno Quites Machado Filho wrote:
>> >>> Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:
>> >>>
>> >>>> On 08-01-2016 13:36, Peter Bergner wrote:
>> >>>>> On Fri, 2016-01-08 at 11:25 -0200, Tulio Magno Quites Machado
>Filho wrote:
>> >>>>>> Peter, this solves the issue you reported previously [1].
>> >>>>>>
>> >>>>>> [1] https://sourceware.org/ml/libc-alpha/2015-12/msg00522.html
>> >>>>>
>> >>>>> Agreed, thanks.  I'll also add the POWER9 support to the GCC
>side
>> >>>>> of the patch now that the glibc code is upstream.
>> >>>>
>> >>>> I do not see these bits being added in kernel side yet and GLIBC
>usual
>> >>>> only sync these kind of bits *after* they are included in kernel
>side.
>> >>>> So I would advise to either get these pieces (kernel support and
>hwcap
>> >>>> advertise) in kernel before 2.23 release, otherwise revert the
>patches.
>> >>>
>> >>> Ack.
>> >>> It has just been sent to the correspondent Linux mailing list:
>> >>>
>https://lists.ozlabs.org/pipermail/linuxppc-dev/2016-January/137763.html
>> >>
>> >> Please revert the changes from glibc until you checkin support to
>linux
>> >> kernel mainline.
>> >>
>> >> Leaving these bits in increases the risk that someone uses to
>deploy a glibc
>> >> that then may have the wrong value.
>> > 
>> > Could you clarify this statement, please?
>> > I fail to see how they could have the wrong value.
>> 
>> Until it is checked into the mainline kernel it is not canonical.
>> 
>> That's the rule. There are no other discussions to be had.
>> 
>Well is was posted to to powerpc next:
>https://git.kernel.org/powerpc/c/e708c24cd01ce80b1609d8bacc

And it is now in Linus' tree:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=e708c24cd01ce80b1609d8baccee40ccc3608a01

cheers

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

end of thread, other threads:[~2016-01-15 23:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <568C272D.6000705@linux.vnet.ibm.com>
     [not found] ` <87egdsi4om.fsf@totoro.br.ibm.com>
     [not found]   ` <1452267366.5201.12.camel@vnet.ibm.com>
     [not found]     ` <568FE3D0.7080008@linaro.org>
2016-01-11 15:16       ` [PATCH] Add hwcap2 bits for POWER9 Tulio Magno Quites Machado Filho
2016-01-11 15:21         ` Carlos O'Donell
2016-01-11 19:55           ` Tulio Magno Quites Machado Filho
2016-01-11 20:48             ` Carlos O'Donell
2016-01-12 16:39               ` Steven Munroe
2016-01-12 17:45                 ` Carlos O'Donell
2016-01-15 23:09                 ` Michael Ellerman
2016-01-15 22:30             ` Carlos Eduardo Seo

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.