Skip to contentSkip to conversation

A missing FPGA patch for v6.3-rc1

PATCH In review Xu Yilun 3 participants 10 messages Jan 31, 2023 – Feb 1, 2023

Subsystems (4)
lore
Share & tools
lore

Xu Yilun

author maintainer
#0 lore raw

cover A missing FPGA patch for v6.3-rc1

Hi Greg:

You've pulled the topic branch ib-mfd-fpga-hwmon-v6.3 when handling

[GIT PULL] FPGA Manager changes for 6.3-rc1

But the final patch is overlooked in this topic branch, see:

https://lore.kernel.org/all/[email protected]/

So could you help check and merge it, thanks.

Ilpo Järvinen (1):
fpga: m10bmc-sec: Add support for N6000

 drivers/fpga/intel-m10-bmc-sec-update.c |  51 ++++-
 drivers/mfd/intel-m10-bmc-pmci.c        | 242 +++++++++++++++++++++++-
 include/linux/mfd/intel-m10-bmc.h       |  51 +++++
 3 files changed, 336 insertions(+), 8 deletions(-)
Signature · 1 line
2.25.1
author maintainer
#1 lore raw

PATCH 1/1 fpga: m10bmc-sec: Add support for N6000

From: Ilpo Järvinen <[email protected]>

Add support for PMCI-based flash access path and N6000 sec update support. Access to flash staging area is different for N6000 from that of the SPI interfaced counterparts.

Introduce intel_m10bmc_flash_bulk_ops to allow interface specific differentiations for the flash access path for sec update and make m10bmc_sec_read/write() in sec update driver to use the new operations. The .flash_mutex serializes read/read. Flash update (erase+write) must use ->lock/unlock_write() to prevent reads during update (reads would timeout on setting flash MUX as BMC will prevent it).

Create a type specific RSU status reg handler for N6000 because the field has moved from doorbell to auth result register.

If a failure is detected while altering the flash MUX, it seems safer to try to set it back and doesn't seem harmful. Likely there are enough troubles in that case anyway so setting it back fails too (which is harmless sans the small extra delay) or just confirms that the value wasn't changed.

---
 drivers/fpga/intel-m10-bmc-sec-update.c |  51 ++++-
 drivers/mfd/intel-m10-bmc-pmci.c        | 242 +++++++++++++++++++++++-
 include/linux/mfd/intel-m10-bmc.h       |  51 +++++
 3 files changed, 336 insertions(+), 8 deletions(-)
drivers/fpga/intel-m10-bmc-sec-update.c +46 -5
index 92145ee7333e..9b4cc75b48c5 100644
@@ -48,6 +48,9 @@ static int m10bmc_sec_write(struct m10bmc_sec *sec, const u8 *buf, u32 offset, u
 	u32 leftover_tmp = 0;
 	int ret;
 
+	if (sec->m10bmc->flash_bulk_ops)
+		return sec->m10bmc->flash_bulk_ops->write(m10bmc, buf, offset, size);
+
 	if (WARN_ON_ONCE(stride > sizeof(leftover_tmp)))
 		return -EINVAL;
 
@@ -78,6 +81,9 @@ static int m10bmc_sec_read(struct m10bmc_sec *sec, u8 *buf, u32 addr, u32 size)
 	u32 leftover_tmp;
 	int ret;
 
+	if (sec->m10bmc->flash_bulk_ops)
+		return sec->m10bmc->flash_bulk_ops->read(m10bmc, buf, addr, size);
+
 	if (WARN_ON_ONCE(stride > sizeof(leftover_tmp)))
 		return -EINVAL;
 
@@ -277,6 +283,19 @@ static int m10bmc_sec_n3000_rsu_status(struct m10bmc_sec *sec)
 	return FIELD_GET(DRBL_RSU_STATUS, doorbell);
 }
 
+static int m10bmc_sec_n6000_rsu_status(struct m10bmc_sec *sec)
+{
+	const struct m10bmc_csr_map *csr_map = sec->m10bmc->info->csr_map;
+	u32 auth_result;
+	int ret;
+
+	ret = m10bmc_sys_read(sec->m10bmc, csr_map->auth_result, &auth_result);
+	if (ret)
+		return ret;
+
+	return FIELD_GET(AUTH_RESULT_RSU_STATUS, auth_result);
+}
+
 static bool rsu_status_ok(u32 status)
 {
 	return (status == RSU_STAT_NORMAL ||
@@ -520,22 +539,33 @@ static enum fw_upload_err m10bmc_sec_prepare(struct fw_upload *fwl,
 	if (!size || size > M10BMC_STAGING_SIZE)
 		return FW_UPLOAD_ERR_INVALID_SIZE;
 
+	if (sec->m10bmc->flash_bulk_ops)
+		if (sec->m10bmc->flash_bulk_ops->lock_write(sec->m10bmc))
+			return FW_UPLOAD_ERR_BUSY;
+
 	ret = rsu_check_idle(sec);
 	if (ret != FW_UPLOAD_ERR_NONE)
-		return ret;
+		goto unlock_flash;
 
 	ret = rsu_update_init(sec);
 	if (ret != FW_UPLOAD_ERR_NONE)
-		return ret;
+		goto unlock_flash;
 
 	ret = rsu_prog_ready(sec);
 	if (ret != FW_UPLOAD_ERR_NONE)
-		return ret;
+		goto unlock_flash;
 
-	if (sec->cancel_request)
-		return rsu_cancel(sec);
+	if (sec->cancel_request) {
+		ret = rsu_cancel(sec);
+		goto unlock_flash;
+	}
 
 	return FW_UPLOAD_ERR_NONE;
+
+unlock_flash:
+	if (sec->m10bmc->flash_bulk_ops)
+		sec->m10bmc->flash_bulk_ops->unlock_write(sec->m10bmc);
+	return ret;
 }
 
 #define WRITE_BLOCK_SIZE 0x4000	/* Default write-block size is 0x4000 bytes */
@@ -622,6 +652,9 @@ static void m10bmc_sec_cleanup(struct fw_upload *fwl)
 	struct m10bmc_sec *sec = fwl->dd_handle;
 
 	(void)rsu_cancel(sec);
+
+	if (sec->m10bmc->flash_bulk_ops)
+		sec->m10bmc->flash_bulk_ops->unlock_write(sec->m10bmc);
 }
 
 static const struct fw_upload_ops m10bmc_ops = {
@@ -636,6 +669,10 @@ static const struct m10bmc_sec_ops m10sec_n3000_ops = {
 	.rsu_status = m10bmc_sec_n3000_rsu_status,
 };
 
+static const struct m10bmc_sec_ops m10sec_n6000_ops = {
+	.rsu_status = m10bmc_sec_n6000_rsu_status,
+};
+
 #define SEC_UPDATE_LEN_MAX 32
 static int m10bmc_sec_probe(struct platform_device *pdev)
 {
@@ -698,6 +735,10 @@ static const struct platform_device_id intel_m10bmc_sec_ids[] = {
 		.name = "d5005bmc-sec-update",
 		.driver_data = (kernel_ulong_t)&m10sec_n3000_ops,
 	},
+	{
+		.name = "n6000bmc-sec-update",
+		.driver_data = (kernel_ulong_t)&m10sec_n6000_ops,
+	},
 	{ }
 };
 MODULE_DEVICE_TABLE(platform, intel_m10bmc_sec_ids);
drivers/mfd/intel-m10-bmc-pmci.c +239 -3

299 lines not on this page · raw message

include/linux/mfd/intel-m10-bmc.h +51 -0

79 lines not on this page · raw message

Signature · 1 line
2.25.1
maintainer
#2 lore raw

Re: [PATCH 1/1] fpga: m10bmc-sec: Add support for N6000

Quoted 30 lines · Xu Yilun

From: Ilpo Järvinen <[email protected]>

Add support for PMCI-based flash access path and N6000 sec update support. Access to flash staging area is different for N6000 from that of the SPI interfaced counterparts.

Introduce intel_m10bmc_flash_bulk_ops to allow interface specific differentiations for the flash access path for sec update and make m10bmc_sec_read/write() in sec update driver to use the new operations. The .flash_mutex serializes read/read. Flash update (erase+write) must use ->lock/unlock_write() to prevent reads during update (reads would timeout on setting flash MUX as BMC will prevent it).

Create a type specific RSU status reg handler for N6000 because the field has moved from doorbell to auth result register.

If a failure is detected while altering the flash MUX, it seems safer to try to set it back and doesn't seem harmful. Likely there are enough troubles in that case anyway so setting it back fails too (which is harmless sans the small extra delay) or just confirms that the value wasn't changed.

Quoted 5 lines
---
 drivers/fpga/intel-m10-bmc-sec-update.c |  51 ++++-
 drivers/mfd/intel-m10-bmc-pmci.c        | 242 +++++++++++++++++++++++-
 include/linux/mfd/intel-m10-bmc.h       |  51 +++++
 3 files changed, 336 insertions(+), 8 deletions(-)

I'm confused, what are you trying to achieve?

Who are you sending this to?

Signature · 1 line
Lee Jones [李琼斯]
author maintainer
#3 lore raw

Re: [PATCH 1/1] fpga: m10bmc-sec: Add support for N6000

Quoted 38 lines · Lee Jones
Quoted 30 lines · Xu Yilun

From: Ilpo Järvinen <[email protected]>

Add support for PMCI-based flash access path and N6000 sec update support. Access to flash staging area is different for N6000 from that of the SPI interfaced counterparts.

Introduce intel_m10bmc_flash_bulk_ops to allow interface specific differentiations for the flash access path for sec update and make m10bmc_sec_read/write() in sec update driver to use the new operations. The .flash_mutex serializes read/read. Flash update (erase+write) must use ->lock/unlock_write() to prevent reads during update (reads would timeout on setting flash MUX as BMC will prevent it).

Create a type specific RSU status reg handler for N6000 because the field has moved from doorbell to auth result register.

If a failure is detected while altering the flash MUX, it seems safer to try to set it back and doesn't seem harmful. Likely there are enough troubles in that case anyway so setting it back fails too (which is harmless sans the small extra delay) or just confirms that the value wasn't changed.

Quoted 5 lines
---
 drivers/fpga/intel-m10-bmc-sec-update.c |  51 ++++-
 drivers/mfd/intel-m10-bmc-pmci.c        | 242 +++++++++++++++++++++++-
 include/linux/mfd/intel-m10-bmc.h       |  51 +++++
 3 files changed, 336 insertions(+), 8 deletions(-)
Quoted 1 line

I'm confused, what are you trying to achieve?

I'm trying to submit the last patch to Greg's char-misc-next for v6.3-rc1. The first 10 patches in this series have been accepted by him in this cycle.

This is the only one patch so I just send it rather than making an extra pull request.

Thanks,
Yilun

Quoted 5 lines

Who are you sending this to?

Signature · 1 line
Lee Jones [李琼斯]
maintainer
#4 lore raw

Re: [PATCH 1/1] fpga: m10bmc-sec: Add support for N6000

Quoted 39 lines · Xu Yilun
Quoted 38 lines · Lee Jones
Quoted 35 lines · Xu Yilun

From: Ilpo Järvinen <[email protected]>

Add support for PMCI-based flash access path and N6000 sec update support. Access to flash staging area is different for N6000 from that of the SPI interfaced counterparts.

Introduce intel_m10bmc_flash_bulk_ops to allow interface specific differentiations for the flash access path for sec update and make m10bmc_sec_read/write() in sec update driver to use the new operations. The .flash_mutex serializes read/read. Flash update (erase+write) must use ->lock/unlock_write() to prevent reads during update (reads would timeout on setting flash MUX as BMC will prevent it).

Create a type specific RSU status reg handler for N6000 because the field has moved from doorbell to auth result register.

If a failure is detected while altering the flash MUX, it seems safer to try to set it back and doesn't seem harmful. Likely there are enough troubles in that case anyway so setting it back fails too (which is harmless sans the small extra delay) or just confirms that the value wasn't changed.

---
 drivers/fpga/intel-m10-bmc-sec-update.c |  51 ++++-
 drivers/mfd/intel-m10-bmc-pmci.c        | 242 +++++++++++++++++++++++-
 include/linux/mfd/intel-m10-bmc.h       |  51 +++++
 3 files changed, 336 insertions(+), 8 deletions(-)
Quoted 8 lines
Quoted 1 line

I'm confused, what are you trying to achieve?

I'm trying to submit the last patch to Greg's char-misc-next for v6.3-rc1. The first 10 patches in this series have been accepted by him in this cycle.

This is the only one patch so I just send it rather than making an extra pull request.

That doesn't work with commits being routed in via multiple subsystems simultaneously. You'll end up with complications due to differing commit SHAs.

If you really need this patch to be applied to FPGA (hint: I don't think it matters), then Greg will need to pull v2 [0] of the immutable topic branch.

However, the whole set is being routed in via (at least) MFD anyway, so I think we can just leave it as it is for now.

[0] https://lore.kernel.org/linux-fpga/[email protected]/

Signature · 1 line
Lee Jones [李琼斯]
#5 lore raw

Re: [PATCH 1/1] fpga: m10bmc-sec: Add support for N6000

Quoted 54 lines · Lee Jones
Quoted 39 lines · Xu Yilun
Quoted 38 lines · Lee Jones
Quoted 35 lines · Xu Yilun

From: Ilpo Järvinen <[email protected]>

Add support for PMCI-based flash access path and N6000 sec update support. Access to flash staging area is different for N6000 from that of the SPI interfaced counterparts.

Introduce intel_m10bmc_flash_bulk_ops to allow interface specific differentiations for the flash access path for sec update and make m10bmc_sec_read/write() in sec update driver to use the new operations. The .flash_mutex serializes read/read. Flash update (erase+write) must use ->lock/unlock_write() to prevent reads during update (reads would timeout on setting flash MUX as BMC will prevent it).

Create a type specific RSU status reg handler for N6000 because the field has moved from doorbell to auth result register.

If a failure is detected while altering the flash MUX, it seems safer to try to set it back and doesn't seem harmful. Likely there are enough troubles in that case anyway so setting it back fails too (which is harmless sans the small extra delay) or just confirms that the value wasn't changed.

---
 drivers/fpga/intel-m10-bmc-sec-update.c |  51 ++++-
 drivers/mfd/intel-m10-bmc-pmci.c        | 242 +++++++++++++++++++++++-
 include/linux/mfd/intel-m10-bmc.h       |  51 +++++
 3 files changed, 336 insertions(+), 8 deletions(-)
Quoted 8 lines
Quoted 1 line

I'm confused, what are you trying to achieve?

I'm trying to submit the last patch to Greg's char-misc-next for v6.3-rc1. The first 10 patches in this series have been accepted by him in this cycle.

This is the only one patch so I just send it rather than making an extra pull request.

That doesn't work with commits being routed in via multiple subsystems simultaneously. You'll end up with complications due to differing commit SHAs.

Quoted 8 lines

If you really need this patch to be applied to FPGA (hint: I don't think it matters), then Greg will need to pull v2 [0] of the immutable topic branch.

However, the whole set is being routed in via (at least) MFD anyway, so I think we can just leave it as it is for now.

[0] https://lore.kernel.org/linux-fpga/[email protected]/

Ok, I'll drop this from my review queue, but I thought I had the branch already pulled into my tree, but who knows anymore :)

Maybe this should all just be resent after 6.3-rc1 is out as things will be cleared up by then?

thanks,

greg k-h

maintainer
#6 lore raw

Re: [PATCH 1/1] fpga: m10bmc-sec: Add support for N6000

Quoted 62 lines · Greg KH
Quoted 61 lines · Lee Jones
Quoted 39 lines · Xu Yilun
Quoted 38 lines · Lee Jones
Quoted 35 lines · Xu Yilun

From: Ilpo Järvinen <[email protected]>

Add support for PMCI-based flash access path and N6000 sec update support. Access to flash staging area is different for N6000 from that of the SPI interfaced counterparts.

Introduce intel_m10bmc_flash_bulk_ops to allow interface specific differentiations for the flash access path for sec update and make m10bmc_sec_read/write() in sec update driver to use the new operations. The .flash_mutex serializes read/read. Flash update (erase+write) must use ->lock/unlock_write() to prevent reads during update (reads would timeout on setting flash MUX as BMC will prevent it).

Create a type specific RSU status reg handler for N6000 because the field has moved from doorbell to auth result register.

If a failure is detected while altering the flash MUX, it seems safer to try to set it back and doesn't seem harmful. Likely there are enough troubles in that case anyway so setting it back fails too (which is harmless sans the small extra delay) or just confirms that the value wasn't changed.

---
 drivers/fpga/intel-m10-bmc-sec-update.c |  51 ++++-
 drivers/mfd/intel-m10-bmc-pmci.c        | 242 +++++++++++++++++++++++-
 include/linux/mfd/intel-m10-bmc.h       |  51 +++++
 3 files changed, 336 insertions(+), 8 deletions(-)
Quoted 8 lines
Quoted 1 line

I'm confused, what are you trying to achieve?

I'm trying to submit the last patch to Greg's char-misc-next for v6.3-rc1. The first 10 patches in this series have been accepted by him in this cycle.

This is the only one patch so I just send it rather than making an extra pull request.

That doesn't work with commits being routed in via multiple subsystems simultaneously. You'll end up with complications due to differing commit SHAs.

If you really need this patch to be applied to FPGA (hint: I don't think it matters), then Greg will need to pull v2 [0] of the immutable topic branch.

However, the whole set is being routed in via (at least) MFD anyway, so I think we can just leave it as it is for now.

Quoted 7 lines
Quoted 1 line

[0] https://lore.kernel.org/linux-fpga/[email protected]/

Ok, I'll drop this from my review queue, but I thought I had the branch already pulled into my tree, but who knows anymore :)

Maybe this should all just be resent after 6.3-rc1 is out as things will be cleared up by then?

You have 10 out of 11 patches applied (via my PR), but I missed a patch. To solve I submitted a [GIT PULL v2] which was the v1 with the missing patch on top.

I doubt you need to do anything since the whole stack is going in via the MFD tree anyway.

Signature · 1 line
Lee Jones [李琼斯]
author maintainer
#7 lore raw

Re: [PATCH 1/1] fpga: m10bmc-sec: Add support for N6000

Quoted 53 lines · Lee Jones
Quoted 51 lines · Greg KH
Quoted 50 lines · Lee Jones
Quoted 47 lines · Xu Yilun
Quoted 38 lines · Lee Jones
Quoted 30 lines · Xu Yilun

From: Ilpo Järvinen <[email protected]>

Add support for PMCI-based flash access path and N6000 sec update support. Access to flash staging area is different for N6000 from that of the SPI interfaced counterparts.

Introduce intel_m10bmc_flash_bulk_ops to allow interface specific differentiations for the flash access path for sec update and make m10bmc_sec_read/write() in sec update driver to use the new operations. The .flash_mutex serializes read/read. Flash update (erase+write) must use ->lock/unlock_write() to prevent reads during update (reads would timeout on setting flash MUX as BMC will prevent it).

Create a type specific RSU status reg handler for N6000 because the field has moved from doorbell to auth result register.

If a failure is detected while altering the flash MUX, it seems safer to try to set it back and doesn't seem harmful. Likely there are enough troubles in that case anyway so setting it back fails too (which is harmless sans the small extra delay) or just confirms that the value wasn't changed.

Quoted 5 lines
---
 drivers/fpga/intel-m10-bmc-sec-update.c |  51 ++++-
 drivers/mfd/intel-m10-bmc-pmci.c        | 242 +++++++++++++++++++++++-
 include/linux/mfd/intel-m10-bmc.h       |  51 +++++
 3 files changed, 336 insertions(+), 8 deletions(-)
Quoted 1 line

I'm confused, what are you trying to achieve?

I'm trying to submit the last patch to Greg's char-misc-next for v6.3-rc1. The first 10 patches in this series have been accepted by him in this cycle.

This is the only one patch so I just send it rather than making an extra pull request.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

That doesn't work with commits being routed in via multiple subsystems simultaneously. You'll end up with complications due to differing commit SHAs.

If you really need this patch to be applied to FPGA (hint: I don't think it matters), then Greg will need to pull v2 [0] of the immutable topic

It doesn't matter.

When I received the pull request v1, I thought Lee want the immutable topic branch be merged to fpga tree. So I pulled and submitted them to Greg along with other fpga patches. Sorry for the misunderstanding.

I'm not sure if this makes trouble for Greg to pull v2 or MFD tree.

Yilun

Quoted 22 lines
Quoted 5 lines
Quoted 5 lines

branch.

However, the whole set is being routed in via (at least) MFD anyway, so I think we can just leave it as it is for now.

Quoted 7 lines
Quoted 1 line

[0] https://lore.kernel.org/linux-fpga/[email protected]/

Ok, I'll drop this from my review queue, but I thought I had the branch already pulled into my tree, but who knows anymore :)

Maybe this should all just be resent after 6.3-rc1 is out as things will be cleared up by then?

You have 10 out of 11 patches applied (via my PR), but I missed a patch. To solve I submitted a [GIT PULL v2] which was the v1 with the missing patch on top.

I doubt you need to do anything since the whole stack is going in via the MFD tree anyway.

Signature · 1 line
Lee Jones [李琼斯]
maintainer
#8 lore raw

Re: [PATCH 1/1] fpga: m10bmc-sec: Add support for N6000

Quoted 58 lines · Xu Yilun
Quoted 57 lines · Lee Jones
Quoted 55 lines · Greg KH
Quoted 54 lines · Lee Jones
Quoted 39 lines · Xu Yilun
Quoted 38 lines · Lee Jones
Quoted 35 lines · Xu Yilun

From: Ilpo Järvinen <[email protected]>

Add support for PMCI-based flash access path and N6000 sec update support. Access to flash staging area is different for N6000 from that of the SPI interfaced counterparts.

Introduce intel_m10bmc_flash_bulk_ops to allow interface specific differentiations for the flash access path for sec update and make m10bmc_sec_read/write() in sec update driver to use the new operations. The .flash_mutex serializes read/read. Flash update (erase+write) must use ->lock/unlock_write() to prevent reads during update (reads would timeout on setting flash MUX as BMC will prevent it).

Create a type specific RSU status reg handler for N6000 because the field has moved from doorbell to auth result register.

If a failure is detected while altering the flash MUX, it seems safer to try to set it back and doesn't seem harmful. Likely there are enough troubles in that case anyway so setting it back fails too (which is harmless sans the small extra delay) or just confirms that the value wasn't changed.

---
 drivers/fpga/intel-m10-bmc-sec-update.c |  51 ++++-
 drivers/mfd/intel-m10-bmc-pmci.c        | 242 +++++++++++++++++++++++-
 include/linux/mfd/intel-m10-bmc.h       |  51 +++++
 3 files changed, 336 insertions(+), 8 deletions(-)
Quoted 8 lines
Quoted 1 line

I'm confused, what are you trying to achieve?

I'm trying to submit the last patch to Greg's char-misc-next for v6.3-rc1. The first 10 patches in this series have been accepted by him in this cycle.

This is the only one patch so I just send it rather than making an extra pull request.

That doesn't work with commits being routed in via multiple subsystems simultaneously. You'll end up with complications due to differing commit SHAs.

Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

If you really need this patch to be applied to FPGA (hint: I don't think it matters), then Greg will need to pull v2 [0] of the immutable topic

It doesn't matter.

When I received the pull request v1, I thought Lee want the immutable topic branch be merged to fpga tree. So I pulled and submitted them to Greg along with other fpga patches. Sorry for the misunderstanding.

Maintainer => maintainer pull-requests are optional. They're super useful if you want to keep developing a particular driver that has been changed elsewhere, since they ensure the avoidance of merge-conflicts at merge time.

If you're not attempting to make further changes, there shouldn't be any requirement to pull them.

Quoted 1 line

I'm not sure if this makes trouble for Greg to pull v2 or MFD tree.

Honesty, I'd just leave it as it is. It would have been more problematic if a patch which appears earlier in the set was missing, since this may hurt bisectability or render a tree un-buildable. As it stands, it's the last patch, which no other patch in the series should depend on.

Signature · 1 line
Lee Jones [李琼斯]
author maintainer
#9 lore raw

Re: [PATCH 1/1] fpga: m10bmc-sec: Add support for N6000

Quoted 69 lines · Lee Jones
Quoted 58 lines · Xu Yilun
Quoted 57 lines · Lee Jones
Quoted 55 lines · Greg KH
Quoted 54 lines · Lee Jones
Quoted 39 lines · Xu Yilun
Quoted 38 lines · Lee Jones
Quoted 35 lines · Xu Yilun

From: Ilpo Järvinen <[email protected]>

Add support for PMCI-based flash access path and N6000 sec update support. Access to flash staging area is different for N6000 from that of the SPI interfaced counterparts.

Introduce intel_m10bmc_flash_bulk_ops to allow interface specific differentiations for the flash access path for sec update and make m10bmc_sec_read/write() in sec update driver to use the new operations. The .flash_mutex serializes read/read. Flash update (erase+write) must use ->lock/unlock_write() to prevent reads during update (reads would timeout on setting flash MUX as BMC will prevent it).

Create a type specific RSU status reg handler for N6000 because the field has moved from doorbell to auth result register.

If a failure is detected while altering the flash MUX, it seems safer to try to set it back and doesn't seem harmful. Likely there are enough troubles in that case anyway so setting it back fails too (which is harmless sans the small extra delay) or just confirms that the value wasn't changed.

---
 drivers/fpga/intel-m10-bmc-sec-update.c |  51 ++++-
 drivers/mfd/intel-m10-bmc-pmci.c        | 242 +++++++++++++++++++++++-
 include/linux/mfd/intel-m10-bmc.h       |  51 +++++
 3 files changed, 336 insertions(+), 8 deletions(-)
Quoted 8 lines
Quoted 1 line

I'm confused, what are you trying to achieve?

I'm trying to submit the last patch to Greg's char-misc-next for v6.3-rc1. The first 10 patches in this series have been accepted by him in this cycle.

This is the only one patch so I just send it rather than making an extra pull request.

That doesn't work with commits being routed in via multiple subsystems simultaneously. You'll end up with complications due to differing commit SHAs.

Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

If you really need this patch to be applied to FPGA (hint: I don't think it matters), then Greg will need to pull v2 [0] of the immutable topic

It doesn't matter.

When I received the pull request v1, I thought Lee want the immutable topic branch be merged to fpga tree. So I pulled and submitted them to Greg along with other fpga patches. Sorry for the misunderstanding.

Quoted 7 lines

Maintainer => maintainer pull-requests are optional. They're super useful if you want to keep developing a particular driver that has been changed elsewhere, since they ensure the avoidance of merge-conflicts at merge time.

If you're not attempting to make further changes, there shouldn't be any requirement to pull them.

OK. Thanks for your explanation.

Yilun

Quoted 11 lines
Quoted 2 lines

I'm not sure if this makes trouble for Greg to pull v2 or MFD tree.

Honesty, I'd just leave it as it is. It would have been more problematic if a patch which appears earlier in the set was missing, since this may hurt bisectability or render a tree un-buildable. As it stands, it's the last patch, which no other patch in the series should depend on.

Signature · 1 line
Lee Jones [李琼斯]