Skip to contentSkip to conversation

Fix cacheline size retrieval on FreeBSD/PowerPC(64)

Qemu-devel Justin Hibbits 3 participants 14 messages Jun 7, 2019 – Jul 2, 2019

lore
Share & tools
lore
#0 lore raw

The attached very trivial patch fixes a startup bug that prevents at least Qemu 3.1 and later from working on FreeBSD/powerpc64.

- Justin

From 74a70fdcfa5347e7637aa36276c55781f19de72a Mon Sep 17 00:00:00 2001
From: Justin Hibbits <[email protected]>
Date: Fri, 7 Jun 2019 13:44:51 -0500
Subject: [PATCH] Fix cacheline detection on FreeBSD/powerpc.

machdep.cacheline_size is an integer, not a long. Since PowerPC is big-endian this causes sysctlbyname() to fill in the upper bits of the argument, rather than the correct 'lower bits' of the word. Specify the correct type to fix this.

---
 util/cacheinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
util/cacheinfo.c +1 -1
index eebe1ce9c5..516f837748 100644
@@ -77,7 +77,7 @@ static void sys_cache_info(int *isize, int *dsize)
 static void sys_cache_info(int *isize, int *dsize)
 {
     /* There's only a single sysctl for both I/D cache line sizes.  */
-    long size;
+    int size;
     size_t len = sizeof(size);
     if (!sysctlbyname(SYSCTL_CACHELINE_NAME, &size, &len, NULL, 0)) {
         *isize = *dsize = size;
Signature · 1 line
2.21.0
Reviewed-by
#1 lore raw

Le 07/06/2019 à 20:56, Justin Hibbits a écrit :

Quoted 5 lines

The attached very trivial patch fixes a startup bug that prevents at least Qemu 3.1 and later from working on FreeBSD/powerpc64.

- Justin

Please don't send a patch in attachment but inlined in the message (you may use "git send-email" for that).

This patch fixes "util: add cacheinfo" that has changed the type from unsigned to long.

You can add the following line in the commit message:

Fixes b255b2c8a548 ("util: add cacheinfo")
#2 lore raw

Le 26/06/2019 à 18:14, Laurent Vivier a écrit :

Quoted 10 lines

Le 07/06/2019 à 20:56, Justin Hibbits a écrit :

Quoted 5 lines

The attached very trivial patch fixes a startup bug that prevents at least Qemu 3.1 and later from working on FreeBSD/powerpc64.

- Justin

Please don't send a patch in attachment but inlined in the message (you may use "git send-email" for that).

Quoted 9 lines

This patch fixes "util: add cacheinfo" that has changed the type from unsigned to long.

You can add the following line in the commit message:

Fixes b255b2c8a548 ("util: add cacheinfo")
CC author of b255b2c8a548 ("util: add cacheinfo")

Thanks,
Laurent

#3 lore raw
Quoted 18 lines · On Wed, 26 Jun 2019 18:16:36 +0200 Laurent Vivier <[email protected]> wrote:

Le 26/06/2019 à 18:14, Laurent Vivier a écrit :

Quoted 17 lines

Le 07/06/2019 à 20:56, Justin Hibbits a écrit :

Quoted 5 lines

The attached very trivial patch fixes a startup bug that prevents at least Qemu 3.1 and later from working on FreeBSD/powerpc64.

- Justin

Please don't send a patch in attachment but inlined in the message (you may use "git send-email" for that).

This patch fixes "util: add cacheinfo" that has changed the type from unsigned to long.

You can add the following line in the commit message:

Fixes b255b2c8a548 ("util: add cacheinfo")
Quoted 7 lines
Quoted 2 lines
CC author of b255b2c8a548 ("util: add cacheinfo")

Thanks,
Laurent

Hi Laurent,

Sorry. I had never used git send-email before, so wasn't comfortable with it. I just updated the commit message with your feedback and used git send-email to submit the patch. I hope everything went well.

Thanks for your feedback.

- Justin

#4 lore raw

Le 26/06/2019 à 18:37, Justin Hibbits a écrit :

Quoted 26 lines
Quoted 23 lines · On Wed, 26 Jun 2019 18:16:36 +0200 Laurent Vivier <[email protected]> wrote:

Le 26/06/2019 à 18:14, Laurent Vivier a écrit :

Quoted 10 lines

Le 07/06/2019 à 20:56, Justin Hibbits a écrit :

Quoted 5 lines

The attached very trivial patch fixes a startup bug that prevents at least Qemu 3.1 and later from working on FreeBSD/powerpc64.

- Justin

Please don't send a patch in attachment but inlined in the message (you may use "git send-email" for that).

Quoted 9 lines

This patch fixes "util: add cacheinfo" that has changed the type from unsigned to long.

You can add the following line in the commit message:

Fixes b255b2c8a548 ("util: add cacheinfo")
CC author of b255b2c8a548 ("util: add cacheinfo")
Quoted 8 lines
Quoted 2 lines

Thanks,
Laurent

Hi Laurent,

Sorry. I had never used git send-email before, so wasn't comfortable with it. I just updated the commit message with your feedback and used git send-email to submit the patch. I hope everything went well.

It seems not. I didn't receive it.

Did you configure the SMTP server. See git-send-email(1):

Use gmail as the smtp server

To use git send-email to send your patches through the GMail SMTP server, edit ~/.gitconfig to specify your account settings:

[sendemail]
smtpEncryption = tls
smtpServer = smtp.gmail.com
smtpUser = [email protected]
smtpServerPort = 587

If you have multifactor authentication setup on your gmail account, you will need to generate an app-specific password for use with git send-email. Visit
https://security.google.com/settings/security/apppasswords to create it.

Once your commits are ready to be sent to the mailing list, run the following commands:

$ git format-patch --cover-letter -M origin/master -o outgoing/ $ edit outgoing/0000-*
$ git send-email outgoing/*

The first time you run it, you will be prompted for your credentials. Enter the app-specific or your regular password as appropriate. If you have credential helper configured (see git-credential(1)), the password will be saved in the credential store so you won’t have to type it the next time.

Note: the following perl modules are required Net::SMTP::SSL, MIME::Base64 and Authen::SASL

Thanks,
Laurent

#5 lore raw
Quoted 71 lines · On Wed, 26 Jun 2019 18:47:42 +0200 Laurent Vivier <[email protected]> wrote:

Le 26/06/2019 à 18:37, Justin Hibbits a écrit :

Quoted 29 lines
Quoted 18 lines · On Wed, 26 Jun 2019 18:16:36 +0200 Laurent Vivier <[email protected]> wrote:

Le 26/06/2019 à 18:14, Laurent Vivier a écrit :

Quoted 17 lines

Le 07/06/2019 à 20:56, Justin Hibbits a écrit :

Quoted 5 lines

The attached very trivial patch fixes a startup bug that prevents at least Qemu 3.1 and later from working on FreeBSD/powerpc64.

- Justin

Please don't send a patch in attachment but inlined in the message (you may use "git send-email" for that).

This patch fixes "util: add cacheinfo" that has changed the type from unsigned to long.

You can add the following line in the commit message:

Fixes b255b2c8a548 ("util: add cacheinfo")
Quoted 7 lines
Quoted 2 lines
CC author of b255b2c8a548 ("util: add cacheinfo")

Thanks,
Laurent

Quoted 6 lines

Hi Laurent,

Sorry. I had never used git send-email before, so wasn't comfortable with it. I just updated the commit message with your feedback and used git send-email to submit the patch. I hope everything went well.

It seems not. I didn't receive it.

Did you configure the SMTP server. See git-send-email(1):

Use gmail as the smtp server

To use git send-email to send your patches through the GMail
SMTP server, edit ~/.gitconfig to specify your account settings:

[sendemail]
smtpEncryption = tls
smtpServer = smtp.gmail.com
smtpUser = [email protected]
smtpServerPort = 587

If you have multifactor authentication setup on your gmail
account, you will need to generate an app-specific password for use with git send-email. Visit
https://security.google.com/settings/security/apppasswords to
create it.

Once your commits are ready to be sent to the mailing list,
run the following commands:

           $ git format-patch --cover-letter -M origin/master -o
outgoing/ $ edit outgoing/0000-*
           $ git send-email outgoing/*

The first time you run it, you will be prompted for your
credentials. Enter the app-specific or your regular password as appropriate. If you have credential helper configured (see git-credential(1)), the password will be saved in the credential store so you won’t have to type it the next time.

Quoted 7 lines

Note: the following perl modules are required Net::SMTP::SSL, MIME::Base64 and Authen::SASL

Thanks,
Laurent

Hm, you're right. Even after making the config changes and installing the necessary packages, I still have no luck with git send-email. Might take a bit to debug this.

- Justin

#6 lore raw
Quoted 82 lines · On Wed, Jun 26, 2019, 13:04 Justin Hibbits <[email protected]> wrote:
Quoted 71 lines · On Wed, 26 Jun 2019 18:47:42 +0200 Laurent Vivier <[email protected]> wrote:
Quoted 29 lines · Justin Hibbits
Quoted 18 lines · On Wed, 26 Jun 2019 18:16:36 +0200 Laurent Vivier <[email protected]> wrote:
Quoted 17 lines · Laurent Vivier
Quoted 5 lines · Justin Hibbits

The attached very trivial patch fixes a startup bug that prevents at least Qemu 3.1 and later from working on FreeBSD/powerpc64.

- Justin

Please don't send a patch in attachment but inlined in the message (you may use "git send-email" for that).

This patch fixes "util: add cacheinfo" that has changed the type from unsigned to long.

You can add the following line in the commit message:

Fixes b255b2c8a548 ("util: add cacheinfo")
Quoted 7 lines
Quoted 2 lines
CC author of b255b2c8a548 ("util: add cacheinfo")

Thanks,
Laurent

Quoted 6 lines

Hi Laurent,

Sorry. I had never used git send-email before, so wasn't comfortable with it. I just updated the commit message with your feedback and used git send-email to submit the patch. I hope everything went well.

It seems not. I didn't receive it.

Did you configure the SMTP server. See git-send-email(1):

Use gmail as the smtp server

To use git send-email to send your patches through the GMail
SMTP server, edit ~/.gitconfig to specify your account settings:

[sendemail]
smtpEncryption = tls
smtpServer = smtp.gmail.com
smtpUser = [email protected]
smtpServerPort = 587

If you have multifactor authentication setup on your gmail
account, you will need to generate an app-specific password for use with git send-email. Visit
https://security.google.com/settings/security/apppasswords to
create it.

Once your commits are ready to be sent to the mailing list,
run the following commands:

           $ git format-patch --cover-letter -M origin/master -o
outgoing/ $ edit outgoing/0000-*
           $ git send-email outgoing/*

The first time you run it, you will be prompted for your
credentials. Enter the app-specific or your regular password as appropriate. If you have credential helper configured (see git-credential(1)), the password will be saved in the credential store so you won’t have to type it the next time.

Quoted 7 lines

Note: the following perl modules are required Net::SMTP::SSL, MIME::Base64 and Authen::SASL

Thanks,
Laurent

Quoted 6 lines

Hm, you're right. Even after making the config changes and installing the necessary packages, I still have no luck with git send-email. Might take a bit to debug this.

- Justin

Sorry for the multiplicity, looks like Gmail forwarded it eventually, but not until I tried several times debugging it.

- Justin

Quoted 1 line
#7 lore raw

Le 27/06/2019 à 02:02, Justin Hibbits a écrit :

Quoted 93 lines

On Wed, Jun 26, 2019, 13:04 Justin Hibbits <[email protected] <mailto:[email protected]>> wrote:

On Wed, 26 Jun 2019 18:47:42 +0200
Laurent Vivier <[email protected] <mailto:[email protected]>> wrote:

> Le 26/06/2019 à 18:37, Justin Hibbits a écrit :
> > On Wed, 26 Jun 2019 18:16:36 +0200
> > Laurent Vivier <[email protected] <mailto:[email protected]>> wrote:
> >
> >> Le 26/06/2019 à 18:14, Laurent Vivier a écrit :
> >>> Le 07/06/2019 à 20:56, Justin Hibbits a écrit :
> >>>> The attached very trivial patch fixes a startup bug that prevents > >>>> at least Qemu 3.1 and later from working on FreeBSD/powerpc64. > >>>>
> >>>> - Justin
> >>>>
> >>>
> >>> Please don't send a patch in attachment but inlined in the message > >>> (you may use "git send-email" for that).
> >>>
> >>> This patch fixes "util: add cacheinfo" that has changed the type > >>> from unsigned to long.
> >>>
> >>> You can add the following line in the commit message:
> >>>
> >>> Fixes: b255b2c8a548 ("util: add cacheinfo")
> >>>
> >>> Reviewed-by: Laurent Vivier <[email protected] <mailto:[email protected]>>
> >>>
> >>
> >> CC: author of b255b2c8a548 ("util: add cacheinfo")
> >>
> >> Thanks,
> >> Laurent
> >
> > Hi Laurent,
> >
> > Sorry.  I had never used git send-email before, so wasn't > > comfortable with it.  I just updated the commit message with your > > feedback and used git send-email to submit the patch.  I hope > > everything went well.
>
> It seems not. I didn't receive it.
>
> Did you configure the SMTP server. See git-send-email(1):
>
>    Use gmail as the smtp server
>
>        To use git send-email to send your patches through the GMail > SMTP server, edit ~/.gitconfig to specify your account settings:
>
>            [sendemail]
>                    smtpEncryption = tls
>                    smtpServer = smtp.gmail.com <http://smtp.gmail.com>
>                    smtpUser = [email protected] <mailto:[email protected]>
>                    smtpServerPort = 587
>
>        If you have multifactor authentication setup on your gmail > account, you will need to generate an app-specific password for use > with git send-email. Visit
>        https://security.google.com/settings/security/apppasswords to > create it.
>
>        Once your commits are ready to be sent to the mailing list, > run the following commands:
>
>            $ git format-patch --cover-letter -M origin/master -o > outgoing/ $ edit outgoing/0000-*
>            $ git send-email outgoing/*
>
>        The first time you run it, you will be prompted for your > credentials. Enter the app-specific or your regular password as > appropriate. If you have credential helper configured (see > git-credential(1)), the password will be saved in the credential > store so you won’t have to type it the next time.
>
>        Note: the following perl modules are required Net::SMTP::SSL, >        MIME::Base64 and Authen::SASL
>
> Thanks,
> Laurent
>
>

Hm, you're right.  Even after making the config changes and installing the necessary packages, I still have no luck with git send-email.  Might take a bit to debug this.

Quoted 5 lines

- Justin

Sorry for the multiplicity, looks like Gmail forwarded it eventually, but not until I tried several times debugging it.

Not sure, I didn't receive any of them.

Thanks,
Laurent

#8 lore raw
Quoted 106 lines · On Wed, Jun 26, 2019, 19:08 Laurent Vivier <[email protected]> wrote:
Quoted 11 lines · Justin Hibbits

On Wed, Jun 26, 2019, 13:04 Justin Hibbits <[email protected] <mailto:[email protected]>> wrote:

    On Wed, 26 Jun 2019 18:47:42 +0200
    Laurent Vivier <[email protected] <mailto:[email protected]>> wrote:

    > Le 26/06/2019 à 18:37, Justin Hibbits a écrit :
    > > On Wed, 26 Jun 2019 18:16:36 +0200
    > > Laurent Vivier <[email protected] <mailto:[email protected]>>
Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines · Laurent Vivier
Quoted 2 lines · Justin Hibbits
Quoted 1 line

The attached very trivial patch fixes a startup bug that

prevents

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

at least Qemu 3.1 and later from working on FreeBSD/powerpc64.

- Justin

Please don't send a patch in attachment but inlined in the

message

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

(you may use "git send-email" for that).

This patch fixes "util: add cacheinfo" that has changed the

type

Quoted 26 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

from unsigned to long.

You can add the following line in the commit message:

Fixes b255b2c8a548 ("util: add cacheinfo")

<mailto:[email protected]>>
> >>>
> >>
> >> CC: author of b255b2c8a548 ("util: add cacheinfo")
> >>
> >> Thanks,
> >> Laurent
> >
> > Hi Laurent,
> >
> > Sorry. I had never used git send-email before, so wasn't > > comfortable with it. I just updated the commit message with your > > feedback and used git send-email to submit the patch. I hope > > everything went well.
>
> It seems not. I didn't receive it.
>
> Did you configure the SMTP server. See git-send-email(1):
>

Quoted 8 lines

> Use gmail as the smtp server
>
> To use git send-email to send your patches through the GMail
> SMTP server, edit ~/.gitconfig to specify your account settings:
>
> [sendemail]
> smtpEncryption = tls
> smtpServer = smtp.gmail.com <

http://smtp.gmail.com>

Quoted 8 lines
Quoted 1 line

smtpUser = [email protected]

<mailto:[email protected]>
> smtpServerPort = 587
>
> If you have multifactor authentication setup on your gmail
> account, you will need to generate an app-specific password for use > with git send-email. Visit
> https://security.google.com/settings/security/apppasswords

to

Quoted 9 lines
Quoted 9 lines

create it.

Once your commits are ready to be sent to the mailing list,
run the following commands:

           $ git format-patch --cover-letter -M origin/master -o
outgoing/ $ edit outgoing/0000-*
           $ git send-email outgoing/*
Quoted 7 lines
Quoted 7 lines

The first time you run it, you will be prompted for your
credentials. Enter the app-specific or your regular password as appropriate. If you have credential helper configured (see git-credential(1)), the password will be saved in the credential store so you won’t have to type it the next time.

Note: the following perl modules are required

Net::SMTP::SSL,

Quoted 8 lines
Quoted 6 lines

MIME::Base64 and Authen::SASL

Thanks,
Laurent

Hm, you're right. Even after making the config changes and

installing

Quoted 1 line

the necessary packages, I still have no luck with git send-email.

Might

Quoted 5 lines

take a bit to debug this.

- Justin

Quoted 8 lines
Quoted 2 lines

Sorry for the multiplicity, looks like Gmail forwarded it eventually, but not until I tried several times debugging it.

Not sure, I didn't receive any of them.

Thanks,
Laurent

Sigh, 4 copies ended up in my Gmail spam folder, so I thought it made it through.

- Justin

Quoted 1 line
#9 lore raw

Le 27/06/2019 à 02:15, Justin Hibbits a écrit :

Quoted 125 lines

On Wed, Jun 26, 2019, 19:08 Laurent Vivier <[email protected] <mailto:[email protected]>> wrote:

Le 27/06/2019 à 02:02, Justin Hibbits a écrit :
>
>
> On Wed, Jun 26, 2019, 13:04 Justin Hibbits <[email protected] <mailto:[email protected]>
> <mailto:[email protected] <mailto:[email protected]>>> wrote:
>
>     On Wed, 26 Jun 2019 18:47:42 +0200
>     Laurent Vivier <[email protected] <mailto:[email protected]> <mailto:[email protected] <mailto:[email protected]>>> wrote:
>
>     > Le 26/06/2019 à 18:37, Justin Hibbits a écrit :
>     > > On Wed, 26 Jun 2019 18:16:36 +0200
>     > > Laurent Vivier <[email protected] <mailto:[email protected]> <mailto:[email protected] <mailto:[email protected]>>> wrote:
>     > >
>     > >> Le 26/06/2019 à 18:14, Laurent Vivier a écrit :
>     > >>> Le 07/06/2019 à 20:56, Justin Hibbits a écrit :
>     > >>>> The attached very trivial patch fixes a startup bug that prevents
>     > >>>> at least Qemu 3.1 and later from working on FreeBSD/powerpc64.
>     > >>>>
>     > >>>> - Justin
>     > >>>>
>     > >>>
>     > >>> Please don't send a patch in attachment but inlined in the message
>     > >>> (you may use "git send-email" for that).
>     > >>>
>     > >>> This patch fixes "util: add cacheinfo" that has changed the type
>     > >>> from unsigned to long.
>     > >>>
>     > >>> You can add the following line in the commit message:
>     > >>>
>     > >>> Fixes: b255b2c8a548 ("util: add cacheinfo")
>     > >>>
>     > >>> Reviewed-by: Laurent Vivier <[email protected] <mailto:[email protected]>
>     <mailto:[email protected] <mailto:[email protected]>>> >     > >>>
>     > >>
>     > >> CC: author of b255b2c8a548 ("util: add cacheinfo") >     > >>
>     > >> Thanks,
>     > >> Laurent
>     > >
>     > > Hi Laurent,
>     > >
>     > > Sorry.  I had never used git send-email before, so wasn't >     > > comfortable with it.  I just updated the commit message with your
>     > > feedback and used git send-email to submit the patch.  I hope >     > > everything went well.
>     >
>     > It seems not. I didn't receive it.
>     >
>     > Did you configure the SMTP server. See git-send-email(1):
>     >
>     >    Use gmail as the smtp server
>     >
>     >        To use git send-email to send your patches through the GMail
>     > SMTP server, edit ~/.gitconfig to specify your account settings:
>     >
>     >            [sendemail]
>     >                    smtpEncryption = tls
>     >                    smtpServer = smtp.gmail.com
<http://smtp.gmail.com> <http://smtp.gmail.com>
>     >                    smtpUser = [email protected] <mailto:[email protected]>
>     <mailto:[email protected] <mailto:[email protected]>> >     >                    smtpServerPort = 587
>     >
>     >        If you have multifactor authentication setup on your gmail
>     > account, you will need to generate an app-specific password for use
>     > with git send-email. Visit
>     >
https://security.google.com/settings/security/apppasswords to >     > create it.
>     >
>     >        Once your commits are ready to be sent to the mailing list,
>     > run the following commands:
>     >
>     >            $ git format-patch --cover-letter -M origin/master -o >     > outgoing/ $ edit outgoing/0000-*
>     >            $ git send-email outgoing/*
>     >
>     >        The first time you run it, you will be prompted for your >     > credentials. Enter the app-specific or your regular password as >     > appropriate. If you have credential helper configured (see >     > git-credential(1)), the password will be saved in the credential >     > store so you won’t have to type it the next time.
>     >
>     >        Note: the following perl modules are required Net::SMTP::SSL,
>     >        MIME::Base64 and Authen::SASL
>     >
>     > Thanks,
>     > Laurent
>     >
>     >
>
>     Hm, you're right.  Even after making the config changes and installing
>     the necessary packages, I still have no luck with git send-email.  Might
>     take a bit to debug this.
>
>     - Justin
>
>
> Sorry for the multiplicity, looks like Gmail forwarded it eventually, > but not until I tried several times debugging it.

Quoted 9 lines

Not sure, I didn't receive any of them.

Thanks,
Laurent

Sigh, 4 copies ended up in my Gmail spam folder, so I thought it made it through.

Any news? Freeze is coming.

Thanks,
Laurent

#10 lore raw
Quoted 140 lines · On Mon, Jul 1, 2019, 03:54 Laurent Vivier <[email protected]> wrote:
Quoted 11 lines · Justin Hibbits

On Wed, Jun 26, 2019, 19:08 Laurent Vivier <[email protected] <mailto:[email protected]>> wrote:

    Le 27/06/2019 à 02:02, Justin Hibbits a écrit :
    >
    >
    > On Wed, Jun 26, 2019, 13:04 Justin Hibbits <[email protected]
    <mailto:[email protected]>
    > <mailto:[email protected] <mailto:[email protected]>>>
Quoted 41 lines · wrote:
Quoted 3 lines

On Wed, 26 Jun 2019 18:47:42 +0200
Laurent Vivier <[email protected] <mailto:[email protected]>

    <mailto:[email protected] <mailto:[email protected]>>> wrote:
    >
    >     > Le 26/06/2019 à 18:37, Justin Hibbits a écrit :
    >     > > On Wed, 26 Jun 2019 18:16:36 +0200
    >     > > Laurent Vivier <[email protected]
    <mailto:[email protected]> <mailto:[email protected]
    <mailto:[email protected]>>> wrote:
    >     > >
    >     > >> Le 26/06/2019 à 18:14, Laurent Vivier a écrit :
    >     > >>> Le 07/06/2019 à 20:56, Justin Hibbits a écrit :
    >     > >>>> The attached very trivial patch fixes a startup bug
    that prevents
    >     > >>>> at least Qemu 3.1 and later from working on
    FreeBSD/powerpc64.
    >     > >>>>
    >     > >>>> - Justin
    >     > >>>>
    >     > >>>
    >     > >>> Please don't send a patch in attachment but inlined in
    the message
    >     > >>> (you may use "git send-email" for that).
    >     > >>>
    >     > >>> This patch fixes "util: add cacheinfo" that has changed
    the type
    >     > >>> from unsigned to long.
    >     > >>>
    >     > >>> You can add the following line in the commit message:
    >     > >>>
    >     > >>> Fixes: b255b2c8a548 ("util: add cacheinfo")
    >     > >>>
    >     > >>> Reviewed-by: Laurent Vivier <[email protected]
    <mailto:[email protected]>
    >     <mailto:[email protected] <mailto:[email protected]>>>
    >     > >>>
    >     > >>
    >     > >> CC: author of b255b2c8a548 ("util: add cacheinfo")
    >     > >>
    >     > >> Thanks,
Quoted 8 lines
    >     > >> Laurent
    >     > >
    >     > > Hi Laurent,
    >     > >
    >     > > Sorry.  I had never used git send-email before, so wasn't
    >     > > comfortable with it.  I just updated the commit message
    with your
    >     > > feedback and used git send-email to submit the patch.  I

hope

Quoted 11 lines
Quoted 9 lines
Quoted 9 lines
Quoted 1 line

everything went well.

It seems not. I didn't receive it.

Did you configure the SMTP server. See git-send-email(1):

Use gmail as the smtp server

To use git send-email to send your patches through

the GMail
> > SMTP server, edit ~/.gitconfig to specify your account

settings:

Quoted 16 lines
Quoted 4 lines
Quoted 4 lines

[sendemail]
smtpEncryption = tls
smtpServer = smtp.gmail.com

<http://smtp.gmail.com> <http://smtp.gmail.com>
> > smtpUser = [email protected]
<mailto:[email protected]>
> <mailto:[email protected] <mailto:[email protected]>>
> > smtpServerPort = 587
> >
> > If you have multifactor authentication setup on your
gmail
> > account, you will need to generate an app-specific password
for use
> > with git send-email. Visit
> >

Quoted 8 lines

https://security.google.com/settings/security/apppasswords to
> > create it.
> >
> > Once your commits are ready to be sent to the mailing
list,
> > run the following commands:
> >
> > $ git format-patch --cover-letter -M

origin/master -o

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

outgoing/ $ edit outgoing/0000-*

           $ git send-email outgoing/*

The first time you run it, you will be prompted for

your

Quoted 1 line
Quoted 1 line
Quoted 1 line

credentials. Enter the app-specific or your regular password

as

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

appropriate. If you have credential helper configured (see git-credential(1)), the password will be saved in the

credential

Quoted 17 lines
Quoted 3 lines
Quoted 3 lines

store so you won’t have to type it the next time.

Note: the following perl modules are required

Net::SMTP::SSL,
> > MIME::Base64 and Authen::SASL
> >
> > Thanks,
> > Laurent
> >
> >
>
> Hm, you're right. Even after making the config changes and
installing
> the necessary packages, I still have no luck with git
send-email. Might
> take a bit to debug this.
>

Quoted 4 lines

> - Justin
>
>
> Sorry for the multiplicity, looks like Gmail forwarded it

eventually,

Quoted 8 lines
Quoted 1 line

but not until I tried several times debugging it.

Not sure, I didn't receive any of them.

Thanks,
Laurent

Quoted 9 lines
Quoted 3 lines

Sigh, 4 copies ended up in my Gmail spam folder, so I thought it made it through.

Any news? Freeze is coming.

Thanks,
Laurent

I'll manually do it when I get home tomorrow. Fixing git send-email will have to wait.

#11 lore raw

Le 01/07/2019 à 15:02, Justin Hibbits a écrit :

Quoted 167 lines

On Mon, Jul 1, 2019, 03:54 Laurent Vivier <[email protected] <mailto:[email protected]>> wrote:

Le 27/06/2019 à 02:15, Justin Hibbits a écrit :
>
>
> On Wed, Jun 26, 2019, 19:08 Laurent Vivier <[email protected] <mailto:[email protected]>
> <mailto:[email protected] <mailto:[email protected]>>> wrote:
>
>     Le 27/06/2019 à 02:02, Justin Hibbits a écrit :
>     >
>     >
>     > On Wed, Jun 26, 2019, 13:04 Justin Hibbits <[email protected] <mailto:[email protected]>
>     <mailto:[email protected] <mailto:[email protected]>> >     > <mailto:[email protected] <mailto:[email protected]> <mailto:[email protected] <mailto:[email protected]>>>> wrote:
>     >
>     >     On Wed, 26 Jun 2019 18:47:42 +0200
>     >     Laurent Vivier <[email protected] <mailto:[email protected]> <mailto:[email protected] <mailto:[email protected]>>
>     <mailto:[email protected] <mailto:[email protected]> <mailto:[email protected] <mailto:[email protected]>>>> wrote:
>     >
>     >     > Le 26/06/2019 à 18:37, Justin Hibbits a écrit :
>     >     > > On Wed, 26 Jun 2019 18:16:36 +0200
>     >     > > Laurent Vivier <[email protected] <mailto:[email protected]>
>     <mailto:[email protected] <mailto:[email protected]>> <mailto:[email protected] <mailto:[email protected]>
>     <mailto:[email protected] <mailto:[email protected]>>>> wrote:
>     >     > >
>     >     > >> Le 26/06/2019 à 18:14, Laurent Vivier a écrit :
>     >     > >>> Le 07/06/2019 à 20:56, Justin Hibbits a écrit :
>     >     > >>>> The attached very trivial patch fixes a startup bug >     that prevents
>     >     > >>>> at least Qemu 3.1 and later from working on >     FreeBSD/powerpc64.
>     >     > >>>>
>     >     > >>>> - Justin
>     >     > >>>>
>     >     > >>>
>     >     > >>> Please don't send a patch in attachment but inlined in >     the message
>     >     > >>> (you may use "git send-email" for that).
>     >     > >>>
>     >     > >>> This patch fixes "util: add cacheinfo" that has changed
>     the type
>     >     > >>> from unsigned to long.
>     >     > >>>
>     >     > >>> You can add the following line in the commit message:
>     >     > >>>
>     >     > >>> Fixes: b255b2c8a548 ("util: add cacheinfo") >     >     > >>>
>     >     > >>> Reviewed-by: Laurent Vivier <[email protected] <mailto:[email protected]>
>     <mailto:[email protected] <mailto:[email protected]>> >     >     <mailto:[email protected] <mailto:[email protected]> <mailto:[email protected] <mailto:[email protected]>>>>
>     >     > >>>
>     >     > >>
>     >     > >> CC: author of b255b2c8a548 ("util: add cacheinfo") >     >     > >>
>     >     > >> Thanks,
>     >     > >> Laurent
>     >     > >
>     >     > > Hi Laurent,
>     >     > >
>     >     > > Sorry.  I had never used git send-email before, so wasn't
>     >     > > comfortable with it.  I just updated the commit message >     with your
>     >     > > feedback and used git send-email to submit the patch.  I hope
>     >     > > everything went well.
>     >     >
>     >     > It seems not. I didn't receive it.
>     >     >
>     >     > Did you configure the SMTP server. See git-send-email(1):
>     >     >
>     >     >    Use gmail as the smtp server
>     >     >
>     >     >        To use git send-email to send your patches through >     the GMail
>     >     > SMTP server, edit ~/.gitconfig to specify your account settings:
>     >     >
>     >     >            [sendemail]
>     >     >                    smtpEncryption = tls
>     >     >                    smtpServer = smtp.gmail.com
<http://smtp.gmail.com>
>     <http://smtp.gmail.com> <http://smtp.gmail.com>
>     >     >                    smtpUser = [email protected] <mailto:[email protected]>
>     <mailto:[email protected] <mailto:[email protected]>> >     >     <mailto:[email protected] <mailto:[email protected]> <mailto:[email protected] <mailto:[email protected]>>>
>     >     >                    smtpServerPort = 587
>     >     >
>     >     >        If you have multifactor authentication setup on your
>     gmail
>     >     > account, you will need to generate an app-specific password
>     for use
>     >     > with git send-email. Visit
>     >     >
>     https://security.google.com/settings/security/apppasswords to >     >     > create it.
>     >     >
>     >     >        Once your commits are ready to be sent to the mailing
>     list,
>     >     > run the following commands:
>     >     >
>     >     >            $ git format-patch --cover-letter -M origin/master -o
>     >     > outgoing/ $ edit outgoing/0000-*
>     >     >            $ git send-email outgoing/*
>     >     >
>     >     >        The first time you run it, you will be prompted for your
>     >     > credentials. Enter the app-specific or your regular password as
>     >     > appropriate. If you have credential helper configured (see >     >     > git-credential(1)), the password will be saved in the credential
>     >     > store so you won’t have to type it the next time. >     >     >
>     >     >        Note: the following perl modules are required >     Net::SMTP::SSL,
>     >     >        MIME::Base64 and Authen::SASL
>     >     >
>     >     > Thanks,
>     >     > Laurent
>     >     >
>     >     >
>     >
>     >     Hm, you're right.  Even after making the config changes and >     installing
>     >     the necessary packages, I still have no luck with git >     send-email.  Might
>     >     take a bit to debug this.
>     >
>     >     - Justin
>     >
>     >
>     > Sorry for the multiplicity, looks like Gmail forwarded it eventually,
>     > but not until I tried several times debugging it.
>
>     Not sure, I didn't receive any of them.
>
>     Thanks,
>     Laurent
>
>
> Sigh, 4 copies ended up in my Gmail spam folder, so I thought it made it
> through.
>

Quoted 8 lines

Any news? Freeze is coming.

Thanks,
Laurent

I'll manually do it when I get home tomorrow.  Fixing git send-email will have to wait.

Don't bother: if you have problems with "git send-email" I can apply the attachment.

Thanks,
Laurent

#12 lore raw
Quoted 191 lines · On Mon, 1 Jul 2019 15:17:06 +0200 Laurent Vivier <[email protected]> wrote:

Le 01/07/2019 à 15:02, Justin Hibbits a écrit :

Quoted 190 lines

On Mon, Jul 1, 2019, 03:54 Laurent Vivier <[email protected] <mailto:[email protected]>> wrote:

    Le 27/06/2019 à 02:15, Justin Hibbits a écrit :  
    >
    >
    > On Wed, Jun 26, 2019, 19:08 Laurent Vivier
    > <[email protected]  
    <mailto:[email protected]>  
    > <mailto:[email protected] <mailto:[email protected]>>> wrote:
    >
    >     Le 27/06/2019 à 02:02, Justin Hibbits a écrit :
    >     >
    >     >
    >     > On Wed, Jun 26, 2019, 13:04 Justin Hibbits  
    <[email protected] <mailto:[email protected]>  
    >     <mailto:[email protected]
    ><mailto:[email protected]>> > <mailto:[email protected]
    ><mailto:[email protected]>  
    <mailto:[email protected] <mailto:[email protected]>>>>
Quoted 3 lines · wrote:

     >
     >     On Wed, 26 Jun 2019 18:47:42 +0200
     >     Laurent Vivier <[email protected]

<mailto:[email protected]> <mailto:[email protected] <mailto:[email protected]>>
>     <mailto:[email protected] <mailto:[email protected]> <mailto:[email protected] <mailto:[email protected]>>>> wrote:
>     >
>     >     > Le 26/06/2019 à 18:37, Justin Hibbits a écrit :
>     >     > > On Wed, 26 Jun 2019 18:16:36 +0200
>     >     > > Laurent Vivier <[email protected] <mailto:[email protected]>
>     <mailto:[email protected] <mailto:[email protected]>> <mailto:[email protected] <mailto:[email protected]> >     <mailto:[email protected] <mailto:[email protected]>>>> >wrote: >     > >
>     >     > >> Le 26/06/2019 à 18:14, Laurent Vivier a >écrit : >     > >>> Le 07/06/2019 à 20:56, Justin Hibbits a >écrit : >     > >>>> The attached very trivial patch fixes a >startup bug that prevents
>     >     > >>>> at least Qemu 3.1 and later from working on >     FreeBSD/powerpc64.
>     >     > >>>>
>     >     > >>>> - Justin
>     >     > >>>>
>     >     > >>>
>     >     > >>> Please don't send a patch in attachment but >inlined in the message
>     >     > >>> (you may use "git send-email" for that). >     >     > >>>
>     >     > >>> This patch fixes "util: add cacheinfo" that >has
changed
>     the type
>     >     > >>> from unsigned to long.
>     >     > >>>
>     >     > >>> You can add the following line in the commit >message: >     > >>>
>     >     > >>> Fixes: b255b2c8a548 ("util: add cacheinfo") >     >     > >>>
>     >     > >>> Reviewed-by: Laurent Vivier ><[email protected]
<mailto:[email protected]>
>     <mailto:[email protected] <mailto:[email protected]>> >     >     <mailto:[email protected] ><mailto:[email protected]>
<mailto:[email protected] <mailto:[email protected]>>>> >     >     > >>>
>     >     > >>
>     >     > >> CC: author of b255b2c8a548 ("util: add >cacheinfo") >     > >>
>     >     > >> Thanks,
>     >     > >> Laurent
>     >     > >
>     >     > > Hi Laurent,
>     >     > >
>     >     > > Sorry.  I had never used git send-email before, >so
wasn't
>     >     > > comfortable with it.  I just updated the commit >message with your
>     >     > > feedback and used git send-email to submit the patch.  I hope
>     >     > > everything went well.
>     >     >
>     >     > It seems not. I didn't receive it.
>     >     >
>     >     > Did you configure the SMTP server. See >git-send-email(1): >     >
>     >     >    Use gmail as the smtp server
>     >     >
>     >     >        To use git send-email to send your patches >through the GMail
>     >     > SMTP server, edit ~/.gitconfig to specify your >account
settings:
>     >     >
>     >     >            [sendemail]
>     >     >                    smtpEncryption = tls >     >     >                    smtpServer = smtp.gmail.com
<http://smtp.gmail.com>
>     <http://smtp.gmail.com> <http://smtp.gmail.com>
>     >     >                    smtpUser = [email protected] <mailto:[email protected]>
>     <mailto:[email protected] <mailto:[email protected]>> >     >     <mailto:[email protected] ><mailto:[email protected]> <mailto:[email protected] <mailto:[email protected]>>> >     >     >                    smtpServerPort = 587 >     >     >
>     >     >        If you have multifactor authentication >setup on
your
>     gmail
>     >     > account, you will need to generate an >app-specific
password
>     for use
>     >     > with git send-email. Visit
>     >     >
>     https://security.google.com/settings/security/apppasswords
>to >     > create it.
>     >     >
>     >     >        Once your commits are ready to be sent to >the
mailing
>     list,
>     >     > run the following commands:
>     >     >
>     >     >            $ git format-patch --cover-letter -M origin/master -o
>     >     > outgoing/ $ edit outgoing/0000-*
>     >     >            $ git send-email outgoing/* >     >     >
>     >     >        The first time you run it, you will be >prompted
for your
>     >     > credentials. Enter the app-specific or your >regular
password as
>     >     > appropriate. If you have credential helper >configured (see >     > git-credential(1)), the password will >be saved in the
credential
>     >     > store so you won’t have to type it the next time. >     >     >
>     >     >        Note: the following perl modules are >required Net::SMTP::SSL,
>     >     >        MIME::Base64 and Authen::SASL
>     >     >
>     >     > Thanks,
>     >     > Laurent
>     >     >
>     >     >
>     >
>     >     Hm, you're right.  Even after making the config >changes and installing
>     >     the necessary packages, I still have no luck with >git send-email.  Might
>     >     take a bit to debug this.
>     >
>     >     - Justin
>     >
>     >
>     > Sorry for the multiplicity, looks like Gmail forwarded >it
eventually,
>     > but not until I tried several times debugging it. >
>     Not sure, I didn't receive any of them.
>
>     Thanks,
>     Laurent
>
>
> Sigh, 4 copies ended up in my Gmail spam folder, so I thought > it
made it
> through.
>

Any news? Freeze is coming.

Thanks,
Laurent

Quoted 8 lines
Quoted 2 lines

I'll manually do it when I get home tomorrow.  Fixing git send-email will have to wait.

Don't bother: if you have problems with "git send-email" I can apply the attachment.

Thanks,
Laurent

Thanks. Sorry for the troubles. I'll have to spend some time trying to fix git send-email, for the future.

- Justin

#13 lore raw
In reply to Justin Hibbits
Quoted 26 lines · Justin Hibbits
Quoted 23 lines · On Wed, 26 Jun 2019 18:16:36 +0200 Laurent Vivier <[email protected]> wrote:
Quoted 10 lines · Laurent Vivier
Quoted 5 lines · Justin Hibbits

The attached very trivial patch fixes a startup bug that prevents at least Qemu 3.1 and later from working on FreeBSD/powerpc64.

- Justin

Please don't send a patch in attachment but inlined in the message (you may use "git send-email" for that).

Quoted 9 lines

This patch fixes "util: add cacheinfo" that has changed the type from unsigned to long.

You can add the following line in the commit message:

Fixes b255b2c8a548 ("util: add cacheinfo")
CC author of b255b2c8a548 ("util: add cacheinfo")
Quoted 8 lines
Quoted 2 lines

Thanks,
Laurent

Hi Laurent,

Sorry. I had never used git send-email before, so wasn't comfortable with it. I just updated the commit message with your feedback and used git send-email to submit the patch. I hope everything went well.

FWIW, there is also a handy git-publish script that is worth looking at. It deals with multiple iterations of a patch and other niceties.

https://github.com/stefanha/git-publish

Quoted 4 lines

Thanks for your feedback.

- Justin

--
Cheers,
Christophe de Dinechin (IRC c3d)