Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6595861ybi; Wed, 5 Jun 2019 03:31:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZtO0XGauDqUcDE7nwmydsqlzbrgqJmhHMKF0vi63U2tB0kjAgeEwFknt4e5r5mW4vgO2F X-Received: by 2002:a17:902:6a4:: with SMTP id 33mr41837588plh.338.1559730666899; Wed, 05 Jun 2019 03:31:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559730666; cv=none; d=google.com; s=arc-20160816; b=ST8Mj1tAihqcVNnUZ3ZZ1oIK47PeBSdQlPxgdP+26FBCcGodur1SS+njuzpXw+nqAi ZdVXygQtiYb7c81GArIqImqb2atwkCaCz/vwFMjtmy9oKdTPKQ1YY71n+dmwJ8kKEBab H7qkSAkeb9JSR/CtTDcm968ZbbGlmqDWOITS7sZqDvgEytPTwHHudd+hfSgMsl5opvVw jjdxl1D6fDKaasT0/WXZyCI70ET0P7+0LzYQfaEyeRqgwrp1pcKUr7EVYu9Ug0aeuPUp 9ORg/pIA2gevYh3/q2V6OVuIyfbBbIfLDIve0FYD1pCdvqbCMGvMRGN9dClw1NttjtOJ DOuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=93zaW02zuIjpnvTLQWsbo123yZtcIUuZGTGSXVRFxSs=; b=fhKbBb60AZ4nYwlK4MrEGhINcWUP/rWlpPqhUjgGck+tWySHTEQF6+AnW/SCN0tkhM HyanJCmxznM7MApex/4viENHMo0G+pz25O/R36fg1AKFSpVNIzECVi1QfeA6uEzqgI40 mpZxxcU40BbbhzVULqiYVjLB3Cz9F75W723grS8ZFEfETfNhke7JZ3XjmTaYgW8iSF/N v6+hcEhY7+sjGaPbzHfii/oOvy0+OOUZ7xnR5844wydAobQnzcuPL49eVjy9B4Lp838M xCUrRv2LZMjMxeVk1V7m1FtGuIdI7XelxYgZ7mN4c3DTUf+01I5gwcd1U/ojn5/7di4f c/Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=nwkC+QF6; 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3si26426928pgs.135.2019.06.05.03.30.49; Wed, 05 Jun 2019 03:31:06 -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=@nxp.com header.s=selector2 header.b=nwkC+QF6; 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727180AbfFEK3l (ORCPT + 99 others); Wed, 5 Jun 2019 06:29:41 -0400 Received: from mail-eopbgr60088.outbound.protection.outlook.com ([40.107.6.88]:27982 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726502AbfFEK3k (ORCPT ); Wed, 5 Jun 2019 06:29:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=93zaW02zuIjpnvTLQWsbo123yZtcIUuZGTGSXVRFxSs=; b=nwkC+QF6UuZDlA7RENtn7ZNzQUqYgSKT5XFuiMN+TIF9SFISsKtHSrjummyh91sCTjIaTNy8KhBKbnz7Wh00mkuJgDWMlo0jtlZKoBO2F6WVgteTqg1LxwzsBKoBptF5Bz5GAVr+JYk0OFnVet7+6upaTB5xaJy2JMMkQpna4mY= Received: from VE1PR04MB6479.eurprd04.prod.outlook.com (20.179.233.80) by VE1PR04MB6448.eurprd04.prod.outlook.com (20.179.232.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1965.12; Wed, 5 Jun 2019 10:29:37 +0000 Received: from VE1PR04MB6479.eurprd04.prod.outlook.com ([fe80::a5b5:13f5:f89c:9a30]) by VE1PR04MB6479.eurprd04.prod.outlook.com ([fe80::a5b5:13f5:f89c:9a30%7]) with mapi id 15.20.1943.018; Wed, 5 Jun 2019 10:29:37 +0000 From: "S.j. Wang" To: Nicolin Chen , "broonie@kernel.org" CC: "timur@kernel.org" , "Xiubo.Lee@gmail.com" , "festevam@gmail.com" , "alsa-devel@alsa-project.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] ASoC: fsl_esai: fix the channel swap issue after xrun Thread-Topic: [PATCH] ASoC: fsl_esai: fix the channel swap issue after xrun Thread-Index: AdUbiN9oFE5912rCR4S4j98+QHq3YA== Date: Wed, 5 Jun 2019 10:29:37 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shengjiu.wang@nxp.com; x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: fb2a07fc-8f8d-41d9-1519-08d6e9a0b5e4 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:VE1PR04MB6448; x-ms-traffictypediagnostic: VE1PR04MB6448: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 00594E8DBA x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(39860400002)(396003)(366004)(346002)(376002)(199004)(189003)(53936002)(110136005)(54906003)(6246003)(25786009)(316002)(52536014)(478600001)(5660300002)(14454004)(4326008)(7696005)(68736007)(2501003)(66066001)(33656002)(9686003)(55016002)(3846002)(6116002)(229853002)(186003)(2906002)(71190400001)(256004)(71200400001)(6506007)(66446008)(99286004)(8936002)(102836004)(66556008)(64756008)(73956011)(66946007)(26005)(86362001)(486006)(476003)(66476007)(74316002)(76116006)(6436002)(8676002)(305945005)(81166006)(81156014)(7736002);DIR:OUT;SFP:1101;SCL:1;SRVR:VE1PR04MB6448;H:VE1PR04MB6479.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: Nd5VNJAsdiAZAun34cLpBHKiidakPYTTVH+fUcBaaCwRZ+328ICws/ANXPLJACEkYV8V0UwVKGHHdjBKaZWlvzK+7vZSwggt01c8Ootlf2v6GxaEFO0dRI//DzVr7c2BT6lvNEGi9WFjW58tbjxM2m2P1HJXNf1pQcvY24jAXz7IVNn6nmxbfn02WoqqN0HoYRzKrMJgGM2OsjknalPsjIPVTDXtTdTj2GnSITuktIUlho4WarxJrfBPDVPlyasRfsPVI8zzEuzYk+Kns4MGYdPMaRikEzOuG7Dn0Sfc75vYrhDO9PskTFzICHN1JJ0KAGAcULANvjBWlcBRP8Q5ba2DWcurLaCH25J/YRSzlHg/spFkQSjoI9i+Gclw6TDhDkmRzR0se7smXlGJLdqHYSqiSJnK4cCUYHeH2OeOV4A= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fb2a07fc-8f8d-41d9-1519-08d6e9a0b5e4 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jun 2019 10:29:37.4157 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: shengjiu.wang@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6448 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi > > > > > Sounds like a bug to me...should fix it first by marking the > > > > > data registers as volatile. > > > > > > > > > The ETDR is a writable register, it is not volatile. Even we > > > > change it to Volatile, I don't think we can't avoid this issue. > > > > for the regcache_sync Just to write this register, it is correct be= havior. > > > > > > Is that so? Quoting the comments of regcache_sync(): > > > "* regcache_sync - Sync the register cache with the hardware. > > > * > > > * @map: map to configure. > > > * > > > * Any registers that should not be synced should be marked as > > > * volatile." > > > > > > If regcache_sync() does sync volatile registers too as you said, I > > > don't mind having this FIFO reset WAR for now, though I think this > > > mismatch between the comments and the actual behavior then should > get people's attention. > > > > > > Thank you > > > > ETDR is not volatile, if we mark it is volatile, is it correct? >=20 > Well, you have a point -- it might not be ideally true, but it sounds lik= e a > correct fix to me according to this comments. >=20 > We can wait for Mark's comments or just send a patch to the mail list for > review. >=20 > Thanks you I test this patch, we don't need to reset the FIFO, and regcache_sync didn'= t Write the ETDR even the EDTR is not volatile. This fault maybe caused by Legacy, in the beginning we add this patch in internal branch, there maybe Something cause this issue, but now can't reproduced.=20 So I will remove the reset of FIFO. Best regards Wang Shengjiu =20