All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Arseniy Krasnov <avkrasnov@salutedevices.com>
Cc: Richard Weinberger <richard@nod.at>,
	Vignesh Raghavendra <vigneshr@ti.com>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Kevin Hilman <khilman@baylibre.com>,
	Jerome Brunet <jbrunet@baylibre.com>,
	Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
	<linux-mtd@lists.infradead.org>, <devicetree@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-amlogic@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>, <oxffffaa@gmail.com>,
	<kernel@sberdevices.ru>
Subject: Re: [PATCH v5 1/2] dt-bindings: mtd: amlogic,meson-nand: support fields for boot ROM code
Date: Tue, 7 May 2024 09:27:26 +0200	[thread overview]
Message-ID: <20240507092726.4ab1afdb@xps-13> (raw)
In-Reply-To: <d90f9d3d-7823-503f-4cc6-73783a083d0e@salutedevices.com>

Hi Arseniy,

avkrasnov@salutedevices.com wrote on Tue, 7 May 2024 09:53:06 +0300:

> On 06.05.2024 16:48, Miquel Raynal wrote:
> > Hi Arseniy,
> > 
> > avkrasnov@salutedevices.com wrote on Tue, 16 Apr 2024 11:51:00 +0300:
> >   
> >> Boot ROM code on Meson requires that some pages on NAND must be written
> >> in special mode: "short" ECC mode where each block is 384 bytes and
> >> scrambling mode is on.  
> > 
> > Ok
> >   
> >> Such pages located with the specified interval within specified offset.  
> > 
> > I'm sorry I don't get that sentence.  
> 
> Sorry, I mean this (let me draw :) ) :
> 
> [ page 0 ][ page 1 ][ page 2 ][ page 3 ][ page 4 ][ page 5 ][ page 6 ][ page 7 ][ page 8 ][ page 9 ]
> 
> For example, we have 10 pages starting from the beginning of the chip - this is "within specified offset",
> e.g. offset is 10. BootROM on axg needs that (for example) every third page must be written in "special"
> mode: scrambling is on and ECC is 384 bytes. Such pages are 0, 2, 4, 6, 8. E.g. "specified interval" will
> be 3.

Shall be 2, no?

> 
> So:
> 
> amlogic,boot-pages: 10
> amlogic,boot-page-step: 3

Ok I get it. Thanks for the explanation. I don't really understand the
logic behind it though. Do you know why the bootROM would access only
one page over 2 or 3? Is there a default value? Is this configurable?

Thanks,
Miquèl

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

WARNING: multiple messages have this Message-ID (diff)
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Arseniy Krasnov <avkrasnov@salutedevices.com>
Cc: Richard Weinberger <richard@nod.at>,
	Vignesh Raghavendra <vigneshr@ti.com>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Kevin Hilman <khilman@baylibre.com>,
	Jerome Brunet <jbrunet@baylibre.com>,
	Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
	<linux-mtd@lists.infradead.org>, <devicetree@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-amlogic@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>, <oxffffaa@gmail.com>,
	<kernel@sberdevices.ru>
Subject: Re: [PATCH v5 1/2] dt-bindings: mtd: amlogic,meson-nand: support fields for boot ROM code
Date: Tue, 7 May 2024 09:27:26 +0200	[thread overview]
Message-ID: <20240507092726.4ab1afdb@xps-13> (raw)
In-Reply-To: <d90f9d3d-7823-503f-4cc6-73783a083d0e@salutedevices.com>

Hi Arseniy,

avkrasnov@salutedevices.com wrote on Tue, 7 May 2024 09:53:06 +0300:

> On 06.05.2024 16:48, Miquel Raynal wrote:
> > Hi Arseniy,
> > 
> > avkrasnov@salutedevices.com wrote on Tue, 16 Apr 2024 11:51:00 +0300:
> >   
> >> Boot ROM code on Meson requires that some pages on NAND must be written
> >> in special mode: "short" ECC mode where each block is 384 bytes and
> >> scrambling mode is on.  
> > 
> > Ok
> >   
> >> Such pages located with the specified interval within specified offset.  
> > 
> > I'm sorry I don't get that sentence.  
> 
> Sorry, I mean this (let me draw :) ) :
> 
> [ page 0 ][ page 1 ][ page 2 ][ page 3 ][ page 4 ][ page 5 ][ page 6 ][ page 7 ][ page 8 ][ page 9 ]
> 
> For example, we have 10 pages starting from the beginning of the chip - this is "within specified offset",
> e.g. offset is 10. BootROM on axg needs that (for example) every third page must be written in "special"
> mode: scrambling is on and ECC is 384 bytes. Such pages are 0, 2, 4, 6, 8. E.g. "specified interval" will
> be 3.

Shall be 2, no?

> 
> So:
> 
> amlogic,boot-pages: 10
> amlogic,boot-page-step: 3

Ok I get it. Thanks for the explanation. I don't really understand the
logic behind it though. Do you know why the bootROM would access only
one page over 2 or 3? Is there a default value? Is this configurable?

Thanks,
Miquèl

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

WARNING: multiple messages have this Message-ID (diff)
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Arseniy Krasnov <avkrasnov@salutedevices.com>
Cc: Richard Weinberger <richard@nod.at>,
	Vignesh Raghavendra <vigneshr@ti.com>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Kevin Hilman <khilman@baylibre.com>,
	Jerome Brunet <jbrunet@baylibre.com>,
	Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
	<linux-mtd@lists.infradead.org>, <devicetree@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-amlogic@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>, <oxffffaa@gmail.com>,
	<kernel@sberdevices.ru>
Subject: Re: [PATCH v5 1/2] dt-bindings: mtd: amlogic,meson-nand: support fields for boot ROM code
Date: Tue, 7 May 2024 09:27:26 +0200	[thread overview]
Message-ID: <20240507092726.4ab1afdb@xps-13> (raw)
In-Reply-To: <d90f9d3d-7823-503f-4cc6-73783a083d0e@salutedevices.com>

Hi Arseniy,

avkrasnov@salutedevices.com wrote on Tue, 7 May 2024 09:53:06 +0300:

> On 06.05.2024 16:48, Miquel Raynal wrote:
> > Hi Arseniy,
> > 
> > avkrasnov@salutedevices.com wrote on Tue, 16 Apr 2024 11:51:00 +0300:
> >   
> >> Boot ROM code on Meson requires that some pages on NAND must be written
> >> in special mode: "short" ECC mode where each block is 384 bytes and
> >> scrambling mode is on.  
> > 
> > Ok
> >   
> >> Such pages located with the specified interval within specified offset.  
> > 
> > I'm sorry I don't get that sentence.  
> 
> Sorry, I mean this (let me draw :) ) :
> 
> [ page 0 ][ page 1 ][ page 2 ][ page 3 ][ page 4 ][ page 5 ][ page 6 ][ page 7 ][ page 8 ][ page 9 ]
> 
> For example, we have 10 pages starting from the beginning of the chip - this is "within specified offset",
> e.g. offset is 10. BootROM on axg needs that (for example) every third page must be written in "special"
> mode: scrambling is on and ECC is 384 bytes. Such pages are 0, 2, 4, 6, 8. E.g. "specified interval" will
> be 3.

Shall be 2, no?

> 
> So:
> 
> amlogic,boot-pages: 10
> amlogic,boot-page-step: 3

Ok I get it. Thanks for the explanation. I don't really understand the
logic behind it though. Do you know why the bootROM would access only
one page over 2 or 3? Is there a default value? Is this configurable?

Thanks,
Miquèl

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

WARNING: multiple messages have this Message-ID (diff)
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Arseniy Krasnov <avkrasnov@salutedevices.com>
Cc: Richard Weinberger <richard@nod.at>,
	Vignesh Raghavendra <vigneshr@ti.com>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Kevin Hilman <khilman@baylibre.com>,
	Jerome Brunet <jbrunet@baylibre.com>,
	Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
	<linux-mtd@lists.infradead.org>, <devicetree@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-amlogic@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>, <oxffffaa@gmail.com>,
	<kernel@sberdevices.ru>
Subject: Re: [PATCH v5 1/2] dt-bindings: mtd: amlogic,meson-nand: support fields for boot ROM code
Date: Tue, 7 May 2024 09:27:26 +0200	[thread overview]
Message-ID: <20240507092726.4ab1afdb@xps-13> (raw)
In-Reply-To: <d90f9d3d-7823-503f-4cc6-73783a083d0e@salutedevices.com>

Hi Arseniy,

avkrasnov@salutedevices.com wrote on Tue, 7 May 2024 09:53:06 +0300:

> On 06.05.2024 16:48, Miquel Raynal wrote:
> > Hi Arseniy,
> > 
> > avkrasnov@salutedevices.com wrote on Tue, 16 Apr 2024 11:51:00 +0300:
> >   
> >> Boot ROM code on Meson requires that some pages on NAND must be written
> >> in special mode: "short" ECC mode where each block is 384 bytes and
> >> scrambling mode is on.  
> > 
> > Ok
> >   
> >> Such pages located with the specified interval within specified offset.  
> > 
> > I'm sorry I don't get that sentence.  
> 
> Sorry, I mean this (let me draw :) ) :
> 
> [ page 0 ][ page 1 ][ page 2 ][ page 3 ][ page 4 ][ page 5 ][ page 6 ][ page 7 ][ page 8 ][ page 9 ]
> 
> For example, we have 10 pages starting from the beginning of the chip - this is "within specified offset",
> e.g. offset is 10. BootROM on axg needs that (for example) every third page must be written in "special"
> mode: scrambling is on and ECC is 384 bytes. Such pages are 0, 2, 4, 6, 8. E.g. "specified interval" will
> be 3.

Shall be 2, no?

> 
> So:
> 
> amlogic,boot-pages: 10
> amlogic,boot-page-step: 3

Ok I get it. Thanks for the explanation. I don't really understand the
logic behind it though. Do you know why the bootROM would access only
one page over 2 or 3? Is there a default value? Is this configurable?

Thanks,
Miquèl

  reply	other threads:[~2024-05-07  7:27 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-16  8:50 [PATCH v5 0/2] Meson: R/W support for pages used by boot ROM Arseniy Krasnov
2024-04-16  8:50 ` Arseniy Krasnov
2024-04-16  8:50 ` Arseniy Krasnov
2024-04-16  8:50 ` Arseniy Krasnov
2024-04-16  8:51 ` [PATCH v5 1/2] dt-bindings: mtd: amlogic,meson-nand: support fields for boot ROM code Arseniy Krasnov
2024-04-16  8:51   ` Arseniy Krasnov
2024-04-16  8:51   ` Arseniy Krasnov
2024-04-16  8:51   ` Arseniy Krasnov
2024-04-17 18:12   ` Rob Herring
2024-04-17 18:12     ` Rob Herring
2024-04-17 18:12     ` Rob Herring
2024-04-17 18:12     ` Rob Herring
2024-05-06 13:48   ` Miquel Raynal
2024-05-06 13:48     ` Miquel Raynal
2024-05-06 13:48     ` Miquel Raynal
2024-05-06 13:48     ` Miquel Raynal
2024-05-07  6:53     ` Arseniy Krasnov
2024-05-07  6:53       ` Arseniy Krasnov
2024-05-07  6:53       ` Arseniy Krasnov
2024-05-07  6:53       ` Arseniy Krasnov
2024-05-07  7:27       ` Miquel Raynal [this message]
2024-05-07  7:27         ` Miquel Raynal
2024-05-07  7:27         ` Miquel Raynal
2024-05-07  7:27         ` Miquel Raynal
2024-05-07  7:35         ` Arseniy Krasnov
2024-05-07  7:35           ` Arseniy Krasnov
2024-05-07  7:35           ` Arseniy Krasnov
2024-05-07  7:35           ` Arseniy Krasnov
2024-05-07  8:05           ` Miquel Raynal
2024-05-07  8:05             ` Miquel Raynal
2024-05-07  8:05             ` Miquel Raynal
2024-05-07  8:05             ` Miquel Raynal
2024-05-07  8:11             ` Arseniy Krasnov
2024-05-07  8:11               ` Arseniy Krasnov
2024-05-07  8:11               ` Arseniy Krasnov
2024-05-07  8:11               ` Arseniy Krasnov
2024-04-16  8:51 ` [PATCH v5 2/2] mtd: rawnand: meson: support R/W mode for boot ROM Arseniy Krasnov
2024-04-16  8:51   ` Arseniy Krasnov
2024-04-16  8:51   ` Arseniy Krasnov
2024-04-16  8:51   ` Arseniy Krasnov
2024-05-02  5:09   ` Arseniy Krasnov
2024-05-02  5:09     ` Arseniy Krasnov
2024-05-02  5:09     ` Arseniy Krasnov
2024-05-02  5:09     ` Arseniy Krasnov
2024-05-06  8:47     ` Miquel Raynal
2024-05-06  8:47       ` Miquel Raynal
2024-05-06  8:47       ` Miquel Raynal
2024-05-06  8:47       ` Miquel Raynal
2024-05-06  8:37       ` Arseniy Krasnov
2024-05-06  8:37         ` Arseniy Krasnov
2024-05-06  8:37         ` Arseniy Krasnov
2024-05-06  8:37         ` Arseniy Krasnov
2024-05-06 13:53   ` Miquel Raynal
2024-05-06 13:53     ` Miquel Raynal
2024-05-06 13:53     ` Miquel Raynal
2024-05-06 13:53     ` Miquel Raynal

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=20240507092726.4ab1afdb@xps-13 \
    --to=miquel.raynal@bootlin.com \
    --cc=avkrasnov@salutedevices.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jbrunet@baylibre.com \
    --cc=kernel@sberdevices.ru \
    --cc=khilman@baylibre.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=martin.blumenstingl@googlemail.com \
    --cc=neil.armstrong@linaro.org \
    --cc=oxffffaa@gmail.com \
    --cc=richard@nod.at \
    --cc=robh+dt@kernel.org \
    --cc=vigneshr@ti.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 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.