From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Hans de Goede <hdegoede@redhat.com>
Cc: Jani Nikula <jani.nikula@intel.com>,
intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org, Daniel Vetter <daniel@ffwll.ch>,
Rodrigo Vivi <rodrigo.vivi@intel.com>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
David Airlie <airlied@gmail.com>
Subject: Re: [Intel-gfx] [PATCH v2 6/7] drm/i915/dsi: Replace poking of CHV GPIOs behind the driver's back
Date: Wed, 1 Nov 2023 12:34:02 +0200 [thread overview]
Message-ID: <ZUIpmhYlqMXroHfV@intel.com> (raw)
In-Reply-To: <f68dca47-d9ed-a146-b152-c19bcc9d8828@redhat.com>
On Wed, Nov 01, 2023 at 11:20:23AM +0100, Hans de Goede wrote:
> Hi,
>
> On 11/1/23 10:32, Andy Shevchenko wrote:
> > On Tue, Oct 31, 2023 at 10:15:52PM +0100, Hans de Goede wrote:
> >> On 10/31/23 17:07, Hans de Goede wrote:
> >>> On 10/24/23 18:11, Andy Shevchenko wrote:
> >>>> On Tue, Oct 24, 2023 at 06:57:38PM +0300, Andy Shevchenko wrote:
> >
> > ...
> >
> >>> As for the CHT support, I have not added that to my tree yet, I would
> >>> prefer to directly test the correct/fixed patch.
> >>
> >> And I hit the "jackpot" on the first device I tried and the code needed
> >> some fixing to actually work, so here is something to fold into v3 to
> >> fix things:
> >
> > Thanks!
> >
> > But let me first send current v3 as it quite differs to v2 in the sense
> > of how I do instantiate GPIO lookup tables.
>
> The problem is there already is a GPIO lookup table registered for
> the "0000:00:02.0" device by intel_dsi_vbt_gpio_init() and there can
> be only be one GPIO lookup table per device. So no matter how you
> instantiate GPIO lookup tables it will not work.
>
> The solution that I chose is to not instantiate a GPIO lookup table
> at all and instead to extend the existing table with an extra entry.
>
> Although thinking more about it I must admit that this is racy.
>
> So a better idea would be to unregister the GPIO lookup
> table registered by intel_dsi_vbt_gpio_init() after getting
> the GPIOs there, that would allow instantiating a new one
> from soc_exec_opaque_gpio() as it currently does and that
> would be race free.
The proper solution would likely be be to pre-parse the sequences
to determine which GPIOs are actually needed. That would also get
rid of the bxt_gpio_table[] eyesore.
--
Ville Syrjälä
Intel
WARNING: multiple messages have this Message-ID (diff)
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Hans de Goede <hdegoede@redhat.com>
Cc: Jani Nikula <jani.nikula@intel.com>,
intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org,
Rodrigo Vivi <rodrigo.vivi@intel.com>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Subject: Re: [Intel-gfx] [PATCH v2 6/7] drm/i915/dsi: Replace poking of CHV GPIOs behind the driver's back
Date: Wed, 1 Nov 2023 12:34:02 +0200 [thread overview]
Message-ID: <ZUIpmhYlqMXroHfV@intel.com> (raw)
In-Reply-To: <f68dca47-d9ed-a146-b152-c19bcc9d8828@redhat.com>
On Wed, Nov 01, 2023 at 11:20:23AM +0100, Hans de Goede wrote:
> Hi,
>
> On 11/1/23 10:32, Andy Shevchenko wrote:
> > On Tue, Oct 31, 2023 at 10:15:52PM +0100, Hans de Goede wrote:
> >> On 10/31/23 17:07, Hans de Goede wrote:
> >>> On 10/24/23 18:11, Andy Shevchenko wrote:
> >>>> On Tue, Oct 24, 2023 at 06:57:38PM +0300, Andy Shevchenko wrote:
> >
> > ...
> >
> >>> As for the CHT support, I have not added that to my tree yet, I would
> >>> prefer to directly test the correct/fixed patch.
> >>
> >> And I hit the "jackpot" on the first device I tried and the code needed
> >> some fixing to actually work, so here is something to fold into v3 to
> >> fix things:
> >
> > Thanks!
> >
> > But let me first send current v3 as it quite differs to v2 in the sense
> > of how I do instantiate GPIO lookup tables.
>
> The problem is there already is a GPIO lookup table registered for
> the "0000:00:02.0" device by intel_dsi_vbt_gpio_init() and there can
> be only be one GPIO lookup table per device. So no matter how you
> instantiate GPIO lookup tables it will not work.
>
> The solution that I chose is to not instantiate a GPIO lookup table
> at all and instead to extend the existing table with an extra entry.
>
> Although thinking more about it I must admit that this is racy.
>
> So a better idea would be to unregister the GPIO lookup
> table registered by intel_dsi_vbt_gpio_init() after getting
> the GPIOs there, that would allow instantiating a new one
> from soc_exec_opaque_gpio() as it currently does and that
> would be race free.
The proper solution would likely be be to pre-parse the sequences
to determine which GPIOs are actually needed. That would also get
rid of the bxt_gpio_table[] eyesore.
--
Ville Syrjälä
Intel
WARNING: multiple messages have this Message-ID (diff)
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Hans de Goede <hdegoede@redhat.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Jani Nikula <jani.nikula@intel.com>,
intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org, Daniel Vetter <daniel@ffwll.ch>,
Rodrigo Vivi <rodrigo.vivi@intel.com>,
David Airlie <airlied@gmail.com>
Subject: Re: [Intel-gfx] [PATCH v2 6/7] drm/i915/dsi: Replace poking of CHV GPIOs behind the driver's back
Date: Wed, 1 Nov 2023 12:34:02 +0200 [thread overview]
Message-ID: <ZUIpmhYlqMXroHfV@intel.com> (raw)
In-Reply-To: <f68dca47-d9ed-a146-b152-c19bcc9d8828@redhat.com>
On Wed, Nov 01, 2023 at 11:20:23AM +0100, Hans de Goede wrote:
> Hi,
>
> On 11/1/23 10:32, Andy Shevchenko wrote:
> > On Tue, Oct 31, 2023 at 10:15:52PM +0100, Hans de Goede wrote:
> >> On 10/31/23 17:07, Hans de Goede wrote:
> >>> On 10/24/23 18:11, Andy Shevchenko wrote:
> >>>> On Tue, Oct 24, 2023 at 06:57:38PM +0300, Andy Shevchenko wrote:
> >
> > ...
> >
> >>> As for the CHT support, I have not added that to my tree yet, I would
> >>> prefer to directly test the correct/fixed patch.
> >>
> >> And I hit the "jackpot" on the first device I tried and the code needed
> >> some fixing to actually work, so here is something to fold into v3 to
> >> fix things:
> >
> > Thanks!
> >
> > But let me first send current v3 as it quite differs to v2 in the sense
> > of how I do instantiate GPIO lookup tables.
>
> The problem is there already is a GPIO lookup table registered for
> the "0000:00:02.0" device by intel_dsi_vbt_gpio_init() and there can
> be only be one GPIO lookup table per device. So no matter how you
> instantiate GPIO lookup tables it will not work.
>
> The solution that I chose is to not instantiate a GPIO lookup table
> at all and instead to extend the existing table with an extra entry.
>
> Although thinking more about it I must admit that this is racy.
>
> So a better idea would be to unregister the GPIO lookup
> table registered by intel_dsi_vbt_gpio_init() after getting
> the GPIOs there, that would allow instantiating a new one
> from soc_exec_opaque_gpio() as it currently does and that
> would be race free.
The proper solution would likely be be to pre-parse the sequences
to determine which GPIOs are actually needed. That would also get
rid of the bxt_gpio_table[] eyesore.
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2023-11-01 10:34 UTC|newest]
Thread overview: 73+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-24 15:57 [Intel-gfx] [rft, PATCH v2 0/7] drm/i915/dsi: 2nd attempt to get rid of IOSF GPIO Andy Shevchenko
2023-10-24 15:57 ` Andy Shevchenko
2023-10-24 15:57 ` Andy Shevchenko
2023-10-24 15:57 ` [Intel-gfx] [PATCH v2 1/7] drm/i915/dsi: Replace while(1) with one with clear exit condition Andy Shevchenko
2023-10-24 15:57 ` Andy Shevchenko
2023-10-24 15:57 ` Andy Shevchenko
2023-10-25 9:15 ` [Intel-gfx] " Andi Shyti
2023-10-25 9:15 ` Andi Shyti
2023-10-25 9:15 ` Andi Shyti
2023-10-24 15:57 ` [Intel-gfx] [PATCH v2 2/7] drm/i915/dsi: Get rid of redundant 'else' Andy Shevchenko
2023-10-24 15:57 ` Andy Shevchenko
2023-10-24 15:57 ` Andy Shevchenko
2023-10-25 9:18 ` [Intel-gfx] " Andi Shyti
2023-10-25 9:18 ` Andi Shyti
2023-10-25 9:18 ` Andi Shyti
2023-10-24 15:57 ` [Intel-gfx] [PATCH v2 3/7] drm/i915/dsi: Replace check with a (missing) MIPI sequence name Andy Shevchenko
2023-10-24 15:57 ` Andy Shevchenko
2023-10-24 15:57 ` Andy Shevchenko
2023-10-25 9:24 ` [Intel-gfx] " Andi Shyti
2023-10-25 9:24 ` Andi Shyti
2023-10-25 9:24 ` Andi Shyti
2023-10-24 15:57 ` [Intel-gfx] [PATCH v2 4/7] drm/i915/dsi: Extract common soc_gpio_exec() helper Andy Shevchenko
2023-10-24 15:57 ` Andy Shevchenko
2023-10-24 15:57 ` Andy Shevchenko
2023-10-24 15:57 ` [Intel-gfx] [PATCH v2 5/7] drm/i915/dsi: Replace poking of VLV GPIOs behind the driver's back Andy Shevchenko
2023-10-24 15:57 ` Andy Shevchenko
2023-10-24 15:57 ` Andy Shevchenko
2023-10-24 15:57 ` [Intel-gfx] [PATCH v2 6/7] drm/i915/dsi: Replace poking of CHV " Andy Shevchenko
2023-10-24 15:57 ` Andy Shevchenko
2023-10-24 15:57 ` Andy Shevchenko
2023-10-24 16:11 ` [Intel-gfx] " Andy Shevchenko
2023-10-24 16:11 ` Andy Shevchenko
2023-10-24 16:11 ` Andy Shevchenko
2023-10-31 16:07 ` [Intel-gfx] " Hans de Goede
2023-10-31 16:07 ` Hans de Goede
2023-10-31 16:07 ` Hans de Goede
2023-10-31 16:21 ` [Intel-gfx] " Andy Shevchenko
2023-10-31 16:21 ` Andy Shevchenko
2023-10-31 16:21 ` Andy Shevchenko
2023-10-31 21:15 ` [Intel-gfx] " Hans de Goede
2023-10-31 21:15 ` Hans de Goede
2023-10-31 21:15 ` Hans de Goede
2023-11-01 9:32 ` [Intel-gfx] " Andy Shevchenko
2023-11-01 9:32 ` Andy Shevchenko
2023-11-01 9:32 ` Andy Shevchenko
2023-11-01 10:20 ` [Intel-gfx] " Hans de Goede
2023-11-01 10:20 ` Hans de Goede
2023-11-01 10:20 ` Hans de Goede
2023-11-01 10:34 ` Ville Syrjälä [this message]
2023-11-01 10:34 ` [Intel-gfx] " Ville Syrjälä
2023-11-01 10:34 ` Ville Syrjälä
2023-11-01 10:40 ` Hans de Goede
2023-11-01 10:40 ` Hans de Goede
2023-11-01 10:40 ` Hans de Goede
2023-11-01 11:01 ` Hans de Goede
2023-11-01 11:01 ` Hans de Goede
2023-11-01 11:01 ` Hans de Goede
2023-11-02 12:27 ` [Intel-gfx] " Andy Shevchenko
2023-11-02 12:27 ` Andy Shevchenko
2023-11-02 12:27 ` Andy Shevchenko
2023-11-02 14:19 ` [Intel-gfx] " Andy Shevchenko
2023-11-02 14:19 ` Andy Shevchenko
2023-11-02 14:19 ` Andy Shevchenko
2023-11-02 14:28 ` [Intel-gfx] " Hans de Goede
2023-11-02 14:28 ` Hans de Goede
2023-11-02 14:28 ` Hans de Goede
2023-10-24 15:57 ` [Intel-gfx] [PATCH v2 7/7] drm/i915/iosf: Drop unused APIs Andy Shevchenko
2023-10-24 15:57 ` Andy Shevchenko
2023-10-24 15:57 ` Andy Shevchenko
2023-10-25 1:46 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/dsi: 2nd attempt to get rid of IOSF GPIO Patchwork
2023-10-25 16:42 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2023-10-31 23:37 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915/dsi: 2nd attempt to get rid of IOSF GPIO (rev2) Patchwork
2023-11-01 13:29 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915/dsi: 2nd attempt to get rid of IOSF GPIO (rev4) Patchwork
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=ZUIpmhYlqMXroHfV@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=airlied@gmail.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=hdegoede@redhat.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=linux-kernel@vger.kernel.org \
--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.