GithubHelp home page GithubHelp logo

Comments (9)

cmcoldwell avatar cmcoldwell commented on August 15, 2024

I have a set of patches to propose.
0001-Use-a-standard-linked-list-idiom.txt
0002-Straighten-out-the-logic-in-fdt_init_node.txt
0003-Fix-segfault-in-xilinx_intc_fdt_auto_parent.txt
0004-Put-sysbus-MMIO-in-system-memory-map.txt

from qemu.

edgarigl avatar edgarigl commented on August 15, 2024

Thanks for contributing!

A few comments:

Unfortunately the patches do not pass checkpatch, you can try on your own by doing:
git show | ./scripts/checkpatch.pl -

It would also be great if you could prefix the summary of the commit message with something.
E.g fdt-generic: Some description
You can see examples in the history for a specific file or submodule with git log -- file.c

Also, if the patch is non-obvious, it would be great if you could provide some context in the commit-message, e.g for patches 2 & 4.

I've fixed up and applied patch 1 & 3.

Could you please fix up and resubmit patch 2 & 4, perhaps as a pull request on github?

Thanks again for contributing!

Cheers,
Edgar

from qemu.

cmcoldwell avatar cmcoldwell commented on August 15, 2024

from qemu.

cmcoldwell avatar cmcoldwell commented on August 15, 2024

from qemu.

cmcoldwell avatar cmcoldwell commented on August 15, 2024

0001-Straighten-out-the-logic-in-fdt_init_node.txt
0002-Put-sysbus-MMIO-in-system-memory-map.txt

from qemu.

edgarigl avatar edgarigl commented on August 15, 2024

Hi,

I've applied patch #1.

Patch number 2 breaks our system though. We rely quite heavily on attaching devices to the actual parent bus. I'm not sure how we'd work around this for device-tree's that don't match this. Perhaps you could find a way to specifically catch the orphaned case and apply your logic only in that case.

Did you publish the device-tree causing problems somewhere?
Is that device-tree auto-generated or are we in a position to hand-edit it?

Thanks,
Edgar

from qemu.

cmcoldwell avatar cmcoldwell commented on August 15, 2024

The device tree that causes the problem was auto-generated by the Xilinx HSI utility (although I hand edited system-top.dts to add the memory@0 node). I'm attaching the files.

I'll take another look and see if I can find a better way. To be honest, this method felt pretty heavy-handed when I did it.

dts.zip

from qemu.

cmcoldwell avatar cmcoldwell commented on August 15, 2024

OK, here's another swing at the problem. I'll admit my understanding of QOM and QDev (and the relationship between the two) is limited, but it looks like when MMIO regions (e.g. "amba_pl") are "orphaned", they get added as "child" type properties to the root node of the object tree. This code finds those properties and adds them to the system bus memory map. Passes checkpatch.pl.

0001-Put-orphaned-MMIO-into-system-memory-map.txt

from qemu.

cmcoldwell avatar cmcoldwell commented on August 15, 2024

from qemu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.