Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp942016lqb; Fri, 24 May 2024 21:35:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWc1n7rJ3UQzspb8UToKlLm+lHCjBBxhDF1p7GsOLsBZkOK6g/BGPsbhcGoLMmSZ5GEiKauhcQ+J1OcXHE4lGkvb/26deNU6L7HU3WDIg== X-Google-Smtp-Source: AGHT+IFUmrnJflOQU3N2WSaTAZk1WP/g6YsEqffUM+aLrQu8+nAub1iuFf6ifS0n0Wb2/9xFT8kN X-Received: by 2002:a0d:d8d6:0:b0:61a:b548:93a8 with SMTP id 00721157ae682-62a08d28bcdmr37875697b3.1.1716611743793; Fri, 24 May 2024 21:35:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716611743; cv=pass; d=google.com; s=arc-20160816; b=V8OM/2wYps1BKmfKsgF+qxLt5ZDmqkavea62YgZwjRuGYMw4LQOWX/Lt4t5weTOGMg +CO/75cr98NgbnDRC5J1FmebsbgCydh6yALcP3CpIW5qSddh8559oHBaaIQdInFNEn4p PsqGltVUd6KOCgifUHqf4tWOxCuPEg7kNjB8ltMIUSHPjTCSYDfZLHAfJqrBroI8lrcS K0N1j+R92xcgeRCI+NAGisfcRl0tT3wu9uvQlz6NHa1fhXZWjQqyGxTzW1PvcJvGH7S2 cYjjRJnE6XJpKsX/XYnNeNxQ1FVDZyVNOIYWirRNRrTljbczvBPIIc/BlE7kleZK2+X9 syEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature:dkim-signature :dkim-signature; bh=YAR/KSCrC5bL7GZChS4ptojHBPTVtU1QG1noLesxm6g=; fh=7FqQY95/6dNosXCjFkEopk0YDb4YCNocz5tbx4U0IiY=; b=uMF7Kf9Di0FemmXGftWm62oEzWb7ahbUqBq5jKyjJ6q2Hc65PUpc3xaE8r4XM/zmiG 6SQBhUGJfAbu4JRaqqvqxS0uUJcLeIopYAfi51AVi02mSndHvlbI2XsHaioI4KyN6Hqx s8jJxSd452AcS6vzHi5GvLxt6/uvY/kAN7xdCU1OuSHVOepRrLMhzMq6V2Lr3w8FQ2/f WKtkZIF+tVeJSQNHuraXis0bzhWcbtBprIyb/Zyp1MgWCGXL3Yq2fUqI9C424aeKubel 09xn8MrtcRi8iDnRoaLb7gafkeU9fP+p86T05Njds/NDg4m3hLlLpaH7ksosuo4mSLPq 2ETw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=jEuDA50d; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=jEuDA50d; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=Hw080IjZ; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-189281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189281-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac162d9c50si31363496d6.577.2024.05.24.21.35.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 21:35:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=jEuDA50d; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=jEuDA50d; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=Hw080IjZ; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-189281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189281-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5C2A91C20BAB for ; Sat, 25 May 2024 04:35:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 33FE68F77; Sat, 25 May 2024 04:35:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="jEuDA50d"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="Hw080IjZ"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="jEuDA50d"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="Hw080IjZ" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A02B5E566 for ; Sat, 25 May 2024 04:35:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716611738; cv=none; b=KZeXhfa+sbnnx8SxuyN6viTG0Ov2ppupzZx1ZTF/a/GdJH/ufvAaL3J28UqQ4B4NOZFb5GAOWrw/sLOte5HHn1yBl7MepB/wyNIJPTEcEw7GC5XgeMkmulyKbjKrSQvGh5oSxQmdNdCm6BTMf83uWR1g7eG1qyBlx10FH+ZhK4Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716611738; c=relaxed/simple; bh=r+bZUthXkqBc6ajk2TjUXY5YPQGUHdKAGqQFmLWPLxQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sA4Wb+2lGis5ukm7cPsBdg+RK1jHK4V09W2fTJNGpH4/ndtUanqLCBEhFsa8C3AsRKlmQsYaEKwWJsxLE2W/2f2TTYSuaWVZXI5oEAw9k/OqcFn09NI59rUHoeatJXqrhmRR86164HOMOvB7fcuyGJYdjPhuTyMRJvW4ixmURrQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=jEuDA50d; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=Hw080IjZ; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=jEuDA50d; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=Hw080IjZ; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id B3778340A3; Sat, 25 May 2024 04:35:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1716611734; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YAR/KSCrC5bL7GZChS4ptojHBPTVtU1QG1noLesxm6g=; b=jEuDA50dLntxOGELXKI4qEeWr/V+CaRxCdiOUzPdnIRvDi5/zK0XkRCmTAZy1wMQPCIS80 0IaM+NLFjiKWQzgpy/cufDsUy0SP+eHYbytzXy+ubegIB20C8TMmqXTKJ/inBorr91nUr7 pBGs3iF56AnWXc9vlBjyET4uDr5BrrQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1716611734; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YAR/KSCrC5bL7GZChS4ptojHBPTVtU1QG1noLesxm6g=; b=Hw080IjZdbmzoh1NF9fvOmgSZm3v0K6OCVCqVSDn1Th3qHiq/yI5pSgIecmVycDo0Ce0wr mUYgoFCwNmLo81Dw== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1716611734; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YAR/KSCrC5bL7GZChS4ptojHBPTVtU1QG1noLesxm6g=; b=jEuDA50dLntxOGELXKI4qEeWr/V+CaRxCdiOUzPdnIRvDi5/zK0XkRCmTAZy1wMQPCIS80 0IaM+NLFjiKWQzgpy/cufDsUy0SP+eHYbytzXy+ubegIB20C8TMmqXTKJ/inBorr91nUr7 pBGs3iF56AnWXc9vlBjyET4uDr5BrrQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1716611734; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YAR/KSCrC5bL7GZChS4ptojHBPTVtU1QG1noLesxm6g=; b=Hw080IjZdbmzoh1NF9fvOmgSZm3v0K6OCVCqVSDn1Th3qHiq/yI5pSgIecmVycDo0Ce0wr mUYgoFCwNmLo81Dw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 3903D13A6B; Sat, 25 May 2024 04:35:34 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id q3RoC5ZqUWZpJwAAD6G6ig (envelope-from ); Sat, 25 May 2024 04:35:34 +0000 Date: Sat, 25 May 2024 06:35:32 +0200 From: Oscar Salvador To: Christophe Leroy Cc: Andrew Morton , Jason Gunthorpe , Peter Xu , Michael Ellerman , Nicholas Piggin , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [RFC PATCH v2 14/20] powerpc/e500: Remove enc field from struct mmu_psize_def Message-ID: References: <9c7f189b7733b00e8dc9825e76b6bb257bbd519b.1715971869.git.christophe.leroy@csgroup.eu> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9c7f189b7733b00e8dc9825e76b6bb257bbd519b.1715971869.git.christophe.leroy@csgroup.eu> X-Spam-Flag: NO X-Spam-Score: -4.30 X-Spam-Level: X-Spamd-Result: default: False [-4.30 / 50.00]; BAYES_HAM(-3.00)[99.99%]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_SEVEN(0.00)[9]; RCVD_TLS_ALL(0.00)[]; MISSING_XM_UA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[linux-foundation.org,nvidia.com,redhat.com,ellerman.id.au,gmail.com,vger.kernel.org,kvack.org,lists.ozlabs.org]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FUZZY_BLOCKED(0.00)[rspamd.com]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email] On Fri, May 17, 2024 at 09:00:08PM +0200, Christophe Leroy wrote: > enc field is hidden behind BOOK3E_PAGESZ_XX macros, and when you look > closer you realise that this field is nothing else than the value of > shift minus ten. > > So remove enc field and calculate tsize from shift field. > > Also remove inc filed which is unused. > > Signed-off-by: Christophe Leroy Reviewed-by: Oscar Salvador -- Oscar Salvador SUSE Labs