From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Riana Tauro <riana.tauro@intel.com>
Cc: intel-xe@lists.freedesktop.org, anshuman.gupta@intel.com,
rodrigo.vivi@intel.com, lucas.demarchi@intel.com,
aravind.iddamsetty@linux.intel.com, raag.jadav@intel.com
Subject: Re: [PATCH] drm/xe/xe_i2c: Add support for i2c in survivability mode
Date: Fri, 6 Jun 2025 14:02:04 +0300 [thread overview]
Message-ID: <aELKrBOBaDRv4P3I@kuha.fi.intel.com> (raw)
In-Reply-To: <20250603170958.1580894-1-riana.tauro@intel.com>
On Tue, Jun 03, 2025 at 10:39:58PM +0530, Riana Tauro wrote:
> Initialize i2c in survivability mode to allow firmware
> update of Add-In Management Controller (AMC) in survivability mode
>
> Signed-off-by: Riana Tauro <riana.tauro@intel.com>
> ---
>
> This depends on I2C series by Heikki on [1].
> [1] https://lore.kernel.org/intel-xe/20250530141744.3605983-1-heikki.krogerus@linux.intel.com/
Thanks Riana. I'll include this to my series in v2. This is now
avilable in my internal amc branch:
https://github.com/intel-sandbox/hkrogeru-linux/commit/83ead82b0adf307b28cc794e9567c3e622ab7daf
cheers,
>
> drivers/gpu/drm/xe/xe_survivability_mode.c | 23 ++++++++++++++--------
> 1 file changed, 15 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_survivability_mode.c b/drivers/gpu/drm/xe/xe_survivability_mode.c
> index 1f710b3fc599..3800cc855c22 100644
> --- a/drivers/gpu/drm/xe/xe_survivability_mode.c
> +++ b/drivers/gpu/drm/xe/xe_survivability_mode.c
> @@ -14,6 +14,7 @@
> #include "xe_device.h"
> #include "xe_gt.h"
> #include "xe_heci_gsc.h"
> +#include "xe_i2c.h"
> #include "xe_mmio.h"
> #include "xe_pcode_api.h"
> #include "xe_vsec.h"
> @@ -173,20 +174,26 @@ static int enable_survivability_mode(struct pci_dev *pdev)
> survivability->mode = true;
>
> ret = xe_heci_gsc_init(xe);
> - if (ret) {
> - /*
> - * But if it fails, device can't enter survivability
> - * so move it back for correct error handling
> - */
> - survivability->mode = false;
> - return ret;
> - }
> + if (ret)
> + goto err;
>
> xe_vsec_init(xe);
>
> + ret = xe_i2c_probe(xe);
> + if (ret)
> + goto err;
> +
> dev_err(dev, "In Survivability Mode\n");
>
> return 0;
> +
> +err:
> + /*
> + * But if it fails, device can't enter survivability
> + * so move it back for correct error handling
> + */
> + survivability->mode = false;
> + return ret;
> }
>
> /**
> --
> 2.47.1
--
heikki
prev parent reply other threads:[~2025-06-06 11:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-03 17:09 [PATCH] drm/xe/xe_i2c: Add support for i2c in survivability mode Riana Tauro
2025-06-03 16:51 ` ✓ CI.Patch_applied: success for " Patchwork
2025-06-03 16:51 ` ✓ CI.checkpatch: " Patchwork
2025-06-03 16:52 ` ✗ CI.KUnit: failure " Patchwork
2025-06-04 12:23 ` [PATCH] " Raag Jadav
2025-06-06 11:02 ` Heikki Krogerus [this message]
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=aELKrBOBaDRv4P3I@kuha.fi.intel.com \
--to=heikki.krogerus@linux.intel.com \
--cc=anshuman.gupta@intel.com \
--cc=aravind.iddamsetty@linux.intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=lucas.demarchi@intel.com \
--cc=raag.jadav@intel.com \
--cc=riana.tauro@intel.com \
--cc=rodrigo.vivi@intel.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.