Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Mar 08 23:54

    imphil on master

    Add LibreCores badge (compare)

  • Jan 16 02:53
    hchenji commented #189
  • Dec 10 2020 17:53
    hchenji commented #190
  • Dec 10 2020 15:52
    hchenji commented #189
  • Dec 02 2020 19:23
    koenenwmn commented #189
  • Nov 25 2020 23:32
    imphil commented #189
  • Nov 25 2020 23:28
    imphil reopened #189
  • Nov 25 2020 23:28
    imphil commented #189
  • Nov 25 2020 23:28
    imphil closed #189
  • Nov 25 2020 23:28
    imphil commented #189
  • Nov 24 2020 00:01
    hchenji commented #189
  • Nov 20 2020 08:04
    deadspace99 commented #189
  • Nov 09 2020 17:13
    hchenji commented #189
  • Nov 08 2020 10:57
    deadspace99 commented #189
  • Nov 07 2020 11:48
    deadspace99 opened #190
  • Nov 03 2020 18:05
    hchenji opened #189
  • May 16 2020 14:24
    ppenna unassigned #82
  • May 04 2020 22:12

    imphil on master

    README: Fix name of license file (compare)

  • May 04 2020 21:29

    imphil on master

    Update README Make it a bit mo… (compare)

  • May 04 2020 21:29
    imphil closed #188
Ghost
@ghost~5910ddcfd73408ce4f5dfa87
because that is what .dts file is for... it specifies how the IRQs are wired up
Pedro Henrique Penna
@ppenna
when I specify that on DTS then I don't need to request_irq()?
ok
then how I would register the interrupt handler?
Ghost
@ghost~5910ddcfd73408ce4f5dfa87
yes, instead the _of api does that for you
Pedro Henrique Penna
@ppenna
setup_irq()?
Ghost
@ghost~5910ddcfd73408ce4f5dfa87
see my example I posted 5 lines above
Pedro Henrique Penna
@ppenna
yes... I see
just to be sure actually
Ghost
@ghost~5910ddcfd73408ce4f5dfa87
Give me a second you have to make a few more changes to make it device tree aware
Pedro Henrique Penna
@ppenna
ok
I also need to informe the device node
how will I get that?
You can look at examples in the linux kernel
i.e.
static const struct of_device_id of_platform_serial_table[] = {
{ .compatible = "ns8250", .data = (void *)PORT_8250, },
There are probably much more simple cases
Ill join the call in a second
Pedro Henrique Penna
@ppenna
question:
whe we use DTS, do I need to ioremap_nocache()
Ghost
@ghost~5910ddcfd73408ce4f5dfa87
ompic_base = of_iomap(node, 0);
Ghost
@ghost~5910ddcfd73408ce4f5dfa87
node you get from
pdev->dev.of_node
Ghost
@ghost~5910ddcfd73408ce4f5dfa87
@ppenna re IRQ triggering, by default you will get the trigger mode of the IRQ controller. So I dont think you should change it at all.
Pedro Henrique Penna
@ppenna
how would I don't change it?
Ghost
@ghost~5910ddcfd73408ce4f5dfa87
Just remove it from the flags
Pedro Henrique Penna
@ppenna
moreover, to stop using DTS I should just remove it from the DTS file?
Ghost
@ghost~5910ddcfd73408ce4f5dfa87
Well, you are alreayd not using it. No harm keeping it in the DTS file
Pedro Henrique Penna
@ppenna
hmmm
ok
Ghost
@ghost~5910ddcfd73408ce4f5dfa87
We want to switch to DTS later
after you fix the driver as is, so keep it there
Pedro Henrique Penna
@ppenna
ok then
Pedro Henrique Penna
@ppenna
@imphil STM log does not work without crashing
how you I know that data is arriving in the COMPUTE tile?
I cannot simply printf()
because the UART termnal is beeing used...
Philipp Wagner
@imphil
So you enabled STM for the second tile with baremetal and the terminal for the first tile with linux and nothing else? And what's crashing then? opensocdebugd?
Pedro Henrique Penna
@ppenna
wow
WAIT
Pedro Henrique Penna
@ppenna
@imphil @stffrdhrn @wallento sending data from the HOST tile to the COMPUTE tile works
=D
Philipp Wagner
@imphil
Nice! Already a great step forward!
Stefan Wallentowitz
@wallento
nice
sorry, I was out during the call
Pedro Henrique Penna
@ppenna
=)
no problem.... I shall now try to fix the interrupts
Pedro Henrique Penna
@ppenna
@imphil could you or @wallento please push a "README" file on the https://github.com/optimsoc/linux-apps? Since there are no files in the repository I cannot clone it
Philipp Wagner
@imphil
@ppenna done
Pedro Henrique Penna
@ppenna
@imphil thank you! I'll submit a pull request for the linux-apps in a couple of ours
I've already submitted a patch for the optimsoc repo