Re: Enable SMP support

2018-11-24 Thread Damien Zammit
On 18/11/18 04:30, liberamenso10...@gmail.com wrote: > Ok. In any case, I've restarted the project two months ago. > > You can read the docs from here: > https://gitlab.com/snippets/1756024 Hi, don't forget you can read the coreboot source code which is a free software bios that, among other th

Re: Enable SMP support

2018-11-23 Thread Joshua Branson
liberamenso10...@gmail.com writes: > Ok. In any case, I've restarted the project two months ago. > > You can read the docs from here: > https://gitlab.com/snippets/1756024 There's a lot of great detail there! Do you mind if I copy a lot of your information from that page and add it to the Hurd

Re: Enable SMP support

2018-11-17 Thread Guillem Jover
Hi! On Wed, 2018-07-04 at 21:14:59 +0200, Almudena Garcia wrote: > I'm trying to develop intel_startCPU function, using the function of this > file as base code > https://github.com/nneonneo/osx-10.9-opensource/blob/master/xnu-2422.1.72/osfmk/i386/mp.c Please check the license terms of XNU, becau

Re: Enable SMP support

2018-11-17 Thread liberamenso10000
Ok. In any case, I've restarted the project two months ago. You can read the docs from here: https://gitlab.com/snippets/1756024 El Sábado 17 de noviembre de 2018, Guillem Jover escribió: > Hi! > > On Wed, 2018-07-04 at 21:14:59 +0200, Almudena Garcia wrote: > > I'm trying to develop intel_sta

Re: Enable SMP support

2018-07-10 Thread Joshua Branson
Almudena Garcia writes: Nice work dude! > A better link > > https://www.youtube.com/watch?v=78JYeXMNeVM&feature=youtu.be > > 2018-07-10 15:31 GMT+02:00 Almudena Garcia : > > This is the record of GNU/Hurd boot crash (with my SMP GNU Mach core) > > https://drive.google.com/file/d/1imOWYUI6PQ5J

Re: Enable SMP support

2018-07-10 Thread Almudena Garcia
A better link https://www.youtube.com/watch?v=78JYeXMNeVM&feature=youtu.be 2018-07-10 15:31 GMT+02:00 Almudena Garcia : > This is the record of GNU/Hurd boot crash (with my SMP GNU Mach core) > https://drive.google.com/file/d/1imOWYUI6PQ5J7R8ScvnV- > fIRs81sV769/view?usp=sharing > > Feels an MMU

Re: Enable SMP support

2018-07-10 Thread Almudena Garcia
This is the record of GNU/Hurd boot crash (with my SMP GNU Mach core) https://drive.google.com/file/d/1imOWYUI6PQ5J7R8ScvnV-fIRs81sV769/view?usp=sharing Feels an MMU problem in the Hurd servers start. 2018-07-10 14:45 GMT+02:00 Almudena Garcia : > This is the record of GNU/Hurd boot crash with S

Re: Enable SMP support

2018-07-09 Thread Almudena Garcia
It compiles!! :-) I've just got to finish the GNU Mach compilation, patched to add SMP support. You can see the code here: https://github.com/AlmuHS/GNUMach_SMP/tree/smp I tried to boot Hurd using the new Mach image, but It crash. Now I will need to debug my code. In the compile log appears many

Re: Enable SMP support

2018-07-09 Thread Almudena Garcia
I have commented this lines at moment. 2018-07-09 17:32 GMT+02:00 Almudena Garcia : > Finally, I got the equivalent call to > *cpu_desc_init64(cpu_datap(slot_num));* > > Also, I've replaced many others variables in the code. > The current code is here: https://github.com/AlmuHS/ > GNUMach_SMP/b

Re: Enable SMP support

2018-07-09 Thread Almudena Garcia
Finally, I got the equivalent call to *cpu_desc_init64(cpu_datap(slot_num));* Also, I've replaced many others variables in the code. The current code is here: https://github.com/AlmuHS/GNUMach_SMP/blob/smp/i386/i386/intel_startCPU.c Now I'm searching the equivalency to this: - IdlePTD in this li

Re: Enable SMP support

2018-07-05 Thread Joshua Branson
Almudena Garcia writes: > I've just fixed a little error in my code. > > I attach the fixed file > > 2018-07-04 21:14 GMT+02:00 Almudena Garcia : > hmmm. This is a little out of my league, but I appreciate you for trying!

Re: Enable SMP support

2018-07-04 Thread Almudena Garcia
I've just fixed a little error in my code. I attach the fixed file 2018-07-04 21:14 GMT+02:00 Almudena Garcia : > Hi, other time: > > I'm trying to develop intel_startCPU function, using the function of this > file as base code > https://github.com/nneonneo/osx-10.9-opensource/blob/ > master/xnu

Re: Enable SMP support

2018-07-04 Thread Almudena Garcia
Hi, other time: I'm trying to develop intel_startCPU function, using the function of this file as base code https://github.com/nneonneo/osx-10.9-opensource/blob/master/xnu-2422.1.72/osfmk/i386/mp.c I've got to replace the *ml_set_interrupts_enabled() *calls, and now I need to replace this call:*

Re: Enable SMP support

2018-07-03 Thread Almudena Garcia
> > Also it seems that local_bh_count and local_irq_count are used only in > the Linux-based drivers, so maybe you can look to the SMP-aware > implementation in Linux (or #define the functions as empty macros if > they are not strictly needed..) > Yes, I found their definitions in *linux/dev/arch

Re: Enable SMP support

2018-07-03 Thread Almudena Garcia
Using grep, I've found *local_bh_count* and *local_irq_count. ffs *is defined correctly. But I don't find the *intel_startCPU* definition. In *i386/i386/mp_desc.c *there are many calls to this, but It doesn't appear to be in any file. Do you know about this? 2018-07-03 17:49 GMT+02:00 Almudena G

Re: Enable SMP support

2018-07-03 Thread Luca Dariz
Il 03/07/2018 17:49, Almudena Garcia ha scritto: > I've just tried to add this functions in Makefile.am, in clib_routines, > as this form > > clib_routines := htonl htons ntohl ntohs    \ > udivdi3 __udivdi3 __udivmoddi4 __umoddi3   \ > __d

Re: Enable SMP support

2018-07-03 Thread Almudena Garcia
I've just tried to add this functions in Makefile.am, in clib_routines, as this form clib_routines := htonl htons ntohl ntohs\ udivdi3 __udivdi3 __udivmoddi4 __umoddi3 \ __divdi3 \

Re: Enable SMP support

2018-07-03 Thread liberamenso10000
Thanks, I'll try it El Martes 3 de julio de 2018, Luca Dariz escribió: > Hello! > > Il 28/06/2018 20:31, Almudena Garcia ha scritto: > > Now the compiler gets the gnumach.o, but It returns another linker error. > > I attach logs also. > > > > > > How can I solve this? > > From the last lines o

Re: Enable SMP support

2018-07-03 Thread Luca Dariz
Hello! Il 28/06/2018 20:31, Almudena Garcia ha scritto: > Now the compiler gets the gnumach.o, but It returns another linker error. > I attach logs also. > > > How can I solve this? >From the last lines of the log ... ffs intel_startCPU local_bh_count local_irq_count ... these four functions

Re: Enable SMP support

2018-06-27 Thread Almudena Garcia
> > *Yes, the type for processor is needed, see the patch I have now commited.* > Ok. I've just to apply your patches and copy my cpu_number() function in kern/cpu_number.h. The latest compilation problems have disappeared, but there are any errors yet. > > > *> /* More-specific code must defin

Re: Enable SMP support

2018-06-27 Thread Samuel Thibault
Hello, Almudena Garcia, le mer. 27 juin 2018 22:37:55 +0200, a ecrit: > ../kern/sched_prim.h:188:1: warning: parameter names (without types) in > function declaration > extern void cause_ast_check(processor); /*new*/ Yes, the type for processor is needed, see the patch I have now commited. >

Re: Enable SMP support

2018-06-27 Thread Almudena Garcia
After to solve the compilation problems, We continue with our SMP work. We have fixed many little errors and now have just found another big problem, this time with pmap.c This feels a problem about page tables and MMU, which feels aren't implemented for many CPUs I attach a patch will all chang

Re: Enable SMP support

2018-06-19 Thread Joshua Branson
Almudena Garcia writes: > Here attach the patch files. > > About the sources, the gnumach apt sources are dated in 2018/02/18, so It > don't includes your latest fixes. > > How can I download sources from git repository? I believe the gnumach repo is located here: git clone git://git.sv.gnu.or

Re: Enable SMP support

2018-06-19 Thread Almudena Garcia
Here attach the patch files. About the sources, the gnumach apt sources are dated in 2018/02/18, so It don't includes your latest fixes. How can I download sources from git repository? 2018-06-19 2:26 GMT+02:00 Samuel Thibault : > Hello, > > Almudena Garcia, le lun. 18 juin 2018 21:16:28 +0200,

Re: Enable SMP support

2018-06-18 Thread Samuel Thibault
Hello, Almudena Garcia, le lun. 18 juin 2018 21:16:28 +0200, a ecrit: > [1]http://dpaste.com/32VFE37 > > [2]http://dpaste.com/1F3YETN Please post them as attached text files to your mail, so review can take place. > But my sources were downloaded from apt, so these are outdated. gnumach doesn'

Re: Enable SMP support

2018-06-18 Thread Almudena Garcia
The patch is here http://dpaste.com/32VFE37 http://dpaste.com/1F3YETN But my sources were downloaded from apt, so these are outdated. Now, I'll try to download sources from git master 2018-06-17 14:01 GMT+02:00 Almudena Garcia : > Yes. We fixed this too. > > Last night we was following the

Re: Enable SMP support

2018-06-17 Thread Almudena Garcia
Yes. We fixed this too. Last night we was following the error chain, solve many errors and typos as this. I'll try to generate a patch to send you the fix. 2018-06-17 10:00 GMT+02:00 Samuel Thibault : > Almudena Garcia, le dim. 17 juin 2018 01:44:11 +0200, a ecrit: > > and shows another error

Re: Enable SMP support

2018-06-17 Thread Samuel Thibault
Almudena Garcia, le dim. 17 juin 2018 01:44:11 +0200, a ecrit: > and shows another error in kern/startup.c > > [2]http://dpaste.com/1QR0XSK It was just a missing declaration, now fixed. Samuel

Re: Enable SMP support

2018-06-16 Thread Almudena Garcia
Ok. I fixed my undefined behavior in cpu_number(). But It show many errors http://dpaste.com/2ACQ7VZ 2018-06-17 1:44 GMT+02:00 Almudena Garcia : > Well, I checked your code, and I fixed another typo in the same file and > line. > I removed the latest ) in > > : "0" (new_val), "m" (*(lock)) : "mem

Re: Enable SMP support

2018-06-16 Thread Almudena Garcia
Well, I checked your code, and I fixed another typo in the same file and line. I removed the latest ) in : "0" (new_val), "m" (*(lock)) : "memory") \ http://dpaste.com/1QW4EVF Now this compiles. But It shows a warning (undefined behavior) in my cpu_number() code, and shows another error in kern

Re: Enable SMP support

2018-06-16 Thread Almudena Garcia
ok. I'll try to update my sources. But now I have another problem: The "apt-get source gnumach" feels don't update the sources. How can I download this? I tried with git clone http://git.savannah.gnu.org/cgit/hurd/gnumach.git/ But git don't find the repo 2018-06-17 1:03 GMT+02:00 Samuel Thi

Re: Enable SMP support

2018-06-16 Thread Samuel Thibault
Almudena Garcia, le sam. 16 juin 2018 17:34:13 +0200, a ecrit: > The compilation continues failing, anymore > > [2]http://dpaste.com/26VWZ6G I have now fixed the dumb typo there. Samuel

Re: Enable SMP support

2018-06-16 Thread Richard Braun
On Sat, Jun 16, 2018 at 01:17:57PM +0200, Almudena Garcia wrote: > Finally, we got to write a test function to get the apic_id, and It feels > to run correctly. > Now, we're trying to implement another function, to transform the apic_id > in the kernel cpuid. > > I attach the current test function

Re: Enable SMP support

2018-06-16 Thread Almudena Garcia
We have finished the first prototype of kern/cpu_number.h http://dpaste.com/2QJB8VR We have to improve many details, about initialization of structures and implementation of the function (may be better creates a cpu_number.c file, instead implement the function in the header), but now the compila

Re: Enable SMP support

2018-06-16 Thread Almudena Garcia
Finally, we got to write a test function to get the apic_id, and It feels to run correctly. Now, we're trying to implement another function, to transform the apic_id in the kernel cpuid. I attach the current test function to get apic_id with its test file 2018-06-15 19:36 GMT+02:00 Almudena Garci

Re: Enable SMP support

2018-06-15 Thread Almudena Garcia
Yes, I saw this. When I test It in Linux, I used a dual core computer. But the snippet returns "8" number. Now I know the reason ;) 2018-06-15 19:25 GMT+02:00 Richard Braun : > On Fri, Jun 15, 2018 at 07:18:55PM +0200, Richard Braun wrote: > > On Fri, Jun 15, 2018 at 06:27:21PM +0200, Almudena

Re: Enable SMP support

2018-06-15 Thread Richard Braun
On Fri, Jun 15, 2018 at 07:18:55PM +0200, Richard Braun wrote: > On Fri, Jun 15, 2018 at 06:27:21PM +0200, Almudena Garcia wrote: > > I'm trying to define the cpu_number() in multiprocessor. > > > > To do this, I tried to use CPUID assembly x86 instruction, to get the CPU > > SMP number. > > The f

Re: Enable SMP support

2018-06-15 Thread Richard Braun
On Fri, Jun 15, 2018 at 06:27:21PM +0200, Almudena Garcia wrote: > I'm trying to define the cpu_number() in multiprocessor. > > To do this, I tried to use CPUID assembly x86 instruction, to get the CPU > SMP number. > The function, in C, is this: > > static inline char smp_processor_id(void) { >

Re: Enable SMP support

2018-06-15 Thread Almudena Garcia
I'm trying to define the cpu_number() in multiprocessor. To do this, I tried to use CPUID assembly x86 instruction, to get the CPU SMP number. The function, in C, is this: static inline char smp_processor_id(void) { char apic_id = 0; asm("mov $1, %%eax\n\t" "cpuid\n\t" "mov %%bh, %0\n\t"

Re: Enable SMP support

2018-06-14 Thread Almudena Garcia
Ok. I understand you. But then... how can I to define cpu_number() function in multiprocessor? It isn't clear 2018-06-15 1:30 GMT+02:00 Amos Jeffries : > On 15/06/18 10:31, Almudena Garcia wrote: > > Yes, I concluded the same a few hours ago. I tried to edit > > kern/cpu_number.h, to add a new de

Re: Enable SMP support

2018-06-14 Thread liberamenso10000
Ok, I agree. I didn't read this docs. I'll try to change it El Viernes 15 de junio de 2018, Amos Jeffries escribió: > On 15/06/18 10:31, Almudena Garcia wrote: > > Yes, I concluded the same a few hours ago. I tried to edit > > kern/cpu_number.h, to add a new definition with many cores, at this for

Re: Enable SMP support

2018-06-14 Thread Amos Jeffries
On 15/06/18 10:31, Almudena Garcia wrote: > Yes, I concluded the same a few hours ago. I tried to edit > kern/cpu_number.h, to add a new definition with many cores, at this form > > int master_cpu; /* 'master' processor - keeps time */ > > #if (NCPUS == 1) >     /* cpu number is a

Re: Enable SMP support

2018-06-14 Thread Almudena Garcia
Yes, I concluded the same a few hours ago. I tried to edit kern/cpu_number.h, to add a new definition with many cores, at this form int master_cpu; /* 'master' processor - keeps time */ #if (NCPUS == 1) /* cpu number is always 0 on a single processor system */ #define cpu_numb

Re: Enable SMP support

2018-06-14 Thread Svante Signell
On Thu, 2018-06-14 at 20:21 +0200, Almudena Garcia wrote: > Ok, I found the warning what you refers > > ../kern/thread.h:401:42: warning: implicit declaration of function > ‘cpu_number’; did you mean ‘cpu_idle’? [-Wimplicit-function- > declaration] > > After check the cpu_number.h file, feels tha

Re: Enable SMP support

2018-06-14 Thread Almudena Garcia
Ok, I found the warning what you refers ../kern/thread.h:401:42: warning: implicit declaration of function ‘cpu_number’; did you mean ‘cpu_idle’? [-Wimplicit-function-declaration] After check the cpu_number.h file, feels that It don't define the cpu_number function in multi-processor mode https:

Re: Enable SMP support

2018-06-14 Thread Samuel Thibault
Almudena Garcia, le jeu. 14 juin 2018 17:58:42 +0200, a ecrit: > You can see the error in this log > > [2]https://pastebin.com/wZnXQ61y > > Feels I syntax error, but I don't sure Look at the very first warning, the rest can be just a consequence of it. It seems to be saying that it's simply miss

Re: Enable SMP support

2018-06-14 Thread Almudena Garcia
Ok, I just found the file in the gnumach sources directory. Now I'm trying to compile mach, using this guide https://www.gnu.org/software/hurd/microkernel/mach/gnumach/building.html But, during the compilation process with dpkg-buildpackage, It shows an error, and stop. You can see the error in

Re: Enable SMP support

2018-06-08 Thread Almudena Garcia
But... where is this configuration file? Do I need to recompile mach after enable the SMP option? 2018-06-08 21:27 GMT+02:00 James Clarke : > On 8 Jun 2018, at 18:06, Joshua Branson wrote: > > > > Almudena Garcia writes: > > > >> Hi all: > >> > >> Reading this post in Hurd FAQ, I read that Mac

Re: Enable SMP support

2018-06-08 Thread James Clarke
On 8 Jun 2018, at 18:06, Joshua Branson wrote: > > Almudena Garcia writes: > >> Hi all: >> >> Reading this post in Hurd FAQ, I read that Mach has SMP support, but It was >> disabled because the Linux device drivers glue code isn't thread-safe. >> >> https://www.gnu.org/software/hurd/faq/smp.

Re: Enable SMP support

2018-06-08 Thread Joshua Branson
Almudena Garcia writes: > Hi all: > > Reading this post in Hurd FAQ, I read that Mach has SMP support, but It was > disabled because the Linux device drivers glue code isn't thread-safe. > > https://www.gnu.org/software/hurd/faq/smp.html > > Then, I ask . Are there any form to enable this SMP su

Enable SMP support

2018-06-07 Thread Almudena Garcia
Hi all: Reading this post in Hurd FAQ, I read that Mach has SMP support, but It was disabled because the Linux device drivers glue code isn't thread-safe. https://www.gnu.org/software/hurd/faq/smp.html Then, I ask . Are there any form to enable this SMP support in GNU Mach? (At my own risk). I