From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: "Enrico Weigelt, metux IT consult" <info@metux.net>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH v2 5/6] stop using obsolete xf86BlockSIGIO() and xf86UnblockSIGIO()
Date: Mon, 26 Feb 2024 20:58:16 +0200 [thread overview]
Message-ID: <ZdzfSKhw2kDjmtE4@intel.com> (raw)
In-Reply-To: <20240221185550.11943-5-info@metux.net>
On Wed, Feb 21, 2024 at 07:55:49PM +0100, Enrico Weigelt, metux IT consult wrote:
> These
Please spell out what "these" are.
> are just wrappers for calling input_lock()/input_unlock() and marked
> deprecated for quite a while now.
>
> Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
> ---
> src/sna/sna_display.c | 5 +++--
> src/uxa/intel_driver.c | 4 ++--
> 2 files changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
> index 3ff3d2fe..460fb1ca 100644
> --- a/src/sna/sna_display.c
> +++ b/src/sna/sna_display.c
> @@ -1156,11 +1156,12 @@ static inline void sigio_unblock(int was_blocked)
> #include <xf86_OSproc.h>
> static inline int sigio_block(void)
> {
> - return xf86BlockSIGIO();
> + input_lock();
> + return 0;
> }
> static inline void sigio_unblock(int was_blocked)
> {
> - xf86UnblockSIGIO(was_blocked);
> + input_unlock();
> }
> #endif
>
> diff --git a/src/uxa/intel_driver.c b/src/uxa/intel_driver.c
> index 9c3fe85f..79105b89 100644
> --- a/src/uxa/intel_driver.c
> +++ b/src/uxa/intel_driver.c
> @@ -641,10 +641,10 @@ redisplay_dirty(ScreenPtr screen, PixmapDirtyUpdatePtr dirty)
> intel_flush(intel);
> if (!intel->has_prime_vmap_flush) {
> drm_intel_bo *bo = intel_uxa_get_pixmap_bo(PixmapDirtyPrimary(dirty));
> - was_blocked = xf86BlockSIGIO();
> + input_lock();
> drm_intel_bo_map(bo, FALSE);
> drm_intel_bo_unmap(bo);
> - xf86UnblockSIGIO(was_blocked);
> + input_unlock();
> }
>
> DamageRegionProcessPending(&PixmapDirtyDst(dirty)->drawable);
> --
> 2.39.2
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2024-02-26 18:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-21 18:55 [PATCH v2 1/6] sna: stop using obsolete type aliases Enrico Weigelt, metux IT consult
2024-02-21 18:55 ` [PATCH v2 2/6] sna: use GCPtr instead of GC * Enrico Weigelt, metux IT consult
2024-02-21 18:55 ` [PATCH v2 3/6] backlight: use system() instead of System() Enrico Weigelt, metux IT consult
2024-02-21 18:55 ` [PATCH v2 4/6] intel_device: fix warning on possible buffer overlflow on sprintf() calls Enrico Weigelt, metux IT consult
2024-02-26 18:57 ` Ville Syrjälä
2024-02-26 19:35 ` Ville Syrjälä
2024-02-21 18:55 ` [PATCH v2 5/6] stop using obsolete xf86BlockSIGIO() and xf86UnblockSIGIO() Enrico Weigelt, metux IT consult
2024-02-26 18:58 ` Ville Syrjälä [this message]
2024-02-21 18:55 ` [PATCH v2 6/6] uxa: stop calling deprecated xf86_reload_cursors() Enrico Weigelt, metux IT consult
2024-02-26 18:58 ` Ville Syrjälä
2024-02-21 22:51 ` ✗ Fi.CI.BUILD: failure for series starting with [v2,1/6] sna: stop using obsolete type aliases Patchwork
2024-02-26 18:57 ` [PATCH v2 1/6] " Ville Syrjälä
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=ZdzfSKhw2kDjmtE4@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=info@metux.net \
--cc=intel-gfx@lists.freedesktop.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox