Received: by 2002:a19:c345:0:0:0:0:0 with SMTP id t66csp19399292lff; Thu, 2 Jan 2020 13:11:38 -0800 (PST) X-Google-Smtp-Source: APXvYqwTrkp0b77+sWIjCxWD9tXZTwho+6skpebNLUhR9HCnbUgPDoxNDLGMZ3z54xuhVbUHsuMh X-Received: by 2002:a05:6830:4d9:: with SMTP id s25mr94332570otd.171.1577999497982; Thu, 02 Jan 2020 13:11:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577999497; cv=none; d=google.com; s=arc-20160816; b=k20i5DS/ejHEBUpirCo3hnSivVCiKqRVz7WTehuz44Xkr8i7yjWIuERNesMFzWek/H ujvSkYNy26MOx94PwrJ8cj75oau6mnT0YYmCQTMOjxI3c1QQNbV5LDXqvHkuAMtzbw6u 0ie/uGVwVVNww5xJv7b9l+3jSB/3UGaCJxtdciUa8KP8uuY4eIda4ZQs4709JQuhmrs+ FfmgkHSM3Hp91zMBo3YAPxF3q9bu6oeT8SxPA2AuD6bX1FMO02Zv04y5nIuM8qbb261l AvXgDr6rILgnncS25gDFLzYYY3sj9fJNFRwyZf+yKBBpnCpnN/bFiOwthhr3EGRj2L3D nEdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=S/0Dz23NZsNkH9ZtXW9XOGgGAJBFtD2/MzWmDDvHfz4=; b=z/Ze1Y5XOAOAgg6S6E+Yz+lC5EXVqRYv+ba0a+ux8qdxNKxWjFonqOWEm3HdWYC/F1 Q6174VekP7wfL16HXdUFSq8wJ07sHT4h/e5vG3z6SLxgOcQj5RFtrU7l3Igy/sy5M8pK zutGKac7xrZPe+YI3WzjMBRowZTjZ5yMrVFPT3T+MlXxVJZAijnCsyNnwRgQoX8Q0LlZ 5bWzJtuYMxP6rJeCQRLUVEuEjN6d/NcJ1IT7U3akZlSD89Fbens3CjGEagKnb0thjnRI My1GExFlYsTbLxHKZAzUzLFcWYkqMhO0uHAlbtFXI224ZKvF4nFzq/8+MrvI+UUkh0EH iA2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=WHYhwG+X; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id c126si27708249oib.239.2020.01.02.13.11.37 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Jan 2020 13:11:37 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-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; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=WHYhwG+X; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1]:45705 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1in7kn-0001G1-3s for alex.bennee@linaro.org; Thu, 02 Jan 2020 16:11:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49657) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1in7kb-0001CG-LL for qemu-arm@nongnu.org; Thu, 02 Jan 2020 16:11:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1in7kU-0004jB-LQ for qemu-arm@nongnu.org; Thu, 02 Jan 2020 16:11:20 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:27069 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1in7kT-0004fW-4e for qemu-arm@nongnu.org; Thu, 02 Jan 2020 16:11:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1577999475; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=S/0Dz23NZsNkH9ZtXW9XOGgGAJBFtD2/MzWmDDvHfz4=; b=WHYhwG+XEYk9Me64sm1hnvpPY4NNaN/jHeXJG/UPM8mP7Jf+UMS1S6mzh4rEUmeUe+EVG4 2v5p2Nrzhc79B8AGcbT5VMk3JUuiuzpLxloXjG4Qgu33/Gopr/X+SntAflPEGdUzASt1Zr g3UbOLSX/k0HDT8MbZ6ELf03mxB65RQ= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-185-ADGTd8c4N3SSX9O_8SQTdw-1; Thu, 02 Jan 2020 16:11:12 -0500 Received: by mail-wr1-f71.google.com with SMTP id w6so20927359wrm.16 for ; Thu, 02 Jan 2020 13:11:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=jSa6P/zZIAKVc64uPwDWbr46HoPv12sfM0C3MANRI8U=; b=TOggoyHv94o6+lWhJNUNHcCUuTpwCE6KDuVPjvz379Cvd4yDi8eKTlPc5pybmM2Fkv jOB/S6Kg918Dm504eyzQugZpKwYlqmy7DbBbbt74UDaCHXxdMCXRiBVuY9xvQ4XI8/3j BuRFEikEojPWI7EX3QhXWlI2BSbvCk8SD2AEXi2xM5bgRXx7OHSDeKWs//nN6I6B5oGo af8+O/P25vBQhmnPCM+Wb4KJ5OzBfi4mR63zPloTIRd2IMxzZoqg7pQyhTC7+QNQ+C/X praMgUDO/If9+q9w0L0uEjW2FXzmTKkN640JooB9WfpfDkxFXjIlfKcmaKiVJ/k+dzl/ rwsw== X-Gm-Message-State: APjAAAURRrB+5FrTyV9F/TTw+dln17Dw6rx5ExKYJny8uEmBApC7Xidd pscvf+ZOSs6smOhE66Z/oepig1Ebjr8hhpWu9YZ8SKvvJ8O6OR8t6S8crSU8coVSvxcN0HESFdp RK3cOTX0J7S9e X-Received: by 2002:adf:a746:: with SMTP id e6mr87815156wrd.329.1577999471580; Thu, 02 Jan 2020 13:11:11 -0800 (PST) X-Received: by 2002:adf:a746:: with SMTP id e6mr87815138wrd.329.1577999471269; Thu, 02 Jan 2020 13:11:11 -0800 (PST) Received: from [192.168.1.35] (34.red-83-42-66.dynamicip.rima-tde.net. [83.42.66.34]) by smtp.gmail.com with ESMTPSA id z83sm9761562wmg.2.2020.01.02.13.11.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Jan 2020 13:11:10 -0800 (PST) Subject: Re: [PATCH v2 00/10] Add Allwinner H3 SoC and Orange Pi PC Machine To: Niek Linnenbank References: <20191216233519.29030-1-nieklinnenbank@gmail.com> <9756419b-55bf-23a9-556a-d5bc5fb29331@redhat.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: Date: Thu, 2 Jan 2020 22:11:09 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-MC-Unique: ADGTd8c4N3SSX9O_8SQTdw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.120 X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , qemu-arm , QEMU Developers Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: ZE6UuiNbjPMV Hi Niek, On 1/2/20 8:52 PM, Niek Linnenbank wrote: > Hi Philippe, >=20 > I'm almost ready to send out v3 here. >=20 > Now for documentation I'm not sure yet what to do: >=20 > 1) Where should I place board documentation? > =C2=A0=C2=A0=C2=A0 For example, the information that I wrote on the cove= r letter with=20 > instructions on how to get the board up and running, > =C2=A0=C2=A0=C2=A0 some description of the design, where to find more in= forformation,=20 > datasheet sources, etc. I don't yet see any documentation We usually refer the datasheet in the implementation header, see: $ git grep -F .pdf hw/ | wc -l 62 You can cite the datasheet globally in hw/arm/allwinner-h3.c, and then=20 the particular chapters or source files in the other hw/*/allwinner-* files= . > =C2=A0=C2=A0 for the other boards in the source. In my opinion, it is im= portant=20 > to keep that information somewhere, such that also in the future > =C2=A0=C2=A0 the boards can still be properly maintained. Can I / shall = I place a=20 > new file like ./docs/hw/arm/orangepi.txt for that? See docs/microvm.rst which is a recent example of machine documentation, the obvious name is docs/orangepi.rst. Maybe refer to this file in hw/arm/orangepi.c header for completeness. > =C2=A02) Is is allowed / encouraged to provide Doxygen-style comments in= the=20 > header files in include/hw/*? > =C2=A0=C2=A0 I see that some of the API's have that, but the boards and = devices=20 > mostly are free of Doxygen-style comments. > =C2=A0=C2=A0 It takes some work, but I think it can really help to give = more=20 > insight / background info on how things are working > =C2=A0=C2=A0 for the devices and boards. But if it's not preferred for Q= EMU, I'm=20 > fine with that as well. Documentation is certainly welcome! There are 2 different schools over the codebase, one that document the=20 declarations, and another that documents the implementation/definition. I personally prefer to document the headers, which is where I look when=20 I want to consume an API. The implementation school says this can lead to documentation getting=20 outdated. So if you are willing to document, I'd suggest to document your=20 include/hw/ files. Happy new year! Phil. > On Mon, Dec 30, 2019 at 9:10 PM Niek Linnenbank=20 > > wrote: >=20 >=20 >=20 > On Mon, Dec 30, 2019 at 3:56 PM Philippe Mathieu-Daud=C3=A9 > > wrote: >=20 > On 12/30/19 12:28 PM, Niek Linnenbank wrote: > > Hi, > > > > Here a short status report of this patch series. >=20 > Good idea! >=20 > > > > For V3 update I already prepared the following: > >=C2=A0 =C2=A0- reworked all review comments from Philippe, exce= pt: > >=C2=A0 =C2=A0=C2=A0 - patch#8: question for the SID, whether co= mmand-line > override is > > required (and how is the best way for machine-specific cli > arg?) [1] >=20 > Answered recently. >=20 > Thanks! >=20 >=20 > > - added BootROM support, allows booting with only specifying > -sd > > - added SDRAM controller driver, for U-Boot SPL > > - added Allwinner generic RTC driver (for both Cubieboard and > OrangePi > > PC, supports sun4i, sun6i, sun7i) > > - small fixes for EMAC > > > > My current TODO: > >=C2=A0 =C2=A0- integrate Philips acceptance tests in the series >=20 > You can queue them in your series, adding your Signed-off-by tag > after > mine. See: > https://www.kernel.org/doc/html/latest/process/submitting-patches= .html#sign-your-work-the-developer-s-certificate-of-origin >=20 > =C2=A0 =C2=A0The sign-off is a simple line at the end of the exp= lanation > for the > patch, which certifies that you wrote it or otherwise have the > right to > pass it on as an open-source patch. >=20 > See point (c). >=20 > Ah that certainly helps. I'll read that page. >=20 > >=C2=A0 =C2=A0- integrate Philips work for generalizing the Allw= inner > timer, and > > finish it >=20 > We can also do that later, and get your work merged first. >=20 >=20 > Ok that sounds very good! Agreed, lets do the timer work later. >=20 >=20 > >=C2=A0 =C2=A0- test and fix BSD targets (NetBSD, FreeBSD) [2, 3= ] > >=C2=A0 =C2=A0- further generalize the series to cover very simi= lar SoCs: > H2+, H5 > > > > Does anyone have more comments/requests for the V3 update? > > > > [1] > https://lists.gnu.org/archive/html/qemu-devel/2019-12/msg04049.ht= ml > > [2] https://wiki.netbsd.org/ports/evbarm/allwinner/ > > [3] > > > https://wiki.freebsd.org/action/show/arm/Allwinner?action=3Dshow&= redirect=3DFreeBSD%2Farm%2FAllwinner >=20 >=20 >=20 > --=20 > Niek Linnenbank >=20 >=20 >=20 > --=20 > Niek Linnenbank >=20