Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Tobias Wolf <t.wolf@vplace.de>
To: linux-mips@linux-mips.org
Cc: Mathias Kresin <dev@kresin.me>
Subject: [PATCH 0/2] Introduction of patches for CONFIG_MIPS_RAW_APPENDED_DTB (ralink)
Date: Mon, 21 Nov 2016 17:22:45 +0100	[thread overview]
Message-ID: <34413663.tGaeXtuGnb@loki> (raw)

Hi,

While trying to get a vanilla kernel 4.4 running with 
CONFIG_MIPS_RAW_APPENDED_DTB I noticed a hang while booting right after:
CPU0 revision is: 0001906c (MIPS 4KEc)
on a rt288x (ralink) based router (Belkin F5D8235 v1).

Initially I wanted to hunt down another bug described in detail in LEDE 
Flyspray Issue Tracker for that router. [1] Basically all kernels 4.4+ causes 
a kernel crash because of "BUG: Bad page state in process swapper".

Back to the hang for vanilla 4.4:

Analysis showed that initial_boot_params in of_scan_flat_dt() of drivers/of/
fdt.c is never checked before accessed.

In arch/mips/ralink/of.c __dt_setup_arch(__dtb_start) is called without any 
checks right before calling of_scan_flat_dt() as well. Given that 
initial_boot_params is null, that call never returned.

The hang was caused because arch/mips/ralink does not yet support 
fw_passed_dtb and initial_boot_params was null therefore.

As I'm new to the kernel development procedure (thanks for some hints go to 
Mathias Kresin) I'm sending these patches separately afterwards.

Best regards
Tobias Wolf

[1] https://bugs.lede-project.org/index.php?do=details&task_id=244

                 reply	other threads:[~2016-11-21 16:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=34413663.tGaeXtuGnb@loki \
    --to=t.wolf@vplace.de \
    --cc=dev@kresin.me \
    --cc=linux-mips@linux-mips.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