mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: jengelh@linux01.gwdg.de
Cc: sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Linux always started with 9600 8N1
Date: Sun, 27 May 2007 14:16:22 -0700 (PDT)	[thread overview]
Message-ID: <20070527.141622.30184020.davem@davemloft.net> (raw)
In-Reply-To: <Pine.LNX.4.61.0705271816310.7344@yvahk01.tjqt.qr>

From: Jan Engelhardt <jengelh@linux01.gwdg.de>
Date: Sun, 27 May 2007 18:44:18 +0200 (MEST)

> 
> On May 26 2007 15:47, David Miller wrote:
> >> I have set the OBP to run at 115200, also set agetty on ttyS0 to do the 
> >> same, and also added console=ttyS0,115200 to silo.conf (and also tried 
> >> console=ttyS0,115200n8). But! Linux still gives me 9600 8N1. The ominous 
> >> double screen blanking (why is that done anyway?) already takes place 
> >> with 9600. I smell a bug. What do you think?
> >
> >The code in drivers/serial/suncore.c:sunserial_console_termios()
> >should be parsing your OBP settings, add some tracing and see why it
> >isn't working.
> >
> >Please track the bug down for us, thanks :-)
> 
> Just why did no one get a kernel oops? After all, the code tried to
> write to constant memory.
> 
> This is the first patch of two. There is yet another section of Linux 
> code that runs in 9600-only, and I need to figure out which.

There should not be an OOPS, we don't map any section of the
kernel as read-only or execute-only or anything like that.

The kernel image is mapped with full read/write/execute permission.

So even writes to so-called 'read-only' sections of the kernel image
will work and therefore I don't understand what the bug could be other
than the compiler "optimizing" away the write to the constant string
in which case the compiler should have warned about it.

  parent reply	other threads:[~2007-05-27 21:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.61.0705261649590.7344@yvahk01.tjqt.qr>
     [not found] ` <20070526.154745.30164056.davem@davemloft.net>
2007-05-27 16:44   ` Jan Engelhardt
2007-05-27 17:09     ` Jan Engelhardt
2007-05-27 21:16     ` David Miller [this message]
2007-05-27 21:47       ` David Miller
2007-05-29 20:10         ` Jan Engelhardt

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=20070527.141622.30184020.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=jengelh@linux01.gwdg.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sparclinux@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®