Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp415713pxv; Wed, 30 Jun 2021 08:27:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwU/HTA+vW3mqNaLbDgkCnwl/wAKbaCbMHxK1wtq4bhY7aT3gudBQf1hZs7cFmkSiRFqRtM X-Received: by 2002:a05:6e02:b46:: with SMTP id f6mr10953838ilu.94.1625066826017; Wed, 30 Jun 2021 08:27:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625066826; cv=none; d=google.com; s=arc-20160816; b=kgCDA9iL4lwcCeTJ1TpgmoaBsUqE5ent9IrvzxLt5CpB7igS69DsvJJNmWi4ZmCJl+ GISS4N1hd35qrTd/8urO9uYOGM1e0FtUsA0hO8wo/VYeEh6pmBcP+Dnr0rJto4mmlyEJ 4JSKPJdnfQgl0b1Q7Wr5AtCbqeCbkxvuqyaX7Mhv3GPSqRdOrr0kAXLF9lBZMpAN/dx2 nWMQw1qnTVjnrVgeb+4UQ3iHL4v5CeuIZ7YaACr2IoTadSRwzfcMoJo8EOnJwsiTrY1n ukLjaV+RLXb9PtbcHdffJkgwCJHAhqBVKw3YHeCUTcAb34vp/a6ZX/OMEOy5jzoFFlBc kMaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=imb1+BDipccmQLJXqv6VRlhxAZwWay/iNWrigGMi5EA=; b=X4xY4F2oJzRk0XT3+vPExpaUteBv7xmrIjZfVZ6wdbVN30e4JAgSaE/Vaqu+BLFQpR ulnso/a2xvqg3pPpJLoF2Am4W3yiXiC5kkTEeuYe/cJeO9utpd9WFVHYx588XfqLnZBj fEvgIM9tRMXRRHZdJWRWXEzGiwCp4iY2sgIxi8sYsuZSZyolWO+BFQSlCPGI2luohQwf aDLrCXcq0akFJCiF7ydQhWS0X1MBwGFN/mZJa//y9/HW0DwwzwOF+CL3UqNwZRjO+w09 YdgIcCE9oQEh4zaeu4nwRiC1QMu3RRjIvFNUhoIXLM73leBf8WYmPLej4ILXWpImT06U 9pmA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s4si26318982ilv.54.2021.06.30.08.26.50; Wed, 30 Jun 2021 08:27:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235508AbhF3P2n (ORCPT + 99 others); Wed, 30 Jun 2021 11:28:43 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:45803 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235466AbhF3P2j (ORCPT ); Wed, 30 Jun 2021 11:28:39 -0400 Received: from [192.168.1.155] ([95.114.41.241]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MBll6-1m48P33CTE-00CCjm; Wed, 30 Jun 2021 17:25:17 +0200 Subject: Re: Candidate Linux ABI for Intel AMX and hypothetical new related features To: Arjan van de Ven , Florian Weimer Cc: Len Brown , Peter Zijlstra , Dave Hansen via Libc-alpha , Dave Hansen , Rich Felker , Linux API , "Bae, Chang Seok" , X86 ML , LKML , Kyle Huey , Borislav Petkov , Andy Lutomirski , Thomas Gleixner , Keno Fischer , Willy Tarreau References: <874kf11yoz.ffs@nanos.tec.linutronix.de> <87k0ntazyn.ffs@nanos.tec.linutronix.de> <37833625-3e6b-5d93-cc4d-26164d06a0c6@intel.com> <9c8138eb-3956-e897-ed4e-426bf6663c11@intel.com> <87pmxk87th.fsf@oldenburg.str.redhat.com> <87wnqkzklg.fsf@oldenburg.str.redhat.com> <93e3b500-5992-a674-18e6-445d1db7b1f0@metux.net> <87tulirw5y.fsf@oldenburg.str.redhat.com> <84be3cfd-e825-ae75-bbae-2bbd3360daa7@metux.net> <0978e79c-33ad-c05b-3897-99334c381396@linux.intel.com> From: "Enrico Weigelt, metux IT consult" Message-ID: Date: Wed, 30 Jun 2021 17:25:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <0978e79c-33ad-c05b-3897-99334c381396@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: tl Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:N2k6KoSHPHqYv9ijq9iUuhi+ucELLluWy0O7PLPYB3WQfn9oYSF 76ZkwrRfzkmmIqMMqfI+I1KspSG9WrWGBzUpIPsEm8WrBilyQ+lxz7LXzVcb4hkZJEGNTIJ jpdfrvpoopMjGH266l6Uuh1GW1yOWI0WqHDTQmKE2gKWWkOb6HaTmqgmoyjFl6BFlPtfoRJ iug6tmSHN1w5SyCcN926Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:38UN29YkGt8=:K5ic9j59y87A/7VdUJ7/hB TZK4Q2tEwRQ2BnedKghqj/JNdTrSPj7inZdlkhABTleusACua0O4EOn5VfBnv1AffGF2UUVwD QhYtWbTpu3c17peSMy+MtHyhu+sMqiJg9zPxhBLTIQOwvOiAedY/GeN42N4Pv333wBYf8+P1V 87psoHJjXOuJUi4n1UTa298E2ZRxvKUS2V7MKUZVilr1q6beW+Dr+YV1a0b90e5Xg6VXo6LcO 2AYy3AclJeTGNtMm/3Lwl8EOCofAl5o3PPOrqyJjjJD98G593+FXoUNqjBmyW2FpZ9TqC/SCc SX/PdzRfZsWK9qzkMeWtGEej89c+7ajhnOsToaOHV6VDWXgndWDFs3CZBY5F9i/Yz8hYayuae cuw7cDHmtrr006CZ5d3LEkVrMXu7XgiYcYr984RErdWfJh0gq5WdW8ti3ng7hfEzba0gzxhp6 HJ0kHtBcojtaysGNWl9KUp270yUPPUTrCVI6SW2lQoMrr/Tnvt2Jw4y09H/Lqa3N4L3mTBo3y AjN5V611bSrBJ2iRao3E5atZLJnY1DJ1ZvsYJZJt6L6xPAaLajT2G0ScnNLnhGiBbcBVYj/l9 gOpPfJ5ujvrR+WWV9uanPbo3GK9Fzuj1mIdcOvDti6vtP9yUtvf7DOvK/yjLKdp2DB97XnOeV XIiPbjn39ImsEdRz7P+Is/dqPklxpqk5bqbmJUwx9kqC4voZoav66yMoQo9VG7YF6cSeW5NFk Jss+X2DOTOQWuAN6syhtp0RX+QaaneXEY8aQQYZErpmcesDyD/BQS/oU1p6CogT8FdjcC83CL 7AvOCZSjIjRr6thgLOjj1HN88HmzzI37OIJvOSHhw4bswExVNbFzr4LqyTXyxhnHj5DOErC Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30.06.21 15:55, Arjan van de Ven wrote: >> * this feature needs to be initialized first, before it can be used >> * on first use (when not initialized yet), it traps into the kernel >> * we don't want to always initialize it at boot >> >> Correct ? > > not really, the init is PER PROCESS IIRC there had been some discussion here whether it should be done per thread. But now that I've learned that the major problem is saving the register state, I wouldn't dare thinking about how a working per-thread solution really would need to look like :o (by the way: is sighandler stack per thread or per process ?) > the kernel needs to be able to say "no" in a graceful way, there are > several scenarios > (from the sysadmin wanting to manage power/performance/resources to > outright compatibility where > the kernel wants or needs to say "no". Most obvious example: if a > process asked for an sigaltstack, > we can't let the process use AMX since that stack will be too small most > likely to hold > the stackframe) Ah okay, when I wrote that mail, didn't know yet that so much state needs to be saved. --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering info@metux.net -- +49-151-27565287