Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3819537rdb; Mon, 11 Dec 2023 00:12:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IGwpNV2+k6KRhKzDwWsQ6FDdPaYYeSxkvCfmGuniYeiwNU7kSguWRUjtm0pNW7gaF60N7fx X-Received: by 2002:a17:90a:2c84:b0:286:6cc1:77f8 with SMTP id n4-20020a17090a2c8400b002866cc177f8mr2983238pjd.59.1702282352301; Mon, 11 Dec 2023 00:12:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702282352; cv=none; d=google.com; s=arc-20160816; b=CERJD7T/keL5fZicSedsyvbuAS7x74zs3IlqgStQcJbrmXtwBKOmk8PQSAkIcKIhJ0 hGvtDwv2lKNJTO6RUlQa8xECSN1SNnGj52QLeiGFUxM2hyW/fTe5QFNoz2ee87KZDDN3 1ny0E4H1Q8oH3pnxc8ezR1hNuaRBYogMZ6JzW/iicVPuNSyvuteoYYvQ3hsrvx3fYm24 1fPvb7CP9rbg8NiGaVrZeCjCyf9IdLzmsIn/cXNQjfa76S6VoQYtPPxwtrfZHFByNy2y tLzN6EvnLQGtIfYuivr1p/z28WLOhZnsaPhXzUqH+41nU39gzuUhJ6utagspnmhFDU3Q mYsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=i2VetfWENefg3NNH186dWhmbJJvG28uTk+9EusPe8Vs=; fh=ZIMRxW1614v2XTTUiwzl/jvywxZLyNEVVz/YemtO/80=; b=zjIdnttdtftZy1hpA5pX5pVYmsvFPhXFGNzTpUAKbIOLeB0UfgYUdkkfBvqL5Xq+Dv mbLrqU3ssoWAVHaKgrVOrf5mmnn+ksNzbDfGE8I+Wadg65dL/gbGTZ8CnZ5qGRqvhB5v OBS82oHIBJrErXW+9m1itkglSfqbbMeStSJwYDetHlDa0dos+hWFxTcPZ7Mvgej919Em B1XSO6vz04Sr3S8XNWDd6gNGat3GGKwX4MnC5wtaABfESDH8nV/T5HwVeyBbMirwTYvU AVqULzA152bXDFK8OFyHE/7sBJ8EBwOY19avWOChRHlRJbLkj/eSvTBIFEp+SUaYaDZQ GScg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=IWzoCn5Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id h16-20020a17090aa89000b002869b4e7d1bsi5719810pjq.96.2023.12.11.00.12.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 00:12:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=IWzoCn5Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 194F780941FB; Mon, 11 Dec 2023 00:12:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233918AbjLKIMU (ORCPT + 99 others); Mon, 11 Dec 2023 03:12:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233910AbjLKIMT (ORCPT ); Mon, 11 Dec 2023 03:12:19 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B809100 for ; Mon, 11 Dec 2023 00:12:24 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-54cb4fa667bso5967288a12.3 for ; Mon, 11 Dec 2023 00:12:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1702282342; x=1702887142; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=i2VetfWENefg3NNH186dWhmbJJvG28uTk+9EusPe8Vs=; b=IWzoCn5QVb3w1w2lMSzZnMBn5t9TP5Aqik7RyQP14t/Wwf+c9Bs7mVgGR9UVhKFqLt metGWAbyRoK0ZwDTWwypTUttdtS8dRgGc87bqYfqc3aGdvjOX2oa3Ue77XQS86kMhtg8 aX5OSVGUANn9JaA/rWKiLVAgTDPYTWzS1TwdLAM1f0LHMLioLoqeH+1NHJNno0IYKrzT m8siL/3r6XHkbPwJIrJGB4oE6QgSyLFj48fVAtsNaVBehXRwbJQBw8uNJ+znoFVZLMGo 8OKVEHs4seK2wT7egtr2R+9qcgvNaWiv4eIEUQ2r/Ub2ThsxMDQ3t2ZWr4akCNGebAuv DMuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702282342; x=1702887142; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=i2VetfWENefg3NNH186dWhmbJJvG28uTk+9EusPe8Vs=; b=G8cIx9Cyfayajos6/ZKO5On1nfAZFufc/iRzHqv9Mwc2CBQqr1JSOBkOq8Fdh1N2s+ wrRaoJ2zFsES0niZaISWFfvQ+59f4rR696MguG+5//zS2LgkbPDjDyBDtRVl1XyJI8GY rXaDZ46NOebc5NDLE8fuKFkcGoG/E9i+q9IBcqgXmZG35jk+tnOqzc/qWhZD/nC+/vO3 aQRIeyKX41AhHOFLOJoGyniVQyqm6ApJyiAkFlKFUvetiSqYMismFxwM+3zEcCXD+xlT HLNqF2bzw35htx6Ex87BCYx7enq17WConphYSkLh5oZrj+IAoPG6E0gLhi0CEZDz1quK UnmA== X-Gm-Message-State: AOJu0YztBLrHiDiGh4HduUwaXfVipXupDhX9uAnVbsnnWxN1L3VjOI/b RqU/K/AlIU5/NulZg8m5Vj4z3Q== X-Received: by 2002:a50:ab5a:0:b0:54c:4837:8b72 with SMTP id t26-20020a50ab5a000000b0054c48378b72mr2555831edc.64.1702282342593; Mon, 11 Dec 2023 00:12:22 -0800 (PST) Received: from localhost (dhcp-089-099-055-216.chello.nl. [89.99.55.216]) by smtp.gmail.com with ESMTPSA id m27-20020a50d7db000000b0054c0264a7fasm3502968edj.64.2023.12.11.00.12.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Dec 2023 00:12:22 -0800 (PST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 11 Dec 2023 09:12:21 +0100 Message-Id: Cc: <~postmarketos/upstreaming@lists.sr.ht>, , , , , Subject: Re: [PATCH v3 1/3] media: venus: core: Set up secure memory ranges for SC7280 From: "Luca Weiss" To: "Luca Weiss" , "Stanimir Varbanov" , "Vikash Garodia" , "Bryan O'Donoghue" , "Andy Gross" , "Bjorn Andersson" , "Konrad Dybcio" , "Mauro Carvalho Chehab" , , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Hans Verkuil" X-Mailer: aerc 0.15.2 References: <20231201-sc7280-venus-pas-v3-0-bc132dc5fc30@fairphone.com> <20231201-sc7280-venus-pas-v3-1-bc132dc5fc30@fairphone.com> In-Reply-To: <20231201-sc7280-venus-pas-v3-1-bc132dc5fc30@fairphone.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 11 Dec 2023 00:12:31 -0800 (PST) On Fri Dec 1, 2023 at 10:33 AM CET, Luca Weiss wrote: > Not all SC7280 devices ship with ChromeOS firmware. Other devices need > PAS for image authentication. That requires the predefined virtual > address ranges to be passed via scm calls. Define them to enable Venus > on non-CrOS SC7280 devices. > > Reviewed-by: Konrad Dybcio > Reviewed-by: Bryan O'Donoghue > Reviewed-by: Vikash Garodia > Signed-off-by: Luca Weiss > --- > drivers/media/platform/qcom/venus/core.c | 4 ++++ > 1 file changed, 4 insertions(+) Hi Hans, Is there anything missing for this to be applied or could you pick this up for v6.8? Regards Luca > > diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/pla= tform/qcom/venus/core.c > index 9cffe975581b..a712dd4f02a5 100644 > --- a/drivers/media/platform/qcom/venus/core.c > +++ b/drivers/media/platform/qcom/venus/core.c > @@ -881,6 +881,10 @@ static const struct venus_resources sc7280_res =3D { > .vmem_size =3D 0, > .vmem_addr =3D 0, > .dma_mask =3D 0xe0000000 - 1, > + .cp_start =3D 0, > + .cp_size =3D 0x25800000, > + .cp_nonpixel_start =3D 0x1000000, > + .cp_nonpixel_size =3D 0x24800000, > .fwname =3D "qcom/vpu-2.0/venus.mbn", > }; > =20