LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Christopher M. Riedl" <cmr@bluescreens.de>
To: "Finn Thain" <fthain@linux-m68k.org>,
	"Christopher M. Riedl" <cmr@linux.ibm.com>
Cc: Stan Johnson <stanley.johnson.001@protonmail.com>,
	linuxppc-dev@lists.ozlabs.org,
	Riccardo Mottola <riccardo.mottola@libero.it>
Subject: Re: Fwd: Fwd: X stopped working with 5.14 on iBook
Date: Tue, 02 Nov 2021 17:27:46 -0500	[thread overview]
Message-ID: <CFFNC8MZ20HR.13XRVPWSKVLE0@wrwlf0000> (raw)
In-Reply-To: <48c3ed15-2ecf-cc12-c287-2b61457f5fb@nippy.intranet>

On Mon Nov 1, 2021 at 9:20 PM CDT, Finn Thain wrote:
> Hi Christopher,
>
> After many builds and tests, Stan and I were able to determine that this
> regression only affects builds with CONFIG_USER_NS=y. That is,
>
> d3ccc9781560 + CONFIG_USER_NS=y --> fail
> d3ccc9781560 + CONFIG_USER_NS=n --> okay
> d3ccc9781560~ + CONFIG_USER_NS=y --> okay
> d3ccc9781560~ + CONFIG_USER_NS=n --> okay
>
> Stan also tested a PowerMac G3 system and found that the regression is
> not
> present there. Thus far, only PowerMac G4 systems are known to be
> affected
> (Stan's Cube and Riccardo's PowerBook).
>
> I asked Stan to try v5.15-rc after reverting commit d3ccc9781560.
> Unexpectedly, this build had the same issue. So, it appears there are
> multiple bad commits that produce this Xorg failure, of which
> d3ccc9781560
> is just the first.
>
> But there's no easy way to identify the other bad commits using
> bisection.
> So I've addressed this message to you. Can you help fix this regression?

Hi,

I switched email addresses a few times since that patch - also I am not
employed at IBM any longer so that @linux.ibm.com email doesn't work
either. In any case, I'll take a look and see if I can figure out what's
going on. I do actually have a PowerBook G4 here (if it can be coaxed to
boot) that could help me root cause this.

Thanks!
Chris R.

>
> Regards,
> Finn
>
> On Fri, 22 Oct 2021, Christophe Leroy wrote:
>
> > ...
> > > 
> > > -------- Forwarded Message --------
> > > Subject: Fwd: X stopped working with 5.14 on iBook
> > > Date: Fri, 22 Oct 2021 11:35:21 -0600
> > > From: Stan Johnson
> > > To: Christopher M. Riedl <cmr@codefail.de>
> > > CC: Finn Thain <fthain@fastmail.com.au>
> > > 
> > > Hello Christopher Riedl,
> > > 
> > > Please see the message below, in which a git bisect identifies a commit
> > > which may have stopped X from working on some PowerPC G4 systems
> > > (specifically the G4 PowerBook and Cube, possibly others).
> > > 
> > > I'm not sure how to proceed with further tests. If the identified commit
> > > could not have caused the problem, then further testing may be needed.
> > > Please let me know if you need any additional information.
> > > 
> > > Hopefully your e-mail filter will allow messages from yahoo.com addresses.
> > > 
> > > thanks for your help
> > > 
> > > -Stan Johnson
> > > 
> > > -------- Forwarded Message --------
> > > Subject: Re: X stopped working with 5.14 on iBook
> > > Date: Fri, 22 Oct 2021 11:25:14 -0600
> > > From: Stan Johnson
> > > To: debian-powerpc@lists.debian.org
> > > CC: Riccardo Mottola <riccardo.mottola@libero.it>
> > > 
> > > On 10/14/21 9:21 PM, Stan Johnson wrote:
> > > > ...
> > > > Debian's 5.10.0-8 config file works (as expected) with Debian's 5.10.0-8
> > > > kernel source.
> > > > ...
> > > > X works with 5.14 using a tuned config file derived from 5.13 testing.
> > > > ...
> > > 
> > > Update:
> > > 
> > > The issue originally reported by Riccardo Mottola was that X wasn't
> > > working on a PowerBook G4 using Debian's default
> > > vmlinux-5.14.0-2-powerpc kernel. I was able to confirm that the X
> > > failure also occurs on a G4 Cube. My G4 Cube has Debian SID,
> > > sysvinit-core, Xfce and wdm installed. To test whether X works, I
> > > disabled wdm, then I log in at the text console and run "startx". When X
> > > fails, the screen goes blank and the backlight stays on; when X works,
> > > the normal desktop comes up.
> > > 
> > > X works in mainline v5.12 built using a config file based on Debian's
> > > config-5.10.0-8-powerpc.
> > > 
> > > X fails in mainline v5.13 built using a config file based on Debian's
> > > config-5.10.0-8-powerpc.
> > > 
> > > With much help and advice from Finn Thain, I was able to run a bisect
> > > using a config file based on Debian's config-5.10.0-8-powerpc, with
> > > v5.12 "good" and v5.13 "bad".
> > > 
> > > $ git reset --hard
> > > HEAD is now at 62fb9874f5da Linux 5.13
> > > $ git bisect start v5.13
> > > Updating files: 100% (12992/12992), done.
> > > Previous HEAD position was 62fb9874f5da Linux 5.13
> > > HEAD is now at 9f4ad9e425a1 Linux 5.12
> > > $ git bisect bad v5.13
> > > $ git bisect good v5.12
> > > Bisecting: 8739 revisions left to test after this (roughly 13 steps)
> > > > 85f3f17b5db2dd9f8a094a0ddc665555135afd22] Merge branch 'md-fixes' of
> > > https://git.kernel.org/pub/scm/linux/kernel/git/song/md into block-5.13
> > > 
> > > After the bisect, git reports this:
> > > 
> > > ----------
> > > 
> > > d3ccc9781560af051554017c702631560bdc0811 is the first bad commit
> > > commit d3ccc9781560af051554017c702631560bdc0811
> > > Author: Christopher M. Riedl <cmr@codefail.de>
> > > Date:   Fri Feb 26 19:12:59 2021 -0600
> > > 
> > >      powerpc/signal: Use __get_user() to copy sigset_t
> > > 
> > >      Usually sigset_t is exactly 8B which is a "trivial" size and does not
> > >      warrant using __copy_from_user(). Use __get_user() directly in
> > >      anticipation of future work to remove the trivial size optimizations
> > >      from __copy_from_user().
> > > 
> > >      The ppc32 implementation of get_sigset_t() previously called
> > >      copy_from_user() which, unlike __copy_from_user(), calls access_ok().
> > >      Replacing this w/ __get_user() (no access_ok()) is fine here since both
> > >      callsites in signal_32.c are preceded by an earlier access_ok().
> > > 
> > >      Signed-off-by: Christopher M. Riedl <cmr@codefail.de>
> > >      Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
> > >      Link: https://lore.kernel.org/r/20210227011259.11992-11-cmr@codefail.de
> > > 
> > >   arch/powerpc/kernel/signal.h    | 7 +++++++
> > >   arch/powerpc/kernel/signal_32.c | 2 +-
> > >   arch/powerpc/kernel/signal_64.c | 4 ++--
> > >   3 files changed, 10 insertions(+), 3 deletions(-)
> > > 
> > 


  reply	other threads:[~2021-11-02 22:35 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <6919111c-02fa-c6b9-bb05-04161e52f340@yahoo.com>
     [not found] ` <27ad38f3-c1a8-ac5c-8467-f311b5882a00@yahoo.com>
2021-10-22 18:40   ` Fwd: Fwd: X stopped working with 5.14 on iBook Christophe Leroy
2021-11-02  2:20     ` Finn Thain
2021-11-02 22:27       ` Christopher M. Riedl [this message]
2021-11-02 22:45         ` Riccardo Mottola
2021-11-04 18:30         ` Stanley Johnson
2021-11-04 16:40       ` Christophe Leroy
2021-11-04 18:49         ` Stanley Johnson
2021-11-04 23:36         ` Finn Thain
2021-11-05 17:27           ` Christophe Leroy
2021-11-06  1:22             ` Stanley Johnson
2021-11-05 17:58           ` Segher Boessenkool
     [not found]     ` <48c3ed15-2ecf-cc12-c287-2b61457f5fb__21333.0969143257$1635819996$gmane$org@nippy.intranet>
2021-11-03  8:51       ` Andreas Schwab
2021-11-03 22:26         ` Finn Thain
2021-11-03 22:55           ` Andreas Schwab
2021-11-04  2:00           ` Stanley Johnson
2021-11-04  9:01             ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CFFNC8MZ20HR.13XRVPWSKVLE0@wrwlf0000 \
    --to=cmr@bluescreens.de \
    --cc=cmr@linux.ibm.com \
    --cc=fthain@linux-m68k.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=riccardo.mottola@libero.it \
    --cc=stanley.johnson.001@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox