Received: by 2002:a17:906:d7a2:b0:96f:a786:ac5c with SMTP id pk2csp1112948ejb; Mon, 22 May 2023 03:43:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4yf3AKfiPiX3D3RoQcvPbGeW+yyBHAHuKBGJH4a1Nytf3GWMpRc3WyV9K3+/73oGorKJ2W X-Received: by 2002:a05:622a:110:b0:3f3:9ace:84e1 with SMTP id u16-20020a05622a011000b003f39ace84e1mr17149049qtw.56.1684752213959; Mon, 22 May 2023 03:43:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684752213; cv=none; d=google.com; s=arc-20160816; b=kGMBgHwUMzlnpj0zcjaZyNeI4Wlb1XR9JDKDVNr3hn7rBV1i1K/yPnjCLLvVhidSQ2 vkaB9QuyWqu3fWCptSZhCXBOvR4mIHccTclstGHxDFg6fTpmeFusIXvBK7THWUeO0FDN 6nF3We6cp5EmJXexPObv3PvPtpbpI70OVjjrRvPsrfvI6B1GFTpWOGacCG5/IhNm4TD0 OFMLY/FWDJVEEqc4bf4o7URUJfghfp/e39QYl4xjDKwLzAcmqXfP9P2XSsLxV0rvlhsj 3KEY6dXguUqv6b7+ErPNOJubSx4AF4Zok69+A9NhG97Km5ykydaeXQcVgDNVfmpJLqxK adKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=eGVs/31+fhh6EAIlbJ8JEtET1sAmx4ZuuNPR5TPV4aA=; b=tL8MGoqDtQ+06R4UOxQ61TLirRZ/UASp7gW9QfVdF0zTEjv+RRPY9h1ao6SdkO7opi Yy4ubvgVraAwR9/6n5H2V9lDQPsxoerzMd8hnd0zq8w63zWIlU82qse2ScSdKGWcMSwm UP5nULUgpLrStgbBDdU9tTq0I1fPmWlolZYQ4TPvkr0W/quwpffXqnkPkm/gDlzmSF6l 4V/y1k1xyDT9zSPy7ZOJ1x9GjEEBiXKed+Lq7OHd/MgtsJG1KNNiiC3AjWF/W0nkpBBp jFk3j6/lFOut2mmFWHM62oxZEklc8ha12GYp6mQwl/LPr/G3JyFX1AKM9CI6G2edkNl1 D6zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f6-20020a056214076600b0061e0e80d6fesi3293137qvz.99.2023.05.22.03.43.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 May 2023 03:43:33 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q130C-00077W-2y; Mon, 22 May 2023 06:42:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1304-00077C-1y for qemu-devel@nongnu.org; Mon, 22 May 2023 06:42:48 -0400 Received: from hq-ms.auriga.com ([82.97.202.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1301-00013j-Nd for qemu-devel@nongnu.org; Mon, 22 May 2023 06:42:47 -0400 Received: from HQ-MS1.office.auriga.msk (82.97.202.32) by hq-ms1.office.auriga.msk (82.97.202.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Mon, 22 May 2023 13:42:37 +0300 Received: from HQ-MS1.office.auriga.msk ([fe80::e2f8:5f63:adc1:868f]) by hq-ms1.office.auriga.msk ([fe80::e2f8:5f63:adc1:868f%8]) with mapi id 15.02.1258.012; Mon, 22 May 2023 13:42:37 +0300 From: "Kambalin, Sergey" To: Peter Maydell , Sergey Kambalin CC: "qemu-arm@nongnu.org" , "qemu-devel@nongnu.org" Subject: Re: [PATCH] [rpi4b] Make bootable rpi4b model Thread-Topic: [PATCH] [rpi4b] Make bootable rpi4b model Thread-Index: AQHZjJhM5s2DGZMhDE6fRKCxSTEX869l5goAgAA0A2Q= Date: Mon, 22 May 2023 10:42:37 +0000 Message-ID: References: <20230522102910.20942-1-sergey.kambalin@auriga.com>, In-Reply-To: Accept-Language: ru-RU, en-US Content-Language: ru-RU X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [134.191.220.81] x-tm-as-product-ver: SMEX-14.0.0.1158-9.0.1002-27556.003 x-tm-as-result: No-10--16.961500-8.000000 x-tmase-matchedrid: SIzKuw2hzSuJVA+ukO+5MWg4D2QV/2zL6r3HCixfuKcc4ri4RJV/1W/R DAZTdSI3QnEYvg6//klFmXhQ6rgRVOyDy8V8lTWUzH6d90mb4+Ih6cl1707zKlZxVB3B2qbP6Xk ezPna397QLE3MitZAfl9/IWsrV5Ek1LFdtmiebE5itzfafzhYerzutTz14s8peZ45ULYLKJPJ5o PddzkTnfSueWhKONnh4w18wuoIm1+uInHn323YIii1gp0ZxaqKdcbbjnFUAzCmZcKNqpsH9HH8F G2651gIWMSUnqjISb6Va60MgWfekIMwY/QOsLdiuLt50vtxBA6HqfCKxjr5zVbHPS4sjm23Lwk+ W8EChjQbTYK6pfcVeMVWt+webelAVY78k/m9Ad3kGAR1SqoA1OuLFZZYlisf+/xUlPEAi6fAeVm 1nnWZdBec2mundr02bNAKdiAgu3gAk6tv1Eq/T6rexIBpLkTNUswjMNdf2hs= x-tm-as-user-approved-sender: No x-tm-as-user-blocked-sender: No x-tmase-result: 10--16.961500-8.000000 x-tmase-version: SMEX-14.0.0.1158-9.0.1002-27556.003 x-tm-snts-smtp: 24508262F0083CF2D392C2B7CB9725B5C5DC4AD4580FC8579F09DE5BBC1EE14F2000:8 Content-Type: multipart/alternative; boundary="_000_e5f053c126a24a62a4e1e8d309d939ceaurigacom_" MIME-Version: 1.0 Received-SPF: pass client-ip=82.97.202.32; envelope-from=sergey.kambalin@auriga.com; helo=hq-ms.auriga.com X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, HTML_MESSAGE=0.001, MIME_CHARSET_FARAWAY=2.45, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: LKrS0JQW/JRp --_000_e5f053c126a24a62a4e1e8d309d939ceaurigacom_ Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Hi! Unfortunately it can't be split without losing a functionality. It is a min= imal amount of code to make it able to boot the kernel (and therefore confi= rm that it works). ________________________________ =EF=D4: Peter Maydell =EF=D4=D0=D2=C1=D7=CC=C5=CE=CF: 22 =CD=C1=D1 2023 =C7. 13:32:52 =EB=CF=CD=D5: Sergey Kambalin =EB=CF=D0=C9=D1: qemu-arm@nongnu.org; qemu-devel@nongnu.org; Kambalin, Serg= ey =F4=C5=CD=C1: Re: [PATCH] [rpi4b] Make bootable rpi4b model On Mon, 22 May 2023 at 11:29, Sergey Kambalin wrote: > > Signed-off-by: Sergey Kambalin > --- > configs/devices/aarch64-softmmu/default.mak | 2 + > hw/arm/Kconfig | 7 + > hw/arm/bcm2835_peripherals.c | 223 ++++++----- > hw/arm/bcm2836.c | 129 ++++--- > hw/arm/bcm2838.c | 283 ++++++++++++++ > hw/arm/bcm2838_peripherals.c | 213 +++++++++++ > hw/arm/meson.build | 5 + > hw/arm/raspi.c | 129 ++++--- > hw/arm/raspi4b.c | 243 ++++++++++++ > hw/arm/trace-events | 2 + > hw/gpio/bcm2838_gpio.c | 395 ++++++++++++++++++++ > hw/gpio/meson.build | 1 + > hw/misc/bcm2835_powermgt.c | 37 ++ > hw/misc/bcm2835_property.c | 318 +++++++++++++--- > hw/misc/trace-events | 10 + > include/hw/arm/bcm2835_peripherals.h | 29 +- > include/hw/arm/bcm2836.h | 30 +- > include/hw/arm/bcm2838.h | 26 ++ > include/hw/arm/bcm2838_peripherals.h | 50 +++ > include/hw/arm/raspi4b_platform.h | 58 +++ > include/hw/arm/raspi_platform.h | 34 ++ > include/hw/display/bcm2835_fb.h | 2 + > include/hw/gpio/bcm2838_gpio.h | 45 +++ > include/hw/misc/bcm2835_powermgt.h | 2 +- > include/hw/misc/raspberrypi-fw-defs.h | 169 +++++++++ > tests/avocado/boot_linux_console.py | 37 ++ > 26 files changed, 2210 insertions(+), 269 deletions(-) Hi; this is far too large to be reviewable as a single patch. It must be split into more digestible chunks (each of which does a single reasonably coherent thing) before we can do anything with it. thanks -- PMM --_000_e5f053c126a24a62a4e1e8d309d939ceaurigacom_ Content-Type: text/html; charset="koi8-r" Content-Transfer-Encoding: quoted-printable

Hi!

Unfortunately it can't be split without losing a functionality. It is a = minimal amount of code to make it able to boot the kernel (and th= erefore confirm that it works).


=EF=D4: Peter Maydell <= ;peter.maydell@linaro.org>
=EF=D4=D0=D2=C1=D7=CC=C5=CE=CF: 22 =CD=C1=D1 2023 =C7. 13:32:52
=EB=CF=CD=D5: Sergey Kambalin
=EB=CF=D0=C9=D1: qemu-arm@nongnu.org; qemu-devel@nongnu.org; Kambali= n, Sergey
=F4=C5=CD=C1: Re: [PATCH] [rpi4b] Make bootable rpi4b model
 
On Mon, 22 May 2023 at 11:29, Sergey Kambalin <= serg.oker@gmail.com> wrote:
>
> Signed-off-by: Sergey Kambalin <sergey.kambalin@auriga.com>
> ---
>  configs/devices/aarch64-softmmu/default.mak |   2 += ;
>  hw/arm/Kconfig        &n= bsp;            = ;         |   7 +
>  hw/arm/bcm2835_peripherals.c      =           | 223 +++= ;+++-----
>  hw/arm/bcm2836.c        =             &nb= sp;       | 129 ++++---
>  hw/arm/bcm2838.c        =             &nb= sp;       | 283 ++++++= ;++++++++
>  hw/arm/bcm2838_peripherals.c      =           | 213 +++= ;++++++++
>  hw/arm/meson.build       &nbs= p;            &= nbsp;     |   5 +
>  hw/arm/raspi.c        &n= bsp;            = ;         | 129 ++++= ;---
>  hw/arm/raspi4b.c        =             &nb= sp;       | 243 ++++++= ;++++++
>  hw/arm/trace-events       &nb= sp;            =      |   2 +
>  hw/gpio/bcm2838_gpio.c       =             &nb= sp;  | 395 ++++++++++++= ;++++++++
>  hw/gpio/meson.build       &nb= sp;            =      |   1 +
>  hw/misc/bcm2835_powermgt.c      &n= bsp;           |  37= ++
>  hw/misc/bcm2835_property.c      &n= bsp;           | 318 += ;++++++++++++---
>  hw/misc/trace-events       &n= bsp;            = ;    |  10 +
>  include/hw/arm/bcm2835_peripherals.h    &nbs= p;   |  29 +-
>  include/hw/arm/bcm2836.h      &nbs= p;             = |  30 +-
>  include/hw/arm/bcm2838.h      &nbs= p;             = |  26 ++
>  include/hw/arm/bcm2838_peripherals.h    &nbs= p;   |  50 +++
>  include/hw/arm/raspi4b_platform.h     &= nbsp;     |  58 +++
>  include/hw/arm/raspi_platform.h     &nb= sp;       |  34 ++
>  include/hw/display/bcm2835_fb.h     &nb= sp;       |   2 +
>  include/hw/gpio/bcm2838_gpio.h     &nbs= p;        |  45 +++
>  include/hw/misc/bcm2835_powermgt.h     =      |   2 +-
>  include/hw/misc/raspberrypi-fw-defs.h    &nb= sp;  | 169 +++++++++
>  tests/avocado/boot_linux_console.py     = ;    |  37 ++
>  26 files changed, 2210 insertions(+), 269 deletions(-)

Hi; this is far too large to be reviewable as a single patch.
It must be split into more digestible chunks (each of which
does a single reasonably coherent thing) before we can
do anything with it.

thanks
-- PMM
--_000_e5f053c126a24a62a4e1e8d309d939ceaurigacom_--