mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 06:55:13 +08:00
cf8e865810
The Itanium architecture is obsolete, and an informal survey [0] reveals that any residual use of Itanium hardware in production is mostly HP-UX or OpenVMS based. The use of Linux on Itanium appears to be limited to enthusiasts that occasionally boot a fresh Linux kernel to see whether things are still working as intended, and perhaps to churn out some distro packages that are rarely used in practice. None of the original companies behind Itanium still produce or support any hardware or software for the architecture, and it is listed as 'Orphaned' in the MAINTAINERS file, as apparently, none of the engineers that contributed on behalf of those companies (nor anyone else, for that matter) have been willing to support or maintain the architecture upstream or even be responsible for applying the odd fix. The Intel firmware team removed all IA-64 support from the Tianocore/EDK2 reference implementation of EFI in 2018. (Itanium is the original architecture for which EFI was developed, and the way Linux supports it deviates significantly from other architectures.) Some distros, such as Debian and Gentoo, still maintain [unofficial] ia64 ports, but many have dropped support years ago. While the argument is being made [1] that there is a 'for the common good' angle to being able to build and run existing projects such as the Grid Community Toolkit [2] on Itanium for interoperability testing, the fact remains that none of those projects are known to be deployed on Linux/ia64, and very few people actually have access to such a system in the first place. Even if there were ways imaginable in which Linux/ia64 could be put to good use today, what matters is whether anyone is actually doing that, and this does not appear to be the case. There are no emulators widely available, and so boot testing Itanium is generally infeasible for ordinary contributors. GCC still supports IA-64 but its compile farm [3] no longer has any IA-64 machines. GLIBC would like to get rid of IA-64 [4] too because it would permit some overdue code cleanups. In summary, the benefits to the ecosystem of having IA-64 be part of it are mostly theoretical, whereas the maintenance overhead of keeping it supported is real. So let's rip off the band aid, and remove the IA-64 arch code entirely. This follows the timeline proposed by the Debian/ia64 maintainer [5], which removes support in a controlled manner, leaving IA-64 in a known good state in the most recent LTS release. Other projects will follow once the kernel support is removed. [0] https://lore.kernel.org/all/CAMj1kXFCMh_578jniKpUtx_j8ByHnt=s7S+yQ+vGbKt9ud7+kQ@mail.gmail.com/ [1] https://lore.kernel.org/all/0075883c-7c51-00f5-2c2d-5119c1820410@web.de/ [2] https://gridcf.org/gct-docs/latest/index.html [3] https://cfarm.tetaneutral.net/machines/list/ [4] https://lore.kernel.org/all/87bkiilpc4.fsf@mid.deneb.enyo.de/ [5] https://lore.kernel.org/all/ff58a3e76e5102c94bb5946d99187b358def688a.camel@physik.fu-berlin.de/ Acked-by: Tony Luck <tony.luck@intel.com> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
194 lines
7.0 KiB
C
194 lines
7.0 KiB
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright (c) 2004-2005 Silicon Graphics, Inc.
|
|
* All Rights Reserved.
|
|
*/
|
|
#ifndef __XFS_IOCTL32_H__
|
|
#define __XFS_IOCTL32_H__
|
|
|
|
#include <linux/compat.h>
|
|
|
|
/*
|
|
* on 32-bit arches, ioctl argument structures may have different sizes
|
|
* and/or alignment. We define compat structures which match the
|
|
* 32-bit sizes/alignments here, and their associated ioctl numbers.
|
|
*
|
|
* xfs_ioctl32.c contains routines to copy these structures in and out.
|
|
*/
|
|
|
|
/* stock kernel-level ioctls we support */
|
|
#define XFS_IOC_GETVERSION_32 FS_IOC32_GETVERSION
|
|
|
|
/*
|
|
* On intel, even if sizes match, alignment and/or padding may differ.
|
|
*/
|
|
#if defined(CONFIG_X86_64)
|
|
#define BROKEN_X86_ALIGNMENT
|
|
#define __compat_packed __attribute__((packed))
|
|
#else
|
|
#define __compat_packed
|
|
#endif
|
|
|
|
typedef struct compat_xfs_bstime {
|
|
old_time32_t tv_sec; /* seconds */
|
|
__s32 tv_nsec; /* and nanoseconds */
|
|
} compat_xfs_bstime_t;
|
|
|
|
struct compat_xfs_bstat {
|
|
__u64 bs_ino; /* inode number */
|
|
__u16 bs_mode; /* type and mode */
|
|
__u16 bs_nlink; /* number of links */
|
|
__u32 bs_uid; /* user id */
|
|
__u32 bs_gid; /* group id */
|
|
__u32 bs_rdev; /* device value */
|
|
__s32 bs_blksize; /* block size */
|
|
__s64 bs_size; /* file size */
|
|
compat_xfs_bstime_t bs_atime; /* access time */
|
|
compat_xfs_bstime_t bs_mtime; /* modify time */
|
|
compat_xfs_bstime_t bs_ctime; /* inode change time */
|
|
int64_t bs_blocks; /* number of blocks */
|
|
__u32 bs_xflags; /* extended flags */
|
|
__s32 bs_extsize; /* extent size */
|
|
__s32 bs_extents; /* number of extents */
|
|
__u32 bs_gen; /* generation count */
|
|
__u16 bs_projid_lo; /* lower part of project id */
|
|
#define bs_projid bs_projid_lo /* (previously just bs_projid) */
|
|
__u16 bs_forkoff; /* inode fork offset in bytes */
|
|
__u16 bs_projid_hi; /* high part of project id */
|
|
unsigned char bs_pad[10]; /* pad space, unused */
|
|
__u32 bs_dmevmask; /* DMIG event mask */
|
|
__u16 bs_dmstate; /* DMIG state info */
|
|
__u16 bs_aextents; /* attribute number of extents */
|
|
} __compat_packed;
|
|
|
|
struct compat_xfs_fsop_bulkreq {
|
|
compat_uptr_t lastip; /* last inode # pointer */
|
|
__s32 icount; /* count of entries in buffer */
|
|
compat_uptr_t ubuffer; /* user buffer for inode desc. */
|
|
compat_uptr_t ocount; /* output count pointer */
|
|
};
|
|
|
|
#define XFS_IOC_FSBULKSTAT_32 \
|
|
_IOWR('X', 101, struct compat_xfs_fsop_bulkreq)
|
|
#define XFS_IOC_FSBULKSTAT_SINGLE_32 \
|
|
_IOWR('X', 102, struct compat_xfs_fsop_bulkreq)
|
|
#define XFS_IOC_FSINUMBERS_32 \
|
|
_IOWR('X', 103, struct compat_xfs_fsop_bulkreq)
|
|
|
|
typedef struct compat_xfs_fsop_handlereq {
|
|
__u32 fd; /* fd for FD_TO_HANDLE */
|
|
compat_uptr_t path; /* user pathname */
|
|
__u32 oflags; /* open flags */
|
|
compat_uptr_t ihandle; /* user supplied handle */
|
|
__u32 ihandlen; /* user supplied length */
|
|
compat_uptr_t ohandle; /* user buffer for handle */
|
|
compat_uptr_t ohandlen; /* user buffer length */
|
|
} compat_xfs_fsop_handlereq_t;
|
|
|
|
#define XFS_IOC_PATH_TO_FSHANDLE_32 \
|
|
_IOWR('X', 104, struct compat_xfs_fsop_handlereq)
|
|
#define XFS_IOC_PATH_TO_HANDLE_32 \
|
|
_IOWR('X', 105, struct compat_xfs_fsop_handlereq)
|
|
#define XFS_IOC_FD_TO_HANDLE_32 \
|
|
_IOWR('X', 106, struct compat_xfs_fsop_handlereq)
|
|
#define XFS_IOC_OPEN_BY_HANDLE_32 \
|
|
_IOWR('X', 107, struct compat_xfs_fsop_handlereq)
|
|
#define XFS_IOC_READLINK_BY_HANDLE_32 \
|
|
_IOWR('X', 108, struct compat_xfs_fsop_handlereq)
|
|
|
|
/* The bstat field in the swapext struct needs translation */
|
|
struct compat_xfs_swapext {
|
|
int64_t sx_version; /* version */
|
|
int64_t sx_fdtarget; /* fd of target file */
|
|
int64_t sx_fdtmp; /* fd of tmp file */
|
|
xfs_off_t sx_offset; /* offset into file */
|
|
xfs_off_t sx_length; /* leng from offset */
|
|
char sx_pad[16]; /* pad space, unused */
|
|
struct compat_xfs_bstat sx_stat; /* stat of target b4 copy */
|
|
} __compat_packed;
|
|
|
|
#define XFS_IOC_SWAPEXT_32 _IOWR('X', 109, struct compat_xfs_swapext)
|
|
|
|
typedef struct compat_xfs_fsop_attrlist_handlereq {
|
|
struct compat_xfs_fsop_handlereq hreq; /* handle interface structure */
|
|
struct xfs_attrlist_cursor pos; /* opaque cookie, list offset */
|
|
__u32 flags; /* which namespace to use */
|
|
__u32 buflen; /* length of buffer supplied */
|
|
compat_uptr_t buffer; /* returned names */
|
|
} __compat_packed compat_xfs_fsop_attrlist_handlereq_t;
|
|
|
|
/* Note: actually this is read/write */
|
|
#define XFS_IOC_ATTRLIST_BY_HANDLE_32 \
|
|
_IOW('X', 122, struct compat_xfs_fsop_attrlist_handlereq)
|
|
|
|
/* am_opcodes defined in xfs_fs.h */
|
|
typedef struct compat_xfs_attr_multiop {
|
|
__u32 am_opcode;
|
|
__s32 am_error;
|
|
compat_uptr_t am_attrname;
|
|
compat_uptr_t am_attrvalue;
|
|
__u32 am_length;
|
|
__u32 am_flags;
|
|
} compat_xfs_attr_multiop_t;
|
|
|
|
typedef struct compat_xfs_fsop_attrmulti_handlereq {
|
|
struct compat_xfs_fsop_handlereq hreq; /* handle interface structure */
|
|
__u32 opcount;/* count of following multiop */
|
|
/* ptr to compat_xfs_attr_multiop */
|
|
compat_uptr_t ops; /* attr_multi data */
|
|
} compat_xfs_fsop_attrmulti_handlereq_t;
|
|
|
|
#define XFS_IOC_ATTRMULTI_BY_HANDLE_32 \
|
|
_IOW('X', 123, struct compat_xfs_fsop_attrmulti_handlereq)
|
|
|
|
#ifdef BROKEN_X86_ALIGNMENT
|
|
typedef struct compat_xfs_fsop_geom_v1 {
|
|
__u32 blocksize; /* filesystem (data) block size */
|
|
__u32 rtextsize; /* realtime extent size */
|
|
__u32 agblocks; /* fsblocks in an AG */
|
|
__u32 agcount; /* number of allocation groups */
|
|
__u32 logblocks; /* fsblocks in the log */
|
|
__u32 sectsize; /* (data) sector size, bytes */
|
|
__u32 inodesize; /* inode size in bytes */
|
|
__u32 imaxpct; /* max allowed inode space(%) */
|
|
__u64 datablocks; /* fsblocks in data subvolume */
|
|
__u64 rtblocks; /* fsblocks in realtime subvol */
|
|
__u64 rtextents; /* rt extents in realtime subvol*/
|
|
__u64 logstart; /* starting fsblock of the log */
|
|
unsigned char uuid[16]; /* unique id of the filesystem */
|
|
__u32 sunit; /* stripe unit, fsblocks */
|
|
__u32 swidth; /* stripe width, fsblocks */
|
|
__s32 version; /* structure version */
|
|
__u32 flags; /* superblock version flags */
|
|
__u32 logsectsize; /* log sector size, bytes */
|
|
__u32 rtsectsize; /* realtime sector size, bytes */
|
|
__u32 dirblocksize; /* directory block size, bytes */
|
|
} __attribute__((packed)) compat_xfs_fsop_geom_v1_t;
|
|
|
|
#define XFS_IOC_FSGEOMETRY_V1_32 \
|
|
_IOR('X', 100, struct compat_xfs_fsop_geom_v1)
|
|
|
|
struct compat_xfs_inogrp {
|
|
__u64 xi_startino; /* starting inode number */
|
|
__s32 xi_alloccount; /* # bits set in allocmask */
|
|
__u64 xi_allocmask; /* mask of allocated inodes */
|
|
} __attribute__((packed));
|
|
|
|
/* These growfs input structures have padding on the end, so must translate */
|
|
typedef struct compat_xfs_growfs_data {
|
|
__u64 newblocks; /* new data subvol size, fsblocks */
|
|
__u32 imaxpct; /* new inode space percentage limit */
|
|
} __attribute__((packed)) compat_xfs_growfs_data_t;
|
|
|
|
typedef struct compat_xfs_growfs_rt {
|
|
__u64 newblocks; /* new realtime size, fsblocks */
|
|
__u32 extsize; /* new realtime extent size, fsblocks */
|
|
} __attribute__((packed)) compat_xfs_growfs_rt_t;
|
|
|
|
#define XFS_IOC_FSGROWFSDATA_32 _IOW('X', 110, struct compat_xfs_growfs_data)
|
|
#define XFS_IOC_FSGROWFSRT_32 _IOW('X', 112, struct compat_xfs_growfs_rt)
|
|
|
|
#endif /* BROKEN_X86_ALIGNMENT */
|
|
|
|
#endif /* __XFS_IOCTL32_H__ */
|