From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F29AC433EF for ; Wed, 17 Nov 2021 11:00:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F211C6126A for ; Wed, 17 Nov 2021 11:00:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F211C6126A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=vanguardiasur.com.ar Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CetBLfAMN2ekrhVsS1nZcQEyMEOPXOECDqDTpu2i0SQ=; b=nDgp/SnZR32BtA T8ibN2gnpyavGaXCQYi5Oobw7aG/YYQnfw4wiHcnULEmEdyCeyugc9EYL77mRnk0EXRgYiBjV1pDb ECVIAW7anwijBh4LqiKvna53DNexxCZu03j8zN80JgB+8kn5DSr4l/2KvghaNJ91IW0OKwAyXdjlT nCxb7PLlisAAJxgOpcRWhXxX5Ynl9db9c1dioa6KHAG9WO7ppG5SMdeayjqKqZpn5Uc9TQUcCJL0Q fkLWgweyQ3AvwvTnLzAut8uMv5V+CD7W+aTJ7ngDV4n47RyRmWeO/YYKtF+6IRG4O6J0SRJ/071kH mkqzhN5QOGhQnehi+M9A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mnIeE-004WBs-8P; Wed, 17 Nov 2021 10:58:38 +0000 Received: from mail-ua1-x934.google.com ([2607:f8b0:4864:20::934]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mnIe9-004W9w-SZ for linux-arm-kernel@lists.infradead.org; Wed, 17 Nov 2021 10:58:35 +0000 Received: by mail-ua1-x934.google.com with SMTP id y5so4898905ual.7 for ; Wed, 17 Nov 2021 02:58:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=GL2vVTwkDGaxnJKnzTpSFsHa3YcDS/lACsSvbC/mwqI=; b=7yAOmEZtKssLDy+Mi1v2A8a/1edO5rzt+1q7QWK/blFKaXK8ebDMcY7nc+YOTG8Kjd ZiCyRY3v5vfuTHYoj5MVj6n6cTVNYKXbwF3zZW3xHkWSl5sOjIwMkBKLHjm+rXuKokps buf1CnkCaSMhGEjqACdor1ActX5fzLq7ADgXGorAAqqAK9yUJ0rWjiF7t7Ze5CY9Zs1M BW/fHP84yKPphZ8yQPiQhDQPHK3ITuznYGa/j2WKeH/BZX95BJI/1/4IVHS6tvl5/dc/ 7f0LvQNZKCxT9FZSexm3uxQ8dn8ZkCks7bJKZRDetCQdaQR+Y2hEmQ5tc9QQyxD7+CgA AX3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=GL2vVTwkDGaxnJKnzTpSFsHa3YcDS/lACsSvbC/mwqI=; b=znsgtGpWFt1IXvsl/O55gBe48N/NIUkBSbj4eR8tlscsHByuQXkfvFL7y7zAWX1tGs mBdDMjS5CwCJetdGgB2LGj11ygqPk1SnizG9gLyz/kIoKeeP1+7UZRzV1zipF+VsGsfi FGLdQMy37SIKwYgNWMgUzPYUr/bjqJ4cv6MhFrTLksCmr9KfAcSVulATqktapLpuKo5f GlyzDEQsmnEiZS/n9MP93Ob43ktTB2OQCcnD3ZB5jwz1rNURcPr7avG61y4Y5tuTi6VN y6gO7Nk2+6shHQAt9+2KIm6VEI0TUJAYUuOvnG4zetgJdGiVNC/RFanaVUidMGpisaUv J/FA== X-Gm-Message-State: AOAM530KAWOJrL++LGYxuNCYs9N02v/fJrcGjIEya8VVsbYlMQ+j5Sen l3h4W0PKG/Y6nnaIwHRR/u404g== X-Google-Smtp-Source: ABdhPJx0rFYEn6Y1Kc0Vuh2EfsmgisCwK03nysfYsSX7F1YoD/nOk5rKQZ75zS/TNfM4/Zj8NiZlHw== X-Received: by 2002:a05:6102:dc7:: with SMTP id e7mr66274552vst.21.1637146712303; Wed, 17 Nov 2021 02:58:32 -0800 (PST) Received: from eze-laptop ([186.122.18.126]) by smtp.gmail.com with ESMTPSA id r20sm11672009vkq.15.2021.11.17.02.58.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Nov 2021 02:58:31 -0800 (PST) Date: Wed, 17 Nov 2021 07:58:23 -0300 From: Ezequiel Garcia To: James Cowgill Cc: Philipp Zabel , Mauro Carvalho Chehab , Greg Kroah-Hartman , Heiko Stuebner , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] media: hantro: Avoid global variable for jpeg quantization tables Message-ID: References: <20211111220108.1873947-1-james.cowgill@blaize.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211111220108.1873947-1-james.cowgill@blaize.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211117_025834_098705_E2BDA48F X-CRM114-Status: GOOD ( 14.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi James, Thanks for the patch. On Thu, Nov 11, 2021 at 10:01:08PM +0000, James Cowgill wrote: > On a system with multiple encoders present, it's possible for two > encoders to write to the global luma and chroma quantization tables at > the same time if they both submit a JPEG frame to be encoded. Avoid > this race by moving the tables into the `jpeg_ctx` structure which is > stored on the stack. > > Signed-off-by: James Cowgill Reviewed-by: Ezequiel Garcia _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel