From: Stefan Wahren <stefan.wahren@i2se.com>
To: nicolas saenz julienne <nsaenz@kernel.org>,
Mwesigwa Guma <mguma@redhat.com>,
linux-kernel@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Ojaswin Mujoo <ojaswin98@gmail.com>,
Dan Carpenter <dan.carpenter@oracle.com>,
Amarjargal Gundjalam <amarjargal16@gmail.com>,
Phil Elwell <phil@raspberrypi.com>,
bcm-kernel-feedback-list@broadcom.com,
linux-rpi-kernel@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
linux-staging@lists.linux.dev, fedora-rpi@googlegroups.com,
Joel Savitz <jsavitz@redhat.com>,
Chukpozohn Toe <ctoe@redhat.com>,
Clark Williams <clark@redhat.com>
Subject: Re: [PATCH] staging: vchiq_arm: Add 36-bit address support
Date: Sun, 17 Oct 2021 15:31:10 +0200 [thread overview]
Message-ID: <2f80f7fe-afba-df68-23fd-d19d15a84202@i2se.com> (raw)
In-Reply-To: <747ce6bf4b3511fd13408a52a301f63e37210883.camel@kernel.org>
Hi Mwesigwa,
additional to Nicolas' comments.
Am 15.10.21 um 10:19 schrieb nicolas saenz julienne:
> Hi Mwesigwa,
>
> On Thu, 2021-10-14 at 18:32 -0400, Mwesigwa Guma wrote:
>> Cc: Nicolas Saenz Julienne <nsaenz@kernel.org>
>> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>> Cc: Stefan Wahren <stefan.wahren@i2se.com>
>> Cc: Ojaswin Mujoo <ojaswin98@gmail.com>
>> Cc: Dan Carpenter <dan.carpenter@oracle.com>
>> Cc: Amarjargal Gundjalam <amarjargal16@gmail.com>
>> Cc: Phil Elwell <phil@raspberrypi.com>
>> Cc: bcm-kernel-feedback-list@broadcom.com
>> Cc: linux-rpi-kernel@lists.infradead.org
>> Cc: linux-arm-kernel@lists.infradead.org
>> Cc: linux-staging@lists.linux.dev
>> Cc: fedora-rpi@googlegroups.com
>> Cc: Joel Savitz <jsavitz@redhat.com>
>> Cc: Chukpozohn Toe <ctoe@redhat.com>
>> Cc: Clark Williams <clark@redhat.com>
>>
>> This is a forward port of Phil Elwell's commit from the Raspberry Pi
>> Linux fork described as follows [1]:
>>
>> Conditional on a new compatible string, change the pagelist encoding
>> such that the top 24 bits are the pfn, leaving 8 bits for run length
>> (-1), giving a 36-bit address range.
>>
>> Manage the split between addresses for the VPU and addresses for the
>> 40-bit DMA controller with a dedicated DMA device pointer that on non-
>> BCM2711 platforms is the same as the main VCHIQ device. This allows
>> the VCHIQ node to stay in the usual place in the DT.
From my understanding this also requires changes to the DMA driver (40
bit support) and the BCM2711 dts files, which are also not upstream yet
(the DMA changes not the files itself).
>>
>> This commit enables VCHIQ device access on a Raspberry Pi 4B running the
>> mainline Linux kernel.
>>
>> Tested on Fedora Linux running on a Raspberry Pi 4B.
>>
>> [1]: https://github.com/raspberrypi/linux/commit/97268fd23eb8d08dc74eac5e3fd697303de26610
>>
>> Signed-off-by: Mwesigwa Guma <mguma@redhat.com>
> I see a lot happening on this patch. You're:
>
> - Registering a number of child devices that don't seem to exist upstream
> ('vcsm-cma', 'bcm2835-codec', and 'bcm2825-isp').
> - Updating vchiq_register_child().
> - Adding brcm,bcm2711-vchiq's compatible string (no dt bindings? see
> Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-vchiq.txt).
In order to get this part accepted, i send a series to convert the
dt-binding to YAML format.
> - Looking for 'brcm,bcm2711-dma' in the devicetree.
> - Using 'brcm,bcm2711-dma's' device node to re-generate the page lists.
>
> Each one of these should at least be a separate patch, which proper
> justification[1]. You can't just take downstream fixes, rebase them and send
> them upstream. You really have to own them, undestand what's happening and
> repurpose everything so it's up to standard even if it means diverging from
> what downstream is doing.
AFAIU it's preferred to get this driver out of staging (take a look at
the TODO file) before implementing new features.
Best regards
>
> Regards,
> Nicolas
>
> [1] Have a look at Documentation/process/submitting-patches.rst.
>
prev parent reply other threads:[~2021-10-17 13:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-14 22:32 [PATCH] staging: vchiq_arm: Add 36-bit address support Mwesigwa Guma
2021-10-15 7:30 ` Dan Carpenter
2021-10-15 8:19 ` nicolas saenz julienne
2021-10-17 13:31 ` Stefan Wahren [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2f80f7fe-afba-df68-23fd-d19d15a84202@i2se.com \
--to=stefan.wahren@i2se.com \
--cc=amarjargal16@gmail.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=clark@redhat.com \
--cc=ctoe@redhat.com \
--cc=dan.carpenter@oracle.com \
--cc=fedora-rpi@googlegroups.com \
--cc=gregkh@linuxfoundation.org \
--cc=jsavitz@redhat.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=linux-staging@lists.linux.dev \
--cc=mguma@redhat.com \
--cc=nsaenz@kernel.org \
--cc=ojaswin98@gmail.com \
--cc=phil@raspberrypi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox