Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3020429ybh; Mon, 16 Mar 2020 14:14:16 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv/nGj97xJnB81IQkW5qrP2/5ZY88ot9BXVijyhcAI9XVH6e4IjfFo6gkJF3kwLfXfhD0kq X-Received: by 2002:aca:474e:: with SMTP id u75mr1097670oia.52.1584393256643; Mon, 16 Mar 2020 14:14:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584393256; cv=none; d=google.com; s=arc-20160816; b=FEX43uwthsZ7gmEv5TzSRPH0/Cr5YjsIe4c/AMqPjK85I9Zb6H9LRLIPV2KGYBtWFy 7DG5HcDWg6VfWZEJOelcLaQxxRrfYEQ27Vd9M2ZtOaq2aXHCxH8HoA22R3zdBcKynAmG T6+lpm04Ub1WnMrtZTDR+X6zYlF8bDeRsR++qcjebIsTnGZ+jzbVC1y7NX82gwBLkEVo xam3CaH6bK7G3ksTmxNeA6vuOqcc/iUej/yAGFCLd2hPs4H2okMQvy1fPPB5B+hlRDoZ oZXAoXUHCMVbZhCgofiylyqnoXay4v1Dh7fL4Y6KnESzbLS5Izs1Dm42TXZuuSyrIPY7 rHhQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=rA/inJ3N2dzQGtrL1M4Qr6g56ao5g6/q7NGAAMSseqI=; b=ADNKQt+e22G+sjwCLFG0sfuLst0uqYlFe9jB4pNzOWd52iNOMA6Uzxkcx4w/DXs0BG 3wvO776TZ8AASHhBKDDl4t8ifhP+z9mAuOBnfT9z050ate1plEG3UIlVP3M4hZZtuMnw /KVsZGgo0FUkm1y/Yw8FhQRAS6yz8n6aza1Kwgzo0BDmmDBDE/rT6wDAzlP6riU1Ny4q bxZEwH7k9e70ulnsab4MmKZPIGP28VB/n/MCspmyAMfw3ikmRaR3GY03eSxlzcJ/q/Kj PGmTHG+XTmcR5Mxn/09eBVFc4o5GfaVEeSFyz8224WLTQkT0d13snfayOSbSfX44u9+2 YOTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=IIbbRosY; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w31si513751otb.59.2020.03.16.14.14.03; Mon, 16 Mar 2020 14:14:16 -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=@rasmusvillemoes.dk header.s=google header.b=IIbbRosY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732634AbgCPVNk (ORCPT + 99 others); Mon, 16 Mar 2020 17:13:40 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:40387 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732567AbgCPVNk (ORCPT ); Mon, 16 Mar 2020 17:13:40 -0400 Received: by mail-wr1-f67.google.com with SMTP id f3so16085969wrw.7 for ; Mon, 16 Mar 2020 14:13:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=rA/inJ3N2dzQGtrL1M4Qr6g56ao5g6/q7NGAAMSseqI=; b=IIbbRosYhmoGbMSReB5jZmMjLoa7dNfhds1z14gzkwdNCqWcXtCVTdnAWdh411B9Xw Pf4v7dC2pqSP+PigEeewQpeiNq10Yt6zj9neGcC6dL72ZVmjZ9adFtKImkTFJN5byWrA YV5qo+jNI+wyc6KLos5URe77rW8L/15fw9fVQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=rA/inJ3N2dzQGtrL1M4Qr6g56ao5g6/q7NGAAMSseqI=; b=BzJgPIVdRpAzFMtnrfYW61zt6y3RMn91nnir45mgvw41KBF0pQRcCXaXXjxEDJNHsr +71yFG8XkW7TdRyxJoNqu1sxSI4WryClAiri4VTNeRYuWj+LDjqfHfpOCcas3RlmT+bs Kn7qcqJoPSzFKULw0GaTJ8WWHSr6SgMqPbvt+1xFg9SjfAFxCzZFcy42Uo2Zw3g6Vx4L Y2rhvaoSxS8HBmv3bmuKmFXw+7PNQnh597tDHfwEY14k6fQC3zONZnMiC1YVrG451Jym vumiE5iCWJrN1lwpVBFHkC0ijE7ZJ5bLU3bT1A2lPj1pyE9acklT3APsDZf9tnUlYs2M lbCg== X-Gm-Message-State: ANhLgQ3u0VP6f6T9PPXEU/LoPBr0RKyfzGwL/iVkTtn+SMK6AQpx4z+G 7yCkRKXw+aK5IC6KJsFmg0sfnYqqD//ZTw== X-Received: by 2002:a5d:4b82:: with SMTP id b2mr1354253wrt.102.1584393216479; Mon, 16 Mar 2020 14:13:36 -0700 (PDT) Received: from [192.168.1.149] (ip-5-186-114-43.cgn.fibianet.dk. [5.186.114.43]) by smtp.gmail.com with ESMTPSA id k133sm1209338wma.11.2020.03.16.14.13.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Mar 2020 14:13:36 -0700 (PDT) Subject: Re: [PATCH 0/6] Fix sparse warnings for common qe library code To: Li Yang , Timur Tabi , Zhao Qiang Cc: linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <20200312222827.17409-1-leoyang.li@nxp.com> From: Rasmus Villemoes Message-ID: <766263cd-6b84-0c6b-d80a-d7f05fabd875@rasmusvillemoes.dk> Date: Mon, 16 Mar 2020 22:13:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200312222827.17409-1-leoyang.li@nxp.com> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/03/2020 23.28, Li Yang wrote: > The QE code was previously only supported on big-endian PowerPC systems > that use the same endian as the QE device. The endian transfer code is > not really exercised. Recent updates extended the QE drivers to > little-endian ARM/ARM64 systems which makes the endian transfer really > meaningful and hence triggered more sparse warnings for the endian > mismatch. Some of these endian issues are real issues that need to be > fixed. > > While at it, fixed some direct de-references of IO memory space and > suppressed other __iomem address space mismatch issues by adding correct > address space attributes. > > Li Yang (6): > soc: fsl: qe: fix sparse warnings for qe.c > soc: fsl: qe: fix sparse warning for qe_common.c > soc: fsl: qe: fix sparse warnings for ucc.c > soc: fsl: qe: fix sparse warnings for qe_ic.c > soc: fsl: qe: fix sparse warnings for ucc_fast.c > soc: fsl: qe: fix sparse warnings for ucc_slow.c Patches 2-5 should not change the generated code, whether LE or BE host, as they merely add sparse annotations (please double-check with objdump that that is indeed the case), so for those you may add Reviewed-by: Rasmus Villemoes I think patch 1 is also correct, but I don't have hardware to test it on ATM. I'd like to see patch 6 split into smaller pieces, most of it seems obviously correct. Rasmus