Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp208003lqn; Thu, 11 Apr 2024 20:58:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWC/RUErTvRrS1j+V0cmqG4hqHylx36bZxZUPUyk+GCO57PzIhstPVNJ28kIGYwNmjW2graHRq8xn4mDEBLwEfIPcsMN/RrJdHiLE3bCw== X-Google-Smtp-Source: AGHT+IFEw2d2l3otBsq8VFHwhTXwh9vEN23uK0VbeO8y1jSuU6hh5R0UceL3dDHAX94sT/EKKVDa X-Received: by 2002:a17:902:f54b:b0:1e5:1734:296c with SMTP id h11-20020a170902f54b00b001e51734296cmr1483827plf.53.1712894322080; Thu, 11 Apr 2024 20:58:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712894322; cv=pass; d=google.com; s=arc-20160816; b=VDPZdKDoogDTpMEaCiru0QSJHLB9mywAJ0h3QHdEJyuhsD6QJzZgDfVVWrd2tvjiSa boLb3ah+FqmbLMianGlqFzfme5tw2szHYqr+bxRj9Mlok4/rcwEEDTvG84Y+cOCyQJkP q/M/S9ZvDNi598vt9h7fPZF7pQj+uqnGq6OKxbyiKEPGr40Mo0uSUnW/KUwAuzenGANK HJmiMHeEGtNvR7DxV0b6wsnvwRv0gkrtmQLKeITZR3DzkG3k4beHlWVDgqvF+P4f3YVo PFbQGr9S3CESmTCDAyOzA0k7dLiRtKYsSseZF/xm3wF8oxnu+VFU8aII0V5fTWVrM1kC 1CJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=kq9tqYpFIYyBB0vbnIBDledMPla7TZJLo3vpnVIHP7w=; fh=63zJE2pkfcWKzZJsDz7t/ZccqFfmmvABwIdGm1GG2cc=; b=BwXfNX1yjttmHUESS2Lw56s23i/qG9aZSHvCtQHLqAc6sMShY3BSCKXqvXeGB2M8V5 C98PsidTg8dqaEZRORKw0QpAfLWHctZSinqzMyM93qUN1+/Gstx0plpGkAMrTf9Y3uON xvE2uav9iWEQfN1eqpIXqPwAOSjlzqyLro0mOzYKlVwkmUrU4SF6919LPmPo3juoxOxM 3Nm5A8ZqOJ58sY9hoE9ndDPqF+g2PzboW9+1OXYFp1GudIDmWKBccdqfGjUHXn/0QFRO BA2O/S7RckYyEbuo+dIEeDzc88XFwREH9rFA5WHjzu5HNVcYc9y7mK4wFue3UCmlEA37 3krA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=kWFVFkUi; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-141880-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141880-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n16-20020a170902f61000b001e2ade13084si2455204plg.249.2024.04.11.20.58.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 20:58:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141880-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=kWFVFkUi; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-141880-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141880-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E5DF3285E51 for ; Fri, 12 Apr 2024 03:57:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1DF93182C3; Fri, 12 Apr 2024 03:57:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="kWFVFkUi" Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9EFA5EAF1; Fri, 12 Apr 2024 03:57:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.61.82.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712894262; cv=none; b=GzpkthDwevIxCGnD3pkPz63eq3ga+gut6PHNF7npbOZzqqP5o9XGeW5D0udj2v//GC6nPcUT2M4Mc21v0me2AL3VbWXqoXt5d5G7irSrCz78pBJlREwqpqtgtBV8nYsyFQuALwx1LQPo2PuqHaStMgTu4dzOfhLIAVrpvHwwEr4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712894262; c=relaxed/simple; bh=uC6uYcUF/C0FppnI39STh9KNObr8r/wEcQZCkanRaPM=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=f2jhHwDVycNFzuM1VaSg0RLVToO/KpW5LeSpkua8YRmjQAs6tAfRJgyqitShJ8I9SS02C0IborAjR6a+BLwOJK5n8FZq5kuSg4PhAwqyClLb5VD0lY92cwm2FU7XaewcTeeSiNnPXU8STODmoraJSkcVPStvvk6vJkYZgy03s3c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=kWFVFkUi; arc=none smtp.client-ip=210.61.82.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: cb7e36fcf88011ee935d6952f98a51a9-20240412 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=kq9tqYpFIYyBB0vbnIBDledMPla7TZJLo3vpnVIHP7w=; b=kWFVFkUioSqx5HH7TLJyAWpKF7FJ/vQ59yBb2lw4FayGnNPJ66Clcq/bzDantezTd3qhLsm/UUjbuFOqt9RFtHgEdoVHGES3Z2ao5WfA+IrC6WJkVnMul0ZV80yMQuk3/d2vnVhXdwnEPMROlbfrUc7f14GVHXsQWrRnFdjUXb0=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:c4b28ebe-3c07-4d01-a2e7-4961dbf3c54e,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:6f543d0,CLOUDID:8bad7c91-e2c0-40b0-a8fe-7c7e47299109,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1, SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: cb7e36fcf88011ee935d6952f98a51a9-20240412 Received: from mtkmbs09n1.mediatek.inc [(172.21.101.35)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 333987801; Fri, 12 Apr 2024 11:57:34 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Fri, 12 Apr 2024 11:57:33 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 12 Apr 2024 11:57:32 +0800 From: Yunfei Dong To: =?UTF-8?q?N=C3=ADcolas=20F=20=2E=20R=20=2E=20A=20=2E=20Prado?= , Nicolas Dufresne , Hans Verkuil , AngeloGioacchino Del Regno , Benjamin Gaignard , Nathan Hebert , Sebastian Fricke CC: Hsin-Yi Wang , Fritz Koenig , Daniel Vetter , Steve Cho , Yunfei Dong , , , , , , Subject: [PATCH] media: mediatek: vcodec: Fix unreasonable data conversion Date: Fri, 12 Apr 2024 11:57:31 +0800 Message-ID: <20240412035731.20078-1-yunfei.dong@mediatek.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N Both 'bs_dma' and 'dma_addr' are integers. No need to convert the type from dma_addr_t to uint64_t again. Fixes: d353c3c34af0 ("media: mediatek: vcodec: support 36 bits physical address") Signed-off-by: Yunfei Dong --- .../media/platform/mediatek/vcodec/decoder/vdec/vdec_vp8_if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp8_if.c b/drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp8_if.c index 4bc89c8644fe..5f848691cea4 100644 --- a/drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp8_if.c +++ b/drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp8_if.c @@ -449,7 +449,7 @@ static int vdec_vp8_decode(void *h_vdec, struct mtk_vcodec_mem *bs, inst->frm_cnt, y_fb_dma, c_fb_dma, fb); inst->cur_fb = fb; - dec->bs_dma = (uint64_t)bs->dma_addr; + dec->bs_dma = bs->dma_addr; dec->bs_sz = bs->size; dec->cur_y_fb_dma = y_fb_dma; dec->cur_c_fb_dma = c_fb_dma; -- 2.18.0