Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp424731pxk; Wed, 2 Sep 2020 05:32:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLoZhaJD4pJH0GSHS8gePGUHSlTYPS9B551Ox0tKi81SR/K1zgA3kexNoAdTr04g4e0Ytg X-Received: by 2002:a17:906:af6a:: with SMTP id os10mr5951470ejb.34.1599049924369; Wed, 02 Sep 2020 05:32:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599049924; cv=none; d=google.com; s=arc-20160816; b=Mqddr2LVh/SAQF19wKn8yqEFx4DMWvhyk2hW+ZqqxmpeKfkg3vqlrb/b9O1pql4IBc KYcO6MKUvMnTyHVILdaGychQ5nKmf6hhlFnnlwM24/avlQLBxHhEX8xbNLNSuK7icXii XllCUMBYW1BcHPb8xOOfPVooUtq9hZz/ClWdyGasDiGhdbBDXD+wcEWigCzhcWKSKrWI FBKRFAqIhvj/ATK1qELpHFfeguPHUTCjMnqOYuNgBwVi2mxYiZC+V1sqg1BKHWRp4Lde NM6CfXPdJkmI1R+3kTVhH11Vl/IM6Uoo6KMlsMMVswwk0wI3Z5GKG+gWNLJDS4K8OCn6 M/Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=ZtjJKtZNAVuZVOOlw4wrd3u0b/ydDS0OmQrA7mmZt64=; b=UY4LboXzoOVqfu0YLKR0Q4H2hofhPC0+bF9tPLVpj275K4ggsfKBTPccmpc2Qc6b24 oyN1BuBmMjAXtbDWgBwlwGv5MjztfCuHLEsruiZnOc2EMZPaYQHDsb1jG9ROwJspzSFZ 5Mk6mQWavLIbmMIBMee0xvMBlekUV34VdvjV5zWqLV3ql9bZDq/2neXBZwprh2YTaqsN qpeKwNSng4JRljNOEjMs9p1JQA0fBHJSiECAKjVjgi/tCjthr+4I4Moyo1KhUn7sA0+l KjeR7oKlbLgGDHurHZrXpq7N4W3iyhss0JApS2hBNTD+y0vNbUguK/Q7J/G+8CstkaUM ycZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="WQH2h9V/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g20si2572982ejz.452.2020.09.02.05.31.40; Wed, 02 Sep 2020 05:32:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="WQH2h9V/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726493AbgIBMaz (ORCPT + 99 others); Wed, 2 Sep 2020 08:30:55 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:49967 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726377AbgIBMao (ORCPT ); Wed, 2 Sep 2020 08:30:44 -0400 X-UUID: ea9ba8abf0e14f189b56f1e741f232ca-20200902 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=ZtjJKtZNAVuZVOOlw4wrd3u0b/ydDS0OmQrA7mmZt64=; b=WQH2h9V/SoJ0o8LoWpTXrzLicqG7ZRxrmRTMlxpN1Gniwc+5xbhPJJXm6EORjCSMT2+CaVTJC7ouefkuT0lvGOjPixhCsxEX7+IXm4YyQbN7cexa/0MxrwohtcCDhsdGmTChYuKWo0sFPAYh5gnEH4XDC6wEQf/jgJEuLJBkcxs=; X-UUID: ea9ba8abf0e14f189b56f1e741f232ca-20200902 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 218364270; Wed, 02 Sep 2020 20:30:18 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS31DR.mediatek.inc (172.27.6.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 2 Sep 2020 20:30:15 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 2 Sep 2020 20:30:16 +0800 Message-ID: <1599049719.25072.4.camel@mhfsdcap03> Subject: Re: [PATCH] media: mtk-vcodec: set dma max segment size From: Irui Wang To: Hsin-Yi Wang CC: , Tiffany Lin , Andrew-CT Chen , Mauro Carvalho Chehab , Matthias Brugger , , Anand K Mistry , Alexandre Courbot , , , Maoguang Meng , Yunfei Dong Date: Wed, 2 Sep 2020 20:28:39 +0800 In-Reply-To: <20200821041414.1560707-1-hsinyi@chromium.org> References: <20200821041414.1560707-1-hsinyi@chromium.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 88726D815BBC0380A972E320C447704F65376A421771C015CAE967C03689FAF22000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RGVhciBIc2luLVlpLA0KDQpiZWNhdXNlIHRoaXMgV2FybmluZyBpcyB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