Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1680489ybh; Fri, 13 Mar 2020 05:37:03 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtwIj0e4oXTckMQZ8mhXfJMqTV812lMcf13yarXXFL0vSRHpX2KVEslU9hi52KBIp41eBpj X-Received: by 2002:a05:6808:8d0:: with SMTP id k16mr6841337oij.68.1584103023444; Fri, 13 Mar 2020 05:37:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584103023; cv=none; d=google.com; s=arc-20160816; b=i77YjOohZkwLK3vad9naNIkywuKiKXkfI1fLBlJsfPSYXAEfO3VMTJh5IbFBfAW7wH WMaqN3TWuDBJJentxnht8Zb2M7ut6fscoZKjsOdQ9BOJFoEcNKhCVeqsWKVW9xrJuQZy 2Xgi8bMo3NdbBChQMxMzmnCYBipzMOGrYGAz/nGava9pAQtZm2nn7g9F95gZkahL6AyW vdW3bwVyWK1xFzlEcp7HhU8OMLOtC6t0sWbN5I6Zc4j5ogRCJukncO49qjH01WDg8NAE ujQhMOlmLMzKEWwNfi1qquSIvbDUYAalYl4I5MT98yUdo2tdsD+od3Vm9bVU6uHFu6L7 830g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=YzHji4FfZgjBIRCfbdLvOKoDPj2Q5HhnMO7I8Bsba30=; b=lm2OUw1MZ6bEUJ5ITkVaqMtKWrrojdQWmaAm8Hzi84MSMDoB9d+Lukukqc7fYnaJHe bLOtt2FqvHHeqZS0geH15Z/9K0N/NtpY7k3Ec7CN/+RR1XP+ZHr7hEzz+v61qdH0EOB4 ItL7XfGND1IMPgBjgfD2m/EWwvrmP6suoHkOLuEDGT1wCRK6FaXHqSlLFoglvjVFhNBD Px3ZPoJEdRdmWv+Fag+vAFA9/ACPIx/LFTGGx8VUKmPN46PEc3sh4kBsP0iWggEjXQx6 9OPr4fI5jSKfaCf10B52GOiMCansgYH0w+qfI7v/r2Yi+lL0a2n3zhSh2zY3pmowasTW QeXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JlGNzfJm; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h23si5258301otk.315.2020.03.13.05.36.50; Fri, 13 Mar 2020 05:37:03 -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=@kernel.org header.s=default header.b=JlGNzfJm; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726655AbgCMMfM (ORCPT + 99 others); Fri, 13 Mar 2020 08:35:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:60672 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726553AbgCMMfM (ORCPT ); Fri, 13 Mar 2020 08:35:12 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CC59F20724; Fri, 13 Mar 2020 12:35:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584102911; bh=i/t72OmKWsLrwARwJcvgA70p5Pnob77bxl0WH2IjCks=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JlGNzfJmTWFvrzLg6M0B5VNMOJXtqRboPUEyyppSFI8Dq/y55h+SoBEYG5yo0e7rF meRSsTW4ht0H53ZliQlaiw0zI98nfZhv2ew6vGIJpTwj+doo3KYdXaXCW0Ex5/8VvQ 3gcUpzXbmlKaHhGsNtF6HPpp9neC2Ofdx0U1JhG8= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jCjWw-00CTv2-5B; Fri, 13 Mar 2020 12:35:10 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 13 Mar 2020 12:35:10 +0000 From: Marc Zyngier To: Shaokun Zhang Cc: linux-kernel@vger.kernel.org, Nianyao Tang , Thomas Gleixner Subject: Re: [PATCH] irqchip/gic-v4: Fix non-stick page size error for setup GITS_BASER In-Reply-To: <9a00642020fe660e005045913b57fd20@kernel.org> References: <1584089195-63897-1-git-send-email-zhangshaokun@hisilicon.com> <9a00642020fe660e005045913b57fd20@kernel.org> Message-ID: <02159eb7ba2667e3ddea658ff4b3cb92@kernel.org> X-Sender: maz@kernel.org User-Agent: Roundcube Webmail/1.3.10 X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: zhangshaokun@hisilicon.com, linux-kernel@vger.kernel.org, tangnianyao@huawei.com, tglx@linutronix.de X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-03-13 12:00, Marc Zyngier wrote: [...] The astute reader will have noticed that I've sent the wrong patch: > +static int its_probe_baser_psz(struct its_node *its, struct its_baser > *baser) > +{ > + u64 psz = SZ_64K; > + > + while (psz) { > + u64 val, gpsz; > + > + val = its_read_baser(its, baser); > + val &= ~GITS_BASER_PAGE_SIZE_MASK; > + > + switch (psz) { > + case SZ_64K: > + gpsz = GITS_BASER_PAGE_SIZE_64K; > + break; > + case SZ_16K: > + gpsz = GITS_BASER_PAGE_SIZE_16K; > + break; > + case SZ_4K: > + default: > + gpsz = GITS_BASER_PAGE_SIZE_4K; > + break; > + } > + > + gpz >>= GITS_BASER_PAGE_SIZE_SHIFT; s/gpz/gpsz/ Sorry for the noise, M. -- Jazz is not dead. It just smells funny...