6814 Commits

Author SHA1 Message Date
Zillion
ec5dcb4c65 include/uapi: import T225XXU6DWL9
Signed-off-by: Zillion <DevZillion@proton.me>
2024-07-26 22:06:45 +03:00
tai-hua.tseng
c4f0b2bb22 [ALPS07568264] DISP: mediatek_drm.h add ioctl for quary all panels info
[Detail]
add ioctl for get all panels information in current DRM component
status

MTK-Commit-Id: 5b907bcea568e77cf8b078e9b299f1fcddc705e5

CR-Id: ALPS07568264
Feature: display_mobile
Signed-off-by: tai-hua.tseng <tai-hua.tseng@mediatek.com>
Change-Id: I38262da4e85b276359ccc0c12e49b8442f04f056
2022-09-22 11:57:38 +08:00
tai-hua.tseng
897d9d6b90 [ALPS07418433] DISP: modify mediatek_drm.h for separate HRT
[Detail]
modify display mediatek_drm.h,
struct drm_mtk_layering_info add disp_idx and disp_list,
and add separate HRT feature option

MTK-Commit-Id: 618c5600cfd83c9f9d80d74515647262434260f9

CR-Id: ALPS07418433
Feature: display_mobile
Signed-off-by: tai-hua.tseng <tai-hua.tseng@mediatek.com>
Change-Id: I910a4e911bba87596eaf38faebb538fb057fda48
2022-07-14 10:35:54 +08:00
tai-hua.tseng
4b283567a1 [ALPS07410064] DISP: modify header for support 4th display
[Detail]
modify mediatek_drm header for 4th display

MTK-Commit-Id: 1877b445cb1cdcf025e4cee081178ef1c517661e

CR-Id: ALPS07410064
Feature: display_mobile
Signed-off-by: tai-hua.tseng <tai-hua.tseng@mediatek.com>
Change-Id: I3da3192afd07e5a94e91632c12d58df4e743b604
2022-07-14 10:35:50 +08:00
Jay Liu
fd556f1c84 [ALPS07165211] PQ: porting Subdued_light Display
[Detail]
porting Subdued_light Display

[Details]
add kernel patch for Subdued light display

MTK-Commit-Id: 38c7e02e1c604461199737f9eb8a49ce2af3f5f9

Change-Id: I425d83cb10a64ac5a2293e6b939db377f3f46cdb
CR-Id: ALPS07165211
Feature: MiraVision(PQ)
Signed-off-by: Jay Liu <jay.liu@mediatek.com>
2022-07-14 10:34:01 +08:00
Christian Brauner
12bdb34802 [ALPS07184423] UPSTREAM: binderfs: use __u32 for device numbers
We allow more then 255 binderfs binder devices to be created since there
are workloads that require more than that. If we use __u8 well overflow
after 255. So lets use a __u32.
Note that theres no released kernel with binderfs out there so this is
not a regression.

MTK-Commit-Id: 991a9816f30ebf1793f19c307cec1b7522be6557

Signed-off-by: Christian Brauner <christian@brauner.io>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 7d0174065f4903fb0ce0bab3d5047284faa7226d)
Bug: 228263403
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Change-Id: If143c0d6511946fac6349c5db7c013535950de4a
Signed-off-by: “Jason <Yu-cheng.Chen@mediatek.com>
CR-Id: ALPS07184423
Feature: Google Security Patch
2022-05-26 23:07:58 +08:00
Bo Ye
425c4a3572 [ALPS06486924] ACK: Merge android-4.19-stable into alps-mp-s0.mp1
Target:
   android-4.19-stable "011b73c995f35959b39ccde045addbc1862fa3e6
   Merge 4.19.191 into android-4.19-stable"

Version change from 4.19.188 to 4.19.191

MTK-Commit-Id: c8384f99d5a155550b3c0707800ea3d1d83f9ee3

Feature: Kernel SI Operation
CR-Id: ALPS06486924
Signed-off-by: Bo Ye <bo.ye@mediatek.com>
Change-Id: Ic51822fa66c2d94e5f60b2e65a65153ade20c228
2022-01-20 11:18:48 +08:00
Hongjiang He
825abd436e [ALPS06467153] DISP: patch back FP16 color format define
patch back 64 bpp half float formats define,
from
  https://patchwork.kernel.org/patch/10072545/

MTK-Commit-Id: 626e5f4d84f872dfa411893489f9d87482fbf2e9

Signed-off-by: Hongjiang He <Hongjiang.He@mediatek.com>
CR-Id: ALPS06467153
Feature: Display Driver (DSI Interface)
Change-Id: I8434c5217937286312fc2e14eab61e45aef5a929
(cherry pick from 3730281)
2022-01-07 02:02:40 +08:00
Guanwei Chen
8a55fea110 [ALPS06432898] jpeg: k4.19 porting
k4.19 porting

MTK-Commit-Id: f203ec62db8d8fee95af347f88aabaea39035532

Signed-off-by: Guanwei Chen <guanwei.chen@mediatek.com>
CR-Id: ALPS06432898
Feature: [Module]Video Driver
Change-Id: I869515679fbd13c2debea03efb4a61f732840a13
(cherry picked from commit eecbe5d703bd85d26212af1a18144626e51e297e)
2021-12-15 13:46:27 +08:00
Alan Hu
c79121177b [ALPS06334486] build: add new platform
add mt6833/mt6739/mt6768/mt6893/mt6781/mt6877

MTK-Commit-Id: c9b1573613fde4f1905a5021752d1de2f2cecf73

Signed-off-by: Alan Hu <alan.hu@mediatek.com>
CR-Id: ALPS06334486
Feature: SI Operation
Change-Id: I45f6d19854c156bcec5c3a19e6eb938ceed82cef
2021-12-15 13:45:50 +08:00
pankaj.jangir
5a2170f55a [ALPS06301185] v4l2: WN feature porting
add minqp/maxqp/i_p_qp_delta

MTK-Commit-Id: 641f4b2872d51c06043a4437b809e14dc6f47990

Signed-off-by: pankaj.jangir <pankaj.jangir@mediatek.com>
Feature: [Module]Video Driver
Change-Id: Ic94730753167f1701e55e53d5f1afa4962e1d54a
CR-Id: ALPS06301185
2021-11-09 11:14:16 +08:00
Eve
9814c9c417 [ALPS06159626] v4l2: remove code for unsupported codec
remove unsupported codec

MTK-Commit-Id: 826013b139533774dd6be12723dfd84e206ffe9a

Signed-off-by: Eve <eve.su@mediatek.com>
Change-Id: Ic42425692b563bbca47255f40167b41370c4a1ad
CR-Id: ALPS06159626
Feature: MPEG4 Decoder
2021-09-30 20:27:47 +08:00
zhihao
0aa353874e [ALPS05699831] v4l2:modify SHARE_BUF_SIZE
The kernel SHARD_BUF_SIZE has to be 80, because the vpud SHARD_BUF_SIZE
is modified to 80 in "[ALPS05692331] WN feature porting".
If not, the vpud ipi messages and kernel ipi messages do not match.

MTK-Commit-Id: 7fa772840e8c9637db4a43426245a5dcc9266934

Change-Id: I02a2dc46127a4855a924215e4e46d5aaf7652098
Signed-off-by: zhihao <zhihao.cheng@mediatek.com>
CR-Id: ALPS05699831
Feature: H.264 Encoder
2021-05-13 12:33:19 +08:00
bo.ye
c44ad28aa0 [ALPS05707974] [Do NOT Sync]Merge branch android-4.19-stable into alps-trunk-s0.basic
[Detail]
	Target: 6b79701b0a

MTK-Commit-Id: 2b5bc62102377ec37334ad041b9fbf4f6347c98c

Feature: Others
CR-Id: ALPS05707974
Signed-off-by: Breeze Li <Breeze.Li@mediatek.com>
Change-Id: I81d5539f1fde4f8665a0d36efee58eee540535e3
2021-05-13 12:33:11 +08:00
Matthias Maennich
9790f49ad8 ANDROID: Add OWNERS files referring to the respective android-mainline OWNERS
This was generated with
  $ build/synchronize_owners common-mainline/ android-mainline common-4.19-stable

Bug: 184248201
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: I5e56eb34fcbb5a2a013dd03bc9dcc4f159fb90de
2021-04-03 14:09:44 +00:00
Greg Kroah-Hartman
72af4b8433 Merge 4.19.183 into android-4.19-stable
Changes in 4.19.183
	ASoC: ak4458: Add MODULE_DEVICE_TABLE
	ASoC: ak5558: Add MODULE_DEVICE_TABLE
	ALSA: hda: generic: Fix the micmute led init state
	Revert "PM: runtime: Update device status before letting suppliers suspend"
	vmlinux.lds.h: Create section for protection against instrumentation
	lkdtm: don't move ctors to .rodata
	perf tools: Use %define api.pure full instead of %pure-parser
	tools build feature: Check if get_current_dir_name() is available
	tools build feature: Check if eventfd() is available
	tools build: Check if gettid() is available before providing helper
	btrfs: fix race when cloning extent buffer during rewind of an old root
	btrfs: fix slab cache flags for free space tree bitmap
	ASoC: fsl_ssi: Fix TDM slot setup for I2S mode
	nvmet: don't check iosqes,iocqes for discovery controllers
	NFSD: Repair misuse of sv_lock in 5.10.16-rt30.
	svcrdma: disable timeouts on rdma backchannel
	sunrpc: fix refcount leak for rpc auth modules
	net/qrtr: fix __netdev_alloc_skb call
	scsi: lpfc: Fix some error codes in debugfs
	nvme-rdma: fix possible hang when failing to set io queues
	powerpc: Force inlining of cpu_has_feature() to avoid build failure
	usb-storage: Add quirk to defeat Kindle's automatic unload
	usbip: Fix incorrect double assignment to udc->ud.tcp_rx
	USB: replace hardcode maximum usb string length by definition
	usb: gadget: configfs: Fix KASAN use-after-free
	iio:adc:stm32-adc: Add HAS_IOMEM dependency
	iio:adc:qcom-spmi-vadc: add default scale to LR_MUX2_BAT_ID channel
	iio: adis16400: Fix an error code in adis16400_initial_setup()
	iio: gyro: mpu3050: Fix error handling in mpu3050_trigger_handler
	iio: hid-sensor-humidity: Fix alignment issue of timestamp channel
	iio: hid-sensor-prox: Fix scale not correct issue
	iio: hid-sensor-temperature: Fix issues of timestamp channel
	PCI: rpadlpar: Fix potential drc_name corruption in store functions
	perf/x86/intel: Fix a crash caused by zero PEBS status
	x86/ioapic: Ignore IRQ2 again
	kernel, fs: Introduce and use set_restart_fn() and arch_set_restart_data()
	x86: Move TS_COMPAT back to asm/thread_info.h
	x86: Introduce TS_COMPAT_RESTART to fix get_nr_restart_syscall()
	ext4: find old entry again if failed to rename whiteout
	ext4: do not try to set xattr into ea_inode if value is empty
	ext4: fix potential error in ext4_do_update_inode
	genirq: Disable interrupts for force threaded handlers
	x86/apic/of: Fix CPU devicetree-node lookups
	cifs: Fix preauth hash corruption
	Linux 4.19.183

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I4f8cba389a80baddd43c2e782e9250187bf94d05
2021-03-25 15:18:10 +01:00
Macpaul Lin
eac35ed3f8 USB: replace hardcode maximum usb string length by definition
commit 81c7462883b0cc0a4eeef0687f80ad5b5baee5f6 upstream.

Replace hardcoded maximum USB string length (126 bytes) by definition
"USB_MAX_STRING_LEN".

Signed-off-by: Macpaul Lin <macpaul.lin@mediatek.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/1592471618-29428-1-git-send-email-macpaul.lin@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-24 11:07:35 +01:00
bo.ye
47a12e27d4 [ALPS05605552] [Do NOT Sync]Merge branch android-4.19-stable into alps-trunk-s0.basic
[Detail]
	Target: 6455a150fa

MTK-Commit-Id: be087bb0eac18562d6f27698ba757518c211c455

Feature: Others
CR-Id: ALPS05605552
Signed-off-by: Breeze Li <Breeze.Li@mediatek.com>
Change-Id: I02fa3f0c7bca8d81e7a332e70032e209619040c1
2021-03-19 00:18:59 +08:00
Greg Kroah-Hartman
04fd6558af Merge 4.19.181 into android-4.19-stable
Changes in 4.19.181
	uapi: nfnetlink_cthelper.h: fix userspace compilation error
	ethernet: alx: fix order of calls on resume
	ath9k: fix transmitting to stations in dynamic SMPS mode
	net: Fix gro aggregation for udp encaps with zero csum
	net: Introduce parse_protocol header_ops callback
	can: skb: can_skb_set_owner(): fix ref counting if socket was closed before setting skb ownership
	can: flexcan: assert FRZ bit in flexcan_chip_freeze()
	can: flexcan: enable RX FIFO after FRZ/HALT valid
	netfilter: x_tables: gpf inside xt_find_revision()
	mt76: dma: do not report truncated frames to mac80211
	tcp: annotate tp->copied_seq lockless reads
	tcp: annotate tp->write_seq lockless reads
	tcp: add sanity tests to TCP_QUEUE_SEQ
	cifs: return proper error code in statfs(2)
	scripts/recordmcount.{c,pl}: support -ffunction-sections .text.* section names
	Revert "mm, slub: consider rest of partial list if acquire_slab() fails"
	sh_eth: fix TRSCER mask for SH771x
	net: check if protocol extracted by virtio_net_hdr_set_proto is correct
	net: avoid infinite loop in mpls_gso_segment when mpls_hlen == 0
	net/mlx4_en: update moderation when config reset
	net: stmmac: fix incorrect DMA channel intr enable setting of EQoS v4.10
	net: sched: avoid duplicates in classes dump
	net: usb: qmi_wwan: allow qmimux add/del with master up
	cipso,calipso: resolve a number of problems with the DOI refcounts
	net: lapbether: Remove netif_start_queue / netif_stop_queue
	net: davicom: Fix regulator not turned off on failed probe
	net: davicom: Fix regulator not turned off on driver removal
	net: qrtr: fix error return code of qrtr_sendmsg()
	net: stmmac: stop each tx channel independently
	net: stmmac: fix watchdog timeout during suspend/resume stress test
	selftests: forwarding: Fix race condition in mirror installation
	perf traceevent: Ensure read cmdlines are null terminated.
	s390/cio: return -EFAULT if copy_to_user() fails again
	drm/compat: Clear bounce structures
	drm: meson_drv add shutdown function
	s390/cio: return -EFAULT if copy_to_user() fails
	sh_eth: fix TRSCER mask for R7S9210
	media: usbtv: Fix deadlock on suspend
	media: v4l: vsp1: Fix uif null pointer access
	media: v4l: vsp1: Fix bru null pointer access
	net: phy: fix save wrong speed and duplex problem if autoneg is on
	i2c: rcar: optimize cacheline to minimize HW race condition
	udf: fix silent AED tagLocation corruption
	mmc: mxs-mmc: Fix a resource leak in an error handling path in 'mxs_mmc_probe()'
	mmc: mediatek: fix race condition between msdc_request_timeout and irq
	powerpc/pci: Add ppc_md.discover_phbs()
	powerpc: improve handling of unrecoverable system reset
	powerpc/perf: Record counter overflow always if SAMPLE_IP is unset
	sparc32: Limit memblock allocation to low memory
	sparc64: Use arch_validate_flags() to validate ADI flag
	PCI: xgene-msi: Fix race in installing chained irq handler
	PCI: mediatek: Add missing of_node_put() to fix reference leak
	PCI: Fix pci_register_io_range() memory leak
	i40e: Fix memory leak in i40e_probe
	s390/smp: __smp_rescan_cpus() - move cpumask away from stack
	scsi: libiscsi: Fix iscsi_prep_scsi_cmd_pdu() error handling
	scsi: target: core: Add cmd length set before cmd complete
	scsi: target: core: Prevent underflow for service actions
	ALSA: usb: Add Plantronics C320-M USB ctrl msg delay quirk
	ALSA: hda/hdmi: Cancel pending works before suspend
	ALSA: hda: Drop the BATCH workaround for AMD controllers
	ALSA: hda: Avoid spurious unsol event handling during S3/S4
	ALSA: usb-audio: Fix "cannot get freq eq" errors on Dell AE515 sound bar
	ALSA: usb-audio: Apply the control quirk to Plantronics headsets
	Revert 95ebabde382c ("capabilities: Don't allow writing ambiguous v3 file capabilities")
	s390/dasd: fix hanging DASD driver unbind
	s390/dasd: fix hanging IO request during DASD driver unbind
	mmc: core: Fix partition switch time for eMMC
	mmc: cqhci: Fix random crash when remove mmc module/card
	Goodix Fingerprint device is not a modem
	USB: gadget: u_ether: Fix a configfs return code
	usb: gadget: f_uac2: always increase endpoint max_packet_size by one audio slot
	usb: gadget: f_uac1: stop playback on function disable
	usb: dwc3: qcom: Honor wakeup enabled/disabled state
	USB: usblp: fix a hang in poll() if disconnected
	usb: renesas_usbhs: Clear PIPECFG for re-enabling pipe with other EPNUM
	xhci: Improve detection of device initiated wake signal.
	usb: xhci: Fix ASMedia ASM1042A and ASM3242 DMA addressing
	USB: serial: io_edgeport: fix memory leak in edge_startup
	USB: serial: ch341: add new Product ID
	USB: serial: cp210x: add ID for Acuity Brands nLight Air Adapter
	USB: serial: cp210x: add some more GE USB IDs
	usbip: fix stub_dev to check for stream socket
	usbip: fix vhci_hcd to check for stream socket
	usbip: fix vudc to check for stream socket
	usbip: fix stub_dev usbip_sockfd_store() races leading to gpf
	usbip: fix vhci_hcd attach_store() races leading to gpf
	usbip: fix vudc usbip_sockfd_store races leading to gpf
	staging: rtl8192u: fix ->ssid overflow in r8192_wx_set_scan()
	staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()
	staging: rtl8712: unterminated string leads to read overflow
	staging: rtl8188eu: fix potential memory corruption in rtw_check_beacon_data()
	staging: ks7010: prevent buffer overflow in ks_wlan_set_scan()
	staging: rtl8712: Fix possible buffer overflow in r8712_sitesurvey_cmd
	staging: rtl8192e: Fix possible buffer overflow in _rtl92e_wx_set_scan
	staging: comedi: addi_apci_1032: Fix endian problem for COS sample
	staging: comedi: addi_apci_1500: Fix endian problem for command sample
	staging: comedi: adv_pci1710: Fix endian problem for AI command data
	staging: comedi: das6402: Fix endian problem for AI command data
	staging: comedi: das800: Fix endian problem for AI command data
	staging: comedi: dmm32at: Fix endian problem for AI command data
	staging: comedi: me4000: Fix endian problem for AI command data
	staging: comedi: pcl711: Fix endian problem for AI command data
	staging: comedi: pcl818: Fix endian problem for AI command data
	sh_eth: fix TRSCER mask for R7S72100
	NFSv4.2: fix return value of _nfs4_get_security_label()
	block: rsxx: fix error return code of rsxx_pci_probe()
	configfs: fix a use-after-free in __configfs_open_file
	hrtimer: Update softirq_expires_next correctly after __hrtimer_get_next_event()
	stop_machine: mark helpers __always_inline
	include/linux/sched/mm.h: use rcu_dereference in in_vfork()
	powerpc/64s: Fix instruction encoding for lis in ppc_function_entry()
	binfmt_misc: fix possible deadlock in bm_register_write
	x86/unwind/orc: Disable KASAN checking in the ORC unwinder, part 2
	hwmon: (lm90) Fix max6658 sporadic wrong temperature reading
	KVM: arm64: Fix exclusive limit for IPA size
	xen/events: reset affinity of 2-level event when tearing it down
	xen/events: don't unmask an event channel when an eoi is pending
	xen/events: avoid handling the same event on two cpus at the same time
	Linux 4.19.181

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ia622d8e9146f5ff0e1542780a39f83a7b6fed8d1
2021-03-17 18:01:47 +01:00
Dmitry V. Levin
40333481b2 uapi: nfnetlink_cthelper.h: fix userspace compilation error
commit c33cb0020ee6dd96cc9976d6085a7d8422f6dbed upstream.

Apparently, <linux/netfilter/nfnetlink_cthelper.h> and
<linux/netfilter/nfnetlink_acct.h> could not be included into the same
compilation unit because of a cut-and-paste typo in the former header.

Fixes: 12f7a50533 ("netfilter: add user-space connection tracking helper infrastructure")
Cc: <stable@vger.kernel.org> # v3.6
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-17 16:43:42 +01:00
Alessio Balsini
5d91eea1fd [ALPS05563935] fuse: Alloc unlikely used ioctl number for passthrough V1
The current UAPI interface for FUSE passthrough is still under
discussion upstream, thus we are reserving this ioctl number to avoid
future conflicts with user space binaries.
The user space implementation in Android will take care of doing all the
checking to fall into the most appropriate ioctl number.

MTK-Commit-Id: 6d4843f1aa59bc3dd9b57ff6ba0ed3078afdf515

Bug: 167695973
Link: https://lore.kernel.org/lkml/20210125153057.3623715-3-balsini@android.com/
Fixes: abbb00d5ae3f ("FROMLIST: fuse: Definitions and ioctl for passthrough")
Test: manual test with additional printks
Signed-off-by: Alessio Balsini <balsini@google.com>
Change-Id: I658c5ab2ebfe2b76d20685a099ac1b1fee3549cc
Signed-off-by: Ed Tsai <ed.tsai@mediatek.com>
CR-Id: ALPS05563935
Feature: [Android Default] F2FS File System
2021-03-05 11:57:24 +08:00
Alessio Balsini
1ff9401d1e [ALPS05563935] fuse: Definitions and ioctl for passthrough
Expose the FUSE_PASSTHROUGH interface to user space and declare all the
basic data structures and functions as the skeleton on top of which the
FUSE passthrough functionality will be built.

As part of this, introduce the new FUSE passthrough ioctl, which allows
the FUSE daemon to specify a direct connection between a FUSE file and a
lower file system file. Such ioctl requires user space to pass the file
descriptor of one of its opened files through the fuse_passthrough_out
data structure introduced in this patch. This structure includes extra
fields for possible future extensions.
Also, add the passthrough functions for the set-up and tear-down of the
data structures and locks that will be used both when fuse_conns and
fuse_files are created/deleted.

MTK-Commit-Id: e5d0dbfefea19b2f17aa0496326fd3de6fe28c01

Bug: 168023149
Link: https://lore.kernel.org/lkml/20210125153057.3623715-4-balsini@android.com/
Signed-off-by: Alessio Balsini <balsini@android.com>
Change-Id: I732532581348adadda5b5048a9346c2b0868d539
Signed-off-by: Alessio Balsini <balsini@google.com>
Signed-off-by: Ed Tsai <ed.tsai@mediatek.com>
CR-Id: ALPS05563935
Feature: [Android Default] F2FS File System
2021-03-05 11:57:18 +08:00
Alessio Balsini
f397dfb462 [ALPS05563935] fuse: 32-bit user space ioctl compat for fuse device
With a 64-bit kernel build the FUSE device cannot handle ioctl requests
coming from 32-bit user space.
This is due to the ioctl command translation that generates different
command identifiers that thus cannot be used for direct comparisons
without proper manipulation.

Explicitly extract type and number from the ioctl command to enable
32-bit user space compatibility on 64-bit kernel builds.

MTK-Commit-Id: cc0aa8830c1a8360cabf17e72d2e7a7e759792bf

Bug: 168023149
Link: https://lore.kernel.org/lkml/20210125153057.3623715-3-balsini@android.com/
Signed-off-by: Alessio Balsini <balsini@android.com>
Change-Id: I595517c54d551be70e83c7fcb4b62397a3615004
Signed-off-by: Alessio Balsini <balsini@google.com>
Signed-off-by: Ed Tsai <ed.tsai@mediatek.com>
CR-Id: ALPS05563935
Feature: [Android Default] F2FS File System
2021-03-05 11:57:16 +08:00
bo.ye
f1ab89877c [ALPS05557158] [Do NOT Sync]Merge branch android-4.19-stable into alps-trunk-s0.basic
[Detail]
	Target: d084fe8b5d

MTK-Commit-Id: caa5fc883035ab9f591f3a912186fe2b9e4df31a

Feature: Others
Change-Id: If2337ec63740de3f3d272eb8271b798d55cbc441
CR-Id: ALPS05557158
Signed-off-by: Breeze Li <Breeze.Li@mediatek.com>
2021-03-05 11:57:05 +08:00
Maciej Żenczykowski
4812ec5093 BACKPORT: bpf: add bpf_ktime_get_boot_ns()
On a device like a cellphone which is constantly suspending
and resuming CLOCK_MONOTONIC is not particularly useful for
keeping track of or reacting to external network events.
Instead you want to use CLOCK_BOOTTIME.

Hence add bpf_ktime_get_boot_ns() as a mirror of bpf_ktime_get_ns()
based around CLOCK_BOOTTIME instead of CLOCK_MONOTONIC.

Signed-off-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
(cherry picked from commit 71d19214776e61b33da48f7c1b46e522c7f78221)
Change-Id: Ifd62c410dcc5112fd1a473a7e1f70231ca514bc0
2021-02-11 18:18:10 -08:00