> -----Original Message----- > From: Intel-gfx <[email protected]> On Behalf Of Lucas > De Marchi > Sent: Friday, January 20, 2023 11:35 AM > To: [email protected] > Cc: De Marchi, Lucas <[email protected]>; dri- > [email protected] > Subject: [Intel-gfx] [PATCH v2 6/8] drm/i915: Convert _FIA() to > _PICK_EVEN_2RANGES() > > _FIA() can use _PICK_EVEN_2RANGES instead of _PICK, which reduces the size > and is safer. > > Signed-off-by: Lucas De Marchi <[email protected]> Reviewed-by: Anusha Srivatsa <[email protected]> > --- > drivers/gpu/drm/i915/display/intel_mg_phy_regs.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_mg_phy_regs.h > b/drivers/gpu/drm/i915/display/intel_mg_phy_regs.h > index 0e8248bce52d..0306ade2bc30 100644 > --- a/drivers/gpu/drm/i915/display/intel_mg_phy_regs.h > +++ b/drivers/gpu/drm/i915/display/intel_mg_phy_regs.h > @@ -142,7 +142,9 @@ > #define FIA1_BASE 0x163000 > #define FIA2_BASE 0x16E000 > #define FIA3_BASE 0x16F000 > -#define _FIA(fia) _PICK((fia), FIA1_BASE, FIA2_BASE, > FIA3_BASE) > +#define _FIA(fia) _PICK_EVEN_2RANGES((fia), 1, > \ > + FIA1_BASE, > FIA1_BASE,\ > + FIA2_BASE, > FIA3_BASE) > #define _MMIO_FIA(fia, off) _MMIO(_FIA(fia) + (off)) > > /* ICL PHY DFLEX registers */ > -- > 2.39.0
- Re: [Intel-gfx] [PATCH v2.1] drm/i915: Add _PICK... Srivatsa, Anusha
- [Intel-gfx] [PATCH v2 2/8] drm/i915: Fix coding style on ... Lucas De Marchi
- Re: [Intel-gfx] [PATCH v2 2/8] drm/i915: Fix coding ... Srivatsa, Anusha
- [Intel-gfx] [PATCH v2 4/8] drm/i915: Replace _MMIO_PHY3()... Lucas De Marchi
- Re: [Intel-gfx] [PATCH v2 4/8] drm/i915: Replace _MM... Srivatsa, Anusha
- [Intel-gfx] [PATCH v2 7/8] drm/i915: Convert MBUS_ABOX_CT... Lucas De Marchi
- Re: [Intel-gfx] [PATCH v2 7/8] drm/i915: Convert MBU... Srivatsa, Anusha
- [Intel-gfx] [PATCH v2 8/8] drm/i915: Convert PALETTE() to... Lucas De Marchi
- Re: [Intel-gfx] [PATCH v2 8/8] drm/i915: Convert PAL... Srivatsa, Anusha
- [Intel-gfx] [PATCH v2 6/8] drm/i915: Convert _FIA() to _P... Lucas De Marchi
- Re: [Intel-gfx] [PATCH v2 6/8] drm/i915: Convert _FI... Srivatsa, Anusha
- [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Add _PICK_EVE... Patchwork
- [Intel-gfx] ✓ Fi.CI.BAT: success for Add _PICK_EVEN_2RANG... Patchwork
- [Intel-gfx] ✗ Fi.CI.IGT: failure for Add _PICK_EVEN_2RANG... Patchwork
- Re: [Intel-gfx] [PATCH v2 0/8] Add _PICK_EVEN_2RANGES Jani Nikula
- [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Add _PICK_EVE... Patchwork
- [Intel-gfx] ✓ Fi.CI.BAT: success for Add _PICK_EVEN_2RANG... Patchwork
- [Intel-gfx] ✓ Fi.CI.IGT: success for Add _PICK_EVEN_2RANG... Patchwork
- [Intel-gfx] ✗ Fi.CI.SPARSE: warning for Add _PICK_EVEN_2R... Patchwork
- [Intel-gfx] ✓ Fi.CI.BAT: success for Add _PICK_EVEN_2RANG... Patchwork
- [Intel-gfx] ✓ Fi.CI.IGT: success for Add _PICK_EVEN_2RANG... Patchwork
