* [PATCH] drm/amdgpu: Disable FRU EEPROM access for SRIOV
@ 2022-01-20 15:48 shaoyunl
2022-01-20 16:50 ` Alex Deucher
2022-01-21 1:42 ` Chen, Guchun
0 siblings, 2 replies; 4+ messages in thread
From: shaoyunl @ 2022-01-20 15:48 UTC (permalink / raw)
To: amd-gfx; +Cc: shaoyunl
VF acces the EEPROM is blocked by security policy, we might need other way
to get SKUs info for VF
Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c
index 2a786e788627..0548e279cc9f 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c
@@ -40,6 +40,12 @@ static bool is_fru_eeprom_supported(struct amdgpu_device *adev)
*/
struct atom_context *atom_ctx = adev->mode_info.atom_context;
+ /* The i2c access is blocked on VF
+ * TODO: Need other way to get the info
+ */
+ if (amdgpu_sriov_vf(adev)
+ return false;
+
/* VBIOS is of the format ###-DXXXYY-##. For SKU identification,
* we can use just the "DXXX" portion. If there were more models, we
* could convert the 3 characters to a hex integer and use a switch
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/amdgpu: Disable FRU EEPROM access for SRIOV
2022-01-20 15:48 [PATCH] drm/amdgpu: Disable FRU EEPROM access for SRIOV shaoyunl
@ 2022-01-20 16:50 ` Alex Deucher
2022-01-20 17:58 ` Russell, Kent
2022-01-21 1:42 ` Chen, Guchun
1 sibling, 1 reply; 4+ messages in thread
From: Alex Deucher @ 2022-01-20 16:50 UTC (permalink / raw)
To: shaoyunl; +Cc: amd-gfx list
On Thu, Jan 20, 2022 at 10:49 AM shaoyunl <shaoyun.liu@amd.com> wrote:
>
> VF acces the EEPROM is blocked by security policy, we might need other way
> to get SKUs info for VF
>
> Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c
> index 2a786e788627..0548e279cc9f 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c
> @@ -40,6 +40,12 @@ static bool is_fru_eeprom_supported(struct amdgpu_device *adev)
> */
> struct atom_context *atom_ctx = adev->mode_info.atom_context;
>
> + /* The i2c access is blocked on VF
> + * TODO: Need other way to get the info
> + */
> + if (amdgpu_sriov_vf(adev)
> + return false;
> +
> /* VBIOS is of the format ###-DXXXYY-##. For SKU identification,
> * we can use just the "DXXX" portion. If there were more models, we
> * could convert the 3 characters to a hex integer and use a switch
> --
> 2.17.1
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] drm/amdgpu: Disable FRU EEPROM access for SRIOV
2022-01-20 16:50 ` Alex Deucher
@ 2022-01-20 17:58 ` Russell, Kent
0 siblings, 0 replies; 4+ messages in thread
From: Russell, Kent @ 2022-01-20 17:58 UTC (permalink / raw)
To: Alex Deucher, Liu, Shaoyun; +Cc: amd-gfx list
[AMD Official Use Only]
Reviewed-by: Kent Russell <kent.russell@amd.com>
> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> On Behalf Of Alex Deucher
> Sent: Thursday, January 20, 2022 11:51 AM
> To: Liu, Shaoyun <Shaoyun.Liu@amd.com>
> Cc: amd-gfx list <amd-gfx@lists.freedesktop.org>
> Subject: Re: [PATCH] drm/amdgpu: Disable FRU EEPROM access for SRIOV
>
> On Thu, Jan 20, 2022 at 10:49 AM shaoyunl <shaoyun.liu@amd.com> wrote:
> >
> > VF acces the EEPROM is blocked by security policy, we might need other way
> > to get SKUs info for VF
> >
> > Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
>
> Acked-by: Alex Deucher <alexander.deucher@amd.com>
>
> > ---
> > drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c | 6 ++++++
> > 1 file changed, 6 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c
> > index 2a786e788627..0548e279cc9f 100644
> > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c
> > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c
> > @@ -40,6 +40,12 @@ static bool is_fru_eeprom_supported(struct amdgpu_device *adev)
> > */
> > struct atom_context *atom_ctx = adev->mode_info.atom_context;
> >
> > + /* The i2c access is blocked on VF
> > + * TODO: Need other way to get the info
> > + */
> > + if (amdgpu_sriov_vf(adev)
> > + return false;
> > +
> > /* VBIOS is of the format ###-DXXXYY-##. For SKU identification,
> > * we can use just the "DXXX" portion. If there were more models, we
> > * could convert the 3 characters to a hex integer and use a switch
> > --
> > 2.17.1
> >
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] drm/amdgpu: Disable FRU EEPROM access for SRIOV
2022-01-20 15:48 [PATCH] drm/amdgpu: Disable FRU EEPROM access for SRIOV shaoyunl
2022-01-20 16:50 ` Alex Deucher
@ 2022-01-21 1:42 ` Chen, Guchun
1 sibling, 0 replies; 4+ messages in thread
From: Chen, Guchun @ 2022-01-21 1:42 UTC (permalink / raw)
To: Liu, Shaoyun, amd-gfx; +Cc: Liu, Shaoyun
[Public]
Acked-by: Guchun Chen <guchun.chen@amd.com>
Regards,
Guchun
-----Original Message-----
From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> On Behalf Of shaoyunl
Sent: Thursday, January 20, 2022 11:49 PM
To: amd-gfx@lists.freedesktop.org
Cc: Liu, Shaoyun <Shaoyun.Liu@amd.com>
Subject: [PATCH] drm/amdgpu: Disable FRU EEPROM access for SRIOV
VF acces the EEPROM is blocked by security policy, we might need other way to get SKUs info for VF
Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c
index 2a786e788627..0548e279cc9f 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c
@@ -40,6 +40,12 @@ static bool is_fru_eeprom_supported(struct amdgpu_device *adev)
*/
struct atom_context *atom_ctx = adev->mode_info.atom_context;
+ /* The i2c access is blocked on VF
+ * TODO: Need other way to get the info
+ */
+ if (amdgpu_sriov_vf(adev)
+ return false;
+
/* VBIOS is of the format ###-DXXXYY-##. For SKU identification,
* we can use just the "DXXX" portion. If there were more models, we
* could convert the 3 characters to a hex integer and use a switch
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-01-21 1:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-20 15:48 [PATCH] drm/amdgpu: Disable FRU EEPROM access for SRIOV shaoyunl
2022-01-20 16:50 ` Alex Deucher
2022-01-20 17:58 ` Russell, Kent
2022-01-21 1:42 ` Chen, Guchun
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.