lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <93ffa843-2867-408b-9c87-c0820fc11e77@imgtec.com>
Date: Fri, 30 Aug 2024 14:23:32 +0000
From: Matt Coster <Matt.Coster@...tec.com>
To: Chen Yufan <chenyufan@...o.com>,
        "dri-devel@...ts.freedesktop.org"
	<dri-devel@...ts.freedesktop.org>,
        "linux-kernel@...r.kernel.org"
	<linux-kernel@...r.kernel.org>
CC: Frank Binns <Frank.Binns@...tec.com>,
        Maarten Lankhorst
	<maarten.lankhorst@...ux.intel.com>,
        Maxime Ripard <mripard@...nel.org>,
        Thomas Zimmermann <tzimmermann@...e.de>,
        David Airlie <airlied@...il.com>, Daniel Vetter <daniel@...ll.ch>,
        Donald Robson <donald.robson@...tec.com>,
        Sarah Walker <Sarah.Walker@...tec.com>,
        "opensource.kernel@...o.com"
	<opensource.kernel@...o.com>
Subject: Re: [PATCH v3] drm/imagination: Convert to use time_before macro

On 23/08/2024 10:39, Chen Yufan wrote:
> Use time_*() macros instead of using
> jiffies directly to handle overflow issues.
> 
> Fixes: cc1aeedb98ad ("drm/imagination: Implement firmware infrastructure and META FW support")
> Signed-off-by: Chen Yufan <chenyufan@...o.com>

Hi Chen,

Apologies for the slow reply – it's been a busy week for me.

I've added my R-b and applied your patch to drm-misc-next as:

   7a5115ba1d69 ("drm/imagination: Convert to use time_before macro")

Thanks again!

Matt

> ---
> The modifications made compared to the previous version are as follows:
> 1. Change the prefix of subject.
> 2. Correct fixes.
> 3. Drop the cast of RESERVE_SLOT_TIMEOUT.
> ---
>   drivers/gpu/drm/imagination/pvr_ccb.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/imagination/pvr_ccb.c b/drivers/gpu/drm/imagination/pvr_ccb.c
> index 4deeac7ed40a..b7d5f9ca3ca6 100644
> --- a/drivers/gpu/drm/imagination/pvr_ccb.c
> +++ b/drivers/gpu/drm/imagination/pvr_ccb.c
> @@ -321,7 +321,7 @@ static int pvr_kccb_reserve_slot_sync(struct pvr_device *pvr_dev)
>   	bool reserved = false;
>   	u32 retries = 0;
>   
> -	while ((jiffies - start_timestamp) < (u32)RESERVE_SLOT_TIMEOUT ||
> +	while (time_before(jiffies, start_timestamp + RESERVE_SLOT_TIMEOUT) ||
>   	       retries < RESERVE_SLOT_MIN_RETRIES) {
>   		reserved = pvr_kccb_try_reserve_slot(pvr_dev);
>   		if (reserved)

Download attachment "OpenPGP_signature.asc" of type "application/pgp-signature" (237 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ