Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4578591imm; Fri, 18 May 2018 07:24:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqRJnXh6VhhxkUmJDILc4k7unmWN1Q47P8FjqTjCnjEng2OhE9oZHWm5dx1AaKrDD+S80si X-Received: by 2002:a65:44c3:: with SMTP id g3-v6mr7666447pgs.428.1526653477058; Fri, 18 May 2018 07:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526653477; cv=none; d=google.com; s=arc-20160816; b=nb7F/4fycRjn7vUvWbUkqLqF3G98AiYs+Ypq7m25As0bDlTx8iJxuYFeXEoRXS9VNb HhIhCYcDyXyldFy1d6KrDOKsWbIgJ8VgLI87uhR5g4Q0sZ0YJksCjL7gOAaOzCRS9upz EksOXMTyxIAUZ7B175wuywtOK1Z48mXxveLxTsFlTBgtm5MItt2j6XzMDcxzxn8MzBMZ 8jVFOY3G2IrAeriWMagNb+Cdmlp8MXwStNUp//H9MDYoUmNtitqOszynWMPIU+x6Vqw5 Kg83uSJeZSSVcwGe5ipl4M1S8XPpiQgoLXyBOM4USs8jUv2AddCi9vRSKolW/nceZ6X2 NaUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=emylIfIPr2PmD/4XQQVBVkNYcvsJiKHVGMvwUKFRpVE=; b=fk/O8DO+cbK7MgQG3Lt5rojiMXH9Muh0gXVJ994wCNaWisSZo8LM+ZyiSxZH13giJt MAFvpOkddc6/pYxvYyuE5EXFE2br1dUoYXVEr3MW2Hs5r/jEfUFNQfdWz1TeqqVlcmnY 75lT4uFsJOiuu0ljYLVZVqTeL7hGe13lPoFgcsfmnw4c+siJJXZbljPMWZs/he9IzFJV /08iL7Zb4N27x+tuXfakwNu+vyF3t0BLazK54/HizPhRdHeXIVJp4jh/qav53adqUKpI ic173bop+fLE8TCJOmdYLYNWMQsSs44ztZb4EYcUzvM5aDelRwUHd18qyJqpC4AMGqOb 5Eag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=fxn2IC5p; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g28-v6si8198461plj.529.2018.05.18.07.24.21; Fri, 18 May 2018 07:24:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=fxn2IC5p; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752160AbeEROXn (ORCPT + 99 others); Fri, 18 May 2018 10:23:43 -0400 Received: from mail-ua0-f194.google.com ([209.85.217.194]:35574 "EHLO mail-ua0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751221AbeEROXi (ORCPT ); Fri, 18 May 2018 10:23:38 -0400 Received: by mail-ua0-f194.google.com with SMTP id a2-v6so5470065uak.2 for ; Fri, 18 May 2018 07:23:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=emylIfIPr2PmD/4XQQVBVkNYcvsJiKHVGMvwUKFRpVE=; b=fxn2IC5psrebyy61vBtl91G8H1qOFqW/ztTfFtj1hTE+0c25QMuvOJ6eONfRnzRnNS DnzhJ7nwTfchOgU4lSWITPAcqCVw/SrmcbV7KQs/39W5Kx93cHnuENAAdQrac2RBBG92 VvAog80qZ7aImamtLNrpAVQoY9J+xYgPQW3r84iyRMcrHo+FG+ZnZQzCrWZDdHsNrUfG GTpMe0rUe7BWYyqDtIWh7raFWej2ZmLen5A3MGHOIXrSZVyiA7JZj4x6yY54ZCQkNsjC JjVLK9zcUmBUT11/f0XV8tCd1GCgHzBvC6+KlIq0DqOUkUMux9IWluYXODsk0QmxRDH8 KZBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=emylIfIPr2PmD/4XQQVBVkNYcvsJiKHVGMvwUKFRpVE=; b=AU/X2ttj8q0qOtl+rXr01oG4ISMwrge9awIxTt800vv5ZFaZroj41vSOEQylfja7hH xpyWVbc/9bormcshutL4FlZlaR/yr+9ttqATp2o8dPA93DGUR3Jq+nWQyN+gNiRlhYrv OruVSgvUoeV5PnxyOWsZVaPvEzXwvURZjS8foIH8R60F2SKiuPaq0CYCVKMDI1Ycm4RY anG1JVXP5rhniSmPV4LDApOY4Zxe/bklKv9KQ2bWqzjZMXhqOcAFW3rxVtYU6I2ORWqq iFUJPzpMiHsTuOnXLUs6ST0GRJi2I3V6mHvhNGasRAaMElxeYxaQjTfltxH4jnEOQ4zo iEkg== X-Gm-Message-State: ALKqPwcFmFvEKyuIl6NXuW0Cp+CG3ejkG6YPEhNFbPf9nRH4O17I15jm NJJ7ezsAZxgcjFQMyUaSPgDUsW1+MjdsdFLvQY1lVg== X-Received: by 2002:a9f:3dc2:: with SMTP id e2-v6mr7615572uaj.132.1526653417148; Fri, 18 May 2018 07:23:37 -0700 (PDT) MIME-Version: 1.0 References: <20180515075859.17217-1-stanimir.varbanov@linaro.org> <20180515075859.17217-8-stanimir.varbanov@linaro.org> In-Reply-To: <20180515075859.17217-8-stanimir.varbanov@linaro.org> From: Tomasz Figa Date: Fri, 18 May 2018 23:23:25 +0900 Message-ID: Subject: Re: [PATCH v2 07/29] venus: hfi_venus: add halt AXI support for Venus 4xx To: Stanimir Varbanov Cc: Mauro Carvalho Chehab , Hans Verkuil , Linux Media Mailing List , Linux Kernel Mailing List , linux-arm-msm , vgarodia@codeaurora.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 15, 2018 at 5:12 PM Stanimir Varbanov < stanimir.varbanov@linaro.org> wrote: > Add AXI halt support for version 4xx by using venus wrapper > registers. > Signed-off-by: Stanimir Varbanov > --- > drivers/media/platform/qcom/venus/hfi_venus.c | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > diff --git a/drivers/media/platform/qcom/venus/hfi_venus.c b/drivers/media/platform/qcom/venus/hfi_venus.c > index 734ce11b0ed0..53546174aab8 100644 > --- a/drivers/media/platform/qcom/venus/hfi_venus.c > +++ b/drivers/media/platform/qcom/venus/hfi_venus.c > @@ -532,6 +532,23 @@ static int venus_halt_axi(struct venus_hfi_device *hdev) > u32 val; > int ret; > + if (hdev->core->res->hfi_version == HFI_VERSION_4XX) { > + val = venus_readl(hdev, WRAPPER_CPU_AXI_HALT); > + val |= BIT(16); Can we have the bit defined? > + venus_writel(hdev, WRAPPER_CPU_AXI_HALT, val); > + > + ret = readl_poll_timeout(base + WRAPPER_CPU_AXI_HALT_STATUS, > + val, val & BIT(24), Ditto. Best regards, Tomasz