All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH v2 2/3] hwrng: Add Cortina Systems CS7542 TRNG driver
@ 2026-12-02 12:48 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2026-12-02 12:48 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "low confidence static check warning: drivers/char/hw_random/cs75xx-trng.c:172:9: sparse: warning: Initializer entry defined twice"
:::::: Manual check reason: "linux-review patch is more than 7 days old, verify it wasn't already superseded"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20261124-b4-cs7542-trng-v2-2-0192937b44be@gmail.com>
References: <20261124-b4-cs7542-trng-v2-2-0192937b44be@gmail.com>
TO: Fil Dunsky via B4 Relay <devnull+filipp.dunsky.gmail.com@kernel.org>
TO: Olivia Mackall <olivia@selenic.com>
TO: Herbert Xu <herbert@gondor.apana.org.au>
TO: Rob Herring <robh@kernel.org>
TO: Krzysztof Kozlowski <krzk@kernel.org>
TO: Conor Dooley <conor+dt@kernel.org>
CC: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
CC: linux-crypto@vger.kernel.org
CC: devicetree@vger.kernel.org
CC: linux-arm-kernel@lists.infradead.org
CC: linux-kernel@vger.kernel.org

Hi Fil,

kernel test robot noticed the following build warnings:

[auto build test WARNING on b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f]

url:    https://github.com/intel-lab-lkp/linux/commits/Fil-Dunsky-via-B4-Relay/dt-bindings-rng-Add-Cortina-Systems-CS7542-TRNG/20261124-112019
base:   b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
patch link:    https://lore.kernel.org/r/20261124-b4-cs7542-trng-v2-2-0192937b44be%40gmail.com
patch subject: [PATCH v2 2/3] hwrng: Add Cortina Systems CS7542 TRNG driver
:::::: branch date: 8 days ago
:::::: commit date: 8 days ago
config: arc-randconfig-r2306-20261130 (https://download.01.org/0day-ci/archive/20261202/20261202134013.4kZYMPi8-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 9.5.0
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261202/20261202134013.4kZYMPi8-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/20261202134013.4kZYMPi8-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/char/hw_random/cs75xx-trng.c:172:9: sparse: warning: Initializer entry defined twice
   drivers/char/hw_random/cs75xx-trng.c:173:9: sparse:   also defined here

vim +172 drivers/char/hw_random/cs75xx-trng.c

afad09adc9498c Fil Dunsky 2026-11-24  170  
afad09adc9498c Fil Dunsky 2026-11-24  171  static const struct of_device_id cs75xx_trng_of_match[] = {
afad09adc9498c Fil Dunsky 2026-11-24 @172  	{ .compatible = "cortina,cs7542-trng" },
afad09adc9498c Fil Dunsky 2026-11-24  173  	{ }
afad09adc9498c Fil Dunsky 2026-11-24  174  };
afad09adc9498c Fil Dunsky 2026-11-24  175  MODULE_DEVICE_TABLE(of, cs75xx_trng_of_match);
afad09adc9498c Fil Dunsky 2026-11-24  176  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [PATCH v2 0/3] hwrng: Add Cortina Systems CS7542 random number generator
@ 2026-11-24  8:20 Fil Dunsky via B4 Relay
  2026-11-24  8:20   ` Fil Dunsky via B4 Relay
  0 siblings, 1 reply; 3+ messages in thread
From: Fil Dunsky via B4 Relay @ 2026-11-24  8:20 UTC (permalink / raw)
  To: Olivia Mackall, Herbert Xu, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: Uwe Kleine-König, linux-crypto, devicetree, linux-arm-kernel,
	linux-kernel

Add the Elliptic random number generator integrated in the CS7542,
based on the GPL vendor and OpenWrt implementations. Use a syscon
regmap for its shared global scratch bit and provide bounded polling,
nonblocking pending requests and partial output through the hwrng core.

Hardware ring reseeding is limited to the documented CS7542 A1 path.
The vendor driver avoids it on A0 for erratum 28891 and substitutes a
RTC/timer-derived nonce. Reject unsupported revisions using the global
syscon identification register instead of adopting that workaround.
The saved Almond+ capture identifies the tested board as CS7542 A1.

The binding, driver and MAINTAINERS entry apply to Linux v7.4-rc4
without the pending CS75xx platform or clock/pinctrl series.

The existing OpenWrt entropy quality setting of 512 is retained for
review. The output smoke tests do not establish an entropy estimate.

The v1 sources passed binding/example checks, ARM built-in and module
builds and RAM hardware smoke tests on Almond+. The hardware test
returned EAGAIN for the first nonblocking read, then provided 4096
bytes without all-zero or repeated-block output.

No additional hardware run is claimed for v2. The generating path on
A1 is unchanged; revision checks and their error paths were tested
with the actual C code and mocked resource/regmap/hwrng interfaces.
Full ARM W=1 built-in and module builds were repeated for v2.

---
Changes in v2:
- Drop the redundant linux/mod_devicetable.h include as suggested by
  Uwe Kleine-König. The existing linux/of.h provides the OF device ID.
- Restrict hardware reseeding to CS7542 A1 after inspecting the vendor
  erratum 28891 workaround. Propagate revision-read failures and reject
  unsupported silicon before registering the hwrng.
- Describe the hardware revision restriction and identification register
  in the binding.
- Link to v1: https://lore.kernel.org/all/20261123-b4-cs7542-trng-v1-0-92d9ffcee531@gmail.com/

To: Fil Dunsky <filipp.dunsky@gmail.com>
To: Olivia Mackall <olivia@selenic.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
Cc: linux-crypto@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org

---
Fil Dunsky (3):
      dt-bindings: rng: Add Cortina Systems CS7542 TRNG
      hwrng: Add Cortina Systems CS7542 TRNG driver
      MAINTAINERS: Add Cortina Systems CS7542 TRNG support

 .../bindings/rng/cortina,cs7542-trng.yaml          |  43 +++++
 MAINTAINERS                                        |   7 +
 drivers/char/hw_random/Kconfig                     |  11 ++
 drivers/char/hw_random/Makefile                    |   1 +
 drivers/char/hw_random/cs75xx-trng.c               | 187 +++++++++++++++++++++
 5 files changed, 249 insertions(+)
---
base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
change-id: 20261123-b4-cs7542-trng-1a1b9f1cd392

Best regards,
--  
Fil Dunsky <filipp.dunsky@gmail.com>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-02 12:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 12:48 [PATCH v2 2/3] hwrng: Add Cortina Systems CS7542 TRNG driver kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-11-24  8:20 [PATCH v2 0/3] hwrng: Add Cortina Systems CS7542 random number generator Fil Dunsky via B4 Relay
2026-11-24  8:20 ` [PATCH v2 2/3] hwrng: Add Cortina Systems CS7542 TRNG driver Fil Dunsky
2026-11-24  8:20   ` Fil Dunsky via B4 Relay

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.