Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp946224ybf; Thu, 27 Feb 2020 02:28:50 -0800 (PST) X-Google-Smtp-Source: APXvYqx+SKChPH4jqjEtTchBolBWf2qFjR2bdFdXqosvG6wtl44mLBcyy+Ilc7K4QGvKSEjM78x5 X-Received: by 2002:a9d:6b84:: with SMTP id b4mr2748870otq.190.1582799329964; Thu, 27 Feb 2020 02:28:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582799329; cv=none; d=google.com; s=arc-20160816; b=AxnphNw+2IGgRQOvcppXq5n3DYmmfTt89CuBxVS6+iVtxguLQzgD1GiLO/mWR/C+zg Omdnxq+AfFswiEGMW5thHa/ILgRT3I4UbWpgBZA/i4sxYNAq3dzXI5+7yT4hinohMuO9 PkNGTMOd313DXsjgPmkL96ScsH+RJQNxfgf5culgyTb9+tWxUSCN1Bg++ONLELZl4AKs aAZM+hDuyPSKBOag6DydYq+E1ou2BHQHngi2svI0Euus+bzrXRXPaufGQ8GvC9iGtdnD V2TfekUwmkxqToVdY4ivjLxu83L+wDPjZmpUcBcVbVCI5NfVk/oMs5pC27BOOmg2Ha5b kYZg== 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=LEaZatPGQmSTfFljV7UsLw7F1kUhEvQfFkNEr7oUNNE=; b=1CeHxZrLxN/ZLxso65/qB4sJeRcWYwMocajfpUpo96QuXLcOxAs6VXvyfKctp5+Fi9 Xpxsn8Fz/QW3FpilJ3ImvPBEQdTdXIuD0dq329hR3OLeb39uFRGdCrMzjMqbeu3iK2Y6 rXC38cb+RxlBQlHbPZpH+ZpGSfEzE/7+2zIgB+AbGtpPGi6JrVo35Q7fGkX+3NS2VPtZ 0eY14T2tkgRPaWenI3iUjd6SjGQIs1FcJW0FB3zQLa5YPYgtKjpASewahzBVIY53NzyR 53J/3vCG0DbjkbaUVZb8u+lIyQXP0Y4TLmt9etpbCef4Z8J7LR8sJrxl4J7GkHcq5Jng jSLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=hd69dLLI; 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=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t22si1327602oth.211.2020.02.27.02.28.37; Thu, 27 Feb 2020 02:28:49 -0800 (PST) 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=@mediatek.com header.s=dk header.b=hd69dLLI; 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=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728732AbgB0K2e (ORCPT + 99 others); Thu, 27 Feb 2020 05:28:34 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:17818 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728652AbgB0K2d (ORCPT ); Thu, 27 Feb 2020 05:28:33 -0500 X-UUID: 595f9f8033474e46bb46bd07602317cc-20200227 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=LEaZatPGQmSTfFljV7UsLw7F1kUhEvQfFkNEr7oUNNE=; b=hd69dLLIulXRKM4L8dzuOAO0bc1n/LqO4Bhzsq3RRc2lahOAQhpDH9w3rmsK11b6U8vR8PeQ4wr0qnSGQ/IKcO4CalqELPXGuEcAtu+YW1+8LXEs5WpjAm+mseCw5vP84MA+PGvooxwUv6wwQdiFalQUrJa3E2qi5KTTfwa+EYI=; X-UUID: 595f9f8033474e46bb46bd07602317cc-20200227 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 198747016; Thu, 27 Feb 2020 18:28:27 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 27 Feb 2020 18:28:25 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 27 Feb 2020 18:28:13 +0800 Message-ID: <1582799305.12083.12.camel@mtkswgap22> Subject: Re: [PATCH v4] usb: gadget: f_fs: try to fix AIO issue under ARM 64 bit TAGGED mode From: Macpaul Lin To: Catalin Marinas CC: Matthias Brugger , Shen Jing , Sasha Levin , John Stultz , Andrzej Pietrasiewicz , Vincent Pelletier , Jerry Zhang , , , , , Mediatek WSD Upstream , CC Hwang , Loda Chou , Al Viro , , , Peter Chen , Miles Chen Date: Thu, 27 Feb 2020 18:28:25 +0800 In-Reply-To: <20200227095521.GA3281767@arrakis.emea.arm.com> References: <1582627315-21123-1-git-send-email-macpaul.lin@mediatek.com> <1582718512-28923-1-git-send-email-macpaul.lin@mediatek.com> <20200227095521.GA3281767@arrakis.emea.arm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 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 T24gVGh1LCAyMDIwL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