All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kars de Jong <jongk@linux-m68k.org>
To: Helge Deller <deller@gmx.de>
Cc: Finn Thain <fthain@telegraphics.com.au>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	linux-m68k@lists.linux-m68k.org, linux-parisc@vger.kernel.org
Subject: Re: [RFC][PATCH] m68k/parisc: Convert hp_sdc_rtc driver to rtc framework
Date: Mon, 28 Jan 2019 09:35:17 +0100	[thread overview]
Message-ID: <CACz-3rgc4gcbpdCDCFrWPCasZ57KBNu9CyejTxqZrk76mP1Bgw@mail.gmail.com> (raw)
In-Reply-To: <df8a7f49-920f-c57f-cb3c-4f775e0fbaca@gmx.de>

Op za 26 jan. 2019 om 14:47 schreef Helge Deller <deller@gmx.de>:
>
> Hello Kars,
>
> On 21.01.19 09:45, Kars de Jong wrote:
> > I tried to test the patch this weekend. I first started with an
> > unpatched kernel. Unfortunately, there are hardware issues:
> >
> > 1. The battery of the RTC is dead.
> > 2. There seems to be a problem which causes autovector interrupt 1 to
> > fire spuriously, which is the keyboard and DMA interrupt. At least,
> > that's what the OpenBSD kernel reports. It seems to cause the Linux
> > kernel to freeze.
> > 3. The harddisk (original 200 MB Rodime RO3000T) is failing, so I
> > can't fully boot OpenBSD to further verify this problem.
>
> Thanks for the willingness to test, and sorry to hear about that issues!
> I hope you get them fixed at some point.
> Testing on real hardware is always useful.

The issues seem to be less severe than I thought. A new battery is on
its way, the interrupt problem was caused by an issue when using the
keyboard in the OpenBSD boot loader and I don't need the harddisk for
testing Linux.
My netboot environment is back up and running.
The last kernel I ever ran on the box (a patched Linux 2.6.20) booted
to multi user. That one was built in March 2007, which according to my
NFS root file system was also the last time the box actually ran
Linux...

There's now also a working HP9000/360 emulation in MAME (it's capable
of running HP-UX 9 including HP VUE so it's pretty complete) so that
may also become a viable option for testing.

> > Anyway, I don't think your patch it will work.
> >
> > When running on m68k, you're passing a NULL device pointer to
> > devm_rtc_device_register(), which eventually gets passed to
> > devres.c:add_dr() and that is definitely not OK.
>
> I was aware of the NULL pointer, which is why I wanted real
> feedback about my patch. Ideally someone with platform knowhow
> could add the missing pieces to fix this NULL pointer code.
>
> > I think this calls for a proper platform device on the m68k side.
>
> Yes. Who could add that?

I can. I would first like to have a more recent kernel that actually
boots though. It looks like the hp300_defconfig (which is what I used)
isn't quite set up correctly.

Kind regards,

Kars.

      reply	other threads:[~2019-01-28  8:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-27 21:01 [RFC][PATCH] m68k/parisc: Convert hp_sdc_rtc driver to rtc framework Helge Deller
2018-11-27 21:17 ` Finn Thain
2019-01-07  7:31   ` Helge Deller
2019-01-07 21:59     ` Finn Thain
2019-01-08  8:34       ` Kars de Jong
2019-01-21  8:45         ` Kars de Jong
2019-01-26 13:47           ` Helge Deller
2019-01-28  8:35             ` Kars de Jong [this message]

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=CACz-3rgc4gcbpdCDCFrWPCasZ57KBNu9CyejTxqZrk76mP1Bgw@mail.gmail.com \
    --to=jongk@linux-m68k.org \
    --cc=deller@gmx.de \
    --cc=fthain@telegraphics.com.au \
    --cc=geert@linux-m68k.org \
    --cc=linux-m68k@lists.linux-m68k.org \
    --cc=linux-parisc@vger.kernel.org \
    /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 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.