Re: [PATCH for-5.1 V4 3/4] hw/mips: Add Loongson-3 machine support (with KVM)

2020-06-15 Thread Aleksandar Markovic
пон, 15. јун 2020. у 08:29 Huacai Chen је написао/ла: > > Hi, Aleksandar, > > On Mon, Jun 15, 2020 at 2:04 PM Aleksandar Markovic > wrote: > > > > пон, 15. јун 2020. у 07:36 Huacai Chen је написао/ла: > > > > > > Hi, Aleksandar, > > > > > > On Mon, Jun 15, 2020 at 12:50 PM Aleksandar Markovic >

Re: [PATCH for-5.1 V4 3/4] hw/mips: Add Loongson-3 machine support (with KVM)

2020-06-15 Thread Huacai Chen
Hi, Aleksandar, On Mon, Jun 15, 2020 at 2:04 PM Aleksandar Markovic wrote: > > пон, 15. јун 2020. у 07:36 Huacai Chen је написао/ла: > > > > Hi, Aleksandar, > > > > On Mon, Jun 15, 2020 at 12:50 PM Aleksandar Markovic > > wrote: > > > > > > пон, 15. јун 2020. у 02:55 Huacai Chen је > > >

Re: [PATCH for-5.1 V4 3/4] hw/mips: Add Loongson-3 machine support (with KVM)

2020-06-15 Thread Aleksandar Markovic
пон, 15. јун 2020. у 07:36 Huacai Chen је написао/ла: > > Hi, Aleksandar, > > On Mon, Jun 15, 2020 at 12:50 PM Aleksandar Markovic > wrote: > > > > пон, 15. јун 2020. у 02:55 Huacai Chen је написао/ла: > > > > > > Hi, Aleksandar, > > > > > > On Sun, Jun 14, 2020 at 3:51 PM Aleksandar Markovic >

Re: [PATCH for-5.1 V4 3/4] hw/mips: Add Loongson-3 machine support (with KVM)

2020-06-15 Thread Aleksandar Markovic
пон, 15. јун 2020. у 07:36 Huacai Chen је написао/ла: > > Hi, Aleksandar, > > On Mon, Jun 15, 2020 at 12:50 PM Aleksandar Markovic > wrote: > > > > пон, 15. јун 2020. у 02:55 Huacai Chen је написао/ла: > > > > > > Hi, Aleksandar, > > > > > > On Sun, Jun 14, 2020 at 3:51 PM Aleksandar Markovic >

Re: [PATCH for-5.1 V4 3/4] hw/mips: Add Loongson-3 machine support (with KVM)

2020-06-14 Thread Huacai Chen
Hi, Aleksandar, On Mon, Jun 15, 2020 at 12:50 PM Aleksandar Markovic wrote: > > пон, 15. јун 2020. у 02:55 Huacai Chen је написао/ла: > > > > Hi, Aleksandar, > > > > On Sun, Jun 14, 2020 at 3:51 PM Aleksandar Markovic > > wrote: > > > > > > Hi, Huacai, this is another round of comments, that

Re: [PATCH for-5.1 V4 3/4] hw/mips: Add Loongson-3 machine support (with KVM)

2020-06-14 Thread Aleksandar Markovic
пон, 15. јун 2020. у 02:55 Huacai Chen је написао/ла: > > Hi, Aleksandar, > > On Sun, Jun 14, 2020 at 3:51 PM Aleksandar Markovic > wrote: > > > > Hi, Huacai, this is another round of comments, that should be addressed in > > v5. > > > > уто, 2. јун 2020. у 04:40 Huacai Chen је написао/ла: > >

Re: [PATCH for-5.1 V4 3/4] hw/mips: Add Loongson-3 machine support (with KVM)

2020-06-14 Thread Aleksandar Markovic
пон, 15. јун 2020. у 02:55 Huacai Chen је написао/ла: > > Hi, Aleksandar, > > On Sun, Jun 14, 2020 at 3:51 PM Aleksandar Markovic > wrote: > > > > Hi, Huacai, this is another round of comments, that should be addressed in > > v5. > > > > уто, 2. јун 2020. у 04:40 Huacai Chen је написао/ла: > >

Re: [PATCH for-5.1 V4 3/4] hw/mips: Add Loongson-3 machine support (with KVM)

2020-06-14 Thread Huacai Chen
Hi, Aleksandar, On Sun, Jun 14, 2020 at 3:51 PM Aleksandar Markovic wrote: > > Hi, Huacai, this is another round of comments, that should be addressed in v5. > > уто, 2. јун 2020. у 04:40 Huacai Chen је написао/ла: > > > > Add Loongson-3 based machine support, it use i8259 as the interrupt > >

Re: [PATCH for-5.1 V4 3/4] hw/mips: Add Loongson-3 machine support (with KVM)

2020-06-14 Thread Aleksandar Markovic
Hi, Huacai, this is another round of comments, that should be addressed in v5. уто, 2. јун 2020. у 04:40 Huacai Chen је написао/ла: > > Add Loongson-3 based machine support, it use i8259 as the interrupt > controler and use GPEX as the pci controller. Currently it can only > work with KVM, but

Re: [PATCH for-5.1 V4 3/4] hw/mips: Add Loongson-3 machine support (with KVM)

2020-06-12 Thread Huacai Chen
Hi, Alexandar, On Thu, Jun 11, 2020 at 4:51 PM Aleksandar Markovic wrote: > > > >>> +int fd = 0, freq = 0; > > >>> +char buf[1024], *buf_p; > > 1024 should have been defined via preprocessor constant > > > >>> + > > >>> +fd = open("/proc/cpuinfo", O_RDONLY); > > >>> +if (fd ==

Re: [PATCH for-5.1 V4 3/4] hw/mips: Add Loongson-3 machine support (with KVM)

2020-06-11 Thread Aleksandar Markovic
> >>> +int fd = 0, freq = 0; > >>> +char buf[1024], *buf_p; 1024 should have been defined via preprocessor constant > >>> + > >>> +fd = open("/proc/cpuinfo", O_RDONLY); > >>> +if (fd == -1) { > >>> +fprintf(stderr, "Failed to open /proc/cpuinfo!\n"); > >>> +return

Re: [PATCH for-5.1 V4 3/4] hw/mips: Add Loongson-3 machine support (with KVM)

2020-06-11 Thread Jiaxun Yang
在 2020/6/11 15:49, Huacai Chen 写道: Hi, Jiaxun, On Thu, Jun 11, 2020 at 1:59 PM Jiaxun Yang wrote: 在 2020/6/2 10:39, Huacai Chen 写道: Add Loongson-3 based machine support, it use i8259 as the interrupt controler and use GPEX as the pci controller. Currently it can only work with KVM, but

Re: [PATCH for-5.1 V4 3/4] hw/mips: Add Loongson-3 machine support (with KVM)

2020-06-11 Thread Huacai Chen
Hi, Jiaxun, On Thu, Jun 11, 2020 at 1:59 PM Jiaxun Yang wrote: > > > > 在 2020/6/2 10:39, Huacai Chen 写道: > > Add Loongson-3 based machine support, it use i8259 as the interrupt > > controler and use GPEX as the pci controller. Currently it can only > > work with KVM, but we will add TCG support

Re: [PATCH for-5.1 V4 3/4] hw/mips: Add Loongson-3 machine support (with KVM)

2020-06-11 Thread Jiaxun Yang
在 2020/6/2 10:39, Huacai Chen 写道: Add Loongson-3 based machine support, it use i8259 as the interrupt controler and use GPEX as the pci controller. Currently it can only work with KVM, but we will add TCG support in future. We already have a full functional Linux kernel (based on Linux-5.4.x

Re: [PATCH for-5.1 V4 3/4] hw/mips: Add Loongson-3 machine support (with KVM)

2020-06-07 Thread Huacai Chen
Hi, Alexandar, On Mon, Jun 8, 2020 at 4:00 AM Aleksandar Markovic wrote: > > On Sun, Jun 7, 2020 at 3:13 AM chen huacai wrote: > > > > On Sat, Jun 6, 2020 at 4:01 AM Aleksandar Markovic > > wrote: > > > > > > суб, 6. јун 2020. у 09:32 Aleksandar Markovic > > > је написао/ла: > > > > > > > >

Re: [PATCH for-5.1 V4 3/4] hw/mips: Add Loongson-3 machine support (with KVM)

2020-06-07 Thread Aleksandar Markovic
On Sun, Jun 7, 2020 at 3:13 AM chen huacai wrote: > > On Sat, Jun 6, 2020 at 4:01 AM Aleksandar Markovic > wrote: > > > > суб, 6. јун 2020. у 09:32 Aleksandar Markovic > > је написао/ла: > > > > > > уто, 2. јун 2020. у 04:40 Huacai Chen је > > > написао/ла: > > > > > > > > Add Loongson-3

Re: [PATCH for-5.1 V4 3/4] hw/mips: Add Loongson-3 machine support (with KVM)

2020-06-06 Thread chen huacai
On Sat, Jun 6, 2020 at 4:01 AM Aleksandar Markovic wrote: > > суб, 6. јун 2020. у 09:32 Aleksandar Markovic > је написао/ла: > > > > уто, 2. јун 2020. у 04:40 Huacai Chen је написао/ла: > > > > > > Add Loongson-3 based machine support, it use i8259 as the interrupt > > > controler and use GPEX

Re: [PATCH for-5.1 V4 3/4] hw/mips: Add Loongson-3 machine support (with KVM)

2020-06-06 Thread Aleksandar Markovic
суб, 6. јун 2020. у 09:32 Aleksandar Markovic је написао/ла: > > уто, 2. јун 2020. у 04:40 Huacai Chen је написао/ла: > > > > Add Loongson-3 based machine support, it use i8259 as the interrupt > > controler and use GPEX as the pci controller. Currently it can only > > work with KVM, but we will

Re: [PATCH for-5.1 V4 3/4] hw/mips: Add Loongson-3 machine support (with KVM)

2020-06-06 Thread Aleksandar Markovic
уто, 2. јун 2020. у 04:40 Huacai Chen је написао/ла: > > Add Loongson-3 based machine support, it use i8259 as the interrupt > controler and use GPEX as the pci controller. Currently it can only > work with KVM, but we will add TCG support in future. > > We already have a full functional Linux

[PATCH for-5.1 V4 3/4] hw/mips: Add Loongson-3 machine support (with KVM)

2020-06-01 Thread Huacai Chen
Add Loongson-3 based machine support, it use i8259 as the interrupt controler and use GPEX as the pci controller. Currently it can only work with KVM, but we will add TCG support in future. We already have a full functional Linux kernel (based on Linux-5.4.x LTS but not upstream yet) here: