Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3099068pxj; Mon, 10 May 2021 18:50:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPYWj5spct/e6m8GXHvv7P8A0Mq75gg/6wRRptBcbj8MGCGBNK4sy8Wkx3+phUIqsBqF5d X-Received: by 2002:a02:6d13:: with SMTP id m19mr14658005jac.65.1620697841764; Mon, 10 May 2021 18:50:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620697841; cv=none; d=google.com; s=arc-20160816; b=T79mNSjwmZA3JTvQpr8n0bhDSN+y6xXYFe3yul80IPxPQfRIpSOZFzpq/FBLhx9frP rsvkA0qVfF960Wi3jjNrW2xNy3LX+INx3MP8SQZi//qVQHBfgVc7NWIDQdICco0q69wi +F4Qr+pYMSXLc4RojIY7K2MwjcMq91xyj0NUPhkjRtDMd/S3mD/P+k640ZPVn/ni5f9T OOw/9ijU/Wejou6/K4qbT8YTC7p0O7V7IDHCK0U4+IfHXFZv1un4FTF+jdxFMTAYtSR4 2lKzKA/fF1QPygEKqAA3+yYV5QZT39IRj9AICpMUtb051Oz3LAkH2yz8oVlxI/ZyqnVr n/zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=l83wb8Sez6wI2K16TChz0c4MnrbEIzI3VpV9NXp4Zhc=; b=aMidmWaxLQlwNpsc7hOxSBFZLd35tQR3BwPb+DVPO76y2BkjNpUjGuGol0SnTiiOnC a1NJ/7E111uS5quPL1uKqGM/0yKagjgym03OmQcXUiD+NQzfXdWhs0VahIeU7E/Ckbf6 gbsREegEnJlhnfraih+KQvKpfj1ONAJM+CPFtgU2eta4DbDz/xH7C9d3pGApKugtS+GL ecu0uXb1Hw59GSlffhjDXc0rVMPHEqoJ/wIJReRM73iFDDpRi7LYYVFN5oWVX55lMzQ2 xQ+RGneXJXLNxvIoIjagu81hr3csYUxb+RplaXWzGL2B5rE+k1sU7ZNezH+csaJ4eXX4 DPcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=HjbE8xHK; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w5si19925387iov.91.2021.05.10.18.50.19; Mon, 10 May 2021 18:50:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=HjbE8xHK; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230330AbhEKBvW (ORCPT + 99 others); Mon, 10 May 2021 21:51:22 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:46345 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230251AbhEKBvW (ORCPT ); Mon, 10 May 2021 21:51:22 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4FfLTf71vzz9sWq; Tue, 11 May 2021 11:50:14 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1620697815; bh=6Tbo2+XuK01CmUlRQdE2eT23+kAa6cyfz+ps43fG7SA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=HjbE8xHKcqqTsWtctdsK21GDasEq9DlzCCvR44yW6x3Uhjgzq9FTTmRiXjGU8iN9r SIYgNfKRu6xpvlTsluzqwq4BD3X0ZoJ3FwEIo+CE8YUYsFVcrwWzuowawT3SqhwHI5 R4Nu9PHRpoc1zJPNijiKIcF24Q8BPIvP8xhqvFGjaxtkpyHzhn7+k4Pp35N4/LBoCy u9IMde+S7uwk9JlTt/LvKZaO0m/2+7MYswus8hiv8qAG+NhZdxTSgb6Jgdcx6v2alp 3X81B6Ez3v4fBCAQWPJceoMk7fLH9I5r2kzAaZ9A1p+fEE3wcY1s8Dpzj+b3oBJBbN hw4Eke7P0568w== From: Michael Ellerman To: Nicholas Piggin , Haren Myneni , herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: haren@us.ibm.com, hbabu@us.ibm.com Subject: Re: [PATCH V3 02/16] powerpc/vas: Move VAS API to common book3s platform In-Reply-To: <1620623481.kmr54zmxzv.astroid@bobo.none> References: <163867b893124434dfe3e13c6ba2f081c309e96f.camel@linux.ibm.com> <1620623481.kmr54zmxzv.astroid@bobo.none> Date: Tue, 11 May 2021 11:50:11 +1000 Message-ID: <87pmxyxcmk.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Nicholas Piggin writes: > Excerpts from Haren Myneni's message of April 18, 2021 7:02 am: >> >> Using the same /dev/crypto/nx-gzip interface for both powerNV and >> pseries. > > The pseries NX driver will use the powernv VAS API ? > >> So this patch creates platforms/book3s/ and moves VAS API >> to that directory. The actual functionality is not changed. >> >> Common interface functions such as open, window open ioctl, mmap >> and close are moved to arch/powerpc/platforms/book3s/vas-api.c >> Added hooks to call platform specific code, but the underline >> powerNV code in these functions is not changed. > > Even so, could you do one patch that just moves, and another that > adds the ops struct? > >> >> Signed-off-by: Haren Myneni >> --- >> arch/powerpc/include/asm/vas.h | 22 ++++++- >> arch/powerpc/platforms/Kconfig | 1 + >> arch/powerpc/platforms/Makefile | 1 + >> arch/powerpc/platforms/book3s/Kconfig | 15 +++++ >> arch/powerpc/platforms/book3s/Makefile | 2 + > > The usual place for these would be arch/powerpc/sysdev/vas. E.g., see > arch/powerpc/sysdev/xive. You're right that is the usual place, but is it a good place? :) Using platforms/book3s was my suggestion: https://lore.kernel.org/linuxppc-dev/87k0p6s5lo.fsf@mpe.ellerman.id.au/ But I don't feel that strongly about it, maybe just dumping things in sysdev is easier. cheers