Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp388244ybt; Fri, 26 Jun 2020 01:48:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzl+1m4CRDQpZ3vy4aMrtiQcmdlyrCUISvVNRJu7nmi2B3Lsdd5I/3GeuZUCYnjmgJZxfxp X-Received: by 2002:a05:6402:c83:: with SMTP id cm3mr2323806edb.307.1593161313162; Fri, 26 Jun 2020 01:48:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593161313; cv=none; d=google.com; s=arc-20160816; b=cbm92pdVh4J8tH92hcH52eLujZ6xxgSsx9EovIAfzzV1r7oFvLevCxkq5QvpZckUcu Nw/cQuE/riMOmuDbuNAcGU1qNQGP2rjefSSU8nM3R0zyZhexvW8O75PEZbHBJUmCqssE 2X5xXLVD9/AupTLcDQ5YG/mJPhOT8wH0tG2USM/Sz9H+NsPpld948SqmWlvoU9OS42m/ vJGVZj8wHYDY7KJEy709dT4JjREleh7RxnYjOGyb3mZzg0GGKGe77QxGwq9s/jvyXgYU 19mAVBc39PLodLU1SojoRBJXFVZW1w6E1I1eNZe5OTWi3LBCrnyllNN+Z8KWci8JRyWR Ye6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=JI/FNcwdyAdin6Ur1Q7aBKHSJFRVIajQTwQ7ldYrmC8=; b=ikhT2fiBrNzCnNadE5f6GnisLsHKQnrdJnjRm8T6famUG07uqy8Ebzg4+/o4b8DFb9 Uyl3n7532Gd0PRI5/WG0cCOBNcWtGWy41c0lxK0boadBQhRm4pAPM3fDHYFfBiHGdVpn QNnLrrD1lRpCA3DJgzirBs+Ze0q7uFVKzB35XX9+J53ySjAsF9rqgjr79OhvOSBmo7YW 8gpw2AcoaE/YVUDmFdPZj4VkDKbEtmbFexhcFjzTj5zgmV9he2K3dWK7Dp3XyDBs/jof fhEI9uRHWJk8ofMdB26Yt1hZ5IEAURfU+MHeNtjGyemtEl/r8pEPCKUl3YVa3J8p9CV0 JQQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VHQ0XxB8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si6895989edw.105.2020.06.26.01.48.10; Fri, 26 Jun 2020 01:48:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@gmail.com header.s=20161025 header.b=VHQ0XxB8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725957AbgFZIrx (ORCPT + 99 others); Fri, 26 Jun 2020 04:47:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725841AbgFZIrx (ORCPT ); Fri, 26 Jun 2020 04:47:53 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 275ACC08C5C1; Fri, 26 Jun 2020 01:47:53 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id q17so4363509pfu.8; Fri, 26 Jun 2020 01:47:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JI/FNcwdyAdin6Ur1Q7aBKHSJFRVIajQTwQ7ldYrmC8=; b=VHQ0XxB8CemNyEW0YECC8FE3K9egsL2tOTVGWMGaeuV0MgtUDhU8VIFX/eHRvAVJqk Cnw8D+eieVeLnHM8yH+bSsmAd/sMX684rTaFJ5kSycvbLZAa6JPhGO4xflp7E506KY14 2bG0xv4Vqlm9Y4T0fQz5L9I4Kr7LQh2GCJhbNmTk7Jj8M1mpv6Vtiz1gyZx8ZwxpVl/8 gm9g/mRMU2Ol0Ks7bn8UZxnDUj2JpEmFAER7fPJ38AR/v6fXCyJ3Y4ZwgluwTa1gS7ew 1bdztItqfrWThqsVpntoxvDDH54RzgXcCQV+pBg39qkBckMY4agtwgezElS9iGvUoGLH w+UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JI/FNcwdyAdin6Ur1Q7aBKHSJFRVIajQTwQ7ldYrmC8=; b=FoxFwvvTq08ef+olJRqa2YEd1fs8WCSMDoEMJd0zUp5/W6NNvzuOI4S67hx+Ia4oIw VhJUgOgNdDSH5uiIZppJinG+MrvUqbQnHVNCOHuN3Q7WUpAQWHl+KO4CdF++h8mWoIlx Fh0VP+UmrnJzoInZzr/RPZUnEvN/nVChNicj0LHgceMDo4oUuPhfDLssq8IAbe0k2UMd pcVu3aBlcp/fX/QsLQr/cIwVUgCnc8WTFlq9qjsNYuvwwlvNNBJDCUuwarvL3FjFbHoQ Ev3v9p39ZKI3Fn4m4eNkQuVM3dJcGX4Acf182BbVx37h02ECnxZPZzDrHzY0YE4dPor+ hLlQ== X-Gm-Message-State: AOAM5305vZ97xH2/AOjeZvZGD57MBs+99Bi4CBQ4LvW+qzQNIY8DQNFJ PLubJ6E0qHvy2VSVA78r+wU/ZHHYd8cDAHJP+BU= X-Received: by 2002:a63:924b:: with SMTP id s11mr1766606pgn.74.1593161272465; Fri, 26 Jun 2020 01:47:52 -0700 (PDT) MIME-Version: 1.0 References: <20200604175851.758-1-maxim.uvarov@linaro.org> <20200604175851.758-2-maxim.uvarov@linaro.org> <1592507935.15159.5.camel@HansenPartnership.com> <1592578844.4369.5.camel@HansenPartnership.com> <1593012069.28403.11.camel@HansenPartnership.com> <3aa8705a-0342-25ea-00c4-d5370d91ddb4@forissier.org> In-Reply-To: From: Andy Shevchenko Date: Fri, 26 Jun 2020 11:47:36 +0300 Message-ID: Subject: Re: [Tee-dev] [PATCHv8 1/3] optee: use uuid for sysfs driver entry To: Sumit Garg Cc: Maxim Uvarov , Jerome Forissier , James Bottomley , Greg Kroah-Hartman , Linux Kernel Mailing List , Jarkko Sakkinen , Arnd Bergmann , "tee-dev @ lists . linaro . org" , Jason Gunthorpe , linux-integrity , peterhuewe@gmx.de Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 26, 2020 at 8:18 AM Sumit Garg wrote: > On Thu, 25 Jun 2020 at 18:22, Maxim Uvarov wrote: ... > I guess you missed the point that uuid_t is implemented in BE format > in the kernel which is compliant as per RFC 4122. I guess you missed the point. Kernel doesn't have anything special about these types and does NOT compliant as per RFC. The only things the kernel distinguishes are a) byte order (always), and b) version bits when you get a random UUID (whatever you call it). I guess this discussion takes too much time. The idea is that kernel types are just for kernel use with as little intrusion as possible. The main principle, we get something, we carry it w/o modifications inside the kernel. So, you may use whatever you want and LE/BE is purely based on a) and b) above. -- With Best Regards, Andy Shevchenko