All of lore.kernel.org
 help / color / mirror / Atom feed
From: "sebastian.fricke@collabora.com" <sebastian.fricke@collabora.com>
To: Nicolas Dufresne <nicolas@ndufresne.ca>
Cc: Nas Chung <nas.chung@chipsnmedia.com>,
	"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"jackson.lee" <jackson.lee@chipsnmedia.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Philipp Zabel <p.zabel@pengutronix.de>
Subject: Re: [PATCH v2 4/5] media: chips-media: wave5: drop "sram-size" DT prop
Date: Fri, 5 Apr 2024 10:56:04 +0200	[thread overview]
Message-ID: <20240405085604.lzsekrtrtudvdh6c@basti-XPS-13-9310> (raw)
In-Reply-To: <4f781313ddb2b7657fadc35dc04c0e3c3de3b27c.camel@ndufresne.ca>

Hey Nicolas,

On 04.04.2024 14:56, Nicolas Dufresne wrote:
>Hi,
>
>Le jeudi 04 avril 2024 à 10:02 +0200, sebastian.fricke@collabora.com a écrit :
>> > > > > > Wave5 can enable/disable the sec_axi_info option for each instance.
>> > > > > >
>> > > > > > How about handle sram-size through match_data ?
>> > > > > > I can find some drivers which use match_data to configure the sram
>> > > size.
>> >
>> > I proposed using match_data to allocate different sram size for each device.
>> > Do you think this is a reasonable approach ?
>>
>> As discussed here:
>> https://patchwork.linuxtv.org/project/linux-media/patch/20240201184238.2542695-1-b-brnich@ti.com/
>>
>> To quote Brandon Brnich from TI:
>>
>> If static SRAM allocation is the correct method to go, then this series
>> can be ignored and I will add section in device tree and remove check
>> for parameter in driver as that will now be a bug.
>>
>> I would like to adhere to that.
>
>I feel your statement is a bit ambiguous. Can you clarify what you adhere too ?
>That we should hardcode fixed sram size in the DT ?

Sorry wasn't aware that my statement is ambiguous, my intention was to
say that we do not add the sram size to the DT as it was discussed with
the DT maintainer in the thread above, my adherence was pointed towards
the statement from Brandon: "then this series can be ignored".

>
>When I read earlier today "How about handle sram-size through match_data ?",
>what I saw was a static C structure in the driver. Like what we do with HW
>variants usually.
>
>I was pretty convince that the right solution is to allocate sram when the
>driver is used (open() seems appropriate), and drop it when its not used. With
>the clear benefit that we can change our mind later if we find valid arguments.
>
>So with that in mind, dropping (cleaning up) that old code seems helpful to
>create a clean slate to re-introduce a better version.
>
>Nicolas

Greetings,
Sebastian

  reply	other threads:[~2024-04-05  8:56 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-25  6:40 [PATCH v2 0/5] Wave515 decoder IP support Ivan Bornyakov
2024-03-25  6:40 ` [PATCH v2 1/5] media: chips-media: wave5: support decoding HEVC Main10 profile Ivan Bornyakov
2024-03-25  6:40 ` [PATCH v2 2/5] media: chips-media: wave5: support reset lines Ivan Bornyakov
2024-04-05 13:23   ` Sebastian Fricke
2024-03-25  6:40 ` [PATCH v2 3/5] media: chips-media: wave5: separate irq setup routine Ivan Bornyakov
2024-04-05  9:29   ` Sebastian Fricke
2024-03-25  6:40 ` [PATCH v2 4/5] media: chips-media: wave5: drop "sram-size" DT prop Ivan Bornyakov
2024-03-27 10:27   ` Nas Chung
2024-03-27 11:18     ` Ivan Bornyakov
2024-03-27 12:26     ` Ivan Bornyakov
2024-03-28 10:16       ` Nas Chung
2024-03-28 11:36         ` Ivan Bornyakov
2024-04-01  9:28           ` Nas Chung
2024-04-04  8:02             ` sebastian.fricke
2024-04-04 18:56               ` Nicolas Dufresne
2024-04-05  8:56                 ` sebastian.fricke [this message]
2024-03-25  6:41 ` [PATCH v2 5/5] media: chips-media: wave5: support Wave515 decoder Ivan Bornyakov
2024-03-27 10:34   ` Nas Chung
2024-03-27 11:29     ` Ivan Bornyakov
2024-03-28 16:18   ` Sebastian Fricke
2024-04-01  9:15     ` Nas Chung

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=20240405085604.lzsekrtrtudvdh6c@basti-XPS-13-9310 \
    --to=sebastian.fricke@collabora.com \
    --cc=jackson.lee@chipsnmedia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=nas.chung@chipsnmedia.com \
    --cc=nicolas@ndufresne.ca \
    --cc=p.zabel@pengutronix.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.