linux-fpga.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] fpga: dfl: support d5005 secure updates
@ 2022-09-02 16:57 Russ Weight
  2022-09-02 16:57 ` [PATCH v1 1/2] mfd: intel-m10-bmc: add d5005 bmc secure update driver Russ Weight
  2022-09-02 16:57 ` [PATCH v1 2/2] fpga: m10bmc-sec: " Russ Weight
  0 siblings, 2 replies; 5+ messages in thread
From: Russ Weight @ 2022-09-02 16:57 UTC (permalink / raw)
  To: mdf, hao.wu, yilun.xu, trix, lee, linux-fpga, linux-kernel
  Cc: lgoncalv, marpagan, matthew.gerlach, basheer.ahmed.muddebihal,
	tianfei.zhang, Russ Weight

The MAX10 secure update driver currently supports only the N3000. With
these two patches secure updates are also supported for the D5005. A
different driver name is used for the D5005 vs the N3000 to facilitate
future conditional code that is based on device type.

Russ Weight (2):
  mfd: intel-m10-bmc: add d5005 bmc secure update driver
  fpga: m10bmc-sec: d5005 bmc secure update driver

 drivers/fpga/intel-m10-bmc-sec-update.c | 3 +++
 drivers/mfd/intel-m10-bmc.c             | 1 +
 2 files changed, 4 insertions(+)

-- 
2.25.1


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

* [PATCH v1 1/2] mfd: intel-m10-bmc: add d5005 bmc secure update driver
  2022-09-02 16:57 [PATCH v1 0/2] fpga: dfl: support d5005 secure updates Russ Weight
@ 2022-09-02 16:57 ` Russ Weight
  2022-09-08  9:32   ` Lee Jones
  2022-09-02 16:57 ` [PATCH v1 2/2] fpga: m10bmc-sec: " Russ Weight
  1 sibling, 1 reply; 5+ messages in thread
From: Russ Weight @ 2022-09-02 16:57 UTC (permalink / raw)
  To: mdf, hao.wu, yilun.xu, trix, lee, linux-fpga, linux-kernel
  Cc: lgoncalv, marpagan, matthew.gerlach, basheer.ahmed.muddebihal,
	tianfei.zhang, Russ Weight

Add the D5005 BMC secure update driver to the MAX10 BMC driver
for D5005 devices.

Signed-off-by: Russ Weight <russell.h.weight@intel.com>
---
 drivers/mfd/intel-m10-bmc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mfd/intel-m10-bmc.c b/drivers/mfd/intel-m10-bmc.c
index f4d0d72573c8..7e3319e5b22f 100644
--- a/drivers/mfd/intel-m10-bmc.c
+++ b/drivers/mfd/intel-m10-bmc.c
@@ -21,6 +21,7 @@ enum m10bmc_type {
 
 static struct mfd_cell m10bmc_d5005_subdevs[] = {
 	{ .name = "d5005bmc-hwmon" },
+	{ .name = "d5005bmc-sec-update" }
 };
 
 static struct mfd_cell m10bmc_pacn3000_subdevs[] = {
-- 
2.25.1


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

* [PATCH v1 2/2] fpga: m10bmc-sec: d5005 bmc secure update driver
  2022-09-02 16:57 [PATCH v1 0/2] fpga: dfl: support d5005 secure updates Russ Weight
  2022-09-02 16:57 ` [PATCH v1 1/2] mfd: intel-m10-bmc: add d5005 bmc secure update driver Russ Weight
@ 2022-09-02 16:57 ` Russ Weight
  2022-09-11  7:39   ` Xu Yilun
  1 sibling, 1 reply; 5+ messages in thread
From: Russ Weight @ 2022-09-02 16:57 UTC (permalink / raw)
  To: mdf, hao.wu, yilun.xu, trix, lee, linux-fpga, linux-kernel
  Cc: lgoncalv, marpagan, matthew.gerlach, basheer.ahmed.muddebihal,
	tianfei.zhang, Russ Weight

Add a driver name for the D5005 BMC secure update driver. Different
driver names are used for the N3000 and D5005 devices because future
changes will add conditional code based on the device type (N3000
vs D5005). This change enables D5005 secure updates of BCM images,
BMC firmware, static-region images, etc.

Signed-off-by: Russ Weight <russell.h.weight@intel.com>
---
 drivers/fpga/intel-m10-bmc-sec-update.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/fpga/intel-m10-bmc-sec-update.c b/drivers/fpga/intel-m10-bmc-sec-update.c
index 72c677c910de..526c8cdd1474 100644
--- a/drivers/fpga/intel-m10-bmc-sec-update.c
+++ b/drivers/fpga/intel-m10-bmc-sec-update.c
@@ -605,6 +605,9 @@ static const struct platform_device_id intel_m10bmc_sec_ids[] = {
 	{
 		.name = "n3000bmc-sec-update",
 	},
+	{
+		.name = "d5005bmc-sec-update",
+	},
 	{ }
 };
 MODULE_DEVICE_TABLE(platform, intel_m10bmc_sec_ids);
-- 
2.25.1


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

* Re: [PATCH v1 1/2] mfd: intel-m10-bmc: add d5005 bmc secure update driver
  2022-09-02 16:57 ` [PATCH v1 1/2] mfd: intel-m10-bmc: add d5005 bmc secure update driver Russ Weight
@ 2022-09-08  9:32   ` Lee Jones
  0 siblings, 0 replies; 5+ messages in thread
From: Lee Jones @ 2022-09-08  9:32 UTC (permalink / raw)
  To: Russ Weight
  Cc: mdf, hao.wu, yilun.xu, trix, linux-fpga, linux-kernel, lgoncalv,
	marpagan, matthew.gerlach, basheer.ahmed.muddebihal,
	tianfei.zhang

On Fri, 02 Sep 2022, Russ Weight wrote:

> Add the D5005 BMC secure update driver to the MAX10 BMC driver
> for D5005 devices.
> 
> Signed-off-by: Russ Weight <russell.h.weight@intel.com>
> ---
>  drivers/mfd/intel-m10-bmc.c | 1 +
>  1 file changed, 1 insertion(+)

Applied, thanks.

-- 
Lee Jones [李琼斯]

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

* Re: [PATCH v1 2/2] fpga: m10bmc-sec: d5005 bmc secure update driver
  2022-09-02 16:57 ` [PATCH v1 2/2] fpga: m10bmc-sec: " Russ Weight
@ 2022-09-11  7:39   ` Xu Yilun
  0 siblings, 0 replies; 5+ messages in thread
From: Xu Yilun @ 2022-09-11  7:39 UTC (permalink / raw)
  To: Russ Weight
  Cc: mdf, hao.wu, trix, lee, linux-fpga, linux-kernel, lgoncalv,
	marpagan, matthew.gerlach, basheer.ahmed.muddebihal,
	tianfei.zhang

On 2022-09-02 at 09:57:06 -0700, Russ Weight wrote:
> Add a driver name for the D5005 BMC secure update driver. Different
> driver names are used for the N3000 and D5005 devices because future
> changes will add conditional code based on the device type (N3000
> vs D5005). This change enables D5005 secure updates of BCM images,
> BMC firmware, static-region images, etc.
> 
> Signed-off-by: Russ Weight <russell.h.weight@intel.com>
> ---
>  drivers/fpga/intel-m10-bmc-sec-update.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/fpga/intel-m10-bmc-sec-update.c b/drivers/fpga/intel-m10-bmc-sec-update.c
> index 72c677c910de..526c8cdd1474 100644
> --- a/drivers/fpga/intel-m10-bmc-sec-update.c
> +++ b/drivers/fpga/intel-m10-bmc-sec-update.c
> @@ -605,6 +605,9 @@ static const struct platform_device_id intel_m10bmc_sec_ids[] = {
>  	{
>  		.name = "n3000bmc-sec-update",
>  	},
> +	{
> +		.name = "d5005bmc-sec-update",
> +	},
>  	{ }
>  };
>  MODULE_DEVICE_TABLE(platform, intel_m10bmc_sec_ids);

Applied to for-next.

Thanks,
Yilun

> -- 
> 2.25.1
> 

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

end of thread, other threads:[~2022-09-11  7:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-02 16:57 [PATCH v1 0/2] fpga: dfl: support d5005 secure updates Russ Weight
2022-09-02 16:57 ` [PATCH v1 1/2] mfd: intel-m10-bmc: add d5005 bmc secure update driver Russ Weight
2022-09-08  9:32   ` Lee Jones
2022-09-02 16:57 ` [PATCH v1 2/2] fpga: m10bmc-sec: " Russ Weight
2022-09-11  7:39   ` Xu Yilun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).